:root {
  color-scheme: light;
  --bg: #f6f1e8;
  --bg-soft: #fffaf2;
  --surface: rgba(255, 252, 246, 0.7);
  --surface-strong: rgba(255, 251, 242, 0.9);
  --line: rgba(39, 33, 25, 0.12);
  --line-strong: rgba(39, 33, 25, 0.22);
  --text: #16110d;
  --muted: #665a4d;
  --accent: #be6a2f;
  --accent-deep: #8c4318;
  --teal: #1e6f6b;
  --shadow: 0 30px 80px rgba(33, 21, 12, 0.13);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --container: min(1200px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 15%, rgba(190, 106, 47, 0.16), transparent 24%),
    radial-gradient(circle at 85% 20%, rgba(30, 111, 107, 0.18), transparent 22%),
    linear-gradient(180deg, #fbf7ef 0%, #f3ede4 45%, #efe6d8 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.ambient {
  position: fixed;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  transition: transform 200ms ease-out;
}

.ambient-one {
  top: -10rem;
  right: -10rem;
  background: radial-gradient(circle, rgba(255, 184, 128, 0.7) 0%, rgba(255, 184, 128, 0) 70%);
}

.ambient-two {
  bottom: -12rem;
  left: -12rem;
  background: radial-gradient(circle, rgba(93, 175, 166, 0.5) 0%, rgba(93, 175, 166, 0) 70%);
}

.grid-haze {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 17, 13, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 17, 13, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 90%);
  pointer-events: none;
  z-index: 0;
}

.site-header,
.section,
.trust-strip {
  position: relative;
  z-index: 1;
}

.site-header {
  width: var(--container);
  margin: 0 auto;
  padding: 24px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ffd0aa);
  box-shadow: 0 0 0 6px rgba(190, 106, 47, 0.1);
}

.brand-word {
  font-size: 0.96rem;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-solid {
  color: #fffaf4;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  box-shadow: 0 18px 34px rgba(140, 67, 24, 0.24);
}

.button-ghost {
  color: var(--text);
  background: rgba(255, 252, 246, 0.5);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}

.button-link {
  color: var(--text);
  background: transparent;
  border-color: var(--line);
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 92px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 48px;
  align-items: start;
  padding-top: 52px;
}

.eyebrow,
.card-kicker,
.panel-label,
.code-label {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.hero h1,
.section-intro h2,
.story-panel h2,
.closing h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.hero h1 {
  font-size: clamp(3.2rem, 7.1vw, 5.9rem);
  max-width: 9.5ch;
}

.hero h1 span {
  display: block;
  margin-top: 12px;
  color: rgba(22, 17, 13, 0.68);
}

.hero-text,
.section-intro p,
.feature-card p,
.process-card p,
.story-panel p,
.closing p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--muted);
}

.hero-text {
  max-width: 60ch;
  margin: 26px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
}

.hero-metrics article {
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.hero-metrics strong,
.stats-band strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
}

.hero-metrics span,
.stats-band span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.glass-card,
.outline-card,
.process-card {
  border-radius: var(--radius-xl);
}

.glass-card {
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.9), rgba(255, 247, 236, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.outline-card,
.process-card {
  background: rgba(255, 249, 240, 0.5);
  border: 1px solid var(--line);
}

.hero-stage {
  perspective: 1400px;
  padding-top: 14px;
}

.tilt-panel {
  transform-style: preserve-3d;
}

.stage-window {
  padding: 18px;
}

.window-topbar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.window-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(22, 17, 13, 0.18);
}

.stage-layout {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
}

.stage-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-pill {
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(39, 33, 25, 0.08);
}

.sidebar-pill.active {
  color: #fffaf4;
  background: linear-gradient(135deg, #201611, #8c4318);
}

.stage-content {
  display: grid;
  gap: 16px;
}

.signal-banner,
.decision-panel,
.code-card,
.metric-grid article,
.story-list article {
  border: 1px solid rgba(39, 33, 25, 0.08);
  background: rgba(255, 255, 255, 0.58);
}

.signal-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.signal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #24b07f;
  box-shadow: 0 0 0 8px rgba(36, 176, 127, 0.12);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric-grid article,
.decision-panel,
.code-card {
  padding: 18px;
  border-radius: 22px;
}

.metric-grid p,
.decision-panel span,
.decision-points,
.code-card pre {
  margin: 0;
}

.metric-grid p,
.decision-panel span,
.metric-grid span {
  color: var(--muted);
}

.metric-grid strong {
  display: block;
  margin: 12px 0 6px;
  font-size: 1.8rem;
  line-height: 1;
}

.decision-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: end;
}

.decision-panel h2 {
  margin: 8px 0;
  font-size: 3rem;
  line-height: 1;
  font-family: "Fraunces", serif;
}

.decision-points {
  padding-left: 20px;
  color: var(--text);
  line-height: 1.8;
}

.code-card {
  overflow: hidden;
}

.code-card pre {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #2a2018;
  white-space: pre-wrap;
}

.trust-strip {
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 10px;
}

.trust-strip p {
  margin: 0;
  padding: 18px 24px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  text-align: center;
  color: var(--muted);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.section-intro.compact {
  grid-template-columns: 1fr;
}

.section-intro h2,
.story-panel h2,
.closing h2 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.feature-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card,
.story-panel {
  padding: 28px;
}

.feature-card h3,
.process-card h3,
.story-list h3 {
  margin: 0 0 14px;
  font-size: 1.45rem;
  line-height: 1.2;
}

.feature-accent {
  background: linear-gradient(160deg, #201611 0%, #7a3916 100%);
  color: #fff6ef;
}

.feature-accent p,
.feature-accent .card-kicker {
  color: rgba(255, 246, 239, 0.76);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-card {
  padding: 28px;
}

.process-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-bottom: 18px;
  background: rgba(190, 106, 47, 0.12);
  color: var(--accent-deep);
  font-weight: 800;
}

.split-story {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 22px;
}

.story-list {
  display: grid;
  gap: 16px;
}

.story-list article {
  padding: 22px;
  border-radius: 20px;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 10px;
}

.stats-band article {
  padding: 26px 0 0;
  border-top: 1px solid var(--line-strong);
}

.closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding-bottom: 120px;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero,
  .section-intro,
  .split-story,
  .closing {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 34px;
  }

  .hero-stage {
    max-width: 760px;
  }

  .feature-stack,
  .process-grid,
  .stats-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .closing-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 780px) {
  :root {
    --container: min(100vw - 28px, 1000px);
  }

  .site-header {
    flex-wrap: wrap;
    padding-top: 18px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 14px;
    font-size: 0.88rem;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 36px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.4rem);
    line-height: 0.98;
    max-width: 8.6ch;
  }

  .hero-text {
    font-size: 1rem;
    line-height: 1.68;
  }

  .hero-metrics {
    margin-top: 34px;
  }

  .hero-metrics,
  .feature-stack,
  .process-grid,
  .stats-band,
  .metric-grid,
  .decision-panel {
    grid-template-columns: 1fr;
  }

  .stage-layout {
    grid-template-columns: 1fr;
  }

  .stage-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar-pill {
    flex: 1 1 120px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ambient,
  .button,
  .reveal,
  .tilt-panel {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}