:root {
  color-scheme: dark;
  --bg: #05080c;
  --bg-deep: #030507;
  --text: #edf2f5;
  --muted: #aab5bd;
  --quiet: #77838d;
  --line: rgba(222, 237, 247, .36);
  --line-soft: rgba(222, 237, 247, .13);
  --cold: #e5f3fa;
  --page: min(100% - 3rem, 1280px);
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: var(--font-sans);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  background: var(--bg);
}
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 350;
  line-height: 1.65;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(202, 231, 247, .24); color: var(--text); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
p, h1, h2 { margin-top: 0; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: -5rem;
  left: 1rem;
  padding: .8rem 1rem;
  color: var(--bg);
  background: var(--cold);
}
.skip-link:focus { top: 1rem; }

/* Navigation */
.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding-inline: clamp(1.5rem, 4vw, 4rem);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease;
}
.site-header.is-scrolled {
  border-color: var(--line-soft);
  background: rgba(5, 8, 12, .84);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: .85rem; }
.brand-glyph {
  position: relative;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(232, 243, 250, .67);
  border-radius: 50%;
}
.brand-glyph::before,
.brand-glyph::after {
  position: absolute;
  left: 50%;
  width: 1px;
  content: "";
  background: rgba(232, 243, 250, .75);
  transform: translateX(-50%);
}
.brand-glyph::before { top: -6px; height: 14px; }
.brand-glyph::after { bottom: -6px; height: 14px; }
.brand-glyph > span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cold);
  transform: translate(-50%, -50%);
}
.brand-word {
  font-size: .72rem;
  font-weight: 450;
  letter-spacing: .42em;
}
.nav, .site-footer nav { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); }
.nav a, .site-footer nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #bdc7ce;
  font-size: .65rem;
  font-weight: 450;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.nav a:hover, .site-footer nav a:hover { color: var(--text); }
.header-action { justify-self: end; }

/* Type and actions */
.eyebrow {
  margin: 0 0 1.4rem;
  color: #c3cdd3;
  font-size: .66rem;
  font-weight: 450;
  letter-spacing: .32em;
  line-height: 1.5;
  text-transform: uppercase;
}
h1, h2 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -.025em;
  line-height: 1.16;
}
h1 { font-size: clamp(3rem, 4.2vw, 4.8rem); }
h2 { font-size: clamp(2.15rem, 3.3vw, 3.8rem); }
p { color: var(--muted); font-size: clamp(1rem, 1.1vw, 1.13rem); }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.25rem;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(5, 8, 12, .14);
  font-family: var(--font-sans);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .17em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.button:hover {
  border-color: rgba(232, 245, 252, .75);
  background: rgba(220, 239, 249, .08);
}
.button-primary { border-color: rgba(228, 242, 250, .66); color: #f2f7fa; }
.button-secondary { border-color: transparent; color: #c2cdd4; }
.button-secondary:hover { border-color: var(--line-soft); }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; }
.centered { justify-content: center; }
a:focus-visible { outline: 2px solid var(--cold); outline-offset: 4px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Hero — institutional broadcast, not a framed concept board */
.hero {
  position: relative;
  min-height: max(760px, 100svh);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px clamp(1.5rem, 7.3vw, 7.5rem) 78px;
  isolation: isolate;
}
.hero-visual {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 64%;
  height: 100%;
  overflow: hidden;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% center;
  filter: saturate(.74) brightness(.73) contrast(1.08);
}
.hero-visual picture { display: block; width: 100%; height: 100%; }
.hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(5, 8, 12, .94) 9%, rgba(5, 8, 12, .72) 24%, rgba(5, 8, 12, .2) 53%, transparent 80%),
    linear-gradient(0deg, var(--bg) 0%, transparent 19%, transparent 82%, rgba(5, 8, 12, .32) 100%);
}
.hero-copy { width: min(100%, 580px); padding-top: .5rem; }
.hero h1 {
  max-width: 580px;
  margin: 0 0 1.45rem;
  font-size: clamp(3rem, 4.2vw, 4.8rem);
  line-height: 1.07;
}
.hero h1 span { display: block; }
.hero-lede { max-width: 39ch; margin: 0; line-height: 1.8; }
.book-kicker { display: flex; flex-direction: column; gap: .45rem; margin: 2.15rem 0 1.65rem; }
.book-kicker span { color: #aeb9c1; font-size: .65rem; letter-spacing: .28em; text-transform: uppercase; }
.book-kicker strong { color: var(--text); font-size: 1.06rem; font-weight: 400; letter-spacing: .2em; }

/* A pause before the story */
.hook {
  min-height: 78svh;
  display: grid;
  place-items: center;
  padding: 8rem 1.5rem;
  background: #04070a;
  text-align: center;
}
.hook-inner { width: min(100%, 780px); }
.hook h2 { margin: 0 auto; font-size: clamp(2.3rem, 4.1vw, 4.3rem); }
.hook-copy { max-width: 650px; margin: 2.6rem auto 0; }
.hook-copy p { margin: 0 0 .35rem; line-height: 1.85; }
.hook-copy .hook-turn { margin-top: 1.15rem; color: #e4ebef; }

/* The book as a quiet physical artifact */
.book-section {
  width: min(calc(100% - 3rem), 1110px);
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(4rem, 10vw, 9rem);
  margin-inline: auto;
  padding-block: 9rem;
}
.book-cover {
  position: relative;
  width: min(100%, 370px);
  aspect-ratio: .68;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.1rem 1.4rem;
  overflow: hidden;
  border: 1px solid rgba(226, 240, 248, .22);
  background:
    radial-gradient(ellipse at 50% 62%, rgba(132, 164, 182, .13), transparent 34%),
    linear-gradient(145deg, #111820 0%, #070b0f 48%, #0b1116 100%);
  box-shadow: -16px 26px 55px rgba(0, 0, 0, .45);
}
.cover-series, .cover-footer { color: #bec9d0; font-size: .6rem; letter-spacing: .36em; }
.cover-title {
  z-index: 1;
  margin-top: 24%;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 400;
  letter-spacing: .14em;
  line-height: 1.18;
  text-align: center;
}
.cover-mark {
  position: absolute;
  top: 58%;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(227, 241, 249, .74);
  border-radius: 50%;
}
.cover-mark::before, .cover-mark::after {
  position: absolute;
  left: 50%;
  width: 1px;
  height: 33px;
  content: "";
  background: rgba(227, 241, 249, .72);
  transform: translateX(-50%);
}
.cover-mark::before { bottom: 20px; }
.cover-mark::after { top: 20px; }
.cover-mark b {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cold);
  transform: translate(-50%, -50%);
}
.cover-footer { margin-top: auto; }
.book-copy { max-width: 540px; }
.book-copy .eyebrow { margin-bottom: 1.15rem; }
.book-copy h2 { margin: 0 0 .55rem; font-size: clamp(2rem, 3.4vw, 3.45rem); letter-spacing: .04em; }
.book-subtitle { margin: 0 0 2rem; color: #e3e9ed; font-family: var(--font-display); font-size: 1.35rem; }
.book-synopsis { margin: 0 0 2.15rem; outline: none; }
.book-synopsis p { margin: 0 0 .72rem; color: #c2ccd3; line-height: 1.72; }

/* Qyrasi: restrained and unresolved */
.qyrasi {
  position: relative;
  min-height: 75svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  overflow: hidden;
  padding: 5rem 1.5rem;
  text-align: center;
}
.qyrasi-mark {
  position: relative;
  width: clamp(180px, 17vw, 230px);
  height: auto;
  opacity: .52;
  filter: saturate(.12);
  mask-image: radial-gradient(circle, #000 38%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle, #000 38%, transparent 72%);
  flex-shrink: 0;
}
.qyrasi-copy { position: relative; width: min(100%, 670px); }
.qyrasi-copy .eyebrow { margin-bottom: 1.25rem; }
.qyrasi-copy h2 { margin: 0 0 2rem; }
.qyrasi-copy > p:not(.eyebrow) { margin: 0 auto .7rem; line-height: 1.8; }

/* Four statements, no panels or ornament */
.signals { padding-inline: 1.5rem; }
.signal {
  width: min(100%, 900px);
  min-height: 52svh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding-block: 4rem;
  color: #e3eaee;
  font-size: clamp(1.35rem, 2.8vw, 2.55rem);
  font-weight: 350;
  letter-spacing: .13em;
  line-height: 1.55;
  text-align: center;
  text-transform: uppercase;
}

/* A final invitation, then the footer */
.final-cta {
  position: relative;
  min-height: 75svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 7rem 1.5rem;
  background: var(--bg-deep);
  text-align: center;
}
.final-inner { position: relative; width: min(100%, 900px); }
.final-mark {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: min(240px, 42vw);
  opacity: .035;
  filter: saturate(.1);
  transform: translate(-50%, -58%);
}
.final-inner > :not(.final-mark) { position: relative; }
.final-inner .eyebrow { margin-bottom: 1.7rem; }
.final-inner h2 { max-width: 18ch; margin: 0 auto 1.5rem; }
.final-title { margin: 0 0 2rem; color: #e4ebef; font-size: .95rem; letter-spacing: .32em; }
.final-inner .cta-row { gap: .65rem; }

.site-footer {
  min-height: 112px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 1.7rem clamp(1.5rem, 4vw, 4rem);
  border-top: 1px solid var(--line-soft);
  background: var(--bg-deep);
}
.footer-brand { justify-self: start; }
.site-footer nav { flex-wrap: wrap; gap: clamp(1.2rem, 2.4vw, 2.4rem); }
.site-footer nav a { font-size: .59rem; }
.site-footer > p {
  justify-self: end;
  margin: 0;
  color: var(--quiet);
  font-size: .59rem;
  letter-spacing: .2em;
}

/* Progressive, one-time reveals */
.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .86s ease, transform .86s cubic-bezier(.2, .65, .25, 1);
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 1050px) and (min-width: 801px) {
  .site-header { grid-template-columns: 1fr auto auto; gap: 1.4rem; padding-inline: 2rem; }
  .nav { gap: 1.35rem; }
  .hero { padding-inline: 5vw; }
  .hero-visual { width: 67%; }
  .book-section { gap: 4rem; }
}

@media (max-width: 800px) {
  html { scroll-padding-top: 0; }
  .site-header {
    position: relative;
    height: auto;
    min-height: 106px;
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand action" "nav nav";
    gap: .15rem 1rem;
    padding: .65rem 1.2rem .55rem;
    border-bottom-color: var(--line-soft);
    background: rgba(5, 8, 12, .96);
  }
  .brand { grid-area: brand; }
  .header-action { grid-area: action; }
  .nav {
    grid-area: nav;
    gap: 1.3rem;
    justify-self: start;
  }
  .nav a { min-height: 44px; }
  .header-action { min-height: 44px; padding-inline: .85rem; font-size: .57rem; }

  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 3.2rem;
  }
  .hero-copy {
    order: 0;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    padding: 3.8rem 1.4rem 2.6rem;
  }
  .hero-visual {
    position: relative;
    order: 1;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1040 / 630;
  }
  .hero-visual img { object-position: center; }
  .hero-visual::after {
    background: linear-gradient(0deg, var(--bg) 0%, transparent 23%, transparent 80%, var(--bg) 100%);
  }
  .hero h1 { max-width: 15ch; font-size: clamp(2.7rem, 9.5vw, 4.3rem); }
  .hero h1 span { display: block; }
  .hero-lede { max-width: 38ch; }
  .cta-row { align-items: stretch; }
  .cta-row .button { min-height: 48px; }
  .hero .cta-row { flex-direction: column; align-items: flex-start; }
  .hero .cta-row .button { width: min(100%, 340px); }

  .hook { min-height: 78svh; padding-block: 7rem; }
  .hook h2 { font-size: clamp(2rem, 8vw, 3.2rem); }
  .hook-copy { margin-top: 2rem; }
  .book-section {
    width: min(calc(100% - 2.5rem), 620px);
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 3.6rem;
    padding-block: 7rem;
  }
  .book-cover { width: min(320px, 76vw); }
  .book-copy { margin-inline: auto; }
  .book-copy .cta-row { flex-direction: column; align-items: stretch; }
  .book-copy .cta-row .button { width: 100%; }
  .qyrasi { min-height: 75svh; padding-block: 7rem; }
  .qyrasi-mark { width: 190px; }
  .signal { min-height: 40svh; font-size: clamp(1.25rem, 5vw, 2rem); }
  .final-cta { min-height: 75svh; }
  .final-inner .cta-row { flex-direction: column; align-items: stretch; width: min(100%, 360px); margin-inline: auto; }
}

@media (max-width: 520px) {
  .site-header { padding-inline: 1rem; }
  .brand-word { font-size: .64rem; letter-spacing: .34em; }
  .brand { gap: .65rem; }
  .nav { gap: .75rem; }
  .nav a { font-size: .58rem; letter-spacing: .15em; }
  .header-action { padding-inline: .65rem; font-size: .53rem; letter-spacing: .12em; }
  .hero-copy { padding-inline: 1.2rem; }
  .hero h1 { font-size: clamp(2.55rem, 10vw, 3.45rem); }
  .book-section { width: calc(100% - 2.4rem); }
  .book-copy .eyebrow { font-size: .59rem; }
  .book-synopsis p { font-size: .97rem; }
  .site-footer {
    grid-template-columns: 1fr auto;
    gap: .75rem 1rem;
    padding: 1.5rem 1.2rem;
  }
  .site-footer nav { grid-column: 1 / -1; grid-row: 2; }
  .site-footer nav a { min-height: 44px; }
  .site-footer > p { grid-column: 2; grid-row: 1; font-size: .54rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

section[id] { scroll-margin-top: 84px; }
@media (max-width: 800px) { section[id] { scroll-margin-top: 0; } }
