:root {
  color-scheme: light;
  --bg: #f9f7f7;
  --bg-alt: #ffffff;
  --ink: #222831;
  --muted: rgba(34, 40, 49, 0.74);
  --line: rgba(17, 45, 78, 0.14);
  --primary: #112d4e;
  --secondary: #3f72af;
  --accent: #a3e635;
  --accent-2: #3f72af;
  --accent-3: #c8f36b;
  --card: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 60px rgba(17, 45, 78, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(163, 230, 53, 0.18), transparent 28%),
    radial-gradient(circle at 80% 12%, rgba(63, 114, 175, 0.12), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 36%, #eef2f7 100%);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
}

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

.page-shell {
  overflow-x: clip;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 0;
  isolation: isolate;
  overflow: clip;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  transition: filter 180ms linear, transform 180ms linear;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(249, 247, 247, 0.96) 0%, rgba(249, 247, 247, 0.82) 18%, rgba(249, 247, 247, 0.18) 48%, rgba(249, 247, 247, 0.02) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(17, 45, 78, 0.04) 54%, rgba(17, 45, 78, 0.18) 100%);
}

.hero__brand {
  display: block;
  width: clamp(7.5rem, 11vw, 10rem);
  max-width: 32vw;
  margin: 0 clamp(1.25rem, 3vw, 2rem) clamp(0.45rem, 1.2vw, 0.75rem) auto;
}

.hero__brand img {
  display: block;
  width: 100%;
  height: auto;
}

.hero__content {
  width: min(100%, 84rem);
  margin: 0;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.2rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  color: var(--ink);
  transition: none;
}

.eyebrow,
.hero__label,
.story__kicker,
.chapter__meta {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--secondary);
}

.hero h1 {
  margin: 0;
  max-width: 11.5ch;
  font-family: "Arial Narrow", "Franklin Gothic Medium", "Avenir Next Condensed", "Impact", sans-serif;
  font-size: clamp(3.2rem, 7.4vw, 7.7rem);
  line-height: 0.82;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--primary);
  text-shadow: 0 8px 24px rgba(255, 255, 255, 0.18);
}

.hero__title-line {
  display: block;
}

.hero__title-line--accent {
  color: var(--accent);
}

.hero__lede {
  max-width: 34rem;
  margin: 1rem 0 0;
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  line-height: 1.6;
  color: rgba(34, 40, 49, 0.86);
}

.hero__actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero__cta {
  min-width: 13rem;
}

.hero__cta,
.chapter__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.hero__cta {
  box-shadow: 0 12px 30px rgba(7, 22, 38, 0.18);
}

.hero__cta--primary {
  background: var(--primary);
  color: #f9f7f7;
}

.hero__cta--secondary {
  border: 2px solid var(--secondary);
  background: rgba(249, 247, 247, 0.84);
  color: var(--primary);
}

.hero__cta:hover,
.chapter__cta:hover {
  transform: translateY(-2px);
}

.hero__features {
  margin-top: clamp(1.6rem, 4vw, 3.2rem);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 72rem;
  border-top: 1px solid rgba(17, 45, 78, 0.24);
}

.hero__feature {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 5.9rem;
  padding: 1.1rem 0.85rem 0.85rem;
  color: var(--primary);
  text-transform: uppercase;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero__feature::before {
  content: "";
  position: absolute;
  inset: 0.7rem 0 1rem;
  border-right: 1px solid rgba(17, 45, 78, 0.22);
}

.hero__feature:last-child::before {
  border-right: 0;
}

.story {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  width: min(100%, 78rem);
  margin: 0 auto;
  padding: 2rem clamp(1.2rem, 4vw, 3.5rem) 5rem;
  background:
    radial-gradient(circle at 12% 0%, rgba(163, 230, 53, 0.22), transparent 22%),
    radial-gradient(circle at 88% 8%, rgba(63, 114, 175, 0.24), transparent 24%),
    radial-gradient(circle at 50% 108%, rgba(163, 230, 53, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(249, 247, 247, 0.82));
}

.story::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 20%, rgba(63, 114, 175, 0.22), transparent 18%),
    radial-gradient(circle at 82% 18%, rgba(163, 230, 53, 0.2), transparent 16%),
    radial-gradient(circle at 50% 100%, rgba(17, 45, 78, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(17, 45, 78, 0.08), rgba(163, 230, 53, 0.06));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.62));
}

.story::after {
  content: "";
  position: absolute;
  inset: 1rem;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(17, 45, 78, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(17, 45, 78, 0.07) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 0% 0%, rgba(163, 230, 53, 0.22), transparent 18%),
    radial-gradient(circle at 100% 0%, rgba(63, 114, 175, 0.18), transparent 20%);
  background-size: 3.5rem 3.5rem;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.92));
  opacity: 0.36;
}

.story__rail {
  position: sticky;
  top: 1.25rem;
  align-self: start;
  min-height: calc(100svh - 2.5rem);
}

.story__rail-inner {
  padding: 1.3rem;
  border: 1px solid rgba(63, 114, 175, 0.22);
  border-radius: 1.6rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(245, 248, 252, 0.62)),
    radial-gradient(circle at top right, rgba(163, 230, 53, 0.22), transparent 38%),
    radial-gradient(circle at bottom left, rgba(63, 114, 175, 0.16), transparent 42%);
  backdrop-filter: blur(16px) saturate(1.18);
  box-shadow: 0 22px 66px rgba(17, 45, 78, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.34) inset;
}

.story__kicker {
  margin: 0 0 1rem;
  color: var(--secondary);
}

.story__progress {
  position: relative;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(17, 45, 78, 0.14), rgba(63, 114, 175, 0.1), rgba(163, 230, 53, 0.14));
  overflow: hidden;
}

.story__progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 52%, var(--accent) 100%);
  box-shadow: 0 0 22px rgba(163, 230, 53, 0.5);
  transition: width 120ms linear;
}

.story__nav {
  list-style: none;
  padding: 1rem 0 0;
  margin: 0;
  display: grid;
  gap: 0.3rem;
}

.story__nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.2rem;
  color: rgba(34, 40, 49, 0.78);
  font-size: 0.92rem;
  transition: color 160ms ease, transform 160ms ease;
}

.story__nav a::before {
  content: "";
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: rgba(17, 45, 78, 0.28);
  flex: 0 0 auto;
}

.story__nav a:hover,
.story__nav a.is-active {
  color: var(--primary);
  transform: translateX(4px);
}

.story__nav a.is-active::before {
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  box-shadow: 0 0 0 4px rgba(163, 230, 53, 0.22), 0 0 16px rgba(63, 114, 175, 0.18);
}

.chapter {
  min-height: 88svh;
  display: grid;
  grid-column: 2;
  align-content: center;
  justify-items: center;
  gap: 1rem;
  padding: clamp(2rem, 6vw, 4.25rem);
  margin: 0 0 1.2rem;
  border: 1px solid rgba(17, 45, 78, 0.12);
  border-radius: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.58)),
    radial-gradient(circle at top right, rgba(163, 230, 53, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow);
  opacity: 0.16;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease, border-color 220ms ease, background-color 220ms ease;
}

.chapter--bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.chapter--bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--chapter-bg) center center / cover no-repeat;
  z-index: -2;
}

.chapter--bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(249, 247, 247, 0.04), rgba(17, 45, 78, 0.08));
  z-index: -1;
}

.chapter--bg-1 {
  --chapter-bg: url("images/bg-1.jpg");
}

.chapter--bg-2 {
  --chapter-bg: url("images/bg-2.jpg");
}

.chapter--bg-3 {
  --chapter-bg: url("images/bg-3.jpg");
}

.chapter--bg-3::before {
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0) 34%, rgba(8, 16, 28, 0.42) 60%, rgba(8, 16, 28, 0.9) 100%),
    var(--chapter-bg) 40% center / cover no-repeat;
}

.chapter--bg-3::after {
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.02) 30%, rgba(8, 16, 28, 0.34) 68%, rgba(8, 16, 28, 0.84) 100%),
    linear-gradient(180deg, rgba(249, 247, 247, 0.02), rgba(17, 45, 78, 0.22));
}

.chapter--bg-4 {
  --chapter-bg: url("images/bg-4.jpg");
}

.chapter--bg-5 {
  --chapter-bg: url("images/bg-5.jpg");
}

.chapter--bg-7 {
  --chapter-bg: url("images/coach-hero.png");
}

.chapter--feature {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #f9f7f7;
  background: var(--primary);
  --step1-media-height: 88svh;
}

.chapter--feature::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--step1-media-height);
  background: var(--chapter-bg) center center / cover no-repeat;
  z-index: -2;
}

.chapter--feature::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--step1-media-height);
  background:
    linear-gradient(90deg, rgba(17, 45, 78, 0.3) 0%, rgba(17, 45, 78, 0.18) 22%, rgba(17, 45, 78, 0) 58%),
    linear-gradient(180deg, rgba(249, 247, 247, 0.06) 0%, rgba(17, 45, 78, 0.2) 100%);
  z-index: -1;
}

.chapter--feature .chapter__meta {
  color: rgba(249, 247, 247, 0.92);
  margin-inline: 0;
  width: auto;
  padding: 0;
  background: transparent;
  border-radius: 0;
  margin-bottom: 0;
}

.chapter--feature .chapter__meta--split {
  display: inline-flex;
  gap: 0.35em;
  align-items: baseline;
}

.chapter--feature .chapter__meta-number,
.chapter--feature .chapter__meta-slash {
  color: var(--accent);
}

.chapter--feature .chapter__meta-label {
  color: rgba(249, 247, 247, 0.92);
}

.chapter--feature .chapter__content h1 {
  color: #f9f7f7;
  font-weight: 800;
  text-shadow: none;
  font-family: "Arial Narrow", "Franklin Gothic Medium", "Avenir Next Condensed", "Impact", sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
  max-width: 10.5ch;
}

.chapter--feature .chapter__content h2 {
  color: #cfe0f6;
  font-weight: 700;
  text-shadow: none;
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
  line-height: 1.12;
  margin-top: 0;
  max-width: 18ch;
}

.chapter--feature .chapter__content p {
  color: rgba(249, 247, 247, 0.92);
  text-shadow: none;
  font-size: clamp(0.98rem, 1.12vw, 1.08rem);
  line-height: 1.68;
  max-width: 41ch;
  margin-top: 0;
}

.chapter--feature {
  justify-items: end;
}

.chapter--feature .chapter__content {
  margin-left: auto;
  margin-right: 0;
  width: min(28rem, 32vw);
  padding: 1rem 0 1.15rem 1.15rem;
  background: var(--primary);
  border-radius: 0;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  justify-self: end;
}

.chapter--feature.is-expanded .chapter__content {
  padding-bottom: 1.35rem;
}

.chapter--feature .chapter__meta,
.chapter--feature .chapter__content {
  transform: translateY(20%);
}

.chapter__lede {
  max-width: 38ch;
}

.chapter__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding-top: 0.2rem;
}

.chapter--feature .chapter__cta {
  min-width: 0;
  padding-inline: 1.15rem;
}

.chapter__cta--primary.chapter__cta--next {
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  color: #0d1b2a;
  box-shadow: 0 14px 28px rgba(163, 230, 53, 0.18);
}

.chapter__cta--secondary.chapter__cta--toggle {
  border: 1px solid rgba(249, 247, 247, 0.3);
  background: rgba(249, 247, 247, 0.08);
  color: #f9f7f7;
  backdrop-filter: blur(12px);
}

.chapter__cta--toggle {
  gap: 0.45rem;
}

.chapter__cta-icon {
  display: inline-block;
  transition: transform 180ms ease;
}

.chapter--feature.is-expanded .chapter__cta-icon {
  transform: rotate(45deg);
}

.chapter__expand {
  display: grid;
  gap: 0.85rem;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-0.35rem);
  transition: opacity 240ms ease, transform 240ms ease;
  padding-top: 0.85rem;
  padding-bottom: clamp(1.5rem, 3vw, 3rem);
  border-top: 1px solid rgba(249, 247, 247, 0.14);
}

.chapter__expand p {
  margin: 0;
}

.chapter__expand-intro {
  padding-top: 0.2rem;
  color: #cfe0f6;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: clamp(1rem, 1.16vw, 1.1rem);
}

.chapter--feature .chapter__expand {
  padding-right: 1.15rem;
}

.chapter--feature.is-expanded .chapter__expand {
  opacity: 1;
  transform: translateY(0);
}

.chapter__frame {
  width: min(100%, 46rem);
  margin-inline: auto;
  padding: 1.25rem 1.35rem 1.4rem;
  border-radius: 1.6rem;
  background: rgba(17, 45, 78, 0.95);
  border: 1px solid rgba(249, 247, 247, 0.12);
  box-shadow: var(--shadow);
}

.chapter--bg-3 {
  color: #f9f7f7;
  justify-items: start;
}

.chapter--bg-3 .chapter__frame {
  width: min(50%, 36rem);
  margin-inline: 0;
  justify-self: start;
}

.chapter--bg-3 .chapter__meta {
  width: auto;
  margin-inline: 0;
  color: rgba(249, 247, 247, 0.88);
}

.chapter--bg-3 .chapter__meta--split {
  display: inline-flex;
  gap: 0.35em;
  align-items: baseline;
}

.chapter--bg-3 .chapter__meta-number,
.chapter--bg-3 .chapter__meta-slash {
  color: var(--accent);
}

.chapter--bg-3 .chapter__meta-label {
  color: rgba(249, 247, 247, 0.88);
}

.chapter--bg-3 .chapter__content {
  width: auto;
  margin-inline: 0;
}

.chapter--bg-3 .chapter__content,
.chapter--bg-3 .chapter__content * {
  text-align: left;
}

.chapter--bg-3 .chapter__content h1,
.chapter--bg-3 .chapter__content h2,
.chapter--bg-3 .chapter__content p {
  color: inherit;
}

.chapter--bg-3 .chapter__content p {
  margin-top: 0;
}

.chapter--bg-2 {
  color: #f9f7f7;
}

.chapter--bg-2 .chapter__frame {
  width: min(60%, 38rem);
  margin-inline: auto;
  justify-self: center;
}

.chapter--bg-2 .chapter__meta {
  width: auto;
  margin-inline: 0;
  color: rgba(249, 247, 247, 0.9);
}

.chapter--bg-2 .chapter__meta--split {
  display: inline-flex;
  gap: 0.35em;
  align-items: baseline;
}

.chapter--bg-2 .chapter__meta-number,
.chapter--bg-2 .chapter__meta-slash {
  color: var(--accent);
}

.chapter--bg-2 .chapter__meta-label {
  color: rgba(249, 247, 247, 0.9);
}

.chapter--bg-2 .chapter__content {
  width: auto;
  margin-inline: 0;
}

.chapter--bg-2 .chapter__content h1,
.chapter--bg-2 .chapter__content h2,
.chapter--bg-2 .chapter__content p {
  color: inherit;
}

.chapter--bg-2 .chapter__frame,
.chapter--bg-3 .chapter__frame,
.chapter--bg-4 .chapter__frame {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.25rem 1.35rem 1.4rem;
  background: rgba(17, 45, 78, 0.95);
}

.chapter--bg-2 .chapter__content,
.chapter--bg-3 .chapter__content,
.chapter--bg-4 .chapter__content {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.chapter--bg-4 {
  color: #f9f7f7;
}

.chapter--bg-5 {
  color: #f9f7f7;
  align-content: start;
  justify-items: start;
  background: #f8fafc;
}

.chapter--bg-5 .chapter__frame {
  width: min(70%, 49rem);
  margin-inline: 0;
  justify-self: start;
}

.chapter--bg-5 .chapter__meta {
  width: auto;
  margin-inline: 0;
  color: rgba(249, 247, 247, 0.88);
}

.chapter--bg-5 .chapter__meta--split {
  display: inline-flex;
  gap: 0.35em;
  align-items: baseline;
}

.chapter--bg-5 .chapter__meta-number,
.chapter--bg-5 .chapter__meta-slash {
  color: var(--accent);
}

.chapter--bg-5 .chapter__meta-label {
  color: rgba(249, 247, 247, 0.88);
}

.chapter--bg-5 .chapter__content {
  width: auto;
  margin-inline: 0;
}

.chapter--bg-5 .chapter__content,
.chapter--bg-5 .chapter__content * {
  text-align: left;
}

.chapter--bg-5 .chapter__content h1,
.chapter--bg-5 .chapter__content h2,
.chapter--bg-5 .chapter__content p {
  color: inherit;
}

.chapter--bg-5 .chapter__content p {
  margin-top: 0;
}

.chapter--bg-5 .chapter__bullets {
  list-style: none;
  padding: 0.65rem 0 0.7rem 0.85rem;
  margin: 0.6rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1.25rem;
}

.chapter--bg-5 .chapter__bullets li {
  position: relative;
  padding-left: 1rem;
  color: rgba(249, 247, 247, 0.92);
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  line-height: 1.4;
}

.chapter--bg-5 .chapter__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(163, 230, 53, 0.12);
}

.chapter--bg-5::before {
  background:
    url("images/greatplay-logo-navy.svg") 0 0 / clamp(7rem, 14vw, 11rem) auto repeat,
    linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.96));
  opacity: 0.28;
  filter: none;
  transform: rotate(-8deg) scale(1.08);
  transform-origin: center;
}

.chapter--bg-5::after {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.18), rgba(241, 245, 249, 0.08)),
    radial-gradient(circle at 18% 18%, rgba(17, 45, 78, 0.08), transparent 24%),
    radial-gradient(circle at 82% 82%, rgba(63, 114, 175, 0.08), transparent 22%);
}

.chapter--bg-4 .chapter__frame {
  width: min(60%, 38rem);
  margin-inline: auto;
  justify-self: center;
}

.chapter--bg-4 .chapter__meta {
  width: auto;
  margin-inline: 0;
  color: rgba(249, 247, 247, 0.9);
}

.chapter--bg-4 .chapter__meta--split {
  display: inline-flex;
  gap: 0.35em;
  align-items: baseline;
}

.chapter--bg-4 .chapter__meta-number,
.chapter--bg-4 .chapter__meta-slash {
  color: var(--accent);
}

.chapter--bg-4 .chapter__meta-label {
  color: rgba(249, 247, 247, 0.9);
}

.chapter--bg-4 .chapter__content {
  width: auto;
  margin-inline: 0;
}

.chapter--bg-4 .chapter__content h1,
.chapter--bg-4 .chapter__content h2,
.chapter--bg-4 .chapter__content p {
  color: inherit;
}

.chapter.is-active {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(163, 230, 53, 0.3);
  box-shadow: 0 22px 70px rgba(17, 45, 78, 0.18), 0 0 0 1px rgba(163, 230, 53, 0.12) inset;
}

.chapter__meta {
  color: var(--secondary);
}

.chapter__meta,
.chapter__content {
  max-width: 46rem;
  width: min(100%, 46rem);
  margin-inline: auto;
}

.chapter__content {
  position: relative;
  z-index: 1;
}

.chapter h1 {
  margin: 0;
  font-family: "Arial Narrow", "Franklin Gothic Medium", "Avenir Next Condensed", "Impact", sans-serif;
  font-size: clamp(2.1rem, 4.2vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--primary);
}

.chapter h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(1.35rem, 2.15vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-wrap: balance;
  color: var(--secondary);
  margin-top: 0.9rem;
}

.chapter p {
  max-width: 40rem;
  margin: 1rem 0 0;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.7;
  color: var(--muted);
}

.chapter--final {
  color: #f9f7f7;
  align-content: end;
  justify-items: start;
  background:
    linear-gradient(180deg, rgba(8, 16, 28, 0.08), rgba(8, 16, 28, 0.62)),
    linear-gradient(135deg, rgba(63, 114, 175, 0.16), rgba(163, 230, 53, 0.12));
}

.chapter--final .chapter__meta {
  color: rgba(249, 247, 247, 0.92);
  margin-inline: 0;
  width: auto;
}

.chapter--final .chapter__content {
  width: min(100%, 42rem);
  margin-inline: 0;
}

.chapter--final .chapter__content h1,
.chapter--final .chapter__content h2,
.chapter--final .chapter__content p {
  color: #f9f7f7;
}

.chapter--final .chapter__content p {
  max-width: 34rem;
}

.chapter--final .chapter__cta {
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  color: #0d1b2a;
}

.chapter__cta {
  margin-top: 1.4rem;
  width: fit-content;
  background: var(--primary);
  color: #f9f7f7;
}

.hero.is-fading .hero__media img {
  filter: blur(calc(12px * (1 - var(--hero-opacity, 1)))) saturate(1.02) brightness(0.97);
  transform: scale(calc(1.02 + (0.015 * (1 - var(--hero-opacity, 1)))));
}

.hero.is-fading .hero__content {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (max-width: 900px) {
  .chapter--feature {
    --step1-media-height: 76svh;
  }

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

  .story__rail {
    position: relative;
    top: 0;
    min-height: auto;
  }

  .chapter {
    grid-column: auto;
  }

  .story__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.15rem 0.6rem;
  }

  .hero__bottom {
    flex-direction: column;
    align-items: start;
  }

  .hero {
    min-height: auto;
  }

  .hero__content {
    padding-block: clamp(2rem, 8vw, 3rem);
  }

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

  .hero__feature:nth-child(2n)::before {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .chapter--feature {
    --step1-media-height: 64svh;
  }

  .hero {
    padding-inline: 0;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .story {
    padding-inline: 1rem;
  }

  .hero__content {
    padding-inline: 1rem;
  }

  .hero__actions {
    gap: 0.8rem;
  }

  .hero__cta {
    min-width: 0;
    width: 100%;
  }

  .chapter {
    min-height: auto;
  }

  .chapter--feature {
    justify-items: start;
  }

  .chapter--panel {
    justify-items: start;
  }

  .chapter--feature .chapter__meta,
  .chapter--feature .chapter__content {
    margin-inline: 0;
    width: min(100%, 46rem);
  }

  .chapter--feature .chapter__content {
    width: min(100%, 46rem);
  }

  .chapter--panel .chapter__meta,
  .chapter--panel .chapter__content {
    margin-inline: 0;
    width: min(100%, 46rem);
  }

  .chapter--bg-3 .chapter__frame {
    width: min(100%, 46rem);
    margin-inline: 0;
  }

  .chapter--bg-2 .chapter__frame {
    width: min(100%, 46rem);
    margin-inline: auto;
  }

  .chapter--bg-5 .chapter__bullets {
    grid-template-columns: 1fr;
  }

  .chapter__frame {
    width: min(100%, 46rem);
    margin-inline: 0;
  }

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

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

  .hero__feature::before {
    border-right: 0;
    border-bottom: 1px solid rgba(17, 45, 78, 0.18);
    inset: auto 0 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .chapter,
  .hero__content {
    transform: none !important;
    filter: none !important;
  }
}
