/* stabilizedflowstate.com · _house/finish.css · v1 · 2026-12-01
   The C finish: presentation only, no words. Loaded after each page's own styles.
   1 house navy everywhere   2 logo plate   3 sunken wells and troughs
   4 HUD frames around screenshots   5 full screenshots on the gallery cards
   6 the tall ground on phones */

/* 1 ─ one navy, the lesson animations' floor, under the whole site ─────────── */
:root{--r-page:#01070C;--r-raised:#01070C;--r-paper:#01070C;--r-paper-2:#01070C;--r-overlay:rgba(1,7,12,.92);
 --hud:#9FDFE7;--hud-dim:rgba(159,223,231,.26);--glow:rgba(111,227,214,.22);
 --well:#00040A;--well-edge:rgba(159,223,231,.08);
 --well-shadow:inset 0 3px 9px rgba(0,0,0,.9),inset 0 1px 2px rgba(0,0,0,.85),inset 0 -1px 0 rgba(159,223,231,.07);
 --trough:inset 0 18px 26px -18px rgba(0,0,0,.95),inset 0 -18px 26px -18px rgba(0,0,0,.95)}
html,body{background:#01070C}
html body :is(.sfs-training,.sfs-site-header){background-color:#01070C}

/* 2 ─ the logo gets its own lit plate in the header ─────────────────────────── */
html body .sfs-site-header{border-bottom:1px solid rgba(159,223,231,.10);box-shadow:0 10px 24px -12px rgba(0,0,0,.9)}
html body .sfs-site-header .ssh-brand{padding:7px 18px 7px 7px;background:linear-gradient(180deg,#0C1B22,#061118);border:1px solid rgba(111,227,214,.24);box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 6px 16px rgba(0,0,0,.65)}
html body .sfs-site-header .ssh-brand img{width:54px !important;height:54px !important;padding:3px;object-fit:contain !important;border-radius:50% !important;
 background:radial-gradient(circle at 50% 38%,#FFFFFF 0,#E4EEEC 62%,#C9DBD8 100%);
 box-shadow:0 0 0 2px rgba(111,227,214,.65),0 0 0 6px rgba(111,227,214,.10),0 0 22px rgba(111,227,214,.38)}

/* 3 ─ sunken: wells for panels, troughs for bands ───────────────────────────── */
html body :is(.card,.start-form,main aside,.vid .vposter){background-color:var(--well) !important;border:1px solid var(--well-edge) !important;box-shadow:var(--well-shadow) !important}
html body .card .body{background:transparent}
html body input:not([type=checkbox]):not([type=radio]){background:var(--well) !important;border:1px solid rgba(159,223,231,.16) !important;box-shadow:var(--well-shadow) !important;color:#F2F6F5}
html body :is(.paper,.tr-paths,.ast-paper,.book-footer,.ast-footer){box-shadow:var(--trough)}
html body :is(.paper,.tr-paths,.ast-paper){background-color:#00040A !important}
html body .ts-strips a{background:var(--well);border:1px solid var(--well-edge);box-shadow:var(--well-shadow);padding:6px}
html body .ts-strips a img{box-shadow:0 0 0 1px rgba(159,223,231,.10)}
html body .ts-strips li[aria-current=true] a{border-color:rgba(111,227,214,.7);box-shadow:var(--well-shadow),0 0 0 1px rgba(111,227,214,.55),0 0 16px rgba(111,227,214,.22)}
html body .tr-button:not(.tr-primary),html body .ssh-button:not([aria-current]){box-shadow:inset 0 2px 5px rgba(0,0,0,.7),inset 0 -1px 0 rgba(159,223,231,.08)}

/* 4a ─ HUD frame around every Muse screenshot ────────────────────────────────── */
html body .sfs-shot{position:relative;isolation:isolate;margin:0;padding:16px 16px 12px;border:1px solid rgba(159,223,231,.12) !important;background:
 radial-gradient(60% 46% at 50% 40%,var(--glow),transparent 74%),
 linear-gradient(rgba(45,147,206,.07) 1px,transparent 1px) 0 0/16px 16px,
 linear-gradient(90deg,rgba(45,147,206,.07) 1px,transparent 1px) 0 0/16px 16px,
 linear-gradient(rgba(45,147,206,.12) 1px,transparent 1px) 0 0/64px 64px,
 linear-gradient(90deg,rgba(45,147,206,.12) 1px,transparent 1px) 0 0/64px 64px,#01070C !important;box-shadow:var(--well-shadow) !important}
html body .sfs-shot::before{content:'';position:absolute;inset:6px;pointer-events:none;z-index:2;opacity:.8;background:
 linear-gradient(var(--hud),var(--hud)) top left/14px 1.5px,linear-gradient(var(--hud),var(--hud)) top left/1.5px 14px,
 linear-gradient(var(--hud),var(--hud)) top right/14px 1.5px,linear-gradient(var(--hud),var(--hud)) top right/1.5px 14px,
 linear-gradient(var(--hud),var(--hud)) bottom left/14px 1.5px,linear-gradient(var(--hud),var(--hud)) bottom left/1.5px 14px,
 linear-gradient(var(--hud),var(--hud)) bottom right/14px 1.5px,linear-gradient(var(--hud),var(--hud)) bottom right/1.5px 14px;background-repeat:no-repeat}
html body .sfs-shot img{display:block;width:100%;height:auto;border:4px solid #0A0F13 !important;border-radius:14px !important;
 box-shadow:0 0 0 1px #26323B,0 16px 26px rgba(0,0,0,.65),0 0 20px rgba(111,227,214,.14)}
html body .sfs-shot a{display:block;border-radius:14px}
html body .sfs-shot figcaption{color:inherit}
html body .card .thumb.sfs-shot{border:0 !important;border-bottom:1px solid var(--well-edge) !important}
html body button.zoom.sfs-shot{cursor:zoom-in}

/* 4b ─ the app preview, cut out and floating in its frame ───────────────────── */
.sfs-device{position:relative;isolation:isolate;justify-self:center;width:min(100%,360px);margin:0;padding:clamp(26px,4vw,40px) clamp(30px,5vw,52px) 40px;border:1px solid rgba(159,223,231,.12);box-shadow:var(--well-shadow);background:
 radial-gradient(58% 46% at 50% 44%,var(--glow),transparent 72%),
 linear-gradient(rgba(45,147,206,.07) 1px,transparent 1px) 0 0/22px 22px,
 linear-gradient(90deg,rgba(45,147,206,.07) 1px,transparent 1px) 0 0/22px 22px,
 linear-gradient(rgba(45,147,206,.13) 1px,transparent 1px) 0 0/88px 88px,
 linear-gradient(90deg,rgba(45,147,206,.13) 1px,transparent 1px) 0 0/88px 88px,#01070C}
.sfs-device::before{content:'';position:absolute;inset:10px;pointer-events:none;opacity:.85;background:
 linear-gradient(var(--hud),var(--hud)) top left/24px 2px,linear-gradient(var(--hud),var(--hud)) top left/2px 24px,
 linear-gradient(var(--hud),var(--hud)) top right/24px 2px,linear-gradient(var(--hud),var(--hud)) top right/2px 24px,
 linear-gradient(var(--hud),var(--hud)) bottom left/24px 2px,linear-gradient(var(--hud),var(--hud)) bottom left/2px 24px,
 linear-gradient(var(--hud),var(--hud)) bottom right/24px 2px,linear-gradient(var(--hud),var(--hud)) bottom right/2px 24px;background-repeat:no-repeat}
.sfs-device::after{content:'';position:absolute;left:18%;right:18%;bottom:74px;height:28px;z-index:-1;border-radius:50%;background:radial-gradient(closest-side,rgba(111,227,214,.35),transparent);filter:blur(8px)}
html body .sfs-device img{display:block;width:100%;height:auto;border-radius:0 !important;filter:drop-shadow(0 26px 30px rgba(0,0,0,.65)) drop-shadow(0 0 22px rgba(111,227,214,.16));animation:sfs-float 7s ease-in-out infinite}
html body .sfs-device figcaption{display:flex;align-items:center;gap:10px;margin-top:22px;padding-top:10px;border-top:1px solid var(--hud-dim);color:var(--hud) !important;font-size:.72rem !important;letter-spacing:.14em;text-transform:uppercase;line-height:1.3}
.sfs-device figcaption::before{content:'';flex:none;width:7px;height:7px;border-radius:50%;background:#6FE3D6;box-shadow:0 0 10px #6FE3D6}
@keyframes sfs-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}

/* 5 ─ gallery cards show the whole screenshot, trace included ───────────────── */
html body .sfs-training .card .thumb{aspect-ratio:auto !important;height:auto !important;overflow:visible}
html body .sfs-training .card .thumb img{height:auto !important;object-fit:initial !important}

/* 6 ─ phones get the tall ground, so the ruler stays clear of the headline ─── */
@media(max-width:760px){
 html body :is(.sfs-training main > :is(section,div):first-of-type,.book-hero,.start-hero,.ast-hero)::before{background-image:url('/_house/band-tall.webp');background-position:center top}
 html body .sfs-site-header .ssh-brand{padding:5px 14px 5px 5px}
 html body .sfs-site-header .ssh-brand img{width:46px !important;height:46px !important}
}
@media(prefers-reduced-motion:reduce){html body .sfs-device img{animation:none}}
html body .start-dojo .sfs-device{width:min(100%,250px);padding:22px 26px 28px}
html body .start-dojo .sfs-device::after{bottom:30px}
@media(max-width:760px){
 html body .sfs-training .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 html body .sfs-training .card .body{padding:10px 10px 14px}
 html body .sfs-training .card h3{font-size:1rem}
 html body .sfs-training .card p,html body .sfs-training .card a{font-size:.85rem}
 html body .card .thumb.sfs-shot{padding:10px 10px 8px}
}
/* 2b ─ the wordmark, set from the book cover title (Playfair Display) ───────── */
html body .sfs-site-header .ssh-brand{gap:14px;align-items:center}
html body .sfs-site-header .ssh-brand img.ssh-wordmark{width:auto !important;height:56px !important;padding:0;border-radius:0 !important;background:none;box-shadow:none;filter:drop-shadow(0 1px 0 rgba(0,0,0,.6))}
@media(max-width:760px){html body .sfs-site-header .ssh-brand img.ssh-wordmark{height:44px !important}}
