/* ===== SITE FRAME =====
   One file for the nav and the page frame around the Lab's pieces, so they
   stay in step with the homepage and the game pages.
   - nav.site works on any page.
   - The frame (title, rule, bordered stage, footer strip, About) applies on
     pages whose <body> has class "sf".
   - .frame takes its shape from --ratio; .frame.tall has no fixed shape and
     fills the height the screen has left. */
@font-face{font-family:"Seam Display";font-style:italic;font-weight:400;font-display:swap;src:url(/assets/fonts/SeamDisplay-Italic.woff2) format("woff2")}
@font-face{font-family:"Seam Display";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/SeamDisplay-Regular.woff2) format("woff2")}
@font-face{font-family:"Seam System";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/SeamSystem-Regular.woff2) format("woff2")}
@font-face{font-family:"Seam Text";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/SeamText-Regular.woff2) format("woff2")}
@font-face{font-family:"Seam Text";font-style:italic;font-weight:400;font-display:swap;src:url(/assets/fonts/SeamText-Italic.woff2) format("woff2")}
:root{--sf-bg:#090c16;--sf-bg-mid:#0d1120;--sf-text:#f2efe9;--sf-text-2:#b8b3a8;--sf-muted:#8a8578;--sf-gilt:#c9a86a;--sf-hair:rgba(201,168,106,.26);--sf-hair-soft:rgba(201,168,106,.11);--sf-nav-h:78px;
  --sf-display:"Seam Display",Georgia,serif;--sf-serif:"Seam Text",Georgia,serif;--sf-mono:"Seam System","JetBrains Mono",ui-monospace,Menlo,monospace}

/* ---- nav, as on the homepage ---- */
nav.site{position:sticky;top:0;z-index:120;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:20px 24px;min-height:var(--sf-nav-h);height:auto;border-bottom:1px solid var(--sf-hair-soft);background:rgba(9,12,22,.78);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);text-align:left}
nav.site .logo{font-family:"Seam Text",Georgia,serif;font-style:italic;font-weight:400;font-size:23px;line-height:1.6;letter-spacing:0;text-decoration:none;white-space:nowrap;color:var(--sf-text)}
nav.site .links{display:flex;gap:22px;align-items:center}
nav.site .links a{font-family:"JetBrains Mono","Seam System",monospace;font-size:10px;font-weight:400;line-height:1.6;letter-spacing:.16em;text-transform:uppercase;color:var(--sf-text-2);text-decoration:none;transition:color .2s}
nav.site .links a:hover{color:var(--sf-gilt)}
@media(max-width:560px){nav.site .links{gap:14px}nav.site .links a{font-size:9px;letter-spacing:.12em}}
@media(max-width:480px){nav.site .links a[href*="cindysingularity"]{display:none}}

/* ---- page frame ---- */
body.sf{margin:0;min-height:100%;background:radial-gradient(120% 80% at 50% 0%,var(--sf-bg-mid),var(--sf-bg) 62%);color:var(--sf-text);overflow-x:hidden}
html:has(body.sf){background:var(--sf-bg)}
.sf .mono{font-family:var(--sf-mono);text-transform:uppercase;letter-spacing:.18em;font-size:10px}
.sf .page{position:relative;min-height:calc(100svh - var(--sf-nav-h));display:flex;flex-direction:column;align-items:center;justify-content:center;padding:clamp(18px,3vh,36px) 20px clamp(18px,3vh,30px)}
.sf .top,.sf .frame,.sf .bottom{position:relative;z-index:1}
.sf .top{text-align:center;margin-bottom:clamp(14px,2.2vh,22px)}
.sf .top .by{color:var(--sf-gilt);opacity:.82}
.sf .top h1,.sf .top .sf-title{margin:8px 0 0;font-family:var(--sf-display);font-style:italic;font-weight:400;font-size:clamp(32px,5vh,54px);line-height:1;letter-spacing:-.005em;color:var(--sf-text)}
.sf .rule{width:min(320px,66vw);height:1px;margin:clamp(11px,1.6vh,15px) auto 0;background:linear-gradient(90deg,transparent,rgba(201,168,106,.7) 30%,rgba(201,168,106,.7) 70%,transparent)}
.sf .frame{--ratio:16/9;--chrome:clamp(226px, 134px + 13vh, 278px);width:min(92vw,calc((100svh - var(--sf-nav-h) - var(--chrome)) * var(--ratio)),1500px);min-width:min(92vw,320px);aspect-ratio:var(--ratio);padding:7px;border:1px solid var(--sf-hair);border-radius:3px}
.sf .frame.tall{width:min(92vw,1500px);aspect-ratio:auto;height:max(440px,calc(100svh - var(--sf-nav-h) - var(--chrome)))}
.sf .frame::before{content:"";position:absolute;inset:3px;border:1px solid var(--sf-hair-soft);border-radius:2px;pointer-events:none}
/* transform makes this box the frame of reference for fixed layers inside the piece */
.sf .viewport{position:relative;width:100%;height:100%;overflow:hidden;border-radius:1px;background:#050308;transform:translateZ(0)}
.sf .bottom{max-width:92vw;display:flex;align-items:center;justify-content:center;gap:12px clamp(14px,1.8vw,24px);margin-top:clamp(14px,2.2vh,22px);flex-wrap:wrap}
.sf .sep{width:3px;height:3px;border-radius:50%;background:rgba(201,168,106,.45)}
.sf .mid{color:var(--sf-muted);text-align:center}
.sf .mid a,.sf .sound-toggle{color:var(--sf-text-2);text-decoration:none;border:0;border-bottom:1px solid var(--sf-hair-soft);padding:0 0 3px;background:none;cursor:pointer;transition:color .3s,border-color .3s}
.sf .mid a:hover,.sf .sound-toggle:hover{color:var(--sf-gilt);border-color:var(--sf-hair)}
.sf .sound-toggle.muted{color:var(--sf-muted)}
.sf .full{appearance:none;background:#0a0d18;color:var(--sf-gilt);border:1px solid var(--sf-hair);border-radius:2px;padding:9px 16px;cursor:pointer;transition:background .3s,border-color .3s}
.sf .full:hover{background:#15151a;border-color:rgba(201,168,106,.55)}
.sf .frame:fullscreen{width:100vw;height:100vh;aspect-ratio:auto;padding:0;border:0;border-radius:0;background:#000;display:flex;align-items:center;justify-content:center}
.sf .frame:fullscreen::before{display:none}
.sf .frame:fullscreen .viewport{width:min(100vw,calc(100vh * var(--ratio)));height:min(100vh,calc(100vw / (var(--ratio))));border-radius:0}
.sf .frame.tall:fullscreen .viewport{width:100vw;height:100vh}
.sf .frame:-webkit-full-screen{width:100vw;height:100vh;aspect-ratio:auto;padding:0;border:0;border-radius:0;background:#000;display:flex;align-items:center;justify-content:center}
.sf .frame:-webkit-full-screen .viewport{width:min(100vw,calc(100vh * var(--ratio)));height:min(100vh,calc(100vw / (var(--ratio))));border-radius:0}
.sf .frame.tall:-webkit-full-screen .viewport{width:100vw;height:100vh}
@media(max-width:640px){.sf .sep{display:none}.sf .frame{padding:5px}.sf .bottom{gap:14px 22px}}
/* Phones. A piece with a fixed shape fills the screen when the phone is turned
   sideways; a tall piece takes the whole screen height upright. */
.sf .turn{display:none;color:var(--sf-muted);text-align:center;flex-basis:100%}
.phone .sf .full{display:none}
.phone .sf .turn{display:block}
@media(max-width:640px){.sf .page:has(.frame.tall){padding-left:8px;padding-right:8px}.sf .frame.tall{width:calc(100vw - 16px);height:calc(100svh - 16px)}}
@media (orientation:landscape){
html.phone:has(.frame:not(.tall)),html.phone:has(.frame:not(.tall)) body{height:100%;overflow:hidden;background:#000}
.phone .sf:has(.frame:not(.tall)) nav.site,.phone .sf:has(.frame:not(.tall)) .top,.phone .sf:has(.frame:not(.tall)) .bottom,.phone .sf:has(.frame:not(.tall)) .about{display:none}
.phone .sf .page:has(.frame:not(.tall)){min-height:0;height:100dvh;padding:0}
.phone .sf .frame:not(.tall){position:fixed;inset:0;z-index:5;width:100vw;min-width:0;height:100dvh;aspect-ratio:auto;padding:0;border:0;border-radius:0;background:#000;display:flex;align-items:center;justify-content:center}
.phone .sf .frame:not(.tall)::before{display:none}
.phone .sf .frame:not(.tall) .viewport{width:min(100vw,calc(100dvh * var(--ratio)));height:min(100dvh,calc(100vw / (var(--ratio))));border-radius:0}
}
/* ---- About the piece: plain text under the fold ---- */
.sf .about{position:relative;z-index:1;max-width:980px;margin:0 auto;padding:clamp(56px,9vh,96px) 24px clamp(64px,10vh,110px)}
.sf .about::before{content:"";display:block;height:1px;margin-bottom:clamp(36px,6vh,56px);background:linear-gradient(90deg,rgba(201,168,106,0),rgba(201,168,106,.5) 30%,rgba(201,168,106,.5) 70%,rgba(201,168,106,0))}
.sf .about .cols{display:grid;grid-template-columns:1.25fr .75fr;gap:clamp(32px,6vw,84px);align-items:start}
.sf .about h2{margin:0 0 20px;font-family:var(--sf-display);font-style:italic;font-weight:400;font-size:clamp(28px,3.4vw,38px);line-height:1.05;color:var(--sf-text)}
.sf .about p{margin:0 0 15px;font-family:var(--sf-serif);font-size:17.5px;line-height:1.62;color:var(--sf-text-2);max-width:46ch}
.sf .about p.plain{margin-top:24px;color:var(--sf-muted);font-size:15.5px}
.sf .about dl{margin:6px 0 0;padding:0}
.sf .about .row{padding:13px 0;border-top:1px solid rgba(201,168,106,.13)}
.sf .about .row:last-child{border-bottom:1px solid rgba(201,168,106,.13)}
.sf .about dt{font-family:var(--sf-mono);text-transform:uppercase;letter-spacing:.18em;font-size:9.5px;color:var(--sf-muted)}
.sf .about dd{margin:5px 0 0;font-family:var(--sf-serif);font-size:16px;color:var(--sf-text)}
.sf .about .more{margin-top:clamp(40px,7vh,64px);text-align:center}
.sf .about .more .lab{font-family:var(--sf-mono);text-transform:uppercase;letter-spacing:.18em;font-size:9.5px;color:var(--sf-gilt);opacity:.85}
.sf .about .more ul{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:10px 30px}
.sf .about .more a{font-family:var(--sf-display);font-style:italic;font-size:22px;color:var(--sf-text);text-decoration:none;border-bottom:1px solid rgba(201,168,106,.3);padding-bottom:2px}
@media(max-width:760px){.sf .about .cols{grid-template-columns:1fr}.sf .about p{font-size:16.5px}}
