/* Homepage (route → stack): hero, work flying along a run route into a sticky stack, Notes band, blue footer. Built on styles.css tokens. */
body{margin:0}.rs-header{display:flex;flex-direction:column;align-items:center;gap:12px;padding:24px var(--home-gutter) 0}.rs-header>.site-logo{order:-1}.rs-header .site-logo img{height:48px}.rs-header nav{display:flex;align-items:center;justify-content:center;gap:24px;font-size:13px}.rs-header nav a{color:inherit;text-decoration:none}.rs-header .nh-nav--r{margin-top:-2px}.rs-hero{padding:7vh var(--home-gutter) 4vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:28px;min-height:calc(100svh - 165px)}.rs-title{font:400 clamp(70px,11vw,175px)/1.02 var(--font-display);letter-spacing:-.045em;margin:0}.rs-title em{font-family:var(--font-serif);font-weight:400}.rs-statement{font:400 clamp(20px,2vw,29px)/1.35 var(--font-serif);max-width:26em;margin:24px auto 0}.rs-hero__meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:18px 30px;font-size:12px;color:var(--home-muted)}.rs-hero__meta .home-hero__status{font-size:12px;color:var(--color-content);text-decoration:none}.rs-wave .rs-word{display:inline-block;overflow:hidden;padding-bottom:.12em;margin-bottom:-.12em;vertical-align:top}.rs-wave .rs-letter{display:inline-block;transform:translateY(105%) rotate(9deg);transform-origin:bottom left;transition:transform 800ms cubic-bezier(.2,.75,.15,1);transition-delay:calc(var(--i)*32ms)}.rs-wave.is-in .rs-letter{transform:none}.rs-pending .rs-header,.rs-pending .rs-statement,.rs-pending .rs-hero__meta{opacity:0}.rs-header,.rs-statement,.rs-hero__meta{transition:opacity .6s ease,transform .6s cubic-bezier(.2,.75,.15,1)}.rs-intro-canvas{position:fixed;inset:0;width:100%;height:100%;z-index:60;background:var(--color-surface);cursor:pointer}.rs-route{position:relative;height:240vh}.rs-stage{position:sticky;top:0;height:100vh;overflow:hidden}.rs-stage>svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.rs-stage>svg path{fill:none;stroke:none}.rs-stage__title{position:absolute;top:9vh;width:100%;text-align:center;margin:0;font:400 clamp(30px,4vw,52px)/1.1 var(--font-serif)}.rs-flyer{position:absolute;left:0;top:0;will-change:transform,width;container-type:inline-size;pointer-events:none}.rs-flyer[hidden]{display:none}.rs-cover{position:relative;display:block;width:100%;aspect-ratio:4/3;overflow:hidden;border-radius:1.75cqi;background:var(--color-surface);transform-origin:top center}.rs-cover video{display:block;width:100%;height:100%;object-fit:cover}.rs-stack{position:relative;z-index:2;margin-top:-100vh;padding-top:10vh;padding-bottom:10vh}.rs-item{position:sticky;top:10vh;width:min(68vw,calc(76vh * 4 / 3));margin:0 auto 26vh;container-type:inline-size;isolation:isolate}.rs-item:last-child{margin-bottom:0}.rs-item>.rs-cover{transform:scale(var(--scale,1))}.rs-dim{position:absolute;inset:0;background:#000;opacity:var(--dim,0);pointer-events:none}.rs-hold .rs-item.rs-first{visibility:hidden}.rs-meta{position:absolute;top:28%;right:calc(100% + 36px);text-align:right;width:min(220px,13vw);opacity:0;transform:translateY(14px);transition:opacity .6s ease,transform .6s cubic-bezier(.2,.75,.15,1)}.rs-item.is-on .rs-meta{opacity:calc(1 - var(--covered,0));transform:none}.rs-meta h3{margin:0 0 10px;font:400 clamp(22px,2vw,30px)/1.1 var(--font-serif)}.rs-meta h3 a{color:inherit;text-decoration:none}.rs-meta h3 a:hover{text-decoration:underline;text-underline-offset:4px}.rs-meta p{margin:0;font:13px/1.6 Inter,sans-serif;color:var(--home-muted)}.rs-meta>span{display:block;margin-top:14px;font:10px/1.5 var(--mono);color:var(--home-muted)}.rs-footer__route{width:min(560px,100%);margin:30px auto 55px;text-align:center}.rs-footer__route svg{display:block;width:100%;overflow:visible}.rs-footer__route path{fill:none;stroke:var(--route-blue);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;stroke-dasharray:var(--route-length);stroke-dashoffset:var(--route-length);transition:stroke-dashoffset 2.6s cubic-bezier(.45,0,.2,1)}.rs-footer__route.is-drawn path{stroke-dashoffset:0}.rs-footer__route circle{fill:#3557e6;opacity:0;transition:opacity .3s 2.6s}.rs-footer__route.is-drawn circle{opacity:1}.rs-footer__route p{font:12px/1.7 var(--mono);letter-spacing:.04em;text-transform:uppercase;color:var(--home-muted)}.rs-footer__route p span{display:inline-block;margin-top:6px}.rs-email-toggle{border:0;padding:0;background:none;cursor:pointer}.rs-email-toggle:focus-visible,.rs-cover:focus-visible,.rs-compare button:focus-visible{outline:2px solid #3557e6;outline-offset:5px}#rs-email{align-items:center;gap:18px;font:clamp(19px,3vw,32px) var(--font-serif)}#rs-email:not([hidden]){display:flex;flex-wrap:wrap;animation:rs-email .3s ease both}#rs-email a{color:inherit;text-underline-offset:5px}#rs-email button{padding:8px 14px;border:1px solid var(--home-line);background:transparent;color:inherit;font:12px Inter,sans-serif;cursor:pointer}#rs-copy-status{font:12px Inter,sans-serif}.rs-compare{position:fixed;right:12px;bottom:12px;z-index:70;display:flex;align-items:center;gap:5px;padding:7px 9px;border:1px solid var(--home-line);border-radius:9px;background:var(--color-surface);color:var(--color-content);font:10px Inter,sans-serif;box-shadow:0 3px 16px #00000010}.rs-compare button{border:0;padding:8px 10px;background:none;color:inherit;cursor:pointer;font:inherit}.rs-compare button[aria-pressed=true]{background:var(--color-content);color:var(--color-surface);border-radius:4px}.rs-auto .rs-stage__title{visibility:hidden}[data-first-screen=B] .rs-hero,[data-first-screen=C] .rs-hero{min-height:0}.rs-cover-first{width:min(68vw,calc(76vh * 4 / 3));margin:30px auto 0;container-type:inline-size}.rs-cover-first>.rs-cover{display:block}body:not([data-first-screen=C]) .rs-cover-first{display:none}@keyframes rs-email{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media(max-width:1100px){.rs-item,.rs-cover-first{width:calc(100% - 32px)}.rs-meta{position:static;width:auto;text-align:left;margin-top:14px;max-width:60ch}.rs-meta h3{font-size:25px}.rs-meta p{font-size:13px}.rs-meta>span{margin-top:8px}.rs-item{margin-bottom:26vh}.rs-item>.rs-cover{max-height:76vh;aspect-ratio:4/3}.rs-hero{min-height:calc(100svh - 180px)}}
@media(max-width:760px){.rs-header{padding-top:18px;gap:10px}.rs-header nav{gap:18px;font-size:12px}.rs-header .site-logo img{height:42px}.rs-title{font-size:clamp(58px,13vw,100px)}.rs-statement{font-size:22px;max-width:22em}.rs-hero{gap:24px;padding-top:7vh}.rs-hero__meta{flex-direction:column;gap:14px}.rs-compare{font-size:9px;gap:1px}.rs-compare button{padding:9px}.rs-footer__route{margin-bottom:35px}}
@media(prefers-reduced-motion:reduce){.rs-wave .rs-letter{transform:none;transition:none}.rs-route{display:none}.rs-stack{margin-top:0}.rs-hold .rs-item.rs-first{visibility:visible}.rs-footer__route path{stroke-dashoffset:0;transition:none}.rs-footer__route circle{opacity:1;transition:none}.rs-header,.rs-statement,.rs-hero__meta,.rs-meta{transition:none}#rs-email:not([hidden]){animation:none}}
html.rs-intro-lock{overflow:hidden}.rs-header{display:grid;grid-template-columns:auto auto;justify-content:center;column-gap:24px;row-gap:12px}.rs-header>.site-logo{grid-column:1/-1;justify-self:center}.rs-header .nh-nav--r{margin:0}.rs-header nav{gap:24px}.rs-cover-first[hidden]{display:none}.rs-footer .footer-cta{font-family:var(--font-serif)}
@media(max-width:760px){.rs-header{column-gap:18px}.rs-header nav{gap:14px}.rs-header .site-logo svg{height:42px;width:auto}.rs-header .nh-nav a:nth-child(n+3){display:inline}.rs-header .nh-nav--r a[href*="drive.google"]{display:none}}

/* A refinement: direct entry, less empty space, shorter scroll flight. */
.rs-hero{min-height:calc(84svh - 140px);padding-top:5vh;padding-bottom:6vh;gap:24px}
.rs-title{font-size:clamp(82px,12.5vw,190px)}
.rs-statement{margin-top:20px}
@media(max-width:1100px){.rs-hero{min-height:calc(84svh - 140px)}}
@media(max-width:760px){.rs-hero{min-height:calc(86svh - 140px);padding-top:5vh;padding-bottom:5vh}.rs-title{font-size:clamp(58px,14vw,100px)}}

.rs-cover-sequence{position:absolute;inset:0}.rs-cover-sequence video{position:absolute;inset:0}.rs-cover-sequence .intro{z-index:1}.rs-cover-sequence video[hidden]{display:none}

/* Page rhythm: work and journey stay on the quiet base; Notes is a full-bleed tinted band and the footer
   the same blue run route as the first screen in the footer, so the page has a soft middle beat and a firm ending. Colours are the
   site's existing surface tokens, so light and dark mode both follow. */
.home-notes{--notes-band:#EEF1FB;margin:0 0 clamp(80px,12vh,144px);padding:clamp(48px,8vh,88px) var(--home-gutter);border:0;background:var(--notes-band)}
:root[data-theme="dark"] .home-notes{--notes-band:#161A27}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .home-notes{--notes-band:#161A27}}
.home-notes__posts{border-top-color:color-mix(in srgb,var(--color-content) 18%,transparent)}
.home-notes__posts a{border-bottom-color:color-mix(in srgb,var(--color-content) 18%,transparent)}
.rs-footer .km-line .km{color:var(--color-content)}
.home-notes + .home-journey{border-top:0}


/* Footer route as a small poster: the city set large over its route, distance above; no caption. */
.rs-footer__route{position:relative}
.rs-footer__tag{position:absolute;display:grid;justify-items:center;gap:.35em;margin:0;transform:translate(-50%,-50%);white-space:nowrap;text-align:center;pointer-events:none;opacity:0;transition:opacity .5s ease 2.2s}
.rs-footer__route.is-drawn .rs-footer__tag{opacity:1}
.rs-footer__tag small{font:11px/1 "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.12em;text-transform:uppercase;color:var(--home-muted)}
.rs-footer__tag b{font:400 clamp(40px,6vw,76px)/1 var(--font-serif);letter-spacing:-.02em;color:var(--color-content);text-transform:none}
.rs-hero__meta s{text-decoration-thickness:1px;opacity:.7}
@media(prefers-reduced-motion:reduce){.rs-footer__tag{opacity:1;transition:none}}
.rs-nowrap{white-space:nowrap}

/* Footer run route, as tuned for the old hero poster (be6b7f0, reference: day one Run): brand blue on light, lighter blue with a glow on dark,
   like a street-lit night run. City set large over its own route, distance above. */
:root{--route-blue:#1F3FD0}
:root[data-theme="dark"]{--route-blue:#7E96F5}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]){--route-blue:#7E96F5}}
.rs-footer__route circle{fill:var(--route-blue)}
:root[data-theme="dark"] .rs-footer__route path{filter:drop-shadow(0 0 5px color-mix(in srgb,var(--route-blue) 70%,transparent))}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .rs-footer__route path{filter:drop-shadow(0 0 5px color-mix(in srgb,var(--route-blue) 70%,transparent))}}
/* Tuned poster: square box up to 420px, 2.2px line, no end dot, 2.8s draw, city fades in as the line finishes. */
.rs-footer__route{width:min(420px,80vw);aspect-ratio:1}
.rs-footer__route svg{height:100%}
.rs-footer__route circle{display:none}
.rs-footer__route path{transition:stroke-dashoffset 2.8s cubic-bezier(.5,.1,.3,1)}
.rs-footer__tag{transition:opacity .4s ease 2.2s}
.rs-footer__tag b{font-size:clamp(34px,5vw,71px)}

/* First screen (docs: homepage-first-screen-handoff.md): header, the cycling role line centred in the space left,
   and four corners. Role line = the old "Hi, I'm Chofi." headline style; data line = the old subline style. */
.fs-frame{position:relative;display:flex;flex-direction:column;min-height:100svh}
.fs-hero.rs-hero{flex:1;display:grid;place-items:center;min-height:0;padding:4vh var(--home-gutter) 96px;text-align:center}
.fs-block{display:grid;justify-items:center;gap:0}
.fs-role{margin:0;font:400 clamp(58px,9vw,150px)/1.02 var(--font-display);letter-spacing:-.045em;color:var(--color-content)}
.fs-role em,.fs-role .about-roles-slot{font:inherit;letter-spacing:inherit} /* same face as the line, only the colour changes; the slot class too, as about-roles.js measures words in a plain span */
.fs-data{max-width:34ch;margin:24px auto 0;font:400 clamp(20px,2vw,29px)/1.35 var(--font-serif);color:var(--color-content);text-wrap:balance}
.fs-data a{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.15em}
.fs-data a:hover{color:var(--route-blue)}
.fs-pairs{display:grid;gap:24px}
.fs-pairs .fs-role{font-size:clamp(40px,5.5vw,84px)}
.fs-live{display:none}
.fs-block.is-cycling .fs-live{display:block}
.fs-block.is-cycling .fs-pairs,.fs-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.fs-corners{display:contents}
.fs-corner{position:absolute;z-index:2;margin:0;font-size:12px;line-height:1.4;color:var(--home-muted)}
a.fs-corner.home-hero__status{color:var(--color-content);text-decoration:none}
.fs-corner s{text-decoration-thickness:1px;opacity:.7}
.fs-tl,.fs-tr{top:48px;transform:translateY(-50%)}
.fs-tl{left:calc(32px + env(safe-area-inset-left))}
.fs-tr{right:calc(32px + env(safe-area-inset-right))}
.fs-bl,.fs-br{bottom:calc(32px + env(safe-area-inset-bottom))}
.fs-bl{left:calc(32px + env(safe-area-inset-left))}
.fs-br{right:calc(32px + env(safe-area-inset-right))}
@media(max-width:1023px){.fs-tl,.fs-bl{left:calc(24px + env(safe-area-inset-left))}.fs-tr,.fs-br{right:calc(24px + env(safe-area-inset-right))}.fs-bl,.fs-br{bottom:calc(24px + env(safe-area-inset-bottom))}}
@media(max-width:767px){
  .fs-frame{min-height:0}
  .fs-hero.rs-hero{display:block;padding:15svh var(--home-gutter) 0}
  .fs-corners{display:grid;grid-template-columns:auto auto;justify-content:start;gap:24px;margin:32px var(--home-gutter) 0;text-align:left}
  .fs-corner{position:static;transform:none}
  a.fs-corner.home-hero__status{justify-self:start}
}
.fs-tr,.fs-br{white-space:nowrap}

/* Revision: the role word in brand blue, and the whole block left-aligned on the same line as the bottom-left
   corner, so "Chofi is a" never moves while the word changes. No weekly km corner. */
.fs-hero.rs-hero{justify-items:start;text-align:left;padding-left:calc(32px + env(safe-area-inset-left));padding-right:calc(32px + env(safe-area-inset-right))}
.fs-block{justify-items:start}
.fs-data{margin-left:0;margin-right:0}
.fs-role em,.fs-role .about-roles-slot{color:var(--route-blue)}
@media(max-width:1023px){.fs-hero.rs-hero{padding-left:calc(24px + env(safe-area-inset-left));padding-right:calc(24px + env(safe-area-inset-right))}}
@media(max-width:767px){.fs-hero.rs-hero{padding-left:var(--home-gutter);padding-right:var(--home-gutter)}.fs-corners{grid-template-columns:auto}}
.fs-hero.rs-hero{justify-content:stretch}
.fs-hero .fs-block{justify-self:stretch;width:100%}
/* Role word: the same Instrument Serif in its italic, plus brand blue. */
.fs-role em,.fs-role .about-roles-slot{font-style:italic}
.fs-role .about-roles-slot{margin-right:-.02em}

/* Header revision: the homepage uses the shared compact header (CC left, nav right), so CC, the role line and
   the bottom-left group share one left edge (the header's 40px inset; 20px at ≤720px). Status moves to the
   bottom-left group, above "Based in". */
.fs-hero.rs-hero{padding-left:calc(40px + env(safe-area-inset-left));padding-right:calc(40px + env(safe-area-inset-right))}
.fs-bl{left:calc(40px + env(safe-area-inset-left));display:grid;justify-items:start;gap:14px}
.fs-br{right:calc(40px + env(safe-area-inset-right))}
.fs-bl p{margin:0}
.fs-bl .home-hero__status{color:var(--color-content);text-decoration:none}
@media(max-width:1023px){.fs-bl{left:calc(40px + env(safe-area-inset-left))}.fs-br{right:calc(40px + env(safe-area-inset-right))}}
@media(max-width:720px){.fs-hero.rs-hero{padding-left:20px;padding-right:20px}.fs-corners{margin-left:20px;margin-right:20px}}
@media(max-width:767px){.fs-corners{grid-template-columns:auto;gap:14px}.fs-bl{gap:14px}}
/* The header sits outside the first-screen frame so it stays sticky down the whole page, as on other pages;
   the frame fills the rest of the viewport. */
.fs-frame{min-height:calc(100svh - 85px)}
.fs-bl .home-hero__status{justify-self:start;margin:0}
@media(max-width:720px){.fs-frame{min-height:calc(100svh - 69px)}}

/* Scribble CC: larger at the top of the homepage, back to the shared 36px header size once scrolled. */
.site-header .site-logo img{transition:height .3s cubic-bezier(.22,1,.36,1)}
body:not(.is-scrolled) .site-header .site-logo img{height:60px}
@media(max-width:720px){body:not(.is-scrolled) .site-header .site-logo img{height:48px}}

/* Echo the footer's night-route glow on the three homepage roles only.
   Filter the whole word after its typing mask, so the halo is not clipped per letter. */
.fs-role em{filter:var(--home-role-glow,none)}
:root[data-theme="dark"]{--home-role-glow:drop-shadow(0 0 5px color-mix(in srgb,var(--route-blue) 70%,transparent))}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]){--home-role-glow:drop-shadow(0 0 5px color-mix(in srgb,var(--route-blue) 70%,transparent))}}

/* Match the pre-JS first paint to the cycling layout, avoiding a flash of all three roles. */
.home-hero-js .fs-live{display:block}
.home-hero-js .fs-pairs{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* With only the status pill left at bottom-left, centre the time on the pill. */
@media(min-width:768px){.fs-br{bottom:calc(32px + env(safe-area-inset-bottom));line-height:40px}}
/* Bottom corners read a little stronger: status pill in full text colour with a firmer border, time in body colour. */
.fs-bl .home-hero__status{font-size:14px;padding:11px 16px;border-color:color-mix(in srgb,var(--color-content) 30%,transparent)}
.fs-br{font-size:14px;color:var(--color-content-body)}
/* Get in touch: the shared line arrow, turned down while the email is shown. */
[data-email-arrow]{display:inline-flex;transition:transform .3s cubic-bezier(.22,1,.36,1)}
[data-email-arrow].is-open{transform:rotate(90deg)}
