/* ==========================================================================
   Barterly — Landing page ("campus notebook" editorial design)
   ========================================================================== */

/* ==========================================================================
   01 · Hero — layered parallax collage
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 34px);
  padding-bottom: 36px;
  overflow: hidden;
  isolation: isolate;
}

/* Soft accent light that follows the cursor (spotlight gradient) */
.hero-spot {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px circle at var(--spot-x, 75%) var(--spot-y, 30%), color-mix(in srgb, var(--primary) 16%, transparent), transparent 60%),
    radial-gradient(500px circle at 10% 90%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 60%);
  transition: background-position 200ms linear;
}

.hero-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-meta .serif {
  font-size: 1.15em;
  color: var(--text-2);
}

.hero-stage {
  position: relative;
  flex: 1;
  margin-top: clamp(28px, 5vh, 64px);
}

.hero-title {
  position: relative;
  z-index: 3;
  font-size: clamp(3.1rem, 7.4vw, 7.4rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.accent-dot {
  color: var(--primary);
}

.hero-love {
  position: relative;
  display: inline-block;
  padding-right: 0.06em;
  color: var(--primary-text);
  font-size: 1.08em;
  letter-spacing: -0.02em;
}

.hero-love .scribble {
  position: absolute;
  left: -2%;
  bottom: -0.12em;
  width: 104%;
  height: 0.32em;
}

.hero-collage {
  position: absolute;
  top: -12px;
  right: 0;
  z-index: 2;
  width: min(50%, 600px);
  height: clamp(260px, 28vw, 380px);
}

.polaroid-1 {
  top: 0;
  right: 4%;
  width: 44%;
  transform: rotate(4deg);
}

.polaroid-2 {
  top: 12%;
  left: 2%;
  width: 34%;
  transform: rotate(-7deg);
}

.polaroid-3 {
  top: 36%;
  left: 34%;
  width: 30%;
  transform: rotate(2.5deg);
  z-index: 1;
}

.hero-collage .sticker-yellow {
  top: -6%;
  left: 30%;
  width: 92px;
  height: 92px;
  transform: rotate(-12deg);
  z-index: 3;
}

.hero-collage .sticker-pink {
  right: -2%;
  bottom: -18%;
  width: 104px;
  height: 78px;
  z-index: 3;
}

.hero-collage .rotate-badge {
  left: -6%;
  bottom: -30%;
  z-index: 3;
}

.doodle-arrow {
  position: absolute;
  left: -24%;
  top: 6%;
  width: 96px;
  height: 72px;
  transform: scaleX(-1) rotate(-10deg);
}

.hero-collage .doodle-note {
  left: -36%;
  top: -14%;
}

.hero-bottom {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto auto;
  align-items: end;
  gap: 28px 40px;
  margin-top: clamp(28px, 5vh, 56px);
}

.hero-lede {
  max-width: 460px;
  color: var(--text-2);
  font-size: var(--fs-lg);
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-cue i {
  position: relative;
  width: 1px;
  height: 48px;
  overflow: hidden;
  background: var(--border-strong);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--primary);
  animation: scroll-line 1.8s var(--ease) infinite;
}

@keyframes scroll-line {
  to {
    top: 110%;
  }
}

/* ==========================================================================
   Big marquee
   ========================================================================== */
.big-marquee {
  position: relative;
  padding: clamp(28px, 4vw, 48px) 0;
  border-block: 1px solid var(--border);
  overflow: hidden;
}

.bm-row {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
}

.bm-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
  padding-right: clamp(18px, 2.4vw, 36px);
}

.bm-row.is-ready .bm-track {
  animation: marquee-x var(--marquee-duration, 38s) linear infinite;
  animation-direction: var(--marquee-dir, normal);
}

@keyframes marquee-x {
  to {
    transform: translateX(-100%);
  }
}

.bm-row:first-child .bm-track {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 7.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}

.bm-row:first-child .serif {
  font-weight: 400;
  color: var(--primary-text);
}

.bm-track i {
  color: var(--primary);
  font-style: normal;
  font-size: 0.5em;
}

.bm-row-chips {
  margin-top: clamp(18px, 2.4vw, 28px);
}

.bm-row-chips .bm-track {
  gap: 12px;
  padding-right: 12px;
}

.bm-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 6px 6px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text-2);
  font-weight: 600;
  font-size: var(--fs-sm);
}

.bm-chip img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

/* ==========================================================================
   02 · Manifesto — words light up with scroll
   ========================================================================== */
.manifesto-text {
  max-width: 1100px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1rem + 3.1vw, 3.9rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.manifesto-text .serif {
  color: var(--primary-text);
  font-weight: 400;
}

.inline-pic {
  display: inline-block;
  width: 1.7em;
  height: 0.95em;
  margin: 0 0.08em;
  vertical-align: -0.08em;
  border-radius: var(--r-full);
  overflow: hidden;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--border-strong);
}

.inline-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
  margin: clamp(64px, 8vw, 110px) 0 0;
  padding: 0;
  list-style: none;
}

.value {
  padding-top: 22px;
  border-top: 1px solid var(--text);
}

.value-n {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--primary-text);
}

.value h3 {
  margin-top: 18px;
  font-size: clamp(1.3rem, 1rem + 0.8vw, 1.7rem);
}

.value p {
  margin-top: 10px;
  color: var(--muted);
}

/* ==========================================================================
   03 · Exchange model — pinned scene
   ========================================================================== */
.exchange {
  position: relative;
  background: var(--bg-alt);
}

.exchange-pin {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + 20px) 56px;
}

.exchange-head {
  text-align: center;
}

.exchange-head .section-title {
  max-width: 900px;
  margin-inline: auto;
}

.exchange-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: clamp(36px, 5vw, 64px);
}

.ex-card {
  display: grid;
  justify-items: start;
  gap: 18px;
  padding: 26px;
  border: 1.5px solid var(--text);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: 6px 7px 0 var(--text);
}

.ex-card img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
}

.ex-card h3 {
  font-size: clamp(1.8rem, 1.2rem + 1.4vw, 2.6rem);
  letter-spacing: -0.04em;
}

.ex-role {
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.ex-skills {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.ex-skills li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.ex-offer {
  background: var(--success-soft);
}

.ex-want {
  background: var(--primary-soft);
}

/* ---------- Exchange bridge ----------
   Two lanes, each from an "Offers" row to the matching "Wants" row on the
   other card, crossing at the Barterly hub. A light beam travels each lane
   and the receiving row glows as it lands. Geometry comes from landing.js. */
.exchange-stage {
  position: relative;
  align-items: stretch;
}

.ex-card {
  position: relative;
  z-index: 2;
  align-self: center;
}

.ex-bridge {
  position: relative;
  z-index: 1;
  min-height: 300px;
}

.ex-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ex-rail {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.ex-lane-a .ex-rail { stroke: color-mix(in srgb, var(--accent-2) 55%, var(--border-strong)); }
.ex-lane-b .ex-rail { stroke: color-mix(in srgb, var(--primary) 55%, var(--border-strong)); }

/* Travelling beam (pathLength = 1000 so the numbers are length-independent) */
.ex-beam {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 90 1000;
  stroke-dashoffset: 90;
  animation: ex-beam 3.6s cubic-bezier(0.55, 0.05, 0.35, 1) infinite;
}

.ex-lane-a .ex-beam {
  stroke: var(--accent-2);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent-2) 80%, transparent));
}

.ex-lane-b .ex-beam {
  stroke: var(--primary);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--primary) 80%, transparent));
  animation-delay: 1.8s;
}

@keyframes ex-beam {
  0% { stroke-dashoffset: 90; opacity: 0; }
  8% { opacity: 1; }
  88% { opacity: 1; }
  100% { stroke-dashoffset: -1000; opacity: 0; }
}

.ex-port {
  stroke-width: 2.5;
}

.ex-lane-a .ex-port { fill: var(--accent-2); stroke: var(--bg-alt); }
.ex-lane-b .ex-port { fill: var(--primary); stroke: var(--bg-alt); }

.ex-port-ring {
  fill: none;
  stroke-width: 1.5;
  opacity: 0.45;
}

.ex-lane-a .ex-port-ring { stroke: var(--accent-2); }
.ex-lane-b .ex-port-ring { stroke: var(--primary); }

/* Labels sitting on the lanes */
.ex-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 5px 4px 5px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 16px -10px rgba(30, 20, 60, 0.45);
  transform: translate(-50%, -50%);
}

.ex-chip i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #ffffff;
}

.ex-chip .icon {
  width: 12px;
  height: 12px;
}

.ex-chip-a i { background: var(--accent-2); }
.ex-chip-b i { background: var(--primary); }

/* Small arrow pointing at the person who learns this skill */
.ex-chip-dir {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-2);
  transform: rotate(var(--dir, 0deg));
}

.ex-chip-dir .icon {
  width: 11px;
  height: 11px;
}

.ex-chip-a { border-color: color-mix(in srgb, var(--accent-2) 45%, var(--border)); }
.ex-chip-b { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }

.ex-chip small {
  color: var(--muted);
  font-weight: 500;
}

/* Rows light up as a beam leaves / lands */
.ex-skills li {
  position: relative;
  transition: box-shadow 300ms ease;
}

.ex-lane-a-from,
.ex-lane-a-to { --lane: var(--accent-2); }

.ex-lane-b-from,
.ex-lane-b-to { --lane: var(--primary); }

.is-flowing .ex-lane-a-from { animation: row-send 3.6s ease-in-out infinite; }
.is-flowing .ex-lane-a-to { animation: row-receive 3.6s ease-in-out infinite; }
.is-flowing .ex-lane-b-from { animation: row-send 3.6s ease-in-out 1.8s infinite; }
.is-flowing .ex-lane-b-to { animation: row-receive 3.6s ease-in-out 1.8s infinite; }

@keyframes row-send {
  0%, 22%, 100% { box-shadow: 0 0 0 0 transparent; }
  6% { box-shadow: 0 0 0 2px var(--lane), 0 0 22px -4px var(--lane); }
}

@keyframes row-receive {
  0%, 80%, 100% { box-shadow: 0 0 0 0 transparent; }
  92% { box-shadow: 0 0 0 2px var(--lane), 0 0 22px -4px var(--lane); }
}

/* Hub */
.ex-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--bg-alt) 70%, transparent), var(--shadow-md);
}

.ex-hub img {
  position: relative;
  z-index: 1;
  width: 64%;
  height: 64%;
}

.ex-hub-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent-2), var(--primary), var(--accent-2));
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
  mask: radial-gradient(circle, transparent 62%, #000 63%);
  opacity: 0.55;
  animation: hub-spin 8s linear infinite;
}

@keyframes hub-spin {
  to { transform: rotate(360deg); }
}

.ex-hub-caption {
  position: absolute;
  top: calc(50% + 66px);
  left: 50%;
  z-index: 3;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--bg-alt);
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
}

.ex-hub-caption .serif {
  color: var(--primary-text);
  font-size: 1.2em;
}

@media (prefers-reduced-motion: reduce) {
  .ex-beam { display: none; }
  .ex-hub-ring,
  .is-flowing .ex-skills li { animation: none; }
}

.ex-outcome {
  margin-top: clamp(32px, 4vw, 52px);
  color: var(--text-2);
  font-size: clamp(1.1rem, 0.9rem + 0.6vw, 1.45rem);
  text-align: center;
}

.ex-outcome strong {
  color: var(--text);
}

.ex-outcome .serif {
  color: var(--primary-text);
  font-size: 1.12em;
}

/* ==========================================================================
   04 · How it works — horizontal scroll
   ========================================================================== */
.how {
  position: relative;
}

.how-pin {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 28px);
  padding-bottom: 40px;
  overflow: hidden;
}

.how-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.how-progress {
  display: grid;
  justify-items: end;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

.how-progress [data-how-current] {
  color: var(--text);
  font-weight: 700;
}

.how-progress-bar {
  display: block;
  width: 160px;
  height: 2px;
  background: var(--border-strong);
}

.how-progress-bar i {
  display: block;
  height: 100%;
  background: var(--primary);
  transform: scaleX(0.2);
  transform-origin: left;
}

.how-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  margin-top: clamp(28px, 4vh, 48px);
}

.how-track {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0 var(--gutter);
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2));
  list-style: none;
  will-change: transform;
}

.how-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  flex-shrink: 0;
  width: min(80vw, 900px);
  height: min(58vh, 520px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  overflow: hidden;
}

.how-num {
  position: absolute;
  top: 10px;
  right: 22px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(5rem, 9vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border-strong);
}

.how-media {
  margin: 0;
  overflow: hidden;
}

.how-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}

.how-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 3vw, 44px);
}

.how-copy h3 {
  font-size: clamp(1.7rem, 1.1rem + 1.5vw, 2.6rem);
  letter-spacing: -0.04em;
}

.how-copy p {
  margin-top: 14px;
  color: var(--muted);
}

.how-caption {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-strong);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--primary-text);
}

.how-panel-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  width: min(70vw, 520px);
  padding: clamp(32px, 4vw, 56px);
  border-color: transparent;
  background: var(--ink);
  color: var(--paper);
}

.how-note-kicker {
  color: color-mix(in srgb, var(--paper) 60%, transparent);
  font-weight: 600;
}

.how-note-text {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.how-note-text .serif {
  color: var(--primary);
  font-weight: 400;
}

.how-panel-note .btn-ink {
  background: var(--paper);
  color: var(--ink);
}

/* ==========================================================================
   05 · Formats — sticky image + mask reveal
   ========================================================================== */
.formats-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
}

.formats-sticky {
  position: relative;
}

.formats-frame {
  position: sticky;
  top: 14vh;
  height: 72vh;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface-3);
}

.fmt-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(100% 0 0 0);
  transform: scale(1.15);
  transition: clip-path 1s var(--ease-out-expo), transform 1.4s var(--ease-out-expo);
}

.fmt-img.is-active {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
  z-index: 1;
}

.fmt-img.is-leaving {
  z-index: 0;
  clip-path: inset(0 0 0 0);
}

.fmt-badge,
.fmt-count {
  position: absolute;
  z-index: 3;
  padding: 8px 14px;
  border-radius: var(--r-full);
  background: rgba(23, 21, 18, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.fmt-badge {
  left: 18px;
  bottom: 18px;
}

.fmt-count {
  right: 18px;
  top: 18px;
  font-variant-numeric: tabular-nums;
}

.formats-head {
  padding-bottom: 6vh;
}

.fmt-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 62vh;
  padding-block: 32px;
  border-top: 1px solid var(--border);
  opacity: 0.28;
  transition: opacity 600ms ease;
}

.fmt-step.is-active {
  opacity: 1;
}

.fmt-k {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.fmt-step h3 {
  margin-top: 22px;
  font-size: clamp(1.9rem, 1.2rem + 1.8vw, 3rem);
  letter-spacing: -0.045em;
}

.fmt-step p {
  max-width: 460px;
  margin-top: 16px;
  color: var(--muted);
  font-size: var(--fs-lg);
}

/* ==========================================================================
   06 · Categories — editorial hover list
   ========================================================================== */
.cats-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.cat-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(380px, 100%);
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--text);
}

.cat-search > .icon {
  color: var(--muted);
}

.cat-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.05rem;
  outline: none;
}

.cat-search input::placeholder {
  color: var(--muted-2);
}

.cat-search-go {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  transition: background-color 300ms ease, transform 400ms var(--ease);
}

.cat-search-go:hover {
  background: var(--primary);
  transform: rotate(-45deg);
}

.cat-status {
  min-height: 1.5em;
  margin-top: 14px;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.cat-list {
  margin: 18px 0 0;
  padding: 0;
  border-top: 1px solid var(--text);
}

.cat-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 0.7fr) 52px;
  align-items: center;
  gap: 20px;
  padding: clamp(18px, 2.4vw, 28px) 4px;
  border-bottom: 1px solid var(--border-strong);
  isolation: isolate;
  transition: opacity 400ms ease;
}

/* Colour wash that rises from the bottom on hover */
.cat-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--cat) 10%, transparent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 500ms var(--ease-out-expo);
}

.cat-row:hover::before,
.cat-row:focus-visible::before,
.cat-row.is-match::before {
  transform: scaleY(1);
}

.cat-n {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--muted);
}

.cat-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1rem + 3vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  transition: transform 600ms var(--ease-out-expo), color 300ms ease;
}

.cat-name .serif {
  font-weight: 400;
}

.cat-row:hover .cat-name,
.cat-row.is-match .cat-name {
  color: var(--cat);
  transform: translateX(18px);
}

.cat-desc {
  color: var(--muted);
}

.cat-thumb {
  display: none;
}

.cat-arrow {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease, transform 500ms var(--ease-out-expo);
}

.cat-row:hover .cat-arrow,
.cat-row.is-match .cat-arrow {
  border-color: var(--cat);
  background: var(--cat);
  color: #ffffff;
  transform: rotate(45deg);
}

.cat-list.is-filtering .cat-row:not(.is-match) {
  opacity: 0.3;
}

/* Floating image that follows the cursor over the list */
.cat-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 280px;
  aspect-ratio: 4 / 3;
  margin: -105px 0 0 -140px;
  border-radius: var(--r-lg);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  box-shadow: var(--shadow-lg);
  transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(0.6) rotate(var(--pr, 0deg));
  transition: opacity 300ms ease, transform 500ms var(--ease-out-expo);
}

.cat-preview.is-visible {
  opacity: 1;
  transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(1) rotate(var(--pr, 0deg));
}

.cat-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Numbers
   ========================================================================== */
.stats {
  padding-block: clamp(56px, 7vw, 96px);
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  border-left: 1px solid var(--border-strong);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 4vw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.stat:nth-child(odd) .stat-num {
  color: var(--primary-text);
}

.stat-label {
  color: var(--muted);
}

/* ==========================================================================
   07 · Benefits — split screen
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split-half {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.split-media {
  height: 46vh;
  overflow: hidden;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.25);
  transform-origin: center;
}

.split-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 72px);
}

.split-copy h3 {
  font-size: clamp(2rem, 1.2rem + 2.2vw, 3.4rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.split-copy h3 .serif {
  color: var(--primary-text);
}

.split-copy > p:not(.section-index) {
  max-width: 440px;
  margin-top: 18px;
  color: var(--muted);
  font-size: var(--fs-lg);
}

.split-light {
  background: var(--surface);
}

.split-dark {
  background: var(--ink);
  color: var(--paper);
}

.split-dark h3,
.split-dark .tick-list li {
  color: var(--paper);
}

.split-dark h3 .serif {
  color: var(--primary);
}

.split-dark .section-index,
.split-dark .split-copy > p:not(.section-index) {
  color: color-mix(in srgb, var(--paper) 65%, transparent);
}

.tick-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
}

.tick-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-2);
  font-weight: 500;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 9px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

/* ==========================================================================
   08 · Campus — scroll zoom from framed photo to full bleed
   ========================================================================== */
.campus {
  position: relative;
}

.campus-hero {
  position: relative;
  display: grid;
  place-items: center;
  height: 100svh;
  overflow: hidden;
}

.campus-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.campus-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.campus-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 6, 0.15), rgba(10, 8, 6, 0.55));
}

.campus-title {
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-size: clamp(3.6rem, 13vw, 13rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.06em;
  text-align: center;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.campus-title .serif {
  font-weight: 400;
  color: var(--sticker-yellow);
}

.campus-tag {
  position: absolute;
  left: 50%;
  bottom: 36px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transform: translateX(-50%);
}

.campus-after {
  padding-block: clamp(64px, 8vw, 120px) clamp(48px, 6vw, 80px);
}

.campus-lede {
  max-width: 900px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1rem + 2vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.campus-lede .serif {
  color: var(--primary-text);
  font-weight: 400;
}

.campus-tiles {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
  margin-top: clamp(40px, 5vw, 64px);
}

.campus-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
}

.campus-tile:first-child {
  aspect-ratio: auto;
}

.campus-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out-expo);
}

.campus-tile:hover img {
  transform: scale(1.06);
}

.campus-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 8, 6, 0.8));
}

.campus-tile figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: grid;
  gap: 2px;
  color: #ffffff;
}

.campus-tile figcaption strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.campus-tile figcaption span {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-sm);
}

.credits {
  margin-top: 22px;
  color: var(--muted-2);
  font-size: var(--fs-xs);
}

.credits a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   09 · Community
   ========================================================================== */
.community {
  background: var(--bg-alt);
}

.community-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
}

.community-visual {
  position: relative;
}

.community-photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
}

.community-photo img {
  width: 100%;
  height: 115%;
  object-fit: cover;
}

.note-card {
  position: absolute;
  right: -28px;
  bottom: 40px;
  width: 250px;
  padding: 18px 20px;
  border: 1.5px solid #171512;
  border-radius: 6px;
  background: #fffdf8;
  color: #171512;
  box-shadow: 5px 6px 0 #171512;
  transform: rotate(3deg);
}

.note-card .stars {
  color: var(--star);
  letter-spacing: 2px;
}

.note-card p {
  margin-top: 6px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.note-card small {
  display: block;
  margin-top: 8px;
  color: #6d6558;
}

.sticker-static {
  top: -30px;
  left: -26px;
  width: 112px;
  height: 112px;
  transform: rotate(-10deg);
}

.principles {
  margin: 36px 0 0;
  padding: 0;
  border-top: 1px solid var(--text);
}

.principles li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-strong);
}

.principles li > span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--primary-text);
}

.principles h3 {
  font-size: 1.35rem;
}

.principles p {
  margin-top: 6px;
  color: var(--muted);
}

.fine-print {
  margin-top: 18px;
  color: var(--muted-2);
  font-size: var(--fs-xs);
}

/* ==========================================================================
   10 · Stories — draggable rail of pinned notes
   ========================================================================== */
.stories {
  overflow: hidden;
}

.stories-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.drag-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.stories-rail {
  margin-top: clamp(40px, 5vw, 64px);
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
  outline-offset: -4px;
}

.stories-rail::-webkit-scrollbar {
  display: none;
}

.stories-rail.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.stories-track {
  display: flex;
  gap: 32px;
  width: max-content;
  margin: 0;
  padding: 24px max(var(--gutter), calc((100vw - var(--container)) / 2)) 36px;
}

.story {
  display: flex;
  flex-direction: column;
  width: clamp(280px, 30vw, 380px);
  padding: 14px 14px 20px;
  background: #fffdf8;
  color: #171512;
  border-radius: 4px;
  box-shadow: var(--shadow-photo);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 600ms var(--ease-out-expo), box-shadow 400ms ease;
}

.story:hover {
  transform: rotate(0deg) translateY(-8px);
}

.story figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
}

.story figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.story-swap {
  align-self: flex-start;
  margin-top: 16px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: #171512;
  color: #fffdf8;
  font-size: var(--fs-xs);
  font-weight: 600;
}

.story-swap span {
  color: var(--sticker-yellow);
}

.story blockquote {
  flex: 1;
  margin: 14px 0 0;
  font-size: 1.4rem;
  line-height: 1.2;
}

.story footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: #6d6558;
  font-size: var(--fs-sm);
}

.story footer img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
}

.story footer strong {
  display: block;
  color: #171512;
}

/* ==========================================================================
   11 · FAQ
   ========================================================================== */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.faq-lede {
  max-width: 380px;
  margin-top: 18px;
  color: var(--muted);
  font-size: var(--fs-lg);
}

.faq-list {
  border-top: 1px solid var(--text);
}

.faq-item {
  border-bottom: 1px solid var(--border-strong);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
  transition: color 300ms ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--primary-text);
}

/* Plus that morphs into a minus */
.faq-item summary i {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  transition: background-color 300ms ease, border-color 300ms ease, transform 500ms var(--ease-out-expo);
}

.faq-item summary i::before,
.faq-item summary i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  margin: -0.75px 0 0 -7px;
  background: currentColor;
  transition: transform 500ms var(--ease-out-expo);
}

.faq-item summary i::after {
  transform: rotate(90deg);
}

.faq-item[open] summary i {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  transform: rotate(180deg);
}

.faq-item[open] summary i::after {
  transform: rotate(0deg);
}

.faq-answer {
  overflow: hidden;
}

.faq-answer p {
  max-width: 560px;
  padding-bottom: 26px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   12 · CTA
   ========================================================================== */
.cta {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 92svh;
  overflow: hidden;
  isolation: isolate;
  color: #ffffff;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.cta-bg img {
  width: 100%;
  height: 120%;
  object-fit: cover;
}

.cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(18, 17, 15, 0.92) 25%, rgba(18, 17, 15, 0.55));
}

.cta-inner {
  position: relative;
  padding-block: var(--section-space);
}

.cta .section-index {
  color: rgba(255, 255, 255, 0.65);
}

.cta-title {
  max-width: 900px;
  color: #ffffff;
  font-size: clamp(3.2rem, 1.6rem + 6.5vw, 8.4rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.cta-title .serif {
  color: var(--primary);
  font-weight: 400;
}

.cta-circle {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  width: clamp(150px, 16vw, 210px);
  aspect-ratio: 1;
  margin-top: calc(clamp(150px, 16vw, 210px) / -2);
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1rem + 0.8vw, 1.7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  text-align: center;
  transition: background-color 300ms ease;
}

.cta-circle:hover {
  background: #ffffff;
  color: #171512;
}

.cta-circle .icon {
  width: 28px;
  height: 28px;
  transition: transform 500ms var(--ease-out-expo);
}

.cta-circle:hover .icon {
  transform: rotate(45deg);
}

.cta-sub {
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-lg);
}

.cta-sub .serif {
  color: #ffffff;
  font-size: 1.15em;
}
