/* ==========================================================================
   StarLight — graphic design studio
   One stylesheet, no framework. Sections:
   1 Font & tokens   2 Base   3 Primitives   4 Header   5 Hero
   6 Home sections   7 Services page   8 Contact page   9 Footer   10 Motion
   ========================================================================== */

/* 1 — Font & tokens ------------------------------------------------------- */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

/* Metric-matched fallback so the swap to the web font doesn't shift layout. */
@font-face {
  font-family: "Bricolage Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Roboto");
  size-adjust: 94.2%;
  ascent-override: 98.8%;
  descent-override: 28.7%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark;

  --ink-950: #05071a;
  --ink-900: #090d2b;
  --ink-800: #0f1644;
  --blue-600: #1f3db8;
  --blue-500: #2f55e8;
  --blue-300: #8ea6ff;
  --gold-500: #ffc61a;
  --gold-300: #ffdd70;
  --paper: #f3efe6;
  --paper-ink: #0b1033;
  --danger: #ff9b8a;

  --text: #eef0fb;
  --muted: #a6adD2;
  --line: rgb(255 255 255 / .1);
  --line-strong: rgb(255 255 255 / .2);

  --font: "Bricolage Grotesque", "Bricolage Fallback", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --step--1: clamp(.8125rem, .78rem + .12vw, .875rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.5rem);
  --step-2: clamp(1.55rem, 1.25rem + 1.4vw, 2.5rem);
  --step-3: clamp(2rem, 1.35rem + 2.9vw, 3.9rem);
  --step-4: clamp(2.5rem, 1.3rem + 5.2vw, 5.75rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 82rem;
  --section: clamp(5rem, 11vw, 10rem);
  --radius: 1rem;
  --radius-lg: clamp(1.25rem, 2.4vw, 2rem);
  --sheet-r: clamp(1.5rem, 3.4vw, 3rem);
  --sheet-m: clamp(.5rem, 1.4vw, 1.25rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 4.25rem;
}

/* 2 — Base ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 2rem);
  background: var(--ink-950);
}

body {
  min-height: 100svh;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--text);
  background: var(--ink-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }

h1, h2, h3 {
  font-weight: 800;
  font-stretch: 82%;
  line-height: .98;
  letter-spacing: -.02em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

::selection { background: var(--gold-500); color: var(--ink-950); }

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; top: .75rem; left: .75rem; z-index: 100;
  padding: .75rem 1.1rem; border-radius: 999px;
  background: var(--gold-500); color: var(--ink-950); font-weight: 650;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* 3 — Primitives ---------------------------------------------------------- */

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* The brand mark: the cursor-arrow "A" from the logo. */
.mark {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.icon { width: 1.1em; height: 1.1em; flex: none; }

/* Mono label with a pen-tool anchor point in front of it. */
.tag {
  display: inline-flex; align-items: center; gap: .85rem;
  font-family: var(--mono);
  font-size: .75rem; line-height: 1;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.tag::before {
  content: ""; flex: none;
  width: .4rem; height: .4rem;
  background: var(--gold-500);
  outline: 1px solid var(--gold-500); outline-offset: 2px;
}

.btn {
  --bg: var(--gold-500);
  --fg: var(--ink-950);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem; padding: 0 1.6rem;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 650; letter-spacing: -.01em; line-height: 1;
  white-space: nowrap;
  transition: transform .35s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn .icon { transition: transform .35s var(--ease); }
.btn:hover { --bg: var(--gold-300); }
.btn:hover .icon--arrow { transform: translate(2px, -2px); }
.btn:active { transform: scale(.97); }

.btn--ghost { --bg: transparent; --fg: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { --bg: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .35); }

.btn--ink { --bg: var(--ink-950); --fg: var(--text); }
.btn--ink:hover { --bg: var(--ink-800); }

.btn--line { --bg: transparent; --fg: var(--paper-ink); border-color: rgb(11 16 51 / .35); }
.btn--line:hover { --bg: rgb(11 16 51 / .08); border-color: var(--paper-ink); }

.btn--sm { min-height: 2.5rem; padding-inline: 1.15rem; font-size: .9375rem; }

.link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 650; color: var(--gold-500);
  padding-block: .35rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .35s var(--ease);
}
.link .icon { transition: transform .35s var(--ease); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.link:hover .icon { transform: translate(2px, -2px); }

.section { padding-block: var(--section); }

.head { display: grid; gap: 1.5rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.head h2 { font-size: var(--step-4); max-width: 16ch; }
.head p:not(.tag) { max-width: 46ch; color: var(--muted); font-size: var(--step-1); line-height: 1.4; }

@media (min-width: 60rem) {
  .head--split { grid-template-columns: 1.2fr .8fr; align-items: end; column-gap: 4rem; }
  .head--split .tag { grid-column: 1 / -1; }
}

/* Blue "artboard" surface, lifted from the flyer's gradient. */
.panel {
  position: relative; isolation: isolate; overflow: clip;
  border: 1px solid rgb(255 255 255 / .14);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 18% 0%, #2f55e8 0%, #1c36ab 36%, #0d1757 76%, #080d38 100%);
}
.panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, rgb(255 255 255 / .2) 1px, transparent 0);
  background-size: 22px 22px;
  mask-image: radial-gradient(120% 120% at 50% 40%, #000 20%, transparent 75%);
}
.panel__label {
  position: absolute; top: 1.1rem; left: 1.25rem; z-index: 1;
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgb(255 255 255 / .75);
}

/* Light and gold "sheets" that sit on the dark canvas like paper. */
.sheet {
  margin-inline: var(--sheet-m);
  border-radius: var(--sheet-r);
  background: var(--paper); color: var(--paper-ink);
  --muted: #4b5278;
  --line: rgb(11 16 51 / .14);
}
.sheet .tag::before { background: var(--blue-500); outline-color: var(--blue-500); }
.sheet ::selection { background: var(--paper-ink); color: var(--paper); }
.sheet :focus-visible { outline-color: var(--blue-500); }

.sheet--gold { background: var(--gold-500); --muted: #3c3410; }
.sheet--gold .tag { color: var(--paper-ink); }
.sheet--gold .tag::before { background: var(--paper-ink); outline-color: var(--paper-ink); }
.sheet--gold :focus-visible { outline-color: var(--paper-ink); }

/* 4 — Header -------------------------------------------------------------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: .75rem var(--sheet-m) 0;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: min(100%, var(--max) + 2rem); margin-inline: auto;
  min-height: 3.5rem; padding: .5rem .5rem .5rem 1.25rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgb(9 13 43 / .55);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  transition: background-color .3s, border-color .3s;
  view-transition-name: nav;
}
.is-scrolled .nav-pill { background: rgb(9 13 43 / .94); border-color: var(--line-strong); }

.brand {
  position: relative; display: inline-block;
  font-weight: 800; font-stretch: 100%; font-size: 1.125rem; line-height: 1;
  letter-spacing: .06em; color: var(--text);
}
.brand__word { display: inline-flex; align-items: baseline; }
.brand__a {
  width: .82em; height: .82em; margin-inline: .04em .1em;
  color: var(--gold-500); overflow: visible;
  transform: translateY(.05em);
  transition: transform .5s var(--ease);
}
.brand:hover .brand__a { transform: translateY(-.12em) rotate(-8deg); }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav ul { display: flex; align-items: center; gap: .125rem; }
.nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 .9rem;
  border-radius: 999px; font-size: .9375rem; font-weight: 500; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.nav a:not(.btn):hover { color: var(--text); background: rgb(255 255 255 / .07); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::before {
  content: ""; width: .3rem; height: .3rem; margin-right: .5rem; background: var(--gold-500);
}
.nav .btn { margin-left: .5rem; }

@media (max-width: 43.99rem) {
  .nav .nav__home, .nav .btn { display: none; }
  .nav a:not(.btn) { padding-inline: .7rem; }
  .nav-pill { padding-right: .6rem; }
}

/* 5 — Hero ---------------------------------------------------------------- */

.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100svh;
  display: grid; align-items: center;
  padding-block: calc(var(--header-h) + clamp(2.5rem, 7vh, 5rem)) clamp(3rem, 8vh, 5rem);
}
.hero::before {                       /* canvas dot grid */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(circle at 1px 1px, rgb(255 255 255 / .11) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 96%);
}
.hero::after {                        /* blue starlight behind the artboard */
  content: ""; position: absolute; z-index: -3;
  inset: -25% -20% -10% 30%;
  background: radial-gradient(closest-side, rgb(47 85 232 / .42), rgb(47 85 232 / .12) 55%, transparent);
}
.hero__spot {
  position: absolute; z-index: -1; top: -18rem; left: -18rem;
  width: 36rem; height: 36rem; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 198 26 / .13), transparent);
  opacity: 0; pointer-events: none;
  transition: opacity .6s;
}
.hero:hover .hero__spot { opacity: 1; }

.hero__grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.hero__copy { container-type: inline-size; }

.eyebrow {
  display: flex; align-items: center; gap: .85rem; margin-bottom: 1.5rem;
  font-family: var(--mono); font-size: .75rem; font-weight: 400; font-stretch: 100%;
  line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before {
  content: ""; flex: none; width: .4rem; height: .4rem; background: var(--gold-500);
  outline: 1px solid var(--gold-500); outline-offset: 2px;
}

.display {
  font-size: clamp(2.75rem, min(20.5cqi, 13.2svh), 9rem);
  font-stretch: 78%;
  line-height: .9;
  letter-spacing: -.02em;
}
.display__line { display: block; }

/* "standout" — selected like an object in a design tool. */
.sel { position: relative; display: inline-block; color: var(--gold-500); }
.sel__box {
  position: absolute; inset: .08em -.09em .02em -.07em;
  border: max(1.5px, .018em) solid var(--gold-500);
  pointer-events: none;
}
.sel__box i {
  position: absolute; width: max(7px, .085em); aspect-ratio: 1;
  background: var(--ink-950); border: max(1.5px, .018em) solid var(--gold-500);
}
.sel__box i:nth-child(1) { top: 0; left: 0; translate: -55% -55%; }
.sel__box i:nth-child(2) { top: 0; right: 0; translate: 55% -55%; }
.sel__box i:nth-child(3) { bottom: 0; left: 0; translate: -55% 55%; }
.sel__box i:nth-child(4) { bottom: 0; right: 0; translate: 55% 55%; }
.sel__tag {
  position: absolute; top: calc(100% + .06em); left: calc(100% + .02em);
  display: flex; align-items: flex-start; pointer-events: none;
  font-family: var(--font); font-size: max(.6875rem, .125em); font-weight: 650; font-stretch: 100%;
  line-height: 1; letter-spacing: 0; color: var(--ink-950);
}
.sel__tag svg { width: 1.5em; height: 1.5em; color: var(--gold-500); rotate: -32deg; translate: -35% -30%; overflow: visible; }
.sel__tag span { margin: .9em 0 0 -.35em; padding: .42em .7em; border-radius: .25em .9em .9em .9em; background: var(--gold-500); }

.lede {
  max-width: 36rem; margin-top: clamp(1.5rem, 3.5vh, 2.25rem);
  font-size: var(--step-1); line-height: 1.4; color: var(--muted);
}
.lede strong { color: var(--text); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: clamp(1.5rem, 3.5vh, 2.25rem); }

@media (min-width: 62rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); }
}

/* Artboard with the draggable star */
.artboard {
  --star: var(--gold-500);
  width: 100%; max-width: 35rem; margin-inline: auto; aspect-ratio: 1;
  user-select: none; -webkit-user-select: none;
}
.artboard__bar, .artboard__foot {
  position: absolute; inset-inline: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1.1rem;
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgb(255 255 255 / .78);
}
.artboard__bar { top: 0; }
.artboard__foot { bottom: 0; }
.artboard__file { display: inline-flex; align-items: center; gap: .6rem; }
.artboard__file::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--star); }
.artboard__xy { font-variant-numeric: tabular-nums; }
.artboard__canvas { width: 100%; height: 100%; touch-action: pan-y; }

.guides { fill: none; stroke: rgb(255 255 255 / .28); stroke-width: 1; stroke-dasharray: 2 6; }
.star {
  fill: var(--star); stroke: var(--star); stroke-width: 16; stroke-linejoin: round;
  filter: drop-shadow(0 0 26px color-mix(in srgb, var(--star) 55%, transparent));
  transition: fill .4s, stroke .4s;
}
.star-line { fill: none; stroke: var(--ink-950); stroke-width: 1; stroke-opacity: .5; }

.handle { cursor: grab; touch-action: none; }
.handle:active { cursor: grabbing; }
.handle__hit { fill: transparent; }
.handle__dot {
  fill: #fff; stroke: var(--ink-950); stroke-width: 1.5;
  transform-box: fill-box; transform-origin: center;
  transition: transform .25s var(--ease), fill .2s;
}
.handle:hover .handle__dot, .handle.is-active .handle__dot { transform: scale(1.45); fill: var(--ink-950); stroke: #fff; }
.ping { fill: none; stroke: #fff; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; pointer-events: none; opacity: 0; }

.swatches { display: flex; gap: .5rem; }
.swatch {
  width: 1.5rem; height: 1.5rem; padding: 0; border-radius: 50%;
  border: 2px solid rgb(255 255 255 / .25); background: var(--c);
  transition: transform .25s var(--ease), border-color .2s;
}
.swatch:hover { transform: scale(1.12); }
.swatch[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px var(--ink-900), 0 0 0 3px #fff; }
.artboard__hint { margin-left: auto; text-align: right; }
.artboard__reset {
  padding: .45rem .8rem; border: 1px solid rgb(255 255 255 / .35); border-radius: 999px; background: none;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: #fff;
  transition: background-color .2s;
}
.artboard__reset:hover { background: rgb(255 255 255 / .12); }
html:not(.js) .artboard__foot { visibility: hidden; }
[hidden] { display: none !important; }

/* 6 — Home sections ------------------------------------------------------- */

/* Statement that "lights up" as it scrolls into view */
.statement { padding-block: clamp(4rem, 10vw, 9rem) var(--section); }
.statement p {
  max-width: 21em;
  font-size: var(--step-3); font-weight: 650; font-stretch: 86%;
  line-height: 1.08; letter-spacing: -.02em;
}

/* Services index: type-led list with a sticky specimen stage */
.index { display: grid; gap: 3rem; }
.index__list { border-bottom: 1px solid var(--line); }
.row {
  position: relative;
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; column-gap: 1rem; align-items: baseline;
  padding-block: clamp(1.15rem, 2.4vw, 1.75rem);
  border-top: 1px solid var(--line);
  transition: opacity .3s, padding-left .45s var(--ease);
}
.row__num { align-self: start; margin-top: .85em; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; color: var(--muted); }
.row__name {
  font-size: var(--step-3); font-weight: 750; font-stretch: 82%; line-height: 1; letter-spacing: -.02em;
  transition: color .25s;
}
.row__desc { grid-column: 2 / -1; margin-top: .55rem; max-width: 36ch; color: var(--muted); line-height: 1.4; }
.row__go {
  grid-row: 1; grid-column: 3; align-self: center;
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--text);
  transition: background-color .25s, color .25s, border-color .25s, transform .45s var(--ease);
}
.row:hover .row__name, .row:focus-visible .row__name { color: var(--gold-500); }
.row:hover .row__go, .row:focus-visible .row__go {
  background: var(--gold-500); border-color: var(--gold-500); color: var(--ink-950); transform: rotate(45deg);
}
.index__stage { display: none; }

@media (hover: hover) and (min-width: 62rem) {
  .index { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .index__list:has(.row:hover) .row:not(:hover) { opacity: .42; }
  .row.is-on .row__name { color: var(--gold-500); }
  .row:hover { padding-left: .75rem; }
  .index__stage {
    position: sticky; top: calc(var(--header-h) + 2rem);
    display: grid; aspect-ratio: 1;
  }
  .index__stage .specimen {
    grid-area: 1 / 1; align-self: center; width: 100%; height: auto; padding: 9% 7% 5%;
    opacity: 0; transform: scale(.92) rotate(-3deg);
    transition: opacity .35s, transform .6s var(--ease);
  }
  .index__stage .specimen.is-on { opacity: 1; transform: none; }
}

.specimen text { font-family: var(--font); font-stretch: 80%; }

/* Process: steps strung along a pen-tool path */
.process { padding-block: var(--section); }
.path { position: relative; }
.path__line, .path__end { display: none; }
.path__steps { display: grid; }
.step { position: relative; padding: 0 0 2.75rem 2.75rem; }
.step:last-child { padding-bottom: 0; }
.step::before {                         /* vertical path on small screens */
  content: ""; position: absolute; left: .34rem; top: .9rem; bottom: -.9rem; width: 2px;
  background: var(--blue-500);
}
.step:last-child::before { display: none; }
.step__anchor {
  position: absolute; left: 0; top: .5rem; width: .8rem; height: .8rem;
  background: var(--paper); border: 2px solid var(--blue-500);
}
.step__num { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; color: var(--muted); }
.step h3 { margin-block: .6rem .7rem; font-size: var(--step-2); }
.step p { max-width: 30ch; color: var(--muted); }

@media (min-width: 62rem) {
  .path__line { display: block; position: absolute; top: 0; left: .9rem; width: 100%; height: 7rem; overflow: visible; }
  .path__line path { fill: none; stroke: var(--blue-500); stroke-width: 2; vector-effect: non-scaling-stroke; }
  .path__end {
    display: block; position: absolute; top: 3.5rem; left: calc(100% + .9rem); width: 1.5rem; height: 1.5rem;
    translate: -70% -50%; rotate: 71deg; color: var(--blue-500); overflow: visible;
  }
  .path__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step { padding: 9.5rem 2rem 0 .45rem; }
  .step::before {                       /* bezier handle through each anchor */
    left: -2.6rem; top: calc(3.5rem - 4px); bottom: auto; width: 7rem; height: 8px;
    background:
      radial-gradient(circle, var(--blue-500) 0 3px, transparent 3.5px) 0 50% / 8px 8px no-repeat,
      radial-gradient(circle, var(--blue-500) 0 3px, transparent 3.5px) 100% 50% / 8px 8px no-repeat,
      linear-gradient(var(--blue-500), var(--blue-500)) center / calc(100% - 8px) 1px no-repeat;
    transform: rotate(-19deg);
  }
  .step:last-child::before { display: block; }
  .step:nth-child(even)::before { transform: rotate(19deg); }
  .step__anchor { top: 3.5rem; left: .9rem; translate: -50% -50%; width: .9rem; height: .9rem; }
}

/* FAQ */
.faq { display: grid; gap: 2.5rem; }
.faq .head { margin-bottom: 0; align-content: start; }
.faq__list { border-bottom: 1px solid var(--line); }
.qa { border-top: 1px solid var(--line); }
.qa summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.5rem;
  padding-block: 1.4rem; cursor: pointer; list-style: none;
  font-size: var(--step-1); font-weight: 650; font-stretch: 88%; line-height: 1.2; letter-spacing: -.01em;
  transition: color .2s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--gold-500); }
.qa summary::after {
  content: ""; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(currentColor, currentColor) center / .7rem 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px .7rem no-repeat;
  transition: transform .45s var(--ease), background-color .25s;
}
.qa[open] summary::after { transform: rotate(135deg); }
.qa__a { padding: 0 3.75rem 1.6rem 0; max-width: 62ch; color: var(--muted); }
.qa__a a { color: var(--text); text-decoration: underline; text-decoration-color: var(--gold-500); text-underline-offset: .2em; }

@media (min-width: 62rem) {
  .faq { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .faq .head { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* Call to action */
.cta { position: relative; isolation: isolate; overflow: clip; padding: clamp(3rem, 7vw, 6rem) 0; margin-bottom: var(--sheet-m); }
.cta__mark {
  position: absolute; z-index: -1; right: -6%; bottom: -34%; width: min(46rem, 62%); height: auto;
  color: rgb(11 16 51 / .07); rotate: 16deg; overflow: visible; pointer-events: none;
}
.cta__grid { display: grid; gap: 3rem; align-items: end; }
.cta h2 { font-size: var(--step-4); font-size: clamp(2.6rem, 1rem + 7vw, 7rem); line-height: .9; letter-spacing: -.02em; font-stretch: 78%; max-width: 11ch; margin-top: 1.5rem; }
.cta .actions { margin-top: 2.25rem; }
.qr {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1.25rem;
  width: fit-content; padding: .9rem 1.5rem .9rem .9rem;
  border-radius: 1.5rem; background: var(--paper-ink); color: var(--paper);
}
.qr svg { width: 7.25rem; height: 7.25rem; padding: .55rem; border-radius: .9rem; background: var(--paper); }
.qr p { min-width: 0; }
.qr b { display: block; font-size: var(--step-1); font-weight: 750; font-stretch: 84%; line-height: 1.05; letter-spacing: -.02em; }
.qr span { display: block; margin-top: .45rem; font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }

@media (min-width: 62rem) {
  .cta__grid { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (hover: none), (max-width: 43.99rem) {
  .cta .qr { display: none; }           /* a QR is pointless on the phone you'd scan it with */
}

/* 7 — Services page ------------------------------------------------------- */

.page-hero {
  position: relative; isolation: isolate; overflow: clip;
  padding-block: calc(var(--header-h) + clamp(4rem, 10vw, 7.5rem)) clamp(3rem, 7vw, 5.5rem);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(circle at 1px 1px, rgb(255 255 255 / .11) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, #000 10%, transparent 95%);
}
.page-hero::after {
  content: ""; position: absolute; z-index: -3; inset: -60% -10% 0 45%;
  background: radial-gradient(closest-side, rgb(47 85 232 / .4), transparent);
}
.crumbs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs li + li::before { content: "/"; margin-right: .6rem; opacity: .5; }
.crumbs [aria-current] { color: var(--text); }
.page-hero h1 {
  font-size: clamp(2.9rem, 1rem + 8.6vw, 8.25rem); font-stretch: 78%; line-height: .9; letter-spacing: -.02em;
  max-width: 12ch;
}
.page-hero h1 em { font-style: normal; color: var(--gold-500); }
.page-hero__count { display: none; }
@media (min-width: 62rem) {
  .page-hero .wrap { position: relative; }
  .page-hero__count {
    display: block; position: absolute; right: -.03em; bottom: -.12em;
    font-size: clamp(16rem, 30vw, 27rem); font-weight: 800; font-stretch: 78%; line-height: .8; letter-spacing: -.03em;
    color: rgb(255 255 255 / .06);
    pointer-events: none; user-select: none;
  }
  .page-hero__count::before { content: attr(data-t); }
}
.page-hero__intro { max-width: 40rem; margin-top: 2rem; font-size: var(--step-1); line-height: 1.4; color: var(--muted); }

.catalog { display: grid; gap: 1rem; padding-bottom: var(--section); }

.toc {
  position: sticky; top: calc(var(--header-h) + .5rem); z-index: 20;
  margin-inline: calc(var(--gutter) * -1); padding: .6rem var(--gutter);
  overflow-x: auto; scrollbar-width: none;
  background: rgb(5 7 26 / .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-block: 1px solid var(--line);
}
.toc::-webkit-scrollbar { display: none; }
.toc__title { display: none; }
.toc ol { display: flex; gap: .4rem; width: max-content; }
.toc a {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 2.5rem; padding: 0 .95rem;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .9375rem; color: var(--muted); white-space: nowrap;
  transition: color .2s, border-color .2s, background-color .2s;
}
.toc a span { font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; opacity: .7; }
.toc a:hover { color: var(--text); border-color: var(--line-strong); }
.toc a[aria-current="true"] { color: var(--ink-950); background: var(--gold-500); border-color: var(--gold-500); }

.group {
  display: flex; align-items: center; gap: 1rem; margin-top: clamp(3rem, 7vw, 5rem);
  font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.group::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.group b { font-weight: 400; color: var(--gold-500); }

.service { display: grid; gap: 2rem; padding-block: clamp(2rem, 5vw, 3.5rem); }
.service + .service { border-top: 1px solid var(--line); }
.service__art { display: grid; place-items: center; aspect-ratio: 4 / 3; }
.service__art .specimen { width: 100%; height: auto; padding: 12% 12% 8%; transition: transform .7s var(--ease); }
.service:hover .service__art .specimen { transform: scale(1.04) rotate(-1.5deg); }
.service h2 { font-size: var(--step-4); font-stretch: 80%; }
.service__lead { margin-top: 1.25rem; max-width: 34em; font-size: var(--step-1); line-height: 1.4; color: var(--text); }
.service__sub { margin-top: 2rem; font-family: var(--mono); font-size: .75rem; font-weight: 400; font-stretch: 100%; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ticks { display: grid; gap: .1rem; margin-top: .75rem; }
.ticks li { position: relative; padding: .7rem 0 .7rem 1.75rem; border-top: 1px solid var(--line); line-height: 1.35; }
.ticks li::before {
  content: ""; position: absolute; left: .1rem; top: 1.1rem; width: .5rem; height: .5rem;
  background: var(--gold-500); rotate: 45deg;
}
.service__for { margin-top: 1.5rem; color: var(--muted); }
.service__for b { font-weight: 500; color: var(--text); }
.service .link { margin-top: 1.5rem; }

@media (min-width: 48rem) {
  .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
}
@media (min-width: 62rem) {
  .service { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
  .service__art { position: sticky; top: calc(var(--header-h) + 5rem); }
}
@media (min-width: 80rem) {
  .catalog { grid-template-columns: 13rem minmax(0, 1fr); column-gap: clamp(3rem, 5vw, 5rem); align-items: start; }
  .toc {
    top: calc(var(--header-h) + 2.5rem); margin: clamp(3rem, 7vw, 5rem) 0 0; padding: 0; overflow: visible;
    background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0;
  }
  .toc__title { display: block; margin-bottom: 1rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .toc ol { display: grid; gap: 0; width: auto; border-left: 1px solid var(--line); }
  .toc a {
    min-height: 2.35rem; padding: 0 0 0 1rem; margin-left: -1px;
    border: 0; border-left: 1px solid transparent; border-radius: 0; white-space: normal;
  }
  .toc a[aria-current="true"] { color: var(--text); background: none; border-color: var(--gold-500); }
  .toc a[aria-current="true"] span { color: var(--gold-500); opacity: 1; }
  .group:first-child { margin-top: clamp(3rem, 7vw, 5rem); }
}

/* 8 — Contact page -------------------------------------------------------- */

.contact-page { position: relative; isolation: isolate; }
.contact {
  display: grid; gap: 3rem;
  padding-block: calc(var(--header-h) + clamp(4rem, 10vw, 7rem)) var(--section);
}
.contact__bg { position: absolute; inset: 0 0 auto; height: min(100%, 60rem); z-index: -1; overflow: clip; pointer-events: none; }
.contact__bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgb(255 255 255 / .11) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, #000 0, transparent 70%);
}
.contact__bg::after {
  content: ""; position: absolute; inset: -35% 40% 10% -25%;
  background: radial-gradient(closest-side, rgb(47 85 232 / .38), transparent);
}
.contact h1 { font-size: clamp(2.9rem, 1rem + 7.4vw, 7rem); font-stretch: 78%; line-height: .9; letter-spacing: -.02em; max-width: 9ch; }
.contact h1 em { font-style: normal; color: var(--gold-500); }
.contact__intro { max-width: 30rem; margin-top: 1.75rem; font-size: var(--step-1); line-height: 1.4; color: var(--muted); }

.channels { display: grid; margin-top: 2.5rem; border-bottom: 1px solid var(--line); }
.channel {
  display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) auto; align-items: center; gap: 1rem;
  padding-block: 1rem; border-top: 1px solid var(--line);
}
.channel__icon {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: rgb(255 255 255 / .06); color: var(--gold-500);
  transition: background-color .25s, color .25s;
}
.channel__icon svg { width: 1.2rem; height: 1.2rem; }
.channel small { display: block; font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.channel b { display: block; margin-top: .2rem; font-size: var(--step-1); font-weight: 650; font-stretch: 88%; letter-spacing: -.02em; overflow-wrap: anywhere; }
a.channel:hover .channel__icon, .channel:has(a:hover) .channel__icon { background: var(--gold-500); color: var(--ink-950); }
.channel__go { color: var(--muted); transition: transform .35s var(--ease), color .2s; }
a.channel:hover .channel__go { color: var(--gold-500); transform: translate(2px, -2px); }
.copy {
  min-height: 2.25rem; padding: 0 .9rem; border: 1px solid var(--line-strong); border-radius: 999px; background: none;
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  transition: color .2s, border-color .2s;
}
.copy:hover { color: var(--text); border-color: rgb(255 255 255 / .4); }
.copy.is-done { color: var(--gold-500); border-color: var(--gold-500); }

.contact .qr { margin-top: 2rem; background: rgb(255 255 255 / .05); border: 1px solid var(--line); color: var(--text); }
@media (hover: none), (max-width: 43.99rem) { .contact .qr { display: none; } }

.brief {
  position: relative;
  padding: clamp(1.25rem, 3.4vw, 2.75rem);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: rgb(9 13 43 / .78);
}
.brief__part + .brief__part { margin-top: 2.25rem; padding-top: 2.25rem; border-top: 1px solid var(--line); }
.brief__title {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .9rem; margin-bottom: 1.4rem;
  font-size: var(--step-2); font-weight: 750; font-stretch: 82%; line-height: 1; letter-spacing: -.015em;
}
.brief__title i { font-family: var(--mono); font-size: .75rem; font-style: normal; font-weight: 400; font-stretch: 100%; letter-spacing: .14em; color: var(--gold-500); }
.brief__title small { margin-left: auto; font-family: var(--mono); font-size: .6875rem; font-weight: 400; font-stretch: 100%; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0 1.05rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-weight: 500; line-height: 1;
  transition: background-color .2s, color .2s, border-color .2s, transform .3s var(--ease);
}
.chip span::before {
  content: ""; width: .4rem; height: .4rem; background: currentColor; opacity: .45; rotate: 45deg;
  transition: opacity .2s, rotate .4s var(--ease);
}
.chip:hover span { border-color: rgb(255 255 255 / .45); }
.chip input:checked + span { background: var(--gold-500); border-color: var(--gold-500); color: var(--ink-950); font-weight: 650; }
.chip input:checked + span::before { opacity: 1; rotate: 0deg; }
.chip input:active + span { transform: scale(.96); }
.chip input:focus-visible + span { outline: 2px solid var(--gold-500); outline-offset: 3px; }

.fields { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .5rem; min-width: 0; }
.field label { display: flex; justify-content: space-between; gap: 1rem; font-size: .9375rem; font-weight: 500; }
.field label small { font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: .95rem 1.1rem;
  border: 1px solid var(--line-strong); border-radius: .9rem;
  background: rgb(255 255 255 / .04);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 9.5rem; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: rgb(166 173 210 / .6); }
.field input:hover, .field textarea:hover { border-color: rgb(255 255 255 / .38); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--gold-500); background: rgb(255 255 255 / .06);
  box-shadow: 0 0 0 4px rgb(255 198 26 / .18);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { display: none; font-size: .875rem; color: var(--danger); }
.field [aria-invalid="true"] ~ .field__error { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.brief__send { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.brief__send p { flex: 1 1 14rem; font-size: .875rem; line-height: 1.45; color: var(--muted); }
.brief__send .btn { min-width: 11rem; }
.brief.is-sending .btn { pointer-events: none; opacity: .75; }
.brief.is-sending .btn .icon { animation: spin .8s linear infinite; }
.brief__status:empty { display: none; }
.brief__status {
  margin-top: 1.5rem; padding: 1rem 1.15rem; border: 1px solid var(--danger); border-radius: .9rem;
  background: rgb(255 155 138 / .08); font-size: .9375rem; line-height: 1.45;
}
.brief__status a { color: var(--gold-500); text-decoration: underline; text-underline-offset: .2em; }

.sent { display: grid; justify-items: start; gap: 1.25rem; padding-block: clamp(1rem, 4vw, 3rem); }
.sent > svg { width: 4.5rem; height: 4.5rem; color: var(--gold-500); }
.sent > svg path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .7s .15s var(--ease) forwards; }
.sent h2 { font-size: var(--step-4); font-stretch: 80%; }
.sent p { max-width: 34ch; font-size: var(--step-1); line-height: 1.4; color: var(--muted); }
.sent .actions { margin-top: .5rem; }

@media (min-width: 40rem) {
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--wide { grid-column: 1 / -1; }
}
@media (min-width: 62rem) {
  .contact { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .contact__side { position: sticky; top: calc(var(--header-h) + 3rem); }
}

/* 404 */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 8rem var(--gutter) 4rem; }
.lost h1 { font-size: clamp(3rem, 1rem + 10vw, 9rem); font-stretch: 78%; line-height: .88; letter-spacing: -.012em; }
.lost p:not(.tag) { max-width: 30rem; margin: 1.75rem auto 2.25rem; font-size: var(--step-1); color: var(--muted); }

/* 9 — Footer -------------------------------------------------------------- */

.site-footer { padding-top: clamp(4rem, 8vw, 7rem); overflow: clip; }
.site-footer > .wrap { container-type: inline-size; }
.footer__grid { display: grid; gap: 2.75rem; }
.footer__lead { max-width: 22rem; }
.footer__lead p { margin-top: 1.25rem; color: var(--muted); }
.footer__col h2 {
  margin-bottom: 1.1rem;
  font-family: var(--mono); font-size: .75rem; font-weight: 400; font-stretch: 100%; line-height: 1;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.footer__col li + li { margin-top: .15rem; }
.footer__col a { display: inline-block; padding-block: .3rem; transition: color .2s; }
.footer__col a:hover { color: var(--gold-500); }
.footer__place { padding-block: .3rem; color: var(--muted); }
.footer__col--split ul { columns: 2; column-gap: 2rem; }
.footer__col--split li { break-inside: avoid; }

.footer__mark {
  display: flex; align-items: baseline; justify-content: center;
  margin-top: clamp(3rem, 7vw, 5rem);
  font-size: 17cqi; font-weight: 800; font-stretch: 100%; line-height: .74; letter-spacing: .02em;
  color: rgb(255 255 255 / .08);
  white-space: nowrap; user-select: none;
}
.footer__mark span::before { content: attr(data-t); }   /* decorative: kept out of the text layer */
.footer__mark svg { width: .7em; height: .7em; margin-inline: .03em .06em; color: var(--gold-500); overflow: visible; transform: translateY(.03em); }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  padding-block: 1.5rem; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

@media (min-width: 48rem) {
  .footer__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr) minmax(0, .6fr) minmax(0, 1fr); gap: 3rem; }
}

/* 10 — Motion ------------------------------------------------------------- */

@keyframes rise   { from { opacity: 0; transform: translateY(.28em); } }
@keyframes fade   { from { opacity: 0; } }
@keyframes pop    { from { opacity: 0; transform: translate(.6em, .6em) scale(.6); } }
@keyframes frame  { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(-1em); } }
@keyframes draw   { to { stroke-dashoffset: 0; } }
@keyframes spin   { to { transform: rotate(1turn); } }
@keyframes ping   { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.4); } }
@keyframes light  { from { background-position-x: 100%; } to { background-position-x: 0%; } }
@keyframes wipe   { from { clip-path: inset(-20% 100% -20% -2%); } to { clip-path: inset(-20% -2% -20% -2%); } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Hero entrance */
  .hero .eyebrow        { animation: fade .8s .05s both; }
  .display__line        { animation: rise .9s var(--ease) both; animation-delay: calc(var(--n, 0) * 70ms); }
  .sel__box             { animation: frame .6s .55s var(--ease) both; }
  .sel__tag             { animation: pop .5s .95s var(--ease) both; }
  .hero .lede, .hero .actions { animation: rise .8s .3s var(--ease) both; }
  .hero .artboard       { animation: fade .8s .2s both; }
  .page-hero h1, .contact h1 { animation: rise .9s var(--ease) both; }
  .page-hero__intro, .contact__intro { animation: rise .9s .12s var(--ease) both; }

  .ping.is-on { animation: ping 1.8s 1.6s ease-out 4 both; }

  /* Reveal on scroll (class added by main.js) */
  .js [data-reveal] { opacity: 0; transform: translateY(1.5rem); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* Scroll-driven extras where the browser supports them */
  @supports (animation-timeline: view()) {
    .lit {
      background: linear-gradient(90deg, var(--text) 50%, rgb(238 240 251 / .2) 50%) 100% 0 / 200% 100% no-repeat;
      -webkit-background-clip: text; background-clip: text; color: transparent;
      animation: light linear both; animation-timeline: view(); animation-range: entry 55% cover 62%;
    }
    .path__line { animation: wipe linear both; animation-timeline: view(); animation-range: entry 40% cover 48%; }
  }

  /* Cross-page transitions */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: .25s ease both vt-out; }
  ::view-transition-new(root) { animation: .45s var(--ease) both vt-in; }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-.75rem); } }
@keyframes vt-in  { from { opacity: 0; transform: translateY(.75rem); } }

@media print {
  .site-header, .hero__spot, .artboard, .index__stage, .toc { display: none !important; }
  body { background: #fff; color: #000; }
}
