@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/instrument-serif-v5-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/instrument-serif-v5-latin-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/space-grotesk-v22-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/space-grotesk-v22-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/space-grotesk-v22-latin-700.woff2") format("woff2");
}

:root {
  --bg: #f2eee6;
  --bg-top: #f7f3eb;
  --bg-deep: #d9d0c4;
  --glow-teal: rgba(188, 231, 220, 0.8);
  --glow-amber: rgba(255, 212, 168, 0.85);
  --surface: rgba(255, 252, 247, 0.72);
  --surface-strong: rgba(255, 250, 243, 0.9);
  --ink: #1f241e;
  --muted: #5a6057;
  --line: rgba(31, 36, 30, 0.08);
  --grid-line: rgba(255, 255, 255, 0.28);
  --glass-border: rgba(255, 255, 255, 0.56);
  --glass-border-strong: rgba(255, 255, 255, 0.72);
  --header-bg: rgba(255, 250, 243, 0.74);
  --button-primary-end: #324136;
  --button-secondary-border: rgba(31, 36, 30, 0.14);
  --button-secondary-bg: rgba(255, 255, 255, 0.35);
  --highlight-bg:
    linear-gradient(160deg, rgba(255, 250, 243, 0.82), rgba(255, 247, 239, 0.56)),
    linear-gradient(135deg, rgba(188, 231, 220, 0.2), rgba(255, 212, 168, 0.2));
  --hero-panel-bg: rgba(255, 250, 243, 0.55);
  --scene-bg: rgba(255, 250, 243, 0.48);
  --aura-one:
    radial-gradient(circle at 40% 40%, rgba(188, 231, 220, 0.88), transparent 45%),
    radial-gradient(circle at 65% 60%, rgba(217, 92, 107, 0.38), transparent 55%);
  --aura-two:
    radial-gradient(circle at 60% 40%, rgba(255, 212, 168, 0.76), transparent 42%),
    radial-gradient(circle at 45% 65%, rgba(13, 122, 113, 0.24), transparent 58%);
  --bloom-core-border: rgba(255, 255, 255, 0.74);
  --bloom-core-bg:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 244, 230, 0.72)),
    linear-gradient(135deg, rgba(188, 231, 220, 0.78), rgba(255, 212, 168, 0.68));
  --bloom-core-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 50px rgba(31, 36, 30, 0.18);
  --petal-border: rgba(255, 255, 255, 0.62);
  --petal-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 248, 239, 0.45)),
    linear-gradient(135deg, rgba(188, 231, 220, 0.18), rgba(255, 212, 168, 0.22));
  --petal-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 20px 35px rgba(31, 36, 30, 0.12);
  --accent-surface:
    linear-gradient(145deg, rgba(31, 36, 30, 0.94), rgba(31, 36, 30, 0.8)),
    linear-gradient(135deg, rgba(188, 231, 220, 0.2), rgba(255, 212, 168, 0.18));
  --accent-copy: rgba(255, 255, 255, 0.8);
  --cookie-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 250, 243, 0.5)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(188, 231, 220, 0.16));
  --cookie-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 24px 60px rgba(36, 32, 25, 0.16);
  --cookie-overlay:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 34%),
    linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.38) 50%, transparent 72%);
  --cookie-text: rgba(31, 36, 30, 0.78);
  --teal: #0d7a71;
  --teal-soft: #bce7dc;
  --amber: #e88d35;
  --amber-soft: #ffd4a8;
  --rose: #d95c6b;
  --shadow: 0 30px 80px rgba(36, 32, 25, 0.12);
}

:root[data-theme="dark"] {
  --bg: #0e1513;
  --bg-top: #192420;
  --bg-deep: #060907;
  --glow-teal: rgba(13, 122, 113, 0.28);
  --glow-amber: rgba(232, 141, 53, 0.2);
  --surface: rgba(14, 20, 19, 0.76);
  --surface-strong: rgba(20, 28, 26, 0.96);
  --ink: #edf5ee;
  --muted: #b3c0b6;
  --line: rgba(237, 245, 238, 0.1);
  --grid-line: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(180, 208, 197, 0.2);
  --glass-border-strong: rgba(180, 208, 197, 0.24);
  --header-bg: rgba(10, 15, 14, 0.78);
  --button-primary-end: #0d7a71;
  --button-secondary-border: rgba(237, 245, 238, 0.14);
  --button-secondary-bg: rgba(255, 255, 255, 0.04);
  --highlight-bg:
    linear-gradient(160deg, rgba(13, 19, 18, 0.86), rgba(17, 25, 23, 0.72)),
    linear-gradient(135deg, rgba(13, 122, 113, 0.16), rgba(232, 141, 53, 0.14));
  --hero-panel-bg: rgba(15, 22, 21, 0.72);
  --scene-bg: rgba(10, 15, 14, 0.68);
  --aura-one:
    radial-gradient(circle at 40% 40%, rgba(13, 122, 113, 0.42), transparent 45%),
    radial-gradient(circle at 65% 60%, rgba(217, 92, 107, 0.18), transparent 55%);
  --aura-two:
    radial-gradient(circle at 60% 40%, rgba(232, 141, 53, 0.34), transparent 42%),
    radial-gradient(circle at 45% 65%, rgba(13, 122, 113, 0.16), transparent 58%);
  --bloom-core-border: rgba(188, 231, 220, 0.22);
  --bloom-core-bg:
    radial-gradient(circle at 30% 30%, rgba(37, 49, 46, 0.98), rgba(16, 23, 21, 0.88)),
    linear-gradient(135deg, rgba(13, 122, 113, 0.42), rgba(232, 141, 53, 0.24));
  --bloom-core-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 50px rgba(0, 0, 0, 0.34);
  --petal-border: rgba(188, 231, 220, 0.14);
  --petal-bg:
    linear-gradient(180deg, rgba(21, 29, 27, 0.9), rgba(13, 19, 18, 0.76)),
    linear-gradient(135deg, rgba(13, 122, 113, 0.14), rgba(232, 141, 53, 0.1));
  --petal-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 20px 35px rgba(0, 0, 0, 0.24);
  --accent-surface:
    linear-gradient(145deg, rgba(7, 10, 9, 0.98), rgba(12, 17, 16, 0.92)),
    linear-gradient(135deg, rgba(13, 122, 113, 0.16), rgba(232, 141, 53, 0.14));
  --accent-copy: rgba(255, 255, 255, 0.82);
  --cookie-bg:
    linear-gradient(180deg, rgba(15, 22, 21, 0.98), rgba(10, 15, 14, 0.9)),
    linear-gradient(135deg, rgba(13, 122, 113, 0.12), rgba(232, 141, 53, 0.08));
  --cookie-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 60px rgba(0, 0, 0, 0.34);
  --cookie-overlay:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 34%),
    linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.04) 50%, transparent 72%);
  --cookie-text: rgba(237, 245, 238, 0.78);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, var(--glow-teal), transparent 32%),
    radial-gradient(circle at 85% 10%, var(--glow-amber), transparent 26%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 40%, var(--bg-deep) 100%);
  transition:
    background-color 220ms ease,
    color 220ms ease,
    background 220ms ease;
}

body.has-modal {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 88%);
  opacity: 0.35;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 3rem;
}

.site-header {
  position: sticky;
  top: 1.25rem;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.brand,
.header-actions,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.header-actions {
  gap: 0.75rem;
}

.brand-mark {
  width: 0.9rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--amber));
  box-shadow:
    0 0 0 0.4rem rgba(13, 122, 113, 0.12),
    0 0 30px rgba(232, 141, 53, 0.35);
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav {
  gap: 1rem;
}

.site-nav a.is-current {
  color: var(--ink);
  font-weight: 700;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--button-secondary-border);
  border-radius: 999px;
  background: var(--button-secondary-bg);
  color: var(--ink);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-2px);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.theme-toggle__icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

:root[data-theme="dark"] .theme-toggle {
  color: #ffd37a;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section {
  padding: 4rem 0;
}

.hero {
  display: grid;
  gap: 2rem;
  min-height: auto;
}

.subpage-main {
  padding-top: 1.5rem;
}

.subpage-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
  gap: 1.5rem;
  align-items: center;
  min-height: calc(100vh - 14rem);
}

.subpage-copy h1 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(3rem, 7vw, 6.4rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.subpage-highlight {
  padding: 2rem;
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  background: var(--highlight-bg);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.subpage-highlight h2 {
  margin: 0.4rem 0 1.4rem;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
}

.legal-page {
  display: grid;
  gap: 1.5rem;
}

.legal-backlink {
  justify-self: start;
}

.legal-layout {
  display: grid;
  gap: 1.5rem;
}

.legal-panel {
  padding: 2rem;
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  background: var(--highlight-bg);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.legal-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-panel p,
.legal-panel li {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.legal-panel a {
  color: inherit;
}

.legal-copy {
  display: grid;
  gap: 0.4rem;
}

.legal-copy + .legal-copy {
  margin-top: 1rem;
}

.legal-prose {
  max-width: 44rem;
  margin: 2rem auto 3rem;
  padding: 0 0.25rem;
  color: var(--ink);
  line-height: 1.7;
  font-size: 1rem;
}

.legal-prose h1 {
  margin: 0 0 1.5rem;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.legal-prose h2 {
  margin: 2.4rem 0 0.75rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.legal-prose p,
.legal-prose ul,
.legal-prose ol {
  margin: 0 0 1rem;
  color: var(--muted);
}

.legal-prose ul,
.legal-prose ol {
  padding-left: 1.25rem;
}

.legal-prose li {
  margin-bottom: 0.4rem;
}

.legal-prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.legal-prose a:hover,
.legal-prose a:focus-visible {
  text-decoration-thickness: 2px;
}

.legal-prose code {
  padding: 0.1rem 0.4rem;
  border-radius: 0.35rem;
  background: var(--button-secondary-bg);
  border: 1px solid var(--line);
  font-size: 0.9em;
}

.legal-prose__meta {
  margin-top: 2.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  opacity: 0.85;
}

.site-footer {
  padding: 0 0 2.5rem;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--glass-border);
  color: var(--muted);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer__links a {
  color: inherit;
  text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  text-decoration: underline;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

.insight-card h2,
.section-heading h2,
.cta-card h2 {
  margin: 0;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.hero-top {
  display: grid;
  gap: 1rem;
}

.selfcheck-section--hero {
  margin: 0.5rem 0 1.5rem;
}

.selfcheck-section--hero .section-heading {
  margin-bottom: 1.5rem;
}

.vapor-hero {
  position: relative;
  min-height: clamp(13rem, 30vw, 22rem);
  border-radius: 2rem;
  overflow: hidden;
}

.vapor-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.vapor-seo {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-subline {
  margin: 0;
  max-width: 17ch;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.hero-lead,
.insight-card p,
.info-card p,
.model-panel p,
.timeline-step p,
.cta-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.hero-lead {
  max-width: 35rem;
  margin: 1.5rem 0 0;
}

.hero-lead-wide {
  max-width: 42rem;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--ink), var(--button-primary-end));
  box-shadow: 0 18px 40px rgba(31, 36, 30, 0.2);
}

.button-secondary {
  border: 1px solid var(--button-secondary-border);
  background: var(--button-secondary-bg);
}

.hero-proof {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-proof li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
}

.hero-proof li::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--amber));
}

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(18rem, 0.42fr) minmax(0, 0.58fr);
  align-items: start;
  gap: 2rem;
}

.hero-proof-large {
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  background: var(--hero-panel-bg);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.scene-frame {
  position: relative;
  width: min(100%, 34rem);
  padding: 1.5rem;
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  background: var(--scene-bg);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.scene-copy {
  position: relative;
  z-index: 2;
  max-width: 18rem;
}

.scene-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.scene-title {
  margin: 0.4rem 0 0;
  font-size: 1.25rem;
  line-height: 1.35;
}

.bloom-scene {
  --rotate-x: 16deg;
  --rotate-y: -10deg;
  position: relative;
  height: 34rem;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.bloom-aura,
.bloom-core,
.petal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-style: preserve-3d;
}

.bloom-aura {
  width: 19rem;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.76;
  transform:
    translate3d(-50%, -50%, -120px)
    rotateX(var(--rotate-x))
    rotateY(var(--rotate-y));
}

.bloom-aura-one {
  background: var(--aura-one);
}

.bloom-aura-two {
  width: 22rem;
  background: var(--aura-two);
}

.bloom-core {
  display: grid;
  place-items: center;
  width: 11rem;
  aspect-ratio: 1;
  padding: 1.2rem;
  border: 1px solid var(--bloom-core-border);
  border-radius: 50%;
  background: var(--bloom-core-bg);
  box-shadow: var(--bloom-core-shadow);
  transform:
    translate3d(-50%, -50%, 60px)
    rotateX(var(--rotate-x))
    rotateY(var(--rotate-y));
}

.bloom-core span {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.15;
}

.petal-ring {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.petal {
  width: 10.8rem;
  padding: 1rem;
  border: 1px solid var(--petal-border);
  border-radius: 1.6rem;
  background: var(--petal-bg);
  box-shadow: var(--petal-shadow);
  backdrop-filter: blur(12px);
  will-change: transform;
}

.petal-kicker {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.petal strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
  line-height: 1.18;
}

.petal p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.insight-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1.5rem;
}

.insight-card,
.metric-card,
.info-card,
.model-panel,
.timeline-step,
.cta-card,
.story-carousel,
.story-card,
.selfcheck-entry,
.selfcheck-entry__preview-card,
.selfcheck-panel,
.selfcheck-result {
  border: 1px solid var(--glass-border);
  background: var(--surface);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.insight-card {
  padding: 2rem;
  border-radius: 2rem;
}

.insight-card h2,
.section-heading h2,
.cta-card h2 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 400;
}

.metric-grid {
  display: grid;
  gap: 1rem;
}

.metric-card {
  display: grid;
  gap: 0.55rem;
  padding: 1.6rem;
  border-radius: 1.7rem;
}

.metric-card strong {
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.metric-card span {
  color: var(--muted);
  line-height: 1.5;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-bridge {
  max-width: 38rem;
  margin: 1.15rem 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.cards,
.model-layout,
.timeline,
.referral-layout,
.referral-steps {
  display: grid;
  gap: 1rem;
}

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.model-panel,
.timeline-step {
  padding: 1.7rem;
  border-radius: 1.75rem;
}

.info-card h3,
.model-panel h3,
.timeline-step h3 {
  margin: 0 0 0.8rem;
  font-size: 1.1rem;
}

.model-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.model-panel ul {
  margin: 1rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.accent-panel {
  background: var(--accent-surface);
  color: white;
}

.accent-panel p,
.accent-panel .quote {
  color: var(--accent-copy);
}

.text-link {
  display: inline-flex;
  margin-top: 1rem;
  color: white;
  font-weight: 700;
}

.quote {
  margin: 1rem 0 1.2rem;
  font-family: "Instrument Serif", serif;
  font-size: 1.8rem;
  line-height: 1.2;
}

.timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.referral-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: start;
}

.referral-steps {
  grid-template-columns: 1fr;
}

.referral-panel {
  padding: 1.7rem;
  border: 1px solid var(--glass-border);
  border-radius: 1.9rem;
  background: var(--surface);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.referral-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1.08rem;
}

.referral-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.referral-offer {
  background: var(--accent-surface);
  color: white;
}

.referral-offer .quote,
.referral-offer p {
  color: var(--accent-copy);
}

.referral-kicker,
.referral-step {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.referral-step {
  color: var(--amber);
}

.referral-actions {
  margin-bottom: 0;
}

.timeline-step span {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.cta-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  border-radius: 2.25rem;
}

.contact-card {
  display: grid;
  gap: 0.65rem;
  padding: 1.6rem;
  border-radius: 1.7rem;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.contact-name {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.contact-card a:not(.button),
.contact-card p {
  margin: 0;
  color: var(--muted);
}

.story-carousel {
  display: grid;
  gap: 1.2rem;
  padding: 1.5rem;
  border-radius: 2rem;
}

.story-carousel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.story-carousel__hint,
.story-carousel__counter {
  margin: 0;
}

.story-carousel__hint {
  color: var(--muted);
  line-height: 1.6;
}

.story-carousel__counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(31, 36, 30, 0.08);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.story-carousel__viewport {
  overflow: hidden;
  border-radius: 1.8rem;
}

.story-carousel__track,
.selfcheck-questions {
  display: grid;
}

.story-carousel__track {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  transition: transform 320ms ease;
  will-change: transform;
}

.selfcheck-question {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(18px);
  transition:
    opacity 280ms ease,
    transform 280ms ease,
    visibility 280ms ease;
}

.story-card {
  display: grid;
  flex: 0 0 100%;
  gap: 1rem;
  min-height: 27rem;
  padding: 1.9rem;
  border-radius: 1.8rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.3), rgba(255, 247, 239, 0.12)),
    linear-gradient(135deg, rgba(188, 231, 220, 0.12), rgba(255, 212, 168, 0.14));
  transition:
    transform 240ms ease,
    opacity 240ms ease;
}

.story-card:not(.is-active) {
  opacity: 0.52;
  transform: scale(0.985);
}

.story-card.is-active {
  opacity: 1;
  transform: scale(1);
}

.selfcheck-question.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.story-card__kicker,
.selfcheck-question__label,
.selfcheck-step,
.selfcheck-status,
.selfcheck-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: rgba(13, 122, 113, 0.1);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-card h3,
.selfcheck-question h3,
.selfcheck-result h3 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.story-card p,
.story-card li,
.selfcheck-question p,
.selfcheck-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.story-card__list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-card__list li {
  position: relative;
  padding-left: 1.35rem;
}

.story-card__list li::before {
  content: "";
  position: absolute;
  top: 0.62rem;
  left: 0;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--amber));
}

.story-carousel__footer,
.story-carousel__controls,
.story-carousel__pagination,
.selfcheck-actions,
.selfcheck-tags,
.selfcheck-entry__facts,
.selfcheck-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.story-carousel__footer {
  justify-content: space-between;
  align-items: center;
}

.story-carousel__button,
.selfcheck-nav-button {
  min-width: 8.5rem;
}

.story-carousel__pagination {
  justify-content: flex-end;
}

.story-carousel__dot {
  width: 0.82rem;
  height: 0.82rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 36, 30, 0.18);
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.story-carousel__dot.is-active {
  background: linear-gradient(135deg, var(--teal), var(--amber));
  transform: scale(1.1);
}

.selfcheck-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.selfcheck-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
  gap: 1rem;
  padding: 1.6rem;
  border-radius: 2rem;
}

.selfcheck-entry__intro,
.selfcheck-entry__preview,
.selfcheck-entry__preview-card {
  display: grid;
}

.selfcheck-entry__intro,
.selfcheck-entry__preview-card {
  gap: 1rem;
}

.selfcheck-entry__kicker,
.selfcheck-entry__preview-label {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: rgba(13, 122, 113, 0.1);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.selfcheck-entry h3,
.selfcheck-modal__header h2 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.selfcheck-entry p,
.selfcheck-entry__preview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.selfcheck-entry__facts span {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.selfcheck-entry__actions {
  margin-top: 0.35rem;
}

.selfcheck-entry__preview {
  align-items: stretch;
}

.selfcheck-entry__preview-card {
  padding: 1.5rem;
  border-radius: 1.7rem;
  background:
    linear-gradient(145deg, rgba(31, 36, 30, 0.96), rgba(31, 36, 30, 0.84)),
    linear-gradient(135deg, rgba(188, 231, 220, 0.14), rgba(255, 212, 168, 0.1));
  color: white;
}

.selfcheck-entry__preview-card h3 {
  color: white;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.selfcheck-entry__preview-card p {
  color: rgba(255, 255, 255, 0.78);
}

.selfcheck-entry__preview-label {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}

.selfcheck-entry__scale {
  display: grid;
  gap: 0.75rem;
}

.selfcheck-entry__scale span {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.selfcheck-entry__scale > span:last-child {
  justify-self: end;
}

.selfcheck-entry__track {
  position: relative;
  height: 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.selfcheck-entry__track span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--teal-soft), var(--amber-soft));
}

.selfcheck-panel,
.selfcheck-result {
  padding: 1.6rem;
  border-radius: 2rem;
}

.selfcheck-panel {
  display: grid;
  gap: 1.2rem;
}

.selfcheck-progress {
  display: grid;
  gap: 0.85rem;
}

.selfcheck-step,
.selfcheck-status {
  margin: 0;
}

.selfcheck-progressbar,
.selfcheck-meter__track {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31, 36, 30, 0.08);
}

.selfcheck-progressbar {
  height: 0.7rem;
}

.selfcheck-progressbar span,
.selfcheck-meter__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--teal), var(--amber));
  transition: width 220ms ease;
}

.selfcheck-question {
  display: grid;
  gap: 1rem;
  min-height: 22rem;
  padding: 0.5rem 0 0;
}

.score-scale {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

.score-scale__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.score-scale__header strong {
  color: var(--ink);
  font-size: 1rem;
}

.score-scale__labels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.score-slider {
  --slider-progress: 50%;
  width: 100%;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.score-slider::-webkit-slider-runnable-track {
  height: 0.9rem;
  border-radius: 999px;
  background:
    linear-gradient(135deg, var(--teal), var(--amber)) 0 / var(--slider-progress) 100% no-repeat,
    rgba(31, 36, 30, 0.08);
}

.score-slider::-moz-range-track {
  height: 0.9rem;
  border-radius: 999px;
  background: rgba(31, 36, 30, 0.08);
}

.score-slider::-moz-range-progress {
  height: 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--amber));
}

.score-slider::-webkit-slider-thumb {
  appearance: none;
  width: 1.45rem;
  height: 1.45rem;
  margin-top: -0.28rem;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 10px 24px rgba(31, 36, 30, 0.2);
}

.score-slider::-moz-range-thumb {
  width: 1.45rem;
  height: 1.45rem;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 10px 24px rgba(31, 36, 30, 0.2);
}

.story-carousel__dot:hover,
.story-carousel__dot:focus-visible {
  transform: translateY(-2px);
}

.score-slider:focus-visible,
.story-carousel__dot:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.selfcheck-actions {
  justify-content: space-between;
}

.selfcheck-nav-button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.selfcheck-result {
  display: grid;
  gap: 1rem;
  align-content: start;
  background:
    linear-gradient(145deg, rgba(31, 36, 30, 0.96), rgba(31, 36, 30, 0.84)),
    linear-gradient(135deg, rgba(188, 231, 220, 0.14), rgba(255, 212, 168, 0.1));
  color: white;
}

.selfcheck-result .eyebrow,
.selfcheck-result h3,
.selfcheck-result .selfcheck-score {
  margin: 0;
  color: white;
}

.selfcheck-meter {
  display: grid;
  gap: 0.55rem;
}

.selfcheck-meter__track {
  height: 1rem;
  background: rgba(255, 255, 255, 0.14);
}

.selfcheck-meter__labels {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.selfcheck-score {
  font-size: clamp(2.2rem, 6vw, 3.7rem);
  font-weight: 700;
  letter-spacing: -0.06em;
}

.selfcheck-status {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

.selfcheck-copy {
  color: rgba(255, 255, 255, 0.82);
}

.selfcheck-tag {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
}

.selfcheck-result__actions {
  margin-top: 0.25rem;
}

.selfcheck-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.selfcheck-modal[hidden] {
  display: none;
}

.selfcheck-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 7, 0.66);
  backdrop-filter: blur(10px);
}

.selfcheck-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-height: min(92vh, 980px);
  overflow: auto;
  padding: 1.4rem;
  border: 1px solid var(--glass-border-strong);
  border-radius: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.92), rgba(255, 248, 241, 0.82)),
    linear-gradient(135deg, rgba(188, 231, 220, 0.18), rgba(255, 212, 168, 0.16));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .selfcheck-modal__dialog {
  background:
    linear-gradient(180deg, rgba(12, 18, 16, 0.96), rgba(9, 14, 13, 0.92)),
    linear-gradient(135deg, rgba(13, 122, 113, 0.16), rgba(232, 141, 53, 0.12));
}

.selfcheck-modal__close {
  position: sticky;
  top: 0;
  z-index: 2;
  display: inline-flex;
  justify-self: end;
  margin-left: auto;
  margin-bottom: 1rem;
  border: 1px solid var(--button-secondary-border);
  border-radius: 999px;
  padding: 0.8rem 1rem;
  background: var(--button-secondary-bg);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.selfcheck-modal__header {
  display: grid;
  gap: 1rem;
  max-width: 48rem;
  margin-bottom: 1.5rem;
}

.selfcheck-layout--modal {
  align-items: stretch;
}

body.has-cookie-banner .page-shell {
  padding-bottom: 12rem;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: end;
  width: min(780px, calc(100% - 1rem));
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--glass-border-strong);
  border-radius: 1.9rem;
  background: var(--cookie-bg);
  backdrop-filter: blur(26px) saturate(1.2);
  box-shadow: var(--cookie-shadow);
  transform: translateX(-50%);
  overflow: hidden;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--cookie-overlay);
  opacity: 0.9;
}

.cookie-banner__content,
.cookie-banner__actions {
  position: relative;
  z-index: 1;
}

.cookie-banner__eyebrow {
  margin: 0 0 0.45rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cookie-banner__title {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.cookie-banner__text {
  max-width: 42rem;
  margin: 0.65rem 0 0;
  color: var(--cookie-text);
  line-height: 1.6;
  font-size: 0.98rem;
}

.cookie-banner__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.cookie-banner__link:hover,
.cookie-banner__link:focus-visible {
  text-decoration-thickness: 2px;
}

.cookie-banner__actions {
  display: flex;
  justify-content: flex-end;
}

.cookie-banner__button {
  min-width: 11rem;
  border-color: var(--button-secondary-border);
  background: var(--button-secondary-bg);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .insight-strip,
  .cards,
  .model-layout,
  .timeline,
  .referral-layout,
  .subpage-hero,
  .cta-card,
  .selfcheck-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
  }

  .subpage-hero {
    min-height: auto;
  }
}

@media (max-width: 780px) {
  .page-shell {
    width: min(100% - 1rem, 1240px);
  }

  .site-header {
    border-radius: 2rem;
    padding: 1rem;
  }

  .site-nav {
    display: none;
  }

  .section {
    padding: 3rem 0;
  }

  .scene-frame {
    padding: 1rem;
  }

  body.has-cookie-banner .page-shell {
    padding-bottom: 15rem;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
    width: min(100% - 1rem, 780px);
    padding: 1rem;
    border-radius: 1.5rem;
  }

  .cookie-banner__actions,
  .cookie-banner__button {
    width: 100%;
  }

  .story-card {
    min-height: 30rem;
    padding: 1.4rem;
  }

  .vapor-hero {
    min-height: 10rem;
  }

  .hero-subline {
    max-width: 14ch;
  }

  .bloom-scene {
    height: 28rem;
  }

  .petal {
    width: 8.6rem;
    padding: 0.8rem;
  }

  .petal strong {
    font-size: 0.9rem;
  }

  .petal p {
    font-size: 0.76rem;
  }

  .story-carousel,
  .selfcheck-panel,
  .selfcheck-result,
  .selfcheck-entry,
  .selfcheck-modal__dialog {
    padding: 1.1rem;
    border-radius: 1.5rem;
  }

  .story-carousel__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .story-card h3,
  .selfcheck-question h3,
  .selfcheck-result h3,
  .selfcheck-entry h3,
  .selfcheck-modal__header h2 {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }

  .selfcheck-entry,
  .selfcheck-layout {
    grid-template-columns: 1fr;
  }

  .selfcheck-question {
    min-height: 26rem;
  }

  .story-carousel__footer,
  .selfcheck-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .story-carousel__controls,
  .story-carousel__pagination {
    justify-content: flex-start;
  }

  .story-carousel__button,
  .selfcheck-nav-button {
    width: 100%;
  }

  .selfcheck-result__actions > * {
    width: 100%;
  }

  .score-scale__header {
    display: grid;
  }

  .score-scale__labels {
    gap: 0.4rem;
    font-size: 0.72rem;
  }

  .selfcheck-modal {
    padding: 0.5rem;
  }

  .selfcheck-modal__dialog {
    max-height: 100vh;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .button,
  .petal {
    transition: none;
  }
}
