/* Our Story: editorial and quiet. One serif voice, hairlines, long pauses, slow motion. */
.story { --serif: "Bodoni Moda", Georgia, serif; --lux-ease: cubic-bezier(.22, 1, .36, 1); }
.story ::selection { background: var(--ink); color: #fff; }

.st-hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: calc(100svh - 72px); padding: 72px 0 104px; background: linear-gradient(180deg, var(--violet-soft) 0%, #f8f6ff 78%, #fff 100%); text-align: center; }
.st-hero > .wrap { position: relative; z-index: 2; width: 100%; pointer-events: none; }
.st-hero h1 { max-width: min(1000px, 66vw); margin: 0 auto; font: 400 clamp(34px, min(6vw, 11.5vh), 92px)/1.08 var(--serif); letter-spacing: -0.025em; font-optical-sizing: auto; text-wrap: balance; }
.st-hero h1 em { color: var(--violet-deep, #5b46dc); }
/* each word rises out of its own mask; padding keeps the descenders inside it */
.h-w { display: inline-block; overflow: hidden; padding: 0 .07em .16em; margin: 0 -.07em -.16em; vertical-align: bottom; }
.h-w > span { display: inline-block; animation: st-rise 1000ms cubic-bezier(.16, 1, .3, 1) both; }
.h-num { display: inline-block; text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.orb-glow { position: absolute; left: 0; top: 0; width: 640px; height: 640px; margin: -320px; border-radius: 50%; background: radial-gradient(closest-side, rgba(106, 85, 232, .2), rgba(106, 85, 232, 0)); pointer-events: none; }
.orb-cv { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.orb { position: absolute; left: 0; top: 0; z-index: 1; will-change: transform; }
.orb.ping { z-index: 2; }
.orb:hover { z-index: 3; }
.orb-i { display: grid; place-items: center; width: 100%; height: 100%; background: #fff; border-radius: 24%; box-shadow: 0 26px 44px -26px rgba(17, 38, 63, .55); transition: transform 350ms var(--lux-ease), box-shadow 350ms; }
.orb-i img { width: 62%; height: 62%; object-fit: contain; }
.orb:hover .orb-i { transform: scale(1.16); box-shadow: 0 34px 54px -24px rgba(91, 70, 220, .6); }
.orb.ping .orb-i { animation: orb-ping 700ms cubic-bezier(.16, 1, .3, 1); }
.orb-tag { position: absolute; left: 50%; bottom: calc(100% + 10px); padding: 5px 10px; border-radius: 999px; font: 600 12px/1.2 var(--body, Figtree, sans-serif); white-space: nowrap; pointer-events: none; opacity: 0; }
.orb-tag.below { top: calc(100% + 10px); bottom: auto; }
.orb-done { background: #007a48; color: #fff; }
.orb.ping .orb-done { animation: orb-tag 1900ms cubic-bezier(.16, 1, .3, 1); }
.orb-nm { background: var(--ink); color: #fff; transform: translateX(-50%); transition: opacity 200ms; }
.orb:hover .orb-nm { opacity: 1; }
.orb:hover .orb-done { visibility: hidden; }
@keyframes st-rise { from { transform: translateY(115%); } to { transform: none; } }
@keyframes orb-ping { 30% { transform: scale(1.2); } }
@keyframes orb-tag { 0% { opacity: 0; transform: translate(-50%, 8px); } 14%, 78% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -4px); } }

/* The time machine */
.st-time { padding: clamp(24px, 4vh, 48px) 0 clamp(48px, 8vh, 96px); }
.st-time-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(56px, 8vw, 128px); align-items: start; }
.st-pin { position: sticky; top: 72px; }
.odo { height: 1.04em; overflow: hidden; font: 400 clamp(84px, 15vw, 216px)/1.04 var(--serif); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.odo-col { display: block; transition: transform 1100ms var(--lux-ease); }
.odo-col b { display: block; height: 1.04em; font-weight: inherit; }
.odo-col b:last-child { color: var(--violet); }
.wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid #dfe3ec; border-left: 1px solid #dfe3ec; }
.slot { position: relative; aspect-ratio: 1; border-right: 1px solid #dfe3ec; border-bottom: 1px solid #dfe3ec; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 26%; opacity: 0; filter: grayscale(1); transition: opacity 1100ms ease, filter 1200ms ease; }
.slot.in img:not(.era) { opacity: .62; }
.slot.new img:not(.era), .wall.all .slot img:not(.era) { opacity: 1; filter: none; }
.stage { margin-top: clamp(32px, 4vw, 52px); }
.slot img.era { opacity: 0; padding: 32%; filter: none; transition: opacity 900ms ease; }
.wall:not(.open) .slot img.era { opacity: .6; }
.slot img.era.gray { filter: grayscale(1) contrast(1.1); }
.tags { position: relative; height: 48px; margin-top: 24px; }
.tagset { position: absolute; inset: 0; opacity: 0; pointer-events: none; font-size: 12.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; line-height: 1.7; color: var(--ink-2); transition: opacity 700ms ease; }
.tagset.on { opacity: 1; }
.tagset i { display: inline-block; font-style: normal; white-space: nowrap; }
.tagset i + i::before { content: "·"; margin: 0 .7em; color: #a8afbd; }
.st-chapters { display: grid; }
.chap { display: flex; flex-direction: column; justify-content: center; min-height: 72vh; }
.chap h2 { font: 400 clamp(34px, 3.9vw, 56px)/1.08 var(--serif); letter-spacing: -0.015em; margin-bottom: 22px; text-wrap: balance; }
.chap p { max-width: 42ch; margin: 0; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.7; color: var(--ink-2); }
.chap-award { min-height: 112vh; }
.award-mark { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 20px); margin-bottom: 22px; }
.chap-award h2 { margin: 0; font-size: clamp(46px, 5.2vw, 76px); line-height: 1; text-align: center; }
.laurel { flex: none; width: clamp(30px, 3.4vw, 50px); height: auto; color: var(--ink); }
.laurel.flip { transform: scaleX(-1); }
.award-line { margin: 0 0 14px !important; font-size: 12.5px !important; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.js .chap { opacity: .2; transition: opacity 700ms ease; }
.js .chap.on { opacity: 1; }

/* Quote */
.st-quote { padding: clamp(96px, 15vh, 176px) 0; background: var(--violet-soft); text-align: center; }
.st-quote figure { max-width: 1000px; margin: 0 auto; }
.st-quote blockquote { margin: 0; font: italic 400 clamp(30px, 4vw, 56px)/1.24 var(--serif); letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.st-quote figcaption { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: clamp(36px, 4.5vw, 56px); text-align: left; font-size: 15px; color: var(--ink-2); }
.st-quote img { flex: none; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.st-quote figcaption b { display: block; font-size: 16.5px; font-weight: 600; color: var(--ink); }

/* Close: a note, signed */
.st-close { padding: clamp(112px, 17vh, 200px) 0; background: var(--ink); color: #fff; text-align: center; }
.note { max-width: 18em; margin: 0 auto; font: 400 clamp(36px, 5vw, 72px)/1.14 var(--serif); letter-spacing: -0.02em; text-wrap: balance; }
.note em { font-style: italic; color: #cfc6ff; }
.sign { margin: 26px 0 44px; font: italic 400 28px var(--serif); color: #dfe3ec; }
.st-close .btn { background: #fff; color: var(--ink); box-shadow: none; }
.st-close .btn:hover { background: var(--violet-soft); }

@media (max-width: 900px) {
  .st-hero { min-height: 620px; padding: 0; }
  .st-hero h1 { max-width: 270px; }
  .orb-glow, .orb-tag { display: none; }
  .st-time-grid { grid-template-columns: 1fr; gap: 12px; }
  .st-pin { top: 0; z-index: 2; padding: 12px 0 14px; background: #fff; }
  .odo { font-size: 76px; }
  .stage { margin-top: 10px; }
  .tags { height: 44px; margin-top: 10px; }
  .tagset { font-size: 10.5px; letter-spacing: .12em; }
  .chap { min-height: 52vh; }
  .chap-award { min-height: 72vh; }
  .js .chap { opacity: .42; }  /* two chapters share a phone screen: keep the next one readable */
  .js .chap.on { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .h-w > span { animation: none; }
  .odo-col, .slot img, .tagset, .js .chap { transition: none; }
}
