:root {
  --ink: #05090a;
  --deep: #0a1416;
  --panel: #0f1d20;
  --line: rgba(233, 226, 208, 0.12);
  --cream: #e9e2d0;
  --muted: #9aa7a6;
  --teal: #5fc9c2;
  --amber: #f0a75a;
  --display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Share Tech Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--cream); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
  background: linear-gradient(to bottom, rgba(5, 9, 10, 0.72), rgba(5, 9, 10, 0));
}
.brand { font-family: var(--display); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; font-size: 15px; }
.brand span { color: var(--amber); font-weight: 500; }
.nav nav { display: flex; gap: clamp(14px, 3vw, 34px); }
/* THE MENU, top right: one button; the list drops under it on hover, click, tap or keyboard focus (see index.html) */
.menu { position: relative; }
.menu-btn { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(240, 167, 90, 0.55);
  background: rgba(5, 9, 10, 0.6); color: var(--cream); font: 500 12px/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; transition: border-color .2s, background .2s; }
.menu-btn i { position: relative; width: 14px; height: 10px; border-top: 2px solid var(--amber); border-bottom: 2px solid var(--amber); }
.menu-btn i::after { content: ''; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid var(--amber); }
.menu-btn:focus-visible, .menu-list a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.menu.open .menu-btn { border-color: var(--amber); background: rgba(5, 9, 10, 0.92); }
.menu-list { display: none; position: absolute; right: 0; top: 100%; min-width: 290px; padding: 6px 0; border: 1px solid var(--line); border-radius: 10px;
  background: rgba(5, 9, 10, 0.95); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); margin-top: 8px; animation: menu-in .16s ease-out; }
.menu-list::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }     /* (so the pointer can cross the gap without the list closing) */
.menu.open .menu-list { display: block; }
@media (hover: hover) { .menu:hover .menu-list { display: block; } .menu:hover .menu-btn { border-color: var(--amber); background: rgba(5, 9, 10, 0.92); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }
.menu-list a { display: block; padding: 12px 18px; text-decoration: none; white-space: nowrap; }
.menu-list a + a { border-top: 1px solid var(--line); }
.menu-list b { display: block; font: 500 12px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin-bottom: 7px; }
.menu-list span { display: block; font: 12.5px/1 var(--mono); letter-spacing: 0.05em; color: #cfe9e5; }
.menu-list a:hover, .menu-list a:focus-visible { background: rgba(24, 52, 54, 0.6); }
.menu-list a:hover span { color: #fff; }
@media (prefers-reduced-motion: reduce) { .menu-list { animation: none; } }
@media (max-width: 560px) { .tw-d .nav { align-items: flex-start; padding-top: 12px; } .tw-d .brand { padding-top: 6px; } .tw-d .menu-btn { padding: 7px 12px; letter-spacing: 0.12em; } }   /* the full scene in a very narrow window: kept clear of the floating labels */
.nav nav a { text-decoration: none; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.nav nav a:hover { color: var(--cream); }

/* ---------- hero ---------- */
/* text for screen readers and search engines only */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: #000; }
.stage { position: absolute; left: 0; top: 0; width: 3376px; height: 1440px; transform-origin: 0 0; }
.layer { position: absolute; left: 0; top: 0; pointer-events: none; }
.layer.bg { width: 3376px; height: 1440px; object-fit: cover; display: block; }
.layer.overlay, .layer.beam, .layer.railshadow, .layer.windwater, .layer.swayleaf, .layer.fanspin { display: block; }
.layer.dust { mix-blend-mode: screen; display: block; object-fit: fill; }
.layer.fascia { mix-blend-mode: overlay; opacity: .55; display: block; }
.screen { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; background: #000; pointer-events: none; }
.screen video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .38s ease; }
.screen .glass {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 42%, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0) 60%),
    radial-gradient(ellipse 120% 110% at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.28) 100%);
}
/* Edge fade for clips that run bright right to their borders (set per clip in clips.json: "edge": 0-1). The screen's
   rim sinks into the dark of the room, as it does by itself on the darker clips. */
.screen .glass::after {
  content: ''; position: absolute; inset: 0; opacity: var(--edge, 0); transition: opacity .6s ease;
  box-shadow: inset 0 0 250px 80px rgba(2, 6, 7, 0.92), inset 0 0 90px 26px rgba(2, 6, 7, 0.85);
}
.layer.debug { display: none; width: 3376px; height: 1440px; }
.layer.debug polygon { fill: rgba(0, 255, 255, 0.08); stroke: #0ff; stroke-width: 3; }
body.show-debug .layer.debug { display: block; }
.hero-fade { position: absolute; inset: auto 0 0 0; height: 18vh; background: linear-gradient(to bottom, rgba(5, 9, 10, 0), var(--ink)); pointer-events: none; }
.pills { position: absolute; right: clamp(16px, 3vw, 36px); bottom: clamp(18px, 4vh, 40px); z-index: 5; display: flex; gap: 10px; }
.sound {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(5, 9, 10, 0.55); color: var(--muted);
  font: 500 12px/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(6px);
}
.sound i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.sound.on { color: var(--cream); }
.sound.on i { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 22px; height: 36px; margin-left: -11px; border: 1px solid var(--line); border-radius: 12px; z-index: 5; }
.scroll-cue::after { content: ''; position: absolute; left: 50%; top: 8px; width: 2px; height: 7px; margin-left: -1px; background: var(--cream); border-radius: 2px; animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: .9; } 50% { transform: translateY(9px); opacity: .2; } }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 10vw, 128px) clamp(16px, 6vw, 96px); max-width: 1280px; margin: 0 auto; }
.eyebrow { color: var(--amber); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; margin: 0 0 10px; }
h2 { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 4vw, 48px); line-height: 1.15; margin: 0 0 18px; letter-spacing: 0.02em; }
h3 { font-family: var(--display); font-weight: 500; font-size: 18px; margin: 14px 0 2px; }
.lede { color: var(--muted); max-width: 640px; margin: 0 0 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card .thumb { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); }
.card video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.card:hover video { transform: scale(1.03); }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 6vw, 80px); border-top: 1px solid var(--line); }
.split p { color: var(--muted); margin: 0 0 14px; }
.contact { text-align: center; border-top: 1px solid var(--line); }
.button { display: inline-block; margin-top: 10px; padding: 14px 26px; border: 1px solid var(--amber); color: var(--amber); text-decoration: none; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; border-radius: 3px; transition: background .2s, color .2s; }
.button:hover { background: var(--amber); color: var(--ink); }
.footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px clamp(16px, 6vw, 96px); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.muted { opacity: .6; }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .nav nav a:not(:last-child) { display: none; }
  /* the two pills need the width: let them wrap on the narrowest phones rather than run off the side */
  .pills { left: 12px; right: 12px; justify-content: flex-end; flex-wrap: wrap-reverse; gap: 8px; }
  .pills { pointer-events: none; } .pills .sound { pointer-events: auto; }   /* the row spans the window here: only the pills themselves take clicks and drags */
}
/* the scroll cue is for a mouse on a roomy window: on a narrow, short or touch window it would sit on the pills */
@media (max-width: 760px), (max-height: 520px), (pointer: coarse) { .scroll-cue { display: none; } }
/* a thumb needs more to aim at than a mouse does */
@media (pointer: coarse) { .sound { padding-top: 15px; padding-bottom: 15px; } }
/* ---------- ambient FX: sweeping rig lights + flickering ground-floor monitors ---------- */
.layer.ambientfx { width: 3376px; height: 1440px; overflow: visible; }
.ambientfx .sweep { fill: url(#twSweep); mix-blend-mode: screen; filter: url(#twBlur); transform-box: fill-box; transform-origin: 50% 0; }
.ambientfx .flick { opacity: 0; mix-blend-mode: screen; animation-iteration-count: infinite; animation-timing-function: linear; }
.ambientfx .flick-flash { fill: #cfeee4; animation-name: tw-flash; }
.ambientfx .flick-dark { fill: #010a09; mix-blend-mode: multiply; animation-name: tw-dark; }
.ambientfx .flick-glow { fill: #9fe8d8; animation-name: tw-glow; }
.ambientfx .fglow { opacity: 0; mix-blend-mode: screen; animation-iteration-count: infinite; animation-timing-function: linear; filter: url(#twGlowBlur); }
.ambientfx .fglow-flash { fill: #cfeee4; fill-opacity: .32; animation-name: tw-flash; }
.ambientfx .fglow-dark { fill: #010a09; fill-opacity: .3; mix-blend-mode: multiply; animation-name: tw-dark; }
.ambientfx .fglow-glow { fill: #9fe8d8; fill-opacity: .3; animation-name: tw-glow; }
/* the pool's light: see "the pool" in hero.js */
.layer.waterfx { background: #000; mix-blend-mode: screen; overflow: hidden; isolation: isolate;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.waterfx .wf-amb { position: absolute; inset: 0; background: #9fe0cf; }
.waterfx .wf-glint { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform;
  background: radial-gradient(closest-side, rgba(232, 255, 248, 1), rgba(200, 246, 234, .6) 42%, rgba(180, 236, 222, 0) 100%); }
.waterfx .wf-sheen { opacity: .26; }
.waterfx .wf-spk { position: absolute; left: 0; top: 0; height: 100%; width: calc(100% + 512px); background-size: 512px 256px; mix-blend-mode: multiply; will-change: transform; }
.waterfx .wf-spk-a { animation: wf-a 23s linear infinite; }
.waterfx .wf-spk-b { animation: wf-b 15s linear infinite; background-position: 137px 71px; }
@keyframes wf-a { to { transform: translateX(-512px); } }
@keyframes wf-b { from { transform: translateX(-512px); } to { transform: translateX(0); } }
.layer.fanprop { display: block; }
.layer.bannercloth { display: block; }
.layer.patch { display: block; }
@keyframes tw-flash { 0%, 89%, 94%, 100% { opacity: 0; } 89.8% { opacity: .33; } 90.6% { opacity: .07; } 91.6% { opacity: .3; } 92.6% { opacity: .12; } 93.4% { opacity: .26; } }
@keyframes tw-dark { 0%, 80%, 88%, 100% { opacity: 0; } 82% { opacity: .4; } 84% { opacity: .18; } 86% { opacity: .38; } }
@keyframes tw-glow { 0%, 70%, 93%, 100% { opacity: 0; } 76% { opacity: .3; } 85% { opacity: .26; } 90% { opacity: .08; } }

/* ---------- HUD callouts + hotspots in the hero ---------- */
.layer.callouts, .layer.hotspots { width: 3376px; height: 1440px; overflow: visible; }
.co { opacity: 0; transition: opacity .7s ease; }
.co.show { opacity: .82; }
.co.hot { opacity: 1; }
.co .chip { fill: rgba(6, 13, 14, 0.58); stroke: rgba(95, 201, 194, 0.4); stroke-width: 1.25; transition: stroke .25s, fill .25s; }
.co.hot .chip { fill: rgba(8, 18, 19, 0.8); stroke: rgba(95, 201, 194, 0.9); }
.co .lead { fill: none; stroke: var(--teal); stroke-width: 2; stroke-opacity: .75; transition: stroke-dashoffset 1s cubic-bezier(.3,.7,.25,1) .08s, stroke-opacity .25s; }
.co.hot .lead { stroke-opacity: 1; }
.co .dot { fill: var(--teal); }
.co .halo { fill: none; stroke: rgba(95, 201, 194, 0.5); stroke-width: 1.5; }
.co .ping { fill: none; stroke: var(--teal); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: co-ping 2.8s ease-out infinite; }
.co-resume .ping { animation-delay: .35s; }
.co-center .ping { animation-delay: .7s; }
.co-right .ping { animation-delay: 1.4s; }
.co-portfolio .ping { animation-delay: 1.75s; }
.co-projector .ping { animation-delay: 2.1s; }
@keyframes co-ping {
  0% { transform: scale(.45); opacity: .9; }
  70%, 100% { transform: scale(3.4); opacity: 0; }
}
.co .lab { font: 23px var(--mono); letter-spacing: 2.5px; fill: #daf0ec; }
.co .sub { font: 16.5px var(--mono); letter-spacing: 2px; fill: #8fd8d2; }
.co.hot .sub { fill: #bdeae5; }
/* Click targets. .hs = the object itself: it takes a click but shows nothing on mouseover (no outline, no cursor change).
   .hs-chip = the callout's label chip, which is the visible button: pointer cursor, and the chip brightens (.co.hot). */
.hs { fill: #fff; fill-opacity: 0; stroke: var(--teal); stroke-opacity: 0; stroke-width: 2.5; cursor: default; pointer-events: all; outline: none; }
.hs-chip { fill: #fff; fill-opacity: 0; stroke: var(--teal); stroke-opacity: 0; stroke-width: 2.5; cursor: pointer; pointer-events: all; outline: none; }
body.show-debug .hs, body.show-debug .hs-chip { stroke-opacity: .9; fill-opacity: .08; stroke-dasharray: 16 10; }

@media (prefers-reduced-motion: reduce) {
  .scroll-cue::after { animation: none; }
  .co .ping { animation: none; opacity: 0; }
  .co, .co .lead, .screen video { transition: none; }
  .ambientfx .sweep { animation: none !important; opacity: .5; }
  .ambientfx .flick, .ambientfx .fglow { animation: none !important; opacity: 0 !important; }
  .waterfx .wf-spk { animation: none !important; }
}

/* ---------- plate review page ---------- */
/* ---------- nothing runs unseen; looking around; keyboard focus ---------- */
.hero-idle .layer, .hero-idle .layer * { animation-play-state: paused !important; }
.hero.can-pan { touch-action: pan-y; }
.hero.panning { user-select: none; -webkit-user-select: none; }
.panbtn { position: absolute; top: 50%; z-index: 6; width: 44px; height: 44px; margin-top: -22px; padding: 0 0 4px; border-radius: 50%;
  border: 1px solid rgba(95, 201, 194, .45); background: rgba(5, 9, 10, .55); color: #daf0ec; font: 26px/1 var(--mono);
  display: grid; place-items: center; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.panbtn-l { left: 10px; } .panbtn-r { right: 10px; }
.panbtn[hidden] { display: none; }
.panhint { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 6; margin: 0; padding: 6px 12px; border-radius: 999px;
  background: rgba(5, 9, 10, .6); color: #cfe9e5; font: 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; transition: opacity .6s; pointer-events: none; }
.panhint.show { opacity: 1; }
.hs-chip:focus-visible { stroke-opacity: .95; }
.panbtn:focus-visible, .sound:focus-visible, .nav a:focus-visible, .button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
@media (max-height: 520px) { .hero { min-height: 0; } }
.review-tag { position: absolute; left: 50%; bottom: clamp(12px, 2.4vh, 24px); transform: translateX(-50%); z-index: 5; margin: 0; white-space: nowrap;
  max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis;
  padding: 7px 14px; border: 1px solid rgba(240, 167, 90, .4); border-radius: 4px; background: rgba(5, 9, 10, .6); backdrop-filter: blur(6px);
  font: 11.5px/1.4 var(--mono); letter-spacing: .08em; color: #f3c595; text-transform: uppercase; }
.review-tag b { color: var(--cream); font-weight: 400; }
.review-tag a { color: var(--teal); }
.review-tag .warn { display: block; text-align: center; color: #ff9a85; }

/* ---------- the phone version (js/mobile.js): one still room, three stops, buttons under the thumb ---------- */
/* Everything here applies only when index.html has marked the page for a phone (class tw-m on <html>). Nothing in this
   block may use backdrop-filter, blend modes or filters: on a phone each of those costs a full extra layer. */
html { -webkit-tap-highlight-color: transparent; }                       /* no grey or teal flash under a tapped button, on any device */
.tw-m .hero { min-height: 0; }
.tw-m .hero-fade { display: none; }
.tw-m .m-view { position: absolute; inset: 0; display: grid; grid-template-columns: max-content; grid-template-rows: 100%;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; touch-action: pan-x pinch-zoom; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* (pan-x: a swipe on the room only ever moves it sideways, so a slanting swipe is not mistaken for a pull-down-to-reload.
   If sections come back below the studio, this has to allow pan-y again so the page can be scrolled from the room.) */
.tw-m .m-view::-webkit-scrollbar { display: none; }
.tw-m .m-track { grid-area: 1 / 1; position: relative; height: 100%; overflow: hidden; }
.tw-m .m-snap { position: absolute; top: 0; width: 2px; height: 100%; margin-left: -1px; scroll-snap-align: center; scroll-snap-stop: always; pointer-events: none; }
.tw-m .m-room { position: absolute; left: 0; top: 0; width: 3376px; height: 1440px; max-width: none; display: block; pointer-events: none; }
.tw-m .m-front { position: absolute; max-width: none; display: block; pointer-events: none; }
/* the pool: a looping clip of the water, and over it the room's own pixels with a pool-shaped hole (see THE POOL in mobile.js) */
.tw-m .m-pool { position: absolute; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .8s ease; }
.tw-m .m-pool.m-on { opacity: 1; }
.tw-m .m-pool video, .tw-m .m-pool img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; display: block; object-fit: fill; }
.tw-m .screen { background: none; pointer-events: auto; cursor: pointer; }
.tw-m .screen video { pointer-events: none; }
/* the glass and the faded rim over each clip are small canvases on a phone (see mobile.js), never painted gradients or shadows */
.tw-m .m-glass, .tw-m .m-edge { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.tw-m .m-edge { opacity: 0; transition: opacity .6s ease; will-change: opacity; }
.tw-m .m-dark { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; will-change: opacity; }
.tw-m .m-flick .m-dark { animation: m-flick .43s linear both; }           /* a reel change: the projector's light stutters out, and stays out until the new reel is running... */
.tw-m .m-flick-in .m-dark { animation: m-flick-in .52s linear both; }     /* ...then stutters back (mobile.js, reelChange and lightUp, moves from one to the other) */
@keyframes m-flick { 0% { opacity: 0; } 18.5% { opacity: .7; } 32.5% { opacity: .15; } 50% { opacity: .88; } 70% { opacity: .5; } 88% { opacity: .93; } 100% { opacity: 1; } }
@keyframes m-flick-in { 0% { opacity: 1; } 21% { opacity: .9; } 36.5% { opacity: .35; } 56% { opacity: .7; } 73% { opacity: .15; } 100% { opacity: 0; } }
/* top: the name on the left, the Sound pill on the right */
.tw-m .nav { position: absolute; padding: 15px 14px 26px; pointer-events: none; background: linear-gradient(to bottom, rgba(5, 9, 10, 0.78), rgba(5, 9, 10, 0)); }
.tw-m .nav a { pointer-events: auto; }
/* the contact link sits under the name (upright) or beside it (sideways): the Sound pill has the right-hand corner */
.tw-m .nav { flex-direction: column; align-items: flex-start; justify-content: flex-start; }
/* the menu sits under the name; its list opens downward from the left */
.tw-m .menu { margin-top: 10px; }
.tw-m .menu-btn { pointer-events: auto; padding: 14px 15px; font-size: 11px; background: rgba(5, 9, 10, 0.8); touch-action: manipulation; }
.tw-m .menu-list { pointer-events: auto; right: auto; left: 0; min-width: 0; width: min(300px, calc(100vw - 28px)); }
.tw-m .menu-list a { padding: 14px 16px; }
@media (orientation: landscape) { .tw-m .nav { flex-direction: row; align-items: center; gap: 16px; } .tw-m .menu { margin-top: 0; } .tw-m .menu-btn { padding: 12px 13px; } .tw-m .menu-list a { padding: 10px 16px; } }
.tw-m .brand { font-size: 13px; letter-spacing: 0.12em; white-space: nowrap; }
.tw-m .pills { left: auto; right: 10px; top: 6px; bottom: auto; z-index: 21; flex-wrap: nowrap; }
.tw-m .sound { padding: 14px 13px; font-size: 11px; background: rgba(5, 9, 10, 0.8); -webkit-backdrop-filter: none; backdrop-filter: none; touch-action: manipulation; }
/* bottom: what can be done at this stop, then the three stops */
/* (it lives inside the sideways scroller, pinned to its left edge, so a swipe that starts on a button still moves the room) */
.tw-m .m-sheet { grid-area: 1 / 1; align-self: end; justify-self: start; position: -webkit-sticky; position: sticky; left: 0; z-index: 6; box-sizing: border-box; width: 100vw; padding: 46px 12px calc(10px + env(safe-area-inset-bottom, 0px)); pointer-events: none;
  background: linear-gradient(to bottom, rgba(5, 9, 10, 0), rgba(5, 9, 10, 0.86) 46px, rgba(5, 9, 10, 0.97)); }
.tw-m .m-sheet > * { pointer-events: auto; }
.tw-m .m-acts { display: grid; gap: 8px; }
.tw-m .m-act { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 100%; min-height: 50px; margin: 0; padding: 8px 14px; text-align: left; text-decoration: none;
  border: 1px solid rgba(95, 201, 194, 0.36); border-radius: 3px; background: rgba(6, 13, 14, 0.74); color: #daf0ec; font: 12px/1 var(--mono); letter-spacing: 0.16em;
  cursor: pointer; -webkit-appearance: none; appearance: none; touch-action: manipulation; }
.tw-m .m-act[hidden] { display: none; }
.tw-m .m-act b { font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-m .m-act span { font-size: 10px; letter-spacing: 0.14em; color: #8fd8d2; white-space: nowrap; }
.tw-m .m-act.primary { border-color: rgba(240, 167, 90, 0.62); }
.tw-m .m-act.primary span { color: var(--amber); }
.tw-m .m-act:active { background: rgba(16, 34, 36, 0.92); }
.tw-m .m-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 10px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: rgba(5, 9, 10, 0.82); }
.tw-m .m-tab { height: 40px; margin: 0; padding: 0; border: 0; background: none; color: var(--muted); font: 11px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase;
  cursor: pointer; -webkit-appearance: none; appearance: none; touch-action: manipulation; }
.tw-m .m-tab.on { background: rgba(24, 52, 54, 0.92); color: #e6f6f3; }
.tw-m .m-act:focus-visible, .tw-m .m-tab:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
/* held sideways: the three screens show together, so every button is on one row and the tabs are not needed */
.tw-m .m-wide .m-tabs { display: none; }
.tw-m .m-wide .m-sheet { padding: 30px 10px calc(8px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to bottom, rgba(5, 9, 10, 0), rgba(5, 9, 10, 0.86) 30px, rgba(5, 9, 10, 0.97)); }
.tw-m .m-wide .m-acts { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tw-m .m-wide .m-acts::-webkit-scrollbar { display: none; }
.tw-m .m-wide .m-act { flex: 1 0 auto; width: auto; min-height: 42px; gap: 5px; padding: 6px 9px; font-size: clamp(8.5px, 1.45vw, 10px); letter-spacing: 0.12em; }
.tw-m .m-wide .m-act span { font-size: clamp(8px, 1.3vw, 9px); letter-spacing: 0.1em; }
/* the narrowest phones: the name and the Sound pill share one line */
@media (max-width: 359px) { .tw-m .brand { font-size: 12px; letter-spacing: 0.08em; } .tw-m .sound { padding-left: 10px; padding-right: 10px; gap: 7px; letter-spacing: 0.05em; } }
@media (prefers-reduced-motion: reduce) { .tw-m .m-flick .m-dark, .tw-m .m-flick-in .m-dark { animation: none; } }
/* THE FLOOR (on trial; only with ?floor=1 or hero.mobile.floor): the room slides up as one layer, the buttons tuck away.
   --tuck runs 0 (buttons up) to 1 (away) and is set by mobile.js as the finger moves; --acts-h is the buttons' height. */
.tw-m .m-can-floor .m-track { will-change: transform; }
.tw-m .m-can-floor .m-sheet { background: none; }
.tw-m .m-can-floor .m-sheet::before { content: ''; position: absolute; inset: 0; pointer-events: none; will-change: opacity; opacity: calc(1 - var(--tuck, 0));
  background: linear-gradient(to bottom, rgba(5, 9, 10, 0), rgba(5, 9, 10, 0.86) 46px, rgba(5, 9, 10, 0.97)); }
.tw-m .m-can-floor .m-sheet > * { position: relative; }
.tw-m .m-can-floor .m-acts { will-change: opacity, transform; opacity: calc(1 - var(--tuck, 0)); transform: translateY(calc(var(--tuck, 0) * 26px)); }
.tw-m .m-can-floor .m-tucked .m-acts, .tw-m .m-can-floor .m-tucked .m-acts > * { pointer-events: none; }
.tw-m .m-can-floor .m-grip { position: absolute; left: 50%; top: 14px; width: 72px; height: 30px; margin: 0 0 0 -36px; padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-appearance: none; appearance: none; touch-action: manipulation; will-change: transform; transform: translateY(calc(var(--tuck, 0) * var(--acts-h, 0px))); }
.tw-m .m-can-floor .m-grip::after { content: ''; position: absolute; left: 50%; top: 13px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: rgba(218, 240, 236, 0.5); }
.tw-m .m-can-floor .m-glide .m-acts, .tw-m .m-can-floor .m-glide .m-grip { transition: opacity .42s ease, transform .42s cubic-bezier(.3, .7, .25, 1); }
.tw-m .m-can-floor .m-glide::before { transition: opacity .42s ease; }
.tw-m .m-can-floor.m-wide .m-grip { top: 2px; }
