/* ==========================================================================
   HNRX STUDIO — main.css
   Order: reset, tokens, typography, layout primitives, components,
   sections, utilities, media queries.
   ========================================================================== */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
ul[role="list"], ol[role="list"] { list-style: none; }
a { color: inherit; }

/* ---------- TOKENS ---------- */
:root {
  /* pigment palette. paint black is warm. */
  --bone-black: #14110F;
  --umber:      #241E19;
  --titanium:   #F2EFE9;
  --ash:        #9A918A;

  /* brand accent. plum, from the HNRX Studio writing rules. */
  --plum:       #7E4A78;
  --plum-light: #C98ABF; /* brighter brand accent on dark ground */

  /* IP color. digital-muse page only. */
  --cerulean:   #2B6CB0;

  /* chrome ramp. WebGL hero only. */
  --chrome-hi:  #E6E2DA;
  --chrome-mid: #A9A29A;
  --chrome-lo:  #4A443E;

  /* type */
  --font-display: 'Bowlby One SC', sans-serif;
  --font-accent:  'Grandhest', serif;
  --font-body:    'Instrument Sans', sans-serif;
  --font-mono:    'Martian Mono', monospace;

  /* fluid type scale */
  --text-hero:  clamp(2.4rem, 7.5vw, 7rem);
  --text-h2:    clamp(1.8rem, 4.5vw, 3.6rem);
  --text-h3:    clamp(1.25rem, 2.4vw, 1.9rem);
  --text-body:  clamp(1rem, 1.1vw, 1.125rem);
  --text-mono:  0.6875rem; /* 11px */
  --text-num:   clamp(3.5rem, 9vw, 8rem);

  /* spacing scale */
  --space-1: clamp(0.5rem, 1vw, 0.75rem);
  --space-2: clamp(1rem, 2vw, 1.5rem);
  --space-3: clamp(2rem, 4vw, 3.5rem);
  --space-4: clamp(3.5rem, 7vw, 6.5rem);
  --space-5: clamp(6rem, 12vw, 11rem);

  --line-hair: 1px solid rgba(124, 115, 107, 0.28);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 2px;
  --max-w: 1440px;
  --measure: 65ch;
}

/* ---------- TYPOGRAPHY ---------- */
@font-face {
  font-family: 'Bowlby One SC';
  src: url('../assets/fonts/BowlbyOneSC-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Grandhest';
  src: url('../assets/fonts/Grandhest.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--titanium);
  background: var(--bone-black);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

.accent-script {
  font-family: var(--font-accent);
  text-transform: none;
  letter-spacing: 0;
}

.mono, .meta {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ash);
}

p { max-width: var(--measure); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--plum-light);
  outline-offset: 3px;
}

::selection { background: var(--plum); color: var(--titanium); }

/* ---------- LAYOUT PRIMITIVES ---------- */
.wrap {
  width: min(100% - 2 * var(--space-2), var(--max-w));
  margin-inline: auto;
}
.section { padding-block: var(--space-5); }
.section--tight { padding-block: var(--space-4); }
.grid { display: grid; gap: var(--space-2); }

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -100px;
  z-index: 200;
  background: var(--plum);
  color: var(--titanium);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: var(--space-2); }

/* ---------- GRAIN ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: var(--bone-black);
  border-bottom: var(--line-hair);
}
.nav__inner {
  width: min(100% - 2 * var(--space-2), var(--max-w));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.nav__logo--art {
  position: relative;
  display: block;
  width: clamp(9.5rem, 15vw, 13.5rem);
  height: clamp(2.25rem, 3.5vw, 3.25rem);
  flex: 0 0 auto;
}
.nav__logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}
.nav__links { display: flex; gap: var(--space-2); align-items: center; list-style: none; }
.nav__links a {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--titanium);
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
}
.nav__links a:hover { border-bottom-color: var(--plum-light); }
.nav__links a[aria-current="page"] { color: var(--plum-light); }

.nav__dd { position: relative; }
.nav__dd-btn {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--titanium);
  padding-block: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav__dd-btn::after { content: '▾'; font-size: 0.6rem; color: var(--ash); }
.nav__dd-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 240px;
  background: var(--umber);
  border: var(--line-hair);
  padding: 0.5rem 0;
  display: none;
  list-style: none;
}
.nav__dd.is-open .nav__dd-menu,
.nav__dd:focus-within .nav__dd-menu { display: block; }
.nav__dd-menu a {
  display: block;
  padding: 0.7rem 1.2rem;
  border-bottom: none;
}
.nav__dd-menu a:hover { background: var(--bone-black); }

.nav__burger { display: none; }

/* mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--bone-black);
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-3);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 8vw, 3rem);
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 0.5rem;
  opacity: 0;
  transform: translateY(20px);
}
.mobile-menu.is-open a { animation: menuLink 0.35s var(--ease-out) forwards; }
.mobile-menu.is-open a:nth-child(2) { animation-delay: 0.02s; }
.mobile-menu.is-open a:nth-child(3) { animation-delay: 0.05s; }
.mobile-menu.is-open a:nth-child(4) { animation-delay: 0.08s; }
.mobile-menu.is-open a:nth-child(5) { animation-delay: 0.11s; }
.mobile-menu.is-open a:nth-child(6) { animation-delay: 0.14s; }
.mobile-menu.is-open a:nth-child(7) { animation-delay: 0.17s; }
.mobile-menu.is-open a:nth-child(8) { animation-delay: 0.2s; }
.mobile-menu.is-open a:nth-child(9) { animation-delay: 0.23s; }
@keyframes menuLink { to { opacity: 1; transform: none; } }
.mobile-menu__close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  color: var(--titanium);
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: 0.1em;
}

/* ---------- COMPONENTS ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.btn--primary {
  background: var(--plum);
  color: var(--titanium);
}
.btn--primary:hover { background: var(--plum-light); color: var(--bone-black); }
.btn--ghost {
  border: 1px solid var(--ash);
  color: var(--titanium);
}
.btn--ghost:hover { border-color: var(--titanium); }

.link-under {
  color: var(--titanium);
  text-decoration: none;
  border-bottom: 1px solid var(--ash);
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease-out);
}
.link-under:hover { border-bottom-color: var(--plum-light); }

/* privacy and optional analytics */
.privacy-choice {
  position: fixed;
  right: var(--space-2);
  bottom: var(--space-2);
  z-index: 160;
  width: min(31rem, calc(100% - 2 * var(--space-2)));
  padding: clamp(1.25rem, 3vw, 2rem);
  background: rgba(20, 17, 15, 0.98);
  border: 1px solid rgba(201, 138, 191, 0.48);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.42);
}
.privacy-choice[hidden] { display: none; }
.privacy-choice h2 {
  margin-top: 0.45rem;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
}
.privacy-choice p {
  margin-top: var(--space-1);
  color: var(--ash);
  font-size: 0.95rem;
  line-height: 1.55;
}
.privacy-choice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-2);
}
.privacy-choice__actions .btn {
  flex: 1 1 12rem;
  text-align: center;
  padding: 0.85rem 1rem;
}
.privacy-choice__link {
  display: inline-block;
  margin-top: var(--space-1);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-copy {
  display: grid;
  gap: var(--space-3);
  max-width: 78ch;
}
.legal-section {
  display: grid;
  gap: var(--space-1);
  padding-top: var(--space-2);
  border-top: var(--line-hair);
}
.legal-section h2 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: var(--plum-light);
}
.legal-section p,
.legal-section li { color: var(--ash); }
.legal-section ul {
  display: grid;
  gap: 0.65rem;
  padding-left: 1.25rem;
}
.legal-section .btn {
  justify-self: start;
  margin-top: 0.35rem;
}

/* image placeholder blocks */
.ph {
  background: var(--bone-black);
  border: var(--line-hair);
  display: grid;
  place-items: center;
  width: 100%;
}
.ph span {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
  text-align: center;
  padding: var(--space-2);
}
.ph--169 { aspect-ratio: 16 / 9; }
.ph--45  { aspect-ratio: 4 / 5; }
.ph--11  { aspect-ratio: 1 / 1; }

/* reveal states (js adds .is-in) */
.reveal-img { clip-path: inset(0 0 100% 0); }
.reveal-img.is-in { animation: unclip 0.7s var(--ease-out) forwards; }
@keyframes unclip { to { clip-path: inset(0 0 0% 0); } }

/* accordion */
.acc { border-top: var(--line-hair); }
.acc__item { border-bottom: var(--line-hair); }
.acc__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  padding-block: 1.4rem;
  text-align: left;
  color: var(--titanium);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 500;
}
.acc__q::after {
  content: '+';
  font-family: var(--font-mono);
  color: var(--ash);
  flex-shrink: 0;
}
.acc__item.is-open .acc__q::after { content: '−'; color: var(--plum-light); }
.acc__a { display: none; padding-bottom: 1.4rem; color: var(--ash); }
.acc__item.is-open .acc__a { display: block; }

/* marquee */
.marquee {
  border-top: var(--line-hair);
  border-bottom: var(--line-hair);
  overflow: hidden;
  padding-block: 1.1rem;
}
.marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* footer */
.footer {
  border-top: var(--line-hair);
  padding-block: var(--space-4) var(--space-3);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.footer a { text-decoration: none; color: var(--titanium); }
.footer a:hover { color: var(--plum-light); }
.footer ul { list-style: none; display: grid; gap: 0.6rem; }
.footer__logo { font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; }
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: space-between; border-top: var(--line-hair); padding-top: var(--space-2); }

/* ---------- SECTIONS ---------- */

/* hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__canvas, .hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* immersive mode: the shader leaves the hero and backs the whole page.
   explicit layering: canvas at 0, content at 1. no negative z-index. */
.hero__canvas.is-immersive {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  transition: opacity 0.85s ease-out;
}
/* past the hero the canvas sleeps: fades out, render loop halts (see hero.js) */
.hero__canvas.is-asleep { opacity: 0; }
/* lift page content above the fixed canvas (z-index 0). header, chat, and
   mobile menu are NOT wrapped here on purpose: their fixed children carry
   their own higher z-index (nav 100, chat 130+, menu 150) and must stack
   at the root, above main, or they cannot receive clicks. */
.has-immersive main,
.has-immersive footer { position: relative; z-index: 1; }

/* Over the liquid metal, secondary text lifts well clear of the chrome
   midtones. The shader already dims below the hero; this finishes the job. */
.has-immersive .u-ash,
.has-immersive .hero__sub,
.has-immersive .lede,
.has-immersive .band p,
.has-immersive .work-tile p,
.has-immersive .motion-card p,
.has-immersive .step p,
.has-immersive .tier p,
.has-immersive .acc__a,
.has-immersive .tiers-close,
.has-immersive .testi blockquote {
  color: #D8D0C8;
  text-shadow: 0 1px 10px rgba(20, 17, 15, 0.85);
}
/* mono labels stay quieter, but still clear of the metal */
.has-immersive .meta,
.has-immersive .micro,
.has-immersive .legal-line {
  color: #B8AEA5;
  text-shadow: 0 1px 8px rgba(20, 17, 15, 0.85);
}
.has-immersive h1,
.has-immersive h2,
.has-immersive h3 {
  text-shadow: 0 2px 24px rgba(20, 17, 15, 0.6);
}
/* Below the fold the canvas sleeps, so panels sit on solid ground.
   backdrop-filter was removed everywhere except the nav (small area,
   and it overlaps the live hero at the top) — blur layers were a
   scroll-performance cost with no visual payoff over a static bg. */
.has-immersive .concepts { background: var(--umber); }
.has-immersive .tier,
.has-immersive .callout { background: rgba(20, 17, 15, 0.45); }
.has-immersive .nav.is-solid { background: rgba(20, 17, 15, 0.85); backdrop-filter: blur(10px); }
.has-immersive .footer { background: var(--bone-black); }
/* No shader (mobile, or reduced motion): a still evocation of the metal.
   Costs zero bytes. Gated so it never paints over the live canvas. */
body:not(.has-immersive) .hero {
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(169, 162, 154, 0.20), transparent 60%),
    radial-gradient(95% 75% at 18% 82%, rgba(126, 74, 120, 0.24), transparent 65%),
    radial-gradient(70% 55% at 55% 55%, rgba(230, 226, 218, 0.07), transparent 70%),
    var(--bone-black);
}

.hero__content { position: relative; padding-block: var(--space-5); }
.hero h1 .accent-word { color: var(--plum-light); }
.hero__sub {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--ash);
  margin-top: var(--space-2);
  max-width: 34ch;
}
.hero__ctas { display: flex; gap: var(--space-2); align-items: center; margin-top: var(--space-3); flex-wrap: wrap; }
.hero__meta {
  position: absolute;
  bottom: var(--space-2);
  left: 0;
}

/* thesis */
.thesis__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.thesis__num {
  font-family: var(--font-display);
  font-size: var(--text-num);
  line-height: 1;
  color: var(--titanium);
}
.thesis__num em { font-style: normal; color: var(--plum-light); }
.thesis__label { margin-block: var(--space-1); }
.thesis__close {
  margin-top: var(--space-4);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  max-width: 40ch;
}

/* capability bands */
.bands { border-top: var(--line-hair); }
.band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  align-items: center;
  padding-block: var(--space-3);
  border-bottom: var(--line-hair);
  text-decoration: none;
  position: relative;
}
.band h3 { transition: color 0.25s var(--ease-out); }
.band:hover h3 { color: var(--plum-light); }
.band p { color: var(--ash); }
.band__media {
  position: absolute;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  width: min(320px, 30%);
  aspect-ratio: 16 / 9;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
}
.band:hover .band__media { opacity: 1; }

/* motion grid: the studio's own films, in their own room */
.motion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) var(--space-2);
}
.motion-card { text-decoration: none; display: block; }
.motion-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bone-black);
  border: var(--line-hair);
  border-radius: var(--radius);
}
.motion-card__media video,
.motion-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.motion-card:hover .motion-card__media video { transform: scale(1.03); }
.motion-card .meta { display: block; margin-top: var(--space-1); }
.motion-card h3 { margin-top: 0.3rem; transition: color 0.25s var(--ease-out); }
.motion-card:hover h3 { color: var(--plum-light); }
.motion-card p { margin-top: 0.3rem; }

/* service films: vertical work samples with playback on demand */
.service-film-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3) var(--space-2);
  margin-top: var(--space-3);
  align-items: start;
}
.service-film {
  min-width: 0;
  padding-top: var(--space-2);
  border-top: var(--line-hair);
}
.service-film__media {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--bone-black);
}
.service-film__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-film .meta { display: block; margin-top: var(--space-1); }
.service-film h3 { margin-top: 0.35rem; }
.service-film h3 a { text-decoration: none; transition: color 0.25s var(--ease-out); }
.service-film h3 a:hover { color: var(--plum-light); }
.service-film p { margin-top: 0.45rem; color: var(--ash); }
.service-film-note {
  max-width: 100ch;
  margin-top: var(--space-3);
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  line-height: 1.65;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* real media replacing placeholders */
.media-frame { position: relative; width: 100%; overflow: hidden; }
.media-frame img, .media-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-frame--169 { aspect-ratio: 16 / 9; }
.media-frame--45 { aspect-ratio: 4 / 5; }

/* film player: poster until played, controls on demand */
.film { width: 100%; aspect-ratio: 16 / 9; background: var(--bone-black); border: var(--line-hair); }
.film video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* selected work grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
.work-tile { text-decoration: none; display: block; }
.work-grid .work-tile { grid-column: auto; margin-top: 0; min-width: 0; }
.work-tile .meta { display: block; margin-top: var(--space-1); }
.work-tile h3 { margin-top: 0.3rem; }
.work-tile p { color: var(--ash); margin-top: 0.3rem; }
.work-tile:hover h3 { color: var(--plum-light); }
.work-tile__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #000;
}
.work-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.work-tile:hover .work-tile__media img { transform: scale(1.02); }

.work-feature .work-tile {
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: center;
  gap: var(--space-3);
}
.work-feature__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
}
.work-feature__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
.work-feature__copy .meta { margin-top: 0; }
.work-feature__copy h3 { margin-top: var(--space-1); }
.work-feature__copy p { margin-block: var(--space-1) var(--space-2); }

/* concepts rail */
.concepts { background: var(--umber); }
.rail {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-2);
  margin-top: var(--space-3);
}
.rail::-webkit-scrollbar { height: 4px; }
.rail::-webkit-scrollbar-thumb { background: var(--ash); }
.rail__card {
  flex: 0 0 min(560px, 84vw);
  scroll-snap-align: start;
  text-decoration: none;
}
.rail__card h3 { margin-top: var(--space-1); }
.rail__card p { color: var(--ash); }
.rail__card:hover h3 { color: var(--plum-light); }
.legal-line {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
  max-width: 90ch;
  line-height: 1.7;
  margin-top: var(--space-3);
}

/* testimonials */
.testis { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-top: var(--space-3); }
.testi blockquote { font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.55; }
.testi figcaption { margin-top: var(--space-2); display: flex; gap: 0.9rem; align-items: center; }
.testi .ph--11 { width: 52px; flex-shrink: 0; }

/* director */
.director { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-4); align-items: center; }
.director__close { margin-top: var(--space-2); font-size: clamp(1.1rem, 1.7vw, 1.35rem); }
.callout {
  border: var(--line-hair);
  border-left: 2px solid var(--plum);
  padding: var(--space-2);
  margin-top: var(--space-3);
  color: var(--ash);
  max-width: var(--measure);
}

/* process */
.process { counter-reset: step; }
.process__line { position: relative; }
.process__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); margin-top: var(--space-3); position: relative; }
.process__steps::before {
  content: '';
  position: absolute;
  top: 0.65rem;
  left: 0;
  height: 1px;
  width: var(--line-w, 0%);
  background: var(--plum);
  transition: width 1.4s var(--ease-out);
}
.step__num { font-family: var(--font-mono); font-size: var(--text-mono); letter-spacing: 0.1em; color: var(--plum-light); }
.step h3 { font-size: 1.1rem; margin-block: var(--space-1); }
.step p { color: var(--ash); font-size: 0.95rem; }

/* engagement */
.tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); margin-top: var(--space-3); }
.tier { border: var(--line-hair); padding: var(--space-3) var(--space-2); }
.tier h3 { font-size: 1.05rem; }
.tier p { color: var(--ash); margin-top: var(--space-1); }
.tier p strong { color: var(--titanium); font-weight: 500; }
.tiers-close { margin-top: var(--space-3); color: var(--ash); }

/* big close */
.close-cta h2 { font-size: clamp(2.2rem, 7vw, 6rem); max-width: 14ch; }
.close-cta .btn { margin-top: var(--space-3); }

/* page hero (inner pages) */
.page-hero { padding-top: calc(var(--space-5) + 4rem); padding-bottom: var(--space-3); }
.page-hero .meta { display: block; margin-bottom: var(--space-2); }
.page-hero p.lede { margin-top: var(--space-2); color: var(--ash); }

/* case study */
.cs-meta { display: flex; flex-wrap: wrap; gap: var(--space-3); border-block: var(--line-hair); padding-block: var(--space-2); margin-block: var(--space-3); }
.cs-meta div span { display: block; }
.cs-meta div span:first-child { color: var(--ash); font-family: var(--font-mono); font-size: var(--text-mono); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.35rem; }
.cs-section { margin-block: var(--space-4); }
.cs-section h2 { font-size: clamp(1.3rem, 2.4vw, 2rem); margin-bottom: var(--space-2); }
.cs-gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-2); }
.cs-gallery > * { grid-column: span 2; }
.cs-gallery > *:nth-child(4), .cs-gallery > *:nth-child(5) { grid-column: span 3; }
.design-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3) var(--space-2);
}
.design-piece { margin: 0; min-width: 0; }
.design-piece__frame {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #080707;
}
.design-piece__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.design-piece figcaption {
  display: flex;
  justify-content: space-between;
  gap: var(--space-1);
  padding-top: 0.75rem;
  border-top: var(--line-hair);
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.design-piece figcaption span:last-child { color: var(--ash); text-align: right; }
.next-project { border-top: var(--line-hair); padding-top: var(--space-3); }

.case-film {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-4);
  align-items: center;
  padding-block: var(--space-3);
  border-block: var(--line-hair);
}
.case-film__player { width: min(420px, 100%); justify-self: center; }
.case-film__player video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}
.case-film__copy h2 { margin-block: var(--space-1) var(--space-2); }
.case-film__copy .display { margin-top: var(--space-3); font-size: 2rem; color: var(--plum-light); }
.case-film--landscape { grid-template-columns: 7fr 5fr; }
.case-film__player--landscape { width: min(720px, 100%); }
.case-film__player--landscape video { aspect-ratio: 16 / 9; }

.storyboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.storyboard-frame { min-width: 0; }
.storyboard-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--umber);
}
.storyboard-grid--landscape .storyboard-frame img { aspect-ratio: 16 / 9; }
.storyboard-grid--portrait .storyboard-frame img { aspect-ratio: 9 / 16; }
.storyboard-frame figcaption {
  display: flex;
  justify-content: space-between;
  gap: var(--space-1);
  padding-top: 0.65rem;
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
}
.storyboard-frame figcaption span { color: var(--plum-light); }

.direction-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.direction-grid > div { border-top: 2px solid var(--plum); padding-top: var(--space-2); }
.direction-grid__num { font-family: var(--font-mono); font-size: var(--text-mono); color: var(--plum-light); }
.direction-grid h3 { margin-block: var(--space-1); font-size: 1.15rem; }

.case-delivery {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-4);
  align-items: start;
  padding-block: var(--space-3);
  border-block: var(--line-hair);
}
.case-delivery ul { list-style: none; }
.case-delivery li { padding-block: 0.8rem; border-bottom: var(--line-hair); color: var(--ash); }
.case-delivery li:first-child { padding-top: 0; }

/* work index filters */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-block: var(--space-3); }
.filter-pill {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
  border: 1px solid var(--ash);
  border-radius: 100px;
  padding: 0.55rem 1.2rem;
  transition: all 0.2s var(--ease-out);
}
.filter-pill[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: var(--titanium); }
.work-index { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.work-index .work-tile {
  grid-column: auto;
  margin-top: 0;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.work-index .work-tile.is-hidden { display: none; }

/* inquire */
.inquire-layout { display: grid; grid-template-columns: 7fr 5fr; gap: var(--space-4); }
.inquire-side { display: none; }
.inquire-side.is-visible { display: block; }
.progress-line { position: fixed; top: 0; left: 0; height: 2px; background: var(--plum); z-index: 110; transition: width 0.4s var(--ease-out); }
.q-step { display: none; }
.q-step.is-active { display: block; animation: stepIn 0.4s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; } to { opacity: 1; } }
.q-step h2 { font-size: clamp(1.4rem, 3vw, 2.4rem); margin-bottom: var(--space-3); }
.q-options { display: grid; gap: var(--space-1); }
.q-option {
  border: var(--line-hair);
  padding: 1.1rem 1.4rem;
  text-align: left;
  color: var(--titanium);
  font-size: 1rem;
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.q-option:hover { border-color: var(--plum-light); }
.q-option[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); }
.q-nav { display: flex; gap: var(--space-2); margin-top: var(--space-3); align-items: center; }
.q-back { color: var(--ash); font-family: var(--font-mono); font-size: var(--text-mono); text-transform: uppercase; letter-spacing: 0.1em; }
.q-back:hover { color: var(--titanium); }
.field { margin-bottom: var(--space-2); }
.field label { display: block; font-family: var(--font-mono); font-size: var(--text-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ash); margin-bottom: 0.5rem; }
.field input, .field textarea {
  width: 100%;
  background: var(--umber);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  color: var(--titanium);
}
.field input:focus, .field textarea:focus { border-color: var(--plum-light); outline: none; }
.field .err { color: var(--plum-light); font-size: 0.85rem; margin-top: 0.4rem; display: none; }
.field.has-err .err { display: block; }
.field.has-err input, .field.has-err textarea { border-color: var(--plum-light); }
.micro { font-family: var(--font-mono); font-size: var(--text-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); margin-top: var(--space-1); }

/* chat widget */
.chat-trigger {
  position: fixed;
  bottom: var(--space-2);
  right: var(--space-2);
  z-index: 130;
  background: var(--umber);
  border: 1px solid var(--ash);
  border-radius: 100px;
  padding: 0.8rem 1.4rem;
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--titanium);
  display: none;
  align-items: center;
  gap: 0.6rem;
  transition: transform 0.2s var(--ease-out);
}
.chat-trigger.is-visible { display: inline-flex; }
.chat-trigger:hover { transform: translateY(-2px); }
.chat-trigger::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--plum-light); }
.chat-panel {
  position: fixed;
  bottom: var(--space-2);
  right: var(--space-2);
  z-index: 140;
  width: 400px;
  max-height: 72vh;
  background: var(--bone-black);
  border: var(--line-hair);
  border-radius: var(--radius);
  display: none;
  flex-direction: column;
}
.chat-panel.is-open { display: flex; }
.chat-panel__head { padding: var(--space-2); border-bottom: var(--line-hair); }
.chat-panel__head .disclaimer { font-size: var(--text-mono); font-family: var(--font-mono); letter-spacing: 0.06em; color: var(--ash); text-transform: none; margin-top: 0.4rem; line-height: 1.5; }
.chat-log { flex: 1; overflow-y: auto; padding: var(--space-2); display: flex; flex-direction: column; gap: var(--space-1); }
.chat-msg { max-width: 88%; line-height: 1.5; font-size: 0.95rem; }
.chat-msg--user { align-self: flex-end; background: var(--umber); padding: 0.7rem 1rem; border-radius: var(--radius); }
.chat-msg--bot { align-self: flex-start; color: var(--titanium); }
.chat-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0 var(--space-2) var(--space-1); }
.chat-chip {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
  border: 1px solid var(--ash);
  border-radius: 100px;
  padding: 0.45rem 0.9rem;
}
.chat-chip:hover { color: var(--titanium); border-color: var(--titanium); }
.chat-input { display: flex; border-top: var(--line-hair); }
.chat-input input { flex: 1; background: none; border: none; padding: 1rem var(--space-2); color: var(--titanium); }
.chat-input input:focus { outline: none; }
.chat-input button { color: var(--plum-light); font-family: var(--font-mono); font-size: var(--text-mono); letter-spacing: 0.1em; text-transform: uppercase; padding-inline: var(--space-2); }
.typing { display: inline-flex; gap: 4px; padding-block: 0.4rem; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--plum-light); animation: pulse 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.chat-close { position: absolute; top: 0.9rem; right: 0.9rem; color: var(--ash); font-family: var(--font-mono); font-size: var(--text-mono); }
.chat-close:hover { color: var(--titanium); }

/* muse page: cerulean lives here and nowhere else */
.page-muse .step__num,
.page-muse .hard-line strong { color: var(--cerulean); }
.page-muse .callout { border-left-color: var(--cerulean); }
.page-muse .hard-line { border: 1px solid var(--cerulean); padding: var(--space-3); margin-block: var(--space-4); font-size: clamp(1.1rem, 1.8vw, 1.4rem); max-width: none; }
.page-muse .page-hero { min-height: min(88svh, 900px); display: flex; flex-direction: column; justify-content: center; }
.page-muse .page-hero .lede { max-width: 58ch; }
.muse-signature { margin-top: var(--space-1); color: var(--titanium); font-weight: 500; }
.page-muse .hero__ctas .link-under { color: var(--ash); text-decoration: none; }
.muse-problem { border-block: var(--line-hair); background: rgba(36, 30, 25, 0.28); }
.muse-pullquote { margin-top: var(--space-3); max-width: 22ch; font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 3.2rem); line-height: 1.08; text-transform: uppercase; color: var(--titanium); }
.muse-value-chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: var(--line-hair); }
.muse-value-chain div { position: relative; min-height: 150px; padding: var(--space-2); border-right: var(--line-hair); display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-3); }
.muse-value-chain div:last-child { border-right: 0; }
.muse-value-chain span { font-family: var(--font-mono); font-size: var(--text-mono); color: var(--cerulean); letter-spacing: 0.1em; }
.muse-value-chain strong { max-width: 13ch; font-family: var(--font-display); font-weight: 400; font-size: clamp(1rem, 1.8vw, 1.5rem); line-height: 1.08; text-transform: uppercase; }
.muse-proof-list { list-style: none; border-top: var(--line-hair); }
.muse-proof-list li { padding-block: 0.75rem; border-bottom: var(--line-hair); color: var(--titanium); }
.muse-key-art { border-top: var(--line-hair); }
.muse-key-art__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr); gap: var(--space-4); align-items: center; }
.muse-key-art__poster { margin: 0; }
.muse-key-art__poster img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--umber); }
.muse-key-art__poster figcaption { padding-top: 0.75rem; border-top: var(--line-hair); font-family: var(--font-mono); font-size: var(--text-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); }
.muse-key-art__copy h2 { max-width: 12ch; }
.muse-build-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: var(--line-hair); }
.muse-build-grid article { padding: var(--space-3) var(--space-3) var(--space-3) 0; border-bottom: var(--line-hair); }
.muse-build-grid article:nth-child(odd) { border-right: var(--line-hair); }
.muse-build-grid article:nth-child(even) { padding-left: var(--space-3); }
.muse-build-grid h3 { margin-block: var(--space-1); max-width: 22ch; }
.muse-build-grid p { color: var(--ash); }
.muse-engine { border-block: 1px solid var(--cerulean); background: rgba(43, 108, 176, 0.08); }
.mutants-license { border-block: 1px solid var(--cerulean); background: rgba(43, 108, 176, 0.05); }
.mutants-license h2 { max-width: 12ch; }
.muse-engine__grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-4); align-items: start; }
.muse-engine h2 { color: var(--titanium); }
.muse-uses { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.muse-uses span { border: 1px solid rgba(43, 108, 176, 0.7); padding: 0.55rem 0.8rem; font-family: var(--font-mono); font-size: var(--text-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--titanium); }
.page-muse .close-cta .lede { max-width: 42ch; }

/* product photography portfolio */
.product-portfolio { border-block: var(--line-hair); }
.product-portfolio__intro { padding-block: var(--space-5); }
.product-portfolio__intro h2 { max-width: 17ch; margin-top: var(--space-1); }
.product-portfolio__intro .lede { max-width: 52ch; margin-top: var(--space-2); }
.product-story {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
  min-height: 760px;
  border-top: var(--line-hair);
}
.product-story--reverse { grid-template-columns: minmax(320px, 5fr) minmax(0, 7fr); }
.product-story--reverse .product-story__media { order: 2; }
.product-story--reverse .product-story__copy { order: 1; }
.product-story__media { min-height: 720px; overflow: hidden; background: var(--umber); }
.product-story__media img { width: 100%; height: 100%; object-fit: cover; }
.product-story--client .product-story__media img { object-position: center 44%; }
.product-story__copy {
  padding: clamp(2rem, 5vw, 6rem);
  align-self: center;
}
.product-story__copy h3 { margin-top: var(--space-1); font-size: clamp(2rem, 4.2vw, 4.6rem); }
.product-story__copy > p:not(.meta) { max-width: 43ch; color: var(--ash); }
.product-story__thesis { margin-block: var(--space-2) var(--space-1); color: var(--titanium) !important; font-size: clamp(1.2rem, 1.8vw, 1.55rem); }
.product-decisions { margin-top: var(--space-3); border-top: var(--line-hair); }
.product-decisions div { display: grid; grid-template-columns: 6rem 1fr; gap: var(--space-1); padding-block: 0.8rem; border-bottom: var(--line-hair); }
.product-decisions dt { font-family: var(--font-mono); font-size: var(--text-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--plum-light); }
.product-decisions dd { color: var(--ash); }
.product-story--wide { display: block; position: relative; min-height: 760px; }
.product-story--wide .product-story__media { min-height: 760px; }
.product-story--wide .product-story__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,7,6,0.88) 0%, rgba(8,7,6,0.55) 38%, rgba(8,7,6,0.04) 70%); }
.product-story--wide .product-story__copy { position: absolute; z-index: 2; inset: 0 auto 0 0; width: min(48rem, 55%); display: flex; flex-direction: column; justify-content: center; }
.product-story--wide .product-story__copy > p:not(.meta) { color: rgba(245,241,235,0.8); }
.product-range { padding-block: var(--space-5); }
.product-range__head { display: grid; grid-template-columns: 4fr 8fr; gap: var(--space-3); align-items: start; margin-bottom: var(--space-4); }
.product-range__head h2 { max-width: 15ch; }
.product-range__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-2); align-items: start; }
.product-piece { grid-column: span 2; }
.product-piece:nth-child(4) { grid-column: 2 / span 2; }
.product-piece:nth-child(5) { grid-column: 4 / span 2; }
.product-piece img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--umber); }
.product-piece figcaption { padding-top: var(--space-1); }
.product-piece figcaption span { display: block; font-family: var(--font-display); font-size: clamp(1rem, 1.4vw, 1.35rem); text-transform: uppercase; }
.product-piece figcaption small { display: block; min-height: 2.6em; margin-top: 0.35rem; font-family: var(--font-mono); font-size: 0.625rem; line-height: 1.45; letter-spacing: 0.08em; text-transform: uppercase; color: var(--plum-light); }
.product-piece figcaption p { margin-top: 0.7rem; color: var(--ash); font-size: 0.95rem; }
.product-portfolio__note { margin-top: var(--space-4); max-width: 90ch; font-family: var(--font-mono); font-size: 0.625rem; line-height: 1.65; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ash); }

/* brand building: HNRX self-identity case */
.brand-proof { border-block: var(--line-hair); background: #0b0908; }
.brand-proof__intro h2 { max-width: 13ch; }
.brand-proof__intro .lede { max-width: 59ch; }
.brand-position {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--space-4);
  align-items: end;
  padding-block: var(--space-3);
  border-block: var(--line-hair);
}
.brand-position__copy h3 { margin-block: var(--space-1); max-width: 18ch; }
.brand-position__copy p { color: var(--ash); }
.brand-position__statement {
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.4vw, 5.6rem);
  line-height: 1.02;
  text-transform: uppercase;
}
.brand-position__statement span { color: var(--plum-light); }
.brand-system-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: var(--line-hair);
}
.brand-system-board > div { min-width: 0; padding: var(--space-3); }
.brand-system-board > div:nth-child(odd) { border-right: var(--line-hair); }
.brand-system-board > div:nth-child(-n+2) { border-bottom: var(--line-hair); }
.brand-system-board__logo {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bone-black);
}
.brand-system-board__logo img { width: min(100%, 640px); margin-block: var(--space-4); }
.brand-system-board__logo p { color: var(--ash); }
.brand-system-board__palette { display: flex; flex-direction: column; justify-content: space-between; }
.brand-swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); margin-top: var(--space-3); }
.brand-swatches div { min-width: 0; }
.brand-swatches i { display: block; width: 100%; aspect-ratio: 16 / 6; background: var(--swatch); border: var(--line-hair); }
.brand-swatches span, .brand-swatches small { display: block; }
.brand-swatches span { margin-top: 0.55rem; font-family: var(--font-mono); font-size: var(--text-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.brand-swatches small { color: var(--ash); font-family: var(--font-mono); font-size: 0.625rem; }
.brand-system-board__type { display: flex; flex-direction: column; justify-content: center; gap: var(--space-2); }
.brand-system-board__type > .meta { margin-bottom: var(--space-2); }
.brand-type-sample { overflow-wrap: anywhere; }
.brand-type-sample--display { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 5.2rem); line-height: 0.95; text-transform: uppercase; }
.brand-type-sample--body { font-family: var(--font-body); font-size: clamp(1.15rem, 2vw, 1.8rem); color: var(--ash); }
.brand-type-sample--mono { font-family: var(--font-mono); font-size: var(--text-mono); letter-spacing: 0.1em; color: var(--plum-light); }
.brand-type-sample--accent { font-family: var(--font-accent); font-size: clamp(3.2rem, 7vw, 7rem); line-height: 0.8; color: var(--plum-light); }
.brand-system-board__voice { display: flex; flex-direction: column; }
.brand-system-board__voice h3 { margin-block: var(--space-1) var(--space-3); max-width: 22ch; }
.brand-voice-lines { margin-top: auto; border-top: var(--line-hair); }
.brand-voice-lines p { max-width: none; padding-block: 0.7rem; border-bottom: var(--line-hair); color: var(--ash); }
.brand-world {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-4);
  align-items: center;
  padding-top: var(--space-4);
}
.brand-world__media { width: min(420px, 100%); justify-self: center; }
.brand-world__media video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
.brand-world__copy h3 { margin-block: var(--space-1) var(--space-2); font-size: clamp(2rem, 4.2vw, 4.6rem); }
.brand-world__copy > p { color: var(--ash); }
.brand-handoff { border-bottom: var(--line-hair); }
.brand-handoff h2 { max-width: 12ch; }
.brand-handoff__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: var(--line-hair); }
.brand-handoff__grid article { min-width: 0; padding: var(--space-3) var(--space-2); border-right: var(--line-hair); }
.brand-handoff__grid article:last-child { border-right: 0; }
.brand-handoff__grid h3 { margin-block: var(--space-1); font-size: clamp(1.1rem, 1.8vw, 1.55rem); }
.brand-handoff__grid p { color: var(--ash); font-size: 0.95rem; }

/* success page */
.success-panel { min-height: 70svh; display: grid; place-items: center; text-align: left; }
.outcome { display: none; }
.outcome.is-active { display: block; }

/* ---------- UTILITIES ---------- */
.u-ash { color: var(--ash); }
.u-mt-1 { margin-top: var(--space-1); }
.u-mt-2 { margin-top: var(--space-2); }
.u-mt-3 { margin-top: var(--space-3); }
.u-mt-4 { margin-top: var(--space-4); }
.u-max { max-width: var(--measure); }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- MEDIA QUERIES ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__burger {
    display: block;
    color: var(--titanium);
    font-family: var(--font-mono);
    font-size: var(--text-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .thesis__cols, .testis, .tiers { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .director { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; }
  .band__media { display: none; }
  .motion-grid { grid-template-columns: 1fr; }
  .service-film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid { grid-template-columns: 1fr; }
  .work-tile, .work-tile:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .work-index { grid-template-columns: 1fr; }
  .work-feature .work-tile, .case-film, .case-delivery { grid-template-columns: 1fr; }
  .case-film__player { justify-self: start; }
  .storyboard-grid { grid-template-columns: repeat(2, 1fr); }
  .direction-grid { grid-template-columns: 1fr; }
  .inquire-layout { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cs-gallery > *, .cs-gallery > *:nth-child(n) { grid-column: span 6; }
  .design-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat-panel { inset: 0; width: auto; max-height: none; border: none; }
  .muse-value-chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .muse-value-chain div:nth-child(2) { border-right: 0; }
  .muse-value-chain div:nth-child(-n+2) { border-bottom: var(--line-hair); }
  .muse-engine__grid { grid-template-columns: 1fr; }
  .product-story, .product-story--reverse { grid-template-columns: 1fr; min-height: auto; }
  .product-story--reverse .product-story__media, .product-story--reverse .product-story__copy { order: initial; }
  .product-story__media { min-height: 70vw; max-height: 780px; }
  .product-story__copy { padding: var(--space-4) var(--space-3); }
  .product-story--wide { min-height: auto; }
  .product-story--wide .product-story__media { min-height: 62vw; }
  .product-story--wide .product-story__copy { position: relative; width: auto; }
  .product-story--wide .product-story__media::after { display: none; }
  .product-range__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-piece, .product-piece:nth-child(4), .product-piece:nth-child(5) { grid-column: auto; }
  .product-piece:nth-child(5) { grid-column: 1 / -1; width: calc(50% - var(--space-1)); justify-self: center; }
  .brand-position, .brand-world { grid-template-columns: 1fr; }
  .brand-system-board { grid-template-columns: 1fr; }
  .brand-system-board > div:nth-child(n) { border-right: 0; border-bottom: var(--line-hair); }
  .brand-system-board > div:last-child { border-bottom: 0; }
  .brand-world__media { justify-self: start; }
  .brand-handoff__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-handoff__grid article:nth-child(2) { border-right: 0; }
  .brand-handoff__grid article:nth-child(-n+2) { border-bottom: var(--line-hair); }
}

@media (max-width: 540px) {
  .privacy-choice {
    right: 0.75rem;
    bottom: 0.75rem;
    width: calc(100% - 1.5rem);
  }
  .privacy-choice__actions { display: grid; }
  .privacy-choice__actions .btn { width: 100%; }
  .service-film-grid { grid-template-columns: 1fr; }
  .storyboard-grid { grid-template-columns: 1fr; }
  .design-gallery { grid-template-columns: 1fr; }
  .page-muse .page-hero { min-height: 82svh; }
  .muse-value-chain { grid-template-columns: 1fr; }
  .muse-value-chain div, .muse-value-chain div:nth-child(2) { min-height: 118px; border-right: 0; border-bottom: var(--line-hair); }
  .muse-value-chain div:last-child { border-bottom: 0; }
  .muse-build-grid { grid-template-columns: 1fr; }
  .muse-key-art__grid { grid-template-columns: 1fr; }
  .muse-build-grid article, .muse-build-grid article:nth-child(even) { padding: var(--space-3) 0; border-right: 0; }
  .product-portfolio__intro, .product-range { padding-block: var(--space-4); }
  .product-story__media, .product-story--wide .product-story__media { min-height: 112vw; }
  .product-story--wide .product-story__media img { object-position: 58% center; }
  .product-story__copy { padding: var(--space-3) var(--space-2); }
  .product-range__head { grid-template-columns: 1fr; }
  .product-range__grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .product-piece:nth-child(5) { grid-column: auto; width: auto; }
  .product-piece figcaption small { min-height: 0; }
  .brand-position { gap: var(--space-3); }
  .brand-position__statement { font-size: clamp(2rem, 11vw, 3.6rem); }
  .brand-system-board > div { padding: var(--space-2); }
  .brand-system-board__logo { min-height: 300px; }
  .brand-swatches { grid-template-columns: 1fr; }
  .brand-world__media { width: 100%; }
  .brand-handoff__grid { grid-template-columns: 1fr; }
  .brand-handoff__grid article:nth-child(n) { border-right: 0; border-bottom: var(--line-hair); }
  .brand-handoff__grid article:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-img { clip-path: none; }
  .marquee__track { animation: none; }
}
