/* ============================================================
   PCD — Homepage system  ·  "From line to material to space"
   Loaded only by index.html. Shared nav/footer/buttons/marquee/
   cursor/reveals/theme live in styles.css and are untouched.
   ============================================================ */

:root {
  /* Material accents (additive — base --bg/--ink/--gold come from styles.css) */
  --walnut: #4a3322;
  --walnut-deep: #2e2014;
  --stone: #b8a98e;
  --brass: #d9b888;
  --brass-deep: #9a7748;

  /* Blueprint hairlines — cool off-white, echoing the hero wireframe */
  --bp: rgba(228, 235, 244, 0.55);
  --bp-soft: rgba(228, 235, 244, 0.28);
  --bp-faint: rgba(228, 235, 244, 0.12);

  /* Premium machinery easings */
  --ease-draw: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-mech: cubic-bezier(0.83, 0, 0.17, 1);
}

html[data-theme="light"] {
  --bp: rgba(40, 32, 22, 0.5);
  --bp-soft: rgba(40, 32, 22, 0.26);
  --bp-faint: rgba(40, 32, 22, 0.1);
}

/* A consistent measurement-tick / mono micro-label used across sections */
.tick-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
html[dir="rtl"] .tick-label {
  font-family: var(--ar-sans);
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 12px;
}

/* Generic SVG stroke-draw. Each drawable path carries pathLength="1",
   so one rule animates every line regardless of true length. */
.draw [data-line] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.5s var(--ease-draw);
}
.draw.in [data-line] { stroke-dashoffset: 0; }
.draw [data-fade] { opacity: 0; transition: opacity 0.8s var(--ease-out); }
.draw.in [data-fade] { opacity: 1; }

/* =====================================================
   PRELOADER — a plan being drawn, then lifted away
   ===================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: #100c08;
  display: none; /* never blocks content without JS */
  place-items: center;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}
/* Shown only when JS is present; failsafe lift in case home.js never runs */
html.js .preloader { display: grid; animation: preFailsafe 0.8s var(--ease-out) 4.5s forwards; }
@keyframes preFailsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-mark {
  width: min(280px, 60vw);
  aspect-ratio: 1 / 1;
  position: relative;
}
.preloader-mark svg { width: 100%; height: 100%; overflow: visible; }
.preloader-mark [data-line] {
  fill: none;
  stroke: var(--bp);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.preloader.draw [data-line] {
  animation: pl-draw 1.5s var(--ease-draw) forwards;
}
.preloader.draw [data-line].l2 { animation-delay: 0.25s; }
.preloader.draw [data-line].l3 { animation-delay: 0.5s; }
.preloader.draw [data-line].frame { animation-delay: 0.7s; animation-duration: 1.1s; }
@keyframes pl-draw { to { stroke-dashoffset: 0; } }
.preloader-logo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.9s var(--ease-out) 1.4s;
}
.preloader.draw .preloader-logo { opacity: 1; }
.preloader-logo img { width: 46%; height: auto; filter: drop-shadow(0 4px 30px rgba(0,0,0,0.5)); }
.preloader-readout {
  position: absolute;
  bottom: -42px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.6s ease 1.6s;
}
.preloader.draw .preloader-readout { opacity: 0.85; }
html[dir="rtl"] .preloader-readout { font-family: var(--ar-sans); letter-spacing: 0.05em; }

/* =====================================================
   HERO — layered blueprint → built space
   ===================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  contain: paint;
  clip-path: inset(0);
  background: #100c08;
  color: var(--ink);
  display: flex;
  align-items: stretch;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('uploads/hero-poster.webp?v=ambient-hero-20260708');
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  /* Visible by default — never a blank hero (no-JS, reduced-motion, or slow JS).
     Motion is layered on only as an enhancement below. */
}
/* Slow ambient drift once JS confirms it's safe */
html.js .hero-bg { animation: heroKen 40s ease-in-out infinite alternate; }

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.04);
  pointer-events: none;
}
.hero-video::-webkit-media-controls {
  display: none !important;
}

/* Hero frame-sequence canvas — sits over the poster image, under the scrim.
   Scroll scrubs through pre-rendered frames (drawn here), so there is no video
   decoder seeking and the scrub stays smooth. The photo carries first paint and
   the no-JS / reduced-motion case; the canvas fades in once frames are ready. */
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s var(--ease-out);
  pointer-events: none;
  will-change: opacity, transform;
}
.hero-canvas.ready { opacity: 1; }
.hero[data-static-hero="true"] .hero-canvas {
  display: none !important;
  opacity: 0 !important;
}

/* Once the frame canvas is drawing, the poster's Ken-Burns drift is hidden —
   stop it so it isn't compositing a full-screen layer for nothing. */
.hero.canvas-on .hero-bg { animation: none !important; }

@keyframes heroKen {
  0% { transform: scale(1.04) translate(0, 0); }
  100% { transform: scale(1.11) translate(-1.2%, -1%); }
}
/* warm legibility scrim over image */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* strong bottom (headline) + reading-side darkening; image breathes up top */
  background:
    linear-gradient(0deg, rgba(16,12,8,0.93) 0%, rgba(16,12,8,0.5) 28%, rgba(16,12,8,0.08) 56%, transparent 80%),
    linear-gradient(to left, transparent 32%, rgba(16,12,8,0.58) 100%);
}
html[dir="ltr"] .hero-scrim {
  background:
    linear-gradient(0deg, rgba(16,12,8,0.93) 0%, rgba(16,12,8,0.5) 28%, rgba(16,12,8,0.08) 56%, transparent 80%),
    linear-gradient(to right, transparent 32%, rgba(16,12,8,0.58) 100%);
}

/* Foreground blueprint overlay (full-bleed SVG) */
.hero-blueprint {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.hero-blueprint svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-blueprint [data-line] {
  fill: none;
  stroke: var(--bp-soft);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.4s var(--ease-draw);
}
.hero.revealed .hero-blueprint [data-line] { stroke-dashoffset: 0; }
.hero-blueprint [data-line].accent { stroke: var(--gold); opacity: 0.7; }
.hero-blueprint .bp-dot { fill: var(--gold); opacity: 0; transition: opacity 0.6s ease 1.8s; }
.hero.revealed .hero-blueprint .bp-dot { opacity: 0.9; }
.hero-blueprint .bp-dim {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  fill: var(--bp);
  opacity: 0;
  transition: opacity 0.8s ease 1.6s;
}
.hero.revealed .hero-blueprint .bp-dim { opacity: 0.75; }

.hero-inner {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: clamp(120px, 17vh, 180px) var(--gutter) clamp(96px, 13vh, 140px);
  display: flex;
  align-items: flex-end;
}
.hero-content { max-width: 880px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
html[dir="rtl"] .hero-eyebrow { font-family: var(--ar-sans); letter-spacing: 0.02em; text-transform: none; font-size: 14px; }
.hero-eyebrow .rule { width: 40px; height: 1px; background: var(--gold); opacity: 0.6; }

/* Headline assembled from parts: each line is a clip-masked block */
.hero-headline {
  font-family: var(--ar-sans);
  font-size: clamp(36px, 6.6vw, 96px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 30px;
  text-wrap: balance;
}
html[dir="ltr"] .hero-headline { font-family: var(--sans); line-height: 1.04; letter-spacing: -0.03em; font-weight: 600; }
.hero-headline em { font-style: normal; color: var(--gold); font-weight: inherit; }
.hl-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hl-line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}
.hero.revealed .hl-line > span { transform: translateY(0); }
.hero.revealed .hl-line:nth-child(2) > span { transition-delay: 0.12s; }
.hero.revealed .hl-line:nth-child(3) > span { transition-delay: 0.24s; }

.hero-sub {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.85;
  color: var(--ink);
  opacity: 0;
  max-width: 56ch;
  margin-bottom: 42px;
  transform: translateY(20px);
  transition: opacity 1s var(--ease-out) 0.5s, transform 1s var(--ease-out) 0.5s;
}
.hero.revealed .hero-sub { opacity: 0.86; transform: none; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease-out) 0.66s, transform 1s var(--ease-out) 0.66s; }
.hero.revealed .hero-actions { opacity: 1; transform: none; }

/* Stage indicator — production line ticker */
.hero-stages {
  position: absolute;
  z-index: 4;
  bottom: clamp(28px, 5vh, 44px);
  inset-inline-end: var(--gutter);
  display: flex;
  align-items: center;
  gap: 18px;
  opacity: 0;
  transition: opacity 1s var(--ease-out) 0.9s;
}
.hero.revealed .hero-stages { opacity: 1; }
.hero-stage {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.5s var(--ease-out);
}
html[dir="rtl"] .hero-stage { font-family: var(--ar-sans); letter-spacing: 0; text-transform: none; font-size: 13px; }
.hero-stage .pip {
  width: 7px; height: 7px; border-radius: 50%;
  border: 1px solid var(--ink-faint);
  transition: background 0.5s var(--ease-out), border-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.hero-stage.active { color: var(--gold); }
.hero-stage.active .pip { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217,184,136,0.16); }
.hero-stage-sep { width: 26px; height: 1px; background: var(--line-strong); }
@media (max-width: 720px) { .hero-stages { display: none; } }

/* Scroll cue — measuring ruler */
.hero-scroll {
  position: absolute;
  z-index: 4;
  bottom: clamp(28px, 5vh, 44px);
  inset-inline-start: var(--gutter);
  display: flex;
  align-items: flex-end;
  gap: 14px;
  opacity: 0;
  transition: opacity 1s var(--ease-out) 0.9s;
}
.hero.revealed .hero-scroll { opacity: 0.8; }
.hero-ruler {
  width: 1px; height: 64px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  position: relative;
}
.hero-ruler::after {
  content: '';
  position: absolute; inset-inline-start: 0; top: 0;
  width: 1px; height: 18px;
  background: var(--ink);
  animation: rulerRun 2.6s var(--ease-mech) infinite;
}
@keyframes rulerRun { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(46px); opacity: 0; } }
.hero-scroll .ticks { display: flex; flex-direction: column; gap: 5px; padding-bottom: 4px; }
.hero-scroll .ticks i { display: block; width: 8px; height: 1px; background: var(--ink-soft); }
.hero-scroll .ticks i:nth-child(2n) { width: 5px; }
.hero-scroll span {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap; align-self: center;
}
html[dir="rtl"] .hero-scroll span { font-family: var(--ar-sans); letter-spacing: 0; text-transform: none; font-size: 12px; }

/* The hero photo is dark in BOTH themes, so its overlay controls must stay
   light in light theme too (styles.css already handles headline/sub). */
html[data-theme="light"] .hero-stage { color: rgba(243, 234, 217, 0.78); }
html[data-theme="light"] .hero-stage.active { color: var(--gold-light); }
html[data-theme="light"] .hero-stage .pip { border-color: rgba(243, 234, 217, 0.5); }
html[data-theme="light"] .hero-stage.active .pip { background: var(--gold-light); border-color: var(--gold-light); }
html[data-theme="light"] .hero-stage-sep { background: rgba(243, 234, 217, 0.3); }
html[data-theme="light"] .hero-scroll span { color: #f3ead9; }
html[data-theme="light"] .hero-scroll .ticks i { background: rgba(243, 234, 217, 0.7); }
html[data-theme="light"] .hero-scroll .hero-ruler::after { background: #f3ead9; }
html[data-theme="light"] .hero-eyebrow { color: var(--gold-light); }
html[data-theme="light"] .hero-eyebrow .rule { background: var(--gold-light); }
/* Keep the blueprint hairlines cool-white over the dark hero image */
html[data-theme="light"] .hero-blueprint [data-line] { stroke: rgba(228, 235, 244, 0.26); }
html[data-theme="light"] .hero-blueprint [data-line].accent { stroke: var(--gold-light); }
html[data-theme="light"] .hero-blueprint .bp-dim { fill: rgba(228, 235, 244, 0.55); }

/* =====================================================
   SCROLL RULER — vertical measurement progress (fixed)
   ===================================================== */
.scroll-ruler {
  position: fixed;
  z-index: 80;
  top: 0; bottom: 0;
  inset-inline-end: 0;
  width: 30px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.scroll-ruler.show { opacity: 1; }
.scroll-ruler .rail {
  position: relative;
  width: 1px; height: 60vh;
  background: var(--line);
}
.scroll-ruler .fill {
  position: absolute; top: 0; left: 0; width: 1px;
  height: 0%;
  background: var(--gold);
}
.scroll-ruler .bead {
  position: absolute; inset-inline-start: -3px;
  top: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(217,184,136,0.14);
}
.scroll-ruler .pct {
  position: absolute; inset-inline-end: 14px;
  top: 0; transform: translateY(-50%);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  color: var(--gold); white-space: nowrap;
}
@media (max-width: 1100px) { .scroll-ruler { display: none; } }

/* =====================================================
   POSITIONING INTRO
   ===================================================== */
.intro {
  padding: clamp(80px, 12vh, 140px) var(--gutter);
  display: grid;
  /* Text carries the section; the framed image is deliberately smaller now. */
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.7fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
  border-top: 1px solid var(--line);
}
.intro-about {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
}
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; gap: 40px; } .intro-frame { max-width: 380px; } }
.intro-body { display: grid; gap: 22px; }
.intro-kicker { color: var(--gold); font-size: clamp(14px,1.1vw,16px); line-height: 1.6; max-width: 50ch; }
.intro-body h2 {
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  max-width: 20ch;
  font-weight: 700;
}
html[dir="ltr"] .intro-body h2 { line-height: 1.08; letter-spacing: -0.03em; }
.intro-body h2 em { font-style: normal; color: var(--gold); }
.intro-body p { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.9; color: var(--ink-soft); max-width: 60ch; text-wrap: pretty; }
.intro-body p strong { color: var(--ink); font-weight: 600; }

/* Framed media w/ blueprint corner registration marks */
.intro-frame {
  position: relative;
  border: 1px solid var(--line);
  padding: 14px;
  background: var(--bg-1);
}
.intro-frame::before, .intro-frame::after {
  content: ''; position: absolute; width: 16px; height: 16px; border: 1px solid var(--gold); opacity: 0.6;
}
.intro-frame::before { top: -1px; inset-inline-start: -1px; border-inline-end: 0; border-bottom: 0; }
.intro-frame::after { bottom: -1px; inset-inline-end: -1px; border-inline-start: 0; border-top: 0; }
.intro-frame .shot {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block;
  filter: saturate(1.02);
}
.intro-about .intro-frame {
  justify-self: center;
  width: min(100%, 520px);
  animation: softFloat 8s ease-in-out infinite alternate;
}
.intro-about .intro-frame .shot {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
  filter: none;
}
@media (max-width: 860px) { .intro-about .intro-frame { width: min(100%, 460px); max-width: 460px; } }
.intro-frame figcaption {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-soft);
}
html[dir="rtl"] .intro-frame figcaption { font-family: var(--ar-sans); letter-spacing: 0; font-size: 12px; }
.intro-frame figcaption .gold { color: var(--gold); }

/* =====================================================
   WORKSHOP CONSOLE — interactive service portal
   ===================================================== */
.console {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  padding: clamp(64px, 10vh, 120px) 0;
  overflow: hidden;
}
.console-head {
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(280px,0.7fr);
  gap: clamp(22px,3.6vw,58px);
  align-items: end;
  margin-bottom: clamp(36px, 6vh, 60px);
}
@media (max-width: 860px) { .console-head { grid-template-columns: 1fr; gap: 22px; } }
.console-head h2 { font-size: clamp(30px,4.6vw,62px); line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; margin-top: 18px; max-width: 16ch; }
html[dir="ltr"] .console-head h2 { line-height: 1.05; letter-spacing: -0.025em; }
.console-head p { color: var(--ink-soft); font-size: clamp(15px,1.2vw,17px); line-height: 1.8; max-width: 42ch; }

.service-photo-grid {
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.3vw, 18px);
  align-items: start;
}
.service-photo-grid img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-2);
  filter: none;
  transform: none;
}
@media (max-width: 860px) { .service-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .service-photo-grid { grid-template-columns: 1fr; } }

.console-grid {
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 380px);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
@media (max-width: 980px) { .console-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Left: stack of service "stations" */
.console-list { border-top: 1px solid var(--line); }
.station {
  width: 100%;
  text-align: start;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  color: inherit;
  cursor: pointer;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: clamp(16px, 2.2vh, 22px) 4px;
  position: relative;
  font: inherit;
  transition: padding-inline-start 0.5s var(--ease-out);
}
.station .st-num { font-family: var(--mono); font-size: 12px; color: var(--gold); letter-spacing: 0.08em; }
html[dir="rtl"] .station .st-num { font-family: var(--ar-sans); }
.station .st-name { font-size: clamp(17px, 1.9vw, 23px); font-weight: 600; line-height: 1.3; transition: color 0.4s var(--ease-out); }
.station .st-go {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  color: var(--gold);
  opacity: 0; transform: translateX(-6px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), background 0.4s, color 0.4s;
}
html[dir="ltr"] .station .st-go { transform: translateX(6px) scaleX(-1); }
.station .st-go svg { width: 14px; height: 14px; }
/* drawer slide-out indicator */
.station::before {
  content: ''; position: absolute; inset-inline-start: -4px; top: 14%; bottom: 14%;
  width: 2px; background: var(--gold);
  transform: scaleY(0); transform-origin: center;
  transition: transform 0.45s var(--ease-out);
}
.station:hover, .station:focus-visible, .station.active { padding-inline-start: 18px; outline: none; }
.station.active::before, .station:hover::before { transform: scaleY(1); }
.station.active .st-name, .station:hover .st-name { color: var(--gold); }
.station.active .st-go, .station:hover .st-go { opacity: 1; transform: translateX(0); }
html[dir="ltr"] .station.active .st-go, html[dir="ltr"] .station:hover .st-go { transform: translateX(0) scaleX(-1); }

/* Right: preview pane that swaps like a CNC bed loading material */
.console-preview {
  position: sticky;
  top: 100px;
  width: 100%;
  justify-self: stretch;
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  cursor: default;
}
@media (max-width: 980px) { .console-preview { position: relative; top: 0; max-width: 420px; } }
.console-stage {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--walnut-deep);
}
.console-stage .pv {
  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 0.7s var(--ease-out), transform 1.2s var(--ease-out), clip-path 0.8s var(--ease-mech);
}
html[dir="rtl"] .console-stage .pv { clip-path: inset(0 100% 0 0); }
.console-stage .pv.show { opacity: 1; transform: scale(1); clip-path: inset(0 0 0 0); }
/* RTL needs an equally-specific show rule, or the hidden clip above wins */
html[dir="rtl"] .console-stage .pv.show { clip-path: inset(0 0 0 0); }
.console-stage .pv-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background-image:
    linear-gradient(var(--bp-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-faint) 1px, transparent 1px);
  background-size: 40px 40px;
  mix-blend-mode: screen;
  opacity: 0.24;
  animation: gridDrift 22s linear infinite;
}
.console-stage .pv-scan {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(217,184,136,0.5), transparent);
  height: 30%;
  transform: translateY(-120%);
}
.console-stage.scanning .pv-scan { animation: scan 0.8s var(--ease-mech); }
@keyframes scan { from { transform: translateY(-120%); } to { transform: translateY(420%); } }
@keyframes gridDrift { to { background-position: 40px 40px, 40px 40px; } }
@keyframes softFloat { from { transform: translateY(0); } to { transform: translateY(-10px); } }

/* Floating tag over the preview image — swaps in with the scan */
.console-stage .pv-overlay {
  position: absolute; z-index: 3;
  inset-inline-start: 18px; bottom: 18px;
  display: inline-flex; flex-direction: column; gap: 6px;
  padding: 10px 14px;
  background: rgba(20, 16, 11, 0.55);
  border: 1px solid rgba(212, 175, 138, 0.28);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  transform: translateY(6px); opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.6s var(--ease-out);
}
.console-stage .pv.show ~ .pv-overlay { transform: none; opacity: 1; }
.console-stage .pv-tag {
  font-family: var(--ar-sans); font-size: 13px; font-weight: 600; color: #f3ead9; line-height: 1.2;
}
html[dir="ltr"] .console-stage .pv-tag { font-family: var(--sans); letter-spacing: 0.02em; font-weight: 500; font-size: 12px; text-transform: uppercase; }
.console-stage .pv-dim {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--gold);
}

.console-readout {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}
.console-readout .ro-desc {
  font-size: 14px; line-height: 1.7; color: var(--ink-soft);
  animation: readoutIn 0.55s var(--ease-out);
}
.console-readout .ro-dim {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--gold); white-space: nowrap; text-align: end;
}
html[dir="rtl"] .console-readout .ro-dim { font-family: var(--ar-sans); letter-spacing: 0; }
@keyframes readoutIn {
  0%   { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: none; }
}

/* =====================================================
   UNDER ONE ROOF — production path
   ===================================================== */
.roof {
  padding: clamp(72px, 11vh, 130px) var(--gutter);
  border-top: 1px solid var(--line);
}
.roof-head { max-width: 760px; margin-bottom: clamp(40px, 6vh, 64px); }
.roof-head h2 { font-size: clamp(28px,4vw,52px); line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; margin-top: 18px; max-width: 22ch; }
html[dir="ltr"] .roof-head h2 { line-height: 1.1; }
.roof-head p { margin-top: 18px; color: var(--ink-soft); font-size: clamp(15px,1.2vw,18px); line-height: 1.85; max-width: 56ch; }

.roof-path { position: relative; }
/* connecting drawn line behind the stations */
.roof-line { position: absolute; inset: 0; z-index: 0; pointer-events: none; width: 100%; height: 100%; }
.roof-line [data-line] {
  fill: none; stroke: var(--gold); stroke-width: 1.5; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.55;
  transition: stroke-dashoffset 2.4s var(--ease-draw);
}
.roof-path.in .roof-line [data-line] { stroke-dashoffset: 0; }

.roof-stations {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(12px, 1.6vw, 22px);
}
@media (max-width: 900px) { .roof-stations { grid-template-columns: 1fr 1fr; gap: 18px; } }
@media (max-width: 560px) { .roof-stations { grid-template-columns: 1fr; } }
.roof-station { display: grid; gap: 14px; }
.roof-node {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--gold);
}
html[dir="rtl"] .roof-node { font-family: var(--ar-sans); letter-spacing: 0; font-size: 12px; }
.roof-node .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--bg); flex: none; }
.roof-figure { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); aspect-ratio: 3 / 4; }
.roof-figure img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease-out); }
.roof-station:hover .roof-figure img { transform: scale(1.05); }
.roof-figure.tall { aspect-ratio: 3 / 4; }
.roof-step-name { font-size: clamp(15px,1.4vw,18px); font-weight: 600; }
.roof-step-desc { font-size: 13px; line-height: 1.65; color: var(--ink-soft); }
/* the 5th "handover" station has no image — a sealed checklist card */
.roof-seal {
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, var(--walnut) 0%, var(--walnut-deep) 100%);
  aspect-ratio: 3 / 4;
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
}
.roof-seal .check { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; margin: 0 auto; color: var(--gold); }
.roof-seal .check svg { width: 18px; height: 18px; }
.roof-seal small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--gold); }
html[dir="rtl"] .roof-seal small { font-family: var(--ar-sans); letter-spacing: 0.02em; }

/* =====================================================
   PROJECT WALL — real work, asymmetric precise grid
   ===================================================== */
.wall { padding: clamp(64px, 10vh, 120px) 0; border-top: 1px solid var(--line); overflow: hidden; }
.wall-head {
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 28px;
  margin-bottom: 18px;
}
@media (max-width: 720px) { .wall-head { grid-template-columns: 1fr; } }
.wall-head h2 { font-size: clamp(30px,4.6vw,62px); line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; margin-top: 16px; }
html[dir="ltr"] .wall-head h2 { line-height: 1.05; letter-spacing: -0.025em; }
.wall-copy { padding: 0 var(--gutter); max-width: 60ch; color: var(--ink-soft); font-size: clamp(15px,1.2vw,17px); line-height: 1.8; margin-bottom: clamp(28px,4vh,44px); }

/* Column masonry — different sizes, precisely aligned, no gaps, no-JS safe */
.wall-grid {
  padding: 0 var(--gutter);
  column-count: 3;
  column-gap: clamp(10px, 1.2vw, 16px);
}
@media (max-width: 900px) { .wall-grid { column-count: 2; } }
@media (max-width: 560px) { .wall-grid { column-count: 1; } }
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--line);
  margin-bottom: clamp(10px, 1.2vw, 16px);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
.tile img {
  width: 100%; height: auto; display: block;
  transform: scale(1.01);
  transition: transform 1.1s var(--ease-out), filter 0.6s ease;
  filter: saturate(0.96) brightness(0.9);
}
.tile:hover img, .tile:focus-visible img { transform: scale(1.06); filter: saturate(1.04) brightness(1); }
.tile-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(16,12,8,0.86) 0%, rgba(16,12,8,0.1) 46%, transparent 70%);
  opacity: 0.9;
}
.tile-meta {
  position: absolute; z-index: 2; inset-inline: 16px; bottom: 14px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(8px); opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
}
.tile:hover .tile-meta, .tile:focus-visible .tile-meta { transform: none; opacity: 1; }
.tile-cat { font-size: clamp(15px,1.5vw,19px); font-weight: 600; line-height: 1.2; }
.tile-svc { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
html[dir="rtl"] .tile-svc { font-family: var(--ar-sans); letter-spacing: 0.02em; text-transform: none; font-size: 12px; }
/* corner index that's always faintly visible */
.tile-idx {
  position: absolute; z-index: 2; top: 12px; inset-inline-end: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--ink);
  opacity: 0.55; mix-blend-mode: difference;
}
.wall-foot { padding: clamp(28px,4vh,44px) var(--gutter) 0; display: flex; justify-content: center; }

/* =====================================================
   HOW WE WORK — cinematic timeline with drawn gold line
   ===================================================== */
.process { background: var(--bg-1); border-top: 1px solid var(--line); padding: clamp(72px,11vh,130px) var(--gutter); }
.process-head { max-width: 720px; margin-bottom: clamp(44px,7vh,72px); }
.process-head h2 { font-size: clamp(26px,3.4vw,42px); line-height: 1.45; letter-spacing: -0.01em; font-weight: 600; margin-top: 18px; max-width: 40ch; text-wrap: balance; }
html[dir="ltr"] .process-head h2 { line-height: 1.25; }

.timeline { position: relative; display: grid; gap: 0; }
/* vertical spine that draws on scroll */
.timeline-spine { position: absolute; inset-inline-start: 19px; top: 6px; bottom: 6px; width: 2px; z-index: 0; }
html[dir="rtl"] .timeline-spine { inset-inline-start: auto; inset-inline-end: 19px; }
.timeline-spine .rail { position: absolute; inset: 0; background: var(--line); }
.timeline-spine .grow { position: absolute; top: 0; left: 0; width: 100%; height: 0%; background: linear-gradient(var(--gold), var(--gold-deep)); }
@media (max-width: 640px) { .timeline-spine, html[dir="rtl"] .timeline-spine { inset-inline-start: 15px; inset-inline-end: auto; } }

.step {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 40px 1fr minmax(0, 320px);
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  padding: clamp(26px, 4vh, 42px) 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
@media (max-width: 760px) { .step { grid-template-columns: 32px 1fr; } .step-figure { display: none; } }
.step-marker {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-1); border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; color: var(--gold);
  transition: background 0.5s var(--ease-out), border-color 0.5s var(--ease-out), color 0.5s, box-shadow 0.5s;
}
@media (max-width: 640px) { .step-marker { width: 32px; height: 32px; font-size: 11px; } }
.step.in .step-marker { background: var(--gold); color: #1a1410; border-color: var(--gold); box-shadow: 0 0 0 5px rgba(217,184,136,0.12); }
.step-main { display: grid; gap: 10px; }
.step-name { font-size: clamp(20px, 2.4vw, 32px); font-weight: 700; line-height: 1.25; }
.step-name em { font-style: normal; color: var(--gold); }
.step-desc { font-size: 14px; line-height: 1.75; color: var(--ink-soft); max-width: 52ch; }
.step-detail {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--gold);
}
html[dir="rtl"] .step-detail { font-family: var(--ar-sans); letter-spacing: 0; font-size: 12px; }
.step-figure {
  border: 1px solid var(--line); overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-2);
  opacity: 0; transform: translateY(20px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.step.in .step-figure { opacity: 1; transform: none; }
.step-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step-figure.draw { display: grid; place-items: center; background: var(--walnut-deep); }
.step-figure.draw svg { width: 72%; height: auto; }
.step-figure.draw [data-line] { fill: none; stroke: var(--bp); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-draw); }
.step.in .step-figure.draw [data-line] { stroke-dashoffset: 0; }

/* =====================================================
   CTA — opening a project file
   ===================================================== */
.cta-file {
  position: relative;
  border-top: 1px solid var(--line);
  padding: clamp(80px, 13vh, 150px) var(--gutter);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(217,184,136,0.1), transparent 60%),
    var(--bg);
}
.cta-file .folder-line { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.5; }
.cta-file .folder-line [data-line] { fill: none; stroke: var(--bp-soft); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease-draw); }
.cta-file.in .folder-line [data-line] { stroke-dashoffset: 0; }
.cta-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
.cta-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 26px;
}
html[dir="rtl"] .cta-tag { font-family: var(--ar-sans); letter-spacing: 0.02em; text-transform: none; font-size: 13px; }
.cta-file h2 { font-size: clamp(32px, 5vw, 68px); line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; max-width: 20ch; margin: 0 auto 22px; }
html[dir="ltr"] .cta-file h2 { line-height: 1.08; letter-spacing: -0.025em; }
.cta-file h2 em { font-style: normal; color: var(--gold); }
.cta-file p { color: var(--ink-soft); font-size: clamp(15px,1.3vw,18px); line-height: 1.8; max-width: 52ch; margin: 0 auto 40px; }
.cta-actions { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* =====================================================
   JOURNEY — five large panels, alternating image side
   ===================================================== */
.journey {
  border-top: 1px solid var(--line);
  padding: clamp(96px, 16vh, 200px) var(--gutter);
  display: grid;
  gap: clamp(60px, 10vh, 130px);
}
.journey-head { max-width: 900px; display: grid; gap: 18px; }
.journey-head h2 {
  font-size: clamp(30px, 4.6vw, 62px); line-height: 1.22; letter-spacing: -0.01em;
  font-weight: 700; max-width: 20ch;
}
html[dir="ltr"] .journey-head h2 { line-height: 1.06; letter-spacing: -0.03em; }

.journey-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
/* alternate the image to the other side on even panels */
.journey-panel:nth-child(even) .journey-figure { order: 2; }
@media (max-width: 820px) {
  .journey-panel { grid-template-columns: 1fr; gap: 22px; }
  .journey-panel:nth-child(even) .journey-figure { order: 0; }
}
.journey-figure {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-2);
  aspect-ratio: 4 / 3;
}
.journey-figure img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.02);
  transition: transform 1.4s var(--ease-out);
}
.journey-panel:hover .journey-figure img { transform: scale(1.06); }
.journey-copy { display: grid; gap: 18px; align-content: center; }
.journey-num {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; color: var(--gold);
}
html[dir="rtl"] .journey-num { font-family: var(--ar-sans); letter-spacing: 0.02em; }
.journey-copy h3 { font-size: clamp(24px, 3vw, 40px); line-height: 1.25; font-weight: 700; }
html[dir="ltr"] .journey-copy h3 { line-height: 1.1; letter-spacing: -0.02em; }
.journey-copy p {
  font-size: clamp(16px, 1.3vw, 19px); line-height: 1.9; color: var(--ink-soft);
  max-width: 56ch; text-wrap: pretty;
}

/* =====================================================
   MISSION & VISION — two columns, each with its own image
   ===================================================== */
.mv {
  border-top: 1px solid var(--line);
  padding: clamp(80px, 13vh, 160px) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  background: var(--bg-1);
}
@media (max-width: 820px) { .mv { grid-template-columns: 1fr; gap: 48px; } }
.mv-col { display: grid; gap: 22px; align-content: start; }
.mv-figure {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-2);
  aspect-ratio: 4 / 3;
}
.mv-figure img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.02);
  transition: transform 1.4s var(--ease-out), filter 0.6s var(--ease-out);
  filter: saturate(0.98) brightness(0.94);
}
.mv-col:hover .mv-figure img { transform: scale(1.05); filter: saturate(1.05) brightness(1.02); }
.mv-text { display: grid; gap: 14px; }
.mv-text h3 {
  font-size: clamp(22px, 2.6vw, 34px); line-height: 1.28; font-weight: 700; max-width: 22ch;
}
html[dir="ltr"] .mv-text h3 { line-height: 1.12; letter-spacing: -0.02em; }
.mv-col p {
  font-size: clamp(16px, 1.35vw, 20px); line-height: 1.85; color: var(--ink-soft);
  max-width: 56ch; text-wrap: pretty;
}

/* =====================================================
   IMAGE SLIDER — infinite auto-scrolling line of work,
   with a section head and per-image category captions
   ===================================================== */
.ribbon {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  padding: clamp(60px, 10vh, 110px) 0 clamp(40px, 7vh, 70px);
  overflow: hidden;
}
.ribbon-head {
  padding: 0 var(--gutter);
  margin-bottom: clamp(30px, 5vh, 54px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
}
.ribbon-head h2 {
  font-size: clamp(26px, 3.6vw, 48px);
  line-height: 1.3;
  font-weight: 700;
  max-width: 24ch;
  margin-top: 14px;
  text-wrap: balance;
}
html[dir="ltr"] .ribbon-head h2 { line-height: 1.12; letter-spacing: -0.02em; }
.ribbon-mask {
  width: 100%;
  /* LTR here too: in an RTL page a wider-than-container child block anchors to
     the RIGHT edge and overflows left, pushing the whole track off-screen.
     Anchoring the layout LTR keeps item 0 at x=0 so the -50% loop is visible. */
  direction: ltr;
  -webkit-mask: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.ribbon-mask + .ribbon-mask {
  margin-top: clamp(16px, 2.5vw, 28px);
}
.ribbon-mask-second {
  opacity: 0.88;
}
.ribbon-track {
  /* Force LTR track layout so the -50% loop seam lines up in both page
     directions; captions are swapped per-language by app.js either way. */
  direction: ltr;
  display: flex;
  gap: clamp(14px, 1.8vw, 26px);
  width: max-content;
  animation: ribbonScroll 70s linear infinite;
}
.ribbon-track-alt {
  animation-duration: 84s;
  animation-direction: reverse;
}
/* The strip always keeps moving — no hover pause. */
@keyframes ribbonScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ribbon-item {
  flex: none;
  width: clamp(220px, 22vw, 340px);
  margin: 0;
}
.ribbon-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
  background: var(--bg-2);
  filter: saturate(0.96) brightness(0.92);
  transition: transform 0.5s var(--ease-out), filter 0.5s var(--ease-out);
}
.ribbon-item:hover img { transform: scale(1.02); filter: saturate(1.04) brightness(1.04); }
.ribbon-item figcaption {
  direction: inherit;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
html[dir="rtl"] .ribbon-item figcaption {
  font-family: var(--ar-sans);
  letter-spacing: 0.03em;
  text-transform: none;
  font-size: 13px;
  text-align: right;
}

/* =====================================================
   TESTIMONIALS — hidden until real quotes exist
   ===================================================== */
.testi {
  border-top: 1px solid var(--line);
  padding: clamp(80px, 13vh, 160px) var(--gutter);
}
.testi-head { display: grid; gap: 16px; margin-bottom: clamp(34px, 6vh, 60px); max-width: 24ch; }
.testi-head h2 { font-size: clamp(26px, 3.6vw, 48px); line-height: 1.25; font-weight: 700; }
html[dir="ltr"] .testi-head h2 { line-height: 1.1; letter-spacing: -0.02em; }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2vw, 26px);
}
.testi-card {
  border: 1px solid var(--line);
  background: var(--bg-1);
  padding: clamp(26px, 3vw, 40px);
  display: grid; gap: 20px; align-content: space-between;
}
.testi-card blockquote {
  font-size: clamp(17px, 1.4vw, 21px); line-height: 1.7; color: var(--ink); text-wrap: pretty;
}
.testi-card blockquote::before { content: '“'; color: var(--gold); }
html[dir="rtl"] .testi-card blockquote::before { content: '”'; }
.testi-card figcaption { font-size: 14px; color: var(--gold); line-height: 1.5; }

/* =====================================================
   REDUCED MOTION — disable transforms/draw animations,
   show everything in its final state
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none !important; clip-path: none !important; transform: none !important; }
  .hero-video { display: none !important; }
  .hero-canvas { display: none !important; }
  .preloader { display: none !important; }
  .hero .hl-line > span,
  .hero-sub, .hero-actions, .hero-stages, .hero-scroll { opacity: 1 !important; transform: none !important; }
  .hero-blueprint [data-line], .roof-line [data-line], .timeline-spine .grow,
  .step-figure.draw [data-line], .cta-file .folder-line [data-line] { transition: none !important; stroke-dashoffset: 0 !important; }
  .hero-blueprint .bp-dot, .hero-blueprint .bp-dim { opacity: 0.7 !important; }
  .draw [data-line] { stroke-dashoffset: 0 !important; }
  .draw [data-fade] { opacity: 1 !important; }
  .console-stage .pv.show { transition: none; }
  .hero-ruler::after, .scroll-ruler .fill { animation: none !important; }
  .step-figure { opacity: 1 !important; transform: none !important; }
  .ribbon-track { animation: none !important; }
}

/* =====================================================
   MOBILE — home.js selects the optimized portrait hero
   video. The existing poster remains the fallback for
   reduced-motion, Save-Data, no-JS, and slow connections.
   ===================================================== */
@media (max-width: 720px) {
  .hero-bg { background-image: url('uploads/hero-poster.webp?v=ambient-hero-20260708'); }
  .hero-video { display: block; transform: scale(1.04); }
  .hero-canvas { display: none !important; }
  .ambient-video-layer { display: none !important; }
}
