:root {
  --sand-1: #f4edde;
  --sand-2: #e8dfcf;
  --ink: #18211a;
  --muted: #5f6a61;
  --line: rgba(24, 33, 26, 0.12);
  --panel: rgba(255, 251, 244, 0.78);
  --olive: #708c2f;
  --moss: #3d5f31;
  --leaf: #b6d26d;
  --rust: #92522d;
  --cream: #fffaf1;
  --shadow: 0 24px 70px rgba(20, 25, 19, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI Variable", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(182, 210, 109, 0.16), transparent 24%),
    radial-gradient(circle at 100% 30%, rgba(146, 82, 45, 0.12), transparent 22%),
    linear-gradient(180deg, var(--sand-1), var(--sand-2));
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  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: 32px 32px;
  opacity: 0.35;
  pointer-events: none;
  z-index: -3;
}

.page-glow {
  position: fixed;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.34;
  z-index: -2;
}

.page-glow-a {
  top: -10rem;
  right: -9rem;
  background: rgba(182, 210, 109, 0.35);
}

.page-glow-b {
  bottom: -12rem;
  left: -9rem;
  background: rgba(146, 82, 45, 0.18);
}

.progress-line {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--rust), var(--olive), var(--leaf));
  z-index: 20;
}

img {
  max-width: 100%;
  display: block;
}

main {
  padding: 0 28px 80px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 28px;
  backdrop-filter: blur(16px);
  background: rgba(244, 237, 222, 0.76);
  border-bottom: 1px solid rgba(24, 33, 26, 0.08);
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--moss), var(--olive));
  color: var(--cream);
  font-family: "Palatino Linotype", Georgia, serif;
  font-size: 20px;
}

.brand-name,
.brand-note {
  margin: 0;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-note {
  color: var(--muted);
  font-size: 13px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
}

.hero,
.section,
.storyband,
.final-call {
  max-width: 1220px;
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 58px 0 30px;
}

.hero-copy h1,
.section h2,
.storyband-card h2,
.final-panel h2 {
  margin: 0;
  font-family: "Palatino Linotype", Georgia, serif;
  font-weight: 600;
  line-height: 1.02;
}

.hero-copy h1 {
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  max-width: 12ch;
}

.hero-text,
.section-lead,
.final-panel p {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--muted);
}

.eyebrow,
.section-kicker,
.feature-tag,
.download-type,
.lane-label,
.timeline-week,
.overlay-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: var(--moss);
  background: rgba(112, 140, 47, 0.1);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  color: var(--cream);
  background: linear-gradient(135deg, var(--moss), var(--olive));
  box-shadow: 0 14px 28px rgba(61, 95, 49, 0.25);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 33, 26, 0.08);
  font-size: 0.92rem;
}

.frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), transparent 28%);
}

.hero-visual {
  min-height: 600px;
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: min(320px, calc(100% - 48px));
  padding: 20px;
  border-radius: 22px;
  background: rgba(24, 33, 26, 0.78);
  color: var(--cream);
  backdrop-filter: blur(12px);
}

.overlay-value {
  margin: 0 0 8px;
  font-family: "Palatino Linotype", Georgia, serif;
  font-size: 2rem;
}

.overlay-note {
  margin: 0;
  color: rgba(255, 250, 241, 0.82);
  font-size: 0.95rem;
}

.storyband {
  padding: 20px 0 6px;
}

.storyband-card {
  padding: 28px 30px;
}

.storyband-card h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  max-width: 20ch;
}

.section,
.final-call {
  padding: 64px 0 0;
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.section h2,
.final-panel h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  max-width: 17ch;
}

.split-head {
  grid-template-columns: 1fr 320px;
  align-items: end;
}

.aside-note {
  padding: 18px 18px 20px;
}

.aside-note-title {
  margin: 0 0 8px;
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 18px;
}

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

.feature-card,
.proof-card,
.timeline-card,
.download-card,
.final-panel,
.threshold-card,
.wedge-diagram,
.funding-panel,
.lane,
.visual-tall,
.visual-wide {
  padding: 24px;
}

.feature-card h3,
.proof-card h3,
.timeline-card h3,
.download-card h3,
.lane h3,
.threshold-card h3 {
  margin: 0 0 8px;
  font-family: "Palatino Linotype", Georgia, serif;
  font-size: 1.6rem;
}

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

.wedge-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

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

.wedge-step {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 33, 26, 0.08);
}

.wedge-step span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rust), #b87648);
  color: var(--cream);
  font-weight: 700;
}

.threshold-card ul,
.lane ul {
  margin: 14px 0 0;
  padding-left: 18px;
  line-height: 1.55;
}

.threshold-note,
.portfolio-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.portfolio-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.portfolio-lanes {
  display: grid;
  gap: 18px;
}

.lane-label {
  background: rgba(146, 82, 45, 0.1);
  color: var(--rust);
}

.portfolio-visuals {
  display: grid;
  grid-template-rows: 1.15fr 0.85fr;
  gap: 18px;
}

.visual-tall img,
.visual-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.timeline-week {
  background: rgba(182, 210, 109, 0.18);
}

.funding-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.funding-panel h3 {
  margin: 0;
  font-family: "Palatino Linotype", Georgia, serif;
  font-size: 1.8rem;
}

.fund-bars {
  display: grid;
  gap: 12px;
}

.fund-bars div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(24, 33, 26, 0.08);
}

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

.download-card {
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.download-card:hover {
  transform: translateY(-4px);
  border-color: rgba(112, 140, 47, 0.3);
  background: rgba(255, 255, 255, 0.92);
}

.final-panel {
  padding: 34px;
  background:
    radial-gradient(circle at top right, rgba(182, 210, 109, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(246, 239, 228, 0.86));
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

@media (max-width: 1080px) {
  .hero,
  .wedge-layout,
  .portfolio-layout,
  .funding-panel,
  .split-head {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .proof-grid,
  .timeline-grid,
  .downloads-grid,
  .wedge-diagram {
    grid-template-columns: 1fr;
  }

  .portfolio-visuals {
    grid-template-rows: none;
  }

  .hero-copy h1 {
    max-width: none;
  }
}

@media (max-width: 760px) {
  main {
    padding: 0 18px 60px;
  }

  .site-header {
    align-items: start;
    flex-direction: column;
    padding: 16px 18px;
  }

  .site-nav {
    width: 100%;
    gap: 8px;
  }

  .site-nav a {
    padding: 8px 10px;
    font-size: 0.95rem;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-visual {
    min-height: 380px;
  }

  .feature-card,
  .proof-card,
  .timeline-card,
  .download-card,
  .final-panel,
  .threshold-card,
  .wedge-diagram,
  .funding-panel,
  .lane,
  .visual-tall,
  .visual-wide,
  .storyband-card {
    padding: 20px;
  }

  .site-footer {
    padding: 24px 18px 34px;
  }
}
