/* BlackGrid — direction: the name as a monument (tasteskill seed 1044473131)
   One face (Switzer), one ground, one ink, one accent. The grid is shown as filled modules
   separated by ground, never as lines. */

@font-face { font-family: 'Switzer'; src: url('assets/fonts/switzer-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('assets/fonts/switzer-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('assets/fonts/switzer-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('assets/fonts/switzer-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #0c0d0b;          /* obsidian */
  --surface: #181a16;     /* one tone step up */
  --surface-2: #242721;   /* hover step */
  --ink: #ecebe6;         /* warm white, low chroma */
  --muted: #a5a39b;       /* secondary notes only */
  --accent: #c8f031;      /* electric lime: the action, the selected module */
  --accent-ink: #0c0d0b;

  --font: "Switzer", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1.05rem + 1vw, 2rem);
  --step-head: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(7.5rem, 13vw, 13rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.5; letter-spacing: -0.005em; font-kerning: normal; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
a { color: inherit; }
:target { scroll-margin-top: 2rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { padding-inline: var(--margin); }

/* ---------- type roles ---------- */
.h2 { font-size: var(--step-head); line-height: 1.05; letter-spacing: -0.03em; }
.h3 { font-size: var(--step-body); line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.5rem; background: var(--accent); color: var(--accent-ink); font-weight: 500; font-size: 1.0625rem; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button-small { min-height: 2.75rem; padding: 0 1.1rem; font-size: 0.9375rem; }
.button-dark { background: var(--bg); color: var(--ink); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--ink); color: var(--bg); }
  .button-dark:hover { background: var(--accent); color: var(--accent-ink); }
  .link:hover { text-decoration-color: currentColor; }
  .link-plain:hover { color: var(--accent); }
}
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { left: var(--margin); top: var(--margin); width: auto; height: auto; clip-path: none; z-index: 10; padding: 0.75rem 1rem; background: var(--accent); color: var(--accent-ink); }

/* =========================================================
   HERO: the name, split across a night street grid
   ========================================================= */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: 0 var(--margin); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--bg); }
.hero-media video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(0.9); transform: scale(1.06); transform-origin: 50% 60%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: rgba(12, 13, 11, 0.38); }

.nav { position: absolute; top: var(--margin); right: var(--margin); z-index: 3; display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); font-size: 0.9375rem; font-weight: 500; }
.nav-toggle { display: none; min-height: 2.75rem; padding: 0 1rem; background: var(--ink); color: var(--bg); font-weight: 500; }

.hero-title { grid-row: 1 / 4; grid-column: 1; display: grid; grid-template-rows: subgrid; }
.hero-copy { grid-column: 1; }
.hero-title .line { font-size: clamp(7rem, 19.5vw, 22rem); font-weight: 600; letter-spacing: -0.055em; line-height: 0.82; }
.hero-l1 { grid-row: 1; justify-self: start; margin-top: clamp(4.5rem, 7vw, 6.5rem); margin-left: -0.05em; }
.hero-l2 { grid-row: 3; justify-self: end; margin-bottom: clamp(0.5rem, 1.2vw, 1.25rem); margin-right: -0.02em; }

.hero-copy { grid-row: 2; align-self: center; margin-left: calc((100% + var(--gutter)) / 12 * 3); max-width: 30rem; display: grid; gap: 2rem; justify-items: start; padding-block: 2rem; }
.hero-lede { font-size: max(1.1875rem, var(--step-body)); max-width: 30ch; line-height: 1.4; font-weight: 500; }

/* masked line reveal: the signature move */
.lines .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.lines [data-line] { display: block; }

/* =========================================================
   CAPABILITIES: one-size name columns + the module plan
   ========================================================= */
.caps { padding-block: var(--section); }
.caps-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1.5rem; align-items: start; }
.caps-head { grid-column: 1 / 13; grid-row: 1; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; padding-bottom: clamp(3rem, 6vw, 6rem); }
.caps-head .h2 { grid-column: 1 / 4; }
.caps-intro { grid-column: 4 / 8; max-width: 36ch; }
.caps-desc { grid-column: 10 / 13; grid-row: 2; align-self: start; min-height: 5.5em; padding-top: 2.6rem; }

.group { display: contents; }
.group-list { grid-row: 2; padding-bottom: 1.5rem; }
.group[data-group="pages"] .group-list { grid-column: 1 / 4; }
.group[data-group="software"] .group-list { grid-column: 4 / 7; }
.group[data-group="systems"] .group-list { grid-column: 7 / 10; }
.group-name { font-size: 1.0625rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 1.25em; }
.parts { display: grid; }
.part { display: block; width: 100%; padding: 0.3em 0; font-size: 1.0625rem; line-height: 1.25; color: var(--muted); transition: color var(--t-hover) ease; }
.part[aria-pressed="true"] { color: var(--accent); }
.part:hover, .part:focus-visible, .part.is-hot { color: var(--ink); }
.part[aria-pressed="true"]:hover { color: var(--accent); }
.group-sum { display: none; }

/* the plan: three bands of 6 x 4 modules, tiled like a floor plan */
.band { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, 1fr); gap: 4px; aspect-ratio: 6 / 4; }
.group .band { grid-row: 3; }
.group[data-group="pages"] .band { grid-column: 1 / 4; }
.group[data-group="software"] .band { grid-column: 4 / 7; }
.group[data-group="systems"] .band { grid-column: 7 / 10; }
.band i { position: relative; display: flex; align-items: flex-end; padding: 0.5rem 0.6rem; font-style: normal; font-size: 0.8125rem; line-height: 1.1; color: var(--muted); overflow: hidden; background: var(--surface); transition: background-color var(--t-ui) ease, transform var(--t-press) var(--ease-out); cursor: pointer; }
.band i.is-hot { background: var(--surface-2); }
.band i.is-on { background: var(--accent); color: var(--accent-ink); }
.band i.is-hot { color: var(--ink); }
.band i:active { transform: scale(0.97); }
.band-a i:nth-child(1) { grid-area: 1 / 1 / 3 / 5; }
.band-a i:nth-child(2) { grid-area: 1 / 5 / 3 / 7; }
.band-a i:nth-child(3) { grid-area: 3 / 1 / 5 / 3; }
.band-a i:nth-child(4) { grid-area: 3 / 3 / 4 / 5; }
.band-a i:nth-child(5) { grid-area: 4 / 3 / 5 / 5; }
.band-a i:nth-child(6) { grid-area: 3 / 5 / 5 / 7; }
.band-b i:nth-child(1) { grid-area: 1 / 1 / 5 / 3; }
.band-b i:nth-child(2) { grid-area: 1 / 3 / 3 / 7; }
.band-b i:nth-child(3) { grid-area: 3 / 3 / 4 / 5; }
.band-b i:nth-child(4) { grid-area: 3 / 5 / 4 / 7; }
.band-b i:nth-child(5) { grid-area: 4 / 3 / 5 / 6; }
.band-b i:nth-child(6) { grid-area: 4 / 6 / 5 / 7; }
.band-c i:nth-child(1) { grid-area: 1 / 1 / 3 / 4; }
.band-c i:nth-child(2) { grid-area: 1 / 4 / 2 / 7; }
.band-c i:nth-child(3) { grid-area: 2 / 4 / 3 / 7; }
.band-c i:nth-child(4) { grid-area: 3 / 1 / 5 / 3; }
.band-c i:nth-child(5) { grid-area: 3 / 3 / 5 / 5; }
.band-c i:nth-child(6) { grid-area: 3 / 5 / 5 / 7; }

.brief { grid-column: 10 / 13; grid-row: 3; align-self: end; display: grid; gap: 0.75rem; }
.brief-text { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; }
.brief-link { justify-self: start; font-weight: 500; }

/* =========================================================
   SELECTED WORK: title torn at the seam
   ========================================================= */
.work { overflow-x: clip; }
.work-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1rem; align-items: end; padding-bottom: clamp(3rem, 5vw, 5rem); }
.work-head .h2 { grid-column: 1 / 5; }
.work-head p { grid-column: 5 / 10; max-width: 40ch; }

/* default (no JS, reduced motion, tablet, phone): projects stacked */
.work-stage { display: grid; gap: clamp(4rem, 8vw, 7rem); padding-inline: var(--margin); }
.project { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.pane { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #131512; }
.frag { position: absolute; left: 0; top: 0; width: 720px; height: 900px; transform-origin: 0 0; transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--s, 0.5)); }
.project-title { grid-column: 1 / -1; padding-top: 1.5rem; }
.pt { font-size: clamp(2.75rem, 1.2rem + 6vw, 7rem); line-height: 0.9; letter-spacing: -0.045em; }
.pt-b { display: none; }
.pt-meta { margin-top: 1rem; max-width: 46ch; }

/* torn mode: JS adds .is-torn on wide screens with motion allowed */
.work-track.is-torn { height: calc(var(--n, 4) * 90svh + 100svh); }
.is-torn .work-stage { position: sticky; top: 0; height: 100svh; padding: 0; display: block; overflow: hidden; }
.is-torn .project { position: absolute; inset: 0; display: block; pointer-events: none; }
.is-torn .pane { position: absolute; top: 0; bottom: 0; width: 50%; aspect-ratio: auto; z-index: 1; will-change: transform; }
.is-torn .pane-l { left: 0; }
.is-torn .pane-r { left: 50%; }
.is-torn .project-title { position: absolute; left: 0; right: 0; top: 50%; z-index: 3; padding: 0; text-align: center; display: grid; justify-items: center; transform: translateY(-50%); }
.is-torn .pt { display: grid; width: 100%; font-size: clamp(5rem, 10vw, 9.5rem); line-height: 0.86; white-space: nowrap; }
/* each half of the title carries its own band, so the seam tears the band too and the interface above and below stays readable */
.is-torn .pt > span { grid-area: 1 / 1; display: block; padding: 0.12em var(--margin) 0.16em; background: var(--bg); will-change: transform; }
.is-torn .pt-a { clip-path: inset(0 50% 0 0); }
.is-torn .pt-b { display: block; clip-path: inset(0 0 0 50%); }
.is-torn .pt-meta { margin: 0; padding: 0.9rem 1.25rem; max-width: none; background: var(--bg); will-change: transform, opacity; }

/* --- interface fragments (data-ui: the product's own look) --- */
.ui { width: 720px; height: 900px; background: #131512; color: #e6e6e3; font-family: var(--font); font-size: 15px; line-height: 1.35; padding: 32px; display: flex; flex-direction: column; gap: 22px; letter-spacing: 0; }
.ui b { font-weight: 600; }
.ui-top { display: flex; align-items: baseline; gap: 18px; font-size: 15px; color: #9c998f; }
.ui-top b { color: #ecebe6; font-size: 26px; letter-spacing: -0.02em; }
.ui-pill { margin-left: auto; background: #20231e; color: var(--tint); padding: 6px 12px; border-radius: 999px; font-size: 13px; }
.ui-foot { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ui-foot div { background: #1b1e19; padding: 16px; display: grid; gap: 4px; border-radius: 8px; }
.ui-foot b { font-size: 30px; letter-spacing: -0.02em; color: #ecebe6; font-variant-numeric: tabular-nums; }
.ui-foot span { color: #9c998f; font-size: 13px; }

.cal { display: grid; grid-template-columns: 52px repeat(5, 1fr); gap: 8px; flex: 1; min-height: 0; }
.cal-times { display: grid; grid-template-rows: 28px repeat(7, 1fr); color: #9a978d; font-size: 12px; font-variant-numeric: tabular-nums; }
.cal-day { position: relative; display: grid; grid-template-rows: 28px repeat(12, 1fr); gap: 4px; }
.cal-day .d { color: #9c998f; font-size: 13px; }
.cal-day.today .d { color: var(--tint); font-weight: 600; }
.cal-day em { grid-row: calc(var(--s) + 2) / span var(--l); font-style: normal; background: color-mix(in srgb, var(--tint) 22%, #1b1e19); border-radius: 6px; padding: 6px 8px; font-size: 12px; font-weight: 600; color: #ecebe6; overflow: hidden; }
.cal-day em small { display: block; font-weight: 400; color: #c9c5ba; font-size: 11px; }
.cal-day em.alt { background: color-mix(in srgb, #ecebe6 12%, #1b1e19); }
.cal-day em.open { background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tint) 60%, transparent); color: var(--tint); } /* taste-skill-ignore: inside a data-ui product fragment */

.qt { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.qt th { text-align: left; font-weight: 400; color: #9a978d; font-size: 12px; padding: 0 8px 10px; }
.qt td { padding: 13px 8px; border-top: 1px solid #23261f; }
.qt td:first-child { color: #9c998f; }
.qt td:nth-child(4) { font-weight: 600; }
.st { font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.st-sent { background: #23261f; color: #d6d2c6; }
.st-ok { background: color-mix(in srgb, var(--tint) 25%, #1b1e19); color: var(--tint); }
.st-draft { color: #9a978d; }
.qt-detail { background: #1b1e19; border-radius: 10px; padding: 20px; display: grid; gap: 12px; }
.qt-detail b { font-size: 16px; }
.qt-detail dl { display: grid; gap: 8px; font-variant-numeric: tabular-nums; }
.qt-detail dl div { display: flex; justify-content: space-between; color: #c9c5ba; }
.qt-detail dl .tot { color: var(--tint); font-weight: 600; padding-top: 8px; border-top: 1px solid #2c2f29; } /* taste-skill-ignore: inside a data-ui product fragment */
.qt-detail p { color: #a9a69c; font-size: 13px; }

.ui-launch { background: #eef0f3; color: #121310; gap: 0; padding: 0; }
.lp-nav { display: flex; gap: 22px; align-items: center; padding: 24px 32px; font-size: 14px; color: #55564f; }
.lp-nav b { color: #121310; font-size: 18px; margin-right: auto; letter-spacing: -0.02em; }
.lp-btn { display: inline-block; background: #3552d9; color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 15px; font-weight: 600; }
.lp-btn.ghost { background: transparent; color: #121310; box-shadow: inset 0 0 0 1.5px #121310; padding: 7px 14px; font-size: 13px; } /* taste-skill-ignore: inside a data-ui product fragment */
.lp-hero { padding: 54px 32px 40px; display: grid; gap: 20px; justify-items: start; }
.lp-h { font-size: 58px; line-height: 0.95; letter-spacing: -0.045em; font-weight: 700; }
.lp-s { font-size: 17px; line-height: 1.45; color: #45463f; max-width: 34ch; }
.lp-shot { margin: 8px 32px 0; background: #121310; border-radius: 12px 12px 0 0; padding: 22px 22px 8px; color: #e9e6dd; display: grid; gap: 4px; font-size: 14px; font-variant-numeric: tabular-nums; }
.lp-row { display: grid; grid-template-columns: 1.6fr 0.8fr 0.9fr 1fr; padding: 11px 6px; border-top: 1px solid #262822; } /* taste-skill-ignore: inside a data-ui product fragment */
.lp-row.h { color: #9a978d; font-size: 12px; border-top: 0; }
.lp-row .ok { color: #8fe3a5; }
.lp-row .due { color: #ffb86b; }
.lp-price { margin: auto 32px 32px; display: flex; align-items: baseline; gap: 12px; padding-top: 24px; }
.lp-price b { font-size: 44px; letter-spacing: -0.03em; }
.lp-price span { color: #55564f; }

.gantt { display: grid; gap: 10px; }
.g-hours { display: grid; grid-template-columns: 110px repeat(5, 1fr); color: #9a978d; font-size: 12px; }
.g-row { display: grid; grid-template-columns: 110px 1fr; align-items: stretch; gap: 0; }
.g-who { font-weight: 600; font-size: 15px; display: grid; }
.g-who small { color: #9a978d; font-weight: 400; font-size: 12px; }
.g-lane { position: relative; height: 74px; background: #1a1c18; border-radius: 8px; }
.g-lane em { position: absolute; top: 8px; bottom: 8px; left: calc(var(--s) / 10 * 100% + 4px); width: calc(var(--l) / 10 * 100% - 8px); background: color-mix(in srgb, var(--tint) 24%, #1b1e19); border-radius: 6px; font-style: normal; font-size: 12px; font-weight: 600; padding: 8px 10px; overflow: hidden; }
.g-lane em.late { background: color-mix(in srgb, #ffb86b 26%, #1b1e19); color: #ffd2a0; }
.g-lane em.done { background: #22251f; color: #a3a096; text-decoration: line-through; }
.g-queue { background: #1b1e19; border-radius: 10px; padding: 18px; display: grid; gap: 10px; }
.g-queue .q { display: flex; justify-content: space-between; background: #22251f; padding: 12px 14px; border-radius: 6px; }
.g-queue .q small { color: var(--tint); }

/* =========================================================
   PROCESS: photographs down a diagonal
   ========================================================= */
.process { padding-block: var(--section); }
.proc-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.proc-h { grid-column: 7 / 13; grid-row: 1; }
.proc-img { overflow: hidden; background: var(--surface); }
.proc-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.p1 { grid-column: 1 / 6; grid-row: 1 / 4; aspect-ratio: 3 / 4; }
.p1 img { object-position: 22% 50%; filter: invert(1) grayscale(1) contrast(1.25) brightness(1.1); }
.t1 { grid-column: 7 / 11; grid-row: 2; }
.p2 { grid-column: 7 / 10; grid-row: 3 / 5; aspect-ratio: 1; margin-top: clamp(1rem, 4vw, 4rem); }
.t2 { grid-column: 10 / 13; grid-row: 3; margin-top: clamp(1rem, 4vw, 4rem); padding-left: var(--gutter); }
.p3 { grid-column: 5 / 13; grid-row: 5 / 7; aspect-ratio: 16 / 9; margin-top: clamp(1rem, 3vw, 3rem); }
.t3 { grid-column: 1 / 5; grid-row: 5; margin-top: clamp(1rem, 3vw, 3rem); padding-right: var(--gutter); }
.proc-text { display: grid; gap: 0.75rem; max-width: 36ch; }
.proc-text b { font-weight: 600; }

/* =========================================================
   WHY: picture as drop cap
   ========================================================= */
.why { padding-block: var(--section); background: var(--surface); }
.why-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 3rem; align-items: start; }
.why-side { grid-column: 1 / 4; display: grid; gap: 2.5rem; }
.facts { display: grid; gap: 1.5rem; }
.facts dt { font-weight: 600; }
.facts dd { color: var(--ink); max-width: 26ch; }
.why-body { grid-column: 4 / 13; }
.statement { font-size: var(--step-lead); line-height: 1.22; letter-spacing: -0.02em; max-width: 42ch; }
.statement b { font-weight: 600; }
.statement + .statement { margin-top: 1.1em; }
.why-more { margin-top: 2rem; max-width: 52ch; margin-left: calc(3.66em * 0); }
.dropcap { float: left; width: 3.66em; height: 3.66em; object-fit: cover; margin: 0.18em 0.5em 0 0; filter: grayscale(1) contrast(1.1); background: var(--bg); }

/* =========================================================
   CTA: one word is the button
   ========================================================= */
.cta-band { position: relative; display: block; min-height: max(64svh, calc(43vw * 0.74 + 11rem)); background: var(--accent); color: var(--accent-ink); text-decoration: none; overflow: hidden; padding: var(--margin); transition: background-color 0ms, color 0ms; }
.cta-sentence { position: relative; z-index: 1; display: block; max-width: 30ch; font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; }
.cta-arrow { position: absolute; top: var(--margin); right: var(--margin); width: 48px; height: 48px; transition: transform var(--t-ui) var(--ease-out); }
.cta-word { position: absolute; left: var(--margin); right: var(--margin); bottom: 0; font-size: 43vw; line-height: 0.74; letter-spacing: -0.065em; font-weight: 700; white-space: nowrap; margin-left: -0.04em; }
.cta-band:hover, .cta-band:focus-visible { background: var(--ink); color: var(--bg); }
.cta-band:hover .cta-arrow, .cta-band:focus-visible .cta-arrow { transform: translate(6px, -6px); }
.cta-band:focus-visible { outline-offset: -6px; outline-color: var(--bg); }
.cta-band:active .cta-word { transform: translateY(2px); }

/* =========================================================
   FOOTER: invitation over a cropped name
   ========================================================= */
.foot { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto auto; background: var(--ink); color: var(--bg); overflow: hidden; }
.foot ::selection { background: var(--bg); color: var(--ink); }
.foot :focus-visible { outline-color: var(--bg); }
.foot-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-top: clamp(4rem, 9vw, 8rem); }
.foot-invite { grid-column: 1 / 9; display: grid; gap: 2.5rem; justify-items: start; }
.foot-h { font-size: clamp(3.5rem, 1rem + 8.2vw, 7.5rem); line-height: 0.95; letter-spacing: -0.045em; }
.foot-links { grid-column: 9 / 13; justify-self: end; min-width: 0; display: grid; gap: 0.5rem; align-content: start; padding-top: 0.6rem; }
.foot-legal { grid-row: 3; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; font-size: 0.9375rem; padding-bottom: 1rem; position: relative; z-index: 1; }
.credits { max-width: 46rem; text-align: right; font-size: 0.9375rem; }
.credits summary { cursor: pointer; list-style: none; text-decoration: underline; text-underline-offset: 0.2em; }
.credits summary::-webkit-details-marker { display: none; }
.credits ul { display: grid; gap: 0.35rem; margin-top: 0.75rem; text-align: left; }
.foot-mark { grid-row: 4; font-size: clamp(6rem, 29vw, 34rem); font-weight: 700; letter-spacing: -0.065em; line-height: 0.78; white-space: nowrap; margin: 0 0 0 calc(var(--margin) - 0.06em); transform: translateY(24%); margin-top: -0.12em; user-select: none; }

/* =========================================================
   MOTION (content stays visible without JS; reduced motion drops travel)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 1000ms var(--ease-expo) forwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise 800ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 90ms + 300ms); }
  .js .hero-media video { animation: drift 24s var(--ease-soft) infinite alternate; }

  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  /* the clip sits on the image, not the observed figure: a fully clipped target never intersects */
  .js .shutter[data-reveal] { opacity: 1; transform: none; }
  .js .shutter[data-reveal] img { clip-path: inset(0 0 100% 0); transform: scale(1.12); transition: clip-path 1100ms var(--ease-in-out), transform 1500ms var(--ease-soft); }
  .js .shutter[data-reveal].is-in img { clip-path: inset(0); transform: none; }

  .js .band.is-in i { animation: module-in 600ms var(--ease-out) backwards; animation-delay: calc(var(--k, 0) * 60ms); }
  .js .foot-mark { transition: transform 1400ms var(--ease-expo); }
  .js .foot:not(.is-in) .foot-mark { transform: translateY(70%); }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.06) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }
@keyframes module-in { from { opacity: 0; transform: scale(0.85); } }

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 64em) {
  .proc-grid { grid-template-columns: 1fr; row-gap: 1.25rem; }
  .proc-h { grid-row: auto; grid-column: 1; margin-bottom: 1rem; }
  .proc-img, .proc-text { grid-column: 1 !important; grid-row: auto !important; margin-top: 0 !important; padding: 0 !important; justify-self: start !important; }
  .p1 { width: min(100%, 34rem); }
  .p2 { width: 62%; justify-self: end !important; margin-top: 2.5rem !important; }
  .t2 { justify-self: end !important; width: 62%; }
  .p3 { width: 78%; margin-top: 2.5rem !important; }
  .t3 { width: 78%; }
  .caps-head { grid-column: 1 / -1; }
  .caps-head .h2 { grid-column: 1 / 5; }
  .caps-intro { grid-column: 5 / 11; }
  .caps-desc { grid-column: 1 / -1; grid-row: auto; padding-bottom: 0; min-height: 0; display: none; }
  .group { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; padding-bottom: 3.5rem; }
  .group .group-list { grid-column: 1 / 7 !important; grid-row: 1; }
  .group .band { grid-column: 8 / 13 !important; grid-row: 1 !important; }
  .group-sum { display: block; margin-top: 1.25rem; color: var(--ink); max-width: 36ch; }
  .brief { grid-column: 1 / -1; grid-row: auto; }
  .why-side { grid-column: 1 / -1; grid-template-columns: 1fr 2fr; align-items: start; }
  .why-body { grid-column: 1 / -1; }
  .foot-invite { grid-column: 1 / 9; }
  .foot-links { grid-column: 9 / 13; }
  .foot { min-height: 0; grid-template-rows: auto auto auto auto; }
  .foot-legal { padding-top: clamp(4rem, 10vw, 6rem); }
}

/* =========================================================
   PHONE
   ========================================================= */
@media (max-width: 40em) {
  .work-head { grid-template-columns: 1fr; }
  .work-head .h2, .work-head p { grid-column: 1; }
  .project { grid-template-columns: 1fr; }
  .pane { aspect-ratio: 1; }
  .pane-r { display: none; }
  .pt { font-size: 12.5vw; }
  .nav { top: 1rem; right: 1rem; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-links { display: none; position: fixed; inset: 0; z-index: 4; background: var(--bg); flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.25rem; padding: 2rem 1rem; font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; }
  .nav.is-open .nav-links { display: flex; }
  .nav.is-open .nav-toggle { position: fixed; top: 1rem; right: 1rem; z-index: 5; }
  .nav-links .button-small { font-size: 1.125rem; min-height: 3.25rem; margin-top: 1rem; letter-spacing: 0; }

  .hero-title .line { font-size: 27vw; }
  .hero-l1 { margin-top: 5.5rem; }
  .hero-l2 { margin-bottom: 0.75rem; }
  .hero-copy { margin-left: 0; max-width: 22rem; gap: 1.5rem; }
  .hero-lede { font-size: 1.1875rem; }
  .hero-media video { object-position: 30% 50%; }

  .caps-head { grid-template-columns: 1fr; row-gap: 1rem; padding-bottom: 2.5rem; }
  .caps-head .h2, .caps-intro { grid-column: 1; }
  .group { display: grid; grid-template-columns: 1fr; row-gap: 1.5rem; padding-bottom: 2.5rem; }
  .group .group-list, .group .band { grid-column: 1 !important; grid-row: auto !important; }
  .part { font-size: 1.125rem; line-height: 1.4; padding: 0.45em 0; }
  .group-sum { font-size: 1.0625rem; }
  .band { aspect-ratio: 6 / 3; }



  .why-side { grid-template-columns: 1fr; }
  .statement { font-size: 1.25rem; line-height: 1.25; }
  .dropcap { width: 4.9em; height: 4.9em; }

  .cta-band { min-height: max(48svh, calc(43vw * 0.74 + 12rem)); }
  .cta-sentence { font-size: 1.25rem; max-width: 22ch; }
  .cta-arrow { width: 32px; height: 32px; }
  .cta-word { font-size: 43vw; }

  .foot-top { grid-template-columns: 1fr; row-gap: 2.5rem; }
  .foot-invite, .foot-links { grid-column: 1; }
  .foot-h { font-size: 11vw; }
  .foot-invite .button { width: 100%; }
  .foot-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; font-size: 0.9375rem; }
  .foot-legal { flex-direction: column; }
  .credits { text-align: left; }
  .foot-mark { font-size: 36vw; }
}
