/* ==========================================================================
   The Lazy Creator Co. — homepage redesign (homepage only)
   Canvas: black. Structure/glow: electric blue. Headlines: white.
   Rare warm accent (primary CTAs only): burnt orange / amber.
   No photography; depth via type, glow, gradients, frosted glass.
   ========================================================================== */

:root {
  --black: #04060C;
  --ink: #070B14;
  --panel: rgba(16, 26, 48, 0.6);
  --panel-edge: rgba(94, 162, 255, 0.24);
  --blue: #2E7DFF;
  --blue-bright: #6FABFF;
  --blue-soft: rgba(46, 125, 255, 0.16);
  --blue-glow: rgba(46, 125, 255, 0.55);
  --white: #FFFFFF;
  --muted: #AAB4C8;
  --faint: #6B7688;
  --amber: #E0812F;
  --amber-bright: #F7973F;
  --amber-glow: rgba(224, 129, 47, 0.5);

  --font-display: "Playfair Display", Georgia, serif;
  --font-italic: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-dramatic: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { overflow-x: hidden; background: #04060C; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--blue); color: var(--black); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 15px 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out),
              background-color 0.45s var(--ease-out), border-color 0.45s var(--ease-out),
              color 0.45s var(--ease-out);
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-amber {
  background: linear-gradient(160deg, var(--amber-bright), var(--amber) 55%, #B25A1C);
  color: #16090394;
  color: #1B0D03;
  box-shadow: 0 0 0 1px rgba(240, 138, 60, 0.35), 0 10px 34px -8px var(--amber-glow);
}
.btn-amber:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(240, 138, 60, 0.6), 0 18px 48px -8px rgba(240, 138, 60, 0.55);
}

.btn-ghost {
  background: rgba(46, 125, 255, 0.06);
  color: var(--blue-bright);
  border-color: rgba(94, 162, 255, 0.35);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  background: rgba(46, 125, 255, 0.14);
  border-color: rgba(94, 162, 255, 0.7);
  box-shadow: 0 14px 40px -12px var(--blue-glow);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.5s var(--ease-out), border-color 0.5s var(--ease-out),
              backdrop-filter 0.5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(94, 162, 255, 0.12);
}
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex-shrink: 0;   /* the logo never gets squeezed by the tabs */
}
.nav-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 0 18px rgba(46, 125, 255, 0.55), 0 0 0 1px rgba(94, 162, 255, 0.4);
}
.nav-brand-logo {
  height: 74px;
  width: auto;
  display: block;
}
@media (max-width: 720px) {
  .nav-brand-logo { height: 55px; }
}
.nav-brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--white);
}
.nav-brand-text em {
  font-family: var(--font-italic);
  font-weight: 600;
  color: var(--blue-bright);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  transition: color 0.35s var(--ease-out);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--blue-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-links .nav-dim { color: var(--faint); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(94, 162, 255, 0.3);
  border-radius: 10px;
  width: 44px; height: 40px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--blue-bright); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1200px;
}
.hero-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(46, 125, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 125, 255, 0.055) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 42%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 42%, #000 30%, transparent 78%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.hero-orb-a {
  width: 560px; height: 560px;
  left: 50%; top: 8%;
  transform: translateX(-78%);
  background: radial-gradient(circle, rgba(46, 125, 255, 0.32), transparent 65%);
}
.hero-orb-b {
  width: 720px; height: 720px;
  right: -14%; bottom: -30%;
  background: radial-gradient(circle, rgba(46, 125, 255, 0.16), transparent 62%);
}
.hero-ring {
  position: absolute;
  left: 50%; top: 46%;
  width: min(78vmin, 760px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(94, 162, 255, 0.5) 82%, transparent 92% 100%);
  mask-image: radial-gradient(circle, transparent 63.5%, #000 64.5%, #000 66%, transparent 67%);
  -webkit-mask-image: radial-gradient(circle, transparent 63.5%, #000 64.5%, #000 66%, transparent 67%);
  animation: ring-spin 46s linear infinite;
  opacity: 0.7;
}
@keyframes ring-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 6, 12, 0.6), transparent 22%, transparent 72%, var(--black) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 1080px;
  will-change: transform;
  transform-style: preserve-3d;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 34px;
}
.hero-eyebrow-line {
  width: clamp(28px, 6vw, 72px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-bright));
}
.hero-eyebrow-line:last-child { background: linear-gradient(270deg, transparent, var(--blue-bright)); }
.hero-eyebrow-text {
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 1.4vw, 0.8rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blue-bright);
}
.hero-eyebrow-text em {
  font-family: var(--font-italic);
  text-transform: none;
  letter-spacing: 0.06em;
  font-size: 1.25em;
}
.hero-title {
  margin: 0 0 30px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 10.5vw, 8.2rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--white);
  text-shadow: 0 0 80px rgba(46, 125, 255, 0.35);
}
.hero-title em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(115deg, var(--blue-bright) 10%, var(--blue) 55%, #9CC6FF 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mask { display: block; overflow: hidden; padding: 0.06em 0.08em; margin: -0.06em -0.08em; }
.mask-line { display: block; will-change: transform; }
.js .mask-line { transform: translateY(115%); }
.js [data-hero] { opacity: 0; }

.hero-lede {
  max-width: 560px;
  margin: 0 auto 44px;
  font-size: clamp(0.98rem, 1.8vw, 1.12rem);
  color: var(--muted);
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scrollcue {
  position: absolute;
  left: 50%; bottom: 34px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-scrollcue-text {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--faint);
}
.hero-scrollcue-track {
  width: 1px; height: 52px;
  background: rgba(94, 162, 255, 0.18);
  position: relative;
  overflow: hidden;
}
.hero-scrollcue-dot {
  position: absolute;
  left: -1.5px; top: 0;
  width: 4px; height: 12px;
  border-radius: 4px;
  background: var(--blue-bright);
  animation: cue-drop 2.2s var(--ease-out) infinite;
}
@keyframes cue-drop {
  0% { transform: translateY(-14px); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(56px); opacity: 0; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid rgba(94, 162, 255, 0.14);
  border-bottom: 1px solid rgba(94, 162, 255, 0.14);
  padding: 26px 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(46, 125, 255, 0.04), transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-run 56s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-run {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 2rem);
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(94, 162, 255, 0.45);
  white-space: nowrap;
  padding-right: 0.6em;
}
.marquee-run i {
  font-style: normal;
  color: var(--amber);
  -webkit-text-stroke: 0;
  font-size: 0.55em;
  vertical-align: 0.35em;
  padding: 0 0.5em;
}
@keyframes marquee-run { to { transform: translateX(-50%); } }

/* ---------- Chapters ---------- */
.chapter { padding: clamp(90px, 12vw, 160px) 0; position: relative; }
.chapter + .chapter { border-top: 1px solid rgba(94, 162, 255, 0.07); }

.chapter-head { margin-bottom: clamp(44px, 6vw, 72px); max-width: 720px; }
.chapter-kicker {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 22px;
}
.chapter-kicker-center { justify-content: center; }
.chapter-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(94, 162, 255, 0.55);
}
.chapter-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--blue-bright);
}
.case-subhead {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber-bright);
  margin: 30px 0 10px;
}
.case-subhead:first-of-type { margin-top: 0; }
.case-study-image {
  display: block;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--panel-edge);
  margin: 8px 0 26px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
}
.chapter-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--white);
}
.chapter-intro {
  margin: 0 0 30px;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
}

/* Frosted glass panel */
.glass-panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 24px;
  padding: clamp(40px, 6vw, 72px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(246, 248, 252, 0.05);
  overflow: hidden;
}
.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 162, 255, 0.55), transparent);
}

/* Spotlight hover (vars set from JS) */
.spot { position: relative; }
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(94, 162, 255, 0.1), transparent 65%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}
.spot:hover::after { opacity: 1; }

/* ---------- Destination cards ---------- */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.dest-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 38px 32px 32px;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform 0.55s var(--ease-out), border-color 0.55s var(--ease-out),
              box-shadow 0.55s var(--ease-out);
}
.dest-card:hover {
  transform: translateY(-8px);
  border-color: rgba(94, 162, 255, 0.45);
  box-shadow: 0 30px 60px -24px rgba(46, 125, 255, 0.35);
}
.dest-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(94, 162, 255, 0.4);
  transition: color 0.5s var(--ease-out);
}
.dest-card:hover .dest-num { color: rgba(94, 162, 255, 0.16); }
.dest-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
}
.dest-desc { color: var(--muted); font-size: 0.94rem; flex: 1; }
.dest-arrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-bright);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dest-arrow-glyph { transition: transform 0.45s var(--ease-out); }
.dest-card:hover .dest-arrow-glyph { transform: translateX(6px); }

.quicklinks {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.quicklink {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(94, 162, 255, 0.18);
  border-radius: 999px;
  padding: 10px 20px;
  transition: color 0.4s var(--ease-out), border-color 0.4s var(--ease-out),
              background-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.quicklink:hover {
  color: var(--white);
  border-color: rgba(94, 162, 255, 0.55);
  background: rgba(46, 125, 255, 0.08);
  transform: translateY(-2px);
}

/* ---------- Web cards ---------- */
.web-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.web-card {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.55s var(--ease-out), border-color 0.55s var(--ease-out),
              box-shadow 0.55s var(--ease-out);
}
.web-card:hover {
  transform: translateY(-8px);
  border-color: rgba(94, 162, 255, 0.45);
  box-shadow: 0 30px 60px -24px rgba(46, 125, 255, 0.35);
}
.web-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--panel-edge);
}
.web-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.9s var(--ease-out);
}
.web-card:hover .web-thumb img { transform: scale(1.05); }
.web-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--blue-bright);
  background: rgba(4, 6, 12, 0.72);
  border: 1px solid rgba(94, 162, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 7px 14px;
}
.web-body { padding: 24px 26px 28px; }
.web-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
}
.web-desc { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- Pull quotes ---------- */
.quote-section { padding: clamp(70px, 9vw, 120px) 0; }
.pull-quote {
  margin: 0 auto;
  max-width: 880px;
  text-align: center;
  position: relative;
  padding: 30px 20px 0;
}
.pull-quote-mark {
  position: absolute;
  top: -0.35em; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(6rem, 12vw, 9rem);
  line-height: 1;
  color: rgba(46, 125, 255, 0.22);
  text-shadow: 0 0 60px rgba(46, 125, 255, 0.4);
  pointer-events: none;
}
.pull-quote-text {
  margin: 0 0 24px;
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  line-height: 1.35;
  color: var(--white);
}
.pull-quote-attr {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

/* ---------- Activity Vault ---------- */
.vault-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) 1.4fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.vault-stat { display: flex; flex-direction: column; gap: 10px; }
.vault-stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4.4rem, 10vw, 8rem);
  line-height: 1;
  background: linear-gradient(160deg, var(--white) 20%, var(--blue-bright) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 40px rgba(46, 125, 255, 0.35));
}
.vault-stat-cap {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 220px;
  line-height: 1.9;
}

/* ---------- Journals ---------- */
.journal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.journal-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 22px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.55s var(--ease-out), border-color 0.55s var(--ease-out),
              box-shadow 0.55s var(--ease-out);
}
.journal-card:hover {
  transform: translateY(-8px);
  border-color: rgba(94, 162, 255, 0.45);
  box-shadow: 0 30px 60px -24px rgba(46, 125, 255, 0.35);
}
.journal-thumb {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--panel-edge);
}
.journal-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.journal-card:hover .journal-thumb img { transform: scale(1.06); }
.journal-body { padding: 30px 30px 32px; }
.journal-body h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
}
.journal-body > p { margin: 0 0 20px; color: var(--muted); font-size: 0.94rem; }
.scripture {
  border-left: 2px solid rgba(217, 119, 43, 0.6);
  padding: 4px 0 4px 18px;
  margin: 0 0 24px;
}
.scripture-text {
  margin: 0 0 8px;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--white);
}
.scripture-ref {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber-bright);
}

/* ---------- Free gift ---------- */
.gift-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) 1.3fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.gift-visual { position: relative; max-width: 320px; }
.gift-halo {
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 119, 43, 0.28), rgba(46, 125, 255, 0.12) 55%, transparent 72%);
  filter: blur(36px);
  animation: halo-breathe 7s ease-in-out infinite;
}
@keyframes halo-breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.07); opacity: 1; }
}
.gift-thumb {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(240, 138, 60, 0.3);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 60px -18px var(--amber-glow);
  transform: rotate(-2.5deg);
  transition: transform 0.7s var(--ease-out);
}
.gift-visual:hover .gift-thumb { transform: rotate(0deg) translateY(-6px); }

/* ---------- Words we build by ---------- */
.words-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.word-card {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 20px;
  padding: 34px 30px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform 0.55s var(--ease-out), border-color 0.55s var(--ease-out);
}
.word-card:hover { transform: translateY(-6px); border-color: rgba(94, 162, 255, 0.4); }
.word-card p {
  margin: 0 0 18px;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--white);
}
.word-card cite {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.64rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- Newsletter ---------- */
.newsletter-wrap { max-width: 760px; }
.newsletter-panel { text-align: center; }
.newsletter-intro { margin-left: auto; margin-right: auto; }
.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
.newsletter-input {
  flex: 1;
  min-width: 230px;
  background: rgba(4, 6, 12, 0.6);
  border: 1px solid rgba(94, 162, 255, 0.25);
  border-radius: 999px;
  padding: 15px 24px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.newsletter-input::placeholder { color: var(--faint); }
.newsletter-input:focus {
  border-color: rgba(94, 162, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(46, 125, 255, 0.14);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid rgba(94, 162, 255, 0.12);
  padding: clamp(56px, 8vw, 90px) 0 40px;
  background: linear-gradient(180deg, transparent, rgba(46, 125, 255, 0.045));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .nav-brand { margin-bottom: 16px; }
.footer-tag { margin: 0 0 12px; color: var(--muted); font-size: 0.92rem; }
.footer-mail {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--blue-bright);
  border-bottom: 1px solid rgba(94, 162, 255, 0.3);
  padding-bottom: 2px;
  transition: color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.footer-mail:hover { color: var(--white); border-color: var(--white); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.footer-col a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.footer-col a:hover { color: var(--white); transform: translateX(4px); }
.footer-base {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid rgba(94, 162, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--faint);
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .dest-grid, .web-grid, .words-grid { grid-template-columns: 1fr 1fr; }
  .journal-grid { grid-template-columns: 1fr; }
  .vault-layout, .gift-layout { grid-template-columns: 1fr; gap: 44px; }
  .gift-visual { margin: 0 auto; }
}

/* Laptop widths: slightly tighter tabs so all nine stay on one line beside a full-size logo */
@media (min-width: 1301px) and (max-width: 1499px) {
  .nav-links { gap: 18px; font-size: 0.78rem; letter-spacing: 0.06em; }
}
/* Nav collapses to the menu button at 1300px, the same breakpoint as every other page */
@media (max-width: 1300px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(4, 6, 12, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(94, 162, 255, 0.14);
    padding: 18px 24px 24px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; font-size: 0.9rem; }
}

@media (max-width: 720px) {
  .dest-grid, .web-grid, .words-grid { grid-template-columns: 1fr; }
  .journal-card { grid-template-columns: 1fr; }
  .journal-thumb { aspect-ratio: 16 / 10; border-right: none; border-bottom: 1px solid var(--panel-edge); }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-inner { padding-top: 100px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .js .mask-line { transform: none; }
  .js [data-hero] { opacity: 1; }
  .marquee-track { animation: none; }
}

/* ---------- Color boost pass: more blue, more orange, more white ---------- */
.hero-orb-a { background: radial-gradient(circle, rgba(46, 125, 255, 0.42), transparent 65%); }
.hero-orb-b { background: radial-gradient(circle, rgba(46, 125, 255, 0.22), transparent 62%); }
.hero-ring {
  background: conic-gradient(from 0deg, transparent 0 58%, rgba(111, 171, 255, 0.65) 70%, rgba(247, 151, 63, 0.8) 82%, transparent 93% 100%);
  opacity: 0.9;
}

/* Amber-family chapters wear the warm accent */
#renewed .chapter-label, #book .chapter-label, #gift .chapter-label, #newsletter .chapter-label,
#marketplace .chapter-label { color: var(--amber-bright); }
#renewed .chapter-num, #book .chapter-num, #gift .chapter-num, #newsletter .chapter-num,
#marketplace .chapter-num { -webkit-text-stroke-color: rgba(247, 151, 63, 0.6); }

.dest-arrow { color: var(--amber-bright); }
.dest-card:hover .dest-arrow { text-shadow: 0 0 12px rgba(247, 151, 63, 0.6); }

.quicklink:hover {
  color: var(--amber-bright);
  border-color: rgba(247, 151, 63, 0.55);
  background: rgba(224, 129, 47, 0.08);
  box-shadow: 0 0 18px rgba(224, 129, 47, 0.25);
}

.pull-quote-attr { color: var(--amber-bright); }
.pull-quote-mark { color: rgba(224, 129, 47, 0.28); text-shadow: 0 0 60px rgba(224, 129, 47, 0.45); }

.web-badge { color: var(--amber-bright); border-color: rgba(247, 151, 63, 0.45); }
.footer-mail { color: var(--amber-bright); border-bottom-color: rgba(247, 151, 63, 0.4); }
.footer-mail:hover { color: var(--white); border-color: var(--white); }
.footer-col a:hover { color: var(--amber-bright); }

.vault-stat-num {
  background: linear-gradient(160deg, #FFFFFF 15%, var(--blue-bright) 60%, var(--amber-bright) 105%);
  -webkit-background-clip: text;
  background-clip: text;
}

.marquee-run i { text-shadow: 0 0 14px rgba(247, 151, 63, 0.7); }

/* ---------- Cosmos layer (stars + nebulae, injected by stars.js) ---------- */
.cosmos {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.nebulae { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.nebula {
  position: absolute;
  border-radius: 50%;
}
.nebula-a {
  width: 72vw; height: 72vw;
  top: -28vw; left: -22vw;
  background: radial-gradient(circle, rgba(46, 125, 255, 0.22), transparent 62%);
  animation: nebula-drift-a 70s ease-in-out infinite alternate;
}
.nebula-b {
  width: 58vw; height: 58vw;
  top: 6vh; right: -26vw;
  background: radial-gradient(circle, rgba(94, 162, 255, 0.14), transparent 64%);
  animation: nebula-drift-b 90s ease-in-out infinite alternate;
}
.nebula-c {
  width: 66vw; height: 66vw;
  bottom: -32vw; left: 12vw;
  background: radial-gradient(circle, rgba(224, 129, 47, 0.12), transparent 62%);
  animation: nebula-drift-c 80s ease-in-out infinite alternate;
}
@keyframes nebula-drift-a { to { transform: translate(6vw, 4vh) scale(1.08); } }
@keyframes nebula-drift-b { to { transform: translate(-5vw, 6vh) scale(1.1); } }
@keyframes nebula-drift-c { to { transform: translate(4vw, -5vh) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .nebula { animation: none; } }
/* Mobile/touch: large-radius filter:blur() on elements sized to 46-72vw is a
   known heavy GPU compositing cost, especially on Safari/WebKit mobile.
   Hidden here to prevent multi-second render delay, matching the existing
   isMobile shadowBlur skip pattern in stars.js. Desktop visuals untouched. */
@media (max-width: 820px), (hover: none) and (pointer: coarse) {
  .nebula { display: none; }
}

/* ---------- The Digital Product Planet ---------- */
.hero-planet {
  position: absolute;
  left: 50%;
  bottom: -46vmin;
  width: 104vmin;
  height: 104vmin;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 12%, rgba(247, 151, 63, 0.22), transparent 34%),
    radial-gradient(circle at 50% 8%, #1B4396 0%, #0E2452 26%, #081430 52%, #04060C 78%);
  box-shadow:
    0 -40px 160px rgba(46, 125, 255, 0.5),
    0 -12px 70px rgba(111, 171, 255, 0.45),
    inset 0 44px 110px rgba(140, 190, 255, 0.35),
    inset 24px 20px 90px rgba(247, 151, 63, 0.14),
    inset 0 -80px 160px rgba(4, 6, 12, 0.95);
  will-change: transform;
}
.hero-planet::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, transparent 0 12%, rgba(191, 217, 255, 0.75) 22%, rgba(247, 151, 63, 0.5) 32%, transparent 44% 100%);
  mask-image: radial-gradient(circle, transparent 66%, #000 71%, #000 76%, transparent 82%);
  -webkit-mask-image: radial-gradient(circle, transparent 66%, #000 71%, #000 76%, transparent 82%);
  filter: blur(2px);
  animation: ring-spin 90s linear infinite reverse;
}
.hero-moon-orbit {
  position: absolute;
  left: 50%; top: 46%;
  width: min(78vmin, 760px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  animation: ring-spin 46s linear infinite;
  pointer-events: none;
}
.hero-moon {
  position: absolute;
  left: 50%; top: -5px;
  width: 10px; height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFF6E8 0%, var(--amber-bright) 55%, rgba(247, 151, 63, 0) 100%);
  box-shadow: 0 0 18px 5px rgba(247, 151, 63, 0.75), 0 0 46px 12px rgba(247, 151, 63, 0.3);
}

/* Hotter nebulae on the homepage */
.nebula-a { background: radial-gradient(circle, rgba(46, 125, 255, 0.3), transparent 62%); }
.nebula-c { background: radial-gradient(circle, rgba(224, 129, 47, 0.17), transparent 62%); }
.nebula-d {
  position: absolute;
  width: 46vw; height: 46vw;
  top: 32vh; left: 30vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 171, 255, 0.13), transparent 60%);
  animation: nebula-drift-b 74s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}

/* ---------- Marquee brightness pass: filled, glowing product words ---------- */
.marquee { padding: 30px 0; }
.marquee-run {
  color: rgba(191, 217, 255, 0.34);
  -webkit-text-stroke: 1px rgba(160, 200, 255, 0.9);
  text-shadow: 0 0 26px rgba(94, 162, 255, 0.45), 0 0 60px rgba(46, 125, 255, 0.25);
}

/* ---------- Cursor comet (homepage hero) ---------- */
.cursor-comet {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 70;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
.cursor-comet.on { opacity: 1; }
.cursor-comet span {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(230, 242, 255, 0.9) 0%, rgba(94, 162, 255, 0.4) 40%, transparent 70%);
  will-change: transform;
}
.cursor-comet.hot span {
  background: radial-gradient(circle, rgba(255, 240, 220, 0.95) 0%, rgba(247, 151, 63, 0.5) 40%, transparent 70%);
}
@media (prefers-reduced-motion: reduce) { .cursor-comet { display: none; } }

/* ---------- Sound toggle (comet whoosh, off by default) ---------- */
.sound-toggle {
  position: absolute;
  right: clamp(20px, 4vw, 48px);
  bottom: 34px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
  background: rgba(13, 20, 36, 0.55);
  border: 1px solid rgba(94, 162, 255, 0.25);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: color 0.4s var(--ease-out), border-color 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out);
}
.sound-toggle:hover { color: var(--white); border-color: rgba(94, 162, 255, 0.6); }
.sound-toggle.on {
  color: var(--amber-bright);
  border-color: rgba(247, 151, 63, 0.6);
  box-shadow: 0 0 18px rgba(224, 129, 47, 0.35);
}

/* ---------- Distant ringed planet in the background sky ---------- */
.dist-planet {
  position: absolute;
  top: 13vh;
  right: 8vw;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #35599e 0%, #16294f 48%, #060D1F 82%);
  box-shadow:
    inset -14px -12px 26px rgba(4, 6, 12, 0.85),
    inset 6px 6px 18px rgba(160, 200, 255, 0.25),
    0 0 34px rgba(46, 125, 255, 0.35);
  animation: dist-planet-drift 110s ease-in-out infinite alternate;
}
.dist-planet-ring {
  position: absolute;
  left: 50%; top: 50%;
  width: 168%;
  height: 40%;
  transform: translate(-50%, -50%) rotate(-16deg);
  border-radius: 50%;
  border: 2px solid rgba(160, 200, 255, 0.28);
  border-bottom-color: rgba(247, 151, 63, 0.3);
  box-shadow: 0 0 12px rgba(160, 200, 255, 0.18);
}
@keyframes dist-planet-drift {
  to { transform: translate(-2.5vw, 3vh); }
}

/* ---------- Tiny stars-caught tally ---------- */
.star-counter {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 60;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  background: rgba(13, 20, 36, 0.55);
  border: 1px solid rgba(94, 162, 255, 0.22);
  border-radius: 999px;
  padding: 7px 15px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}
.star-counter b { color: var(--amber-bright); font-weight: 500; }
.star-counter.pop { animation: counter-pop 0.5s var(--ease-out); }
@keyframes counter-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); box-shadow: 0 0 18px rgba(247, 151, 63, 0.5); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .dist-planet { animation: none; }
  .star-counter.pop { animation: none; }
}

/* ---------- Constellation reward toast ---------- */
.constellation-toast {
  position: fixed;
  left: 50%; bottom: 70px;
  transform: translate(-50%, 24px);
  z-index: 80;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-bright);
  background: rgba(13, 20, 36, 0.85);
  border: 1px solid rgba(247, 151, 63, 0.5);
  border-radius: 999px;
  padding: 12px 26px;
  box-shadow: 0 0 30px rgba(224, 129, 47, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  pointer-events: none;
  white-space: nowrap;
}
.constellation-toast.show { opacity: 1; transform: translate(-50%, 0); }
.constellation-toast b { color: #FFD9AE; }

/* ---------- Distant planet: orbiting moon + synced glow ---------- */
.dist-planet { animation: dist-planet-drift 110s ease-in-out infinite alternate, dist-planet-glow 26s linear infinite; }
.dist-moon-orbit {
  position: absolute;
  left: 50%; top: 50%;
  width: 210%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  animation: dist-moon-spin 26s linear infinite;
  pointer-events: none;
}
.dist-moon {
  position: absolute;
  left: 50%; top: -4px;
  width: 9px; height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: radial-gradient(circle, #EAF2FF 0%, #8FB6F5 60%, rgba(143, 182, 245, 0) 100%);
  box-shadow: 0 0 12px 3px rgba(160, 200, 255, 0.7);
}
@keyframes dist-moon-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes dist-planet-glow {
  0%, 100% { box-shadow: inset -14px -12px 26px rgba(4, 6, 12, 0.85), inset 6px 6px 18px rgba(160, 200, 255, 0.25), 0 0 34px rgba(46, 125, 255, 0.35); }
  25% { box-shadow: inset -14px -12px 26px rgba(4, 6, 12, 0.7), inset 6px 6px 20px rgba(191, 217, 255, 0.45), 0 0 60px rgba(94, 162, 255, 0.6), 0 0 110px rgba(46, 125, 255, 0.3); }
  50% { box-shadow: inset -14px -12px 26px rgba(4, 6, 12, 0.85), inset 6px 6px 18px rgba(160, 200, 255, 0.25), 0 0 34px rgba(46, 125, 255, 0.35); }
}
@media (prefers-reduced-motion: reduce) { .dist-moon-orbit { animation: none; } }

/* ---------- Universe Tour rail ---------- */
.tour-rail {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.tour-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(94, 162, 255, 0.45);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.tour-dot:hover { transform: scale(1.5); border-color: var(--blue-bright); }
.tour-dot.active {
  background: var(--amber-bright);
  border-color: var(--amber-bright);
  box-shadow: 0 0 12px rgba(247, 151, 63, 0.8);
  transform: scale(1.35);
}
.tour-label {
  position: absolute;
  right: 22px;
  top: -8px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--amber-bright);
  writing-mode: vertical-rl;
  opacity: 0.85;
  pointer-events: none;
}
@media (max-width: 900px) { .tour-rail { display: none; } }

/* ---------- Homepage arcade (TLCC Cosmic Shooter, styles in cosmic-shooter.css) ---------- */
.chapter-arcade { padding-top: clamp(56px, 8vw, 96px); }
.chapter-arcade .arcade-head { text-align: center; margin: 0 auto clamp(28px, 4vw, 44px); }
.chapter-arcade .arcade-head .chapter-intro { margin-left: auto; margin-right: auto; margin-bottom: 0; }
.chapter-arcade .arcade-more { text-align: center; margin: clamp(22px, 3vw, 32px) 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chapter-arcade .arcade-library { text-align: center; margin: clamp(22px, 3vw, 32px) auto 0; }

/* Perf: browser skips layout/paint of off-screen chapters */
.chapter { content-visibility: auto; contain-intrinsic-size: auto 760px; }
