:root {
  --bg: #efe7db;
  --bg-deep: #e6dac7;
  --surface: rgba(255, 251, 245, 0.72);
  --surface-strong: #fff8ef;
  --surface-dark: #1e2026;
  --ink: #17151b;
  --muted: #5e5a63;
  --line: rgba(23, 21, 27, 0.12);
  --accent: #c75b34;
  --accent-soft: #f4d6c8;
  --teal: #1c675f;
  --teal-soft: #d5ece8;
  --gold: #d0a03d;
  --shadow: 0 16px 44px rgba(55, 38, 21, 0.1);
  --shadow-soft: 0 8px 22px rgba(31, 23, 16, 0.06);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1220px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fbf8f3 0%, #f3ecdf 52%, #ece2d1 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 92%);
  opacity: 0.08;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  z-index: 0;
}

.page-shell::before {
  width: 220px;
  height: 220px;
  top: 160px;
  right: -80px;
  background: rgba(199, 91, 52, 0.12);
}

.page-shell::after {
  width: 200px;
  height: 200px;
  top: 820px;
  left: -70px;
  background: rgba(28, 103, 95, 0.1);
}

.site-header,
.section {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 18px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(199, 91, 52, 0.95), rgba(208, 160, 61, 0.9));
  color: #fff9f2;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-soft);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.brand-copy span:last-child {
  color: var(--muted);
  font-size: 0.86rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a,
.header-link,
.footer-links a {
  position: relative;
}

.site-nav a::after,
.header-link::after,
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.header-link:hover::after,
.footer-links a:hover::after {
  transform: scaleX(1);
}

.header-link {
  color: var(--teal);
  font-weight: 700;
}

.section {
  padding: 40px 0 42px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: 40px;
  padding-top: 42px;
}

.hero-copy,
.hero-stage,
.research-strip,
.segment-detail,
.closing-panel,
.footer-card {
  backdrop-filter: blur(10px);
}

.hero-copy {
  padding: 34px 0 18px;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-family: "Fraunces", serif;
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  max-width: 14ch;
}

h3 {
  font-size: clamp(1.45rem, 2.7vw, 2.1rem);
}

h4 {
  font-size: 1.15rem;
}

.lead,
.hero-strap,
.section-heading p,
.detail-head p,
.feature-card p,
.proof-card p,
.closing-panel p,
.issue-card p,
.stat-card p,
.hero-points li,
.metric-card,
.detail-proof,
.pilot-card span,
.footer-card p {
  color: var(--muted);
  line-height: 1.65;
}

.lead {
  margin: 24px 0 0;
  max-width: 36rem;
  font-size: 1.12rem;
}

.hero-strap {
  margin: 18px 0 0;
  max-width: 33rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.hero-actions,
.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

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

.button:hover,
.segment-toggle:hover,
.segment-card:hover,
.pilot-card:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--ink);
  color: #fff8ef;
  box-shadow: var(--shadow-soft);
}

.button-secondary {
  background: rgba(255, 248, 239, 0.7);
  border: 1px solid rgba(23, 21, 27, 0.09);
}

.hero-points {
  display: grid;
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 26px;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--gold));
}

.hero-stage,
.research-strip,
.segment-detail,
.closing-panel,
.footer-card {
  border: 1px solid rgba(23, 21, 27, 0.07);
  border-radius: var(--radius-xl);
  background: rgba(255, 251, 245, 0.82);
  box-shadow: var(--shadow);
}

.hero-stage {
  padding: 22px;
}

.stage-topline,
.stage-headline,
.detail-head,
.closing-copy {
  display: flex;
  flex-direction: column;
}

.stage-topline {
  gap: 14px;
}

.segment-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.segment-toggle {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(23, 21, 27, 0.08);
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.segment-toggle.is-active,
.segment-card.is-active {
  background: var(--ink);
  color: #fff8ef;
}

.stage-panel {
  display: grid;
  gap: 20px;
  margin-top: 18px;
  padding: 24px;
  border-radius: calc(var(--radius-xl) - 10px);
  background: linear-gradient(180deg, rgba(28, 31, 37, 0.98), rgba(35, 39, 44, 0.94));
  color: #f6efe6;
}

.stage-kicker,
.metric-label,
.detail-kicker,
.detail-proof-label,
.proof-tag,
.segment-card-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
}

.stage-kicker,
.metric-label {
  color: rgba(246, 239, 230, 0.7);
}

.stage-headline h2 {
  margin-top: 8px;
  max-width: none;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.stage-headline p {
  margin: 12px 0 0;
  max-width: 34rem;
  color: rgba(246, 239, 230, 0.74);
  line-height: 1.6;
}

.equalizer {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 84px;
  padding: 8px 0 2px;
}

.equalizer span {
  width: 100%;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(244, 214, 200, 0.9), rgba(199, 91, 52, 0.95));
  transform-origin: bottom;
  animation: pulse 2s ease-in-out infinite;
}

.equalizer span:nth-child(1) { height: 44%; animation-delay: 0ms; }
.equalizer span:nth-child(2) { height: 78%; animation-delay: 110ms; }
.equalizer span:nth-child(3) { height: 62%; animation-delay: 220ms; }
.equalizer span:nth-child(4) { height: 88%; animation-delay: 330ms; }
.equalizer span:nth-child(5) { height: 52%; animation-delay: 440ms; }
.equalizer span:nth-child(6) { height: 72%; animation-delay: 550ms; }
.equalizer span:nth-child(7) { height: 38%; animation-delay: 660ms; }
.equalizer span:nth-child(8) { height: 66%; animation-delay: 770ms; }

@keyframes pulse {
  0%,
  100% {
    transform: scaleY(0.76);
    opacity: 0.84;
  }
  50% {
    transform: scaleY(1.03);
    opacity: 1;
  }
}

.stage-metrics,
.stat-grid,
.issue-grid,
.feature-grid,
.proof-grid,
.pilot-grid {
  display: grid;
  gap: 16px;
}

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

.metric-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  color: #f6efe6;
  line-height: 1.48;
  font-size: 1rem;
}

.stage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stage-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(246, 239, 230, 0.92);
  font-size: 0.9rem;
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
}

.section-heading-wide h2,
.section-heading-wide p {
  max-width: 42rem;
}

.research-strip {
  padding: 32px;
}

.stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stat-card,
.issue-card,
.feature-card,
.proof-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(23, 21, 27, 0.08);
  box-shadow: var(--shadow-soft);
}

.stat-value {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1;
  font-family: "Fraunces", serif;
  color: var(--ink);
}

.stat-label,
.detail-summary,
.proof-note,
.issue-card p,
.feature-card p,
.proof-card p,
.footer-card p {
  margin: 0;
}

.issue-card h3,
.feature-card h3,
.proof-card h3 {
  margin-bottom: 12px;
}

.issue-grid,
.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.segments-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.42fr) minmax(0, 0.58fr);
  gap: 22px;
}

.segment-rail {
  display: grid;
  gap: 14px;
}

.segment-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  text-align: left;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(23, 21, 27, 0.08);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.segment-card strong,
.pilot-card strong {
  font-size: 1.12rem;
  line-height: 1.45;
}

.segment-card p,
.pilot-card span {
  margin: 0;
}

.segment-card.is-active p,
.segment-card.is-active .segment-card-label {
  color: rgba(255, 248, 239, 0.78);
}

.segment-detail {
  padding: 30px;
}

.detail-kicker,
.detail-proof-label,
.pilot-card span,
.footer-links a:first-child {
  color: var(--teal);
}

.detail-head {
  gap: 14px;
}

.detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.detail-columns ul,
.issue-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.detail-proof {
  margin-top: 28px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(28, 103, 95, 0.06);
  border: 1px solid rgba(28, 103, 95, 0.14);
}

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

.proof-tag {
  margin-bottom: 12px;
  color: var(--accent);
}

.closing-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(300px, 0.32fr);
  gap: 24px;
  padding: 32px;
}

.closing-copy {
  justify-content: center;
}

.pilot-grid {
  grid-template-columns: 1fr;
}

.pilot-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  text-align: left;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(23, 21, 27, 0.08);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease;
}

.pilot-card span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
}

.closing-note {
  margin-top: 18px;
  color: var(--ink);
  font-weight: 700;
}

.site-footer {
  padding-top: 10px;
  padding-bottom: 52px;
}

.footer-card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

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

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

@media (max-width: 1100px) {
  .hero,
  .segments-layout,
  .closing-panel,
  .footer-card {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-copy {
    padding-top: 12px;
  }
}

@media (max-width: 820px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding-top: 18px;
  }

  .stage-metrics,
  .detail-columns,
  .proof-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header,
  .section {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .section {
    padding: 26px 0 30px;
  }

  .hero-stage,
  .research-strip,
  .segment-detail,
  .closing-panel,
  .footer-card {
    border-radius: 24px;
  }

  .hero-stage,
  .research-strip,
  .segment-detail,
  .closing-panel,
  .stage-panel,
  .footer-card {
    padding: 18px;
  }

  .stage-panel {
    gap: 16px;
  }

  .button,
  .segment-toggle {
    width: 100%;
  }

  .hero-actions,
  .closing-actions,
  .segment-switcher,
  .footer-links {
    flex-direction: column;
    align-items: stretch;
  }
}
