:root { --k: #0a0a0a; --ink: #eef0f1; --dim: #a3a9ad; --line: #34383a; --display: 'Bagel Fat One', 'Arial Rounded MT Bold', system-ui, sans-serif; --mono: 'Martian Mono', ui-monospace, Menlo, monospace; --pad: clamp(16px, 3.2vw, 46px); }
* { box-sizing: border-box; margin: 0; }
html { background: var(--k); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { font: 400 14px/1.5 var(--mono); font-stretch: 75%; overflow-x: hidden; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
button, input { font: inherit; color: inherit; font-stretch: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* hero: air, tank, floor, tubes */
.hero { position: relative; min-height: max(740px, 100svh); display: flex; flex-direction: column; }
#hg { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.top, .under { position: relative; z-index: 1; padding: 0 var(--pad); }
.top { display: flex; align-items: baseline; gap: 12px clamp(20px, 4vw, 64px); flex-wrap: wrap; padding-top: 22px; padding-bottom: 20px; pointer-events: none; }
.top .nb { pointer-events: auto; }
.hook { font: 400 clamp(28px, 3.1vw, 46px)/1 var(--display); letter-spacing: -.01em; }
.ask { font-size: 16px; line-height: 2; color: var(--dim); }
.ask .in { color: var(--ink); white-space: nowrap; }
.ask .nb { width: 4.2em; }
.nb { background: #0a0a0a; border: 0; border-bottom: 2px solid #6c7275; border-radius: 0; padding: 1px 2px; text-align: center; font-size: 16px; font-weight: 600; min-height: 28px; color: var(--ink); }
.nb:hover { border-color: #fff; }
.slab { flex: 1 1 auto; min-height: 250px; }
.under { display: grid; grid-template-columns: minmax(300px, 30%) 1fr; gap: 0 clamp(20px, 3vw, 48px); padding-top: 30px; padding-bottom: 26px; }
.move { font: 400 clamp(84px, 9.4vw, 148px)/.86 var(--display); letter-spacing: -.02em; margin-left: -.04em; white-space: nowrap; }
.sub { font-size: 18px; margin: 12px 0 16px; }
.line { color: var(--dim); font-size: 15px; line-height: 1.75; } .line b { color: var(--ink); font-weight: 600; }
.run { display: flex; align-items: center; gap: 14px; margin-top: 16px; color: var(--dim); font-size: 13px; }
.run #clock { min-width: 7.6em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.run input { flex: 1; max-width: 190px; }
button { background: none; border: 2px solid #6c7275; border-radius: 99px; padding: 7px 16px; cursor: pointer; font-weight: 500; font-size: 14px; min-height: 40px; }
button:hover { background: var(--ink); color: var(--k); border-color: var(--ink); }
button[aria-pressed=true] { background: var(--ink); color: var(--k); border-color: var(--ink); }

.tubes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0 10px; align-items: start; }
.tube { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.glass { width: 46px; height: clamp(120px, 20vh, 190px); border: 2px solid var(--line); border-top: 0; border-radius: 0 0 23px 23px; cursor: ew-resize; touch-action: pan-y; }
.tube.drag .glass, .tube:hover .glass { border-color: #7b8285; }
.got { font-weight: 600; font-size: 15px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.tube label, .tube .lab { font-size: 13px; color: var(--dim); white-space: nowrap; }
.ctl { display: flex; align-items: baseline; justify-content: center; gap: 4px; font-size: 13px; color: var(--dim); margin-top: 2px; }
.ctl .nb { width: 4.4em; }
.tube input[type=range] { width: 100%; max-width: 124px; margin-top: 4px; }
.tube button { padding: 3px 12px; font-size: 13px; margin-top: 4px; min-height: 36px; }

input[type=range] { appearance: none; -webkit-appearance: none; background: transparent; height: 30px; cursor: ew-resize; touch-action: pan-y; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: #5a6063; }
input[type=range]::-moz-range-track { height: 2px; background: #5a6063; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; border: 0; background: radial-gradient(circle at 42% 34%, #fff 0 22%, #f1f3f4 23% 40%, #c5c8ca 41% 55%, #8b8f91 56% 68%, #4a4d4f 69% 80%, #1d1f20 81% 92%, #8b8f91 93%); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; border: 0; background: radial-gradient(circle at 42% 34%, #fff 0 22%, #f1f3f4 23% 40%, #c5c8ca 41% 55%, #8b8f91 56% 68%, #4a4d4f 69% 80%, #1d1f20 81% 92%, #8b8f91 93%); }

/* the rest */
.thin { padding: clamp(80px, 12vw, 170px) var(--pad) 0; }
h2 { font: 400 clamp(40px, 6.6vw, 104px)/.92 var(--display); letter-spacing: -.02em; max-width: 12em; }
.cap { color: var(--dim); font-size: 16px; margin-top: 16px; min-height: 1.5em; }
.stage { position: relative; } .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.therms { height: clamp(380px, 52vh, 520px); margin-top: 18px; }
.cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7, 1fr); }
.cols button { border: 0; border-radius: 0; padding: 0; background: none; color: inherit; display: flex; flex-direction: column; justify-content: space-between; align-items: center; min-width: 0; }
.cols button:hover b, .cols button[aria-pressed=true] b { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.cols b { font: 400 clamp(15px, 2vw, 30px)/1 var(--display); white-space: nowrap; position: absolute; transform: translateY(-100%); }
.cols i { font-style: normal; font-size: clamp(12px, 1.1vw, 16px); color: var(--dim); margin-top: auto; white-space: nowrap; line-height: 1.4; }
.cols button[aria-pressed=true] i { color: var(--ink); font-weight: 700; }
.plugs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.vessels { height: clamp(400px, 60vh, 600px); margin-top: 26px; }
.vlab { position: absolute; top: 0; width: 50%; display: flex; flex-direction: column; gap: 2px; align-items: center; text-align: center; pointer-events: none; }
.vlab.l { left: 0 } .vlab.r { right: 0 }
.vlab b { font: 400 clamp(24px, 3.4vw, 54px)/1 var(--display); white-space: nowrap; } .vlab span { white-space: pre-line; color: var(--dim); font-size: clamp(12px, 1.1vw, 15px); font-variant-numeric: tabular-nums; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-bottom: clamp(70px, 9vw, 130px); }
.how figure { display: flex; flex-direction: column; } .how canvas { width: 100%; height: clamp(230px, 26vw, 360px); display: block; }
.how figcaption { font: 400 clamp(20px, 2.1vw, 32px)/1.1 var(--display); padding: 14px 18px 0 0; max-width: 13em; }
footer { border-top: 2px solid var(--line); padding: 34px var(--pad) 46px; display: grid; gap: 14px; }
.fact { color: var(--dim); font-size: 13px; max-width: 92ch; line-height: 1.7; }
footer nav { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 12px; }
footer a, .fact button { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
footer nav a { border: 2px solid #6c7275; border-radius: 99px; padding: 8px 16px; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; font-weight: 500; }
footer nav a:hover { background: var(--ink); color: var(--k); }
.fact button { border: 0; padding: 0 4px; min-height: 0; font-size: 13px; }
.fact button:hover { background: none; color: #fff; }

@media (max-width: 860px) {
  .hero { min-height: 0; }
  .top { padding-top: 16px; padding-bottom: 14px; display: block; }
  .hook { font-size: clamp(27px, 8.1vw, 40px); margin-bottom: 8px; }
  .slab { flex: none; height: clamp(150px, 46vw, 300px); min-height: 0; }
  .under { display: flex; flex-direction: column; padding-top: 22px; gap: 0; }
  .tubes { order: -1; gap: 0; }
  .tube { width: 100%; }
  .glass { width: 30px; height: 96px; border-radius: 0 0 15px 15px; }
  .got { font-size: 12px; margin-top: 5px; }
  .tube label, .tube .lab { font-size: 12px; letter-spacing: -.02em; }
  .tube .ctl, .tube input[type=range], .tube .tg { display: none; }
  .out { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 12px; margin-top: 16px; }
  .move { font-size: clamp(62px, 20vw, 100px); }
  .sub { margin: 0 0 2px; font-size: 16px; line-height: 1.25; width: 5.6em; } .line { font-size: 14px; line-height: 1.5; width: 100%; } .sub + .line { margin-top: 12px; }
  .run { width: 100%; margin-top: 6px; } .run input { max-width: none; min-width: 0; }
  .ask { order: 3; font-size: 15px; line-height: 1.9; }
  .rows { display: grid; gap: 2px; margin-top: 8px; }
  .how { grid-template-columns: 1fr; gap: 34px; }
  .how canvas { height: 230px; }
  .vessels { height: 380px; }
  footer nav > * { flex: 1 1 100%; justify-content: center; text-align: center; }
}
.rows, .short { display: none; }
@media (max-width: 860px) {
  .rows { display: grid; } .short { display: inline; } .long { display: none; }
  .row { display: grid; grid-template-columns: 5.9em 1fr 6.6em; gap: 12px; align-items: center; min-height: 46px; border-top: 1px solid #202324; }
  .row label { font-size: 14px; } .row .ctl { margin: 0; justify-content: flex-end; } .row .ctl .nb { width: 4.4em; } .row .ctl span { width: 2.2em; text-align: left; } .row input[type=range] { width: 100%; height: 44px; }
  .row button { padding: 4px 12px; min-height: 38px; grid-column: 2 / -1; justify-self: end; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
