/* RootedMedia Studios
   Layout concept: a 12-column editorial grid on near-black, hairline rules,
   one off-white band for contrast, and broadcast framing marks (safe-area
   guides, slate-style metadata) as the only ornament. */

:root {
  color-scheme: dark;

  /* Colour */
  --ink: #0b0b0a;        /* page ground */
  --charcoal: #141413;   /* raised ground */
  --graphite: #1f1f1d;   /* media placeholders, inputs */
  --bone: #edeae3;       /* primary text, light band ground */
  --ash: #a3a097;        /* secondary text on dark */
  --smoke: #5d5b55;      /* secondary text on light */
  --line: rgba(237, 234, 227, 0.14);
  --line-dark: rgba(11, 11, 10, 0.16);
  --accent: #86b3b6;     /* the logo teal, lifted for dark grounds */
  --accent-deep: #3c6a73; /* the same teal on the light band */
  --alert: #e8a48c;

  /* Type */
  --display: "Archivo", "Inter Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --text: "Archivo", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;

  --step-hero: clamp(2.5rem, 6.6vw, 6.5rem);
  --step-1: clamp(2.1rem, 4.6vw, 4.25rem);
  --step-2: clamp(1.6rem, 2.8vw, 2.5rem);
  --step-3: clamp(1.2rem, 1.6vw, 1.45rem);
  --step-0: 1.0625rem;
  --step--1: 0.9375rem;
  --step-label: 0.6875rem;

  /* Space */
  --gutter: clamp(20px, 4vw, 56px);
  --col-gap: clamp(16px, 2vw, 32px);
  --section: clamp(88px, 12vw, 176px);
  --max: 1560px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before { /* paints the phone status-bar band behind the fixed header */
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--ink);
}
[hidden] { display: none !important; }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--ink); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--bone); color: var(--ink); padding: 10px 16px;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--rule { border-top: 1px solid var(--line); }
.band { background: var(--bone); color: var(--ink); }
.band .label { color: var(--smoke); }
.band .lede, .band .muted { color: var(--smoke); }
.band :focus-visible { outline-color: var(--accent-deep); }

/* ---------- Type ---------- */
.label {
  font-family: var(--mono); font-size: var(--step-label); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ash);
  line-height: 1.4;
}
.display, .h1, .h2, .h3 {
  font-family: var(--display); font-weight: 500; text-wrap: balance;
}
.display { font-size: var(--step-hero); line-height: 0.98; letter-spacing: -0.035em; }
.h1 { font-size: var(--step-1); line-height: 1.02; letter-spacing: -0.032em; }
.h2 { font-size: var(--step-2); line-height: 1.1; letter-spacing: -0.024em; }
.h3 { font-size: var(--step-3); line-height: 1.25; letter-spacing: -0.012em; }
.dim { color: var(--ash); }
.band .dim { color: var(--smoke); }
.lede { font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.5; color: var(--ash); max-width: 38em; text-wrap: pretty; }
.muted { color: var(--ash); }
.prose { max-width: 36em; }
.prose p + p { margin-top: 1.1em; }
.small { font-size: var(--step--1); }

/* ---------- Links & buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 0 26px;
  font-size: var(--step--1); font-weight: 500; letter-spacing: 0.01em;
  border: 1px solid var(--bone); background: var(--bone); color: var(--ink);
  cursor: pointer; white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn:hover .arr { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--bone); border-color: rgba(237, 234, 227, 0.4); }
.btn--ghost:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.band .btn { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.band .btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--sm { min-height: 42px; padding: 0 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--step--1); font-weight: 500;
  padding-bottom: 5px; border-bottom: 1px solid currentColor;
  transition: color 0.25s var(--ease), gap 0.3s var(--ease);
}
.link:hover { color: var(--accent); gap: 14px; }
.band .link:hover { color: var(--accent-deep); }
.inline-link { border-bottom: 1px solid var(--line); transition: border-color 0.2s, color 0.2s; }
.inline-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: env(safe-area-inset-top, 0px) 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-solid, .header.is-open { background: rgba(11, 11, 10, 0.92); border-bottom-color: var(--line); }
@supports (backdrop-filter: blur(8px)) {
  .header.is-solid { background: rgba(11, 11, 10, 0.78); backdrop-filter: blur(14px); }
}
.header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand__mark { height: 38px; width: auto; }
.brand__word { height: 15px; width: auto; }
.brand span { font-family: var(--mono); font-weight: 500; font-size: var(--step-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); padding-left: 12px; border-left: 1px solid var(--line); line-height: 15px; }
@media (max-width: 420px) { .brand span { display: none; } }
.footer__logo { display: inline-block; }
.footer__logo img { height: 140px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 36px); }
.nav__list { display: flex; gap: clamp(18px, 2.2vw, 36px); }
.nav__link { position: relative; font-size: var(--step--1); padding: 8px 0; color: var(--bone); opacity: 0.82; transition: opacity 0.2s; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav__link:hover, .nav__link[aria-current="page"] { opacity: 1; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--accent); }
.menu-btn { display: none; align-items: center; gap: 10px; background: none; border: 0; padding: 12px 0; cursor: pointer; }
.menu-btn__bars { width: 22px; height: 10px; position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--bone); transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.menu-btn__bars::before { top: 0; } .menu-btn__bars::after { top: 8.5px; }
.is-open .menu-btn__bars::before { top: 4px; transform: rotate(45deg); }
.is-open .menu-btn__bars::after { top: 4px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0;
    background: var(--ink); flex-direction: column; align-items: stretch; justify-content: space-between; gap: 32px;
    padding: 32px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
    overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity 0.3s var(--ease), visibility 0s 0.3s;
  }
  .is-open .nav { visibility: visible; opacity: 1; transition: opacity 0.3s var(--ease); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__link { display: block; font-family: var(--display); font-size: 2rem; letter-spacing: -0.025em; padding: 18px 0; opacity: 1; }
  .nav__link::after { display: none; }
  .nav .btn { justify-content: space-between; min-height: 60px; }
}

/* ---------- Media frame (poster or framing guide) ---------- */
.frame { position: relative; overflow: hidden; background: var(--graphite); aspect-ratio: 16 / 9; width: 100%; isolation: isolate; }
.frame--wide { aspect-ratio: 21 / 9; }
.frame--tall { aspect-ratio: 4 / 5; }
.frame img, .frame video, .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; z-index: 1; }
.frame img { transition: transform 1.2s var(--ease), filter 0.6s var(--ease); }
.guides { position: absolute; inset: 0; z-index: 0; color: rgba(237, 234, 227, 0.2); }
.guides::before { content: ""; position: absolute; inset: 5%; border: 1px solid currentColor; }           /* action safe */
.guides::after { content: ""; position: absolute; inset: 10%; border: 1px dashed currentColor; opacity: 0.6; } /* title safe */
.guides i { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; transform: translate(-50%, -50%); }
.guides i::before, .guides i::after { content: ""; position: absolute; background: currentColor; }
.guides i::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.guides i::after { top: 50%; left: 0; right: 0; height: 1px; }
.guides b { position: absolute; left: 0; right: 0; bottom: 13%; text-align: center; font-family: var(--mono); font-weight: 500; font-size: var(--step-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ash); padding-inline: 12%; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; background: var(--charcoal); }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media .guides { color: rgba(237, 234, 227, 0.1); }
.hero__media .guides::before { inset: 4% 3.5%; } .hero__media .guides::after { inset: 9% 8%; }
.hero__media .guides b { bottom: auto; top: calc(var(--header-h) + 5vh); text-align: right; padding-inline: 9%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(11, 11, 10, 0.94) 0%, rgba(11, 11, 10, 0.7) 40%, rgba(11, 11, 10, 0.42) 72%, rgba(11, 11, 10, 0.72) 100%); }
.hero--bare::after { display: none; }
.hero__in { padding-top: calc(var(--header-h) + 64px); padding-bottom: clamp(28px, 4vw, 48px); }
.hero__title { max-width: 17ch; }
.hero__title .dim { display: block; color: rgba(237, 234, 227, 0.66); }
.hero__media .guides i { display: none; }
.hero__row { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.hero__row .lede { color: var(--bone); opacity: 0.86; max-width: 34em; }
.hero__meta { margin-top: clamp(36px, 5vw, 64px); padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hero__meta ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.hero__pause { background: none; border: 0; padding: 0; cursor: pointer; }
.hero__pause:hover { color: var(--bone); }
@media (max-width: 760px) {
  .hero__row { grid-template-columns: 1fr; }
  .hero__row .btn { flex: 1 1 auto; justify-content: space-between; }
}

/* Interior page hero */
.page-hero { padding-top: calc(var(--header-h) + clamp(72px, 11vw, 168px)); padding-bottom: clamp(48px, 7vw, 96px); }
.page-hero .label { margin-bottom: 28px; }
.page-hero .h1 { grid-column: 1 / span 9; font-size: var(--step-hero); line-height: 0.98; letter-spacing: -0.035em; }
.page-hero .lede { grid-column: 7 / span 6; margin-top: clamp(28px, 4vw, 56px); }
@media (max-width: 860px) { .page-hero .h1, .page-hero .lede { grid-column: 1 / -1; } }

/* ---------- Section heads ---------- */
.head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 20px; align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.head .label { grid-column: 1 / -1; }
.head__title { grid-column: 1 / span 8; }
.head__aside { grid-column: 9 / -1; justify-self: end; }
.head__lede { grid-column: 1 / span 6; }
@media (max-width: 860px) { .head__title, .head__aside, .head__lede { grid-column: 1 / -1; justify-self: start; } }

/* ---------- Project cards ---------- */
.card { display: block; position: relative; }
.card__meta .label { white-space: nowrap; flex: none; }
.card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-top: 16px; }
.card__title { font-family: var(--display); font-weight: 500; font-size: var(--step-3); letter-spacing: -0.015em; line-height: 1.2; }
.card__title span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease); padding-bottom: 3px; }
.card:hover .card__title span, .card:focus-visible .card__title span { background-size: 100% 1px; }
.card:hover .frame img { transform: scale(1.035); }
.card__play {
  position: absolute; z-index: 2; left: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px;
  background: rgba(11, 11, 10, 0.72); color: var(--bone);
  opacity: 0; transform: translateY(6px); transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.card:hover .card__play, .card:focus-visible .card__play { opacity: 1; transform: none; }
.tri { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
@media (hover: none) { .card__play { opacity: 1; transform: none; } }

.featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: clamp(36px, 4.5vw, 64px); }
.featured > :first-child { grid-column: 1 / -1; }
.featured > :first-child .card__meta { margin-top: 20px; }
.featured > :first-child .card__title { font-size: var(--step-2); letter-spacing: -0.024em; }
@media (max-width: 900px) { .featured { grid-template-columns: minmax(0, 1fr); } }

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: clamp(40px, 5vw, 72px); }
.work-grid > .is-lead { grid-column: 1 / -1; }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: clamp(32px, 4vw, 56px); padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.filter { min-height: 40px; padding: 0 16px; background: transparent; border: 1px solid var(--line); cursor: pointer; font-size: var(--step--1); color: var(--ash); transition: color 0.2s, border-color 0.2s, background 0.2s; }
.filter:hover { color: var(--bone); border-color: rgba(237, 234, 227, 0.4); }
.filter[aria-pressed="true"] { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.filter--secondary { margin-left: auto; border-style: dashed; }
@media (max-width: 760px) { .filter--secondary { margin-left: 0; } }
.empty-note { padding: 40px 0; }

/* ---------- Client logos ---------- */
.clients { border-bottom: 1px solid var(--line); padding-block: clamp(32px, 4vw, 48px); }
.clients__in { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.clients__list { display: flex; align-items: center; flex-wrap: wrap; gap: 28px clamp(32px, 5vw, 80px); }
.clients__list a { display: block; padding: 6px; }
.clients__list img { display: block; max-width: 100%; height: auto; opacity: 0.72; transition: opacity 0.3s var(--ease); }
.clients__list a:hover img, .clients__list a:focus-visible img { opacity: 1; }
@media (max-width: 640px) {
  .clients__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; width: 100%; }
  .clients__list li { display: flex; justify-content: center; }
}

/* ---------- Expertise list ---------- */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 14px; align-items: start; padding-block: clamp(28px, 4vw, 52px); border-bottom: 1px solid var(--line); position: relative; }
.row__title { grid-column: 1 / span 5; transition: transform 0.5s var(--ease), color 0.3s; }
.row__text { grid-column: 6 / span 5; color: var(--ash); max-width: 34em; }
.row__go { grid-column: 11 / -1; justify-self: end; align-self: center; font-size: 1.5rem; transition: transform 0.4s var(--ease), color 0.3s; }
a.row:hover .row__title { transform: translateX(10px); color: var(--accent); }
a.row:hover .row__go { transform: translateX(6px); color: var(--accent); }
.row__tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 860px) { .row__title { grid-column: 1 / span 10; } .row__text { grid-column: 1 / -1; } .row__go { grid-column: 11 / -1; grid-row: 1; } }

/* ---------- Split (statement + list) ---------- */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 48px; }
.split__a { grid-column: 1 / span 5; }
.split__b { grid-column: 7 / -1; }
.split__a .h1 + .lede, .split__a .h2 + .lede, .split__a .h1 + p { margin-top: 28px; }
.split__a .btn, .split__a .link { margin-top: 36px; }
@media (min-width: 861px) { .split__a--stick > div { position: sticky; top: calc(var(--header-h) + 40px); } }
@media (max-width: 860px) { .split__a, .split__b { grid-column: 1 / -1; } }

.deflist > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 9fr); gap: 8px var(--col-gap); padding-block: 24px; border-top: 1px solid var(--line); }
.deflist > div:last-child { border-bottom: 1px solid var(--line); }
.band .deflist > div { border-color: var(--line-dark); }
.deflist dt { font-family: var(--display); font-weight: 500; font-size: var(--step-3); letter-spacing: -0.012em; line-height: 1.25; }
.deflist dd { color: var(--ash); }
.band .deflist dd { color: var(--smoke); }
@media (max-width: 560px) { .deflist > div { grid-template-columns: 1fr; } }

/* ---------- Case studies ---------- */
.case { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 32px; align-items: start; }
.case + .case { margin-top: clamp(72px, 10vw, 144px); }
.case__media { grid-column: 1 / span 7; }
.case__body { grid-column: 9 / -1; }
.case--flip .case__media { grid-column: 6 / -1; order: 2; }
.case--flip .case__body { grid-column: 1 / span 4; order: 1; }
.case__body .h2 { margin: 14px 0 20px; }
.case__facts { margin-top: 28px; }
.case__facts > div { padding-block: 16px; border-top: 1px solid var(--line); }
.case__facts dt { margin-bottom: 6px; }
.case__facts dd { color: var(--ash); font-size: var(--step--1); }
.case__body .link { margin-top: 28px; }
@media (max-width: 860px) { .case__media, .case__body, .case--flip .case__media, .case--flip .case__body { grid-column: 1 / -1; order: 0; } }

.draft { display: block; font-family: var(--mono); font-size: 0.75rem; line-height: 1.55; color: var(--ash); border: 1px dashed var(--line); padding: 12px 14px; }
.draft strong { color: var(--accent); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; font-size: var(--step-label); display: block; margin-bottom: 4px; }
.band .draft { border-color: var(--line-dark); color: var(--smoke); }
.band .draft strong { color: var(--accent-deep); }

/* ---------- Partnership comparison ---------- */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.compare > div { padding: 28px 0 8px; }
.compare > div + div { padding-left: var(--col-gap); border-left: 1px solid var(--line-dark); }
.compare > div:first-child { padding-right: var(--col-gap); }
.compare h3 { margin-bottom: 18px; }
.compare li { padding-block: 14px; border-top: 1px solid var(--line-dark); font-size: var(--step--1); }
.compare div:first-child li { color: var(--smoke); }
.on-dark.compare, .on-dark.compare > div + div, .on-dark.compare li { border-color: var(--line); }
.on-dark.compare div:first-child li { color: var(--ash); }
@media (max-width: 560px) { .compare { grid-template-columns: 1fr; } .compare > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); margin-top: 16px; } .compare > div:first-child { padding-right: 0; } }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 40px; counter-reset: step; }
.step { border-top: 1px solid var(--line); padding-top: 20px; counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: var(--step-label); letter-spacing: 0.14em; color: var(--accent); }
.step h3 { margin: 40px 0 12px; }
.step p { color: var(--ash); font-size: var(--step--1); line-height: 1.55; }
@media (max-width: 1180px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; row-gap: 0; } .step { display: grid; grid-template-columns: 48px minmax(0, 1fr); padding-block: 20px; } .step h3 { margin: 0 0 8px; } .step p { grid-column: 2; } }

/* ---------- Capability columns ---------- */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 40px; }
.cols > div { border-top: 1px solid var(--line); padding-top: 20px; }
.cols h3 { margin: 28px 0 12px; }
.cols p, .cols li { color: var(--ash); font-size: var(--step--1); }
.cols li { padding-block: 9px; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } .cols h3 { margin-top: 16px; } }

.quote { border-top: 1px solid var(--line); padding-top: 24px; }
.quote blockquote { margin: 0; font-family: var(--display); font-size: var(--step-2); line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.quote figcaption { margin-top: 24px; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px var(--col-gap); }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Closing CTA ---------- */
.cta { border-top: 1px solid var(--line); padding-block: var(--section); }
.cta .display { max-width: 12ch; }
.cta__row { margin-top: clamp(32px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.cta__row p { max-width: 30em; color: var(--ash); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 56px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: var(--step--1); }
.footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--col-gap); }
.footer__brand { grid-column: 1 / span 5; }
.footer__brand p { margin-top: 14px; color: var(--ash); max-width: 26em; }
.footer__col { grid-column: span 2; }
.footer__col--wide { grid-column: span 3; }
.footer__col .label { margin-bottom: 16px; }
.footer__col li { padding-block: 5px; }
.footer__col a:hover { color: var(--accent); }
.footer__base { margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.tbd { font-family: var(--mono); font-size: 0.75rem; color: var(--ash); border: 1px dashed var(--line); padding: 2px 8px; white-space: nowrap; }
@media (max-width: 860px) { .footer__brand { grid-column: 1 / -1; } .footer__col, .footer__col--wide { grid-column: span 6; } }
@media (max-width: 480px) { .footer__col, .footer__col--wide { grid-column: 1 / -1; } }

/* ---------- Project page ---------- */
.project-hero { padding-top: calc(var(--header-h) + clamp(28px, 4vw, 56px)); }
.player { cursor: pointer; }
.player__btn {
  position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; background: rgba(11, 11, 10, 0.18); border: 0; cursor: pointer;
  display: flex; align-items: flex-end; justify-content: flex-start; padding: clamp(16px, 3vw, 40px);
  transition: background 0.4s var(--ease);
}
.player__btn:hover { background: rgba(11, 11, 10, 0); }
.player__pill { display: inline-flex; align-items: center; gap: 14px; padding: 14px 22px; background: var(--bone); color: var(--ink); font-size: var(--step--1); font-weight: 500; transition: background 0.25s; }
.player__btn:hover .player__pill { background: var(--accent); }
.player.is-playing .player__btn, .player.is-playing img { display: none; }
.project-title { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px var(--col-gap); padding-block: clamp(36px, 5vw, 72px); align-items: end; }
.project-title .h1 { grid-column: 1 / span 8; font-size: var(--step-hero); line-height: 0.98; }
.project-title .lede { grid-column: 9 / -1; }
@media (max-width: 860px) { .project-title .h1, .project-title .lede { grid-column: 1 / -1; } }
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specs > div { padding: 20px var(--col-gap) 22px 0; }
.specs > div + div { padding-left: var(--col-gap); border-left: 1px solid var(--line); }
.specs dd { margin-top: 8px; }
@media (max-width: 760px) { .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .specs > div:nth-child(3) { padding-left: 0; border-left: 0; } .specs > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.bullets li { padding-block: 12px; border-top: 1px solid var(--line); }
.bullets li:last-child { border-bottom: 1px solid var(--line); }
.next { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px var(--col-gap); align-items: center; padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); }
.next__text { grid-column: 1 / span 6; }
.next__text .h1 { margin-top: 16px; transition: color 0.3s; }
.next__media { grid-column: 8 / -1; }
.next:hover .h1 { color: var(--accent); }
.next:hover .frame img { transform: scale(1.035); }
@media (max-width: 760px) { .next__text, .next__media { grid-column: 1 / -1; } }

/* ---------- Form ---------- */
.contact-main { grid-column: 1 / span 7; }
.contact-aside { grid-column: 9 / -1; }
@media (max-width: 960px) { .contact-main, .contact-aside { grid-column: 1 / -1; } }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--col-gap); }
.field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field > label, .field legend { font-family: var(--mono); font-size: var(--step-label); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ash); }
.field > label em, .field legend em { font-style: normal; color: var(--smoke); letter-spacing: 0.08em; }
.field legend { margin-bottom: 12px; }
.input {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 0;
  background: var(--charcoal); border: 1px solid var(--line); color: var(--bone);
  transition: border-color 0.2s, background 0.2s; appearance: none; -webkit-appearance: none;
}
textarea.input { min-height: 168px; resize: vertical; line-height: 1.5; }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--ash) 50%), linear-gradient(135deg, var(--ash) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.input:hover { border-color: rgba(237, 234, 227, 0.32); }
.input:focus { outline: none; border-color: var(--accent); background: var(--graphite); }
.input::placeholder { color: var(--smoke); }
.field.has-error .input { border-color: var(--alert); }
.field__error { font-size: 0.8125rem; color: var(--alert); }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choices--stack { grid-template-columns: 1fr; }
.choice { position: relative; display: block; }
.choice input { z-index: 1; position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: block; padding: 16px 18px 16px 46px; border: 1px solid var(--line); background: var(--charcoal); transition: border-color 0.2s, background 0.2s; position: relative; height: 100%; }
.choice span::before { content: ""; position: absolute; left: 16px; top: 20px; width: 16px; height: 16px; border: 1px solid var(--ash); border-radius: 50%; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.choice input[type="checkbox"] + span::before { border-radius: 0; }
.choice b { display: block; font-weight: 500; }
.choice small { display: block; margin-top: 2px; color: var(--ash); font-size: 0.8125rem; line-height: 1.45; }
.choice input:checked + span { border-color: var(--accent); background: var(--graphite); }
.choice input:checked + span::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--graphite); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } .choices { grid-template-columns: 1fr; } }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-top: 8px; }
.form__status { grid-column: 1 / -1; border: 1px solid var(--line); padding: 20px 22px; }
.form__status.is-ok { border-color: var(--accent); }
.form__status.is-err { border-color: var(--alert); }
.form__status pre { margin: 14px 0 0; white-space: pre-wrap; font-family: var(--mono); font-size: 0.8125rem; color: var(--ash); max-height: 260px; overflow: auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aside-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); padding-block: 18px; border-top: 1px solid var(--line); }
.aside-steps li:last-child { border-bottom: 1px solid var(--line); }
.aside-steps .label { color: var(--accent); padding-top: 5px; }
.aside-steps p { color: var(--ash); font-size: var(--step--1); margin-top: 4px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0.25; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
  .js .rv.is-in { opacity: 1; transform: none; }
  .hero__title, .hero__row, .hero__meta { animation: rise 1.1s var(--ease) both; }
  .hero__row { animation-delay: 0.12s; } .hero__meta { animation-delay: 0.24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
