/* Story page: night, then dusk, then morning. Uses the shared tokens from site.css. */
.story .eyebrow { font: 600 14px/1.4 var(--sans); letter-spacing: .01em; margin: 0 0 14px; }
.story h2 { font: 300 40px/1.05 var(--serif); letter-spacing: -.035em; margin: 0 0 16px; text-wrap: balance; }

/* I. night */
.night { position: relative; min-height: calc(100svh - 96px); display: grid; align-items: center; color: #fff; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 30%, #1c2073 0%, var(--navy) 55%, #07072e 100%); }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.night-inner { position: relative; text-align: center; padding-block: 64px 56px; display: grid; justify-items: center; }
.stag { width: 92px; filter: drop-shadow(0 0 18px rgba(190,210,255,.8)) drop-shadow(0 0 48px rgba(150,180,255,.45)); opacity: 0; transform: translateY(14px); animation: rise 1.6s .2s cubic-bezier(.2,.7,.2,1) forwards; }
.night .eyebrow { color: #b9c9ff; margin-top: 30px; opacity: 0; animation: fade 1.2s .9s forwards; }
.night h1 { margin: 0; font: 300 52px/1 var(--serif); letter-spacing: -.04em; opacity: 0; animation: fade 1.4s 1.1s forwards; }
.night h1 em { font-weight: 300; color: #dfe7ff; }
.dict { margin: 40px 0 0; padding: 22px 26px; text-align: left; max-width: 430px; border: 1px solid rgba(201,216,251,.28); border-radius: 14px; background: rgba(255,255,255,.04); opacity: 0; animation: fade 1.4s 1.6s forwards; }
.dict dt { margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.dict .word { font: 300 26px/1 var(--serif); }
.dict .pron { color: #b9c9ff; font-size: 14px; }
.dict .pos { font-size: 11.5px; letter-spacing: .01em; color: #8f9be0; }
.dict dd { margin: 4px 0 0; font-size: 15px; color: #d6dcf7; }
.dict dd b { color: #fff; font-weight: 500; margin-right: 4px; }
.cue { margin-top: 36px; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .01em; color: #b9c9ff; opacity: 0; animation: fade 1s 2.2s forwards; }
.cue svg { animation: bob 2.4s ease-in-out infinite; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes bob { 50% { transform: translateY(5px); } }

/* II. letter */
.letter { background: linear-gradient(180deg, #07072e 0%, #15175a 100%); padding-block: 20px 80px; }
.paper { max-width: 640px; margin: 0 auto; background: #fbfaf6; color: var(--ink); border-radius: 6px; padding: 40px 30px 36px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); transform: rotate(-.6deg); }
.paper p { font: 400 19px/1.65 var(--sans); margin: 0 0 18px; }
.paper .salute { font: 300 30px/1.2 var(--serif); margin-bottom: 22px; }
.paper .sign { margin: 28px 0 0; font-style: normal; }
.fill { color: #6a6d93; background: repeating-linear-gradient(90deg, rgba(124,119,214,.12) 0 6px, transparent 6px 9px); border-radius: 3px; }

/* III. meanings (dusk) */
.meanings { color: #fff; padding-block: 80px 40px; background: linear-gradient(180deg, #15175a 0%, #2b2a6e 45%, #4a3f78 100%); }
.m-head { max-width: 640px; margin-bottom: 40px; }
.m-head .eyebrow { color: #c9d8fb; }
.m-head > p:last-child { color: #d6dcf7; font-size: 16px; margin: 0; }
.stage { display: none; }
.chapters { display: grid; gap: 56px; }
.chap .pic { aspect-ratio: 4/5; border-radius: 999px 999px 18px 18px; overflow: hidden; margin-bottom: 22px; background: #e4e0d8; box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); }
.chap .pic img { width: 100%; height: 100%; object-fit: cover; }
.chap .tag { font-size: 12px; letter-spacing: .01em; color: #c9d8fb; }
.chap h3 { font: 300 44px/1.02 var(--serif); letter-spacing: -.035em; margin: 6px 0 14px; }
.chap p { font: 400 18px/1.65 var(--sans); color: #e6e9fb; margin: 0 0 14px; max-width: 34em; }
.chap blockquote { margin: 0 0 14px; padding-left: 16px; border-left: 2px solid rgba(201,216,251,.5); font: 400 18px/1.6 var(--sans); color: #fff; }
.carry { margin-top: 18px; display: inline-flex; align-items: center; gap: 14px; padding: 8px 18px 8px 8px; border-radius: 96px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); transition: background .2s; }
.carry:hover { background: rgba(255,255,255,.16); }
.carry img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.carry span { font-size: 14px; line-height: 1.3; }
.carry small { display: block; color: #b9c9ff; font-size: 12.5px; }

/* IV. dawn */
.dawn { height: 340px; display: grid; place-items: center; text-align: center;
  background: linear-gradient(180deg, #4a3f78 0%, #8a6e8c 26%, #d9a98f 52%, #efd9c4 74%, var(--opal) 100%); }
.dawn p { margin: 0; font: 300 44px/1 var(--serif); letter-spacing: -.035em; color: #fff; text-shadow: 0 2px 30px rgba(74,63,120,.35); }
.dawn em { font-weight: 300; }

/* V. how it works */
.how { background: var(--opal); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { background: #fff; border-radius: var(--r-card); padding: 30px 26px; text-align: center; }
.steps .ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--lavender); color: var(--navy); }
.steps .ico svg { width: 26px; height: 26px; }
.steps h3 { font: 300 30px/1.1 var(--serif); margin: 0 0 8px; letter-spacing: -.02em; }
.steps p { margin: 0 auto; max-width: 26ch; color: var(--ink-soft); font-size: 15px; }

/* VI. promise */
.promise { background: var(--opal); padding-top: 10px; }
.promise-inner { display: grid; gap: 30px; border-top: 1px solid rgba(124,119,214,.4); padding-top: 50px; }
.promise .eyebrow { color: var(--accent-ink); }
.promise .big { font: 300 22px/1.5 var(--serif); margin: 0; max-width: 30em; }
.vows { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.vows li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 15px; }
.vows b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

/* VII. finale */
.finale { background: var(--opal); padding-bottom: 80px; }
.finale-inner { text-align: center; border-radius: var(--r-card); padding: 30px 20px 44px; background: radial-gradient(120% 120% at 50% 30%, #f4f1eb 0%, #e8e3da 60%, #ddd7cc 100%); }
.finale .fan { position: relative; height: 210px; }
.finale h2 { color: var(--navy); font-size: 44px; }
.finale-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

@media (min-width: 900px) {
  .story h2 { font-size: 56px; }
  .night h1 { font-size: 92px; }
  .stag { width: 120px; }
  .paper { padding: 64px 70px 56px; }
  .paper p { font-size: 21px; }
  .meanings { padding-block: 120px 60px; }
  .m-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; }
  .stage { display: block; position: sticky; top: 120px; height: calc(100vh - 160px); max-height: 640px; }
  .arch { position: relative; height: calc(100% - 40px); border-radius: 999px 999px 22px 22px; overflow: hidden; background: #e4e0d8; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
  .arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .7s ease, transform 1.2s ease; }
  .arch img.on { opacity: 1; transform: none; }
  .stage-cap { margin: 14px 0 0; text-align: center; font-size: 12px; letter-spacing: .01em; color: #c9d8fb; }
  .chapters { gap: 0; }
  .chap { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding-block: 40px; opacity: .35; transition: opacity .5s; }
  .chap.on { opacity: 1; }
  .chap .pic { display: none; }
  .chap h3 { font-size: 64px; }
  .dawn { height: 460px; }
  .dawn p { font-size: 76px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .promise-inner { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 80px; padding-top: 70px; }
  .promise .big { font-size: 26px; }
  .finale-inner { padding: 50px 40px 64px; }
  .finale .fan { height: 300px; }
  .finale h2 { font-size: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .stag, .night .eyebrow, .night h1, .dict, .cue { animation: none; opacity: 1; transform: none; }
  .cue svg { animation: none; }
}
.carry { align-self: flex-start; }
.stage-cap { display: none !important; }
.arch { height: 100% !important; }
