/* ============================================================
   IMPACT INSURANCE — design system
   Black & gold cinematic. Tune tokens against the final logo.
   ============================================================ */

:root {
  --bg: #0A0A0B;
  --panel: #111113;
  --panel-2: #16161a;
  --ink: #F5F3EC;
  --muted: #A8A39A;
  --faint: #6b675f;
  /* Softened, muted gold — calmer than the original brass, used sparingly */
  --gold: #C6AC6E;
  --gold-deep: #A4884B;
  --gold-bright: #DCC78E;
  --gold-pale: #ECE0C2;
  /* Slate "trust" tone — bridges tech-forward + traditional insurance */
  --trust: #3C4A66;
  --trust-deep: #28344C;
  --trust-line: rgba(120, 140, 175, 0.20);
  /* Hairlines neutralized so gold no longer tints every border/rule */
  --hairline: rgba(245, 243, 236, 0.14);
  --hairline-soft: rgba(245, 243, 236, 0.08);
  --gold-grad: linear-gradient(110deg, #A4884B 0%, #DCC78E 55%, #ECE0C2 100%);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-luxe: cubic-bezier(0.65, 0, 0.15, 1);
  --nav-h: 76px;
  --radius: 14px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
ul[role="list"], ol[role="list"] { list-style: none; }
::selection { background: var(--gold); color: var(--bg); }

/* custom cursor active: hide native on fine pointers only */
@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button,
  body.has-cursor [data-cursor], body.has-cursor input[type="range"],
  body.has-cursor label, body.has-cursor select { cursor: none; }
}

/* ---------- a11y ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 10000;
  background: var(--gold); color: var(--bg); font-weight: 600;
  padding: 12px 20px; border-radius: 6px; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- film grain + bloom ---------- */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  pointer-events: none; z-index: 9000; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  border-radius: 50%;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px; background: var(--gold-bright);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid var(--gold-bright);
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
              background-color 0.3s, border-color 0.3s;
}
.cursor-ring .cursor-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--bg); opacity: 0;
  transition: opacity 0.2s; white-space: nowrap;
}
.cursor-ring.is-hover { width: 56px; height: 56px; background: var(--gold-bright); border-color: var(--gold-bright); }
.cursor-ring.is-label { width: 72px; height: 72px; background: var(--gold-bright); border-color: var(--gold-bright); mix-blend-mode: normal; }
.cursor-ring.is-label .cursor-label { opacity: 1; }
.cursor-ring.is-down { transform: translate(-50%, -50%) scale(0.82); }
.cursor-ring.is-text { width: 4px; height: 34px; border-radius: 2px; background: var(--gold-bright); border-color: transparent; }
body.cursor-hidden .cursor-dot, body.cursor-hidden .cursor-ring { opacity: 0; }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ---------- page transition curtain (fallback) ---------- */
.transition-veil {
  position: fixed; inset: 0; z-index: 9500; background: var(--bg);
  pointer-events: none; opacity: 0; transition: opacity 0.34s var(--ease-luxe);
}
.transition-veil::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 52px; height: 52px;
  border: 1px solid var(--hairline); transform: translate(-50%, -50%) rotate(45deg);
  opacity: 0; transition: opacity 0.3s;
}
body.is-leaving .transition-veil { opacity: 1; pointer-events: all; }
body.is-leaving .transition-veil::after { opacity: 1; }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.32s var(--ease-luxe) both; }
::view-transition-new(root) { animation: vt-in 0.38s var(--ease-luxe) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-1.5%); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(1.5%); } }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  z-index: 8800; background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  background: var(--gold-grad); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 8500;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, transform 0.4s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline-soft);
}
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 54px; width: auto; display: block; transition: filter 0.3s; }
.brand:hover .brand-logo { filter: brightness(1.18); }
.brand-logo-footer { height: 60px; }
@media (max-width: 900px) { .brand-logo { height: 44px; } }
.brand-mark {
  width: 34px; height: 34px; border: 1px solid var(--gold);
  display: grid; place-items: center; transform: rotate(45deg);
  transition: transform 0.5s var(--ease-out);
}
.brand-mark span {
  transform: rotate(-45deg); font-family: var(--font-display);
  font-weight: 600; font-size: 17px; color: var(--gold-bright); line-height: 1;
}
.brand:hover .brand-mark { transform: rotate(135deg); }
.brand-name {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--ink);
}
.brand-name em { font-style: normal; color: var(--muted); font-size: 10px; display: block; letter-spacing: 0.22em; }
.nav-links { display: flex; gap: clamp(16px, 2.4vw, 34px); align-items: center; list-style: none; }
.nav-links a {
  font-size: 13.5px; letter-spacing: 0.06em; color: var(--muted);
  position: relative; padding: 6px 2px; transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; position: relative; z-index: 9100;
  align-items: center; justify-content: center; flex-direction: column; gap: 6px;
}
.menu-toggle i { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: transform 0.35s var(--ease-out), opacity 0.2s; }
.menu-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* full-screen menu */
.menu-overlay {
  position: fixed; inset: 0; z-index: 9050; background: rgba(10, 10, 11, 0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(24px, 8vw, 120px);
  opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease-luxe), visibility 0.45s;
}
.menu-overlay.is-open { opacity: 1; visibility: visible; }
.menu-overlay nav ol { list-style: none; counter-reset: menu; }
.menu-overlay nav a {
  counter-increment: menu;
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--font-display); font-size: clamp(30px, 6vw, 56px);
  color: var(--ink); padding: 0.32em 0; line-height: 1.05;
  border-bottom: 1px solid var(--hairline-soft);
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out), color 0.3s;
}
.menu-overlay nav a::before {
  content: counter(menu, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 13px; color: var(--gold);
}
.menu-overlay.is-open nav a { opacity: 1; transform: none; }
.menu-overlay nav a:hover { color: var(--gold-bright); }
.menu-foot { margin-top: 40px; display: flex; gap: 28px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14.5px; font-weight: 600; letter-spacing: 0.03em;
  padding: 15px 30px; border-radius: 999px;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.35s var(--ease-out), border-color 0.3s, transform 0.3s var(--ease-out);
  will-change: transform;
}
.btn .arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--gold-grad); opacity: 0; transition: opacity 0.35s;
}
.btn-gold:hover::before { opacity: 1; }
.btn-ghost { border: 1px solid var(--hairline); color: var(--gold-bright); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); }
.btn-line {
  padding: 6px 2px; border-radius: 0; font-weight: 500; color: var(--gold-bright);
  border-bottom: 1px solid var(--hairline);
}
.btn-line:hover { border-bottom-color: var(--gold-bright); }
.btn-sm { padding: 10px 22px; font-size: 13px; }

/* ---------- layout primitives ---------- */
.section {
  position: relative;
  padding: clamp(90px, 12vh, 160px) clamp(20px, 5vw, 72px);
  max-width: 1480px; margin: 0 auto;
}
.section-full { max-width: none; }
.hairline-top { border-top: 1px solid var(--hairline); }
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 26px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--muted); opacity: 0.6; flex: none; }
.headline {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(34px, 5vw, 64px); line-height: 1.06;
  letter-spacing: -0.01em; max-width: 16ch; text-wrap: balance;
}
.headline .gold {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); max-width: 56ch; margin-top: 24px; }
.mono-note { font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: 0.06em; }
.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: start; }

/* reveal primitives (JS adds .is-in) */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-line { overflow: hidden; display: block; padding-bottom: 0.18em; margin-bottom: -0.18em; }
.reveal-line > span { display: block; transform: translateY(110%); transition: transform 1s var(--ease-luxe); }
.is-in .reveal-line > span, .reveal-line.is-in > span { transform: none; }
[data-stagger] > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- placeholder chips (never silent filler) ---------- */
.ph {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--gold-bright); background: rgba(201, 162, 39, 0.08);
  border: 1px dashed rgba(201, 162, 39, 0.45); border-radius: 6px;
  padding: 6px 12px;
}
.ph::before { content: "◈"; font-size: 10px; }
.ph-block {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 180px; text-align: center; padding: 32px;
  border: 1px dashed rgba(201, 162, 39, 0.4); border-radius: var(--radius);
  background: rgba(201, 162, 39, 0.04);
  font-family: var(--font-mono); font-size: 13px; color: var(--gold-bright); letter-spacing: 0.05em;
}
.ph-block small { color: var(--muted); font-family: var(--font-body); letter-spacing: 0; font-size: 13px; max-width: 40ch; }

/* ============================================================
   HOME — signature components
   ============================================================ */

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 40px) clamp(20px, 5vw, 72px) 90px;
  max-width: none; overflow: hidden;
}
/* cycling hero words (replaces the 3D lens) — Clarity / Transparency / Control */
.hero-words {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: clamp(24px, 8vw, 150px); pointer-events: none;
}
.hero-words-frame {
  display: flex; flex-direction: column; align-items: flex-end; text-align: right;
  gap: 14px; max-width: 50vw;
}
.hw-label {
  font-family: var(--font-mono); font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.26em; text-transform: uppercase; color: #ffffff;
}
.hw-cycle {
  position: relative; display: block; min-height: 1.25em; min-width: 6ch;
  padding-bottom: 0.18em; overflow: visible;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(56px, 9.4vw, 156px); line-height: 1.16; letter-spacing: -0.02em;
}
.hw-word {
  position: absolute; right: 0; top: 0; white-space: nowrap;
  color: #ffffff;
  opacity: 0; transform: translateY(0.45em);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.hw-word.is-active { opacity: 1; transform: translateY(0); }
.hw-word.is-exit { opacity: 0; transform: translateY(-0.45em); }
@media (max-width: 920px) { .hero-words { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hw-word { transition: none; }
}
.hero-inner { position: relative; z-index: 2; max-width: 1480px; margin: 0 auto; width: 100%; }
.hero-kicker {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 30px;
  display: flex; align-items: center; gap: 14px;
}
.hero-kicker::before { content: ""; width: 44px; height: 1px; background: var(--muted); opacity: 0.6; }
.hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(46px, 8.4vw, 124px); line-height: 1.0; letter-spacing: -0.015em;
  max-width: 11ch;
}
.hero h1 .gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); font-size: clamp(17px, 1.5vw, 21px); max-width: 46ch; margin-top: 30px; }
.hero-actions { display: flex; gap: 18px; margin-top: 44px; flex-wrap: wrap; }
.hero-meta {
  position: absolute; bottom: 36px; left: clamp(20px, 5vw, 72px); right: clamp(20px, 5vw, 72px);
  display: flex; justify-content: space-between; align-items: flex-end; z-index: 2;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--faint);
}
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); background: none; }
.scroll-cue .line { width: 1px; height: 44px; background: var(--hairline); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--gold-bright); animation: cue 2.1s var(--ease-luxe) infinite;
}
@keyframes cue { 0% { top: -100%; } 55% { top: 0; } 100% { top: 100%; } }

/* ---------- black box → glass box ---------- */
.glassbox-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: center; margin-top: 60px; }
.gb-scene { perspective: 1400px; display: grid; place-items: center; min-height: 420px; }
.gb-box {
  position: relative; width: min(340px, 78vw); aspect-ratio: 1;
  transform-style: preserve-3d;
  transform: rotateX(12deg) rotateY(-24deg);
  transition: transform 1.1s var(--ease-luxe);
}
.gb-face {
  position: absolute; inset: 0; border: 1px solid #2c2c30;
  background: #0d0d0f;
  transition: background-color 0.9s var(--ease-luxe), border-color 0.9s var(--ease-luxe), opacity 0.9s;
  display: grid; place-items: center;
}
.gb-face.front { transform: translateZ(170px); }
.gb-face.back { transform: rotateY(180deg) translateZ(170px); }
.gb-face.left { transform: rotateY(-90deg) translateZ(170px); }
.gb-face.right { transform: rotateY(90deg) translateZ(170px); }
.gb-face.top { transform: rotateX(90deg) translateZ(170px); }
.gb-face.bottom { transform: rotateX(-90deg) translateZ(170px); }
.gb-lock { color: #3a3a3f; transition: opacity 0.5s; }
.gb-interior {
  position: absolute; inset: 12%; transform: translateZ(10px);
  display: flex; flex-direction: column; gap: 10px; justify-content: center;
  opacity: 0; transition: opacity 0.7s var(--ease-out) 0.25s;
}
.gb-chip {
  font-family: var(--font-mono); font-size: clamp(9px, 1.1vw, 12px); letter-spacing: 0.1em;
  color: var(--gold-bright); border: 1px solid rgba(232, 198, 107, 0.5);
  background: rgba(232, 198, 107, 0.07); border-radius: 5px; padding: 9px 12px;
  display: flex; justify-content: space-between; gap: 10px;
  transform: translateY(8px); opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.6s;
}
.gb-chip .ok { color: var(--gold-pale); }
.gb-box.is-glass { transform: rotateX(8deg) rotateY(18deg); }
.gb-box.is-glass .gb-face {
  background: rgba(232, 198, 107, 0.045);
  border-color: rgba(201, 162, 39, 0.55);
}
.gb-box.is-glass .gb-lock { opacity: 0; }
.gb-box.is-glass .gb-interior { opacity: 1; }
.gb-box.is-glass .gb-chip { transform: none; opacity: 1; }
.gb-box.is-glass .gb-chip:nth-child(1) { transition-delay: 0.35s; }
.gb-box.is-glass .gb-chip:nth-child(2) { transition-delay: 0.5s; }
.gb-box.is-glass .gb-chip:nth-child(3) { transition-delay: 0.65s; }
.gb-glow {
  position: absolute; inset: -30%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.16), transparent 65%);
  opacity: 0; transition: opacity 1s;
}
.gb-box.is-glass + .gb-glow, .gb-scene .gb-box.is-glass ~ .gb-glow { opacity: 1; }
.gb-toggle-wrap { display: flex; align-items: center; gap: 18px; margin-top: 38px; flex-wrap: wrap; }
.gb-state-label { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); transition: color 0.4s; }
.gb-state-label.is-active { color: var(--gold-bright); }
.gb-toggle {
  width: 72px; height: 36px; border-radius: 999px; border: 1px solid var(--hairline);
  background: var(--panel); position: relative; flex: none;
  transition: background-color 0.5s, border-color 0.5s;
}
.gb-toggle::after {
  content: ""; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px;
  border-radius: 50%; background: var(--muted);
  transition: transform 0.5s var(--ease-luxe), background-color 0.5s;
}
.gb-toggle[aria-checked="true"] { background: rgba(201, 162, 39, 0.18); border-color: var(--gold); }
.gb-toggle[aria-checked="true"]::after { transform: translateX(36px); background: var(--gold-bright); }
.gb-copy-swap { position: relative; min-height: 120px; margin-top: 26px; }
.gb-copy { position: absolute; inset: 0; opacity: 0; transform: translateY(12px); transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out); }
.gb-copy.is-active { opacity: 1; transform: none; }
.gb-copy h3 { font-family: var(--font-display); font-size: 24px; font-weight: 500; margin-bottom: 10px; }
.gb-copy p { color: var(--muted); max-width: 46ch; }

/* ---------- pillars 01–03 ---------- */
.pillars { max-width: none; padding-left: 0; padding-right: 0; }
.pillars-track { position: relative; }
.pillar {
  min-height: 92svh; display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 90px);
  max-width: 1480px; margin: 0 auto; padding: 60px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--hairline-soft);
}
.pillar-num {
  font-family: var(--font-mono); font-size: clamp(80px, 13vw, 190px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(201, 162, 39, 0.4);
  /* golden-thread fill: --numfill scrubs 0% → 100% as the thread passes */
  background-image: linear-gradient(180deg, #F4E2A1, #E8C66B 45%, #9C7A1E);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% var(--numfill, 0%);
  -webkit-background-clip: text;
  background-clip: text;
}
@media (prefers-reduced-motion: reduce) { .pillar-num { --numfill: 100%; } }

#main { position: relative; }
#main > section { position: relative; z-index: 1; }
.pillar h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 4.6vw, 60px); margin: 18px 0 18px; }
.pillar p { color: var(--muted); max-width: 50ch; }
.pillar-visual { display: grid; place-items: center; }
.pillar-visual svg { width: min(380px, 80%); }

/* ---------- quote engine ---------- */
.engine-rail { position: relative; margin-top: 70px; }
.engine-line { position: absolute; left: 27px; top: 0; bottom: 0; width: 1px; background: var(--hairline-soft); }
.engine-line .fill { display: block; width: 100%; height: 0%; background: var(--gold-grad); }
.engine-step { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(18px, 3vw, 48px); padding: clamp(36px, 5vh, 64px) 0; align-items: center; }
.engine-node {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--hairline);
  background: var(--bg); display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
  position: relative; z-index: 1; transition: border-color 0.5s, color 0.5s, box-shadow 0.5s;
}
.engine-step.is-active .engine-node {
  border-color: var(--gold-bright); color: var(--gold-bright);
  box-shadow: 0 0 26px rgba(201, 162, 39, 0.35);
}
.engine-step h3 { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; margin-bottom: 8px; transition: color 0.4s; }
.engine-step p { color: var(--muted); font-size: 16px; max-width: 44ch; }
.engine-step:not(.is-active) h3 { color: var(--faint); }
.engine-viz {
  border: 1px solid var(--hairline-soft); border-radius: var(--radius); background: var(--panel);
  padding: 22px; min-height: 150px; display: flex; flex-direction: column; gap: 9px; justify-content: center;
  opacity: 0.45; transform: translateY(10px); transition: opacity 0.6s, transform 0.6s var(--ease-out), border-color 0.6s;
}
.engine-step.is-active .engine-viz { opacity: 1; transform: none; border-color: var(--hairline); }
.engine-viz .row {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; color: var(--muted);
}
.engine-viz .bar { height: 5px; border-radius: 3px; background: #232328; flex: 1; overflow: hidden; }
.engine-viz .bar i { display: block; height: 100%; width: 0%; background: var(--gold-grad); transition: width 1.1s var(--ease-luxe) 0.15s; }
.engine-step.is-active .bar i { width: var(--w, 70%); }
.engine-viz .tag { color: var(--gold-bright); }

/* ---------- coverage posture ---------- */
.posture-panel {
  margin-top: 60px; border: 1px solid var(--hairline-soft); border-radius: var(--radius);
  background: var(--panel); padding: clamp(26px, 4vw, 56px);
}
.posture-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.posture-stop { font-family: var(--font-display); font-size: clamp(26px, 3vw, 40px); font-weight: 500; }
.posture-slider { position: relative; padding: 18px 0 6px; }
.posture-slider input[type="range"] {
  width: 100%; appearance: none; -webkit-appearance: none; height: 2px;
  background: linear-gradient(90deg, var(--gold) var(--pct, 50%), #2a2a2e var(--pct, 50%));
  border-radius: 2px; outline-offset: 8px;
}
.posture-slider input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold-bright); border: 5px solid var(--bg);
  box-shadow: 0 0 0 1px var(--gold), 0 0 22px rgba(201, 162, 39, 0.5);
}
.posture-slider input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: var(--gold-bright);
  border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--gold), 0 0 22px rgba(201, 162, 39, 0.5);
}
.posture-ticks { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-top: 14px; }
.posture-ticks button { color: inherit; letter-spacing: inherit; text-transform: inherit; font-family: inherit; font-size: inherit; padding: 6px; transition: color 0.3s; }
.posture-ticks button.is-active { color: var(--gold-bright); }
.posture-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); margin-top: 44px; align-items: start; }
.posture-bars { display: flex; flex-direction: column; gap: 16px; }
.pbar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 92px; gap: 14px; align-items: center; }
.pbar .name { font-size: 13.5px; color: var(--muted); }
.pbar .track { height: 9px; border-radius: 5px; background: #232328; overflow: hidden; position: relative; }
.pbar .track i { position: absolute; inset: 0 auto 0 0; width: 0%; background: var(--gold-grad); border-radius: 5px; transition: width 0.8s var(--ease-luxe); }
.pbar .state { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-align: right; transition: color 0.4s; }
.pbar .state.covered { color: var(--gold-bright); }
.pbar .state.partial { color: var(--muted); }
.pbar .state.exposed { color: #8a5a4a; }
.posture-readout { border-left: 1px solid var(--hairline); padding-left: clamp(18px, 2.5vw, 36px); }
.posture-readout h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.posture-readout p { color: var(--muted); font-size: 15.5px; }
.posture-premium { display: flex; gap: 6px; margin: 22px 0 10px; }
.posture-premium b { width: 26px; height: 8px; border-radius: 4px; background: #232328; transition: background-color 0.4s; }
.posture-premium b.on { background: var(--gold); }
.disclaimer { font-size: 12.5px; color: var(--faint); margin-top: 26px; max-width: 70ch; }

/* ---------- industries ---------- */
.industries-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--hairline-soft); border: 1px solid var(--hairline-soft); margin-top: 60px; }
.industry {
  background: var(--bg); padding: clamp(26px, 3vw, 44px); min-height: 290px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  position: relative; overflow: hidden; transition: background-color 0.5s;
}
.industry:hover { background: var(--panel); }
.industry .num { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.industry h3 { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; }
.industry p { color: var(--muted); font-size: 14.5px; }
.industry svg { width: 54px; height: 54px; stroke: var(--gold); opacity: 0.85; transition: transform 0.6s var(--ease-out); }
.industry:hover svg { transform: translateY(-6px) scale(1.06); }
.industry::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.5s var(--ease-out);
}
.industry:hover::after { transform: scaleX(1); }

/* ---------- coverage lines preview / explorer ---------- */
.lines-list { margin-top: 50px; border-top: 1px solid var(--hairline-soft); }
.line-item { border-bottom: 1px solid var(--hairline-soft); }
.line-head {
  width: 100%; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center; gap: clamp(14px, 3vw, 40px); padding: clamp(22px, 3vh, 34px) 4px;
  text-align: left; transition: padding-left 0.4s var(--ease-out);
}
.line-head:hover { padding-left: 14px; }
.line-head .idx { font-family: var(--font-mono); font-size: 13px; color: var(--gold); }
.line-head .name { font-family: var(--font-display); font-size: clamp(22px, 3vw, 38px); font-weight: 500; transition: color 0.3s; }
.line-head:hover .name { color: var(--gold-bright); }
.line-head .plus { width: 30px; height: 30px; position: relative; flex: none; }
.line-head .plus::before, .line-head .plus::after {
  content: ""; position: absolute; background: var(--gold); top: 50%; left: 50%;
  transition: transform 0.4s var(--ease-out);
}
.line-head .plus::before { width: 16px; height: 1.5px; transform: translate(-50%, -50%); }
.line-head .plus::after { width: 1.5px; height: 16px; transform: translate(-50%, -50%); }
.line-item.is-open .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.line-body { overflow: hidden; max-height: 0; transition: max-height 0.7s var(--ease-luxe); }
.line-body-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 70px); padding: 6px 4px 46px 0; }
.line-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.line-col h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.line-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.line-col li { font-size: 14.5px; color: var(--muted); padding-left: 18px; position: relative; }
.line-col li::before { content: "—"; position: absolute; left: 0; color: var(--gold-deep); }
.line-diagram { display: grid; place-items: center; border-left: 1px solid var(--hairline-soft); }
.line-diagram svg { width: min(280px, 90%); }

/* ---------- ticket pipeline ---------- */
.pipeline-types { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 50px; }
.pipeline-type {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em;
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--hairline-soft);
  color: var(--muted); transition: all 0.3s var(--ease-out);
}
.pipeline-type:hover { border-color: var(--hairline); color: var(--ink); }
.pipeline-type.is-active { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.pipeline-stage-wrap { margin-top: 56px; }
.pipeline-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.pipeline-track::before { content: ""; position: absolute; top: 11px; left: 10%; right: 10%; height: 1px; background: var(--hairline-soft); }
.pipeline-track .pulse { position: absolute; top: 11px; left: 10%; height: 1px; width: 0%; max-width: 80%; background: var(--gold-grad); transition: width 0.9s var(--ease-luxe); }
.pstage { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; position: relative; }
.pstage .dot {
  width: 23px; height: 23px; border-radius: 50%; border: 1px solid var(--hairline-soft);
  background: var(--bg); display: grid; place-items: center; transition: all 0.4s;
}
.pstage .dot i { width: 7px; height: 7px; border-radius: 50%; background: transparent; transition: background-color 0.4s; }
.pstage.is-done .dot, .pstage.is-now .dot { border-color: var(--gold); }
.pstage.is-done .dot i { background: var(--gold-deep); }
.pstage.is-now .dot { box-shadow: 0 0 18px rgba(201, 162, 39, 0.55); }
.pstage.is-now .dot i { background: var(--gold-bright); }
.pstage h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); transition: color 0.4s; }
.pstage.is-done h4, .pstage.is-now h4 { color: var(--ink); }
.pstage p { font-size: 12.5px; color: var(--faint); max-width: 20ch; min-height: 3em; }
.pipeline-card {
  margin: 54px auto 0; max-width: 560px; border: 1px solid var(--hairline-soft); border-radius: var(--radius);
  background: var(--panel); padding: 26px 30px; font-family: var(--font-mono); font-size: 12.5px;
  display: flex; flex-direction: column; gap: 12px;
}
.pipeline-card .row { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); letter-spacing: 0.04em; }
.pipeline-card .row b { color: var(--gold-bright); font-weight: 500; }
.pipeline-card .status-line { border-top: 1px solid var(--hairline-soft); padding-top: 12px; color: var(--ink); }
.pipeline-replay { margin: 30px auto 0; display: flex; justify-content: center; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 60px; }
.tile {
  border: 1px solid var(--hairline-soft); border-radius: var(--radius); background: var(--panel);
  padding: clamp(22px, 2.6vw, 36px); position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 210px;
  transition: border-color 0.4s, transform 0.5s var(--ease-out);
}
.tile:hover { border-color: var(--hairline); transform: translateY(-5px); }
.tile h3 { font-family: var(--font-display); font-size: clamp(19px, 1.8vw, 26px); font-weight: 500; line-height: 1.2; }
.tile p { color: var(--muted); font-size: 14px; }
.tile .tile-mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.tile-3 { grid-column: span 3; }
.tile-2 { grid-column: span 2; }
.tile-4 { grid-column: span 4; }
.tile-hero { background: linear-gradient(140deg, #15130c, var(--panel) 60%); }
.tile-hero h3 { font-size: clamp(26px, 2.6vw, 38px); }
.tile-hero .gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tile-glow::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.13), transparent 70%);
}

/* ---------- tabbed module ---------- */
.tabs-bar { display: flex; flex-wrap: wrap; gap: clamp(10px, 3vw, 50px); border-bottom: 1px solid var(--hairline-soft); margin-top: 56px; }
.tab-btn {
  padding: 18px 6px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--faint); position: relative; white-space: nowrap; transition: color 0.3s;
}
.tab-btn::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.45s var(--ease-out);
}
.tab-btn:hover { color: var(--muted); }
.tab-btn.is-active { color: var(--gold-bright); }
.tab-btn.is-active::after { transform: scaleX(1); }
.tab-panels { position: relative; margin-top: 50px; }
.tab-panel { display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); }
.tab-panel.is-active { display: grid; animation: panel-in 0.6s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(18px); } }
.tab-panel h3 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 42px); font-weight: 500; margin-bottom: 18px; }
.tab-panel p { color: var(--muted); }
.tab-list { list-style: none; display: flex; flex-direction: column; }
.tab-list li {
  padding: 18px 0; border-bottom: 1px solid var(--hairline-soft);
  display: flex; gap: 16px; align-items: baseline; font-size: 15.5px; color: var(--muted);
}
.tab-list li::before { content: "→"; color: var(--gold); flex: none; }

/* ---------- the impact method (document) ---------- */
.method { background: var(--panel); max-width: none; }
.method-doc {
  max-width: 980px; margin: 0 auto; border: 1px solid var(--hairline-soft);
  background: var(--bg); padding: clamp(30px, 5vw, 80px);
  font-family: var(--font-mono);
}
.method-doc header { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--hairline); padding-bottom: 26px; margin-bottom: 40px; font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.method-doc h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3.6vw, 46px); letter-spacing: 0; color: var(--ink); margin-bottom: 8px; }
.method-doc h3 { font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin: 44px 0 16px; }
.method-doc p { font-family: var(--font-body); color: var(--muted); font-size: 16px; max-width: 68ch; }
.method-doc p + p { margin-top: 14px; }
.method-steps { counter-reset: m; margin-top: 8px; }
.method-steps li {
  list-style: none; counter-increment: m; padding: 20px 0 20px 64px; position: relative;
  border-bottom: 1px dashed var(--hairline-soft); font-family: var(--font-body); color: var(--muted); font-size: 16px;
}
.method-steps li b { color: var(--ink); font-weight: 600; display: block; margin-bottom: 4px; }
.method-steps li::before {
  content: counter(m, decimal-leading-zero); position: absolute; left: 0; top: 22px;
  font-family: var(--font-mono); font-size: 13px; color: var(--gold);
  border: 1px solid var(--hairline); border-radius: 50%; width: 38px; height: 38px;
  display: grid; place-items: center;
}

/* ---------- tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 60px; align-items: stretch; }
.tier {
  border: 1px solid var(--hairline-soft); border-radius: var(--radius); background: var(--panel);
  padding: clamp(26px, 3vw, 42px); display: flex; flex-direction: column; gap: 0;
  transition: border-color 0.45s, transform 0.5s var(--ease-out), background-color 0.45s;
}
.tier.is-featured, .tier:hover { border-color: var(--hairline); transform: translateY(-6px); }
.tier.is-featured { background: linear-gradient(160deg, #16140d, var(--panel) 55%); border-color: rgba(201, 162, 39, 0.45); }
.tier .tier-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.tier h3 { font-family: var(--font-display); font-size: clamp(23px, 2.2vw, 30px); font-weight: 500; margin-bottom: 12px; }
.tier .who { color: var(--muted); font-size: 14.5px; padding-bottom: 22px; border-bottom: 1px solid var(--hairline-soft); margin-bottom: 22px; min-height: 86px; }
.tier ul { list-style: none; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tier li { font-size: 14.5px; color: var(--muted); padding-left: 22px; position: relative; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-size: 12px; }
.tier .btn { margin-top: 30px; justify-content: center; }

/* ---------- testimonials ---------- */
.testimonials { overflow: hidden; max-width: none; }
.testi-track { display: flex; transition: transform 0.75s var(--ease-luxe); margin-top: 60px; }
.testi-slide { flex: 0 0 100%; padding: 0 clamp(20px, 12vw, 220px); }
.testi-slide blockquote { font-family: var(--font-display); font-size: clamp(22px, 3vw, 38px); font-weight: 450; line-height: 1.32; text-wrap: balance; }
.testi-slide blockquote::before { content: "“"; color: var(--gold); }
.testi-slide blockquote::after { content: "”"; color: var(--gold); }
.testi-slide figcaption { margin-top: 30px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.12em; color: var(--muted); }
.testi-source { color: var(--gold-bright); text-decoration: none; border-bottom: 1px solid rgba(232, 198, 107, 0.35); transition: border-color 0.3s; }
.testi-source:hover { border-bottom-color: var(--gold-bright); }
.testi-nav { display: flex; gap: 14px; justify-content: center; margin-top: 50px; align-items: center; }
.testi-arrow {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--hairline);
  color: var(--gold-bright); display: grid; place-items: center; transition: all 0.3s;
}
.testi-arrow:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.testi-dots { display: flex; gap: 8px; }
.testi-dots button { width: 8px; height: 8px; border-radius: 50%; background: #2c2c30; transition: all 0.3s; padding: 0; }
.testi-dots button.is-active { background: var(--gold-bright); transform: scale(1.3); }

/* ---------- closing CTA ---------- */
.closing {
  max-width: none; text-align: center; min-height: 88svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.closing::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201, 162, 39, 0.1), transparent 60%);
  pointer-events: none;
}
.closing h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 5.6vw, 78px); line-height: 1.08; max-width: 20ch; text-wrap: balance; position: relative; }
.closing h2 .gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.closing .hero-actions { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); background: var(--bg); max-width: none; padding: 70px clamp(20px, 5vw, 72px) 40px; }
.footer-grid { max-width: 1480px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: clamp(28px, 4vw, 70px); }
.footer-grid h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-grid a, .footer-grid li { font-size: 14px; color: var(--muted); transition: color 0.25s; }
.footer-grid a:hover { color: var(--gold-bright); }
.footer-legal {
  max-width: 1480px; margin: 56px auto 0; padding-top: 26px; border-top: 1px solid var(--hairline-soft);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--faint);
}
.footer-disclaimer { max-width: 1480px; margin: 26px auto 0; font-size: 12px; color: var(--faint); line-height: 1.7; }

/* ---------- forms / modals ---------- */
.modal {
  position: fixed; inset: 0; z-index: 9200; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 5, 6, 0.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal-card {
  color-scheme: dark; /* native date pickers render dark */
  position: relative; width: min(680px, 100%); max-height: 90svh; overflow: auto;
  background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 52px); animation: panel-in 0.45s var(--ease-out);
}
.modal-close { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--hairline-soft); color: var(--muted); display: grid; place-items: center; transition: all 0.3s; }
.modal-close:hover { color: var(--ink); border-color: var(--hairline); }
.form-steps-bar { display: flex; gap: 6px; margin: 22px 0 34px; }
.form-steps-bar i { height: 3px; flex: 1; border-radius: 2px; background: #2a2a2e; transition: background-color 0.4s; }
.form-steps-bar i.is-done { background: var(--gold); }
.form-step { display: none; }
.form-step.is-active { display: block; animation: panel-in 0.4s var(--ease-out); }
.form-step h3 { font-family: var(--font-display); font-size: 26px; font-weight: 500; margin-bottom: 6px; }
.form-step .hint { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--hairline-soft); border-radius: 9px;
  color: var(--ink); padding: 14px 16px; font-size: 15.5px; transition: border-color 0.3s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field .err { display: none; color: #c98a6b; font-size: 12.5px; margin-top: 7px; }
.field.has-error input, .field.has-error select { border-color: #8a5a4a; }
.field.has-error .err { display: block; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.choice {
  border: 1px solid var(--hairline-soft); border-radius: 10px; padding: 14px; text-align: center;
  font-size: 13.5px; color: var(--muted); transition: all 0.25s; user-select: none;
}
.choice:hover { border-color: var(--hairline); color: var(--ink); }
.choice.is-selected { border-color: var(--gold); color: var(--gold-bright); background: rgba(201, 162, 39, 0.07); }
.form-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 34px; }
.form-success { text-align: center; padding: 30px 0; }
.form-success .ok-ring { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--gold-bright); font-size: 26px; }
.privacy-note { font-size: 12px; color: var(--faint); margin-top: 22px; line-height: 1.6; }
.privacy-note a { color: var(--muted); text-decoration: underline; }
.scheduler-frame { margin-top: 26px; border: 1px dashed rgba(201, 162, 39, 0.4); border-radius: 10px; min-height: 420px; display: grid; place-items: center; }

/* ---------- chatbot ---------- */
.chat-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 9150;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--gold); color: var(--bg); display: grid; place-items: center;
  box-shadow: 0 8px 32px rgba(201, 162, 39, 0.35); transition: transform 0.35s var(--ease-out);
}
.chat-fab:hover { transform: translateY(-4px) scale(1.05); }
.chat-panel {
  position: fixed; right: 26px; bottom: 100px; z-index: 9150;
  width: min(390px, calc(100vw - 40px)); height: min(560px, 70svh);
  background: var(--panel); border: 1px solid var(--hairline); border-radius: 18px;
  display: none; flex-direction: column; overflow: hidden;
  animation: panel-in 0.4s var(--ease-out);
}
.chat-panel.is-open { display: flex; }
.chat-head { padding: 18px 20px; border-bottom: 1px solid var(--hairline-soft); display: flex; justify-content: space-between; align-items: center; }
.chat-head b { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-bright); font-weight: 500; }
.chat-log { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 85%; padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.55; }
.chat-msg.bot { background: var(--bg); border: 1px solid var(--hairline-soft); color: var(--muted); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.user { background: rgba(201, 162, 39, 0.14); color: var(--ink); border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 12px; }
.chat-quick button { font-size: 12px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--hairline-soft); color: var(--muted); transition: all 0.25s; }
.chat-quick button:hover { border-color: var(--gold); color: var(--gold-bright); }
.chat-input { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--hairline-soft); }
.chat-input input { flex: 1; background: var(--bg); border: 1px solid var(--hairline-soft); border-radius: 999px; color: var(--ink); padding: 11px 18px; font-size: 14px; }
.chat-input input:focus { outline: none; border-color: var(--gold); }
.chat-input button { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--bg); display: grid; place-items: center; flex: none; }

/* ============================================================
   SUBPAGES
   ============================================================ */
.page-hero { padding-top: calc(var(--nav-h) + clamp(70px, 12vh, 130px)); padding-bottom: clamp(40px, 7vh, 80px); }
.page-hero .headline { max-width: 20ch; }
.breadcrumb { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 30px; }
.breadcrumb a:hover { color: var(--gold-bright); }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; margin-top: 60px; }
.team-card { border: 1px solid var(--hairline-soft); border-radius: var(--radius); background: var(--panel); overflow: hidden; transition: border-color 0.4s, transform 0.5s var(--ease-out); }
.team-card:hover { border-color: var(--hairline); transform: translateY(-5px); }
.team-photo { aspect-ratio: 4 / 4.6; background: var(--bg); display: grid; place-items: center; border-bottom: 1px solid var(--hairline-soft); }
.team-meta { padding: 22px 24px 26px; }
.team-meta h3 { font-family: var(--font-display); font-size: 21px; font-weight: 500; }
.team-meta .role { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 6px 0 12px; }
.team-meta p { font-size: 14px; color: var(--muted); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-meta details { margin-top: 12px; }
.team-meta summary {
  list-style: none; cursor: pointer; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-bright);
  display: inline-flex; align-items: center; gap: 8px;
}
.team-meta summary::-webkit-details-marker { display: none; }
.team-meta summary::after { content: "+"; color: var(--gold); transition: transform 0.3s var(--ease-out); }
.team-meta details[open] summary::after { transform: rotate(45deg); }
.team-meta details p { margin-top: 12px; }
.team-meta details p + p { margin-top: 10px; }
.team-book { margin-top: 18px; }

/* resources */
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 60px; }
.res-card {
  border: 1px solid var(--hairline-soft); border-radius: var(--radius); background: var(--panel);
  padding: 30px; display: flex; flex-direction: column; gap: 14px; min-height: 240px;
  transition: border-color 0.4s, transform 0.5s var(--ease-out);
}
.res-card:hover { border-color: var(--hairline); transform: translateY(-5px); }
.res-card .res-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.res-card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 500; line-height: 1.25; }
.res-card p { font-size: 14px; color: var(--muted); flex: 1; }
.res-card .read { font-family: var(--font-mono); font-size: 12px; color: var(--gold-bright); letter-spacing: 0.1em; }

/* ticketing + portal shells */
.shell-banner {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--gold-bright);
  background: rgba(201, 162, 39, 0.07); border: 1px dashed rgba(201, 162, 39, 0.4);
  border-radius: 10px; padding: 14px 18px; margin-bottom: 44px;
}
.app-frame { border: 1px solid var(--hairline-soft); border-radius: var(--radius); background: var(--panel); overflow: hidden; margin-top: 30px; }
.app-topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--hairline-soft); font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.08em; flex-wrap: wrap; }
.app-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 560px; }
.app-side { border-right: 1px solid var(--hairline-soft); padding: 22px 0; }
.app-side button {
  display: flex; gap: 12px; align-items: center; width: 100%; text-align: left;
  padding: 13px 24px; font-size: 14px; color: var(--muted); border-left: 2px solid transparent; transition: all 0.25s;
}
.app-side button:hover { color: var(--ink); background: rgba(245, 243, 236, 0.03); }
.app-side button.is-active { color: var(--gold-bright); border-left-color: var(--gold); background: rgba(201, 162, 39, 0.06); }
.app-main { padding: clamp(20px, 3vw, 40px); }
.app-main h2 { font-family: var(--font-display); font-size: 26px; font-weight: 500; margin-bottom: 6px; }
.app-main .sub { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.ticket-row {
  display: grid; grid-template-columns: 90px minmax(0, 1fr) 150px 130px; gap: 14px; align-items: center;
  padding: 16px 18px; border: 1px solid var(--hairline-soft); border-radius: 10px; margin-bottom: 10px;
  font-size: 13.5px; transition: border-color 0.3s; background: var(--bg);
}
.ticket-row:hover { border-color: var(--hairline); }
.ticket-row .tid { font-family: var(--font-mono); font-size: 12px; color: var(--gold); }
.ticket-row .tname { color: var(--ink); }
.ticket-row .ttype { color: var(--faint); font-size: 12.5px; }
.status-pill {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; text-align: center;
}
.status-pill.received { background: rgba(245, 243, 236, 0.07); color: var(--muted); }
.status-pill.progress { background: rgba(201, 162, 39, 0.14); color: var(--gold-bright); }
.status-pill.carrier { background: rgba(201, 162, 39, 0.07); color: var(--gold); }
.status-pill.complete { background: rgba(140, 180, 120, 0.12); color: #a9c79a; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 30px; }
.stat-card { background: var(--bg); border: 1px solid var(--hairline-soft); border-radius: 10px; padding: 20px; }
.stat-card .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.stat-card .v { font-family: var(--font-display); font-size: 30px; color: var(--ink); }
.stat-card .v small { font-size: 14px; color: var(--muted); }
.doc-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 15px 18px; border: 1px solid var(--hairline-soft); border-radius: 10px; margin-bottom: 10px; font-size: 13.5px; background: var(--bg); }
.doc-row .dname { display: flex; gap: 12px; align-items: center; color: var(--ink); }
.doc-row .dmeta { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }

/* service request queue ("track it like a shipment") */
.queue { border: 1px solid var(--hairline-soft); border-radius: var(--radius); background: var(--panel); overflow: hidden; margin-top: 40px; }
.queue-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 24px; border-bottom: 1px solid var(--hairline-soft); }
.queue-head .qh-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.18em; color: var(--ink); }
.queue-head .qh-chip { font-size: 10.5px; letter-spacing: 0.12em; color: var(--gold-bright); border: 1px dashed rgba(201, 162, 39, 0.45); border-radius: 5px; padding: 5px 10px; }
.queue-filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px 24px; border-bottom: 1px solid var(--hairline-soft); }
.qfilter { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--hairline-soft); color: var(--muted); transition: all 0.25s var(--ease-out); }
.qfilter:hover { border-color: var(--hairline); color: var(--ink); }
.qfilter.is-active { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.sr-row { padding: 20px 24px 16px; border-bottom: 1px solid var(--hairline-soft); transition: background-color 0.3s; }
.sr-row:hover { background: rgba(245, 243, 236, 0.02); }
.sr-row:last-child { border-bottom: 0; }
.sr-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sr-id { font-family: var(--font-mono); font-size: 12.5px; color: var(--gold); letter-spacing: 0.06em; }
.sr-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--hairline-soft); border-radius: 5px; padding: 4px 9px; }
.sr-title { font-size: 15px; color: var(--ink); flex: 1; min-width: 200px; }
.sr-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin: 14px 0 10px; }
.sr-seg { height: 5px; border-radius: 3px; background: #232328; position: relative; }
.sr-seg.done { background: var(--gold-deep); }
.sr-seg.now { background: var(--gold-grad); box-shadow: 0 0 12px rgba(201, 162, 39, 0.45); }
.sr-meta { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.sr-empty { padding: 44px 24px; text-align: center; color: var(--faint); font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; }
.queue-stages { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 20px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.queue-stages i { font-style: normal; color: var(--gold-deep); }
.queue-form-wrap { padding: 24px; border-bottom: 1px solid var(--hairline-soft); display: none; }
.queue-form-wrap.is-open { display: block; animation: panel-in 0.4s var(--ease-out); }

/* login */
.login-wrap { min-height: 100svh; display: grid; place-items: center; padding: 120px 20px 60px; }
.login-card { width: min(440px, 100%); background: var(--panel); border: 1px solid var(--hairline-soft); border-radius: var(--radius); padding: clamp(30px, 5vw, 50px); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .industries-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-2, .tile-3, .tile-4 { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--hairline-soft); padding: 0; }
  .app-side button { white-space: nowrap; width: auto; border-left: 0; border-bottom: 2px solid transparent; }
  .app-side button.is-active { border-bottom-color: var(--gold); }
}
@media (max-width: 900px) {
  /* team grid is one tall element on mobile; the scroll-reveal can't trigger
     on something taller than the screen, so show it directly here */
  .team-grid.reveal { opacity: 1; transform: none; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }
  .two-col, .glassbox-stage, .pillar, .tab-panel, .line-body-inner, .posture-grid { grid-template-columns: 1fr; }
  .line-diagram { border-left: 0; border-top: 1px solid var(--hairline-soft); padding-top: 26px; }
  .posture-readout { border-left: 0; padding-left: 0; border-top: 1px solid var(--hairline); padding-top: 26px; }
  .engine-step { grid-template-columns: 56px minmax(0, 1fr); }
  .engine-step .engine-viz { grid-column: 2; }
  .pipeline-track { grid-template-columns: 1fr; gap: 26px; }
  .pipeline-track::before, .pipeline-track .pulse { display: none; }
  .pstage { flex-direction: row; text-align: left; align-items: flex-start; }
  .pstage p { min-height: 0; max-width: none; }
  .pbar { grid-template-columns: 110px minmax(0, 1fr) 80px; }
  .ticket-row { grid-template-columns: 70px minmax(0, 1fr) 110px; }
  .ticket-row .ttype { display: none; }
  .hero-meta { display: none; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .chat-panel { right: 12px; bottom: 90px; }
  .chat-fab { right: 16px; bottom: 16px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
  }
  .grain { display: none; }
  .reveal, .reveal-line > span { opacity: 1 !important; transform: none !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: auto !important; }
  .hero-canvas { display: none; }
  .hero-fallback { display: flex !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
