/* Ollie Reads — Warm storybook landing page */

:root {
  --cream: #f5ede0;
  --cream-deep: #ece0cb;
  --paper: #fbf6ec;
  --sage: #8a9a7b;
  --sage-deep: #6b7a5e;
  --terracotta: #c97b5c;
  --terracotta-deep: #a85f44;
  --ink: #2a2520;
  --ink-soft: #4a4338;
  --ink-mute: #7a7066;
  --rule: #d9cdb6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: var(--paper);
  color: var(--ink);
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

.serif {
  font-family: 'Lora', 'Iowan Old Style', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px;
}

/* ── NAV ──────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.nav.scrolled {
  border-color: var(--rule);
  background: color-mix(in oklab, var(--paper) 96%, transparent);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--terracotta-deep);
  display: grid;
  place-items: center;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.04);
}
.brand small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 2px;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  color: var(--ink-soft);
  padding: 8px 0;
  position: relative;
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--terracotta-deep);
}
.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ── BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background 0.15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--paper);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.06),
    0 6px 16px -8px rgba(201, 123, 92, 0.5);
}
.btn-primary:hover {
  background: var(--terracotta-deep);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.06),
    0 10px 22px -8px rgba(201, 123, 92, 0.6);
}
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--rule);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--cream);
  border-color: var(--ink-mute);
}
.btn-text {
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ink);
  transition:
    color 0.15s,
    border-color 0.15s;
}
.btn-text:hover {
  color: var(--terracotta-deep);
  border-color: var(--terracotta-deep);
}
.btn-sm {
  padding: 10px 18px;
  font-size: 13px;
}

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 96px 0 120px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 20% 30%,
      color-mix(in oklab, var(--cream-deep) 80%, transparent) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 80% 70%,
      color-mix(in oklab, var(--sage) 18%, transparent) 0%,
      transparent 50%
    ),
    var(--paper);
  z-index: -2;
}
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.4px);
  opacity: 0.55;
  z-index: -1;
}
.hero-shape.s1 {
  width: 220px;
  height: 220px;
  background: var(--terracotta);
  top: 8%;
  right: 6%;
  opacity: 0.14;
  animation: drift1 14s ease-in-out infinite;
}
.hero-shape.s2 {
  width: 140px;
  height: 140px;
  background: var(--sage);
  bottom: 14%;
  left: 8%;
  opacity: 0.22;
  animation: drift2 17s ease-in-out infinite;
}
.hero-shape.s3 {
  width: 70px;
  height: 70px;
  background: var(--terracotta-deep);
  top: 38%;
  left: 42%;
  opacity: 0.1;
  animation: drift3 11s ease-in-out infinite;
}
@keyframes drift1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-18px, 22px) scale(1.06);
  }
}
@keyframes drift2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(24px, -18px) scale(0.96);
  }
}
@keyframes drift3 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, -14px);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--terracotta-deep);
}
.hero h1 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 68px;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 28px;
}
.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.02em;
}
.hero-title-line {
  display: block;
}
.hero-title-line--offset {
  padding-left: 0.18em;
}
.hero h1 em {
  font-style: italic;
  color: var(--terracotta-deep);
  font-weight: 500;
}
.hero-lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 40px;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 36px;
}
.hero-meta {
  display: flex;
  gap: 36px;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-mute);
}
.hero-meta strong {
  color: var(--ink);
  font-weight: 600;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-meta-item .num {
  font-family: 'Lora', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* Hero illustration: stacked book placeholder cards */
.hero-art {
  position: relative;
  height: 540px;
}
.book-card {
  position: absolute;
  border-radius: 6px;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.06),
    0 30px 60px -30px rgba(42, 37, 32, 0.35),
    0 12px 24px -16px rgba(42, 37, 32, 0.2);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.book-card .label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
}
.book-card .title {
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.96);
}
.book-card.b1 {
  width: 280px;
  height: 380px;
  top: 30px;
  left: 20px;
  background: repeating-linear-gradient(135deg, var(--sage) 0 14px, var(--sage-deep) 14px 16px);
  transform: rotate(-6deg);
  animation: float1 6s ease-in-out infinite;
}
.book-card.b2 {
  width: 290px;
  height: 400px;
  top: 70px;
  right: 30px;
  background: repeating-linear-gradient(
    135deg,
    var(--terracotta) 0 14px,
    var(--terracotta-deep) 14px 16px
  );
  transform: rotate(5deg);
  animation: float2 7s ease-in-out infinite;
  z-index: 2;
}
.book-card.b3 {
  width: 220px;
  height: 300px;
  bottom: 0;
  left: 130px;
  background: repeating-linear-gradient(135deg, #c9a86c 0 14px, #a8884c 14px 16px);
  transform: rotate(-2deg);
  animation: float3 8s ease-in-out infinite;
}
@keyframes float1 {
  0%,
  100% {
    transform: rotate(-6deg) translateY(0);
  }
  50% {
    transform: rotate(-6deg) translateY(-10px);
  }
}
@keyframes float2 {
  0%,
  100% {
    transform: rotate(5deg) translateY(0);
  }
  50% {
    transform: rotate(5deg) translateY(-14px);
  }
}
@keyframes float3 {
  0%,
  100% {
    transform: rotate(-2deg) translateY(0);
  }
  50% {
    transform: rotate(-2deg) translateY(-8px);
  }
}
.hero-badge {
  position: absolute;
  bottom: 20px;
  right: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 24px -12px rgba(42, 37, 32, 0.2);
  z-index: 3;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--sage) 30%, transparent);
}

/* ── HERO APP PREVIEW ─────────────────────────────────── */
.hero-app {
  position: relative;
  perspective: 1800px;
}
.browser-frame {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 30px 60px -30px rgba(42, 37, 32, 0.4),
    0 16px 30px -20px rgba(42, 37, 32, 0.2);
  overflow: hidden;
  transform: rotateY(-3deg) rotateX(2deg);
  transform-style: preserve-3d;
  animation: appFloat 8s ease-in-out infinite;
}
@keyframes appFloat {
  0%,
  100% {
    transform: rotateY(-3deg) rotateX(2deg) translateY(0);
  }
  50% {
    transform: rotateY(-3deg) rotateX(2deg) translateY(-8px);
  }
}
.browser-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, #f8f2e6, #efe7d5);
}
.browser-dots {
  display: flex;
  gap: 6px;
}
.browser-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.dot-r {
  background: #ed6a5e;
}
.dot-y {
  background: #f4bf4f;
}
.dot-g {
  background: #62c554;
}
.browser-url {
  flex: 1;
  max-width: 280px;
  margin: 0 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.browser-screen {
  display: block;
  background: var(--paper);
  line-height: 0;
}
.browser-screen img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-app .hero-badge {
  bottom: -16px;
  right: 30px;
}

/* ── SECTION HEADER ──────────────────────────────────── */
.section {
  padding: 120px 0;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  margin-bottom: 72px;
  align-items: end;
}
.section-head h2 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.018em;
}
.section-head h2 em {
  font-style: italic;
  color: var(--sage-deep);
  font-weight: 500;
}
.section-head .lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 520px;
  text-wrap: pretty;
}
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.section-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--terracotta-deep);
}

/* ── APP SHOWCASE ─────────────────────────────────────── */
.app-showcase {
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
}
.app-feature {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 96px;
}
.app-feature.reverse {
  grid-template-columns: 1.15fr 1fr;
}
.app-feature.reverse .app-feature-art {
  order: -1;
}
.feat-num {
  display: inline-block;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--terracotta-deep);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.app-feature-text h3 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin-bottom: 18px;
  text-wrap: balance;
}
.app-feature-text > p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 24px;
  max-width: 460px;
  text-wrap: pretty;
}
.feat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  max-width: 460px;
}
.feat-list li {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  position: relative;
  padding-left: 18px;
}
.feat-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}
.feat-list li b {
  color: var(--ink);
  font-weight: 600;
}
.browser-frame.compact {
  animation: none;
  transform: rotate(-1.5deg);
  transition: transform 0.4s ease;
}
.app-feature.reverse .browser-frame.compact {
  transform: rotate(1.5deg);
}
.app-feature:hover .browser-frame.compact {
  transform: rotate(0);
}

.app-cta {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 40px 44px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 18px;
  margin-top: 24px;
}
.app-cta h4 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin-bottom: 8px;
}
.app-cta p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.app-cta-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
}

/* ── PROGRAMS ────────────────────────────────────────── */
.programs {
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
}
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.program-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1),
    box-shadow 0.25s,
    border-color 0.25s;
}
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -20px rgba(42, 37, 32, 0.18);
  border-color: var(--terracotta);
}
.program-art {
  height: 180px;
  border-radius: 12px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.program-art .label {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
}
.program-art.a {
  background: repeating-linear-gradient(45deg, var(--sage) 0 10px, var(--sage-deep) 10px 12px);
}
.program-art.b {
  background: repeating-linear-gradient(
    45deg,
    var(--terracotta) 0 10px,
    var(--terracotta-deep) 10px 12px
  );
}
.program-art.c {
  background: repeating-linear-gradient(45deg, #c9a86c 0 10px, #8a6e40 10px 12px);
}
.program-level {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--terracotta-deep);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.program-card h3 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.program-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
  text-wrap: pretty;
}
.program-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-mute);
}
.program-meta a {
  color: var(--terracotta-deep);
  font-weight: 600;
  transition: gap 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.program-meta a:hover {
  gap: 10px;
}

/* ── AUDIENCE ─────────────────────────────────────────── */
.audience {
  background: var(--paper);
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
}
.audience-card {
  background: var(--paper);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.2s;
}
.audience-card:hover {
  background: var(--cream);
}
.audience-icon {
  font-size: 26px;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--cream-deep);
  border-radius: 12px;
  margin-bottom: 8px;
}
.audience-card h3 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.audience-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ── LEARN & QUIZ ────────────────────────────────────── */
.learn {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.learn::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 600px 400px at 88% 12%,
      color-mix(in oklab, var(--terracotta) 24%, transparent) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 700px 500px at 8% 90%,
      color-mix(in oklab, var(--sage) 20%, transparent) 0%,
      transparent 60%
    );
  pointer-events: none;
}
.learn .container {
  position: relative;
  z-index: 1;
}

.learn-head {
  max-width: 760px;
  margin: 0 auto 80px;
  text-align: center;
}
.learn-head .eyebrow {
  color: color-mix(in oklab, var(--terracotta) 70%, white 30%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.learn-head .eyebrow::before,
.learn-head .eyebrow::after {
  content: '';
  width: 24px;
  height: 1px;
  background: color-mix(in oklab, var(--terracotta) 70%, white 30%);
}
.learn-head h2 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 56px;
  line-height: 1.06;
  letter-spacing: -0.018em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.learn-head h2 em {
  font-style: italic;
  color: color-mix(in oklab, var(--terracotta) 70%, white 30%);
  font-weight: 500;
}
.learn-lede {
  font-size: 18px;
  line-height: 1.65;
  color: color-mix(in oklab, var(--paper) 78%, transparent);
  text-wrap: pretty;
  max-width: 580px;
  margin: 0 auto;
}

/* Featured row: text + big screenshot */
.learn-feature {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}
.learn-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--terracotta) 70%, white 30%);
  margin-bottom: 16px;
}
.learn-feature-text h3 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin-bottom: 20px;
  color: var(--paper);
}
.learn-feature-text h3 em {
  font-style: italic;
  color: color-mix(in oklab, var(--terracotta) 70%, white 30%);
  font-weight: 500;
}
.learn-feature-text > p {
  font-size: 16px;
  line-height: 1.65;
  color: color-mix(in oklab, var(--paper) 78%, transparent);
  margin-bottom: 24px;
  max-width: 460px;
  text-wrap: pretty;
}
.learn-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(245, 237, 224, 0.16);
  padding-top: 20px;
  max-width: 460px;
}
.learn-list li {
  font-size: 14px;
  line-height: 1.55;
  color: color-mix(in oklab, var(--paper) 78%, transparent);
  position: relative;
  padding-left: 18px;
}
.learn-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--terracotta) 70%, white 30%);
}
.learn-list li b {
  color: var(--paper);
  font-weight: 600;
}

.browser-frame.compact.dark {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 30px 80px -20px rgba(0, 0, 0, 0.5),
    0 12px 30px -12px rgba(0, 0, 0, 0.45);
}

/* Two-up cards row → stacked, side-by-side image+text */
.learn-cards {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.learn-card {
  background: color-mix(in oklab, var(--paper) 6%, transparent);
  border: 1px solid rgba(245, 237, 224, 0.14);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  transition:
    border-color 0.25s,
    background 0.25s;
}
.learn-card:hover {
  background: color-mix(in oklab, var(--paper) 9%, transparent);
  border-color: color-mix(in oklab, var(--terracotta) 50%, transparent);
}
.learn-card.reverse .learn-card-art {
  order: 2;
}
.learn-card-art {
  background: radial-gradient(
    ellipse at 50% 0%,
    color-mix(in oklab, var(--cream) 80%, transparent) 0%,
    var(--paper) 70%
  );
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  position: relative;
}
.learn-card-art img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.06),
    0 24px 48px -16px rgba(0, 0, 0, 0.45),
    0 8px 20px -8px rgba(0, 0, 0, 0.3);
}
.learn-card-body {
  padding: 72px 88px 72px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
}
.learn-card.reverse .learn-card-body {
  padding: 72px 40px 72px 88px;
  margin-left: auto;
}
.learn-card-body h4 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -0.014em;
  color: var(--paper);
  margin-bottom: 16px;
  text-wrap: balance;
}
.learn-card-body p {
  font-size: 15.5px;
  line-height: 1.65;
  color: color-mix(in oklab, var(--paper) 76%, transparent);
  text-wrap: pretty;
}
.learn-card-body p b {
  color: var(--paper);
  font-weight: 600;
}

/* ── REWARDS ─────────────────────────────────────────── */
.rewards {
  position: relative;
  background:
    radial-gradient(
      ellipse 600px 500px at 90% 10%,
      color-mix(in oklab, var(--terracotta) 14%, transparent) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 700px 600px at 8% 90%,
      color-mix(in oklab, var(--sage) 16%, transparent) 0%,
      transparent 60%
    ),
    linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  overflow: hidden;
}
.rw-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.rw-spark {
  position: absolute;
  font-family: 'Lora', serif;
  color: var(--terracotta);
  opacity: 0.35;
  animation: twinkle 4s ease-in-out infinite;
}
.rw-spark.s1 {
  top: 12%;
  left: 6%;
  font-size: 22px;
  animation-delay: 0s;
}
.rw-spark.s2 {
  top: 8%;
  right: 12%;
  font-size: 14px;
  animation-delay: 0.8s;
  color: var(--sage-deep);
}
.rw-spark.s3 {
  top: 38%;
  left: 3%;
  font-size: 18px;
  animation-delay: 1.6s;
}
.rw-spark.s4 {
  top: 62%;
  right: 4%;
  font-size: 24px;
  animation-delay: 2.4s;
  color: var(--sage-deep);
}
.rw-spark.s5 {
  bottom: 14%;
  left: 18%;
  font-size: 14px;
  animation-delay: 3s;
}
.rw-spark.s6 {
  top: 48%;
  right: 22%;
  font-size: 16px;
  animation-delay: 1.2s;
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(0.85) rotate(0deg);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.1) rotate(20deg);
  }
}
.rewards .container {
  position: relative;
  z-index: 1;
}

.rw-head {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}
.rw-head .eyebrow {
  color: var(--terracotta-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.rw-head .eyebrow::before,
.rw-head .eyebrow::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--terracotta-deep);
}
.rw-head h2 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 64px;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.rw-head h2 em {
  font-style: italic;
  color: var(--terracotta-deep);
  font-weight: 500;
}
.rw-lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
  max-width: 580px;
  margin: 0 auto;
}
.rw-lede b {
  color: var(--ink);
  font-weight: 600;
}

/* The 3-step loop */
.rw-loop {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  margin-bottom: 96px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.rw-step {
  flex: 1;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  position: relative;
  transition:
    transform 0.25s ease,
    border-color 0.25s;
}
.rw-step:hover {
  transform: translateY(-3px);
  border-color: var(--terracotta);
}
.rw-step-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--cream);
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}
.rw-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--terracotta-deep);
}
.rw-step h4 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.rw-step p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-mute);
  text-wrap: pretty;
  margin-top: 2px;
}
.rw-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  opacity: 0.65;
}

/* Hatchery row */
.rw-hatchery {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 96px;
}
.rw-hatchery-art .browser-frame.compact {
  transform: rotate(-1.5deg);
}
.rw-hatchery-text .rw-tag,
.rw-eggshop .rw-tag,
.rw-creature .rw-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin-bottom: 14px;
}
.rw-hatchery-text h3,
.rw-eggshop h3,
.rw-creature h3 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: 20px;
  text-wrap: balance;
}
.rw-hatchery-text h3 em,
.rw-eggshop h3 em,
.rw-creature h3 em {
  font-style: italic;
  color: var(--sage-deep);
  font-weight: 500;
}
.rw-hatchery-text > p,
.rw-eggshop p,
.rw-creature-text > p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 24px;
  max-width: 460px;
  text-wrap: pretty;
}
.rw-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  max-width: 460px;
}
.rw-stat .num {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 36px;
  letter-spacing: -0.02em;
  color: var(--terracotta-deep);
  line-height: 1;
  margin-bottom: 6px;
}
.rw-stat .lbl {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}

/* Egg shop full bleed */
.rw-eggshop {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: 48px;
  margin-bottom: 96px;
  position: relative;
  overflow: hidden;
}
.rw-eggshop::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 280px;
  height: 280px;
  background: radial-gradient(
    circle at center,
    color-mix(in oklab, var(--terracotta) 18%, transparent) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.rw-eggshop-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}
.rw-rarities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 18px 22px;
  background: var(--cream);
  border-radius: 12px;
}
.rw-rarity {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.rw-rarity .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.rw-eggshop-art {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 0 24px 48px -20px rgba(42, 37, 32, 0.25);
  position: relative;
  z-index: 1;
}
.rw-eggshop-art img {
  width: 100%;
  display: block;
}

/* Creature reveal */
.rw-creature {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 80px;
  align-items: center;
}
.rw-creature-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rw-creature-art img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.06),
    0 30px 60px -20px rgba(42, 37, 32, 0.35),
    0 12px 28px -10px rgba(42, 37, 32, 0.2);
  transform: rotate(2deg);
  transition: transform 0.4s ease;
}
.rw-creature:hover .rw-creature-art img {
  transform: rotate(0);
}
.rw-spark.big {
  position: absolute;
  font-size: 36px;
  color: var(--terracotta);
  opacity: 0.8;
}
.rw-spark.big {
  top: 8%;
  left: 4%;
  animation: twinkle 3s ease-in-out infinite;
}
.rw-spark.big.two {
  top: auto;
  left: auto;
  bottom: 14%;
  right: 6%;
  font-size: 24px;
  color: var(--sage-deep);
  animation-delay: 1.2s;
}
.rw-cred-row {
  display: flex;
  gap: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  max-width: 460px;
}
.rw-creature-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rw-creature-meta .lbl {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.rw-creature-meta .val {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ── TESTIMONIALS ────────────────────────────────────── */
.testimonials {
  background: var(--cream);
}
.t-stage {
  position: relative;
  min-height: 380px;
}
.t-track {
  position: relative;
}
.t-slide {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  inset: 0;
  transition: opacity 0.6s ease;
}
.t-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}
.t-portrait {
  height: 340px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.t-portrait .label {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
}
.t-quote {
  font-family: 'Lora', serif;
  font-size: 32px;
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-bottom: 28px;
  text-wrap: pretty;
}
.t-quote::before {
  content: '"';
  font-size: 56px;
  color: var(--terracotta-deep);
  display: inline-block;
  line-height: 0;
  vertical-align: -0.15em;
  margin-right: 4px;
}
.t-author {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.t-author small {
  display: block;
  font-weight: 400;
  color: var(--ink-mute);
  margin-top: 2px;
}
.t-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  justify-content: space-between;
}
.t-dots {
  display: flex;
  gap: 8px;
}
.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--ink) 18%, transparent);
  transition:
    background 0.2s,
    width 0.2s;
}
.t-dot.active {
  background: var(--terracotta);
  width: 24px;
  border-radius: 4px;
}
.t-arrows {
  display: flex;
  gap: 8px;
}
.t-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--paper);
  display: grid;
  place-items: center;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.t-arrow:hover {
  background: var(--terracotta);
  color: var(--paper);
  border-color: var(--terracotta);
}

/* ── CTA STRIP ───────────────────────────────────────── */
.cta-strip {
  background: var(--terracotta);
  color: var(--paper);
  padding: 50px;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}
.cta-inner h2 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -0.018em;
}
.cta-inner h2 em {
  font-style: italic;
}
.cta-inner p {
  font-size: 16px;
  line-height: 1.6;
  color: color-mix(in oklab, var(--paper) 88%, transparent);
  margin-top: 16px;
  max-width: 460px;
  text-wrap: pretty;
}
.cta-inner .actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}
.cta-inner .btn-primary {
  background: var(--paper);
  color: var(--terracotta-deep);
  box-shadow: none;
}
.cta-inner .btn-primary:hover {
  background: var(--ink);
  color: var(--paper);
}
.cta-inner .btn-ghost {
  border-color: color-mix(in oklab, var(--paper) 50%, transparent);
  color: var(--paper);
}
.cta-inner .btn-ghost:hover {
  background: color-mix(in oklab, var(--paper) 10%, transparent);
  border-color: var(--paper);
}

/* ── OUR STORY ───────────────────────────────────────── */
.story-page {
  background: var(--paper);
}
.story-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 88px;
  background:
    radial-gradient(
      ellipse 680px 460px at 14% 18%,
      color-mix(in oklab, var(--cream-deep) 78%, transparent) 0%,
      transparent 62%
    ),
    linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
}
.story-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in oklab, var(--rule) 44%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--rule) 36%, transparent) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 78%);
  pointer-events: none;
}
.story-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.65fr);
  gap: 80px;
  align-items: center;
}
.story-hero-copy {
  max-width: 760px;
}
.story-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.story-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--terracotta-deep);
}
.story-hero h1 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: clamp(52px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 26px;
}
.story-hero h1 em {
  display: block;
  color: var(--sage-deep);
  font-style: italic;
  font-weight: 500;
}
.story-hero-copy > p {
  max-width: 620px;
  color: var(--ink-soft);
  font-family: 'Lora', serif;
  font-size: 23px;
  line-height: 1.55;
  text-wrap: pretty;
}
.story-hero-card {
  position: relative;
  padding: 34px;
  border: 1px solid var(--rule);
  border-radius: 22px;
  background: color-mix(in oklab, var(--paper) 88%, white 12%);
  box-shadow: 0 28px 60px -34px rgba(42, 37, 32, 0.45);
  transform: rotate(1.5deg);
}
.story-hero-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid color-mix(in oklab, var(--rule) 70%, transparent);
  border-radius: 16px;
  pointer-events: none;
}
.story-card-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin-bottom: 18px;
}
.story-hero-card p {
  position: relative;
  z-index: 1;
  font-family: 'Lora', serif;
  font-size: 21px;
  line-height: 1.58;
  color: var(--ink);
}
.story-body {
  padding: 96px 0 124px;
}
.story-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 820px);
  gap: 82px;
  align-items: start;
  justify-content: center;
}
.story-nav {
  position: sticky;
  top: 112px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--cream);
}
.story-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.15s,
    color 0.15s;
}
.story-nav a:hover {
  background: var(--paper);
  color: var(--terracotta-deep);
}
.story-article {
  background: color-mix(in oklab, var(--paper) 88%, white 12%);
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: 24px 64px 18px;
  box-shadow: 0 24px 70px -48px rgba(42, 37, 32, 0.35);
}
.story-section {
  padding: 52px 0 58px;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 120px;
}
.story-section:first-child {
  border-top: 0;
}
.story-section-kicker {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin-bottom: 14px;
}
.story-section h2 {
  max-width: 700px;
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
  text-wrap: balance;
}
.story-section p,
.story-section blockquote {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.story-section p + p,
.story-section blockquote + p {
  margin-top: 18px;
}
.story-section em {
  color: var(--ink);
}
.story-section blockquote {
  margin: 34px 0;
  padding: 28px 32px;
  border-left: 4px solid var(--terracotta);
  border-radius: 0 16px 16px 0;
  background: var(--cream);
  font-family: 'Lora', serif;
  font-size: 21px;
  line-height: 1.65;
  color: var(--ink);
}
.story-feature {
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--cream);
}
.story-feature strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 15px;
}
.story-feature p {
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0;
}
.story-email-link {
  color: var(--terracotta-deep);
  font-weight: 600;
  border-bottom: 1px solid color-mix(in oklab, var(--terracotta-deep) 45%, transparent);
}
.story-contact-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--cream);
}
.story-contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.story-contact-form input,
.story-contact-form textarea {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
}
.story-contact-form textarea {
  resize: vertical;
}
.story-contact-form .btn {
  justify-self: start;
}
.story-contact-form > p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-mute);
}
.story-signoff {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 34px;
  color: var(--ink-soft);
}
.story-signoff strong {
  font-family: 'Lora', serif;
  font-size: 28px;
  font-style: italic;
  font-weight: 500;
  color: var(--sage-deep);
}

/* ── FOOTER ──────────────────────────────────────────── */
.footer {
  background: var(--paper);
  padding: 80px 0 32px;
  border-top: 1px solid var(--rule);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 64px;
}
.footer-brand .brand {
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--ink-mute);
  max-width: 320px;
  line-height: 1.6;
  text-wrap: pretty;
}
.footer-col h5 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--terracotta-deep);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-mute);
}
.footer-bottom .legal {
  display: flex;
  gap: 24px;
}

/* ── DECORATIVE WAVE ─────────────────────────────────── */
.wave {
  display: block;
  width: 100%;
  height: 22px;
  color: var(--rule);
}

/* ── FADE-UP ──────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE LAYOUT ────────────────────────────────── */
@media (max-width: 1100px) {
  .container {
    padding: 0 32px;
  }

  .nav-links {
    gap: 22px;
  }

  .hero {
    padding: 72px 0 92px;
  }

  .hero-grid,
  .story-hero-grid,
  .story-layout,
  .app-feature,
  .app-feature.reverse,
  .learn-feature,
  .rw-hatchery,
  .rw-creature {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .app-feature.reverse .app-feature-art {
    order: 0;
  }

  .section-head,
  .rw-eggshop-head,
  .cta-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }

  .section-head .lede,
  .app-feature-text > p,
  .feat-list,
  .learn-feature-text > p,
  .learn-list,
  .rw-hatchery-text > p,
  .rw-eggshop p,
  .rw-creature-text > p,
  .rw-stats,
  .rw-cred-row {
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(48px, 8vw, 64px);
  }

  .section-head h2,
  .learn-head h2,
  .rw-head h2 {
    font-size: clamp(42px, 7vw, 56px);
  }

  .audience-grid,
  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .learn-card,
  .learn-card.reverse {
    grid-template-columns: 1fr;
  }

  .learn-card.reverse .learn-card-art {
    order: 0;
  }

  .learn-card-body,
  .learn-card.reverse .learn-card-body {
    max-width: none;
    padding: 44px;
    margin-left: 0;
  }

  .rw-loop {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .rw-step {
    min-width: min(100%, 260px);
  }

  .rw-arrow {
    display: none;
  }

  .cta-inner .actions {
    justify-content: flex-start;
  }

  .story-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .story-article {
    padding: 18px 44px 12px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 20px;
  }

  .nav {
    padding-top: max(10px, env(safe-area-inset-top));
  }

  .nav-inner {
    padding: 12px 0;
    gap: 14px;
  }

  .brand-logo {
    height: 32px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    gap: 8px;
  }

  .nav-cta .btn-ghost {
    display: none;
  }

  .btn {
    width: 100%;
    padding: 13px 18px;
  }

  .btn-sm {
    width: auto;
    padding: 9px 14px;
    font-size: 12px;
  }

  .hero {
    padding: 48px 0 72px;
  }

  .story-hero {
    padding: 64px 0 56px;
  }

  .hero-grid {
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 52px);
    margin-bottom: 20px;
  }

  .hero-title {
    gap: 0.04em;
  }

  .hero-title-line--offset {
    padding-left: 0.1em;
  }

  .hero-lede,
  .story-hero-copy > p,
  .learn-lede,
  .rw-lede {
    font-size: 16px;
  }

  .hero-actions,
  .app-cta-actions,
  .cta-inner .actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .hero-meta {
    gap: 18px;
    justify-content: space-between;
  }

  .hero-meta-item .num {
    font-size: 19px;
  }

  .hero-app .hero-badge {
    bottom: -22px;
    left: 14px;
    right: 14px;
    justify-content: center;
  }

  .browser-frame,
  .browser-frame.compact,
  .app-feature.reverse .browser-frame.compact,
  .rw-hatchery-art .browser-frame.compact {
    transform: none;
    animation: none;
    border-radius: 12px;
  }

  .browser-chrome {
    padding: 8px 10px;
  }

  .browser-dots span {
    width: 8px;
    height: 8px;
  }

  .browser-url {
    min-width: 0;
    margin: 0 8px;
    padding: 3px 8px;
    font-size: 10px;
  }

  .browser-url span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .section {
    padding: 72px 0;
  }

  .story-body {
    padding: 54px 0 72px;
  }

  .section-head {
    margin-bottom: 42px;
  }

  .story-hero h1 {
    font-size: clamp(40px, 12vw, 54px);
  }

  .section-head h2,
  .learn-head h2,
  .rw-head h2 {
    font-size: clamp(36px, 10vw, 46px);
  }

  .app-feature {
    margin-bottom: 64px;
  }

  .app-feature-text h3,
  .learn-feature-text h3,
  .rw-hatchery-text h3,
  .rw-eggshop h3,
  .rw-creature h3 {
    font-size: clamp(30px, 8vw, 36px);
  }

  .app-cta,
  .rw-eggshop {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 22px;
    border-radius: 16px;
  }

  .audience-grid,
  .program-grid {
    grid-template-columns: 1fr;
  }

  .audience-card {
    padding: 28px 24px;
  }

  .learn-head,
  .rw-head {
    margin-bottom: 48px;
    text-align: left;
  }

  .learn-head .eyebrow::after,
  .rw-head .eyebrow::after {
    display: none;
  }

  .learn-card-art {
    min-height: 0;
    padding: 24px;
  }

  .learn-card-body,
  .learn-card.reverse .learn-card-body {
    padding: 28px 24px 32px;
  }

  .rw-loop {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 64px;
  }

  .rw-step {
    min-width: 0;
  }

  .rw-hatchery,
  .rw-eggshop,
  .rw-creature {
    margin-bottom: 64px;
  }

  .rw-stats {
    gap: 14px;
  }

  .rw-stat .num {
    font-size: 30px;
  }

  .rw-rarities {
    grid-template-columns: 1fr;
  }

  .rw-cred-row {
    flex-wrap: wrap;
    gap: 18px;
  }

  .story-hero-card {
    padding: 28px 24px;
    transform: none;
  }

  .story-hero-card p {
    font-size: 18px;
  }

  .story-nav {
    display: none;
  }

  .story-article {
    border-radius: 18px;
    padding: 4px 24px 0;
  }

  .story-section {
    padding: 38px 0 42px;
    scroll-margin-top: 88px;
  }

  .story-section p,
  .story-section blockquote {
    font-size: 16px;
    line-height: 1.75;
  }

  .story-section blockquote {
    margin: 28px 0;
    padding: 22px 22px;
    font-size: 18px;
  }

  .story-feature,
  .story-contact-form {
    padding: 18px;
  }

  .story-contact-form .btn {
    justify-self: stretch;
  }

  .cta-inner {
    padding: 84px 0 88px;
  }

  .cta-inner h2 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .footer {
    padding: 56px 0 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 44px;
  }

  .footer-bottom,
  .footer-bottom .legal {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 16px;
  }

  .section-head h2 br,
  .learn-head h2 br,
  .rw-head h2 br,
  .cta-inner h2 br {
    display: none;
  }

  .hero-title-line--offset {
    padding-left: 0;
  }

  .hero-meta,
  .rw-stats {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-meta {
    gap: 14px;
  }

  .nav-cta .btn-primary {
    padding-inline: 12px;
  }

  .app-cta,
  .rw-eggshop {
    margin-left: -4px;
    margin-right: -4px;
  }
}
