/* 182 Universal Doors
   Dark, stage-lit layout after the brand's charcoal/bone/terracotta palette.
   The logo's hinged "2" is the motif: doors swing open from the left everywhere. */

:root {
  /* Brand primitives (sampled from the logo PDF) */
  --charcoal: #141414;
  --bone: #EFEBE3;
  --terracotta: #E04A2A;      /* logo terracotta for dark backgrounds */
  --terracotta-ink: #C63A1E;  /* logo terracotta for light backgrounds; large/decorative */
  --terracotta-deep: #A8321A; /* small text on light (5.6:1) */
  --terracotta-text: #E85A38; /* small accent text on dark surfaces (≥4.6:1) */

  /* Semantic */
  --bg: var(--charcoal);
  --bg-deep: #0C0C0C;
  --surface: #202020;
  --surface-2: #272625;
  --fg: var(--bone);
  --fg-muted: #B9B4AA;
  --line: rgba(239, 235, 227, .12);
  --line-strong: rgba(239, 235, 227, .24);
  --accent: var(--terracotta);
  --accent-text: var(--terracotta-text);
  --on-accent: var(--charcoal);
  --focus: var(--terracotta);
  --error: #FF8A6B;

  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  --max: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(88px, 11vw, 168px);
  --radius: 20px;
  --radius-sm: 10px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 900ms;

  --z-header: 40;
  --z-menu: 60;
  --z-preloader: 100;

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }

.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: 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;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none; transition: top var(--dur-fast);
}
.skip-link:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--section); position: relative; }
.projects { scroll-margin-top: 96px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.005em;
}
.h2 { font-size: clamp(44px, 6.4vw, 96px); }
.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-text);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; flex: none; }
.eyebrow__num { font-variant-numeric: tabular-nums; letter-spacing: .08em; margin-right: -4px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--fg); }
p { color: var(--fg-muted); }
.lead, .hero__lead { color: var(--fg); }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 48px;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: var(--btn-h);
  padding: 5px 20px 5px 5px;
  border-radius: 12px;
  font-family: var(--display);
  font-size: 17px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
  touch-action: manipulation; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn__icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center; flex: none;
  transition: transform var(--dur) var(--ease-out);
}
.btn:hover .btn__icon { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary .btn__icon { background: var(--charcoal); color: var(--accent); }
.btn--primary:hover { background: #EA6544; }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--fg); padding: 5px 20px; }
.btn--ghost:hover { border-color: var(--fg); background: rgba(239, 235, 227, .06); }
.btn--dark { background: var(--charcoal); color: var(--bone); }
.btn--dark .btn__icon { background: var(--accent); color: var(--charcoal); }
.btn--dark:hover { background: #000; }
.btn--lg { --btn-h: 56px; font-size: 18px; }
.btn--lg .btn__icon { width: 44px; height: 44px; }
.btn--block { width: 100%; justify-content: flex-start; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.icon-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: rgba(239, 235, 227, .06); border: 1.5px solid var(--line-strong);
  cursor: pointer; transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.icon-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- Logo (layered; the "2" is a hinged door leaf) ----------
   Geometry comes from the original artwork, 1em = 100 artwork units.
   The leaf rotates about its left edge (the hinges); --a is set by main.js. */
.logo {
  --logo-fg: var(--bone);
  --logo-accent: var(--terracotta);
  --logo-edge: #B9B2A5;
  position: relative; display: block; flex: none;
  width: 26.1em; height: 7.4em;
  font-size: calc(var(--logo-h, 34px) / 7.4);
  perspective: 19em; perspective-origin: 7.7em 3.6em;
}
:where(.logo > span) { position: absolute; top: 0; display: block; }
.logo__18, .logo__word, .logo__shadow, .logo__leaf i, .logo__face {
  background-color: var(--logo-fg);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.logo__18 { left: 0; width: 6.8em; height: 7.4em; -webkit-mask-image: url(assets/brand/mask-18.png); mask-image: url(assets/brand/mask-18.png); }
.logo__word { left: 15.1em; top: 2.1em; width: 11em; height: 3.3em; -webkit-mask-image: url(assets/brand/mask-word.png); mask-image: url(assets/brand/mask-word.png); }
.logo__bar { left: 13.4em; top: .94em; width: .15em; height: 5.71em; background: var(--logo-accent); }
.logo__hinge { left: 7.41em; width: .24em; height: .94em; background: var(--logo-fg); }
.logo__hinge--t { top: 1.49em; }
.logo__hinge--b { top: 5.96em; }
.logo__shadow { left: 7.76em; width: 3.8em; height: 7.4em; background-color: var(--logo-accent); -webkit-mask-image: url(assets/brand/mask-2.png); mask-image: url(assets/brand/mask-2.png); }
.logo__door { left: 7.7em; width: 3.8em; height: 7.4em; transform-style: preserve-3d; }
.logo__leaf {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform-origin: 0 50%;
  transform: rotateY(calc(var(--a, 52deg) * -1));
  will-change: transform;
}
.logo__leaf i, .logo__face { position: absolute; inset: 0; -webkit-mask-image: url(assets/brand/mask-2.png); mask-image: url(assets/brand/mask-2.png); }
/* Door thickness: stacked copies behind the face */
.logo__leaf i { background-color: var(--logo-edge); }
.logo__leaf i:nth-child(1) { transform: translateZ(-.035em); }
.logo__leaf i:nth-child(2) { transform: translateZ(-.07em); }
.logo__leaf i:nth-child(3) { transform: translateZ(-.105em); }
.logo__leaf i:nth-child(4) { transform: translateZ(-.14em); background-color: #8F897E; }
/* Face darkens as it turns away from the light */
.logo__face { background-image: linear-gradient(90deg, rgba(0,0,0,0) 10%, rgba(0,0,0,var(--shade, .03))); }
.logo--light { --logo-fg: var(--charcoal); --logo-accent: var(--terracotta-ink); --logo-edge: #4a4744; }

/* ---------- Preloader ---------- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: var(--z-preloader);
  display: grid; place-items: center;
  background: var(--bg-deep);
  transition: transform 900ms var(--ease-out), visibility 0s linear 900ms;
}
.preloader.is-done { transform: translateY(-100%); visibility: hidden; }
.preloader.is-skipped { display: none; }
.preloader__inner { display: grid; place-items: center; }
.logo--pre { --logo-h: clamp(64px, 14vw, 150px); }
.preloader__bar { position: absolute; left: 50%; bottom: 48px; width: min(240px, 60vw); height: 2px; transform: translateX(-50%); background: var(--line); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; z-index: var(--z-header);
  top: max(14px, env(safe-area-inset-top, 0px)); left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
  pointer-events: none;
  transition: transform var(--dur) var(--ease-out);
}
.site-header > * { pointer-events: auto; }
.site-header.is-hidden { transform: translateY(calc(-100% - 24px)); }
.site-header__bar {
  display: flex; align-items: center; gap: clamp(16px, 4vw, 56px);
  padding: 6px 6px 6px 18px; min-height: 58px;
  background: rgba(20, 20, 20, .72);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line); border-radius: 14px;
}
.brand { display: block; border-radius: 6px; }
.brand .logo { --logo-h: 40px; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  background: transparent; border: 0; border-radius: 10px; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .06em; text-transform: uppercase;
  transition: background-color var(--dur-fast);
}
.menu-toggle:hover { background: rgba(239, 235, 227, .08); }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.site-header__actions .btn { min-height: 58px; border-radius: 14px; padding-right: 22px; }
.site-header__actions .btn--ghost { background: rgba(20, 20, 20, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding-left: 22px; }
.site-header__actions .btn__icon { width: 46px; height: 46px; border-radius: 10px; }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--bg-deep);
  overflow-y: auto;
  padding: max(96px, env(safe-area-inset-top)) var(--gutter) 48px;
}
.menu[hidden] { display: none; }
.menu.is-open { animation: menu-in 520ms var(--ease-out) both; }
@keyframes menu-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.menu__inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; min-height: 100%; }
.menu__list { list-style: none; counter-reset: none; }
.menu__list a {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(40px, 7vw, 92px); line-height: 1.02; text-decoration: none;
  transition: color var(--dur-fast), transform var(--dur) var(--ease-out);
}
.menu__list a:hover, .menu__list a:focus-visible { color: var(--accent); transform: translateX(10px); }
.menu__num { font-family: var(--sans); font-size: 14px; letter-spacing: .1em; color: var(--fg-muted); font-weight: 500; transform: translateY(-1.4em); }
.menu.is-open .menu__list li { animation: rise 600ms var(--ease-out) both; }
.menu.is-open .menu__list li:nth-child(2) { animation-delay: 40ms; }
.menu.is-open .menu__list li:nth-child(3) { animation-delay: 80ms; }
.menu.is-open .menu__list li:nth-child(4) { animation-delay: 120ms; }
.menu.is-open .menu__list li:nth-child(5) { animation-delay: 160ms; }
.menu.is-open .menu__list li:nth-child(6) { animation-delay: 200ms; }
.menu.is-open .menu__list li:nth-child(7) { animation-delay: 240ms; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.menu__aside { display: grid; gap: 20px; justify-items: start; padding-bottom: 12px; }
.menu__lead { font-size: 19px; color: var(--fg); max-width: 34ch; }
.menu__mail { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; text-underline-offset: 6px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.menu__mail:hover { color: var(--accent); }
.menu__close {
  position: fixed; top: max(20px, env(safe-area-inset-top)); right: var(--gutter);
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .06em; text-transform: uppercase;
}
.menu__close:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ----------
   Editorial split: headline left, a "portal" of completed projects right.
   The portal is covered by a leaf that swings open on its left hinge, like the logo's 2. */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh;
  padding-top: clamp(104px, 13vh, 140px);
  padding-bottom: 28px;
  display: flex; flex-direction: column;
  background:
    radial-gradient(ellipse 42% 58% at 74% 46%, rgba(224, 74, 42, .10), transparent 70%),
    radial-gradient(ellipse 70% 50% at 10% 100%, rgba(0, 0, 0, .55), transparent 70%),
    linear-gradient(180deg, #131313 0%, var(--bg) 100%);
}
.hero__grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__grid {
  flex: 1; display: grid; align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 96px);
}
.hero__copy { display: grid; gap: clamp(24px, 3vw, 40px); align-content: center; }
.hero__kicker {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-muted);
}
.hero__index { color: var(--accent-text); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.hero__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: .8; }
.hero__title {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(56px, 7.3vw, 136px); line-height: .86; letter-spacing: -.01em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .05em; margin-bottom: -.05em; }
.hero__title .line > span { display: block; }
.hero__title em {
  font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: 0; color: var(--accent);
  font-size: 1.14em; line-height: .7; padding-right: .06em;
}
.hero__body { display: grid; gap: 30px; max-width: 520px; }
.hero__lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.7; color: #CFCBC3; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 36px; }
.text-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 48px;
  font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
}
.text-link::after {
  content: ""; position: absolute; left: 0; right: 28px; bottom: 9px; height: 1.5px; background: currentColor;
  transform-origin: left; transform: scaleX(.3); transition: transform 500ms var(--ease-out);
}
.text-link .i { transition: transform 500ms var(--ease-out); }
.text-link:hover::after, .text-link:focus-visible::after { transform: scaleX(1); }
.text-link:hover .i { transform: translate(3px, -3px); color: var(--accent); }

/* Portal */
.portal {
  position: relative; margin: 0; justify-self: end;
  width: min(580px, 100%, calc((100svh - 280px) * .8));
  transform: perspective(1600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 900ms var(--ease-out);
}
.portal__stage { position: relative; perspective: 1600px; }
.portal__frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; background: #0e0e0e;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(239, 235, 227, .08);
}
.portal__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1400ms var(--ease-out), transform 8s linear;
}
.portal__img.is-active { opacity: 1; transform: scale(1); }
.portal__shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.18), transparent 22%, transparent 58%, rgba(0,0,0,.78)), radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.3)); }
.portal__leaf { display: none; }
.js .portal__leaf {
  display: block; position: absolute; inset: 0; z-index: 2; border-radius: 3px;
  transform-origin: 0 50%; backface-visibility: hidden;
  background:
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(239, 235, 227, .025) 26px 27px),
    linear-gradient(90deg, #111 0%, #1b1b1b 55%, #222 100%);
  box-shadow: inset -1px 0 0 rgba(239, 235, 227, .14), inset 1px 0 0 rgba(0, 0, 0, .6);
  transition: transform 1900ms cubic-bezier(.62, 0, .12, 1) 450ms, opacity 300ms linear 2050ms;
}
.portal__hinge { position: absolute; left: 0; width: 5px; height: 9%; background: var(--bone); opacity: .85; }
.portal__hinge--t { top: 14%; }
.portal__hinge--b { bottom: 14%; }
.portal__pull { position: absolute; right: 9%; top: 33%; width: 3px; height: 34%; border-radius: 2px; background: var(--accent); box-shadow: 0 0 24px rgba(224, 74, 42, .45); }
.hero.is-ready .portal__leaf { transform: rotateY(-108deg); opacity: 0; }

.portal__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px 18px;
  padding: 0 20px 18px;
}
.portal__count { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.portal__of { color: #DAD5CC; margin-left: 6px; }
.portal__text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; }
.portal__text strong { font-family: var(--display); font-weight: 600; font-size: 18px; text-transform: uppercase; letter-spacing: .03em; }
.portal__text span { font-size: 14px; color: #DAD5CC; }
.portal__toggle {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(18, 18, 18, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(239, 235, 227, .3); transition: border-color var(--dur-fast), color var(--dur-fast);
}
.portal__toggle:hover { border-color: var(--accent); color: var(--accent); }
.portal__toggle .i { width: 16px; height: 16px; }
.portal__toggle .i--play { display: none; }
.portal__toggle[aria-pressed="true"] .i--play { display: block; }
.portal__toggle[aria-pressed="true"] .i--pause { display: none; }
.portal__progress { grid-column: 1 / -1; grid-row: 1; height: 1px; background: rgba(239, 235, 227, .28); overflow: hidden; }
.portal__progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* Foot rule */
.hero__foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-top: clamp(28px, 4vh, 56px); padding-top: 22px; border-top: 1px solid var(--line);
}
.hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; flex: 1; max-width: 900px; }
.hero__facts li { display: flex; gap: 14px; }
.hero__fnum { font-size: 12px; letter-spacing: .1em; color: var(--accent-text); padding-top: 5px; font-variant-numeric: tabular-nums; }
.hero__facts strong { display: block; font-family: var(--display); font-weight: 600; font-size: 19px; text-transform: uppercase; letter-spacing: .04em; }
.hero__facts span:not(.hero__fnum) { color: var(--fg-muted); font-size: 15px; }
.hero__scroll {
  display: grid; justify-items: center; gap: 10px; min-width: 44px; padding: 4px 0; text-decoration: none;
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--fg-muted);
}
.hero__scroll:hover { color: var(--fg); }
.hero__scroll-line { position: relative; width: 1px; height: 52px; background: var(--line-strong); overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent); animation: scroll-cue 2.2s var(--ease-in) infinite; }
@keyframes scroll-cue { to { top: 100%; } }

/* Entrance choreography (runs when main.js adds .is-ready after the preloader) */
.js .hero__title .line > span { transform: translateY(110%); transition: transform 1200ms var(--ease-out); }
.js .hero__title .line:nth-child(2) > span { transition-delay: 90ms; }
.js .hero__title .line:nth-child(3) > span { transition-delay: 180ms; }
.js .hero.is-ready .hero__title .line > span { transform: none; }
.js .hero__kicker, .js .hero__body, .js .portal__cap, .js .hero__foot { opacity: 0; transform: translateY(16px); transition: opacity 1000ms var(--ease-out), transform 1000ms var(--ease-out); }
.js .hero.is-ready .hero__kicker { opacity: 1; transform: none; }
.js .hero.is-ready .hero__body { opacity: 1; transform: none; transition-delay: 350ms; }
.js .hero.is-ready .portal__cap { opacity: 1; transform: none; transition-delay: 1950ms; }
.js .hero.is-ready .hero__foot { opacity: 1; transform: none; transition-delay: 700ms; }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-deep); padding-block: 18px; }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker span {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1; color: transparent;
  -webkit-text-stroke: 1px rgba(239, 235, 227, .45);
  padding-inline: 28px; display: inline-flex; align-items: center; gap: 56px;
}
.ticker span::after { content: ""; width: 10px; height: 10px; background: var(--accent); transform: rotate(45deg); margin-left: 28px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Section head ---------- */
.section-head { display: grid; grid-template-columns: 1fr minmax(260px, 420px); gap: 24px 48px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head > div { display: grid; gap: 20px; }
.section-head__aside { font-size: 17px; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__media { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(8, minmax(44px, 1fr)); gap: 16px; min-height: 620px; }
.photo { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.photo:hover img { transform: scale(1.04); }
.photo--tall { grid-column: 1 / 4; grid-row: 1 / 7; }
.photo--offset { grid-column: 4 / 7; grid-row: 2 / 9; }
.photo--small { grid-column: 2 / 4; grid-row: 7 / 9; }
.photo[data-sample]::after {
  content: "Sample image"; position: absolute; left: 10px; bottom: 10px;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(18, 18, 18, .8); color: var(--bone); padding: 4px 8px; border-radius: 6px;
}
.about__copy { display: grid; gap: 24px; }
.pillars { display: grid; gap: 4px; margin-top: 12px; border-top: 1px solid var(--line); }
.pillars li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pillars__num { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: .04em; color: var(--accent); line-height: 1; padding-top: 4px; font-variant-numeric: tabular-nums; }
.pillars h3 { font-family: var(--display); font-weight: 600; font-size: 24px; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 4px; color: var(--fg); }
.pillars p { font-size: 16px; }

/* ---------- Collection showcase ---------- */
.collections { background: var(--bg-deep); }
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: stretch; }
.stage {
  position: relative; overflow: hidden;
  min-height: clamp(560px, 74vh, 760px);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 34% 70% at 50% 0%, rgba(255, 240, 220, .12), transparent 70%),
    radial-gradient(ellipse 60% 20% at 50% 82%, rgba(224, 74, 42, .10), transparent 70%),
    #0c0c0c;
  border: 1px solid var(--line);
  outline-offset: 4px;
  --door-w: clamp(140px, min(11vw, 26vh), 180px);
  touch-action: pan-y;
}
.stage__lamp { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 120px; height: 100%; pointer-events: none; z-index: 3; }
.stage__cord { position: absolute; left: 50%; top: 0; width: 1.5px; height: 48px; background: #333; transform: translateX(-50%); }
.stage__shade {
  position: absolute; left: 50%; top: 46px; width: 92px; height: 36px; transform: translateX(-50%);
  background: linear-gradient(180deg, #2a2a2a, #121212); border-radius: 46px 46px 6px 6px;
  box-shadow: 0 8px 24px rgba(255, 240, 220, .35);
}
.stage__shade::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -5px; height: 8px; border-radius: 50%; background: #fff7ea; box-shadow: 0 0 24px 6px rgba(255, 244, 228, .7); }
.stage__cone {
  position: absolute; left: 50%; top: 82px; width: 420px; height: calc(100% - 150px); transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 243, 226, .16), rgba(255, 243, 226, 0) 90%);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  z-index: -1;
}
/* Model name is lettered on the back wall, under the lamp and clear of the door. */
.stage__name {
  position: absolute; left: 0; right: 0; bottom: calc(17% + var(--door-w) * 2.2 + 30px);
  text-align: center; z-index: 4; pointer-events: none;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(56px, 7vw, 112px); line-height: .8; letter-spacing: .02em; color: var(--bone);
  white-space: nowrap; text-shadow: 0 2px 30px rgba(0, 0, 0, .5);
}
.stage__name span { display: inline-block; transition: opacity var(--dur) var(--ease-out), transform 520ms var(--ease-out), letter-spacing 700ms var(--ease-out); }
/* Soft occlusion around the door darkens the lettering behind it, so the depth reads instantly. */
.stage__cast {
  position: absolute; left: 50%; bottom: 17%; z-index: 2; pointer-events: none;
  width: calc(var(--door-w) * 1.9); height: calc(var(--door-w) * 1.9); transform: translateX(-46%);
  background: radial-gradient(ellipse 50% 50% at 50% 70%, rgba(0, 0, 0, .55), transparent 70%);
}
.stage__contact {
  position: absolute; left: 50%; bottom: calc(17% - 12px); z-index: 2; pointer-events: none;
  width: calc(var(--door-w) * 1.5); height: 26px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .9), transparent 70%);
}
.stage { perspective: 1100px; perspective-origin: 50% 55%; }
.stage__door {
  position: absolute; left: 50%; bottom: 17%; width: var(--door-w); aspect-ratio: 200 / 440;
  transform: translateX(-50%); z-index: 3; transform-style: preserve-3d;
  transition: opacity 360ms var(--ease-out), transform 620ms var(--ease-out);
}
.stage__obj {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateY(22deg);
  animation: door-sway 10s ease-in-out infinite;
}
@keyframes door-sway {
  0%, 100% { transform: rotateY(16deg); }
  50% { transform: rotateY(30deg); }
}
.stage__face { position: absolute; inset: 0; filter: drop-shadow(0 30px 34px rgba(0, 0, 0, .55)); }
.stage__face svg { width: 100%; height: 100%; display: block; }
/* Door thickness: a side panel hinged back from the left edge */
.stage__edge {
  position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--door-w) * .07);
  transform-origin: 0 50%; transform: rotateY(90deg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--edge-c, #3a2c22) 70%, #fff 8%), var(--edge-c, #3a2c22) 35%, color-mix(in srgb, var(--edge-c, #3a2c22) 70%, #000 30%));
}
.stage[data-arch] .stage__edge { top: 20.9%; }
.stage__ring {
  position: absolute; left: 50%; bottom: calc(17% - 34px); width: calc(var(--door-w) * 2.4); height: 68px;
  transform: translateX(-50%); border-radius: 50%; z-index: 1;
  border: 1.5px solid rgba(224, 74, 42, .55);
  background: radial-gradient(ellipse at center, rgba(224, 74, 42, .14), transparent 70%);
}
.stage.is-out .stage__door { opacity: 0; transform: translateX(calc(-50% + var(--dir, 1) * -40px)); }
.stage.is-out .stage__name span { opacity: 0; transform: translateY(16px); letter-spacing: .04em; }
/* Neighbouring doors angle toward the centre like a showroom carousel */
.stage__ghost {
  position: absolute; bottom: 20%; width: calc(var(--door-w) * .74); aspect-ratio: 200 / 440;
  background: none; border: 0; padding: 0; cursor: pointer; z-index: 2;
  opacity: .5; filter: brightness(.42) saturate(.75);
  transition: opacity var(--dur), filter var(--dur), transform 620ms var(--ease-out);
}
.stage__ghost svg { width: 100%; height: 100%; }
.stage__ghost:hover { opacity: .8; filter: brightness(.7); }
.stage__ghost--prev { left: 10%; transform: translateZ(-120px) rotateY(55deg); }
.stage__ghost--next { right: 10%; transform: translateZ(-120px) rotateY(-55deg); }
.stage__controls {
  position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 5;
  display: flex; align-items: center; gap: 16px;
}
.stage__progress { flex: 1; height: 2px; background: var(--line-strong); position: relative; overflow: hidden; border-radius: 2px; }
.stage__progress span { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(.1667); transition: transform 620ms var(--ease-out); }
.stage__count { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: var(--fg-muted); min-width: 64px; text-align: center; }

.door-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 2.4vw, 32px); display: grid; gap: 20px; align-content: start;
}
.door-panel__type { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); font-weight: 500; }
.door-panel__name { font-size: clamp(56px, 5vw, 76px); margin-top: -8px; }
.door-panel__blurb { font-size: 16px; }
.opt { border: 0; padding: 0; margin: 0; min-width: 0; }
.opt legend { padding: 0; margin-bottom: 10px; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; }
.opt legend span { color: var(--fg-muted); font-family: var(--sans); font-weight: 400; letter-spacing: 0; text-transform: none; margin-left: 6px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; }
.swatch input, .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch label {
  display: block; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: var(--sw); border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15), 0 0 0 1px var(--line);
  transition: border-color var(--dur-fast), transform var(--dur-fast);
}
.swatch label:hover { transform: scale(1.06); }
.swatch input:checked + label { border-color: var(--bg); box-shadow: 0 0 0 2px var(--accent); }
.swatch input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip label {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; cursor: pointer;
  border: 1.5px solid var(--line-strong); border-radius: 8px; font-size: 14px; font-variant-numeric: tabular-nums;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.chip label:hover { border-color: var(--fg); }
.chip input:checked + label { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 500; }
.chip input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 3px; }
.specs { display: grid; margin: 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--fg-muted); }
.specs dd { margin: 0; color: var(--fg); }

.door-panel__actions { display: grid; gap: 10px; }
.door-panel__actions .btn--ghost { justify-content: center; gap: 10px; }
.door-panel__actions [hidden] { display: none; }

/* ---------- Catalog (all designs) ---------- */
.catalog { margin-top: 28px; }
.catalog__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 20px; }
.catalog__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog__filters button {
  min-height: 44px; padding: 8px 18px; border-radius: 10px; cursor: pointer;
  background: transparent; border: 1.5px solid var(--line-strong); color: var(--fg);
  font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .06em; text-transform: uppercase;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.catalog__filters button:hover { border-color: var(--fg); }
.catalog__filters button[aria-pressed="true"] { background: var(--bone); color: var(--charcoal); border-color: var(--bone); }
.catalog__count { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.catalog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.catalog__grid li[hidden] { display: none; }
.catalog__item {
  width: 100%; height: 100%; display: grid; justify-items: center; gap: 4px; cursor: pointer;
  padding: 18px 12px 14px; border-radius: 14px; text-align: center; color: var(--fg);
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255, 240, 220, .07), transparent 70%), var(--surface);
  border: 1.5px solid var(--line);
  transition: border-color var(--dur-fast), transform var(--dur) var(--ease-out);
}
.catalog__item:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.catalog__item[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.catalog__thumb { display: block; height: 170px; aspect-ratio: 200 / 440; margin-bottom: 10px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)); }
.catalog__thumb svg { width: 100%; height: 100%; }
.catalog__name { font-family: var(--display); font-weight: 600; font-size: 19px; text-transform: uppercase; letter-spacing: .03em; line-height: 1.1; }
.catalog__type { font-size: 13px; color: var(--fg-muted); line-height: 1.35; }
@media (max-width: 720px) {
  .catalog__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .catalog__thumb { height: 150px; }
  .catalog__filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .catalog__filters button { flex: none; }
}

/* ---------- Completed projects ---------- */
.projects { margin-top: clamp(64px, 8vw, 112px); }
.projects__head { display: flex; justify-content: space-between; align-items: end; gap: 16px 40px; flex-wrap: wrap; margin-bottom: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.projects__head h3 { font-size: clamp(36px, 4vw, 56px); }
.projects__head p { max-width: 44ch; }
.projects__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 14px; }
.project { aspect-ratio: 4 / 5; min-width: 0; }
.project--big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.project button {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: 16px; overflow: hidden; background: var(--surface); text-align: left;
}
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.project button:hover img, .project button:focus-visible img { transform: scale(1.05); }
.project__cap {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px;
  padding: 40px 16px 14px; background: linear-gradient(0deg, rgba(12,12,12,.88), rgba(12,12,12,0));
}
.project__cap strong { font-family: var(--display); font-weight: 600; font-size: 20px; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; color: var(--bone); }
.project__cap span { font-size: 14px; color: #D6D1C7; }
.project--big .project__cap strong { font-size: clamp(22px, 2.2vw, 30px); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 72px 88px 32px;
  border: 0; background: #0c0c0c; color: var(--fg);
}
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox[open] { display: grid; place-items: center; animation: rise 360ms var(--ease-out); }
.lightbox__fig { margin: 0; display: grid; gap: 14px; justify-items: center; max-height: 100%; min-height: 0; }
.lightbox__fig img { max-width: min(1200px, 100%); max-height: calc(100dvh - 180px); width: auto; height: auto; object-fit: contain; border-radius: 12px; }
.lightbox figcaption { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; justify-content: center; text-align: center; }
.lightbox figcaption strong { font-family: var(--display); font-weight: 600; font-size: 24px; text-transform: uppercase; }
.lightbox figcaption span { color: var(--fg-muted); }
.lightbox__count { font-variant-numeric: tabular-nums; }
.lightbox__nav { position: fixed; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__close { position: fixed; }

/* ---------- Before & After ---------- */
.compare__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.compare__tab {
  min-height: 44px; padding: 8px 18px; border-radius: 10px; cursor: pointer;
  background: transparent; border: 1.5px solid var(--line-strong);
  font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .06em; text-transform: uppercase;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.compare__tab:hover { border-color: var(--fg); }
.compare__tab[aria-pressed="true"] { background: var(--bone); color: var(--charcoal); border-color: var(--bone); }
.ba {
  --pos: 50%;
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 3 / 2; max-height: 76vh; width: 100%;
  background: var(--surface); border: 1px solid var(--line);
  user-select: none; -webkit-user-select: none;
}
.ba__layer { position: absolute; inset: 0; }
.ba__layer svg { width: 100%; height: 100%; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--bone); pointer-events: none; box-shadow: 0 0 20px rgba(0,0,0,.4); }
.ba__knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--charcoal); box-shadow: 0 8px 24px rgba(0,0,0,.4);
  transition: transform var(--dur-fast);
}
.ba__knob .i { width: 24px; height: 24px; stroke-width: 2.2; }
.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; touch-action: pan-y;
}
.ba__range:focus-visible ~ .ba__handle .ba__knob, .ba:hover .ba__knob { transform: translate(-50%, -50%) scale(1.08); }
.ba__range:focus-visible ~ .ba__handle .ba__knob { outline: 3px solid var(--bone); outline-offset: 3px; }
.ba__tag {
  position: absolute; top: 16px; z-index: 2; pointer-events: none;
  font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 8px; background: rgba(18, 18, 18, .78); color: var(--bone);
}
.ba__tag--before { left: 16px; }
.ba__tag--after { right: 16px; background: var(--accent); color: var(--charcoal); }
.ba__note { position: absolute; right: 16px; bottom: 14px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(239,235,227,.75); background: rgba(18,18,18,.6); padding: 3px 8px; border-radius: 6px; pointer-events: none; }
.compare__caption { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 8px 32px; margin-top: 20px; align-items: baseline; }
.compare__caption div { display: grid; }
.compare__caption span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.compare__caption strong { font-family: var(--display); font-weight: 600; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }

/* ---------- Process ---------- */
.process { background: var(--bg-deep); border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; counter-reset: none; }
.step {
  position: relative; display: grid; gap: 14px; align-content: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px 24px; min-height: 340px;
  transition: border-color var(--dur), transform var(--dur) var(--ease-out);
}
.step:hover { border-color: rgba(224, 74, 42, .6); transform: translateY(-4px); }
.step__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.step__num { font-family: var(--display); font-weight: 700; font-size: 72px; line-height: .8; color: var(--accent); }
.step__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(239, 235, 227, .06); border: 1px solid var(--line); }
.step h3 { font-family: var(--display); font-weight: 600; font-size: 28px; text-transform: uppercase; line-height: 1; color: var(--fg); }
.step p { font-size: 16px; }
.step__time {
  align-self: end; justify-self: start; margin-top: 8px;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
  padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--fg);
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 62px; right: -17px; width: 18px; height: 1.5px; background: var(--accent); z-index: 1;
}
.process__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; padding: 28px 32px; border-radius: var(--radius); background: linear-gradient(90deg, rgba(224,74,42,.16), rgba(224,74,42,.04)); border: 1px solid rgba(224,74,42,.35); }
.process__cta p { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3vw, 40px); text-transform: uppercase; color: var(--fg); line-height: 1; }

/* ---------- FAQ (light) ---------- */
.faq { background: var(--bone); color: var(--charcoal); --fg: var(--charcoal); --fg-muted: #4F4B45; --line: rgba(26,26,26,.14); --focus: var(--charcoal); }
.faq .eyebrow--deep { color: var(--terracotta-deep); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__intro { display: grid; gap: 24px; justify-items: start; position: sticky; top: 120px; }
.faq__intro p { color: var(--fg-muted); max-width: 40ch; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; min-height: 44px;
  font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2vw, 28px); text-transform: uppercase; line-height: 1.1;
  transition: color var(--dur-fast);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--terracotta-deep); }
.faq__icon { position: relative; width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1.5px solid currentColor; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.75px; background: currentColor; transform: translate(-50%, -50%); transition: transform var(--dur) var(--ease-out); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .faq__icon { background: var(--charcoal); color: var(--bone); border-color: var(--charcoal); }
.faq details[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__body { padding: 0 64px 28px 0; }
.faq__body p { color: var(--fg-muted); font-size: 17px; }
.faq details[open] .faq__body { animation: rise 420ms var(--ease-out); }

/* ---------- Contact ---------- */
.contact { background:
  radial-gradient(ellipse 50% 60% at 0% 100%, rgba(224,74,42,.10), transparent 70%), var(--bg); }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__intro { display: grid; gap: 24px; }
.contact__list { display: grid; gap: 4px; margin-top: 8px; }
.contact__list li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.contact__list .i { width: 44px; height: 44px; padding: 11px; border-radius: 10px; background: var(--surface); color: var(--accent); }
.contact__list span { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.contact__list a, .contact__list p { color: var(--fg); font-size: 17px; overflow-wrap: anywhere; }
.contact__list a { text-underline-offset: 4px; }
.contact__list a:hover { color: var(--accent); }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 40px); display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field label { font-size: 15px; font-weight: 500; color: var(--fg); }
.req { color: var(--accent); }
.opt-label { color: var(--fg-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  font: inherit; font-size: 16px; color: var(--fg);
  background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: 10px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23EFEBE3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(239,235,227,.45); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224,74,42,.3); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__help { font-size: 14px; color: var(--fg-muted); }
.field__err { font-size: 14px; color: var(--error); font-weight: 500; }
.field__err:empty { display: none; }
.form__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__note { font-size: 14px; }
.form__status { font-size: 16px; }
.form__status:empty { display: none; }
.form__status.is-ok { color: var(--fg); padding: 14px 16px; border-radius: 10px; background: rgba(224,74,42,.14); border: 1px solid rgba(224,74,42,.4); }
.form__status.is-err { color: var(--error); }
.form__summary { padding: 14px 16px; border-radius: 10px; border: 1.5px solid var(--error); background: rgba(255,138,107,.08); }
.form__summary p { color: var(--fg); font-weight: 500; margin-bottom: 6px; }
.form__summary ul { padding-left: 18px; }
.form__summary a { color: var(--error); }

/* ---------- Clients ---------- */
/* Light band so every client logo shows in its true colors */
.clients { background: var(--bone); color: var(--charcoal); padding-block: clamp(56px, 7vw, 96px); }
.clients__title {
  text-align: center; margin-bottom: clamp(32px, 4vw, 52px);
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #4F4B45;
}
.clients__list { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 40px 48px; }
.clients__list li { display: grid; place-items: center; flex: 0 1 auto; }
.clients__list img { height: var(--h, 40px); width: auto; max-width: 100%; transition: transform var(--dur) var(--ease-out); }
.clients__list li:hover img { transform: scale(1.04); }
@media (max-width: 960px) { .clients__list { justify-content: center; gap: 36px 56px; } }
@media (max-width: 720px) {
  .clients__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .clients__list img { height: calc(var(--h, 40px) * .82); }
  .clients__list li:last-child { grid-column: 1 / -1; }
}

/* ---------- Footer ---------- */
.footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding-block: 72px 32px; padding-bottom: max(32px, env(safe-area-inset-bottom)); }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer__logo { display: block; }
.footer__logo .logo { --logo-h: clamp(62px, 8vw, 108px); }
.footer__tag { font-size: clamp(32px, 4vw, 56px); color: var(--fg); text-align: right; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-block: 48px; }
.footer__cols h2 { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 16px; }
.footer__cols li { color: var(--fg-muted); padding: 4px 0; overflow-wrap: anywhere; }
.footer__cols a { text-decoration: none; display: inline-block; max-width: 100%; overflow-wrap: break-word; min-height: 32px; line-height: 32px; transition: color var(--dur-fast); }
.footer__cols a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--fg-muted); }
.footer__bottom p { font-size: 14px; }
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { color: var(--accent); }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .showcase { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
}
@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .portal { justify-self: stretch; width: 100%; }
  .portal__frame { aspect-ratio: 4 / 4.6; }
  .hero__foot { flex-direction: column; align-items: stretch; }
  .hero__scroll { display: none; }
  .about__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { min-height: 0; aspect-ratio: 6 / 6.4; }
  .faq__intro { position: static; }
  .section-head { grid-template-columns: 1fr; }
  .menu__inner { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 720px) {
  .hide-sm { display: none !important; }
  .site-header__bar { padding-left: 14px; gap: 8px; min-height: 52px; }
  .brand .logo { --logo-h: 30px; }
  .site-header__actions .btn { min-height: 52px; padding-right: 14px; font-size: 15px; }
  .site-header__actions .btn__icon { width: 40px; height: 40px; }
  .site-header__actions .btn span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .site-header__actions .btn { padding-right: 5px; }
  .hero { padding-top: 104px; }
  .hero__title { font-size: clamp(44px, 14.4vw, 80px); }
  .hero__kicker { font-size: 12px; letter-spacing: .1em; gap: 8px 10px; }
  .hero__dot--wide, .hero__k-wide { display: none; }
  .hero__facts { grid-template-columns: 1fr; gap: 16px; }
  .hero__ctas .btn { width: 100%; }
  .hero__ctas { gap: 8px 24px; }
  .portal__frame { aspect-ratio: 4 / 5; }
  .stage { min-height: 540px; --door-w: 120px; }
  .stage__ghost { display: none; }
  .stage__name { font-size: clamp(44px, 15vw, 64px); }
  .stage__controls { left: 16px; right: 16px; bottom: 16px; }
  .form__row { grid-template-columns: 1fr; }
  .form__foot .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .ba { aspect-ratio: 4 / 5; }
  .projects__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .project--big { grid-row: span 1; aspect-ratio: 4 / 3; }
  .project__cap { padding: 32px 12px 10px; }
  .project__cap strong { font-size: 17px; }
  .project__cap span { font-size: 13px; }
  .lightbox { padding: 72px 16px 96px; }
  .lightbox__nav { top: auto; bottom: 24px; transform: none; }
  .lightbox__nav--prev { left: calc(50% - 60px); }
  .lightbox__nav--next { right: calc(50% - 60px); }
  .lightbox__fig img { max-height: calc(100dvh - 260px); }
  .compare__caption { grid-template-columns: 1fr 1fr; }
  .faq__body { padding-right: 0; }
  .footer__cols { grid-template-columns: 1fr; gap: 24px; padding-block: 32px; }
  .footer__tag { text-align: left; }
  .process__cta { padding: 24px 20px; }
  .process__cta .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .ticker__track { animation: none; }
  .js [data-reveal] { transform: none; }
  .js .hero__title .line > span { transform: none; }
  .js .portal__leaf { display: none; }
  .portal__img { transform: none; }
}
