/* Biblion — horizon nocturne, parcours éditorial et bêta. */

.canopy-theme {
  --ink: #070a14;
  --night: #0a1122;
  --slate: #14203c;
  --ivory: #f5f5f0;
  --amber: #e9b94f;
  --amber-deep: #c9892f;
  --border: rgba(245, 245, 240, 0.18);
  --border-accent: rgba(233, 185, 79, 0.42);
  --accent: var(--amber);
  --accent-soft: rgba(233, 185, 79, 0.11);
  --bg-base: var(--ink);
  --bg-surface: var(--night);
  --bg-raised: var(--slate);
  --bg-glass: rgba(7, 10, 20, 0.94);
  --text-primary: var(--ivory);
  --text-muted: rgba(245, 245, 240, 0.72);
  --text-dim: rgba(245, 245, 240, 0.48);
  color: var(--ivory);
  background: var(--ink);
}

.canopy-theme .wrap { overflow: hidden; overflow: clip; background: var(--ink); }
.canopy-theme .wrap::before {
  content: "";
  position: fixed;
  z-index: 70;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background: url("/assets/img/grain.webp") repeat;
  background-size: 420px;
  mix-blend-mode: screen;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 500;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: var(--amber);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }

/* La navigation apparaît lorsque l'on quitte le hero, comme sur la référence. */
.canopy-theme .navbar {
  color: var(--ivory);
  padding: 15px 0;
  opacity: 1;
  pointer-events: auto;
  background: transparent;
  border-bottom: 1px solid transparent;
  transform: translateY(0);
  transition: opacity 240ms ease, transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.canopy-theme .navbar.scrolled {
  padding: 11px 0;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  background: rgba(7,10,20,.66);
  border-bottom-color: rgba(245,245,240,.07);
  box-shadow: 0 8px 32px rgba(7,10,20,.12);
  backdrop-filter: blur(13px) saturate(1.08);
  -webkit-backdrop-filter: blur(13px) saturate(1.08);
}
.canopy-theme .navbar-inner {
  width: fit-content;
  max-width: calc(100% - 120px);
  margin-left: clamp(18px, 2.7vw, 52px);
  margin-right: auto;
  padding-inline: 0;
  justify-content: flex-start;
  gap: 0;
}
.canopy-theme .navbar-links { gap: 1px; }
.canopy-theme .nav-link {
  padding: 6px 8px;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.canopy-theme .nav-link--accent { padding-inline: 12px; }
.canopy-theme .lang-selector { display: none !important; }
.canopy-theme .nav-link--subtle,
.canopy-theme .nav-hamburger { color: var(--ivory); }
.canopy-theme .nav-link { color: rgba(245,245,240,.66); text-shadow: 0 1px 12px rgba(7,10,20,.55); }
.canopy-theme .nav-link:hover { color: var(--ivory); background: transparent; }
.canopy-theme .nav-link--accent { color: var(--ink); background: var(--amber); }
.canopy-theme .nav-link--accent:hover { color: var(--ink); background: #f0ca72; }
.canopy-theme .nav-hamburger span { background: var(--ivory); }
.canopy-theme .lang-btn { color: var(--ivory); border-color: rgba(245, 245, 240, 0.2); }
.canopy-theme .lang-btn { min-height: 30px; padding: 5px 8px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.canopy-theme .lang-dropdown { color: var(--ivory); background: var(--night); border-color: var(--border); }

/* Boutons inspirés de Marble : généreux, francs, sans ombre décorative. */
.marble-btn,
.canopy-theme .btn-accent {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: var(--amber);
  font: 700 14px/1 var(--font-ui);
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: transform 220ms ease, background 220ms ease;
}
.marble-btn:hover,
.canopy-theme .btn-accent:hover { color: var(--ink); background: #f0ca72; transform: translateY(-2px); }
.marble-btn:active,
.canopy-theme .btn-accent:active { transform: translateY(1px) scale(0.985); }
.marble-btn:focus-visible,
.canopy-theme .btn-accent:focus-visible { outline: 3px solid var(--ivory); outline-offset: 4px; }
.marble-btn--large { min-width: 260px; min-height: 68px; font-size: 16px; }

/* Hero */
.hero--lighthouse {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
  background: var(--night);
}
.hero-world,
.hero-world__image,
.hero-world__veil,
.hero-water,
.hero-water__shimmer,
.hero-beam {
  position: absolute;
  inset: 0;
}
.hero-world { z-index: 0; overflow: hidden; }
.hero-world__image {
  width: 104%;
  max-width: none;
  height: 104%;
  object-fit: cover;
  object-position: center;
  transform: translate3d(var(--scene-x, 0px), var(--scene-y, 0px), 0) scale(var(--scene-scale, 1.02));
  transform-origin: 55% 52%;
  will-change: transform;
}
.hero-water {
  z-index: 2;
  top: auto;
  height: 41%;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 14%, #000 34%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 14%, #000 34%);
}
.hero-water__surface {
  position: absolute;
  inset: -10% -5%;
  background: url("/assets/img/hero-lighthouse-v6.webp") center bottom / cover no-repeat;
  animation: water-drift 4.6s cubic-bezier(.45,.05,.55,.95) infinite alternate;
  will-change: transform, filter;
}
@keyframes water-drift {
  0% { transform: translate3d(-1.35%, 5px, 0) scale(1.025, 1.045); filter: brightness(.93) saturate(1.02); }
  48% { transform: translate3d(.2%, -4px, 0) scale(1.04, 1.015); filter: brightness(1.08) saturate(1.1); }
  100% { transform: translate3d(1.25%, -6px, 0) scale(1.045, 1.018); filter: brightness(1.1) saturate(1.12); }
}
.hero-water::after {
  content: "";
  position: absolute;
  inset: 24% -15% 0;
  opacity: .46;
  background: repeating-linear-gradient(173deg, transparent 0 16px, rgba(233,185,79,.09) 17px, rgba(245,245,240,.14) 18px, transparent 20px 37px);
  mix-blend-mode: screen;
  filter: blur(.4px);
  animation: water-lines 3.4s linear infinite;
  will-change: transform;
}
@keyframes water-lines {
  from { transform: translate3d(-3%, 2px, 0) skewX(-4deg); }
  to { transform: translate3d(3%, -5px, 0) skewX(3deg); }
}
.hero-water__shimmer {
  z-index: 3;
  top: auto;
  height: 38%;
  opacity: 0.46;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 67% 15%, rgba(233,185,79,.34), transparent 8%),
    repeating-linear-gradient(176deg, transparent 0 14px, rgba(245,245,240,.12) 15px, transparent 17px);
  background-size: 100% 100%, 125% 130%;
  mix-blend-mode: screen;
  animation: water-shimmer 5.5s linear infinite;
}
@keyframes water-shimmer {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 4px, 80px 28px; }
}
.hero-beam {
  z-index: 4;
  opacity: var(--scene-light, 0.32);
  pointer-events: none;
  background: radial-gradient(circle at 67% 23%, rgba(255, 221, 148, 0.26), transparent 9%);
  mix-blend-mode: screen;
  animation: beam-breathe 4.8s ease-in-out infinite alternate;
}
@keyframes beam-breathe { to { opacity: 0.62; } }
.hero-world__veil {
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7,10,20,.12) 0%, transparent 46%, rgba(7,10,20,.2) 73%, rgba(7,10,20,.72) 100%),
    linear-gradient(90deg, rgba(7,10,20,.08), transparent 30%, transparent 76%, rgba(7,10,20,.08));
}
.hero-brand {
  position: absolute;
  z-index: 2;
  top: clamp(18px, 2.2vh, 32px);
  left: 50%;
  width: 100%;
  color: var(--ivory);
  font-family: var(--font-serif);
  font-size: clamp(7.5rem, 19.4vw, 18rem);
  font-weight: 600;
  line-height: 0.78;
  letter-spacing: -0.07em;
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%);
  text-shadow: 0 2px 30px rgba(7, 10, 20, 0.12);
  pointer-events: none;
}
.hero-mark {
  position: absolute;
  z-index: 120;
  top: 14px;
  right: clamp(18px, 3vw, 56px);
  width: 42px;
  height: 42px;
  opacity: .94;
  background:
    linear-gradient(45deg, transparent 45%, #d4a843 46% 54%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, #d4a843 46% 54%, transparent 55%),
    linear-gradient(90deg, transparent 45%, #f2d584 46% 54%, transparent 55%),
    linear-gradient(0deg, transparent 45%, #d4a843 46% 54%, transparent 55%),
    rgba(212,168,67,.12);
  border: 1px solid rgba(242,213,132,.32);
  border-radius: 50%;
  filter: drop-shadow(0 3px 14px rgba(7,10,20,.42));
  transition: opacity 180ms ease, transform 220ms ease;
}
.hero-mark:hover { opacity: 1; transform: rotate(8deg) scale(1.04); }
.hero-mark svg { display: none; }
.canopy-theme .navbar.scrolled .hero-mark { opacity: 0; pointer-events: none; transform: translateY(-8px) scale(.92); }
.hero-conversion {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: clamp(42px, 7vh, 76px);
  width: min(820px, 86vw);
  text-align: center;
  transform: translateX(-50%);
}
.hero-promise {
  max-width: 800px;
  margin: 0 auto 24px;
  color: var(--ivory);
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.25vw, 2rem);
  line-height: 1.25;
  text-shadow: 0 2px 20px rgba(7,10,20,.75);
  text-wrap: balance;
}
.hero-beta-open { min-width: 230px; min-height: 58px; }
.hero-beta-note {
  margin: 15px 0 0;
  color: rgba(245, 245, 240, 0.63);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 12px var(--ink);
}
.canopy-theme .scroll-cue {
  z-index: 9;
  bottom: 18px;
  color: rgba(245, 245, 240, 0.7);
  animation-delay: 0.8s;
}
.canopy-theme .scroll-cue:hover { color: var(--amber); }

/* Transition : même teinte que l'eau profonde. */
.ink-transition {
  min-height: 96vh;
  min-height: 96svh;
  display: grid;
  place-items: center;
  padding: 130px 0 160px;
  color: var(--ivory);
  background:
    radial-gradient(circle at 50% 0%, rgba(20,32,60,.7), transparent 44%),
    var(--ink);
}
.ink-transition__inner { text-align: center; }
.ink-transition h2 {
  max-width: 12ch;
  margin: 0 auto 48px;
  color: var(--ivory);
  font-family: var(--font-serif);
  font-size: clamp(4.8rem, 10vw, 10rem);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.06em;
  text-wrap: balance;
}
.ink-transition h2 em { color: var(--amber); font-weight: 430; }
.ink-transition p {
  max-width: 58ch;
  margin: 0 auto;
  color: rgba(245,245,240,.72);
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  line-height: 1.7;
}

/* Parcours vertical : fond parchemin, tracé animé et contenus à droite. */
.story-section {
  position: relative;
  padding: 140px 0 170px;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 14%, rgba(233,185,79,.1), transparent 19%),
    var(--ivory);
  overflow: hidden;
}
.anchor-target { position: absolute; top: 0; }
.story-inner {
  position: relative;
  z-index: 2;
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}
.story-title {
  margin: 0 auto 190px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(5.5rem, 10.5vw, 10.8rem);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.062em;
  text-align: center;
}
.story-title em { color: var(--amber-deep); font-weight: 430; }
.story-path {
  position: absolute;
  z-index: 1;
  top: 460px;
  bottom: 130px;
  left: max(2vw, calc(50% - 640px));
  width: 250px;
  height: calc(100% - 590px);
  overflow: visible;
}
.story-path path { fill: none; vector-effect: non-scaling-stroke; }
.story-path__base { stroke: rgba(20, 32, 60, 0.13); stroke-width: 54; }
.story-path__progress { stroke: var(--amber); stroke-width: 54; stroke-linecap: round; }
.story-path__orb circle:first-child { fill: var(--ivory); stroke: var(--amber-deep); stroke-width: 4; }
.story-path__orb circle:last-child { fill: var(--amber); }
.story-steps {
  width: min(650px, 63%);
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.story-step {
  min-height: 650px;
  margin: 0 0 92px;
  opacity: 0.42;
  transform: translateY(24px);
  transition: opacity 480ms ease, transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.story-step:last-child { margin-bottom: 0; }
.story-step.is-active { opacity: 1; transform: translateY(0); }
.story-step__copy { max-width: 610px; margin-bottom: 34px; }
.story-step__number {
  display: block;
  margin-bottom: 10px;
  color: var(--amber-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.story-step h3 {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3.3rem);
  font-weight: 560;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.story-step p {
  max-width: 58ch;
  margin: 0;
  color: rgba(7,10,20,.66);
  font-size: 16px;
  line-height: 1.7;
}
.story-demo {
  position: relative;
  width: min(100%, 540px);
  padding: 9px;
  overflow: hidden;
  border: 1px solid rgba(20,32,60,.12);
  border-radius: 28px;
  background: rgba(255,255,255,.5);
  box-shadow: 0 28px 70px rgba(20,32,60,.13);
}
.story-demo::after {
  content: "";
  position: absolute;
  inset: 9px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 19px;
}
.story-demo video {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  border-radius: 19px;
  background: var(--night);
}
.story-demo--nebula {
  width: min(680px, calc(100vw - 410px));
  margin-left: -70px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: 0 34px 90px rgba(20,32,60,.2);
}
.story-demo--nebula::after {
  inset: 0;
  border-color: rgba(245,245,240,.15);
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(7,10,20,.3);
}
.story-nebula {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background: var(--ink);
  isolation: isolate;
}
.story-nebula__fallback,
.story-nebula canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.story-nebula__fallback { z-index: 0; object-fit: cover; opacity: .72; }
.story-nebula canvas { z-index: 1; cursor: grab; touch-action: none; }
.story-nebula canvas:active { cursor: grabbing; }
.story-nebula__hint {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 12px;
  padding: 7px 11px;
  color: rgba(245,245,240,.74);
  background: rgba(7,10,20,.7);
  border: 1px solid rgba(245,245,240,.14);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .04em;
  pointer-events: none;
  backdrop-filter: blur(7px);
}

/* Rejoindre / télécharger */
.pioneers {
  position: relative;
  min-height: 1180px;
  padding: 150px 0 120px;
  color: var(--ivory);
  background:
    radial-gradient(circle at 50% 12%, rgba(32,50,88,.88), transparent 42%),
    #0d1629;
  overflow: hidden;
}
.pioneers__inner { text-align: center; }
.pioneers h2 {
  max-width: 13ch;
  margin: 0 auto 58px;
  color: var(--ivory);
  font-family: var(--font-serif);
  font-size: clamp(5rem, 9.5vw, 9.8rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.06em;
}
.pioneers h2 em { color: var(--amber); font-weight: 430; }
.pioneers__lead {
  max-width: 62ch;
  margin: 0 auto 76px;
  color: rgba(245,245,240,.76);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.75;
}
.pioneers__benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 7vw, 100px);
  margin-bottom: 70px;
}
.pioneer-benefit { text-align: center; }
.pioneer-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  margin: 0 auto 28px;
  color: var(--ivory);
  border: 4px solid rgba(245,245,240,.45);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 36px;
}
.pioneer-icon--pulse { animation: icon-pulse 2.3s ease-in-out infinite; }
.pioneer-icon--orbit { animation: icon-orbit 6s linear infinite; }
.pioneer-icon--float { animation: icon-float 3s ease-in-out infinite; }
@keyframes icon-pulse { 50% { transform: scale(1.07); border-color: var(--amber); } }
@keyframes icon-orbit { to { transform: rotate(360deg); } }
@keyframes icon-float { 50% { transform: translateY(-8px) rotate(6deg); } }
.pioneer-benefit h3 {
  margin: 0 0 16px;
  color: var(--ivory);
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 520;
}
.pioneer-benefit p {
  max-width: 32ch;
  margin: 0 auto;
  color: rgba(245,245,240,.66);
  font-size: 15px;
  line-height: 1.65;
}
.download-callout {
  width: min(900px, 100%);
  margin: 96px auto 0;
  padding-top: 66px;
  border-top: 1px solid rgba(245,245,240,.14);
  text-align: center;
}
.download-callout__icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  place-items: center;
  color: var(--amber);
  background: rgba(233,185,79,.08);
  border: 1px solid rgba(233,185,79,.36);
  border-radius: 50%;
  animation: download-pulse 2.8s ease-in-out infinite;
}
.download-callout__icon svg { width: 30px; }
@keyframes download-pulse {
  0%,100% { transform: translateY(0); box-shadow: 0 0 0 0 rgba(233,185,79,.08); }
  50% { transform: translateY(5px); box-shadow: 0 0 0 12px rgba(233,185,79,0); }
}
.download-callout h3 {
  margin: 0 0 14px;
  color: var(--ivory);
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.045em;
}
.download-callout > p { margin: 0 auto 34px; color: rgba(245,245,240,.58); font-size: 17px; }
.download-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.download-button {
  display: inline-flex;
  min-width: 250px;
  min-height: 68px;
  padding: 12px 24px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--ivory);
  border: 1px solid rgba(245,245,240,.22);
  border-radius: 13px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.download-button:hover { transform: translateY(-3px); border-color: rgba(245,245,240,.52); background: rgba(245,245,240,.05); }
.download-button--primary { color: var(--ink); background: var(--ivory); border-color: var(--ivory); }
.download-button--primary:hover { background: #fffdf5; border-color: #fffdf5; }
.download-button .windows-icon { width: 24px; flex: 0 0 auto; }
.download-button span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.download-button small { margin-bottom: 4px; opacity: .58; font-size: 10px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
.download-button strong { font-size: 17px; font-weight: 700; }
.pioneers__horizon {
  position: relative;
  width: 100vw;
  height: 150px;
  margin: 78px 0 -28px;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}
.pioneers__horizon svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pioneers__horizon-line {
  fill: none;
  stroke: rgba(233,185,79,.38);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  animation: horizon-breathe 6s ease-in-out infinite alternate;
}
.pioneers__horizon-line--soft { stroke: rgba(245,245,240,.12); animation-delay: -3s; }
.pioneers__horizon-marks { fill: var(--amber); stroke: rgba(245,245,240,.48); stroke-width: 1.4; animation: horizon-drift 7s ease-in-out infinite alternate; }
@keyframes horizon-breathe { from { opacity: .38; } to { opacity: .92; } }
@keyframes horizon-drift { from { transform: translate3d(-4px,2px,0); } to { transform: translate3d(5px,-3px,0); } }

/* Éléments fonctionnels conservés. */
.canopy-theme .auth-modal-overlay { background: rgba(3,6,16,.82); }
.canopy-theme .auth-modal {
  width: min(560px, calc(100% - 32px));
  max-width: 560px;
  max-height: calc(100vh - 24px);
  max-height: calc(100svh - 24px);
  overflow-y: auto;
  padding: 26px 48px 28px;
  color: var(--ivory);
  background: var(--night);
  border-color: rgba(233,185,79,.28);
  box-shadow: 0 34px 120px rgba(0,0,0,.65), 0 0 0 1px rgba(245,245,240,.025) inset;
}
.auth-modal-mark {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  place-items: center;
  color: var(--ink);
  background: var(--amber);
  border-radius: 50%;
  font-size: 24px;
}
.canopy-theme .auth-modal-title {
  margin: 0 0 8px;
  color: var(--ivory);
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 5vw, 3.15rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.04em;
  text-align: center;
}
.canopy-theme .auth-modal-sub { margin: 0 0 18px; color: rgba(245,245,240,.58); text-align: center; }
.canopy-theme .auth-modal .field { margin-bottom: 10px; }
.canopy-theme .auth-modal label { color: rgba(245,245,240,.72); }
.canopy-theme .auth-modal input { color: var(--ivory); background: var(--ink); border-color: var(--border); }
.canopy-theme .auth-modal input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(233,185,79,.1); }
.password-requirements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 14px;
  margin: 0 0 13px;
  padding: 0;
  list-style: none;
  color: rgba(245,245,240,.46);
  font-size: 11px;
}
.password-requirements li::before { content: "○"; margin-right: 7px; color: rgba(245,245,240,.35); }
.password-requirements li.met { color: #9fd6bf; }
.password-requirements li.met::before { content: "✓"; color: #9fd6bf; }
.canopy-theme .auth-modal-submit { min-height: 56px; color: var(--ink); background: var(--amber); border-radius: 999px; }
.canopy-theme .auth-modal-submit:hover { background: #f0c765; }
.canopy-theme .auth-modal [hidden] { display: none !important; }
.canopy-theme .auth-modal-close {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
}
.canopy-theme .auth-modal-switch a {
  display: inline-block;
  margin: -6px -2px;
  padding: 6px 2px;
}
.canopy-theme .section,
.canopy-theme .plate-band,
.canopy-theme .journey { background-color: var(--night); }
.canopy-theme .session-warning { color: var(--ivory); background: var(--night); border-color: var(--border); }
.canopy-theme .sticky-cta { background: rgba(7,10,20,.94); border-top-color: var(--border); }
.canopy-theme .footer {
  color: var(--ivory);
  background: #04060c;
  border-top-color: rgba(233,185,79,.22);
  box-shadow: 0 -28px 70px rgba(4,6,12,.28);
}
.canopy-theme .footer-link,
.canopy-theme .footer-tagline,
.canopy-theme .footer-copy { color: rgba(245,245,240,.5); }

@media (max-width: 980px) {
  .hero-brand { font-size: clamp(6.8rem, 19vw, 12rem); top: 28px; }
  .hero-conversion { left: 50%; width: min(760px, 90vw); }
  .story-path { left: 0; width: 200px; }
  .story-steps { width: 68%; }
}

@media (max-width: 768px) {
  .canopy-theme .navbar-inner { width: auto; max-width: none; margin-left: 12px; }
  .canopy-theme .nav-hamburger { width: 34px; height: 34px; padding: 6px; }
  .canopy-theme .lang-selector { display: block !important; }
  .canopy-theme .navbar-links { background: rgba(7,10,20,.98); border-bottom-color: var(--border); }
  .hero--lighthouse { min-height: 100vh; min-height: 100svh; }
  .hero-world__image { width: 118%; height: 100%; object-position: 57% center; }
  .hero-water { height: 31%; }
  .hero-water__surface {
    inset: -8% -8%;
    background:
      radial-gradient(ellipse at 64% 28%, rgba(233,185,79,.18), transparent 22%),
      repeating-linear-gradient(176deg, rgba(245,245,240,.035) 0 1px, transparent 2px 16px),
      linear-gradient(180deg, rgba(11,26,52,.12), rgba(4,12,28,.72));
  }
  .hero-brand { top: 70px; font-size: clamp(5rem, 23vw, 7.4rem); letter-spacing: -0.065em; }
  .hero-mark { top: 12px; right: 14px; width: 36px; height: 36px; }
  .hero-conversion { left: 50%; bottom: 54px; width: calc(100% - 32px); }
  .hero-promise { max-width: 30ch; font-size: 1.3rem; }
  .hero-beta-open { min-height: 52px; }
  .hero-beta-note { max-width: 34ch; margin-inline: auto; }
  .canopy-theme .scroll-cue { display: none; }
  .ink-transition { min-height: 82vh; min-height: 82svh; padding: 110px 0 130px; }
  .ink-transition h2 { font-size: clamp(4rem, 18vw, 6.2rem); margin-bottom: 36px; }
  .ink-transition p { max-width: 34ch; }
  .story-section { padding: 100px 0 120px; }
  .story-inner { width: calc(100% - 32px); }
  .story-title { margin-bottom: 120px; font-size: clamp(4rem, 18vw, 6rem); }
  .story-path { top: 360px; bottom: 90px; left: -12px; width: 86px; height: calc(100% - 450px); }
  .story-path__base,
  .story-path__progress { stroke-width: 38; }
  .story-steps { width: auto; margin-left: 52px; }
  .story-step { min-height: 0; margin-bottom: 112px; opacity: .5; }
  .story-step__copy { margin-bottom: 26px; }
  .story-step h3 { font-size: 2.4rem; }
  .story-step p { font-size: 15px; }
  .story-demo { width: 100%; padding: 6px; border-radius: 18px; }
  .story-demo video { border-radius: 13px; }
  .story-demo::after { inset: 6px; border-radius: 13px; }
  .story-demo--nebula { width: 100%; margin-left: 0; padding: 0; border-radius: 18px; }
  .story-demo--nebula::after { inset: 0; border-radius: 18px; }
  .story-nebula { border-radius: 18px; }
  .pioneers { min-height: 0; padding: 110px 0 100px; }
  .pioneers h2 { font-size: clamp(4rem, 17vw, 6.2rem); margin-bottom: 42px; }
  .pioneers__lead { max-width: 34ch; margin-bottom: 60px; }
  .pioneers__benefits { grid-template-columns: 1fr; gap: 62px; }
  .pioneer-benefit p { max-width: 34ch; }
  .download-callout { margin-top: 74px; padding-top: 52px; }
  .download-callout > p { max-width: 30ch; }
  .download-actions { display: grid; }
  .download-button { width: 100%; min-width: 0; }
  .pioneers__horizon { height: 110px; margin-top: 58px; }
  .canopy-theme .auth-modal { padding: 34px 22px 28px; }
  .canopy-theme .auth-modal input { font-size: 16px; }
  .password-requirements { grid-template-columns: 1fr; }
  .canopy-theme .footer { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-world__image,
  .hero-water__surface { transform: none !important; }
  .hero-water__surface,
  .hero-water::after,
  .hero-water__shimmer,
  .hero-beam,
  .pioneer-icon,
  .pioneers__horizon-line,
  .pioneers__horizon-marks,
  .download-callout__icon { animation: none !important; }
  .story-step { opacity: 1; transform: none; }
  .story-path__orb { display: none; }
}
