:root {
  --bg: #f3e7d5;
  --paper: rgba(255, 248, 239, 0.78);
  --paper-strong: rgba(255, 250, 244, 0.92);
  --ink: #15231d;
  --muted: #526056;
  --stroke: rgba(21, 35, 29, 0.1);
  --accent: #b9652d;
  --accent-soft: #f0c799;
  --forest: #1f4738;
  --forest-soft: #2e6651;
  --shadow: 0 24px 80px rgba(56, 42, 22, 0.14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content: 1160px;
  --rail-height: 74px;
  --rail-gap: 28px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(185, 101, 45, 0.14), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(31, 71, 56, 0.15), transparent 20%),
    linear-gradient(180deg, #f8efe1 0%, var(--bg) 44%, #efdfc3 100%);
  overflow-x: hidden;
}

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

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.page-aura,
.page-noise {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.page-aura {
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.45;
}

.page-aura-left {
  left: -8vw;
  top: 18vh;
  background: rgba(185, 101, 45, 0.18);
}

.page-aura-right {
  right: -6vw;
  top: 54vh;
  background: rgba(31, 71, 56, 0.16);
}

.page-noise {
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 35, 29, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 35, 29, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 90%);
}

.site-header,
main {
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  min-height: var(--rail-height);
  background: rgba(255, 249, 241, 0.84);
  border-bottom: 1px solid rgba(21, 35, 29, 0.08);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(56, 42, 22, 0.06);
  z-index: 4;
}

.nav-inner {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(calc(100% - 28px), 980px);
  min-height: calc(var(--rail-height) - 4px);
  margin: 0 auto;
  padding: 14px 0 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--forest) 0%, var(--accent) 100%);
  color: #fff6ee;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 0.86rem;
}

.brand-copy span,
.state-label {
  font-size: 0.7rem;
  color: var(--muted);
}

.header-state {
  display: grid;
  justify-items: end;
}

.header-state strong {
  font-size: 0.84rem;
}

.progress-shell {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  overflow: hidden;
  background: rgba(21, 35, 29, 0.06);
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--forest) 100%);
}

main {
  width: min(calc(100% - 28px), var(--content));
  margin: 0 auto;
  padding: calc(var(--rail-height) + var(--rail-gap)) 0 96px;
}

section {
  margin-top: 44px;
}

.hero {
  min-height: calc(100vh - 140px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 22px;
  align-items: end;
}

.hero-frame,
.hero-aside,
.story-visual,
.story-step,
.outcome-card,
.closing-panel {
  background: var(--paper);
  backdrop-filter: blur(18px);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.hero-frame {
  position: relative;
  min-height: 72vh;
  padding: clamp(28px, 4vw, 60px);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero-frame::before {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -16%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 71, 56, 0.18) 0%, transparent 66%);
}

.hero-aside {
  display: grid;
  gap: 18px;
  min-height: 72vh;
  padding: 24px;
  border-radius: var(--radius-xl);
}

.eyebrow,
.story-kicker,
.panel-label,
.audience-tag {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--forest-soft);
}

.hero h1,
.section-heading h2,
.closing-panel h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.hero h1 {
  max-width: 8ch;
  font-size: clamp(3.6rem, 8vw, 7rem);
}

.hero h1 span,
.closing-panel h2 span {
  color: var(--accent);
}

.hero-lead,
.section-heading p,
.story-step p,
.visual-copy p,
.outcome-card p,
.closing-panel p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-chip-row span,
.panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.76);
  border: 1px solid rgba(21, 35, 29, 0.08);
  color: var(--accent);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chip-icon,
.icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-abstract {
  position: relative;
  min-height: 360px;
  border-radius: 28px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, rgba(243, 231, 213, 0.3) 46%, transparent 70%),
    linear-gradient(135deg, rgba(31, 71, 56, 0.08), rgba(185, 101, 45, 0.08));
  overflow: hidden;
}

.orb,
.beam {
  position: absolute;
}

.orb {
  border-radius: 50%;
  border: 1px solid rgba(21, 35, 29, 0.08);
  background: radial-gradient(circle at 35% 35%, rgba(255, 250, 244, 0.94), rgba(244, 218, 183, 0.45));
  box-shadow: 0 14px 40px rgba(56, 42, 22, 0.1);
}

.orb-1 {
  inset: 24% auto auto 18%;
  width: 170px;
  height: 170px;
}

.orb-2 {
  inset: auto 16% 12% auto;
  width: 126px;
  height: 126px;
}

.orb-3 {
  inset: 14% 18% auto auto;
  width: 88px;
  height: 88px;
}

.beam {
  border-radius: 999px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(31, 71, 56, 0.72), rgba(185, 101, 45, 0.12));
}

.beam-1 {
  left: 35%;
  top: 38%;
  width: 220px;
  height: 2px;
  transform: rotate(20deg);
}

.beam-2 {
  left: 28%;
  top: 58%;
  width: 190px;
  height: 2px;
  transform: rotate(-18deg);
}

.hero-note {
  margin: 0;
  align-self: end;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2,
.closing-panel h2 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  margin-bottom: 14px;
}

.story-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.92fr);
  gap: 22px;
  align-items: start;
}

.story-visual {
  position: sticky;
  top: 104px;
  padding: 22px;
  border-radius: var(--radius-xl);
  min-height: calc(100vh - 132px);
  display: grid;
  align-content: start;
  gap: 20px;
}

.visual-top,
.story-step-top,
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.visual-top {
  justify-content: space-between;
}

.visual-copy h3,
.story-step h3,
.outcome-card h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.visual-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(21, 35, 29, 0.08);
  background: rgba(255, 252, 247, 0.78);
}

.metric-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.metric-card strong {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.15;
}

.metric-card.accent {
  background: linear-gradient(135deg, rgba(31, 71, 56, 0.96) 0%, rgba(185, 101, 45, 0.92) 100%);
  color: #fff7ef;
}

.metric-card.accent span {
  color: rgba(255, 247, 239, 0.82);
}

.story-steps {
  display: grid;
  gap: 18px;
}

.story-step {
  padding: 26px;
  border-radius: var(--radius-lg);
}

.story-index {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(31, 71, 56, 0.08);
  color: var(--forest);
  font-weight: 700;
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(185, 101, 45, 0.08);
  color: var(--accent);
  border: 1px solid rgba(21, 35, 29, 0.08);
}

.icon-badge-card {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.story-step-top,
.card-head {
  margin-bottom: 14px;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.outcome-card,
.closing-panel {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.closing-panel p {
  max-width: 760px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease var(--reveal-delay, 0ms),
    transform 700ms ease var(--reveal-delay, 0ms);
}

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

@media (max-width: 1080px) {
  :root {
    --rail-height: 78px;
    --rail-gap: 24px;
  }

  .hero,
  .story-shell,
  .outcome-grid,
  .visual-metrics {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    width: min(calc(100% - 20px), 720px);
  }

  .story-visual {
    position: relative;
    top: auto;
    min-height: auto;
  }
}

@media (max-width: 720px) {
  :root {
    --rail-height: 86px;
    --rail-gap: 22px;
  }

  .nav-inner {
    grid-template-columns: 1fr;
    justify-content: start;
    gap: 8px;
    padding: 12px 0 10px;
  }

  .header-state {
    justify-items: start;
  }

  main {
    width: min(calc(100% - 20px), var(--content));
    padding-top: calc(var(--rail-height) + var(--rail-gap));
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .section-heading h2,
  .closing-panel h2 {
    font-size: clamp(2.1rem, 11vw, 3.6rem);
  }

  .hero-frame,
  .hero-aside,
  .story-visual,
  .story-step,
  .outcome-card,
  .closing-panel {
    padding-inline: 18px;
  }

  .hero-abstract {
    min-height: 260px;
  }
}

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

  .reveal {
    transition: none;
  }
}
