/* ============================================================
   VINCE TARDY — Editorial Grotesk
   Substrate: near-white. Ink: carbon. Dark blocks: pitch.
   One accent: hot orange-red. Macro lowercase type, slash motifs,
   soft-cornered media plates. Motion: transform + opacity only.
   ============================================================ */

:root {
  --paper: #f6f5f2;
  --paper-2: #eceae5;
  --ink: #0e0e0c;
  --ink-soft: #6b6960;
  --pitch: #150400;
  --pitch-2: #21100b;
  --on-pitch: #f6f5f2;
  --on-pitch-soft: #8d8b85;
  --accent: #ff3b14;

  --line: rgba(14, 14, 12, 0.14);
  --line-dark: rgba(246, 245, 242, 0.16);

  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Durations. UI feedback stays under 300ms. */
  --t-press: 140ms;
  --t-hover: 200ms;
  --t-move: 260ms;
  --t-reveal: 500ms;

  --r: 14px;

  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --head-h: 3.75rem;
  --pad-y: clamp(5rem, 11vw, 10rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 1rem);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Primitives ---------- */
/* Metadata: sans, uppercase, generously tracked. Tabular figures keep
   the header clock and scroll readout from jittering. */
.meta {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.tick { color: var(--accent); }
.slash { color: var(--accent); font-weight: 500; }

.label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-soft);
}
.label--dot .dot {
  width: 9px; height: 9px;
  background: var(--accent);
  border-radius: 2px;
  flex: none;
}

.link-accent {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.link-accent:active { transform: scale(0.97); }

/* Display type — macro lowercase grotesk */
.display {
  font-weight: 600;
  font-stretch: 100%;
  line-height: 0.94;
  letter-spacing: -0.032em;
  text-transform: lowercase;
}
.display--xl { font-size: clamp(2.6rem, 7.4vw, 7.4rem); }
.display--lg { font-size: clamp(2.2rem, 5.6vw, 5.4rem); }

.d-row { display: block; }
.d-row--push { padding-left: clamp(0rem, 12vw, 12rem); }
.d-row--end { text-align: right; }

/* ---------- Header ---------- */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--head-h);
  color: var(--on-pitch);
  transition: transform 300ms var(--ease-out), background-color 300ms linear, color 300ms linear;
  will-change: transform;
}
.site-head.is-hidden { transform: translateY(-100%); }
.site-head.is-solid {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.site-head__inner {
  height: 100%;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: transform var(--t-press) var(--ease-out);
}
.brand:active { transform: scale(0.97); }

/* VT shield. Fixed height, width follows the 244:283 ratio.
   Takes currentColor from .site-head, so it flips with the header. */
.brand__glyph {
  height: 26px;
  width: auto;
  flex: none;
  color: var(--on-pitch);
  transition: color 300ms linear;
}
.site-head.is-solid .brand__glyph { color: var(--ink); }
.brand__name {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.015em;
}

.head-meta {
  display: flex;
  gap: 0.5rem;
  opacity: 0.72;
}
.head-meta__sep { opacity: 0.45; }

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 1.5rem;
}
.site-nav a { opacity: 0.75; transition: opacity var(--t-hover) ease, color var(--t-hover) ease; }

.head-cta {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.head-cta:active { transform: scale(0.97); }

@media (max-width: 900px) {
  .head-meta { display: none; }
}

/* ---------- 00 Hero ---------- */
.hero {
  position: relative;
  background: var(--pitch);
  color: var(--on-pitch);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0 0 auto 0;
  height: 82%;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 34%;
  transform: scale(1.04);
  animation: heroDrift 2.4s var(--ease-out) forwards;
}
@keyframes heroDrift { to { transform: scale(1); } }

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21,4,0,0.72) 0%, rgba(21,4,0,0) 34%),
    linear-gradient(180deg, rgba(21,4,0,0) 44%, rgba(21,4,0,0.78) 84%, var(--pitch) 100%);
}

.hero__foot {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) clamp(1rem, 2.4vw, 2rem);
  width: 100%;
}

.hero__tag {
  color: var(--on-pitch-soft);
  margin-bottom: clamp(0.5rem, 1.6vw, 1.2rem);
}

.hero__rot {
  position: absolute;
  right: calc(var(--gutter) - 0.4rem);
  bottom: 30%;
  transform-origin: 100% 100%;
  transform: rotate(-90deg) translateX(100%);
  color: var(--on-pitch-soft);
  white-space: nowrap;
}

/* Giant wordmark */
.wordmark {
  font-weight: 700;
  font-stretch: 100%;
  font-size: clamp(3.4rem, 15.4vw, 15.5rem);
  line-height: 0.84;
  letter-spacing: -0.045em;
  color: var(--accent);
  text-transform: lowercase;
}
/* overflow:hidden is the reveal mask for the lineUp slide. Archivo's descenders
   (the y tail) hang deeper than the old 0.06em, so the mask was shearing them.
   Pad the box enough to clear the descender, then pull that padding back out of
   layout with a matching negative margin so the hero's bottom spacing is
   unchanged. */
.wordmark__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}
.wordmark__in {
  display: block;
  transform: translateY(105%);
  animation: lineUp 1.05s var(--ease-out) forwards;
  animation-delay: calc(0.12s + var(--i, 0) * 0.09s);
}
.wordmark .tick { color: var(--on-pitch); }

@keyframes lineUp { to { transform: translateY(0); } }

@media (max-width: 700px) {
  .hero__rot { display: none; }
  .hero__media { height: 74%; }
}

/* ---------- 01 Statement ---------- */
.statement {
  padding: var(--pad-y) var(--gutter);
}

.statement__grid {
  margin-top: clamp(2.5rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 860px) {
  .statement__grid { grid-template-columns: 1fr; }
}

.statement__side { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }

.sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sectors li {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
}

.statement__body {
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- 02 Method ---------- */
.method {
  padding: 0 var(--gutter) var(--pad-y);
}
.method__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 860px) {
  .method__grid { grid-template-columns: 1fr; }
}

.method__list { display: flex; flex-direction: column; gap: 1.5rem; }

.trail { border-top: 1px solid var(--line); }
.trail__item { border-bottom: 1px solid var(--line); }

.trail__head {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.15rem 0;
  text-align: left;
}
.trail__no {
  min-width: 2ch;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: rgba(14, 14, 12, 0.18);
  transform: translateY(0.08em);
}
.trail__name {
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
  transition: color var(--t-hover) ease, transform var(--t-move) var(--ease-out);
}
.trail__head { transition: transform var(--t-press) var(--ease-out); }
.trail__head:active { transform: scale(0.99); }

.trail__item.is-open .trail__name {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.trail__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms var(--ease-in-out);
}
.trail__item.is-open .trail__panel { grid-template-rows: 1fr; }
.trail__panel > p {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 46ch;
  opacity: 0;
  transition: opacity 220ms var(--ease-out) 60ms;
}
.trail__item.is-open .trail__panel > p {
  opacity: 1;
  padding-bottom: 1.15rem;
}

.method__note {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 46ch;
}

/* Media plates */
.plate {
  display: block;
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--paper-2);
}
.plate img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 500ms var(--ease-out);
}
.plate--tall img { aspect-ratio: 4 / 5; }

.plate video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.plate__cap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  color: var(--ink-soft);
}

/* ---------- Method stage: SVG scenes ---------- */
.stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r);
  background: var(--paper-2);
  overflow: hidden;
}

.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 220ms var(--ease-out),
    transform 220ms var(--ease-out),
    visibility 0s linear 220ms;
}
.scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 300ms var(--ease-out) 100ms,
    transform 400ms var(--ease-out) 100ms,
    visibility 0s;
}

/* Scene palette — poster primaries around the site accent */
.scene {
  --sc-red: var(--accent);
  --sc-blue: #2d43ff;
  --sc-yellow: #ffbe2e;
}
.scene * { transform-box: fill-box; transform-origin: center; }

.sc-fill-red    { fill: var(--sc-red); }
.sc-fill-blue   { fill: var(--sc-blue); }
.sc-fill-yellow { fill: var(--sc-yellow); }
.sc-fill-ink    { fill: var(--ink); }
.sc-frame       { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; }
.sc-stroke-ink  { stroke: var(--ink); stroke-width: 2.5; }
.sc-hair        { stroke: var(--line); stroke-width: 1.5; }
.sc-orbit-path  { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 2 9; opacity: 0.45; }
.sc-cursor      { fill: var(--ink); }

/* Scene 1 — Brief */
.sc-star-spin {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: sc-spin 18s linear infinite;
}
.sc-star-spin path { animation: sc-pulse 2.8s var(--ease-in-out) infinite alternate; }
.sc-orbit {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: sc-spin 9s linear infinite;
}

/* Scene 2 — Stylescapes */
.sc-fan {
  transform-box: view-box;
  transform-origin: 50% 82%;
}
.sc-fan--a { animation: sc-fan-a 5s var(--ease-in-out) infinite; }
.sc-fan--b { animation: sc-fan-b 5s var(--ease-in-out) infinite; }
.sc-fan--c { animation: sc-fan-c 5s var(--ease-in-out) infinite; }
.sc-bob    { animation: sc-fan-dot 5s var(--ease-in-out) infinite; }

/* Scene 3 — Prototype */
.sc-float--1 { animation: sc-bob 3.4s var(--ease-in-out) infinite alternate; }
.sc-float--2 { animation: sc-bob 4.2s var(--ease-in-out) 0.4s infinite alternate-reverse; }
.sc-float--3 { animation: sc-bob 3.8s var(--ease-in-out) 0.8s infinite alternate; }
.sc-cursor   { animation: sc-blink 1.1s steps(2, jump-none) infinite; }

/* Scene 4 — Live URL */
.sc-ring { fill: none; stroke-width: 3; opacity: 0; }
.sc-ring--1 { stroke: var(--sc-red);    animation: sc-ring 3.6s var(--ease-out) infinite; }
.sc-ring--2 { stroke: var(--sc-blue);   animation: sc-ring 3.6s var(--ease-out) 1.2s infinite; }
.sc-ring--3 { stroke: var(--sc-yellow); animation: sc-ring 3.6s var(--ease-out) 2.4s infinite; }
.sc-blink   { animation: sc-blink 1.4s steps(2, jump-none) infinite; }
.sc-nudge   { animation: sc-nudge 1.8s var(--ease-in-out) infinite alternate; }

/* Scene 5 — Your system */
.sc-tile    { animation: sc-breathe 3.6s var(--ease-in-out) infinite alternate; }
.sc-tile--2 { animation-delay: 0.3s; }
.sc-tile--3 { animation-delay: 0.6s; }
.sc-tile--4 { animation-delay: 0.9s; }
.sc-tile--5 { animation-delay: 1.2s; }
.sc-tile--6 { animation-delay: 1.5s; }
.sc-shuttle { animation: sc-shuttle 4.5s var(--ease-in-out) infinite alternate; }

@keyframes sc-spin    { to { transform: rotate(360deg); } }
@keyframes sc-pulse   { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes sc-bob     { from { transform: translateY(-5px); } to { transform: translateY(6px); } }
@keyframes sc-blink   { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.15; } }
/* Fan cycle: closed -> sweep open with overshoot -> hold -> snap shut */
@keyframes sc-fan-a {
  0%        { transform: rotate(-4deg); }
  28%       { transform: rotate(-34deg) translateY(-10px); }
  38%, 72%  { transform: rotate(-29deg) translateY(-8px); }
  92%, 100% { transform: rotate(-4deg); }
}
@keyframes sc-fan-b {
  0%        { transform: rotate(0deg); }
  28%       { transform: rotate(-2deg) translateY(-16px); }
  38%, 72%  { transform: rotate(-1deg) translateY(-13px); }
  92%, 100% { transform: rotate(0deg); }
}
@keyframes sc-fan-c {
  0%        { transform: rotate(4deg); }
  28%       { transform: rotate(34deg) translateY(-10px); }
  38%, 72%  { transform: rotate(29deg) translateY(-8px); }
  92%, 100% { transform: rotate(4deg); }
}
/* The marker dot pops while the fan is open */
@keyframes sc-fan-dot {
  0%, 12%   { transform: scale(1); }
  32%, 68%  { transform: scale(1.9); }
  88%, 100% { transform: scale(1); }
}
@keyframes sc-ring    { 0% { transform: scale(0.55); opacity: 0.9; } 70% { opacity: 0.25; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes sc-nudge   { from { transform: translate(0, 0); } to { transform: translate(-16px, -12px); } }
@keyframes sc-breathe { from { transform: scale(1); } to { transform: scale(0.93); } }
@keyframes sc-shuttle { from { transform: translateX(0); } to { transform: translateX(224px); } }

@media (prefers-reduced-motion: reduce) {
  .scene, .scene * { animation: none !important; }
  .scene { transition: opacity 200ms ease, visibility 0s; transform: none; }
}

/* ---------- Client strip ---------- */
/* Seamless crawl: two identical tracks side by side, each translating a full
   -100% of its own width. When track 1 clears the viewport, track 2 is exactly
   where track 1 started, so the loop has no seam. padding-right matches the gap
   so the spacing across the join reads the same as the spacing inside it. */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  overflow: hidden;
  padding: 1.35rem 0;
}
.strip__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  flex: none;
  min-width: 100%;
  animation: stripRun 96s linear infinite;
  will-change: transform;
}
.strip__item {
  font-size: clamp(0.95rem, 1.35vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--ink);
}
.strip__item--etc { color: var(--ink-soft); font-weight: 700; }
.strip__sep { color: var(--accent); font-size: 1rem; }
@keyframes stripRun { to { transform: translateX(-100%); } }
.strip:hover .strip__track { animation-play-state: paused; }

/* ---------- 03 Work (dark) ---------- */
.work {
  background: var(--pitch);
  color: var(--on-pitch);
  /* No bottom padding: the About section below supplies its own top padding and
     a divider border. Doubling them left a tall empty band framed by two
     hairlines that read as a phantom row. */
  padding: var(--pad-y) var(--gutter) 0;
  border-radius: var(--r) var(--r) 0 0;
}

.work__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.work__intro { color: var(--on-pitch-soft); }

.chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: clamp(2rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}
/* The pill is a single element that slides between chips — transform only,
   so switching sectors reads as one continuous move rather than a repaint. */
.chips__pill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-radius: 999px;
  background: var(--accent);
  transform: translate(0, 0);
  pointer-events: none;
  z-index: 0;
  transition:
    transform var(--t-move) var(--ease-drawer),
    width var(--t-move) var(--ease-drawer),
    opacity 160ms ease;
}
.chips__pill.is-instant { transition: none; }

.chip {
  position: relative;
  z-index: 1;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--on-pitch-soft);
  transition:
    color var(--t-hover) ease,
    border-color var(--t-hover) ease,
    transform var(--t-press) var(--ease-out);
}
.chip:active { transform: scale(0.97); }
.chip.is-active {
  border-color: transparent;
  color: #fff;
}

/* Typographic index — type is the subject, thumbnails are footnotes */
.index { border-top: 1px solid var(--line-dark); }
/* Last row skips its divider so the list doesn't stack a hairline against the
   About section's top border at the seam. */
.index .entry:last-child { border-bottom: 0; }
.entry {
  border-bottom: 1px solid var(--line-dark);
  transition:
    transform var(--t-move) var(--ease-out),
    opacity var(--t-hover) var(--ease-out);
}
.entry[hidden] { display: none; }
/* Filter states. Exit is faster than enter — the system responds, then presents. */
.entry.is-exiting { opacity: 0; transform: translateY(-4px); }
.entry.is-entering { opacity: 0; transform: translateY(10px); }
.entry.is-settling { transition: none; }

.entry__link {
  display: grid;
  grid-template-columns: clamp(7rem, 11vw, 10.5rem) minmax(0, 1fr) auto auto 1.5rem;
  align-items: center;
  column-gap: clamp(1.25rem, 2.6vw, 2.5rem);
  padding: clamp(1.5rem, 2.6vw, 2.25rem) 0;
  transition: padding-left var(--t-move) var(--ease-out);
}

/* Thumbnail: present but subordinate — muted until intent */
.entry__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  background: var(--pitch);
}
/* Resting: desaturated and dimmed. Hover: full colour, full opacity. */
.entry__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: grayscale(1);
  transform: scale(1.04);
  transition:
    opacity 260ms var(--ease-out),
    filter 300ms var(--ease-out),
    transform 450ms var(--ease-out);
}

.entry__no { display: none; }

.entry__main { display: block; min-width: 0; }

.entry__title {
  display: block;
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  transition: color var(--t-hover) ease;
}

.entry__line {
  display: block;
  margin-top: 0.55rem;
  color: var(--on-pitch-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 54ch;
}

.entry__cue {
  color: var(--on-pitch-soft);
  white-space: nowrap;
}

.entry__chip {
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 0.65rem;
  color: var(--on-pitch-soft);
  white-space: nowrap;
}
.entry__chip--delivered {
  border-color: var(--accent);
  color: var(--accent);
}

.entry__arrow {
  justify-self: end;
  color: var(--accent);
  font-size: 1.1rem;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}

@media (max-width: 1000px) {
  .entry__link {
    grid-template-columns: clamp(6rem, 18vw, 9rem) minmax(0, 1fr) auto;
    row-gap: 0.9rem;
  }
  .entry__cue { grid-column: 2 / -1; grid-row: 2; white-space: normal; }
  .entry__arrow { display: none; }
}
@media (max-width: 620px) {
  .entry__link { grid-template-columns: minmax(0, 1fr); }
  .entry__thumb { grid-row: 1; max-width: 12rem; }
  .entry__main { grid-row: 2; }
  .entry__cue { grid-column: 1; grid-row: 3; }
  .entry__chip { grid-column: 1; grid-row: 4; justify-self: start; }
}

.index__empty { color: var(--on-pitch-soft); padding-top: 2rem; }

/* Testimonial */
.quote {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
  max-width: 46ch;
}
.quote__text {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.quote__attr { color: var(--on-pitch-soft); margin-top: 1rem; }

/* ---------- 04 About (dark) ---------- */
.about {
  background: var(--pitch);
  color: var(--on-pitch);
  padding: 0 var(--gutter) var(--pad-y);
}

.about__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding-top: var(--pad-y);
  border-top: 1px solid var(--line-dark);
}

.about__grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 1000px) {
  .about__grid { grid-template-columns: 1fr 1fr; }
  .about__body { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .about__grid { grid-template-columns: 1fr; }
}

.about__side { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.about__side .label { color: var(--on-pitch-soft); }
.about__pull {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.about .plate { background: var(--pitch-2); }
.about .plate img { opacity: 0.9; }
.about .plate__cap { color: var(--on-pitch-soft); }

.about__body { display: flex; flex-direction: column; gap: 1.25rem; }
.about__body p {
  color: var(--on-pitch-soft);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 56ch;
}
.about__body a {
  color: var(--on-pitch);
  border-bottom: 1px solid var(--line-dark);
  transition: color var(--t-hover) ease, border-color var(--t-hover) ease;
}
.about__body a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- 05 Contact ---------- */
.contact {
  background: var(--paper);
  padding: var(--pad-y) var(--gutter);
  border-radius: var(--r) var(--r) 0 0;
}

.contact__grid {
  margin-top: clamp(2.5rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

.contact__body {
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 58ch;
}

.contact__action { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow: hidden;
  transition: transform var(--t-press) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 280ms var(--ease-in-out);
}
.btn__label, .btn__arrow { position: relative; z-index: 1; }
.btn__arrow { transition: transform var(--t-hover) var(--ease-out); }

.contact__meta { color: var(--ink-soft); }
.contact__meta a {
  border-bottom: 1px solid var(--line);
  transition: color var(--t-hover) ease, border-color var(--t-hover) ease;
}
.contact__meta a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Contact page: form + booking ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 38rem;
}

.field { display: flex; flex-direction: column; gap: 0.6rem; }
.field > label { color: var(--ink-soft); }

/* Compartment lines, not boxes: the underline is the only chrome. */
.field input,
.field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.6rem 0;
  transition: border-color var(--t-hover) ease;
  -webkit-appearance: none;
  appearance: none;
}
.field input:hover,
.field textarea:hover { border-bottom-color: var(--ink-soft); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 8.5rem; }

/* Honeypot: off-canvas rather than display:none, which some bots detect. */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__submit { align-self: flex-start; }

.book {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.75;
}
.book__link { margin-top: 1rem; }

/* Success page: one column, no grid. */
.contact--single .contact__grid { grid-template-columns: minmax(0, 1fr); }

/* Standalone contact/thanks pages have no hero, so they clear the fixed header
   themselves and drop the rounded top the homepage section uses as a seam. */
.contact--page {
  padding-top: calc(var(--head-h) + var(--pad-y));
  border-radius: 0;
}

/* ---------- Footer ---------- */
.foot {
  background: var(--pitch);
  color: var(--on-pitch);
  padding-top: clamp(3rem, 6vw, 5rem);
}

.foot__grid {
  padding: 0 var(--gutter) clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}
@media (max-width: 780px) { .foot__grid { grid-template-columns: 1fr 1fr; } }

.foot__col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: var(--on-pitch-soft);
}
.foot__col a { transition: color var(--t-hover) ease; }
.foot__col a:hover { color: var(--accent); }
.foot__brand { color: var(--on-pitch); }
/* Sister line carries an inline link, so it opts out of the column's flex
   stacking and lays out as normal prose. */
.foot__sister { display: block; line-height: 1.7; }
.foot__sister a {
  color: var(--on-pitch);
  border-bottom: 1px solid var(--line-dark);
  transition: color var(--t-hover) ease, border-color var(--t-hover) ease;
}
.foot__sister a:hover { border-color: var(--accent); }

/* End band */
.band {
  border-top: 1px solid var(--line-dark);
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--gutter) clamp(1rem, 2vw, 1.5rem);
  overflow: hidden;
}
.band__type {
  font-weight: 700;
  font-size: clamp(1.9rem, 8.6vw, 8.6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--accent);
  white-space: nowrap;
}
.band__type .tick { color: var(--on-pitch); }

.band__foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--on-pitch-soft);
  padding-top: clamp(1rem, 2vw, 1.75rem);
}
.band__foot a:hover { color: var(--accent); }

/* ---------- Hover states (pointer devices only) ---------- */
@media (hover: hover) and (pointer: fine) {
  .link-accent:hover { opacity: 0.62; }
  .site-nav a:hover { opacity: 1; color: var(--accent); }
  .head-cta:hover { opacity: 0.65; }

  .trail__head:hover .trail__name { color: var(--ink); transform: translateX(4px); }

  .method__plate:hover .plate img,
  .portrait:hover .plate img { transform: scale(1.06); }

  .chip:hover:not(.is-active) { color: var(--on-pitch); border-color: var(--on-pitch-soft); }

  .entry__link:hover { padding-left: clamp(0.5rem, 1.4vw, 1.25rem); }
  .entry__link:hover .entry__thumb img {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1);
  }
  .entry__link:hover .entry__title { color: var(--accent); }
  .entry__link:hover .entry__arrow { opacity: 1; transform: none; }

  .btn:hover::before { transform: scaleY(1); }
  .btn:hover .btn__arrow { transform: translate(3px, -3px); }
}

/* ---------- Case study pages ---------- */
.case-hero {
  padding: calc(var(--head-h) + clamp(3rem, 8vw, 7rem)) var(--gutter) clamp(2.5rem, 5vw, 4rem);
}
.case-crumb { color: inherit; }
.case-crumb__sep { opacity: 0.4; }

.case-hero .display { margin-top: 1.5rem; }

.case-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.case-chip {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.35em 0.9em;
}

.case-deck {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 52ch;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.45;
  color: var(--ink-soft);
}

.case-figure {
  padding: clamp(1.5rem, 3.5vw, 3rem) var(--gutter);
}
.case-figure .plate img { aspect-ratio: 16 / 9; }

.case-beat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 58ch) minmax(0, 0.4fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter);
  align-items: start;
}
.case-beat .label { grid-column: 1; }
.case-body {
  grid-column: 2;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.75;
}

.case-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  padding: clamp(1.5rem, 3.5vw, 3rem) var(--gutter);
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter);
  border-block: 1px solid var(--line);
  margin: clamp(1.5rem, 3.5vw, 3rem) 0;
}
.case-stat__no {
  font-size: clamp(2.4rem, 5.4vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.case-stat__no .tick { font-size: 0.5em; vertical-align: 0.5em; }
.case-stat .meta { margin-top: 0.75rem; color: var(--ink-soft); }

.case-next {
  padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(4rem, 9vw, 8rem);
}
.case-next__link {
  display: inline-flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
  color: inherit;
}
.case-next__link .meta { color: var(--ink-soft); }
.case-next__arrow {
  display: inline-block;
  color: var(--accent);
  transition: transform var(--t-move) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .case-next__link:hover .case-next__arrow { transform: translate(6px, -6px); }
}

@media (max-width: 860px) {
  .case-beat { grid-template-columns: 1fr; gap: 1rem; }
  .case-beat .label, .case-body { grid-column: 1; }
  .case-duo { grid-template-columns: 1fr; }
  .case-stats { grid-template-columns: 1fr; }
}

/* ---------- Reveals ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: none; }

[data-reveal-child] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 50ms);
}
[data-reveal].is-in [data-reveal-child] { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .wordmark__in { transform: none; }
  .hero__media img { animation: none; transform: none; }
  .strip__track { animation: none; }
  [data-reveal], [data-reveal-child] { opacity: 1; transform: none; }
  /* Reduced motion keeps opacity cues, drops the movement. */
  .entry, .chips__pill { transition: opacity 150ms ease !important; }
  .entry.is-exiting, .entry.is-entering { transform: none; }
}
