/* ─────────────────────────────────────────────────────────────
   Offside The Box — design system (dark, from the book cover)
   Black primary · deep-green luminous accent · warm white text.
   Exact cover colors: black #000000 · green #0F371C · white #EBEAE9
   ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Kvltura";
  src: url("/assets/Kvltura.otf") format("opentype");
  font-weight: 400; font-display: swap;
}

:root {
  --black:     #000000;
  --bg:        #000000;
  --surface:   #0C100D;   /* raised panels on black */
  --tint:      rgba(235,234,233,0.05);
  --text:      #EBEAE9;   /* exact brightest white from cover */
  --text-2:    #C3C4BF;   /* standard body gray (light, not white) */
  --text-3:    #6C706B;
  --hairline:  rgba(235,234,233,0.12);
  --hairline-2:rgba(235,234,233,0.22);

  --green-deep:#0F371C;   /* EXACT cover glow green */
  --green:     #1F8047;   /* luminous accent (same hue, brightened for screen) */
  --green-soft:rgba(31,128,71,0.34);
  --ink:       var(--text);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Inter, Helvetica, Arial, sans-serif;
  --title: var(--font);  /* premium condensed for titles */

  --maxw: 1080px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
::selection { background: rgba(31,128,71,0.35); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }

/* ── Type ─────────────────────────────────────────────────── */
.display {
  font-size: clamp(46px, 8vw, 92px);
  font-weight: 600; line-height: 1.02; letter-spacing: -0.04em;
}
/* Kvltura wordmark — used ONLY for the title "OFFSIDE THE BOX" */
.wordmark {
  font-family: "Kvltura", var(--font);
  font-weight: 400; text-transform: uppercase;
  font-size: clamp(70px, 20vw, 148px); line-height: 0.92; letter-spacing: 0.01em;
  color: var(--text);
  text-shadow: 0 0 48px rgba(31,128,71,0.45), 0 0 12px rgba(31,128,71,0.35);
}
h1, h2, h3, .display, .h2, .h3 { font-family: var(--title); }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.005em; line-height: 1.1; color: var(--text); }
.h2 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 600; letter-spacing: -0.01em; }
.h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 500; letter-spacing: 0; }
.lead {
  font-size: clamp(19px, 2.1vw, 23px); font-weight: 400;
  color: var(--text-2); line-height: 1.5; letter-spacing: -0.014em;
}
.body { font-size: 17px; color: var(--text-2); line-height: 1.75; }
.overline {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--green);
}
a { color: inherit; text-decoration: none; }

/* ── Buttons — ONE system ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 15px; font-weight: 500; line-height: 1;
  letter-spacing: -0.01em; padding: 14px 26px; border-radius: 980px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), box-shadow 0.3s var(--ease), border-color 0.25s var(--ease), opacity 0.2s;
}
.btn-primary { background: var(--text); color: #000;
  box-shadow: 0 0 26px -2px rgba(31,128,71,0.5), 0 0 9px -1px rgba(31,128,71,0.4); }
.btn-primary:hover { transform: translateY(-1px);
  box-shadow: 0 0 46px 1px rgba(31,128,71,0.72), 0 0 16px rgba(31,128,71,0.5); }
.btn-outline { background: rgba(22,24,22,0.55); color: var(--text-2); border-color: var(--hairline-2);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.btn-outline:hover { color: var(--text); border-color: rgba(235,234,233,0.5); background: rgba(30,32,30,0.72); box-shadow: none; }
.btn-quiet { background: transparent; color: var(--text-2); padding: 14px 10px; }
.btn-quiet:hover { color: var(--text); }
.btn-lg { font-size: 16px; padding: 16px 32px; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(0,0,0,0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--maxw); height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.brand .thin { color: var(--text-3); font-weight: 400; }
.nav-right { display: flex; align-items: center; gap: 26px; }
.nav-link { font-size: 14px; color: var(--text-2); transition: color 0.2s; }
.nav-link:hover { color: var(--text); }

.avatar-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--hairline-2);
  background: var(--surface); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden; padding: 0; transition: border-color 0.2s, box-shadow 0.2s;
}
.avatar-btn:hover { border-color: var(--green); box-shadow: 0 0 18px rgba(31,128,71,0.35); }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.avatar-btn svg { width: 17px; height: 17px; color: var(--text-2); }
.menu {
  position: absolute; top: calc(var(--nav-h) - 6px); right: 24px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.8); padding: 8px; min-width: 210px;
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: all 0.22s var(--ease); z-index: 200;
}
.menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--hairline); margin-bottom: 6px; }
.menu .who b { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.menu .who span { font-size: 12px; color: var(--text-3); }
.menu button {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 14px; color: var(--text); padding: 10px 12px; border-radius: 9px;
}
.menu button:hover { background: var(--tint); }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: clamp(84px, 12vw, 144px) 0; }
.section-sm { padding: clamp(68px, 9vw, 104px) 0; }
.rule { height: 1px; background: var(--hairline); border: 0; }
.eyebrow-row { margin-bottom: 22px; }
.stack-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; justify-content: center; }

/* ── Hero (black + green glow, like the cover) ────────────── */
.hero {
  position: relative; text-align: center; overflow: hidden;
  padding: clamp(72px, 12vw, 128px) 0 clamp(64px, 9vw, 104px);
  background:
    radial-gradient(60% 55% at 28% 22%, rgba(15,55,28,0.75) 0%, rgba(15,55,28,0.0) 60%),
    radial-gradient(50% 50% at 82% 70%, rgba(15,55,28,0.35) 0%, rgba(0,0,0,0) 60%),
    #000;
}
.hero .lead { max-width: 620px; margin: 22px auto 0; }
.hero .overline { color: var(--green); }

/* Real book cover shot with a green glow */
.book-shot { position: relative; width: 300px; max-width: 72vw; margin: clamp(40px,6vw,64px) auto 0; }
.book-shot::after {
  content: ""; position: absolute; inset: -12% -8%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(31,128,71,0.4), rgba(0,0,0,0) 72%);
  filter: blur(6px);
}
.book-shot img {
  width: 100%; border-radius: 8px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(235,234,233,0.06);
}

/* ── Idea row ─────────────────────────────────────────────── */
.ideas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.idea { padding: 48px 32px 42px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.idea-icon { position: relative; margin: 0 auto 18px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--green); }
.idea-icon::before { content: ""; position: absolute; inset: -15px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(31,128,71,0.22), transparent 72%); }
.idea-icon svg { position: relative; width: 34px; height: 34px; }
.idea .n { font-family: var(--font); font-weight: 700; text-transform: uppercase;
  font-size: clamp(30px, 3.6vw, 42px); line-height: 1.05; letter-spacing: -0.02em;
  color: var(--green); margin-bottom: 0;
  text-shadow: 0 0 22px rgba(31,128,71,0.6), 0 0 50px rgba(31,128,71,0.4); }
.idea .idea-title { font-family: var(--font); font-weight: 700; font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.05; letter-spacing: -0.02em; text-transform: uppercase; color: var(--green); }
.idea .sep { margin-top: 18px; margin-bottom: 20px; }
.idea p { font-size: clamp(19px, 2vw, 22px); color: var(--text-2); line-height: 1.55; max-width: 30ch; }

/* ── Pull quote ───────────────────────────────────────────── */
.pull { max-width: 860px; margin: 0 auto; text-align: center; }
.pull q {
  font-family: var(--font); font-size: clamp(32px, 4.8vw, 52px); font-weight: 700;
  line-height: 1.22; letter-spacing: -0.01em; color: var(--text-2); text-transform: uppercase; quotes: "\201C" "\201D";
}
.pull q .q-hi { color: var(--green); }

/* ── Author ───────────────────────────────────────────────── */
.author { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px,5vw,64px); align-items: center; }
.author-photo { position: relative; }
.author-photo::after {
  content: ""; position: absolute; inset: 6% 10%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(31,128,71,0.28), rgba(0,0,0,0) 72%);
}
.author-photo img { width: 100%; max-width: 420px; margin: 0 auto; }
.author h2 { margin-bottom: 8px; }
.author .role { color: var(--green); font-size: 14px; font-weight: 500; letter-spacing: 0.02em; margin-bottom: 18px; }
.author p.body + p.body { margin-top: 14px; }

/* ── Donation panel ───────────────────────────────────────── */
.panel {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 22px;
  padding: 34px; max-width: 480px; margin: 0 auto;
  box-shadow: 0 40px 90px -50px rgba(0,0,0,0.9), 0 0 60px -30px rgba(31,128,71,0.25);
}
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.amount {
  padding: 15px 0; border: 1px solid var(--hairline-2); border-radius: 13px; background: transparent;
  font-family: var(--font); font-size: 16px; font-weight: 500; color: var(--text); cursor: pointer;
  transition: all 0.18s var(--ease);
}
.amount:hover { border-color: var(--green); }
.amount.active { background: var(--green); color: #fff; border-color: var(--green); box-shadow: 0 0 22px rgba(31,128,71,0.4); }
.field-row { position: relative; margin-bottom: 18px; }
.field-row .cur { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 17px; }
.input {
  width: 100%; font-family: var(--font); font-size: 17px; color: var(--text);
  padding: 15px 16px 15px 30px; border: 1px solid var(--hairline-2); border-radius: 13px;
  background: #000; transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: var(--text-3); }
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(31,128,71,0.18); }
.secure { font-size: 12.5px; color: var(--text-3); text-align: center; margin-top: 14px; }

/* ── Footer ───────────────────────────────────────────────── */
.footer { padding: 44px 0; border-top: 1px solid var(--hairline); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer, .footer a { font-size: 13px; color: var(--text-3); }
.footer a:hover { color: var(--text-2); }

/* ── Toast ────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(18px);
  background: var(--surface); color: var(--text); border: 1px solid var(--hairline-2);
  padding: 13px 22px; border-radius: 980px; font-size: 14px; opacity: 0; pointer-events: none;
  transition: all 0.3s var(--ease); z-index: 300; box-shadow: 0 20px 50px -20px rgba(0,0,0,0.8);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { border-color: rgba(200,90,70,0.5); }

/* ── Utility ──────────────────────────────────────────────── */
.hidden { display: none !important; }
.mt-s { margin-top: 12px; } .mt { margin-top: 24px; } .mt-l { margin-top: 44px; }
.muted { color: var(--text-3); }

@media (max-width: 820px) {
  .ideas { grid-template-columns: 1fr; }
  .author { grid-template-columns: 1fr; text-align: center; }
  .author-photo img { max-width: 320px; }
  .nav-right { gap: 18px; }
  .hide-sm { display: none; }
}

/* ── Perspective book mockup (ported to vanilla CSS) ──────── */
.book-stage { position: relative; height: 155vh; text-align: center;
  background: radial-gradient(46% 34% at 50% 42%, rgba(15,55,28,0.4), rgba(0,0,0,0) 70%), #000; }
.book-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: clamp(30px, 5vw, 56px); }
.pbook-scene { perspective: 1500px; width: 437px; max-width: 86vw; margin: 0 auto; }
.pbook {
  position: relative; width: 100%; aspect-ratio: 5 / 8; transform-style: preserve-3d;
  transform: rotateX(var(--book-rx, 22deg)) rotateY(var(--book-ry, 0deg)) scale(var(--book-sc, 1.05));
  transition: transform 0.18s var(--ease); cursor: pointer; will-change: transform;
}
.pbook-scene:hover .pbook { --book-ry: -7deg; }
.pbook-face { position: absolute; inset: 0; border-radius: 6px 4px 4px 6px; overflow: hidden; }
.pbook-front {
  transform: translateZ(26px);
  box-shadow:
    0 1.8px 3.6px rgba(0,0,0,0.05), 0 10.8px 21.6px rgba(0,0,0,0.08),
    inset 0 -1px rgba(0,0,0,0.1), inset 0 1.8px 1.8px rgba(255,255,255,0.1),
    inset 3.6px 0 3.6px rgba(0,0,0,0.1),
    0 50px 90px -34px rgba(0,0,0,0.9), 0 0 70px -24px rgba(31,128,71,0.4);
}
.pbook-front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pbook-shine {
  position: absolute; top: 0; bottom: 0; left: 0; width: 8.2%; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, hsla(0,0%,100%,0), hsla(0,0%,100%,0) 12%, hsla(0,0%,100%,.22) 29%, hsla(0,0%,100%,0) 50%, hsla(0,0%,100%,0) 75%, hsla(0,0%,100%,.22) 91%, hsla(0,0%,100%,0)),
    linear-gradient(90deg, rgba(0,0,0,.03), rgba(0,0,0,.1) 12%, transparent 30%, rgba(0,0,0,.02) 50%, rgba(0,0,0,.2) 73%, rgba(0,0,0,.5) 75%, rgba(0,0,0,.15) 85%, transparent);
}
.pbook-spine {
  position: absolute; top: 3px; bottom: 3px; left: 0; width: 52px;
  transform: translateX(calc(100% * 340 / 52 - 52px)) rotateY(90deg);
  transform-origin: center; background: linear-gradient(90deg, #0F371C, #050705);
}
.pbook-back { transform: translateZ(-26px); background: #0B0E0B; }
.book-stage .caption { margin-top: 34px; }
@media (max-width: 520px) { .pbook-spine { display: none; } }

/* ── Overrides: remove green aura behind author + Amazon button ── */
.author-photo::after { display: none !important; }
.author-photo img { filter: drop-shadow(0 30px 50px rgba(0,0,0,0.6)); }
.amz-logo { display: inline-flex; align-items: center; margin-left: 9px; }
.amz-logo svg { display: block; }

/* ── Scroll reveal (framer-motion feel, vanilla) ──────────── */
.reveal { opacity: 0; transform: translateY(46px) scale(0.985); transition: opacity 0.95s var(--ease), transform 0.95s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; transition:none; } }

/* ── Manifesto (the passage, upgraded) ────────────────────── */
.hl { color: var(--green); font-weight: 600; }

/* ── Author, upgraded (two-column editorial) ──────────────── */
.author2 { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(32px, 5vw, 76px); align-items: center; }
.author2.reverse { grid-template-columns: 1.08fr 0.92fr; }
.author2-photo { position: relative; }
.author2-frame {
  position: relative; overflow: hidden; background: #060806;
  clip-path: polygon(42px 0, 100% 0, 100% calc(100% - 42px), calc(100% - 42px) 100%, 0 100%, 0 42px);
  animation: floaty 7s ease-in-out infinite;
}
.author2-frame img { width: 100%; display: block; }
.author2-photo::after {
  content: ""; position: absolute; inset: 10% 4% -6%; z-index: -1;
  background: radial-gradient(closest-side, rgba(31,128,71,0.3), rgba(0,0,0,0) 72%); filter: blur(6px);
}
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-8px);} }

.author2-text .sep { height: 3px; width: 66px; border: 0; border-radius: 2px; margin: 16px 0 22px;
  background: linear-gradient(90deg, var(--green), rgba(31,128,71,0)); }
.author2-text .body { max-width: 46ch; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip { font-size: 12.5px; color: var(--text-2); border: 1px solid var(--hairline-2); border-radius: 999px; padding: 9px 16px; letter-spacing: 0.01em; transition: border-color .2s, color .2s; }
.chip:hover { border-color: var(--green); color: var(--text); }

@media (max-width: 860px) {
  .author2, .author2.reverse { grid-template-columns: 1fr; text-align: center; }
  .author2-text .body { max-width: 100%; }
  .author2-text .sep { margin-left: auto; margin-right: auto; }
  .chips { justify-content: center; }
  .author2-photo { max-width: 420px; margin: 0 auto; }
}

/* ── Social icons (custom, monoline, minimal) ─────────────── */
.socials { display: flex; gap: 12px; margin-top: 26px; }
.social {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--hairline-2); background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: color 0.2s, border-color 0.2s, box-shadow 0.3s var(--ease), transform 0.2s var(--ease);
}
.social:hover { color: var(--text); border-color: var(--green); box-shadow: 0 0 22px rgba(31,128,71,0.32); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }
@media (max-width: 860px) { .socials { justify-content: center; } }

/* ── Overrides: social icons green & borderless, GlowCard, fonts ── */
.socials { gap: 15px; margin-top: 28px; }
.social { width: auto; height: 40px; border: 0; background: none; border-radius: 0;
  color: var(--green); box-shadow: none; }
.social:hover { color: var(--text); border: 0; box-shadow: none;
  transform: translateY(-2px); filter: drop-shadow(0 0 9px rgba(235,234,233,0.4)); }
.social svg { width: 24px; height: 24px; }

/* ── GlowCard — spotlight that follows the cursor (vanilla port) ── */
:root { --gx: 50vw; --gy: -140px; }
.glow-card {
  position: relative; border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(240px 240px at var(--gx) var(--gy), rgba(31,128,71,0.15), transparent 62%),
    var(--surface);
  background-attachment: fixed, scroll;
  border: 1px solid var(--hairline);
  transition: transform 0.4s var(--ease);
}
.glow-card > * { position: relative; z-index: 1; }
.glow-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(220px 220px at var(--gx) var(--gy), var(--green), transparent 60%);
  background-attachment: fixed;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.9;
}
.glow-card:hover { transform: translateY(-4px); }
@media (hover: none) { .glow-card::before { opacity: 0.4; } }

/* ── Title mark (short premium green line, like under the author) ── */
.sep { height: 3px; width: 66px; border: 0; border-radius: 2px; margin: 16px 0 22px;
  background: linear-gradient(90deg, var(--green), rgba(31,128,71,0)); }
.sep.center { margin-left: auto; margin-right: auto;
  background: linear-gradient(90deg, rgba(31,128,71,0), var(--green), rgba(31,128,71,0)); }

/* ── Statement titles (SF, uppercase, bold, green — matches pull quote) ── */
.stmt { font-family: var(--font); font-weight: 700; text-transform: uppercase;
  letter-spacing: -0.005em; color: var(--green);
  text-shadow: 0 0 22px rgba(31,128,71,0.6), 0 0 50px rgba(31,128,71,0.4); }
.idea .idea-title { text-shadow: 0 0 22px rgba(31,128,71,0.6), 0 0 50px rgba(31,128,71,0.4); }

/* ═══════════════════════════════════════════════════════════
   PREMIUM POLISH PASS
   ═══════════════════════════════════════════════════════════ */

/* Film grain — subtle richness over flat black */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Custom scrollbar */
html { scrollbar-color: rgba(31,128,71,0.55) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: rgba(235,234,233,0.14); border-radius: 10px; border: 3px solid #000; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* Focus + press states */
a:focus-visible, button:focus-visible, .btn:focus-visible, .amount:focus-visible,
.input:focus-visible, .social:focus-visible {
  outline: 2px solid var(--green); outline-offset: 3px; border-radius: 10px;
}
.btn:active { transform: translateY(0) scale(0.985); }

/* Nav: refined scrolled state */
.nav { transition: background 0.3s var(--ease), border-color 0.3s var(--ease); }
.nav.scrolled { background: rgba(0,0,0,0.9); border-bottom-color: var(--hairline-2); }

/* Hero: breathing wordmark glow + vignette for depth */
.hero { }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(125% 92% at 50% -4%, transparent 56%, rgba(0,0,0,0.55) 100%);
}
.hero > .wrap { position: relative; z-index: 1; }
.wordmark { animation: wm-breathe 7.5s ease-in-out infinite; }
@keyframes wm-breathe {
  0%, 100% { text-shadow: 0 0 44px rgba(31,128,71,0.4), 0 0 12px rgba(31,128,71,0.3); }
  50%      { text-shadow: 0 0 70px rgba(31,128,71,0.62), 0 0 20px rgba(31,128,71,0.46); }
}
@media (prefers-reduced-motion: reduce) { .wordmark { animation: none; } }

/* Scroll cue — a single thin descending line */
.scroll-cue { display: flex; justify-content: center; margin-top: clamp(44px, 6vw, 68px); }
.scroll-cue .line { width: 1px; height: 44px; transform-origin: top;
  background: linear-gradient(var(--green), rgba(31,128,71,0)); animation: cue 2.6s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 35% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue .line { animation: none; opacity: 0.5; } }

/* Section eyebrow (centered rhythm) */
.section-eyebrow { text-align: center; margin-bottom: clamp(30px, 4.5vw, 48px); }

/* Manifesto: give the passage more gravity (bright, airy statement) */

/* Ideas: staggered reveal */
.ideas .idea:nth-child(2) { transition-delay: 0.09s; }
.ideas .idea:nth-child(3) { transition-delay: 0.18s; }

/* Footer — premium three-part */
.footer { padding: 60px 0 40px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px;
  margin-bottom: 30px; }
.footer-brand { font-family: "Kvltura", var(--font); font-weight: 400; font-size: clamp(44px, 6vw, 64px); letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--text); text-shadow: 0 0 26px rgba(31,128,71,0.4); }
.footer-socials { display: flex; gap: 15px; }
.footer .social { height: 34px; }
.footer .social svg { width: 21px; height: 21px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-links a { margin-left: 4px; }
@media (max-width: 620px) { .footer-top, .footer-bottom { justify-content: center; text-align: center; } }

/* ── Login page (adapted from the sign-in component, legacy bg) ── */
.login-stage { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; text-align: center;
  padding: 48px 24px 96px;
  background: radial-gradient(58% 52% at 50% 32%, rgba(15,55,28,0.6), rgba(0,0,0,0) 62%),
             radial-gradient(40% 40% at 82% 78%, rgba(15,55,28,0.28), rgba(0,0,0,0) 60%), #000; }
.login-box { width: 100%; max-width: 400px; }
.login-mark { font-family: "Kvltura", var(--font); text-transform: uppercase; font-size: 30px; letter-spacing: 0.04em;
  color: var(--text); text-shadow: 0 0 30px rgba(31,128,71,0.45); margin-bottom: 26px; }
.login-title { font-family: var(--font); font-weight: 700; font-size: clamp(34px, 6vw, 46px);
  letter-spacing: -0.02em; color: var(--text); }
.login-sub { color: var(--text-2); font-size: 16px; margin-top: 10px; margin-bottom: 36px; }
.btn-google { width: 100%; gap: 12px; }
.btn-google .g { display: inline-flex; }
.login-alt { margin-top: 22px; }
.login-terms { margin-top: 30px; font-size: 12.5px; color: var(--text-3); line-height: 1.6; }
.login-terms a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.login-terms a:hover { color: var(--text); }

/* ═══════════ Floating pill navbar (from the sign-in component) ═══════════ */
.nav-pill { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 300;
  width: calc(100% - 28px); max-width: 940px; }
.nav-pill-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
/* subtle top fade on scroll for legibility (no container) */
.nav-pill::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: 88px; z-index: -1;
  pointer-events: none; opacity: 0; transition: opacity 0.3s var(--ease);
  background: linear-gradient(rgba(0,0,0,0.72), rgba(0,0,0,0)); }
.nav-pill.scrolled::before { opacity: 1; }
.nav-brand2 { font-family: "Kvltura", var(--font); text-transform: uppercase; font-size: 24px;
  letter-spacing: 0.04em; white-space: nowrap; }
.nav-leap { font-family: var(--font); font-weight: 600; text-transform: uppercase; font-size: 13.5px;
  letter-spacing: 0.06em; white-space: nowrap; }

/* Premium roll hover (the component's AnimatedNavLink: gray -> white) */
.nav-roll { display: inline-block; overflow: hidden; height: 1.4em; vertical-align: middle; }
.nav-roll .roll { display: flex; flex-direction: column; transition: transform 0.42s var(--ease); }
.nav-roll .roll > span { display: block; height: 1.4em; line-height: 1.4em; white-space: nowrap; }
.nav-roll .roll > span:first-child { color: var(--text-2); }
.nav-roll .roll > span:last-child { color: var(--text); }
.nav-roll:hover .roll { transform: translateY(-1.4em); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-anim { position: relative; display: inline-block; overflow: hidden; height: 20px; }
.nav-anim .roll { display: flex; flex-direction: column; transition: transform 0.38s var(--ease); }
.nav-anim .roll span { display: block; height: 20px; line-height: 20px; font-size: 14px; white-space: nowrap; }
.nav-anim .a { color: var(--text-2); }
.nav-anim .b { color: var(--text); }
.nav-anim:hover .roll { transform: translateY(-20px); }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.btn-sm { font-size: 13px; padding: 9px 17px; }
.btn-sm .amz-logo { margin-left: 7px; }
.btn-sm .amz-logo svg { width: 25px; height: 10px; }

/* burger */
.nav-burger { display: none; flex-direction: column; gap: 4px; width: 40px; height: 40px;
  align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; margin-left: auto; }
.nav-burger span { width: 18px; height: 1.6px; background: var(--text); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-pill.open .nav-burger span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav-pill.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-pill.open .nav-burger span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

/* mobile dropdown */
.nav-mobile { display: none; flex-direction: column; gap: 4px; margin: 8px 6px 0; padding: 12px;
  border-radius: 22px; background: rgba(10,13,11,0.94); border: 1px solid var(--hairline-2);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.nav-mobile > a:not(.btn) { padding: 13px 14px; border-radius: 12px; color: var(--text-2); font-size: 15px; }
.nav-mobile > a:not(.btn):hover { background: var(--tint); color: var(--text); }
.nav-mobile .btn { margin-top: 8px; width: 100%; }

@media (max-width: 720px) {
  .nav-pill { display: none; }            /* no floating bar on mobile — the content has the CTAs */
  .hero { padding-top: clamp(56px, 12vw, 100px); }  /* no bar to clear */
}

/* clearance for the floating pill */
.hero { padding-top: clamp(112px, 13vw, 158px); }
.legal { padding-top: 116px; }

/* Account menu: anchor under the avatar in the floating pill */
.menu { position: fixed; top: 78px;
  right: calc((100vw - min(940px, 100vw - 28px)) / 2 + 10px); }

/* Author about: standard lead width in the text column */
.author2-text .lead { max-width: 44ch; }
@media (max-width: 860px) { .author2-text .lead { max-width: 100%; } }

/* Green highlight with halo (bicolor accents) */
.hi { color: var(--green); font-weight: 700; text-shadow: 0 0 20px rgba(31,128,71,0.55), 0 0 44px rgba(31,128,71,0.36); }

/* Cards: gray info text gets a subtle halo (standardization) */
.idea p { }

/* Manifesto: bigger green Kvltura brand + an extra halo layer (only here) */

/* ── Social icons as premium circular buttons (from the footer component) ── */
.social { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--hairline);
  background: var(--surface); color: var(--green);
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.3s var(--ease), transform 0.2s var(--ease); }
.social:hover { color: var(--green); border-color: var(--green); background: #10140e;
  transform: translateY(-2px); box-shadow: 0 0 18px rgba(31,128,71,0.3); filter: none; }
.social svg { width: 20px; height: 20px; }
.socials { gap: 12px; }
.footer-socials { gap: 12px; }

/* Footer brand: Saturn logo + wordmark */
.footer-brand { display: inline-flex; align-items: center; gap: 14px; }
.footer-logo { width: 0.7em; height: 0.7em; color: var(--green); flex: none;
  filter: drop-shadow(0 0 10px rgba(31,128,71,0.4)); }
.footer-brand-name { display: inline-block; }

/* ── Vapor text canvases ─────────────────────────────────── */
.vapor { position: relative; width: 100%; display: block; }
.pull .vapor { height: clamp(140px, 19vw, 180px); margin: 0 auto; }

/* ── Final standardization + footer tweaks ── */
.footer-brand { display: inline-block; font-size: clamp(54px, 8vw, 92px); }
.footer-logo { display: none; }
.footer .social { width: 26px; height: 26px; }
.footer .social svg { width: 13px; height: 13px; }

/* Fix: footer brand must beat the base `.footer a` (0,1,1) rule */
.footer a.footer-brand { font-size: clamp(20px, 2.8vw, 32px); color: var(--text); font-weight: 400; line-height: 1; }
.footer a.footer-brand:hover { color: var(--text); }


/* Footer social icons: GREEN circle, dark icon (beats base `.footer a`) */
.footer a.social { color: #0A0D09; background: var(--green); border-color: var(--green); }
.footer a.social:hover { color: #0A0D09; background: #26a65b; border-color: #26a65b;
  box-shadow: 0 0 16px rgba(31,128,71,0.5); }


/* ── Parallax (subtle depth on scroll) ── */
[data-parallax] { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
@media (prefers-reduced-motion: reduce) { [data-parallax] { transform: none !important; } }


/* Breathing room after the pinned book section */
.book-stage + section { padding-top: clamp(64px, 10vw, 120px); }


/* Card text: white line / green line, breathing on hover */
.idea p .hi { display: block; margin-top: 7px; transition: margin-top 0.38s var(--ease), text-shadow 0.38s var(--ease); }
.idea.glow-card:hover p .hi { margin-top: 14px; }
