:root {
  --bg: #050505;
  --surface: #0d0d0d;
  --surface-2: #141414;
  --line: rgba(255, 255, 255, 0.13);
  --text: #f5f2eb;
  --muted: #aaa8a3;
  --gold: #d6ae69;
  --gold-2: #f0cf91;
  --green: #b9d6be;
  --page: 1180px;
  --header: 64px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--bg); color: var(--text); }
body.modal-open, body.menu-open { overflow: hidden; }
button, input { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  left: 12px;
  top: 10px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--text);
  color: #000;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.page-shell { width: min(100% - 32px, var(--page)); margin-inline: auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: calc(var(--header) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 5, 5, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}
.site-header.is-scrolled { background: rgba(5, 5, 5, 0.96); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.brand strong { font-size: 12px; letter-spacing: 0.11em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(214, 174, 105, 0.58);
  border-radius: 50%;
  color: var(--gold-2);
  font: 700 10px Georgia, serif;
  letter-spacing: 0.08em;
}
.desktop-nav { display: none; }
.menu-button {
  width: 46px;
  height: 46px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
}
.menu-button span { width: 21px; height: 1.5px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  z-index: 90;
  inset: calc(var(--header) + env(safe-area-inset-top)) 0 0;
  padding: 22px 20px;
  display: grid;
  align-content: start;
  gap: 6px;
  background: rgba(5, 5, 5, 0.98);
}
.mobile-nav a, .mobile-nav button {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  font-weight: 700;
}
.mobile-nav button { margin-top: 10px; justify-content: center; background: var(--gold); color: #0b0906; border-color: var(--gold); }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background: #050505;
}
.hero-image, .hero-shade { position: absolute; inset: 0; }
.hero-image {
  z-index: -3;
  background-image: url("/assets/hero-hvm.webp");
  background-size: auto 58%;
  background-position: 61% 11%;
  background-repeat: no-repeat;
  opacity: .7;
}
.hero-shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(5,5,5,.38) 0%, rgba(5,5,5,.3) 28%, rgba(5,5,5,.98) 57%, #050505 100%),
    linear-gradient(90deg, rgba(5,5,5,.72), transparent 65%);
}
.hero-content {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-top: calc(var(--header) + env(safe-area-inset-top) + 52px);
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  text-align: center;
}
.eyebrow, .section-kicker {
  margin: 0;
  color: var(--gold-2);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 12px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(52px, 16vw, 78px);
  line-height: .84;
  letter-spacing: .005em;
  text-shadow: 0 10px 40px #000;
}
.collab { margin: 0; color: var(--gold-2); font-size: 12px; line-height: 1.55; letter-spacing: .06em; }
.collab strong { font-size: 13px; }
.hero-copy { max-width: 440px; margin: 16px 0 0; color: #dedbd5; font-size: 14px; line-height: 1.55; }
.hero-stats {
  width: 100%;
  max-width: 420px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 20px 0 14px;
  border-block: 1px solid var(--line);
}
.hero-stats span { min-height: 58px; display: grid; place-content: center; gap: 2px; color: var(--muted); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.hero-stats span + span { border-left: 1px solid var(--line); }
.hero-stats strong { color: var(--text); font-size: 16px; line-height: 1; }
.hero-actions { width: 100%; max-width: 420px; }
.value-card {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(214, 174, 105, .64);
  border-radius: 12px;
  background: rgba(6,6,6,.8);
  box-shadow: inset 0 0 28px rgba(214,174,105,.06);
}
.value-card span { display: block; color: var(--gold-2); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.value-card strong { display: block; margin-top: 2px; color: var(--gold-2); font-size: clamp(25px, 8vw, 34px); line-height: 1.05; }
.primary-cta {
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-2), #bd8e45);
  color: #0b0906;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 10px 34px rgba(186,137,64,.2);
  cursor: pointer;
}
.password-line {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 4px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.password-line strong { display: inline-block; margin-left: 5px; color: var(--text); }
.lock-dot { color: var(--gold); font-size: 21px; }

.promise-strip { border-block: 1px solid var(--line); background: #090909; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.promise-grid p { margin: 0; min-height: 86px; padding: 16px 8px; display: grid; align-content: center; gap: 5px; text-align: center; }
.promise-grid p + p { border-left: 1px solid var(--line); }
.promise-grid strong { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.promise-grid span { color: var(--muted); font-size: 10px; line-height: 1.35; }

.section { padding: 72px 0; scroll-margin-top: var(--header); }
.section h2 { margin: 10px 0 0; font-size: clamp(29px, 8vw, 48px); line-height: 1.04; letter-spacing: -.035em; }
.section-lead { max-width: 650px; margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.path { background: #f0eee9; color: #121212; }
.path .section-kicker { color: #815c25; }
.path .section-lead { color: #625f59; }
.stage-grid { display: grid; gap: 10px; margin-top: 28px; }
.stage-grid article { padding: 20px; border: 1px solid rgba(0,0,0,.14); border-radius: 14px; background: rgba(255,255,255,.48); }
.stage-grid span { color: #8c6429; font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.stage-grid h3 { margin: 7px 0 0; font-size: 18px; }
.stage-grid p { margin: 6px 0 0; color: #5f5b54; font-size: 13px; line-height: 1.5; }

.books { background: var(--bg); }
.filters {
  width: calc(100% + 32px);
  margin: 24px -16px 20px;
  padding: 0 16px 6px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  scroll-snap-align: start;
  cursor: pointer;
}
.filters button.is-active { background: var(--gold); border-color: var(--gold); color: #0b0906; }
.book-grid { display: grid; gap: 10px; }
.book-card {
  min-height: 174px;
  padding: 10px;
  display: grid;
  grid-template-columns: 102px 1fr;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, #111, #090909);
  box-shadow: 0 8px 22px rgba(0,0,0,.2);
}
.book-card[hidden] { display: none; }
.book-card img { width: 102px; height: 142px; object-fit: cover; border-radius: 7px; box-shadow: 0 8px 22px #000; }
.book-card > div { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.book-card span { color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.book-card h3 { margin: 5px 0 0; font-size: 22px; line-height: 1; }
.book-card p { margin: 4px 0 0; color: #d5d1c9; font-size: 11px; line-height: 1.35; }
.book-card small { margin: 8px 0 10px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.book-card button {
  min-height: 44px;
  margin-top: auto;
  padding: 0 15px;
  border: 1px solid rgba(214,174,105,.55);
  border-radius: 8px;
  background: transparent;
  color: var(--gold-2);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.book-card button:disabled { opacity: .55; cursor: wait; }
body.is-unlocked .book-card button { background: var(--gold); color: #0b0906; }

.about { border-top: 1px solid var(--line); background: #090909; }
.about-card { padding-block: 6px; }
.about-card > p:not(.section-kicker) { color: var(--muted); line-height: 1.7; }
.about-card ul { margin: 24px 0 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.about-card li { padding: 14px 16px 14px 46px; position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 13px; line-height: 1.45; }
.about-card li::before { content: "✓"; position: absolute; left: 16px; top: 13px; color: var(--gold); font-weight: 900; }

.final-cta { background: radial-gradient(circle at 50% 0%, rgba(214,174,105,.12), transparent 50%), #050505; }
.final-card { padding: 28px 20px; border: 1px solid rgba(214,174,105,.4); border-radius: 18px; text-align: center; }
.final-card p:not(.section-kicker) { color: var(--muted); font-size: 13px; line-height: 1.6; }
.password-display { margin-top: 20px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; }
.password-display span { display: block; color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.password-display strong { display: block; margin-top: 2px; color: var(--gold-2); font-size: 24px; letter-spacing: .08em; }

.site-footer { padding: 34px 0 120px; border-top: 1px solid var(--line); text-align: center; }
.site-footer strong { font-size: 13px; letter-spacing: .14em; }
.site-footer p { max-width: 480px; margin: 12px auto 0; color: var(--text); font-size: 13px; line-height: 1.5; }
.site-footer small { display: block; margin-top: 12px; color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }

.sticky-access {
  position: fixed;
  z-index: 80;
  inset: auto 10px calc(10px + env(safe-area-inset-bottom));
  min-height: 64px;
  padding: 8px 8px 8px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(14,14,14,.94);
  box-shadow: 0 16px 50px rgba(0,0,0,.55);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 26px));
}
.sticky-access.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.sticky-access div { display: grid; gap: 3px; }
.sticky-access span { color: var(--muted); font-size: 9px; }
.sticky-access strong { font-size: 12px; }
.sticky-access button { min-height: 46px; padding: 0 17px; border: 0; border-radius: 9px; background: var(--gold); color: #0b0906; font-size: 10px; font-weight: 900; text-transform: uppercase; }
body.is-unlocked .sticky-access { border-color: rgba(185,214,190,.45); }
body.is-unlocked .sticky-access button { background: var(--green); }

.modal { position: fixed; z-index: 300; inset: 0; display: flex; align-items: flex-end; }
.modal-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(0,0,0,.78); backdrop-filter: blur(8px); }
.modal-sheet {
  position: relative;
  width: 100%;
  max-height: calc(100svh - 20px);
  overflow-y: auto;
  padding: 16px 20px calc(24px + env(safe-area-inset-bottom));
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 22px 22px 0 0;
  background: #f3f1ed;
  color: #111;
  text-align: center;
  box-shadow: 0 -18px 60px rgba(0,0,0,.45);
  animation: sheet-in .22s ease-out;
}
.sheet-handle { width: 42px; height: 4px; margin: 0 auto 12px; border-radius: 999px; background: #c8c4bc; }
.modal-close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 0; background: transparent; color: #444; font-size: 26px; }
.modal-lock { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 12px; border: 1px solid #c6a162; border-radius: 50%; color: #875f25; font-size: 27px; }
.modal-sheet .section-kicker { color: #815c25; }
.modal-sheet h2 { margin: 8px 0 0; font-size: 28px; }
.modal-sheet > p { margin: 9px auto 0; max-width: 360px; color: #66615a; font-size: 13px; line-height: 1.55; }
.modal-sheet form { margin-top: 22px; text-align: left; }
.modal-sheet label { display: block; margin-bottom: 7px; color: #4f4b45; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.password-input { display: grid; grid-template-columns: 1fr auto; border: 1px solid #c9c5bd; border-radius: 10px; background: #fff; overflow: hidden; }
.password-input input { min-width: 0; min-height: 52px; padding: 0 14px; border: 0; outline: 0; background: transparent; color: #111; letter-spacing: .06em; text-transform: uppercase; }
.password-input button { min-width: 60px; border: 0; background: transparent; color: #6b655c; font-size: 11px; font-weight: 800; }
.modal-sheet .primary-cta { margin-top: 12px; }
.modal-sheet > small { display: block; margin-top: 14px; color: #7b756d; font-size: 10px; }
.form-status { min-height: 20px; margin: 9px 0 0; text-align: center; font-size: 12px; }
.form-status.error { color: #a22a2a; }
.form-status.success { color: #226b36; }

.toast {
  position: fixed;
  z-index: 350;
  top: calc(var(--header) + env(safe-area-inset-top) + 12px);
  left: 16px;
  right: 16px;
  padding: 14px 16px;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(41,108,58,.24);
  border-radius: 12px;
  background: #e7f2e8;
  color: #16351d;
  box-shadow: 0 14px 40px rgba(0,0,0,.3);
}
.toast strong { font-size: 13px; }
.toast span { font-size: 11px; }

:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@keyframes sheet-in { from { transform: translateY(35px); opacity: .7; } }

@media (min-width: 620px) {
  .page-shell { width: min(100% - 48px, var(--page)); }
  .hero-content { align-items: flex-start; justify-content: center; text-align: left; padding-top: calc(var(--header) + 48px); padding-bottom: 70px; }
  .hero h1 { font-size: clamp(78px, 11vw, 126px); }
  .hero-copy { font-size: 16px; }
  .hero-image { background-size: cover; background-position: 60% center; opacity: .85; }
  .hero-shade { background: linear-gradient(90deg, rgba(5,5,5,.98) 0%, rgba(5,5,5,.8) 34%, rgba(5,5,5,.12) 72%), linear-gradient(0deg, rgba(5,5,5,.74), transparent 45%); }
  .hero-stats, .value-card { max-width: 440px; }
  .hero-actions { max-width: 440px; }
  .primary-cta { width: auto; min-width: 260px; padding-inline: 28px; }
  .password-line { justify-content: flex-start; }
  .stage-grid { grid-template-columns: repeat(2, 1fr); }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .final-card { padding: 50px; }
  .final-card .primary-cta { width: min(100%, 430px); }
  .modal { align-items: center; justify-content: center; padding: 24px; }
  .modal-sheet { width: min(100%, 440px); padding: 28px 32px 32px; border-radius: 20px; }
  .sheet-handle { display: none; }
  .sticky-access { left: 50%; right: auto; width: min(620px, calc(100% - 32px)); transform: translate(-50%, calc(100% + 26px)); }
  .sticky-access.is-visible { transform: translate(-50%, 0); }
}

@media (min-width: 900px) {
  :root { --header: 72px; }
  .site-header { padding-inline: max(24px, calc((100% - var(--page)) / 2)); }
  .menu-button { display: none; }
  .desktop-nav { display: flex; align-items: center; gap: 28px; }
  .desktop-nav a { min-height: 44px; display: flex; align-items: center; color: #d7d3cb; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
  .nav-access { min-height: 44px; padding: 0 20px; border: 1px solid var(--gold); border-radius: 8px; background: var(--gold); color: #0b0906; font-size: 10px; font-weight: 900; text-transform: uppercase; }
  .hero-content { padding-top: calc(var(--header) + 30px); }
  .hero h1 { font-size: clamp(88px, 7.5vw, 116px); }
  .hero-copy { max-width: 500px; }
  .hero-stats { min-height: 52px; margin-block: 14px 12px; }
  .hero-stats span { min-height: 52px; }
  .hero-actions { max-width: 540px; display: grid; grid-template-columns: minmax(230px, 1fr) 240px; gap: 14px; align-items: stretch; }
  .hero-actions .value-card { display: grid; align-content: center; }
  .hero-actions .primary-cta { min-width: 0; margin-top: 0; }
  .stage-grid { grid-template-columns: repeat(4, 1fr); }
  .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .book-card { grid-template-columns: 116px 1fr; min-height: 190px; }
  .book-card img { width: 116px; height: 164px; }
  .about-card { display: grid; grid-template-columns: 1.2fr .8fr; column-gap: 70px; align-items: start; }
  .about-card .section-kicker, .about-card h2 { grid-column: 1; }
  .about-card > p:not(.section-kicker) { grid-column: 1; }
  .about-card ul { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .sticky-access { display: none; }
  .site-footer { padding-bottom: 40px; }
}

@media (min-width: 1180px) {
  .book-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .book-card { grid-template-columns: 96px 1fr; }
  .book-card img { width: 96px; height: 136px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
