/* ============================================================
   NOCTIS Recovery M.I — landing page
   Pixel-faithful build from the client Figma (desktop 1440 / mobile 390)
   ============================================================ */

@font-face {
  font-family: "Helvetica Neue Local";
  src: url("fonts/HelveticaNeue300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue Local";
  src: url("fonts/HelveticaNeue400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --bg:        #0B0A08;
  --bg-2:      #0D0C0A;
  --surface:   #131110;
  --surface-2: #17140F;
  --line:      #2A241D;
  --line-soft: rgba(201, 161, 95, 0.14);

  --gold:      #C9A15F;
  --gold-lite: #D7B86F;
  --gold-deep: #C99D5F;

  --cream:     #ECE4D6;
  --text-2:    #B9AE9E;
  --muted:     #8C8175;

  --radius:    12px;
  --radius-lg: 16px;
  --maxw:      1240px;
  --gutter:    clamp(20px, 5vw, 56px);

  --ff: "Helvetica Neue Local", "Helvetica Neue", Helvetica, "Archivo", Arial, sans-serif;

  /* sections stack, so adjacent gaps total ~2x this — tuned to the Figma's ~150-180px inter-section spacing */
  --rhythm: clamp(48px, 6vw, 88px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  /* Topographic contour texture washed into the base so it reads as a faint
     gold-thread relief behind content, not a picture. Hero video sits above it. */
  background:
    linear-gradient(180deg, rgba(11, 10, 8, 0.82), rgba(11, 10, 8, 0.92)),
    url("texture-topo.png") center center / cover no-repeat fixed,
    var(--bg);
  color: var(--cream);
  font-family: var(--ff);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.015em; }
em { font-style: italic; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold); color: #1a1206; padding: 10px 16px;
  border-radius: 0 0 8px 0; font-weight: 400;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--gold-lite);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- shared ---------- */
.section {
  padding-block: var(--rhythm);
  padding-inline: var(--gutter);
}
.section__head { max-width: var(--maxw); margin-inline: auto; }
.section__head--center { text-align: center; margin-bottom: clamp(48px, 6vw, 80px); }

.h2 {
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.06;
  color: var(--cream);
}
.h2 em { color: var(--gold-lite); }
.h2--sm { font-size: clamp(26px, 3.4vw, 38px); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(19, 17, 16, 0.72);
  color: var(--cream);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.chip__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(201, 161, 95, 0.8);
}

.rule {
  display: block;
  width: 118px; height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(201,161,95,0));
}

/* icons */
.ico {
  width: 20px; height: 20px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- buttons ---------- */
.btn {
  --pad-y: 15px; --pad-x: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .35s var(--ease), background .3s var(--ease),
              border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn .arw { transition: transform .35s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

.btn--gold {
  background: linear-gradient(180deg, var(--gold-lite), var(--gold-deep));
  color: #1c1305;
  border: 1px solid rgba(215, 184, 111, 0.6);
  box-shadow: 0 8px 30px -12px rgba(201, 161, 95, 0.7);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -14px rgba(201,161,95,0.85); }

.btn--outline {
  background: transparent;
  color: var(--gold-lite);
  border: 1px solid var(--gold);
}
.btn--outline:hover { background: rgba(201, 161, 95, 0.09); border-color: var(--gold-lite); }

.btn--block { display: flex; width: 100%; justify-content: center; }

/* ============================================================
   1. NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  /* No backdrop-filter: Chromium paints the whole page black with it under page zoom.
     Fully opaque, not 0.92 — at 0.92 section headings ghost through the bar as you
     scroll past them, which reads as a rendering fault rather than a design choice. */
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-scrolled { background: var(--bg); box-shadow: 0 10px 30px -22px rgba(0, 0, 0, 0.9); }

/* Anchor targets must clear the sticky bar, or #how / #intelligence land underneath it */
[id] { scroll-margin-top: 92px; }
.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand img { width: 40px; height: 40px; opacity: .95; }
.nav__links {
  display: flex;
  gap: clamp(24px, 3vw, 44px);
  margin-inline: auto;
}
.nav__links a {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: .85;
  transition: opacity .25s, color .25s;
}
.nav__links a:hover { opacity: 1; color: var(--gold-lite); }
.nav__cta { --pad-y: 12px; --pad-x: 20px; }

.nav__toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
}

/* ============================================================
   MOBILE MENU (§8)
   ============================================================ */
.menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(8, 7, 6, 0.98);
  padding: 16px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; transform: none; }
.menu__top {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 8px 28px;
}
.menu__close {
  width: 44px; height: 44px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  background: transparent; color: var(--gold);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  padding: 22px 4px;
  border-top: 1px solid var(--line);
  font-size: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
}
.menu__nav a:last-child { border-bottom: 1px solid var(--line); }
.menu__cta { margin-top: 32px; justify-content: center; }

/* ============================================================
   2. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: min(94vh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(80px, 12vh, 140px) var(--gutter) clamp(28px, 5vh, 56px);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__video {
  /* keep the footage at its natural 2028:1440 proportions on wide screens:
     height-fit, anchored center-right, edges faded into the page background
     instead of cover-zooming into the face */
  position: absolute; top: 0; height: 100%;
  left: 56%; transform: translateX(-50%);
  width: auto; min-width: 100%;
  object-fit: cover;
  object-position: center 22%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
}
/* footage is already dark around the face — only a light wash for copy legibility */
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,10,8,0.62) 0%, rgba(11,10,8,0.30) 36%, rgba(11,10,8,0) 60%),
    linear-gradient(180deg, rgba(11,10,8,0.30) 0%, rgba(11,10,8,0) 26%, rgba(11,10,8,0.55) 100%);
}

/* viewfinder brackets are baked into the hero footage — no CSS overlay */

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin-inline: auto;
  width: 100%;
}
.hero__title {
  margin: 24px 0 0;
  font-size: clamp(52px, 9.5vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.hero__title .line { display: block; }
.hero__title .line--accent em { color: var(--gold-lite); font-style: italic; }
.hero__content .rule { margin: 30px 0 26px; }
.hero__lede {
  margin: 0 0 36px;
  max-width: 44ch;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--cream);
  line-height: 1.5;
}
.hero__cta { --pad-y: 17px; --pad-x: 30px; font-size: 13.5px; }

.hero__proof {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: clamp(48px, 8vh, 96px) auto 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__proof li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 12, 10, 0.82);
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-2);
}
.hero__proof .ico { width: 18px; height: 18px; }
.hero__proof .ico .s { stroke: var(--gold); }

/* ============================================================
   3. HOW IT WORKS
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.how__grid {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  padding: 30px 28px 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.step:hover { border-color: var(--line-soft); transform: translateY(-3px); }
.step__top { display: flex; align-items: flex-start; justify-content: space-between; }
.step__num {
  font-size: 14px; letter-spacing: 0.1em;
  color: var(--gold); font-weight: 400;
}
.step__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: var(--gold);
}
.step__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.step__title {
  font-size: 18px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--cream);
}
.step__body { margin: 0; font-size: 14.5px; color: var(--text-2); line-height: 1.5; }

/* ============================================================
   4. REPORT + PRIVACY
   ============================================================ */
.duo__grid {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 22px;
  align-items: stretch;
}
.report { padding: clamp(26px, 3vw, 38px); display: flex; flex-direction: column; }
.report__head { text-align: center; }
.report__head .h2 { margin-bottom: 14px; }
.report__sub {
  margin: 0 auto;
  max-width: 46ch;
  color: var(--text-2);
  font-size: 15px;
}
.report__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 30px 0;
  align-items: stretch;
}
.score {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  aspect-ratio: 1 / 1;
}
.score img,
.score__video { width: 100%; height: 100%; object-fit: cover; object-position: 40% center; opacity: .96; }
.score__overlay {
  position: absolute;
  left: 22px; bottom: 20px;
  display: flex; flex-direction: column;
}
.score__value {
  font-size: clamp(40px, 6vw, 58px);
  font-weight: 700;
  line-height: 1;
  color: var(--cream);
  letter-spacing: -0.02em;
}
.score__max { font-size: 0.42em; color: var(--muted); font-weight: 400; }
.score__label {
  margin-top: 6px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-lite);
}
.score__chip {
  position: absolute;
  top: 16px; left: 16px;
  padding: 6px 12px;
  border: 1px solid rgba(236, 228, 214, 0.35);
  border-radius: 999px;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream);
  background: rgba(0,0,0,0.35);
}
.metrics { display: flex; flex-direction: column; justify-content: center; }
.metrics__list { display: flex; flex-direction: column; }
.metrics__list li {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--cream);
}
.metrics__list li:first-child { border-top: 1px solid var(--line); }
.ico--lock { width: 17px; height: 17px; opacity: .8; }
.metrics__note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

.privacy {
  padding: clamp(26px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.privacy__title { margin-bottom: 26px; }
.privacy__shield {
  display: inline-flex; align-items: center; justify-content: center;
  width: 76px; height: 76px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: radial-gradient(circle at 50% 40%, rgba(201,161,95,0.14), transparent 70%);
  margin-bottom: 24px;
}
.privacy__shield svg { width: 40px; height: 40px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.privacy__shield .chk { stroke: var(--gold-lite); stroke-width: 1.8; }
.privacy__lead {
  margin: 0 0 14px;
  font-size: 20px; font-weight: 400;
  color: var(--cream);
}
.privacy__body {
  margin: 0 0 auto;
  max-width: 40ch;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.55;
}
.privacy__tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin-top: 34px;
}
.privacy__tiles li {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-2);
}

/* ============================================================
   5. NOCTIS INTELLIGENCE
   ============================================================ */
.intelligence__grid {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.intelligence__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000 center/cover no-repeat;
  aspect-ratio: 2028 / 1440;
}
.intelligence__video { width: 100%; height: 100%; object-fit: cover; }
.intelligence__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.intelligence__copy .chip { margin: 0; }
.intelligence__copy .h2 { margin: 0; }
.intelligence__body { margin: 0; max-width: 42ch; color: var(--text-2); font-size: 16px; }
.feature-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
}
.feature-row li {
  flex: 1;
  display: flex; flex-direction: column; gap: 12px;
  padding: 4px 20px;
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-2);
}
.feature-row li + li { border-left: 1px solid var(--line); }
.feature-row li:first-child { padding-left: 0; }
.feature-row .ico { width: 22px; height: 22px; }

/* ============================================================
   6. FINAL CTA
   ============================================================ */
.final {
  position: relative;
  background:
    radial-gradient(ellipse 60% 80% at 50% 40%, rgba(201,161,95,0.07), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 2px, transparent 2px 9px),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.final__inner {
  max-width: 680px; margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; gap: 26px;
}
.final__sub { margin: 0; max-width: 42ch; color: var(--text-2); font-size: 16.5px; }
.final .btn--gold { --pad-y: 17px; --pad-x: 32px; }
.final__assure {
  margin: 6px 0 0;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.final__assure span { color: var(--gold); margin: 0 4px; }

/* ============================================================
   7. FOOTER
   ============================================================ */
.footer {
  padding: clamp(48px, 6vw, 72px) var(--gutter) 40px;
  border-top: 1px solid var(--line);
}
.footer__inner {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.footer__brand img { width: 56px; height: 56px; opacity: .95; }
.footer__links { display: flex; gap: 28px; }
.footer__links a {
  font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cream); opacity: .85; transition: color .25s, opacity .25s;
}
.footer__links a:hover { color: var(--gold-lite); opacity: 1; }
.footer__legal {
  max-width: var(--maxw); margin: 40px auto 0;
  text-align: right;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
/* Content is visible by DEFAULT — hiding is opt-in via html.js, which the head
   script adds and then removes again if script.js never confirms it booted. A
   missing or broken script can no longer leave the page as a blank black column.
   no will-change: promoting five viewport-sized sections to GPU layers exhausts
   raster memory on some machines and paints them black. */
[data-reveal] {
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }
html.js .hero[data-reveal] { opacity: 1; transform: none; } /* hero visible immediately */

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .how__grid { grid-template-columns: repeat(2, 1fr); }
  .duo__grid { grid-template-columns: 1fr; }
  .intelligence__grid { grid-template-columns: 1fr; gap: 40px; }
  .intelligence__copy { align-items: flex-start; }
}

@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__inner { padding-block: 14px; }

  .hero { min-height: 88vh; }
  .hero__title { font-size: clamp(44px, 13vw, 60px); }
  .hero__lede br { display: none; }
  .hero__proof { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero__proof li { width: 100%; }

  .how__grid { grid-template-columns: 1fr; }

  .report__body { grid-template-columns: 1fr; }
  .score { max-width: 340px; margin-inline: auto; }

  .feature-row { flex-direction: column; gap: 20px; }
  .feature-row li { padding: 0; }
  .feature-row li + li { border-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer__legal { text-align: left; }
}

@media (max-width: 400px) {
  body { font-size: 16px; }
  .section { padding-inline: 20px; }
}

/* wider screens keep content centered with breathing room */
@media (min-width: 1600px) {
  :root { --maxw: 1320px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__video, .intelligence__video { display: none; }
  .hero__media {
    background: #000 url("hero-poster.jpg") center/cover no-repeat;
  }
  .intelligence__media {
    background: #000 url("intelligence-video-poster.jpg") center/cover no-repeat;
  }
}

/* legal links row in footer — no padding-inline here: .footer already applies the
   gutter, and adding it again indented this row past the logo above it */
.footer__links--legal {
  max-width: var(--maxw);
  margin: 18px auto 0;
  display: flex; gap: 28px; flex-wrap: wrap;
}
.footer__links--legal a { font-size: 12.5px; letter-spacing: 0.12em; }

/* ============================================================
   6b. EARLY ACCESS / MEMBER AREA
   ============================================================ */
.access { padding-top: 0; }
.access__card {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 64px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.access__copy .h2 { margin: 18px 0 14px; }
.access__body { margin: 0; color: var(--text-2); max-width: 46ch; }
.access__form { display: flex; gap: 12px; flex-wrap: wrap; }
/* display:flex would otherwise defeat the hidden attribute set after signup */
.access__form[hidden] { display: none; }
.access__input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--cream);
  font: inherit;
  font-size: 15px;
}
.access__input::placeholder { color: var(--muted); }
.access__input:focus { border-color: var(--gold); outline: none; }
/* Autofill repaints the field pale yellow with dark text — i.e. it breaks the dark
   treatment at the exact moment of conversion. A 1000px inset shadow is the only
   reliable way to override the UA's own background; the long transition delay stops
   Chrome re-applying its colour on focus. */
.access__input:-webkit-autofill,
.access__input:-webkit-autofill:hover,
.access__input:-webkit-autofill:focus,
.access__input:-webkit-autofill:active,
.contact__message:-webkit-autofill {
  -webkit-text-fill-color: var(--cream);
  -webkit-box-shadow: 0 0 0 1000px var(--bg-2) inset;
          box-shadow: 0 0 0 1000px var(--bg-2) inset;
  caret-color: var(--cream);
  transition: background-color 9999s ease-out 0s;
}
/* Bronze inputs are a translucent wash over the card; an inset shadow can't be
   translucent, so this is that blend flattened to a solid. */
html[data-theme="bronze"] .access__input:-webkit-autofill,
html[data-theme="bronze"] .access__input:-webkit-autofill:hover,
html[data-theme="bronze"] .access__input:-webkit-autofill:focus,
html[data-theme="bronze"] .contact__message:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #40352B inset;
          box-shadow: 0 0 0 1000px #40352B inset;
}
.access__signin {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
.access__signin a { color: var(--gold-lite); border-bottom: 1px solid var(--line-soft); }
.access__signin a:hover { border-color: var(--gold-lite); }
/* Inline status message after a waitlist submit (success replaces the form,
   error keeps it) — sits between .access__form and .access__signin. */
.access__status {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--cream);
}
.access__status.is-error { color: #C97A5F; }
/* After a successful submit the form column is empty, so the card collapses to a
   single column rather than leaving a hole beside the acknowledgement. */
.access__card.is-acknowledged { grid-template-columns: 1fr; }
@media (max-width: 900px) {
  .access__card { grid-template-columns: 1fr; }
}

/* ============================================================
   LEGAL PAGES (privacy / terms / data-policy)
   Reuses the landing design system: chip eyebrow, .h2 title,
   .card grid. Header/footer are the canonical site chrome.
   ============================================================ */
.legal { padding-top: clamp(116px, 15vh, 176px); }
.legal__head {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: clamp(40px, 5vw, 60px);
}
.legal__head .h2 { max-width: 22ch; }
.legal__lead {
  margin: 0;
  max-width: 64ch;
  color: var(--text-2);
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.6;
}
.legal__lead strong { color: var(--cream); font-weight: 400; }
.legal-grid {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: legal;
}
.legal-card {
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-increment: legal;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.legal-card:hover { border-color: var(--line-soft); transform: translateY(-3px); }
.legal-card h3 {
  font-size: 15px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--cream);
  font-weight: 700;
}
.legal-card h3::before {
  content: counter(legal, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--gold);
  opacity: .82;
}
.legal-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.6;
}
.legal__foot {
  max-width: var(--maxw);
  margin: clamp(40px, 5vw, 60px) auto 0;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
}
@media (max-width: 1024px) {
  .legal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .legal-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   BRONZE THEME (light mode) — full-page day treatment from the
   "NOCTIS - 3 versions" design. Toggled via html[data-theme].
   ============================================================ */
.nav__theme {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: border-color .25s;
}
.nav__theme:hover { border-color: var(--gold); }
.nav__theme .ico { width: 18px; height: 18px; }

html[data-theme="bronze"] {
  --bg:        #352C24;
  --bg-2:      #3E342B;
  --surface:   #5B4C3E;
  --surface-2: #52453A;
  --line:      rgba(236, 228, 214, 0.16);
  --line-soft: rgba(201, 161, 95, 0.22);
  --gold:      #C9A15F;
  --gold-lite: #D7B86F;
  --gold-deep: #A9834C;
  --cream:     #F1EADD;
  --text-2:    #DDD1C0;
  --muted:     #C0B09C;
}
html[data-theme="bronze"] body {
  background: #352C24 url("texture-bronze.png") center/cover fixed no-repeat;
}
html[data-theme="bronze"] .nav { background: rgba(48, 40, 34, 0.94); }
html[data-theme="bronze"] .menu { background: rgba(48, 40, 34, 0.98); }
html[data-theme="bronze"] .chip { background: rgba(66, 56, 45, 0.78); }
html[data-theme="bronze"] .card,
html[data-theme="bronze"] .access__card {
  background: var(--surface);
  border-color: rgba(236, 228, 214, 0.12);
  box-shadow: 0 24px 60px -30px rgba(20, 14, 8, 0.55);
}
html[data-theme="bronze"] .privacy__shield svg { fill: #AC8449; stroke: #AC8449; }
html[data-theme="bronze"] .privacy__shield .chk { stroke: #2A2118; }
html[data-theme="bronze"] .btn--gold {
  background: linear-gradient(180deg, #C9A15F, #A9834C);
  border-color: rgba(201, 161, 95, 0.7);
}
html[data-theme="bronze"] .access__input,
html[data-theme="bronze"] .score,
html[data-theme="bronze"] .metrics__list li { background: rgba(42, 34, 27, 0.55); }
html[data-theme="bronze"] .footer { background: #241F1A; border-top: 1px solid rgba(236,228,214,0.08); }
html[data-theme="bronze"] .hero__scrim {
  background:
    linear-gradient(90deg, rgba(30,24,19,0.66) 0%, rgba(30,24,19,0.32) 36%, rgba(30,24,19,0) 60%),
    linear-gradient(180deg, rgba(30,24,19,0.30) 0%, rgba(30,24,19,0) 26%, rgba(53,44,36,0.92) 100%);
}

/* ============================================================
   PRE-LAUNCH: members + scan entry points hidden. Remove this class
   from the elements in index.html to restore them.
   ============================================================ */
.prelaunch-hide { display: none !important; }

/* ============================================================
   DORMANT: social accounts don't exist yet. The footer markup is kept in
   place and hidden rather than deleted — remove this class from the nav in
   each page's footer and swap the hrefs when the handles are live.
   ============================================================ */
.social-pending { display: none !important; }

/* ============================================================
   6c. CONTACT (section removed from index.html — rules kept, currently unused)
   Reuses .access__card / .access__form / .access__input; these rules
   only cover the parts that differ (stacked form, textarea, honeypot, status).
   ============================================================ */
.contact__form { flex-direction: column; align-items: stretch; }
/* .access__input's flex:1 is for the row layout; in the column stack it would
   stretch the email field vertically — pin every field to its natural height. */
.contact__form .access__input { flex: 0 0 auto; }
.contact__message {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  line-height: 1.5;
}
.contact__hp { position: absolute; left: -9999px; opacity: 0; height: 0; pointer-events: none; }
.contact__status {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
.contact__status.is-error { color: #C97A5F; }

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ============================================================
   ABOUT PAGE (about/index.html)
   Reuses .hero / .h2 / .btn / .card tokens; the blocks below only
   cover what's new to the About design: the statement band, the
   full-bleed ritual video, the private-by-design two-column layout,
   and the nav "About Us" active state.
   ============================================================ */

/* hero copy: About hero splits the homepage's single lede into a
   bold lede line + a separate muted body line, with no proof row */
.hero--about .hero__lede { margin: 0 0 14px; }
.hero--about .hero__body {
  margin: 0 0 36px;
  max-width: 46ch;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-2);
  line-height: 1.5;
}

/* statement band: quiet, centered, full-width */
.statement {
  padding-block: var(--rhythm);
  padding-inline: var(--gutter);
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.statement__inner {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.statement__body {
  margin: 0;
  max-width: 60ch;
  color: var(--text-2);
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.6;
}

/* full-bleed ritual video band — decorative editorial break */
.ritual {
  position: relative;
  height: 78vh;
  overflow: hidden;
}
.ritual__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ritual__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,10,8,0.18) 0%, rgba(11,10,8,0) 30%, rgba(11,10,8,0.4) 100%);
}
@media (max-width: 760px) {
  .ritual { height: 50vh; }
}

/* private by design: title left, copy + tiles right */
.private-design__grid {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.private-design__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}
.private-design__right {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 40px);
}
.private-design__body {
  margin: 0;
  max-width: 56ch;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
}
.private-design__tiles {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
}
.private-design__tiles li {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 22px;
}
.private-design__tiles li + li { border-left: 1px solid var(--line); }
.private-design__tiles .ico { width: 22px; height: 22px; margin-top: 2px; }
.private-design__tile-copy { display: flex; flex-direction: column; gap: 4px; }
.private-design__tile-label {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream);
}
.private-design__tile-sub { font-size: 13px; color: var(--muted); line-height: 1.4; }

@media (max-width: 1024px) {
  .private-design__grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .private-design__tiles { flex-direction: column; }
  .private-design__tiles li + li { border-left: 0; border-top: 1px solid var(--line); }
}

/* nav "About Us" active state — gold text + small underline/marker */
.nav__links a.is-active {
  position: relative;
  color: var(--gold-lite);
  opacity: 1;
}
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--gold);
}
.menu__nav a.is-active {
  position: relative;
  color: var(--gold-lite);
}
.menu__nav a.is-active::after {
  content: "";
  position: absolute;
  left: 4px; bottom: 14px;
  width: 28px; height: 2px;
  background: var(--gold);
}

html[data-theme="bronze"] .statement { background: var(--bg-2); }
html[data-theme="bronze"] .private-design__tiles { background: rgba(42, 34, 27, 0.35); }

/* ============================================================
   THEME TOGGLE ICON — moon shows in dark (default), sun shows in
   bronze. Both SVGs live in the button; CSS swaps visibility so no
   JS change is needed.
   ============================================================ */
.nav__theme .ico--sun { display: none; }
.nav__theme .ico--moon { display: block; }
html[data-theme="bronze"] .nav__theme .ico--sun { display: block; }
html[data-theme="bronze"] .nav__theme .ico--moon { display: none; }

/* ============================================================
   4b. THE NOCTIS SYSTEM (index.html)
   Three equal cards, reusing .card + .step__ico for the circular
   icon badge. Stacks to one column on mobile.
   ============================================================ */
.system__grid {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.system__card {
  padding: 32px 28px 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  border-radius: var(--radius-lg);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.system__card:hover { border-color: var(--line-soft); transform: translateY(-3px); }
.system__ico { background: var(--bg-2); margin-bottom: 2px; }
.system__title {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cream);
}
.system__hr {
  display: block;
  width: 44px; height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(201,161,95,0));
}
.system__body { margin: 0; font-size: 14.5px; color: var(--text-2); line-height: 1.55; }

@media (max-width: 760px) {
  .system__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   4c. THE RITUAL LAYER (index.html)
   Media-left / copy-right band, mirrors the .intelligence__grid
   pattern; feature row adapted from .feature-row with a 2x2 wrap.
   ============================================================ */
.ritual-layer__grid {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.ritual-layer__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 1 / 1;
}
.ritual-layer__media img { width: 100%; height: 100%; object-fit: cover; }
.ritual-layer__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.ritual-layer__copy .chip { margin: 0; }
.ritual-layer__copy .h2 { margin: 0; max-width: 15ch; }
.ritual-layer__body { margin: 0; max-width: 46ch; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.ritual-layer__features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
}
.ritual-layer__features li {
  display: flex; flex-direction: column; gap: 8px;
  padding: 4px 18px;
}
.ritual-layer__features li:first-child { padding-left: 0; }
.ritual-layer__features li:not(:first-child) { border-left: 1px solid var(--line); }
.ritual-layer__features .ico { width: 20px; height: 20px; }
.ritual-layer__feat-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream); }
.ritual-layer__feat-sub { font-size: 12px; color: var(--muted); line-height: 1.4; }

@media (max-width: 1024px) {
  .ritual-layer__grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .ritual-layer__features { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .ritual-layer__features li:not(:first-child) { border-left: none; padding-left: 0; }
  .ritual-layer__features li:nth-child(even) { border-left: 1px solid var(--line); padding-left: 18px; }
  .ritual-layer__features li:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 20px; }
}

html[data-theme="bronze"] .system__ico { background: rgba(42, 34, 27, 0.35); }

/* ============================================================
   PRE-LAUNCH STAND-IN CTAs
   Paired with .prelaunch-hide above: while the scan app and member area are
   hidden, .prelaunch-only buttons point at the #access waitlist so no section
   is left as a headline with nothing to click.
   AT LAUNCH: uncomment the rule below, and strip .prelaunch-hide from the real
   CTAs in each page.
   ============================================================ */
/* .prelaunch-only { display: none !important; } */

/* ============================================================
   RITUALS + INTELLIGENCE PAGES
   Built from the supplied Figma exports. Reuses the existing tokens,
   .card, .chip, .btn and .step__ico so both themes come along for free.
   ============================================================ */
.hero__still { position: absolute; inset: 0; background: #0f0d0b center/cover no-repeat; }
.hero--ritual .hero__content, .hero--intel .hero__content { max-width: var(--maxw); }
.hero--ritual .hero__lede, .hero--intel .hero__lede { margin: 26px 0 10px; }
.hero--ritual .hero__body { margin: 0 0 32px; max-width: 46ch; color: var(--text-2); font-size: clamp(15px,1.8vw,17px); }
.hero--ritual .hero__title, .hero--intel .hero__title { font-size: clamp(40px, 6.6vw, 74px); }

/* ritual mosaic: two wide cards, then two narrow + one wide */
.ritual-mosaic {
  max-width: var(--maxw); margin-inline: auto;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
}
.ritual-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  min-height: 260px; display: flex; align-items: flex-end;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.ritual-card:hover { border-color: var(--line-soft); transform: translateY(-3px); }
.ritual-card--wide { grid-column: span 3; }
.ritual-card--narrow { grid-column: span 2; }
.ritual-card:last-child { grid-column: span 2; }
.ritual-card__media { position: absolute; inset: 0; background: #100e0c center/cover no-repeat; }
.ritual-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,10,8,0) 40%, rgba(11,10,8,.88) 100%);
}
.ritual-card__body { position: relative; z-index: 1; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.ritual-card__title { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); }
.ritual-card__link { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-lite); }
@media (max-width: 900px) {
  .ritual-mosaic { grid-template-columns: 1fr; }
  .ritual-card, .ritual-card--wide, .ritual-card--narrow, .ritual-card:last-child { grid-column: auto; }
}

/* read band: copy left, numbered steps right */
.read-band__grid {
  max-width: var(--maxw); margin-inline: auto;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px,4vw,64px); align-items: center;
}
.read-band__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.read-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.read-step {
  padding: 22px 20px 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); display: flex; flex-direction: column; gap: 12px;
}
.read-step__num { font-size: 12px; letter-spacing: .1em; color: var(--gold); }
.read-step__title { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); }
@media (max-width: 900px) {
  .read-band__grid { grid-template-columns: 1fr; }
  .read-steps { grid-template-columns: 1fr; }
}

/* full-bleed statement band */
.ritual-statement { position: relative; padding: clamp(64px,10vw,120px) var(--gutter); overflow: hidden; }
.ritual-statement__media { position: absolute; inset: 0; }
.ritual-statement__inner {
  position: relative; z-index: 1; max-width: 820px; margin-inline: auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.ritual-statement__title { text-transform: uppercase; font-size: clamp(22px,3.2vw,38px); line-height: 1.2; }

/* intelligence grids */
.snap-grid, .unlock-grid { max-width: var(--maxw); margin-inline: auto; display: grid; gap: 18px; }
.snap-grid { grid-template-columns: repeat(3, 1fr); }
.unlock-grid { grid-template-columns: repeat(5, 1fr); }
.snap-card, .unlock-card {
  padding: 26px 22px 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  border-radius: var(--radius-lg);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.snap-card:hover, .unlock-card:hover { border-color: var(--line-soft); transform: translateY(-3px); }
@media (max-width: 1024px) { .unlock-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .snap-grid, .unlock-grid { grid-template-columns: 1fr; } }

/* reserved access */
.reserve__head {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,64px); align-items: start;
}
.reserve__eyebrow { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .14em; color: var(--cream); }
.reserve__eyebrow .chip__dot { width: 5px; height: 5px; flex: none; }
.reserve__title {
  max-width: 18ch;
  margin-top: 14px;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.04;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.reserve__title em { font-weight: 300; }
.reserve__copy p { margin: 0 0 10px; color: var(--text-2); font-size: 14px; line-height: 1.55; max-width: 52ch; }
.reserve__copy .btn { margin-top: 18px; }
@media (max-width: 900px) {
  .reserve__head { grid-template-columns: 1fr; }
  .reserve__title { max-width: 17ch; font-size: clamp(24px, 7.6vw, 31px); }
}

/* even two-column duo used on the Intelligence page */
.duo__grid--even { grid-template-columns: 1fr 1fr; }
.ctx-card { padding: clamp(24px,3vw,34px); display: flex; flex-direction: column; gap: 18px; border-radius: var(--radius-lg); }
.ctx-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ctx-list li { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.ctx-list .step__ico { width: 34px; height: 34px; }
.ctx-list .step__ico svg { width: 17px; height: 17px; }
/* Four-up variant: the shared .private-design__tiles is a bordered flex ROW that
   flips to a column on small screens. Four items inside a narrow card fought that
   and got clipped by body overflow-x. A grid is deterministic, so each tile carries
   its own border instead of sharing the container's. */
.private-design__tiles--quad {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  border: 0;
  background: none;
  overflow: visible;
}
.private-design__tiles--quad li,
.private-design__tiles--quad li + li {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
}
@media (max-width: 560px) { .private-design__tiles--quad { grid-template-columns: 1fr; } }
/* .duo__grid--even is declared after the shared .duo__grid mobile rule, so it has to
   restate the stack itself or it stays two columns at 390 and overflows the viewport. */
@media (max-width: 1024px) {
  .duo__grid--even { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .ctx-list { grid-template-columns: 1fr; }
}

/* ============================================================
   EDITORIAL PAGES — Figma dark-mode implementation
   Rituals, Intelligence and The Noctis Man
   ============================================================ */
.page-eyebrow {
  margin: 0;
  color: var(--gold-lite);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.page-hero {
  min-height: min(92vh, 880px);
  border-bottom: 1px solid var(--line);
}
.page-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero__image--ritual { object-position: center 38%; }
.page-hero__image--intel { object-position: center; }
.page-hero__image--man { object-position: center; }
.page-hero .hero__scrim {
  background:
    linear-gradient(90deg, rgba(7,6,5,.94) 0%, rgba(7,6,5,.76) 32%, rgba(7,6,5,.16) 67%, rgba(7,6,5,.26) 100%),
    linear-gradient(180deg, rgba(7,6,5,.3) 0%, transparent 48%, rgba(7,6,5,.78) 100%);
}
.page-hero .hero__content {
  max-width: var(--maxw);
}
.page-hero .page-eyebrow { margin-bottom: 22px; }
.page-hero .hero__title {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(48px, 7vw, 82px);
  line-height: .96;
}
.page-hero .hero__title em { color: var(--gold-lite); font-weight: 300; }
.hero--intel .hero__title {
  max-width: 19ch;
  font-size: clamp(48px, 5vw, 66px);
}
.hero--intel .hero__title .line:last-child { white-space: nowrap; }
.page-hero .hero__lede {
  margin: 28px 0 8px;
  max-width: 48ch;
  font-size: clamp(16px, 1.8vw, 19px);
}
.page-hero .hero__body {
  margin: 0 0 30px;
  max-width: 48ch;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
}
.launch-pill {
  display: inline-flex;
  margin: 22px 0 0;
  padding: 8px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(8,7,6,.7);
  color: var(--text-2);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.editorial-section .section__head,
.snapshot .section__head,
.read-band .section__head {
  max-width: 880px;
}
.editorial-section .page-eyebrow,
.snapshot .page-eyebrow,
.unlock .page-eyebrow,
.read-band .page-eyebrow {
  margin-bottom: 22px;
}
.editorial-section .h2,
.snapshot .h2,
.read-band .h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.18;
}

.ritual-mosaic {
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.ritual-card {
  min-height: clamp(330px, 36vw, 490px);
  border-radius: 0;
  color: var(--cream);
}
.ritual-card--wide { grid-column: span 6; }
.ritual-card--narrow { grid-column: span 4; }
.ritual-card:last-child { grid-column: span 4; }
.ritual-card__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), filter .5s var(--ease);
}
.ritual-card:hover .ritual-card__media { transform: scale(1.035); filter: brightness(1.06); }
.ritual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(7,6,5,.92) 100%);
}
.ritual-card__body {
  z-index: 2;
  width: 100%;
  padding: 30px;
}
.ritual-card__title { font-size: 15px; }
.ritual-card__copy {
  max-width: 34ch;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.45;
}
.ritual-card__link { margin-top: 4px; }

.ritual-statement {
  min-height: 72vh;
  display: flex;
  align-items: center;
}
.ritual-statement__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72) brightness(.55);
}
.ritual-statement__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7,6,5,.32);
}
.ritual-statement__inner { max-width: 920px; }
.ritual-statement__inner .page-eyebrow { color: var(--gold-lite); }
.ritual-statement__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
}
.ritual-statement__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  border-top: 1px solid rgba(215,184,111,.38);
  border-bottom: 1px solid rgba(215,184,111,.38);
}
.ritual-statement__steps li {
  padding: 18px 12px;
  color: var(--cream);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ritual-statement__steps li + li { border-left: 1px solid rgba(215,184,111,.38); }

.read-band .section__head--center {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.read-band .section__head .btn { margin-top: 28px; }
.read-steps {
  max-width: var(--maxw);
  margin-inline: auto;
  grid-template-columns: repeat(3, 1fr);
}
.read-step {
  min-height: 230px;
  justify-content: flex-end;
  border-radius: 0;
  background: linear-gradient(160deg, rgba(201,161,95,.09), transparent 52%), var(--surface);
}
.read-step__num { margin-bottom: auto; }
.read-step__title { font-size: 15px; }
.read-step p,
.snap-card p,
.unlock-card p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
}

.snap-grid { gap: 1px; background: var(--line); }
.snap-card {
  min-height: 250px;
  justify-content: flex-end;
  border-radius: 0;
  border: 0;
  background: var(--surface);
}
.snap-card .step__ico { margin-bottom: auto; }
.unlock-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.unlock-card {
  grid-column: auto;
  min-height: 260px;
  border-radius: 0;
}
.unlock-card .step__ico { margin-bottom: auto; }
.reserve {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.ctx-card { border-radius: 0; }

/* The Noctis Man */
.hero--man .hero__title { max-width: 9ch; }
.man-hero__content { padding-right: 50%; }
.man-hero__lead {
  margin: 30px 0 10px;
  color: var(--cream);
  font-size: clamp(18px, 2vw, 23px);
}
.man-standard__grid {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(38px, 7vw, 110px);
  align-items: start;
}
.man-standard__grid .h2 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(30px, 4.3vw, 50px);
  line-height: 1.04;
  text-transform: uppercase;
}
.man-standard__grid p {
  margin: 0;
  max-width: 62ch;
  color: var(--text-2);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.7;
}
.man-output {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.man-output__inner {
  max-width: var(--maxw);
  margin-inline: auto;
}
.man-output__copy {
  max-width: 840px;
  margin: 0 auto clamp(32px, 4.8vw, 58px);
  text-align: center;
}
.man-output__copy .h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 48px);
  text-transform: uppercase;
}
.man-output__copy p { margin: 0; color: var(--text-2); line-height: 1.65; }
.man-output__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.man-output__media img {
  width: 100%;
  min-height: clamp(380px, 48vw, 620px);
  object-fit: cover;
  object-position: center;
}

.man-code__grid {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.man-code__group {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.man-code__title {
  margin: 0 0 26px;
  color: var(--cream);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
}
.man-code__title em { font-weight: 300; }
.principle-grid,
.archetype-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}
.principle-card {
  min-height: 180px;
  padding: 20px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.principle-card__mark {
  margin-bottom: auto;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .14em;
}
.principle-card h3,
.archetype-grid h3 {
  margin: 0 0 10px;
  color: var(--cream);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.principle-card p,
.archetype-grid p {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.55;
}
.archetype-grid article {
  min-height: 180px;
  padding: 20px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.man-invitation {
  position: relative;
  min-height: 620px;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.man-invitation__media {
  position: absolute;
  inset: 0;
}
.man-invitation__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(3px) brightness(.82) saturate(.72);
  transform: scale(1.04);
}
.man-invitation__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,6,5,.22), rgba(7,6,5,.58));
}
.man-invitation__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.man-invitation__inner .h2 { font-size: clamp(30px, 4.4vw, 52px); }
.man-invitation__inner p:not(.page-eyebrow) { margin: 0; max-width: 60ch; color: var(--text-2); }
.man-invitation__motto {
  color: var(--gold-lite);
  font-size: 10px;
  letter-spacing: .42em;
  text-transform: uppercase;
}

/* Rituals page: Figma order, split read band and assurance strip. */
.read-band .read-steps { max-width: none; margin: 0; }
.read-band__copy .h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}
.assurance {
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.assurance__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.assurance__grid li {
  min-height: 190px;
  padding: 34px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}
.assurance__grid li + li { border-left: 1px solid var(--line); }
.assurance__icon {
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: rgba(201,161,95,.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.assurance__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.assurance__grid strong {
  color: var(--cream);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.assurance__grid li > span:last-child { color: var(--text-2); font-size: 13px; }

@media (max-width: 1024px) {
  .man-hero__content { padding-right: 38%; }
  .unlock-grid { grid-template-columns: repeat(2, 1fr); }
  .unlock-card { grid-column: auto; }
  .unlock-card:last-child { grid-column: 1 / -1; }
  .man-standard__grid,
  .man-code__grid { grid-template-columns: 1fr; }
  .man-standard__grid { gap: 28px; }
}
@media (max-width: 760px) {
  .page-hero {
    min-height: 790px;
    justify-content: flex-end;
    padding-top: 110px;
    padding-bottom: 56px;
  }
  .page-hero__image--ritual { object-position: 54% center; }
  .page-hero__image--intel { object-position: 68% center; }
  .page-hero__image--man { object-position: 66% center; }
  .page-hero .hero__scrim {
    background:
      linear-gradient(180deg, rgba(7,6,5,.15) 0%, rgba(7,6,5,.4) 42%, rgba(7,6,5,.97) 76%),
      linear-gradient(90deg, rgba(7,6,5,.6), transparent);
  }
  .page-hero .hero__title { font-size: clamp(43px, 12.5vw, 58px); }
  .hero--intel .hero__title .line:last-child { white-space: normal; }
  .page-hero .hero__actions { flex-direction: column; align-items: stretch; }
  .page-hero .btn { width: 100%; justify-content: center; }
  .man-hero__content { padding-right: 0; }
  .ritual-mosaic,
  .unlock-grid,
  .read-steps { grid-template-columns: 1fr; }
  .ritual-card,
  .ritual-card--wide,
  .ritual-card--narrow,
  .ritual-card:last-child { grid-column: auto; min-height: 420px; }
  .ritual-card__body { padding: 24px; }
  .ritual-statement { min-height: 720px; }
  .ritual-statement__steps { grid-template-columns: 1fr; }
  .ritual-statement__steps li + li { border-left: 0; border-top: 1px solid rgba(215,184,111,.38); }
  .unlock-card,
  .unlock-card:last-child { grid-column: auto; min-height: 220px; }
  .principle-grid,
  .archetype-grid { grid-template-columns: 1fr; }
  .principle-card,
  .archetype-grid article { min-height: 160px; }
  .man-output__media img { min-height: 390px; }
  .man-invitation { min-height: 700px; }
  .assurance__grid { grid-template-columns: 1fr; }
  .assurance__grid li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* ============================================================
   THE LIBRARY — approved Figma editorial page
   ============================================================ */
.library-hero {
  min-height: min(92vh, 880px);
}
.library-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(.82) contrast(1.02);
}
.library-hero .hero__scrim {
  background:
    linear-gradient(90deg, rgba(6,5,4,.96) 0%, rgba(6,5,4,.77) 38%, rgba(6,5,4,.18) 72%, rgba(6,5,4,.38) 100%),
    linear-gradient(180deg, rgba(6,5,4,.2), rgba(6,5,4,.72));
}
.library-hero__content { max-width: 760px; }
.library-hero .page-eyebrow { margin-bottom: 24px; }
.library-hero .hero__title {
  max-width: 13ch;
  font-size: clamp(42px, 6.3vw, 76px);
  line-height: .98;
  text-transform: uppercase;
}
.library-hero .hero__title em { color: var(--gold-lite); font-weight: 300; }
.library-hero .hero__body {
  margin: 26px 0 30px;
  max-width: 44ch;
  color: var(--text-2);
  font-size: clamp(16px, 1.7vw, 19px);
}
.library-hero .btn,
.library-access .btn,
.library-closing .btn { border-radius: 10px; }

.library-entry__grid {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(42px, 8vw, 120px);
  align-items: center;
}
.library-entry__copy .page-eyebrow,
.library-themes__head .page-eyebrow,
.library-collection__head .page-eyebrow { margin-bottom: 22px; }
.library-entry__copy .h2 {
  max-width: 14ch;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.07;
  text-transform: uppercase;
}
.library-entry__copy > p:last-child {
  max-width: 56ch;
  margin: 24px 0 0;
  color: var(--text-2);
  line-height: 1.7;
}
.library-entry__media {
  margin: 0;
  min-height: clamp(360px, 42vw, 560px);
  overflow: hidden;
}
.library-entry__media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.library-maxim {
  padding: 30px var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  text-align: center;
}
.library-maxim p {
  margin: 0;
  color: var(--gold-lite);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.library-themes__head,
.library-collection__head {
  max-width: 920px;
  text-align: center;
}
.library-themes__head .h2,
.library-collection__head .h2 {
  font-size: clamp(30px, 4.2vw, 50px);
  text-transform: uppercase;
}
.library-theme-grid {
  max-width: var(--maxw);
  margin: clamp(42px, 6vw, 72px) auto 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.library-theme-card {
  min-height: 250px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--surface);
}
.library-theme-card > span {
  margin-bottom: auto;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .18em;
}
.library-theme-card h3 {
  margin: 0 0 12px;
  color: var(--cream);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.library-theme-card p {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.55;
}

.library-collection {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.library-collection__head > p:last-child {
  max-width: 70ch;
  margin: 24px auto 0;
  color: var(--text-2);
}
.library-books {
  max-width: var(--maxw);
  margin: clamp(44px, 6vw, 76px) auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.library-book {
  border: 1px solid var(--line);
  background: var(--surface);
}
.library-book__media {
  margin: 0;
  aspect-ratio: 1.52 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.library-book__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.library-book:hover .library-book__media img { transform: scale(1.025); }
.library-book__copy { padding: clamp(24px, 3.2vw, 38px); }
.library-book__copy .page-eyebrow { margin-bottom: 18px; }
.library-book__copy h3 {
  margin: 0;
  max-width: 20ch;
  color: var(--cream);
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.15;
  font-weight: 300;
}
.library-book__copy > p:not(.page-eyebrow) {
  margin: 20px 0 28px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.65;
}
.library-book__link {
  color: var(--gold-lite);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.library-book__link span { margin-left: 8px; }

.library-summary {
  padding: 0 var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.library-summary__grid {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.library-summary__grid p {
  min-height: 130px;
  margin: 0;
  padding: 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--cream);
  font-size: 11px;
  letter-spacing: .13em;
  line-height: 1.5;
  text-transform: uppercase;
}
.library-summary__grid p + p { border-left: 1px solid var(--line); }
.library-summary__grid span { color: var(--gold); }

.library-access {
  position: relative;
  min-height: 700px;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.library-access__media { position: absolute; inset: 0; }
.library-access__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.74) brightness(.68);
}
.library-access__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,5,4,.94), rgba(6,5,4,.72) 55%, rgba(6,5,4,.44));
}
.library-access__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(46px, 8vw, 110px);
  align-items: center;
}
.library-access__copy .page-eyebrow { margin-bottom: 22px; }
.library-access__copy .h2 {
  max-width: 12ch;
  font-size: clamp(34px, 4.5vw, 54px);
  text-transform: uppercase;
}
.library-access__copy > p:not(.page-eyebrow) {
  max-width: 54ch;
  margin: 24px 0 30px;
  color: var(--text-2);
}
.library-access__actions,
.library-closing__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.library-access__list {
  border-top: 1px solid rgba(215,184,111,.36);
}
.library-access__list li {
  padding: 24px 0;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 14px;
  border-bottom: 1px solid rgba(215,184,111,.36);
}
.library-access__list li > span {
  grid-row: 1 / 3;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .15em;
}
.library-access__list strong {
  color: var(--cream);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.library-access__list small { color: var(--text-2); font-size: 13px; line-height: 1.5; }

.library-closing { text-align: center; }
.library-closing__inner {
  max-width: 840px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.library-closing .h2 {
  max-width: 15ch;
  font-size: clamp(34px, 4.8vw, 58px);
  text-transform: uppercase;
}
.library-closing p {
  max-width: 62ch;
  margin: 26px auto 32px;
  color: var(--text-2);
}

html[data-theme="bronze"] .library-theme-card,
html[data-theme="bronze"] .library-book { background: rgba(42,34,27,.76); }
html[data-theme="bronze"] .library-maxim,
html[data-theme="bronze"] .library-collection,
html[data-theme="bronze"] .library-summary { background: var(--bg-2); }

@media (max-width: 1120px) {
  .nav__links { gap: clamp(14px, 1.8vw, 24px); }
  .nav__links a { font-size: 11.5px; }
  .library-theme-grid { grid-template-columns: repeat(3, 1fr); }
  .library-theme-card:last-child { grid-column: span 2; }
}
@media (max-width: 900px) {
  .library-entry__grid,
  .library-access__inner { grid-template-columns: 1fr; }
  .library-entry__copy .h2 { max-width: 18ch; }
  .library-theme-grid { grid-template-columns: repeat(2, 1fr); }
  .library-theme-card:last-child { grid-column: 1 / -1; }
  .library-books { grid-template-columns: 1fr; }
  .library-summary__grid { grid-template-columns: 1fr; }
  .library-summary__grid p + p { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .library-hero {
    min-height: 780px;
    justify-content: flex-end;
    padding-top: 110px;
    padding-bottom: 52px;
  }
  .library-hero__image { object-position: 58% center; }
  .library-hero .hero__scrim {
    background:
      linear-gradient(180deg, rgba(6,5,4,.12), rgba(6,5,4,.34) 36%, rgba(6,5,4,.97) 74%),
      linear-gradient(90deg, rgba(6,5,4,.5), transparent);
  }
  .library-hero .hero__title { font-size: clamp(39px, 11vw, 52px); }
  .library-hero .hero__actions,
  .library-access__actions,
  .library-closing__actions { flex-direction: column; width: 100%; }
  .library-hero .btn,
  .library-access .btn,
  .library-closing .btn { width: 100%; justify-content: center; }
  .library-entry__media { min-height: 390px; }
  .library-maxim p { font-size: 10px; line-height: 1.8; }
  .library-theme-grid { grid-template-columns: 1fr; }
  .library-theme-card,
  .library-theme-card:last-child { grid-column: auto; min-height: 210px; }
  .library-book__copy { padding: 24px; }
  .library-access { min-height: 880px; }
  .library-access__media img { object-position: 46% center; }
  .library-access__media::after { background: rgba(6,5,4,.8); }
}

/* Library Figma parity pass — scoped so the rest of the site is unchanged. */
.library-page {
  background:
    linear-gradient(180deg, rgba(18, 15, 12, .74), rgba(18, 15, 12, .88)),
    url("library/background-dark-1600.webp") center top / cover,
    #12100d;
}
.library-hero {
  min-height: clamp(660px, 78vh, 790px);
}
.library-hero__image {
  object-position: center 42%;
  filter: saturate(.94) contrast(1.01) brightness(1.08);
}
.library-hero .hero__scrim {
  background:
    linear-gradient(90deg, rgba(8, 7, 6, .77) 0%, rgba(8, 7, 6, .52) 40%, rgba(8, 7, 6, .08) 74%),
    linear-gradient(180deg, rgba(8, 7, 6, .06), rgba(8, 7, 6, .46));
}
.library-hero__content {
  max-width: 680px;
}
.library-hero .page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.library-hero .page-eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(201, 161, 95, .75);
}
.library-hero .hero__title {
  max-width: none;
  font-size: clamp(42px, 4.7vw, 62px);
  line-height: 1.02;
  letter-spacing: -.025em;
}
.library-hero .hero__title em {
  color: var(--gold-lite);
  font-weight: 300;
}
.library-hero .hero__body {
  margin: 20px 0 25px;
  max-width: 39ch;
  color: #d1c7b8;
  font-size: 15px;
}
.library-hero .btn,
.library-access .btn,
.library-closing .btn {
  --pad-y: 15px;
  --pad-x: 26px;
  border-radius: 10px;
  font-size: 13px;
}
.library-book .btn {
  --pad-y: 15px;
  --pad-x: 18px;
  min-height: 48px;
  border-radius: 10px;
  font-size: 10px;
}

.library-entry {
  padding: clamp(72px, 8vw, 108px) 0 0;
  text-align: center;
}
.library-entry__copy {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.library-entry__copy .page-eyebrow {
  margin-bottom: 18px;
}
.library-entry__copy .h2 {
  max-width: none;
  font-size: clamp(29px, 3.25vw, 44px);
  line-height: 1.12;
  text-transform: uppercase;
}
.library-entry__copy > p:last-child {
  max-width: 62ch;
  margin: 20px auto 0;
  color: #bfb4a6;
  font-size: 14px;
  line-height: 1.65;
}
.library-maxim {
  margin: clamp(42px, 5vw, 64px) auto 0;
  padding: 21px var(--gutter);
  border-top: 1px solid rgba(201, 161, 95, .24);
  border-bottom: 1px solid rgba(201, 161, 95, .24);
  color: var(--gold-lite);
  font-size: 10px;
  letter-spacing: .27em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}
.library-entry__media {
  width: 100%;
  max-width: var(--maxw);
  min-height: clamp(410px, 45vw, 650px);
  margin: 0 auto;
}
.library-entry__media img {
  display: block;
  filter: saturate(.9) brightness(.98);
}

.library-themes {
  padding-top: clamp(76px, 8vw, 112px);
  padding-bottom: clamp(82px, 9vw, 124px);
}
.library-themes__head .h2 {
  font-size: clamp(27px, 3vw, 40px);
  letter-spacing: .015em;
}
.library-theme-grid {
  margin-top: clamp(34px, 4vw, 50px);
  gap: 10px;
  background: transparent;
  border: 0;
}
.library-theme-card {
  min-height: 205px;
  padding: 23px 18px 21px;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid rgba(201, 161, 95, .19);
  background: rgba(29, 25, 20, .72);
  text-align: center;
}
.library-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 23px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 161, 95, .34);
  border-radius: 50%;
  background: rgba(201, 161, 95, .055);
}
.library-icon img {
  width: 20px;
  height: 20px;
}
.library-theme-card h3 {
  width: 100%;
  margin: 0;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(201, 161, 95, .19);
  font-size: 11px;
}
.library-theme-card p {
  margin-top: 13px;
  color: #b9afa1;
  font-size: 11px;
  line-height: 1.5;
}

.library-collection {
  padding-top: clamp(78px, 8vw, 110px);
  padding-bottom: clamp(80px, 9vw, 120px);
  border-top: 1px solid rgba(201, 161, 95, .13);
  background: rgba(14, 12, 10, .38);
}
.library-collection__head {
  max-width: 780px;
}
.library-collection__head .h2 {
  font-size: clamp(28px, 3.25vw, 44px);
  line-height: 1.12;
}
.library-collection__head > p:last-child {
  max-width: 66ch;
  margin-top: 19px;
  color: #bfb4a6;
  font-size: 14px;
  line-height: 1.65;
}
.library-books {
  margin-top: clamp(40px, 5vw, 60px);
  gap: 14px;
}
.library-book {
  min-height: 340px;
  display: grid;
  grid-template-columns: 41% 59%;
  border-color: rgba(201, 161, 95, .2);
  background: rgba(28, 24, 19, .76);
}
.library-book__media {
  height: 100%;
  min-height: 340px;
  aspect-ratio: auto;
  border-right: 1px solid rgba(201, 161, 95, .16);
  border-bottom: 0;
}
.library-book__media img {
  display: block;
  height: 100%;
  object-position: center;
}
.library-book:first-child .library-book__media img { object-position: 35% center; }
.library-book:last-child .library-book__media img { object-position: 38% center; }
.library-book__copy {
  padding: 27px 25px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.library-book__copy .page-eyebrow {
  margin-bottom: 13px;
  font-size: 9px;
}
.library-book__copy h3 {
  max-width: 17ch;
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.16;
}
.library-book__copy > p:not(.page-eyebrow) {
  margin: 15px 0 0;
  color: #b9afa1;
  font-size: 11px;
  line-height: 1.5;
}
.library-book__copy .library-book__note {
  margin: 13px 0 17px;
  color: var(--gold-lite);
  font-size: 10px;
  font-style: italic;
}
.library-book__link {
  margin-top: auto;
  color: #1c1305;
  letter-spacing: .12em;
}
.library-summary {
  padding-inline: var(--gutter);
  background: rgba(14, 12, 10, .46);
}
.library-summary__grid p {
  min-height: 88px;
  padding: 20px 24px;
  justify-content: center;
  color: var(--gold-lite);
  font-size: 10px;
  letter-spacing: .15em;
  text-align: center;
}
.library-summary__grid p + p {
  border-left-color: rgba(201, 161, 95, .22);
}

.library-access {
  min-height: 690px;
  padding: clamp(78px, 9vw, 120px) var(--gutter);
}
.library-access__media img {
  filter: saturate(.9) brightness(.9);
}
.library-access__media::after {
  background:
    linear-gradient(180deg, rgba(7, 6, 5, .48), rgba(7, 6, 5, .63)),
    linear-gradient(90deg, rgba(7, 6, 5, .35), rgba(7, 6, 5, .12), rgba(7, 6, 5, .35));
}
.library-access__inner {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: center;
}
.library-access__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.library-access__copy .page-eyebrow {
  margin-bottom: 16px;
}
.library-access__copy .h2 {
  max-width: none;
  font-size: clamp(29px, 3.45vw, 45px);
  line-height: 1.1;
}
.library-access__copy > p:not(.page-eyebrow) {
  max-width: 62ch;
  margin: 18px auto 0;
  color: #d0c5b6;
  font-size: 14px;
}
.library-reader-rule {
  width: 100%;
  margin: 38px 0 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--gold-lite);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.library-reader-rule::before,
.library-reader-rule::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(201, 161, 95, .38);
}
.library-access__list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 0;
}
.library-access__list li {
  padding: 0 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 0;
  text-align: center;
}
.library-access__list li + li {
  border-left: 1px solid rgba(201, 161, 95, .24);
}
.library-access__list .library-icon {
  margin-bottom: 13px;
}
.library-access__list strong {
  font-size: 10px;
}
.library-access__list small {
  margin-top: 7px;
  color: #c0b5a7;
  font-size: 10px;
}
.library-access__actions {
  margin-top: 34px;
  justify-content: center;
}

.library-closing {
  padding-top: clamp(72px, 8vw, 106px);
  padding-bottom: clamp(72px, 8vw, 102px);
}
.library-closing .h2 {
  max-width: none;
  font-size: clamp(29px, 3.45vw, 45px);
  line-height: 1.1;
}
.library-closing p {
  max-width: 58ch;
  margin: 20px auto 26px;
  color: #bfb4a6;
  font-size: 14px;
}
.library-closing__actions {
  justify-content: center;
}
.library-footer {
  padding-top: 36px;
}
.library-footer .footer__inner {
  padding-bottom: 24px;
}
.library-footer .social-pending span {
  color: var(--cream);
  font-size: 12.5px;
  letter-spacing: .12em;
  opacity: .48;
  text-transform: uppercase;
}

html[data-theme="bronze"] .library-page {
  background:
    linear-gradient(180deg, rgba(83, 69, 56, .7), rgba(63, 52, 43, .78)),
    url("library/background-bronze-1600.webp") center top / cover,
    #4d4035;
}
html[data-theme="bronze"] .library-page .library-themes,
html[data-theme="bronze"] .library-page .library-closing {
  background: rgba(96, 80, 65, .38);
}
html[data-theme="bronze"] .library-theme-card,
html[data-theme="bronze"] .library-book {
  background: rgba(62, 51, 42, .7);
}
html[data-theme="bronze"] .library-maxim,
html[data-theme="bronze"] .library-collection,
html[data-theme="bronze"] .library-summary {
  background: rgba(53, 44, 36, .52);
}
html[data-theme="bronze"] .library-entry__copy > p:last-child,
html[data-theme="bronze"] .library-collection__head > p:last-child,
html[data-theme="bronze"] .library-book__copy > p:not(.page-eyebrow),
html[data-theme="bronze"] .library-closing p {
  color: #ded2c2;
}

@media (max-width: 1120px) {
  .library-theme-grid { grid-template-columns: repeat(5, 1fr); }
  .library-theme-card:last-child { grid-column: auto; }
  .library-book { grid-template-columns: 40% 60%; }
}

@media (max-width: 900px) {
  .library-entry__copy { max-width: 720px; }
  .library-theme-grid { grid-template-columns: repeat(2, 1fr); }
  .library-theme-card:last-child { grid-column: auto; }
  .library-theme-card--identity { grid-column: 1 / -1; }
  .library-books { grid-template-columns: 1fr; }
  .library-book { min-height: 320px; grid-template-columns: 40% 60%; }
  .library-book__media { min-height: 320px; }
  .library-summary__grid { grid-template-columns: repeat(3, 1fr); }
  .library-summary__grid p + p {
    border-top: 0;
    border-left: 1px solid rgba(201, 161, 95, .22);
  }
}

@media (max-width: 760px) {
  .library-page {
    background-image:
      linear-gradient(180deg, rgba(18, 15, 12, .74), rgba(18, 15, 12, .88)),
      url("library/background-dark-800.webp");
  }
  html[data-theme="bronze"] .library-page {
    background-image:
      linear-gradient(180deg, rgba(83, 69, 56, .7), rgba(63, 52, 43, .78)),
      url("library/background-bronze-800.webp");
  }
  .library-hero {
    min-height: 710px;
    padding-bottom: 44px;
  }
  .library-hero__image { object-position: 61% center; }
  .library-hero .hero__scrim {
    background:
      linear-gradient(180deg, rgba(7, 6, 5, .08), rgba(7, 6, 5, .24) 42%, rgba(7, 6, 5, .86) 74%),
      linear-gradient(90deg, rgba(7, 6, 5, .3), transparent);
  }
  .library-hero .hero__title {
    font-size: clamp(34px, 9.4vw, 43px);
    line-height: 1.02;
  }
  .library-hero .hero__body { font-size: 14px; }
  .library-entry { padding-top: 66px; }
  .library-entry__copy .h2 { font-size: clamp(26px, 7vw, 34px); }
  .library-entry__media { min-height: 360px; }
  .library-maxim { padding-block: 17px; font-size: 8px; line-height: 1.8; }
  .library-theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .library-theme-card,
  .library-theme-card:last-child { min-height: 195px; grid-column: auto; padding: 20px 14px 18px; }
  .library-theme-card--identity { grid-column: 1 / -1; }
  .library-icon { width: 38px; height: 38px; margin-bottom: 19px; }
  .library-icon img { width: 18px; height: 18px; }
  .library-book {
    min-height: 310px;
    grid-template-columns: 39% 61%;
  }
  .library-book__media { min-height: 310px; }
  .library-book:first-child .library-book__media img { object-position: 31% center; }
  .library-book:last-child .library-book__media img { object-position: 34% center; }
  .library-book__copy { padding: 20px 16px 18px; }
  .library-book__copy h3 { font-size: 17px; }
  .library-book__copy > p:not(.page-eyebrow) { font-size: 10px; line-height: 1.42; }
  .library-book__copy .library-book__note { margin: 10px 0 13px; font-size: 9px; }
  .library-book .btn { --pad-y: 14px; --pad-x: 12px; min-height: 48px; font-size: 9px; }
  .library-summary { padding-inline: 20px; }
  .library-summary__grid { grid-template-columns: 1fr; }
  .library-summary__grid p { min-height: 67px; }
  .library-summary__grid p + p {
    border-left: 0;
    border-top: 1px solid rgba(201, 161, 95, .22);
  }
  .library-access { min-height: 760px; }
  .library-access__media img { object-position: 54% center; }
  .library-access__media::after { background: rgba(7, 6, 5, .57); }
  .library-access__list { grid-template-columns: repeat(3, 1fr); }
  .library-access__list li { padding: 0 8px; }
  .library-access__list strong { font-size: 8px; letter-spacing: .1em; }
  .library-access__list small { font-size: 9px; }
  .library-access__actions,
  .library-closing__actions { align-items: stretch; }
  .library-footer .footer__inner {
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 430px) {
  .library-hero .hero__title { font-size: 34px; }
  .library-book { grid-template-columns: 37% 63%; }
  .library-book__copy { padding-inline: 13px; }
  .library-book__copy h3 { font-size: 15px; }
  .library-book__copy > p:not(.page-eyebrow) { font-size: 9px; }
  .library-book .btn { letter-spacing: .08em; }
}
