/* A Little Space: site features (living sky, kept lines, listen, path, daily help, small moments).
   All classes are sf- prefixed. Colors are scoped custom properties.
   Theme rule: components follow html[data-theme] only, never the OS
   color-scheme media query. The dark values live in theme.css under
   html[data-theme="dark"] .sf-root, which is the single source of dark truth. */
.sf-root{
  --sf-bg:#fff9f0;
  --sf-bg-soft:#fdeed3;
  --sf-ink:#37322b;
  --sf-ink-soft:#6f6455;
  --sf-line:#ecdabd;
  --sf-accent:#a34d14;
  --sf-accent-ink:#ffffff;
  --sf-chip:#fdeec9;
  --sf-focus:#94684e;
  --sf-card-shadow:0 12px 32px rgba(122,84,32,.12),0 2px 8px rgba(122,84,32,.07);
  color:var(--sf-ink);
}
.sf-root *{box-sizing:border-box}
.sf-root :focus-visible{outline:3px solid var(--sf-focus);outline-offset:2px}
.sf-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- Living sky band ---------- */
.sf-skyband{
  /* Slimmed with the header band (Oct 28, 2026, Graham): less empty
     space above the border; the sky still reads as a band. */
  position:relative;overflow:hidden;height:50px;flex:none;
  border-bottom:1px solid rgba(90,120,105,.18);
}
html[data-sf-sky="morning"] .sf-skyband{background:linear-gradient(180deg,#a8cbe0 0%,#d7ecf3 55%,#fdf3d8 100%)}
html[data-sf-sky="day"] .sf-skyband{background:linear-gradient(180deg,#8ec3e6 0%,#cdeef7 60%,#eefaf3 100%)}
html[data-sf-sky="sunset"] .sf-skyband{background:linear-gradient(180deg,#7d7fb0 0%,#e8a37c 58%,#f9d976 100%)}
html[data-sf-sky="night"] .sf-skyband{background:linear-gradient(180deg,#101d33 0%,#1d3252 70%,#2c4a6b 100%)}
.sf-skyband .sf-orb{
  position:absolute;top:9px;right:12%;width:24px;height:24px;border-radius:50%;
  background:#fff3c4;box-shadow:0 0 18px 6px rgba(255,241,196,.65);
}
html[data-sf-sky="sunset"] .sf-skyband .sf-orb{background:#ffb347;box-shadow:0 0 20px 8px rgba(255,179,71,.55)}
html[data-sf-sky="night"] .sf-skyband .sf-orb{background:#eef2f7;box-shadow:0 0 14px 4px rgba(230,238,248,.5)}
.sf-skyband .sf-cloud{
  position:absolute;width:74px;height:20px;border-radius:999px;background:rgba(255,255,255,.92);
}
.sf-skyband .sf-cloud::before,.sf-skyband .sf-cloud::after{
  content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.92);
}
.sf-skyband .sf-cloud::before{width:30px;height:30px;left:11px;top:-14px}
.sf-skyband .sf-cloud::after{width:22px;height:22px;right:11px;top:-9px}
html[data-sf-sky="sunset"] .sf-skyband .sf-cloud{background:rgba(255,226,205,.92)}
html[data-sf-sky="sunset"] .sf-skyband .sf-cloud::before,html[data-sf-sky="sunset"] .sf-skyband .sf-cloud::after{background:rgba(255,226,205,.92)}
html[data-sf-sky="night"] .sf-skyband .sf-cloud{background:rgba(190,205,225,.5)}
/* Grey weather (Nov 8, 2026): overcast, drizzle, rain, snow, or fog in Portland greys the band and takes the sun out of it. */
html[data-sf-weather="grey"][data-sf-sky="morning"] .sf-skyband,html[data-sf-weather="grey"][data-sf-sky="day"] .sf-skyband,html[data-sf-weather="grey"][data-sf-sky="sunset"] .sf-skyband{background:linear-gradient(180deg,#8fa0ad 0%,#b6c2c9 60%,#ccd3d2 100%)}
html[data-sf-weather="grey"] .sf-skyband .sf-orb{opacity:0}
html[data-sf-weather="grey"] .sf-skyband .sf-cloud{background:rgba(226,232,235,.85)}
html[data-sf-weather="grey"] .sf-skyband .sf-cloud::before,html[data-sf-weather="grey"] .sf-skyband .sf-cloud::after{background:rgba(226,232,235,.85)}
html[data-sf-sky="night"] .sf-skyband .sf-cloud::before,html[data-sf-sky="night"] .sf-skyband .sf-cloud::after{background:rgba(190,205,225,.5)}
/* The band was a still picture from Oct 30, 2026 (Graham's word then).
   Nov 4, 2026 (v138), Graham's word reversed it: after the v136/v137
   scroll work he reported he could not see any motion anywhere — the
   animated .ss-bg layer sits behind this band, and the band's own sun
   and clouds, the art he can actually see, never moved. So the band
   art moves again, and unmistakably: the clouds drift across the band
   and wrap around, the orb bobs and sways.
   Technique: the drift animates the standalone `translate` property,
   which composes with (never overrides) the scale() each cloud wears
   in `transform`, and the orb's bob never fights the scroll parallax
   the engine writes to the orb's `transform`.
   Speeds at a 390px phone width (travel is vw-based, so px/s scales
   with screen width): cloud-a covers 135vw (~527px) in 44s = ~12px/s,
   cloud-b 132vw in 57s = ~9px/s, cloud-c 131vw in 47s = ~11px/s; each
   crosses the visible screen in roughly 35-45s — calm, but a single
   glance at the band catches a cloud mid-journey. Negative delays
   spread the clouds along the track at first paint. */
.sf-skyband .sf-cloud-a{top:13px;left:5%;animation:sf-drift-a 44s linear infinite;animation-delay:-18s}
.sf-skyband .sf-cloud-b{top:18px;left:48%;transform:scale(.72);animation:sf-drift-b 57s linear infinite;animation-delay:-45s}
.sf-skyband .sf-cloud-c{top:8px;left:74%;transform:scale(.55);animation:sf-drift-c 47s linear infinite;animation-delay:-30s}
@keyframes sf-drift-a{from{translate:-30vw 0}to{translate:105vw 0}}
@keyframes sf-drift-b{from{translate:-70vw 0}to{translate:62vw 0}}
@keyframes sf-drift-c{from{translate:-95vw 0}to{translate:36vw 0}}
/* Orb: gentle bob, ±3px vertically over a 6s ease, with a 3px sway. */
.sf-skyband .sf-orb{animation:sf-orb-bob 6s ease-in-out infinite}
@keyframes sf-orb-bob{0%,100%{translate:0 -3px}50%{translate:3px 3px}}
@media (max-width:640px){.sf-skyband{height:42px}.sf-skyband .sf-cloud-b{display:none}}
/* Reduced motion: the band is a still picture again. */
@media (prefers-reduced-motion:reduce){
  .sf-skyband .sf-cloud-a,.sf-skyband .sf-cloud-b,.sf-skyband .sf-cloud-c,.sf-skyband .sf-orb{animation:none}
}

/* ---------- Shared card ---------- */
.sf-card{
  background:var(--sf-bg);border:0;border-radius:24px;box-shadow:var(--sf-card-shadow);
  padding:32px;margin:26px auto;max-width:760px;
  font-family:inherit;line-height:1.65;
}
@media (max-width:640px){.sf-card{padding:26px 20px}}
.sf-card .sf-eyebrow{
  margin:0 0 8px;font-size:.74rem;font-weight:700;letter-spacing:.13em;color:var(--sf-accent);
}
.sf-card h2{margin:0 0 10px;font-weight:600;font-size:clamp(1.55rem,3.6vw,2.05rem);line-height:1.15;color:var(--sf-ink);letter-spacing:-.01em}
.sf-card p{margin:0 0 14px}
.sf-card .sf-fine{font-size:.86rem;color:var(--sf-ink-soft)}
.sf-btn{
  font:inherit;font-weight:600;cursor:pointer;border-radius:999px;padding:11px 22px;min-height:44px;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--sf-accent);background:var(--sf-accent);color:var(--sf-accent-ink);
}
.sf-btn.sf-btn-soft{background:transparent;color:var(--sf-accent)}
.sf-btn[disabled]{opacity:.55;cursor:default}
.sf-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.sf-status{font-size:.92rem;color:var(--sf-ink-soft);min-height:1.2em;margin:10px 0 0}

/* Sections placed inside a .container main keep the page gutters. */
main .sf-card.sf-inset{margin-left:0;margin-right:0;max-width:none}
.sf-home-wrap{max-width:1200px;margin:0 auto;padding:0 24px}
.sf-home-wrap .sf-card{margin-left:0;margin-right:0;max-width:none}

/* ---------- Kept lines (card on the home page) ---------- */
.sf-kept-list{list-style:none;margin:0 0 14px;padding:0}
.sf-kept-list li{
  display:flex;gap:12px;align-items:flex-start;justify-content:space-between;
  padding:14px 0;border-bottom:1px solid var(--sf-line);
}
.sf-kept-list li:last-child{border-bottom:0}
.sf-kept-text{font-size:1.02rem}
.sf-kept-page{display:block;font-size:.8rem;color:var(--sf-ink-soft);margin-top:2px}
.sf-kept-remove{
  font:inherit;font-size:.8rem;cursor:pointer;flex:none;border:1px solid var(--sf-line);
  background:transparent;color:var(--sf-ink-soft);border-radius:999px;padding:.3em .8em;min-height:44px;
}

/* ---------- Door switcher and journey ---------- */
/* Room reserved for the sky band and the door row before the script
   builds them (site check, Nov 3, 2026). The band is 51px and the row
   takes the reserved height below; the header's ::after holds exactly
   that much empty space, so the words under it never jump while the
   doors load. As each piece arrives, the script marks <html> and the
   reservation hands its space over: sf-sky-in leaves only the row's
   share, sf-switcher-in closes it for good. Pages whose first screen
   is built by the script (Start Here, Still Unfolding) never moved;
   this gives every other page the same steadiness. */
:root{--sf-switcher-reserve:136px}
/* The door row is one line now (balance pass, Nov 4, 2026), so the
   phone reserve shrinks from the old two-row height; on wide home
   screens the row grows taller instead, because the doors there
   carry their plain subtitles. */
@media (max-width:640px){:root{--sf-switcher-reserve:150px}}
@media (min-width:1000px){body.welcome-page{--sf-switcher-reserve:176px}}
header.als-header::after,header.top::after{
  content:"";display:block;
  height:calc(51px + var(--sf-switcher-reserve));
}
html.sf-sky-in header.als-header::after,html.sf-sky-in header.top::after{
  height:var(--sf-switcher-reserve);
}
html.sf-switcher-in header.als-header::after,html.sf-switcher-in header.top::after{
  display:none;
}
/* Footer links stand at least 24px tall, the WCAG 2.2 minimum target
   (site check, Nov 3, 2026). */
footer a,.footer a{display:inline-block;min-height:24px;line-height:24px}
/* The tappable crisis line the script adds to every footer. */
.sf-crisis{font-size:.85rem;margin:6px 0 0}
.sf-crisis a{font-weight:650}
/* The crisis line's own links keep tight spacing: several page
   stylesheets give footer links a wide right margin for the link
   list, which tore this one line into gappy fragments (site check,
   Nov 4, 2026). */
footer .sf-crisis a,.footer .sf-crisis a{margin-right:0}
/* Little doors in the top right corner of every page: miniatures of
   the splash panels (same .sf-door-* art), name only, no blurb. The row
   hugs the right edge under the header and scrolls away with the page.
   Since the header word tabs were removed (Oct 28, 2026) this row is
   the only top navigation, so the mini row wraps (inherited from
   .sf-doors) rather than ever pushing a door off-screen. */
.sf-door-switcher{
  display:flex;justify-content:center;
  padding:10px 12px 8px;
  /* The doors shelf is part of the top banner (Oct 28, 2026): same
     paper as the header band, closed by the band's bottom border, so
     brand, sky and doors read as one tall band above the content. */
  background:#fcf8f2;border-bottom:1px solid #e0e4dc;
}
/* One even line, centered as a group (balance pass, Nov 4, 2026):
   the row used to hug the right edge and wrap; now it sits in the
   middle and never wraps. On narrow screens the doors each give a
   little width, so every door stays on the one line. */
.sf-doors.sf-doors-mini{margin:0;gap:8px;justify-content:center;align-items:flex-start;flex-wrap:nowrap}
.sf-door-link.sf-door-mini{flex:0 1 54px;min-width:0;padding:4px 2px 6px;position:relative}
.sf-door-mini .sf-door-name{margin-top:6px;font-size:.76rem;line-height:1.25}
/* Reading pages get the slim row (the door preview's measure): the
   doors shrink to 46px and the air tightens, so the page's own
   content starts high instead of halfway down the first screen. */
body:not(.welcome-page) .sf-door-switcher{padding:6px 12px}
body:not(.welcome-page) .sf-doors.sf-doors-mini{gap:4px 10px}
body:not(.welcome-page) .sf-door-link.sf-door-mini{flex-basis:46px;padding:2px 1px 3px}
body:not(.welcome-page) .sf-door-mini .sf-door-name{font-size:.75rem;margin-top:4px}
.sf-door-rose{--door:#a3546e;--door-hi:#b56a84;--door-deep:#7c3a50}
.sf-door-ember{--door:#b3491f;--door-hi:#c55a2a;--door-deep:#83320f}
.sf-door-coral{--door:#c0562f;--door-hi:#cf6f45;--door-deep:#8f3c1c}
/* The place the visitor is inside: a bold name and a
   "You are here" tag under it — it does not open, they are already
   here. (Underline removed Nov 9, 2026 at Graham's ask.) */
.sf-door-link.sf-door-here{cursor:default}
.sf-door-here .sf-door-name{font-weight:600}
/* The "You are here" tag is a quiet outline pill now, and it stays
   off the slim row on reading pages (balance pass, Nov 4, 2026). */
.sf-door-here-tag{
  margin-top:3px;white-space:nowrap;
  background:transparent;color:#2c4a42;
  border:1px solid rgba(44,74,66,.55);
  font-size:.58rem;font-weight:700;letter-spacing:.04em;line-height:1;
  padding:3px 7px;border-radius:999px;
}
body:not(.welcome-page) .sf-door-here-tag{display:none}
@media (max-width:640px){
  .sf-door-switcher{padding:10px 14px 8px}
}
/* Phones and small tablets (site check, Nov 4, 2026): the ten doors
   no longer squeeze into one compressed line. The row keeps each
   door at its full size and scrolls sideways when it must, so every
   door is reachable and none is cut off at the edges. One rule at
   every width (owner's word, Nov 4, 2026: the doors sit centered on
   the page): safe centering centers the row as a group whenever it
   fits, and falls back to starting at the first door when the row
   overflows and has to scroll. */
@media (max-width:820px){
  .sf-door-switcher{justify-content:safe center}
  .sf-doors.sf-doors-mini{
    flex:1 1 auto;min-width:0;justify-content:safe center;
    overflow-x:auto;overflow-y:hidden;
    -webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;
    scroll-snap-type:x proximity;
  }
  /* Overflowing rows only (the sf-doors-overflow class is set from
     site-features.js when the row truly scrolls, Nov 4, 2026, v166,
     the site check's tested fix): side padding so the first door's
     label shows in full instead of clipping at the screen edge, and
     a fade at the right edge so the row reads as swipeable. The fade
     lifts at the end of the scroll (sf-doors-at-end), where the last
     door sits. A row that fits keeps the plain safe-center look. */
  .sf-doors.sf-doors-mini.sf-doors-overflow{
    padding-inline:24px;scroll-padding-inline:24px;
    -webkit-mask-image:linear-gradient(to right,#000 calc(100% - 40px),transparent);
    mask-image:linear-gradient(to right,#000 calc(100% - 40px),transparent);
  }
  .sf-doors.sf-doors-mini.sf-doors-overflow.sf-doors-at-end{
    -webkit-mask-image:none;mask-image:none;
  }
  .sf-door-link.sf-door-mini{flex:0 0 54px;scroll-snap-align:start}
  body:not(.welcome-page) .sf-doors.sf-doors-mini{column-gap:14px}
  body:not(.welcome-page) .sf-door-link.sf-door-mini{flex-basis:46px}
}
/* Legacy .top headers (pages that predate the canonical als-header —
   the-path, breathing-heart, feel-understood, pocket-cards,
   room-for-tonight) join the taller banner too: deeper padding so
   their brand strip matches the canonical header's new height. */
header.top:not(.als-header){padding-top:16px;padding-bottom:16px}
/* ---------- Five doors ---------- */
.sf-doors{display:flex;flex-wrap:wrap;justify-content:center;gap:26px 14px;margin:20px 0 10px}
.sf-door-link{
  flex:0 1 100px;display:flex;flex-direction:column;align-items:center;
  text-align:center;text-decoration:none;border-radius:14px;padding:2px 2px 4px;
}
.sf-door-unit{display:flex;flex-direction:column;align-items:center;width:100%}
.sf-door-teal{--door:#3f7d72;--door-hi:#55907f;--door-deep:#2c5a50}
.sf-door-plum{--door:#7a5570;--door-hi:#8b6580;--door-deep:#573c4e}
.sf-door-sage{--door:#5d7f47;--door-hi:#6f9157;--door-deep:#425e31}
.sf-door-amber{--door:#b26a24;--door-hi:#c07c33;--door-deep:#87500f}
.sf-door-blue{--door:#52748d;--door-hi:#63869e;--door-deep:#3a576d}
.sf-door-violet{--door:#6a5a8c;--door-hi:#7f6ea6;--door-deep:#483c63}
.sf-door-wine{--door:#8a3b4a;--door-hi:#9c4f60;--door-deep:#5f2733}
.sf-door-fern{--door:#4e7d5a;--door-hi:#5f9070;--door-deep:#37593f}
.sf-door-dusk{--door:#52748d;--door-hi:#63869e;--door-deep:#3a576d}
.sf-door-scene{
  position:relative;display:block;width:100%;aspect-ratio:27/35;
  border:1.5px solid var(--door-deep);border-radius:999px 999px 8px 8px;
  background:#fbf8f2;perspective:640px;
}
.sf-door-inside{position:absolute;inset:0;border-radius:inherit;overflow:hidden;background:#fbf8f2}
.sf-door-glow{
  position:absolute;inset:0;opacity:0;transform:scale(.72);transform-origin:50% 62%;
  background:radial-gradient(circle at 50% 62%,rgba(255,222,150,.98),rgba(255,178,84,.75) 52%,rgba(255,150,60,.22) 76%,rgba(255,150,60,0) 90%);
  transition:opacity .5s ease,transform .65s ease;
}
/* Version B doors (balance pass, Nov 4, 2026): each door keeps its
   own color, faded and flat — the panel is a soft wash of the door's
   color over the page cream, with a thin deep outline and the glyph
   in the deep color. No shadows, no dressing. The panel still swings
   a little on hover, over the same cream inside. */
.sf-door-panel{
  position:absolute;inset:0;border-radius:inherit;z-index:2;
  background:color-mix(in srgb,var(--door) 22%,#fbf8f2);
  transform-origin:left center;transition:transform .5s cubic-bezier(.34,.56,.34,1);
}
.sf-door-panel::after{
  content:"";position:absolute;inset:9% 10%;border:1px solid color-mix(in srgb,var(--door-deep) 35%,transparent);
  border-radius:999px 999px 6px 6px;pointer-events:none;
}
.sf-door-glyph{position:absolute;top:15%;left:0;right:0;display:flex;justify-content:center;color:var(--door-deep);pointer-events:none}
.sf-door-glyph svg{width:42%;max-width:46px;height:auto;display:block;stroke-width:2.4}
.sf-door-link:hover .sf-door-panel,.sf-door-link:focus-visible .sf-door-panel{transform:rotateY(-16deg)}
.sf-door-link:hover .sf-door-glow,.sf-door-link:focus-visible .sf-door-glow{opacity:.55;transform:scale(.95)}
.sf-door-name{margin-top:11px;font-weight:500;font-size:1.05rem;line-height:1.25;color:#24302c}
/* The plain subtitle under a door's name. In the home browse
   listings it always shows. In the door row it shows only on wide
   home screens: at phone widths the row's columns run about 45px
   wide, where a subtitle wraps into an unreadable ribbon, so there
   the row keeps the name alone and the browse listing below carries
   the subtitle in full. On wide screens the row's links widen for
   the words while the door itself stays at its usual size. */
.sf-door-sub{display:block;margin-top:3px;font-size:.92rem;font-weight:500;line-height:1.4;color:var(--sf-ink)}
.sf-door-switcher .sf-door-sub{display:none}
@media (min-width:1000px){
  body.welcome-page .sf-door-switcher .sf-door-link.sf-door-mini{flex-basis:118px}
  body.welcome-page .sf-door-switcher .sf-door-unit{width:54px}
  body.welcome-page .sf-door-switcher .sf-door-name{font-size:.92rem}
  body.welcome-page .sf-door-switcher .sf-door-sub{display:block;font-size:.78rem;line-height:1.35}
}
.sf-door-blurb{margin-top:3px;font-size:.9rem;line-height:1.45;color:var(--sf-ink-soft)}
/* Dark mode, the same soft doors deepened: the panel takes more of
   the door's color over the dark ground, and the outline and glyph
   take the door's bright color. */
html[data-theme="dark"] .sf-door-scene{border-color:var(--door-hi);background:#1d2925}
html[data-theme="dark"] .sf-door-inside{background:#1d2925}
html[data-theme="dark"] .sf-door-panel{background:color-mix(in srgb,var(--door) 42%,#17211d)}
html[data-theme="dark"] .sf-door-panel::after{border-color:rgba(255,246,230,.18)}
html[data-theme="dark"] .sf-door-glyph{color:color-mix(in srgb,var(--door-hi) 30%,#ffffff)}
html[data-theme="dark"] .sf-door-name{color:#e8efe9}
html[data-theme="dark"] .sf-door-here-tag{color:#e8efe9;border-color:rgba(232,239,233,.6)}
.sf-open .sf-door-panel{transform:rotateY(-84deg);transition-duration:.55s}
.sf-open .sf-door-glow{opacity:1;transform:scale(1.14)}

/* ---------- The traveler ---------- */
.sf-char{position:absolute;display:block;width:64px;pointer-events:none}
.sf-char svg{display:block;width:100%;height:auto}
.sf-char-leg{fill:#3c5a54;transform-box:fill-box;transform-origin:50% 8%}
.sf-char-body{fill:#e09543}
.sf-char-head{fill:#f7cd93}
.sf-char-satchel{fill:#7a5570}
.sf-char-strap{stroke:#7a5570;stroke-width:2.5;fill:none}
.sf-char-scarf{fill:#3f7d72}
.sf-char-face{fill:#37322b}
.sf-char-smile{stroke:#37322b;stroke-width:1.8;fill:none;stroke-linecap:round}
@keyframes sf-gait-l{from{transform:rotate(17deg)}to{transform:rotate(-17deg)}}
@keyframes sf-gait-r{from{transform:rotate(-17deg)}to{transform:rotate(17deg)}}
@keyframes sf-bob{from{transform:translateY(0)}to{transform:translateY(-2.6px)}}

/* ---------- Journey overlay: three acts ---------- */
.sf-journey-overlay{position:fixed;inset:0;z-index:99990;background:var(--sf-bg-soft);animation:sf-overlay-in .25s ease both;touch-action:none}
@keyframes sf-overlay-in{from{opacity:0}to{opacity:1}}
.sf-act{position:absolute;inset:0;opacity:0;transition:opacity .45s ease;pointer-events:none}
.sf-act.sf-active{opacity:1}
.sf-act-door{background:radial-gradient(110% 90% at 50% 28%,var(--sf-bg),var(--sf-bg-soft));display:flex;align-items:center;justify-content:center}
.sf-door-stage{width:150px}
.sf-door-stage .sf-door-glyph svg{width:58px;max-width:58px}
/* Journey Act 1 after the doors were retired: no scene, just the name
   of the place ahead, shown simply. The sf-open beat draws a line
   under the name where a panel used to swing. Nov 11, 2026: the name
   now rides on a solid plate with bigger, heavier type — the text is
   only up for about a second while Pip walks in, and raw text on the
   gradient with the traveler crossing under it was hard to read. The
   plate is fully opaque in both themes, and never moves: the act
   centers it and nothing transforms it, so the words hold still
   while he travels. Nov 12, 2026, Graham's word (repeated from
   Nov 11): Pip walks IN FRONT of the sign, not behind it — his
   z-index is 5 now, above the plate's 4, below Skip's 6. */
.sf-journey-ahead{position:relative;z-index:4;text-align:center;max-width:min(88vw,26rem);padding:20px 30px 16px;background:var(--sf-bg);border:1px solid var(--sf-line);border-radius:22px;box-shadow:var(--sf-card-shadow),0 10px 28px rgba(30,20,5,.28)}
/* The label/name rules carry the .sf-journey-overlay prefix because
   theme.css's dark base paints every <p> #cfd4c6 at (0,1,2), which
   outranks a lone class: without the prefix the dark name lost its
   amber and the label lost its full ink. */
.sf-journey-overlay .sf-journey-ahead-label{margin:0 0 8px;font-size:1rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--sf-ink)}
.sf-journey-overlay .sf-journey-ahead-name{position:relative;display:inline-block;margin:0;padding-bottom:12px;font-size:2.6rem;font-weight:800;line-height:1.12;color:var(--sf-accent)}
.sf-journey-overlay .sf-journey-ahead-name::after{content:"";position:absolute;left:10%;right:10%;bottom:0;height:4px;border-radius:999px;background:var(--sf-accent);opacity:.7;transform:scaleX(0);transition:transform .55s ease}
.sf-journey-ahead.sf-open .sf-journey-ahead-name::after{transform:scaleX(1)}
.sf-char-door{left:50%;bottom:calc(50% - 128px);margin-left:-172px;z-index:5}
.sf-act-door.sf-active .sf-char-door{animation:sf-walkin .55s ease-out both}
@keyframes sf-walkin{from{transform:translateX(-52vw)}to{transform:translateX(0)}}
.sf-act-door .sf-char-door.sf-through{animation:sf-through .42s ease-in both}
@keyframes sf-through{0%{transform:translateX(0) scale(1);opacity:1}70%{opacity:1}100%{transform:translateX(124px) scale(.78);opacity:0}}
.sf-act-door.sf-active .sf-char svg,.sf-act-path.sf-active .sf-char svg{animation:sf-bob .18s ease-in-out infinite alternate}
.sf-act-door.sf-active .sf-char-leg-l,.sf-act-path.sf-active .sf-char-leg-l{animation:sf-gait-l .34s ease-in-out infinite alternate}
.sf-act-door.sf-active .sf-char-leg-r,.sf-act-path.sf-active .sf-char-leg-r{animation:sf-gait-r .34s ease-in-out infinite alternate}
.sf-act-space{background:#050a08}
.sf-flight-canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.sf-char-fly{left:0;top:32%;width:72px;z-index:2}
.sf-char-fly::before{
  content:"";position:absolute;right:86%;top:42%;width:110px;height:16px;border-radius:999px;
  background:linear-gradient(270deg,rgba(255,196,110,.6),rgba(255,196,110,0));filter:blur(3px);
}
.sf-char-fly .sf-char-leg-l{transform:rotate(-26deg)}
.sf-char-fly .sf-char-leg-r{transform:rotate(-40deg)}
.sf-act-space.sf-active .sf-char-fly{animation:sf-fly 1.55s linear both}
@keyframes sf-fly{0%{transform:translate(-120px,7vh) rotate(-10deg)}50%{transform:translate(46vw,-3vh) rotate(7deg)}100%{transform:translate(108vw,2vh) rotate(-6deg)}}
.sf-act-path{background:#0d1f2a}
/* v137 second lock: the retired landing scene must never paint, even
   if a future change re-attaches it to the journey overlay. (Act 3 is
   the only element that ever carries this class, and the journey code
   no longer appends it at all.) */
.sf-journey-overlay .sf-act-path{display:none !important}
.sf-ls-wrap,.sf-ls{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}
.sf-char-path{left:50%;bottom:29%;margin-left:-32px;z-index:2;transform-origin:50% 100%}
.sf-act-path.sf-active .sf-char-path{animation:sf-approach 1.85s ease-in-out both}
@keyframes sf-approach{from{transform:translate(-8px,0) scale(.38)}to{transform:translate(5px,92px) scale(.97)}}
.sf-journey-skip{
  position:absolute;right:16px;bottom:16px;z-index:6;font:inherit;font-weight:600;cursor:pointer;
  min-height:44px;padding:10px 20px;border-radius:999px;border:1px solid var(--sf-accent);
  background:var(--sf-accent);color:var(--sf-accent-ink);box-shadow:0 6px 18px rgba(0,0,0,.25);
}

/* ---------- Journey landscape (Act 3) phases ---------- */
.sf-phase-morning{--ls-sky:#f4dfae;--ls-far:#a78fb8;--ls-near:#77618c;--ls-ground:#7d8f5f;--ls-road:#eed3a0}
.sf-phase-day{--ls-sky:#a9cde3;--ls-far:#8aa5b8;--ls-near:#5f7f95;--ls-ground:#7fa05f;--ls-road:#eedcae}
.sf-phase-sunset{--ls-sky:#f0a26a;--ls-far:#96688a;--ls-near:#63455e;--ls-ground:#5f6a3c;--ls-road:#e8c184}
.sf-phase-night{--ls-sky:#0d1f2a;--ls-far:#26506b;--ls-near:#17384a;--ls-ground:#223d2c;--ls-road:#8ba086}
.sf-ls-sky{fill:var(--ls-sky)}
.sf-ls-far{fill:var(--ls-far)}
.sf-ls-near{fill:var(--ls-near)}
.sf-ls-ground{fill:var(--ls-ground)}
.sf-ls-road{fill:var(--ls-road)}
.sf-ls-sun{transform:translate(302px,54px)}
.sf-ls-sun-core{fill:#ffd166}
.sf-ls-sun-glow{fill:#ffd166;opacity:.35}
.sf-phase-morning .sf-ls-sun{transform:translate(118px,148px)}
.sf-phase-morning .sf-ls-sun-core{fill:#ffc46b}
.sf-phase-sunset .sf-ls-sun{transform:translate(238px,198px)}
.sf-phase-sunset .sf-ls-sun-core{fill:#ff9a3c}
.sf-phase-sunset .sf-ls-sun-glow{fill:#ff9a3c}
.sf-ls-moon{fill:#f6f1de;display:none}
.sf-ls-stars{fill:#ffffff;opacity:.9;display:none}
.sf-phase-night .sf-ls-sun{display:none}
.sf-phase-night .sf-ls-moon{display:block}
.sf-phase-night .sf-ls-stars{display:block}

/* ---------- Small moments ---------- */
.sf-chips{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}
.sf-chip-btn{
  font:inherit;cursor:pointer;padding:10px 18px;border-radius:999px;min-height:44px;
  display:inline-flex;align-items:center;
  border:1px solid var(--sf-line);background:var(--sf-chip);color:var(--sf-ink);
}
.sf-chip-btn[aria-pressed="true"]{background:var(--sf-accent);color:var(--sf-accent-ink);border-color:var(--sf-accent)}
.sf-card textarea{
  display:block;box-sizing:border-box;width:100%;min-height:84px;font:inherit;color:var(--sf-ink);
  background:#ffffff;border:1px solid var(--sf-line);border-radius:16px;padding:14px;resize:vertical;margin:8px 0 12px;
}
.game-card:focus-visible{outline:3px solid #94684e;outline-offset:3px}
.game-card-scene{flex:none;display:flex;flex-direction:column;align-items:center}
.game-card-door{width:72px;height:102px;border-radius:36px 36px 6px 6px;background:linear-gradient(180deg,#c07c33,#b26a24);box-shadow:inset 0 0 0 4px #87500f;position:relative}
.game-card-door::before{content:"";position:absolute;left:50%;top:16px;transform:translateX(-50%);width:26px;height:26px;border-radius:50%;background:radial-gradient(circle,#ffca6a 0 34%,rgba(255,202,106,0) 72%)}
.game-card-door::after{content:"";position:absolute;right:9px;top:54px;width:8px;height:8px;border-radius:50%;background:#f7cd93}
.game-card-ground{width:96px;height:10px;border-radius:50%;background:#e9dcc3;margin-top:5px}
.game-card-eyebrow{margin:0 0 5px;font-size:.72rem;font-weight:700;letter-spacing:.13em;color:#a34d14}
.game-card h2{margin:0 0 7px;font-size:1.5rem;font-weight:600;line-height:1.15}
.game-card p{margin:0;line-height:1.55;color:#6f6455}
.game-card-go{display:inline-block;margin-top:10px;font-weight:700;color:#a34d14}
html[data-theme="dark"] .game-card{background:#213129;color:#edeade;box-shadow:0 12px 32px rgba(0,0,0,.35)}
html[data-theme="dark"] .game-card p{color:#cfd4c6}
html[data-theme="dark"] .game-card-eyebrow,html[data-theme="dark"] .game-card-go{color:#f2b266}
html[data-theme="dark"] .game-card-ground{background:#2e4638}
@media (max-width:520px){.game-card{flex-direction:column;text-align:center;padding:22px 20px}.game-card p{text-align:center}}

/* ---------- Seasonal clothes (everywhere the traveler appears) ---------- */
.sf-char-jacket,.sf-char-coat,.sf-char-flower,.sf-char-hat,.sf-char-sunhat,.sf-char-scarf2,.sf-char-arm,.sf-char-book,.sf-char-lantern{display:none}
.sf-char-flower circle{fill:#e79ec0}
.sf-char-flower .sf-char-flower-c{fill:#f6c453}
.sf-char-hat{fill:#7a5570}
.sf-char-hat-brim{stroke:#573c4e;stroke-width:4.6;fill:none;stroke-linecap:round}
.sf-char-sunhat path,.sf-char-sunhat ellipse{fill:#f2d492}
.sf-char-scarf2{fill:#2f6a5e}
.sf-char-coat{fill:#46303e}
.sf-char-arm{fill:#e09543;transform-box:fill-box;transform-origin:50% 10%}
.sf-char-book rect{fill:#7a5570}
.sf-char-book path{stroke:#fff6e6;stroke-width:1.6}
.sf-char-lantern rect{fill:#7a5c2e}
.sf-char-lantern path{stroke:#7a5c2e;stroke-width:1.8;fill:none}
.sf-char-lantern-glow{fill:#ffd166}
.sf-char-lantern-halo{fill:#ffd166;opacity:.25}
/* The cape: worn only by the path traveler, only while he flies (the
   walk game's hold-to-fly). Plum #7a5570, the same cape as The Path
   game, anchored at his shoulder so it streams out behind him. */
.sf-char-cape{display:none;fill:#7a5570;transform-box:fill-box;transform-origin:90% 10%}
.sf-char-path.sf-flying .sf-char-cape{display:block;animation:sf-cape-flutter .34s ease-in-out infinite alternate}
@keyframes sf-cape-flutter{from{transform:rotate(2deg)}to{transform:rotate(-6deg) skewY(-3deg)}}
/* His other rides (Oct 29, 2026): hidden everywhere by default; one shows
   on the walk-game traveler while he is airborne with that ride. */
.sf-ride{display:none}
.sf-char-path.sf-ride-heli .sf-ride-heli-g{display:block}
.sf-char-path.sf-ride-ship .sf-ride-ship-g{display:block}
.sf-char-path.sf-ride-chute .sf-ride-chute-g{display:block}
.sf-char-path.sf-ride-shoes .sf-ride-shoes-g{display:block}
.sf-ride-rotor{fill:#4a4a52;transform-box:fill-box;transform-origin:50% 50%;animation:sf-rotor .18s linear infinite alternate}
@keyframes sf-rotor{from{transform:scaleX(1)}to{transform:scaleX(.18)}}
.sf-ride-mast,.sf-ride-skid{fill:#6a6a74}
.sf-ride-dome{fill:rgba(165,205,235,.45);stroke:rgba(90,130,165,.65);stroke-width:1.4}
.sf-ride-tail{stroke:#6a6a74;stroke-width:3;stroke-linecap:round}
.sf-ride-tailfin{fill:#c65b4e}
.sf-ride-saucer{fill:#8d99b5}
.sf-ride-saucer-dome{fill:rgba(165,205,235,.55);stroke:rgba(90,130,165,.6);stroke-width:1.2}
.sf-ride-light{fill:#ffd76e;animation:sf-saucer-blink 1s ease-in-out infinite alternate}
@keyframes sf-saucer-blink{from{opacity:.45}to{opacity:1}}
.sf-ride-canopy{fill:#e07856}
.sf-ride-lines{stroke:#7a6a5c;stroke-width:1.1;fill:none}
.sf-ride-chute-g{transform-box:fill-box;transform-origin:50% 0;animation:sf-chute-sway 1.6s ease-in-out infinite alternate}
@keyframes sf-chute-sway{from{transform:rotate(1.6deg)}to{transform:rotate(-1.6deg)}}
.sf-ride-shoe{fill:#c65b4e}
.sf-ride-flame{fill:#f59a3c;transform-box:fill-box;transform-origin:50% 0;animation:sf-flame-flicker .16s ease-in-out infinite alternate}
@keyframes sf-flame-flicker{from{transform:scaleY(.72)}to{transform:scaleY(1.12)}}
html[data-sf-season="autumn"] .sf-char-jacket{display:block;fill:#b45a32}
html[data-sf-season="autumn"] .sf-char-arm{fill:#b45a32}
html[data-sf-season="spring"] .sf-char-jacket{display:block;fill:#7d9b6a}
html[data-sf-season="spring"] .sf-char-flower{display:block}
html[data-sf-season="spring"] .sf-char-arm{fill:#7d9b6a}
html[data-sf-season="winter"] .sf-char-jacket{display:block;fill:#573c4e}
html[data-sf-season="winter"] .sf-char-coat{display:block}
html[data-sf-season="winter"] .sf-char-hat,html[data-sf-season="winter"] .sf-char-hat-brim{display:block}
html[data-sf-season="winter"] .sf-char-scarf2{display:block}
html[data-sf-season="winter"] .sf-char-arm{fill:#573c4e}
html[data-sf-season="summer"] .sf-char-sunhat{display:block}
html[data-sf-season="summer"] .sf-char-scarf{display:none}
html[data-sf-season="summer"] .sf-char-arm{fill:#eda85c}

/* ---------- The traveler's look (one per session, set by site-features.js) ----------
   html[data-trav-*] describes this session's traveler: his hair (style and
   colour), glasses, his own cap or beanie, his scarf in one accent colour,
   sometimes a camera. The seasonal clothes above still win in their
   season: winter's knit hat and thick scarf replace his own, summer's sun
   hat replaces his hat and there is never a summer scarf. A worn hat
   flattens his hair to the side tufts. */
.sf-look-hair-crop,.sf-look-hair-tuft,.sf-look-hair-bun,.sf-look-hair-puff,.sf-look-hair-sides,.sf-look-cap,.sf-look-beanie,.sf-look-glasses,.sf-look-camera{display:none}
.sf-look-hair-crop,.sf-look-hair-tuft,.sf-look-hair-bun,.sf-look-hair-puff,.sf-look-hair-sides{fill:var(--trav-hair,#6b4632)}
html[data-trav-hair="crop"]:not([data-trav-haton="1"]) .sf-look-hair-crop{display:block}
html[data-trav-hair="tuft"]:not([data-trav-haton="1"]) .sf-look-hair-tuft{display:block}
html[data-trav-hair="bun"]:not([data-trav-haton="1"]) .sf-look-hair-bun{display:block}
html[data-trav-hair="puff"]:not([data-trav-haton="1"]) .sf-look-hair-puff{display:block}
html[data-trav-haton="1"]:not([data-trav-hair="none"]) .sf-look-hair-sides{display:block}
.sf-look-cap,.sf-look-beanie{fill:var(--trav-scarf,#b3543f)}
.sf-look-beanie-band{fill:rgba(0,0,0,.18)}
html[data-trav-hat="cap"]:not([data-sf-season="winter"]):not([data-sf-season="summer"]) .sf-look-cap{display:block}
html[data-trav-hat="beanie"]:not([data-sf-season="winter"]):not([data-sf-season="summer"]) .sf-look-beanie{display:block}
html[data-sf-season="winter"][data-trav-hat="beanie"] .sf-char-hat{fill:var(--trav-scarf,#b3543f)}
html[data-sf-season="winter"][data-trav-hat="beanie"] .sf-char-hat-brim{stroke:var(--trav-scarf,#b3543f)}
.sf-look-glasses circle,.sf-look-glasses path{fill:none;stroke:#37322b;stroke-width:1.4;stroke-linecap:round}
html[data-trav-glasses="1"] .sf-look-glasses{display:block}
.sf-look-cam-strap{stroke:#4a3a34;stroke-width:1.8;fill:none}
.sf-look-cam-body,.sf-look-cam-top{fill:#4a3a34}
.sf-look-cam-lens{fill:#20262b}
.sf-look-cam-glass{fill:#9fc3d8}
html[data-trav-camera="1"] .sf-look-camera{display:block}
html[data-trav-scarf="1"] .sf-char-scarf{fill:var(--trav-scarf,#b3543f)}
html[data-trav-scarf="1"] .sf-char-scarf2{fill:var(--trav-scarf,#b3543f)}
html[data-trav-scarf="0"]:not([data-sf-season="winter"]):not([data-sf-season="summer"]) .sf-char-scarf{display:none}.sf-pose-stretch .sf-char-arm-l{transform:rotate(141deg)}
.sf-pose-stretch .sf-char-arm-r{transform:rotate(-141deg)}
.sf-pose-read .sf-char-arm{display:block}
.sf-pose-read .sf-char-arm-l{transform:rotate(-34deg)}
.sf-pose-read .sf-char-arm-r{transform:rotate(34deg)}
.sf-pose-read .sf-char-book{display:block}
.sf-pose-lantern .sf-char-arm-l{display:block}
.sf-pose-lantern .sf-char-lantern{display:block}
.sf-pose-sleep svg{transform:rotate(-5deg)}
  .sf-pose-stretch .sf-char-arm-l{animation:sf-stretch-l 2.8s ease-in-out infinite alternate}
  .sf-pose-stretch .sf-char-arm-r{animation:sf-stretch-r 2.8s ease-in-out infinite alternate}
  .sf-pose-lantern .sf-char-lantern-halo{animation:sf-lantern-pulse 2.8s ease-in-out infinite alternate}

@keyframes sf-stretch-l{from{transform:rotate(136deg)}to{transform:rotate(147deg)}}
@keyframes sf-stretch-r{from{transform:rotate(-147deg)}to{transform:rotate(-136deg)}}
@keyframes sf-lantern-pulse{from{opacity:.15}to{opacity:.36}}

/* ---------- The night door's colors ---------- */
.sf-door-night{--door:#46648a;--door-hi:#55779e;--door-deep:#24384f}
.sf-door-note{font-size:.95rem;color:var(--sf-ink-soft);margin:2px 0 10px}
.sf-door-note a{color:var(--sf-accent);font-weight:600}

/* ---------- Journey landscape: seasons ---------- */
.sf-ls-snowcaps,.sf-ls-snowground,.sf-ls-verge,.sf-ls-grass,.sf-ls-trees{display:none}
.sf-ls-snowcaps{fill:#ffffff;opacity:.94}
.sf-ls-snowground{fill:#eef3f2}
.sf-ls-verge path{fill:none;stroke:#69a84f;stroke-width:5;stroke-linecap:round}
.sf-ls-grass path{fill:none;stroke:#c9a44a;stroke-width:3;stroke-linecap:round}
.sf-ls-trees .sf-ls-trunk{fill:#5d4630}
.sf-journey-overlay[data-sf-season="winter"] .sf-ls-snowcaps{display:block}
.sf-journey-overlay[data-sf-season="winter"] .sf-phase-day .sf-ls-snowground{display:block;opacity:.5}
.sf-journey-overlay[data-sf-season="winter"] .sf-phase-morning .sf-ls-snowground{display:block;opacity:.45}
.sf-journey-overlay[data-sf-season="winter"] .sf-phase-sunset .sf-ls-snowground{display:block;opacity:.32}
.sf-journey-overlay[data-sf-season="winter"] .sf-phase-night .sf-ls-snowground{display:block;opacity:.2}
.sf-journey-overlay[data-sf-season="spring"] .sf-ls-verge{display:block}
.sf-journey-overlay[data-sf-season="summer"] .sf-ls-verge{display:block}
.sf-journey-overlay[data-sf-season="summer"] .sf-ls-verge path{stroke:#4e7d3a}
.sf-journey-overlay[data-sf-season="summer"] .sf-ls-grass{display:block}
.sf-journey-overlay[data-sf-season="spring"] .sf-ls-trees,.sf-journey-overlay[data-sf-season="summer"] .sf-ls-trees,.sf-journey-overlay[data-sf-season="autumn"] .sf-ls-trees{display:block}
.sf-journey-overlay[data-sf-season="spring"] .sf-ls-tree-a{fill:#8fbf6f}
.sf-journey-overlay[data-sf-season="spring"] .sf-ls-tree-b{fill:#a5cc85}
.sf-journey-overlay[data-sf-season="summer"] .sf-ls-tree-a{fill:#4e7d3a}
.sf-journey-overlay[data-sf-season="summer"] .sf-ls-tree-b{fill:#3f6a2f}
.sf-journey-overlay[data-sf-season="autumn"] .sf-ls-tree-a{fill:#c97b2f}
.sf-journey-overlay[data-sf-season="autumn"] .sf-ls-tree-b{fill:#b45a32}

/* ---------- Journey: the season in the air (Act 3) ---------- */
.sf-season-fx{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.sf-season-fx i{position:absolute;top:-4%;display:block;opacity:0}
.sf-season-fx i:nth-child(3n+1){left:9%}
.sf-season-fx i:nth-child(3n+2){left:38%}
.sf-season-fx i:nth-child(3n){left:71%}
.sf-season-fx i:nth-child(4n){left:88%}
.sf-season-fx i:nth-child(5n){left:55%}
.sf-journey-overlay[data-sf-season="autumn"] .sf-season-fx i{width:10px;height:8px;border-radius:80% 0 80% 0;background:#d9903f}
.sf-journey-overlay[data-sf-season="autumn"] .sf-season-fx i:nth-child(3n+2){background:#b45a32}
.sf-journey-overlay[data-sf-season="autumn"] .sf-season-fx i:nth-child(4n){background:#e8b04b}
.sf-journey-overlay[data-sf-season="winter"] .sf-season-fx i{width:7px;height:7px;border-radius:50%;background:#ffffff}
.sf-journey-overlay[data-sf-season="spring"] .sf-season-fx i{width:9px;height:8px;border-radius:80% 0 80% 0;background:#f0b7cd}
.sf-journey-overlay[data-sf-season="spring"] .sf-season-fx i:nth-child(3n){background:#e79ec0}
.sf-journey-overlay[data-sf-season="summer"] .sf-season-fx{display:none}
.sf-journey-overlay[data-sf-season="summer"] .sf-phase-night .sf-season-fx,.sf-journey-overlay[data-sf-season="summer"] .sf-phase-sunset .sf-season-fx{display:block}
.sf-journey-overlay[data-sf-season="summer"] .sf-season-fx i{width:5px;height:5px;border-radius:50%;background:#ffe98a;box-shadow:0 0 9px 2px rgba(255,233,138,.75);top:auto}
.sf-journey-overlay[data-sf-season="summer"] .sf-season-fx i:nth-child(3n+1){top:56%}
.sf-journey-overlay[data-sf-season="summer"] .sf-season-fx i:nth-child(3n+2){top:70%}
.sf-journey-overlay[data-sf-season="summer"] .sf-season-fx i:nth-child(3n){top:82%}
  .sf-act-path.sf-active .sf-season-fx i{animation:sf-fall 8s linear infinite}
  .sf-act-path.sf-active .sf-season-fx i:nth-child(odd){animation-duration:10.5s}
  .sf-act-path.sf-active .sf-season-fx i:nth-child(3n+1){animation-delay:-1.1s}
  .sf-act-path.sf-active .sf-season-fx i:nth-child(3n+2){animation-delay:-3.6s}
  .sf-act-path.sf-active .sf-season-fx i:nth-child(3n){animation-delay:-6.2s}
  .sf-journey-overlay[data-sf-season="winter"] .sf-act-path.sf-active .sf-season-fx i{animation-name:sf-snowfall}
  .sf-journey-overlay[data-sf-season="spring"] .sf-act-path.sf-active .sf-season-fx i{animation-name:sf-drift;animation-duration:11s}
  .sf-journey-overlay[data-sf-season="summer"] .sf-act-path.sf-active .sf-season-fx i{animation:sf-firefly 5.5s ease-in-out infinite alternate}

@keyframes sf-fall{0%{transform:translate3d(0,-6vh,0) rotate(0deg);opacity:0}8%{opacity:.95}92%{opacity:.95}100%{transform:translate3d(3.5vw,108vh,0) rotate(320deg);opacity:0}}
@keyframes sf-snowfall{0%{transform:translate3d(0,-6vh,0);opacity:0}8%{opacity:.95}92%{opacity:.95}100%{transform:translate3d(-2vw,108vh,0);opacity:0}}
@keyframes sf-drift{0%{transform:translate3d(0,-6vh,0) rotate(0deg);opacity:0}10%{opacity:.9}90%{opacity:.9}100%{transform:translate3d(-5vw,108vh,0) rotate(-260deg);opacity:0}}
@keyframes sf-firefly{0%{transform:translate(0,0);opacity:.25}45%{opacity:1}100%{transform:translate(26px,-20px);opacity:.5}}

/* ---------- The companion ---------- */
.sf-companion{position:fixed;right:14px;bottom:14px;z-index:9000;display:flex;flex-direction:column;align-items:flex-end;gap:4px;max-width:min(248px,74vw)}
.sf-companion{transition:opacity .25s ease}
.sf-companion.sf-comp-yield{opacity:0;pointer-events:none}
.sf-comp-bubble{position:relative;background:var(--sf-bg);border:1px solid var(--sf-line);border-radius:16px 16px 5px 16px;box-shadow:0 10px 26px rgba(60,40,10,.18);padding:11px 14px;color:var(--sf-ink)}
.sf-comp-bubble::after{content:"";position:absolute;right:24px;bottom:-7px;width:13px;height:13px;background:var(--sf-bg);border-right:1px solid var(--sf-line);border-bottom:1px solid var(--sf-line);transform:rotate(45deg);border-bottom-right-radius:3px}
.sf-comp-line{margin:0;font-size:.93rem;line-height:1.45}
a.sf-comp-line{color:var(--sf-accent);font-weight:600}
.sf-comp-char{position:relative;background:transparent;border:0;cursor:pointer;padding:2px;line-height:0}
.sf-char-comp{position:relative;width:52px}
.sf-comp-bounce{animation:sf-comp-bounce .55s ease}
@keyframes sf-comp-bounce{0%{transform:translateY(0)}35%{transform:translateY(-7px)}70%{transform:translateY(1px)}100%{transform:translateY(0)}}
.sf-comp-hide{position:absolute;top:-8px;right:-4px;width:27px;height:27px;border-radius:50%;background:var(--sf-bg);border:1px solid var(--sf-line);color:var(--sf-ink-soft);font-size:15px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:2}
.sf-comp-compact{max-width:196px;right:10px;bottom:10px}
.sf-comp-compact .sf-char-comp{width:42px}
.sf-comp-compact .sf-comp-line{font-size:.86rem}
.sf-comp-chip{font:inherit;font-size:.85rem;cursor:pointer;background:transparent;border:1px solid var(--sf-line);color:var(--sf-accent);border-radius:999px;padding:.35em .9em;min-height:36px}
.sf-comp-chip-fixed{position:fixed;left:12px;bottom:12px;z-index:9000;background:var(--sf-bg)}
@media (max-width:480px){.sf-companion{right:10px;bottom:10px}}
/* The bubble steps off the words (site check, Nov 3, 2026): hidden
   while the page scrolls and while the footer is on screen. */
.sf-comp-bubble{transition:opacity .25s ease,visibility .25s ease}
.sf-companion.sf-comp-quiet .sf-comp-bubble{opacity:0;visibility:hidden;pointer-events:none}
.sf-companion.sf-comp-nosay .sf-comp-bubble{display:none}

/* ---------- The traveler explains (shared component) ----------
   Placed by static markup (.traveler-explains) wherever a builder wants
   him to explain the place. Self-contained palette in the Headspace card
   family; dark values follow html[data-theme] like everything else. */
.traveler-explains{
  --te-bg:#fff9f0;--te-soft-bg:#fdeed3;--te-ink:#37322b;--te-soft:#6f6455;
  --te-line:#ecdabd;--te-accent:#a34d14;--te-shadow:0 12px 32px rgba(122,84,32,.12),0 2px 8px rgba(122,84,32,.07);
  display:flex;gap:20px;align-items:flex-start;
  width:calc(100% - 44px);max-width:880px;margin:34px auto;
  background:var(--te-bg);border-radius:24px;box-shadow:var(--te-shadow);
  padding:26px 28px;color:var(--te-ink);line-height:1.6;box-sizing:border-box;
}
html[data-theme="dark"] .traveler-explains{
  --te-bg:#213129;--te-soft-bg:#1b2922;--te-ink:#edeade;--te-soft:#cfd4c6;
  --te-line:#3a4f42;--te-accent:#f2b266;--te-shadow:0 14px 34px rgba(0,0,0,.5),0 2px 8px rgba(0,0,0,.35);
}
.traveler-explains :focus-visible{outline:3px solid var(--te-accent);outline-offset:2px}
.travelexp-char{flex:none;width:66px;display:block;line-height:0}
.travelexp-char svg{display:block;width:100%;height:auto}
.travelexp-body{flex:1;min-width:0}
.travelexp-bubble{
  position:relative;margin:0;background:var(--te-soft-bg);border-radius:16px;
  padding:15px 18px;font-size:1.03rem;line-height:1.6;
}
.travelexp-bubble::before{
  content:"";position:absolute;left:-7px;top:34px;width:14px;height:14px;
  background:var(--te-soft-bg);transform:rotate(45deg);border-bottom-left-radius:3px;
}
.travelexp-line{margin:13px 0 0;font-size:.97rem;color:var(--te-soft);min-height:1.5em}
.travelexp-more{
  font:inherit;font-weight:600;cursor:pointer;margin-top:11px;min-height:44px;
  padding:9px 18px;border-radius:999px;border:1px solid var(--te-accent);
  background:transparent;color:var(--te-accent);
}
.travelexp-bounce{animation:sf-comp-bounce .55s ease}
  .travelexp-char{animation:sf-exp-idle 3.6s ease-in-out infinite alternate}

@keyframes sf-exp-idle{from{transform:translateY(0)}to{transform:translateY(-3px)}}
@media (max-width:520px){
  .traveler-explains{flex-direction:column;align-items:center;padding:24px 20px;text-align:left}
  .travelexp-bubble::before{left:50%;top:-7px;margin-left:-7px;border-bottom-left-radius:0;border-top-left-radius:3px}
  .travelexp-body{width:100%}
}

/* ---------- The traveler's card (/about-you/) ---------- */
.sf-profile-group{border:0;margin:0 0 22px;padding:0;min-width:0}
.sf-profile-group legend{font-weight:600;font-size:1.02rem;margin-bottom:6px;padding:0}
.sf-profile-group .sf-hint{font-size:.9rem;color:var(--sf-ink-soft);margin:0 0 6px}
.sf-profile-input{display:block;box-sizing:border-box;width:100%;font:inherit;color:var(--sf-ink);background:var(--sf-bg);border:1px solid var(--sf-line);border-radius:12px;padding:12px 14px;margin:4px 0 14px}
.sf-profile-input:focus-visible{outline:3px solid var(--sf-focus);outline-offset:2px}

/* ---------- Home: two minutes, in-the-works, tour ---------- */
.sf-soon{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#fffdfa;border:1px solid #e1e8e0;border-radius:16px;padding:16px;font-size:.87rem;font-weight:690;color:#39594d;min-height:70px;opacity:.78}
.sf-soon em{font-style:normal;font-weight:600;font-size:.76rem;color:#6f6455;white-space:nowrap}
html[data-theme="dark"] .sf-soon{background:#213129;border-color:#33463b;color:#cfd4c6}
html[data-theme="dark"] .sf-soon em{color:#b9cec0}
.footer-nav .sf-soon-nav{opacity:.75}
.quiet-more .quiet-subhead{font-size:1.02rem;font-weight:650;margin:20px 0 10px}
/* Home only: the Journal is a secret found at the very bottom. */
.sf-secret-journal{margin:24px auto 0;text-align:center;font-size:.82rem}
.sf-secret-journal a{margin-right:0;color:#47665b;font-weight:500;text-decoration-thickness:1px;text-underline-offset:.18em}
html[data-theme="dark"] .sf-secret-journal a{color:#8fd0bf}


/* ---------- Walk a while: Act 3 rests, and can become a little game ----------
   Shown only when the journey rests (motion allowed). The traveler walks
   in place at the left of the path; small mountains drift toward him;
   a tap hops him, and an unjumped mountain simply carries him up and
   over. There is no score, no fail state, and nothing to win. */
.sf-walk-stage{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.sf-walk-btn,.sf-walk-continue{
  pointer-events:auto;font:inherit;font-weight:600;cursor:pointer;touch-action:none;
  min-height:44px;border-radius:999px;padding:10px 20px;line-height:1.35;
}
/* The two rest-state controls: Continue is the primary action, centered
   on its own row at the very bottom (its label wraps to a second line
   inside its own pill instead of overflowing). The quieter Walk pill
   used to sit centered one step above it, but the traveler rests at the
   center of the path too, and on any viewport shorter than ~830px the
   centered pill landed right on top of him. The pill now anchors to the
   LEFT at that same height: on wide screens his approach lane (center
   ± ~50px) is far to its right, and the pill's right edge also stays
   clear of Continue's widest case ("Continue to The Little Things
   Journal", ~315px, centered). On narrow screens (760px and under)
   there is no room beside him at that height, so the pill keeps its
   left anchor and lifts to just above his head (his crown sits at
   29% + ~16px of the scene height; the pill's row starts a step above
   that), where it also cannot meet Continue below. */
.sf-walk-btn{
  position:absolute;left:24px;bottom:calc(104px + env(safe-area-inset-bottom, 0px));z-index:5;
  display:none;align-items:center;gap:8px;white-space:nowrap;
  max-width:calc(100% - 32px);
  border:1px solid rgba(255,246,230,.65);background:rgba(18,30,26,.58);color:#fff6e6;
  box-shadow:0 6px 18px rgba(0,0,0,.25);
}
.sf-walk-btn .sf-walk-play{font-size:.78em}
@media (max-width:760px){
  .sf-walk-btn{left:16px;bottom:calc(29% + 12px + env(safe-area-inset-bottom, 0px))}
}
.sf-walk-continue{
  position:absolute;left:50%;bottom:calc(16px + env(safe-area-inset-bottom, 0px));transform:translateX(-50%);z-index:6;display:none;
  width:max-content;max-width:min(600px,calc(100% - 32px));text-align:center;
  border:1px solid var(--sf-accent);background:var(--sf-accent);color:var(--sf-accent-ink);
  box-shadow:0 6px 18px rgba(0,0,0,.25);
}
/* The one-time hop hint: a small quiet pill high in the scene, well
   clear of the stacked controls at the bottom and of the line that
   sits above it. It only ever fades; it never takes a tap. */
.sf-walk-hint{
  position:absolute;left:50%;top:23%;transform:translateX(-50%);z-index:5;
  padding:8px 16px;border-radius:999px;white-space:nowrap;pointer-events:none;
  border:1px solid rgba(255,246,230,.65);background:rgba(18,30,26,.58);color:#fff6e6;
  font-size:.92em;font-weight:600;box-shadow:0 6px 18px rgba(0,0,0,.22);
  opacity:0;transition:opacity .45s ease;
}
.sf-act-path.sf-playing .sf-walk-hint.sf-show{opacity:1}
/* The flight hint takes the hop hint's place, one step lower, once the
   first hint has had its moment. */
.sf-fly-hint{top:calc(23% + 54px)}
.sf-act-path.sf-resting .sf-walk-btn{display:inline-flex}
.sf-act-path.sf-resting .sf-walk-continue,
.sf-act-path.sf-playing .sf-walk-continue{display:block}
.sf-journey-overlay.sf-resting .sf-journey-skip,
.sf-journey-overlay.sf-playing .sf-journey-skip{display:none}
.sf-walk-line{
  position:absolute;left:0;right:0;top:11%;z-index:4;display:none;
  margin:0;padding:0 24px;text-align:center;pointer-events:none;
  color:#fff6e6;font-size:clamp(1rem,2.6vw,1.22rem);line-height:1.5;
  text-shadow:0 1px 4px rgba(10,20,16,.65),0 2px 16px rgba(10,20,16,.45);
}
.sf-act-path.sf-playing .sf-walk-line{display:block}
.sf-act-path.sf-playing .sf-char-path{left:18%;margin-left:0;animation:none}
.sf-walk-mtn{position:absolute;bottom:calc(29% - 92px);display:block}
.sf-walk-mtn svg{display:block;width:100%;height:100%}
.sf-walk-mtn-body{fill:#3d7ea6}
.sf-walk-mtn-far .sf-walk-mtn-body{fill:#6fa8c4}
.sf-walk-mtn-cap{fill:#ffffff;display:block}
/* His wave boards: hidden until the matching sf-on-* class lands while
   a wave carries him. */
.sf-board{display:none}
.sf-char.sf-on-surf .sf-board-surf{display:block}
.sf-char.sf-on-ski .sf-board-ski{display:block}
.sf-char.sf-on-skate .sf-board-skate{display:block}
.sf-board-surf path{fill:#e07b39}
.sf-board-ski path{fill:#b03a2e}
.sf-board-skate path{fill:#8a5a2b}
.sf-board-skate circle{fill:#37322b}
.sf-walk-dust{
  position:absolute;bottom:calc(29% - 92px);width:34px;height:13px;border-radius:50%;
  background:radial-gradient(ellipse at center,rgba(255,246,225,.85),rgba(255,246,225,0) 70%);
  animation:sf-dust .55s ease-out both;pointer-events:none;
}
@keyframes sf-dust{from{transform:scale(.5);opacity:.9}to{transform:scale(1.5) translateY(-4px);opacity:0}}

/* The two footer links site-features adds (kept lines, About you) share
   one paragraph; keep the same gap the footer's own links use. */
.sf-footer-links a + a{margin-left:18px}

/* First visit path: the "How are you arriving?" strip (Oct 29, 2026). */
.sf-arrive{max-width:56rem;margin:0 auto 18px;padding:22px 22px 18px;text-align:center;
 background:var(--sf-card,#fffdf8);border:1px solid rgba(120,100,70,.18);border-radius:18px;
 box-shadow:0 2px 14px rgba(80,60,30,.06)}
.sf-arrive h2{font-size:clamp(1.35rem,4vw,1.8rem);margin:0 0 6px;line-height:1.25}
.sf-arrive p{margin:0 0 14px;line-height:1.5}
.sf-arrive-taps{display:flex;flex-wrap:wrap;gap:9px;justify-content:center}
.sf-arrive-tap{display:inline-block;padding:10px 16px;border-radius:999px;text-decoration:none;
 font-weight:600;border:1px solid rgba(120,90,40,.35);background:rgba(255,214,140,.16);color:inherit}
.sf-arrive-tap:hover,.sf-arrive-tap:focus{background:rgba(255,214,140,.38)}
html[data-theme="dark"] .sf-arrive{border-color:rgba(255,255,255,.14)}
html[data-theme="dark"] .sf-arrive-tap{border-color:rgba(255,196,110,.4);background:rgba(255,196,110,.10)}

/* How each door helps, said plainly on its card (Oct 29, 2026). */
.sf-door-helps{display:block;margin-top:5px;font-size:.92em;line-height:1.4;opacity:.85}
/* A short audience label on a door card, so a visitor can sort it at
   a glance (Oct 30, 2026: the Kids door says who it is for). */
.sf-door-tag{display:block;margin-top:4px;font-size:.7rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--sf-accent)}
.sf-door-sunny{--door:#d9a416;--door-hi:#eab93a;--door-deep:#a67c0e}

/* ---------- Modern calm pass, home page (Oct 30, 2026) ----------
   Graham approved this direction from a preview modeled on Headspace,
   with ideas from Calm and BetterHelp: bigger type, more air, flatter
   cards, one idea at a time. Scoped to the home page where possible;
   the door art, the journey, and every feature stay exactly as they
   were. Only the feel changes. */
.sf-home-wrap .sf-card{
  box-shadow:0 2px 10px rgba(122,84,32,.05);
  border:1px solid var(--sf-line);
  padding:42px 38px;
  margin-top:36px;margin-bottom:36px;
}
@media (max-width:640px){.sf-home-wrap .sf-card{padding:30px 22px}}
.sf-home-wrap .sf-doors{gap:36px 24px;margin:28px 0 16px}
.sf-home-wrap .sf-door-link{flex-basis:158px;padding:6px 4px 10px;border-radius:18px}
.sf-home-wrap .sf-door-name{font-size:1.14rem;margin-top:13px}
.sf-home-wrap .sf-door-blurb{font-size:.95rem}
.sf-arrive{padding:28px 24px 22px;margin-bottom:22px}
.sf-arrive-taps{gap:11px}
.sf-arrive-tap{padding:12px 20px;font-size:1rem}

/* ---------- Plain list, home browse section (Oct 30, 2026) ----------
   The doors are retired (Graham's call): the browse section is a
   quiet list of rows now — name, tag, blurb, helps, a hairline
   between entries — with no panels, badges, or colours of their own.
   Overrides the calm-pass sizing above, home page only. Tapping a
   row still starts the walk, exactly as the cards did. */
.sf-home-wrap .sf-doors{flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;gap:0;margin:26px 0 10px}
.sf-home-wrap .sf-door-link{
  flex:none;max-width:none;width:100%;
  background:transparent;border:none;border-top:1px solid var(--sf-line);border-radius:0;
  box-shadow:none;padding:16px 4px 18px;overflow:visible;
  align-items:flex-start;text-align:left;
}
.sf-home-wrap .sf-door-link:last-child{border-bottom:1px solid var(--sf-line)}
.sf-home-wrap .sf-door-link:hover,.sf-home-wrap .sf-door-link:focus-visible{
  transform:none;box-shadow:none;
}
.sf-home-wrap .sf-door-link:hover .sf-door-name,.sf-home-wrap .sf-door-link:focus-visible .sf-door-name{
  text-decoration:underline;text-underline-offset:3px;
}
.sf-home-wrap .sf-door-name{margin-top:0;padding-left:0;padding-right:0}
.sf-home-wrap .sf-door-tag{padding-left:0;padding-right:0}
.sf-home-wrap .sf-door-blurb{padding-left:0;padding-right:0}
.sf-home-wrap .sf-door-helps{padding-left:0;padding-right:0}

/* ---------- Browse groups by need (Nov 2, 2026) ---------- */
.sf-umbrella{font-size:1.14rem;font-style:italic;margin:12px 0 0}
.sf-group{margin-top:24px}
.sf-group-title{font-size:.98rem;letter-spacing:.07em;text-transform:uppercase;color:var(--sf-accent);font-weight:700;margin:0}
.sf-home-wrap .sf-group .sf-doors{margin:8px 0 2px}

/* ---------- Liquid Glass, home page only (v145, Nov 4, 2026) ----------
   The home page's chrome takes an iOS-style glass: frosted translucent
   surfaces, a backdrop blur with a saturation lift, a 1px light edge,
   and a soft specular sheen across the top, while the page's living
   sky (the fixed .ss-bg scene) shows through and refracts. Scoped to
   body.welcome-page: reading pages and book interiors stay solid
   Version B. The journey overlay lives on the home page, so the stage
   door inherits the same glass through the shared door components; no
   journey-only styling was built.
   FALLBACK: every glass value below lives inside @supports for
   backdrop-filter. A browser without it simply keeps the flat
   Version B surfaces — nothing goes transparent over bare sky. The
   prefers-reduced-transparency block after this one restores the same
   flat surfaces for readers who ask for them.
   CONTRAST: the milks were set against the darkest light sky stop the
   glass can sit on (dusk #8a76bd) and computed before shipping: door
   names 7.97, subtitles 7.40, brand 7.24, card body text 10.45, card
   soft text and accent 4.84 at the shipped .88 milk — all at or above
   4.5. Dark values were checked the same way against the lightest
   dark stop (#54303a). */
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  /* The brand bar: frosted cream over the sky. */
  body.welcome-page header.als-header{
    background:rgba(252,248,242,.72);
    -webkit-backdrop-filter:blur(18px) saturate(160%);
    backdrop-filter:blur(18px) saturate(160%);
  }
  /* The door band: the shelf itself turns to glass, so the doors and
     their names sit on frosted sky instead of flat paper. */
  body.welcome-page .sf-door-switcher{
    background:rgba(252,248,242,.58);
    border-bottom:1px solid rgba(120,110,90,.18);
    -webkit-backdrop-filter:blur(16px) saturate(150%);
    backdrop-filter:blur(16px) saturate(150%);
  }
  /* The door's frame and doorway go clear on the home page, so the
     panel's own backdrop blur has the band and the sky to work on.
     The Version B outline and the swing stay exactly as they were. */
  body.welcome-page .sf-door-scene{
    background:transparent;
    box-shadow:0 10px 22px rgba(60,40,10,.13);
  }
  body.welcome-page .sf-door-inside{background:transparent}
  /* The panel: the door's Version B color as a tint in frosted glass —
     a milky translucent mix of the door color, a light edge, an inset
     top highlight, and a sheen that fades down the top half. */
  body.welcome-page .sf-door-panel{
    background-color:color-mix(in srgb,var(--door) 30%,rgba(253,250,244,.74));
    background-image:linear-gradient(180deg,rgba(255,255,255,.30),rgba(255,255,255,0) 46%);
    border:1px solid rgba(255,255,255,.38);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.65),inset 0 -10px 18px rgba(255,255,255,.10);
    -webkit-backdrop-filter:blur(8px) saturate(170%);
    backdrop-filter:blur(8px) saturate(170%);
  }
  /* The home cards (browse, kept lines): milky glass, milk raised to
     .88 so the soft text and the accent keep their contrast on the
     darkest sky stop. The light edge is an inset ring, not a border,
     so no card moves by a pixel. */
  body.welcome-page .sf-home-wrap .sf-card{
    background:rgba(255,249,240,.88);
    box-shadow:var(--sf-card-shadow),inset 0 1px 0 rgba(255,255,255,.65),inset 0 0 0 1px rgba(255,255,255,.5);
    -webkit-backdrop-filter:blur(18px) saturate(140%);
    backdrop-filter:blur(18px) saturate(140%);
  }
  /* The traveler's bubble on the home page: the same milk and blur;
     the little tail matches. He himself is untouched. */
  body.welcome-page .sf-comp-bubble{
    background:rgba(255,249,240,.86);
    border-color:rgba(255,255,255,.55);
    -webkit-backdrop-filter:blur(14px) saturate(150%);
    backdrop-filter:blur(14px) saturate(150%);
  }
  body.welcome-page .sf-comp-bubble::after{
    background:rgba(255,249,240,.86);
    border-right-color:rgba(146,132,105,.35);
    border-bottom-color:rgba(146,132,105,.35);
  }
  /* Dark: deeper tints, the same light edge, checked against the
     lightest dark sky stop. */
  html[data-theme="dark"] body.welcome-page header.als-header{
    background:rgba(19,30,25,.62);
    -webkit-backdrop-filter:blur(18px) saturate(140%);
    backdrop-filter:blur(18px) saturate(140%);
  }
  html[data-theme="dark"] body.welcome-page .sf-door-switcher{
    background:rgba(23,33,29,.55);
    border-bottom-color:rgba(255,255,255,.14);
    -webkit-backdrop-filter:blur(16px) saturate(130%);
    backdrop-filter:blur(16px) saturate(130%);
  }
  html[data-theme="dark"] body.welcome-page .sf-door-scene{
    background:transparent;
    box-shadow:0 10px 22px rgba(0,0,0,.35);
  }
  html[data-theme="dark"] body.welcome-page .sf-door-inside{background:transparent}
  html[data-theme="dark"] body.welcome-page .sf-door-panel{
    background-color:color-mix(in srgb,var(--door) 48%,rgba(23,33,29,.62));
    background-image:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,0) 46%);
    border-color:rgba(255,255,255,.20);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.28),inset 0 -10px 18px rgba(255,255,255,.05);
    -webkit-backdrop-filter:blur(8px) saturate(150%);
    backdrop-filter:blur(8px) saturate(150%);
  }
  html[data-theme="dark"] body.welcome-page .sf-home-wrap .sf-card{
    background:rgba(33,49,41,.78);
    box-shadow:var(--sf-card-shadow),inset 0 1px 0 rgba(255,255,255,.14),inset 0 0 0 1px rgba(255,255,255,.12);
    -webkit-backdrop-filter:blur(18px) saturate(130%);
    backdrop-filter:blur(18px) saturate(130%);
  }
  html[data-theme="dark"] body.welcome-page .sf-comp-bubble{
    background:rgba(33,49,41,.82);
    border-color:rgba(255,255,255,.16);
    -webkit-backdrop-filter:blur(14px) saturate(140%);
    backdrop-filter:blur(14px) saturate(140%);
  }
  html[data-theme="dark"] body.welcome-page .sf-comp-bubble::after{
    background:rgba(33,49,41,.82);
    border-right-color:rgba(255,255,255,.16);
    border-bottom-color:rgba(255,255,255,.16);
  }
}
/* Reduced transparency: the glass steps aside and the flat Version B
   surfaces come back, value for value. */
@media (prefers-reduced-transparency:reduce){
  body.welcome-page header.als-header{background:#fcf8f2fa;-webkit-backdrop-filter:none;backdrop-filter:none}
  body.welcome-page .sf-door-switcher{background:#fcf8f2;border-bottom-color:#e0e4dc;-webkit-backdrop-filter:none;backdrop-filter:none}
  body.welcome-page .sf-door-scene{background:#fbf8f2;box-shadow:none}
  body.welcome-page .sf-door-inside{background:#fbf8f2}
  body.welcome-page .sf-door-panel{
    background-color:color-mix(in srgb,var(--door) 22%,#fbf8f2);background-image:none;
    border:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;
  }
  body.welcome-page .sf-home-wrap .sf-card{background:var(--sf-bg);box-shadow:var(--sf-card-shadow);-webkit-backdrop-filter:none;backdrop-filter:none}
  body.welcome-page .sf-comp-bubble{background:var(--sf-bg);border-color:var(--sf-line);-webkit-backdrop-filter:none;backdrop-filter:none}
  body.welcome-page .sf-comp-bubble::after{background:var(--sf-bg);border-right-color:var(--sf-line);border-bottom-color:var(--sf-line)}
  html[data-theme="dark"] body.welcome-page header.als-header{background:rgba(19,30,25,.97)}
  html[data-theme="dark"] body.welcome-page .sf-door-switcher{background:#131e19;border-bottom-color:#2a3a31}
  html[data-theme="dark"] body.welcome-page .sf-door-scene{background:#1d2925}
  html[data-theme="dark"] body.welcome-page .sf-door-inside{background:#1d2925}
  html[data-theme="dark"] body.welcome-page .sf-door-panel{background-color:color-mix(in srgb,var(--door) 42%,#17211d)}
}

/* v164 (2026-11-04): the one-line "how this door helps" note at the top of each door page. */
.door-help{font-size:.98rem;line-height:1.55;color:var(--sf-ink-soft);margin:0 0 14px;max-width:44rem}
.door-help-wrap{max-width:1130px;margin:0 auto;padding:20px 24px 0}

/* ---------- v165 (Nov 4, 2026): featured grief book + adult pass ----------
   The featured block: A Light Left On as the home centerpiece (the
   owner's word), larger than a door, ahead of the browse list, with a
   short sample from its opening pages. The adult pass below it is
   bounded on purpose: quieter sky and door washes, fainter clouds,
   simpler door faces (the inset frame line is gone; the glyphs were
   already plain line icons), and more open space in the shared cards
   and browse groups. Warmth stays: same colors, only softer. The
   traveler, the door names, and every book are untouched. */
.sf-featured{border-top:4px solid var(--door,#b3491f);padding:44px 40px}
.sf-featured h2{font-size:clamp(2rem,5vw,2.9rem)}
.sf-featured-sub{font-size:1.08rem;line-height:1.65;max-width:44rem}
.sf-featured-sample{border-left:3px solid var(--door,#b3491f);padding:6px 0 6px 20px;margin:22px 0 6px;max-width:44rem}
.sf-featured-sample p{font-family:'Literata',Georgia,serif;font-size:1.06rem;line-height:1.75;margin:0 0 12px}
.sf-featured-sample p:last-child{margin-bottom:0}
.sf-featured-sample-label{font-family:inherit !important;font-size:.74rem !important;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--sf-accent);margin:0 0 10px !important}
.sf-featured-row{margin:20px 0 12px}
@media (max-width:640px){.sf-featured{padding:34px 24px}}

/* Quieter sky band: the same sky, desaturated a step, clouds fainter. */
html[data-sf-sky="morning"] .sf-skyband{background:linear-gradient(180deg,#c2d8e5 0%,#e4efec 55%,#f8f2df 100%)}
html[data-sf-sky="day"] .sf-skyband{background:linear-gradient(180deg,#bcd7ea 0%,#ddefef 60%,#f5f2e7 100%)}
.sf-skyband .sf-cloud{background:rgba(255,255,255,.5)}
.sf-skyband .sf-cloud::before,.sf-skyband .sf-cloud::after{background:rgba(255,255,255,.5)}
html[data-sf-sky="sunset"] .sf-skyband .sf-cloud{background:rgba(255,226,205,.6)}
html[data-sf-sky="sunset"] .sf-skyband .sf-cloud::before,html[data-sf-sky="sunset"] .sf-skyband .sf-cloud::after{background:rgba(255,226,205,.6)}

/* Simpler, quieter door faces: a softer wash of each door's own color,
   a lighter outline, and no inset frame line. */
.sf-door-scene{border-color:color-mix(in srgb,var(--door-deep) 55%,transparent)}
.sf-door-panel{background:color-mix(in srgb,var(--door) 12%,#fbf8f2)}
.sf-door-panel::after{display:none}
html[data-theme="dark"] .sf-door-panel{background:color-mix(in srgb,var(--door) 30%,#17211d)}
html[data-theme="dark"] body.welcome-page .sf-door-panel{background:color-mix(in srgb,var(--door) 30%,#17211d)}

/* More open space in the shared cards and the browse groups. */
.sf-card{padding:40px}
@media (max-width:640px){.sf-card{padding:32px 22px}}
.sf-home-wrap .sf-card{padding:44px 40px}
@media (max-width:640px){.sf-home-wrap .sf-card{padding:34px 24px}}
.sf-group{margin-top:38px}
.sf-home-wrap .sf-group .sf-doors{margin:12px 0 4px}

/* Doors stand in the sky (Nov 7, 2026, Graham's word): the band grows
   tall enough to hold the sky and the doors together, the doors shelf
   turns clear and pulls up into the band, and the clouds drift behind
   the doors. The home shelf keeps its paper below the taller sky. */
.sf-skyband{height:182px}
body:not(.welcome-page) .sf-door-switcher{background:transparent;border-bottom:0;position:relative;margin-top:-124px}
.sf-skyband .sf-cloud-a{top:14px}
.sf-skyband .sf-cloud-b{top:108px}
.sf-skyband .sf-cloud-c{top:52px}
.sf-skyband .sf-orb{width:30px;height:30px;top:12px}
@media (max-width:640px){
  .sf-skyband{height:174px}
  .sf-skyband .sf-cloud-b{display:block;top:100px}
}
html[data-sf-sky="night"] .sf-door-name{color:#e9f1ea}
html[data-sf-sky="night"] .sf-door-sub{color:#c9d8cc}
html[data-sf-sky="night"] .sf-door-here-tag{color:#e9f1ea;border-color:rgba(233,241,234,.55)}

/* The journey's first page is the sky too (Nov 7, 2026, Graham's word:
   the white page before the flight was too bright). Same gradients as
   the sky band, per phase, on the overlay and on Act 1. */
.sf-journey-overlay{background:linear-gradient(180deg,#8ec3e6 0%,#cdeef7 60%,#eefaf3 100%)}
.sf-act-door{background:linear-gradient(180deg,#8ec3e6 0%,#cdeef7 60%,#eefaf3 100%)}
html[data-sf-sky="morning"] .sf-journey-overlay,html[data-sf-sky="morning"] .sf-act-door{background:linear-gradient(180deg,#a8cbe0 0%,#d7ecf3 55%,#fdf3d8 100%)}
html[data-sf-sky="sunset"] .sf-journey-overlay,html[data-sf-sky="sunset"] .sf-act-door{background:linear-gradient(180deg,#7d7fb0 0%,#e8a37c 58%,#f9d976 100%)}
html[data-sf-sky="night"] .sf-journey-overlay,html[data-sf-sky="night"] .sf-act-door{background:linear-gradient(180deg,#101d33 0%,#1d3252 70%,#2c4a6b 100%)}
html[data-sf-sky="night"] .sf-journey-ahead-label{color:#c9d8cc}
html[data-sf-sky="night"] .sf-journey-ahead-name{color:#ffb27a}
html[data-sf-sky="night"] .sf-journey-ahead-name::after{background:#ffb27a}

/* The footer crisis line at night (Nov 7, 2026 audit): it sat dark on
   the night sky, the worst contrast on the site. On sky pages it goes
   light, with warm links. Pages whose footer keeps its own cream
   background are not sky pages and keep the dark line. */
html.ss-bg-on[data-sf-sky="night"] .sf-crisis{color:#e9f1ea!important}
html.ss-bg-on[data-sf-sky="night"] .sf-crisis a{color:#ffd9a8!important}

/* Each door icon does its own thing (Nov 7, 2026, Graham's word): the
   candle flame flickers, the book turns a page, the leaf sways, the
   cloud drifts, the flower breathes open, the speech bubble bounces,
   the newspaper flips, the plate pulses. Still under reduced motion,
   like the sky band. */
.sf-door-teal .sf-door-glyph svg{transform-origin:50% 90%;animation:sf-g-bubble 2.8s ease-in-out infinite}
@keyframes sf-g-bubble{0%,100%{transform:scale(1)}30%{transform:scale(1.1) translateY(-.6px)}55%{transform:scale(1.03)}}
.sf-door-ember .g-flame{transform-box:fill-box;transform-origin:50% 100%;animation:sf-g-flame .85s ease-in-out infinite alternate}
@keyframes sf-g-flame{from{transform:scaleY(1) skewX(-2.5deg)}to{transform:scaleY(.84) skewX(3deg)}}
.sf-door-plum .g-page{transform-box:fill-box;transform-origin:0% 50%;opacity:.16;animation:sf-g-page 3.4s ease-in-out infinite}
@keyframes sf-g-page{0%,18%{transform:scaleX(1)}42%,58%{transform:scaleX(.05)}82%,100%{transform:scaleX(1)}}
.sf-door-sage .sf-door-glyph svg{transform-origin:50% 100%;animation:sf-g-leaf 4.4s ease-in-out infinite alternate}
@keyframes sf-g-leaf{from{transform:rotate(-4.5deg)}to{transform:rotate(4.5deg) translateX(.6px)}}
.sf-door-amber .sf-door-glyph svg{animation:sf-g-cloud 5.6s ease-in-out infinite alternate}
@keyframes sf-g-cloud{from{transform:translateX(-1.3px)}to{transform:translateX(1.3px)}}
.sf-door-rose .sf-door-glyph svg{transform-origin:50% 50%;animation:sf-g-bloom 4.8s ease-in-out infinite alternate}
@keyframes sf-g-bloom{from{transform:scale(1) rotate(-3deg)}to{transform:scale(1.1) rotate(4deg)}}
.sf-door-wine .sf-door-glyph svg{transform-origin:50% 50%;animation:sf-g-paper 4.2s ease-in-out infinite}
@keyframes sf-g-paper{0%,55%,100%{transform:scaleX(1)}70%{transform:scaleX(.55) rotate(-2deg)}85%{transform:scaleX(1)}}
.sf-door-coral .sf-door-glyph svg{transform-origin:50% 50%;animation:sf-g-plate 3.8s ease-in-out infinite alternate}
@keyframes sf-g-plate{from{transform:scale(1)}to{transform:scale(1.08)}}
@media (prefers-reduced-motion:reduce){.sf-door-glyph svg,.sf-door-glyph .g-flame,.sf-door-glyph .g-page{animation:none}}

/* Compact top inside the doors (Nov 8, 2026, Graham): the doors are
   always there, but once you are inside a door they shrink and hug
   the right side, and the sky band slims down so the page's own
   content starts high instead of halfway down the screen. The home
   page keeps its tall sky and centered doors. */
body:not(.welcome-page) .sf-skyband{height:96px;border-bottom:0}
body:not(.welcome-page) .sf-door-switcher{margin-top:-80px;justify-content:flex-end;padding:4px 10px 0}
body:not(.welcome-page) .sf-doors.sf-doors-mini{justify-content:flex-end;gap:4px 6px}
body:not(.welcome-page) .sf-door-link.sf-door-mini{flex-basis:37px}
body:not(.welcome-page) .sf-door-mini .sf-door-name{font-size:.58rem;margin-top:3px;line-height:1.15}
/* One size for every door (Nov 8, 2026, Graham): the Daily Paper and
   Food Journal doors no longer get extra width for their long names.
   The only bigger door in the row is the one the reader is inside
   (sf-door-here), so where you are reads at a glance. */
body:not(.welcome-page) .sf-door-link.sf-door-mini.sf-door-here{flex-basis:47px}
/* Fit only, not size: the two long names take a smaller font so they
   still wrap to two lines inside the standard 37px door. */
body:not(.welcome-page) .sf-door-link:has(.sf-door-wine) .sf-door-name,body:not(.welcome-page) .sf-door-link:has(.sf-door-coral) .sf-door-name{font-size:.48rem}
body:not(.welcome-page) .sf-skyband .sf-cloud-b{top:54px}
body:not(.welcome-page) .sf-skyband .sf-cloud-c{display:none}
@media (max-width:820px){body:not(.welcome-page) .sf-doors.sf-doors-mini{justify-content:safe flex-end}}
@media (max-width:640px){
  body:not(.welcome-page) .sf-skyband{height:92px}
  body:not(.welcome-page) .sf-door-switcher{margin-top:-76px}
}

/* Liquid glass everywhere (Nov 12, 2026, Graham's ask): the frosted
   look the home page already had, extended to every page. The brand
   bar and the door shelf turn to glass in both themes, with the
   same values as the welcome treatment above. The welcome-page
   rules are more specific, so the home page keeps its own. */
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  header.als-header,header.top{
    background:rgba(252,248,242,.72);
    -webkit-backdrop-filter:blur(18px) saturate(160%);
    backdrop-filter:blur(18px) saturate(160%);
  }
  .sf-door-switcher{
    background:rgba(252,248,242,.58);
    border-bottom:1px solid rgba(120,110,90,.18);
    -webkit-backdrop-filter:blur(16px) saturate(150%);
    backdrop-filter:blur(16px) saturate(150%);
  }
  html[data-theme="dark"] header.als-header,html[data-theme="dark"] header.top{
    background:rgba(19,30,25,.62);
    -webkit-backdrop-filter:blur(18px) saturate(140%);
    backdrop-filter:blur(18px) saturate(140%);
  }
  html[data-theme="dark"] .sf-door-switcher{
    background:rgba(23,33,29,.55);
    border-bottom-color:rgba(255,255,255,.14);
    -webkit-backdrop-filter:blur(16px) saturate(130%);
    backdrop-filter:blur(16px) saturate(130%);
  }
}
@media (prefers-reduced-transparency:reduce){
  header.als-header,header.top{background:#fcf8f2;-webkit-backdrop-filter:none;backdrop-filter:none}
  .sf-door-switcher{background:#fcf8f2;border-bottom-color:#e0e4dc;-webkit-backdrop-filter:none;backdrop-filter:none}
  html[data-theme="dark"] header.als-header,html[data-theme="dark"] header.top{background:#131e19}
  html[data-theme="dark"] .sf-door-switcher{background:#17211d;border-bottom-color:rgba(255,255,255,.08)}
}

/* The door glide (Nov 12, 2026, Graham's ask: make the doors slide
   too): a glass pill behind the mini doors in the switcher. It
   starts on the door he came from and glides to the door he is in,
   and the row scrolls smoothly to center his door. */
.sf-doors.sf-doors-mini{position:relative}
.sf-doors-mini .sf-door-link{z-index:1}
.sf-door-glide{position:absolute;top:2px;bottom:2px;left:0;width:0;border-radius:14px;background:linear-gradient(180deg,rgba(255,255,255,.5),rgba(255,255,255,.22));border:1px solid rgba(120,110,90,.35);box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 4px 12px rgba(60,40,10,.12);transition:transform .5s cubic-bezier(.32,.72,.24,1),width .5s cubic-bezier(.32,.72,.24,1);z-index:0;pointer-events:none}
html[data-theme="dark"] .sf-door-glide{border-color:rgba(255,255,255,.35);box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 4px 12px rgba(0,0,0,.3)}
@media (prefers-reduced-motion: reduce){.sf-door-glide{transition:none}}

/* More doors (Nov 13, 2026, v579): every door but the three Train Fuel
   tools sits in this closed section at the bottom of the home page. */
.sf-more-doors{margin-top:20px}
.sf-more-doors>summary{cursor:pointer;font-weight:700;font-size:1.05rem;padding:16px 8px;list-style:none}
.sf-more-doors>summary::-webkit-details-marker{display:none}
.sf-more-doors>summary::after{content:" +";font-weight:400}
.sf-more-doors[open ]>summary::after{content:" \2212"}
.sf-tf-price{font-weight:700;margin-top:14px}

/* One day (Nov 13, 2026): one person through one day above the
   three doors. Morning eating, midday lifting, evening writing,
   the sun crossing over it all, and the day lifting into one star
   at the end. Reduced motion stands it still on the evening. */
.sf-daywrap{display:flex;justify-content:center;margin:2px 0 0}
.sf-daywrap svg{width:min(320px,86vw);height:auto}
.sf1A,.sf1B,.sf1C{opacity:0}
.sf1A{animation:sf1A 12s ease-in-out infinite}
.sf1B{animation:sf1B 12s ease-in-out infinite}
.sf1C{animation:sf1C 12s ease-in-out infinite}
@keyframes sf1A{0%,3%{opacity:0}8%,26%{opacity:1}33%,100%{opacity:0}}
@keyframes sf1B{0%,31%{opacity:0}38%,55%{opacity:1}62%,100%{opacity:0}}
@keyframes sf1C{0%,60%{opacity:0}67%,86%{opacity:1}93%,100%{opacity:0}}
.sf1Steam{animation:sf1Steam 12s ease-in-out infinite}
@keyframes sf1Steam{0%,8%{opacity:0;transform:translateY(3px)}14%,24%{opacity:1;transform:translateY(-2px)}30%,100%{opacity:0;transform:translateY(-4px)}}
.sf1Written{opacity:0;animation:sf1Written 12s ease-in-out infinite}
@keyframes sf1Written{0%,70%{opacity:0}78%,88%{opacity:1}94%,100%{opacity:0}}
.sf1Sun{animation:sf1Sun 12s ease-in-out infinite}
@keyframes sf1Sun{0%{opacity:0;transform:translate(-102px,18px)}6%{opacity:1}30%{transform:translate(-54px,-4px)}55%{transform:translate(0,-16px)}80%{transform:translate(56px,-2px)}88%{opacity:1}94%,100%{opacity:0;transform:translate(98px,20px)}}
.sf1Star{opacity:0;transform-box:fill-box;transform-origin:50% 50%;animation:sf1Star 12s ease-in-out infinite}
@keyframes sf1Star{0%,84%{opacity:0;transform:translateY(10px) scale(.6)}91%{opacity:1;transform:translateY(0) scale(1)}96%{opacity:1;transform:translateY(-12px) scale(1.04)}100%{opacity:0;transform:translateY(-22px) scale(1.06)}}
@media (prefers-reduced-motion: reduce){.sf1A,.sf1B,.sf1C,.sf1Steam,.sf1Written,.sf1Sun,.sf1Star{animation:none}.sf1A,.sf1B,.sf1Steam,.sf1Sun{opacity:0}.sf1C,.sf1Written,.sf1Star{opacity:1}.sf1Star{transform:none}}

/* Swing, lake, frogs, fish (Nov 13, 2026). */
.sf1Swing{transform-box:view-box;transform-origin:154px 114px;animation:sf1Swing 12s ease-in-out infinite}
@keyframes sf1Swing{0%,37%{transform:rotate(-14deg)}44%{transform:rotate(17deg)}50%{transform:rotate(-14deg)}56%{transform:rotate(17deg)}62%,100%{transform:rotate(0deg)}}
.sf1Arc{opacity:0;animation:sf1Arc 12s ease-in-out infinite}
@keyframes sf1Arc{0%,42%{opacity:0}46%,52%{opacity:.7}57%{opacity:0}59%{opacity:.7}63%,100%{opacity:0}}
.sf1FrogA{animation:sf1HopA 12s ease-in-out infinite}
@keyframes sf1HopA{0%,68%{transform:translate(206px,177px)}71%{transform:translate(210px,167px)}74%,79%{transform:translate(214px,177px)}82%{transform:translate(218px,168px)}85%,100%{transform:translate(221px,177px)}}
.sf1FrogB{animation:sf1HopB 12s ease-in-out infinite}
@keyframes sf1HopB{0%,73%{transform:translate(248px,187px) scale(.75)}76%{transform:translate(244px,179px) scale(.75)}79%,84%{transform:translate(241px,187px) scale(.75)}87%{transform:translate(238px,180px) scale(.75)}90%,100%{transform:translate(236px,187px) scale(.75)}}
.sf1Fish{opacity:0;animation:sf1Fish 12s ease-in-out infinite}
@keyframes sf1Fish{0%,71%{opacity:0;transform:translate(224px,193px) rotate(0deg)}74%{opacity:1;transform:translate(228px,175px) rotate(-24deg)}77%{opacity:1;transform:translate(234px,171px) rotate(8deg)}80%,100%{opacity:0;transform:translate(238px,191px) rotate(30deg)}}
.sf1Splash{opacity:0;animation:sf1Splash 12s ease-in-out infinite}
@keyframes sf1Splash{0%,71%{opacity:0}73%{opacity:1}76%{opacity:0}79%{opacity:1}82%,100%{opacity:0}}
.sf1Ripple{opacity:0;animation:sf1Ripple 12s ease-in-out infinite}
@keyframes sf1Ripple{0%,72%{opacity:0}77%{opacity:.8}83%,100%{opacity:0}}
@media (prefers-reduced-motion: reduce){.sf1Swing,.sf1Arc,.sf1FrogA,.sf1FrogB,.sf1Fish,.sf1Splash,.sf1Ripple{animation:none}.sf1Arc,.sf1Fish,.sf1Splash,.sf1Ripple{opacity:0}}

.sf1Cloud{animation:sf1Cloud 12s ease-in-out infinite}
@keyframes sf1Cloud{0%{transform:translateX(0)}30%{transform:translateX(11px)}100%{transform:translateX(11px)}}
@media (prefers-reduced-motion: reduce){.sf1Cloud{animation:none}}

/* The calm home (Nov 13, 2026, Graham's screenshots): hero actions, the
   scene panel with its Day / Dusk / Night / Auto switch, and the three
   clean tool cards. */
.sf-hero-eyebrow{letter-spacing:.18em;text-transform:uppercase;font-size:.72rem;font-weight:700;color:#a07d2c;margin:0 0 10px}
.sf-hero-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:22px 0 6px}
.sf-hero-btn{display:inline-block;background:#17573a;color:#fff;font-weight:600;padding:14px 26px;border-radius:14px;text-decoration:none;box-shadow:0 8px 20px rgba(23,87,58,.25)}
.sf-hero-more{color:#17573a;font-weight:600;text-decoration:underline;text-underline-offset:4px}
html[data-theme="dark"] .sf-hero-btn{background:#2e7d5b}
html[data-theme="dark"] .sf-hero-more{color:#cfe6d8}
#main-heading em{color:#2e7d5f}
html[data-theme="dark"] #main-heading em{color:#8fd0ae}
.sf-scene{position:relative;border-radius:24px;overflow:hidden;aspect-ratio:640/300;background:#bcdff0}
.sf-scene svg{position:absolute;inset:0;width:100%;height:100%}
.sf-scene .sc-sky{transition:fill .8s ease}
.sf-scene[data-scene="day"] .sc-sky{fill:#bcdff0}
.sf-scene[data-scene="dusk"] .sc-sky{fill:#f3c98f}
.sf-scene[data-scene="night"] .sc-sky{fill:#22384a}
.sf-scene .sc-stars{opacity:0;transition:opacity .8s ease}
.sf-scene[data-scene="dusk"] .sc-stars{opacity:.35}
.sf-scene[data-scene="night"] .sc-stars{opacity:1}
.sf-scene .sc-sun{transition:transform .8s ease}
.sf-scene[data-scene="day"] .sc-sun{transform:translate(498px,80px)}
.sf-scene[data-scene="dusk"] .sc-sun{transform:translate(428px,152px)}
.sf-scene[data-scene="night"] .sc-sun{transform:translate(502px,68px)}
.sf-scene .sc-sunball{fill:#f6c453;transition:fill .8s ease}
.sf-scene[data-scene="dusk"] .sc-sunball{fill:#f59e4c}
.sf-scene[data-scene="night"] .sc-sunball{fill:#eef2df}
.sf-scene .sc-moonshade{fill:#bcdff0;opacity:0;transition:fill .8s ease,opacity .8s ease}
.sf-scene[data-scene="dusk"] .sc-moonshade{fill:#f3c98f}
.sf-scene[data-scene="night"] .sc-moonshade{fill:#22384a;opacity:1}
.sf-scene .sc-cloud{opacity:.95;transition:opacity .8s ease;animation:sfDrift 52s linear infinite;animation-delay:-12s}
.sf-scene .sc-cloud2{animation-name:sfDrift2;animation-duration:68s;animation-delay:-30s}
.sf-scene[data-scene="dusk"] .sc-cloud{opacity:.8}
.sf-scene[data-scene="night"] .sc-cloud{opacity:.28}
@keyframes sfDrift{from{transform:translateX(-210px)}to{transform:translateX(560px)}}
@keyframes sfDrift2{from{transform:translateX(-390px)}to{transform:translateX(360px)}}
/* The season paints the scene (Nov 15, 2026, Graham). Summer wears
   the plain colors above; spring goes fresh green, fall goes gold
   and rust, and winter puts snow on the hills with a paler sky. */
.sf-scene[data-season="spring"][data-scene="day"] .sc-hill-b{fill:#b7dc9b}
.sf-scene[data-season="spring"][data-scene="day"] .sc-hill-f{fill:#2f7d4e}
.sf-scene[data-season="fall"][data-scene="day"] .sc-hill-b{fill:#d9a55e}
.sf-scene[data-season="fall"][data-scene="day"] .sc-hill-f{fill:#8a4b26}
.sf-scene[data-season="fall"][data-scene="dusk"] .sc-hill-b{fill:#b3814e}
.sf-scene[data-season="fall"][data-scene="dusk"] .sc-hill-f{fill:#5e3a20}
.sf-scene[data-season="winter"][data-scene="day"] .sc-sky{fill:#d9e8f2}
.sf-scene[data-season="winter"][data-scene="day"] .sc-hill-b{fill:#eef3f6}
.sf-scene[data-season="winter"][data-scene="day"] .sc-hill-f{fill:#d3e0e9}
.sf-scene[data-season="winter"][data-scene="day"] .sf-scene-cap{color:#274b63}
.sf-scene[data-season="winter"][data-scene="night"] .sc-hill-b{fill:#5a6c7c}
.sf-scene[data-season="winter"][data-scene="night"] .sc-hill-f{fill:#3c4c5a}
.sf-scene[data-season="winter"] .sc-cloud{fill:#e8eef3}
@media (prefers-reduced-motion: reduce){.sf-scene .sc-cloud{animation:none}}
.sf-scene .sc-hill-b{transition:fill .8s ease}
.sf-scene[data-scene="day"] .sc-hill-b{fill:#a9c6a4}
.sf-scene[data-scene="dusk"] .sc-hill-b{fill:#a08b74}
.sf-scene[data-scene="night"] .sc-hill-b{fill:#33503f}
.sf-scene .sc-hill-f{transition:fill .8s ease}
.sf-scene[data-scene="day"] .sc-hill-f{fill:#1f5c46}
.sf-scene[data-scene="dusk"] .sc-hill-f{fill:#274f3e}
.sf-scene[data-scene="night"] .sc-hill-f{fill:#16382a}
.sf-scene-cap{position:absolute;left:28px;bottom:20px;color:#fff}
.sf-scene-title{font-family:Georgia,'Times New Roman',serif;font-size:1.65rem;line-height:1.15;margin:0}
.sf-scene-sub{margin:6px 0 0;font-size:.92rem;opacity:.92}
.sf-scene-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:14px}
.sf-scene-note{margin:0;color:inherit;opacity:.75;font-size:.95rem}
.sf-scene-toggle{display:inline-flex;background:#e9f0e9;border-radius:999px;padding:4px;gap:2px}
html[data-theme="dark"] .sf-scene-toggle{background:#22302a}
.sf-scene-btn{border:0;background:transparent;padding:8px 16px;border-radius:999px;font:inherit;font-weight:600;cursor:pointer;color:inherit}
.sf-scene-btn[aria-pressed="true"]{background:#fff;box-shadow:0 2px 8px rgba(20,40,30,.18)}
html[data-theme="dark"] .sf-scene-btn[aria-pressed="true"]{background:#31453a;color:#eaf2ec}
.sf-spaces{margin-top:38px}
.top-why{max-width:44rem;margin:28px auto 0;text-align:center}
.top-why .tw-lead{font-size:clamp(1.5rem,4.6vw,2.05rem);font-weight:700;line-height:1.2;margin:0 0 12px}
.top-why p{line-height:1.6;margin:0 0 12px}
.top-why ul{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:10px;text-align:center}
.top-why li{line-height:1.55}
/* Loose home text follows the sky layer that is actually showing
   (Nov 14, 2026): the pale night flip keys off data-sf-sky (the clock),
   but the visible background is the scroll-story layer in view, and the
   two disagree around sunrise. site-features.js tracks the showing
   layer as data-ss-scene on <html>. When it is a light scene, the loose
   hero text goes dark; when it is night, the text goes pale. Cards keep
   their own colors. */
html[data-theme="light"][data-ss-scene="dawn"] body.welcome-page main .welcome :is(h1,h2,h3,p,li,strong,em,a,span),
html[data-theme="light"][data-ss-scene="dawn"] body.welcome-page main :is(.the-loop,.hope-next)>:is(h2,p),
html[data-theme="light"][data-ss-scene="dawn"] body.welcome-page main :is(.the-loop,.hope-next)>:is(h2,p) :is(strong,em,span),
html[data-theme="light"][data-ss-scene="day"] body.welcome-page main .welcome :is(h1,h2,h3,p,li,strong,em,a,span),
html[data-theme="light"][data-ss-scene="day"] body.welcome-page main :is(.the-loop,.hope-next)>:is(h2,p),
html[data-theme="light"][data-ss-scene="day"] body.welcome-page main :is(.the-loop,.hope-next)>:is(h2,p) :is(strong,em,span),
html[data-theme="light"][data-ss-scene="dusk"] body.welcome-page main .welcome :is(h1,h2,h3,p,li,strong,em,a,span),
html[data-theme="light"][data-ss-scene="dusk"] body.welcome-page main :is(.the-loop,.hope-next)>:is(h2,p),
html[data-theme="light"][data-ss-scene="dusk"] body.welcome-page main :is(.the-loop,.hope-next)>:is(h2,p) :is(strong,em,span)
{color:#22392e!important}
html[data-theme="light"][data-ss-scene="dawn"] body.welcome-page main #main-heading em,
html[data-theme="light"][data-ss-scene="day"] body.welcome-page main #main-heading em,
html[data-theme="light"][data-ss-scene="dusk"] body.welcome-page main #main-heading em
{color:#2e7d5f!important}
html[data-theme="light"][data-ss-scene="dawn"] body.welcome-page main .welcome h1,
html[data-theme="light"][data-ss-scene="day"] body.welcome-page main .welcome h1,
html[data-theme="light"][data-ss-scene="dusk"] body.welcome-page main .welcome h1
{text-shadow:none}
html[data-theme="light"][data-ss-scene="night"] body.welcome-page main .welcome :is(h1,h2,h3,p,li,strong,em,a,span),
html[data-theme="light"][data-ss-scene="night"] body.welcome-page main :is(.the-loop,.hope-next)>:is(h2,p),
html[data-theme="light"][data-ss-scene="night"] body.welcome-page main :is(.the-loop,.hope-next)>:is(h2,p) :is(strong,em,span)
{color:#e9f1ea!important}.sf-spaces-grid{display:grid;gap:18px;margin-top:20px}
.sf-space-card{display:block;background:#fffefb;border:1px solid rgba(30,60,45,.1);border-top:3px solid #8fb996;border-radius:20px;padding:24px 26px;text-decoration:none;color:inherit;box-shadow:0 4px 14px rgba(25,50,35,.06)}
html[data-theme="dark"] .sf-space-card{background:#1d2925;border-color:rgba(255,255,255,.08)}
.sf-space-card.sf-sp-move{border-top-color:#6fa08c}
.sf-space-card.sf-sp-reflect{border-top-color:#c2a878}
.sf-sp-top{display:flex;align-items:flex-start;justify-content:space-between}
.sf-sp-num{letter-spacing:.14em;font-size:.78rem;font-weight:700;opacity:.65}
.sf-sp-icon{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:13px;background:#eef4ee;color:#256d5a}
html[data-theme="dark"] .sf-sp-icon{background:#22302a;color:#9fc4ae}
.sf-sp-icon svg{width:25px;height:25px}
.sf-space-card h3{font-family:Georgia,'Times New Roman',serif;font-size:1.7rem;margin:14px 0 8px}
.sf-space-card p{margin:0 0 18px;opacity:.82}
.sf-sp-open{font-weight:700;color:#17573a}
html[data-theme="dark"] .sf-sp-open{color:#9fc4ae}
.sf-sp-open span{margin-left:6px}
.sf-scene-title{color:#fff}
.sf-scene-sub{color:rgba(255,255,255,.92)}

/* ---------- All the doors, home browse (Nov 13, 2026) ----------
   Graham's word: the actual doors at the bottom of the home page
   again, the way they were at the beginning - a wall of doors to go
   through, not the grouped plain list (Oct 30 / Nov 2, 2026). These
   rules restore the card layout for the one flat grid (.sf-alldoors)
   and leave every other .sf-doors use (switcher, minis) untouched. */
.sf-home-wrap .sf-doors.sf-alldoors{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:30px 18px;margin:28px 0 16px}
.sf-home-wrap .sf-alldoors .sf-door-link{flex:0 1 158px;max-width:158px;width:auto;background:transparent;border:none;border-top:none;border-radius:18px;box-shadow:none;padding:6px 4px 10px;overflow:visible;align-items:center;text-align:center}
.sf-home-wrap .sf-alldoors .sf-door-link:last-child{border-bottom:none}
.sf-home-wrap .sf-alldoors .sf-door-name{margin-top:13px;font-size:1.14rem;padding-left:0;padding-right:0}
.sf-home-wrap .sf-alldoors .sf-door-sub{padding-left:0;padding-right:0}

/* One color at the top of the home page (Nov 13, 2026, Graham's
   word): the sky band's own gradient painted a second, deeper tone
   under the header sky, with a hard seam between them. On the home
   page the band goes clear, so the page's sky runs in one color
   from the top of the page through the band. Other pages keep the
   band's gradient - there it sits at the very top, with nothing
   above it to clash. */
body.welcome-page .sf-skyband{background:transparent;border-bottom:none}

/* Nov 13, 2026 (v620, Graham's word): no sky band on the home page.
   The darker strip at the very top, with the "A little space" brand
   in it, is gone there; the day scene starts at the top of the page.
   Other pages keep their band. */
body.welcome-page .sf-skyband{display:none !important}

/* Nov 13, 2026 (v621, Graham's word + his screenshot): two home fixes.
   1) The brand bar itself goes: v620 hid the sky band under it, but
      the darker strip he meant is the page header with "A little
      space" in it (scroll-story.css paints it #16283f at night, a
      different blue from the scene). Hidden on the home page only.
   2) The three space cards could wash out: their text used the
      page's color (inherit) while the card stayed white, so on a
      phone in dark mode the words went pale on white. The card now
      carries its own colors in both modes, and the dark card also
      applies when dark comes only from the phone setting. */
body.welcome-page header.als-header{display:none !important}
.sf-space-card{color:#24382d}
html[data-theme="dark"] .sf-space-card{color:#eaf2ec}
@media (prefers-color-scheme: dark){
  html:not([data-theme="light"]) .sf-space-card{background:#1d2925;border-color:rgba(255,255,255,.08);color:#eaf2ec}
  html:not([data-theme="light"]) .sf-sp-icon{background:#22302a;color:#9fc4ae}
  html:not([data-theme="light"]) .sf-sp-open{color:#9fc4ae}
}

/* Top news bar (Nov 14, 2026, Graham's ask): a slim bar fixed at
   the top of every page, one headline at a time from /api/news,
   checked every minute while the page is open. The page makes
   room for it with top padding, the same way the app tabs make
   room at the bottom, so the bar never covers the words under
   it. Under reduced motion the headline change is instant
   (the .sf-news-still class), and there is no scrolling text
   at any setting. Z-index sits above page content and the app
   tabs, below the site's full-screen overlays. */
.sf-newsbar{position:fixed;top:0;left:0;right:0;z-index:200;display:flex;align-items:center;gap:10px;
  height:40px;padding:0 14px;background:#21362d;color:#eef4ee;font-size:.92rem;line-height:1.3;
  box-shadow:0 2px 10px rgba(10,25,15,.25)}
html[data-theme="dark"] .sf-newsbar{background:#0e1a13}
.sf-newsbar[hidden]{display:none}
.sf-news-label{flex:none;font-weight:800;letter-spacing:.08em;text-transform:uppercase;font-size:.72rem;color:#f0c987}
.sf-news-label.sf-news-breaking{color:#ff9d7a}
.sf-news-head{flex:1;min-width:0;color:inherit;text-decoration:none;white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;transition:opacity .25s ease;padding:2px 0}
.sf-news-head:hover{text-decoration:underline}
.sf-news-head.sf-news-fade{opacity:0}
.sf-news-still .sf-news-head{transition:none}
.sf-news-paper{flex:none;color:#cfe0d4;text-decoration:none;font-weight:700;font-size:.85rem;padding:2px 0}
.sf-news-paper:hover{text-decoration:underline}
html.sf-news-on body{padding-top:40px}
@media (max-width:640px){
  .sf-newsbar{font-size:.87rem;padding:0 10px;gap:8px}
}
@media (prefers-reduced-motion: reduce){
  .sf-news-head{transition:none}
}

/* Night sky pairing fix (Nov 15, 2026, Graham's screenshot): after
   dark the sky rules paint the home cards dark and their words pale,
   but three surfaces only ever darkened with the saved theme. With a
   light theme saved, the scene switch stayed a pale pill with white
   words, the tool icons stayed pale boxes with white icons, and the
   crisis lines sat white on the cream footer. They take the same
   dark pairing the night cards already use. */
html.ss-bg-on[data-sf-sky="night"] .sf-scene-toggle{background:#22302a}
html.ss-bg-on[data-sf-sky="night"] .sf-scene-btn{color:#eaf2ec}
html.ss-bg-on[data-sf-sky="night"] .sf-scene-btn[aria-pressed="true"]{background:#31453a;color:#eaf2ec}
html.ss-bg-on[data-sf-sky="night"] .sf-sp-icon{background:#22302a;color:#9fc4ae}
html.ss-bg-on[data-sf-sky="night"] .sf-crisis{background:#1e2c25;border-radius:10px;padding:6px 10px}
