:root {
  --ink: #020304;
  --soft-black: #07090b;
  --panel: #0d1013;
  --ivory: #f4f7f8;
  --muted: #8f989f;
  --line: rgba(226, 238, 242, 0.16);
  --gold: #64dce7;
  --gold-bright: #a5f5fb;
  --signal: #a92f43;
  --signal-bright: #c64157;
  --hero-close: 0%;
  --hero-progress: 0;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

html, body { overflow-x: clip; }
[hidden] { display: none !important; }

body.modal-open { overflow: hidden; }

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.site-shell {
  width: min(1320px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  mix-blend-mode: difference;
}

.site-header .site-shell,
.site-footer .site-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
}

.wordmark-x {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid currentColor;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0;
}

.text-cta,
.analysis-learn,
.back-button {
  border: 0;
  background: none;
  cursor: pointer;
}

.text-cta {
  padding: 10px 0;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.text-cta span { color: var(--gold-bright); }

.hero-scroll { height: 190vh; }

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #080808;
}

.hero-underlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 72% 40%, rgba(73, 213, 226, 0.13), transparent 28%),
    #080808;
}

.hero-underlay::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(100, 220, 231, 0.2);
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-underlay span {
  color: #4b6065;
  font-family: inherit;
  font-size: clamp(2.2rem, 6vw, 7rem);
  font-weight: 650;
  letter-spacing: -0.05em;
}

.hero-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 var(--hero-close) 0 0);
  will-change: clip-path;
  background:
    radial-gradient(circle at 70% 44%, rgba(60, 205, 220, 0.2), transparent 34%),
    linear-gradient(135deg, #0c1012, #020304 70%);
}

.hero-video,
.hero-shade,
.hero-noise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video { object-fit: cover; }

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.38) 52%, rgba(0, 0, 0, 0.68) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent 48%);
}

.hero-noise {
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: min(920px, calc(100% - 128px));
  height: 100%;
  margin-left: max(32px, calc((100vw - 1320px) / 2));
  padding-top: 7vh;
  opacity: calc(1 - (var(--hero-progress) * 1.32));
  transform: translateX(calc(var(--hero-progress) * -4vw));
  will-change: opacity, transform;
}

.hero-kicker,
.eyebrow,
.section-index,
.modal-eyebrow {
  margin: 0 0 24px;
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1, h2, blockquote {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 580;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

h1 {
  max-width: 1000px;
  font-size: clamp(3.1rem, 7.1vw, 7.4rem);
  overflow-wrap: break-word;
  text-wrap: balance;
}

h2 {
  max-width: 990px;
  font-size: clamp(2.7rem, 5.8vw, 6.4rem);
  text-wrap: balance;
}

.hero-subhead {
  max-width: 570px;
  margin: 24px 0 0;
  color: rgba(240, 236, 226, 0.72);
  font-size: clamp(0.95rem, 1.2vw, 1.12rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 38px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-light { background: var(--ivory); color: var(--ink); }
.button-light:hover { background: white; }
.button-gold { background: var(--signal); color: white; }
.button-gold:hover { background: var(--signal-bright); }
.button-outline { border-color: var(--line); background: transparent; color: var(--ivory); }
.button-outline:hover { border-color: var(--gold); color: var(--gold-bright); }

.hero-progress {
  position: absolute;
  z-index: 3;
  right: 34px;
  bottom: 32px;
  left: 34px;
  height: 1px;
  background: rgba(255,255,255,0.22);
}

.hero-progress span {
  display: block;
  width: calc(var(--hero-progress) * 100%);
  height: 100%;
  background: var(--gold-bright);
}

.section {
  position: relative;
  padding: clamp(110px, 15vw, 220px) 0;
  border-top: 1px solid var(--line);
}

.manifesto {
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    #0b0e10;
  background-size: 64px 64px;
  color: var(--ivory);
}
.manifesto .eyebrow { color: var(--gold); }

.split-intro,
.section-heading,
.statement-grid {
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(0, 3fr);
  gap: 8vw;
}

.section-index { color: #777269; }

.large-copy {
  max-width: 720px;
  margin: 48px 0 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 1.75vw, 1.55rem);
  line-height: 1.5;
}

.outcomes { background: var(--ink); }
.section-heading { align-items: end; margin-bottom: 90px; }
.section-heading h2 { font-size: clamp(2.6rem, 5vw, 5.5rem); }

.outcome-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.outcome-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 28px 20px;
  align-items: start;
  min-height: 360px;
  padding: 46px;
  background:
    radial-gradient(circle at 88% 90%, rgba(72, 210, 224, 0.08), transparent 30%),
    var(--panel);
}

.outcome-number { color: #69665f; font-size: 0.7rem; letter-spacing: 0.12em; }
.outcome-item .eyebrow { margin: 0; align-self: center; }
.outcome-item > div:last-child { grid-column: 1 / -1; align-self: end; }
.outcome-item h3 {
  margin: 0 0 18px;
  font-family: inherit;
  font-size: clamp(1.75rem, 2.8vw, 3rem);
  font-weight: 400;
  line-height: 1.08;
}
.outcome-item p:last-child { max-width: 650px; margin: 0; color: var(--muted); font-size: 1.02rem; }

.statement { background: #080a0c; }
.statement-grid { grid-template-columns: minmax(120px, 0.5fr) minmax(0, 2fr) minmax(240px, 0.9fr); }
.statement blockquote { font-size: clamp(2.4rem, 4.7vw, 5rem); color: var(--gold-bright); }
.statement-copy { align-self: end; }
.statement-copy p { margin: 0; color: var(--muted); }

.patient-section { overflow: hidden; background: #06080a; color: var(--ivory); }
.patient-grid { display: grid; grid-template-columns: 0.9fr 1.25fr; gap: 9vw; align-items: center; }
.patient-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 620px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    radial-gradient(circle, #15373c 0, #090c0e 52%, #020304 100%);
  background-size: 38px 38px, 38px 38px, auto;
  box-shadow: 0 35px 90px rgba(0,0,0,0.22);
}
.patient-art::after { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(100,220,231,0.34); transform: rotate(45deg); }
.patient-art span { color: var(--gold); font-family: inherit; font-size: clamp(8rem, 19vw, 16rem); font-weight: 650; line-height: 1; }
.patient-section .eyebrow { color: var(--gold); }
.patient-section .large-copy { color: var(--muted); }

.final-cta { min-height: 80vh; display: grid; place-items: center; text-align: center; background: radial-gradient(circle at 50% 45%, #15373c 0, #080c0e 36%, #020304 70%); }
.final-cta .site-shell { display: flex; flex-direction: column; align-items: center; }
.final-cta h2 { max-width: 920px; }
.final-note { color: var(--muted); margin: 20px 0 0; font-size: 0.86rem; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.site-footer p { margin: 0; font-size: 0.72rem; }

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
}

.modal.is-open { display: block; }

.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.78); backdrop-filter: blur(9px); }

.modal-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(760px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: 84px clamp(28px, 6vw, 82px) 64px;
  background: #0e0e0d;
  box-shadow: -30px 0 80px rgba(0,0,0,0.44);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 26px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ivory);
  font-size: 1.5rem;
  cursor: pointer;
}

.analysis-offer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  margin: 0 0 58px;
  padding: 24px 0;
  border-block: 1px solid var(--line);
}

.analysis-offer.is-header-only { grid-template-columns: 1fr; }
.analysis-learn { align-self: start; padding: 1px 0; color: var(--gold-bright); font-size: 0.67rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.analysis-learn span { margin-left: 6px; }
.analysis-offer p { margin: 0; font-family: inherit; font-size: 1.23rem; font-weight: 600; line-height: 1.26; letter-spacing: -0.025em; }
.analysis-detail { display: none; margin-top: 18px; color: var(--muted); font-size: 0.86rem; line-height: 1.6; }
.analysis-offer.is-expanded .analysis-detail { display: block; }

.modal-eyebrow { margin-bottom: 16px; }
.modal h2 { font-size: clamp(2.35rem, 5.4vw, 4.8rem); }
.modal-intro { max-width: 570px; color: var(--muted); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 42px; }
.form-grid label, .code-label { display: flex; flex-direction: column; gap: 9px; }
.form-grid label span, .code-label span { color: #bbb6ac; font-size: 0.68rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.form-full { grid-column: 1 / -1; }

input, textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #3b3934;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--ivory);
  padding: 10px 0 12px;
}
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--gold); }

.form-submit { width: 100%; margin-top: 34px; }
.form-submit:disabled { opacity: 0.55; cursor: wait; transform: none; }
.form-privacy { color: #706d66; font-size: 0.7rem; }
.form-status { min-height: 1.5em; color: #dfa195; font-size: 0.82rem; }
.form-status.is-success { color: #9ec7a4; }

.code-label { max-width: 320px; margin-top: 38px; }
.code-label input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 2rem; letter-spacing: 0.3em; }
.back-button { margin-top: 24px; padding: 8px 0; color: var(--muted); font-size: 0.76rem; }

.success-step { padding-top: 9vh; }
.success-mark { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 34px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-bright); }
.calendar-pending { color: var(--gold-bright); }

.calendar-embed {
  margin-top: 34px;
  border: 1px solid var(--line);
  background: #050708;
}

.calendar-embed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.calendar-embed-bar a { color: var(--gold-bright); text-decoration: none; }
.calendar-embed iframe { display: block; width: 100%; min-height: 680px; border: 0; background: #080a0c; }

@media (max-width: 900px) {
  .site-shell { width: min(100% - 36px, 760px); }
  .site-header .site-shell { min-height: 72px; }
  .text-cta { font-size: 0.6rem; }
  .hero-content { width: calc(100% - 44px); margin-left: 22px; padding-top: 10vh; }
  h1 { font-size: clamp(2.9rem, 12vw, 5.6rem); }
  .split-intro, .section-heading, .statement-grid { grid-template-columns: 1fr; gap: 35px; }
  .section-heading { margin-bottom: 55px; }
  .outcome-item { grid-template-columns: 45px 1fr; gap: 18px 24px; }
  .outcome-item > div:last-child { grid-column: 1 / -1; }
  .statement-copy { max-width: 650px; }
  .patient-grid { grid-template-columns: 1fr; }
  .patient-art { min-height: 420px; }
}

@media (max-width: 600px) {
  .site-shell { width: calc(100% - 32px); }
  .wordmark { gap: 8px; font-size: 0.6rem; }
  .wordmark-x { width: 27px; height: 27px; }
  .text-cta { max-width: 142px; text-align: right; line-height: 1.3; }
  .hero-scroll { height: 172vh; }
  .hero-underlay::before { inset: 18% 10%; }
  .hero-content { width: calc(100% - 32px); margin-left: 16px; }
  h1 { font-size: clamp(2.65rem, 13.8vw, 4.5rem); }
  .hero-kicker { margin-bottom: 15px; }
  .hero-subhead { max-width: 95%; margin-top: 19px; font-size: 0.87rem; }
  .button { min-height: 49px; margin-top: 28px; padding-inline: 21px; font-size: 0.62rem; }
  .hero-progress { right: 18px; bottom: 18px; left: 18px; }
  .section { padding: 100px 0; }
  h2 { font-size: clamp(2.35rem, 12vw, 4rem); }
  .large-copy { margin-top: 30px; font-size: 1.08rem; }
  .outcome-item { padding: 38px 0; }
  .outcome-list { grid-template-columns: 1fr; }
  .outcome-item { min-height: 320px; padding: 34px 26px; }
  .outcome-item .eyebrow { font-size: 0.59rem; }
  .patient-art { min-height: 340px; }
  .site-footer .site-shell { flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; padding: 26px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: auto; }
  .analysis-offer { grid-template-columns: 1fr; gap: 15px; }
  .modal-panel { padding-top: 76px; }
  .calendar-embed-bar { align-items: flex-start; flex-direction: column; }
  .calendar-embed iframe { min-height: 620px; }
}

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