/* bowl.css (2026-10-23): the two bowl pages, fishtank.cam/neo and fishtank.cam/opae. Same colours, bar and menu as
   the three tank pages (v4 tokens), the scene system from scene.css, and the turning bowl that builds as you scroll. */
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root.bw {
  --bg: #ffffff; --raise: #f5f5f7; --text: #1d1d1f; --strong: #000000; --grey: #6e6e73; --line: #e6e6e9; --line-strong: #d2d2d7;
  --bar-bg: rgb(255 255 255 / 80%); --chum: #248FD3; --chum-text: #1A74B0; --glass: rgb(20 40 60 / 55%); --glass-hi: rgb(20 40 60 / 22%); --shadow: rgb(0 0 0 / 14%);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif; --barh: 56px; --pad: max(16px, env(safe-area-inset-left));
}
@media (prefers-color-scheme: dark) {
  :root.bw:not([data-theme="light"]) { --bg: #000000; --raise: #0f0f10; --text: #e8e8ed; --strong: #ffffff; --grey: #8e8e93; --line: #1f1f22; --line-strong: #3a3a3e; --bar-bg: rgb(0 0 0 / 70%); --chum-text: #5AB0EA; --glass: rgb(220 236 248 / 55%); --glass-hi: rgb(220 236 248 / 20%); --shadow: rgb(36 143 211 / 12%); }
}
:root.bw[data-theme="dark"] { --bg: #000000; --raise: #0f0f10; --text: #e8e8ed; --strong: #ffffff; --grey: #8e8e93; --line: #1f1f22; --line-strong: #3a3a3e; --bar-bg: rgb(0 0 0 / 70%); --chum-text: #5AB0EA; --glass: rgb(220 236 248 / 55%); --glass-hi: rgb(220 236 248 / 20%); --shadow: rgb(36 143 211 / 12%); }
*, *::before, *::after { box-sizing: border-box; }
html.bw { overflow-x: clip; -webkit-text-size-adjust: 100%; background: var(--bg); }
html.bw body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--text); font: 400 1rem/1.5 var(--sans); letter-spacing: -.011em; -webkit-font-smoothing: antialiased; }
html.bw a { color: var(--chum-text); }
html.bw img, html.bw svg { max-width: 100%; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--bg); padding: .5rem 1rem; border-radius: 8px; }

/* ------------------------------------------------------------------ the bar (same parts as the tank pages) */
.bw-top { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--barh); display: grid; grid-template-columns: 2.75rem 1fr 2.75rem; align-items: center; gap: .5rem; padding: 0 max(8px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left));
  background: var(--bar-bg); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.bw-top.solid { border-bottom-color: var(--line); }
.bw-brand { justify-self: center; display: flex; align-items: center; gap: .55rem; color: var(--strong); text-decoration: none; }
.bw-brand img { width: 26px; height: 26px; }
.bw-brand span { display: grid; line-height: 1.1; }
.bw-brand b { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.02em; }
.bw-brand small { font-size: .72rem; color: var(--grey); }
.bw-ibtn { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--strong); cursor: pointer; }
.bw-ibtn:hover { background: var(--raise); }
.bw-ibtn:focus-visible { outline: 2px solid var(--chum); }
.bw-ibtn svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.bw-burger i { display: block; width: 18px; height: 1.5px; margin: 2px 0; background: currentColor; border-radius: 1px; }
.bw-burger { display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* the menu card: the tank pages' menu, same look */
.jumpsheet.mnu { width: 22.5rem; max-width: calc(100vw - 32px); max-height: calc(100dvh - var(--barh) - 24px); margin: calc(var(--barh) + 8px) max(16px, env(safe-area-inset-right)) auto auto;
  padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); color: var(--text); box-shadow: 0 24px 64px rgb(0 0 0 / 22%); overflow: auto; overscroll-behavior: contain; }
.jumpsheet.mnu[open] { animation: mnu-in .2s cubic-bezier(.2, .8, .2, 1); }
@keyframes mnu-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.jumpsheet.mnu::backdrop { background: rgb(0 0 0 / 32%); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.mnu-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 3.5rem; padding: 0 .5rem 0 1.25rem; background: var(--bg); border-bottom: 1px solid var(--line); color: var(--strong); font: 600 1.0625rem/1 var(--sans); letter-spacing: -.02em; }
.mnu-head:focus { outline: none; }
.mnu-x { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--strong); cursor: pointer; }
.mnu-x:hover { background: var(--raise); }
.mnu-x svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mnu-g { padding: .75rem .5rem .25rem; }
.mnu-g + .mnu-g { border-top: 1px solid var(--line); }
.mnu-g:last-child { padding-bottom: .5rem; }
.mnu-l { margin: 0 .75rem .35rem; color: var(--grey); font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.mnu-list { display: grid; }
.bw .mnu-list a { display: flex; align-items: center; gap: .75rem; min-height: 3rem; padding: .35rem .75rem; border-radius: 12px; color: var(--strong); text-decoration: none; font-size: 1rem; letter-spacing: -.01em; }
.mnu-list a.tk { min-height: 3.5rem; }
.mnu-list a:hover, .mnu-list a:focus-visible { background: var(--raise); outline: none; }
.mnu-t { display: grid; gap: .1rem; min-width: 0; }
.mnu-t b { font-weight: 500; }
.mnu-list a.tk .mnu-t b { font-weight: 600; }
.mnu-t small { color: var(--grey); font-size: .8125rem; }
.bw .mnu-list a[aria-current] { color: var(--chum-text); }
.mnu-list a[aria-current="page"]::after { content: ""; flex: none; width: .5rem; height: .5rem; margin-left: auto; border-radius: 50%; background: var(--chum); }
@media (min-width: 40rem) { .mnu-ch { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------------ the intro: the bowl builds as you scroll */
.bw-intro { position: relative; height: 560svh; }
.bw-stage { position: sticky; top: 0; height: 100svh; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: calc(var(--barh) + 8px) var(--pad) max(20px, env(safe-area-inset-bottom)); overflow: hidden; }
.bw-bowlbox { position: relative; display: grid; place-items: center; min-height: 0; }
.bw-bowl { width: min(100%, 34rem); height: 100%; display: grid; place-items: center; }
.bw-bowl .bowl-svg { width: 100%; height: 100%; max-height: 100%; overflow: visible; }
.bw-text { position: relative; min-height: 13.5rem; }
.bw-hero, .bw-step { position: absolute; inset: 0 0 auto; transition: opacity .6s var(--sc-ease), transform .8s var(--sc-ease), filter .6s; }
.bw-hero h1 { margin: 0; font: 600 clamp(2.9rem, 12.5vw, 6.6rem)/.92 var(--sc-serif); letter-spacing: -.035em; color: var(--strong); }
.bw-hero p { margin: .9rem 0 0; color: var(--grey); font-size: 1.0625rem; max-width: 30rem; }
.bw-hero .sc-label { margin-bottom: 1rem; }
.bw-step { opacity: 0; transform: translateY(1.5rem); filter: blur(6px); pointer-events: none; }
.bw-step.on { opacity: 1; transform: none; filter: none; }
.bw-text.past-hero .bw-hero { opacity: 0; transform: translateY(-1.5rem); filter: blur(6px); pointer-events: none; }
.bw-step .bw-sn { display: flex; align-items: baseline; gap: .8rem; font: 600 .72rem/1 var(--sc-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.bw-step .bw-sn b { font: 600 3.6rem/.8 var(--sc-serif); letter-spacing: -.03em; color: var(--chum-text); }
.bw-step h2 { margin: .7rem 0 0; font: 600 clamp(2rem, 8vw, 3.4rem)/1 var(--sc-serif); letter-spacing: -.02em; color: var(--strong); }
.bw-step h2 em { font-style: normal; color: var(--chum-text); }
.bw-step p { margin: .55rem 0 0; color: var(--grey); max-width: 30rem; line-height: 1.5; }
.bw-meter { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 6px; }
.bw-meter i { flex: 1; height: 2px; background: var(--line-strong); overflow: hidden; position: relative; }
.bw-meter i::after { content: ""; position: absolute; inset: 0; background: var(--chum); transform: scaleX(var(--f, 0)); transform-origin: left; }
.bw-cue { position: absolute; right: 0; bottom: .9rem; font: 600 .66rem/1 var(--sc-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--grey); transition: opacity .4s; }
.bw-text.past-hero .bw-cue { opacity: 0; }

/* the bowl's glass, in the page's colours */
.bowl-svg .g-wall, .bowl-svg .g-front { fill: none; stroke: var(--glass); stroke-width: 2.2; stroke-dasharray: 1; stroke-dashoffset: var(--draw, 0); stroke-linejoin: round; }
.bowl-svg .g-back { fill: none; stroke: var(--glass-hi); stroke-width: 1.6; }
.bowl-svg .g-hi { fill: none; stroke-width: 7; stroke-linecap: round; opacity: calc(1 - var(--draw, 0)); }
.bowl-svg .g-hi2 { stroke: rgb(255 255 255 / 45%); stroke-width: 4; }
.bowl-svg .bw-shadow { fill: var(--shadow); }
.bowl-svg .bw-surf { fill: rgb(170 220 245 / 28%); stroke: rgb(200 235 250 / 55%); stroke-width: 1; }
.bowl-svg .bw-glow { opacity: calc(1 - var(--draw, 0)); }
:root.bw[data-theme="light"] .bowl-svg .g-hi2 { stroke: rgb(255 255 255 / 85%); }

@media (min-width: 60rem) {
  .bw-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-rows: 1fr; align-items: center; gap: 4vw; padding-left: max(5vw, 32px); padding-right: max(5vw, 32px); }
  .bw-bowlbox { order: 2; height: 100%; }
  .bw-bowl { width: 100%; height: 86%; }
  .bw-text { min-height: 22rem; }
  .bw-hero h1 { font-size: clamp(4rem, 7vw, 7.2rem); }
  .bw-meter { bottom: -1rem; }
}

/* ------------------------------------------------------------------ the scenes */
.scene { position: relative; max-width: 72rem; margin: 0 auto; padding: clamp(5.5rem, 14vh, 9rem) var(--pad) clamp(2rem, 6vh, 4rem); isolation: isolate; }
.sc-head { position: relative; }
.sc-head::after { content: attr(data-n); position: absolute; z-index: -1; right: -.04em; top: -.18em; translate: 0 var(--py, 0px); font: 600 clamp(10rem, 40vw, 24rem)/.8 var(--sc-serif); color: transparent; -webkit-text-stroke: 1px var(--line-strong); pointer-events: none; }
.sc-h { margin: 0; max-width: 15ch; font: 600 clamp(3rem, 12.5vw, 7rem)/.92 var(--sc-serif); letter-spacing: -.035em; color: var(--strong); }
.sc-lede { margin: 1.4rem 0 0; max-width: 36rem; font-size: clamp(1.0625rem, 2.4vw, 1.3rem); line-height: 1.5; color: var(--grey); }
.sc-lede b { color: var(--text); font-weight: 600; }
.sc-note { margin: 1.5rem 0 0; font-size: .95rem; color: var(--grey); }
.sc-note a { text-decoration: none; border-bottom: 1px solid currentColor; }
.sc-h3 { margin: 3rem 0 0; font: 600 clamp(1.9rem, 6vw, 3rem)/1 var(--sc-serif); letter-spacing: -.02em; color: var(--strong); }
.sc-h3 + .sc-lede { margin-top: .8rem; }
.sc-term { display: inline-flex; align-items: center; gap: .45rem; margin: 1.25rem .4rem 0 0; padding: .4rem .75rem; border: 1px solid var(--line-strong); border-radius: 999px; font: 600 .66rem/1 var(--sc-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.sc-term::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--chum); }

/* plant cards (each with its own small drawing) */
.sc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 2rem 0 0; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
@media (min-width: 52rem) { .sc-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sc-card { display: grid; align-content: start; gap: .3rem; padding: 1rem 1rem 1.2rem; background: var(--bg); }
.sc-card .pic { height: 7.5rem; margin-bottom: .4rem; overflow: hidden; }
.sc-card .pic svg { display: block; width: 100%; height: 100%; }
.sc-card .kind { font: 600 .62rem/1.3 var(--sc-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--chum-text); }
.sc-card b { font: 600 1.35rem/1.1 var(--sc-serif); color: var(--strong); }
.sc-card b i { display: block; font-size: .85em; color: var(--grey); }
.sc-card p { margin: .2rem 0 0; font-size: .875rem; line-height: 1.45; color: var(--grey); }

/* figures: the layers, the cycle, the scale, the timeline */
.sc-fig { margin: 2.25rem 0 0; }
.lyr { display: grid; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.lyr > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 1.1rem; font: 600 .7rem/1 var(--sc-mono); letter-spacing: .16em; text-transform: uppercase; color: #fff; transform-origin: bottom; }
.lyr > div span:last-child { opacity: .75; }
html.sc-anim .lyr > div { transition: transform 1s var(--sc-ease) calc(var(--i) * 140ms), opacity .8s calc(var(--i) * 140ms); }
html.sc-anim .sc-fig:not(.sc-in) .lyr > div { transform: scaleY(0); opacity: 0; }

.cyc { width: 100%; max-width: 36rem; display: block; margin: 0 auto; overflow: visible; }
.cyc .ring { fill: none; stroke: var(--line-strong); stroke-width: 1.2; stroke-dasharray: 3 5; }
.cyc .arc { fill: none; stroke: var(--chum); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
html.sc-anim .sc-fig.sc-in .cyc .arc, html:not(.sc-anim) .cyc .arc { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s var(--sc-ease) .2s; }
.cyc .short { fill: none; stroke: #4fbf6a; stroke-width: 1.6; stroke-dasharray: 4 4; }
.cyc .node circle { fill: var(--bg); stroke: var(--line-strong); }
.cyc .node text { font: 600 20px/1 var(--sc-serif); fill: var(--strong); text-anchor: middle; }
.cyc .node .sub { font: 600 9px/1 var(--sc-mono); letter-spacing: .14em; fill: var(--grey); text-transform: uppercase; }
.cyc .dot { fill: var(--chum); }
.cyc .lab { font: 600 9px/1 var(--sc-mono); letter-spacing: .14em; fill: var(--chum-text); text-transform: uppercase; text-anchor: middle; }
.cyc .lab.g { fill: #3fa65a; }

.sg { position: relative; padding: 3.25rem 0 4.5rem; }
.sg-bar { position: relative; height: 10px; border-radius: 99px; background: linear-gradient(90deg, #8fd0f5, #248FD3 55%, #0d3e66); }
.sg-band { position: absolute; top: -6px; bottom: -6px; border: 1px solid var(--chum); border-radius: 6px; background: rgb(36 143 211 / 12%); }
.sg-mk { position: absolute; top: calc(3.25rem + 16px); translate: -50% 0; display: grid; justify-items: center; gap: .3rem; font: 600 .62rem/1.25 var(--sc-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--grey); text-align: center; white-space: nowrap; }
.sg-mk::before { content: ""; width: 1px; height: 10px; background: var(--grey); }
.sg-mk b { font: 600 1.25rem/1 var(--sc-serif); letter-spacing: 0; color: var(--strong); text-transform: none; }
.sg-mk.first { translate: 0 0; justify-items: start; text-align: left; }
.sg-mk.last { translate: -100% 0; justify-items: end; text-align: right; }
.sg-needle { position: absolute; top: 3.25rem; left: var(--to); width: 2px; height: 10px; margin-left: -1px; background: var(--strong); box-shadow: 0 0 0 3px var(--bg); }
html.sc-anim .sg-needle { transition: left 2s cubic-bezier(.2, .75, .05, 1) .2s; }
html.sc-anim .sc-fig:not(.sc-in) .sg-needle { left: 0 !important; }
.sg-now { position: absolute; top: -.25rem; left: var(--to); translate: -50% 0; font: 600 2.4rem/1 var(--sc-serif); color: var(--chum-text); white-space: nowrap; }
html.sc-anim .sg-now { transition: left 2s cubic-bezier(.2, .75, .05, 1) .2s; }
html.sc-anim .sc-fig:not(.sc-in) .sg-now { left: 0 !important; }

.tl { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: .45rem; top: .6rem; bottom: .6rem; width: 1px; background: var(--line-strong); }
.tl li { position: relative; display: grid; gap: .15rem; padding: 0 0 1.6rem 2rem; }
.tl li::before { content: ""; position: absolute; left: .1rem; top: .45rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--line-strong); }
.tl li.done::before { background: var(--chum); border-color: var(--chum); }
.tl li.now::before { border-color: var(--chum); box-shadow: 0 0 0 5px rgb(36 143 211 / 18%); }
.tl .when { font: 600 .66rem/1.4 var(--sc-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--chum-text); }
.tl b { font: 600 1.6rem/1.1 var(--sc-serif); color: var(--strong); }
.tl p { margin: 0; color: var(--grey); font-size: .95rem; }
@media (min-width: 52rem) {
  .tl { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .tl::before { left: 0; right: 0; top: .45rem; bottom: auto; width: auto; height: 1px; }
  .tl li { padding: 2rem 1.5rem 0 0; }
  .tl li::before { top: .1rem; left: 0; }
}
.bw-foot { max-width: 72rem; margin: 0 auto; padding: 3rem var(--pad) 6rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font: 600 .66rem/1.4 var(--sc-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--grey); }
.bw-foot a { color: inherit; text-decoration: none; }
.bw-foot a:hover { color: var(--chum-text); }
@media (prefers-reduced-motion: reduce) { .bw-hero { position: relative; } .bw-intro { height: auto; } .bw-stage { position: relative; height: auto; min-height: 100svh; } .bw-step { position: relative; opacity: 1; transform: none; filter: none; margin-top: 1.5rem; } .bw-text { min-height: 0; } .bw-text.past-hero .bw-hero { opacity: 1; transform: none; filter: none; } .bw-meter, .bw-cue { display: none; } }

/* phones (10/23, smooth scrolling): the bowl's text steps fade and lift only, no blur (see scene.css) */
@media (hover: none) and (pointer: coarse) { .bw-step, .bw-text.past-hero .bw-hero { filter: none; } .bw-hero, .bw-step { transition-property: opacity, transform; } }
/* 10/23 calm pass (his ask: less text on the bowl pages): the notes under the big numbers go */
html.bw .sc-stat p { display: none; }
.sc-drop { margin: 1rem auto 0; }
