/* Afena Afotu — full-screen hero versions. One stage, eight layouts set by body[data-layout]. */
:root{
  --cream:#f1f0e9; --dark:#1d1210; --rust:#a34426;
  --bg:var(--cream); --ink:var(--dark); --inv:var(--cream); --chrome:var(--dark);
  --blockc:var(--rust);
  --mx:0; --my:0;
  /* block: centre + size */
  --bx:50vw; --by:50vh; --bw:44vw; --bh:72vh; --br:0px;
  /* title: centre, limits (unitless vw / vh), gap between words */
  --tx:50vw; --ty:52vh; --gap:.85em; --lh:.84;
  /* figure box */
  --fx:50vw; --fb:5vh; --fw:60vw; --fh:86vh;
  --tfont:'Bowlby One SC',serif; --tweight:400; --tls:0em; --tstretch:100%; --tcase:uppercase;
}
*{box-sizing:border-box;margin:0}
html,body{height:100%;overflow:hidden;background:var(--bg);color:var(--ink);
  font-family:Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
body{transition:background .6s ease,color .6s ease}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}

.stage{position:fixed;inset:0;overflow:hidden;perspective:1400px;
  transform:rotateY(calc(var(--mx)*.9deg)) rotateX(calc(var(--my)*-.9deg));transform-origin:50% 50%}
.layer{position:absolute;translate:calc(var(--mx)*var(--d)*-1px) calc(var(--my)*var(--d)*-1px);will-change:translate}

/* rectangle in the back; the films play inside it */
.block{left:var(--bx);top:var(--by);width:var(--bw);height:var(--bh);transform:translate(-50%,-50%);
  background:var(--blockc);border-radius:var(--br);overflow:hidden;
  transition:left .8s cubic-bezier(.7,0,.2,1),top .8s cubic-bezier(.7,0,.2,1),width .8s cubic-bezier(.7,0,.2,1),height .8s cubic-bezier(.7,0,.2,1),border-radius .8s,background .6s}
.block::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(120% 90% at 40% 40%,rgba(255,255,255,.09),transparent 60%)}
.block video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .5s .25s}
.playing .block video{opacity:1}

/* title: four copies share one geometry */
.title{left:var(--tx);top:var(--ty);transform:translate(-50%,-50%);white-space:nowrap;
  font-family:var(--tfont);font-weight:var(--tweight);font-stretch:var(--tstretch);font-size:var(--fs,12vw);
  line-height:var(--lh);letter-spacing:var(--tls);text-transform:var(--tcase);color:var(--ink);
  display:flex;gap:var(--gap);pointer-events:none;transition:opacity .45s,color .6s;font-optical-sizing:auto}
.stack .title{flex-direction:column;gap:0;align-items:var(--talign,flex-start)}
.t-inv,.t-front-inv{color:var(--inv)}
.t-front .w1{visibility:hidden}
.front-all .t-front .w1{visibility:visible}
body:not(.no-front):not(.outline-front) .t-back .w2,body:not(.no-front):not(.outline-front) .t-inv .w2{visibility:hidden}
.front-all .t-back,.front-all .t-inv{visibility:hidden}
.outline-front .t-front{--d:10 !important}
.no-front .t-front,.no-inv .t-inv,.no-inv .t-front-inv{display:none}
.outline-front .t-front{color:transparent;-webkit-text-stroke:max(1.5px,.012em) var(--inv)}
.outline-front .t-front.clip-out{display:none}
.playing .t-inv,.playing .t-front,.playing .figure,.playing .eyebrow,.playing .sub{opacity:0}

.figure{left:var(--fx);bottom:var(--fb);width:var(--fw);height:var(--fh);transform:translateX(-50%);
  transition:opacity .45s,scale .6s,left .8s cubic-bezier(.7,0,.2,1),bottom .8s cubic-bezier(.7,0,.2,1),height .8s cubic-bezier(.7,0,.2,1);pointer-events:none}
.figure img{width:100%;height:100%;object-fit:contain;object-position:50% 100%;
  filter:var(--ffilter,drop-shadow(0 2.2vh 2.4vh rgba(20,8,4,.28)));transition:opacity .3s}
.playing .figure{scale:.96}

.eyebrow,.sub{font-size:clamp(11px,.95vw,15px);font-weight:600;letter-spacing:.02em;white-space:nowrap;transition:opacity .4s}
.eyebrow{left:var(--ex,22vw);top:var(--ey,41vh)}
.sub{left:var(--sx,70vw);top:var(--sy,62vh)}
.sub::before,.sub::after{content:"〃";opacity:.7;margin:0 .5em;font-size:.8em}
.index,.side,.extra,.thumbs{display:none}
.index{font-family:var(--tfont);font-weight:var(--tweight);font-stretch:var(--tstretch);font-size:11vh;line-height:1}
.side{writing-mode:vertical-rl;font-size:12px;letter-spacing:.3em;text-transform:uppercase;font-weight:600}

/* glyphs */
.glyphs{inset:0;pointer-events:none}
.glyphs .g{position:absolute;display:grid;place-items:center;width:var(--gs,3.4vw);height:var(--gs,3.4vw);
  transform:translate(-50%,-50%);border-radius:50%;background:var(--gdisc,rgba(29,18,16,.055));
  color:var(--gink,rgba(29,18,16,.42));font-size:calc(var(--gs,3.4vw)*.5);line-height:1}
.glyphs svg{width:58%;height:58%;fill:currentColor}
.glyphs .g b{width:64%;height:64%;background:currentColor;-webkit-mask:var(--m) center/contain no-repeat;mask:var(--m) center/contain no-repeat}
.playing .glyphs{opacity:.35}
.glyphs{transition:opacity .5s}

/* chrome */
.chrome{position:fixed;left:3vw;right:3vw;display:flex;align-items:center;justify-content:space-between;color:var(--chrome);z-index:20;transition:color .6s}
.chrome.top{top:0;height:64px;border-bottom:1px solid color-mix(in srgb,var(--chrome) 28%,transparent)}
.chrome.bottom{bottom:0;height:64px;border-top:1px solid color-mix(in srgb,var(--chrome) 28%,transparent)}
.mast{font-family:'Bodoni Moda',serif;font-weight:700;font-size:21px;letter-spacing:.02em}
.icon{width:40px;height:40px;display:grid;place-items:center;border-radius:50%}
.icon:hover,.play:hover{background:color-mix(in srgb,var(--chrome) 12%,transparent)}
.icon svg,.play svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5}
.ks{height:15px}
.controls{display:flex;align-items:center;gap:6px;font-weight:600;font-size:14px}
.count{min-width:54px;text-align:center}
.play{display:flex;align-items:center;gap:8px;height:40px;padding:0 16px 0 12px;margin-left:14px;border-radius:20px;
  border:1px solid color-mix(in srgb,var(--chrome) 45%,transparent)}
.play svg{fill:currentColor;stroke:none}
.play .p2,.playing .play .p1{display:none}
.playing .play .p2{display:block}

/* films strip: every film has its own play button */
.thumbs{position:absolute;left:0;right:0;bottom:78px;justify-content:center;gap:10px;z-index:15}
.playing .thumbs{display:flex}
.thumbs button{height:8.5vh;aspect-ratio:16/9;background:#000 center/cover;border:1px solid rgba(255,255,255,.35);position:relative;transition:transform .2s;overflow:hidden}
.thumbs button::before{content:"";position:absolute;inset:0;background:rgba(10,6,5,.38);transition:background .2s}
.thumbs button:hover{transform:translateY(-4px)}
.thumbs button:hover::before,.thumbs button[aria-current=true]::before{background:rgba(10,6,5,.08)}
.thumbs button[aria-current=true]{outline:2px solid var(--chrome);outline-offset:2px}
.thumbs span{position:absolute;left:6px;bottom:4px;font-size:10px;font-weight:600;color:#fff;text-shadow:0 1px 3px #000}
.thumbs svg{position:absolute;left:50%;top:46%;width:30%;max-width:26px;aspect-ratio:1;transform:translate(-50%,-50%);fill:#fff;filter:drop-shadow(0 1px 4px rgba(0,0,0,.7))}
.thumbs .p2,.thumbs button.on .p1{display:none}
.thumbs button.on .p2{display:block}
.thumbs .close{aspect-ratio:1;background:none;border-color:color-mix(in srgb,var(--chrome) 45%,transparent);color:var(--chrome)}
.thumbs .close::before{display:none}
.thumbs .close svg{fill:none;stroke:currentColor;stroke-width:1.6;filter:none;top:50%}
[data-layout="6"] .thumbs .close,.playing .play,[data-layout="6"] .play{display:none}

/* gradual blur where type sits over a film */
.veil{position:absolute;inset:0;pointer-events:none;display:none;backdrop-filter:blur(16px) saturate(.9);-webkit-backdrop-filter:blur(16px) saturate(.9)}
.vt{-webkit-mask:linear-gradient(to bottom,#000 0,#000 10%,transparent 26%);mask:linear-gradient(to bottom,#000 0,#000 10%,transparent 26%)}
.vl{-webkit-mask:linear-gradient(to right,#000 0,#000 34%,transparent 60%);mask:linear-gradient(to right,#000 0,#000 34%,transparent 60%)}
[data-layout="6"] .veil{display:block}

/* menu drawer (content from the ChatGPT version) */
.scrim{position:fixed;inset:0;background:rgba(10,6,5,.45);opacity:0;pointer-events:none;transition:opacity .4s;z-index:40}
.drawer{position:fixed;left:0;top:0;bottom:0;width:min(520px,92vw);background:#141010;color:var(--cream);z-index:41;
  transform:translateX(-102%);transition:transform .55s cubic-bezier(.7,0,.2,1);display:flex;flex-direction:column;padding:0 3vw 3vh}
.menu-open .drawer{transform:none}.menu-open .scrim{opacity:1;pointer-events:auto}
.drawer header{height:64px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(241,240,233,.25);
  font-size:12px;letter-spacing:.14em;text-transform:uppercase;font-weight:600;flex:none}
.drawer nav{flex:1;display:flex;flex-direction:column;justify-content:space-between;padding-top:2.5vh;min-height:0}
.drawer a,.drawer .soon{display:grid;grid-template-columns:2.6em 1fr;align-items:baseline;color:inherit;text-decoration:none;
  border-bottom:1px solid rgba(241,240,233,.12);padding:.5vh 0;transition:padding .25s,color .25s}
.drawer i{font-style:normal;font-size:11px;opacity:.5;font-weight:600}
.drawer b{font-family:var(--tfont);font-weight:var(--tweight);font-stretch:var(--tstretch);text-transform:uppercase;font-size:min(5.4vh,44px);line-height:1}
.drawer small{grid-column:2;font-size:12px;opacity:.6;margin-top:.3vh}
.drawer a:hover{padding-left:14px;color:#e9a13b}
.drawer a[aria-current]{color:#e9a13b}
.drawer .soon{opacity:.45}

/* version picker: a small tab on the right edge, opens on click (V) */
.lab{position:fixed;right:0;top:50%;transform:translateY(-50%);z-index:30;display:flex;align-items:center;font-size:12px;color:#f1f0e9}
.labtab{writing-mode:vertical-rl;background:rgba(20,14,12,.78);color:#f1f0e9;padding:12px 5px;border-radius:8px 0 0 8px;font-size:10px;font-weight:600;letter-spacing:.12em;opacity:.55;transition:opacity .2s}
.labtab:hover,.lab.open .labtab{opacity:1}
.labpanel{display:none;background:rgba(20,14,12,.9);backdrop-filter:blur(10px);border-radius:12px 0 0 12px;padding:12px;gap:8px;width:230px;order:-1;margin-right:2px}
.lab.open .labpanel{display:grid}
.lab .row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.lab b{font-weight:600;opacity:.55;text-transform:uppercase;letter-spacing:.08em;font-size:10px;width:100%}
.labpanel button{padding:4px 9px;border-radius:8px;background:rgba(255,255,255,.1)}
.labpanel button:hover{background:rgba(255,255,255,.22)}
.lab .pills{display:grid;grid-template-columns:1fr 1fr;gap:4px;width:100%}
.lab .pills button{text-align:left}
.lab .pills button[aria-current=true]{background:#f1f0e9;color:#1d1210}
.lab .row span{flex:1;text-align:center}
.lab.hidden{display:none}

/* ---------- film mode: the rectangle becomes the screen ---------- */
.playing{--bx:50vw !important;--by:45vh !important;--bw:var(--pw) !important;--bh:var(--ph) !important;--br:0px !important}

/* ---------- 1 Poster: your rectangle, title threads behind and in front ---------- */
[data-layout="1"]{--tw:94;--th:30}

/* ---------- 2 Full bleed: the rectangle is the whole screen ---------- */
[data-layout="2"]{--bg:var(--blockc);--bw:100vw;--bh:100vh;--chrome:var(--cream);--inv:var(--cream);
  --tw:90;--th:74;--ty:50vh;--fh:90vh;--fb:2vh;--gink:rgba(241,240,233,.5);--gdisc:rgba(241,240,233,.09);--talign:center;--lh:.86}
[data-layout="2"] .eyebrow{--ex:6vw;--ey:14vh;color:var(--cream)}
[data-layout="2"] .sub{--sx:76vw;--sy:84vh;color:var(--cream)}

/* ---------- 3 Sun: a disc instead of a rectangle, one huge word line ---------- */
[data-layout="3"]{--bw:74vh;--bh:74vh;--br:50%;--tw:96;--th:34;--ty:50vh;--gap:.28em;--fh:88vh;--fb:4vh}
[data-layout="3"] .eyebrow{--ex:6vw;--ey:30vh}
[data-layout="3"] .sub{--sx:74vw;--sy:68vh}

/* ---------- 4 Split: three fields, bust crop, small heavy title ---------- */
[data-layout="4"]{--bg:#d9d7ce;--bx:39vw;--by:79vh;--bw:22vw;--bh:26vh;--ink:var(--cream);
  --tx:45vw;--ty:42vh;--tw:26;--th:26;--fx:72vw;--fh:168vh;--fb:-78vh;--fw:80vw;--gink:rgba(29,18,16,.4)}
[data-layout="4"] .e1{display:block;left:28vw;top:0;width:76vw;height:100vh;background:#141010}
[data-layout="4"] .index{display:block;left:5vw;top:16vh;color:var(--dark)}
[data-layout="4"] .side{display:block;left:5.4vw;top:36vh;color:var(--dark)}
[data-layout="4"] .eyebrow{--ex:32.2vw;--ey:27vh;color:var(--cream)}
[data-layout="4"] .sub{--sx:31vw;--sy:57vh;color:var(--cream)}
[data-layout="4"] .chrome.top .mast,[data-layout="4"] .chrome.top .icon:last-child,[data-layout="4"] .chrome.bottom{color:var(--cream);--chrome:var(--cream)}

/* ---------- 5 Band: off-white, wide band behind a cropped figure, lowercase mark ---------- */
[data-layout="5"]{--bx:66vw;--by:55vh;--bw:52vw;--bh:46vh;--tcase:lowercase;--tx:26vw;--ty:60vh;--tw:40;--th:44;
  --fx:66vw;--fh:128vh;--fb:-45vh;--fw:70vw;--lh:.8}
[data-layout="5"] .w2::after{content:".";color:var(--blockc)}
[data-layout="5"] .t-inv .w2::after,[data-layout="5"] .t-front-inv .w2::after{color:var(--inv)}
[data-layout="5"] .index{display:block;left:5vw;top:15vh}
[data-layout="5"] .side{display:block;right:4vw;left:auto;top:24vh}
[data-layout="5"] .eyebrow{--ex:6vw;--ey:35vh}
[data-layout="5"] .sub{--sx:6vw;--sy:84vh}

/* ---------- 6 Cinema: the film is the page ---------- */
[data-layout="6"]{--bg:#0c0a09;--bw:100vw;--bh:100vh;--chrome:var(--cream);--blockc:#0c0a09;
  --tx:25vw;--ty:62vh;--tw:38;--th:30;--pw:100vw !important;--ph:100vh !important;--lh:.86}
[data-layout="6"] .block::after{background:linear-gradient(90deg,rgba(8,5,4,.72),transparent 55%),linear-gradient(0deg,rgba(8,5,4,.6),transparent 40%)}
[data-layout="6"] .t-inv{opacity:1 !important;clip-path:none !important}
[data-layout="6"] .figure,[data-layout="6"] .glyphs{display:none}
[data-layout="6"] .t-back{visibility:hidden}
[data-layout="6"] .block video{opacity:1}
[data-layout="6"]{--by:50vh !important;--bw:106vw;--bh:106vh;--pw:106vw !important;--ph:106vh !important}
[data-layout="6"] .eyebrow{--ex:6vw;--ey:44vh;color:var(--cream);opacity:1}
[data-layout="6"] .sub{--sx:5vw;--sy:78vh;color:var(--cream);opacity:1}
[data-layout="6"] .thumbs{display:flex;justify-content:flex-end;right:3vw}

/* ---------- 7 Noir: black ground, red slab, greyed figure, cream type ---------- */
[data-layout="7"]{--bg:#0d0b0a;--ink:var(--cream);--inv:#0d0b0a;--chrome:var(--cream);--blockc:#c8321e;
  --bx:30vw;--by:50vh;--bw:32vw;--bh:100vh;--tx:66vw;--ty:50vh;--tw:54;--th:62;--fx:30vw;--fh:86vh;--fb:6vh;--fw:44vw;
  --ffilter:grayscale(1) contrast(1.35) brightness(.5);--gink:rgba(241,240,233,.4);--gdisc:rgba(241,240,233,.07);--lh:.86}
[data-layout="7"] .eyebrow{--ex:49vw;--ey:20vh}
[data-layout="7"] .sub{--sx:48vw;--sy:80vh}

/* ---------- 8 Glyph wall: scripts fill the ground, title crosses in front ---------- */
[data-layout="8"]{--bw:60vw;--bh:58vh;--by:47vh;--tw:92;--th:26;--ty:74vh;--gap:.3em;--fh:84vh;--fb:9vh;--gs:5.2vw;--gdisc:transparent;--gink:rgba(29,18,16,.16)}
[data-layout="8"] .eyebrow{--ex:21vw;--ey:20.5vh;color:var(--cream)}
[data-layout="8"] .sub{--sx:64vw;--sy:20.5vh;color:var(--cream)}

@media (prefers-reduced-motion:reduce){.layer{translate:none}.stage{transform:none}}
@media (max-width:760px){
  .lab span{min-width:84px}.play span{display:none}.play{padding:0 10px}
  [data-layout="1"]{--bw:78vw;--bh:62vh;--tw:150;--th:20;--gap:.2em}
}

.boot *{transition:none !important}

/* mailing list sign-up (posts to the Google Form behind the Sheet) */
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.join{position:fixed;inset:0;z-index:60;display:grid;place-items:center;padding:16px;opacity:0;pointer-events:none;transition:opacity .35s}
.join.open{opacity:1;pointer-events:auto}
.joinback{position:absolute;inset:0;background:rgba(10,6,5,.55);backdrop-filter:blur(6px)}
.joincard{position:relative;width:min(560px,100%);background:#141010;color:var(--cream);padding:clamp(24px,5vh,48px) clamp(20px,4vw,44px);
  border:1px solid rgba(241,240,233,.22);transform:translateY(14px);transition:transform .45s cubic-bezier(.2,.8,.2,1)}
.join.open .joincard{transform:none}
.joincard #joinclose{position:absolute;top:10px;right:10px;color:var(--cream);--chrome:var(--cream)}
.joinkick{font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:#e9a13b;margin:0 0 10px}
.joincard h2{font-family:var(--tfont);font-weight:var(--tweight);font-stretch:var(--tstretch);text-transform:uppercase;font-size:clamp(34px,7vh,64px);line-height:.95;margin:0 0 14px}
.joinsub{font-size:14px;line-height:1.5;opacity:.75;margin:0 0 22px;max-width:40ch}
.joinrow{display:flex;gap:10px;flex-wrap:wrap}
.joinrow input{flex:1 1 220px;min-width:0;height:48px;padding:0 14px;background:transparent;color:inherit;font:inherit;font-size:16px;border:1px solid rgba(241,240,233,.45);border-radius:0}
.joinrow input::placeholder{color:rgba(241,240,233,.4)}
.joinrow input:focus-visible{outline:2px solid #e9a13b;outline-offset:2px}
.joinrow button{height:48px;padding:0 22px;background:#e9a13b;color:#141010;font:inherit;font-weight:700;font-size:13px;letter-spacing:.14em;text-transform:uppercase;border:0;cursor:pointer}
.joinrow button:hover{background:var(--cream)}.joinrow button:disabled{opacity:.5;cursor:default}
.joinmsg{min-height:1.4em;font-size:13px;margin:14px 0 0}.joinmsg.bad{color:#ff9a7a}.joinmsg.good{color:#9fd6a8}
.join.done .joinrow{display:none}

.playgame{display:inline-flex;align-items:center;height:40px;padding:0 20px;border-radius:20px;background:#e9a13b;color:#141010;
  font-weight:700;font-size:13px;letter-spacing:.12em;text-transform:uppercase;text-decoration:none;white-space:nowrap}
.playgame:hover{background:#f3b85c}
.playgame:focus-visible{outline:2px solid currentColor;outline-offset:3px}

/* menu: tighter rows, see-through black with blur, mailing-list button */
.drawer{background:rgba(20,16,16,.7);backdrop-filter:blur(22px) saturate(1.1);-webkit-backdrop-filter:blur(22px) saturate(1.1)}
.drawer nav{justify-content:flex-start;padding-top:1.5vh}
.drawer a{padding:1.6vh 0 1.4vh}
.drawer b{font-size:min(6.2vh,52px)}
.joincta{margin-top:auto;display:flex;align-items:center;justify-content:center;gap:12px;height:52px;border-radius:26px;background:#e9a13b;color:#141010;
  font-weight:700;font-size:13px;letter-spacing:.14em;text-transform:uppercase;flex:none}
.joincta svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6}
.joincta:hover{background:#f3b85c}
.joincta:focus-visible{outline:2px solid var(--cream);outline-offset:3px}
.drawer b{font-family:"Rubik Mono One",system-ui,sans-serif;font-weight:400;font-stretch:normal;font-size:min(4.6vh,38px);letter-spacing:-.02em}
.drawer a{align-items:center}.drawer small{margin-top:.8vh}

/* top bar: small join button; masthead stays centred */
.chrome.top .mast{position:absolute;left:50%;transform:translateX(-50%)}
.joinmini{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 14px 0 12px;border-radius:17px;background:var(--chrome);color:var(--bg);
  font-weight:700;font-size:11px;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap}
.joinmini svg,.playcta svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}
.joinmini:hover{opacity:.85}
.joinmini:focus-visible{outline:2px solid var(--chrome);outline-offset:3px}
/* menu: join button sits in the list and hugs its label; Play is the large button at the bottom */
.joincta{margin-top:3vh;align-self:flex-start;height:46px;padding:0 22px 0 18px;border-radius:23px}
.drawer a.playcta{margin-top:auto;display:flex;align-items:center;justify-content:center;gap:16px;height:min(11vh,88px);border:0;border-radius:14px;padding:0;
  background:var(--cream);color:#141010;font-family:"Rubik Mono One",system-ui,sans-serif;font-size:min(5vh,40px);text-transform:uppercase;flex:none}
.drawer a.playcta svg{width:.8em;height:.8em;fill:currentColor;stroke:none}
.drawer a.playcta:hover{padding:0;background:#e9a13b;color:#141010}
@media (max-width:760px){.joinmini span{display:none}.joinmini{padding:0 10px}}
.drawer header{justify-content:flex-end}
.drawer a{grid-template-columns:1fr}.drawer small{grid-column:1}

/* menu: home title font picker */
.navfonts{margin-top:auto;padding-bottom:2.2vh}
.navfonts p{font-size:11px;letter-spacing:.14em;text-transform:uppercase;font-weight:600;opacity:.6;margin:0 0 10px}
#navfonts{display:flex;flex-wrap:wrap;gap:8px}
#navfonts button{height:32px;padding:0 13px;border-radius:16px;border:1px solid rgba(241,240,233,.35);color:var(--cream);font-size:12px;font-weight:600}
#navfonts button:hover{border-color:var(--cream)}
#navfonts button[aria-pressed=true]{background:var(--cream);color:#141010;border-color:var(--cream)}
#navfonts button:focus-visible{outline:2px solid #e9a13b;outline-offset:2px}
.drawer a.playcta{margin-top:0}

/* glyphs: no disc, 150% size, ground colour 5% darker */
.glyphs .g{background:none;width:calc(var(--gs,3.4vw)*1.5);height:calc(var(--gs,3.4vw)*1.5);font-size:calc(var(--gs,3.4vw)*.75);
  color:color-mix(in srgb,var(--bg) 95%,#000)}

/* rectangle: subtle gradient; character arrows sit in its top-left corner */
.block::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(160deg,rgba(255,255,255,.13),rgba(255,255,255,0) 42%,rgba(0,0,0,.24))}
.pager{position:fixed;z-index:19;display:flex;align-items:center;gap:2px;color:var(--cream);--chrome:var(--cream);
  left:max(3vw,calc(var(--bx) - var(--bw)/2 + 10px));top:max(72px,calc(var(--by) - var(--bh)/2 + 10px));
  translate:calc(var(--mx)*-10px) calc(var(--my)*-10px);transition:left .8s cubic-bezier(.7,0,.2,1),top .8s cubic-bezier(.7,0,.2,1),opacity .4s}
.pager .count{font-size:13px;font-weight:600;min-width:52px;text-align:center}
.playing .pager,[data-layout="6"] .pager{opacity:0;pointer-events:none}
.meshbtn{margin-left:10px;height:30px;padding:0 12px;border-radius:15px;border:1px solid color-mix(in srgb,var(--cream) 55%,transparent);
  font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.meshbtn[aria-pressed=true]{background:var(--cream);color:var(--dark)}
.meshbtn[hidden]{display:none}
/* footer: gold join button with icon; top bar: Play */
.playgame{gap:10px;padding:0 20px 0 16px}
.playgame svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}
.playmini{text-decoration:none;padding:0 18px 0 12px}
.playmini svg{fill:currentColor;stroke:none;width:13px;height:13px}
.controls{position:absolute;left:50%;transform:translateX(-50%)}.play{margin-left:0}
.play svg{width:20px;height:20px}
/* live 3D figure */
#fig3d{position:absolute;inset:0;width:100%;height:100%;opacity:0;transition:opacity .5s;
  filter:var(--ffilter,drop-shadow(0 2.2vh 2.4vh rgba(20,8,4,.28)))}
.fig3d-on #fig3d{opacity:1}.fig3d-on .figure img{opacity:0}
@media (max-width:760px){.playgame span{display:none}.playgame{padding:0 12px}.joinmini.playmini span{display:inline}}
.lens{position:absolute;pointer-events:none;opacity:0;transition:opacity .25s;border:1px solid rgba(241,240,233,.85);
  box-shadow:0 0 0 1px rgba(29,18,16,.35)}
.lens::after{content:"Wire mesh";position:absolute;left:0;bottom:100%;margin-bottom:5px;font-size:10px;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--cream);background:rgba(29,18,16,.7);padding:3px 7px;white-space:nowrap}
/* the home title font also sets the masthead and the two small lines; those lines sit close to the title */
.mast{font-family:var(--tfont);font-weight:var(--tweight);font-stretch:var(--tstretch);letter-spacing:var(--tls)}
.eyebrow,.sub{font-family:var(--tfont);font-weight:var(--tweight);font-stretch:var(--tstretch);font-size:clamp(12px,1.15vw,18px);letter-spacing:.01em}
[data-layout="1"] .eyebrow{top:calc(var(--ty) - var(--fs)*.43 - 1.9em)}
[data-layout="1"] .sub{top:calc(var(--ty) + var(--fs)*.43 + .7em)}
.pager{width:calc(var(--bw) - 20px);max-width:94vw}.meshbtn{margin-left:auto}

/* Phosphor icons */
svg.ph{fill:currentColor !important;stroke:none !important}
.icon svg.ph{width:22px;height:22px}
/* pagination: tight, chevrons on circles; cube button in the rectangle's corner */
.pager{gap:6px}
.pager .icon,.meshbtn{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;padding:0;border:0;
  background:color-mix(in srgb,var(--cream) 92%,transparent);color:var(--dark)}
.pager .icon:hover,.meshbtn:hover{background:#fff}
.pager .icon svg.ph{width:15px;height:15px}
.pager .count{min-width:0;padding:0 4px;font-size:12px;letter-spacing:.04em}
.meshbtn{margin-left:auto}.meshbtn svg{width:17px;height:17px}
.meshbtn[aria-pressed=true]{background:var(--dark);color:var(--cream)}
/* live 3D figure: the wire mesh shows in a soft circle under the pointer */
#fig3d,#fig3dlens{inset:auto;left:var(--cl,0%);top:var(--ct,0%);width:var(--cw,100%);height:var(--cw,100%)}
#fig3dlens{position:absolute;pointer-events:none;opacity:0;transition:opacity .3s}
.fig3d-lens #fig3dlens{opacity:1}
.lens{display:none}

/* glyphs: twice the previous size */
.glyphs .g{width:calc(var(--gs,3.4vw)*3);height:calc(var(--gs,3.4vw)*3);font-size:calc(var(--gs,3.4vw)*1.5)}
/* small lines turn cream where they cross the rectangle */
.eyebrow.inv,.sub.inv{color:var(--inv) !important}

/* title font picker sits behind a faint palette icon */
.navfonts{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.fontsbtn{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;color:var(--cream);opacity:.05;transition:opacity .2s}
.fontsbtn svg{width:22px;height:22px}
.fontsbtn[aria-expanded=true]{opacity:.9}
.fontsbtn:focus-visible{opacity:.9;outline:2px solid #e9a13b;outline-offset:2px}
#navfonts[hidden]{display:none}

/* no rules under the top bar or above the footer */
.chrome.top{border-bottom:0}.chrome.bottom{border-top:0}
/* scattered title letters */
.glyphs .g.letter{width:auto;height:auto;line-height:1;animation:letterfade 10s ease-in-out infinite}
@keyframes letterfade{0%,100%{opacity:1}50%{opacity:.15}}
@media (prefers-reduced-motion:reduce){.glyphs .g.letter{animation:none}}
/* gold look button, beside the cube */
.goldbtn{margin-left:0;background:#e9a13b;color:#141010}.goldbtn:hover{background:#f3b85c}
.goldbtn[aria-pressed=true]{background:#141010;color:#e9a13b}

a.icon{display:grid;place-items:center;color:inherit}
/* footer Join: black. Top-bar Play: warm yellow, slow moving gradient with grain */
.playgame{background:var(--chrome);color:var(--bg)}.playgame:hover{background:var(--chrome);opacity:.85}
.playmini{position:relative;overflow:hidden;isolation:isolate;color:#1d1210;
  background:linear-gradient(110deg,#f6c453,#e9a13b 30%,#f0b245 50%,#d9822b 72%,#f6c453);background-size:300% 100%;animation:playwarm 9s ease-in-out infinite alternate}
.playmini::after{content:"";position:absolute;inset:0;z-index:-1;opacity:.38;mix-blend-mode:multiply;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .18 0 0 0 0 .05 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E")}
.playmini:hover{opacity:1;filter:brightness(1.06)}
@keyframes playwarm{from{background-position:0% 0}to{background-position:100% 0}}
@media (prefers-reduced-motion:reduce){.playmini{animation:none}}

/* gold look button: a small gold orb, no icon */
.goldbtn,.goldbtn:hover{background:radial-gradient(circle at 32% 28%,#fff3c4 0,#f4c95a 22%,#d99a24 52%,#9a5f10 82%,#6f430c 100%);
  box-shadow:inset 0 0 0 1px rgba(255,236,170,.55)}
.goldbtn:hover{filter:brightness(1.08)}
.goldbtn[aria-pressed=true]{background:radial-gradient(circle at 32% 28%,#fff3c4 0,#f4c95a 22%,#d99a24 52%,#9a5f10 82%,#6f430c 100%);
  box-shadow:0 0 0 2px var(--cream),0 0 0 3.5px rgba(29,18,16,.55)}
.playmini{color:#fff;text-shadow:0 1px 2px rgba(90,45,5,.45)}.playmini svg{width:15px;height:15px;filter:drop-shadow(0 1px 1px rgba(90,45,5,.45))}

/* design options (layout, type, glyphs) live behind the palette icon in the menu */
.lab[hidden]{display:none}
.navtools{display:grid;gap:10px;width:100%;font-size:12px}
.navtools[hidden]{display:none}
.navtools b{display:block;font-weight:600;opacity:.55;text-transform:uppercase;letter-spacing:.12em;font-size:10px;margin-bottom:6px}
.navtools .pills{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}
.navtools .pills button,.navtools .step button{padding:6px 8px;border-radius:8px;background:rgba(255,255,255,.1);color:var(--cream);text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.navtools .pills button:hover,.navtools .step button:hover{background:rgba(255,255,255,.22)}
.navtools .pills button[aria-current=true]{background:var(--cream);color:#1d1210}
.navtools .step{display:flex;align-items:center;gap:8px}.navtools .step span{flex:1;text-align:center}
.navtools #navfonts button{height:28px;padding:0 10px;font-size:11px}
.drawer nav{overflow-y:auto;scrollbar-width:none}

/* symbols pop out and back with a new sign */
.glyphs .g.sym{transition:opacity .65s ease,scale .65s ease}
.glyphs .g.sym.out{opacity:0;scale:.6}
/* palette: closed until clicked, then it expands */
.navtools{display:grid;grid-template-rows:0fr;gap:0;transition:grid-template-rows .35s ease,opacity .3s;opacity:0}
.navtools.open{grid-template-rows:1fr;opacity:1}
.navtoolsin{overflow:hidden;min-height:0;display:grid;gap:10px}
/* pager and cube circles: a shade lighter than the rectangle */
.pager .icon,.meshbtn:not(.goldbtn){background:color-mix(in srgb,var(--blockc) 84%,#fff);color:var(--cream)}
.pager .icon:hover,.meshbtn:not(.goldbtn):hover{background:color-mix(in srgb,var(--blockc) 72%,#fff)}
.meshbtn:not(.goldbtn)[aria-pressed=true]{background:var(--cream);color:var(--dark)}

/* page name beside the menu icon */
.chrome.top .here{position:absolute;left:48px;font-family:var(--tfont);font-weight:var(--tweight);font-size:14px;letter-spacing:.06em}
@media (max-width:760px){.chrome.top .here{font-size:12px}}
/* footer Join: the rectangle's reddish brown */
.playgame,.playgame:hover{background:var(--blockc);color:var(--cream)}.playgame:hover{opacity:1;filter:brightness(1.1)}
/* dark text and outlines are red ochre; type still flips to cream where it crosses the rectangle */
:root{--ink:var(--rust);--chrome:var(--rust)}
/* background symbols and letters: 15% darker than the ground (was 5%) */
.glyphs .g{color:color-mix(in srgb,var(--bg) 85%,#000)}
/* symbols change by fading only: no scaling */
.glyphs .g.sym{transition:opacity .65s ease}
.glyphs .g.sym.out{opacity:0;scale:1}

/* film mode on desktop: AFENA peeks over the top edge of the film, AFOTU hangs below the bottom edge */
.tswap .title{opacity:0 !important;transition:opacity .28s ease !important}
@media (min-width:761px){
  body.playing:not([data-layout="6"]) .t-back{left:var(--bx);top:var(--by);flex-direction:column;align-items:center;visibility:visible;
    font-size:var(--pfs,calc(var(--fs,12vw)*1.45));gap:calc(var(--ph) - var(--lh)*1em)}
  body.playing:not([data-layout="6"]) .t-back .w1,body.playing:not([data-layout="6"]) .t-back .w2{visibility:visible !important}
}

/* mixtape: a small hint beside Join, then a SoundCloud icon once they have signed up */
.joinwrap{display:flex;align-items:center;gap:12px}
.perk{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;opacity:.8;white-space:nowrap}
.perk svg{width:16px;height:16px}.perk[hidden]{display:none}
.social{display:flex;align-items:center;gap:4px}
.icon.mix[hidden],.mixlink[hidden]{display:none}
.icon.mix{animation:mixin .6s ease both}
@keyframes mixin{from{opacity:0;scale:.6}to{opacity:1;scale:1}}
.mixlink{display:inline-flex;align-items:center;gap:10px;margin-top:14px;height:44px;padding:0 20px 0 16px;border-radius:22px;background:#e9a13b;color:#141010;
  text-decoration:none;font-weight:700;font-size:13px;letter-spacing:.1em;text-transform:uppercase}
.mixlink svg{width:22px;height:22px}
.mixlink:not([href]){opacity:.6;cursor:default}
.playing .perk{display:none}
@media (max-width:1040px){.perk span{display:none}}
@media (prefers-reduced-motion:reduce){.icon.mix{animation:none}}

/* the reward, said quietly: one line above the Join button, three rows in the sign-up box */
.joinwrap{position:relative;display:block}
.perk{position:absolute;left:4px;bottom:calc(100% + 10px);display:block;font-size:12.5px;font-weight:600;letter-spacing:.01em;text-transform:none;opacity:1;
  color:var(--chrome);text-decoration:none;white-space:nowrap;border-bottom:1px solid color-mix(in srgb,var(--chrome) 35%,transparent);padding-bottom:2px}
.perk:hover{border-bottom-color:var(--chrome)}
.perks{list-style:none;padding:0;margin:14px 0 18px;display:grid;gap:0;border-top:1px solid rgba(241,240,233,.16)}
.perks li{display:grid;grid-template-columns:9.5em 1fr;gap:10px;padding:8px 0;border-bottom:1px solid rgba(241,240,233,.16);font-size:14px;color:var(--cream)}
.perks b{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#e9a13b;font-weight:700;align-self:center}
.perks a{color:var(--cream)}
.join.done .perks{display:none}
@media (max-width:1040px){.perk{display:block}}
@media (max-width:760px){.perk{font-size:11.5px}}
.perk{border-bottom:0;padding-bottom:0;font-size:11px;font-weight:600;bottom:calc(100% + 8px)}
.perk:hover{text-decoration:underline;text-underline-offset:3px}
@media (max-width:760px){.perk{font-size:10.5px}}

/* "Playable soon :)" under the Play button */
.soonbubble{position:absolute;right:0;top:calc(100% - 8px);padding:7px 12px;border-radius:10px;background:var(--dark);color:var(--cream);
  font-size:12px;font-weight:600;white-space:nowrap;opacity:0;translate:0 -4px;pointer-events:none;transition:opacity .25s,translate .25s}
.soonbubble.on{opacity:1;translate:0 0}
.soonbubble::before{content:"";position:absolute;right:26px;bottom:100%;border:6px solid transparent;border-bottom-color:var(--dark)}
.drawer a.playcta span{white-space:nowrap}
.drawer a.playcta.soon{font-size:min(2.7vh,21px);letter-spacing:-.02em}.drawer a.playcta.soon svg{display:none}
.playmini,.playcta{cursor:default}
.perk:hover{text-decoration:none;border-bottom:0;opacity:.75}

/* one line above the Join button, one below it */
.joinwrap{translate:0 -11px}
.perk.under{bottom:auto;top:calc(100% + 6px)}
span.perk:hover{opacity:1}
/* menu slide-out in red ochre */
.drawer{background:rgba(163,68,38,.88);backdrop-filter:blur(22px) saturate(1.15);-webkit-backdrop-filter:blur(22px) saturate(1.15)}
.drawer a[aria-current]{color:#1d1210}
.drawer small{opacity:.8}
.drawer a:hover{color:#1d1210}
.drawer a.playcta:hover{color:#141010}
.drawer a[aria-current],.drawer a:hover{color:#f6c453}.drawer a.playcta:hover{color:#141010}

/* sign-up: how they would like to be involved */
.joinhow{margin-top:12px;display:grid;gap:6px}
.joinhow label{font-size:12px;font-weight:600;letter-spacing:.04em;color:var(--cream);opacity:.8}
.joinhow select{height:46px;padding:0 12px;border-radius:0;border:1px solid rgba(241,240,233,.35);background:#141010;color:var(--cream);font:inherit;font-size:14px;width:100%}
.joinhow select:focus-visible{outline:2px solid #e9a13b;outline-offset:2px}
.join.done .joinhow{display:none}

/* sign-up: choose any number of ways to be involved */
fieldset.joinhow{border:0;padding:0;margin:14px 0 0;display:block;min-width:0}
.joinhow legend{font-size:12px;font-weight:600;letter-spacing:.04em;color:var(--cream);opacity:.9;padding:0;margin-bottom:8px}
.joinhow legend span{opacity:.6;font-weight:400}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{position:relative;cursor:pointer}
.chip input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.chip span{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border-radius:16px;border:1px solid rgba(241,240,233,.35);color:var(--cream);font-size:12.5px;font-weight:600;line-height:1.2}
.chip input:checked+span{background:#e9a13b;border-color:#e9a13b;color:#141010}
.chip input:focus-visible+span{outline:2px solid var(--cream);outline-offset:2px}
.chip:hover span{border-color:var(--cream)}

/* small lines: a 1px outline in the opposite colour, drawn behind the letters so they stay crisp */
.eyebrow,.sub{-webkit-text-stroke:1px var(--bg);paint-order:stroke fill}
.eyebrow.inv,.sub.inv{-webkit-text-stroke:1px var(--blockc);paint-order:stroke fill}

/* ---------- phone: home page ---------- */
@media (max-width:760px){
  /* the title stacks in two lines and stays inside the screen */
  [data-layout="1"]{--tw:92;--th:30;--bw:80vw;--bh:60vh;--by:49vh;--ty:64vh;--lh:.86}
  [data-layout="1"] .title{flex-direction:column;gap:0;align-items:center}
  [data-layout="1"] .eyebrow{left:4vw;top:calc(var(--ty) - var(--fs)*.86 - 1.7em)}
  [data-layout="1"] .sub{left:auto;right:4vw;top:calc(var(--ty) + var(--fs)*.86 + .5em)}
  /* top bar: the big title already says the name, so the small one steps aside for the Play button */
  .chrome.top .mast{display:none}
  .joinmini.playmini{font-size:11px;padding:0 12px;height:34px}
  /* footer lines sit clear of the bottom edge */
  .joinwrap{translate:0 -20px}
  .chrome.bottom{bottom:env(safe-area-inset-bottom,0px)}
}

/* phone: menu names stay on one line */
@media (max-width:760px){.drawer b{font-size:min(4.4vh,7.2vw)}.drawer nav>a{padding:1.3vh 0 1.2vh}}

/* phone: the sign-up box scrolls when it is taller than the screen */
@media (max-width:760px){
  .join{place-items:start center;overflow-y:auto;padding:10px}
  .joincard{padding:22px 18px 20px}
  .joincard h2{font-size:34px;margin-bottom:10px}
  .joinsub{margin-bottom:12px;font-size:13.5px}
  .perks{margin:10px 0 14px}.perks li{padding:6px 0;font-size:13.5px;grid-template-columns:8em 1fr}
  .joinback{position:fixed}
}

/* phone: signs large enough to read in the narrow margins */
@media (max-width:760px){[data-layout="1"]{--gs:4.4vw}}

/* menu: a quiet "Report a problem" line above the Play button */
.drawer nav>a.report:not(.joincta):not(.playcta){display:block;border:0;padding:10px 0 12px;margin-top:auto;font-size:12.5px;font-weight:600;letter-spacing:.01em;color:var(--cream);opacity:.9;text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(241,240,233,.4)}
.drawer nav>a.report:not(.joincta):not(.playcta):hover{padding-left:0;color:#f6c453}
.drawer nav>a.report small{display:inline;margin:0 0 0 6px;font-size:11.5px;font-weight:400;opacity:.75;text-decoration:none}
.drawer nav>a.report+a.playcta{margin-top:0}

/* sign-up: one choice from a dropdown (matches the Google Form dropdown) */
.joinhow label span{opacity:.6;font-weight:400}
.joinhow select{appearance:none;-webkit-appearance:none;padding-right:38px;cursor:pointer;text-overflow:ellipsis;background-image:linear-gradient(45deg,transparent 50%,#f1f0e9 50%),linear-gradient(135deg,#f1f0e9 50%,transparent 50%);background-position:calc(100% - 20px) 20px,calc(100% - 14px) 20px;background-size:6px 6px;background-repeat:no-repeat}

/* footer: one line above the Join button, so the button lines up with Trailers and Instagram */
.joinwrap{translate:0 0}
/* ultrawide (short, very wide windows): the footer row sits about 40px higher */
@media (min-aspect-ratio:21/9) and (min-width:1200px){.chrome.bottom{bottom:40px}}
/* phone: the whole "Join the Counsel" button shows */
@media (max-width:760px){
  .joinwrap{translate:0 0}
  .playgame span{display:inline}
  .playgame{padding:0 14px 0 12px}
}
@media (max-width:420px){.playgame{font-size:10px;letter-spacing:.08em;padding:0 11px 0 10px;gap:6px}}
@media (max-width:420px){.playgame{letter-spacing:.03em;padding:0 10px 0 9px;gap:5px}}
/* home page: no "Home" label (kept for screen readers) */
.chrome.top .here{clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
/* phone: the site name shows beside the menu button, where "Home" was */
@media (max-width:760px){.chrome.top .mast{display:block;left:50px;transform:none;font-size:15px;white-space:nowrap}}

/* top bar: a mail icon opens the sign-up; "Playable soon" is hidden until the game is playable (remove its hidden attribute) */
.playmini[hidden]{display:none}
/* menu on a short screen: the Play button sits just under Join the Counsel and stays in view */
.drawer nav>a.joincta{margin-bottom:12px;flex:none}
.drawer nav>a.playcta{flex:none}
@media (max-height:640px){
  .drawer nav>a small{display:none}
  .drawer nav>a.joincta{margin-top:2vh;height:42px}
  .drawer nav>a.playcta{height:48px}
}
/* Instagram icon at twice the size */
.social a.icon:not(.mix){width:56px;height:56px}
.social a.icon:not(.mix) svg.ph{width:44px;height:44px}
/* phone: the Trailers button moves to the top bar, beside the mail icon */
@media (max-width:760px){.controls{position:fixed;left:auto;transform:none;top:12px;right:calc(3vw + 46px)}}
/* Trailers button: outline as heavy as the Instagram icon's lines */
.play{border:3px solid var(--chrome)}
/* Join the Counsel: yellow button. Trailers: red ochre button with cream text. */
.playgame,.playgame:hover{background:#e9a13b;color:#141010}
.playgame:hover{background:#f3b85c;filter:none;opacity:1}
.play,.play:hover{background:var(--rust);border-color:var(--rust);color:var(--cream)}
.play:hover{filter:brightness(1.1)}
/* "Peep this" label sits 2px higher, level with the camera icon */
.play span{position:relative;top:-2px}
/* phone: header is just the menu and the centred site name; "Peep this" sits under the rectangle; footer 20px higher */
@media (max-width:760px){
  #mailtop{display:none}
  .chrome.top .mast{left:50%;transform:translateX(-50%)}
  .controls{position:fixed;top:calc(var(--by) + var(--bh)/2 + 14px);right:auto;left:50%;transform:translateX(-50%)}
  .play span{display:inline}.play{padding:0 16px 0 12px}
  .chrome.bottom{bottom:calc(env(safe-area-inset-bottom,0px) + 20px)}
}
/* short phones: a slightly shorter rectangle so "Peep this" clears the sign-up line */
@media (max-width:760px) and (max-height:720px){[data-layout="1"]{--bh:55vh;--by:46.5vh;--ty:58.5vh}}

/* phone: the rectangle starts 40px under the header (header is 52px tall), and the title and button follow it up */
@media (max-width:760px){[data-layout="1"]{--by:calc(92px + 30vh);--ty:calc(45vh + 92px)}}
@media (max-width:760px) and (max-height:720px){[data-layout="1"]{--by:calc(92px + 27.5vh);--ty:calc(39.5vh + 92px)}}
/* phone: the character moves up with the rectangle */
@media (max-width:760px){[data-layout="1"] .figure{translate:0 calc(92px - 19vh)}}

/* Gye Nyame: centred in the space between the site name and the rectangle; same ink and fade as the other signs.
   Same size as the others where the space allows, smaller where it does not. */
.glyphs .g.gye{left:50vw;top:calc((var(--by) - var(--bh)/2 + 48px)/2);
  width:min(calc(var(--gs,3.4vw)*1.74),calc(var(--by) - var(--bh)/2 - 60px));height:min(calc(var(--gs,3.4vw)*1.74),calc(var(--by) - var(--bh)/2 - 60px));
  transition:opacity 1.4s ease}
.glyphs .g.gye svg{width:100%;height:100%}
.playing .glyphs .g.gye,body:not([data-layout="1"]) .glyphs .g.gye{display:none}

/* top bar: tiny "Counsel of the Sword" under the site name, 80% as wide as the name */
.mast .mastsub{display:block;width:max-content;margin:2px auto 0;font-size:.4372em;letter-spacing:.02em;line-height:1}
/* header subtitle sits 10px higher, closer to the site name */
.mast .mastsub{position:relative;top:-5px}
/* phone: the smaller site name needs the subtitle back at its natural spot */
@media (max-width:760px){.mast .mastsub{top:0;margin-top:3px}}
/* header subtitle: letters spaced out so the line is about 15% wider (the left pad keeps it centred) */
.mast .mastsub{letter-spacing:.12em;padding-left:.12em}
/* Gye Nyame 20% smaller */
.glyphs .g.gye{width:min(calc(var(--gs,3.4vw)*1.39),calc((var(--by) - var(--bh)/2 - 60px)*.8));height:min(calc(var(--gs,3.4vw)*1.39),calc((var(--by) - var(--bh)/2 - 60px)*.8))}

/* letters fade fully out between appearances, so they can return in a new spot unseen */
@keyframes letterfade2{0%,100%{opacity:0}30%,70%{opacity:1}}
.glyphs .g.letter{animation-name:letterfade2}
@media (prefers-reduced-motion:reduce){.glyphs .g.letter{animation:none}}

/* background signs 15% smaller (the Gye Nyame keeps the size it had) */
[data-layout="1"]{--gs:2.89vw}
@media (max-width:760px){[data-layout="1"]{--gs:3.74vw}}
.glyphs .g.gye{width:min(calc(var(--gs,3.4vw)*1.635),calc((var(--by) - var(--bh)/2 - 60px)*.8));height:min(calc(var(--gs,3.4vw)*1.635),calc((var(--by) - var(--bh)/2 - 60px)*.8))}
/* Gye Nyame a further 15% smaller */
.glyphs .g.gye{width:min(calc(var(--gs,3.4vw)*1.39),calc((var(--by) - var(--bh)/2 - 60px)*.68));height:min(calc(var(--gs,3.4vw)*1.39),calc((var(--by) - var(--bh)/2 - 60px)*.68))}
/* home page background signs: a warm cream, darker than the page, at full strength
   (#eae3d6 first, then 15% further from the page colour) */
[data-layout="1"] .glyphs .g{color:#e9e1d3}
[data-layout="1"] .glyphs{opacity:1}
.playing[data-layout="1"] .glyphs{opacity:.35}
/* sign-up box: first and last name above the email */
.joinname{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.joinname input{flex:1 1 180px;min-width:0;height:48px;padding:0 14px;background:transparent;color:inherit;font:inherit;font-size:16px;border:1px solid rgba(241,240,233,.45);border-radius:0}
.joinname input::placeholder{color:rgba(241,240,233,.4)}
.joinname input:focus-visible{outline:2px solid #e9a13b;outline-offset:2px}
.join.done .joinname{display:none}
/* phone: site name sits left beside the menu button; "Peep this" sits top right. The header centre stays empty for tall characters. */
@media (max-width:760px){
  .chrome.top .mast{left:54px;transform:none}
  .mast .mastsub{margin-left:0;margin-right:0;padding-left:0}
  .controls{position:fixed;top:12px;right:3vw;left:auto;transform:none}
}
@media (max-width:379px){.play span{display:none}.play{padding:0 10px}}
