:root{--story-ink:#121215;--story-cream:#faf5eb;--story-muted:#ddd4c6;--story-gold:#e6cba4}
#courses{scroll-margin-top:14px}
.become-story{background:var(--story-ink);color:var(--story-cream)}
.story-intro{width:min(calc(100% - 3rem),76rem);min-height:0;display:block;padding:clamp(68px,11vw,150px) 0 clamp(54px,7vw,102px)}
.story-index{margin:0 0 16px;font-size:.72rem;letter-spacing:.23em;font-weight:750;color:var(--story-gold);line-height:1.5}
.story-intro h2,.chapter h3{margin:0;color:var(--story-cream);font-weight:660;line-height:1.025;letter-spacing:-.073em;word-break:keep-all}
.story-intro h2{font-size:clamp(41px,7vw,105px)}.chapter h3{font-size:clamp(36px,5vw,75px)}
.story-intro h2 span,.chapter h3 span,.story-link span{color:var(--story-gold)}
.story-intro>p:last-of-type,.chapter-copy>p:not(.story-index){color:var(--story-muted);font-weight:500;line-height:1.72;word-break:keep-all;max-width:36ch;margin:22px 0 0}
.story-rule{display:block;height:1px;width:min(100%,200px);background:linear-gradient(90deg,#e6cba4aa,#e6cba400);margin-top:34px}
.chapter{position:relative;display:grid;isolation:isolate;min-height:clamp(505px,76svh,800px);align-items:end;overflow:hidden;border-top:1px solid #d6c8b124}
.chapter-visual{position:absolute;inset:0;z-index:-2;overflow:hidden;background:#242229}
.chapter-visual img{display:block;width:100%;height:100%;object-fit:cover;object-position:58% center}
.chapter::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#111114f5 0%,#111114c9 27%,#11111420 75%),linear-gradient(0deg,#111114bd,transparent 58%);pointer-events:none}
.chapter-copy{padding:clamp(38px,7vw,106px) max(24px,calc((100% - 76rem)/2));min-width:0;align-self:end}
.chapter-finish .chapter-visual img{object-position:65% 43%}
.chapter-captain{width:min(calc(100% - 3rem),76rem);margin:clamp(34px,6.5vw,85px) auto;min-height:0;grid-template-columns:1fr minmax(0,1fr);background:#19191d;border:1px solid #dbccb93b;border-radius:24px;align-items:stretch;grid-template-areas:'copy visual'}
.chapter-captain .chapter-visual{position:relative;inset:auto;z-index:auto;grid-area:visual;height:clamp(390px,36vw,530px);background:#252329}
.chapter-captain .chapter-visual img{object-fit:contain;object-position:center center;background:#252329;transform:none!important;opacity:1!important}
.chapter-captain::after{display:none}.chapter-captain .chapter-copy{grid-area:copy;padding:clamp(30px,5vw,68px);align-self:center}.chapter-captain h3{font-size:clamp(35px,4.8vw,67px)}
.chapter-copy .chapter-credit{font-size:.84rem!important;color:#f0d9bb!important;letter-spacing:.025em}
.story-link{display:inline-flex;min-height:44px;align-items:center;gap:.55rem;margin-top:25px;padding:.35rem 0;color:#fff8ed;font-weight:700;text-decoration-thickness:1px;text-underline-offset:5px}
@media(min-width:850px){.chapter-copy[data-scene]{transition:opacity .66s ease,transform .72s cubic-bezier(.21,.75,.27,1)}.chapter-copy[data-scene="waiting"]{opacity:.8;transform:translateY(16px)}.chapter:has([data-scene="ready"]):not(.chapter-captain) .chapter-visual img{animation:scene-settle .9s cubic-bezier(.21,.75,.27,1) both}}
@keyframes scene-settle{from{transform:scale(1.035);opacity:.76}to{transform:none;opacity:1}}
@media(max-width:700px){.chapter{min-height:520px;align-items:end}.chapter::after{background:linear-gradient(0deg,#111114 0%,#111114ea 19%,#11111444 62%,#11111413)}.chapter-copy{padding:34px 24px 44px}.chapter-visual img{object-position:67% center}.chapter-captain{min-height:0;grid-template-columns:1fr;grid-template-areas:'visual' 'copy';width:min(calc(100% - 2rem),34rem);border-radius:17px}.chapter-captain .chapter-visual{height:clamp(235px,70vw,385px)}.chapter-captain .chapter-copy{padding:25px 23px 34px}.chapter-captain .chapter-copy h3 br{display:none}.story-intro{width:calc(100% - 3rem)}}
@media(prefers-reduced-motion:reduce){.become-story *,#access-dialog *{animation:none!important;transition:none!important}}
.entry-portal{margin-block:20px}.access-close[hidden]{display:none}
#access-dialog{width:min(850px,calc(100vw - 2rem));max-width:none;max-height:min(700px,calc(100dvh - 2rem));padding:0;overflow:auto;overscroll-behavior:contain;border:1px solid #b5a18a78;border-radius:22px;background:#1b1a1e;color:var(--story-cream);box-shadow:0 24px 90px #000a}
#access-dialog::backdrop{background:#0d0d11c9;backdrop-filter:blur(6px)}
#access-dialog[open]{animation:access-in .25s ease-out both}
@keyframes access-in{from{opacity:.75;transform:translateY(8px) scale(.99)}to{opacity:1;transform:none}}
#access-dialog .entry-portal{position:relative;width:100%;margin:0;padding:clamp(18px,3vw,34px)!important}
#access-dialog #access-title{font-size:clamp(23px,4.5vw,36px);margin:.24rem 46px .45rem 0}
#access-dialog .entry-portal>p:not(.kicker){font-size:.88rem;margin:.35rem 0}
#access-dialog .entry-grid{margin-top:16px;gap:10px}
#access-dialog .entry-card{gap:5px;padding:14px;border-radius:13px}
#access-dialog .entry-card h3{font-size:1.02rem}
#access-dialog .entry-card p{font-size:.79rem;line-height:1.48;margin:0 0 4px}
#access-dialog .entry-actions{gap:4px}
#access-dialog .entry-actions a{min-height:40px;font-size:.72rem;padding:.37rem .57rem}
.access-close{position:absolute;right:13px;top:13px;min-width:44px;min-height:44px;border-radius:50%;border:1px solid #ffffff45;background:#302d34;color:#fff;font-size:1rem;cursor:pointer}
html:has(#access-dialog[open]){overflow:hidden}
@media(max-width:560px){#access-dialog{width:calc(100vw - 1rem);max-height:calc(100dvh - 1rem);border-radius:17px}#access-dialog .entry-grid{grid-template-columns:1fr}#access-dialog .entry-card{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:8px}#access-dialog .entry-card h3{align-self:center}#access-dialog .entry-card :is(p,.entry-actions){grid-column:2}#access-dialog .entry-actions a{min-height:44px}}
