/* Deskhaus website: Clay Haus by day, After Hours by night. Colours, type, radii, glass and motion come from tokens.css
   (the same file as the app). Soft clay renders on paper, inked crew, glass capsules, keys that press. */
@font-face { font-family: "Archivo Black"; font-weight: 400; font-display: swap; src: url(fonts/archivo-black.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(fonts/archivo.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 100 800; font-display: swap; src: url(fonts/jetbrains-mono.woff2) format("woff2"); }

:root {
  --paper: var(--dh-paper); --card: var(--dh-surface); --ink: var(--dh-ink); --soft: var(--dh-ink-soft); --line: var(--dh-line);
  --edge: var(--dh-line); --raise: var(--dh-key-base);
  --tomato: var(--dh-tomato); --tomato-dk: var(--dh-tomato-deep); --mint: var(--dh-mint); --sun: var(--dh-sun); --lilac: var(--dh-lilac); --sky: var(--dh-sky);
  --bubble: var(--dh-surface); --bubble-ink: var(--dh-ink);
  --display: var(--dh-font-display); --body: var(--dh-font-body); --mono: var(--dh-font-mono);
  --gutter: max(16px, min(5vw, 56px));
  --bar: 74px; --dock: 74px;
  --ease-pop: var(--dh-ease-pop);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: var(--body); font-size: 17px; line-height: var(--dh-leading-body); overflow-x: hidden; padding-bottom: calc(var(--dock) + 24px); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--dh-backdrop); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: var(--dh-tracking-display); text-wrap: balance; line-height: 1; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--dh-focus); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 10px; }
kbd, .kbd { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .03em; display: inline-block; padding: 3px 8px 4px; border-radius: 7px; background: var(--dh-surface); box-shadow: 0 2px 0 var(--dh-key-base), 0 0 0 1px var(--dh-line); color: var(--ink); line-height: 1.3; vertical-align: 2px; white-space: nowrap; }

/* day or night pictures: the hidden one never loads, it is lazy and display none */
.t-night { display: none; }
:root[data-theme="dark"] .t-day { display: none; }
:root[data-theme="dark"] .t-night { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .t-day { display: none; }
  :root:not([data-theme="light"]) .t-night { display: block; }
}

/* ---------- the capsules at the top ---------- */
.bar { position: fixed; inset: 14px 0 auto 0; z-index: 60; display: flex; align-items: center; gap: 10px; padding-inline: var(--gutter); pointer-events: none; }
.bar > * { pointer-events: auto; }
.capsule { display: inline-flex; align-items: center; height: 48px; border-radius: var(--dh-radius-pill); }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-size: 22px; letter-spacing: -.055em; color: inherit; flex: none; }
.logo.capsule { padding: 0 18px 0 8px; }
.logo svg { width: 34px; height: 34px; transition: transform var(--dh-dur-press); display: block; }
.logo:active svg { transform: translateY(2px); }
.nav { gap: 2px; padding: 0 6px; margin-left: 4px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px 9px; border-radius: var(--dh-radius-pill); transition: background-color var(--dh-dur-fast); white-space: nowrap; }
.nav a:hover { background: var(--dh-glass-well); }
.nav a[aria-current="page"] { background: var(--dh-glass-ink); color: var(--dh-glass-solid); }
.bar-r { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.icon-btn { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; transition: transform var(--dh-dur-press); }
.icon-btn:active { transform: translateY(2px); }
.icon-btn svg { width: 21px; height: 21px; grid-area: 1 / 1; }
.menu { display: none; }
.theme svg { opacity: 0; }
.theme:not([data-mode]) .i-auto, .theme[data-mode="auto"] .i-auto, .theme[data-mode="light"] .i-day, .theme[data-mode="dark"] .i-night { opacity: 1; }

/* ---------- keys: every button is a keycap and goes down when pressed ---------- */
.join { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--dh-on-accent); background: var(--dh-tomato); border: 0; border-radius: var(--dh-radius-md); padding: 15px 22px 16px; box-shadow: 0 var(--dh-key-edge) 0 var(--dh-tomato-deep), 0 16px 30px -12px rgba(201, 48, 29, .55); font-family: var(--display); font-size: 19px; letter-spacing: -.02em; line-height: 1; transition: transform var(--dh-dur-press) var(--dh-ease-out), box-shadow var(--dh-dur-press) var(--dh-ease-out); white-space: nowrap; cursor: pointer; }
.join:hover { transform: translateY(-1px); box-shadow: 0 6px 0 var(--dh-tomato-deep), 0 18px 32px -12px rgba(201, 48, 29, .6); }
.join:active, .join.down { transform: translateY(4px); box-shadow: 0 var(--dh-key-edge-down) 0 var(--dh-tomato-deep), 0 6px 14px -8px rgba(201, 48, 29, .5); }
.join .k { font-family: var(--mono); font-size: 12px; font-weight: 700; background: rgba(17, 17, 17, .9); color: #f4f4f0; border-radius: 7px; padding: 5px 8px; letter-spacing: .04em; }
.join.sm { font-size: 15px; padding: 0 16px; height: 44px; border-radius: var(--dh-radius-pill); box-shadow: 0 4px 0 var(--dh-tomato-deep), 0 10px 20px -10px rgba(201, 48, 29, .5); gap: 8px; }
.join.sm .short { display: none; }
.btn { font: inherit; font-weight: 700; font-size: 16px; padding: 11px 18px 12px; border-radius: var(--dh-radius-sm); border: 0; background: var(--dh-surface); color: var(--ink); box-shadow: 0 4px 0 var(--dh-key-base), 0 0 0 1px var(--dh-line); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: transform var(--dh-dur-press), box-shadow var(--dh-dur-press); min-height: 46px; }
.btn:active, .btn.down { transform: translateY(3px); box-shadow: 0 1px 0 var(--dh-key-base), 0 0 0 1px var(--dh-line); }
.btn.red { background: var(--dh-tomato); color: var(--dh-on-accent); box-shadow: 0 4px 0 var(--dh-tomato-deep); }
.btn.red:active { box-shadow: 0 1px 0 var(--dh-tomato-deep); }
.btn.mint { background: var(--dh-mint); color: var(--dh-on-accent); box-shadow: 0 4px 0 #6cc499; }
.btn svg { width: 18px; height: 18px; flex: none; }
.link-arrow { font-weight: 700; text-underline-offset: 4px; }

/* ---------- speech bubbles ---------- */
.bubble { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) scale(.6); transform-origin: 50% 100%; opacity: 0; background: var(--bubble); color: var(--bubble-ink); border-radius: 16px; padding: 9px 13px 10px; font: 600 15px/1.3 var(--body); width: max-content; max-width: 240px; text-align: center; box-shadow: var(--dh-shadow-soft); transition: opacity var(--dh-dur-fast), transform var(--dh-dur-base) var(--ease-pop); pointer-events: none; z-index: 6; text-wrap: balance; }
.bubble::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 8px solid transparent; border-top-color: var(--bubble); }
.bubble.on { opacity: 1; transform: translateX(-50%) scale(1); }
.bubble.caps { font-family: var(--display); font-weight: 400; letter-spacing: .01em; }
.edge-l .bubble { left: 0; transform: translateX(0) scale(.6); transform-origin: 20% 100%; }
.edge-l .bubble.on { transform: translateX(0) scale(1); }
.edge-l .bubble::after { left: 34px; }
.edge-r .bubble { left: auto; right: 0; transform: translateX(0) scale(.6); transform-origin: 80% 100%; }
.edge-r .bubble.on { transform: translateX(0) scale(1); }
.edge-r .bubble::after { left: auto; right: 22px; transform: none; }

/* ---------- the crew: faces that move ---------- */
svg.crew { overflow: visible; }
svg.crew:not(.nest) { display: block; width: 100%; height: auto; }
.crew .pupils, .crew .peek { transform: translate(calc(var(--gx, 0) * 1px), calc(var(--gy, 0) * 1px)); transition: transform .16s ease-out, opacity .12s; }
.crew .brows { transform: translateY(calc(var(--gy, 0) * .35px)); transition: transform .16s ease-out; }
.crew .eyes { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .07s ease-in; }
.crew.blink .eyes { transform: scaleY(.1); }
.crew-space.blink .eyes { transform: none; }
.crew-space.blink .pupils { opacity: 0; }
.crew-space.blink .peek { opacity: 1; }
.crew.talking .m-rest { animation: mouthShut .26s steps(1) infinite; }
.crew.talking .m-open { animation: mouthOpen .26s steps(1) infinite; }
@keyframes mouthOpen { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes mouthShut { 0% { opacity: 0; } 50% { opacity: 1; } }
.crew .m-open { transform-box: fill-box; transform-origin: 50% 30%; }
.crew.yawn .m-rest { opacity: 0; animation: none; }
.crew.yawn .m-open { opacity: 1; animation: yawn 1.6s ease-in-out; }
.crew.yawn .eyes { transform: scaleY(.25); }
@keyframes yawn { 0% { transform: scale(.6); } 40%, 70% { transform: scale(1.5, 1.7); } 100% { transform: scale(1); } }
.crew.bob .bod { transform-box: fill-box; transform-origin: 50% 100%; animation: bob 2.8s ease-in-out infinite; }
.crew .wave { transform-box: view-box; transform-origin: 42px 112px; animation: wave 1.8s ease-in-out infinite; }
.crew .steam path { animation: steam 2.4s ease-in-out infinite; }
.crew .steam path + path { animation-delay: -1.2s; }
.crew .glow { animation: glow 3.2s ease-in-out infinite; }
.crew .page { transform-box: view-box; transform-origin: 205px 196px; animation: flip 7s ease-in-out infinite; }
.crew.sweeping .broom { transform-box: view-box; transform-origin: 244px 116px; animation: sweep .55s ease-in-out infinite alternate; }
.crew.typing .laptop { transform-box: fill-box; transform-origin: 50% 100%; animation: tap .3s steps(2) infinite; }
.crew.shh .m-open { opacity: 1; animation: none; }
.crew.shh .m-rest { opacity: 0; animation: none; }
@keyframes bob { 0%, 100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-4px) scaleY(1.012); } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-16deg); } }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes glow { 0%, 100% { opacity: .3; } 50% { opacity: .5; } }
@keyframes flip { 0%, 70% { transform: scaleX(1); } 82%, 100% { transform: scaleX(-1); } }
@keyframes sweep { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
@keyframes tap { 0% { transform: translateY(0); } 50% { transform: translateY(1.5px); } }

/* little people */
.pp-hands { animation: type .26s ease-in-out infinite alternate; }
.pp-page { transform-box: fill-box; transform-origin: 0% 50%; animation: flip 4.6s ease-in-out infinite; }
.pp-point { transform-box: fill-box; transform-origin: 0% 100%; animation: point 2.2s ease-in-out infinite; }
.pp-wave { transform-box: fill-box; transform-origin: 0% 100%; animation: ppwave .9s ease-in-out infinite alternate; }
.walking .leg-l { transform-box: fill-box; transform-origin: 100% 0%; animation: legs .32s ease-in-out infinite alternate; }
.walking .leg-r { transform-box: fill-box; transform-origin: 0% 0%; animation: legs .32s ease-in-out infinite alternate-reverse; }
.walking .pp-b { animation: walkbob .32s ease-in-out infinite alternate; }
@keyframes type { from { transform: translateY(0); } to { transform: translateY(-1.4px); } }
@keyframes point { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-22deg); } }
@keyframes ppwave { from { transform: rotate(-10deg); } to { transform: rotate(18deg); } }
@keyframes legs { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
@keyframes walkbob { from { transform: translateY(0); } to { transform: translateY(-1.5px); } }
.hop { animation: hop .52s var(--ease-pop); }
.squash { animation: squash .22s ease-out; }
@keyframes hop { 0% { transform: translateY(0) scale(1); } 30% { transform: translateY(-34%) scale(.95, 1.06); } 62% { transform: translateY(0) scale(1.08, .9); } 100% { transform: translateY(0) scale(1); } }
@keyframes squash { 0% { transform: scaleY(1); } 45% { transform: scaleY(.84) scaleX(1.06); } 100% { transform: scaleY(1); } }

/* ---------- section heads ---------- */
section.band { padding-block: clamp(60px, 10vh, 120px); }
.head { display: grid; gap: 14px; margin-bottom: clamp(28px, 5vh, 46px); max-width: 760px; }
.head h2 { font-size: var(--dh-title-lg); letter-spacing: -.05em; }
.head p { font-size: clamp(17px, 1.4vw, 20px); color: var(--soft); max-width: 52ch; }
.page-hero { padding-top: calc(var(--bar) + clamp(36px, 8vh, 90px)); padding-bottom: clamp(24px, 5vh, 50px); }
.page-hero h1 { font-size: clamp(44px, 7vw, 104px); letter-spacing: -.055em; line-height: .94; }
.page-hero p.sub { font-size: clamp(18px, 1.6vw, 22px); color: var(--soft); max-width: 46ch; margin-top: 20px; }

/* ---------- home hero: the live Lounge ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: clip; padding: calc(var(--bar) + 28px) var(--gutter) calc(var(--dock) + 18px); }
.hero-copy { position: relative; z-index: 3; width: min(36vw, 560px); }
.hero-copy h1 { font-size: clamp(38px, 4.3vw, 72px); letter-spacing: -.05em; line-height: .98; }
.hero-copy .sub { margin-top: 18px; font-size: clamp(16px, 1.25vw, 19px); color: var(--soft); max-width: 44ch; }
.hero-copy .row { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.tryhint { margin-top: 20px; font-size: 14px; color: var(--soft); display: flex; flex-wrap: nowrap; gap: 6px; align-items: center; white-space: nowrap; }
.tryhint .touch, .pick-help .touch { display: none; }
.lounge-stage { position: absolute; z-index: 1; aspect-ratio: 1.6; top: 50%; right: -9vw; width: min(76vw, calc((100svh - 50px) * 1.6)); transform: translateY(-50%); }
.lounge-stage picture, .lounge-stage img, .lounge-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lounge-stage picture.t-night { display: none; }
:root[data-theme="dark"] .lounge-stage picture.t-day { display: none; }
:root[data-theme="dark"] .lounge-stage picture.t-night { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lounge-stage picture.t-day { display: none; }
  :root:not([data-theme="light"]) .lounge-stage picture.t-night { display: block; }
}
.lounge-stage canvas { opacity: 0; transition: opacity var(--dh-dur-slow) var(--dh-ease-out); pointer-events: none; }
.lounge-stage.live canvas { opacity: 1; }
.lounge-stage.live picture { visibility: hidden; transition: visibility 0s linear var(--dh-dur-slow); }
.lounge-tags { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.tag { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); transform: translate(-50%, -100%); padding: 3px 9px 4px; border-radius: var(--dh-radius-pill); background: var(--dh-surface); color: var(--ink); font: 600 12.5px/1.2 var(--body); box-shadow: 0 1px 2px rgba(40, 30, 20, .22), 0 4px 10px rgba(40, 30, 20, .14); white-space: nowrap; transition: opacity var(--dh-dur-base); }
.tag.say { transform: translate(-50%, calc(-100% - 25px)); padding: 6px 12px 7px; font-size: 13.5px; }
.tag.off { opacity: 0; }

/* ---------- why ---------- */
.why { padding-block: clamp(50px, 9vh, 110px) clamp(30px, 6vh, 70px); display: grid; gap: 18px; }
.why .big { font-family: var(--display); font-size: var(--dh-title-lg); letter-spacing: -.05em; line-height: 1; max-width: 18ch; }
.why .small { font-size: clamp(18px, 1.6vw, 22px); color: var(--soft); max-width: 42ch; }

/* ---------- the keycap floor plan ---------- */
.plan-sec { padding-block: clamp(30px, 6vh, 70px) clamp(20px, 4vh, 50px); }
.plan-tilt { perspective: 1800px; padding: 40px 0 70px; }
.plan { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; padding: 22px 22px 30px; border-radius: var(--dh-radius-xl); background: var(--dh-tomato-deep); box-shadow: 0 16px 0 #8f2011, 0 50px 80px -30px rgba(120, 40, 20, .55); transform: rotateX(34deg) rotateZ(12deg) scale(.9); transform-style: preserve-3d; max-width: 1060px; margin: 0 auto; }
.pkey { position: relative; display: block; grid-column: span 2; aspect-ratio: 1.55; text-decoration: none; color: var(--dh-on-accent); border-radius: 18px; background: color-mix(in srgb, var(--k) 72%, #000); transform-style: preserve-3d; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.pk-hall { grid-column: span 4; aspect-ratio: auto; color: #f4f4f0; background: #000; }
.pk-hall .pkey-top { background: #2a2a28; }
.pkey-top { position: absolute; inset: 0; transform: translateY(-13px); border-radius: 18px; background: var(--k); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; transition: transform var(--dh-dur-press) var(--dh-ease-out), box-shadow var(--dh-dur-fast); transform-style: preserve-3d; }
.pkey b { font: 400 clamp(17px, 1.9vw, 27px)/1 var(--display); letter-spacing: -.035em; }
.pkey small { font: 700 clamp(10px, .85vw, 12px)/1.2 var(--mono); letter-spacing: .02em; opacity: .78; }
.pkey:hover .pkey-top { transform: translateY(-9px); }
.pkey:active .pkey-top, .pkey.down .pkey-top { transform: translateY(-3px); }
.pkey.lit .pkey-top { box-shadow: 0 0 0 3px #fff, 0 0 30px 6px color-mix(in srgb, var(--k) 70%, #fff); }
.pkey:focus-visible { outline: none; }
.pkey:focus-visible .pkey-top { box-shadow: 0 0 0 4px var(--dh-focus); }
.on-key { position: absolute; right: 8%; bottom: 10%; width: 31%; transform: rotateZ(-12deg) rotateX(-34deg); transform-origin: 50% 100%; pointer-events: none; }
.pk-library .on-key { width: 40%; }
.on-key img { width: 100%; height: auto; }
.pk-garden .on-key, .pk-team .on-key { width: 26%; }
:root[data-theme="dark"] .plan { background: #1a1a33; box-shadow: 0 16px 0 #0b0c1a, 0 50px 80px -30px #000; }
:root[data-theme="dark"] .pkey.lit .pkey-top { box-shadow: 0 0 0 2px #fff, 0 0 44px 12px color-mix(in srgb, var(--k) 70%, transparent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .plan { background: #1a1a33; box-shadow: 0 16px 0 #0b0c1a, 0 50px 80px -30px #000; }
  :root:not([data-theme="light"]) .pkey.lit .pkey-top { box-shadow: 0 0 0 2px #fff, 0 0 44px 12px color-mix(in srgb, var(--k) 70%, transparent); }
}
/* the flat plan on the tour: same keys, seen from straight above, never tilted */
.plan.flat { transform: none; max-width: none; padding: 12px 12px 16px; gap: 8px; border-radius: var(--dh-radius-lg); box-shadow: 0 8px 0 #8f2011; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan.flat .pkey { grid-column: auto; aspect-ratio: 1.75; border-radius: 12px; }
.plan.flat .pk-hall { grid-column: span 2; aspect-ratio: 4.4; }
.plan.flat .pkey-top { transform: translateY(-6px); border-radius: 12px; padding: 8px 10px; }
.plan.flat .pkey b { font-size: 15px; }
.plan.flat .pkey small { display: none; }
.plan.flat .pkey:hover .pkey-top { transform: translateY(-4px); }
.plan.flat .pkey:active .pkey-top, .plan.flat .pkey.down .pkey-top, .plan.flat .pkey.lit .pkey-top { transform: translateY(-2px); }
.plan.flat .on-key { transform: none; right: 6%; bottom: 6%; width: 34%; }
.plan.flat .pk-library .on-key { width: 44%; }
.plan.flat .pk-garden .on-key, .plan.flat .pk-team .on-key { display: none; }
:root[data-theme="dark"] .plan.flat { box-shadow: 0 8px 0 #0b0c1a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plan.flat { box-shadow: 0 8px 0 #0b0c1a; } }

/* the small plan: follows you down the rooms */
.miniplan { position: sticky; top: calc(var(--bar) + 2px); z-index: 30; display: flex; gap: 4px; width: fit-content; margin: 0 auto 16px; padding: 5px; border-radius: var(--dh-radius-pill); }
.miniplan a { display: grid; place-items: center; width: 46px; height: 40px; border-radius: var(--dh-radius-pill); text-decoration: none; font: 700 11px/1 var(--mono); letter-spacing: .04em; transition: background-color var(--dh-dur-fast), transform var(--dh-dur-press); }
.miniplan a { box-shadow: inset 0 -3px 0 var(--k); }
.miniplan a:hover { background: var(--dh-glass-well); }
.miniplan a.lit { background: var(--k); color: var(--dh-on-accent); box-shadow: none; }
.miniplan a:active { transform: translateY(2px); }

/* ---------- the rooms ---------- */
.rooms { position: relative; padding-bottom: 30px; }
.room { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3.5vw, 56px); align-items: center; padding-block: clamp(30px, 6vh, 72px); scroll-margin-top: calc(var(--bar) + 54px); }
.room.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.room.flip .room-art { order: 2; }
.room-art { position: relative; }
.room-art > img:not(.prop) { width: 100%; }
.room-text { display: grid; gap: 14px; align-content: center; max-width: 52ch; }
.room-text h2 { font-size: var(--dh-title-md); letter-spacing: -.045em; padding-right: 72px; }
.room-text p { font-size: clamp(16.5px, 1.25vw, 18.5px); }
.says { justify-self: start; display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap; background: var(--dh-surface); border-radius: 16px 16px 16px 4px; padding: 9px 14px 10px; box-shadow: var(--dh-shadow-soft); font-weight: 600; }
.says-who { font: 700 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--soft); }
.says.loud { font-family: var(--display); font-weight: 400; letter-spacing: .005em; }
.room-text { position: relative; }
.room-text > .prop { position: absolute; right: 0; top: -6px; width: clamp(48px, 5vw, 68px); height: auto; pointer-events: none; }
.host { position: absolute; right: 8%; bottom: 3%; width: clamp(64px, 8vw, 110px); transform: translateY(26%) rotate(4deg); opacity: 0; transition: transform var(--dh-dur-slow) var(--ease-pop), opacity var(--dh-dur-base); pointer-events: none; filter: drop-shadow(0 10px 12px rgba(40, 30, 20, .2)); }
.host[data-host="space"] { width: clamp(84px, 11vw, 150px); }
.flip .host { right: auto; left: 8%; }
.room.in .host { transform: none; opacity: 1; }

.room-text p.extras { font-size: 15.5px; color: var(--soft); }
.extras a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
.sess { display: grid; gap: 14px; margin-top: 4px; }
.sess-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sess-steps li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px; border-radius: var(--dh-radius-sm); font-size: 15.5px; line-height: 1.35; transition: background-color var(--dh-dur-base); }
.sess-steps b { display: grid; place-items: center; height: 38px; border-radius: 10px; background: var(--dh-surface); box-shadow: 0 3px 0 var(--dh-key-base), 0 0 0 1px var(--dh-line); font: 700 15px/1 var(--mono); transition: transform var(--dh-dur-press), background-color var(--dh-dur-fast), box-shadow var(--dh-dur-press); }
.sess-steps li.on { background: var(--dh-surface); box-shadow: var(--dh-shadow-soft); }
.sess-steps li.on b { background: var(--dh-tomato); color: var(--dh-on-accent); transform: translateY(2px); box-shadow: 0 1px 0 var(--dh-tomato-deep); }
.sess-run { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 12px 12px 18px; border-radius: var(--dh-radius-lg); }
.timer { font: 700 clamp(26px, 2.6vw, 34px)/1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.phase-chip { font: 600 13.5px/1.25 var(--body); color: var(--dh-glass-ink-soft); flex: 1 1 130px; }

/* ---------- pick your key ---------- */
.pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 56px); align-items: start; }
.plate { background: #2a2a28; border-radius: var(--dh-radius-xl); padding: clamp(14px, 2vw, 22px); box-shadow: 0 8px 0 #111, var(--dh-shadow-lift); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 14px); grid-auto-rows: 1fr; }
.kcap { position: relative; display: block; border: 0; padding: 0; margin: 0; background: none; cursor: pointer; aspect-ratio: 1 / 1.02; -webkit-tap-highlight-color: transparent; touch-action: manipulation; clip-path: inset(0 round clamp(10px, 1.6vw, 16px)); --kface: #fff; --kside: #ccc; }
.kcap.wide { grid-column: span 3; }
.kcap .skirt-b { position: absolute; inset: 0; background: var(--kside); border-radius: inherit; }
.kcap .top { position: absolute; inset: 5px 5px 14% 5px; background: var(--kface); border-radius: clamp(8px, 1.3vw, 13px); transition: transform var(--dh-dur-press); display: grid; place-items: center; overflow: hidden; }
.kcap .top::before { content: ""; position: absolute; left: 8%; right: 8%; top: 6%; height: 6%; border-radius: 99px; background: rgba(255, 255, 255, .28); }
.kcap .top svg { width: 86%; height: 86%; }
.kcap.wide .top svg { width: 60%; height: 90%; }
.kcap .legend { position: absolute; left: 9%; top: 9%; font: 700 clamp(10px, 1vw, 13px)/1 var(--mono); letter-spacing: .05em; color: #111; }
.kcap.ctrl .legend { color: #f4f4f0; }
.kcap.down .top, .kcap:active .top { transform: translateY(8%); }
.kcap.down .skirt-b, .kcap:active .skirt-b { filter: brightness(.85); }
.kcap:focus-visible { outline: none; }
.kcap:focus-visible .top { box-shadow: inset 0 0 0 4px var(--dh-tomato); }
.kcap.chosen .top { box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 7px #111; }
.plate .kcap { aspect-ratio: auto; height: 100%; min-height: 0; }
.plate .kcap:not(.wide) { aspect-ratio: 1 / 1.02; height: auto; }
.pick-help { margin-top: 18px; font-size: 14.5px; color: var(--soft); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.result { background: var(--card); border-radius: var(--dh-radius-xl); box-shadow: var(--dh-shadow-lift); padding: clamp(18px, 2.6vw, 30px); display: grid; gap: 16px; min-height: 100%; align-content: start; }
.result.empty { place-content: center; text-align: center; color: var(--soft); }
.result.empty p { max-width: 30ch; margin: 0 auto; font-weight: 600; }
.res-top { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr); gap: 18px; align-items: end; }
.res-char { position: relative; border-radius: 20px; background: var(--rc); padding: 46px 10px 8px; }
.res-char .bubble { bottom: auto; top: 6px; left: 50%; transform: translateX(-50%) scale(.6); max-width: 150px; font-size: 13px; padding: 6px 9px 7px; }
.res-char .bubble.on { transform: translateX(-50%) scale(1); }
.res-char .bubble::after { display: none; }
.chip { display: inline-block; font: 700 12px/1 var(--mono); letter-spacing: .04em; color: var(--dh-on-accent); padding: 6px 10px; border-radius: var(--dh-radius-pill); }
.result h3 { font-size: var(--dh-title-md); letter-spacing: -.045em; }
.result .one { font: 700 clamp(17px, 1.6vw, 21px)/1.3 var(--mono); }
.result .room { color: var(--soft); font-size: 16px; display: block; padding: 0; }
.size-toggle { display: inline-flex; border-radius: 12px; overflow: hidden; background: var(--dh-surface-2); justify-self: start; }
.size-toggle button { border: 0; background: transparent; padding: 8px 12px; font-weight: 700; font-size: 14px; cursor: pointer; min-height: 40px; color: var(--ink); }
.size-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.share-row .btn { font-size: 15px; padding: 9px 13px 10px; min-height: 44px; }
.share-note { font: 500 13.5px/1.4 var(--mono); color: var(--soft); min-height: 1.4em; }
.card-preview { display: flex; gap: 12px; align-items: flex-end; }
.card-preview img { width: 120px; border-radius: 10px; box-shadow: var(--dh-shadow-soft); background: #f4f4f0; cursor: pointer; transition: transform var(--dh-dur-fast); }
.card-preview img.story { width: 82px; }
.card-preview img.sel { outline: 3px solid var(--tomato); outline-offset: 3px; }
.mini-quiz { margin-top: 22px; }
.mini-quiz summary { cursor: pointer; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; list-style: none; padding: 8px 0; }
.mini-quiz summary::-webkit-details-marker { display: none; }
.mini-quiz summary .kbd { padding: 1px 7px 2px; }
.mini-quiz .mq { margin-top: 10px; display: grid; gap: 12px; }
.mq .q { font-weight: 800; font-size: 18px; }
.mq .answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mq .ans { text-align: left; font-size: 15.5px; background: var(--card); color: var(--ink); border: 0; border-radius: 14px; padding: 12px 14px; box-shadow: 0 4px 0 var(--raise), 0 0 0 1px var(--dh-line); cursor: pointer; min-height: 52px; display: flex; gap: 10px; align-items: center; transition: transform var(--dh-dur-press), box-shadow var(--dh-dur-press); }
.mq .ans:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--raise), 0 0 0 1px var(--dh-line); }
.mq .ans i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); flex: none; }

/* ---------- close: the door ---------- */
.close { padding-block: clamp(70px, 12vh, 140px) 40px; }
.close-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: clamp(30px, 5vw, 80px); align-items: center; }
.close h2 { font-size: var(--dh-title-lg); letter-spacing: -.05em; line-height: .96; }
.close .meta { margin-top: 22px; font-size: 19px; font-weight: 600; }
.close .teamnote { margin-top: 16px; max-width: 46ch; font-size: 16px; line-height: 1.5; color: var(--soft); }
.close .teamnote a { color: var(--ink); white-space: nowrap; }
.signed { font-family: var(--display); font-size: 22px; letter-spacing: -.03em; margin-top: 18px; }
.close.small h2 { font-size: var(--dh-title-md); }
.close.small .close-grid { grid-template-columns: minmax(0, 1fr) auto; }
.door-wrap { position: relative; display: grid; gap: 0; justify-items: center; }
.doorway { position: relative; display: block; width: min(100%, 380px); aspect-ratio: 3 / 4; perspective: 1500px; text-decoration: none; color: var(--dh-on-accent); border-radius: 26px 26px 8px 8px; background: var(--dh-surface); box-shadow: var(--dh-shadow-lift), inset 0 0 0 1px var(--dh-line); padding: 14px 14px 0; }
.door-view { position: absolute; inset: 14px 14px 0; border-radius: 16px 16px 0 0; overflow: hidden; background: var(--dh-paper-deep); }
.door-view img { position: absolute; left: 50%; top: 50%; height: 118%; width: auto; max-width: none; transform: translate(-44%, -50%); }
.door-leaf { position: absolute; inset: 14px 14px 0; border-radius: 16px 16px 0 0; background: linear-gradient(170deg, #ff6a55, var(--dh-tomato) 60%, #ec3f28); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 8px 0 22px rgba(60, 20, 10, .28); transform-origin: 0 50%; transform: rotateY(-5deg); transition: transform var(--dh-dur-slow) var(--dh-ease-out); display: grid; grid-template-rows: 1fr 1.4fr; gap: 14px; padding: 22px 22px 40px; }
.door-panel { display: block; border-radius: 12px; box-shadow: inset 0 2px 4px rgba(120, 30, 15, .45), inset 0 -1px 0 rgba(255, 255, 255, .28); background: rgba(160, 40, 20, .1); }
.door-knob { position: absolute; right: 16px; top: 52%; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3bf, var(--dh-sun) 60%, #c79a10); box-shadow: 0 3px 6px rgba(60, 20, 10, .4); }
.door-sign { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 13px 18px 14px; border-radius: var(--dh-radius-md); background: var(--dh-sun); box-shadow: 0 5px 0 #c79a10, 0 14px 26px -10px rgba(60, 30, 10, .5); transition: transform var(--dh-dur-press), box-shadow var(--dh-dur-press); font: 400 18px/1 var(--display); letter-spacing: -.02em; z-index: 2; }
.door-sign b { font-weight: 400; }
.door-sign .k { font: 700 11px/1 var(--mono); background: #111; color: #f4f4f0; padding: 5px 7px; border-radius: 6px; letter-spacing: .04em; }
.doorway:hover .door-leaf, .doorway:focus-visible .door-leaf, .doorway.ajar .door-leaf { transform: rotateY(-24deg); }
.doorway:active .door-sign, .doorway.ajar .door-sign { transform: translateX(-50%) translateY(4px); box-shadow: 0 1px 0 #c79a10; }
.doorway.open .door-leaf { transform: rotateY(-96deg); transition-duration: var(--dh-dur-slow); }
.enter-crew { position: relative; width: 100%; max-width: 440px; height: clamp(70px, 8vw, 96px); margin-top: -2px; display: flex; justify-content: center; gap: 2%; align-items: flex-end; pointer-events: none; }
.enter-crew .cm { position: relative; width: 14%; flex: none; }
.enter-crew .cm.space { width: 20%; }
.enter-crew .cm .body { display: block; transform-origin: 50% 100%; }
.enter-crew .bubble { font-size: 13px; max-width: 130px; padding: 6px 9px 7px; }

/* ---------- the tour ---------- */
.tour { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.tour-plan { position: sticky; top: calc(var(--bar) + 20px); padding-top: 10px; }
.tour .miniplan { display: none; }
.tour .room, .tour .room.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.tour .room:first-child { padding-top: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { background: var(--dh-surface); border-radius: var(--dh-radius-lg); padding: 20px 22px 22px; box-shadow: var(--dh-shadow-soft); display: grid; gap: 6px; }
.steps b { font: 400 clamp(22px, 2.2vw, 30px)/1 var(--display); letter-spacing: -.035em; }
.steps b::before { content: ""; display: block; width: 34px; height: 8px; border-radius: 4px; background: var(--c); margin-bottom: 12px; }

/* ---------- crew page ---------- */
.lineup-wrap { padding-top: 70px; overflow: clip; overflow-clip-margin: 60px; }
.crew-line { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; align-items: end; }
.crew-line .cl { position: relative; background: none; border: 0; padding: 0; cursor: pointer; transform: translateY(60%); opacity: 0; transition: transform var(--dh-dur-slow) var(--ease-pop), opacity var(--dh-dur-base); }
.crew-line.up .cl { transform: none; opacity: 1; }
.crew-line.up .cl:nth-child(2) { transition-delay: 70ms; } .crew-line.up .cl:nth-child(3) { transition-delay: 140ms; } .crew-line.up .cl:nth-child(4) { transition-delay: 210ms; } .crew-line.up .cl:nth-child(5) { transition-delay: 280ms; } .crew-line.up .cl:nth-child(6) { transition-delay: 350ms; }
.crew-line .bubble { font-size: 13px; max-width: 150px; padding: 6px 9px 7px; }
.crew-line svg.crew { transition: transform var(--dh-dur-fast); }
.crew-line .cl:hover svg.crew { transform: translateY(-5px); }
.crew-band { padding-top: 24px; }
.crew-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ccard { position: relative; background: var(--card); border-radius: var(--dh-radius-xl); box-shadow: var(--dh-shadow-soft); display: grid; grid-template-columns: minmax(130px, 42%) minmax(0, 1fr); overflow: hidden; scroll-margin-top: calc(var(--bar) + 20px); transition: transform var(--dh-dur-press), box-shadow var(--dh-dur-fast); }
.ccard.pressed { transform: translateY(4px); }
.ccard .stage { position: relative; background: var(--c); display: grid; align-items: end; justify-items: center; padding: 64px 10px 12px; }
.ccard .stage .bubble { bottom: auto; top: 12px; max-width: 170px; font-size: 14px; }
.ccard .stage .bubble::after { display: none; }
.ccard .stage svg.crew { transition: transform var(--dh-dur-base) var(--ease-pop); transform-origin: 50% 100%; }
.ccard:hover .stage svg.crew { transform: translateY(-6px) scale(1.03); }
.ccard .txt { padding: 22px 22px 24px; display: grid; gap: 10px; align-content: start; }
.ccard h2 { font-size: clamp(32px, 3.4vw, 46px); letter-spacing: -.045em; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ccard .team { font: 700 15px/1.3 var(--mono); }
.ccard .meta { font-size: 14.5px; color: var(--soft); }
.ccard p.bio { font-size: 16.5px; }
.ccard .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* ---------- about page ---------- */
.windows { position: relative; height: 260vh; height: 260svh; }
.windows-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 60px); align-items: center; padding: calc(var(--bar) + 10px) var(--gutter) calc(var(--dock) + 16px); max-width: 1280px; margin: 0 auto; }
.facade { border-radius: var(--dh-radius-xl); box-shadow: var(--dh-shadow-lift); background: linear-gradient(#10132e, #1d1d3a); overflow: hidden; aspect-ratio: 4 / 5; max-height: 76vh; justify-self: center; width: min(100%, 460px); }
.facade svg { width: 100%; height: 100%; display: block; }
.facade .win { transition: fill var(--dh-dur-slow), opacity var(--dh-dur-slow); }
.facade .win-p { opacity: 0; transition: opacity var(--dh-dur-slow); }
.facade .lit .win { fill: #ffd77a; }
.facade .lit .win-p { opacity: 1; }
.lines-col { display: grid; gap: 14px; }
.lines-col p { font-family: var(--display); font-size: clamp(26px, 3.4vw, 46px); letter-spacing: -.035em; line-height: 1.04; opacity: .28; transition: opacity var(--dh-dur-slow); }
.lines-col p.on { opacity: 1; }
.about-still { max-width: 980px; }
.prose { max-width: 680px; display: grid; gap: 18px; font-size: clamp(17px, 1.35vw, 19.5px); }
.prose h2 { font-size: var(--dh-title-sm); letter-spacing: -.04em; margin-top: 18px; }
.who-list { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.who-list li { font-weight: 600; font-size: 15px; padding: 7px 13px; border-radius: 999px; background: var(--card); box-shadow: var(--dh-shadow-soft); }
/* For teams (/teams, launch week 8 Nov 2026): the week's rhythm, the steps, and the request form (it posts to the app's /teams/ask) */
.rhythm { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 12px; }
.rhythm li { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--dh-radius-md); background: var(--card); box-shadow: var(--dh-shadow-soft); }
.rhythm b { font-family: var(--display); font-weight: 400; letter-spacing: -.02em; }
.rhythm span { color: var(--soft); }
.steps-list { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.teamform { display: grid; gap: 16px; margin-top: 4px; }
.tf-field { display: grid; gap: 6px; }
.tf-field label { font-weight: 700; font-size: 16px; }
.tf-field input, .tf-field select, .tf-field textarea { font: inherit; font-size: 17px; color: var(--ink); background: var(--card); border: 0; border-radius: var(--dh-radius-sm); box-shadow: 0 0 0 1px var(--line); padding: 12px 14px; width: 100%; box-sizing: border-box; min-height: 48px; }
.tf-field textarea { resize: vertical; min-height: 120px; }
.tf-field input:focus-visible, .tf-field select:focus-visible, .tf-field textarea:focus-visible { outline: 3px solid var(--dh-focus); outline-offset: 2px; }
.tf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tf-note { margin: 0; font-size: 15px; color: var(--soft); }
.page-hero .row { margin-top: 26px; }
/* the home page: the public numbers line (filled by home.js from /numbers; hidden while there is nothing to show) and the note for teams */
.why .numbers { margin-top: 14px; font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--soft); }
.why .numbers[hidden] { display: none; }

/* ---------- faq page ---------- */
.faq-band { padding-top: 10px; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details { background: var(--card); border-radius: var(--dh-radius-md); box-shadow: var(--dh-shadow-soft); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-weight: 700; font-size: clamp(17px, 1.6vw, 20px); min-height: 60px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; font: 700 14px/1 var(--mono); width: 36px; height: 32px; border-radius: 9px; background: var(--dh-surface-2); box-shadow: 0 3px 0 var(--dh-key-base); display: grid; place-items: center; transition: transform var(--dh-dur-press), box-shadow var(--dh-dur-press), background-color var(--dh-dur-fast); }
.faq details[open] summary .pm { transform: translateY(2px); box-shadow: 0 1px 0 var(--dh-tomato-deep); background: var(--tomato); color: #111; }
.faq .a { padding: 0 20px 20px; font-size: 16.5px; max-width: 64ch; display: grid; gap: 10px; }
.faq-side { position: sticky; top: calc(var(--bar) + 30px); display: grid; justify-items: center; gap: 12px; text-align: center; }
.faq-side .mate { position: relative; width: 210px; padding-top: 70px; }
.faq-side .bubble { bottom: auto; top: 0; }
.faq-side p { font-size: 15px; color: var(--soft); max-width: 26ch; }
.faq-side .prop { position: static; width: 72px; }

/* ---------- footer ---------- */
.foot { margin-top: 40px; }
.foot-in { max-width: 1280px; margin: 0 auto; padding: 44px var(--gutter) 30px; display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, .8fr)) minmax(0, 1fr); gap: 28px; align-items: start; border-top: 1px solid var(--line); }
.foot .logo { font-size: 28px; }
.foot .logo svg { width: 40px; height: 40px; }
.foot p { font-size: 15px; color: var(--soft); max-width: 36ch; margin-top: 10px; }
.foot h3 { font: 700 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot ul a { text-decoration: none; font-weight: 600; display: inline-block; padding: 6px 0; }
.foot ul a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot .sign { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; font-size: 14px; color: var(--soft); }
/* Day, Night, Auto: a tactile switch in a ribbed groove. The groove and thumb treatment follow ThreeUI's MIT skeuomorphic
   toggle, rewritten here with our tokens and no dependencies (assets/THIRD-PARTY.md). */
.themer { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 252px); padding: 5px; border-radius: var(--dh-radius-pill); background: repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 0, 0, .035) 2px, rgba(0, 0, 0, .035) 4px), var(--dh-surface-2); box-shadow: inset 0 3px 7px rgba(0, 0, 0, .14), inset 0 -2px 3px rgba(255, 255, 255, .5); }
.themer button { position: relative; z-index: 1; border: 0; background: none; height: 40px; font-weight: 600; font-size: 14px; cursor: pointer; border-radius: var(--dh-radius-pill); }
.themer-thumb { position: absolute; left: 5px; top: 5px; bottom: 5px; width: calc((100% - 10px) / 3); border-radius: var(--dh-radius-pill); background: linear-gradient(180deg, var(--dh-surface), var(--dh-surface-2)); box-shadow: 0 6px 12px -4px rgba(30, 20, 10, .3), 0 2px 4px -2px rgba(0, 0, 0, .2), inset 0 2px 3px rgba(255, 255, 255, .85); transition: transform var(--dh-dur-base) var(--ease-pop); }
.themer[data-mode="dark"] .themer-thumb { transform: translateX(100%); }
.themer[data-mode="auto"] .themer-thumb, .themer:not([data-mode]) .themer-thumb { transform: translateX(200%); }
:root[data-theme="dark"] .themer { box-shadow: inset 0 3px 7px rgba(0, 0, 0, .5), inset 0 -2px 3px rgba(255, 255, 255, .06); }
:root[data-theme="dark"] .themer-thumb { box-shadow: 0 6px 12px -4px rgba(0, 0, 0, .6), inset 0 2px 3px rgba(255, 255, 255, .22); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .themer { box-shadow: inset 0 3px 7px rgba(0, 0, 0, .5), inset 0 -2px 3px rgba(255, 255, 255, .06); }
  :root:not([data-theme="light"]) .themer-thumb { box-shadow: 0 6px 12px -4px rgba(0, 0, 0, .6), inset 0 2px 3px rgba(255, 255, 255, .22); }
}

/* ---------- the dock: the crew follows you ---------- */
.dock { position: fixed; z-index: 50; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 6px; align-items: stretch; padding: 7px; border-radius: var(--dh-radius-lg); width: min(560px, calc(100vw - 24px)); }
.dk { flex: 1; min-width: 0; height: 44px; border: 0; border-radius: 12px; background: var(--kc, #f4f4f0); box-shadow: 0 4px 0 color-mix(in srgb, var(--kc, #f4f4f0) 68%, #000); cursor: pointer; font: 700 12px/1 var(--mono); letter-spacing: .03em; color: #111; position: relative; transition: transform var(--dh-dur-press), box-shadow var(--dh-dur-press); touch-action: manipulation; }
.dk.space { flex: 1.8; }
.dk.ctrl { color: #f4f4f0; box-shadow: 0 4px 0 #000; }
.dk:active, .dk.down { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in srgb, var(--kc, #f4f4f0) 68%, #000); }
.dk.lit::after { content: ""; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: #3df58a; box-shadow: 0 0 0 1.5px rgba(17, 17, 17, .7); }
.dk.snd { flex: .8; background: var(--dh-glass-well); color: var(--dh-glass-ink); box-shadow: none; display: grid; place-items: center; }
.dk.snd svg { width: 18px; height: 18px; }
.pop { position: fixed; z-index: 49; left: 50%; bottom: calc(var(--dock) + 2px); width: 150px; transform: translate(-50%, 160%); visibility: hidden; transition: transform var(--dh-dur-base) var(--ease-pop), visibility 0s var(--dh-dur-base); pointer-events: none; }
.pop.on { transform: translate(-50%, 0); visibility: visible; transition: transform var(--dh-dur-base) var(--ease-pop), visibility 0s; }
.pop.space { width: 200px; }
.pop .bubble { max-width: min(300px, 86vw); font-size: 15.5px; }
.pop svg.crew { filter: drop-shadow(0 10px 14px rgba(17, 17, 17, .2)); }

/* ---------- the living haus layer: Esc checks in if you sit idle ---------- */
.amb { position: fixed; inset: 0; pointer-events: none; z-index: 48; overflow: hidden; }
.actor { position: absolute; left: 0; bottom: calc(var(--dock) + 16px); width: 104px; will-change: transform; }
.actor.space { width: 150px; }
.actor .bubble { font-size: 14px; max-width: 200px; }
.actor .pp-svg { width: 46px; display: block; }
.actor.person { width: 46px; }
.dusk { display: none; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity var(--dh-dur-slow) ease, transform var(--dh-dur-slow) var(--dh-ease-out); }
.rv.in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.nf-body { padding-bottom: 0; }
.nf { max-width: 640px; margin: 0 auto; padding: 16vh 16px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.nf h1 { font-size: clamp(36px, 7vw, 64px); }
.nf-crew { width: 220px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .crew-cards, .faq-wrap, .pick { grid-template-columns: 1fr; }
  .faq-side { display: none; }
  .hero { flex-direction: column; align-items: flex-start; padding-bottom: 20px; }
  .hero-copy { width: min(100%, 720px); }
  .hero-copy h1 { font-size: clamp(38px, 6.4vw, 64px); }
  .tryhint { flex-wrap: wrap; white-space: normal; }
  .lounge-stage { position: relative; top: auto; right: auto; transform: none; width: 108%; margin: 10px -4% 0; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .tour { grid-template-columns: 1fr; }
  .tour-plan { display: none; }
  .tour .miniplan { display: flex; }
}
@media (max-width: 1000px) {
  :root { --bar: 66px; }
  .bar { inset: 10px 0 auto 0; }
  .nav { display: none; position: fixed; left: var(--gutter); right: var(--gutter); top: 66px; margin: 0; height: auto; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; border-radius: var(--dh-radius-lg); }
  .nav.capsule { height: auto; }
  .nav.open { display: flex; background: var(--dh-glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--dh-shadow-lift); }
  .nav a { font-size: 18px; padding: 12px 14px; }
  .menu { display: grid; }
  .room, .room.flip, .tour .room, .tour .room.flip { grid-template-columns: 1fr; }
  .room.flip .room-art { order: 0; }
  .close-grid, .close.small .close-grid { grid-template-columns: 1fr; }
  .windows-stage { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; align-items: stretch; gap: 14px; }
  .facade { min-height: 0; height: 100%; width: auto; max-height: none; justify-self: center; }
  .lines-col { gap: 8px; }
  .lines-col p { font-size: clamp(19px, 5.4vw, 28px); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 759px) {
  :root { --dock: 66px; }
  body { font-size: 16.5px; }
  .logo { font-size: 20px; }
  .logo.capsule { padding: 0 14px 0 6px; }
  .logo svg { width: 30px; height: 30px; }
  .capsule, .icon-btn { height: 44px; }
  .icon-btn { width: 44px; }
  .bar { gap: 6px; }
  .bar-r { gap: 6px; }
  .join.sm .k, .join.sm .long { display: none; }
  .join.sm .short { display: inline; }
  .hero { padding-top: calc(var(--bar) + 14px); min-height: auto; }
  .hero-copy h1 { font-size: clamp(36px, 10.4vw, 52px); }
  .lounge-stage { aspect-ratio: 780 / 860; width: calc(100vw + 0px); margin: 6px calc(var(--gutter) * -1) 0; }
  .lounge-stage canvas { display: none; }
  .lounge-stage.live picture { visibility: visible; }
  .tag { left: calc(var(--mx) * 1%); top: calc(var(--my) * 1%); font-size: 12px; }
  .tryhint { display: none; }
  .pick-help .key { display: none; }
  .pick-help .touch { display: inline; }
  .plan-tilt { perspective: none; padding: 16px 0 26px; }
  .plan { transform: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 12px 20px; box-shadow: 0 10px 0 #8f2011; border-radius: var(--dh-radius-lg); }
  .pkey { grid-column: auto; aspect-ratio: 1.45; border-radius: 14px; }
  .pk-hall, .pk-office { grid-column: 1 / -1; aspect-ratio: 3.2; }
  .pk-office .on-key { width: 15%; }
  .pkey-top { padding: 10px 12px; border-radius: 14px; transform: translateY(-8px); }
  .pkey:hover .pkey-top { transform: translateY(-8px); }
  .pkey:active .pkey-top, .pkey.down .pkey-top { transform: translateY(-2px); }
  .pkey b { font-size: 19px; }
  .pkey small { font-size: 11px; }
  .on-key { transform: none; bottom: 7%; }
  .miniplan { width: 100%; justify-content: space-between; gap: 0; }
  .miniplan a { width: 44px; height: 44px; font-size: 10.5px; flex: 0 1 44px; }
  .mq .answers { grid-template-columns: 1fr; }
  .res-top { grid-template-columns: 120px minmax(0, 1fr); }
  .crew-line { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
  .ccard { grid-template-columns: 1fr; }
  .ccard .stage { padding-top: 60px; }
  .ccard .stage svg.crew { max-width: 220px; }
  .foot-theme { grid-column: 1 / -1; }
  .dk { height: 42px; font-size: 11px; }
  .dk.snd { display: none; }
  .dock { gap: 4px; padding: 6px; border-radius: var(--dh-radius-md); }
  .pop { width: 112px; } .pop.space { width: 150px; }
  .actor { width: 80px; } .actor.space { width: 116px; }
  .enter-crew { max-width: 100%; }
}

/* reduced motion: still pictures, nothing pinned, everything reachable */
html.reduce { scroll-behavior: auto; }
.reduce .windows { height: auto; }
.reduce .windows-stage { position: relative; height: auto; }
.reduce .rv { opacity: 1; transform: none; transition: none; }
.reduce .host { transform: none; opacity: 1; }
.reduce .crew-line .cl { transform: none; opacity: 1; }
.reduce .door-leaf { transform: none; }
.reduce *, .reduce *::before, .reduce *::after { animation: none !important; transition-duration: .01ms !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ---------- house tags (CEO 19 Oct: the team is a tag, like an office ID on a lanyard) ---------- */
.mtag { display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1 var(--mono); letter-spacing: .03em; text-transform: uppercase; color: #111; background: var(--tc, var(--sun)); border: 1.5px solid #111; border-radius: 6px; padding: 5px 8px 5px 6px; box-shadow: 0 2px 0 #111; vertical-align: 1px; margin-right: 4px; white-space: nowrap; }
.mtag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); border: 1.5px solid #111; }
.tag-row { display: grid; grid-template-columns: minmax(150px, 190px) minmax(0, 1fr); gap: 20px; align-items: start; }
.otag { margin: 0; position: relative; padding-top: 56px; justify-self: center; width: 100%; max-width: 190px; transform-origin: 50% 0; animation: tagswing 3.6s ease-in-out infinite; }
.otag .strap { position: absolute; top: 0; left: 50%; width: 120px; height: 60px; transform: translateX(-50%); overflow: visible; }
.otag .clip { position: absolute; top: 44px; left: 50%; width: 18px; height: 22px; transform: translateX(-50%); background: #c9c9c1; border: 2px solid #111; border-radius: 5px; z-index: 2; }
.otag-card { position: relative; background: #fff; color: #111; border: 2px solid #111; border-radius: 16px; box-shadow: 0 6px 0 #111; padding: 22px 14px 14px; display: grid; justify-items: center; gap: 8px; text-align: center; overflow: hidden; }
.otag-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 40%; background: var(--tc); border-bottom: 2px solid #111; }
.otag-card > * { position: relative; }
.otag .hole { width: 34px; height: 8px; border-radius: 6px; background: var(--paper); border: 2px solid #111; margin-top: -10px; }
.otag-brand { font: 700 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.otag-photo { width: 92px; height: 92px; border-radius: 18px; border: 2px solid #111; background: var(--tf, #fff); overflow: hidden; display: grid; place-items: center; box-shadow: 0 3px 0 #111; }
.otag-photo svg { width: 100%; height: 100%; }
.otag-photo img { width: 100%; height: 100%; object-fit: cover; }
.otag-photo img[hidden] { display: none; }
.otag-team { font: 400 20px/1.05 var(--display); letter-spacing: -.02em; }
.otag-line { font: 600 12.5px/1.3 var(--body); display: grid; gap: 6px; justify-items: center; }
.otag-line kbd { font: 700 10px/1 var(--mono); border: 1.5px solid #111; border-radius: 5px; padding: 4px 6px; background: var(--tc); box-shadow: 0 2px 0 #111; }
.tag-side { display: grid; gap: 10px; align-content: start; padding-top: 56px; }
.tag-side p { margin: 0; }
.tag-side .btn { justify-self: start; font-size: 15px; min-height: 44px; }
.tag-side .btn:focus-within { outline: 3px solid var(--sky); outline-offset: 2px; }
.tag-note { font: 500 12.5px/1.4 var(--mono); color: var(--soft); }
@keyframes tagswing { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@media (prefers-reduced-motion: reduce) { .otag { animation: none; } }
@media (max-width: 560px) { .tag-row { grid-template-columns: 1fr; } .tag-side { padding-top: 0; text-align: center; justify-items: center; } .tag-side .btn { justify-self: center; } }
.nav a.yourdesk { box-shadow: inset 0 0 0 1.5px var(--dh-line); }
