@font-face {
  font-family: "NIGHTSHAPE-UI";
  src: url("assets/NIGHTSHAPE-UI-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Adam";
  src: url("assets/Adam-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Adam";
  src: url("assets/Adam-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #07050f;
  --bg-elevated: #0d0a18;
  --paper: #dad7ff;
  --ink: #e3e0ff;
  --muted: #b6b1dc;
  --muted-2: #8d89b5;
  --line: rgba(184, 181, 238, 0.16);
  --line-strong: rgba(184, 181, 238, 0.38);
  --accent: #b8b5ee;
  --accent-deep: #8b75ff;
  --accent-quiet: rgba(139, 117, 255, 0.16);
  --danger: #e3e0ff;
  --max: 1180px;
  --font-body: "Adam", "Helvetica Neue", Arial, sans-serif;
  --font-nightshape: "NIGHTSHAPE-UI", sans-serif;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  text-transform: uppercase;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 8%, rgba(139, 92, 246, 0.30), transparent 34rem),
    radial-gradient(circle at 18% 64%, rgba(104, 65, 214, 0.18), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.22em; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
input::placeholder { text-transform: none; }
.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  background: rgba(18, 14, 35, 0.98);
  color: var(--ink);
  border: 1px solid rgba(184, 181, 238, 0.45);
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  text-transform: uppercase;

  /* Hidden until keyboard focus; prevents the pill from sitting over the header on load. */
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus-visible {
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 5, 15, 0.82);
  backdrop-filter: blur(18px);
}
.brand, .nav a, .eyebrow, .button, label, .index, .microcopy, .footer {
  font-family: var(--font-nightshape);
}
.brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.82rem;
}
.nav { display: flex; gap: clamp(0.75rem, 3vw, 1.8rem); }
.nav a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.nav a:hover { color: var(--ink); }
.section {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  padding: clamp(4.5rem, 8vw, 8rem) 0;
}
.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  padding-top: clamp(3.25rem, 6vw, 5.75rem);
  padding-bottom: clamp(3rem, 6vw, 6rem);
}
.hero__copy { max-width: 720px; }
.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
h1, h2, h3 {
  font-family: var(--font-nightshape);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--ink);
}
h1 {
  margin: 0;
  max-width: 13.5ch;
  font-size: clamp(3.4rem, 7.2vw, 6.8rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 850;
}
h3 {
  margin: 0 0 0.75rem;
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
p { margin: 0; }
.lede {
  margin-top: 1.6rem;
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-top: 2rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.button--primary {
  border-color: rgba(184, 181, 238, 0.62);
  background: linear-gradient(135deg, rgba(184, 181, 238, 0.22), rgba(139, 117, 255, 0.18));
  color: var(--ink);
}
.button--primary:hover { color: var(--ink); background: linear-gradient(135deg, rgba(184, 181, 238, 0.30), rgba(139, 117, 255, 0.24)); }
.button--secondary {
  color: var(--ink);
  background: rgba(184, 181, 238, 0.035);
}
.button--secondary:hover { border-color: var(--accent); color: var(--ink); }
.button--full { width: 100%; margin-top: 1.8rem; }
.microcopy {
  margin-top: 1rem;
  color: var(--muted-2);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.hero__cover {
  position: relative;
  margin: 0;
  justify-self: center;
}
.hero__cover::before {
  content: "";
  position: absolute;
  inset: 4% -8% -4% 8%;
  z-index: -1;
  background: radial-gradient(ellipse, rgba(126, 121, 214, 0.32), transparent 62%);
  filter: blur(30px);
}
.hero__cover img {
  width: min(360px, 72vw);
  border: 1px solid rgba(184, 181, 238, 0.18);
  box-shadow: var(--shadow);
  transform: perspective(1200px) rotateY(-8deg) rotateX(2deg);
}
.thesis {
  border-block: 1px solid var(--line);
  text-align: center;
}
.thesis p {
  max-width: 880px;
  margin-inline: auto;
  font-size: clamp(2rem, 4.4vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
  font-family: var(--font-nightshape);
  font-weight: 850;
}
.section-heading { max-width: 760px; margin-bottom: 3rem; }
.section-heading p:not(.eyebrow) {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 1.1rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature-card {
  min-height: 250px;
  padding: 1.5rem;
  background: rgba(12, 13, 19, 0.82);
}
.index {
  display: block;
  margin-bottom: 3.2rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.feature-card p, .split__body, .buy-notes, .sample__copy p { color: var(--muted); font-weight: 300; }
.split {
  display: grid;
  grid-template-columns: 0.88fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  border-top: 1px solid var(--line);
}
.split__body { font-size: 1.08rem; }
.check-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 1.45rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.48rem;
  height: 0.48rem;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}

.origin {
  border-top: 1px solid var(--line);
}
.origin-card {
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.16), rgba(184, 181, 238, 0.025));
  box-shadow: var(--shadow);
}
.origin-card h2 {
  max-width: 10ch;
}
.origin-card p:not(.eyebrow) {
  margin-top: 1.25rem;
  color: var(--muted);
  font-weight: 300;
  font-size: clamp(1.08rem, 1.8vw, 1.26rem);
}

.sample {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  border-top: 1px solid var(--line);
}
.sample-form { margin-top: 1.8rem; }
.sample-form label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.form-row { display: flex; gap: 0.65rem; }
input[type="email"] {
  min-width: 0;
  text-transform: none;
  width: 100%;
  min-height: 3.2rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(184, 181, 238, 0.035);
  color: var(--ink);
}
input[type="email"]::placeholder {
  color: rgba(182, 177, 220, 0.72);
}
input[type="email"]:-webkit-autofill,
input[type="email"]:-webkit-autofill:hover,
input[type="email"]:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px #0d0a18 inset;
  border-color: var(--line-strong);
  caret-color: var(--ink);
}
button[type="submit"] {
  min-height: 3.2rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(184, 181, 238, 0.22), rgba(139, 117, 255, 0.18));
  color: var(--ink);
  font-family: var(--font-nightshape);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
button[type="submit"]:hover {
  background: linear-gradient(135deg, rgba(184, 181, 238, 0.30), rgba(139, 117, 255, 0.25));
}
.hidden { display: none; }
.text-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  font-family: var(--font-nightshape);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.excerpt {
  margin: 0;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.17), rgba(184, 181, 238, 0.03));
  box-shadow: var(--shadow);
}
.excerpt p {
  color: var(--ink);
  font-size: clamp(1.7rem, 3.4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-family: var(--font-nightshape);
  font-weight: 800;
}
.chapter-list { border-top: 1px solid var(--line); }
.toc {
  columns: 2;
  column-gap: clamp(2rem, 5vw, 5rem);
  margin: 0;
  padding-left: 1.4rem;
  color: var(--muted);
}
.toc li { break-inside: avoid; margin-bottom: 0.55rem; padding-left: 0.2rem; }
.buy {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  border-top: 1px solid var(--line);
}
.buy-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.18), rgba(184, 181, 238, 0.035));
  box-shadow: var(--shadow);
}
.price {
  margin-top: 1rem;
  font-family: var(--font-nightshape);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--accent);
}
.buy-notes h3 { margin-top: 0; }
.buy-notes h3 + p { margin-bottom: 2rem; }
.footer {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.minimal-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1rem;
}
.thank-you {
  width: min(720px, 100%);
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px solid var(--line-strong);
  background: rgba(12, 13, 19, 0.82);
  box-shadow: var(--shadow);
}
.thank-you h1 { font-size: clamp(3rem, 8vw, 6rem); }
.thank-you p:not(.eyebrow) { margin-top: 1.2rem; color: var(--muted); }
@media (max-width: 920px) {
  .hero, .split, .sample, .buy { grid-template-columns: 1fr; }
  .hero__cover { order: -1; }
  .hero__cover img { width: min(300px, 68vw); transform: none; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc { columns: 1; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .site-header { align-items: flex-start; }
  .nav { gap: 0.75rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .footer { flex-direction: column; }
  h1 { font-size: clamp(3rem, 15vw, 4.6rem); max-width: 10.8ch; }
  .section { width: min(100% - 1.25rem, var(--max)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* NIGHTSHAPE branding */
.nightshape-mark {
  font-family: var(--font-nightshape);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Swirl canvas */
#swirl-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}
body > *:not(#swirl-canvas) { position: relative; z-index: 1; }

/* Layout correction pass: keep first screen balanced and browseable. */
body {
  overflow-x: hidden;
}
.site-header {
  min-height: 4.5rem;
}
.section {
  padding: clamp(3.5rem, 6vw, 6rem) 0;
}
.hero.section {
  width: min(1120px, calc(100% - 2rem));
}
.hero {
  min-height: calc(100vh - 4.5rem);
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.62fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.75rem);
  padding-top: clamp(2rem, 4vw, 3.75rem);
  padding-bottom: clamp(2rem, 4vw, 3.75rem);
}
.hero__copy {
  max-width: 620px;
}
h1 {
  max-width: 12ch;
  font-size: clamp(3.1rem, 5.15vw, 5.25rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}
.lede {
  max-width: 38rem;
  margin-top: 1.15rem;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.58;
}
.cta-row {
  margin-top: 1.45rem;
}
.microcopy {
  margin-top: 0.75rem;
}
.hero__cover {
  align-self: center;
}
.hero__cover img {
  width: min(330px, 27vw);
  max-height: min(68vh, 520px);
  object-fit: contain;
}
.eyebrow {
  margin-bottom: 0.85rem;
}

@media (min-width: 1280px) {
  .hero.section {
    width: min(1180px, calc(100% - 4rem));
  }
  h1 {
    font-size: clamp(4rem, 4.85vw, 5.65rem);
  }
  .hero__cover img {
    width: min(360px, 25vw);
    max-height: min(70vh, 560px);
  }
}

@media (max-width: 920px) {
  .hero {
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
  }
  .hero__cover {
    order: 0;
    justify-self: start;
  }
  .hero__cover img {
    width: min(260px, 62vw);
    max-height: none;
  }
  h1 {
    max-width: 11ch;
    font-size: clamp(3rem, 11vw, 4.7rem);
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 4rem;
  }
  .hero {
    gap: 2rem;
  }
  .hero__cover img {
    width: min(230px, 68vw);
  }
  h1 {
    font-size: clamp(2.7rem, 13vw, 4rem);
    max-width: 10ch;
  }
}
