/* How it works page (variants/r5-how-it-works/). Shared pill nav + footer come from chrome.css/b5.css;
   this file only has the one-day scroll story and the process timeline, which are page-specific. */

:root{--night:#000;--night-3:#1F1F1F;--frost:#F8F8F8;--paper:#F8F8F8;--ink:#111;--line:#E0E0E0;--dash:#c9c9c9;--mut:#5d6064;--mono:"DM Mono",ui-monospace,monospace}
html{scroll-behavior:smooth}

/* one-day scroll story */
.day{position:relative;background:var(--night);color:#fff}
.scene{position:absolute;inset:0;overflow:hidden;isolation:isolate;--n:1;--w:0;--d:0;--b:.55;--s:.7}
.scene>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 55%;filter:brightness(var(--b)) saturate(var(--s));transform:scale(1.05)}
.scene .night{position:absolute;inset:0;opacity:var(--n);background:linear-gradient(180deg,#000 0%,rgba(0,0,0,.82) 45%,rgba(0,0,0,.78) 100%);mix-blend-mode:multiply}
.scene .stars,.scene .warm,.scene .warm2,.scene .sun{display:none}
.scene .veil{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.5),transparent 22%),linear-gradient(90deg,rgba(0,0,0,.7),rgba(0,0,0,.25) 48%,transparent 70%),linear-gradient(0deg,rgba(0,0,0,.5),transparent 40%)}
.dstick{position:sticky;top:0;height:100vh;margin-bottom:-100vh;overflow:hidden}
.panel{position:relative;min-height:100vh;display:flex;align-items:center;padding:110px 56px 80px}
.panel>.scene{display:none}
.clock{position:absolute;right:56px;top:120px;text-align:right}
.clock b{display:block;font-family:var(--mono);font-weight:400;font-size:64px;letter-spacing:-.03em;line-height:1}
.clock span{display:block;margin-top:12px;font-size:14px;font-weight:600;opacity:.75}
.rail{position:absolute;right:56px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:14px}
.rail i{display:block;width:8px;height:8px;border-radius:50%;border:1px solid rgba(255,255,255,.6);transition:background .3s}
.rail i.on{background:#fff}
.itxt{position:relative;z-index:2;max-width:640px}
.itxt h1{font-weight:500;font-size:clamp(46px,6vw,92px);letter-spacing:-.035em;line-height:.98;margin:0}
.itxt p{font-size:19px;line-height:1.55;color:rgba(255,255,255,.82);margin-top:22px;max-width:480px}
.dcard{position:relative;z-index:2;width:min(470px,100%);background:#000;border:1px solid rgba(255,255,255,.18);border-radius:30px;padding:32px}
.live .dcard{opacity:.25;transform:translateY(24px);transition:opacity .6s,transform .8s cubic-bezier(.2,.7,.2,1)}
.live .panel.in .dcard{opacity:1;transform:none}
.dcard .top2{display:flex;gap:12px;align-items:baseline;font-size:14px;font-weight:600;color:rgba(248,248,248,.7)}
.dcard .top2 b{font-family:var(--mono);font-weight:400;font-size:15px;color:#fff}
.dcard h2{font-weight:500;font-size:36px;line-height:1.05;letter-spacing:-.025em;margin:18px 0 12px}
.dcard p{font-size:16.5px;line-height:1.55;color:rgba(255,255,255,.84);margin:0}
.num{display:flex;gap:18px;align-items:baseline;margin-top:20px;padding-top:16px;border-top:1px dashed rgba(255,255,255,.3)}
.num b{font-weight:500;font-size:26px;letter-spacing:-.02em;white-space:nowrap}
.num span{font-size:14px;line-height:1.45;opacity:.78}
.spark{margin:18px 0 14px}
.spark svg{width:100%;height:52px;display:block}
.spark .lb{display:flex;justify-content:space-between;opacity:.75;font-size:13px;margin-top:6px}
.day .ill{display:block;font-size:13px;color:rgba(248,248,248,.6)}
.static .dstick{display:none}
.static .panel>.scene{display:block}
.static .panel{min-height:0;padding:80px 56px}
.static .panel.intro{min-height:680px;padding-top:150px}
.static .panel+.panel{border-top:1px dashed rgba(255,255,255,.22)}

/* process timeline (own name, .b5 .tl is already the shared "text link" style — do not reuse it here) */
.b5 .mark{display:flex;justify-content:space-between;gap:20px;padding-top:14px;margin-bottom:30px;border-top:1px dashed var(--dash);font-size:14px;font-weight:600;color:var(--ink)}
.b5 .mark span+span{font-weight:500;color:var(--mut)}
.b5 .proc-tl{list-style:none;display:grid;grid-template-columns:repeat(5,1fr);gap:0;position:relative}
.b5 .proc-tl:before{content:"";position:absolute;left:22px;right:calc(20% - 22px);top:22px;border-top:1px dashed #a9a9a9}
.b5 .proc-tl li{position:relative;padding-right:26px}
.b5 .proc-tl .dot{position:relative;z-index:1;width:44px;height:44px;border-radius:50%;background:var(--paper);color:var(--ink);border:1px solid var(--ink);display:grid;place-items:center;font-size:15px;font-weight:600}
.b5 .proc-tl li:last-child .dot{background:var(--ink);color:#fff}
.b5 .proc-tl b{display:block;font-size:20px;font-weight:600;letter-spacing:-.01em;margin-top:24px}
.b5 .proc-tl .dur{display:block;margin-top:6px;font-size:14px;font-weight:600;line-height:1.45;color:var(--mut)}
.b5 .proc-tl p{margin-top:14px;color:#444;font-size:15px;line-height:1.55}
.b5 .proc-cta{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;margin-top:56px;padding:26px 0 120px;border-top:1px dashed var(--dash)}
.b5 .proc-cta p{font-size:clamp(20px,1.9vw,26px);letter-spacing:-.015em;line-height:1.3;max-width:620px;margin:0}

@media (max-width:1060px){
	.b5 .proc-tl{grid-template-columns:1fr 1fr;gap:34px 0}.b5 .proc-tl:before{display:none}
}
@media (max-width:900px){
	.panel,.static .panel{align-items:flex-end;padding:100px 18px 40px}
	.clock{right:18px;top:96px}.clock b{font-size:34px}.clock span{display:none}.rail{display:none}
	.scene .veil{background:linear-gradient(180deg,rgba(5,8,14,.55),transparent 22%),linear-gradient(0deg,rgba(5,8,14,.85),rgba(5,8,14,.3) 55%,transparent 80%)}
	.dcard{padding:22px;border-radius:22px}.dcard h2{font-size:28px}.dcard p{font-size:15.5px}.num b{font-size:22px}
	/* UX fix: on mobile the sticky clock sat directly over the card text underneath while scrolling between
	   panels. Give it its own solid scrim so it is always legible instead of floating over live copy. */
	.clock{background:rgba(0,0,0,.62);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);padding:10px 14px;border-radius:16px;z-index:5}
	/* UX fix: the scroll-driven sticky background (.dstick) only releases once the LAST panel's
	   full height has scrolled past. The 22:00 card fades out (see --fade below) well before that
	   point, so on a phone the last ~half of this panel was just the dark photo + a ticking clock
	   with the next (light) section's content starting to show through underneath — a long, empty
	   "dissolve" right before the page changes mood. Shortening only this last panel's scroll
	   distance on mobile (desktop keeps the full 100vh) ends the story sooner without touching the
	   shared f = -top/vh scroll math in how.js, which reads real rendered height, not a fixed step.*/
	/* (old: .live .panel[data-h="22"]{min-height:62vh} - superseded by the sticky cards below, round E 11.11) */
}
@media (max-width:640px){
	.static .panel.intro{min-height:560px;padding-top:120px}
	.itxt h1{font-size:48px}.itxt p{font-size:17px}
	.live .spark{display:none}.dcard h2{font-size:26px;margin:18px 0 10px}.dcard p{font-size:15px}
	.clock{top:88px;right:16px;padding:8px 12px;border-radius:14px}.clock b{font-size:28px}
	.b5 .proc-tl{grid-template-columns:1fr;gap:0}
	.b5 .proc-tl:before{display:block;left:22px;right:auto;top:22px;bottom:22px;border-top:0;border-left:1px dashed #a9a9a9}
	.b5 .proc-tl li{padding:0 0 28px 64px}.b5 .proc-tl .dot{position:absolute;left:0;top:0}.b5 .proc-tl b{margin-top:8px}
	.b5 .proc-cta{margin-top:24px;padding-bottom:80px}
}
@media (prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media (max-width:900px){.live .dcard{opacity:calc(.25 * var(--fade,1))}.live .panel.in .dcard{opacity:var(--fade,1)}}
/* The day story's sticky background (.dstick, margin-bottom:-100vh) hangs one screen past #day.
   Lift everything after the story above it on the light page background so the dark layer ends where the story ends. */
.day + .b5{position:relative;z-index:2;background:var(--paper,#F8F8F8)}
/* "Stage one…" call to action as a card (was a loose paragraph + button) */
.b5 .proc-cta{margin-top:64px;padding:32px 36px;border:1px solid #E0E0E0;border-top:1px solid #E0E0E0;border-radius:30px;background:#fff;margin-bottom:120px}
.b5 .proc-cta p{font-size:clamp(19px,1.7vw,24px);max-width:640px}
@media (max-width:900px){
 .b5 .proc-cta{margin:32px 0 80px;padding:24px 22px;border-radius:22px;gap:18px}
 .b5 .proc-cta p{font-size:18px}
 .b5 .proc-cta .pill,.b5 .proc-cta .pill b{width:100%;justify-content:center}
}

/* Layout pass 11.11: short-height laptop windows (browser chrome eats height, e.g. 1280x650,
   1440x700). Each .panel is min-height:100vh with align-items:center; at these heights the dcard
   content (h2+p+num+spark) no longer fits in 100vh minus the 110/80 padding, so the panel grows
   taller than the viewport, breaking the "one screen per hour" scroll-sync math in how.js (it
   reads real rendered height). Tightening padding here keeps every panel exactly one screen tall
   again down to ~650px. Scoped to min-width:901px so the mobile layout (max-width:900, own
   padding) is untouched. */
@media (max-height:720px) and (min-width:901px){
 .panel{padding:76px 56px 56px}
 .clock{top:84px}
}

/* ---- Round E 11.11 (review D19) ---- */
/* Phones/tablets: each hour card sticks just below the clock while its panel scrolls, so a card is always
   in view (before: cards sat at the bottom of 100vh panels and faded out early, leaving long empty dark
   screens between them). The panel keeps its 100vh scroll length, so how.js's clock/light math is unchanged. */
@media (max-width:900px){
 .live .panel:not(.intro){align-items:flex-start;padding:24px 18px 40px}
 .live .dcard{position:sticky;top:164px;align-self:flex-start}
 /* no dim 'inactive' state on phones: a card is either in view (full) or fading out under the clock */
 .live .dcard,.live .panel.in .dcard{opacity:var(--fade,1);transform:none}
}
@media (max-width:640px){.live .dcard{top:150px}}
/* Desktop + mobile: the fixed nav sits over the dark day story - transparent + light marks there instead
   of the light frosted bar (class toggled by how.js while #day is under the nav). */
.sp-top.ondark,.sp-top.ondark.sc{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none}
.sp-top.ondark .logo img{filter:invert(1)}
.sp-top.ondark .lang{color:rgba(255,255,255,.72)}
.sp-top.ondark .lang b,.sp-top.ondark .lang a{color:#fff}
.sp-top.ondark .nr a.ncta{background:#fff;color:#111!important} /* chrome.css sets .ncta color with !important */
.sp-top.ondark .nr a.ncta:hover{background:#f0f0f0}
/* === Mobile recheck 11.11 === over the dark hero the nav makes .lang white; inside the white mobile
   menu panel that made the EN/ET switch invisible (white on white) */
.sp-top.ondark .mm .lang{color:#5d6064}
.sp-top.ondark .mm .lang a,.sp-top.ondark .mm .lang b{color:#111}
