/* ==========================================================================
   TZAR — design system and site styles
   1. Fonts  2. Tokens  3. Base  4. Type  5. Layout  6. Components
   7. Header & menu  8. Home sections  9. Pages  10. Motion  11. Reduced motion
   ========================================================================== */

/* 1. Fonts — Archivo (OFL) variable: wght 100–900, wdth 62–125. One family for everything. */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Tokens ---------------------------------------------------------------- */
:root {
  /* Colour — brighter graphite studio (user direction, 2026-10-22) */
  --ink-0: #15171b;          /* graphite canvas */
  --ink-1: #202329;          /* secondary background */
  --ink-2: #2a2e36;          /* raised controls on ink-1 */
  --bone: #f3f3f0;           /* primary text */
  --graphite: #bfc2c8;       /* secondary text */
  --signal: #245bff;         /* accent: the light line */
  --signal-hi: #83a2ff;      /* accent tint for small text on graphite */
  --line: rgb(243 243 240 / 0.18);
  --line-strong: rgb(243 243 240 / 0.32);
  --danger: #ff6b5e;
  --ok: #7fd8a6;

  /* Light editorial ground */
  --paper: #f3f3f0;
  --paper-ink: #070707;
  --paper-mute: #55585e;     /* 6.6:1 on paper */
  --paper-line: rgb(7 7 7 / 0.14);
  --signal-deep: #1b47d6;    /* accent text on paper (6.1:1) */

  /* Contextual (overridden per section) */
  --bg: var(--ink-0);
  --fg: var(--bone);
  --fg-mute: var(--graphite);
  --rule: var(--line);

  /* Type */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --display-stretch: 112%;
  /* One type scale for the whole site. Uppercase + expanded width is reserved
     for the first three display levels; everything below is sentence case. */
  --type-hero: clamp(2.125rem, 1rem + 5vw, 5rem);           /* L1 home hero only      34 → 80 */
  --type-page: clamp(2rem, 1.5rem + 1.8vw, 3rem);          /* L2 page title (h1)     32 → 48 */
  --type-section: clamp(1.75rem, 1.5rem + 0.8vw, 2.25rem); /* L3 section title (h2)  28 → 36 */
  --type-subsection: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); /* L4 subsection       22 → 28 */
  --type-card: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);    /* L5 item / card title   18 → 22 */
  --type-minor: 1.125rem;                                   /* L6 small heading       18 */
  --text-lead: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);  /* ledes, intros          17 → 19 */
  --text-body: 1.0625rem;                                   /* body                   17 */
  --text-small: 0.9375rem;                                  /* secondary text, nav    15 */
  --text-caption: 0.8125rem;                                /* captions, meta         13 */
  --text-micro: 0.75rem;                                    /* uppercase labels, tags 12 */

  /* Spacing scale (4px base) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem; --s-11: 12rem;
  --section: clamp(6rem, 4rem + 9vw, 12rem);
  --margin: max(clamp(1rem, 4vw, 4rem), env(safe-area-inset-left), env(safe-area-inset-right));
  --gutter: clamp(1rem, 0.6rem + 1.4vw, 2rem);
  --max: 106rem;
  --header-h: 4.5rem;
  /* Where a hero window starts: below the bar, including the notch safe area. */
  --chrome-h: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  --window-top: var(--chrome-h);

  /* Shape */
  --radius: 2px;
  --frame: clamp(0.5rem, 0.2rem + 1.2vw, 1.5rem);          /* window inset around cinematic media */
  --radius-frame: clamp(0.875rem, 0.5rem + 1.4vw, 1.75rem); /* window corner radius */

  /* Motion (Emil Kowalski curves) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-cine: cubic-bezier(0.16, 1, 0.3, 1);
  --d-press: 140ms;
  --d-micro: 200ms;
  --d-comp: 320ms;
  --d-section: 900ms;
  --d-cine: 1000ms;
}
@media (min-width: 900px) {
  :root { --display-stretch: 125%; }
}
@media (max-width: 899px) {
  /* Phones: a compact bar, and a small gap between the bar and the hero window. */
  /* +2px clears the bar's 1px hairline so the window's top edge is never covered. */
  :root { --header-h: 4rem; --window-top: calc(var(--chrome-h) + 2px); }
}

/* 3. 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) + 1rem);
  color-scheme: dark;
  background: var(--ink-0);
}
body {
  min-height: 100svh;
  background: var(--ink-0);
  color: var(--bone);
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: 1.6;
  font-weight: 400;
  font-stretch: 97%;
  font-kerning: normal;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul[class], ol[class], nav ul, .site-footer ul { list-style: none; padding: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }
main:focus { outline: none; }

/* Browser surfaces carry the design */
::selection { background: var(--signal); color: #fff; }
:focus-visible {
  outline: 2px solid var(--signal-hi);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.section--light :focus-visible { outline-color: var(--signal-deep); }
html { scrollbar-color: #3a3d44 var(--ink-0); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-0); }
::-webkit-scrollbar-thumb { background: #33363c; border: 3px solid var(--ink-0); border-radius: 10px; }
input, textarea { caret-color: var(--signal-hi); }

.skip-link {
  position: fixed; left: var(--margin); top: 0.75rem; z-index: 100;
  padding: 0.75rem 1rem; background: var(--bone); color: var(--ink-0);
  font-weight: 600; border-radius: var(--radius);
  transform: translateY(-150%);
  transition: transform var(--d-micro) var(--ease-out);
}
.skip-link:focus { transform: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 4. Type scale ------------------------------------------------------------ */
/* Display: expanded caps, architectural. Sizes are fluid and capped. */
.display-xl, .display-l, .h1 {
  font-family: var(--font);
  font-stretch: var(--display-stretch);
  text-transform: uppercase;
  text-wrap: balance;
  font-kerning: normal;
}
/* The homepage hero is the only oversized headline. */
.display-xl {
  font-size: var(--type-hero);
  font-weight: 640;
  line-height: 1.04;
  letter-spacing: -0.005em;
}
.display-l, .h1 {
  font-weight: 620;
  line-height: 1.12;
  letter-spacing: -0.005em;
}
.display-l { font-size: var(--type-section); }
.h1, h1.display-l { font-size: var(--type-page); }
.h2 {
  font-size: var(--type-subsection);
  font-weight: 560;
  font-stretch: 100%;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h3 {
  font-size: var(--type-card);
  font-weight: 600;
  font-stretch: 100%;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h4 {
  font-size: var(--type-minor);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
h1, h2, h3, h4, .next-link__title {
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.statement {
  font-size: var(--text-lead);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-wrap: pretty;
}
.body-l {
  font-size: var(--text-lead);
  line-height: 1.5;
  font-weight: 400;
  text-wrap: pretty;
}
.body-s { font-size: var(--text-small); line-height: 1.55; }
.caption {
  font-size: var(--text-caption);
  line-height: 1.45;
  color: var(--fg-mute);
}
.label {
  font-size: var(--text-micro);
  font-weight: 600;
  font-stretch: 110%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* Data (years, chassis codes, counts): same family, tabular figures, slightly narrow. */
.data {
  font-size: var(--text-caption);
  font-weight: 560;
  font-stretch: 92%;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0.02em;
}
p { max-width: 66ch; text-wrap: pretty; }
.tbc { color: var(--fg-mute); border-bottom: 1px dashed var(--line-strong); cursor: help; }

/* 5. Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--max) + var(--margin) * 2);
  margin-inline: auto;
  padding-inline: var(--margin);
}
.container--wide { max-width: calc(120rem + var(--margin) * 2); }
.section { padding-block: var(--section); position: relative; }
.section--raised { --bg: var(--ink-1); background: var(--ink-1); }
.section--light {
  --bg: var(--paper); --fg: var(--paper-ink); --fg-mute: var(--paper-mute); --rule: var(--paper-line);
  background: var(--paper); color: var(--paper-ink);
  color-scheme: light;
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

.section-head {
  display: grid;
  gap: var(--s-5);
  margin-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}
.section-head__lede { color: var(--fg-mute); max-width: 42ch; font-size: var(--text-lead); line-height: 1.5; }
@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    column-gap: var(--gutter);
    align-items: end;
  }
  .section-head--split .section-head__lede { justify-self: end; max-width: 36ch; }
}

/* More natural colour and exposure, while retaining the studio atmosphere. */
.grade { filter: saturate(0.7) contrast(1.02) brightness(1.1); }
.project-item__frame img:not(.grade),
.detail-hero__media img:not(.grade),
.explorer__camera img { filter: brightness(1.12); }

/* 6. Components ------------------------------------------------------------ */
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Buttons: square-cut, press feedback, arrow advances on hover */
.btn {
  --btn-bg: transparent; --btn-fg: var(--fg); --btn-bd: var(--rule);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  min-height: 3.25rem; padding: 0 1.5rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: var(--radius);
  font-size: var(--text-small); font-weight: 560; letter-spacing: 0.005em; line-height: 1;
  white-space: nowrap;
  transition: transform var(--d-press) var(--ease-out), background-color var(--d-micro) ease, color var(--d-micro) ease, border-color var(--d-micro) ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}
.btn .icon { width: 1.125rem; height: 1.125rem; transition: transform var(--d-comp) var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn--light { --btn-bg: var(--bone); --btn-fg: var(--ink-0); --btn-bd: var(--bone); }
.btn--dark { --btn-bg: var(--ink-0); --btn-fg: var(--bone); --btn-bd: var(--ink-0); }
.btn--signal { --btn-bg: var(--signal); --btn-fg: #fff; --btn-bd: var(--signal); }
.btn--ghost { --btn-bd: var(--line-strong); }
.btn--small { min-height: 2.5rem; padding: 0 1rem; font-size: var(--text-small); }
.btn--large { min-height: 3.75rem; padding: 0 2rem; font-size: 1rem; }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .icon { transform: translateX(3px); }
  .btn--light:hover { --btn-bg: #fff; }
  .btn--signal:hover { --btn-bg: #3a6bff; --btn-bd: #3a6bff; }
  .btn--ghost:hover { --btn-bd: var(--fg); }
  .btn--dark:hover { --btn-bg: #1d2025; }
}
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* Text links: hairline that draws in from the left */
.link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  position: relative;
  color: var(--fg);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size var(--d-comp) var(--ease-out), color var(--d-micro) ease;
  padding-block: 0.125rem;
}
.link .icon { width: 1rem; height: 1rem; transition: transform var(--d-comp) var(--ease-out); }
.link--quiet { color: var(--fg); background-size: 100% 1px; background-image: linear-gradient(var(--line-strong), var(--line-strong)); }
@media (hover: hover) and (pointer: fine) {
  .link:hover { background-size: 100% 1px; }
  .link:hover .icon { transform: translateX(3px); }
  .link--quiet:hover { background-image: linear-gradient(currentColor, currentColor); }
}
.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; }
.link-arrow .icon { width: 1rem; height: 1rem; transition: transform var(--d-comp) var(--ease-out); }

.tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--text-micro); font-weight: 560; letter-spacing: 0.01em;
  color: var(--fg-mute);
}
.tag::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--signal); }

/* Segmented control (explorer views) */
.segmented {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--line); border-radius: 999px;
}
.segmented__btn {
  min-height: 2.5rem; padding: 0 1.125rem; border-radius: 999px;
  font-size: var(--text-small); font-weight: 520; color: var(--graphite);
  transition: background-color var(--d-micro) ease, color var(--d-micro) ease, transform var(--d-press) var(--ease-out);
}
.segmented__btn[aria-pressed="true"] { background: var(--bone); color: var(--ink-0); }
.segmented__btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .segmented__btn:not([aria-pressed="true"]):hover { color: var(--bone); }
}

/* Choice (radio) tiles used in the configurator */
.choice { position: relative; display: block; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice__face {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  min-height: 3.5rem; padding: 0.875rem 1.125rem;
  border: 1px solid var(--rule); border-radius: var(--radius);
  font-weight: 520;
  transition: border-color var(--d-micro) ease, background-color var(--d-micro) ease, color var(--d-micro) ease, transform var(--d-press) var(--ease-out);
}
.choice input:checked + .choice__face { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.choice input:focus-visible + .choice__face { outline: 2px solid var(--signal-deep); outline-offset: 2px; }
.choice input:active + .choice__face { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .choice input:not(:checked):hover + .choice__face { border-color: var(--fg); }
}
.choice__meta { font-size: var(--text-micro); color: var(--fg-mute); font-weight: 500; font-variant-numeric: tabular-nums; font-stretch: 92%; }
.choice input:checked + .choice__face .choice__meta { color: inherit; opacity: 0.7; }

/* Forms */
.field { display: grid; gap: 0.5rem; }
.field__label { font-size: var(--text-small); font-weight: 560; display: flex; gap: 0.5rem; align-items: baseline; }
.field__label small { font-weight: 400; color: var(--fg-mute); font-size: var(--text-caption); }
.field__hint { font-size: var(--text-caption); color: var(--fg-mute); }
.input, .select, .textarea {
  width: 100%; min-height: 3.25rem;
  padding: 0.875rem 1rem;
  background: var(--ink-1); color: var(--bone);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 1rem; line-height: 1.4;
  transition: border-color var(--d-micro) ease, background-color var(--d-micro) ease;
  appearance: none;
}
.textarea { min-height: 9rem; resize: vertical; }
.select {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a3a8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.875rem center; background-size: 1.125rem;
}
.input::placeholder, .textarea::placeholder { color: #8a8d93; }
.input:hover, .select:hover, .textarea:hover { border-color: rgb(243 243 240 / 0.45); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--signal-hi); background: var(--ink-2); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--signal-hi); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field__error { font-size: var(--text-caption); color: var(--danger); display: flex; gap: 0.375rem; align-items: center; }
.field__error .icon { width: 1rem; height: 1rem; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; font-size: var(--text-small); color: var(--graphite); }
.check input {
  appearance: none; width: 1.25rem; height: 1.25rem; margin-top: 0.15rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--ink-1);
  display: grid; place-items: center; cursor: pointer;
  transition: background-color var(--d-micro) ease, border-color var(--d-micro) ease;
}
.check input::after {
  content: ""; width: 0.6rem; height: 0.35rem; margin-top: -0.15rem;
  border-left: 1.5px solid var(--ink-0); border-bottom: 1.5px solid var(--ink-0);
  transform: rotate(-45deg) scale(0.6); opacity: 0;
  transition: transform var(--d-micro) var(--ease-out), opacity var(--d-micro) ease;
}
.check input:checked { background: var(--bone); border-color: var(--bone); }
.check input:checked::after { opacity: 1; transform: rotate(-45deg) scale(1); }
.check a { color: var(--bone); }

/* 7. Header & menu --------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: transform 420ms var(--ease-drawer), background-color var(--d-comp) ease, border-color var(--d-comp) ease;
  border-bottom: 1px solid transparent;
}
/* Three columns with equal outer tracks keep the nav links on the exact centre of the screen. */
.site-header__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--s-5);
  height: var(--header-h);
  max-width: calc(var(--max) + var(--margin) * 2);
  margin-inline: auto; padding-inline: var(--margin);
}
.site-header.is-solid {
  background: rgb(21 23 27 / 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
/* Phones: the bar stays fixed and visible while scrolling. */
@media (max-width: 899px) {
  .site-header.is-hidden { transform: none; }
  /* Solid from the first paint so the bar never changes colour mid-scroll. */
  .site-header, .site-header.is-solid {
    background: rgb(21 23 27 / 0.9);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom-color: transparent;
    transition: border-color var(--d-micro) ease;
  }
  /* The hairline appears only once content scrolls under the bar. */
  .site-header.is-solid { border-bottom-color: var(--line); }
}
.menu-open .site-header { transform: none; background: var(--ink-0); border-bottom-color: transparent; }

.wordmark {
  font-stretch: 125%; font-weight: 700; font-size: var(--type-minor); letter-spacing: 0.14em;
  padding: 0.5rem 0; position: relative; z-index: 2;
}
.site-nav ul { display: flex; gap: clamp(1.25rem, 2.4vw, 2.75rem); }
.site-nav__link {
  position: relative; font-size: var(--text-small); font-weight: 500; color: var(--graphite);
  padding-block: 0.5rem; transition: color var(--d-micro) ease;
}
.site-nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.15rem; height: 1px;
  background: var(--signal); transform: scaleX(0); transform-origin: left;
  transition: transform var(--d-comp) var(--ease-out);
}
.site-nav__link[aria-current="page"] { color: var(--bone); }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .site-nav__link:hover { color: var(--bone); }
}
.site-header__end { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-4); grid-column: 3; }
.wordmark { justify-self: start; }
.header-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; overflow: hidden; pointer-events: none; }
.header-progress span { display: block; height: 100%; background: var(--signal); transform-origin: left; transform: scaleX(var(--p, 0)); }

.menu-toggle {
  display: none; align-items: center; gap: 0.75rem;
  min-height: 2.75rem; padding: 0 0.25rem 0 0.75rem;
  font-size: var(--text-small); font-weight: 520; position: relative; z-index: 2;
}
.menu-toggle__bars { position: relative; width: 1.5rem; height: 0.75rem; }
.menu-toggle__bars span {
  position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform var(--d-comp) var(--ease-out), top var(--d-comp) var(--ease-out);
}
.menu-toggle__bars span:first-child { top: 1px; }
.menu-toggle__bars span:last-child { top: calc(100% - 2.5px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { top: calc(50% - 0.75px); transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { top: calc(50% - 0.75px); transform: rotate(-45deg); }

@media (max-width: 899px) {
  .site-nav, .site-header__cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 1.5rem) var(--margin) calc(1.5rem + env(safe-area-inset-bottom));
  background: var(--ink-0);
  overflow-y: auto; overscroll-behavior: contain;
  /* Compositor-only motion (opacity + transform) so it stays smooth on phones.
     Closing is quicker than opening. */
  opacity: 0; transform: translate3d(0, -1rem, 0); visibility: hidden;
  transition: opacity 220ms ease, transform 260ms var(--ease-out), visibility 0s linear 260ms;
  will-change: opacity, transform;
}
.mobile-menu.is-open {
  opacity: 1; transform: none; visibility: visible;
  transition: opacity 360ms ease, transform 560ms var(--ease-drawer), visibility 0s;
}
.mobile-menu__nav ul { display: grid; gap: 0.125rem; }
.mobile-menu__nav a {
  display: block; padding: 0.375rem 0;
  font-weight: 560;
  font-size: clamp(1.5rem, 1rem + 2.6vw, 1.875rem); line-height: 1.2; letter-spacing: -0.01em;
  color: var(--bone);
  opacity: 0; transform: translate3d(0, 1.25rem, 0);
  transition: opacity 160ms ease, transform 200ms var(--ease-out), color var(--d-micro) ease;
}
.mobile-menu__nav a[aria-current="page"] { color: var(--signal-hi); }
.mobile-menu.is-open .mobile-menu__nav a {
  opacity: 1; transform: none;
  /* Softer, slower entrance: short travel, long expo ease, wider stagger. */
  transition: opacity 650ms var(--ease-out), transform 950ms var(--ease-cine), color var(--d-micro) ease;
  transition-delay: calc(180ms + var(--i) * 60ms);
}
.mobile-menu__foot { display: grid; gap: var(--s-5); padding-top: var(--s-7); opacity: 0; transform: translate3d(0, 0.5rem, 0); transition: opacity 160ms ease, transform 200ms var(--ease-out); }
.mobile-menu.is-open .mobile-menu__foot { opacity: 1; transform: none; transition: opacity 650ms var(--ease-out) 520ms, transform 950ms var(--ease-cine) 520ms; }
.mobile-menu__meta { color: var(--graphite); font-size: var(--text-small); }
body.menu-open { overflow: hidden; }

/* Automatic loading progress (home, once per session). */
.intro-gate { display: none; }
.show-intro .intro-gate {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: var(--margin);
  background: var(--ink-0); transition: opacity 200ms var(--ease-out);
}
.show-intro body { overflow: hidden; }
.intro-gate.is-leaving { opacity: 0; pointer-events: none; }
.intro-gate__content { width: min(100%, 28rem); display: grid; gap: var(--s-6); }
.intro-gate__wordmark { font-stretch: 125%; font-weight: 700; font-size: 1.125rem; letter-spacing: 0.08em; }
.intro-gate__progress { display: grid; gap: var(--s-5); }
.intro-gate__percent { display: flex; align-items: baseline; gap: 0.25rem; font-size: clamp(4rem, 12vw, 6rem); font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.intro-gate__unit { font-size: 1.5rem; color: var(--graphite); }
.intro-gate__track { height: 2px; background: var(--line); overflow: hidden; }
.intro-gate__track span { display: block; width: 100%; height: 100%; background: var(--signal-hi); transform: scaleX(0); transform-origin: left; transition: transform 160ms linear; }
.intro-gate__status { color: var(--graphite); font-size: var(--text-small); }
.intro-gate__skip { position: absolute; right: var(--margin); bottom: max(1.5rem, env(safe-area-inset-bottom)); min-height: 2.75rem; padding-inline: var(--s-4); color: var(--graphite); font-size: var(--text-small); }
@media (prefers-reduced-motion: reduce) { .intro-gate__track span { transition: none; } }

/* 8. Home sections --------------------------------------------------------- */

/* Masked line reveal (shared by headings) */
.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line__inner { display: block; }

/* Hero */
.hero {
  position: relative; min-height: max(36rem, 100svh);
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: clip; isolation: isolate;
}
/* The hero media sits in a rounded window inset from the viewport; scrolling
   opens the window to full bleed (--open goes 0 → 1, set by JS). */
.hero { --open: 0; background: var(--ink-0); }
.hero__media {
  position: absolute; inset: 0; z-index: -1; background: var(--ink-0);
  clip-path: inset(
    calc(var(--window-top) * (1 - var(--open))) calc(var(--frame) * (1 - var(--open)))
    calc(var(--frame) * (1 - var(--open))) calc(var(--frame) * (1 - var(--open)))
    round calc(var(--radius-frame) * (1 - var(--open)))
  );
}
.hero__camera { position: absolute; inset: -2%; will-change: transform; }
/* Preserve the brightness of the snow; shade only where overlay text needs it. */
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  filter: brightness(0.96) saturate(0.95) contrast(1.02);
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgb(21 23 27 / 0.88) 0%, rgb(21 23 27 / 0.42) 32%, rgb(21 23 27 / 0) 65%),
    linear-gradient(to right, rgb(21 23 27 / 0.42) 0%, rgb(21 23 27 / 0) 55%);
}
.hero__content { padding-bottom: calc(var(--frame) + clamp(1.75rem, 1rem + 3vh, 3.25rem)); }
.hero__title { max-width: 16ch; }
.hero__foot {
  display: grid; gap: var(--s-6); margin-top: clamp(1.5rem, 1rem + 2vw, 2.75rem);
}
.hero__lede { color: var(--bone); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5) var(--s-6); }
@media (min-width: 900px) {
  .hero__foot { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}
.hero__toggle {
  position: absolute; z-index: 2;
  /* Top-right corner of the hero window. */
  right: calc(var(--frame) + 1rem); top: calc(var(--window-top) + 1rem);
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--bone); background: rgb(7 7 7 / 0.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  transition: transform var(--d-press) var(--ease-out), background-color var(--d-micro) ease;
}
.hero__toggle .icon { width: 1rem; height: 1rem; }
.hero__toggle:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .hero__toggle:hover { background: rgb(0 0 0 / 0.6); } }
.hero__scroll {
  position: absolute; left: 50%; bottom: var(--frame); transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 0.625rem;
  color: var(--graphite); font-size: var(--text-micro); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 520;
}
.hero__scroll-label { line-height: 1; }
.hero__scroll-line { width: 1px; height: 3rem; background: var(--line-strong); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0; background: var(--bone);
  transform: translateY(-100%);
  animation: scroll-cue 2.6s var(--ease-in-out) 2.4s 3;
}
@keyframes scroll-cue { 0% { transform: translateY(-100%); } 55%, 100% { transform: translateY(100%); } }
/* Scroll cue retired: the hero copy now sits on the bottom edge where it lived. */

/* Intro */
.intro__grid { display: grid; gap: clamp(2.5rem, 2rem + 4vw, 6rem); }
.intro__body { color: var(--bone); max-width: 30ch; }
@media (min-width: 900px) {
  .intro__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .intro__title { grid-column: 1 / span 9; }
  .intro__body { grid-column: 5 / span 8; max-width: 32ch; }
}
.intro__plate { margin-top: clamp(4rem, 3rem + 6vw, 9rem); }
.intro__plate-frame {
  position: relative; overflow: hidden;
  aspect-ratio: 21 / 9; max-height: 80svh; margin-inline: auto;
  clip-path: inset(0 var(--inset-x, 0%) 0 var(--inset-x, 0%));
}
.intro__plate-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--plate-scale, 1)); }
@media (max-width: 899px) { .intro__plate-frame { aspect-ratio: 4 / 3; } }

/* Word scrub */
[data-scrub-words] .w { opacity: var(--o, 1); transition: opacity 120ms linear; }

/* Services list: editorial index with a sticky plate */
.svc-index { display: grid; gap: var(--s-7); }
.svc-list { border-top: 1px solid var(--line); }
.svc-row { border-bottom: 1px solid var(--line); position: relative; }
.svc-row__link {
  display: grid; align-items: baseline;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  column-gap: var(--gutter); row-gap: 0.625rem;
  padding-block: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
}
.svc-row__num { color: var(--graphite); grid-row: 1; padding-top: 0.35em; }
.svc-row__title {
  grid-row: 1; grid-column: 2;
  font-stretch: var(--display-stretch); text-transform: uppercase; font-weight: 600;
  font-size: var(--type-card); line-height: 1.2; letter-spacing: -0.005em;
  transition: transform 600ms var(--ease-cine), color var(--d-comp) ease;
}
.svc-row__desc { grid-row: 2; grid-column: 2; color: var(--graphite); max-width: 44ch; font-size: var(--text-small); }
.svc-row__arrow { grid-row: 1; grid-column: 3; align-self: center; color: var(--graphite); transition: transform var(--d-comp) var(--ease-out), color var(--d-micro) ease; }
.svc-row__arrow .icon { width: 1.75rem; height: 1.75rem; }
.svc-row__media { display: none; }
.svc-stage { display: none; }

@media (min-width: 900px) {
  .svc-index { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(2rem, 1rem + 3vw, 5rem); align-items: start; }
  .svc-row__link { grid-template-columns: 3.5rem minmax(0, 1fr) 2.5rem; }
  .svc-row__title { color: rgb(243 243 240 / 0.42); }
  .svc-row.is-current .svc-row__title { color: var(--bone); transform: translateX(0.75rem); }
  .svc-row.is-current .svc-row__arrow { color: var(--bone); transform: rotate(45deg); }
  .svc-row__desc { transition: color var(--d-comp) ease; }
  .svc-row.is-current .svc-row__desc { color: var(--bone); }
  .svc-stage { display: block; position: sticky; top: calc(var(--header-h) + 2rem); }
  .svc-stage__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-1); }
  .svc-stage__img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.06); clip-path: inset(0 0 0 100%);
    transition: opacity 500ms ease, transform 1100ms var(--ease-cine), clip-path 800ms var(--ease-cine);
  }
  .svc-stage__img.is-current { opacity: 1; transform: none; clip-path: inset(0 0 0 0); z-index: 1; }
}
/* Narrow screens: the row nearest the centre of the screen opens its image */
@media (max-width: 899px) {
  /* Space is reserved up front (no height animation, so nothing below jumps);
     each image reveals once as its row reaches the middle of the screen. */
  .svc-row__media {
    display: block; overflow: hidden; margin: 0 0 1.5rem 0;
    aspect-ratio: 16 / 10; border-radius: 4px;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 800ms var(--ease-cine);
  }
  .svc-row.is-active .svc-row__media { clip-path: inset(0 0 0 0); }
  .svc-row__media img { width: 100%; height: 100%; object-fit: cover; }
  .svc-row.is-active .svc-row__arrow { color: var(--bone); }
}

/* Explorer */
.explorer__ui { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); }
.explorer__badge { display: inline-flex; align-items: center; gap: 0.5rem; }
.explorer__stage {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  container-type: size;
  background: var(--ink-1);
  border-radius: var(--radius);
}
.explorer__view {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 600ms ease, visibility 0s linear 600ms;
}
.explorer__view.is-active { opacity: 1; visibility: visible; transition: opacity 600ms ease, visibility 0s; }
/* The camera keeps the render's aspect ratio (2688 × 1520) and covers the stage,
   so hotspot percentages always land on the same pixels of the image. */
.explorer__camera {
  --cw: max(100cqw, 176.84cqh);
  --ch: max(100cqh, 56.55cqw);
  position: absolute; width: var(--cw); height: var(--ch);
  left: calc((100cqw - var(--cw)) / 2); top: calc((100cqh - var(--ch)) / 2);
  transform-origin: 0 0;
  transition: transform 1100ms var(--ease-in-out);
  will-change: transform;
}
.explorer__camera img { width: 100%; height: 100%; object-fit: cover; }
.hotspot {
  position: absolute; left: var(--x); top: var(--y);
  width: 2.75rem; height: 2.75rem; margin: -1.375rem 0 0 -1.375rem;
  display: grid; place-items: center;
  transition: opacity var(--d-comp) ease;
}
.hotspot__ring {
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  border: 1.5px solid rgb(243 243 240 / 0.9);
  background: rgb(7 7 7 / 0.35);
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.45);
  position: relative;
  transition: transform 400ms var(--ease-out), border-color var(--d-micro) ease, background-color var(--d-micro) ease;
}
.hotspot__ring::after {
  content: ""; position: absolute; inset: 0.3rem; border-radius: 50%; background: var(--bone);
  transition: background-color var(--d-micro) ease;
}
@media (hover: hover) and (pointer: fine) {
  .hotspot:hover .hotspot__ring { transform: scale(1.2); }
}
.hotspot:active .hotspot__ring { transform: scale(0.92); }
.hotspot.is-active .hotspot__ring { border-color: var(--signal); background: rgb(36 91 255 / 0.25); transform: scale(0.8); }
.hotspot.is-active .hotspot__ring::after { background: var(--signal); }
.explorer__stage.is-zoomed .hotspot:not(.is-active) { opacity: 0; pointer-events: none; }
.explorer__reset {
  position: absolute; right: 1rem; top: 1rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.5rem; padding: 0 0.875rem;
  background: rgb(7 7 7 / 0.72); border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: var(--text-caption); font-weight: 520;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform var(--d-press) var(--ease-out);
}
.explorer__reset .icon { width: 1rem; height: 1rem; }
.explorer__reset:active { transform: scale(0.97); }
.explorer__deck {
  display: grid; gap: var(--s-6); margin-top: var(--s-6);
}
.explorer__tabs {
  display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin);
  scroll-snap-type: x proximity;
}
.explorer__tabs::-webkit-scrollbar { display: none; }
.explorer__tab {
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center;
  min-height: 2.75rem; padding: 0 1rem;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: var(--text-small); font-weight: 500; color: var(--graphite);
  transition: color var(--d-micro) ease, border-color var(--d-micro) ease, background-color var(--d-micro) ease, transform var(--d-press) var(--ease-out);
}
.explorer__tab:active { transform: scale(0.97); }
.explorer__tab[aria-selected="true"] { color: var(--ink-0); background: var(--bone); border-color: var(--bone); }
@media (hover: hover) and (pointer: fine) {
  .explorer__tab:not([aria-selected="true"]):hover { color: var(--bone); border-color: var(--line-strong); }
}
.explorer__panel { min-height: 11rem; position: relative; }
.explorer__panel-empty { color: var(--graphite); }
.explorer__detail { display: grid; gap: var(--s-4); max-width: 46ch; }
.explorer__detail p { color: var(--graphite); }
.explorer__detail .link { justify-self: start; gap: 0.625rem; }
.explorer__detail.is-entering { animation: detail-in 520ms var(--ease-out) both; }
@keyframes detail-in { from { opacity: 0; transform: translateY(0.5rem); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@media (min-width: 1100px) {
  .explorer__deck { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; column-gap: var(--gutter); }
  .explorer__tabs { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
}
@media (min-width: 700px) { .explorer__stage { aspect-ratio: 16 / 9; } }
@media (min-width: 1100px) { .explorer__stage { aspect-ratio: 2 / 1; } }

/* Before / after */
.compare__figure { display: grid; gap: var(--s-4); }
.compare__stage {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  cursor: ew-resize;
  background: var(--ink-0);
}
.compare__img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; pointer-events: none; }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare__seam {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; margin-left: -0.5px;
  background: var(--signal);
  box-shadow: 0 0 0 0.5px rgb(36 91 255 / 0.4);
  pointer-events: none;
}
.compare__handle {
  position: absolute; top: 50%; left: var(--pos);
  width: 3.25rem; height: 3.25rem; margin: -1.625rem 0 0 -1.625rem;
  display: flex; align-items: center; justify-content: center; gap: 0;
  background: var(--bone); color: var(--ink-0); border-radius: 50%;
  box-shadow: 0 6px 24px rgb(0 0 0 / 0.45);
  cursor: grab;
  transition: transform var(--d-micro) var(--ease-out);
}
.compare__handle .icon { width: 1.125rem; height: 1.125rem; margin-inline: -0.125rem; }
.compare__stage.is-dragging .compare__handle { transform: scale(0.94); cursor: grabbing; }
.compare__stage.is-animating .compare__after { transition: clip-path 700ms var(--ease-in-out); }
.compare__stage.is-animating .compare__seam,
.compare__stage.is-animating .compare__handle { transition: left 700ms var(--ease-in-out), transform var(--d-micro) var(--ease-out); }
.compare__label {
  position: absolute; top: 1rem; padding: 0.375rem 0.75rem;
  background: rgb(7 7 7 / 0.66); border-radius: 999px;
  font-size: var(--text-caption); font-weight: 520;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  pointer-events: none;
}
.compare__label--before { left: 1rem; }
.compare__label--after { right: 1rem; }
.compare__caption { max-width: 70ch; }
@media (max-width: 699px) {
  .compare__stage { aspect-ratio: 4 / 3; }
  .compare__img { object-position: 35% 50%; }
}

/* Projects */
.project-list { display: grid; gap: var(--s-7) var(--s-7); }
.project-item { min-width: 0; border-top: 1px solid var(--line); padding-top: var(--s-5); }
.project-item__link { display: grid; gap: var(--s-4); align-items: start; }
.project-item__media { min-width: 0; }
.project-list .project-item__frame { width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius-frame); }
.project-item__frame { position: relative; overflow: hidden; aspect-ratio: 3 / 2; clip-path: inset(var(--clip-y, 0%) var(--clip-x, 0%)); }
.project-item__frame img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(var(--plate-scale, 1));
  transition: filter 600ms ease;
}
.project-item__text { display: grid; min-width: 0; gap: var(--s-3); align-content: start; }
.project-item__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-4); color: var(--graphite); font-size: var(--text-caption); align-items: baseline; }
.project-item__title { font-size: var(--type-card); font-stretch: 100%; line-height: 1.2; }
.project-item__summary { color: var(--graphite); max-width: 48ch; font-size: var(--text-small); line-height: 1.5; }
.project-item__cta { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; margin-top: var(--s-2); font-size: var(--text-small); font-weight: 520; }
.project-item__cta .tag { font-size: var(--text-micro); }
.projects__more { display: flex; justify-content: flex-end; margin-top: var(--s-7); font-size: var(--text-small); }
.projects .section-head { margin-bottom: var(--s-7); }
.projects .section-head__title { font-size: var(--type-section); line-height: 1.12; }
.projects .section-head__lede { font-size: var(--text-lead); }
@media (hover: hover) and (pointer: fine) {
  .project-item__link:hover .link-arrow .icon { transform: translateX(4px); }
  .project-item__link:hover .project-item__frame img { filter: saturate(0.85) contrast(1.02) brightness(1.16); }
}
@media (min-width: 700px) {
  .project-item__link { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s-5); }
  .project-list .project-item__frame { aspect-ratio: 4 / 3; max-height: 14rem; }
}
@media (min-width: 1200px) {
  .project-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Configurator (light editorial ground) */
.configurator { padding-block: clamp(3rem, 5vw, 5rem); }
.configurator > .container { display: grid; gap: var(--s-7); }
.configurator .section-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); margin-bottom: 0; align-content: start; }
.configurator .section-head__title { font-size: var(--type-section); line-height: 1.12; }
.configurator .section-head__lede { max-width: 38ch; font-size: var(--text-lead); justify-self: start; }
.cfg { display: grid; gap: var(--s-6); min-width: 0; scroll-margin-top: calc(var(--header-h) + var(--s-5)); }
.cfg__steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--paper-line);
}
.cfg__step {
  position: relative; display: grid; gap: 0.25rem; align-content: start;
  padding-top: var(--s-4); padding-right: var(--s-3);
  color: var(--paper-mute); font-size: var(--text-small);
  min-width: 0;
}
.cfg__step::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: var(--paper-ink); transform: scaleX(0); transform-origin: left;
  transition: transform 700ms var(--ease-cine);
}
.cfg__step.is-done::before, .cfg__step[aria-current="step"]::before { transform: scaleX(1); }
.cfg__step[aria-current="step"]::before { background: var(--signal); }
.cfg__step[aria-current="step"], .cfg__step.is-done { color: var(--paper-ink); }
.cfg__step-n {
  display: grid; place-items: center; width: 1.75rem; height: 1.75rem;
  border: 1px solid var(--paper-line); border-radius: 50%; color: inherit;
  font-size: var(--text-micro); margin-bottom: var(--s-2);
}
.cfg__step[aria-current="step"] .cfg__step-n { background: var(--signal-deep); border-color: var(--signal-deep); color: #fff; }
.cfg__step-label { font-weight: 560; }
.cfg__step-value { color: var(--paper-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 1.5em; }
.cfg__step-value:empty { display: none; }
@media (max-width: 699px) {
  .cfg__step-label { font-size: var(--text-caption); }
  .cfg__step-value { display: none; }
}
.cfg__pane { border: 0; padding: 0; min-width: 0; display: grid; gap: var(--s-5); }
.cfg__pane.is-entering { animation: pane-in 560ms var(--ease-out) both; }
@keyframes pane-in { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }
.cfg__legend { padding: 0; margin-bottom: var(--s-4); float: left; width: 100%; font-size: var(--type-minor); }
.cfg__legend + * { clear: both; }
.cfg__options { display: grid; gap: 0.75rem; min-width: 0; }
.cfg .choice { min-width: 0; }
.cfg .choice__face { min-width: 0; }
.cfg .choice__face > span { min-width: 0; overflow-wrap: anywhere; }
.cfg__options--makes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cfg__options--makes .choice__face {
  min-height: 4.75rem; padding: var(--s-4);
  font-stretch: 100%; font-weight: 560; background: #fff;
  font-size: var(--text-body); letter-spacing: normal; align-items: center;
}
.cfg__choice-icon { flex: none; color: var(--paper-mute); }
.cfg__choice-icon .icon { width: 1rem; height: 1rem; }
.cfg__options--makes input:checked + .choice__face { background: var(--paper-ink); color: var(--paper); }
.cfg__options--makes input:checked + .choice__face .cfg__choice-icon { color: inherit; }
@media (min-width: 700px) {
  .cfg__options--makes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cfg__options--makes .choice__face { min-height: 5rem; font-size: var(--type-minor); }
}
@media (min-width: 1100px) {
  .configurator > .container { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(3rem, 5vw, 6rem); }
  .configurator .section-head__title { max-width: 14ch; }
  .configurator noscript { grid-column: 1 / -1; }
}
.cfg__options--models { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.cfg__options--years { grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); }
.cfg__options--years .choice__face { justify-content: center; font-weight: 560; font-variant-numeric: tabular-nums; }
.cfg__back { justify-self: start; color: var(--paper-mute); font-size: var(--text-small); }
.cfg__back .icon { width: 1rem; height: 1rem; }
.cfg__result { gap: var(--s-6); }
.cfg__result:focus { outline: none; }
.cfg-result { display: grid; gap: var(--s-7); }
@media (min-width: 900px) { .cfg-result { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--gutter); } }
.cfg-result__head { display: grid; gap: var(--s-5); align-content: start; }
.cfg-result__vehicle { font-stretch: 112%; text-transform: uppercase; font-weight: 620; font-size: var(--type-subsection); line-height: 1.2; }
.cfg-result__note { color: var(--paper-mute); display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; max-width: 46ch; }
.cfg-result__note .icon { width: 1.25rem; height: 1.25rem; margin-top: 0.1rem; color: var(--signal-deep); }
.cfg-result__list { border-top: 1px solid var(--paper-line); }
.cfg-result__list li { border-bottom: 1px solid var(--paper-line); }
.cfg-result__list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem var(--s-5); padding: var(--s-5) 0; align-items: center; }
.cfg-result__list strong { font-weight: 600; font-size: var(--type-minor); }
.cfg-result__list span { grid-column: 1; color: var(--paper-mute); font-size: var(--text-small); }
.cfg-result__list .icon { grid-row: 1 / span 2; grid-column: 2; transition: transform var(--d-comp) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .cfg-result__list a:hover .icon { transform: translateX(4px); } }
.cfg-noscript { padding: var(--s-5); border: 1px solid var(--paper-line); }
.section--light .btn--light { --btn-bg: var(--paper-ink); --btn-fg: var(--paper); --btn-bd: var(--paper-ink); }
@media (hover: hover) and (pointer: fine) { .section--light .btn--light:hover { --btn-bg: #24272d; } }

/* Philosophy */
.philosophy { position: relative; overflow: clip; isolation: isolate; padding-block: var(--section); min-height: 100svh; display: flex; align-items: flex-end; }
.philosophy__media { position: absolute; inset: -10% 0; z-index: -1; }
.philosophy__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.philosophy__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--ink-0) 0%, rgb(21 23 27 / 0.08) 30%, rgb(21 23 27 / 0.5) 60%, var(--ink-0) 100%);
}
.philosophy__inner { display: grid; gap: clamp(3rem, 2rem + 5vw, 7rem); }
.principles { display: grid; gap: 0 var(--gutter); }
.principle { display: grid; gap: 0.5rem; padding-block: var(--s-5); border-top: 1px solid var(--line-strong); position: relative; }
.principle dd { color: var(--graphite); max-width: 40ch; }
@media (min-width: 700px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .philosophy__inner { grid-template-columns: minmax(0, 1fr); }
}

/* CTA */
.cta { padding-bottom: clamp(4rem, 3rem + 4vw, 7rem); }
.cta__rule { height: 1px; background: var(--signal); margin-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); transform-origin: left; }
.cta__foot { display: grid; gap: var(--s-6); align-items: end; }
.cta__foot p { color: var(--graphite); max-width: 32ch; }
@media (min-width: 900px) { .cta__foot { grid-template-columns: 1fr auto; } }

/* Home section rhythm: large photographic halves, alternating reading sides,
   and a compact project selection. Keep the TZAR hero and interactive tools. */
.page-home { --section: clamp(4rem, 6vw, 7rem); }
.page-home .intro {
  padding: 0;
  margin: clamp(3rem, 6vw, 6rem) var(--frame);
  background: transparent;
}
.page-home .intro__grid {
  display: flex; flex-direction: column; gap: var(--s-6);
  padding: clamp(2rem, 4vw, 5rem);
}
.page-home .intro__body { max-width: 44ch; color: var(--graphite); }
.page-home .intro__action { margin-top: var(--s-3); }
.page-home .intro__plate { margin: 0; }
.page-home .intro__plate-frame { max-height: none; border-radius: var(--radius-frame); }
.page-home .services {
  --bg: var(--paper); --fg: var(--paper-ink); --fg-mute: var(--paper-mute); --rule: var(--paper-line);
  padding-block: clamp(2.5rem, 4vw, 4rem); background: transparent;
  color: var(--paper-ink); color-scheme: light; isolation: isolate;
}
.services__surface, .cta__surface {
  position: absolute; inset: 0; z-index: -1;
  background: var(--paper); pointer-events: none;
  transform-origin: center;
}
.page-home .services :focus-visible { outline-color: var(--signal-deep); }
.page-home .services .section-head { gap: var(--s-4); margin-bottom: var(--s-5); }
.page-home .services .section-head__title { font-size: var(--type-section); line-height: 1.12; }
.page-home .services .section-head__lede { font-size: var(--text-lead); max-width: 48ch; }
.page-home .svc-list, .page-home .svc-row { border-color: var(--paper-line); }
.page-home .svc-row__num { display: none; }
.page-home .svc-row__link { grid-template-columns: minmax(0, 1fr) auto; padding-block: var(--s-4); }
.page-home .svc-row__title, .page-home .svc-row__desc { grid-column: 1; }
.page-home .svc-row__arrow { grid-column: 2; }
.page-home .svc-row__title {
  font-size: var(--type-card); line-height: 1.2;
  font-stretch: 100%; text-transform: none; letter-spacing: normal;
  color: var(--paper-mute);
}
.page-home .svc-row__desc { max-width: none; font-size: var(--text-small); line-height: 1.5; }
.page-home .svc-row__arrow .icon { width: 1.25rem; height: 1.25rem; }
.page-home .svc-row__desc, .page-home .svc-row__arrow { color: var(--paper-mute); }
.page-home .svc-row.is-current .svc-row__title { color: var(--paper-ink); transform: none; }
.page-home .svc-row.is-current .svc-row__desc,
.page-home .svc-row.is-current .svc-row__arrow { color: var(--paper-ink); }
.page-home .svc-stage__frame { border-radius: var(--radius-frame); }
.page-home .compare { padding-block: clamp(2.5rem, 4vw, 4rem); }
.page-home .compare .section-head { gap: var(--s-4); margin-bottom: var(--s-5); }
.page-home .compare .section-head__title { font-size: var(--type-section); line-height: 1.12; }
.page-home .compare .section-head__lede { font-size: var(--text-lead); }
.page-home .compare__stage { width: 100%; aspect-ratio: 16 / 10; max-height: 28rem; border-radius: var(--radius-frame); }
.page-home .compare__caption { max-width: 90ch; }
.page-home .projects { padding-block: clamp(3rem, 4vw, 4rem); background: var(--ink-1); }
.page-home .project-item__frame { border-radius: var(--radius-frame); }
.page-home .project-list { gap: var(--s-8) var(--gutter); }
.page-home .philosophy {
  display: grid; align-items: stretch; padding: 0; min-height: 0;
  margin: clamp(3rem, 6vw, 6rem) var(--frame);
  background: var(--ink-1); border-radius: var(--radius-frame); overflow: clip;
}
.page-home .philosophy__inner {
  padding: clamp(2rem, 4vw, 5rem); gap: var(--s-7);
  grid-row: 1; align-content: center;
}
.page-home .philosophy__media { position: relative; inset: auto; z-index: auto; min-height: 22rem; }
.page-home .philosophy__media::after { display: none; }
.page-home .philosophy__img { position: absolute; inset: 0; }
.page-home .principles { grid-template-columns: 1fr; }
.page-home .principle { border: 0; padding-block: var(--s-3); }
.page-home .principle dd { font-size: var(--text-small); }
.cta {
  margin: 0;
  padding-block: clamp(3rem, 6vw, 6rem);
  background: transparent; isolation: isolate;
}
.cta__title { line-height: 1.12; }
.cta__surface { background: var(--signal-deep); }
.cta__rule { display: none; }
.cta__foot { margin-top: var(--s-7); }
.cta__foot p { color: var(--bone); }
.cta .btn--signal { --btn-bg: var(--bone); --btn-fg: var(--paper-ink); --btn-bd: var(--bone); }
@media (min-width: 900px) {
  .page-home .compare .section-head { grid-template-columns: 1fr 1fr; column-gap: var(--gutter); align-items: end; }
  .page-home .compare .section-head__lede { max-width: 44ch; justify-self: end; }
  .page-home .compare__stage { aspect-ratio: 21 / 9; }
  .page-home .intro { display: grid; grid-template-columns: 1fr 1fr; }
  .page-home .intro__grid { grid-column: 2; grid-row: 1; justify-content: center; }
  .page-home .intro__plate { grid-column: 1; grid-row: 1; }
  .page-home .intro__plate-frame { aspect-ratio: auto; height: 100%; min-height: 42rem; }
  .page-home .services > .container { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 5vw, 6rem); align-items: start; }
  .page-home .services .section-head { grid-column: 2; grid-row: 1; }
  .page-home .svc-index { display: contents; }
  .page-home .svc-list { grid-column: 2; grid-row: 2; }
  .page-home .svc-stage { grid-column: 1; grid-row: 1 / span 2; }
  .page-home .svc-stage__frame { aspect-ratio: 1 / 1; }
  .page-home .philosophy { grid-template-columns: 1fr 1fr; }
  .page-home .philosophy__inner { grid-column: 1; }
  .page-home .philosophy__media { grid-column: 2; grid-row: 1; }
  .page-home .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
}

/* Footer */
#main {
  position: relative;
  z-index: 1;
  background: var(--ink-0);
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.site-footer {
  position: sticky;
  bottom: 0;
  z-index: 0;
  border-top: 1px solid var(--line); padding-top: clamp(4rem, 3rem + 4vw, 6rem); padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); background: var(--ink-0);
}

#main {
  position: relative;
  z-index: 1;
  background: var(--ink-0);
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}
.site-footer__top { display: flex; flex-wrap: wrap; gap: var(--s-6); justify-content: space-between; align-items: center; padding-bottom: var(--s-8); }
.site-footer__grid { display: grid; gap: var(--s-7); padding-bottom: var(--s-7); }
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.site-footer__heading { font-size: var(--text-caption); font-weight: 500; color: var(--graphite); margin-bottom: var(--s-4); }
.site-footer__grid ul { display: grid; gap: 0.625rem; }
.site-footer__grid li { font-size: var(--text-small); }
.site-footer__wordmark {
  --reel-step: 0.92em;
  display: grid;
  grid-template-columns: repeat(4, 1em);
  column-gap: 0.015em;
  width: max-content;
  max-width: 100%;
  height: var(--reel-step);
  font-stretch: 125%; font-weight: 700; text-transform: uppercase;
  font-size: clamp(4.25rem, 21vw, 21rem); line-height: var(--reel-step); letter-spacing: -0.01em;
  color: var(--bone);
  text-align: center; margin-block: var(--s-6) var(--s-7);
  user-select: none;
}
.site-footer__wordmark-slot { height: var(--reel-step); overflow: hidden; }
.site-footer__wordmark-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
  transform: translate3d(0, -0.92em, 0);
}
.site-footer__wordmark-track span { display: block; height: var(--reel-step); flex: 0 0 var(--reel-step); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-7); justify-content: space-between; color: var(--graphite); font-size: var(--text-caption); border-top: 1px solid var(--line); padding-top: var(--s-5); }
.site-footer__legal p { max-width: 72ch; }
.site-footer__legal ul { display: flex; gap: var(--s-5); }

/* 9. Pages ----------------------------------------------------------------- */
/* Text-only page heroes share one height and one composition: title left, lede right. */
.page-hero { padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 4vw, 6rem)); padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.page-hero__lede { color: var(--graphite); margin-top: var(--s-6); max-width: 44ch; font-size: var(--text-lead); line-height: 1.5; }
.page-hero--split { display: grid; gap: var(--s-6); }
.projects-intro__note { display: flex; gap: var(--s-2); align-items: start; margin-top: var(--s-4); max-width: 60ch; }
.projects-intro__note .icon { width: 1rem; height: 1rem; margin-top: 0.2rem; }
.page-projects .projects { padding-top: var(--s-6); }
.page-projects .project-item__frame {
  border-radius: var(--radius-frame);
  clip-path: inset(var(--clip-y, 0%) var(--clip-x, 0%) round var(--radius-frame));
}
@media (min-width: 900px) {
  .page-hero--split { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: var(--gutter); align-items: end; }
  .page-hero--split .page-hero__lede { margin-top: 0; }
  .page-hero--split > h1 { align-self: start; }
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: var(--text-small); color: var(--graphite); margin-bottom: var(--s-6); }
.breadcrumb a { color: var(--graphite); }
.breadcrumb a:hover { color: var(--bone); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: #4a4d53; }

.media-band { position: relative; overflow: hidden; }
.media-band__frame { position: relative; overflow: hidden; aspect-ratio: 21 / 9; clip-path: inset(0 var(--inset-x, 0%) 0 var(--inset-x, 0%)); }
.media-band__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--plate-scale, 1)); }
@media (max-width: 699px) { .media-band__frame { aspect-ratio: 4 / 3; } }

/* Services index */
.svc-block { display: grid; gap: var(--s-7); padding-block: clamp(4rem, 3rem + 5vw, 8rem); border-top: 1px solid var(--line); }
.svc-block__media { overflow: hidden; aspect-ratio: 4 / 3; clip-path: inset(var(--clip-y, 0%) var(--clip-x, 0%)); }
.svc-block__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--plate-scale, 1)); }
.svc-block__text { display: grid; gap: var(--s-5); align-content: start; min-width: 0; }
.svc-block__num { color: var(--graphite); }
.svc-block__title { font-stretch: var(--display-stretch); text-transform: uppercase; font-weight: 620; font-size: var(--type-section); line-height: 1.12; }
.svc-block__text > p { color: var(--graphite); }
.svc-block__items { columns: 2 14rem; column-gap: var(--gutter); border-top: 1px solid var(--line); padding-top: var(--s-5); }
.svc-block__items li { break-inside: avoid; padding: 0.375rem 0; font-size: var(--text-small); display: flex; gap: 0.625rem; }
.svc-block__items li::before { content: ""; flex: none; width: 0.875rem; height: 1px; background: var(--signal); margin-top: 0.75em; }
@media (min-width: 900px) {
  .svc-block { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .svc-block__media { grid-column: 1 / span 6; }
  .svc-block__text { grid-column: 7 / span 6; }
  .svc-block:nth-child(even) .svc-block__media { grid-column: 7 / span 6; grid-row: 1; }
  .svc-block:nth-child(even) .svc-block__text { grid-column: 1 / span 6; grid-row: 1; }
}

/* Service detail */
.detail-hero { position: relative; min-height: max(32rem, 88svh); display: flex; align-items: flex-end; overflow: clip; isolation: isolate; }
.detail-hero__media { position: absolute; inset: 0; z-index: -1; }
.detail-hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--plate-scale, 1)); }
.detail-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--ink-0) 0%, rgb(21 23 27 / 0.5) 40%, rgb(21 23 27 / 0.08) 100%); }
.detail-hero__inner { padding-top: calc(var(--header-h) + 6rem); padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); width: 100%; }
.detail-hero__lede { margin-top: var(--s-6); max-width: 40ch; }
/* Service and project heroes share the home hero's photographic window. */
:is(.page-project, .page-service, .page-services, .page-about) .detail-hero { align-items: flex-end; min-height: clamp(32rem, 86svh, 52rem); }
:is(.page-project, .page-service, .page-services, .page-about) .detail-hero { --open: 0; background: var(--ink-0); }
/* Same window as the home hero: inset with rounded corners, opening to full
   bleed over the first part of the scroll (--open set by JS on [data-window]). */
:is(.page-project, .page-service, .page-services, .page-about) .detail-hero__media {
  inset: 0;
  overflow: hidden;
  clip-path: inset(
    calc(var(--window-top) * (1 - var(--open))) calc(var(--frame) * (1 - var(--open)))
    calc(var(--frame) * (1 - var(--open))) calc(var(--frame) * (1 - var(--open)))
    round calc(var(--radius-frame) * (1 - var(--open)))
  );
}
:is(.page-project, .page-service, .page-services, .page-about) .detail-hero__inner {
  padding-top: calc(var(--header-h) + var(--s-7));
  padding-bottom: calc(var(--frame) + var(--s-6));
}

:is(.page-service, .page-services, .page-about) .detail-hero__lede { font-size: var(--text-lead); max-width: 44ch; margin-top: var(--s-5); }
.page-services { --section: clamp(3rem, 5vw, 5rem); }
.page-services .svc-block { padding-block: clamp(2.5rem, 4vw, 4rem); gap: var(--s-6); border-top: 1px solid var(--line); align-items: center; scroll-margin-top: calc(var(--header-h) + var(--s-5)); }
.page-services .svc-block:first-child { border-top: 0; }
.page-services .svc-block__media {
  width: 100%; aspect-ratio: 4 / 3; max-height: 22rem;
  border-radius: var(--radius-frame);
  clip-path: inset(var(--clip-y, 0%) var(--clip-x, 0%) round var(--radius-frame));
}
.page-services .svc-block__title { font-size: var(--type-section); line-height: 1.12; font-stretch: var(--display-stretch); text-transform: uppercase; overflow-wrap: anywhere; }
.page-services .svc-block__text { gap: var(--s-4); }
.page-services .svc-block__num { display: none; }
.page-services .svc-block__text > p { max-width: 64ch; }
.page-services .svc-block__text { width: 100%; min-width: 0; }
.page-services .svc-block__items { display: grid; grid-template-columns: 1fr; gap: 0 var(--s-5); border-top: 1px solid var(--line); padding-top: var(--s-4); columns: auto; }
.page-services .svc-block__items li { border: 0; padding-block: 0.375rem; font-size: var(--text-small); color: var(--graphite); overflow-wrap: anywhere; }
.page-services .svc-block__items li::before { display: block; }
.page-services .svc-block__action { padding-top: var(--s-2); font-size: var(--text-small); }
.page-services .services-process { margin-block: var(--s-4) var(--s-6); }
.services-process .section-head { margin-bottom: var(--s-7); }
.services-process h2 { font-size: var(--type-section); line-height: 1.12; }
.services-process .process { border: 0; gap: var(--s-6); }
.services-process .process li { border: 0; border-top: 1px solid var(--line); padding: var(--s-5) 0 0; gap: var(--s-4); align-content: start; }
.services-process .process h3 { font-size: var(--type-minor); align-items: center; gap: var(--s-3); }
.services-process .process .data { color: var(--graphite); font-size: var(--text-caption); }
.services-process .process p { font-size: var(--text-small); line-height: 1.55; }
@media (min-width: 700px) {
  .page-services .svc-block__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-process .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .page-services .svc-block { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 3vw, 3rem); }
  .page-services .svc-block .svc-block__media { grid-column: 1; grid-row: 1; }
  .page-services .svc-block .svc-block__text { grid-column: 2; grid-row: 1; }
  .page-services .svc-block:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .page-services .svc-block:nth-child(even) .svc-block__media { grid-column: 2; }
  .page-services .svc-block:nth-child(even) .svc-block__text { grid-column: 1; }
}
@media (min-width: 1100px) { .services-process .process { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Project hero: title sits low, the vehicle facts run along the bottom edge of the window. */

.project-hero-spec { margin-top: clamp(2.5rem, 5vw, 4.5rem); border-top-color: var(--line-strong); }
.project-hero-spec > div { border-bottom: 0; }
/* Project gallery: square images side by side, one row on desktop (--n = count). */
.project-gallery { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-gallery__item { overflow: hidden; border-radius: 4px; aspect-ratio: 1 / 1; background: var(--ink-1); }
.project-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
/* Phones: an odd image count starts with one wide image, then square pairs. */
@media (max-width: 899px) {
  .project-gallery__item:first-child:nth-last-child(odd) { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
}
@media (min-width: 900px) {
  .project-gallery { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: var(--gutter); }
}

.split { display: grid; gap: var(--s-7); }
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .split__aside { grid-column: 1 / span 4; }
  .split__main { grid-column: 6 / span 7; }
  .split__aside--sticky { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}
.item-list { border-top: 1px solid var(--line); }
.service-overview__content { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7); min-width: 0; }
.service-overview__content > * { grid-column: 1 / -1; min-width: 0; }
.service-overview__content .notice { max-width: none; align-self: start; }
@media (min-width: 900px) {
  .service-overview { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(2rem, 5vw, 5rem); }
  .service-overview > .split__aside { grid-column: 1; }
  .service-overview > .split__main { grid-column: 2; }
}
.item-list li { display: grid; gap: 0.375rem; padding-block: var(--s-5); border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .item-list li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gutter); } }
.item-list h3 { font-size: var(--type-minor); font-weight: 600; }
.item-list p { color: var(--graphite); }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); color: var(--graphite); font-size: var(--text-small); max-width: 62ch; }
.notice .icon { color: var(--signal-hi); width: 1.25rem; height: 1.25rem; margin-top: 0.1rem; }
.notice strong { color: var(--bone); font-weight: 600; }

.process { display: grid; gap: 0; border-top: 1px solid var(--line); counter-reset: step; }
.process li { display: grid; gap: 0.5rem; padding: var(--s-6) 0; border-bottom: 1px solid var(--line); position: relative; }
.process h3 { font-size: var(--type-minor); font-weight: 600; display: flex; gap: 1rem; align-items: baseline; }
.process p { color: var(--graphite); }
@media (min-width: 900px) {
  .process { grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .process li { padding: var(--s-6) var(--s-5) var(--s-7) 0; border-bottom: 0; }
  .process li + li { padding-left: var(--s-5); border-left: 1px solid var(--line); }
}

.next-section { padding-bottom: var(--s-5); }
.next-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-5); align-items: center; padding-block: var(--s-6); border-top: 1px solid var(--line); }
.next-link__copy { display: grid; gap: var(--s-3); min-width: 0; }
.next-link__label { color: var(--graphite); font-size: var(--text-caption); }
.next-link__title { font-size: var(--type-section); font-stretch: var(--display-stretch); text-transform: uppercase; font-weight: 620; line-height: 1.15; text-wrap: balance; }
.next-link__arrow .icon { width: 1.5rem; height: 1.5rem; transition: transform var(--d-micro) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .next-link:hover .next-link__arrow .icon { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .next-link__arrow .icon { transition: none; }
  .next-link:hover .next-link__arrow .icon { transform: none; }
}

/* Project detail */
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gutter); border-top: 1px solid var(--line); }
.spec > div { padding-block: var(--s-4); border-bottom: 1px solid var(--line); display: grid; gap: 0.25rem; }
.spec dt { color: var(--graphite); font-size: var(--text-caption); }
.spec dd { font-weight: 520; }
@media (min-width: 900px) { .spec { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery { display: grid; gap: var(--gutter); }
.gallery figure { overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .gallery { grid-template-columns: 7fr 5fr; align-items: end; } }
.prose { display: grid; gap: var(--s-5); }
.prose p { color: var(--graphite); font-size: var(--text-lead); }
.prose p:first-child { color: var(--bone); }
.demo-banner { display: flex; gap: 0.75rem; align-items: flex-start; padding: var(--s-4) var(--s-5); border: 1px solid rgb(36 91 255 / 0.45); border-radius: var(--radius); color: var(--graphite); font-size: var(--text-small); max-width: 70ch; }
.demo-banner .icon { color: var(--signal-hi); width: 1.25rem; height: 1.25rem; margin-top: 0.1rem; }

/* Contact */
.contact-grid { display: grid; gap: var(--s-8); }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(2rem, 1rem + 4vw, 6rem); } }
.form { display: grid; gap: var(--s-6); }
.form__group { display: grid; gap: var(--s-5); border: 0; padding: 0; min-width: 0; }
.form__group legend { font-weight: 600; font-size: var(--type-minor); margin-bottom: var(--s-5); padding: 0; float: left; width: 100%; }
.form__group legend + * { clear: both; }
.form__row { display: grid; gap: var(--s-5); }
@media (min-width: 700px) { .form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form__row--3 { grid-template-columns: 2fr 2fr 1fr; } }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; gap: var(--s-5); align-items: center; }
.form__status { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; padding: var(--s-5); border-radius: var(--radius); border: 1px solid var(--line-strong); }
.form__status .icon { width: 1.5rem; height: 1.5rem; }
.form__status h2 { font-size: var(--type-minor); font-weight: 600; }
.form__status p { color: var(--graphite); margin-top: 0.25rem; }
.form__status--ok { border-color: rgb(127 216 166 / 0.5); }
.form__status--ok .icon { color: var(--ok); }
.form__status--error { border-color: rgb(255 107 94 / 0.55); }
.form__status--error .icon { color: var(--danger); }
.form.is-sending .btn[type="submit"] { pointer-events: none; }
.btn .spinner { width: 1rem; height: 1rem; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; animation: spin 600ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.contact-aside { display: grid; gap: var(--s-7); align-content: start; }
.contact-aside dl { display: grid; gap: var(--s-5); }
.contact-aside dt { color: var(--graphite); font-size: var(--text-caption); margin-bottom: 0.25rem; }
.contact-aside dd { font-size: var(--text-body); }

/* Long-form text (privacy, credits) */
.longform { max-width: 68ch; display: grid; gap: var(--s-5); }
.longform h2 { font-size: var(--type-subsection); line-height: 1.2; font-weight: 600; margin-top: var(--s-6); }
.longform p, .longform li { color: var(--graphite); }
.longform ul { padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.longform a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--line-strong); }
.credits-table { width: 100%; border-collapse: collapse; font-size: var(--text-small); }
.credits-table th, .credits-table td { text-align: left; padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.credits-table th { color: var(--graphite); font-weight: 500; font-size: var(--text-caption); }

/* About */
.about-story { display: grid; gap: var(--s-6); }
.about-story p { font-size: var(--text-lead); color: var(--bone); max-width: 62ch; }
.about-story .notice { max-width: 62ch; }
.about-story p + p { color: var(--graphite); }

/* 404 */
.not-found { min-height: 80svh; display: flex; align-items: center; padding-top: var(--header-h); }

/* 10. Motion ---------------------------------------------------------------- */
/* Content is visible by default; motion classes only apply once JS is ready. */
.js [data-reveal="lines"] .line__inner { transform: translateY(105%); }
.js [data-reveal="lines"].is-in .line__inner {
  transform: none;
  transition: transform var(--d-cine) var(--ease-cine);
  /* --enter staggers texts that are already on screen when a page arrives (set in layout.php). */
  transition-delay: calc(var(--i, 0) * 90ms + var(--enter, 0ms));
}
.js [data-reveal="fade"] { opacity: 0; transform: translateY(0.75rem); }
.js [data-reveal="fade"].is-in { opacity: 1; transform: none; transition: opacity 650ms ease calc(150ms + var(--enter, 0ms)), transform 850ms var(--ease-cine) calc(150ms + var(--enter, 0ms)); }
.js [data-reveal="rule"] { opacity: 0; }
.js [data-reveal="rule"]::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--bone);
  transform: scaleX(0); transform-origin: left;
}
.js [data-reveal="rule"].is-in { opacity: 1; transition: opacity 700ms ease calc(var(--i, 0) * 120ms + 150ms); }
.js [data-reveal="rule"].is-in::before { transform: scaleX(1); opacity: 0; transition: transform 1000ms var(--ease-cine) calc(var(--i, 0) * 120ms), opacity 900ms ease calc(var(--i, 0) * 120ms + 700ms); }
.js [data-reveal="draw"] { transform: scaleX(0); }
.js [data-reveal="draw"].is-in { transform: scaleX(1); transition: transform 1600ms var(--ease-in-out) 300ms; }

/* Footer arrival: compact link stagger, followed by a fast reel that locks on TZAR. */
.js .site-footer [data-footer-item] {
  opacity: 0;
  transform: translate3d(0, 1rem, 0);
}
.js .site-footer.is-in [data-footer-item] {
  opacity: 1;
  transform: none;
  transition:
    opacity 420ms var(--ease-out) calc(70ms + var(--footer-i, 0) * 65ms),
    transform 620ms var(--ease-cine) calc(70ms + var(--footer-i, 0) * 65ms);
}
.js .site-footer .site-footer__wordmark-track { transform: translate3d(0, var(--reel-step), 0); }
.js .site-footer.is-wordmark-in .site-footer__wordmark-track {
  animation-name: footer-wordmark-reel;
  animation-duration: calc(400ms + var(--slot-i, 0) * 240ms);
  animation-timing-function: linear;
  animation-delay: 80ms;
  animation-fill-mode: both;
}
@keyframes footer-wordmark-reel {
  0% { transform: translate3d(0, 0.92em, 0); }
  38% { transform: translate3d(0, 0, 0); }
  88% { transform: translate3d(0, -0.97em, 0); }
  100% { transform: translate3d(0, -0.92em, 0); }
}

/* Hero entrance */
.js .hero__camera { transform: scale(1.06); opacity: 0; }
.js .hero__title .line__inner { transform: translateY(105%); }
.js .hero__foot { opacity: 0; transform: translateY(1rem); }
.js .hero.is-ready .hero__camera {
  opacity: 1; transform: scale(1);
  transition: opacity 1200ms ease, transform 2600ms var(--ease-cine);
}
.js .hero.is-ready .hero__title .line__inner {
  transform: none;
  transition: transform 1300ms var(--ease-cine);
  transition-delay: calc(350ms + var(--i, 0) * 100ms);
}
.js .hero.is-ready .hero__foot { opacity: 1; transform: none; transition: opacity 900ms ease 900ms, transform 1200ms var(--ease-cine) 900ms; }
/* After the entrance, the camera follows the pointer/scroll via JS without CSS transitions */
.hero.is-settled .hero__camera { transition: none; }

/* Page navigation: the next scene wipes up over the receding previous scene.
   The longer timing is deliberate for this cinematic marketing-site transition;
   Unsupported browsers retain normal document navigation. */
@view-transition { navigation: auto; }
/* While a page transition plays (html.vt-wait, set on pagereveal), text reveals
   are held hidden and only animate once the wipe has finished, so the snapshot
   and the live page never both play them (it read as the text resetting). */
.vt-wait [data-reveal] .line__inner { transform: translateY(105%) !important; transition: none !important; }
.vt-wait [data-reveal="fade"], .vt-wait [data-reveal="rule"] { opacity: 0 !important; transition: none !important; }
.vt-wait [data-reveal="draw"] { transform: scaleX(0) !important; transition: none !important; }
.site-header { view-transition-name: site-header; }
::view-transition { pointer-events: none; }
::view-transition-group(root),
::view-transition-group(site-header) { animation: none; }
::view-transition-old(root) {
  /* 1. the current page fades out … */
  animation: page-fade-out 420ms ease both;
  mix-blend-mode: normal;
}
::view-transition-new(root) {
  /* 2. … then the next page rises from below. */
  animation: page-wipe 1200ms var(--ease-out) 400ms both;
  mix-blend-mode: normal;
}
::view-transition-old(site-header) { display: none; }
::view-transition-new(site-header) { animation: none; }
@keyframes page-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes page-wipe {
  from { clip-path: inset(100% 0 0); transform: translate3d(0, 10%, 0); }
  to { clip-path: inset(0 0 0); transform: none; }
}
@keyframes page-out { to { opacity: 0; } }
@keyframes page-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* 11. Reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .js [data-reveal="lines"] .line__inner,
  .js .hero__title .line__inner { transform: none !important; transition: none !important; }
  .js [data-reveal="fade"] { opacity: 1; transform: none; transition: opacity 300ms ease !important; }
  .js [data-reveal="rule"] { opacity: 1; }
  .js [data-reveal="rule"]::before { display: none; }
  .js [data-reveal="draw"] { transform: none; }
  .js .site-footer [data-footer-item] { opacity: 1; transform: none; transition: opacity 200ms ease !important; }
  .js .site-footer .site-footer__wordmark-track,
  .js .site-footer.is-wordmark-in .site-footer__wordmark-track { animation: none; transform: translate3d(0, -0.92em, 0); }
  .js .hero__camera { transform: none !important; opacity: 1; transition: opacity 400ms ease !important; }
  .js .hero__foot { opacity: 1; transform: none; transition: none; }
  .hero__scroll-line::after { animation: none; }
  .explorer__camera { transition: none; }
  .svc-row__title, .svc-stage__img { transition: opacity 200ms ease !important; transform: none !important; clip-path: none !important; }
  .mobile-menu, .mobile-menu.is-open { transform: none; transition: opacity 200ms ease, visibility 0s linear 200ms; }
  .mobile-menu.is-open { transition: opacity 200ms ease, visibility 0s; }
  .intro-gate { transition: opacity 200ms ease !important; }
  .mobile-menu__nav a { transform: none; transition: opacity 200ms ease; }
  .compare__stage.is-animating .compare__after,
  .compare__stage.is-animating .compare__seam,
  .compare__stage.is-animating .compare__handle { transition: none; }
  .explorer__detail.is-entering, .cfg__pane.is-entering { animation: none; }
  ::view-transition-old(root) { animation: page-out 80ms linear both; }
  ::view-transition-new(root) { animation: page-fade-in 100ms linear both; }
  .intro__plate-frame, .media-band__frame, .project-item__frame, .svc-block__media { clip-path: none !important; }
  [data-plate-img], .detail-hero__media img { transform: none !important; }
}
