/* guppyos.com layout + components. Colours come from tokens.css only (var(--…)). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
code, pre, kbd { font-family: var(--mono); font-size: .9em; }
:not(pre) > code { background: var(--band); border: 1px solid var(--line-soft); padding: .08em .35em; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: calc(var(--measure) + 2 * var(--pad)); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 700; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--page); border-bottom: 1px solid var(--line-soft); }
.site-header::after { content: ""; position: absolute; inset: 0; box-shadow: var(--header-shadow); opacity: 0; transition: opacity .3s ease; pointer-events: none; z-index: -1; }
.site-header.scrolled::after { opacity: 1; }
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: color-mix(in srgb, var(--page) 86%, transparent); backdrop-filter: blur(8px); }
}
.site-header .wrap { display: flex; align-items: center; gap: 12px 24px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.brand img { width: 36px; height: 36px; image-rendering: pixelated; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-left: auto; padding: 0; list-style: none; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 2px; }
.nav a:not(.btn) { position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 760px) {
  .site-header { position: static; }
  .nav { margin-left: 0; width: 100%; gap: 2px 14px; }
  .nav .btn { margin-left: auto; }
}

/* buttons */
.btn { position: relative; transition: transform .18s cubic-bezier(.2,.8,.2,1), border-color .18s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; box-shadow: 0 6px 22px var(--glow), 0 0 0 4px var(--glow); opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary:hover::after { opacity: 1; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.nav .btn { min-height: 38px; padding: 6px 16px; font-size: .95rem; color: var(--on-accent); text-decoration: none; }
.nav .btn:hover { color: var(--on-accent); text-decoration: none; }
.cta-pair { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* bridge hero (always dark) */
.bridge { background: var(--bridge); color: var(--bridge-ink); }
.bridge a:not(.btn) { color: var(--bridge-accent); }
.bridge .btn-ghost { color: var(--bridge-ink); border-color: var(--bridge-line); }
.bridge .btn-ghost:hover { border-color: var(--bridge-muted); }
.bridge .btn-primary { background: var(--bridge-accent); border-color: var(--bridge-accent); color: var(--bridge); }
.bridge :focus-visible { outline-color: var(--bridge-accent); }
.bridge :not(pre) > code { background: var(--bridge-2); border-color: var(--bridge-line); color: var(--bridge-ink); }
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 5fr 6fr; } }
.hero-logo { width: 96px; height: 96px; image-rendering: pixelated; margin-bottom: 16px; }
.eyebrow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 600 .82rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.bridge .eyebrow { color: var(--bridge-muted); }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font: 700 .8rem/1.2 var(--mono); letter-spacing: 0; text-transform: none; }
.bridge .badge { background: var(--brand-maroon); color: var(--brand-gold); }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 46ch; }
.bridge .lede { color: var(--bridge-ink); }
.hero-media { position: relative; }
.note { font-size: .9rem; color: var(--muted); }
.bridge .note { color: var(--bridge-muted); }

/* chapters */
.chap { padding: 80px 0; }
.chap.band { background: var(--band); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.chap-head { max-width: 760px; margin-bottom: 36px; }
.chap-head p { font-size: 1.1rem; color: var(--ink-2); }
.kicker { font: 700 .8rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent-strong); margin-bottom: 12px; display: block; }
.split { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split.flip > :first-child { order: 2; }
}
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 12px; border-radius: 3px; background: var(--accent); }

/* stats */
.proof { padding: 28px 0; border-top: 1px solid var(--bridge-line); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.stat { background: var(--bridge-2); border: 1px solid var(--bridge-line); border-radius: var(--radius); padding: 18px 20px; }
.stat b { font-variant-numeric: tabular-nums; display: block; font: 800 1.6rem/1.15 var(--font); color: var(--bridge-accent); margin-bottom: 6px; }
.stat span { color: var(--bridge-ink); font-size: .95rem; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chip { font: 600 .95rem/1 var(--mono); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; }
.chip.accent { background: var(--accent-soft); border-color: var(--accent); }

/* cards */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid.c2, .grid.c3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid.c3 { grid-template-columns: repeat(3, 1fr); } }
.card { transition: transform .25s cubic-bezier(.2,.8,.2,1); background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; font: 700 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-strong); margin-bottom: 10px; }

/* screenshots + placeholders */
.shot { margin: 0; }
.shot img, .shot .ph { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); }
.shot img.pixel { image-rendering: pixelated; }
.shot figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.ph { display: grid; place-items: center; aspect-ratio: 16 / 9; width: 100%; color: var(--muted); font: 600 .85rem/1.3 var(--mono); text-align: center; padding: 16px;
  background: repeating-linear-gradient(135deg, var(--placeholder-a) 0 12px, var(--placeholder-b) 12px 24px); }

/* terminal / code */
pre { background: var(--bridge); color: var(--bridge-ink); border-radius: var(--radius-sm); padding: 16px 18px; overflow-x: auto; line-height: 1.5; border: 1px solid var(--bridge-line); }
pre code { background: none; border: 0; padding: 0; font-size: .88rem; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; position: relative; padding-right: 36px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font: 500 1.5rem/1 var(--mono); color: var(--accent-strong); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] p { animation: faq-in .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }

/* closing CTA */
.closing { text-align: center; padding: 88px 0 0; position: relative; overflow: hidden; }
.closing .wrap { position: relative; z-index: 1; }
.closing .cta-pair { justify-content: center; }
.closing .lede { margin: 0 auto 20px; }

/* prose pages (blog posts, releases, docs) */
.page-head { padding: 56px 0 24px; }
.page-head p { color: var(--ink-2); font-size: 1.1rem; max-width: 60ch; }
.prose { font-size: 1.06rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .45em; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--accent); color: var(--ink-2); }
.prose img { border-radius: var(--radius-sm); border: 1px solid var(--line); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.meta { font: 500 .88rem/1.4 var(--mono); color: var(--muted); }
.post-hero { margin: 8px 0 32px; }
.release { padding: 28px 0; border-top: 1px solid var(--line); }
.release:first-of-type { border-top: 0; }
.release h2 { font-size: 1.5rem; margin-bottom: .2em; }
.release h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.posts { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.post-card a { color: var(--ink); text-decoration: none; }
.post-card a:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.post-card .meta { margin-bottom: 8px; display: block; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 12px 0 0; list-style: none; }
.tags li { font: 600 .75rem/1 var(--mono); padding: 5px 9px; border-radius: 999px; background: var(--band); border: 1px solid var(--line-soft); color: var(--ink-2); }
.linklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.linklist a { font-weight: 700; }
.linklist span { display: block; color: var(--muted); font-size: .95rem; }

/* footer */
.site-footer { background: var(--bridge); color: var(--bridge-muted); padding: 48px 0 32px; margin-top: 0; font-size: .92rem; }
.site-footer a { color: var(--bridge-ink); }
.site-footer a:hover { color: var(--bridge-accent); }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; margin-bottom: 32px; }
.foot-grid h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--bridge-muted); margin-bottom: 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-legal { border-top: 1px solid var(--bridge-line); padding-top: 20px; display: grid; gap: 6px; }
.foot-legal p { margin: 0; }
.site-footer :focus-visible { outline-color: var(--bridge-accent); }

@media (max-width: 600px) {
  :root { --pad: 16px; }
  body { font-size: 16px; }
  .chap { padding: 56px 0; }
  .hero { padding: 40px 0 40px; }
}
/* ---------- motion (transform + opacity only; everything is visible and static with JS off;
   all of it is switched off under prefers-reduced-motion below) ---------- */

/* the story tint: fixed layers behind the page, cross-faded by site.js from the chapter in view */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.sky i { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.sky i:nth-child(1) { background: var(--sky-1); }
.sky i:nth-child(2) { background: var(--sky-2); }
.sky i:nth-child(3) { background: var(--sky-3); }
.sky i.on { opacity: 1; }
.chap.band { background: color-mix(in srgb, var(--band) 82%, transparent); }

/* scroll reveals: site.js adds .rv only to blocks that start below the fold, then .in when seen */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--rv-i, 0) * 60ms); }
.rv.in { opacity: 1; transform: none; }
.card:hover { transform: translateY(-3px); }
.rv.in.card:hover { transform: translateY(-3px); }

/* hero: starfield, word rise, glint, CTA pulse */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; }
.stars { position: absolute; inset: 0; pointer-events: none; }
.stars i { position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 160px); }
.stars i:nth-child(1) { background:
  radial-gradient(1.5px 1.5px at 20px 30px, var(--star), transparent 2px),
  radial-gradient(1px 1px at 120px 90px, var(--star), transparent 2px),
  radial-gradient(1px 1px at 190px 20px, var(--star), transparent 2px),
  radial-gradient(1.5px 1.5px at 70px 140px, var(--star), transparent 2px);
  background-size: 220px 160px; opacity: .55; animation: drift 60s linear infinite; }
.stars i:nth-child(2) { background:
  radial-gradient(2px 2px at 60px 50px, var(--star-2), transparent 3px),
  radial-gradient(1.5px 1.5px at 260px 120px, var(--star), transparent 3px),
  radial-gradient(1.5px 1.5px at 170px 150px, var(--star), transparent 3px);
  background-size: 320px 160px; animation: drift 38s linear infinite, twinkle 3.6s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateY(-160px); } }
@keyframes twinkle { from { opacity: .25; } to { opacity: .9; } }

.rise .w { display: inline-block; animation: word-up .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 55ms); }
@keyframes word-up { from { opacity: 0; transform: translateY(.45em); } }
.glint { position: relative; display: inline-block; overflow: hidden; color: var(--bridge-accent); padding: 0 .04em; margin: 0 -.04em; vertical-align: bottom; }
.glint::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, var(--glint), transparent); mix-blend-mode: overlay; transform: translateX(-100%) skewX(-12deg); animation: glint 6s 1.2s ease-in-out infinite; pointer-events: none; }
@keyframes glint { 0% { transform: translateX(0) skewX(-12deg); } 22%, 100% { transform: translateX(520%) skewX(-12deg); } }
.pulse::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid var(--bridge-accent); opacity: 0; animation: ring 3.2s 1.5s ease-out infinite; pointer-events: none; }
@keyframes ring { 0% { opacity: .7; transform: scale(1); } 45%, 100% { opacity: 0; transform: scale(1.18, 1.45); } }

/* the live bridge */
.live { position: relative; width: 100%; max-width: 520px; margin: 0 auto; container-type: inline-size; }
.live-room { width: 100%; height: auto; }
.live > * { position: absolute; }
.live > .live-room { position: static; }
/* phones: a cropped peek of the bridge (captain's deck, scene y 128-428 of 772) above the headline.
   Fixed aspect box, so no layout shift; the crop is a static transform. */
@media (max-width: 600px) {
  .hero-logo { display: none; }
  .hero-grid { gap: 22px; }
  .hero-media { order: -1; width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 580 / 300; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent); mask-image: linear-gradient(to bottom, black 80%, transparent); }
  .hero-media .live { position: absolute; top: 0; left: 0; right: 0; transform: translateY(-16.6%); }
}
.led { width: 1.4%; aspect-ratio: 1; margin: -.7% 0 0 -.7%; border-radius: 50%; background: var(--led); box-shadow: 0 0 6px 2px var(--led-glow); opacity: .15; animation: led 2.4s var(--d) ease-in-out infinite; }
@keyframes led { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
.mail { width: 4.2%; aspect-ratio: 4 / 3; margin: -1.6% 0 0 -2.1%; animation: mail-x 15s var(--d) linear infinite; }
.mail i { position: absolute; inset: 0; background: linear-gradient(to bottom right, transparent calc(50% - 1px), var(--mail-line) 50%, transparent calc(50% + 1px)) left top / 50% 60% no-repeat, linear-gradient(to bottom left, transparent calc(50% - 1px), var(--mail-line) 50%, transparent calc(50% + 1px)) right top / 50% 60% no-repeat, var(--mail); border: 1px solid var(--mail-line); border-radius: 1px; opacity: 0; animation: mail-y 15s var(--d) infinite; }
@keyframes mail-x { 0% { transform: translate(0, 0); } 11%, 100% { transform: translate(var(--dx), var(--dy)); } }
@keyframes mail-y {
  0% { opacity: 0; transform: translateY(0) scale(.6); animation-timing-function: cubic-bezier(.2,.7,.4,1); }
  1.5% { opacity: 1; transform: translateY(-2cqw) scale(1); }
  5.5% { opacity: 1; transform: translateY(-7cqw) scale(1.1); animation-timing-function: cubic-bezier(.6,0,.8,.3); }
  10% { opacity: 1; transform: translateY(0) scale(1); }
  12%, 100% { opacity: 0; transform: translateY(0) scale(.6); }
}
.bub { width: 0; height: 0; }
.bub span { position: absolute; bottom: 0; left: 0; transform: translateX(-50%); white-space: nowrap; font: 600 clamp(9px, 2.3cqw, 13px)/1.2 var(--font); background: var(--bubble); color: var(--bubble-ink); border: 2px solid var(--bubble-line); border-radius: 8px; padding: .35em .6em; opacity: 0; animation: bub 18s var(--d) cubic-bezier(.2,.8,.2,1) infinite; transform-origin: 50% 100%; }
.bub.l span { transform: translateX(-12%); transform-origin: 12% 100%; }
.bub.r span { transform: translateX(-88%); transform-origin: 88% 100%; }
@keyframes bub { 0% { opacity: 0; scale: .5; translate: 0 4px; } 2.5%, 14% { opacity: 1; scale: 1; translate: 0 0; } 16.5%, 100% { opacity: 0; scale: .8; translate: 0 -4px; } }
.walker { width: 5.52%; aspect-ratio: 1; }
.walk-x { position: absolute; inset: 0; animation: patrol 18s linear infinite; }
@keyframes patrol { 0%, 6% { transform: translateX(0); } 44%, 56% { transform: translateX(56.9cqw); } 94%, 100% { transform: translateX(0); } }

/* crew sprites: crew.png is 3 looks x 3 rows (front, left, right) */
.mate { display: block; position: relative; width: 100%; aspect-ratio: 1; }
.mate i { position: absolute; inset: 0; background: url(/assets/img/crew.e02d56d7.png) no-repeat; background-size: 300% 300%; image-rendering: pixelated; opacity: 0; }
.mate .f { background-position: calc(var(--c) * 50%) 0; opacity: 1; }
.mate .l { background-position: calc(var(--c) * 50%) 50%; }
.mate .r { background-position: calc(var(--c) * 50%) 100%; }
/* the named crew: looks.png is 7 TES presets x the same 3 rows; --c picks the preset, 0-6 */
.mate.pre i { background-image: url(/assets/img/looks.be6f416d.png); background-size: 700% 300%; }
.mate.pre .f { background-position: calc(var(--c) * 100% / 6) 0; }
.mate.pre .l { background-position: calc(var(--c) * 100% / 6) 50%; }
.mate.pre .r { background-position: calc(var(--c) * 100% / 6) 100%; }
.stroll { animation: hop .36s ease-in-out infinite alternate; }
.stroll .f { animation: face-f 18s linear infinite; }
.stroll .r { animation: face-r 18s linear infinite; }
.stroll .l { animation: face-l 18s linear infinite; }
@keyframes hop { to { transform: translateY(-7%); } }
@keyframes face-f { 0%, 6%, 44%, 56%, 94%, 100% { opacity: 1; } 6.01%, 43.99%, 56.01%, 93.99% { opacity: 0; } }
@keyframes face-r { 0%, 6% { opacity: 0; } 6.01%, 43.99% { opacity: 1; } 44%, 100% { opacity: 0; } }
@keyframes face-l { 0%, 56% { opacity: 0; } 56.01%, 93.99% { opacity: 1; } 94%, 100% { opacity: 0; } }

/* crew parade on a TES-grey deck */
.deck { position: relative; display: flex; justify-content: space-around; align-items: flex-end; gap: 8px; margin: 40px 0 36px; padding: 0 8px 18px; overflow: hidden; border-radius: var(--radius-sm); }
.deck::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 44px; background: repeating-linear-gradient(90deg, var(--deck) 0 46px, var(--deck-line) 46px 48px); border-bottom: 6px solid var(--deck-edge); border-radius: var(--radius-sm); }
.crew { position: relative; display: grid; justify-items: center; gap: 6px; width: 96px; }
.crew .mate { width: 96px; }
.crew b { font: 700 .82rem/1 var(--mono); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; white-space: nowrap; position: relative; }
.deck .mate { animation: bob 2.4s calc(var(--i) * .3s) ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-3px); } }
.deck.arm .crew { transform: translateX(-70vw); }
.deck.arm .mate .f { opacity: 0; }
.deck.arm .mate .r { opacity: 1; }
.deck.arm.in .crew { animation: walk-in 1.6s calc(var(--i) * .18s) cubic-bezier(.3,.6,.4,1) both; }
.deck.arm.in .mate { animation: hop .2s ease-in-out 8 alternate, bob 2.4s calc(1.8s + var(--i) * .3s) ease-in-out infinite alternate; }
.deck.arm.in .mate .r { animation: face-out 1.6s calc(var(--i) * .18s) step-end both; }
.deck.arm.in .mate .f { animation: face-in 1.6s calc(var(--i) * .18s) step-end both; }
@keyframes walk-in { from { transform: translateX(-70vw); } to { transform: none; } }
@keyframes face-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes face-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 600px) { .crew, .crew .mate { width: 60px; } .crew b { font-size: .7rem; padding: 4px 6px; } .deck::before { height: 30px; } }

/* terminal card that types */
.term { background: var(--term); color: var(--term-ink); border: 1px solid var(--bridge-line); border-radius: var(--radius-sm); padding: 0 18px 14px; font: 500 .88rem/1.7 var(--mono); box-shadow: var(--shadow); margin-top: 20px; overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 6px; margin: 0 -18px 10px; padding: 9px 14px; border-bottom: 1px solid var(--bridge-line); color: var(--term-muted); font-size: .75rem; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--bridge-line); }
.term-bar i:first-child { background: var(--brand-maroon); }
.term-bar i:nth-child(2) { background: var(--term-accent); }
.term-bar span { margin-left: 8px; }
.term p { margin: 0; white-space: pre-wrap; }
.term .pr { color: var(--term-accent); }
.term .out { color: var(--term-muted); }
.caret { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: var(--term-ink); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.term.typing .ch { opacity: 0; }
.term.typing .ch.on { opacity: 1; }
.term.typing p.out, .term.typing p.cur { opacity: 0; transform: translateY(4px); transition: opacity .3s ease, transform .3s ease; }
.term.typing p.out.on, .term.typing p.cur.on { opacity: 1; transform: none; }

/* ship-time chip (built by site.js; fixed, so it never shifts layout) */
.shipclock { position: fixed; left: 16px; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px; border-radius: 12px; background: var(--term); color: var(--term-ink); border: 1px solid var(--bridge-line); font: 600 .78rem/1 var(--mono); letter-spacing: .04em; box-shadow: var(--shadow); overflow: hidden; pointer-events: none; transition: opacity .4s ease, transform .4s cubic-bezier(.2,.8,.2,1); }
.shipclock.hide, .shipclock.away { opacity: 0; transform: translateY(12px); }
.shipclock b { color: var(--term-accent); font-variant-numeric: tabular-nums; }
.shipclock span { display: inline-block; text-transform: uppercase; }
.shipclock.flip span, .shipclock.flip b { animation: flip .45s cubic-bezier(.2,.8,.2,1); }
@keyframes flip { from { opacity: 0; transform: translateY(8px); } }
.shipclock i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--term-accent); transform: scaleX(0); transform-origin: left; }

/* off-shift finale */
.warp { position: absolute; inset: 0; pointer-events: none; }
.warp i { position: absolute; left: 0; width: 22%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--streak)); transform: translateX(-30vw); animation: warp var(--s) var(--d) cubic-bezier(.5,0,.8,.4) infinite; }
@keyframes warp { 0% { transform: translateX(-30vw) scaleX(.3); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateX(130vw) scaleX(1.4); opacity: 0; } }
.speck { width: 96px; height: 96px; margin: 0 auto 20px; image-rendering: pixelated; animation: float 5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
.crewline { position: relative; display: flex; justify-content: center; gap: clamp(4px, 2vw, 28px); margin-top: 56px; padding-bottom: 20px; }
.crewline::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: var(--bridge-2); border-top: 2px solid var(--bridge-line); }
.crewline .mate { width: clamp(40px, 8vw, 72px); }
.bob0 { animation: bob 1.8s ease-in-out infinite alternate; }
.bob1 { animation: bob 2.2s .4s ease-in-out infinite alternate; }
.bob2 { animation: bob 2s .9s ease-in-out infinite alternate; }

/* phones only (desktop is frozen): every chapter keeps something alive, as on a phone the hero
   is soon gone. A status LED on the kicker, screenshots that drift a few px, bullets that pop in
   with their line (site.js reveals .ticks lines only at this width). */
@media (max-width: 760px) {
.kicker::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-radius: 2px; background: var(--accent); vertical-align: middle; animation: led 2.4s ease-in-out infinite; }
@keyframes led { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.chap .shot img { animation: shot-drift 7s ease-in-out infinite alternate; }
.chap .split .shot img { animation-delay: -3s; }
@keyframes shot-drift { from { transform: translateY(0); } to { transform: translateY(-6px); } }
.ticks li.rv::before { transform: scale(0) rotate(-45deg); transition: transform .45s cubic-bezier(.3,1.6,.5,1); transition-delay: calc(var(--rv-i, 0) * 60ms + 200ms); }
.ticks li.rv.in::before { transform: none; }
}

/* sections out of view pause their loops (site.js toggles .paused) */
.paused, .paused * , .paused *::before, .paused *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
  .deck.arm .crew { transform: none; }
  .deck.arm .mate .f { opacity: 1; }
  .deck.arm .mate .r, .mail i, .bub span { opacity: 0; }
  .bub.still span { opacity: 1; }
  .led { opacity: .8; }
  .shipclock { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- the Guppy Blob (home #blob): on the always-dark bridge, like the app's overlay over a desktop ---------- */
.blob-sec { padding: 64px 0 72px; border-top: 1px solid var(--bridge-line); }
.blob-sec h2 { color: var(--bridge-ink); }
.blob-sec .kicker { color: var(--bridge-accent); }
.blob-lede { font-size: 1.15rem; color: var(--bridge-ink); max-width: 52ch; }
.blob-sec .ticks li { color: var(--bridge-ink); }
.blob-sec .ticks li::before { background: var(--blob-head); }
.blob-privacy { color: var(--bridge-ink); border-left: 3px solid var(--blob-head); padding: 4px 0 4px 14px; margin: 18px 0 22px; max-width: 56ch; }
.blob-sec .note { color: var(--bridge-muted); margin-top: 14px; }
.blob-sec kbd, .blob-stage kbd { display: inline-block; padding: 1px 7px; border: 1px solid var(--bridge-line); border-bottom-width: 2px; border-radius: 6px; background: var(--bridge-2); color: var(--bridge-ink); font-size: .85em; line-height: 1.5; }
.blob-stage { margin: 0; display: grid; justify-items: center; gap: 18px; }
.blob-ring { --box: 340px; --r: calc(var(--box) * .347); position: relative; width: var(--box); height: var(--box); }
.blob-track { position: absolute; left: 50%; top: 50%; width: calc(var(--box) * .694); height: calc(var(--box) * .694); transform: translate(-50%, -50%); border-radius: 50%; border: 1.5px dashed var(--blob-track-line); background: var(--blob-track); }
.blob-orbit { position: absolute; inset: 0; animation: blob-ring-in 160ms ease-out; }
.blob-ring:not(.is-open) .blob-orbit { display: none; }
@keyframes blob-ring-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
.blob-slot { position: absolute; border: 0; padding: 0; cursor: pointer; font: inherit; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; display: grid; place-items: center; border-radius: 50%; background: var(--blob-slot); color: var(--blob-slot-ink); box-shadow: var(--blob-shadow); transform: rotate(var(--a)) translate(var(--r)) rotate(calc(-1 * var(--a))); }
.blob-slot svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.blob-slot.is-close { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: var(--blob-close); color: var(--blob-close-ink); }
.blob-slot.is-off { background: var(--blob-off); color: var(--blob-off-ink); box-shadow: none; cursor: not-allowed; }
.blob-slot.is-active { background: var(--blob-eye); color: var(--blob-head); }
.blob-slot .ic-on, .blob-slot .ic-off { display: contents; }
.blob-slot.is-active .ic-off, .blob-slot:not(.is-active) .ic-on { display: none; }
.blob-slot:focus-visible, .blob-core:focus-visible { outline: 2px solid var(--blob-head); outline-offset: 3px; }
.blob-toast { position: absolute; top: 100%; left: 50%; margin-top: 6px; transform: translateX(-50%); white-space: nowrap; font: 600 11px/1.4 var(--mono); padding: 3px 8px; border-radius: 10px; background: var(--blob-toast); color: var(--blob-toast-ink); pointer-events: none; }
.blob-toast:empty { display: none; }
.blob-slot.is-soon { opacity: .55; }
.blob-core { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.blob-core.is-shy { --blob-head: var(--blob-head-shy); }
.blob-face { width: 100%; height: 100%; filter: var(--blob-face-shadow); position: relative; }
.blob-face { --mo-head: var(--blob-head); --mo-eye: var(--blob-eye); }
.blob-face .bh { fill: var(--blob-head); }
.blob-face .be { fill: var(--blob-eye); }
/* the eyes follow the pointer (assets/js/blob.js); 3 viewBox units, inside blobatar's 1.5 to 4 */
.blob-core .mo-eyes { --mo-track-travel: 3px; }
.blob-stage figcaption { color: var(--bridge-muted); font: 600 .85rem/1 var(--mono); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .blob-orbit { animation: none; } }
@media (max-width: 420px) { .blob-ring { --box: 288px; } .blob-slot { width: 52px; height: 52px; margin: -26px 0 0 -26px; } .blob-slot.is-close { width: 40px; height: 40px; margin: -20px 0 0 -20px; } }
.blob-card { background: var(--bridge); border-radius: var(--radius); padding: 28px 16px; }
.guide, .prose .guide { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 16px; }
.guide-step h2, .prose .guide-step h2 { margin-top: 0; font-size: 1.25rem; display: flex; align-items: center; gap: 12px; }
.guide-n { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 800 .95rem/1 var(--mono); }
.guide kbd { display: inline-block; padding: 0 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--card); font-size: .85em; }

/* REL-104-PULLBACK: the site-wide "do not install 1.1.104" banner and the Blob "next release" flag. */
.site-alert { background: var(--band); color: var(--ink-2); border-bottom: 1px solid var(--line); }
.site-alert p { margin: 0; padding: 10px 0; font-size: .95rem; }
.site-alert a { color: var(--link); text-decoration: underline; }
.blob-next { display: block; font-weight: 700; margin: 0 0 12px; }
.tag-paused { vertical-align: middle; font-size: .8rem; font-weight: 600; background: var(--band); color: var(--ink-2); border: 1px solid var(--line); border-radius: 4px; padding: 2px 8px; margin-left: 6px; }
.release-paused { border-left: 3px solid var(--line); padding-left: 10px; color: var(--ink-2); }
