:root {
  --bg: #0b0b0a; --fg: #f0eee8; --mid: #b9b7b0; --dim: #96948d; --line: #3a3936; --hair: rgba(240,238,232,.09);
  --glass: #8fe3c8;
  --pad: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--line) var(--bg); scroll-padding-top: 72px; scroll-padding-bottom: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .dock { transition: opacity .2s; transform: translate(-50%, 0); } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.7 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  -webkit-font-smoothing: antialiased; caret-color: var(--glass); }
::selection { background: var(--glass); color: var(--bg); }
button, input { font: inherit; }
pre { font-family: inherit; }
a { color: var(--fg); text-underline-offset: 3px; text-decoration-color: var(--line); }
a:hover { text-decoration-color: var(--glass); }
:focus-visible { outline: 1px solid var(--glass); outline-offset: 3px; }
.nojs { max-width: 46ch; margin: 24px auto; padding: 16px; border: 1px solid var(--line); color: var(--mid); font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* top bar */
.top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px var(--pad); background: rgba(11,11,10,.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--hair); }
.mark { font-weight: 600; letter-spacing: .08em; text-decoration: none; white-space: nowrap; }
.mark span { color: var(--dim); font-weight: 500; }
.top nav { display: flex; gap: 20px; font-size: 12px; }
.top nav a { text-decoration: none; color: var(--mid); padding: 6px 0; }
.top nav a:hover { color: var(--fg); }

/* hero: top-aligned so the pitch column never moves while the captions change */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start;
  padding: clamp(20px, 3vh, 36px) var(--pad) 32px; max-width: 1280px; margin: 0 auto; }
.pitch { padding-top: clamp(24px, 9vh, 112px); }
h1 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.04; font-weight: 500; letter-spacing: -.035em; margin: 0 0 22px; text-wrap: balance; }
.lede { font-size: 15px; color: var(--mid); max-width: 46ch; margin: 0 0 28px; text-wrap: pretty; }
.lede strong { color: var(--fg); font-weight: 500; }
.asks { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.asks button, .askthis { background: none; border: 0; color: var(--mid); padding: 5px 0; cursor: pointer; text-align: left; font-size: 13px; }
.asks button::before, .askthis::before { content: '> ' / ''; color: var(--dim); }
.asks button:hover, .askthis:hover { color: var(--fg); } .asks button:hover::before, .askthis:hover::before { color: var(--glass); }
.askthis { display: inline-block; margin-top: 28px; font-style: italic; }
.askthis.asking { color: var(--fg); } .askthis.asking::before { color: var(--glass); }
form { display: flex; border: 1px solid var(--line); max-width: 440px; margin-bottom: 28px; }
form:focus-within { border-color: var(--glass); }
form input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--fg); font-size: 13px; padding: 11px 14px; outline: none; }
form input::placeholder { color: var(--dim); }
.btn { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: .16em; padding: 11px 15px; border: 1px solid var(--line); background: transparent;
  color: var(--fg); cursor: pointer; text-decoration: none; line-height: 1.2; transition: background .2s, color .2s, border-color .2s; }
.btn:not(:disabled):hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.solid:hover { background: var(--glass); border-color: var(--glass); color: var(--bg); }
.btn:disabled { opacity: .35; cursor: default; }
.btn[hidden] { display: none; }
form .btn { border: 0; border-left: 1px solid var(--line); }
.reach { display: flex; flex-wrap: wrap; gap: 10px; }

.tank { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; }
/* the view's height leaves room for readout, captions and controls inside one viewport */
.readout, .view { width: min(100%, 760px, calc((100svh - 320px) * 4 / 3)); }
.readout { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .2em; color: var(--dim); margin-bottom: 4px; min-width: 240px; }
.state { display: flex; align-items: center; gap: 9px; color: var(--fg); font-weight: 600; }
.state i, .dstate i { width: 7px; height: 7px; background: var(--fg); transition: background .3s; }
.tank.live .state i, .dock.live .dstate i { background: var(--glass); }
.view { position: relative; aspect-ratio: 4 / 3; min-width: 240px; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; z-index: 1; }
/* phones, during a call: the scene holds still; these layers move under and over it (compositor-only animation) */
.lite { position: absolute; inset: 0; pointer-events: none; overflow: hidden; contain: layout paint; }
#liteU { z-index: 0; } #liteO { z-index: 2; }
#caps { height: 76px; overflow: hidden; width: min(100%, 560px); display: flex; flex-direction: column; justify-content: flex-start; align-items: center; gap: 4px; text-align: center; margin-top: 12px; }
.you { font-size: 12px; color: var(--dim); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .you b { font-weight: 500; font-size: 11px; letter-spacing: .2em; color: var(--dim); margin-right: 8px; font-style: normal; }
.agent { font-size: 15px; line-height: 1.55; font-style: italic; color: var(--fg); text-wrap: balance; height: 3.1em; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.agent.hint { color: var(--dim); font-style: normal; font-size: 12px; letter-spacing: .04em; }
.controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 16px; min-height: 42px; }
.disclose { font-size: 11px; color: var(--dim); text-align: center; margin: 8px 0 0; max-width: none; }
.btn.talk { padding: 13px 22px; font-size: 12px; }
.btn.talk .mic { letter-spacing: 0; margin-right: 4px; }
.btn.talk:focus-visible { outline-offset: 4px; }
.seg { display: flex; border: 1px solid var(--line); } .seg .btn { border: 0; }
.btn.on { background: var(--fg); color: var(--bg); }
#notice { font-size: 11px; color: var(--dim); text-align: center; min-height: 18px; margin-top: 10px; max-width: 520px; }
#notice a { color: var(--fg); }

/* the voice follows you down the page */
.dock { position: fixed; z-index: 6; left: 50%; bottom: 16px; width: min(940px, calc(100% - 24px)); display: flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 16px; background: rgba(11,11,10,.94); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 32px rgba(0,0,0,.45); transform: translate(-50%, calc(100% + 32px)); opacity: 0; transition: transform .45s cubic-bezier(.16,1,.3,1), opacity .3s; }
.dock.on { transform: translate(-50%, 0); opacity: 1; }
.dock:not(.on) { visibility: hidden; transition: transform .45s cubic-bezier(.16,1,.3,1), opacity .3s, visibility 0s .45s; }
@media (pointer: coarse) { .dock { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(11,11,10,.98); } }
.dstate { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .2em; flex: none; }
.dcap { flex: 1; min-width: 0; font-size: 13px; font-style: italic; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcap.idle { color: var(--dim); }
.dock form { margin: 0; flex: 0 1 300px; max-width: none; }
.dock form input { padding: 9px 12px; }
.dock .btn { padding: 10px 12px; flex: none; }

/* sections */
main { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad) 40px; }
section { padding: 104px 0 0; }
.rule { display: block; overflow: hidden; white-space: pre; color: var(--dim); opacity: .6; font-size: 12px; line-height: 1; height: 14px; user-select: none; margin-bottom: 40px; }
h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; font-weight: 500; letter-spacing: -.02em; margin: 0 0 20px; max-width: 26ch; text-wrap: balance; }
p { color: var(--mid); margin: 0 0 16px; max-width: 64ch; text-wrap: pretty; }
strong { color: var(--fg); font-weight: 500; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 56px; margin-bottom: 28px; }
.intro p:first-child, .intro-one { font-size: 17px; color: var(--fg); line-height: 1.6; }
.intro-one { max-width: 62ch; margin-bottom: 28px; }

.fit { width: 100%; max-width: 900px; border-collapse: collapse; margin-top: 12px; font-size: 14px; line-height: 1.65; }
.fit th { text-align: left; font-size: 11px; font-weight: 500; letter-spacing: .2em; color: var(--dim); padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.fit td { vertical-align: top; padding: 16px 0; border-bottom: 1px solid var(--hair); color: var(--mid); }
.fit td:first-child { width: 34%; padding-right: 28px; color: var(--fg); font-weight: 500; }
.fit td:first-child::before { content: '/\\ ' / ''; color: var(--dim); font-weight: 400; }
.fit tr.gap td:first-child::before { content: '\\/ ' / ''; }
.fit tr.gap td:first-child::after { content: ' (honest gap)'; color: var(--dim); font-weight: 400; }

.soundings { margin: 12px 0 0; display: grid; font-size: 14px; max-width: 1080px; }
.sounding { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 6px 32px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.sounding .k { color: var(--fg); font-weight: 500; line-height: 1.4; }
.sounding .k small { display: block; font-size: 12px; font-weight: 400; color: var(--dim); margin-top: 2px; }
.bars { font-size: 13px; line-height: 1.75; white-space: pre; overflow: hidden; font-variant-numeric: tabular-nums; min-width: 0; }
.bars .tag { color: var(--dim); } .bars .was { color: var(--dim); } .bars .now { color: var(--fg); }
.bars .val { color: var(--fg); font-weight: 600; } .bars .was + .val { color: var(--mid); font-weight: 500; }
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 56px; margin-top: 64px; max-width: 1180px; }
.story .where { font-size: 11px; letter-spacing: .2em; color: var(--dim); margin: -4px 0 10px; }
.story h3 { font-size: 16px; font-weight: 500; margin: 0 0 8px; }
.story p { font-size: 14px; line-height: 1.65; margin: 0; }


.timeline { white-space: pre; overflow: hidden; color: var(--dim); font-size: 12px; margin: 8px 0 24px; }
.plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; max-width: 1080px; }
.plan h3 { font-size: 15px; font-weight: 500; margin: 0 0 12px; }
.plan ul { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.65; color: var(--mid); }
.plan li { padding-left: 2ch; text-indent: -2ch; margin-bottom: 10px; }
.plan li::before { content: '- ' / ''; color: var(--dim); }

.flow { list-style: none; margin: 12px 0 0; padding: 28px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr) auto) minmax(0, 1fr); gap: 0 18px; align-items: start; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); max-width: 1180px; }
.flow .step b { display: block; font-weight: 500; color: var(--fg); margin-bottom: 8px; white-space: nowrap; }
.flow .step span { display: block; font-size: 13px; line-height: 1.55; color: var(--mid); text-wrap: pretty; }
.flow .arr { color: var(--dim); white-space: nowrap; padding-top: 1px; }

.close { padding-bottom: 40px; }
.close h2 { font-size: clamp(28px, 3.4vw, 46px); max-width: 20ch; }
.bottle { white-space: pre; overflow: hidden; color: var(--dim); font-size: 12px; line-height: 1.35; margin: 36px 0 6px; user-select: none; }
.bottle .q { color: var(--mid); } .bottle .q.new { color: var(--fg); } .bottle .cork { color: var(--mid); } .bottle .sea { opacity: .6; }
.bottle .cell { display: inline-block; overflow: hidden; vertical-align: top; white-space: pre; }
.bottle-note { font-size: 12px; color: var(--dim); margin: 0 0 22px; }
.school { white-space: pre; color: var(--dim); font-size: 12px; line-height: 1.4; margin: 40px 0 0; user-select: none; overflow: hidden; height: 3em; }
footer { max-width: 1280px; margin: 0 auto; padding: 24px var(--pad) 96px; border-top: 1px solid var(--hair); font-size: 11px; color: var(--dim); }

@media (max-width: 900px), (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  /* phones (and big phones in landscape): name and headline first, then the view, then the rest of the pitch */
  .hero { grid-template-columns: 1fr; padding-top: 20px; gap: 0; }
  .pitch { display: contents; }
  h1 { order: -2; font-size: clamp(30px, 8.5vw, 40px); margin-bottom: 12px; }
  .tank { order: -1; margin-bottom: 36px; }
  .readout, .view { width: min(100%, 480px); }
  .view { aspect-ratio: 1 / 1; }
  #caps { margin-top: 14px; height: 72px; }
  .intro, .stories, .plan { grid-template-columns: 1fr; } .stories { gap: 36px; margin-top: 48px; } .plan { gap: 28px; }
    .flow { grid-template-columns: 1fr; gap: 6px; } .flow .arr { padding: 0 0 0 2ch; } .flow .arr::before { content: '|'; display: block; } .flow .arr { font-size: 0; } .flow .arr::before { font-size: 14px; }
  .sounding { grid-template-columns: 1fr; gap: 8px; }
  .fit td { display: block; width: auto !important; padding: 2px 0; border: 0; } .fit td:first-child { padding-top: 16px; }
  .fit tr { display: block; border-bottom: 1px solid var(--hair); padding-bottom: 14px; } .fit thead { display: none; }
  section { padding-top: 80px; } .top nav { gap: 14px; } .top nav .wide { display: none; }
  .dock { gap: 8px; padding: 8px; flex-wrap: wrap; bottom: 10px; }
  .dock .dcap { order: -1; flex-basis: 100%; padding: 2px 4px 0; }
  .dock .dstate { display: none; }
  .dock form { flex: 1 1 auto; }
  .dock .up { display: none; }
  html { scroll-padding-bottom: 124px; }
}
/* short landscape phones: back to a wide view, with the chrome above it trimmed so the view fits the height
   (top bar ~52px + hero padding 8 + headline ~34 + readout ~22 + breathing room) */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px), (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  .hero { padding-top: 8px; }
  h1 { font-size: 26px; margin-bottom: 6px; }
  .readout, .view { width: min(100%, calc((100svh - 130px) * 4 / 3)); }
  .view { aspect-ratio: 4 / 3; }
}
