/* ==========================================================================
   judeiria.com | Design system
   Navy base, gold metal, Montserrat with Instrument Serif italic accents
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin.woff2?v=311d352d93") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-ext.woff2?v=d16dfe26bc") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-italic.woff2?v=bc891bdd08") format("woff2");
}

:root {
  --bg: #070d1f;
  --bg-2: #0b1530;
  --panel: #0f1a38;
  --panel-2: #13224a;
  --blue: #1e3a8a;
  --blue-glow: #2b4fb8;
  --gold: #facc15;
  --gold-2: #e8b545;
  --gold-deep: #b8801f;
  --text: #f4f6fb;
  --muted: #a3aeca;
  --faint: #6f7ca0;
  --line: rgba(232, 181, 69, 0.18);
  --line-soft: rgba(255, 255, 255, 0.08);

  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);

  --metal: linear-gradient(100deg, #8a5e14 0%, #c9921f 20%, #f3cd72 42%, #fff3c9 50%, #e9b544 60%, #b17a19 80%, #8a5e14 100%);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { background: var(--bg); color: var(--text); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--gold); color: #140f02; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 1000;
  background: var(--gold); color: #140f02; font-weight: 700;
  padding: 12px 18px; border-radius: 10px; transition: top .2s;
}
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Film grain over everything */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: url("/assets/img/noise.png?v=7d0ba38ffe") repeat; background-size: 140px 140px; opacity: .045;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* Scroll progress */
.progress {
  position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 120;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), #fff3c9);
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { position: relative; padding-block: clamp(56px, 6.5vw, 104px); }
.section--tight { padding-block: clamp(44px, 5vw, 76px); }

/* ---------- Type ---------- */
.serif {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.01em;
}
.gold-text.is-lit, .no-js .gold-text { animation-play-state: running; }
.gold-text {
  background: linear-gradient(100deg, #d99b2b 0%, #f7d77a 35%, #fff1c2 50%, #f0c35a 65%, #c98b1f 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
  animation: shimmer 9s steps(30, end) infinite paused;
}
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.display {
  font-weight: 700;
  font-size: clamp(2.35rem, 5.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.display .serif { font-size: 1.08em; letter-spacing: -0.015em; line-height: 1; }
.h2 {
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h2 .serif { font-size: 1.1em; }
.h3 {
  font-weight: 700;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--muted); max-width: 58ch; text-wrap: pretty; }
.prose p { color: var(--muted); max-width: 64ch; text-wrap: pretty; }
.prose p + p { margin-top: 1.1em; }
.prose strong { color: var(--text); font-weight: 600; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  font-size: .8rem; font-weight: 500; letter-spacing: .01em; color: #e9edf7;
  background: linear-gradient(90deg, rgba(232,181,69,.16), rgba(30,58,138,.18));
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 rgba(250,204,21,.6); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(250,204,21,.55); }
  70% { box-shadow: 0 0 0 10px rgba(250,204,21,0); }
  100% { box-shadow: 0 0 0 0 rgba(250,204,21,0); }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 12px 0 24px; border-radius: 999px;
  font-size: .95rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1; white-space: nowrap;
  transition: transform .5s var(--ease), box-shadow .4s ease, background-position .8s var(--ease), border-color .3s, color .3s;
}
.btn .btn-ico {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  transition: transform .5s var(--ease), background .3s;
}
.btn .btn-ico svg { width: 16px; height: 16px; }
.btn:hover .btn-ico { transform: rotate(45deg); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.55) 48%, transparent 70%);
  transform: translateX(-130%); transition: transform .9s var(--ease);
}
.btn:hover::after { transform: translateX(130%); }

.btn-gold {
  color: #1a1204; background: var(--metal); background-size: 220% 100%; background-position: 0% 50%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), inset 0 -1px 0 rgba(0,0,0,.25), 0 14px 34px -14px rgba(250,204,21,.55);
}
.btn-gold:hover { background-position: 100% 50%; box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -1px 0 rgba(0,0,0,.2), 0 18px 44px -12px rgba(250,204,21,.7); }
.btn-gold .btn-ico { background: #140f02; color: var(--gold); }

.btn-glass {
  color: var(--text);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(11,21,48,.35) 50%, rgba(232,181,69,.08));
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.btn-glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(243,205,114,.65), rgba(255,255,255,.08) 40%, rgba(255,255,255,.04) 60%, rgba(243,205,114,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.btn-glass .btn-ico { background: rgba(255,255,255,.1); }
.btn-glass:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 32px -6px rgba(232,181,69,.35); }
.btn-glass:hover .btn-ico { background: var(--gold); color: #140f02; }

.btn-sm { min-height: 44px; padding: 0 8px 0 18px; font-size: .88rem; gap: 10px; }
.btn-sm .btn-ico { width: 28px; height: 28px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--gold);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 3px; transition: background-size .5s var(--ease), gap .4s var(--ease);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: max(14px, env(safe-area-inset-top));
  transition: transform .5s var(--ease);
}
.site-header .bar {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  height: 66px; padding: 0 10px 0 22px; border-radius: 999px;
  background: rgba(9, 17, 40, .35);
  border: 1px solid rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.site-header.is-scrolled .bar {
  background: rgba(9, 17, 40, .78);
  border-color: var(--line);
  box-shadow: 0 20px 40px -24px rgba(0,0,0,.7);
}
.site-header.is-hidden { transform: translateY(-120%); }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.nav { justify-self: center; display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 16px; border-radius: 999px;
  font-size: .9rem; font-weight: 500; color: #d7ddee; letter-spacing: -0.005em;
  transition: color .3s, background .3s;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold);
}
.header-cta { justify-self: end; }
.burger {
  display: none; width: 46px; height: 46px; border-radius: 50%; justify-self: end;
  align-content: center; justify-items: center; grid-auto-rows: min-content; background: rgba(255,255,255,.06); border: 1px solid var(--line);
}
.burger span { display: block; width: 18px; height: 1.5px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.burger span + span { margin-top: 5px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(max(14px, env(safe-area-inset-top)) + 88px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background: rgba(7, 13, 31, .96);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu nav a {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em;
  transform: translateY(24px); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease), color .3s;
}
.mobile-menu nav a[aria-current="page"] { color: var(--gold); }
.menu-open .mobile-menu nav a { transform: none; opacity: 1; }
.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: .05s; }
.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: .1s; }
.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: .15s; }
.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: .2s; }
.menu-open .mobile-menu nav a:nth-child(6) { transition-delay: .25s; }
.mobile-menu .btn { align-self: flex-start; }
body.menu-open { overflow: hidden; }

/* ---------- Aurora (animated background canvas) ---------- */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.aurora .orb {
  position: absolute; border-radius: 50%; opacity: .6;
}
.aurora .orb-blue { width: 58vw; height: 58vw; max-width: 900px; max-height: 900px; right: -12vw; top: -18vw; background: radial-gradient(circle, rgba(43,79,184,.6), rgba(43,79,184,.22) 32%, rgba(43,79,184,.06) 52%, transparent 68%); animation: drift-a 22s ease-in-out infinite alternate; }
.aurora .orb-gold { width: 40vw; height: 40vw; max-width: 640px; max-height: 640px; left: -10vw; bottom: -16vw; background: radial-gradient(circle, rgba(232,181,69,.45), rgba(232,181,69,.14) 34%, rgba(232,181,69,.04) 52%, transparent 68%); animation: drift-b 26s ease-in-out infinite alternate; opacity: .4; }
@keyframes drift-a { to { transform: translate(-8vw, 10vw) scale(1.12); } }
@keyframes drift-b { to { transform: translate(12vw, -6vw) scale(.9); } }
.aurora .gridlines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.fade-top, .fade-bottom { position: absolute; left: 0; right: 0; height: 180px; z-index: 1; pointer-events: none; }
.fade-top { top: 0; background: linear-gradient(to bottom, var(--bg), transparent); }
.fade-bottom { bottom: 0; background: linear-gradient(to top, var(--bg), transparent); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden;
  padding-top: 96px;
}
.hero-inner {
  position: relative; z-index: 2; flex: 1;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: end; gap: 32px;
}
.hero-copy { padding-bottom: clamp(24px, 4vh, 48px); }
.hero-copy .eyebrow { margin-bottom: 26px; }
.hero h1 { margin-bottom: 24px; font-size: clamp(2.3rem, 4.3vw, 3.85rem); }
.hero .lede { margin-bottom: 34px; max-width: 50ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-portrait {
  position: relative; align-self: stretch; display: flex; align-items: flex-end; justify-content: center;
  min-height: 460px;
}
.portrait-stage { position: relative; width: min(100%, 560px); }
.portrait-stage img {
  position: relative; z-index: 2; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 99%);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.45));
}
.halo {
  position: absolute; z-index: 1; left: 57%; top: -5%; width: 76%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%;
}
.halo::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 1.5px;
  background: conic-gradient(from 0deg, transparent 0 40%, rgba(250,204,21,.9) 55%, #fff3c9 60%, rgba(250,204,21,.2) 70%, transparent 80% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 16s linear infinite;
  will-change: transform; transform: translateZ(0);
}
.halo::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,181,69,.24), rgba(30,58,138,.22) 42%, transparent 68%);
}
.halo .ring2 {
  position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed rgba(232,181,69,.22);
  animation: spin 44s linear infinite reverse; will-change: transform;
}
.halo .orbit { position: absolute; inset: -1px; border-radius: 50%; animation: spin 12s linear infinite; }
.halo .orbit::before {
  content: ""; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: #fff3c9; box-shadow: 0 0 0 3px rgba(250,204,21,.25), 0 0 18px 4px rgba(250,204,21,.7);
}
@keyframes spin { to { transform: rotate(360deg); } }

.float-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 16px;
  background: rgba(11,21,48,.88); border: 1px solid var(--line);
  font-size: .8rem; font-weight: 600; line-height: 1.25; color: #e9edf7;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
  animation: bob 6s ease-in-out infinite;
}
.float-chip small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; }
.float-chip .dot { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--metal); color: #140f02; }
.float-chip .dot svg { width: 16px; height: 16px; }
.chip-a { left: -4%; top: 56%; }
.chip-b { right: -6%; top: 78%; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-stats { position: relative; z-index: 3; padding-bottom: clamp(24px, 4vh, 44px); }
.stats-card {
  display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 22px; overflow: hidden;
  background: linear-gradient(135deg, rgba(19,34,74,.9), rgba(11,21,48,.92));
  border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0,0,0,.75);
}
.stats-card li { display: flex; flex-direction: column; justify-content: flex-start; gap: 8px; padding: 22px 28px; }
.stats-card li + li { border-left: 1px solid var(--line-soft); }
.stat-num { font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.stat-label { font-size: .84rem; color: var(--muted); line-height: 1.35; max-width: 26ch; }

/* Line mask reveal */
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span { display: block; }
.js .line > span { animation: line-up .9s var(--ease) both; }
@keyframes line-up { from { transform: translateY(110%); } to { transform: none; } }

.js [data-load] { animation: load-up .75s var(--ease) both; }
.js [data-load="scale"] { animation-name: load-scale; }
@keyframes load-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes load-scale { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .55s var(--ease), transform .65s var(--ease); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal="mask"] { opacity: 1; filter: none; transform: none; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

.d1 { transition-delay: .04s !important; } .d2 { transition-delay: .08s !important; } .d3 { transition-delay: .12s !important; }
.d4 { transition-delay: .16s !important; } .d5 { transition-delay: .2s !important; } .d6 { transition-delay: .26s !important; }
.d7 { transition-delay: .32s !important; } .d8 { transition-delay: .38s !important; } .d9 { transition-delay: .44s !important; }
.d1 { animation-delay: .04s; } .d2 { animation-delay: .08s; } .d3 { animation-delay: .12s; } .d4 { animation-delay: .16s; }
.d5 { animation-delay: .2s; } .d6 { animation-delay: .26s; }
.line.d2 > span { animation-delay: .08s; } .line.d3 > span { animation-delay: .14s; } .line.d4 > span { animation-delay: .18s; }
.line.d5 > span { animation-delay: .22s; } .line.d6 > span { animation-delay: .26s; }

/* ---------- Proof marquee ---------- */
.proof { padding-block: clamp(36px, 4vw, 60px); border-bottom: 1px solid var(--line-soft); }
.proof-title { text-align: center; font-size: .95rem; font-weight: 500; color: var(--muted); margin-bottom: 28px; }
.proof-title strong { color: var(--text); font-weight: 600; }
.marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; gap: 14px; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.flag-pill {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 10px; border-radius: 999px;
  background: rgba(255,255,255,.035); border: 1px solid var(--line-soft); white-space: nowrap;
  font-size: .92rem; font-weight: 500; color: #dde3f2;
}
.flag-pill img { width: 34px; height: 24px; border-radius: 5px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }

/* ---------- Doors (cards) ---------- */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: clamp(30px, 3.4vw, 46px); }
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19,34,74,.6), rgba(11,21,48,.6));
  border: 1px solid var(--line-soft);
  transition: border-color .4s, transform .6s var(--ease), box-shadow .5s;
  transform-style: preserve-3d;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(232,181,69,.16), transparent 45%);
}
.card:hover { border-color: var(--line); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.card:hover::before { opacity: 1; }
.door { display: flex; flex-direction: column; padding: clamp(28px, 3vw, 38px); min-height: 360px; }
.door-ico {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(232,181,69,.18), rgba(232,181,69,.03)); border: 1px solid var(--line); color: var(--gold);
}
.door-ico svg { width: 26px; height: 26px; }
.door h3 { margin: 56px 0 12px; }
.door p { color: var(--muted); margin-bottom: 28px; }
.door .link-arrow { margin-top: auto; align-self: flex-start; }
.door .stretch::after { content: ""; position: absolute; inset: 0; }

/* ---------- Testimonials (home rotator) ---------- */
.quotes { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.quote-stage { position: relative; min-height: 360px; }
.quote-slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s; }
.quote-slide.is-active { opacity: 1; visibility: visible; position: relative; }
.quote-slide blockquote { font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.45; letter-spacing: -0.015em; font-weight: 500; text-wrap: pretty; }
.quote-slide blockquote::before { content: "\201C"; display: block; height: .55em; font-family: var(--serif); font-size: 5.5rem; line-height: 1; color: var(--gold); margin-bottom: 14px; }
.js .quote-slide blockquote { clip-path: inset(-40% -5% 100% -5%); transition: clip-path 1.1s var(--ease); }
.js .quote-slide.is-active blockquote { clip-path: inset(-40% -5% -10% -5%); }
.person { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.person img.avatar, .person .avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px rgba(232,181,69,.55); flex: none; }
.person strong { display: block; font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }
.person span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; line-height: 1.35; }
.person .flag { width: 20px; height: 14px; border-radius: 3px; object-fit: cover; flex: none; }
.quote-tabs { display: grid; gap: 10px; }
.quote-tab {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.02);
  transition: background .4s, border-color .4s;
  position: relative; overflow: hidden;
}
.quote-tab img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; filter: grayscale(1); opacity: .7; transition: filter .5s, opacity .5s; }
.quote-tab strong { display: block; font-size: .95rem; }
.quote-tab span { font-size: .82rem; color: var(--muted); }
.quote-tab[aria-selected="true"] { background: rgba(232,181,69,.07); border-color: var(--line); }
.quote-tab[aria-selected="true"] img { filter: none; opacity: 1; }
.quote-tab .bar-fill { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.quote-tab[aria-selected="true"] .bar-fill { animation: fill var(--dur, 7s) linear forwards; }
.quotes.is-paused .quote-tab[aria-selected="true"] .bar-fill { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.quotes-foot { margin-top: 26px; }

/* ---------- Testimonial grid ---------- */
.tgrid { columns: 2; column-gap: 18px; }
.tcard { break-inside: avoid; margin-bottom: 18px; padding: clamp(24px, 3vw, 34px); }
.tcard blockquote { color: #dfe4f1; font-size: 1.02rem; line-height: 1.7; }
.tcard blockquote::before { content: "\201C"; display: block; height: .5em; font-family: var(--serif); font-size: 3.8rem; line-height: 1; color: var(--gold); margin-bottom: 12px; }
.tcard .person { margin-top: 22px; }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; text-align: center; padding-block: clamp(76px, 9vw, 132px); }
.cta .wrap { position: relative; z-index: 2; }
.cta h2 { max-width: 24ch; margin: 0 auto 22px; }
.cta h2 .serif { display: block; margin-top: .12em; }
.cta .lede { margin: 0 auto 36px; }
.cta .actions { justify-content: center; }
.cta-rays {
  position: absolute; left: 50%; top: 50%; width: 140vmax; height: 140vmax; transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, transparent 0deg, rgba(232,181,69,.10) 20deg, transparent 45deg, rgba(43,79,184,.18) 90deg, transparent 130deg, rgba(232,181,69,.08) 200deg, transparent 240deg, rgba(43,79,184,.14) 300deg, transparent 360deg);
  animation: spin 80s linear infinite; z-index: 0;
}

/* ---------- Newsletter ---------- */
.newsletter { padding-block: clamp(40px, 4.5vw, 68px); }
.news-card {
  position: relative; overflow: hidden; border-radius: 30px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center;
  padding: clamp(28px, 5vw, 60px);
  background: radial-gradient(120% 140% at 100% 0%, rgba(30,58,138,.55), transparent 55%), radial-gradient(90% 120% at 0% 100%, rgba(232,181,69,.14), transparent 55%), var(--panel);
  border: 1px solid var(--line);
}
.news-card .h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 12px; }
.news-card p { color: var(--muted); }
.news-form { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(7,13,31,.7); border: 1px solid var(--line-soft); transition: border-color .3s, box-shadow .3s; }
.news-form:focus-within { border-color: rgba(250,204,21,.5); box-shadow: 0 0 0 4px rgba(250,204,21,.08); }
.news-form input {
  flex: 1; min-width: 0; width: 100%; background: transparent; border: 0; outline: 0; color: var(--text);
  font: inherit; font-size: .95rem; padding: 0 18px;
}
.news-form input::placeholder { color: var(--faint); }
.news-note { margin-top: 12px; font-size: .78rem; color: var(--faint); }
.news-note a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--line-soft); padding-top: clamp(48px, 5vw, 72px); overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot-brand img { height: 40px; width: auto; margin-bottom: 18px; }
.foot-brand p { color: var(--muted); font-size: .92rem; max-width: 34ch; }
.foot-col h2 { font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--faint); margin-bottom: 16px; }
.foot-col li + li { margin-top: 10px; }
.foot-col a, .foot-col button { color: #d4dbec; font-size: .92rem; transition: color .3s; padding: 0; text-align: left; }
.foot-col a:hover, .foot-col button:hover { color: var(--gold); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-soft); color: #d4dbec;
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease);
}
.socials a:hover { background: var(--gold); color: #140f02; border-color: var(--gold); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.foot-word {
  margin-top: clamp(36px, 4vw, 56px); text-align: center; line-height: .8; user-select: none;
  font-weight: 800; letter-spacing: -0.06em; font-size: clamp(4rem, 17vw, 15rem);
  background: linear-gradient(180deg, rgba(232,181,69,.22), rgba(232,181,69,0) 85%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); font-size: .82rem; color: var(--faint); }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(128px, 12vw, 164px) 0 clamp(48px, 5vw, 76px); }
.page-hero .wrap { position: relative; z-index: 2; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .82rem; color: var(--faint); margin-bottom: 28px; }
.crumbs a:hover { color: var(--gold); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.page-hero .lede { margin-top: 26px; }
.page-hero .actions { margin-top: 36px; }

/* ---------- Story ---------- */
.story-title { font-size: clamp(2rem, 4.6vw, 4rem); }
.story-title .big { display: block; }
.story-title .small { display: block; margin-top: 18px; font-size: max(.56em, 1.45rem); line-height: 1.2; }
.story-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 4.5vw, 72px); align-items: start; }
.story-portrait { position: sticky; top: 110px; }
.story-portrait .frame {
  position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5;
  background: radial-gradient(100% 80% at 50% 20%, rgba(43,79,184,.55), transparent 60%), radial-gradient(80% 60% at 50% 100%, rgba(232,181,69,.28), transparent 60%), var(--panel);
  border: 1px solid var(--line);
}
.story-portrait .frame img { position: absolute; left: 50%; bottom: 0; width: 92%; height: auto; transform: translateX(-50%); }
.story-portrait .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,13,31,.55), transparent 35%); }
.creds { margin-top: 22px; display: grid; gap: 0; }
.creds li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem; color: #d4dbec; }
.creds li svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 3px; }

.timeline { position: relative; padding-left: 44px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 1px; background: var(--line-soft); }
.timeline .tl-fill { position: absolute; left: 11px; top: 8px; width: 1px; height: calc(100% - 16px); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); background: linear-gradient(to bottom, var(--gold), var(--gold-deep)); box-shadow: 0 0 12px rgba(250,204,21,.6); }
.beat { position: relative; padding-bottom: clamp(36px, 4vw, 60px); }
.beat:last-child { padding-bottom: 0; }
.beat::before {
  content: ""; position: absolute; left: -41px; top: 6px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line); transition: background .5s, box-shadow .5s, border-color .5s;
}
.beat.is-visible::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 6px rgba(250,204,21,.12), 0 0 20px rgba(250,204,21,.6); }
.beat .kicker { display: block; font-size: .85rem; font-weight: 600; color: var(--gold); margin-bottom: 10px; }
.beat h3 { margin-bottom: 14px; }
.beat p { color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.belief { margin-top: clamp(40px, 4.5vw, 64px); padding: clamp(28px, 4vw, 44px); border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(232,181,69,.08), rgba(30,58,138,.12)); }
.belief p { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.25; }
.belief span { display: block; margin-top: 14px; font-size: .9rem; color: var(--muted); }

.mission { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mission li { padding: 26px 24px; min-height: 180px; display: flex; flex-direction: column; justify-content: flex-start; gap: 22px; }
.mission li svg { width: 26px; height: 26px; color: var(--gold); }
.mission li p { font-weight: 500; line-height: 1.5; color: #e1e6f3; }

/* ---------- Services ---------- */
.service { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 4.5vw, 68px); padding-block: clamp(48px, 5.5vw, 84px); border-top: 1px solid var(--line-soft); scroll-margin-top: 90px; }
.service-side { position: sticky; top: 120px; align-self: start; }
.service-side .tag { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; color: var(--gold); margin-bottom: 20px; }
.service-side .tag svg { width: 20px; height: 20px; }
.service-side h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.service-side h2 .serif { display: block; margin-top: .1em; }
.service-body .prose p { font-size: 1.1rem; line-height: 1.75; }
.walk { margin: 32px 0 34px; padding: 26px 28px; border-radius: 20px; background: rgba(255,255,255,.03); border: 1px solid var(--line-soft); }
.walk strong { display: block; font-size: .9rem; color: var(--gold); margin-bottom: 14px; font-weight: 600; }
.walk li { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; color: #e1e6f3; }
.walk li svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 4px; }
.team-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(28px, 4vw, 44px); }
.team-band h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); letter-spacing: -0.02em; line-height: 1.25; max-width: 30ch; }
.team-band h2 span { color: var(--muted); font-weight: 500; }

/* ---------- Books ---------- */
.shelf { --gap: clamp(18px, 2.2vw, 28px); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.shelf > * { flex: 0 0 calc((100% - var(--gap) * 2) / 3); }
.book-card { display: flex; flex-direction: column; padding: 18px 18px 26px; }
.cover-wrap { perspective: 1200px; margin-bottom: 24px; }
.cover {
  position: relative; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden;
  background: radial-gradient(90% 90% at 30% 20%, rgba(43,79,184,.5), transparent 60%), var(--panel-2);
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
  box-shadow: 0 30px 50px -30px rgba(0,0,0,.8);
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .cover-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.2; color: #fff; }
.cover img + .cover-fallback { opacity: 0; }
.cover.is-broken img { display: none; }
.cover.is-broken .cover-fallback { opacity: 1; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%); transform: translateX(-120%); transition: transform 1.1s var(--ease); pointer-events: none; }
.book-card:hover .cover { transform: rotateY(-10deg) rotateX(4deg) translateY(-6px); box-shadow: 24px 40px 60px -30px rgba(0,0,0,.9); }
.book-card:hover .cover::after { transform: translateX(120%); }
.format { display: inline-flex; align-self: flex-start; font-size: .75rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; color: var(--gold); background: rgba(232,181,69,.1); border: 1px solid var(--line); margin-bottom: 14px; }
.book-card h2, .book-card h3 { font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 10px; }
.book-card p { color: var(--muted); font-size: .98rem; margin-bottom: 22px; }
.book-card .link-arrow { margin-top: auto; }

.book-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 4.5vw, 72px); align-items: start; }
.book-visual { position: sticky; top: 110px; perspective: 1400px; }
.book-visual .cover { border-radius: 22px; animation: levitate 7s ease-in-out infinite; box-shadow: 0 60px 80px -40px rgba(0,0,0,.9), 0 0 0 1px var(--line); }
.book-visual .cover::after { animation: sheen 5s var(--ease) infinite; }
@keyframes sheen { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes levitate { 0%, 100% { transform: translateY(0) rotateY(-6deg) rotateX(2deg); } 50% { transform: translateY(-14px) rotateY(4deg) rotateX(-2deg); } }
.book-visual .glow { position: absolute; inset: 10% 5% -8%; z-index: -1; background: radial-gradient(circle, rgba(232,181,69,.3), transparent 65%); filter: blur(50px); }
.book-copy h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.book-copy .subtitle { margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.4vw, 1.9rem); color: var(--gold-2); line-height: 1.25; }
.book-copy .hook { margin: 34px 0 22px; font-size: clamp(1.3rem, 2.2vw, 1.65rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; }
.book-copy .prose p { font-size: 1.08rem; line-height: 1.8; }
.book-copy .buy { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0; }
.book-copy .note { font-size: .82rem; color: var(--faint); }

/* ---------- Speaking ---------- */
.topics { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.topic-col { padding: clamp(26px, 3.5vw, 40px); }
.topic-col h2 { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; letter-spacing: -0.01em; margin-bottom: 18px; color: var(--gold); }
.topic-col h2 svg { width: 22px; height: 22px; }
.topic-col li {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--line-soft); font-size: 1.05rem; font-weight: 500; color: #e1e6f3;
  transition: color .3s, padding .5s var(--ease);
}
.topic-col li::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); opacity: 0; transform: scale(0); transition: opacity .3s, transform .4s var(--ease); flex: none; }
.topic-col li:hover { color: #fff; padding-left: 10px; }
.topic-col li:hover::after { opacity: 1; transform: none; }
.formats { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 22px; padding: clamp(24px, 3vw, 34px); }
.formats p { color: var(--muted); max-width: 60ch; }

/* ---------- Contact ---------- */
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.option { display: flex; align-items: center; gap: 20px; padding: clamp(22px, 3vw, 32px); }
.option .door-ico { margin: 0; flex: none; }
.option strong { display: block; font-size: 1.15rem; letter-spacing: -0.01em; margin-bottom: 4px; }
.option span { color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.option .go { margin-left: auto; width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold); transition: background .3s, color .3s, transform .5s var(--ease); }
.option .go svg { width: 16px; height: 16px; }
.option:hover .go { background: var(--gold); color: #140f02; transform: rotate(45deg); }
.contact-note { margin-top: 26px; color: var(--muted); }
.contact-note a { color: var(--gold); font-weight: 600; }

/* ---------- Legal ---------- */
.legal h2 { font-size: 1.35rem; letter-spacing: -0.015em; margin: 44px 0 12px; }
.legal h3 { font-size: 1.05rem; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--muted); line-height: 1.8; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin-top: 10px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .92rem; }
.legal th, .legal td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--muted); }
.legal th { color: var(--text); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.updated { display: inline-block; margin-top: 18px; font-size: .85rem; color: var(--faint); }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; z-index: 150; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  max-width: 460px; padding: 22px; border-radius: 22px;
  background: rgba(11, 21, 48, .92); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
  transform: translateY(140%); opacity: 0; transition: transform .7s var(--ease), opacity .5s;
}
.cookie.is-open { transform: none; opacity: 1; }
.cookie h2 { font-size: 1rem; margin-bottom: 8px; }
.cookie p { font-size: .88rem; color: var(--muted); line-height: 1.55; }
.cookie p a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.cookie .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cookie .btn { min-height: 42px; padding: 0 18px; font-size: .86rem; }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; padding: 140px 0 80px; }
.nf .code { font-size: clamp(6rem, 22vw, 16rem); font-weight: 800; letter-spacing: -0.06em; line-height: .85; }
.nf .actions { justify-content: center; margin-top: 32px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 1600px) {
  :root { --wrap: 1360px; }
  body { font-size: 18px; }
}

@media (max-width: 1100px) {
  .nav a { padding: 10px 11px; font-size: .86rem; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .mission { grid-template-columns: 1fr 1fr; }
  .shelf > * { flex-basis: calc((100% - var(--gap)) / 2); }
  .chip-a { left: 0; }
  .chip-b { right: -2%; }
}

@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .burger { display: grid; }
  .site-header .bar { grid-template-columns: 1fr auto; height: 62px; padding: 0 8px 0 18px; }
  .brand img { height: 30px; }

  .hero { padding-top: 92px; min-height: 0; }
  .js [data-reveal] { transition: opacity .5s var(--ease), transform .55s var(--ease); }
  .marquee-track { animation-duration: 54s; }
  .grain { display: none; }
  .aurora .orb { animation: none; }
  .cta-rays { display: none; }
  .btn-glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255,255,255,.06); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 0; }
  .hero-portrait { min-height: 0; margin: 4px auto 0; width: min(58%, 340px); }
  .hero-copy { padding: 18px 0 8px; }
  .chip-a { left: -30%; top: 50%; }
  .chip-b { right: -30%; top: 72%; }


  .doors { grid-template-columns: minmax(0, 1fr); }
  .door { min-height: 0; }
  .door h3 { margin-top: 30px; }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .quote-stage { min-height: 0; }
  .quote-tabs { grid-template-columns: repeat(3, 1fr); order: 2; }
  .quote-tab { flex-direction: column; text-align: center; gap: 8px; padding: 12px 8px; }
  .quote-tab span { display: none; }
  .quote-tab strong { font-size: .8rem; }
  .tgrid { columns: 1; }
  .news-card { grid-template-columns: minmax(0, 1fr); }
  .story-grid, .service, .book-hero { grid-template-columns: minmax(0, 1fr); }
  .story-portrait, .service-side, .book-visual { position: relative; top: 0; }
  .story-portrait { max-width: 460px; }
  .book-visual { max-width: 420px; }
  .topics, .options { grid-template-columns: minmax(0, 1fr); }
  .team-band { flex-direction: column; align-items: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .float-chip { font-size: .7rem; padding: 8px 10px; border-radius: 12px; }
  .float-chip small { font-size: .64rem; }
  .float-chip .dot { width: 24px; height: 24px; border-radius: 8px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .mission { grid-template-columns: minmax(0, 1fr); }
  .mission li { min-height: 0; }
  .shelf > * { flex-basis: 100%; }
  .option .go { display: none; }
  .timeline { padding-left: 34px; }
  .beat::before { left: -31px; }
  .cookie { left: 10px; right: 10px; max-width: none; }
  .cookie .row .btn { flex: 1; }
  .walk { padding: 22px 20px; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; --radius: 18px; }
  body { font-size: 15px; line-height: 1.6; }
  .display, .hero h1 { font-size: clamp(1.7rem, 7.6vw, 2.05rem); line-height: 1.12; letter-spacing: -0.03em; }
  .display .serif { font-size: 1.1em; }
  .story-title { font-size: clamp(1.55rem, 6.8vw, 1.9rem); }
  .story-title .small { font-size: 1.12rem; margin-top: 10px; }
  .h2, .service-side h2 { font-size: clamp(1.4rem, 6.2vw, 1.7rem); line-height: 1.15; }
  .h3 { font-size: 1.12rem; }
  .lede { font-size: .97rem; }
  .prose p, .beat p, .service-body .prose p, .book-copy .prose p, .tcard blockquote { font-size: .95rem; line-height: 1.7; }
  .hero h1 { margin-bottom: 14px; }
  .hero .lede { margin-bottom: 22px; }

  .btn { min-height: 44px; padding: 0 6px 0 16px; font-size: .86rem; gap: 10px; }
  .btn .btn-ico { width: 32px; height: 32px; }
  .btn .btn-ico svg { width: 14px; height: 14px; }
  .actions { gap: 10px; }
  .link-arrow { font-size: .9rem; }

  .stats-card li { align-items: center; text-align: center; justify-content: flex-start; gap: 4px; padding: 14px 6px; }
  .stat-num { font-size: 1.25rem; }
  .stat-label { font-size: .66rem; line-height: 1.3; }
  .hero-stats { padding-bottom: 8px; }

  .section { padding-block: 52px; }
  .section--tight { padding-block: 36px; }
  .section-head { margin-bottom: 24px; gap: 12px; }
  .proof { padding-block: 34px; }
  .proof-title { font-size: .82rem; margin-bottom: 16px; padding-inline: 10px; }
  .flag-pill { font-size: .8rem; padding: 7px 14px 7px 7px; gap: 8px; }
  .flag-pill img { width: 26px; height: 18px; }
  .doors { gap: 12px; }
  .door { padding: 22px; }
  .door-ico { width: 46px; height: 46px; border-radius: 13px; }
  .door-ico svg { width: 22px; height: 22px; }
  .door h3 { margin: 18px 0 6px; }
  .door p { margin-bottom: 16px; font-size: .92rem; }

  .quote-slide blockquote { font-size: 1.05rem; line-height: 1.55; }
  .quote-slide blockquote::before { font-size: 3.6rem; }
  .person { margin-top: 18px; }
  .person img.avatar { width: 46px; height: 46px; }
  .quote-tab img { width: 38px; height: 38px; }
  .tcard { padding: 22px; margin-bottom: 12px; }

  .cta { padding-block: 68px; }
  .cta h2 { margin-bottom: 14px; }
  .cta .lede { margin-bottom: 22px; }
  .newsletter { padding-block: 24px 44px; }
  .news-card { padding: 24px 20px; gap: 18px; border-radius: 22px; }
  .news-card .h3 { font-size: 1.35rem; }
  .news-form { padding: 5px; }
  .news-form input { padding: 0 12px; font-size: .9rem; }

  .site-footer { padding-top: 44px; }
  .foot-grid { gap: 28px 18px; }
  .foot-brand img { height: 32px; margin-bottom: 12px; }
  .foot-word { margin-top: 32px; }

  .page-hero { padding: 104px 0 30px; }
  .page-hero .lede { margin-top: 12px; }
  .page-hero .actions { margin-top: 20px; }
  .crumbs { margin-bottom: 14px; font-size: .75rem; }

  .story-grid { gap: 32px; }
  .story-portrait { max-width: 300px; }
  .creds li { font-size: .85rem; padding: 10px 0; }
  .beat { padding-bottom: 32px; }
  .beat .kicker { font-size: .8rem; margin-bottom: 6px; }
  .belief { margin-top: 36px; padding: 22px; }
  .belief p { font-size: 1.35rem; }
  .mission li { padding: 20px; gap: 12px; }
  .mission li p { font-size: .92rem; }

  .service { padding-block: 40px; gap: 18px; }
  .service-side .tag { margin-bottom: 10px; font-size: .82rem; }
  .walk { margin: 20px 0 22px; padding: 18px; }
  .walk li { font-size: .92rem; padding: 5px 0; }
  .team-band { padding: 22px; gap: 16px; }
  .team-band h2 { font-size: 1.1rem; }

  .book-card { padding: 14px 14px 20px; }
  .cover-wrap { margin-bottom: 16px; }
  .book-card h2, .book-card h3 { font-size: 1.12rem; }
  .book-card p { font-size: .9rem; margin-bottom: 14px; }
  .book-visual { max-width: 280px; padding-top: 18px; }
  .book-copy h1 { font-size: 1.8rem; }
  .book-copy .subtitle { font-size: 1.12rem; }
  .book-copy .hook { margin: 20px 0 14px; font-size: 1.1rem; }
  .book-copy .buy { margin: 22px 0; }

  .topic-col { padding: 20px; }
  .topic-col h2 { font-size: 1rem; margin-bottom: 8px; }
  .topic-col li { font-size: .92rem; padding: 12px 0; }
  .formats { padding: 20px; gap: 14px; }
  .options { gap: 10px; }
  .option { padding: 18px; gap: 14px; }
  .option .door-ico { width: 42px; height: 42px; }
  .option strong { font-size: 1rem; }
  .option span { font-size: .86rem; }

  .legal h2 { font-size: 1.12rem; margin-top: 32px; }
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal thead { display: none; }
  .legal tr { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .legal td { border: 0; padding: 3px 0; }
  .legal td::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 600; color: var(--gold); }
  .legal p, .legal li { font-size: .92rem; }
  .nf .code { font-size: 6rem; }
}

@media (hover: none) {
  .card::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-load], .js [data-reveal], .js .line > span, .js .quote-slide blockquote { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .grain { display: none; }
}

@media print {
  .site-header, .grain, .aurora, .cookie, .newsletter, .progress { display: none !important; }
  body { background: #fff; color: #000; }
}
