/* =====================================================================
   REYOS — Lux Glass Design System
   Single source of truth. Loaded by every page via partials/head.php.
   ===================================================================== */

@import url("https://api.fontshare.com/v2/css?f[]=sentient@300,400,500&f[]=switzer@300,400,500,600,700&display=swap");

@theme {
  --color-cream-100: #FDFBF7;
  --color-cream-200: #F6F1E7;
  --color-cream-300: #ECE4D2;
  --color-espresso-900: #1A1410;
  --color-espresso-800: #2D241D;
  --color-espresso-700: #4A3D32;
  --color-espresso-600: #6B5A4B;
  --color-espresso-500: #8C7D6F;
  --color-cobalt-600: #2447D4;
  --color-cobalt-500: #3A5BE6;
  --color-cobalt-400: #6680F0;
  --color-cobalt-100: #DDE3FB;
  --color-gilt-600: #C9A96B;
  --color-gilt-500: #D6BC85;
  --color-gilt-400: #E8D4A8;

  --font-display: "Sentient", ui-serif, Georgia, serif;
  --font-sans: "Switzer", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

/* ---------- Tokens ---------- */
:root {
  --cream-100: #FDFBF7;
  --cream-200: #F6F1E7;
  --cream-300: #ECE4D2;
  --espresso-900: #1A1410;
  --espresso-800: #2D241D;
  --espresso-700: #4A3D32;
  --espresso-600: #6B5A4B;
  --espresso-500: #8C7D6F;
  --espresso-400: #B0A294;
  --cobalt-600: #2447D4;
  --cobalt-500: #3A5BE6;
  --cobalt-400: #6680F0;
  --cobalt-100: #DDE3FB;
  --gilt-600: #C9A96B;
  --gilt-500: #D6BC85;
  --gilt-400: #E8D4A8;

  --glass-tint: rgba(253, 251, 247, 0.55);
  --glass-tint-strong: rgba(253, 251, 247, 0.72);
  --glass-tint-sheer: rgba(253, 251, 247, 0.35);
  --glass-edge: rgba(26, 20, 16, 0.08);
  --glass-edge-soft: rgba(26, 20, 16, 0.04);
  --glass-shine: rgba(255, 255, 255, 0.85);

  --shadow-lux-1: 0 1px 0 0 var(--glass-shine) inset, 0 24px 60px -28px rgba(26,20,16,0.18), 0 60px 120px -60px rgba(36,71,212,0.10);
  --shadow-lux-2: 0 1px 0 0 var(--glass-shine) inset, 0 32px 80px -32px rgba(26,20,16,0.22), 0 80px 160px -60px rgba(36,71,212,0.14);
  --shadow-lift: 0 12px 40px -16px rgba(26,20,16,0.18), 0 4px 12px -4px rgba(26,20,16,0.10);
  --shadow-inset-rune: inset 0 0 0 1px rgba(255,255,255,0.6), inset 0 1px 0 0 rgba(255,255,255,0.9);

  --ease-lux: cubic-bezier(0.32, 0.94, 0.6, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-glide: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-hush: cubic-bezier(0.32, 0.72, 0, 1);

  --dur-micro: 200ms;
  --dur-ui: 400ms;
  --dur-section: 700ms;
  --dur-hero: 1200ms;

  --container: 76rem;
  --container-narrow: 56rem;
  --container-prose: 44rem;
  --section-y: clamp(4rem, 8vw, 7.5rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-padding-top: 6rem;
}
[id] { scroll-margin-top: 6rem; }

body {
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "ss02", "cv11";
  background: var(--cream-100);
  color: var(--espresso-900);
  line-height: 1.6;
}

/* Page backdrop — warm white at top → cool blue-tinted white at bottom.
   Maintains brightness and the cobalt brand tone all the way down. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 700px at 80% -8%, rgba(102, 128, 240, 0.16), transparent 62%),
    radial-gradient(900px 600px at -10% 60%, rgba(102, 128, 240, 0.10), transparent 60%),
    radial-gradient(700px 500px at 100% 95%, rgba(36, 71, 212, 0.07), transparent 60%),
    linear-gradient(180deg, #FDFBF7 0%, #F7F9FE 55%, #F0F4FD 100%);
  pointer-events: none;
}

/* Cool section tints — used instead of cream-200 alternating bg */
.section-fresh {
  background:
    linear-gradient(180deg, rgba(244, 247, 254, 0.55), rgba(232, 238, 251, 0.45)),
    var(--cream-100);
}
.section-fresh-strong {
  background:
    linear-gradient(180deg, rgba(232, 238, 251, 0.70), rgba(217, 226, 248, 0.55)),
    var(--cream-100);
}

/* Static SVG noise overlay — survives whether or not WebGL mounts */
.grain-fixed {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.10 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 1 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* Vanta canvas mounting target */
.vanta-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.vanta-stage > canvas { display: block; }

/* Reduced motion fallback */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Typography ---------- */
.font-display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.025em; }
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 400;
  padding-block-end: 0.18em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.2vw, 4rem);
  line-height: 1.10;
  letter-spacing: -0.035em;
  font-weight: 400;
  padding-block-end: 0.16em;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  font-weight: 500;
  padding-block-end: 0.12em;
}
/* Force descender room on em italic spans inside display headings */
.display-xl em, .display-lg em, .display-md em {
  display: inline-block;
  padding-block-end: 0.05em;
}
.headline {
  font-family: var(--font-sans);
  font-size: clamp(1.375rem, 1.6vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.body-lg { font-size: 1.0625rem; line-height: 1.6; }
.body-md { font-size: 1rem; line-height: 1.6; }
.body-sm { font-size: 0.9375rem; line-height: 1.6; }
.kicker {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--espresso-500);
}

/* High-contrast stat label — for numbers over glass / busy backgrounds.
   Bolder + darker than kicker so it doesn't dissolve into the surface. */
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--espresso-800);
}

/* Editorial signature — italic Sentient byline */
.signature-line {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--espresso-700);
  letter-spacing: -0.01em;
}
.signature-line::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: var(--espresso-700);
  opacity: 0.6;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--espresso-600);
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* ---------- Glass system ---------- */
.bezel-shell {
  position: relative;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.18) 60%, rgba(255,255,255,0.06) 100%);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.92) inset,
    0 -1px 0 0 rgba(26,20,16,0.06) inset,
    0 2px 4px -1px rgba(26,20,16,0.04),
    0 12px 28px -10px rgba(26,20,16,0.10),
    0 28px 68px -28px rgba(26,20,16,0.22),
    0 60px 120px -60px rgba(36,71,212,0.14);
  isolation: isolate;
}
.bezel-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,0.7) 18%,
    rgba(26,20,16,0.04) 45%,
    rgba(26,20,16,0.10) 78%,
    rgba(255,255,255,0.85) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.bezel-core {
  position: relative;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(253,251,247,0.78) 0%, rgba(253,251,247,0.58) 100%);
  -webkit-backdrop-filter: blur(36px) saturate(1.45);
  backdrop-filter: blur(36px) saturate(1.45);
}
.bezel-core::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(255,255,255,0.55) 0%, transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,0.35) 0%, transparent 28%);
  mix-blend-mode: screen;
  opacity: 0.85;
  z-index: 0;
}

.bezel-pill { border-radius: 9999px; }
.bezel-pill .bezel-core { border-radius: inherit; }

/* Opaque variant — for floating dropdowns / mega-menus so menu text
   stays readable against any page content behind it. */
.bezel-core-strong {
  border-radius: inherit;
  background: rgba(253, 251, 247, 0.94);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
  backdrop-filter: blur(28px) saturate(1.2);
}

/* Even more opaque — solid panel feel for navbar mega-menus on busy pages.
   Adds inner highlight + outer ring for crisp lift off the page. */
.bezel-core-opaque {
  border-radius: inherit;
  background: #FFFFFF;
  -webkit-backdrop-filter: blur(36px) saturate(1.25);
  backdrop-filter: blur(36px) saturate(1.25);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.95) inset,
    0 -1px 0 0 rgba(26,20,16,0.04) inset,
    0 24px 60px -22px rgba(26,20,16,0.22),
    0 40px 80px -30px rgba(36,71,212,0.18);
}

/* Aurora hover — mouse-tracked conic gradient ring */
.glass-edge-glow {
  position: relative;
}
.glass-edge-glow::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from var(--ang, 0deg), transparent 0deg, rgba(36,71,212,0.45) 60deg, transparent 120deg, transparent 360deg);
  opacity: 0;
  transition: opacity 0.4s var(--ease-lux);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
  z-index: 1;
}
.glass-edge-glow:hover::after { opacity: 1; }
@property --ang {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.glass-edge-glow:hover { animation: edgeGlowSpin 4s linear infinite; }
@keyframes edgeGlowSpin {
  to { --ang: 360deg; }
}

.glass-pane {
  background: var(--glass-tint-strong);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  backdrop-filter: blur(20px) saturate(1.1);
  border: 1px solid var(--glass-edge);
  border-radius: 24px;
}

/* ---------- Buttons / CTAs ---------- */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 0.875rem 0.875rem 1.5rem;
  border-radius: 9999px;
  background: linear-gradient(180deg, var(--cobalt-500), var(--cobalt-600));
  color: var(--cream-100);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.25) inset, 0 12px 28px -12px rgba(36,71,212,0.5), 0 4px 10px -2px rgba(36,71,212,0.35);
  transition: transform var(--dur-ui) var(--ease-spring), box-shadow var(--dur-ui) var(--ease-lux), background var(--dur-ui) var(--ease-lux);
}
.cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.3) inset, 0 18px 36px -14px rgba(36,71,212,0.55), 0 6px 12px -2px rgba(36,71,212,0.4);
}
.cta-primary:active { transform: translateY(0); }

.cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.16);
  color: currentColor;
  transition: transform var(--dur-ui) var(--ease-spring), background var(--dur-ui) var(--ease-lux);
}
.cta-primary:hover .cta-icon { transform: translateX(2px) rotate(-2deg); background: rgba(255,255,255,0.24); }

.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 0.875rem 0.875rem 1.5rem;
  border-radius: 9999px;
  background: transparent;
  color: var(--espresso-900);
  font-weight: 500;
  font-size: 0.9375rem;
  border: 1px solid var(--glass-edge);
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.7) inset;
  transition: transform var(--dur-ui) var(--ease-spring), background var(--dur-ui) var(--ease-lux), border-color var(--dur-ui) var(--ease-lux);
}
.cta-ghost:hover {
  background: rgba(26,20,16,0.04);
  border-color: rgba(26,20,16,0.18);
  transform: translateY(-1px);
}
.cta-ghost .cta-icon {
  background: rgba(26,20,16,0.05);
  color: var(--espresso-900);
}
.cta-ghost:hover .cta-icon { background: rgba(26,20,16,0.08); transform: translateX(2px) rotate(-2deg); }
.cta-ghost-sm {
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  font-size: 0.8125rem;
  gap: 0.5rem;
}
.cta-ghost-sm .cta-icon { width: 1.5rem; height: 1.5rem; }

/* SECTOR CARDS — clean glass card with gradient head, no placeholder text */
.sektor-card {
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(253,251,247,0.78);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
  backdrop-filter: blur(28px) saturate(1.25);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.9) inset,
    0 12px 32px -12px rgba(26,20,16,0.12),
    0 28px 56px -28px rgba(36,71,212,0.10);
  transition: transform 480ms var(--ease-lux), box-shadow 480ms var(--ease-lux);
  isolation: isolate;
}
.sektor-card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255,255,255,0.95), rgba(26,20,16,0.06) 50%, rgba(26,20,16,0.12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}
.sektor-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.95) inset,
    0 20px 44px -16px rgba(26,20,16,0.16),
    0 44px 88px -32px rgba(36,71,212,0.18);
}
.sektor-card-head {
  position: relative;
  aspect-ratio: 16 / 11;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.sektor-card-head::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 20% 20%, rgba(255,255,255,0.4), transparent 55%),
    radial-gradient(80% 60% at 80% 100%, rgba(26,20,16,0.18), transparent 60%);
  pointer-events: none;
}
.sektor-num {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(26,20,16,0.45);
  z-index: 1;
}
.sektor-icon {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.9) inset,
    0 8px 16px -6px rgba(26,20,16,0.12);
  z-index: 1;
  transition: transform 480ms var(--ease-spring);
}
.sektor-card:hover .sektor-icon {
  transform: scale(1.06) rotate(-3deg);
}
.sektor-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cta-gilt {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 0.875rem 0.875rem 1.5rem;
  border-radius: 9999px;
  background: linear-gradient(180deg, var(--gilt-500), var(--gilt-600));
  color: var(--espresso-900);
  font-weight: 500;
  font-size: 0.9375rem;
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.4) inset, 0 12px 28px -12px rgba(201,169,107,0.55);
  transition: transform var(--dur-ui) var(--ease-spring);
}
.cta-gilt:hover { transform: translateY(-1px); }

.link-cobalt {
  color: var(--cobalt-600);
  position: relative;
  display: inline-block;
}
.link-cobalt::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-ui) var(--ease-lux);
}
.link-cobalt:hover::after { transform: scaleX(1); }

/* ---------- Cards ---------- */
.card-3d {
  position: relative;
  transform-style: preserve-3d;
  transition: transform var(--dur-ui) var(--ease-lux), box-shadow var(--dur-ui) var(--ease-lux);
  will-change: transform;
}
.card-3d:hover { box-shadow: var(--shadow-lift); }

.card-lux {
  position: relative;
  border-radius: 28px;
  background: var(--glass-tint-strong);
  -webkit-backdrop-filter: blur(24px) saturate(1.1);
  backdrop-filter: blur(24px) saturate(1.1);
  padding: 2rem;
  box-shadow: var(--shadow-lux-1);
}
.card-lux::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255,255,255,0.9), rgba(26,20,16,0.05) 50%, rgba(26,20,16,0.10));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card-gilt::before {
  background: linear-gradient(140deg, rgba(232,212,168,0.95), rgba(201,169,107,0.40) 50%, rgba(201,169,107,0.20));
}

/* ---------- Layout primitives ---------- */
.container-lux {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}
.container-prose {
  width: 100%;
  max-width: var(--container-prose);
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 1.5rem);
}

.section-y { padding-block: var(--section-y); }
.section-y-sm { padding-block: clamp(2.5rem, 5vw, 4.5rem); }

/* ---------- Header / Nav ---------- */
.nav-pill {
  background: var(--glass-tint-strong);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.85) inset, 0 12px 36px -12px rgba(26,20,16,0.18), 0 24px 48px -24px rgba(36,71,212,0.12);
  transition: padding var(--dur-ui) var(--ease-lux), box-shadow var(--dur-ui) var(--ease-lux);
}
header[data-scrolled="true"] .nav-pill {
  background: var(--glass-tint-strong);
  -webkit-backdrop-filter: blur(36px) saturate(1.3);
  backdrop-filter: blur(36px) saturate(1.3);
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.9) inset, 0 18px 42px -14px rgba(26,20,16,0.22), 0 32px 64px -28px rgba(36,71,212,0.18);
}

.nav-progress {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
  overflow: hidden;
  border-radius: 9999px;
}
.nav-progress::before {
  content: "";
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--cobalt-500), transparent);
  transition: width 0.1s linear;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 60;
  padding: 0.5rem 0.875rem;
  background: var(--espresso-900);
  color: var(--cream-100);
  border-radius: 9999px;
  font-size: 0.8125rem;
  transform: translateY(-150%);
  transition: transform var(--dur-ui) var(--ease-lux);
}
.skip-link:focus { transform: translateY(0); }

/* Mobile menu */
.menu-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-ui) var(--ease-lux), visibility 0s linear var(--dur-ui);
}
.menu-overlay[data-open="true"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--dur-ui) var(--ease-lux), visibility 0s;
}
.menu-overlay[data-open="true"] [data-stagger] {
  opacity: 0;
  transform: translateY(8px);
  animation: revealUp var(--dur-section) var(--ease-glide) forwards;
  animation-delay: calc(var(--i, 0) * 60ms + 100ms);
}

/* Burger anim */
.burger-line { transition: transform var(--dur-ui) var(--ease-lux), opacity var(--dur-ui) var(--ease-lux); }
[data-burger][aria-expanded="true"] .burger-line-1 { transform: translateY(3px) rotate(45deg); }
[data-burger][aria-expanded="true"] .burger-line-2 { transform: translateY(-3px) rotate(-45deg); }

/* Active nav state */
nav[data-nav] a[data-active="true"] {
  color: var(--cobalt-600);
}
nav[data-nav] a[data-active="true"]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: var(--cobalt-600);
}

/* ---------- Reveal / animation utilities ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-section) var(--ease-glide), transform var(--dur-section) var(--ease-glide);
  transition-delay: calc(var(--reveal-d, 0) * 1ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-section) var(--ease-glide), transform var(--dur-section) var(--ease-glide);
}
[data-reveal-stagger].is-in > * {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--reveal-i, 0) * 80ms);
}
[data-reveal-stagger].is-in > *:nth-child(1) { --reveal-i: 0; }
[data-reveal-stagger].is-in > *:nth-child(2) { --reveal-i: 1; }
[data-reveal-stagger].is-in > *:nth-child(3) { --reveal-i: 2; }
[data-reveal-stagger].is-in > *:nth-child(4) { --reveal-i: 3; }
[data-reveal-stagger].is-in > *:nth-child(5) { --reveal-i: 4; }
[data-reveal-stagger].is-in > *:nth-child(6) { --reveal-i: 5; }
[data-reveal-stagger].is-in > *:nth-child(7) { --reveal-i: 6; }
[data-reveal-stagger].is-in > *:nth-child(8) { --reveal-i: 7; }
[data-reveal-stagger].is-in > *:nth-child(9) { --reveal-i: 8; }
[data-reveal-stagger].is-in > *:nth-child(10) { --reveal-i: 9; }
[data-reveal-stagger].is-in > *:nth-child(11) { --reveal-i: 10; }
[data-reveal-stagger].is-in > *:nth-child(12) { --reveal-i: 11; }

@keyframes revealUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.float-soft { animation: floatY 6s var(--ease-lux) infinite; }
.float-slow { animation: floatY 10s var(--ease-lux) infinite; }

@keyframes orbit {
  from { transform: rotate(0deg) translateX(40px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(40px) rotate(-360deg); }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  --duration: 40s;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeRun var(--duration) linear infinite;
  gap: 3rem;
}
.marquee[data-paused="true"] .marquee-track { animation-play-state: paused; }
@keyframes marqueeRun {
  to { transform: translateX(-50%); }
}

/* ---------- Stat counter ---------- */
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.4vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--espresso-900);
  font-variant-numeric: tabular-nums;
}

/* ---------- Phone mockup carousel ---------- */
.phone-frame {
  position: relative;
  border-radius: 36px;
  background: transparent;
  filter: drop-shadow(0 30px 60px rgba(26,20,16,0.30)) drop-shadow(0 60px 120px rgba(36,71,212,0.18));
  transform-style: preserve-3d;
}
.phone-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ---------- Tag / chip ---------- */
.tag-mono {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: rgba(26,20,16,0.05);
  color: var(--espresso-700);
}
.tag-cobalt { background: rgba(36,71,212,0.08); color: var(--cobalt-600); }
.tag-gilt { background: rgba(201,169,107,0.16); color: #8C6F2A; }

.divider-rune {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--espresso-500);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.divider-rune::before, .divider-rune::after {
  content: "";
  height: 1px;
  width: 2.5rem;
  background: currentColor;
  opacity: 0.4;
}

/* ---------- Forms ---------- */
.field-glass {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.55);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  border: 1px solid var(--glass-edge);
  color: var(--espresso-900);
  font-size: 0.9375rem;
  transition: border-color var(--dur-ui) var(--ease-lux), background var(--dur-ui) var(--ease-lux), box-shadow var(--dur-ui) var(--ease-lux);
}
.field-glass::placeholder { color: var(--espresso-500); }
.field-glass:focus {
  outline: none;
  border-color: var(--cobalt-500);
  background: rgba(255,255,255,0.75);
  box-shadow: 0 0 0 4px rgba(36,71,212,0.10);
}

.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--espresso-600);
  margin-bottom: 0.5rem;
}

/* ---------- Accordion (details/summary) ---------- */
details.lux-accordion {
  border-radius: 18px;
  background: var(--glass-tint-strong);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-edge);
  overflow: hidden;
  transition: border-color var(--dur-ui) var(--ease-lux);
}
details.lux-accordion[open] { border-color: rgba(36,71,212,0.18); }
details.lux-accordion summary {
  padding: 1.125rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  color: var(--espresso-900);
}
details.lux-accordion summary::-webkit-details-marker { display: none; }
details.lux-accordion summary .acc-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: rgba(26,20,16,0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-ui) var(--ease-spring), background var(--dur-ui) var(--ease-lux);
}
details.lux-accordion[open] summary .acc-icon {
  transform: rotate(45deg);
  background: rgba(36,71,212,0.12);
  color: var(--cobalt-600);
}
details.lux-accordion .acc-body {
  padding: 0 1.25rem 1.25rem;
  color: var(--espresso-700);
  font-size: 0.9375rem;
  line-height: 1.7;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    height 380ms var(--ease-lux),
    opacity 260ms var(--ease-lux),
    transform 380ms var(--ease-lux),
    padding-block 380ms var(--ease-lux);
}
details.lux-accordion[data-anim-open] .acc-body {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  details.lux-accordion .acc-body { transition: none; }
}

/* ---------- Phosphor icon utility ---------- */
.icon {
  width: 1em;
  height: 1em;
  vertical-align: middle;
  fill: currentColor;
  flex-shrink: 0;
}
.icon-lg { width: 1.5em; height: 1.5em; }
.icon-xl { width: 2em; height: 2em; }

/* ---------- Tabs ---------- */
.tab-bar {
  display: inline-flex;
  padding: 0.25rem;
  border-radius: 9999px;
  background: var(--glass-tint-sheer);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-edge);
  gap: 0.25rem;
}
.tab-bar button {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--espresso-700);
  transition: background var(--dur-ui) var(--ease-lux), color var(--dur-ui) var(--ease-lux);
}
.tab-bar button[data-active="true"] {
  background: var(--cream-100);
  color: var(--espresso-900);
  box-shadow: 0 1px 2px rgba(26,20,16,0.08);
}

/* ---------- Tilt mouse-track 3D ---------- */
[data-tilt] {
  transform: perspective(900px) rotateX(0) rotateY(0);
  transition: transform var(--dur-ui) var(--ease-lux);
  transform-style: preserve-3d;
}

/* ---------- Misc ---------- */
.scroll-rail {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cobalt-500), var(--cobalt-400));
  width: var(--progress, 0%);
  z-index: 60;
  pointer-events: none;
}

.no-wrap-sm { white-space: nowrap; }

/* selection */
::selection { background: var(--espresso-900); color: var(--cream-100); }

/* utility — scroll snap */
.snap-x-mandatory { scroll-snap-type: x mandatory; }
.snap-start { scroll-snap-align: start; }

/* Hide scrollbar but keep scrolling */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* ---------- Section dividers ---------- */
.divider-soft {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-edge), transparent);
}

/* ---------- Code block ---------- */
.code-glass {
  background: rgba(26,20,16,0.92);
  color: #E6EAF5;
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  overflow: auto;
  box-shadow: 0 30px 60px -20px rgba(26,20,16,0.45);
}
.code-glass .tok-keyword { color: #BCA0FF; }
.code-glass .tok-string { color: #B8D699; }
.code-glass .tok-num { color: #F2C272; }
.code-glass .tok-comment { color: #6B7488; font-style: italic; }
.code-glass .tok-fn { color: #7AB8F5; }

/* ---------- Pricing card highlight ---------- */
.price-tier {
  position: relative;
  border-radius: 28px;
  padding: 2rem;
  background: var(--glass-tint-strong);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-lux-1);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.price-tier-feature {
  border-color: rgba(201,169,107,0.4);
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.85) inset, 0 32px 64px -24px rgba(201,169,107,0.30), 0 60px 120px -60px rgba(26,20,16,0.20);
}

/* ---------- Bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 768px) {
  .bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.25rem;
  }
}
.bento > * {
  grid-column: span 6 / span 6;
  min-height: 220px;
}
@media (min-width: 768px) {
  .bento > .b-2  { grid-column: span 2; }
  .bento > .b-3  { grid-column: span 3; }
  .bento > .b-4  { grid-column: span 4; }
  .bento > .b-6  { grid-column: span 6; }
  .bento > .b-r2 { grid-row: span 2; }
  .bento > .b-tall { min-height: 480px; }
}

/* Bento tile — glass surface with optional image and content overlay */
.bento-tile {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--glass-tint-strong);
  -webkit-backdrop-filter: blur(24px) saturate(1.1);
  backdrop-filter: blur(24px) saturate(1.1);
  box-shadow: var(--shadow-lux-1);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-ui) var(--ease-lux), box-shadow var(--dur-ui) var(--ease-lux);
}
.bento-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255,255,255,0.9), rgba(26,20,16,0.05) 50%, rgba(26,20,16,0.10));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.bento-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lux-2);
}
.bento-tile-img {
  position: relative;
  flex: 1 1 auto;
  min-height: 12rem;
  overflow: hidden;
  background: var(--cream-200);
}
.bento-tile-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease-lux);
}
.bento-tile:hover .bento-tile-img img { transform: scale(1.04); }
.bento-tile-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.bento-tile-body.is-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem 1.5rem 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(26,20,16,0.55) 60%);
  color: var(--cream-100);
}
.bento-tile-body.is-overlay .b-title { color: var(--cream-100); }
.bento-tile-body.is-overlay .b-lede { color: rgba(253,251,247,0.85); }

/* MODULE CARD — bento variant with gradient head + body (no placeholder text) */
.module-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(253,251,247,0.85);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
  backdrop-filter: blur(28px) saturate(1.25);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.9) inset,
    0 12px 32px -12px rgba(26,20,16,0.10),
    0 28px 56px -28px rgba(36,71,212,0.08);
  transition: transform 480ms var(--ease-lux), box-shadow 480ms var(--ease-lux);
  isolation: isolate;
}
.module-card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255,255,255,0.95), rgba(26,20,16,0.05) 50%, rgba(26,20,16,0.12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}
.module-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.95) inset,
    0 20px 44px -16px rgba(26,20,16,0.14),
    0 44px 88px -32px rgba(36,71,212,0.18);
}
.module-card-head {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 9rem;
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
}
.module-card-head::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 15% 15%, rgba(255,255,255,0.45), transparent 55%),
    radial-gradient(80% 60% at 85% 100%, rgba(26,20,16,0.16), transparent 60%);
  pointer-events: none;
}
.module-card-feature .module-card-head { aspect-ratio: auto; min-height: 100%; padding: 1.75rem; }
.module-card .module-num {
  position: relative; z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(26,20,16,0.55);
}
.module-card .module-card-icon {
  position: relative; z-index: 1;
  width: 3rem; height: 3rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.9) inset,
    0 6px 14px -4px rgba(26,20,16,0.12);
  transition: transform 480ms var(--ease-spring);
}
.module-card:hover .module-card-icon { transform: scale(1.06) rotate(-3deg); }
.module-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
}

/* MODULE DETAIL — dossier nav v2 (real glass pill) */
.dossier-nav-v2 { position: sticky; top: 5.5rem; z-index: 20; display: flex; justify-content: center; }
.dossier-link {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.125rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--espresso-700);
  white-space: nowrap;
  transition: background 280ms var(--ease-lux), color 280ms var(--ease-lux);
}
.dossier-link:hover { background: rgba(36,71,212,0.08); color: var(--cobalt-600); }
.dossier-link.is-active { background: var(--cobalt-600); color: var(--cream-100); }

/* MODULE — step glass card (used on dark §3) */
.step-glass-card {
  position: relative;
  padding: 1.75rem;
  border-radius: 24px;
  background: rgba(253,251,247,0.06);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(253,251,247,0.12);
  box-shadow:
    0 1px 0 0 rgba(253,251,247,0.15) inset,
    0 24px 60px -28px rgba(0,0,0,0.5);
  isolation: isolate;
  height: 100%;
}
.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--gilt-400);
}

/* MODULE — hero card subtle glow */
.module-hero-card {
  position: relative;
  transition: transform 600ms var(--ease-lux);
}

/* FAQ CATEGORY LINKS */
.faq-cat {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem;
  border-radius: 0.875rem;
  color: var(--espresso-700);
  transition: background 280ms var(--ease-lux), color 280ms var(--ease-lux);
}
.faq-cat:hover { color: var(--espresso-900); background: rgba(36,71,212,0.06); }
.faq-cat.is-active { color: var(--cobalt-600); background: rgba(36,71,212,0.10); }
.faq-cat-ic {
  width: 2.25rem; height: 2.25rem;
  border-radius: 0.625rem;
  background: rgba(36,71,212,0.08);
  color: var(--cobalt-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.faq-cat.is-active .faq-cat-ic { background: var(--cobalt-600); color: var(--cream-100); }

/* FOOTER — refined newsletter subscribe button */
.subscribe-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem 0.5rem 1.1rem;
  border-radius: 9999px;
  background: linear-gradient(180deg, var(--cobalt-500), var(--cobalt-600));
  color: var(--cream-100);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.25) inset,
    0 -1px 0 0 rgba(26,20,16,0.15) inset,
    0 6px 16px -4px rgba(36,71,212,0.35),
    0 12px 28px -8px rgba(36,71,212,0.22);
  isolation: isolate;
  overflow: hidden;
  transition: transform 280ms var(--ease-spring), box-shadow 280ms var(--ease-lux), filter 280ms var(--ease-lux);
}
.subscribe-btn::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 700ms var(--ease-lux);
  pointer-events: none;
  z-index: 1;
}
.subscribe-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.3) inset,
    0 -1px 0 0 rgba(26,20,16,0.15) inset,
    0 10px 24px -6px rgba(36,71,212,0.50),
    0 18px 36px -8px rgba(36,71,212,0.30);
}
.subscribe-btn:hover::before { transform: translateX(110%); }
.subscribe-btn:active { transform: translateY(0); filter: brightness(0.95); }
.subscribe-btn > span { position: relative; z-index: 2; }
.subscribe-icon {
  width: 1.5rem; height: 1.5rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 280ms var(--ease-spring), background 280ms var(--ease-lux);
}
.subscribe-btn:hover .subscribe-icon {
  background: rgba(255,255,255,0.28);
  transform: translateX(2px) rotate(-3deg);
}

/* PRICE RIBBON — diagonal corner banner (like price tag) */
.price-ribbon {
  position: absolute;
  top: 1.25rem;
  right: -2.6rem;
  z-index: 10;
  transform: rotate(45deg);
  background: linear-gradient(90deg, var(--cobalt-500), var(--cobalt-600));
  color: var(--cream-100);
  padding: 0.4rem 3rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.2) inset,
    0 6px 18px -4px rgba(36,71,212,0.45);
  pointer-events: none;
}
.price-ribbon::before, .price-ribbon::after {
  content: "";
  position: absolute;
  width: 0; height: 0;
  border-style: solid;
}
.price-ribbon::before {
  left: 0; bottom: -5px;
  border-width: 5px 5px 0 0;
  border-color: #1A337F transparent transparent transparent;
}
.price-ribbon::after {
  right: 0; bottom: -5px;
  border-width: 5px 0 0 5px;
  border-color: #1A337F transparent transparent transparent;
}

/* LUX BUBBLE — reliable orb without Tailwind gradient opacity dependency */
.lux-bubble {
  position: absolute;
  border-radius: 9999px;
  filter: blur(24px);
  pointer-events: none;
  mix-blend-mode: multiply;
  animation: bubbleFloat 14s var(--ease-lux) infinite alternate;
}
.lux-bubble-cobalt {
  background: radial-gradient(circle at 30% 30%, rgba(102,128,240,0.85), rgba(36,71,212,0.55) 45%, rgba(36,71,212,0.20) 75%, transparent 100%);
}
.lux-bubble-gilt {
  background: radial-gradient(circle at 30% 30%, rgba(232,212,168,0.95), rgba(201,169,107,0.6) 45%, rgba(201,169,107,0.25) 75%, transparent 100%);
}
.lux-bubble-mix {
  background: radial-gradient(circle at 35% 30%, rgba(102,128,240,0.7), rgba(232,212,168,0.5) 50%, transparent 100%);
}
@keyframes bubbleFloat {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(8px, -14px, 0) scale(1.04); }
  100% { transform: translate3d(-6px, 10px, 0) scale(0.97); }
}
@media (prefers-reduced-motion: reduce) {
  .lux-bubble { animation: none; }
}

/* BLOG — article prose typography */
.prose-article {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--espresso-800);
  max-width: 64ch;
}
.prose-article p { margin-block: 1.25rem; }
.prose-article .lead {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.45;
  color: var(--espresso-900);
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}
.prose-article h2 {
  margin-top: 3rem;
  margin-bottom: 0.75rem;
}
.prose-article .prose-list { margin-top: 1.5rem; }
.prose-article .prose-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-block: 0.625rem;
}
.prose-article .prose-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 0.4rem; height: 0.4rem;
  border-radius: 9999px;
  background: var(--cobalt-600);
}
.prose-article strong { color: var(--espresso-900); font-weight: 600; }

/* BLOG — scroll progress bar */
.blog-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(26,20,16,0.04);
  z-index: 50;
  pointer-events: none;
}
.blog-progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cobalt-600), var(--gilt-600));
  transition: width 60ms linear;
}

/* ENTEGRASYONLAR — ecosystem orbit */
.orbit-stage {
  position: relative;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.orbit-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 8rem; height: 8rem;
}
.orbit-core-inner {
  width: 100%; height: 100%;
  border-radius: 9999px;
  background: linear-gradient(180deg, var(--cobalt-500), var(--cobalt-600));
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.4) inset,
    0 24px 60px -16px rgba(36,71,212,0.55),
    0 60px 120px -40px rgba(36,71,212,0.35);
  position: relative;
  z-index: 2;
}
.orbit-pulse {
  position: absolute; inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(36,71,212,0.4);
  animation: orbitPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes orbitPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}
.orbit-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 9999px;
  border: 1px dashed rgba(36,71,212,0.15);
  pointer-events: none;
}
.orbit-ring-1 {
  width: 280px; height: 280px;
  transform: translate(-50%, -50%);
}
.orbit-ring-2 {
  width: 420px; height: 420px;
  transform: translate(-50%, -50%);
}
.orbit-orb {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  transform: translate(-50%, -50%) rotate(var(--angle));
  animation: orbitSpin 32s linear infinite;
  pointer-events: none;
}
.orbit-orb.orb-r1 { animation-duration: 28s; }
.orbit-orb.orb-r2 { animation-duration: 44s; animation-direction: reverse; }
@keyframes orbitSpin {
  to { transform: translate(-50%, -50%) rotate(calc(var(--angle) + 360deg)); }
}
.orbit-orb-inner {
  position: absolute;
  left: 0; top: 0;
  width: 5rem; height: 5rem;
  border-radius: 1.5rem;
  background: rgba(253,251,247,0.85);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.95) inset,
    0 12px 28px -8px rgba(26,20,16,0.18);
  pointer-events: auto;
  /* counter-rotate so label stays readable while orb travels */
  animation: orbitCounter 28s linear infinite reverse;
}
.orb-r2 .orbit-orb-inner {
  animation-duration: 44s;
  animation-direction: normal;
}
@keyframes orbitCounter {
  to { transform: rotate(360deg); }
}
.orb-r1 .orbit-orb-inner { transform: translate(140px, -40px); }
.orb-r2 .orbit-orb-inner { transform: translate(210px, -40px); }
@media (max-width: 768px) {
  .orbit-ring-1 { width: 220px; height: 220px; }
  .orbit-ring-2 { width: 320px; height: 320px; }
  .orb-r1 .orbit-orb-inner { transform: translate(110px, -32px); width: 4rem; height: 4rem; }
  .orb-r2 .orbit-orb-inner { transform: translate(160px, -32px); width: 4rem; height: 4rem; }
  .orbit-core { width: 6rem; height: 6rem; }
}
.orbit-orb-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--espresso-700);
  text-align: center;
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .orbit-orb, .orbit-orb-inner, .orbit-pulse { animation: none; }
}

/* ENTEGRASYONLAR — Mac window for API panel */
.mac-window {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  background: rgba(15,10,7,0.65);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(253,251,247,0.10);
  box-shadow:
    0 1px 0 0 rgba(253,251,247,0.15) inset,
    0 32px 80px -32px rgba(0,0,0,0.7);
}
.mac-window-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(253,251,247,0.08);
  background: rgba(15,10,7,0.5);
}
.mac-dot {
  width: 0.75rem; height: 0.75rem;
  border-radius: 9999px;
  display: inline-block;
}
.mac-window-title {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(253,251,247,0.5);
}
.mac-window-body { padding: 1.25rem 1.5rem; overflow-x: auto; }
.api-code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: rgba(253,251,247,0.92);
  margin: 0;
  white-space: pre;
}
.api-c-method { color: #61C554; font-weight: 600; }
.api-c-path { color: #F4BF4F; }
.api-c-key { color: #6680F0; }
.api-c-str { color: #E8D4A8; }
.api-c-num { color: #ED6A5E; }
.api-c-brace { color: rgba(253,251,247,0.6); }
.api-c-comment { color: rgba(253,251,247,0.4); font-style: italic; }

/* ENTEGRASYONLAR — webhook flow nodes */
.webhook-flow {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  position: relative;
}
@media (min-width: 768px) {
  .webhook-flow {
    grid-template-columns: repeat(4, 1fr);
  }
}
.webhook-node {
  position: relative;
  padding: 1.75rem;
  border-radius: 1.5rem;
  background: rgba(253,251,247,0.78);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  backdrop-filter: blur(28px) saturate(1.3);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.95) inset,
    0 12px 28px -10px rgba(26,20,16,0.10),
    0 28px 56px -28px rgba(36,71,212,0.10);
  border: 1px solid rgba(26,20,16,0.06);
  isolation: isolate;
  text-align: left;
}
.webhook-node + .webhook-node::before {
  content: "";
  position: absolute;
  width: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(36,71,212,0.4));
  top: 50%;
  left: -1rem;
  display: none;
}
@media (min-width: 768px) {
  .webhook-node + .webhook-node::before { display: block; }
}
.webhook-node-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--cobalt-600);
}
.webhook-node-ic {
  margin-top: 0.75rem;
  width: 3rem; height: 3rem;
  border-radius: 0.875rem;
  background: rgba(36,71,212,0.10);
  color: var(--cobalt-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.webhook-node-h {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--espresso-900);
}
.webhook-node-d {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--espresso-700);
  line-height: 1.55;
}

/* HAKKIMIZDA — team card easter eggs (hover-only) */
.team-card { transition: transform 480ms var(--ease-spring); }
.team-card .team-portrait { transition: transform 600ms var(--ease-lux), box-shadow 600ms var(--ease-lux); }
.team-card:hover .team-portrait { transform: translateY(-6px); }

/* ============================================================
   DENİZ YILDIRIM — storm-at-sea with lightning strike
   Layers (bottom→top):
     1. deniz-tint    — deep sea-blue color wash (breathing)
     2. deniz-caustic — drifting storm light streaks
     3. deniz-flash   — white-hot illumination during strike
     4. deniz-bolt    — gold lightning bolt SVG, strikes every cycle
     5. deniz-holo    — rotating holographic ring (electric border)
============================================================ */
.team-card-deniz .team-portrait { isolation: isolate; }
.team-card-deniz .deniz-tint,
.team-card-deniz .deniz-caustic,
.team-card-deniz .deniz-flash,
.team-card-deniz .deniz-bolt,
.team-card-deniz .deniz-holo {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms var(--ease-lux);
}

/* L1 — color wash */
.team-card-deniz .deniz-tint {
  inset: 0;
  background:
    radial-gradient(circle at 35% 25%, rgba(102,128,240,0.42), transparent 55%),
    linear-gradient(180deg, rgba(36,71,212,0.18) 0%, rgba(13,34,90,0.32) 100%);
  mix-blend-mode: multiply;
  z-index: 2;
}
.team-card-deniz:hover .deniz-tint { opacity: 1; animation: denizBreathe 4.5s ease-in-out infinite; }
@keyframes denizBreathe {
  0%, 100% { filter: brightness(1) saturate(1); }
  50%      { filter: brightness(1.08) saturate(1.18); }
}

/* L2 — caustic light sweep */
.team-card-deniz .deniz-caustic {
  inset: -25%;
  background:
    repeating-linear-gradient(115deg,
      transparent 0px,
      rgba(255,255,255,0.18) 6px,
      transparent 16px,
      rgba(180,210,255,0.25) 30px,
      transparent 46px);
  filter: blur(8px);
  mix-blend-mode: screen;
  z-index: 3;
}
.team-card-deniz:hover .deniz-caustic {
  opacity: 0.6;
  animation: denizCaustic 7s linear infinite;
}
@keyframes denizCaustic {
  0%   { transform: translate(-12%, -8%) rotate(0deg); }
  50%  { transform: translate(8%, 6%) rotate(2deg); }
  100% { transform: translate(-12%, -8%) rotate(0deg); }
}

/* L3 — WHITE FLASH overlay during strikes (illuminates whole portrait briefly) */
.team-card-deniz .deniz-flash {
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,250,220,0.78) 0%, rgba(255,236,170,0.35) 35%, transparent 72%);
  mix-blend-mode: screen;
  z-index: 4;
}
.team-card-deniz:hover .deniz-flash {
  animation: yildirimFlash 3s ease-out infinite;
}
@keyframes yildirimFlash {
  0%, 20%, 100% { opacity: 0; }
  3%            { opacity: 1; }     /* hard first strike flash */
  6%            { opacity: 0.2; }
  9%            { opacity: 0.9; }   /* second flash */
  12%           { opacity: 0.1; }
  15%           { opacity: 0.6; }   /* lingering third */
  19%           { opacity: 0; }
}

/* L4 — GOLD LIGHTNING BOLT (Yıldırım)
   Heavier glow stack for an authoritative, white-hot strike feel.
   Multi-flash sequence with forked branches included in the SVG.
*/
.team-card-deniz .deniz-bolt {
  top: 2%;
  left: 32%;
  width: 38%;
  height: 96%;
  z-index: 5;
  filter:
    drop-shadow(0 0 3px rgba(255,255,255,1))
    drop-shadow(0 0 10px rgba(255,250,220,1))
    drop-shadow(0 0 22px rgba(255,216,107,0.95))
    drop-shadow(0 0 44px rgba(229,176,70,0.65))
    drop-shadow(0 0 80px rgba(255,216,107,0.35));
  transform-origin: 50% 50%;
}
.team-card-deniz:hover .deniz-bolt {
  animation: yildirimStrike 3s steps(1, end) infinite;
}
/* Faster, sharper, more aggressive — authority through rapid double-strikes */
@keyframes yildirimStrike {
  0%, 20%, 100% { opacity: 0; transform: scale(0.92) rotate(0deg); }
  3%            { opacity: 1; transform: scale(1.12) rotate(-3deg); }   /* hard first strike */
  6%            { opacity: 0.25; transform: scale(1) rotate(0deg); }
  9%            { opacity: 1; transform: scale(1.08) rotate(2deg); }    /* second flash */
  12%           { opacity: 0.4; transform: scale(1) rotate(0deg); }
  15%           { opacity: 1; transform: scale(1.05) rotate(-1deg); }   /* lingering third */
  18%           { opacity: 0; transform: scale(0.96) rotate(0deg); }
}

/* L4b — SHOCKWAVE rings at strike impact (bottom of portrait) — thunder visualization */
.team-card-deniz .deniz-shockwave {
  position: absolute;
  bottom: 4%;
  left: 50%;
  width: 36px; height: 36px;
  border-radius: 9999px;
  border: 3px solid rgba(255,250,220,0.95);
  box-shadow: 0 0 20px 4px rgba(255,216,107,0.7), 0 0 40px 8px rgba(255,236,170,0.4);
  transform: translate(-50%, 50%) scale(0);
  opacity: 0;
  pointer-events: none;
  z-index: 6;
}
.team-card-deniz:hover .deniz-shock-1 { animation: yildirimShock1 3s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.team-card-deniz:hover .deniz-shock-2 { animation: yildirimShock2 3s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
@keyframes yildirimShock1 {
  0%, 6%, 100% { transform: translate(-50%, 50%) scale(0); opacity: 0; border-width: 3px; }
  9%           { transform: translate(-50%, 50%) scale(0.4); opacity: 1; }
  20%          { transform: translate(-50%, 50%) scale(7); opacity: 0; border-width: 0.5px; border-color: rgba(255,216,107,0.4); }
}
@keyframes yildirimShock2 {
  0%, 9%, 100% { transform: translate(-50%, 50%) scale(0); opacity: 0; border-width: 3px; }
  12%          { transform: translate(-50%, 50%) scale(0.3); opacity: 0.9; }
  25%          { transform: translate(-50%, 50%) scale(5.5); opacity: 0; border-width: 0.5px; }
}

/* L5 — holographic ring (electric current along the border) */
.team-card-deniz .deniz-holo {
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from 0deg,
    rgba(36,71,212,0) 0deg,
    rgba(102,128,240,0.7) 45deg,
    rgba(255,216,107,0.85) 110deg,
    rgba(232,212,168,0.5) 175deg,
    rgba(36,71,212,0) 240deg,
    rgba(102,128,240,0.5) 305deg,
    rgba(255,216,107,0.7) 350deg,
    rgba(36,71,212,0) 360deg);
  padding: 2px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 7;
}
.team-card-deniz:hover .deniz-holo {
  opacity: 1;
  animation: denizHolo 6s linear infinite;
}
@keyframes denizHolo { to { transform: rotate(360deg); } }

/* Portrait lift + thunder rumble on hover (subtle shake during strikes) */
.team-card-deniz:hover .team-portrait {
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.95) inset,
    0 32px 80px -28px rgba(36,71,212,0.55),
    0 70px 140px -40px rgba(13,34,90,0.45),
    0 0 0 1px rgba(255,216,107,0.22) inset;
  animation: yildirimRumble 3s ease-out infinite;
}
@keyframes yildirimRumble {
  0%, 18%, 100% { transform: translateY(-8px) translateX(0); }
  3%   { transform: translateY(-10px) translateX(-2.5px); }
  4%   { transform: translateY(-7px)  translateX(3px); }
  5%   { transform: translateY(-9px)  translateX(-1.5px); }
  6%   { transform: translateY(-8px)  translateX(2px); }
  9%   { transform: translateY(-11px) translateX(-2px); }
  10%  { transform: translateY(-7px)  translateX(2.5px); }
  11%  { transform: translateY(-9px)  translateX(-1px); }
  12%  { transform: translateY(-8px)  translateX(1.5px); }
  15%  { transform: translateY(-10px) translateX(-1px); }
  16%  { transform: translateY(-8px)  translateX(1px); }
  17%  { transform: translateY(-9px)  translateX(0); }
}
.team-card-deniz:hover img {
  filter: saturate(1.18) brightness(1.06) contrast(1.08);
  transform: scale(1.04);
  transition: filter 700ms var(--ease-lux), transform 900ms var(--ease-lux);
}

/* Name glow */
.team-card-deniz .font-display { transition: color 500ms var(--ease-lux), text-shadow 500ms var(--ease-lux); }
.team-card-deniz:hover .font-display {
  color: var(--cobalt-600);
  text-shadow: 0 0 28px rgba(255,216,107,0.40), 0 0 12px rgba(36,71,212,0.30);
}

@media (prefers-reduced-motion: reduce) {
  .team-card-deniz .deniz-tint,
  .team-card-deniz .deniz-caustic,
  .team-card-deniz .deniz-flash,
  .team-card-deniz .deniz-bolt,
  .team-card-deniz .deniz-holo { animation: none; }
}

/* ============================================================
   UYGAR — two eyes that follow the cursor on hover
   Eyes fade in on hover, JS updates pupil translate via mousemove
   tracking. Eyes hide and pupils re-center on mouseleave.
============================================================ */
.team-card-uygar .uygar-eyes {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms var(--ease-lux);
  z-index: 5;
}
.team-card-uygar:hover .uygar-eyes { opacity: 1; }

.uygar-eye {
  position: relative;
  width: 22%; height: 22%;
  max-width: 84px; max-height: 84px;
  min-width: 44px; min-height: 44px;
  border-radius: 9999px;
  background:
    radial-gradient(circle at 35% 32%, rgba(255,255,255,1) 0%, rgba(252,248,234,0.96) 60%, rgba(218,202,170,0.92) 100%);
  box-shadow:
    0 2px 0 0 rgba(255,255,255,0.95) inset,
    0 -3px 6px 0 rgba(13,34,90,0.18) inset,
    0 6px 18px -2px rgba(0,0,0,0.40),
    0 0 18px 2px rgba(201,169,107,0.5);
  transform: scale(0.7);
  transition: transform 480ms var(--ease-spring);
}
.team-card-uygar:hover .uygar-eye { transform: scale(1); }

.uygar-pupil {
  position: absolute;
  top: 50%; left: 50%;
  width: 38%; height: 38%;
  margin: -19% 0 0 -19%;
  border-radius: 9999px;
  background: radial-gradient(circle at 35% 30%, #1A3B82 0%, #0A1A40 75%, #050E26 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.20) inset,
    0 2px 4px 0 rgba(0,0,0,0.45);
  transition: transform 140ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.uygar-pupil::after {
  content: "";
  position: absolute;
  top: 16%; left: 22%;
  width: 26%; height: 26%;
  border-radius: 9999px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 0 4px 1px rgba(255,255,255,0.5);
}
.uygar-pupil::before {
  content: "";
  position: absolute;
  bottom: 18%; right: 26%;
  width: 12%; height: 12%;
  border-radius: 9999px;
  background: rgba(255,255,255,0.55);
}
.team-card-uygar:hover .team-portrait {
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.95) inset,
    0 24px 60px -20px rgba(201,169,107,0.45);
}
@media (prefers-reduced-motion: reduce) {
  .uygar-pupil { transition: none; }
  .uygar-eye { transition: none; }
}

/* AHMET — classic spotlight sweep */
.team-fx-ahmet {
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.45), transparent);
  pointer-events: none;
  transition: left 900ms var(--ease-lux);
}
.team-card-ahmet:hover .team-fx-ahmet { left: 150%; }
.team-card-ahmet:hover .team-portrait {
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.95) inset,
    0 24px 60px -20px rgba(26,20,16,0.32);
}

/* HAKKIMIZDA — vertical timeline */
.timeline-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.timeline-rail::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(36,71,212,0.2) 10%, rgba(36,71,212,0.2) 90%, transparent);
  transform: translateX(-50%);
}
@media (max-width: 1023px) {
  .timeline-rail::before { left: 1.5rem; transform: none; }
}
.timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  padding-left: 4rem;
}
.timeline-marker {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
  z-index: 1;
}
.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--cobalt-600);
  text-transform: uppercase;
}
.timeline-dot {
  margin-top: 0.5rem;
  width: 0.9rem; height: 0.9rem;
  border-radius: 9999px;
  background: var(--cobalt-600);
  box-shadow:
    0 0 0 6px rgba(36,71,212,0.10),
    0 8px 20px -4px rgba(36,71,212,0.45);
}
.timeline-card {
  width: 100%;
}
@media (min-width: 1024px) {
  .timeline-row { grid-template-columns: 1fr 1fr; gap: 2.5rem; padding-left: 0; }
  .timeline-marker { left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .timeline-row-left .timeline-card { grid-column: 1 / 2; }
  .timeline-row-right .timeline-card { grid-column: 2 / 3; }
  .timeline-row-left .timeline-marker { left: calc(50% - 0px); }
  .timeline-row-right .timeline-marker { left: calc(50% - 0px); }
  .timeline-row-left .timeline-card .bezel-shell { margin-right: 2.5rem; }
  .timeline-row-right .timeline-card .bezel-shell { margin-left: 2.5rem; }
}

.bento-tile .b-num {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--cobalt-600);
  background: rgba(36,71,212,0.08);
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  z-index: 2;
}
.bento-tile-body.is-overlay ~ .b-num,
.bento-tile-img ~ .b-num {
  background: rgba(253,251,247,0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.bento-tile .b-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--espresso-900);
}
.bento-tile .b-lede {
  font-size: 0.9375rem;
  color: var(--espresso-700);
  line-height: 1.55;
}
.bento-tile .b-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: var(--cobalt-100);
  color: var(--cobalt-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Visual ticker ---------- */
.ticker {
  position: relative;
  overflow: hidden;
  --duration: 60s;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 1.5rem;
  animation: marqueeRun var(--duration) linear infinite;
}
.ticker[data-paused="true"] .ticker-track { animation-play-state: paused; }

.ticker-card {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.25rem;
  border-radius: 9999px;
  background: var(--glass-tint-strong);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-edge);
  white-space: nowrap;
  transition: border-color var(--dur-ui) var(--ease-lux), background var(--dur-ui) var(--ease-lux);
}
.ticker-card:hover {
  border-color: rgba(36,71,212,0.30);
  background: var(--cream-100);
}
.ticker-card .num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--cobalt-600);
  background: rgba(36,71,212,0.08);
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
}
.ticker-card .icn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: var(--cobalt-100);
  color: var(--cobalt-600);
}
.ticker-card .name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: -0.025em;
  color: var(--espresso-900);
}

/* ---------- CSS scroll-driven animations (modern browsers) ---------- */
@supports (animation-timeline: view()) {
  @keyframes sd-fade-up {
    from { opacity: 0; transform: translateY(56px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes sd-scale-in {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
  }
  @keyframes sd-parallax-y {
    from { transform: translateY(-6%); }
    to   { transform: translateY(6%); }
  }
  @keyframes sd-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  [data-scroll="fade-up"] {
    animation: sd-fade-up linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
  [data-scroll="scale-in"] {
    animation: sd-scale-in linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
  [data-scroll="parallax-y"] {
    animation: sd-parallax-y linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
    will-change: transform;
  }
  [data-scroll="fade-in"] {
    animation: sd-fade-in linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 25%;
  }
}

/* ====================================================================
   ATMOSPHERES — varied section backdrops to break orb/glass monotony.
   Apply to a section (must be position: relative).
   Each is silent, low-contrast, and animated subtly.
   ==================================================================== */

/* Atmosphere wrapper — common positioning */
.atm {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* MESH — multiple drifting radial gradients */
.atm-mesh::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(at 22% 28%, rgba(102,128,240,0.22), transparent 50%),
    radial-gradient(at 78% 18%, rgba(232,212,168,0.20), transparent 55%),
    radial-gradient(at 48% 82%, rgba(36,71,212,0.16), transparent 50%),
    radial-gradient(at 88% 92%, rgba(102,128,240,0.18), transparent 50%);
  animation: meshDrift 28s ease-in-out infinite;
  filter: blur(20px);
}
@keyframes meshDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(2%, -1.5%) scale(1.04); }
  66%      { transform: translate(-1.5%, 2%) scale(0.98); }
}

/* AURORA — two large drifting color bands */
.atm-aurora::before, .atm-aurora::after {
  content: "";
  position: absolute;
  width: 65vw;
  height: 65vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.atm-aurora::before {
  top: -25%;
  left: -10%;
  background: radial-gradient(circle, rgba(102,128,240,0.55), transparent 65%);
  animation: auroraA 24s ease-in-out infinite;
}
.atm-aurora::after {
  bottom: -25%;
  right: -10%;
  background: radial-gradient(circle, rgba(201,169,107,0.45), transparent 65%);
  animation: auroraB 28s ease-in-out infinite;
  animation-delay: -8s;
}
@keyframes auroraA {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(8%, 6%) scale(1.08); }
}
@keyframes auroraB {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-6%, -4%) scale(1.04); }
}

/* GRID — subtle moving dot grid, masked to center */
.atm-grid::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-image: radial-gradient(rgba(36,71,212,0.20) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 75%);
  animation: gridDrift 30s linear infinite;
  opacity: 0.5;
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 28px 28px; }
}

/* BARS — drifting vertical light bars */
.atm-bars::before, .atm-bars::after {
  content: "";
  position: absolute;
  inset: -10% 0;
  pointer-events: none;
}
.atm-bars::before {
  background:
    linear-gradient(90deg, transparent 23%, rgba(36,71,212,0.05) 23%, rgba(36,71,212,0.05) 23.4%, transparent 23.4%) 0 0/180px 100%;
  animation: barsScroll 25s linear infinite;
}
.atm-bars::after {
  background:
    linear-gradient(90deg, transparent 62%, rgba(102,128,240,0.04) 62%, rgba(102,128,240,0.04) 62.4%, transparent 62.4%) 0 0/240px 100%;
  animation: barsScrollReverse 35s linear infinite;
}
@keyframes barsScroll { from { background-position: 0 0; } to { background-position: 180px 0; } }
@keyframes barsScrollReverse { from { background-position: 0 0; } to { background-position: -240px 0; } }

/* SPOTLIGHT — cursor-following soft glow */
.atm-spotlight {
  background: radial-gradient(640px circle at var(--mx, 50%) var(--my, 30%), rgba(36,71,212,0.16), transparent 42%);
  transition: background 100ms linear;
}

/* NOIR — high-contrast dark section. Inverts text colors. */
.section-noir {
  background: linear-gradient(180deg, #0F0A07 0%, #1A1410 100%);
  color: rgba(253,251,247,0.86);
  position: relative;
  overflow: hidden;
}
.section-noir::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px circle at 20% 10%, rgba(36,71,212,0.18), transparent 50%),
    radial-gradient(600px circle at 90% 100%, rgba(201,169,107,0.12), transparent 50%);
  pointer-events: none;
}
.section-noir h1, .section-noir h2, .section-noir h3, .section-noir h4 { color: var(--cream-100); }
.section-noir p, .section-noir li { color: rgba(253,251,247,0.78); }
.section-noir .kicker, .section-noir .edition-no, .section-noir .stat-label { color: rgba(253,251,247,0.6); }
.section-noir .signature-line { color: rgba(253,251,247,0.7); }
.section-noir .signature-line::before { background: rgba(253,251,247,0.4); }
.section-noir .eyebrow { color: rgba(253,251,247,0.55); }
.section-noir .eyebrow::before { background: rgba(253,251,247,0.4); }

/* CLEAN — explicit no-effect class, used as marker */
.atm-clean { display: none; }

/* SPOTLIGHT CARD — illuminate where cursor hovers */
.spot-card {
  position: relative;
  isolation: isolate;
}
.spot-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx, -100%) var(--my, -100%), rgba(36,71,212,0.18), transparent 50%);
  opacity: 0;
  transition: opacity var(--dur-ui) var(--ease-lux);
  pointer-events: none;
  z-index: 1;
}
.spot-card:hover::before { opacity: 1; }

/* STAR RATING — small inline stars */
.stars {
  display: inline-flex;
  gap: 0.18rem;
  color: #E5B046;
  --star-fill: #E5B046;
}
.stars svg {
  width: 1rem; height: 1rem;
  fill: var(--star-fill);
  filter: drop-shadow(0 1px 2px rgba(229,176,70,0.45));
  animation: starShimmer 3.6s ease-in-out infinite;
  transform-origin: center;
}
.stars svg:nth-child(1) { animation-delay: 0s;   }
.stars svg:nth-child(2) { animation-delay: 0.18s; }
.stars svg:nth-child(3) { animation-delay: 0.36s; }
.stars svg:nth-child(4) { animation-delay: 0.54s; }
.stars svg:nth-child(5) { animation-delay: 0.72s; }
@keyframes starShimmer {
  0%, 80%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 1px 2px rgba(229,176,70,0.40)) brightness(1);
  }
  10% {
    transform: scale(1.12);
    filter: drop-shadow(0 2px 6px rgba(255,210,110,0.85)) drop-shadow(0 0 8px rgba(255,224,150,0.55)) brightness(1.22);
  }
  20% {
    transform: scale(1);
    filter: drop-shadow(0 1px 2px rgba(229,176,70,0.45)) brightness(1);
  }
}
.section-noir .stars { --star-fill: #F2C972; }
.section-noir .stars svg { filter: drop-shadow(0 1px 3px rgba(242,201,114,0.6)); }
@media (prefers-reduced-motion: reduce) {
  .stars svg { animation: none; }
}

/* MAGNETIC button hint — slight inner glow */
[data-magnetic] { transition: transform var(--dur-ui) var(--ease-spring); }

/* TEXT-REVEAL helper — split into lines via JS */
[data-text-reveal] { display: block; }
[data-text-reveal] .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
[data-text-reveal] .word > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  will-change: transform, opacity;
}
[data-text-reveal].is-revealed .word > span {
  transform: translateY(0);
  opacity: 1;
}

/* ---------- 3D floating orbs (decorative hero backdrop) ----------
   Glassmorphic "marbles" with radial highlight + soft drop shadow.
   Mouse-reactive parallax handled by anime.js in app.js. */
.lux-orbs {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.lux-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  filter: blur(0.5px);
}
.lux-orb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.55) 18%, transparent 38%),
    radial-gradient(circle at 70% 70%, rgba(36,71,212,0.30), transparent 55%),
    linear-gradient(135deg, rgba(102,128,240,0.45), rgba(36,71,212,0.20) 60%, rgba(26,20,16,0.10));
  box-shadow:
    inset 0 -8px 24px rgba(26,20,16,0.18),
    inset 0 4px 16px rgba(255,255,255,0.45),
    0 30px 60px -20px rgba(36,71,212,0.30),
    0 60px 120px -40px rgba(36,71,212,0.20);
}
/* Gilt-tinted variant */
.lux-orb-gilt::before {
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,0.95), rgba(255,255,255,0.50) 18%, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(201,169,107,0.40), transparent 55%),
    linear-gradient(135deg, rgba(232,212,168,0.45), rgba(201,169,107,0.20) 60%, rgba(26,20,16,0.08));
  box-shadow:
    inset 0 -8px 24px rgba(26,20,16,0.16),
    inset 0 4px 16px rgba(255,255,255,0.50),
    0 30px 60px -20px rgba(201,169,107,0.30),
    0 60px 120px -40px rgba(201,169,107,0.20);
}
/* Soft cool variant */
.lux-orb-soft::before {
  background:
    radial-gradient(circle at 32% 30%, rgba(255,255,255,0.96), rgba(255,255,255,0.40) 20%, transparent 42%),
    linear-gradient(140deg, rgba(221,227,251,0.85), rgba(102,128,240,0.18) 70%, rgba(36,71,212,0.10));
  box-shadow:
    inset 0 -8px 24px rgba(36,71,212,0.10),
    inset 0 4px 16px rgba(255,255,255,0.60),
    0 30px 60px -20px rgba(36,71,212,0.20);
}

/* Drift animation — independent x/y sinusoid, slow */
@keyframes orbDriftA {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(20px, -28px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
@keyframes orbDriftB {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(-24px, 22px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
@keyframes orbDriftC {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(14px, 26px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
.lux-orb-a { animation: orbDriftA 14s ease-in-out infinite; }
.lux-orb-b { animation: orbDriftB 18s ease-in-out infinite; }
.lux-orb-c { animation: orbDriftC 22s ease-in-out infinite; }

/* Mouse-reactive parallax is added by JS via --mx, --my (0..1).
   Each orb has a "depth" multiplier set inline via --depth. */
.lux-orb[data-parallax] {
  transform: translate3d(calc((var(--mx, 0.5) - 0.5) * var(--depth, 30px) * 1), calc((var(--my, 0.5) - 0.5) * var(--depth, 30px) * 1), 0);
}

/* ---------- Photo frame (for placeholder imagery) ---------- */
.photo-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--cream-200);
  box-shadow: var(--shadow-lift);
  isolation: isolate;
}
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255,255,255,0.95), rgba(26,20,16,0.08));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ====================================================================
   Editorial / dossier aesthetic — used on module detail pages and
   the module index. Deliberately avoids glass/orb monotony.
   ==================================================================== */

/* Editorial section — no card chrome, just typographic rhythm */
.editorial-section { padding-block: clamp(4rem, 8vw, 9rem); }

/* Hairline rule with optional mono caption */
.rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--espresso-500);
}
.rule::before, .rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--glass-edge);
}
.rule-left::after, .rule-right::before { display: none; }

/* Drop-cap first paragraph */
.drop-cap::first-letter {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 4.5em;
  float: left;
  line-height: 0.85;
  margin: 0.1em 0.15em 0 0;
  color: var(--cobalt-600);
}

/* Editorial numbered figure — for inline "01 / Title / desc / image" blocks */
.editorial-figure {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-block: 2rem;
  border-bottom: 1px solid var(--glass-edge);
}
.editorial-figure:last-child { border-bottom: 0; }
.editorial-figure .num {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--cobalt-600);
  padding-top: 0.45rem;
}
.editorial-figure .head {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--espresso-900);
}
.editorial-figure .lede {
  margin-top: 0.6rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--espresso-700);
  max-width: 40rem;
}

/* Magazine-style indexed list — used on /moduller listing */
.indexed-row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) 14rem 2rem;
  gap: 2rem;
  align-items: center;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--glass-edge);
  position: relative;
  transition: background var(--dur-ui) var(--ease-lux);
}
@media (max-width: 768px) {
  .indexed-row {
    grid-template-columns: 3rem minmax(0, 1fr) 2rem;
  }
  .indexed-row > .indexed-lede { display: none; }
}
.indexed-row::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(36,71,212,0.06), transparent 30%);
  opacity: 0;
  transition: opacity var(--dur-ui) var(--ease-lux);
  pointer-events: none;
}
.indexed-row:hover::before { opacity: 1; }
.indexed-row .indexed-num {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--espresso-500);
  transition: color var(--dur-ui) var(--ease-lux);
}
.indexed-row:hover .indexed-num { color: var(--cobalt-600); }
.indexed-row .indexed-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--espresso-900);
  transition: color var(--dur-ui) var(--ease-lux);
}
.indexed-row:hover .indexed-title { color: var(--cobalt-600); }
.indexed-row .indexed-lede {
  font-size: 0.9375rem;
  color: var(--espresso-700);
  line-height: 1.45;
}
.indexed-row .indexed-arrow {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: transparent;
  color: var(--espresso-500);
  transition: background var(--dur-ui) var(--ease-spring), color var(--dur-ui) var(--ease-lux), transform var(--dur-ui) var(--ease-spring);
}
.indexed-row:hover .indexed-arrow {
  background: var(--cobalt-600);
  color: var(--cream-100);
  transform: translateX(4px);
}

/* Editorial number — used as section markers, bold and silent */
.edition-no {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--espresso-500);
}

/* Photo-essay — full-bleed image with editorial caption */
.photo-essay {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--cream-200);
}
.photo-essay-inset {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem clamp(1.5rem, 5vw, 3rem);
  background: linear-gradient(180deg, transparent, rgba(26,20,16,0.55) 70%);
  color: var(--cream-100);
}
.photo-essay-cap {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(253,251,247,0.7);
}
.photo-essay-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--cream-100);
  max-width: 30ch;
  margin-top: 0.75rem;
}

/* Visual stat — display-sized number with optional unit */
.huge-num {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 12vw, 10rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--espresso-900);
}
.huge-num em { font-style: normal; color: var(--cobalt-600); }

/* Sticky in-page nav strip — for module dossier ToC */
.dossier-nav {
  position: sticky;
  top: 6rem;
  z-index: 30;
  margin-block: 2rem;
}
.dossier-nav-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 8px 20px -8px rgba(26,20,16,0.10);
}
.dossier-nav-bar a {
  padding: 0.4rem 0.875rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--espresso-700);
  transition: background var(--dur-ui) var(--ease-lux), color var(--dur-ui) var(--ease-lux);
}
.dossier-nav-bar a:hover {
  background: rgba(36,71,212,0.10);
  color: var(--cobalt-600);
}

/* Bottom "next module" navigator */
.next-module {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  padding-block: clamp(3rem, 6vw, 6rem);
  border-top: 1px solid var(--glass-edge);
}
.next-module-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4rem;
  gap: 2rem;
  align-items: center;
  text-decoration: none;
}
.next-module-arrow {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  border: 1px solid var(--glass-edge);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--espresso-700);
  transition: background var(--dur-ui) var(--ease-spring), color var(--dur-ui) var(--ease-lux), transform var(--dur-ui) var(--ease-spring), border-color var(--dur-ui) var(--ease-lux);
}
.next-module:hover .next-module-arrow {
  background: var(--cobalt-600);
  border-color: var(--cobalt-600);
  color: var(--cream-100);
  transform: translateX(6px);
}

/* ---------- Footer-specific lux components ---------- */

/* Link with sliding em-dash on hover */
.footer-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 0.9375rem;
  color: var(--espresso-800);
  transition: color 300ms var(--ease-lux), padding-left 400ms var(--ease-lux);
}
.footer-link::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 1px;
  margin-right: 0;
  background: currentColor;
  opacity: 0;
  transition: width 400ms var(--ease-lux), opacity 300ms var(--ease-lux), margin-right 400ms var(--ease-lux);
  align-self: center;
}
.footer-link:hover {
  color: var(--cobalt-600);
}
.footer-link:hover::before {
  width: 0.875rem;
  opacity: 1;
  margin-right: 0.5rem;
}

/* Pill chip used for trust badges and footer micro-buttons */
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--glass-edge);
  background: var(--glass-tint-sheer);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--espresso-700);
  transition: border-color var(--dur-ui) var(--ease-lux), color var(--dur-ui) var(--ease-lux), transform var(--dur-ui) var(--ease-spring);
}
.trust-pill:hover {
  border-color: rgba(36,71,212,0.30);
  color: var(--espresso-900);
  transform: translateY(-1px);
}
.trust-pill > .icon { width: 0.875rem; height: 0.875rem; }

/* Social icon tile with animated outline ring on hover */
.social-tile {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid var(--glass-edge);
  background: var(--glass-tint-sheer);
  color: var(--espresso-700);
  transition: color var(--dur-ui) var(--ease-lux), transform var(--dur-ui) var(--ease-spring), border-color var(--dur-ui) var(--ease-lux), background var(--dur-ui) var(--ease-lux);
}
.social-tile::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 1px solid var(--cobalt-500);
  opacity: 0;
  transform: scale(0.82);
  transition: opacity var(--dur-ui) var(--ease-lux), transform 400ms var(--ease-spring);
  pointer-events: none;
}
.social-tile:hover {
  color: var(--cobalt-600);
  background: var(--cream-100);
  transform: translateY(-2px);
  border-color: rgba(36,71,212,0.30);
}
.social-tile:hover::after { opacity: 0.55; transform: scale(1); }

/* Newsletter container — focus-glow */
.newsletter-shell {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem;
  border-radius: 9999px;
  border: 1px solid var(--glass-edge);
  background: var(--glass-tint);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: border-color var(--dur-ui) var(--ease-lux), background var(--dur-ui) var(--ease-lux), box-shadow var(--dur-ui) var(--ease-lux);
}
.newsletter-shell:focus-within {
  border-color: rgba(36,71,212,0.40);
  background: var(--cream-100);
  box-shadow: 0 0 0 4px rgba(36,71,212,0.10);
}

/* Mini status tile in footer "Sistem nabzı" panel */
.status-tile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.status-tile .num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--espresso-900);
}

/* Giant outro wordmark — fades into page edge */
.giant-wordmark {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 16rem);
  line-height: 0.84;
  letter-spacing: -0.07em;
  font-weight: 400;
  text-align: center;
  color: var(--espresso-900);
  opacity: 0.085;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
  user-select: none;
  pointer-events: none;
  display: block;
}

/* Animated heart used in "Crafted in İstanbul" line */
@keyframes heartPulse {
  0%, 90%, 100% { transform: scale(1); }
  45% { transform: scale(1.18); }
}
.heart-pulse {
  display: inline-block;
  color: var(--cobalt-600);
  animation: heartPulse 2.4s var(--ease-lux) infinite;
}

/* Footer column heading kicker — extra detail */
.footer-col-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--espresso-500);
  margin-bottom: 1.25rem;
}
.footer-col-title::before {
  content: "";
  width: 0.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* ---------- Print ---------- */
@media print {
  header, footer, .vanta-stage, .grain-fixed { display: none !important; }
}
