/* ============================================================
   Aurenta — invoice inspection hero
   Spotlight X-ray reveal: a cursor-following soft circular mask
   uncovers the sealed validation layer beneath the tax invoice.
   ============================================================ */

:root {
  --cream: #fbf7f0;
  --navy: #14284b;
  --gold: #b98a44;
  --xray: #6ea8ff;
  --xray-soft: rgba(110, 168, 255, 0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* clip (not hidden): a hidden scroll-container on body would
   break position:sticky for the scrollytelling scene */
html, body { overflow-x: clip; }

/* ---------- Page base ---------- */

.page {
  position: relative;
  max-width: 1800px;
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
}

.page-bg {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* ---------- Proud of UAE badge (nav gap, right of Company) ---------- */

.proud-badge {
  position: absolute;
  left: 66%;
  top: 1.9%;
  height: 9.6%;
  width: auto;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(31, 51, 86, 0.08));
}

/* ---------- clickable hotspots over baked-in hero UI ---------- */

.hs {
  position: absolute;
  z-index: 4;
  display: block;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  border-radius: 10px;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.hs:hover,
.hs:focus-visible {
  background: rgba(201, 164, 92, 0.12);
  box-shadow: 0 0 0 2px rgba(201, 164, 92, 0.28);
  outline: none;
}

/* gold underline sweep for nav items */
.hs-nav::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.hs-nav:hover::after,
.hs-nav:focus-visible::after { transform: scaleX(1); }

.hs-pill { border-radius: 999px; }

.hs-pill:hover,
.hs-pill:focus-visible {
  background: rgba(201, 164, 92, 0.1);
  box-shadow: 0 0 0 2.5px rgba(201, 164, 92, 0.4), 0 10px 30px rgba(31, 51, 86, 0.14);
}

/* QA snapshots outline the hotspots for placement checks */
.qa .hs { outline: 1.5px dashed rgba(200, 60, 60, 0.8); background: rgba(200, 60, 60, 0.07); }

/* ---------- language menu ---------- */

.lang-menu {
  position: absolute;
  left: 78.1%;
  top: 9.4%;
  min-width: 200px;
  padding: 7px;
  border-radius: 14px;
  border: 1px solid rgba(201, 164, 92, 0.35);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(31, 51, 86, 0.16);
  z-index: 6;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.lang-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.2s ease;
}

.lang-opt:hover { background: rgba(201, 164, 92, 0.1); }

.lang-opt b {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold);
  width: 24px;
}

.lang-opt span { flex: 1; font-size: 13px; font-weight: 500; color: var(--navy); }

.lang-opt svg { width: 15px; height: 15px; color: #1d9e57; }

.lang-opt em {
  font-style: normal;
  font-size: 10.5px;
  color: #a39b88;
}

.lang-opt.soon { cursor: default; }
.lang-opt.soon span, .lang-opt.soon b { opacity: 0.55; }

/* ---------- Stage: positioned over the reserved slot ----------
   Slot in page pixels (1672 x 941): x 824–1389, y 128–782.
   Stage is centered on the slot, slightly larger to breathe.  */

.stage {
  position: absolute;
  left: 48.53%;
  top: 10.55%;
  width: 35.3%;
  cursor: none;
  touch-action: none;

  /* spotlight state (driven by script.js) */
  --mx: 50%;
  --my: 50%;
  --r: 0px;
}

.float {
  position: relative;
  animation: float 7s ease-in-out infinite;
  will-change: transform;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* entrance — on its own wrapper so it never fights the JS
   parallax transform applied to .stage */
.rise {
  opacity: 0;
  transform: translateY(22px);
  animation: enter 1s cubic-bezier(0.22, 0.9, 0.3, 1) 0.2s forwards;
}

@keyframes enter {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Halo behind the card ---------- */

.halo {
  position: absolute;
  inset: -12% -16%;
  background: radial-gradient(
    ellipse 58% 52% at 50% 46%,
    rgba(255, 247, 232, 0.95),
    rgba(255, 240, 215, 0.4) 55%,
    transparent 76%
  );
  animation: breathe 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes breathe {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

/* ---------- Invoice layers ---------- */

.layer-base {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 26px 48px rgba(31, 51, 86, 0.16));
  transition: filter 0.6s ease;
}

.stage.inspecting .layer-base {
  filter: drop-shadow(0 26px 48px rgba(31, 51, 86, 0.2)) brightness(0.965) saturate(0.97);
}

/* The hidden layer, clipped by a soft circular spotlight mask.
   With --r at 0 the mask is fully transparent — nothing shows. */
.reveal-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(
    circle at var(--mx) var(--my),
    #000 0,
    #000 calc(var(--r) * 0.66),
    rgba(0, 0, 0, 0.45) calc(var(--r) * 0.86),
    transparent var(--r)
  );
  mask-image: radial-gradient(
    circle at var(--mx) var(--my),
    #000 0,
    #000 calc(var(--r) * 0.66),
    rgba(0, 0, 0, 0.45) calc(var(--r) * 0.86),
    transparent var(--r)
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Stretched + nudged so the dark card sits exactly on the light card
   (computed from corner detection of both scans). */
.layer-reveal {
  position: absolute;
  left: -0.4%;
  top: -0.6%;
  width: 100.2%;
  height: 100.4%;
  filter: saturate(1.06) brightness(1.03);
}

/* faint CRT scanlines inside the spotlight */
.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(140, 200, 255, 0.055) 0 2px,
    transparent 2px 6px
  );
  mix-blend-mode: screen;
}

/* cool light bloom that rides with the lens, inside the mask */
.lens-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle calc(var(--r) * 1.1) at var(--mx) var(--my),
    rgba(96, 165, 255, 0.16),
    rgba(96, 165, 255, 0.05) 55%,
    transparent 75%
  );
  mix-blend-mode: screen;
}

/* ---------- The lens ring ---------- */

.lens {
  position: absolute;
  left: var(--mx);
  top: var(--my);
  width: calc(var(--r) * 1.56);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(0.6);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3);
  pointer-events: none;
}

.stage.inspecting .lens {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.lens::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(140, 190, 255, 0.85);
  box-shadow:
    0 0 22px 2px var(--xray-soft),
    inset 0 0 26px rgba(96, 165, 255, 0.22);
}

/* rotating highlight arc */
.lens-arc {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0 68%,
    rgba(170, 210, 255, 0.95) 84%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(circle, transparent 0 63%, #000 66%, #000 72%, transparent 75%);
  mask-image: radial-gradient(circle, transparent 0 63%, #000 66%, #000 72%, transparent 75%);
  animation: spin 5s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* four compass ticks */
.lens-ticks {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.lens-ticks::before,
.lens-ticks::after {
  content: "";
  position: absolute;
  background: rgba(170, 210, 255, 0.9);
  border-radius: 2px;
}

/* N + S */
.lens-ticks::before {
  left: 50%;
  top: -3px;
  width: 2px;
  height: 12px;
  transform: translateX(-50%);
  box-shadow: 0 calc(var(--r) * 1.56 - 6px) 0 rgba(170, 210, 255, 0.9);
}

/* W + E */
.lens-ticks::after {
  top: 50%;
  left: -3px;
  width: 12px;
  height: 2px;
  transform: translateY(-50%);
  box-shadow: calc(var(--r) * 1.56 - 6px) 0 0 rgba(170, 210, 255, 0.9);
}

.lens-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(190, 220, 255, 0.95);
  box-shadow: 0 0 10px 2px var(--xray-soft);
}

.lens-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: #4c79c9;
  text-shadow: 0 0 12px rgba(110, 168, 255, 0.6);
  white-space: nowrap;
}

/* ---------- Status chip ---------- */

.chip {
  position: absolute;
  left: 50%;
  top: calc(100% + 18px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(185, 138, 68, 0.4);
  background: rgba(255, 252, 246, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 22px rgba(31, 51, 86, 0.08);
  white-space: nowrap;
  transition: border-color 0.45s ease, box-shadow 0.45s ease;
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(185, 138, 68, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
  transition: background 0.45s ease, box-shadow 0.45s ease;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

.chip-text {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--navy);
  transition: color 0.45s ease;
}

.stage.inspecting .chip {
  border-color: rgba(110, 168, 255, 0.55);
  box-shadow: 0 6px 26px rgba(80, 140, 240, 0.18);
}

.stage.inspecting .chip-dot {
  background: var(--xray);
  box-shadow: 0 0 0 3px rgba(110, 168, 255, 0.22);
}

.stage.inspecting .chip-text { color: #2c4a86; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .float, .halo, .lens-arc, .chip-dot { animation: none; }
  .rise { animation-duration: 0.01s; }
  .lens { transition: opacity 0.2s ease; }
}

/* ---------- Small screens: keep chip readable ---------- */

@media (max-width: 720px) {
  .chip-text { font-size: 11px; }
  .lens-label { display: none; }
}

/* ============================================================
   SCROLLYTELLING — transport, analyze, seal
   ============================================================ */

/* ---------- scroll cue on the hero ---------- */

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #7d6a4d;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.85;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.scroll-cue svg { animation: cue-bob 1.8s ease-in-out infinite; }

@keyframes cue-bob {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%      { transform: translateY(5px); opacity: 1; }
}

.scroll-cue.hide { opacity: 0; }

/* ---------- section & sticky scene ---------- */

.scrolly {
  position: relative;
  height: 470vh;
}

.scene {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3.2vw, 64px);
  padding: 0 3vw;
  --plx: 0; /* scroll parallax factor, set by script.js */
}

/* ---------- layered scene background ---------- */

.scene-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fdfaf4 0%, #faf4e9 55%, #f5edde 100%);
}

.scene-bg > * { position: absolute; pointer-events: none; }

/* drifting champagne / x-ray auroras */
.bg-aurora {
  width: 56vw;
  height: 56vw;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.75;
}

.bg-aurora.a1 {
  left: -16vw;
  top: -20vw;
  background: radial-gradient(circle, rgba(222, 184, 120, 0.28), transparent 62%);
  animation: aurora-a 26s ease-in-out infinite alternate;
}

.bg-aurora.a2 {
  right: -18vw;
  bottom: -24vw;
  background: radial-gradient(circle, rgba(140, 180, 245, 0.16), transparent 62%);
  animation: aurora-b 32s ease-in-out infinite alternate;
}

@keyframes aurora-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(7vw, 5vw) scale(1.14); }
}

@keyframes aurora-b {
  from { transform: translate(0, 0) scale(1.1); }
  to   { transform: translate(-6vw, -4vw) scale(0.96); }
}

/* engineering dot-grid, fading toward the edges */
.bg-grid {
  inset: -6% 0 0 0;
  background-image: radial-gradient(rgba(20, 40, 75, 0.075) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 46%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 62% 58% at 50% 46%, #000 30%, transparent 78%);
  transform: translateY(calc(var(--plx) * -46px));
}

/* concentric rings + one slowly rotating dashed ring */
.bg-ring {
  border-radius: 50%;
  border: 1px solid rgba(201, 164, 92, 0.2);
}

.bg-ring.r1 {
  width: 72vw; height: 72vw;
  left: -24vw; bottom: -48vw;
  transform: translateY(calc(var(--plx) * 60px));
}

.bg-ring.r2 {
  width: 48vw; height: 48vw;
  right: -17vw; top: -29vw;
  transform: translateY(calc(var(--plx) * 34px));
}

.bg-ring.r3 {
  width: 58vh; height: 58vh;
  left: 50%; top: 50%;
  margin: -29vh 0 0 -29vh;
  border: 1.5px dashed rgba(201, 164, 92, 0.28);
  animation: ring-spin 90s linear infinite;
}

@keyframes ring-spin { to { transform: rotate(360deg); } }

/* floating gold motes */
.bg-particle {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(201, 164, 92, 0.55);
  box-shadow: 0 0 10px 2px rgba(201, 164, 92, 0.25);
  animation: mote 11s ease-in-out var(--pd, 0s) infinite;
}

@keyframes mote {
  0%, 100% { transform: translateY(0); opacity: 0.25; }
  50%      { transform: translateY(-26px); opacity: 0.75; }
}

/* giant watermark */
.bg-mark {
  left: 50%;
  bottom: 3vh;
  transform: translateX(-50%) translateY(calc(var(--plx) * -22px));
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(48px, 7.2vw, 120px);
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: rgba(20, 40, 75, 0.032);
}

/* green wash that blooms at the sealed finale */
.bg-seal {
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 88%, rgba(29, 158, 87, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 1.2s ease;
}

.scene.sealed .bg-seal { opacity: 1; }

.bg-vignette {
  inset: 0;
  background: radial-gradient(ellipse 88% 82% at 50% 46%, transparent 62%, rgba(129, 96, 46, 0.07) 100%);
}

/* ---------- phase chip ---------- */

.phase-chip {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translate(-50%, -8px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(20, 40, 75, 0.14);
  background: rgba(255, 253, 248, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 5;
}

.scene.boot .phase-chip { opacity: 1; transform: translate(-50%, 0); }

.phase-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2.2s ease-in-out infinite;
}

.scene.sealed .phase-dot { background: #1d9e57; }

.phase-text {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--navy);
}

/* ---------- pipeline steps (left) ---------- */

.steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  z-index: 3;
}

/* dotted spine between steps */
.steps::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 42px;
  bottom: 42px;
  border-left: 2px dotted rgba(201, 164, 92, 0.45);
}

.step {
  display: flex;
  align-items: center;
  gap: 13px;
  width: clamp(200px, 16.5vw, 262px);
  padding: 12px 15px;
  border-radius: 14px;
  border: 1px solid rgba(201, 164, 92, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 252, 246, 0.85));
  box-shadow: 0 8px 26px rgba(31, 51, 86, 0.06);
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1),
              border-color 0.4s ease, box-shadow 0.4s ease;
}

.scene.in .step { opacity: 1; transform: translateX(0); }
.scene.in .step:nth-child(2) { transition-delay: 0.08s, 0.08s, 0s, 0s; }
.scene.in .step:nth-child(3) { transition-delay: 0.16s, 0.16s, 0s, 0s; }
.scene.in .step:nth-child(4) { transition-delay: 0.24s, 0.24s, 0s, 0s; }

.step-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #8a6c3c;
  border: 1.5px dashed rgba(201, 164, 92, 0.55);
  background: #fffdf8;
  transition: all 0.45s ease;
  position: relative;
  z-index: 1;
}

.step-icon svg { width: 22px; height: 22px; }

.step-copy { display: flex; flex-direction: column; line-height: 1.25; }
.step-no {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.step-copy strong { font-size: 14.5px; color: var(--navy); font-weight: 600; }
.step-copy em { font-style: normal; font-size: 11px; color: #8b8272; }

/* active / completed states, driven by scene.s1..s4 */
.scene.s1 .step[data-step="1"], .scene.s2 .step[data-step="2"],
.scene.s3 .step[data-step="3"], .scene.s4 .step[data-step="4"] {
  border-color: rgba(201, 164, 92, 0.65);
  box-shadow: 0 10px 32px rgba(185, 138, 68, 0.18);
}

.scene.s1 .step[data-step="1"] .step-icon, .scene.s2 .step[data-step="2"] .step-icon,
.scene.s3 .step[data-step="3"] .step-icon, .scene.s4 .step[data-step="4"] .step-icon {
  color: #fff;
  background: linear-gradient(145deg, #c9a45c, #a97f3f);
  border-style: solid;
  border-color: rgba(201, 164, 92, 0.9);
  box-shadow: 0 0 0 5px rgba(201, 164, 92, 0.16);
}

/* ---------- the document ---------- */

.doc-wrap {
  position: relative;
  z-index: 2;
  will-change: transform, opacity;
  opacity: 0;
  --land: 0; /* landing glow intensity, set by script.js */
}

/* warm pool of light that blooms as the document lands */
.land-glow {
  position: absolute;
  left: -14%;
  right: -14%;
  bottom: -7%;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(ellipse closest-side, rgba(213, 170, 100, 0.4), rgba(213, 170, 100, 0.12) 55%, transparent 75%);
  filter: blur(10px);
  opacity: var(--land);
  pointer-events: none;
}

/* one-shot ripple ring on touchdown */
.land-ripple {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 40%;
  aspect-ratio: 1;
  margin-left: -20%;
  border-radius: 50%;
  border: 2px solid rgba(201, 164, 92, 0.5);
  opacity: 0;
  pointer-events: none;
}

.scene.landed .land-ripple { animation: land-ripple 1.1s cubic-bezier(0.2, 0.6, 0.3, 1) 1; }

@keyframes land-ripple {
  0%   { opacity: 0.8; transform: scale(0.55); }
  100% { opacity: 0;   transform: scale(2.1); }
}

.doc {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  filter: drop-shadow(0 34px 70px rgba(20, 40, 75, 0.2));
}

.doc-img {
  display: block;
  width: min(31vw, 62vh);
  height: auto;
}

/* scanned-area tint above the beam */
.wake {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: linear-gradient(180deg, rgba(110, 168, 255, 0.05), rgba(110, 168, 255, 0.015));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* the scan beam */
.beam {
  position: absolute;
  left: 1%; right: 1%;
  top: 0;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(110, 168, 255, 0.85) 16%,
    #e2eeff 50%,
    rgba(110, 168, 255, 0.85) 84%,
    transparent);
  box-shadow: 0 0 18px 3px rgba(110, 168, 255, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* field highlight boxes (injected by script.js) */
.fieldbox {
  position: absolute;
  border: 2px dashed rgba(185, 138, 68, 0.85);
  border-radius: 7px;
  background: rgba(201, 164, 92, 0.08);
  opacity: 0;
  transform: scale(1.07);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.35);
  pointer-events: none;
}

.fieldbox.lit { opacity: 1; transform: scale(1); }

/* green glow over the pre-flight banner when sealed */
.seal-glow {
  position: absolute;
  left: 4%; top: 79%;
  width: 92%; height: 16.6%;
  border-radius: 12px;
  border: 2px solid rgba(29, 158, 87, 0.55);
  box-shadow: 0 0 34px rgba(29, 158, 87, 0.3), inset 0 0 30px rgba(29, 158, 87, 0.12);
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.scene.sealed .seal-glow { opacity: 1; animation: seal-pulse 2.6s ease-in-out infinite; }

@keyframes seal-pulse {
  0%, 100% { box-shadow: 0 0 34px rgba(29, 158, 87, 0.3), inset 0 0 30px rgba(29, 158, 87, 0.12); }
  50%      { box-shadow: 0 0 50px rgba(29, 158, 87, 0.45), inset 0 0 36px rgba(29, 158, 87, 0.18); }
}

/* ---------- compliance panel (right) ---------- */

.panel {
  width: clamp(300px, 24.5vw, 376px);
  max-height: 94vh;
  padding: 15px 15px 13px;
  border-radius: 16px;
  border: 1px solid rgba(201, 164, 92, 0.25);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 252, 246, 0.88));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(31, 51, 86, 0.1);
  opacity: 0;
  transform: translateX(34px);
  transition: opacity 0.65s ease 0.1s, transform 0.65s cubic-bezier(0.2, 0.8, 0.3, 1) 0.1s;
  z-index: 3;
}

.scene.in .panel { opacity: 1; transform: translateX(0); }

.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px 10px;
  border-bottom: 1px solid rgba(201, 164, 92, 0.2);
  margin-bottom: 9px;
}

.panel-ico {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: rgba(20, 40, 75, 0.06);
}

.panel-ico svg { width: 19px; height: 19px; }

.panel-head strong { display: block; font-size: 14px; color: var(--navy); }
.panel-head em { font-style: normal; font-size: 10.5px; color: #8b8272; }

.rows { display: flex; flex-direction: column; gap: 5px; }

.rows-sep { height: 1px; background: rgba(201, 164, 92, 0.2); margin: 4px 2px; }

.rowitem {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 3px 4px;
  border-radius: 8px;
  /* ghost until its field is scanned */
  opacity: 0.22;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.3, 1), background 0.4s ease;
}

.rowitem.on { opacity: 1; transform: translateY(0); background: rgba(201, 164, 92, 0.05); }

.rlabel { font-size: 11px; color: #6c6455; }

.rval {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--navy);
  padding: 4px 8px;
  border: 1px solid #e7ddc9;
  border-radius: 7px;
  background: #fff;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rbadge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 600;
  color: #1d9e57;
  white-space: nowrap;
}

.rbadge::before {
  content: "✓";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #1d9e57;
  color: #fff;
  font-size: 8.5px;
  display: grid;
  place-items: center;
}

.rbadge.computed { color: #157a8c; }
.rbadge.computed::before { background: #157a8c; }

/* ---------- verdict ---------- */

.verdict {
  margin-top: 11px;
  padding: 11px 12px 9px;
  border-radius: 13px;
  border: 1px solid rgba(29, 158, 87, 0.3);
  background: rgba(240, 250, 244, 0.85);
  opacity: 0.14;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.scene.show-verdict .verdict { opacity: 1; transform: translateY(0); }

.verdict-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }

.vshield {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #1d9e57;
  color: #fff;
  box-shadow: 0 6px 16px rgba(29, 158, 87, 0.35);
}

.vshield svg { width: 18px; height: 18px; }

.verdict-head strong { display: block; font-size: 14px; color: #10683a; }
.verdict-head em { font-style: normal; font-size: 10.5px; color: #4d8a66; }

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  color: #2f5940;
  opacity: 0.35;
  transform: translateX(-6px);
  transition: opacity 0.35s ease, transform 0.4s ease;
}

.checks li.on { opacity: 1; transform: translateX(0); }

.checks li::before {
  content: "✓";
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1d9e57;
  color: #fff;
  font-size: 8px;
  display: grid;
  place-items: center;
}

.checks li span { flex: 1; }
.checks li b { font-weight: 500; font-size: 9.5px; color: #6f9480; }

/* ---------- connector wires ---------- */

.wires {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.wires path {
  fill: none;
  stroke: rgba(185, 138, 68, 0.75);
  stroke-width: 1.5;
  stroke-dasharray: 2.5 5.5;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.wires circle {
  fill: #c9a45c;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.wires path.on, .wires circle.on { opacity: 1; }

/* ---------- UAE flag (footer) ---------- */

.uae-flag {
  flex: none;
  width: 27px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, #00843d 33.3%, #ffffff 33.3% 66.6%, #141414 66.6%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.uae-flag::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 27%;
  background: #ce1126;
}

/* ---------- QA snapshot mode (#qa in URL): deterministic states ---------- */

.qa .rise { animation: none; opacity: 1; transform: none; }
.qa *, .qa *::before, .qa *::after { transition: none !important; }
/* pinned-progress snapshots render the scene without scrolling */
.qa-pin .page { display: none; }

/* ---------- reduced motion / assembled fallback ---------- */

.scene.assembled .step,
.scene.assembled .panel { opacity: 1; transform: none; transition: none; }
.scene.assembled .doc-wrap { opacity: 1; transform: none !important; }
.scene.assembled .rowitem, .scene.assembled .checks li { opacity: 1; transform: none; }
.scene.assembled .verdict { opacity: 1; transform: none; }
.scene.assembled .phase-chip { opacity: 1; transform: translate(-50%, 0); }
.scene.assembled .wires path, .scene.assembled .wires circle { opacity: 1; }
.scene.assembled .fieldbox { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .steps { display: none; }
  .wires { display: none; }
  .doc-img { width: min(42vw, 66vh); }
}

@media (max-width: 860px) {
  .scene { flex-direction: column; justify-content: center; gap: 14px; }
  .doc-img { width: min(58vw, 46vh); }
  .panel { width: min(88vw, 380px); max-height: 46vh; overflow-y: auto; }
  .phase-chip { top: 10px; }
  .bg-mark { font-size: 34px; }
}

/* ============================================================
   SITE CHROME — progress bar + floating nav
   ============================================================ */

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}

.scroll-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #b98a44, #e3c586);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.site-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translate(-50%, -160%);
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  padding: 10px 12px 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(201, 164, 92, 0.3);
  background: rgba(255, 253, 248, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(31, 51, 86, 0.12);
  z-index: 55;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.site-nav.show { transform: translate(-50%, 0); }

.nav-logo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--navy);
  text-decoration: none;
}

.nav-logo span { color: var(--gold); }

.nav-links { display: flex; gap: clamp(12px, 1.8vw, 26px); }

.nav-links a {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #4d5a72;
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-links a:hover { color: var(--navy); }

.nav-cta {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(20, 40, 75, 0.3); }

html { scroll-behavior: smooth; }

/* ============================================================
   SECTIONS — shared language
   ============================================================ */

.sec { position: relative; padding: clamp(84px, 12vh, 150px) 0; }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(22px, 4.5vw, 52px);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.kicker::before {
  content: "";
  width: 34px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.sec h2 {
  margin: 0 0 22px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 500;
  line-height: 1.14;
  color: var(--navy);
}

.sec h2 em {
  font-style: italic;
  color: #a4772f;
}

.lede {
  max-width: 640px;
  margin: 0 0 30px;
  font-size: clamp(14.5px, 1.2vw, 17px);
  line-height: 1.65;
  color: #55606f;
}

.lede b { color: var(--navy); font-weight: 600; }
.lede.center { margin-left: auto; margin-right: auto; text-align: center; }

/* scroll reveal */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s ease var(--rvd, 0s), transform 0.85s cubic-bezier(0.2, 0.8, 0.3, 1) var(--rvd, 0s);
}

.rv.in { opacity: 1; transform: none; }

.qa .rv, .qa-secs .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
.qa-secs .page, .qa-secs .scrolly { display: none; }

/* ============================================================
   MANDATE — timeline
   ============================================================ */

.sec-mandate {
  background:
    radial-gradient(ellipse 40% 34% at 88% 8%, rgba(222, 184, 120, 0.14), transparent 70%),
    linear-gradient(180deg, #f5edde 0%, #fbf7f0 18%, #fbf7f0 100%);
}

.timeline { margin-top: 46px; }

.tl-track {
  position: relative;
  height: 2px;
  margin: 0 4% 0 2%;
  background: rgba(201, 164, 92, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.tl-track i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #b98a44, #e3c586);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 2.2s cubic-bezier(0.3, 0.6, 0.2, 1) 0.3s;
}

.timeline.in .tl-track i { transform: scaleX(1); }

.tl-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 30px);
  margin-top: -7px;
}

.tl-item {
  position: relative;
  padding: 26px 6px 0 2px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.timeline.in .tl-item { opacity: 1; transform: none; }
.timeline.in .tl-item:nth-child(1) { transition-delay: 0.45s; }
.timeline.in .tl-item:nth-child(2) { transition-delay: 0.85s; }
.timeline.in .tl-item:nth-child(3) { transition-delay: 1.25s; }
.timeline.in .tl-item:nth-child(4) { transition-delay: 1.65s; }

.tl-dot {
  position: absolute;
  top: -13px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 164, 92, 0.18);
}

.tl-date {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.tl-item strong {
  display: block;
  margin: 5px 0 6px;
  font-size: 16.5px;
  color: var(--navy);
}

.tl-item p { margin: 0; font-size: 12.5px; line-height: 1.55; color: #757064; }

.penalty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(190, 70, 60, 0.3);
  background: rgba(252, 240, 236, 0.7);
  font-size: 13.5px;
  color: #8c3a30;
}

.penalty svg { width: 19px; height: 19px; flex: none; }
.penalty b { font-weight: 600; }

/* ============================================================
   INVERSION — old way vs new way
   ============================================================ */

.sec-invert { background: #fbf7f0; }

.invert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.6vw, 34px);
  margin: 40px 0 8px;
}

.invert-card {
  position: relative;
  padding: 30px 32px 26px;
  border-radius: 20px;
  overflow: hidden;
}

.invert-card.old {
  border: 1px solid rgba(160, 90, 80, 0.22);
  background: linear-gradient(165deg, #fdf6f3, #f8ece7);
}

.invert-card.new {
  border: 1px solid rgba(201, 164, 92, 0.45);
  background: linear-gradient(165deg, #fffdf7, #fdf4e3);
  box-shadow: 0 24px 60px rgba(185, 138, 68, 0.14);
}

.invert-card.new::before {
  content: "";
  position: absolute;
  inset: -40% 55% 55% -40%;
  background: radial-gradient(circle, rgba(227, 197, 134, 0.3), transparent 70%);
}

.ic-tag {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.26em;
  color: #a08a6a;
}

.invert-card.old .ic-tag { color: #b0766a; }

.invert-card h3 {
  margin: 10px 0 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 600;
  color: var(--navy);
}

.invert-card ul { margin: 0 0 22px; padding: 0; list-style: none; }

.invert-card li {
  position: relative;
  padding: 5px 0 5px 26px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #5a6270;
}

.invert-card.old li::before {
  content: "✕";
  position: absolute;
  left: 2px;
  color: #c26a5c;
  font-size: 12px;
  font-weight: 600;
}

.invert-card.new li::before {
  content: "✓";
  position: absolute;
  left: 0;
  width: 15px;
  height: 15px;
  top: 7px;
  border-radius: 50%;
  background: #1d9e57;
  color: #fff;
  font-size: 9px;
  display: grid;
  place-items: center;
}

.ic-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px dashed rgba(120, 110, 90, 0.25);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.ic-flow span {
  padding: 5px 11px;
  border-radius: 7px;
  background: rgba(20, 40, 75, 0.06);
  color: var(--navy);
}

.ic-flow i { color: #b0a68f; font-style: normal; }
.ic-flow .bad { background: rgba(194, 106, 92, 0.14); color: #a34a3c; }
.ic-flow .good { background: rgba(29, 158, 87, 0.14); color: #157a45; }

.pull {
  max-width: 780px;
  margin: 46px auto 54px;
  padding: 0 20px;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(17px, 1.8vw, 23px);
  line-height: 1.55;
  text-align: center;
  color: #6d6252;
}

.verdicts-title {
  margin: 0 0 18px;
  text-align: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #97907e;
}

.verdicts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.4vw, 18px);
}

.verdict-chip {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid;
  background: #fff;
}

.verdict-chip b {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  margin-bottom: 5px;
}

.verdict-chip span { font-size: 11.5px; line-height: 1.45; color: #6b7280; display: block; }

.verdict-chip.pass    { border-color: rgba(29, 158, 87, 0.4); }
.verdict-chip.pass b  { color: #158a4b; }
.verdict-chip.review  { border-color: rgba(200, 140, 40, 0.4); }
.verdict-chip.review b{ color: #a8721e; }
.verdict-chip.blocked { border-color: rgba(194, 80, 66, 0.4); }
.verdict-chip.blocked b { color: #ab4434; }
.verdict-chip.refused { border-color: rgba(90, 100, 120, 0.4); }
.verdict-chip.refused b { color: #4d5a72; }

/* ============================================================
   PRINCIPLES — six cards with cursor spotlight
   ============================================================ */

.sec-principles {
  background:
    radial-gradient(ellipse 44% 36% at 6% 16%, rgba(222, 184, 120, 0.12), transparent 70%),
    #faf5ea;
}

.pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 24px);
  margin-top: 44px;
}

.pcard {
  position: relative;
  padding: 26px 26px 24px;
  border-radius: 18px;
  border: 1px solid rgba(201, 164, 92, 0.28);
  background: linear-gradient(180deg, #fffefb, #fdf9f0);
  box-shadow: 0 10px 34px rgba(31, 51, 86, 0.05);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease,
              opacity 0.85s ease var(--rvd, 0s);
}

.pcard:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 164, 92, 0.55);
  box-shadow: 0 22px 54px rgba(31, 51, 86, 0.1);
}

/* cursor-following highlight — the hero spotlight motif, again */
.pcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--hx, -300px) var(--hy, -300px), rgba(201, 164, 92, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.pcard:hover::after { opacity: 1; }

.p-no {
  position: absolute;
  top: 20px;
  right: 22px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(164, 119, 47, 0.55);
}

.p-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 13px;
  color: #8a6c3c;
  background: linear-gradient(150deg, rgba(227, 197, 134, 0.3), rgba(227, 197, 134, 0.1));
  border: 1px solid rgba(201, 164, 92, 0.35);
}

.p-ico svg { width: 23px; height: 23px; }

.pcard h3 {
  margin: 0 0 9px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--navy);
}

.pcard p { margin: 0; font-size: 12.8px; line-height: 1.6; color: #6b7280; }

/* ============================================================
   FLOW — pipeline placement
   ============================================================ */

.sec-flow { background: #fbf7f0; }

.flow-wrap {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 18px);
  margin: 48px 0 34px;
}

.flow-node {
  flex: none;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid rgba(20, 40, 75, 0.16);
  background: #fff;
  box-shadow: 0 10px 30px rgba(31, 51, 86, 0.06);
  text-align: center;
}

.flow-node em {
  display: block;
  font-style: normal;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--navy);
}

.flow-node span {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  color: #8b8fa0;
}

.flow-node.hero-node {
  padding: 22px 28px;
  border: 1.5px solid rgba(201, 164, 92, 0.65);
  background: linear-gradient(165deg, #fffdf6, #fdf2dd);
  box-shadow: 0 18px 50px rgba(185, 138, 68, 0.22);
}

.flow-node.hero-node em { letter-spacing: 0.28em; color: #14284b; }

.flow-node.hero-node b {
  display: block;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(201, 164, 92, 0.4);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #a4772f;
}

.flow-link {
  position: relative;
  flex: 1;
  height: 2px;
  min-width: 30px;
  background-image: linear-gradient(90deg, rgba(201, 164, 92, 0.55) 55%, transparent 55%);
  background-size: 9px 2px;
}

/* traveling pulse */
.flow-link i {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9a45c;
  box-shadow: 0 0 12px 2px rgba(201, 164, 92, 0.5);
  animation: flow-run 3.4s cubic-bezier(0.4, 0, 0.5, 1) infinite;
}

.flow-wrap .flow-link:nth-of-type(4) i { animation-delay: 1.1s; }
.flow-wrap .flow-link:nth-of-type(6) i { animation-delay: 2.2s; }

@keyframes flow-run {
  0%   { left: 0;   opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

.flow-note {
  max-width: 720px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #6b7280;
}

.flow-note b { color: var(--navy); }

/* ============================================================
   PROOF — dark metrics band
   ============================================================ */

.sec-proof {
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, #16294d 0%, #0e1d3a 70%, #0b1730 100%);
}

.proof-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 48% 60% at 84% 20%, rgba(201, 164, 92, 0.13), transparent 70%),
    radial-gradient(ellipse 40% 50% at 8% 90%, rgba(110, 168, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.proof-bg::before,
.proof-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(227, 197, 134, 0.14);
}

.proof-bg::before { width: 54vw; height: 54vw; right: -20vw; top: -30vw; }
.proof-bg::after  { width: 34vw; height: 34vw; left: -12vw; bottom: -20vw; border-style: dashed; }

.sec-proof .kicker { color: #e3c586; }
.sec-proof .kicker::before { background: linear-gradient(90deg, #e3c586, transparent); }
.sec-proof h2 { color: #f5f1e6; }
.sec-proof h2 em { color: #e3c586; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.4vw, 36px);
  margin: 52px 0 40px;
}

.stat {
  padding: 26px 22px 22px;
  border-radius: 16px;
  border: 1px solid rgba(227, 197, 134, 0.2);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.stat b {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 3.4vw, 54px);
  font-weight: 600;
  line-height: 1;
  color: #e3c586;
  font-variant-numeric: tabular-nums;
}

.stat b i { font-style: normal; }

.stat span {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #9fb0cc;
}

.proof-note {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: #7d92b5;
}

/* ============================================================
   CTA + FOOTER
   ============================================================ */

.sec-cta {
  background:
    radial-gradient(ellipse 52% 60% at 50% 0%, rgba(222, 184, 120, 0.16), transparent 70%),
    #fbf7f0;
  text-align: center;
}

.cta-line {
  margin: 0 auto 18px;
  max-width: 900px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(20, 40, 75, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 46px rgba(20, 40, 75, 0.36); }
.btn-primary svg { width: 17px; height: 17px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1.5px solid rgba(20, 40, 75, 0.25);
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.btn-ghost:hover { border-color: rgba(20, 40, 75, 0.55); background: rgba(20, 40, 75, 0.04); }

.site-footer {
  border-top: 1px solid rgba(201, 164, 92, 0.25);
  background: #f7f1e4;
  padding: 34px 0;
}

.foot-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}

.foot-brand p { margin: 8px 0 0; font-size: 11.5px; color: #8b8272; }

.foot-links { display: flex; gap: clamp(14px, 2vw, 28px); }

.foot-links a {
  font-size: 12.5px;
  color: #5a6270;
  text-decoration: none;
}

.foot-links a:hover { color: var(--navy); }

.foot-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: #8b8272;
}

/* ---------- sections responsive ---------- */

@media (max-width: 1000px) {
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .verdicts { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .flow-wrap { flex-wrap: wrap; justify-content: center; }
  .flow-link { min-width: 60px; }
  .nav-links { display: none; }
}

@media (max-width: 720px) {
  .invert-grid { grid-template-columns: 1fr; }
  .tl-items { grid-template-columns: 1fr 1fr; }
  .tl-track { display: none; }
  .tl-item { padding-top: 0; }
  .tl-dot { display: none; }
  .pgrid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; align-items: center; }
}
