/* Lights Out: pure black, one idea per viewport, neon used only where Dumby acts. */
:root {
  --bg: #000;
  --panel: oklch(0.13 0.004 120);
  --raise: oklch(0.19 0.006 120);
  --line: oklch(0.22 0.006 120);
  --faint: oklch(0.31 0.008 120);
  --dim: oklch(0.68 0.01 115);
  --ink: oklch(0.96 0.008 110);
  --neon: #cbfb11;
  --on-neon: #000;
  --warn: oklch(0.7 0.19 35);
  --wm: url("/assets/wordmark.14d6692291.svg");
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --z-nav: 20;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--ink); scroll-behavior: smooth; }
body { font-family: var(--sans); font-stretch: 100%; background: var(--bg); overflow-x: clip; -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--neon); color: var(--on-neon); }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.display { font-weight: 800; font-stretch: 84%; letter-spacing: -.03em; line-height: .94; }
.display em { font-style: normal; color: var(--dim); }
.wrap { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

.wordmark {
  display: inline-block; aspect-ratio: 1528 / 388; background: currentColor;
  -webkit-mask: var(--wm) center / contain no-repeat; mask: var(--wm) center / contain no-repeat;
}
.owl-out { filter: drop-shadow(2px 0 0 var(--ink)) drop-shadow(-2px 0 0 var(--ink)) drop-shadow(0 2px 0 var(--ink)) drop-shadow(0 -2px 0 var(--ink)); }
.owl-out-thin { filter: drop-shadow(1px 0 0 var(--ink)) drop-shadow(-1px 0 0 var(--ink)) drop-shadow(0 1px 0 var(--ink)) drop-shadow(0 -1px 0 var(--ink)); }
.owl-box svg { display: block; width: 100%; height: 100%; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  background: var(--neon); color: var(--on-neon); font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 6px color-mix(in oklab, var(--neon) 16%, transparent); }
.btn:active { transform: translateY(0); box-shadow: 0 0 0 3px color-mix(in oklab, var(--neon) 24%, transparent); }
.btn.small { min-height: 36px; padding: 8px 16px; font-size: 14px; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-bottom: 16px;
  transition: background .3s;
}
.nav.scrolled { background: color-mix(in oklab, var(--bg) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav .home { display: flex; align-items: center; min-height: 44px; }
.nav .wordmark { height: 20px; color: var(--ink); }
.nav .links { display: flex; gap: 28px; align-items: center; font-size: 14px; color: var(--dim); }
.nav .links a:not(.btn) { padding: 10px 0; transition: color .2s; }
.nav .links a:not(.btn):hover { color: var(--ink); }

section { position: relative; }

/* Hero */
.hero {
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding-block: 96px 64px; overflow: hidden;
}
.hero-owl { width: min(36vh, 62vw); aspect-ratio: 1; }
.hero .wordmark.big { color: var(--neon); width: min(84vw, 620px, 62vh); margin-top: clamp(16px, 3vh, 36px); }
.hero h1 { font-weight: 500; font-size: clamp(21px, 2.3vw, 31px); letter-spacing: -.01em; line-height: 1.25; margin-top: clamp(20px, 3.4vh, 40px); }
.hero h1 span { color: var(--dim); }
.hero .btn { margin-top: clamp(24px, 4vh, 40px); }
.hero .floor {
  position: absolute; left: 50%; bottom: 0; width: 120vw; height: 40vh; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 100%, color-mix(in oklab, var(--neon) 8%, transparent), transparent 62%);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero .wordmark.big { animation: wipe 1.1s var(--ease) .35s both; }
  .hero h1 { animation: rise 0.9s var(--ease) .8s both; }
  .hero .btn { animation: rise 0.9s var(--ease) 1s both; }
}
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Statement */
.statement { padding-block: clamp(96px, 18vh, 200px); }
.statement p { font-size: clamp(40px, 6.4vw, 96px); max-width: 14ch; }
.statement .n { color: var(--neon); }

/* Demo */
.demo { padding-block: clamp(80px, 12vh, 140px); }
.demo h2 { font-size: clamp(38px, 5.2vw, 78px); max-width: 16ch; margin-bottom: clamp(40px, 6vh, 64px); }
.stage { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.stage-owl { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.stage-owl .owl-box { width: min(32vw, 360px); aspect-ratio: 1; }
.state { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--dim); min-height: 1.5em; }
.state::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--neon); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }

.thread { border: 1px solid var(--line); border-radius: 22px; background: var(--panel); height: 540px; display: flex; flex-direction: column; overflow: hidden; }
.thread-top { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.thread-top .av { width: 32px; height: 32px; flex-shrink: 0; }
.thread-top .name { font-weight: 700; font-size: 15px; }
.thread-top .sub { font-size: 13px; color: var(--dim); }
.thread-top .gym { margin-left: auto; font-size: 13px; color: var(--dim); }
.msgs { flex: 1; overflow: hidden; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; -webkit-mask: linear-gradient(transparent, #000 56px); mask: linear-gradient(transparent, #000 56px); }
.msg { max-width: 84%; font-size: 15px; line-height: 1.5; padding: 12px 16px; border-radius: 18px; }
.msg.anim { animation: rise .45s var(--ease) both; }
.msg.me { align-self: flex-end; background: var(--raise); border-bottom-right-radius: 6px; }
.msg.dumby { align-self: flex-start; border: 1px solid var(--faint); border-bottom-left-radius: 6px; }
.msg .who { display: block; font-size: 12px; font-weight: 700; color: var(--neon); margin-bottom: 4px; }
.msg ul { list-style: none; margin-top: 8px; display: grid; gap: 6px; }
.msg li { display: grid; grid-template-columns: 8px 1fr; gap: 10px; }
.msg li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--neon); margin-top: 8px; }
.msg li.warn::before { background: var(--warn); }
.msg .acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.msg .acts span { font-size: 13px; border: 1px solid var(--faint); border-radius: 999px; padding: 5px 12px; }
.msg .acts span.go { background: var(--neon); color: var(--on-neon); border-color: var(--neon); font-weight: 700; }
.dots { display: inline-flex; gap: 5px; padding: 6px 2px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); animation: dot 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.composer { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); }
.composer .field { flex: 1; min-width: 0; font-size: 15px; color: var(--dim); background: var(--raise); border-radius: 999px; padding: 11px 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer .field.typing { color: var(--ink); }
.composer .mic { width: 42px; height: 42px; border-radius: 50%; background: var(--neon); display: grid; place-items: center; flex-shrink: 0; }
.composer .mic svg { width: 17px; height: 17px; fill: var(--on-neon); }

/* Overnight */
.night { padding-block: clamp(80px, 14vh, 160px); }
.night-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.night .when { font-family: var(--mono); font-size: 14px; color: var(--dim); }
.night h2 { font-size: clamp(44px, 6.4vw, 96px); margin-top: 16px; }
.owl-sleep { width: min(26vw, 290px); aspect-ratio: 1; margin-top: 48px; position: relative; }
.zz { position: absolute; top: 12%; right: -6%; font-family: var(--mono); font-weight: 500; color: var(--neon); font-size: 24px; }
.zz span { position: absolute; opacity: 0; animation: zz 3.6s infinite; }
.zz span:nth-child(2) { animation-delay: 1.2s; font-size: 18px; } .zz span:nth-child(3) { animation-delay: 2.4s; font-size: 14px; }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 10px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(22px, -36px); } }
.log { list-style: none; border-top: 1px solid var(--line); }
.log li { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.log.armed li:not(.on) { opacity: .22; transform: translateX(-8px); }
.log time { font-family: var(--mono); font-size: 14px; color: var(--dim); padding-top: 3px; font-variant-numeric: tabular-nums; }
.log .what { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.4; }
.log .what small { display: block; color: var(--dim); font-size: 15px; line-height: 1.5; margin-top: 6px; }
.log li.wake .what { color: var(--neon); font-weight: 700; }
.night-foot { margin-top: 28px; color: var(--dim); font-size: 16px; max-width: 52ch; }
.night-foot b { color: var(--ink); font-weight: 600; }

/* Every screen */
.screens { padding-block: clamp(80px, 14vh, 160px); }
.screens h2 { font-size: clamp(36px, 3.9vw, 60px); max-width: 15ch; }
.side-l { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(32px, 5vh, 56px); }
.switch { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: clamp(28px, 5vw, 80px); align-items: stretch; }
.tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.tab { position: relative; display: grid; gap: 8px; text-align: left; padding: 18px 0 12px; border-bottom: 1px solid var(--line); min-height: 44px; }
.tab .t-name { font-weight: 800; font-stretch: 84%; font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -.02em; line-height: 1.05; color: var(--faint); transition: color .3s; }
.tab:hover .t-name { color: var(--dim); }
.tab[aria-selected="true"] .t-name { color: var(--ink); }
.tab .t-desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); color: var(--dim); font-size: 16px; line-height: 1.5; max-width: 38ch; }
.tab .t-desc > span { overflow: hidden; }
.tab[aria-selected="true"] .t-desc { grid-template-rows: 1fr; padding-bottom: 8px; }
.tab .bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--neon); transform: scaleX(0); transform-origin: left; }
.tab[aria-selected="true"] .bar { transform: scaleX(1); }
.switch.auto .tab[aria-selected="true"] .bar { animation: fill var(--cycle, 5200ms) linear both; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.screen-wrap { position: relative; padding-top: clamp(64px, 8vw, 104px); }
.perch { position: absolute; right: clamp(20px, 4vw, 48px); bottom: calc(100% - clamp(64px, 8vw, 104px) - 2px); width: clamp(72px, 8vw, 112px); aspect-ratio: 1; }
.screen { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); height: clamp(460px, 62vh, 600px); border: 1px solid var(--line); border-radius: 28px; background: var(--panel); overflow: hidden; }
.panel { grid-area: 1 / 1; min-height: 0; overflow: hidden; display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .5s; }
.panel.on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s; }
.cap-m { display: none; }

/* Web mock */
.m-web { width: 100%; max-width: 720px; max-height: 100%; border: 1px solid var(--faint); border-radius: 14px; display: grid; grid-template-rows: 40px 1fr; overflow: hidden; background: var(--bg); }
.m-web .bar-top { display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.m-web .bar-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.m-web .bar-top span { margin-left: 10px; }
.m-web .body { display: grid; grid-template-columns: minmax(0, 1fr) 270px; min-height: 0; }
.m-web table { width: 100%; border-collapse: collapse; font-size: 13px; align-self: start; }
.m-web th { text-align: left; font-weight: 500; color: var(--dim); padding: 12px 14px 8px; border-bottom: 1px solid var(--line); }
.m-web td { padding: 9px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.m-web td.d { color: var(--dim); font-variant-numeric: tabular-nums; }
.m-web tr.hit td { background: color-mix(in oklab, var(--warn) 12%, transparent); }
.m-web tr.hit td:first-child { font-weight: 600; }
.m-web .side { border-left: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.45; }
.m-web .side .hd { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.m-web .side .hd .owl-box { width: 22px; height: 22px; }
.m-web .side .u { align-self: flex-end; background: var(--raise); padding: 8px 11px; border-radius: 12px 12px 4px 12px; max-width: 90%; }
.m-web .side .d { border: 1px solid var(--faint); padding: 9px 11px; border-radius: 12px 12px 12px 4px; }
.m-web .side .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.m-web .side .acts span { font-size: 12px; border: 1px solid var(--faint); border-radius: 999px; padding: 4px 10px; }
.m-web .side .acts span.go { background: var(--neon); color: var(--on-neon); border-color: var(--neon); font-weight: 700; }

/* Phone mock */
#p-phone { place-items: start center; padding-top: clamp(32px, 6vh, 56px); }
.m-phone { width: min(290px, 100%); height: 600px; flex-shrink: 0; border: 2px solid var(--faint); border-radius: 44px; padding: 14px; display: flex; flex-direction: column; background: var(--bg); }
.m-phone .island { width: 84px; height: 24px; border-radius: 20px; background: var(--raise); margin: 0 auto 14px; flex-shrink: 0; }
.m-phone .who-top { text-align: center; font-size: 12px; color: var(--dim); margin-bottom: 12px; }
.m-phone .who-top b { display: block; color: var(--ink); font-size: 14px; }
.m-phone .b { font-size: 13px; line-height: 1.4; padding: 9px 12px; border-radius: 16px; max-width: 86%; margin-bottom: 8px; }
.m-phone .b.u { align-self: flex-end; background: var(--raise); border-bottom-right-radius: 5px; }
.m-phone .b.d { align-self: flex-start; border: 1px solid var(--faint); border-bottom-left-radius: 5px; }
.m-phone .b.d b { color: var(--neon); display: block; font-size: 11px; margin-bottom: 2px; }
.m-phone .wk { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: 12px; margin-bottom: 8px; display: grid; gap: 6px; }
.m-phone .wk .h { font-weight: 700; font-size: 13px; }
.m-phone .wk .r { display: flex; justify-content: space-between; gap: 8px; color: var(--dim); font-variant-numeric: tabular-nums; }
.m-phone .wk .r.sw { color: var(--ink); }
.m-phone .wk .r.sw em { font-style: normal; color: var(--on-neon); background: var(--neon); border-radius: 4px; padding: 0 5px; font-size: 11px; font-weight: 700; }

/* Watch mock */
.m-watch { position: relative; width: 210px; height: 250px; border-radius: 58px; border: 3px solid var(--faint); background: var(--bg); display: grid; place-items: center; text-align: center; }
.m-watch::before, .m-watch::after { content: ''; position: absolute; left: 20%; right: 20%; height: 90px; background: var(--raise); z-index: -1; }
.m-watch::before { top: -84px; border-radius: 16px 16px 0 0; } .m-watch::after { bottom: -84px; border-radius: 0 0 16px 16px; }
.m-watch .crown { position: absolute; right: -9px; top: 70px; width: 8px; height: 40px; border-radius: 4px; background: var(--faint); }
.m-watch .w-in { display: grid; gap: 6px; justify-items: center; }
.m-watch .w-kicker { font-size: 13px; color: var(--neon); font-weight: 600; }
.m-watch .w-big { font-size: 44px; font-weight: 800; font-stretch: 84%; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.m-watch .w-sub { font-size: 13px; color: var(--dim); max-width: 15ch; line-height: 1.35; }
.m-watch .w-btn { margin-top: 6px; font-size: 14px; font-weight: 700; background: var(--neon); color: var(--on-neon); padding: 7px 22px; border-radius: 999px; }

/* SMS mock */
.m-sms { width: 100%; max-width: 440px; display: grid; gap: 10px; }
.m-sms .from { font-size: 13px; color: var(--dim); text-align: center; margin-bottom: 6px; }
.m-sms .from b { color: var(--ink); font-weight: 600; }
.m-sms .s { font-size: 15px; line-height: 1.45; padding: 10px 14px; border-radius: 18px; max-width: 86%; }
.m-sms .s.in { background: var(--raise); border-bottom-left-radius: 5px; }
.m-sms .s.out { background: var(--neon); color: var(--on-neon); justify-self: end; border-bottom-right-radius: 5px; }
.m-sms .booked { justify-self: center; margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.m-sms .booked::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--neon); }

/* Voice mock */
.m-voice { width: 100%; max-width: 520px; display: grid; gap: 26px; justify-items: center; text-align: center; }
.wave { display: flex; gap: 5px; align-items: center; height: 84px; }
.wave i { width: 5px; border-radius: 5px; background: var(--ink); height: 20%; animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -.3s; } .wave i:nth-child(3n+1) { animation-delay: -.6s; } .wave i:nth-child(4n) { animation-delay: -.85s; background: var(--neon); }
@keyframes wave { 0%, 100% { height: 14%; } 50% { height: 100%; } }
.m-voice .q { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.35; max-width: 26ch; }
.m-voice .diff { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; text-align: left; display: grid; gap: 6px; font-size: 14px; }
.m-voice .diff .h { display: flex; justify-content: space-between; font-weight: 700; }
.m-voice .diff .h span { color: var(--dim); font-weight: 400; }
.m-voice .diff .row { display: flex; gap: 12px; align-items: baseline; font-variant-numeric: tabular-nums; }
.m-voice .diff s { color: var(--dim); }
.m-voice .diff .new { color: var(--neon); font-weight: 700; }
.m-voice .diff .note { color: var(--dim); font-size: 13px; }

/* Ledger */
.ledger { padding-block: clamp(80px, 12vh, 140px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ledger .when { font-size: clamp(18px, 1.6vw, 22px); color: var(--dim); }
.ledger .when b { color: var(--ink); font-weight: 600; }
.ledger p.big { font-weight: 700; font-stretch: 90%; font-size: clamp(30px, 4.2vw, 62px); letter-spacing: -.025em; line-height: 1.12; color: var(--dim); max-width: 24ch; margin-top: 18px; }
.ledger p.big b { color: var(--ink); font-weight: 800; }
.ledger p.big b.n { color: var(--neon); }
.ledger .foot { margin-top: 28px; color: var(--dim); font-size: 17px; max-width: 56ch; }

/* Final */
.final { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: clamp(96px, 16vh, 180px) clamp(72px, 10vh, 120px); }
.owl-hello { width: min(30vh, 54vw); aspect-ratio: 1; }
.final h2 { font-size: clamp(52px, 8vw, 96px); margin-top: 28px; }
.final h2 span { color: var(--neon); }
.final p { color: var(--dim); font-size: 18px; margin-top: 22px; max-width: 46ch; }
.final .btn { margin-top: 36px; font-size: 17px; padding: 16px 30px; min-height: 56px; }
.final .fine { margin-top: 16px; font-size: 14px; color: var(--dim); }
.final .fine a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* 404 */
.lost { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; padding-block: 64px; }
.lost-owl { width: min(32vh, 56vw); aspect-ratio: 1; }
.lost h1 { font-size: clamp(44px, 7vw, 88px); }
.lost p { color: var(--dim); font-size: 18px; max-width: 40ch; }

footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 28px calc(36px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: 14px; color: var(--dim); flex-wrap: wrap; }
footer .wordmark { height: 16px; color: var(--ink); }
footer .l { display: flex; align-items: center; gap: 14px; }
footer .r { display: flex; gap: 22px; align-items: center; }
footer .r a { padding: 10px 0; transition: color .2s; }
footer .r a:hover { color: var(--ink); }

/* Reveals only hide what is below the fold, and only once JS has armed them */
.reveal { transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.pending { opacity: 0; transform: translateY(28px); }

@media (max-width: 960px) {
  .switch { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .side-l { gap: 28px; }
  .tabs { flex-direction: row; border-top: 0; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; flex-shrink: 0; }
  .tab .t-name { font-size: 16px; font-stretch: 100%; font-weight: 700; letter-spacing: 0; color: var(--dim); }
  .tab[aria-selected="true"] { border-color: var(--ink); }
  .tab .t-desc, .tab .bar { display: none; }
  .cap-m { display: block; margin-top: 18px; color: var(--dim); font-size: 16px; min-height: 3em; }
  .m-web .body { grid-template-columns: 1fr; }
  .m-web .tbl { display: none; }
  .m-web .side { border-left: 0; }
}
@media (max-width: 860px) {
  .nav .links a:not(.btn) { display: none; }
  .stage { grid-template-columns: 1fr; }
  .stage-owl { flex-direction: row; justify-content: flex-start; }
  .stage-owl .owl-box { width: 92px; }
  .thread { height: 500px; }
  .night-grid { grid-template-columns: 1fr; }
  .owl-sleep { width: 150px; margin-top: 28px; }
}
@media (max-width: 520px) {
  .msg { font-size: 14px; max-width: 92%; }
  .thread-top .gym { display: none; }
  .log li { grid-template-columns: 76px 1fr; gap: 14px; }
  .screen { height: 480px; border-radius: 22px; }
  .panel { padding: 16px; }
  .m-phone { width: min(270px, 100%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.pending, .log li, .panel { opacity: 1; transform: none; transition: none; }
  .panel:not(.on) { opacity: 0; }
  .wave i, .zz span, .dots i, .state::before { animation: none; }
  .wave i { height: 60%; }
  .msg.anim { animation: none; }
}
