/* Abyss: one page, dark only. Same shapes and system type as benthic.isoglu.com, but almost black
   water, and every light comes from life down there: algae green, plankton cyan, lure blue.
   Motion lives in abyss.js (plankton, reveal, console, depth gauge and its anglerfish); everything
   here reads fine without it, and prefers-reduced-motion stills it. */
:root {
  color-scheme: dark;
  --bg: #020303;
  --bg-1: #060909;
  --bg-2: #0b1011;
  --line: rgba(170, 255, 230, .085);
  --line-2: rgba(170, 255, 230, .16);
  --ink: #e6f1ee;
  --muted: #8fa39e;
  --faint: #6f827e;
  --algae: #59f2a6;
  --plankton: #2ee6d6;
  --lure: #3fb6ff;
  --on-light: #021310;
  --iris: linear-gradient(100deg, var(--algae), var(--plankton) 45%, var(--lure) 85%);
  --iris-soft: linear-gradient(100deg, rgba(89, 242, 166, .55), rgba(46, 230, 214, .35) 45%, rgba(63, 182, 255, .55));
  --fail: #ff8e84;
  --warn: #f2c14e;

  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1180px;
  --gutter: max(16px, 4vw);
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background:
    radial-gradient(60% 520px at 50% -160px, rgba(46, 230, 214, .10), transparent 70%),
    radial-gradient(40% 480px at 88% 120px, rgba(63, 182, 255, .07), transparent 70%),
    radial-gradient(36% 420px at 8% 260px, rgba(89, 242, 166, .05), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(46, 230, 214, .25); }
a { color: var(--plankton); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--algae); }
:focus-visible { outline: 2px solid var(--plankton); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 650; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { max-width: calc(var(--wrap) + 8vw); margin-inline: auto; padding-inline: var(--gutter); position: relative; }
main, .foot { position: relative; z-index: 1; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 999px; background: var(--plankton); color: var(--on-light); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Plankton and marine snow: one canvas behind everything (abyss.js). */
.plankton { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* Header ----------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 20; padding-top: 12px; }
.top .bar {
  display: flex; align-items: center; gap: 20px; min-height: 58px;
  max-width: var(--wrap); width: calc(100% - 2 * var(--gutter)); margin-inline: auto; padding: 8px 10px 8px 14px;
  background: rgba(6, 9, 9, .72); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 12px 40px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 650 1.1875rem/1 var(--font-display); letter-spacing: -.015em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; flex: none; }
.brand small { font: 500 .75rem/1 var(--font-text); color: var(--muted); letter-spacing: 0; }
/* The credit sits on the wordmark's baseline, not on its centre; the mark stays centred. */
.top .brand { align-items: baseline; }
.top .brand img { align-self: center; }
.top .brand span { line-height: 28px; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .9375rem; padding: 7px 11px; border-radius: 999px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.top .side { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang { display: flex; gap: 2px; }
.lang a { font: 600 .75rem/1 var(--font-text); letter-spacing: .06em; color: var(--muted); text-decoration: none; padding: 7px 9px; border-radius: 999px; }
.lang a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.lang a[aria-current="true"] { color: var(--ink); background: rgba(255, 255, 255, .08); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .82em 1.35em; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font-text); text-decoration: none; white-space: nowrap;
  transition: background-position .5s var(--ease), border-color .15s ease, color .15s ease, box-shadow .25s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(100deg, var(--algae), var(--plankton) 30%, var(--lure) 60%, var(--plankton) 85%, var(--algae)) 0 0 / 200% 100%;
  color: var(--on-light); box-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 36px -12px rgba(46, 230, 214, .55);
}
.btn.primary:hover { background-position: 100% 0; color: var(--on-light); box-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 44px -12px rgba(46, 230, 214, .75); }
.btn.ghost { background: rgba(255, 255, 255, .04); color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: rgba(46, 230, 214, .5); color: var(--ink); background: rgba(46, 230, 214, .06); }
.btn.small { padding: .5em .95em; font-size: .875rem; }

/* Hero -------------------------------------------------------------------- */
.hero { display: grid; justify-items: center; text-align: center; padding-block: clamp(72px, 11vw, 150px) clamp(40px, 6vw, 72px); }
.hero h1 { font-size: clamp(2.75rem, 1.1rem + 5.6vw, 6rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; max-width: 15ch; }
.hero h1 span { display: block; }
.iris {
  background: linear-gradient(100deg, var(--algae), var(--plankton) 25%, var(--lure) 50%, var(--plankton) 75%, var(--algae)) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 14s linear infinite; padding-bottom: .08em;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.hero .lead { margin-top: 28px; font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem); color: var(--muted); max-width: 42rem; }
.hero .actions { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.status { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--muted); }
.status a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--plankton); box-shadow: 0 0 0 0 rgba(46, 230, 214, .6); animation: beacon 2.6s ease-out infinite; }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 rgba(46, 230, 214, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(46, 230, 214, 0); } }

/* Console illustration ----------------------------------------------------- */
.console-wrap { padding-bottom: clamp(64px, 9vw, 120px); }
.console {
  max-width: 980px; margin-inline: auto; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)), var(--bg-1);
  border: 1px solid var(--line-2); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 80px -40px rgba(46, 230, 214, .35);
}
.console-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.console-bar .dots { display: flex; gap: 6px; }
.console-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.console-bar .chip { margin-left: auto; font: 600 .75rem/1 var(--font-text); color: var(--plankton); border: 1px solid rgba(46, 230, 214, .35); border-radius: 999px; padding: 5px 9px; }
.console-body { position: relative; padding: clamp(18px, 2.6vw, 28px); display: grid; gap: 22px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kpis div { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; background: rgba(255, 255, 255, .015); }
.kpis b { display: block; font: 650 clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem)/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpis span { display: block; margin-top: 8px; font-size: .8125rem; color: var(--muted); }
.feed { display: grid; border-top: 1px solid var(--line); }
.feed li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.feed .v { justify-self: start; font: 600 .75rem/1 var(--font-text); padding: 5px 9px; border-radius: 999px; }
.feed .v.fail { color: var(--fail); background: rgba(255, 142, 132, .12); }
.feed .v.warn { color: var(--warn); background: rgba(242, 193, 78, .12); }
.feed .v.ok { color: var(--plankton); background: rgba(46, 230, 214, .12); }
.feed .m { font: 500 .75rem/1 var(--font-mono); color: var(--faint); letter-spacing: .02em; }
.console-note { padding: 12px 16px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.js .feed li { opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .6s var(--ease); }
.js .console.run .feed li { opacity: 1; transform: none; }
.console.run .feed li:nth-child(2) { transition-delay: .25s; }
.console.run .feed li:nth-child(3) { transition-delay: .5s; }
.console.run .feed li:nth-child(4) { transition-delay: .75s; }
.console-body::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 80px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(46, 230, 214, .07), transparent);
}
.console.run .console-body::after { animation: scan 1.8s ease .1s 1; }
@keyframes scan { 0% { opacity: 1; transform: translateY(-80px); } 100% { opacity: 0; transform: translateY(420px); } }

/* Sections ---------------------------------------------------------------- */
.band { padding-block: clamp(64px, 9vw, 128px); }
.head { display: grid; gap: 16px; max-width: 48rem; margin-bottom: clamp(32px, 5vw, 60px); }
.head h2 { font-size: clamp(2rem, 1.1rem + 2.6vw, 3.25rem); line-height: 1.04; letter-spacing: -.032em; font-weight: 700; }
.head p { color: var(--muted); font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); max-width: 40rem; }

.card { position: relative; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 30px); display: grid; gap: 12px; align-content: start; }
.card h3 { font-size: 1.3125rem; letter-spacing: -.014em; }
.card p { color: var(--muted); }
.card .for { font-size: .875rem; color: var(--faint); }
.card .for b { color: var(--ink); font-weight: 500; }
.card .ic { color: var(--plankton); margin-bottom: 6px; }
.spot { background: radial-gradient(320px circle at var(--mx, -999px) var(--my, -999px), rgba(46, 230, 214, .075), transparent 62%), var(--bg-1); transition: border-color .25s ease; }
.spot:hover { border-color: var(--line-2); }
.glowline { border: 1px solid transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--iris-soft) border-box; }

.pair { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.pair .card h3 { font-size: 1.75rem; letter-spacing: -.02em; }
.pair .tag { font-size: .875rem; color: var(--faint); }
.code { margin: 4px 0 0; padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); font: .8125rem/1.55 var(--font-mono); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }

.bento { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bento .wide-a { grid-column: span 2; }
@media (min-width: 980px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento .wide-g { grid-column: span 2; }
}

/* Where the data stays: two places and the one thing that crosses ------- */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, .5fr) minmax(0, 1fr); align-items: stretch; gap: 0; margin-bottom: 40px; }
.flow .card h3 { font-size: 1.25rem; }
.flow .place { font: 500 .75rem/1 var(--font-mono); color: var(--faint); letter-spacing: .02em; }
.flow ul { display: grid; gap: 6px; margin-top: 4px; }
.flow li { display: flex; gap: 10px; align-items: baseline; color: var(--muted); }
.flow li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; transform: translateY(-2px); opacity: .7; }
.flow .stays { margin-top: 8px; font-size: .9375rem; color: var(--ink); }
.link { position: relative; display: grid; place-items: center; }
.link svg { width: 100%; height: 24px; overflow: visible; }
.link .dash { stroke: var(--plankton); stroke-width: 1.5; stroke-dasharray: 4 7; fill: none; animation: flow 1.6s linear infinite; opacity: .8; }
@keyframes flow { to { stroke-dashoffset: -22; } }
.link span { position: absolute; top: calc(50% + 18px); font-size: .75rem; color: var(--muted); text-align: center; padding-inline: 8px; }
/* Packets on the link: only references, verdicts and fingerprints ever travel to the service. */
.link .pkt { position: absolute; top: 50%; left: 4%; transform: translate(-50%, -50%); font: 500 .6875rem/1 var(--font-mono); font-style: normal; color: var(--on-light); background: var(--plankton); padding: 4px 7px; border-radius: 999px; box-shadow: 0 0 16px rgba(46, 230, 214, .55); opacity: 0; white-space: nowrap; pointer-events: none; }
.js .flow.in .link .pkt { animation: pkt 4.5s cubic-bezier(.45, .05, .55, .95) infinite; }
.link .pkt:nth-of-type(2) { animation-delay: 1.5s; background: var(--algae); box-shadow: 0 0 16px rgba(89, 242, 166, .5); }
.link .pkt:nth-of-type(3) { animation-delay: 3s; background: var(--lure); box-shadow: 0 0 16px rgba(63, 182, 255, .5); }
@keyframes pkt { 0% { left: 20%; opacity: 0; } 14% { opacity: 1; } 86% { opacity: 1; } 100% { left: 80%; opacity: 0; } }
@keyframes pktv { 0% { top: 8%; opacity: 0; } 14% { opacity: 1; } 86% { opacity: 1; } 100% { top: 92%; opacity: 0; } }

/* Small live diagrams inside the plan cards (no text; the card says what they show). */
.viz { display: block; width: 100%; height: auto; margin: 6px 0 4px; overflow: visible; }
.memory .lines path { fill: none; stroke: rgba(255, 142, 132, .38); stroke-width: 1; stroke-dasharray: 140; stroke-dashoffset: 0; }
.memory .nodes circle { transform-box: fill-box; transform-origin: center; }
.memory .nodes .a { fill: var(--algae); } .memory .nodes .b { fill: var(--plankton); } .memory .nodes .c { fill: var(--lure); }
.memory .core { fill: var(--fail); }
.memory .halo { fill: rgba(255, 142, 132, .16); transform-box: fill-box; transform-origin: center; animation: halo 2.8s ease-in-out infinite; }
@keyframes halo { 0%, 100% { transform: scale(.75); opacity: .5; } 50% { transform: scale(1.25); opacity: 1; } }
.js .memory .lines path { stroke-dashoffset: 140; transition: stroke-dashoffset 1.3s var(--ease); }
.js .memory .nodes circle { opacity: 0; transform: scale(.3); transition: opacity .5s ease, transform .7s var(--ease); }
.js .in .memory .lines path { stroke-dashoffset: 0; }
.js .in .memory .nodes circle { opacity: 1; transform: none; }
.memory .lines path:nth-child(2), .memory .nodes circle:nth-child(2) { transition-delay: .12s; }
.memory .lines path:nth-child(3), .memory .nodes circle:nth-child(3) { transition-delay: .24s; }
.memory .lines path:nth-child(4), .memory .nodes circle:nth-child(4) { transition-delay: .36s; }
.memory .lines path:nth-child(5), .memory .nodes circle:nth-child(5) { transition-delay: .48s; }
.memory .lines path:nth-child(6), .memory .nodes circle:nth-child(6) { transition-delay: .6s; }
.memory .lines path:nth-child(7), .memory .nodes circle:nth-child(7) { transition-delay: .72s; }
.memory .lines path:nth-child(8), .memory .nodes circle:nth-child(8) { transition-delay: .84s; }
.memory .lines path:nth-child(9), .memory .nodes circle:nth-child(9) { transition-delay: .96s; }
.watch .papers rect, .watch .hit { fill: rgba(255, 255, 255, .02); stroke: rgba(170, 255, 230, .26); stroke-width: 1; }
.watch .base { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 5; }
.watch .sweep { fill: var(--plankton); }
.watch .beam { fill: rgba(46, 230, 214, .14); }
.watch .sweep, .watch .beam { animation: sweep 6s linear infinite; }
.watch .hit { animation: flag 6s linear infinite; }
@keyframes sweep { from { transform: translateX(0); } to { transform: translateX(322px); } }
@keyframes flag { 0%, 69% { fill: rgba(255, 255, 255, .02); stroke: rgba(170, 255, 230, .26); } 71%, 97% { fill: rgba(255, 142, 132, .3); stroke: var(--fail); } 100% { fill: rgba(255, 255, 255, .02); stroke: rgba(170, 255, 230, .26); } }
.js .rv:not(.in) .watch *, .js .rv:not(.in) .memory .halo { animation-play-state: paused; }

/* Benthic and Abyss as one cross-section. Benthic in its own colours (benthic.isoglu.com: navy #040a17,
   glass panels, cyan #5cd3f2, blue and violet light from above, isobaths), Abyss in black water with
   plankton, a depth gauge down the left edge, and between them one engine and the only things that travel. */
.tie { --gx: clamp(56px, 6vw, 84px); position: relative; display: grid; border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(160, 190, 255, .16); box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .85); }
.tie::before { content: ""; position: absolute; z-index: 2; top: 18px; bottom: 18px; left: calc(var(--gx) / 2); width: 1px; background: linear-gradient(180deg, rgba(92, 211, 242, .7), rgba(92, 211, 242, .35) 45%, rgba(46, 230, 214, .4) 60%, rgba(89, 242, 166, .6)); }
.tie-layer { position: relative; display: grid; gap: 22px; padding: clamp(26px, 3.4vw, 40px) clamp(24px, 3.4vw, 40px) clamp(26px, 3.4vw, 40px) calc(var(--gx) + 8px); overflow: hidden; }
.tie-layer > *:not(.depth):not(.tie-fish):not(.tie-iso) { position: relative; z-index: 1; }
.depth { position: absolute; z-index: 3; left: calc(var(--gx) / 2 + 10px); font: 500 .6875rem/1 var(--font-mono); letter-spacing: .02em; white-space: nowrap; pointer-events: none; }
.depth::before { content: ""; position: absolute; left: -14px; top: 50%; width: 9px; height: 1px; background: currentColor; }
.depth.top { top: 14px; } .depth.bottom { bottom: 14px; } .depth.mid { top: 50%; transform: translateY(-50%); }
.tie-benthic .depth { color: rgba(170, 225, 255, .7); }
.tie-mid .depth { color: rgba(154, 171, 198, .75); }
.tie-abyss .depth { color: rgba(46, 230, 214, .7); }
.tie-benthic {
  color: #eaf2ff;
  background:
    radial-gradient(620px 300px at 8% -30%, rgba(15, 108, 216, .55), rgba(15, 108, 216, 0) 70%),
    radial-gradient(560px 300px at 96% -30%, rgba(106, 76, 255, .32), rgba(106, 76, 255, 0) 70%),
    linear-gradient(180deg, #0b1a33 0%, #071428 70%, #050f20 100%);
}
.tie-abyss {
  background:
    radial-gradient(1.4px 1.4px at 14% 22%, rgba(46, 230, 214, .9), rgba(46, 230, 214, 0)),
    radial-gradient(1.2px 1.2px at 31% 74%, rgba(89, 242, 166, .8), rgba(89, 242, 166, 0)),
    radial-gradient(1.6px 1.6px at 47% 38%, rgba(63, 182, 255, .8), rgba(63, 182, 255, 0)),
    radial-gradient(1.2px 1.2px at 63% 86%, rgba(46, 230, 214, .7), rgba(46, 230, 214, 0)),
    radial-gradient(1.4px 1.4px at 72% 16%, rgba(89, 242, 166, .7), rgba(89, 242, 166, 0)),
    radial-gradient(1.2px 1.2px at 22% 52%, rgba(63, 182, 255, .6), rgba(63, 182, 255, 0)),
    radial-gradient(560px 280px at 84% 115%, rgba(46, 230, 214, .13), rgba(46, 230, 214, 0) 70%),
    radial-gradient(420px 220px at 6% 110%, rgba(89, 242, 166, .07), rgba(89, 242, 166, 0) 70%),
    #020303;
}
.tie-id { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.tie-id img { width: 44px; height: 44px; }
.tie-benthic .tie-id img { filter: drop-shadow(0 6px 18px rgba(15, 108, 216, .55)); }
.tie-abyss .tie-id img { filter: drop-shadow(0 0 18px rgba(46, 230, 214, .35)); }
.tie-id h3 { font-size: 1.75rem; letter-spacing: -.02em; }
.tie-benthic .tie-id h3 { color: #eaf2ff; }
.tie-id p { margin-top: 4px; max-width: 40rem; font-size: .9688rem; }
.tie-benthic .tie-id p { color: #9aabc6; }
.tie-abyss .tie-id p { color: var(--muted); }
.tie-link { font-size: .875rem; white-space: nowrap; }
.tie-benthic .tie-link { color: #5cd3f2; text-decoration-color: rgba(92, 211, 242, .4); text-underline-offset: 3px; }
.tie-abyss .tie-link { color: var(--faint); }
.tie-nodes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tie-nodes li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 12px; align-items: start; padding: 15px 16px; border-radius: var(--r-md); }
.tie-nodes .ic { grid-row: span 2; margin-top: 2px; }
.tie-nodes b { font-weight: 600; font-size: .9375rem; }
.tie-nodes span { font-size: .875rem; }
.tie-nodes .chips { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-style: normal; }
.tie-nodes .chip { font: 600 .6875rem/1 var(--font-text); font-style: normal; padding: 5px 8px; border-radius: 999px; white-space: nowrap; }
.tie-benthic .tie-nodes li { border: 1px solid rgba(160, 190, 255, .16); background: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .02)), rgba(10, 20, 38, .6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.tie-benthic .tie-nodes .ic { color: #5cd3f2; }
.tie-benthic .tie-nodes b { color: #eaf2ff; }
.tie-benthic .tie-nodes span { color: #9aabc6; }
.tie-benthic .chip { color: #9aabc6; background: #0e1a31; border: 1px solid rgba(160, 190, 255, .11); }
.tie-benthic .chip.ok { color: #45d3e6; background: rgba(69, 211, 230, .13); border-color: transparent; }
.tie .chip.fail { color: #ff8e84; background: rgba(255, 142, 132, .13); border: 1px solid transparent; }
.tie-abyss .tie-nodes li { border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(46, 230, 214, .04), rgba(255, 255, 255, .01)), rgba(6, 9, 9, .7); }
.tie-abyss .tie-nodes .ic { color: var(--plankton); }
.tie-abyss .tie-nodes span { color: var(--muted); }
.tie-abyss .chip.a { color: var(--plankton); background: rgba(46, 230, 214, .1); border: 1px solid rgba(46, 230, 214, .2); }
.tie-iso { position: absolute; z-index: 0; top: -40px; right: -60px; width: min(70%, 640px); height: auto; pointer-events: none; }
.tie-iso ellipse { fill: none; stroke: rgba(143, 227, 255, .09); stroke-width: 1; }
.tie-iso ellipse:first-child { fill: rgba(143, 227, 255, .04); stroke: rgba(143, 227, 255, .16); }
.tie-tag { margin-top: 8px !important; font-size: .8125rem !important; color: var(--faint) !important; }
.tie-abyss .tie-id { grid-template-columns: auto minmax(0, 1fr); }
.tie-fish { position: absolute; z-index: 0; right: 2%; bottom: -26px; width: clamp(150px, 17vw, 220px); height: auto; overflow: visible; opacity: .6; pointer-events: none; }
.tie-fish .body, .tie-fish .fin { fill: rgba(8, 18, 18, .9); stroke: rgba(46, 230, 214, .22); stroke-width: 1; }
.tie-fish .stalk { fill: none; stroke: rgba(160, 250, 235, .35); stroke-width: 1.2; }
.tie-fish .bulb { fill: #eafff8; }
.tie-fish .halo { fill: rgba(46, 230, 214, .25); transform-box: fill-box; transform-origin: center; animation: halo 3.2s ease-in-out infinite; }
.tie-mid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 20px; min-height: 140px; padding: 0 clamp(24px, 3.4vw, 40px) 0 calc(var(--gx) + 8px); background: linear-gradient(180deg, #050f20 0%, #03090f 50%, #020303 100%); }
.tie-mid::after { content: ""; position: absolute; left: var(--gx); right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, rgba(92, 211, 242, 0), rgba(92, 211, 242, .3) 25%, rgba(46, 230, 214, .35) 75%, rgba(46, 230, 214, 0)); }
.engine { position: relative; z-index: 1; align-self: center; display: flex; align-items: center; gap: 12px; max-width: 30rem; padding: 10px 12px; border-radius: 999px; border: 1px solid rgba(46, 230, 214, .4); background: rgba(2, 6, 8, .85); color: var(--ink); font-size: .9063rem; line-height: 1.4; text-align: center; box-shadow: 0 0 36px rgba(46, 230, 214, .2), inset 0 1px 0 rgba(255, 255, 255, .06); }
.engine img { width: 26px; height: 26px; flex: none; }
.lane { position: relative; z-index: 1; display: flex; align-items: center; padding-left: 22px; font-size: .8125rem; color: rgba(230, 241, 238, .82); }
.lane.up { justify-content: flex-end; padding: 0 22px 0 0; text-align: right; }
.lane::before { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 1px; background: repeating-linear-gradient(180deg, rgba(92, 211, 242, .6) 0 4px, transparent 4px 9px); }
.lane.up::before { left: auto; right: 4px; background: repeating-linear-gradient(180deg, rgba(89, 242, 166, .6) 0 4px, transparent 4px 9px); }
.lane span { position: relative; display: inline-flex; align-items: center; gap: 8px; max-width: 20rem; padding: 6px 10px; border-radius: 10px; background: rgba(2, 8, 12, .7); border: 1px solid rgba(255, 255, 255, .06); }
.lane span .ic { width: 15px; height: 15px; flex: none; color: #5cd3f2; }
.lane.up span .ic { color: var(--algae); }
.lane i { position: absolute; left: 1px; top: 0; width: 7px; height: 7px; border-radius: 50%; background: #5cd3f2; box-shadow: 0 0 10px rgba(92, 211, 242, .8); opacity: 0; }
.lane.up i { left: auto; right: 1px; background: var(--algae); box-shadow: 0 0 10px rgba(89, 242, 166, .8); }
.js .tie.in .lane.down i { animation: sink 2.8s ease-in-out infinite; }
.js .tie.in .lane.up i { animation: rise 2.8s ease-in-out infinite; }
.lane i:nth-of-type(2) { animation-delay: 1.4s !important; }
@keyframes sink { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 7px); opacity: 0; } }
@keyframes rise { 0% { top: calc(100% - 7px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 0; opacity: 0; } }
@media (max-width: 760px) {
  .tie { --gx: 0px; }
  .tie::before, .depth { display: none; }
  .tie-layer { padding-left: 22px; }
  .tie-id { grid-template-columns: auto minmax(0, 1fr); }
  .tie-link { grid-column: 2; justify-self: start; }
  .tie-nodes { grid-template-columns: minmax(0, 1fr); }
  .tie-mid { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 8px 22px; }
  .tie-mid::after { display: none; }
  .lane, .lane.up { min-height: 64px; justify-content: flex-start; padding: 0 0 0 22px; text-align: left; }
  .lane.up::before { left: 4px; right: auto; }
  .lane.up i { left: 1px; right: auto; }
  .engine { justify-self: start; margin-block: 8px; border-radius: 18px; text-align: left; }
  .tie-fish { display: none; }
}

/* Every submission on hand-in: from the learning platforms through Abyss into verdicts. */
.handin { display: grid; grid-template-columns: auto minmax(36px, 1fr) auto minmax(36px, 1fr) auto; align-items: center; gap: 14px; margin: 14px 0 6px; }
.handin .lms, .handin .verdicts { display: grid; gap: 8px; }
.handin .lms span { font: 500 .75rem/1 var(--font-mono); color: var(--muted); border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 10px; text-align: center; background: rgba(255, 255, 255, .02); }
.handin .hub { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: radial-gradient(closest-side, rgba(46, 230, 214, .22), rgba(46, 230, 214, 0)); }
.handin .hub img { filter: drop-shadow(0 0 18px rgba(46, 230, 214, .45)); }
.handin .lane { position: relative; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 10px); }
.handin .lane i { position: absolute; top: 50%; left: 0; width: 10px; height: 13px; margin: -7px 0 0 -5px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 10px rgba(230, 241, 238, .3); opacity: 0; }
.handin .lane.out i { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--plankton); box-shadow: 0 0 10px rgba(46, 230, 214, .7); }
.js .in .handin .lane i { animation: doc 3s cubic-bezier(.45, .05, .55, .95) infinite; }
.handin .lane i:nth-child(2) { animation-delay: 1s; } .handin .lane i:nth-child(3) { animation-delay: 2s; }
.handin .lane.out i:nth-child(1) { animation-delay: .5s; } .handin .lane.out i:nth-child(2) { animation-delay: 1.5s; } .handin .lane.out i:nth-child(3) { animation-delay: 2.5s; }
@keyframes doc { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.handin .v { font: 600 .75rem/1 var(--font-text); padding: 5px 9px; border-radius: 999px; justify-self: start; white-space: nowrap; }
.handin .v.ok { color: var(--plankton); background: rgba(46, 230, 214, .12); }
.handin .v.warn { color: var(--warn); background: rgba(242, 193, 78, .12); }
.handin .v.fail { color: var(--fail); background: rgba(255, 142, 132, .12); }
.js .in .handin .v { animation: vpop 3s ease-out infinite; }
.handin .v:nth-child(1) { animation-delay: .5s; } .handin .v:nth-child(2) { animation-delay: 1.5s; } .handin .v:nth-child(3) { animation-delay: 2.5s; }
@keyframes vpop { 0% { transform: scale(1.08); box-shadow: 0 0 18px currentColor; } 35%, 100% { transform: none; box-shadow: 0 0 0 transparent; } }
/* House rules: one file, out to every enrolled installation. */
.fan .wire { fill: none; stroke: rgba(46, 230, 214, .4); stroke-width: 1; stroke-dasharray: 3 7; animation: flow 1.6s linear infinite; }
.fan .dev { fill: rgba(255, 255, 255, .02); stroke: var(--line-2); stroke-width: 1; }
.js .in .fan .dev { animation: devon 4s ease-in-out infinite; }
.fan .dev:nth-child(2) { animation-delay: .4s; } .fan .dev:nth-child(3) { animation-delay: .8s; } .fan .dev:nth-child(4) { animation-delay: 1.2s; } .fan .dev:nth-child(5) { animation-delay: 1.6s; }
@keyframes devon { 0%, 100% { stroke: var(--line-2); fill: rgba(255, 255, 255, .02); } 25%, 60% { stroke: var(--plankton); fill: rgba(46, 230, 214, .14); } }
.fan .file { fill: rgba(89, 242, 166, .1); stroke: var(--algae); stroke-width: 1.2; }
.fan .file-lines { stroke: var(--algae); stroke-width: 1.2; stroke-linecap: round; opacity: .7; }
.js .rv:not(.in) .fan *, .js .rv:not(.in) .handin * { animation-play-state: paused; }
@media (max-width: 640px) { .handin { grid-template-columns: auto minmax(28px, 1fr) auto; } .handin .lane.out, .handin .verdicts { display: none; } }

/* Rising bubbles behind the hero, as on benthic.isoglu.com (abyss.js draws them). */
.hero { position: relative; isolation: isolate; }
.hero .bubbles { position: absolute; z-index: -1; top: -96px; left: 50%; width: 100vw; height: calc(100% + 96px); transform: translateX(-50%); pointer-events: none; }

/* Cards in a group rise one after another. */
.bento > .rv:nth-child(2), .three > .rv:nth-child(2), .pair > .rv:nth-child(2), .rows > .rv:nth-child(2) { transition-delay: .08s; }
.bento > .rv:nth-child(3), .three > .rv:nth-child(3) { transition-delay: .16s; }
.bento > .rv:nth-child(4) { transition-delay: .08s; } .bento > .rv:nth-child(5) { transition-delay: .16s; }
.bento > .rv:nth-child(6) { transition-delay: .08s; } .bento > .rv:nth-child(7) { transition-delay: .16s; }
.rows { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }

/* Pilots ------------------------------------------------------------------ */
.three { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.cta {
  margin-top: 16px; display: grid; gap: 20px; justify-items: start; padding: clamp(28px, 4vw, 48px);
  border-radius: var(--r-xl); border: 1px solid var(--line-2);
  background: radial-gradient(70% 140% at 85% 0%, rgba(46, 230, 214, .12), transparent 60%), radial-gradient(50% 120% at 10% 100%, rgba(89, 242, 166, .07), transparent 60%), var(--bg-1);
}
.cta p.q { font: 600 clamp(1.25rem, 1rem + .9vw, 1.75rem)/1.3 var(--font-display); letter-spacing: -.015em; max-width: 40rem; }
.cta .row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.cta .note { color: var(--muted); font-size: .9375rem; max-width: 30rem; }
.contact { display: grid; gap: 14px; max-width: 44rem; }
.contact .fields { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.contact label { display: grid; gap: 6px; font-size: .875rem; color: var(--muted); }
.contact input, .contact textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--bg-1); color: var(--ink); font: 400 1rem/1.45 var(--font-text); }
.contact textarea { resize: vertical; min-height: 7.5rem; }
.contact input:focus-visible, .contact textarea:focus-visible { outline: 2px solid var(--plankton); outline-offset: 1px; }
.contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact .done { display: none; scroll-margin-top: 120px; padding: 12px 16px; border: 1px solid rgba(46, 230, 214, .35); border-radius: var(--r-md); color: var(--ink); background: rgba(46, 230, 214, .08); }
.contact .done.fail { border-color: rgba(255, 142, 132, .4); background: rgba(255, 142, 132, .08); }
.contact .done:target { display: block; }

/* Footer: the floor -------------------------------------------------------- */
/* Intro (intro.js): benthic.isoglu.com's intro with a twist, first visit only. The same build as
   Benthic's: one canvas over the window, depth bottom left, sound and Skip bottom right; while the scene
   covers the page it keeps clicks, scrolling and Tab to itself; once the mark glides up, clicks belong
   to the page again. */
.intro { position: fixed; inset: 0; z-index: 60; transition: opacity .25s ease; touch-action: none; }
.intro[hidden] { display: none; }
.intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro.late { pointer-events: none; }
.intro.out { opacity: 0; }
.intro-depth {
  position: absolute; left: max(16px, 2.4vw, env(safe-area-inset-left, 0px)); bottom: calc(max(16px, 2.2vw) + env(safe-area-inset-bottom, 0px));
  font: 500 clamp(.75rem, .7rem + .3vw, .9375rem)/1 var(--font-mono); color: rgba(234, 248, 255, .92);
  font-variant-numeric: tabular-nums; letter-spacing: .02em; text-shadow: 0 1px 8px rgba(0, 20, 30, .6); pointer-events: none;
}
.intro-ctl {
  position: absolute; right: max(16px, 2.4vw, env(safe-area-inset-right, 0px)); bottom: calc(max(12px, 2vw) + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 8px;
}
@media (max-width: 440px) { .intro-depth { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); } }
.intro.late .intro-ctl, .intro.out .intro-ctl { opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s .2s; }
.intro-ctl button {
  height: 36px; border-radius: 999px; border: 1px solid rgba(200, 245, 235, .22); background: rgba(2, 8, 10, .38);
  color: rgba(234, 248, 245, .9); font: 600 .8125rem/1 var(--font-text); cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.intro-ctl button:hover { background: rgba(2, 8, 10, .6); color: #fff; }
.intro-skip { padding: 0 14px; }
.intro-ctl .intro-sound { width: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-color: rgba(46, 230, 214, .45); }
.intro-sound svg { width: 17px; height: 14px; flex: none; }
.intro-sound g { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.intro-sound .on, .intro-sound.is-on .off, .intro-sound-label { display: none; }
.intro-sound.is-on .on { display: inline; }
.intro-ctl .intro-sound.is-on { color: var(--plankton); border-color: rgba(46, 230, 214, .55); background: rgba(46, 230, 214, .1); }
.intro-ctl .intro-sound.wait { width: auto; padding: 0 14px 0 12px; box-shadow: 0 0 18px rgba(46, 230, 214, .22); }
.intro-sound.wait .intro-sound-label { display: inline; }
html.intro-on { overflow: hidden; }
html.intro-on .top .brand img { opacity: 0; }
/* With reduced motion there is no descent: the lure in the header mark lights once. */
.intro-light {
  position: fixed; z-index: 21; pointer-events: none; border-radius: 50%; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(234, 255, 250, .95), rgba(46, 230, 214, .55) 22%, rgba(63, 182, 255, .16) 52%, rgba(63, 182, 255, 0));
}
@media print { .intro { display: none; } }

/* Footer: the same build as benthic.isoglu.com's, centred under a hairline. */
.foot { padding-block: 36px 48px; color: var(--muted); display: grid; justify-items: center; gap: 14px; text-align: center; }
.foot::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: var(--line); }
.foot .brand { font-size: 1.0625rem; }
.foot .brand img { width: 26px; height: 26px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; max-width: 60rem; margin-block: 4px; }
.foot nav a { color: var(--muted); text-decoration: none; font-size: .8125rem; transition: color .2s ease; }
.foot nav a:hover { color: var(--ink); }
.foot .fine { font-size: .75rem; color: var(--faint); max-width: 46rem; }
.foot .fine a { color: var(--ink); }

/* Reveal on scroll (only with abyss.js; without it everything simply shows) */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* Depth gauge: the abyssal zone, 4,000 to 6,000 m. A pearl rides the line; at the floor an
   anglerfish comes out of the dark and takes it. Wide screens only, like benthic.isoglu.com. */
.gauge {
  position: fixed; z-index: 15; right: max(36px, 2.6vw); top: 50%; transform: translateY(-50%);
  display: none; width: 9px; height: clamp(300px, 58vh, 560px); color: var(--faint); pointer-events: none;
}
.gauge-track { position: absolute; inset: 0; }
.gauge-track::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: currentColor; opacity: .4; }
.gauge-track::after { content: ""; position: absolute; left: -4px; right: -4px; top: -1px; height: 2px; border-radius: 2px; background: currentColor; opacity: .7; }
.gauge-fill { position: absolute; left: 3px; top: 0; width: 3px; height: 100%; border-radius: 3px; transform-origin: top; transform: scaleY(0); background: linear-gradient(180deg, var(--algae), var(--plankton) 55%, var(--lure)); box-shadow: 0 0 10px rgba(46, 230, 214, .45); }
.gauge-mark { position: absolute; right: 5px; width: 6px; height: 1px; background: currentColor; opacity: .6; transition: background-color .3s ease, opacity .3s ease; }
.gauge-mark.on { background: var(--plankton); opacity: 1; }
.gauge-rider { position: absolute; left: 0; top: 0; width: 9px; will-change: transform; }
.gauge-pearl {
  position: absolute; left: -1px; top: -5.5px; width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 16%, #e6fff7 30%, #9ff0dc 62%, #2aa58f 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 0 14px rgba(46, 230, 214, .6);
}
.gauge-tag { position: absolute; right: 22px; top: -10px; display: none; justify-items: end; gap: 4px; text-align: right; }
.gauge-read { font: 600 .6875rem/1 var(--font-mono); letter-spacing: .06em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gauge-read b { font: 600 1.0625rem/1.1 var(--font-display); letter-spacing: 0; color: var(--ink); margin-right: 3px; font-variant-numeric: tabular-nums; }
.gauge-zone { font: 500 .6875rem/1.2 var(--font-text); white-space: nowrap; }
.gauge-note {
  position: absolute; right: 22px; display: none; width: clamp(120px, calc((100vw - 1180px) / 2 - 64px), 210px);
  transform: translateY(calc(-100% - 14px)); text-align: right;
  font: 400 .6875rem/1.45 var(--font-text); color: var(--ink); opacity: 0; transition: opacity .3s ease;
}
.gauge-note.on { opacity: .85; transition: opacity .45s ease .12s; }
@media (min-width: 1180px) { .gauge { display: block; } }
@media (min-width: 1440px) { .gauge-tag { display: grid; } }
@media (min-width: 1560px) { .gauge-note { display: block; } }

/* viewBox 150 x 100 drawn at 1.2: the mouth (10, 56) sits on the pearl's last position */
.fish { position: absolute; left: -8px; bottom: -53px; width: 180px; height: 120px; overflow: visible; opacity: 0; transform: translateX(90px); }
.fish .body { fill: #0c1314; stroke: rgba(170, 255, 230, .22); stroke-width: 1; }
.fish .fin { fill: #0a1011; stroke: rgba(170, 255, 230, .16); stroke-width: 1; }
.fish .teeth { fill: #dfeee9; opacity: .85; }
.fish .eye { fill: #dfeee9; }
.fish .stalk { fill: none; stroke: rgba(170, 255, 230, .4); stroke-width: 1.2; stroke-linecap: round; }
.fish .halo { fill: url(#fish-glow); }
.fish .bulb { fill: #eafff8; }
.fish .jaw { transform-box: fill-box; transform-origin: 100% 0; }
.gauge.eaten .fish { animation: fish-in 1s var(--ease) forwards; }
.gauge.eaten .fish .jaw { animation: jaw 1.25s ease .5s both; }
.gauge.eaten .fish .esca { animation: esca 2.8s ease-in-out 1.6s infinite; }
.gauge.eaten .gauge-pearl { animation: swallow .38s cubic-bezier(.5, 0, .9, .4) .95s both; }
.gauge.left .fish { animation: fish-out .7s ease forwards; }
@keyframes fish-in { from { opacity: 0; transform: translateX(90px); } to { opacity: 1; transform: none; } }
@keyframes fish-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(90px); } }
@keyframes jaw { 0% { transform: rotate(0); } 28%, 62% { transform: rotate(-24deg); } 76%, 100% { transform: rotate(0); } }
@keyframes swallow { to { opacity: 0; transform: translate(14px, 5px) scale(.2); } }
@keyframes esca { 50% { opacity: .55; } }

/* 404 --------------------------------------------------------------------- */
.lost { min-height: 62vh; display: grid; align-content: center; gap: 20px; padding-block: 80px; }
.lost h1 { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); letter-spacing: -.035em; }
.lost p { color: var(--muted); }

@media (max-width: 860px) {
  .nav { display: none; }
  .flow { grid-template-columns: 1fr; }
  .link { min-height: 84px; }
  .link svg { width: 60px; height: 24px; transform: rotate(90deg); }
  .link span { top: auto; left: calc(50% + 22px); text-align: left; }
  .link .pkt { left: 50%; top: 8%; }
  .js .flow.in .link .pkt { animation-name: pktv; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento .wide-a { grid-column: auto; }
  .kpis { grid-template-columns: 1fr; }
  .feed li { grid-template-columns: 1fr; gap: 8px; }
  .feed .m { display: none; }
}
@media (max-width: 520px) {
  .top .btn, .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .iris, .status i, .link .dash { animation: none; }
  .link .pkt, .hero .bubbles { display: none; }
  .watch *, .memory .halo, .handin *, .fan * { animation: none !important; }
  .lane i { display: none; }
  .tie-fish .halo { animation: none; }
  .handin .lane i { display: none; }
  .js .memory .lines path, .js .memory .nodes circle { transition: none; }
  .js .rv, .js .feed li { opacity: 1; transform: none; transition: none; }
  .console.run .console-body::after { animation: none; }
  .gauge.eaten .fish { animation: none; opacity: 1; transform: none; }
  .gauge.eaten .fish .jaw, .gauge.eaten .fish .esca, .gauge.left .fish { animation: none; }
  .gauge.eaten .gauge-pearl { animation: none; opacity: 0; }
}
