:root {
  --fa-bg: #08111f;
  --fa-panel: rgba(255,255,255,.075);
  --fa-line: rgba(255,255,255,.14);
  --fa-text: #f2f5ff;
  --fa-muted: #aab7d4;
  --fa-blue: #8bd3ff;
  --fa-violet: #b8a5ff;
  --fa-warm: #ffd39a;
  --fa-paper: #fbfcff;
  --fa-ink: #192238;
  --fa-paper-muted: #58647a;
  --fa-shadow: 0 30px 90px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.first-ascent-theme {
  margin: 0;
  color: var(--fa-text);
  background:
    radial-gradient(circle at 14% 2%, rgba(139,211,255,.20), transparent 31rem),
    radial-gradient(circle at 86% 11%, rgba(255,211,154,.14), transparent 27rem),
    radial-gradient(circle at 63% 54%, rgba(184,165,255,.11), transparent 31rem),
    linear-gradient(145deg, #07101d 0%, #10172a 48%, #080d18 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.68;
}

body.first-ascent-theme .progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 0%;
  background: linear-gradient(90deg, var(--fa-blue), var(--fa-violet), var(--fa-warm));
  z-index: 100;
}

.first-ascent-shell { max-width: 1200px; margin: 0 auto; padding: 30px 28px 52px; }

.origin-hero {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 34px;
  align-items: start;
  padding: clamp(40px, 6vw, 74px);
  margin: 30px 0 42px;
  border: 1px solid var(--fa-line);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.025)),
    radial-gradient(circle at 75% 18%, rgba(139,211,255,.09), transparent 22rem);
  box-shadow: var(--fa-shadow);
  overflow: hidden;
  position: relative;
}
.origin-hero::after {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  right: -110px; bottom: -140px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255,255,255,.018), 0 0 0 84px rgba(255,255,255,.012);
  pointer-events: none;
}
.origin-hero-copy { position: relative; z-index: 2; max-width: 880px; }
.origin-eyebrow,
.practice-label,
.side-label,
.origin-next > span {
  display: inline-flex;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: .17em;
  font-size: 12px;
  font-weight: 850;
}
.origin-eyebrow {
  padding: 8px 12px;
  border-radius: 999px;
  color: #d9e6ff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.11);
}
.origin-hero h1 {
  margin: 26px 0 16px;
  font-size: clamp(54px, 7.2vw, 92px);
  line-height: .9;
  letter-spacing: -.065em;
  max-width: 700px;
}
.origin-subtitle {
  margin: 0;
  color: var(--fa-muted);
  font-size: clamp(20px, 2.25vw, 28px);
  line-height: 1.3;
  max-width: 670px;
}
.origin-hero-line {
  margin: 34px 0 16px;
  color: white;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.045em;
}
.origin-intro { color: #c1cae0; max-width: 700px; font-size: 17px; margin: 0; }
.origin-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.origin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 17px;
  border-radius: 999px;
  text-decoration: none;
  color: #edf4ff;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.075);
  font-weight: 800;
  transition: transform .18s ease, background .18s ease;
}
.origin-btn:hover { transform: translateY(-2px); background: rgba(255,255,255,.12); }
.origin-btn.primary { background: linear-gradient(135deg, rgba(139,211,255,.22), rgba(184,165,255,.19)); }


.origin-hero-figure {
  margin: 6px 0 0;
  position: relative;
  z-index: 2;
}
.origin-hero-image-wrap {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.04);
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.origin-hero-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.origin-hero-figure figcaption {
  margin: 12px 4px 0;
  color: #8fa1c4;
  font-size: 13px;
  line-height: 1.45;
}


.origin-reading {
  display: grid;
  grid-template-columns: minmax(0,1fr) 286px;
  gap: 26px;
  align-items: start;
}
.origin-article {
  background: var(--fa-paper);
  color: var(--fa-ink);
  border-radius: 30px;
  padding: clamp(32px, 5.4vw, 72px);
  box-shadow: var(--fa-shadow);
}
.origin-article p { font-size: 18px; color: var(--fa-ink); margin: 0 0 19px; }
.story-opening {
  padding-bottom: 36px;
  margin-bottom: 42px;
  border-bottom: 1px solid #e1e6f0;
}
.story-opening p:first-child {
  font-size: clamp(27px, 3.2vw, 39px);
  line-height: 1.15;
  letter-spacing: -.035em;
  font-weight: 850;
  color: #11192b;
}
.story-section { position: relative; padding: 10px 0 42px; }
.story-section + .story-section { border-top: 1px solid #e5e9f1; padding-top: 46px; }
.section-number {
  display: inline-flex;
  margin-bottom: 10px;
  color: #72809a;
  letter-spacing: .15em;
  font-size: 12px;
  font-weight: 900;
}
.story-section h2,
.practice-section h2,
.origin-next h2 {
  color: #10182a;
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.03;
  letter-spacing: -.045em;
  margin: 0 0 24px;
}
.shift-card {
  margin: 28px 0 30px;
  padding: 22px 24px;
  border-radius: 21px;
  border: 1px solid #cfe4f5;
  background: linear-gradient(135deg, #edf8ff, #f4f7ff);
}
.shift-card.secondary { border-color: #ddd5fb; background: linear-gradient(135deg, #f4f1ff, #fff9ef); }
.shift-card span { display: block; color: #71809a; font-size: 12px; text-transform: uppercase; letter-spacing: .15em; font-weight: 850; }
.shift-card strong { display: block; margin: 8px 0 4px; font-size: clamp(22px, 3vw, 31px); line-height: 1.15; letter-spacing: -.025em; color: #132038; }
.shift-card b { color: #6977d8; padding: 0 5px; }
.shift-card small { display: block; color: #5a6780; font-size: 14px; }
.seeing-callout {
  margin: 34px 0;
  padding: 30px 30px 30px 34px;
  border: 0;
  border-left: 5px solid #7185e9;
  border-radius: 0 22px 22px 0;
  background: linear-gradient(135deg, #edf7ff, #f4f0ff);
  color: #18233a;
  font-size: clamp(27px, 3.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -.04em;
  font-weight: 620;
}
.seeing-callout strong { color: #11182b; font-weight: 900; }
.staircase-inline {
  margin: 26px 0 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 20px 22px;
  border: 1px solid #dde3ef;
  border-radius: 20px;
  background: #f7f9fd;
  color: #1d2840;
  font-weight: 850;
}
.staircase-inline b { color: #7a70d3; }
.staircase-inline small { flex-basis: 100%; color: #6b7690; font-weight: 600; }
.habit-line { font-weight: 900; font-size: 22px !important; color: #11182a !important; margin-top: 28px !important; }

.practice-section {
  margin-top: 16px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 26px;
  background: linear-gradient(145deg, #101a2e, #18223a);
  color: #edf2ff;
  box-shadow: 0 24px 65px rgba(26,34,55,.18);
}
.practice-label { color: #9ab1d7; margin-bottom: 10px; }
.practice-section h2 { color: white; }
.practice-section p { color: #d3dcef; }
.practice-quote {
  margin: 26px 0;
  padding: 0 0 0 20px;
  border-left: 4px solid var(--fa-warm);
  color: white;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.15;
  letter-spacing: -.035em;
}
.practice-path {
  display: grid;
  grid-template-columns: minmax(0,1fr) 28px minmax(0,1fr) 28px minmax(0,1fr);
  gap: 8px;
  align-items: center;
  margin: 28px 0;
}
.practice-path > div {
  min-height: 116px;
  padding: 16px;
  border-radius: 17px;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.055);
}
.practice-path span { display: block; color: #93a5c6; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 850; margin-bottom: 7px; }
.practice-path strong { font-size: 14px; line-height: 1.35; }
.practice-path > b { color: var(--fa-warm); text-align: center; font-size: 20px; }
.closing-line { color: white !important; font-size: 22px !important; font-weight: 900; margin-top: 28px !important; }

.origin-side {
  display: grid;
  gap: 18px;
  align-self: stretch;
  align-content: start;
  min-height: 100%;
}
.side-card {
  border: 1px solid var(--fa-line);
  border-radius: 22px;
  background: rgba(255,255,255,.065);
  backdrop-filter: blur(18px);
  padding: 20px;
}
.side-sticky { position: sticky; top: 88px; align-self: start; z-index: 3; }
.side-label { color: #879abc; margin-bottom: 12px; }
.side-card a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  align-items: start;
  padding: 11px 0;
  border-top: 1px solid rgba(255,255,255,.09);
  color: #c5d0e6;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.32;
}
.side-card a b { color: var(--fa-blue); font-size: 11px; letter-spacing: .08em; padding-top: 3px; }
.side-card a:hover { color: white; }
.takeaway-card p { margin: 0 0 8px; color: #99a9c7; font-size: 14px; }
.takeaway-card strong { display: block; color: #f0f4ff; line-height: 1.4; font-size: 16px; }

.origin-next {
  margin: 32px 0 10px;
  padding: clamp(32px, 5vw, 54px);
  border: 1px solid var(--fa-line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(139,211,255,.08), rgba(184,165,255,.08));
}
.origin-next > span { color: #8fa4c8; }
.origin-next h2 { color: white; margin: 12px 0 14px; }
.origin-next p { max-width: 780px; color: #b5c1d9; font-size: 17px; }
.origin-next .origin-btn { margin-top: 10px; }

@media (max-width: 980px) {
  .origin-hero { grid-template-columns: 1fr; min-height: auto; }
  .ascent-visual { min-height: 430px; }
  .origin-reading { grid-template-columns: 1fr; }
  .origin-side { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .side-sticky { position: static; }
}

@media (max-width: 720px) {
  .first-ascent-shell { padding: 18px 16px 38px; }
  .origin-hero { padding: 30px 22px; border-radius: 26px; margin-top: 20px; }
  .origin-hero h1 { font-size: clamp(48px, 16vw, 72px); }
  .ascent-visual { min-height: 410px; padding: 20px; }
  .ascent-step { width: 94%; }
  .origin-article { padding: 30px 22px; border-radius: 24px; }
  .origin-article p { font-size: 17px; }
  .origin-side { grid-template-columns: 1fr; }
  .practice-path { grid-template-columns: 1fr; }
  .practice-path > b { transform: rotate(90deg); }
  .staircase-inline { align-items: flex-start; }
}

.side-sticky a {
  position: relative;
  border-radius: 10px;
  transition: color .16s ease, background .16s ease, padding-left .16s ease;
}

.side-sticky a.active,
.side-sticky a.is-current {
  color: #fff;
  background: linear-gradient(90deg, rgba(139,211,255,.12), rgba(184,165,255,.06));
  padding-left: 10px;
}

.side-sticky a.active::before,
.side-sticky a.is-current::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 50%;
  width: 5px;
  height: 5px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--fa-blue);
  box-shadow: 0 0 0 4px rgba(139,211,255,.08);
}
