/* =============================================================
   DUNEX — Design system & layout
   Vanilla CSS. Mobile-first. Reduced-motion respectful.
   ============================================================= */

/* ----------  Tokens  ---------- */
:root {
  /* surfaces — deep neutral black, cinematic (v3 §1) */
  --bg:        #070707;
  --bg-elev:   #0E0E0F;
  --bg-card:   #131314;
  --bg-card-hi:#161617;
  --line:      #242426;
  --line-soft: #1A1A1C;

  /* type — off-white like the white logo, steel greys */
  --text:      #F2F2F0;
  --text-mut:  #9C9C9E;
  --text-dim:  #646467;
  --chrome:    #D8D9DB;

  /* accent — DUNEX red, sampled from the red "N" tile in dunes-logo-beli.png */
  --red:       #F02328;
  --red-hi:    #FF423D;
  --red-deep:  #99120E;
  --red-glow:  rgba(240, 35, 40, 0.35);
  --red-veil:  rgba(240, 35, 40, 0.08);

  /* fonts */
  --ff-display: 'Fraunces', 'Times New Roman', Times, serif;
  --ff-body:    'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --ff-mono:    'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  /* radii */
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;

  /* layout */
  --page-x: clamp(20px, 4vw, 56px);
  --max-w:  1480px;

  /* timing */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);
}

/* ----------  Reset / base  ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: auto;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; margin: 0; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--red); color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

/* ----------  Typography primitives  ---------- */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-mut);
  margin: 0 0 18px 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(240,35,40,.15), 0 0 14px var(--red-glow);
}

/* ----------  Buttons  ---------- */
.btn {
  --btn-h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: var(--btn-h);
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  transition: transform .35s var(--ease-out), background .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
  will-change: transform;
  border: 1px solid transparent;
}
.btn svg {
  width: 18px; height: 18px;
  transition: transform .35s var(--ease-out);
}
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow:
    inset 0 0 0 1px var(--red-hi),
    0 12px 30px -12px var(--red-glow),
    0 1px 0 rgba(255,255,255,.1) inset;
}
.btn--primary:hover {
  background: var(--red-hi);
  box-shadow:
    inset 0 0 0 1px var(--red-hi),
    0 16px 40px -10px var(--red-glow),
    0 1px 0 rgba(255,255,255,.15) inset;
}
.btn--primary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--text);
  background: rgba(255,255,255,.03);
}

.btn--lg { --btn-h: 60px; padding: 0 28px; font-size: 13px; }

/* ----------  Custom cursor  ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 1000;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  body.cursor-ready { cursor: none; }
  body.cursor-ready a,
  body.cursor-ready button,
  body.cursor-ready input,
  body.cursor-ready textarea,
  body.cursor-ready select,
  body.cursor-ready [data-magnetic],
  body.cursor-ready label { cursor: none; }
  .cursor { display: block; }
}
.cursor__dot {
  position: fixed;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  transform: translate3d(-50%, -50%, 0);
  top: 0; left: 0;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor__ring {
  position: fixed;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.55);
  transform: translate3d(-50%, -50%, 0);
  top: 0; left: 0;
  transition: width .25s var(--ease-out), height .25s var(--ease-out), border-color .25s var(--ease-out), background .25s var(--ease-out), opacity .25s var(--ease-out);
  will-change: transform;
}
.cursor.is-hover .cursor__ring {
  width: 72px; height: 72px;
  border-color: var(--red);
  background: rgba(240,35,40,.06);
}
.cursor.is-hover .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring { transform: translate3d(-50%, -50%, 0) scale(.7); }
.cursor__label {
  position: fixed;
  top: 0; left: 0;
  transform: translate3d(-50%, calc(-50% + 1px), 0);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transition: opacity .25s var(--ease-out);
  white-space: nowrap;
}
.cursor.has-label .cursor__label { opacity: 1; }

/* ----------  Preloader  ---------- */
/* No-JS fallback: without the .js root class the overlay never leaves,
   so it must never appear. Same guard gates all load-choreography states. */
html:not(.js) .preloader { display: none; }
.preloader {
  position: fixed; inset: 0;
  z-index: 999;
  background: var(--bg);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  transition: opacity .6s var(--ease-out), visibility .6s var(--ease-out);
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__mark {
  font-family: var(--ff-display);
  font-variation-settings: 'opsz' 144;
  font-weight: 500;
  font-size: clamp(40px, 8vw, 88px);
  letter-spacing: -.02em;
  display: inline-flex;
  gap: .12em;
}
.preloader__mark > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(40%);
  animation: pre-letter .8s var(--ease-out) forwards;
}
.preloader__mark > span:nth-child(1) { animation-delay: .05s; }
.preloader__mark > span:nth-child(2) { animation-delay: .12s; }
.preloader__mark > span:nth-child(3) { animation-delay: .19s; color: var(--red); }
.preloader__mark > span:nth-child(4) { animation-delay: .26s; }
.preloader__mark > span:nth-child(5) { animation-delay: .33s; }
@keyframes pre-letter { to { opacity: 1; transform: translateY(0); } }
.preloader__bar {
  width: min(280px, 60vw);
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.preloader__bar span {
  display: block;
  width: 100%; height: 100%;
  background: var(--red);
  transform: translateX(-100%);
  animation: pre-bar 1s var(--ease-inout) .25s forwards;
}
@keyframes pre-bar { to { transform: translateX(0); } }
.preloader__meta {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--text-dim);
}

/* ----------  Scroll progress  ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--red);
  z-index: 60;
  box-shadow: 0 0 12px var(--red-glow);
  will-change: width;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px var(--page-x);
  transition: background .3s var(--ease-out), backdrop-filter .3s var(--ease-out), border-color .3s var(--ease-out), padding .3s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(8,8,10,.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line-soft);
  padding: 12px var(--page-x);
}
.site-header.is-hidden { transform: translateY(-110%); }

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
}
.site-header__brand { display: inline-flex; }
.site-header__logo {
  height: clamp(28px, 3vw, 38px);
  width: auto;
}
.site-nav {
  justify-self: center;
}
.site-nav ul {
  display: flex;
  gap: clamp(18px, 2.2vw, 36px);
}
.site-nav a {
  position: relative;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-mut);
  padding: 8px 0;
  transition: color .25s var(--ease-out);
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 4px;
  height: 1px;
  width: 0;
  background: var(--red);
  transition: width .35s var(--ease-out);
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { width: 100%; }
/* Active page indicator — red underline (v3 §3) */
.site-nav a.is-active { color: var(--text); }
.site-nav a.is-active::after { width: 100%; }
.mobile-menu a.is-active { color: var(--red); }
.site-header__cta { justify-self: end; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.menu-toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: var(--text);
  transition: transform .35s var(--ease-out), opacity .35s var(--ease-out), top .35s var(--ease-out);
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 26px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ----------  Mobile menu  ---------- */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 45;
  background: var(--bg);
  padding: 100px var(--page-x) 40px;
  transform: translateY(-110%);
  visibility: hidden;
  transition: transform .55s var(--ease-inout), visibility .55s var(--ease-inout);
  overflow: auto;
}
.mobile-menu.is-open {
  transform: translateY(0);
  visibility: visible;
}
.mobile-menu ol {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--line-soft);
}
.mobile-menu li {
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.mobile-menu a {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: baseline;
  gap: 16px;
  padding: 22px 0;
  font-family: var(--ff-display);
  font-variation-settings: 'opsz' 144;
  font-weight: 400;
  font-size: clamp(28px, 7vw, 44px);
  letter-spacing: -.01em;
  color: var(--text);
  transform: translateY(40px);
  opacity: 0;
  transition: transform .45s var(--ease-out), opacity .45s var(--ease-out);
}
.mobile-menu.is-open a { transform: translateY(0); opacity: 1; }
.mobile-menu.is-open li:nth-child(1) a { transition-delay: .12s; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: .18s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: .24s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: .30s; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: .36s; }
.mobile-menu.is-open li:nth-child(6) a { transition-delay: .42s; }
.mm-num {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--red);
  font-variation-settings: normal;
}
.mobile-menu__foot {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--text-mut);
}
.mobile-menu__foot a { color: var(--text); }
.mobile-menu__foot p { margin: 4px 0 0; }

/* ============================================================
   HERO — left serif copy / right dusk visual (v3 §2)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  padding: clamp(110px, 12vh, 150px) var(--page-x) 0;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}
.hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  flex: 1;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}
.hero__copy { padding: clamp(12px, 3vh, 40px) 0 clamp(28px, 5vh, 56px); }

/* Faint structural grid over the whole hero */
.hero__gridlines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 30% 30%, rgba(0,0,0,.8) 0%, rgba(0,0,0,.35) 50%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 30%, rgba(0,0,0,.8) 0%, rgba(0,0,0,.35) 50%, transparent 78%);
  opacity: .5;
  z-index: 1;
  will-change: transform;
}

/* ----------  Dusk visual (right column)  ---------- */
.hero__visual {
  position: relative;
  align-self: stretch;
  min-height: clamp(420px, 62vh, 740px);
  z-index: 2;
}
.js .hero__visual {
  transform: scale(1.06);
  opacity: 0;
  transition: transform 1.4s var(--ease-out) .25s, opacity 1s var(--ease-out) .25s;
  will-change: transform;
}
.is-loaded .hero__visual { transform: scale(1); opacity: 1; }
.hero__hall,
.hero__portal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* Blend the visual into the page black with gradient masks */
.hero__visual::after {
  content: '';
  position: absolute;
  inset: -1px;
  background:
    linear-gradient(to right, var(--bg) 0%, transparent 26%),
    linear-gradient(to left, var(--bg) 0%, transparent 16%),
    linear-gradient(to bottom, var(--bg) 0%, transparent 26%),
    linear-gradient(to top, var(--bg) 0%, transparent 18%);
  z-index: 4;
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  left: 50%; top: 62%;
  width: 640px; height: 460px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, var(--red-glow) 0%, rgba(240,35,40,.08) 40%, transparent 70%);
  filter: blur(30px);
  mix-blend-mode: screen;
  z-index: 2;
  animation: forge-breathe 7s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes forge-breathe {
  from { opacity: .5;  transform: translate(-50%, -50%) scale(.94); }
  to   { opacity: .8;  transform: translate(-50%, -50%) scale(1.05); }
}
.hero__portal { z-index: 3; opacity: .85; will-change: transform; }
.hero__portal-nodes circle { fill: var(--red); }
.js .hero__portal-nodes circle {
  opacity: 0;
  transition: opacity .6s var(--ease-out) 1.7s;
}
.is-loaded .hero__portal-nodes circle { opacity: 1; }
.hero__visual-caption {
  position: absolute;
  left: 18px; bottom: 14px;
  z-index: 5;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero__portal-g line {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
}
.is-loaded .hero__portal-g line {
  animation: portal-draw 1.8s var(--ease-out) forwards;
}
.is-loaded .hero__portal-g line:nth-child(n+3) { animation-delay: .15s; }
.is-loaded .hero__portal-g line:nth-child(n+5) { animation-delay: .3s; }
.is-loaded .hero__portal-g line:nth-child(n+9) { animation-delay: .45s; }
@keyframes portal-draw { to { stroke-dashoffset: 0; } }
.hero__portal-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .3em;
  fill: var(--text-dim);
  text-transform: uppercase;
}

/* Hero content */
.hero__eyebrow { margin-bottom: 30px; }

.hero__headline {
  font-family: var(--ff-display);
  font-variation-settings: 'opsz' 144;
  font-weight: 400;
  font-size: clamp(2.6rem, 3.9vw + .6rem, 5.9rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0 0 28px 0;
  color: var(--text);
}
.hero__headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--red);
  text-shadow: 0 0 28px var(--red-glow);
}

/* Reveal helper for SplitType — words come with a clip mask */
[data-split] .line { overflow: hidden; display: block; }
[data-split] .word { display: inline-block; transform: translateY(110%); opacity: 0; }
.is-loaded [data-split] .word {
  transform: translateY(0);
  opacity: 1;
  transition: transform .9s var(--ease-out), opacity .6s var(--ease-out);
}
.is-loaded [data-split] .word:nth-child(1) { transition-delay: .15s; }
.is-loaded [data-split] .word:nth-child(2) { transition-delay: .22s; }
.is-loaded [data-split] .word:nth-child(3) { transition-delay: .29s; }
.is-loaded [data-split] .word:nth-child(4) { transition-delay: .36s; }
.is-loaded [data-split] .word:nth-child(5) { transition-delay: .43s; }
.is-loaded [data-split] .word:nth-child(6) { transition-delay: .50s; }
.is-loaded [data-split] .word:nth-child(7) { transition-delay: .57s; }
.is-loaded [data-split] .word:nth-child(n+8) { transition-delay: .64s; }

.hero__sub {
  max-width: 46ch;
  font-size: clamp(1.02rem, .4vw + 1rem, 1.22rem);
  color: var(--text-mut);
  line-height: 1.6;
  margin: 0 0 40px 0;
}
.js .hero__sub {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease-out) .7s, transform .8s var(--ease-out) .7s;
}
.is-loaded .hero__sub { opacity: 1; transform: translateY(0); }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.js .hero__cta {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease-out) .85s, transform .7s var(--ease-out) .85s;
}
.is-loaded .hero__cta { opacity: 1; transform: translateY(0); }
.hero__cta-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-mut);
  padding: 8px 0;
  transition: color .25s var(--ease-out);
}
.hero__cta-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 2px;
  height: 1px; width: 0;
  background: var(--red);
  transition: width .35s var(--ease-out);
}
.hero__cta-link:hover { color: var(--text); }
.hero__cta-link:hover::after { width: 100%; }
.hero__cta-link svg { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.hero__cta-link:hover svg { transform: translateX(4px); }

/* Hero stats strip — full width under both columns */
.hero__stats {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line-soft);
  padding: 26px 0 40px;
}
.js .hero__stats {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease-out) 1s, transform .8s var(--ease-out) 1s;
}
.is-loaded .hero__stats { opacity: 1; transform: translateY(0); }
.hero__stats li {
  display: grid;
  gap: 4px;
}
.stat__num {
  font-family: var(--ff-display);
  font-variation-settings: 'opsz' 144;
  font-weight: 400;
  font-size: clamp(1.9rem, 2.4vw + .5rem, 2.8rem);
  line-height: 1;
  color: var(--text);
  letter-spacing: -.01em;
}
.stat__label {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-mut);
}

/* Scroll cue */
.hero__scroll {
  position: absolute;
  right: var(--page-x);
  bottom: 128px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--text-dim);
  z-index: 5;
}
.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line span {
  position: absolute;
  inset: 0;
  background: var(--red);
  animation: scroll-cue 1.8s var(--ease-inout) infinite;
}
@keyframes scroll-cue {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* ============================================================
   RULER DIVIDER — steel measurement scale
   ============================================================ */
.ruler {
  position: relative;
  height: 28px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, transparent 0, rgba(255,255,255,.02) 50%, transparent 100%),
    var(--bg-elev);
}
.ruler::before,
.ruler::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
}
.ruler::before { /* minor ticks every 12px */
  top: 0;
  height: 6px;
  background-image: repeating-linear-gradient(90deg,
    var(--line) 0, var(--line) 1px,
    transparent 1px, transparent 12px);
}
.ruler::after { /* major ticks every 60px */
  bottom: 0;
  height: 10px;
  background-image: repeating-linear-gradient(90deg,
    var(--line) 0, var(--line) 1px,
    transparent 1px, transparent 60px);
}
.ruler__caption {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--bg-elev);
  padding: 0 14px;
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
section {
  position: relative;
  padding: clamp(80px, 10vw, 140px) var(--page-x);
  background: var(--bg);
}
.section-head {
  max-width: var(--max-w);
  margin: 0 auto clamp(48px, 6vw, 80px);
}
.section-head__title {
  font-family: var(--ff-display);
  font-variation-settings: 'opsz' 144;
  font-weight: 400;
  font-size: clamp(2rem, 4vw + .5rem, 4.3rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0;
  max-width: 22ch;
}
.section-head__title--md {
  font-size: clamp(1.75rem, 3vw + .5rem, 3.2rem);
}
.section-head__title em {
  font-style: italic;
  color: var(--red);
  font-weight: 400;
}
.section-head--split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
}
.section-head--tight { margin-bottom: clamp(28px, 3vw, 48px); }
.section-head__lede {
  color: var(--text-mut);
  font-size: clamp(1rem, .3vw + 1rem, 1.15rem);
  max-width: 42ch;
  margin: 0;
}

/* Reveal base — JS toggles .is-inview; without JS everything stays visible */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.js .reveal.is-inview { opacity: 1; transform: translateY(0); }

/* SplitType-line reveals (set by JS) */
[data-split-lines] .line { overflow: hidden; display: block; }
[data-split-lines] .word,
[data-split-lines] .char { display: inline-block; }
[data-split-lines] .line > * {
  transform: translateY(110%);
  transition: transform .9s var(--ease-out);
}
.is-inview[data-split-lines] .line > *,
[data-split-lines].is-inview .line > * { transform: translateY(0); }

/* ============================================================
   CAPABILITIES — 3 pillars
   ============================================================ */
.pillars__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.pillar {
  background: var(--bg);
  padding: clamp(36px, 4vw, 64px) clamp(24px, 2.8vw, 48px);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  transition: background .35s var(--ease-out);
}
.pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .5s var(--ease-out);
}
.pillar:hover { background: var(--bg-elev); }
.pillar:hover::before { width: 100%; }
.pillar__num {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--red);
}
.pillar__icon {
  width: 54px; height: 54px;
  color: var(--text);
  opacity: .9;
  transition: color .35s var(--ease-out);
}
.pillar:hover .pillar__icon { color: var(--red); }
.pillar__title {
  font-family: var(--ff-display);
  font-variation-settings: 'opsz' 96;
  font-weight: 500;
  font-size: clamp(1.4rem, 1.3vw + .8rem, 1.9rem);
  letter-spacing: -.01em;
  line-height: 1.1;
  margin: 0;
  color: var(--text);
}
.pillar__body {
  color: var(--text-mut);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  max-width: 36ch;
}
.pillar__link {
  margin-top: auto;
  padding-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text);
}
.pillar__link svg { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.pillar__link:hover svg { transform: translateX(4px); }

/* ============================================================
   PRODUCTS
   ============================================================ */
.products__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.6vw, 28px);
}
.product {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform .45s var(--ease-out), border-color .45s var(--ease-out), background .45s var(--ease-out);
}
.product::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 1px;
  width: 0;
  background: var(--red);
  transition: width .5s var(--ease-out);
  z-index: 2;
}
.product:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  background: var(--bg-card-hi);
}
.product:hover::before { width: 100%; }
.product:hover .product__media { transform: scale(1.04); }
.product:hover .product__arrow { transform: translateX(0); opacity: 1; }

.product--feature {
  grid-column: span 2;
  grid-row: span 2;
  grid-template-rows: 1fr auto;
}
.product__media {
  position: relative;
  aspect-ratio: 16 / 11;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(240,35,40,.12), transparent 60%),
    linear-gradient(135deg, #141415 0%, #0B0B0C 100%);
  transition: transform .8s var(--ease-out);
  overflow: hidden;
}
.product--feature .product__media { aspect-ratio: 16 / 14; }
.product__media--sm { aspect-ratio: 4 / 3; }
.product__media::after {
  content: attr(data-caption);
  position: absolute;
  left: 16px; bottom: 14px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.product__corner {
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--red);
}
.product__corner--tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.product__corner--tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.product__corner--bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.product__corner--br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.product__meta {
  position: relative;
  padding: 22px 22px 24px;
  display: grid;
  gap: 8px;
}
.product__num {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--red);
}
.product__title {
  font-family: var(--ff-display);
  font-variation-settings: 'opsz' 72;
  font-weight: 500;
  font-size: clamp(1.15rem, .6vw + 1rem, 1.55rem);
  line-height: 1.15;
  margin: 0;
  color: var(--text);
  letter-spacing: -.01em;
}
.product--feature .product__title {
  font-size: clamp(1.6rem, 1.2vw + 1rem, 2.4rem);
}
.product__desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-mut);
  margin: 4px 0 0;
}
.product__arrow {
  position: absolute;
  right: 22px;
  top: 24px;
  font-family: var(--ff-mono);
  font-size: 22px;
  color: var(--red);
  opacity: 0;
  transform: translateX(-6px);
  transition: transform .35s var(--ease-out), opacity .35s var(--ease-out);
}

/* ============================================================
   CAPACITY BAND (pinned)
   ============================================================ */
.capacity { background: var(--bg-elev); overflow: clip; }
.capacity__pin { max-width: var(--max-w); margin: 0 auto; }
.capacity__head { margin-bottom: clamp(40px, 5vw, 70px); }

.capacity__list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.cap {
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr;
  align-items: center;
  gap: clamp(20px, 3vw, 60px);
  padding: clamp(28px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.cap::before {
  content: '';
  position: absolute;
  left: -10px; top: 50%;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width .6s var(--ease-out);
}
.cap.is-inview::before { width: 24px; }

.cap__index {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--red);
}
.cap__figure {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--ff-display);
  font-variation-settings: 'opsz' 144;
  font-weight: 400;
  font-size: clamp(3rem, 8vw + 1rem, 8rem);
  line-height: 1;
  color: var(--red);
  letter-spacing: -.02em;
  background: linear-gradient(180deg, var(--red-hi), var(--red) 60%, var(--red-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cap__unit {
  font-size: clamp(1rem, 1vw + .6rem, 1.6rem);
  color: var(--text-mut);
  font-style: italic;
  background: none;
  -webkit-text-fill-color: var(--text-mut);
}
.cap__rule {
  display: block;
  width: 70px;
  height: 1px;
  background: var(--line);
  justify-self: end;
  position: relative;
}
.cap__label {
  font-family: var(--ff-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.7;
}

/* ============================================================
   CERTIFICATIONS — marquee
   ============================================================ */
.certs { padding-top: clamp(40px, 5vw, 80px); padding-bottom: clamp(60px, 7vw, 100px); }
.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(20px, 2.5vw, 36px) 0;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  margin-top: clamp(20px, 3vw, 40px);
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee__item {
  font-family: var(--ff-display);
  font-variation-settings: 'opsz' 144;
  font-weight: 400;
  font-size: clamp(1.6rem, 2.2vw + .5rem, 3rem);
  letter-spacing: -.01em;
  color: var(--text);
  font-style: italic;
}
.marquee__dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ============================================================
   REFERENCES grid
   ============================================================ */
.references__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.ref {
  background: var(--bg);
  padding: clamp(28px, 3vw, 48px) clamp(22px, 2.5vw, 36px);
  display: grid;
  gap: 14px;
  position: relative;
  transition: background .35s var(--ease-out);
}
.ref::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width .5s var(--ease-out);
}
.ref:hover { background: var(--bg-elev); }
.ref:hover::before { width: 100%; }
.ref__num {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--red);
}
.ref__name {
  font-family: var(--ff-display);
  font-variation-settings: 'opsz' 96;
  font-weight: 500;
  font-size: clamp(1.4rem, 1.6vw + .5rem, 2.1rem);
  letter-spacing: -.01em;
  line-height: 1.1;
  color: var(--text);
}
.ref__tag {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-mut);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg-elev); }
.contact__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-areas:
    "lead lead"
    "form card";
  gap: clamp(28px, 4vw, 64px);
}
.contact__lead { grid-area: lead; max-width: 72ch; }
.contact__title {
  font-family: var(--ff-display);
  font-variation-settings: 'opsz' 144;
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw + .5rem, 3.8rem);
  letter-spacing: -.02em;
  line-height: 1.05;
  margin: 0 0 18px 0;
}
.contact__title em {
  color: var(--red);
  font-style: italic;
  font-weight: 400;
}
.contact__sub {
  color: var(--text-mut);
  max-width: 60ch;
  margin: 0;
  font-size: clamp(1rem, .3vw + 1rem, 1.12rem);
}
.contact__form {
  grid-area: form;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: clamp(24px, 2.6vw, 36px);
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 8px; }
.field--row { grid-template-columns: 1fr 1fr; gap: 18px; }
.field label {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field input,
.field textarea,
.field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  color: var(--text);
  font-size: 15px;
  border-radius: 0;
  outline: none;
  transition: border-color .25s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--red); }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-mut) 50%),
                    linear-gradient(135deg, var(--text-mut) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 8px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.field select option { background: var(--bg-card); color: var(--text); }
.contact__note {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--text-dim);
  margin: 4px 0 0;
}
.contact__card {
  grid-area: card;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: clamp(24px, 2.6vw, 36px);
  display: grid;
  align-content: start;
  gap: 18px;
}
.contact__card .eyebrow { margin-bottom: 0; }
.contact__row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px dashed var(--line-soft);
}
.contact__row span:first-child {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.contact__row a:hover { color: var(--red); }
.contact__row p { margin: 0; line-height: 1.7; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  padding: clamp(60px, 7vw, 100px) var(--page-x) 40px;
}
.site-footer__top {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line-soft);
}
.site-footer__logo {
  height: 40px;
  width: auto;
  margin-bottom: 18px;
}
.site-footer__descr {
  color: var(--text-mut);
  max-width: 40ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 48px);
}
.site-footer__col-h {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 16px;
}
.site-footer__cols ul { display: grid; gap: 8px; }
.site-footer__cols li, .site-footer__cols a {
  font-size: 13.5px;
  color: var(--text-mut);
}
.site-footer__cols a:hover { color: var(--text); }

.site-footer__certs {
  max-width: var(--max-w);
  margin: 28px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.site-footer__legal {
  max-width: var(--max-w);
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--text-dim);
}
.site-footer__legal a { color: var(--text); }
.site-footer__legal a:hover { color: var(--red); }

/* ============================================================
   INNER PAGES — shared components
   ============================================================ */

/* ----------  Page hero  ---------- */
.page-hero {
  position: relative;
  padding: clamp(150px, 18vh, 210px) var(--page-x) clamp(44px, 6vw, 72px);
  overflow: hidden;
  isolation: isolate;
}
.page-hero .hero__gridlines { opacity: .4; }
.page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
}
.page-hero__title {
  font-family: var(--ff-display);
  font-variation-settings: 'opsz' 144;
  font-weight: 400;
  font-size: clamp(2.4rem, 4.4vw + .5rem, 5.2rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0;
  max-width: 18ch;
  color: var(--text);
}
.page-hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--red);
  text-shadow: 0 0 28px var(--red-glow);
}
.page-hero__lede {
  color: var(--text-mut);
  font-size: clamp(1.02rem, .4vw + 1rem, 1.2rem);
  line-height: 1.65;
  max-width: 58ch;
  margin: 22px 0 0;
}
.page-hero__meta {
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.page-hero__meta b { color: var(--text); font-weight: 500; }

/* ----------  Premium image placeholder (no gray boxes)  ---------- */
.ph {
  position: relative;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(240,35,40,.10), transparent 60%),
    linear-gradient(135deg, #141415 0%, #0B0B0C 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
}
.ph::after {
  content: attr(data-caption);
  position: absolute;
  left: 16px; bottom: 14px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
  z-index: 2;
}
.ph__c {
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--red);
  z-index: 2;
}
.ph__c--tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.ph__c--tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.ph__c--bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.ph__c--br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.ph--169 { aspect-ratio: 16 / 9; }
.ph--32  { aspect-ratio: 3 / 2; }
.ph--43  { aspect-ratio: 4 / 3; }
.ph--45  { aspect-ratio: 4 / 5; }
.ph--21  { aspect-ratio: 21 / 9; }

/* ----------  Content blocks — alternating text/media rows  ---------- */
.blocks {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  gap: clamp(56px, 8vw, 110px);
}
.block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4.5vw, 80px);
  align-items: center;
}
.block--flip .block__media { order: -1; }
.block__kicker {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 14px;
}
.block__title {
  font-family: var(--ff-display);
  font-variation-settings: 'opsz' 96;
  font-weight: 400;
  font-size: clamp(1.7rem, 2.2vw + .5rem, 2.9rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 18px;
  color: var(--text);
}
.block__title em { font-style: italic; color: var(--red); }
.block__text {
  color: var(--text-mut);
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0 0 22px;
}
.block__text:last-child { margin-bottom: 0; }

/* Tilted red square bullet — echoes the logo's red "N" tile (v3 §1) */
.sq-list { display: grid; gap: 12px; margin: 0 0 22px; }
.sq-list li {
  position: relative;
  padding-left: 26px;
  color: var(--text-mut);
  font-size: 14.5px;
  line-height: 1.6;
}
.sq-list li::before {
  content: '';
  position: absolute;
  left: 2px; top: .52em;
  width: 7px; height: 7px;
  background: var(--red);
  transform: rotate(45deg);
}
.sq-list b { color: var(--text); font-weight: 600; }

/* ----------  Spec table (mono, engineered)  ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ff-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
}
.spec-table caption {
  text-align: left;
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-bottom: 12px;
}
.spec-table th {
  text-align: left;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid var(--line);
}
.spec-table td {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  vertical-align: top;
}
.spec-table td:first-child { color: var(--text-mut); }
.spec-table .is-num { color: var(--red); font-weight: 500; }

/* ----------  Process steps (numbered)  ---------- */
.process {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  border-top: 1px solid var(--line);
}
.step {
  display: grid;
  grid-template-columns: 90px 1fr 1.2fr;
  gap: clamp(18px, 3vw, 56px);
  padding: clamp(26px, 3.6vw, 48px) 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.step__num {
  font-family: var(--ff-mono);
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  letter-spacing: .12em;
  color: var(--red);
}
.step__title {
  font-family: var(--ff-display);
  font-variation-settings: 'opsz' 96;
  font-weight: 500;
  font-size: clamp(1.3rem, 1.4vw + .6rem, 1.9rem);
  letter-spacing: -.01em;
  line-height: 1.15;
  margin: 0;
  color: var(--text);
}
.step__text {
  color: var(--text-mut);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0;
}

/* ----------  Timeline (o-nama)  ---------- */
.timeline {
  max-width: 860px;
  display: grid;
  gap: 0;
  border-left: 1px solid var(--line);
  margin-left: 6px;
}
.timeline__item {
  position: relative;
  padding: 0 0 clamp(28px, 4vw, 44px) clamp(24px, 3vw, 40px);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: '';
  position: absolute;
  left: -4.5px; top: .5em;
  width: 8px; height: 8px;
  background: var(--red);
  transform: rotate(45deg);
}
.timeline__year {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--red);
  display: block;
  margin-bottom: 8px;
}
.timeline__title {
  font-family: var(--ff-display);
  font-variation-settings: 'opsz' 96;
  font-weight: 500;
  font-size: clamp(1.2rem, 1.2vw + .6rem, 1.6rem);
  margin: 0 0 8px;
  color: var(--text);
}
.timeline__text { color: var(--text-mut); font-size: 14.5px; line-height: 1.65; margin: 0; max-width: 60ch; }

/* ----------  Gallery grid (image cards, hover zoom)  ---------- */
.gallery-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.6vw, 28px);
}
.gallery-card { display: grid; gap: 12px; }
.gallery-card .ph { transition: transform .5s var(--ease-out), border-color .5s var(--ease-out); }
.gallery-card:hover .ph { transform: translateY(-4px); border-color: var(--line); }
.gallery-card .ph > .ph__zoom {
  position: absolute;
  inset: 0;
  background: inherit;
  transition: transform .8s var(--ease-out);
}
.gallery-card:hover .ph > .ph__zoom { transform: scale(1.05); }
.gallery-card__title {
  font-family: var(--ff-display);
  font-variation-settings: 'opsz' 72;
  font-weight: 500;
  font-size: 1.15rem;
  margin: 0;
  color: var(--text);
}
.gallery-card__tag {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-mut);
}

/* ----------  Map placeholder (kontakt)  ---------- */
.map-ph {
  position: relative;
  aspect-ratio: 21 / 9;
  background:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px),
    linear-gradient(135deg, #101011 0%, #0A0A0B 100%);
  background-size: 56px 56px, 56px 56px, 100% 100%;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
}
.map-ph__pin {
  position: absolute;
  left: 58%; top: 42%;
  width: 14px; height: 14px;
  background: var(--red);
  transform: rotate(45deg);
  box-shadow: 0 0 0 6px rgba(240,35,40,.18), 0 0 30px var(--red-glow);
}
.map-ph__pin::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--bg);
}
.map-ph__label {
  position: absolute;
  left: 58%; top: 42%;
  transform: translate(18px, -6px) ;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

/* ----------  CTA band (pre-footer, every inner page)  ---------- */
.cta-band {
  background: var(--bg-elev);
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.cta-band__inner { max-width: 900px; margin: 0 auto; display: grid; justify-items: center; gap: 26px; }
.cta-band__title {
  font-family: var(--ff-display);
  font-variation-settings: 'opsz' 144;
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw + .5rem, 3.6rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--text);
}
.cta-band__title em { font-style: italic; color: var(--red); }
.cta-band__sub { color: var(--text-mut); max-width: 54ch; margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Inner-page responsive */
@media (max-width: 900px) {
  .block, .block--flip { grid-template-columns: 1fr; }
  .block--flip .block__media { order: 0; }
  .step { grid-template-columns: 56px 1fr; }
  .step__text { grid-column: 2; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .map-ph { aspect-ratio: 16 / 10; }
  .map-ph__label { transform: translate(-50%, 22px); left: 58%; }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .page-hero { padding-top: 130px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .site-header__cta { display: none; }
  .menu-toggle { display: block; }
  .site-header__inner { grid-template-columns: auto 1fr auto; }

  .hero__inner { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .hero__copy { padding-bottom: 0; }
  .hero__visual { min-height: clamp(340px, 46vh, 480px); }
  .hero__scroll { display: none; }

  .section-head--split { grid-template-columns: 1fr; align-items: start; }
  .pillars__grid { grid-template-columns: 1fr; }
  .pillar { min-height: auto; border-bottom: 1px solid var(--line-soft); }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .product--feature { grid-column: span 2; grid-row: auto; }
  .references__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__inner {
    grid-template-columns: 1fr;
    grid-template-areas: "lead" "form" "card";
  }
  .site-footer__top { grid-template-columns: 1fr; }
  .cap { grid-template-columns: 60px 1fr; gap: 14px; }
  .cap__rule { display: none; }
  .cap__label { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --page-x: 20px; }
  .hero { padding-top: 110px; min-height: 100svh; }
  .hero__headline { font-size: clamp(2.3rem, 11vw, 3.6rem); }
  .hero__sub { font-size: 1rem; margin-bottom: 28px; }
  .hero__cta { flex-direction: column; align-items: stretch; width: 100%; gap: 10px; }
  .hero__cta .btn { width: 100%; justify-content: space-between; }
  .hero__cta-link { justify-content: center; padding: 12px 0; }
  .hero__visual { min-height: 300px; }
  .hero__stats {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 20px 0 28px;
  }

  .products__grid { grid-template-columns: 1fr; }
  .product--feature { grid-column: 1 / -1; }
  .references__grid { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }

  .ruler { height: 22px; }
  .ruler::before { height: 5px; }
  .ruler::after { height: 8px; }
  .marquee__item { font-size: 1.5rem; }
  .cap__figure { font-size: clamp(2.4rem, 14vw, 4rem); }
}

/* ============================================================
   REDUCED MOTION — collapse animation, keep content readable
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
    scroll-behavior: auto !important;
  }
  .hero__glow { animation: none; opacity: .55; }
  .hero__portal-g line { stroke-dashoffset: 0; }
  .hero__visual { transform: none; opacity: 1; }
  .hero__portal-nodes circle { opacity: 1; }
  .preloader { display: none; }
  .marquee__track { animation: none; }
  .hero__scroll-line span { animation: none; }
  .gallery-card:hover .ph,
  .gallery-card:hover .ph > .ph__zoom { transform: none; }
  .reveal, [data-split-lines] .line > *, [data-split] .word {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =============================================================
   v4 OVERRIDES — bigger navbar, hero slider, floating widgets,
   page-hero photo backgrounds, timeline balance, real map.
   Appended so it wins the cascade.
   ============================================================= */

/* ----------  Navbar: bigger logo, roomier nav  ---------- */
.site-header {
  padding: 22px var(--page-x);
}
.site-header.is-stuck { padding: 16px var(--page-x); }
.site-header__logo {
  height: clamp(52px, 4.8vw, 60px);
  width: auto;
}
.site-header.is-stuck .site-header__logo {
  height: clamp(46px, 4vw, 52px);
  transition: height .3s var(--ease-out);
}
.site-nav ul { gap: clamp(22px, 2.6vw, 44px); }
.site-nav a {
  font-size: 13px;
  letter-spacing: .2em;
  padding: 10px 0;
}
.site-header__cta { --btn-h: 56px; padding: 0 24px; font-size: 12.5px; }

/* Mobile: flex layout so hamburger sits vertically centered against the logo
   at the far right edge, mirroring the logo's left padding exactly. */
@media (max-width: 1080px) {
  .site-header__inner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .site-header__logo { height: clamp(48px, 12vw, 56px); }
  .site-header.is-stuck .site-header__logo { height: clamp(42px, 10vw, 50px); }
  .menu-toggle {
    display: grid !important;
    place-items: center;
    margin-left: auto;
    flex-shrink: 0;
  }
  .menu-toggle span {
    left: 12px;
    right: 12px;
  }
}

/* ----------  Hero SLIDER (index) — full viewport bg  ---------- */
.hero.hero--slider {
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
  display: block;
}
.hero.hero--slider .hero__inner {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  max-width: none;
  padding: clamp(110px, 14vh, 170px) var(--page-x) clamp(80px, 12vh, 140px);
}
.hero.hero--slider .hero__copy {
  max-width: min(680px, 60vw);
  width: 100%;
  padding: 0;
  margin: 0 auto 0 max(var(--page-x), calc((100vw - var(--max-w)) / 2));
}
.hero.hero--slider .hero__gridlines { opacity: .18; z-index: 2; }

.hero-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* deliberately no z-index → no stacking context → dots can float above stats */
}
.hero-slider__track {
  position: absolute;
  inset: 0;
}
.hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
  overflow: hidden;
  will-change: opacity;
}
.hero-slider__slide.is-active { opacity: 1; }
.hero-slider__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 8s linear;
  will-change: transform;
}
.hero-slider__slide.is-active .hero-slider__img {
  transform: scale(1.18);
}
.hero-slider__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7,7,7,.92) 0%, rgba(7,7,7,.72) 32%, rgba(7,7,7,.35) 58%, rgba(7,7,7,.55) 100%),
    linear-gradient(180deg, rgba(7,7,7,.55) 0%, rgba(7,7,7,.15) 30%, rgba(7,7,7,.55) 78%, rgba(7,7,7,.92) 100%);
  pointer-events: none;
}
.hero-slider__vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at 65% 60%, rgba(240,35,40,.14) 0%, rgba(240,35,40,.03) 40%, transparent 70%);
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-slider__dots {
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 6vh, 72px);
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(7,7,7,.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.08);
}
.hero-slider__dot {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,.28);
  cursor: pointer;
  padding: 0;
  border: 0;
  transition: background .4s var(--ease-out), width .4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.hero-slider__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--red);
  transition: width .3s var(--ease-out);
}
.hero-slider__dot.is-active { width: 52px; background: rgba(255,255,255,.15); }
.hero-slider__dot.is-active::after { width: 100%; }

/* Prev / Next arrows — fade in on mousemove, fade out after 2s idle */
.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateX(0);
  z-index: 5;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.9);
  background: rgba(7,7,7,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease-out), visibility .35s var(--ease-out),
              background .25s var(--ease-out), border-color .25s var(--ease-out),
              color .25s var(--ease-out), transform .3s var(--ease-out);
  cursor: pointer;
}
.hero-slider__arrow svg { width: 22px; height: 22px; }
.hero-slider__arrow--prev { left: clamp(16px, 3vw, 40px); }
.hero-slider__arrow--next { right: clamp(16px, 3vw, 40px); }
.hero.hero--slider.is-nav-visible .hero-slider__arrow {
  opacity: 1;
  visibility: visible;
}
.hero-slider__arrow:hover {
  color: #fff;
  background: var(--red);
  border-color: var(--red-hi);
  box-shadow: 0 14px 34px -8px var(--red-glow);
}
.hero-slider__arrow--prev:hover { transform: translateY(-50%) translateX(-3px); }
.hero-slider__arrow--next:hover { transform: translateY(-50%) translateX(3px); }
.hero-slider__arrow:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

/* Hide arrows on touch-only devices (rely on swipe) and reduced motion. */
@media (hover: none) and (pointer: coarse) {
  .hero-slider__arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slider__arrow { display: none; }
}

/* ----------  Footer credit link (Apis Development)  ---------- */
.site-footer__legal .credit-link {
  color: var(--text-mut);
  transition: color .25s var(--ease-out);
  border-bottom: 1px dotted rgba(240,35,40,.35);
  padding-bottom: 1px;
}
.site-footer__legal .credit-link:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* Hide the old SVG dusk visual when hero has a slider */
.hero.hero--slider .hero__visual { display: none; }

/* Stats + scroll cue on slider hero — reposition on top of slider  */
.hero.hero--slider .hero__stats {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  padding: clamp(18px, 3vh, 28px) var(--page-x) clamp(22px, 4vh, 36px);
  border-top: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, transparent 0%, rgba(7,7,7,.6) 60%, rgba(7,7,7,.92) 100%);
  z-index: 4;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.hero.hero--slider .hero__stats::before {
  content: '';
  position: absolute;
  left: 50%; top: 0;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(240,35,40,.2);
}
.hero.hero--slider .hero__scroll {
  right: clamp(20px, 4vw, 56px);
  bottom: clamp(160px, 22vh, 220px);
  z-index: 5;
  color: rgba(255,255,255,.72);
}
.hero.hero--slider .hero__scroll-line { background: rgba(255,255,255,.18); }

@media (max-width: 1080px) {
  .hero.hero--slider .hero__copy {
    max-width: 100%;
    margin: 0;
  }
  .hero.hero--slider .hero__scroll { display: none; }
  .hero.hero--slider .hero__inner { padding-top: clamp(120px, 16vh, 160px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slider__slide.is-active .hero-slider__img,
  .hero-slider__img { transform: none; transition: none; }
  .hero-slider__slide { transition: opacity .001s; }
}

/* ----------  Floating AI assistant (bottom-left)  ---------- */
.ai-fab {
  position: fixed;
  left: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 14px;
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1a1a1c 0%, #0f0f10 100%);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    0 20px 40px -12px rgba(0,0,0,.6),
    0 0 0 3px rgba(240,35,40,.06),
    0 0 32px -6px rgba(240,35,40,.22);
  cursor: pointer;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.ai-fab:hover { transform: translateY(-2px); }
.ai-fab__dot {
  position: relative;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff4c4c, var(--red) 60%, var(--red-deep));
  box-shadow: 0 0 0 3px rgba(240,35,40,.15), 0 0 18px var(--red-glow);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ai-fab__dot::before,
.ai-fab__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--red);
  animation: ai-pulse 2.6s var(--ease-out) infinite;
}
.ai-fab__dot::after { animation-delay: 1.3s; }
@keyframes ai-pulse {
  0%   { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.8); opacity: 0; }
}
.ai-fab__dot svg {
  width: 14px; height: 14px;
  color: #fff;
  z-index: 1;
}

.ai-panel {
  position: fixed;
  left: clamp(16px, 2vw, 28px);
  bottom: calc(56px + clamp(16px, 2vw, 28px) + 14px);
  z-index: 91;
  width: min(380px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 140px));
  display: none;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #131315 0%, #0b0b0c 100%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.75), 0 0 0 4px rgba(240,35,40,.04);
  transform: translateY(12px) scale(.98);
  opacity: 0;
  transition: transform .35s var(--ease-out), opacity .35s var(--ease-out);
}
.ai-panel.is-open {
  display: flex;
  transform: translateY(0) scale(1);
  opacity: 1;
}
.ai-panel__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(90deg, rgba(240,35,40,.08), transparent 70%);
}
.ai-panel__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff4c4c, var(--red) 60%, var(--red-deep));
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(240,35,40,.15);
}
.ai-panel__avatar svg { width: 16px; height: 16px; color: #fff; }
.ai-panel__title {
  flex: 1;
  font-family: var(--ff-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  line-height: 1.1;
}
.ai-panel__sub {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--red);
  text-transform: uppercase;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ai-panel__sub::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34,197,94,.25);
}
.ai-panel__close {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-mut);
  transition: color .2s, background .2s;
}
.ai-panel__close:hover { color: var(--text); background: rgba(255,255,255,.06); }
.ai-panel__close svg { width: 14px; height: 14px; }

.ai-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}
.ai-panel__body::-webkit-scrollbar { width: 6px; }
.ai-panel__body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.15);
  border-radius: 3px;
}
.ai-msg {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  animation: ai-msg-in .35s var(--ease-out);
}
@keyframes ai-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ai-msg--bot {
  align-self: flex-start;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.06);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.ai-msg--user {
  align-self: flex-end;
  background: var(--red);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 8px 20px -8px var(--red-glow);
}
.ai-msg a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); }

.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 12px;
  border-top: 1px solid rgba(255,255,255,.05);
  padding-top: 12px;
}
.ai-suggestions__chip {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text-mut);
  background: rgba(255,255,255,.02);
  transition: color .2s, border-color .2s, background .2s;
  cursor: pointer;
}
.ai-suggestions__chip:hover { color: var(--text); border-color: var(--red); background: rgba(240,35,40,.06); }

.ai-panel__form {
  display: flex;
  gap: 10px;
  padding: 12px 14px 16px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.24);
}
.ai-panel__input {
  flex: 1;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.06);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, background .2s;
  min-width: 0;
}
.ai-panel__input:focus { border-color: var(--red); background: rgba(255,255,255,.08); }
.ai-panel__send {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px -6px var(--red-glow);
  transition: background .2s, transform .2s;
}
.ai-panel__send:hover { background: var(--red-hi); transform: translateY(-1px); }
.ai-panel__send svg { width: 16px; height: 16px; }

/* ----------  Back to top button (bottom-right)  ---------- */
.to-top {
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 90;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(180deg, #1a1a1c 0%, #0f0f10 100%);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text);
  display: grid; place-items: center;
  box-shadow: 0 16px 34px -12px rgba(0,0,0,.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility .3s;
  cursor: pointer;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--red); color: var(--red); box-shadow: 0 16px 40px -8px var(--red-glow); }
.to-top svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.to-top:hover svg { transform: translateY(-2px); }

/* ----------  KAPACITETI — kill fragile pin, ensure caps visible  ---------- */
/* Override the fragile GSAP pin-with-scrub pattern: display normally.
   Also fix a base-CSS bug: with 4 children + 3 grid tracks, the label
   auto-flowed to row 2 col 1 (80px wide) and wrapped catastrophically. */
.capacity__pin { padding: 0; }
.cap {
  visibility: visible !important;
  opacity: 1 !important;
  grid-template-columns: 80px minmax(220px, auto) 1fr auto;
  align-items: center;
}
.cap__figure { justify-self: start; }
.cap__label {
  grid-column: 3;
  justify-self: start;
  max-width: 60ch;
}
.cap__rule { grid-column: 4; }
@media (max-width: 1080px) {
  .cap {
    grid-template-columns: 60px 1fr !important;
  }
  .cap__figure { grid-column: 2; }
  .cap__label { grid-column: 1 / -1; max-width: none; }
  .cap__rule { display: none; }
}

/* ----------  Universal image-fill helper for real photos  ---------- */
.ph {
  isolation: isolate;
}
.ph--photo {
  background: #0a0a0b;
}
.ph--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.ph--photo .ph__c { z-index: 2; }
.ph--photo::after { z-index: 3; }
.ph__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transition: transform .8s var(--ease-out);
}
.ph--photo .ph__zoom {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: transform .8s var(--ease-out);
}

/* Product card real-photo variant */
.product__media--photo {
  background: #0a0a0b;
}
.product__media--photo .product__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transition: transform .8s var(--ease-out);
}
.product__media--photo .product__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7,7,7,.15) 0%, rgba(7,7,7,.5) 70%, rgba(7,7,7,.85) 100%);
  pointer-events: none;
}
.product__media--photo::after {
  z-index: 2;
  color: #fff;
  opacity: .8;
}

/* ----------  PAGE HERO — photo background + persistent title  ---------- */
.page-hero {
  min-height: clamp(420px, 60vh, 640px);
  display: flex;
  align-items: flex-end;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.page-hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}
.page-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7,7,7,.62) 0%, rgba(7,7,7,.4) 30%, rgba(7,7,7,.72) 78%, rgba(7,7,7,.98) 100%),
    linear-gradient(90deg, rgba(7,7,7,.55) 0%, rgba(7,7,7,.25) 60%);
  pointer-events: none;
}
.page-hero .hero__gridlines {
  z-index: 2;
  opacity: .18;
}
.page-hero__inner {
  z-index: 3;
  width: 100%;
}
/* Persistent title: gentle entrance animation, guaranteed final visible state.
   No-JS default keeps text visible. With .js: hidden, then fade-up on .is-loaded.
   Never left hidden — GSAP is not allowed to touch page-hero titles. */
.page-hero__title { opacity: 1; }
.js .page-hero__title {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-out) .25s, transform .9s var(--ease-out) .25s;
}
body.is-loaded .page-hero__title { opacity: 1 !important; transform: translateY(0) !important; }
.page-hero__title .line { overflow: visible; }
.page-hero__title .line > *,
.page-hero__title .word,
.page-hero__title .char { transform: none; opacity: 1; }

.js .page-hero__lede,
.js .page-hero__meta {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.js .page-hero__lede { transition-delay: .5s; }
.js .page-hero__meta { transition-delay: .6s; }
body.is-loaded .page-hero__lede,
body.is-loaded .page-hero__meta { opacity: 1; transform: translateY(0); }

/* CRITICAL FIX: Base CSS had `[data-split-lines] .line > * { transform: translateY(110%) }`
   as a "hide until inview" default. gsap.from() clears its inline transform on
   complete, and the CSS default then re-hides the words → "title flashes and
   disappears" bug the user reported. Override the default to natural state so
   the final rest position is always visible. GSAP still animates FROM below TO
   natural (0), which now correctly matches the CSS default. */
[data-split-lines] .line > *,
[data-split-lines] .word,
[data-split-lines] .char {
  transform: none;
  transition: none;
}
[data-split-lines] .line {
  overflow: hidden; /* keep the mask reveal effect */
  display: block;
}
.section-head__title { opacity: 1; }

/* ----------  o-nama layout — timeline + right-side image  ---------- */
.timeline-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
.timeline-layout .timeline { max-width: 100%; }
.timeline-layout__aside {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 20px;
}
.timeline-layout__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #0a0a0b;
}
.timeline-layout__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s var(--ease-out);
}
.timeline-layout__media:hover img { transform: scale(1.04); }
.timeline-layout__media .ph__c { z-index: 2; }
.timeline-layout__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7,7,7,.7));
  z-index: 1;
  pointer-events: none;
}
.timeline-layout__caption {
  position: absolute;
  left: 18px; bottom: 16px;
  z-index: 3;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
.timeline-layout__fact {
  padding: 20px 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent);
}
.timeline-layout__fact-num {
  font-family: var(--ff-display);
  font-variation-settings: 'opsz' 144;
  font-weight: 400;
  font-size: clamp(2rem, 3vw + 1rem, 3.4rem);
  color: var(--red);
  line-height: 1;
  letter-spacing: -.02em;
  background: linear-gradient(180deg, var(--red-hi), var(--red) 60%, var(--red-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.timeline-layout__fact-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-mut);
  margin-top: 8px;
  display: block;
}
@media (max-width: 900px) {
  .timeline-layout { grid-template-columns: 1fr; }
  .timeline-layout__aside { position: static; }
  .timeline-layout__media { aspect-ratio: 16 / 10; }
}

/* ----------  Map (real embed)  ---------- */
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #0a0a0b;
  max-width: var(--max-w);
  margin: 0 auto;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(.35) contrast(1.05);
}
.map-embed__pin {
  position: absolute;
  left: 12px; top: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(7,7,7,.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text);
  pointer-events: none;
}
.map-embed__pin::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--red);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(240,35,40,.25), 0 0 12px var(--red-glow);
}
.map-embed__cta {
  position: absolute;
  right: 12px; bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(7,7,7,.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text);
  transition: color .2s, border-color .2s;
}
.map-embed__cta:hover { color: var(--red); border-color: var(--red); }
.map-embed__cta svg { width: 12px; height: 12px; }

@media (max-width: 900px) {
  .map-embed { aspect-ratio: 4 / 3; }
}

/* ----------  Product cards media aspect (index) — real photos  ---------- */
.product__media--photo::before,
.product__media--photo .product__corner { z-index: 3; }

/* ----------  Reveal safety net: keep content visible ---------- */
/* If ScrollTrigger fails to init but body has .is-loaded, force reveal. */
body.is-loaded .reveal:not(.is-inview) {
  opacity: 1;
  transform: none;
}
/* Fallback for .cap items — the capacity pin used to hide them via GSAP,
   here we ensure they can never be permanently hidden. */
.cap { display: grid; }

/* ----------  Safe zone for floating widgets on small screens  ---------- */
@media (max-width: 600px) {
  .ai-fab {
    padding: 10px 14px 10px 10px;
    height: 48px;
    font-size: 10.5px;
  }
  .ai-fab__label { display: none; }
  .ai-fab__dot { width: 28px; height: 28px; }
  .to-top { width: 44px; height: 44px; }
  .ai-panel {
    left: 8px; right: 8px;
    width: auto;
    bottom: calc(48px + 8px + 12px);
  }
}
