/* The tank's one page (fish.bwelsh.tech and tank.bwelsh.tech), 2026-10-13.
   One type family (Sora), hairlines instead of boxes, wide bands between sections.
   Light and dark follow the device; the foot's switch sets data-theme on <html> and wins. */

@font-face { font-family: "Sora"; src: url("fonts/sora.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0a0c0b; --raise: #121514; --text: #e9edea; --strong: #ffffff; --grey: #9aa39e; --line: #232927; --line-strong: #56605b;
  --accent: #86c9a2; --warm: #e2b672; --moon: #7f9fd6; --bar-bg: rgb(10 12 11 / 84%);
  --sans: "Sora", "Avenir Next", "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --bar: 3.5rem;
  --band: clamp(3.5rem, 8vw, 7rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f6f5f0; --raise: #edebe4; --text: #1d211f; --strong: #0b0d0c; --grey: #59615d; --line: #dcd9d0; --line-strong: #8d948f;
    --accent: #1d7248; --warm: #8a5a00; --moon: #2f5aa8; --bar-bg: rgb(246 245 240 / 86%);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f5f0; --raise: #edebe4; --text: #1d211f; --strong: #0b0d0c; --grey: #59615d; --line: #dcd9d0; --line-strong: #8d948f;
  --accent: #1d7248; --warm: #8a5a00; --moon: #2f5aa8; --bar-bg: rgb(246 245 240 / 86%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--bar) + 1rem); scroll-behavior: smooth; background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: clamp(1rem, .95rem + .2vw, 1.125rem); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, dl, dd, dt, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--strong); outline-offset: 3px; }
.skip { position: absolute; left: 1rem; top: -6rem; z-index: 30; padding: .8rem 1.1rem; background: var(--strong); color: var(--bg); font-weight: 600; }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: 78rem; margin: 0 auto; padding: 0 var(--pad); }

/* small spaced capitals: labels, the nav, tags */
.label, .nav a, .tag, .brand-day, .foot button, .fs { font-weight: 600; font-size: .75rem; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1.25rem; min-height: var(--bar); padding: 0 var(--pad);
  background: var(--bar-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: baseline; gap: .8rem; margin-right: auto; text-decoration: none; color: var(--strong); white-space: nowrap; }
.brand-name { font-weight: 800; letter-spacing: .02em; text-transform: uppercase; font-size: 1.0625rem; }
.brand-day { color: var(--accent); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav a { padding: .8rem 0; text-decoration: none; color: var(--grey); white-space: nowrap; transition: color .2s var(--ease); }
.nav a:hover, .nav a[aria-current="true"] { color: var(--strong); }
.menu-btn { display: none; }
@media (max-width: 67.99rem) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.75rem; height: 2.75rem; padding: 0;
    background: none; color: var(--strong); border: 1px solid var(--line-strong); border-radius: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .menu-bars { position: relative; display: block; width: 1.125rem; height: .875rem; }
  .menu-bars span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s var(--ease); }
  .menu-bars span:nth-child(1) { top: 0; } .menu-bars span:nth-child(2) { top: calc(50% - 1px); } .menu-bars span:nth-child(3) { bottom: 0; }
  .menu-btn[aria-expanded="true"] .menu-bars span:nth-child(1) { transform: translateY(.375rem) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-bars span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] .menu-bars span:nth-child(3) { transform: translateY(-.375rem) rotate(-45deg); }
  .nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - var(--bar)); max-height: calc(100svh - var(--bar)); overflow-y: auto; padding: 0 var(--pad);
    background: var(--bg); border-bottom: 1px solid var(--line); visibility: hidden; opacity: 0; transform: translateY(-.5rem);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s; }
  .top.menu-open .nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav a { display: flex; align-items: center; min-height: 3.25rem; padding: .5rem 0; color: var(--strong); }
  .nav a + a { border-top: 1px solid var(--line); }
}

/* ---------- the tank, first thing on the page: the live view, the dial beside it, his photos under it ---------- */
.stage { padding-bottom: .75rem; }
.stage-in { display: grid; }
.view { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.view video, .view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.view .state { position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; color: #9aa39e; font-size: .9375rem; text-align: center; }
.view.has-still .state { inset: 0 0 auto 0; display: block; padding: .6rem .9rem; background: rgb(0 0 0 / 55%); color: #e9edea; font-size: .8125rem; text-align: left; }
.view .live, .view .fs { position: absolute; display: flex; align-items: center; gap: .5rem; padding: .5rem .7rem; background: rgb(0 0 0 / 55%); color: #fff; font-size: .6875rem; }
.view .live { top: .75rem; left: .75rem; }
.view .live i { width: .45rem; height: .45rem; border-radius: 50%; background: #e0705f; }
.view .fs { right: .75rem; bottom: .75rem; border: 0; border-radius: 0; cursor: pointer; font-family: inherit; }

.panel { padding: 1rem var(--pad) .25rem; min-width: 0; }
.panel .label { margin: 0 0 .75rem; }
.dialrow { display: grid; grid-template-columns: clamp(7.5rem, 34vw, 10.5rem) minmax(0, 1fr); gap: 1rem 1.1rem; align-items: center; }
.dial svg { display: block; width: 100%; height: auto; }
.d-ring { fill: var(--raise); stroke: var(--line-strong); stroke-width: 1.5; }
.d-tick { stroke: var(--line-strong); stroke-width: 1.4; stroke-linecap: round; }
.d-well { fill: var(--bg); stroke: var(--line-strong); stroke-width: 1.5; }
.d-btn rect { fill: var(--raise); transition: fill .15s var(--ease); }
.d-btn .d-dot { fill: var(--strong); }
.d-btn.d-no .d-dot { fill: var(--grey); opacity: .6; }
.d-btn { outline: none; }
.d-btn:focus-visible rect { stroke: var(--strong); stroke-width: 2; }
.controls-on .d-btn:not(.d-no) { cursor: pointer; }
.controls-on .d-btn:not(.d-no):hover rect, .d-btn.pressed rect { fill: var(--accent); }
.controls-on .d-btn:not(.d-no):hover .d-dot, .d-btn.pressed .d-dot { fill: var(--bg); }
.dialkey { display: grid; gap: .45rem; font-size: .8125rem; line-height: 1.3; }
.dialkey li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .5rem; align-items: start; }
.dialkey b { display: block; color: var(--strong); font-weight: 600; }
.dialkey small { display: block; color: var(--grey); font-size: .75rem; }
.dialkey .no b { color: var(--grey); font-weight: 400; }
.dots { display: grid; grid-template-columns: repeat(2, .3rem); gap: .16rem; justify-content: center; align-content: center; height: 1.1rem; }
.dots i { width: .3rem; height: .3rem; border-radius: 50%; background: var(--strong); }
.dots i:only-child { grid-column: 1 / -1; justify-self: center; }
.dots.ring { display: block; width: .95rem; height: .95rem; margin: .05rem auto 0; border: 2px solid var(--strong); border-radius: 50%; }
.no .dots i { background: var(--grey); }
.ctl-say { margin-top: .85rem; padding: .6rem .75rem; border: 1px solid var(--line-strong); color: var(--strong); font-size: .8125rem; font-weight: 600; }
.controls-on .ctl-say { border-color: var(--accent); }
.happened { margin-top: .5rem; min-height: 1.2em; }

.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; padding: .75rem var(--pad) 0; }
.photo { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--raise); color: #fff; text-decoration: none; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.photo:hover img { transform: scale(1.04); }
.photo span { display: none; }
@media (min-width: 60rem) {
  .stage { padding: 1.25rem var(--pad) 1rem; }
  .stage-in, .photos { max-width: 86rem; margin: 0 auto; }
  .stage-in { grid-template-columns: minmax(0, 1fr) clamp(19rem, 26vw, 23rem); gap: 1.5rem; align-items: start; }
  .view { max-width: calc((100svh - var(--bar) - 11.5rem) * 16 / 9); justify-self: center; }
  .panel { padding: 0; }
  .dialrow { grid-template-columns: 1fr; justify-items: start; }
  .dial { width: min(100%, 11.5rem); }
  .photos { padding: 1rem 0 0; gap: .75rem; }
  .photo { aspect-ratio: 16 / 7; }
  .photo span { display: block; position: absolute; left: 0; bottom: 0; padding: .45rem .7rem; background: rgb(0 0 0 / 55%); font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
}

/* ---------- title under the picture ---------- */
.hero .wrap { padding-top: clamp(1.25rem, 3vw, 2.5rem); }
h1, h2 { color: var(--strong); font-weight: 800; text-transform: uppercase; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 8.4vw, 6rem); letter-spacing: -.05em; line-height: .95; }
.h1-sub { display: block; margin-top: clamp(.8rem, 1.6vw, 1.25rem); font-size: clamp(.8125rem, .7rem + .5vw, 1.0625rem); font-weight: 400; letter-spacing: .34em; color: var(--grey); line-height: 1.5; }
.lead { margin-top: clamp(1.1rem, 2.4vw, 1.75rem); max-width: 38ch; font-size: 1.15em; line-height: 1.45; }

/* ---------- sections ---------- */
.band { padding: calc(var(--band) * .65) 0 0; }
.band .wrap::before { content: ""; display: block; height: 1px; background: var(--line); margin-bottom: calc(var(--band) * .75); }
.hero + .band .wrap::before { margin-top: 0; }
main > .band:last-child { padding-bottom: var(--band); }
h2 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.5rem); letter-spacing: -.04em; line-height: 1; }
.head { margin-bottom: clamp(1.5rem, 3.5vw, 2.75rem); }
.head p { margin-top: .8rem; color: var(--grey); max-width: 44ch; }
.label { color: var(--grey); margin: clamp(2rem, 4vw, 3rem) 0 .9rem; }
.label:first-child { margin-top: 0; }
.muted { color: var(--grey); }
.small { font-size: .875rem; color: var(--grey); }
.tag { display: inline-block; margin-left: .7rem; padding: .28rem .5rem; border: 1px solid var(--line-strong); color: var(--grey); font-size: .625rem; vertical-align: .15em; white-space: nowrap; }

/* ---------- now: a ruled grid of readings ---------- */
.now { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.cell { padding: 1.1rem 1rem 1.2rem 0; border-bottom: 1px solid var(--line); min-width: 0; }
.cell:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
.cell .k { color: var(--grey); font-size: .8125rem; }
.cell .v { margin-top: .35rem; color: var(--strong); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; font-size: clamp(1.5rem, 1rem + 2.4vw, 2.6rem); overflow-wrap: anywhere; }
.cell .v.none { color: var(--grey); font-weight: 600; }
.cell .n { margin-top: .4rem; color: var(--grey); font-size: .8125rem; line-height: 1.4; }
@media (min-width: 46rem) {
  .now { grid-template-columns: repeat(3, 1fr); }
  .cell, .cell:nth-child(even) { padding: 1.5rem 1.5rem 1.6rem 0; border-left: 0; }
  .cell:not(:nth-child(3n + 1)) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
}
.spark { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.spark svg { display: block; width: 100%; height: auto; overflow: visible; }
.spark .axis { display: flex; justify-content: space-between; margin-top: .4rem; }

/* ---------- the plan ---------- */
.words p { color: var(--strong); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; font-size: clamp(1.25rem, 1rem + 1.6vw, 2.1rem); max-width: 26em; text-wrap: pretty; }
.words p + p { margin-top: .9em; }
.words .then { margin-top: 1.4em; color: var(--grey); font-weight: 400; font-size: 1.05em; letter-spacing: 0; }
.two { display: grid; gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 58rem) { .two { grid-template-columns: 1.15fr 1fr; align-items: start; } }

/* ---------- rows: plants, livestock, gear, facts, logs ---------- */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr; gap: .2rem 1.5rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.row .name { color: var(--strong); font-weight: 600; line-height: 1.3; }
.row .sub { color: var(--grey); font-size: .875rem; line-height: 1.45; }
.row .latin { font-style: italic; }
.row .side { color: var(--grey); font-size: .9375rem; line-height: 1.45; }
.row.kv { grid-template-columns: 7.5rem 1fr; align-items: baseline; }
.row.kv .k { color: var(--grey); font-size: .875rem; }
.row.big .name { font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; line-height: 1.05; font-size: clamp(1.15rem, .8rem + 1.5vw, 2rem); }
.row .count { color: var(--grey); font-weight: 400; margin-left: .5rem; font-variant-numeric: tabular-nums; }
@media (min-width: 46rem) {
  .row.wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: baseline; }
  .row.kv { grid-template-columns: 9.5rem 1fr; }
}
.plain li { padding: .8rem 0; border-bottom: 1px solid var(--line); color: var(--text); }
.plain { border-top: 1px solid var(--line); }
.cols { display: grid; gap: 0 clamp(2rem, 5vw, 5rem); }
@media (min-width: 58rem) { .cols { grid-template-columns: 1fr 1fr; align-items: start; } .cols > div > .label:first-child { margin-top: 0; } }
@media (max-width: 57.99rem) { .cols > div + div > .label:first-child { margin-top: clamp(2rem, 4vw, 3rem); } }

/* equipment: one fold per kind of thing */
.kind { border-bottom: 1px solid var(--line); }
#gear { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.kind summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; margin: 0; color: var(--strong); cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.kind summary::-webkit-details-marker { display: none; }
.kind summary .n { color: var(--grey); font-weight: 400; letter-spacing: .08em; }
.kind summary .n::after { content: "+"; display: inline-block; width: 1.2em; margin-left: .6em; text-align: center; font-size: 1.2em; letter-spacing: 0; }
.kind[open] summary .n::after { content: "–"; }
.kind .rows { border-top: 1px solid var(--line); margin-bottom: 1.5rem; }
.kind .rows .row:last-child { border-bottom: 0; }
#absent .label { margin-top: clamp(2rem, 4vw, 3rem); }

/* ---------- light: the day as one strip ---------- */
.day { position: relative; margin-top: .5rem; }
.strip { position: relative; height: 3.25rem; background: var(--raise); border: 1px solid var(--line); overflow: hidden; }
.strip i { position: absolute; top: 0; bottom: 0; }
.strip .rise { background: linear-gradient(90deg, transparent, var(--warm)); opacity: .9; }
.strip .full { background: var(--warm); }
.strip .set { background: linear-gradient(90deg, var(--warm), transparent); opacity: .9; }
.strip .moon { background: var(--moon); opacity: .7; }
.mist { position: relative; height: .6rem; margin-top: .35rem; }
.mist i { position: absolute; top: 0; bottom: 0; background: var(--accent); min-width: 2px; }
.nowmark { position: absolute; top: -.4rem; bottom: -.4rem; width: 2px; background: var(--strong); }
.nowmark::after { content: "now"; position: absolute; top: -1.25rem; left: 50%; transform: translateX(-50%); font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--strong); }
.hours { position: relative; height: 1.4rem; margin-top: .5rem; color: var(--grey); font-size: .75rem; font-variant-numeric: tabular-nums; }
.hours span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.hours span:first-child { transform: none; } .hours span:last-child { transform: translateX(-100%); }
.key { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1rem; color: var(--grey); font-size: .8125rem; }
.key b { display: inline-block; width: .8rem; height: .8rem; margin-right: .45rem; vertical-align: -.08em; }
.key .k-day b { background: var(--warm); } .key .k-moon b { background: var(--moon); opacity: .7; } .key .k-mist b { background: var(--accent); height: .35rem; vertical-align: .12em; }

/* ---------- water log ---------- */
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
th, td { text-align: right; padding: .8rem .75rem; white-space: nowrap; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
th { color: var(--grey); font-weight: 400; font-size: .8125rem; border-top: 1px solid var(--line); }
th span { opacity: .8; }
td { color: var(--strong); }
td.note { white-space: normal; text-align: left; color: var(--grey); min-width: 12em; }

/* ---------- timeline ---------- */
.time li { display: grid; grid-template-columns: 4.6rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.time { border-top: 1px solid var(--line); }
.time .d { color: var(--grey); font-variant-numeric: tabular-nums; font-size: .875rem; padding-top: .1rem; }
.time .d.same { visibility: hidden; }
@media (min-width: 46rem) { .time li { grid-template-columns: 9.5rem 1fr; } }

/* ---------- foot ---------- */
.foot { margin-top: var(--band); border-top: 1px solid var(--line); padding: clamp(2rem, 4vw, 3rem) 0 calc(clamp(2rem, 4vw, 3rem) + env(safe-area-inset-bottom)); color: var(--grey); font-size: .875rem; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.foot-name { color: var(--strong); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.foot button { min-height: 2.75rem; padding: .5rem 1rem; background: none; color: var(--grey); border: 1px solid var(--line-strong); border-radius: 0; cursor: pointer; font-family: inherit; }
.foot button:hover { color: var(--strong); border-color: var(--strong); }

@media (min-width: 46rem) { :root { --bar: 4rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ================= 2026-10-13, second pass: the working dial, the lit picture of the tank, modes, fish, the plan ===== */
.view .cams { position: absolute; left: .75rem; bottom: .75rem; display: flex; gap: .4rem; }
.view .cams button { padding: .5rem .7rem; border: 0; background: rgb(0 0 0 / 55%); color: #cfd6d2; font: 600 .6875rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.view .cams button.on { background: #fff; color: #000; }

.dialbox { display: grid; gap: .5rem; justify-items: center; }
.dial svg { touch-action: none; user-select: none; -webkit-user-select: none; }
.d-ringg { transform-origin: 100px 100px; cursor: grab; }
.ringbtns { display: flex; align-items: center; gap: .6rem; color: var(--grey); font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.ringbtns button, .quick button { min-height: 2.5rem; padding: .4rem .75rem; background: none; color: var(--strong); border: 1px solid var(--line-strong); border-radius: 0; font: 600 .75rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.ringbtns button { width: 2.5rem; padding: 0; font-size: 1.1rem; letter-spacing: 0; }
.quick { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.panel:not(.controls-on) .quick button, .panel:not(.controls-on) .ringbtns button { color: var(--grey); border-color: var(--line); }
.controls-on .quick button:hover, .controls-on .ringbtns button:hover { background: var(--strong); color: var(--bg); border-color: var(--strong); }
.ctl-say.live { border-color: var(--accent); }
.ctl-say.warn { border-color: var(--warm); color: var(--warm); }
.ctl-say.nudge { animation: nudge .5s var(--ease); }
@keyframes nudge { 30% { transform: translateX(-4px); } 60% { transform: translateX(4px); } }
.playing { margin-top: .35rem; color: var(--accent); }

/* ---------- the picture of the tank, lit the way the real one is ---------- */
.nowgrid { display: grid; gap: clamp(1.5rem, 4vw, 4rem); }
@media (min-width: 52rem) { .nowgrid { grid-template-columns: minmax(15rem, 22rem) minmax(0, 1fr); align-items: start; } }
.rigbox { margin: 0; display: grid; justify-items: center; gap: .9rem; }
.rig { --glow: #e4edff; --lum: 0; position: relative; width: min(100%, 19rem); aspect-ratio: 768 / 1679; }
.rig img { position: relative; display: block; width: 100%; height: 100%; }
.rig i { position: absolute; pointer-events: none; }
.rig-room { inset: 20% -18% -2%; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 255 255 / 9%), transparent); }
:root[data-theme="light"] .rig-room { background: radial-gradient(closest-side, rgb(0 0 0 / 6%), transparent); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .rig-room { background: radial-gradient(closest-side, rgb(0 0 0 / 6%), transparent); } }
/* the light falls from the bar to the water: a soft cone in the light's own colour */
.rig-beam { left: 14.8%; width: 70.4%; top: 8.4%; height: 23%; background: linear-gradient(180deg, var(--glow), transparent 96%); opacity: calc(var(--lum) * .28);
  clip-path: polygon(2% 0, 98% 0, 124% 100%, -24% 100%); filter: blur(6px); transition: opacity 1.2s ease, background-color 1.2s ease; }
.rig-water { inset: 0; background: var(--glow); opacity: calc(.06 + var(--lum) * .86); -webkit-mask: url("img/rig/rig-water.webp?v=1") center / 100% 100% no-repeat; mask: url("img/rig/rig-water.webp?v=1") center / 100% 100% no-repeat; transition: opacity 1.2s ease, background-color 1.2s ease; }
.rig-lamp { left: 15.4%; width: 69.2%; top: 8.45%; height: .5%; background: var(--glow); opacity: var(--lum); box-shadow: 0 0 14px 3px var(--glow); border-radius: 2px; transition: opacity 1.2s ease, background-color 1.2s ease; }
.rig-mist { left: 62%; width: 36%; top: 24%; height: 7.5%; opacity: 0; background: radial-gradient(60% 70% at 55% 80%, rgb(255 255 255 / 75%), transparent 70%), radial-gradient(40% 50% at 30% 60%, rgb(255 255 255 / 55%), transparent 70%); filter: blur(7px); transition: opacity 1.5s ease; }
.rig.mist .rig-mist { opacity: .9; animation: drift 7s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(-6%, 4%) scale(1); } to { transform: translate(8%, -6%) scale(1.15); } }
.rig.storm .rig-water, .rig.storm .rig-beam, .rig.storm .rig-lamp { transition-duration: .12s; }
.rig.flash .rig-water { animation: flashw .7s ease-out; } .rig.flash .rig-lamp { animation: flashl .7s ease-out; }
@keyframes flashw { 0%, 30% { background: #fff; opacity: 1; } } @keyframes flashl { 0%, 30% { background: #fff; opacity: 1; box-shadow: 0 0 30px 10px #fff; } }
.hot { position: absolute; padding: 0; background: none; border: 1px dashed transparent; border-radius: 0; cursor: pointer; }
.hot:hover, .hot:focus-visible { border-color: var(--strong); }
.hot::after { content: ""; position: absolute; right: -.35rem; top: -.35rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--bg); }
.hot-light { left: 13%; width: 74%; top: 6.2%; height: 4.2%; }
.hot-mist { left: 76%; width: 16%; top: 27%; height: 7.2%; }
#rig-say { text-align: center; max-width: 22rem; }

.sheet { width: min(92vw, 30rem); padding: 1.5rem; border: 1px solid var(--line-strong); border-radius: 0; background: var(--bg); color: var(--text); font-family: var(--sans); }
.sheet::backdrop { background: rgb(0 0 0 / 60%); }
.sheet h3 { color: var(--strong); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; font-size: 1.25rem; line-height: 1.1; }
.sheet p { margin-top: .8rem; line-height: 1.5; }
.sheet button { margin-top: 1.25rem; min-height: 2.75rem; padding: .5rem 1.25rem; background: var(--strong); color: var(--bg); border: 0; border-radius: 0; font: 600 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }

/* ---------- modes ---------- */
.modes { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.mode { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.mode .sw { display: block; width: 2.75rem; height: 2.75rem; background: var(--raise); }
.mode .name { color: var(--strong); font-weight: 600; } .mode .sub { color: var(--grey); font-size: .875rem; line-height: 1.45; }
.sw-storm { background: linear-gradient(135deg, #1a2a4a 0 44%, #fff 44% 52%, #1a2a4a 52%) !important; }
.sw-rainforest { background: linear-gradient(135deg, #f1ffd0, #8fd66a) !important; }
.sw-jungle-night { background: linear-gradient(135deg, #0c3a36, #10204a) !important; }
@media (min-width: 46rem) { .modes { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 5rem); } }

/* ---------- fish: cut-out photographs ---------- */
.fishgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.fish { position: relative; padding: .9rem .9rem 1rem; background: var(--bg); min-width: 0; }
.fishpic { display: grid; place-items: center; aspect-ratio: 16 / 9; margin-bottom: .6rem; }
.fishpic img { max-width: 92%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 6px 10px rgb(0 0 0 / 28%)); }
.fishpic.sil img { filter: none; }
.fish .tag { margin: 0 0 .45rem; }
.fish .name { color: var(--strong); font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.fish .count { color: var(--grey); font-weight: 400; margin-left: .4rem; white-space: nowrap; }
.fish .sub { color: var(--grey); font-size: .8125rem; }
@media (min-width: 46rem) { .fishgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 68rem) { .fishgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- the stocking plan as a project timeline ---------- */
.gantt { border-top: 1px solid var(--line); }
.g-row, .g-axis { display: grid; grid-template-columns: 1fr; gap: .5rem 1.5rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.g-axis { padding: .5rem 0 .2rem; }
.g-label .name { color: var(--strong); font-weight: 600; line-height: 1.25; } .g-label .sub { color: var(--grey); font-size: .8125rem; }
.g-track { position: relative; height: 1.5rem; background: var(--raise); }
.g-axis .g-track { height: 1.1rem; background: none; color: var(--grey); font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.g-axis .g-track span { position: absolute; top: 0; padding-left: .3rem; border-left: 1px solid var(--line-strong); white-space: nowrap; }
.g-track i { position: absolute; top: 0; bottom: 0; }
.g-run { background: repeating-linear-gradient(135deg, var(--line-strong) 0 2px, transparent 2px 7px); opacity: .7; }
.g-soft { background: var(--accent); opacity: .28; }
.g-bar { background: var(--accent); }
.g-done { width: .9rem !important; margin-left: -.45rem; border-radius: 50%; background: var(--strong); top: .3rem !important; bottom: .3rem !important; }
.g-now { width: 2px; background: var(--strong); top: -.25rem !important; bottom: -.25rem !important; }
.g-none { position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); color: var(--grey); font-size: .75rem; }
.g-when { display: grid; gap: .1rem; font-size: .8125rem; line-height: 1.4; }
.g-when .cond { color: var(--text); } .g-when .est { color: var(--grey); }
.gantt .key .k-bar b { background: var(--accent); } .gantt .key .k-soft b { background: var(--accent); opacity: .28; } .gantt .key .k-nowl b { width: 2px; background: var(--strong); }
@media (min-width: 58rem) {
  .g-row, .g-axis { grid-template-columns: 13rem minmax(0, 1fr) 17rem; align-items: center; }
  .g-axis .g-label { visibility: hidden; }
}

.credits { margin-top: 1.25rem; font-size: .8125rem; }
.credits summary { cursor: pointer; color: var(--grey); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .6875rem; }
.credits ul { margin-top: .75rem; display: grid; gap: .4rem; } .credits a { color: var(--text); }
.foot .wrap + .wrap { display: block; }

/* fixes after looking at it at 390 and 1280 px */
.dialbox { min-width: 0; width: 100%; }
.dial { width: 100%; }
@media (max-width: 59.99rem) { .ringbtns span { display: none; } .ringbtns { justify-content: center; } .photos { padding-left: var(--pad); padding-right: var(--pad); } }
@media (min-width: 60rem) {
  .stage-in { grid-template-areas: "view panel" "photos panel"; grid-template-rows: auto 1fr; }
  .view { grid-area: view; } .panel { grid-area: panel; } .photos { grid-area: photos; max-width: none; margin: 0; padding: 0; align-self: start; }
  .dialrow { grid-template-columns: 9.5rem minmax(0, 1fr); align-items: start; justify-items: stretch; }
  .dial { width: 100%; }
  .ringbtns span { display: none; }
}
.fishgrid { gap: 0; background: none; border: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fish { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rigbox { overflow: hidden; padding: 0 0 .25rem; }
@media (max-width: 59.99rem) { .view { order: 1; } .photos { order: 2; } .panel { order: 3; padding-top: 1.1rem; } }

/* ================= 2026-10-13, third pass (his review): left-aligned hero, camera right and docking, photo dial ====== */
.hero2 { padding: clamp(1rem, 2.5vw, 2rem) 0 0; }
.hero-in { display: grid; gap: 1.25rem; max-width: 86rem; margin: 0 auto; }
.hero-info { padding: 0 var(--pad); min-width: 0; order: 2; }
.hero-cam { min-width: 0; order: 1; }
.hero2 h1 { font-size: clamp(2.4rem, 9vw, 5.25rem); }
.hero2 .h1-sub { letter-spacing: .2em; text-transform: uppercase; }
.modenow { display: flex; align-items: center; gap: 1rem; margin-top: clamp(1.25rem, 2.5vw, 2rem); padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.modenow .label { margin: 0 0 .2rem; display: block; }
.modedot { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--warm); box-shadow: 0 0 24px 2px currentColor; color: transparent; transition: background-color 1.2s ease; }
.modedot:not(.off) { animation: breathe 4s ease-in-out infinite; }
.modedot.off { background: var(--raise); border: 1px solid var(--line-strong); }
@keyframes breathe { 50% { transform: scale(1.07); } }
.modename { color: var(--strong); font-weight: 800; text-transform: uppercase; letter-spacing: -.035em; line-height: 1; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); }
.now4 { grid-template-columns: 1fr 1fr; border-top: 0; }
.now4 .cell, .now4 .cell:nth-child(even) { padding: .9rem .9rem 1rem 0; border-left: 0; }
.now4 .cell:nth-child(even) { padding-left: .9rem; border-left: 1px solid var(--line); }
.now4 .cell .v { font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); }
.viewslot { position: relative; aspect-ratio: 16 / 9; background: #000; }
.viewslot .view { position: absolute; inset: 0; width: auto; aspect-ratio: auto; max-width: none; }
.view .undock { display: none; }
.view.dock { position: fixed; inset: auto .75rem calc(.75rem + env(safe-area-inset-bottom)) auto; width: min(46vw, 21rem); aspect-ratio: 16 / 9; z-index: 15; cursor: pointer; box-shadow: 0 10px 40px rgb(0 0 0 / 55%), 0 0 0 1px var(--line-strong); animation: dockin .3s var(--ease); }
@keyframes dockin { from { transform: translateY(12px) scale(.96); opacity: 0; } }
.view.dock .cams, .view.dock .state { display: none; }
.view.dock .fs { right: auto; left: .4rem; bottom: .4rem; padding: .35rem .5rem; font-size: .5625rem; }
.view.dock .live { top: .4rem; left: .4rem; padding: .3rem .45rem; font-size: .5625rem; }
.view.dock .undock { display: grid; place-items: center; position: absolute; top: .3rem; right: .3rem; width: 1.9rem; height: 1.9rem; border: 0; background: rgb(0 0 0 / 60%); color: #fff; font: 400 1.1rem/1 var(--sans); cursor: pointer; }
.hero-cam .photos { padding: .5rem var(--pad) 0; }

.dialwrap { display: grid; grid-template-columns: clamp(8.5rem, 38vw, 12rem) minmax(0, 1fr); gap: 1.1rem; align-items: center; margin-top: 1.25rem; }
.dialside .label { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin: 0 0 .7rem; }
.dialside .tag { margin: 0; } .tag.on { border-color: var(--accent); color: var(--accent); }
.dial-say { min-height: 0; margin-top: .6rem; } .dial-say.warn { color: var(--warm); } .dial-say.live { color: var(--accent); }
.pdial { position: relative; aspect-ratio: 1; border-radius: 50%; filter: drop-shadow(0 12px 18px rgb(0 0 0 / 45%)); user-select: none; -webkit-user-select: none; touch-action: none; }
.pdial img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pd-ring { transition: transform .25s var(--ease); }
.pdial.turning .pd-ring { transition: none; }
.pd-grab { position: absolute; inset: 0; border-radius: 50%; cursor: grab; }
.pd-grab:active { cursor: grabbing; }
.pd-grab:focus-visible { outline: 2px solid var(--strong); outline-offset: 4px; }
.pd-btn { position: absolute; width: 38%; height: 38%; padding: 0; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .12s, transform .12s; }
.pd-tl { left: 12%; top: 12%; border-radius: 100% 0 0 0; } .pd-tr { right: 12%; top: 12%; border-radius: 0 100% 0 0; }
.pd-bl { left: 12%; bottom: 12%; border-radius: 0 0 0 100%; } .pd-br { right: 12%; bottom: 12%; border-radius: 0 0 100% 0; }
.pd-btn:hover { background: rgb(255 255 255 / 5%); }
.pd-btn.pressed, .pd-btn:active { background: rgb(0 0 0 / 38%); transform: scale(.985); }
.pd-btn:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

@media (min-width: 60rem) {
  .hero2 { padding: 1.5rem var(--pad) 0; }
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(1.5rem, 3vw, 3.5rem); align-items: start; }
  .hero-info { order: 1; padding: 0; } .hero-cam { order: 2; position: sticky; top: calc(var(--bar) + 1rem); }
  .hero-cam .photos { padding: .75rem 0 0; grid-template-columns: repeat(4, 1fr); }
  .hero-cam .photo { aspect-ratio: 16 / 9; }
  .now4 { grid-template-columns: repeat(4, 1fr); }
  .now4 .cell, .now4 .cell:nth-child(even) { padding: 1rem .9rem 1.1rem 0; border-left: 0; }
  .now4 .cell:not(:first-child) { padding-left: .9rem; border-left: 1px solid var(--line); }
  .dialwrap { grid-template-columns: 11.5rem minmax(0, 1fr); gap: 1.75rem; margin-top: 1.5rem; }
}

/* ---------- modes: pick one, see it on the tank ---------- */
.modegrid { display: grid; gap: clamp(1.5rem, 4vw, 4rem); }
@media (min-width: 52rem) { .modegrid { grid-template-columns: minmax(14rem, 20rem) minmax(0, 1fr); align-items: start; } }
.modes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; border: 0; }
@media (min-width: 46rem) { .modes { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: .5rem; } }
button.mode { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .7rem; align-items: center; padding: .7rem; border: 1px solid var(--line); border-radius: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s, transform .15s var(--ease); }
button.mode .sw { width: 2rem; height: 2rem; border-radius: 50%; }
button.mode .mname { font-weight: 600; color: var(--strong); line-height: 1.2; overflow-wrap: anywhere; }
button.mode .tag { grid-column: 2; margin: 0; justify-self: start; }
button.mode:hover { border-color: var(--line-strong); transform: translateY(-1px); }
button.mode.sel { border-color: var(--strong); background: var(--raise); }
button.mode.now { border-color: var(--accent); }
.modepick { margin-top: 1rem; padding: 1.1rem; border: 1px solid var(--line-strong); animation: rise .25s var(--ease); }
.modepick .name { color: var(--strong); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; font-size: 1.3rem; }
.modepick p { margin-top: .5rem; }
.modepick .go, .pause { margin-top: .9rem; min-height: 2.75rem; padding: .5rem 1.1rem; background: var(--strong); color: var(--bg); border: 1px solid var(--strong); border-radius: 0; font: 600 .75rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.pause { background: none; color: var(--grey); border-color: var(--line-strong); margin-top: 1.5rem; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.rig-tree { position: absolute !important; left: 50%; top: 33.5%; width: 40%; height: auto !important; opacity: .96; }
.hot-mist { left: 45%; width: 12%; top: 28%; height: 6.5%; }
.rig-mist { left: 28%; width: 44%; top: 23.5%; }

/* ---------- plants ---------- */
.plantgrid { display: grid; gap: 1rem; }
@media (min-width: 46rem) { .plantgrid { grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2.5rem); } }
.plant { border: 1px solid var(--line); min-width: 0; }
.plant img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ease); }
.plant { overflow: hidden; } .plant:hover img { transform: scale(1.03); }
.pbody { padding: 1rem 1.1rem 1.2rem; position: relative; background: var(--bg); }
.pbody .name { color: var(--strong); font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); line-height: 1.05; }
.pbody p { margin-top: .5rem; } .pbody a, .row a, .fishmore a, .gcard a { color: var(--strong); text-underline-offset: .2em; }

/* ---------- fish by role; a card opens ---------- */
.rolehead { margin: clamp(1.75rem, 3.5vw, 2.75rem) 0 .9rem; }
.rolehead:first-child { margin-top: 0; }
.rolehead h3 { color: var(--strong); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; font-size: 1.15rem; }
.rolehead p { font-size: .9375rem; margin-top: .2rem; }
details.fish summary { list-style: none; cursor: pointer; } details.fish summary::-webkit-details-marker { display: none; }
details.fish.plainfish summary { cursor: default; }
details.fish .fishpic img { transition: transform .35s var(--ease); }
details.fish:hover .fishpic img { transform: translateX(6px) scale(1.04); }
details.fish[open] { background: var(--raise); }
.fishmore { margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--line); display: grid; gap: .3rem; animation: rise .25s var(--ease); }
.kvl { display: flex; justify-content: space-between; gap: 1rem; font-size: .8125rem; } .kvl span { color: var(--grey); } .kvl b { color: var(--strong); font-weight: 600; text-align: right; }

/* ---------- plan and timeline side by side ---------- */
.plangrid { display: grid; gap: var(--band); }
@media (min-width: 64rem) { .plangrid { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); } }
.plangrid .g-row, .plangrid .g-axis { grid-template-columns: 1fr; }
@media (min-width: 46rem) { .plangrid .g-row, .plangrid .g-axis { grid-template-columns: 11rem minmax(0, 1fr); align-items: center; } .plangrid .g-when { grid-column: 2; } .plangrid .g-axis .g-label { visibility: hidden; } }
.g-fixed { width: .8rem !important; margin-left: -.4rem; background: var(--accent); transform: rotate(45deg); top: .35rem !important; bottom: .35rem !important; }
.g-bar, .g-soft, .g-run { transform-origin: left; }
section.in .g-bar, section.in .g-soft { animation: grow .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes grow { from { transform: scaleX(0); } }
.g-who { position: relative; display: flex; gap: .3rem; margin-top: .45rem; cursor: pointer; width: fit-content; }
.g-who > img { height: 1.5rem; width: auto; max-width: 3.2rem; object-fit: contain; }
.g-pop { display: none; position: absolute; left: 0; top: calc(100% + .4rem); z-index: 5; width: min(80vw, 19rem); padding: .8rem; background: var(--bg); border: 1px solid var(--line-strong); box-shadow: 0 12px 30px rgb(0 0 0 / 40%); }
.g-who:hover .g-pop, .g-who:focus .g-pop, .g-who:focus-within .g-pop, .g-who.open .g-pop { display: grid; gap: .7rem; animation: rise .2s var(--ease); }
.g-popone { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: .7rem; align-items: center; }
.g-popone img { width: 100%; height: auto; } .g-popone b { display: block; color: var(--strong); font-weight: 600; font-size: .875rem; } .g-popone span { display: block; color: var(--grey); font-size: .75rem; }
.time li.soon span:last-child { color: var(--grey); } .time li.soon span:last-child::after { content: " (planned)"; }

/* ---------- the setup: cards with pictures; the two animated cut-aways ---------- */
.gearrow { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 46rem) { .gearrow { grid-template-columns: 1fr 1fr; column-gap: clamp(1.5rem, 4vw, 4rem); } }
.gcard { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.gpic { display: grid; place-items: center; width: 5.5rem; height: 4.5rem; }
.gpic img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 4px 8px rgb(0 0 0 / 30%)); transition: transform .3s var(--ease); }
.gcard:hover .gpic img { transform: scale(1.07); }
.gcard .name { color: var(--strong); font-weight: 600; line-height: 1.25; } .gcard .sub { color: var(--grey); font-size: .875rem; line-height: 1.45; }
.twoflow { display: grid; gap: clamp(1.5rem, 4vw, 4rem); margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 46rem) { .twoflow { grid-template-columns: 1fr 1fr; } }
.twoflow .label { margin-top: 0; }
.flow svg { display: block; width: 100%; max-width: 26rem; height: auto; }
.f-can, .c-tank { fill: none; stroke: var(--line-strong); stroke-width: 2; } .f-lid { fill: var(--raise); stroke: var(--line-strong); stroke-width: 2; }
.f-pre { fill: #2b2f2d; stroke: var(--line-strong); } .f-lay { stroke: var(--line-strong); }
.f-fine { fill: #d8862f; opacity: .85; } .f-mid { fill: #3c78b8; opacity: .8; } .f-bio { fill: #8b8f8a; opacity: .7; }
.f-txt { fill: var(--strong); font: 600 11px var(--sans); } .f-v { fill: #e9edea; }
.f-flow, .c-hose { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 2 12; animation: flow 1.6s linear infinite; }
.c-gas { fill: none; stroke: var(--warm); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1 9; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.c-bottle { fill: var(--raise); stroke: var(--line-strong); stroke-width: 2; } .c-reg { fill: var(--warm); opacity: .8; } .c-diff { fill: var(--raise); stroke: var(--warm); stroke-width: 2; }
.c-water { fill: var(--accent); opacity: .14; }
.c-bub { fill: var(--strong); opacity: 0; animation: bub 3.2s ease-in infinite; }
@keyframes bub { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--dx, 20px), 66px); } }
:root.still *, :root.still *::before, :root.still *::after { animation-play-state: paused !important; }

/* ---------- the temperature graph ---------- */
.chart svg { display: block; width: 100%; height: auto; }
.t-band { fill: var(--accent); opacity: .14; } .t-grid { stroke: var(--line); stroke-width: 1; }
.t-txt { fill: var(--grey); font: 400 12px var(--sans); }
.t-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
section.in .t-line { animation: draw 1.6s var(--ease) both; } @keyframes draw { from { stroke-dashoffset: 1; } }
.t-dot { fill: var(--accent); }
#monitor-items { margin-top: 1.5rem; }

/* ---------- day by day ---------- */
.daygrid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1rem); gap: .22rem; justify-content: start; overflow-x: auto; padding-bottom: .4rem; }
.dc { width: 1rem; height: 1rem; padding: 0; border: 1px solid var(--line); background: none; border-radius: 2px; }
.dc.has { cursor: pointer; background: var(--accent); border-color: transparent; } .dc.l1 { opacity: .35; } .dc.l2 { opacity: .55; } .dc.l3 { opacity: .78; } .dc.l4 { opacity: 1; }
.dc.on { outline: 2px solid var(--strong); outline-offset: 1px; }
.dayview { margin-top: 1.5rem; }
.cmp { position: relative; max-width: 52rem; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .cmp-top { position: absolute; inset: 0; }
.cmp input { position: absolute; left: 0; right: 0; bottom: .5rem; width: 100%; margin: 0; }
.dayshots { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem; margin-top: 1rem; }
.dayshots a { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; color: #fff; overflow: hidden; }
.dayshots img { width: 100%; height: 100%; object-fit: cover; } .dayshots span { position: absolute; left: 0; bottom: 0; padding: .25rem .45rem; background: rgb(0 0 0 / 55%); font-size: .6875rem; }

/* gentle entrance for each band */
@media (prefers-reduced-motion: no-preference) {
  html.io main > section.band > .wrap { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  html.io main > section.band.in > .wrap { opacity: 1; transform: none; }
}
.viewslot .view { justify-self: stretch; align-self: stretch; width: 100%; height: 100%; grid-area: auto; }
.view.dock { width: min(46vw, 21rem); height: auto; }
@media (min-width: 60rem) { .now4 { grid-template-columns: 1fr 1fr; } .now4 .cell:not(:first-child) { padding-left: 0; border-left: 0; } .now4 .cell:nth-child(even) { padding-left: .9rem; border-left: 1px solid var(--line); } }
.modegrid .rigbox { overflow: hidden; }

.view.dock { z-index: 40; }
.pd-ring { transition: transform .25s var(--ease), filter .2s; }
.pd-ring.spin { filter: brightness(1.35) drop-shadow(0 0 10px rgb(255 255 255 / 55%)); }
.pd-btn { transition: background-color .04s ease, box-shadow .04s ease; }
.pd-btn.pressed, .pd-btn:active { background: rgb(255 255 255 / 82%); box-shadow: 0 0 14px rgb(255 255 255 / 60%); transform: none; }
.foot .disclose { flex-basis: 100%; margin-top: .25rem; }

/* 10/13 afternoon: the dial sits under the camera, the photographs run under the whole hero; the wider tank picture */
.rig { aspect-ratio: 768 / 1679; }
.hero-cam .dialwrap { padding: 0 var(--pad); margin-top: 1rem; }
.herophotos { max-width: 86rem; margin: 1.25rem auto 0; padding: 0 var(--pad); grid-template-columns: repeat(4, 1fr); }
@media (min-width: 60rem) {
  .hero-cam { position: static; }
  .hero-cam .dialwrap { padding: 0; grid-template-columns: 9.75rem minmax(0, 1fr); gap: 1.5rem; margin-top: 1.1rem; align-items: start; }
  .hero-cam .dialkey { grid-template-columns: 1fr 1fr; gap: .5rem 1.25rem; }
  .herophotos { padding: 0; gap: .75rem; margin-top: 1.5rem; }
  .herophotos .photo { aspect-ratio: 16 / 6; }
  .hero-info { display: flex; flex-direction: column; }
}

/* profiles: a sheet that scrolls, with a clear close */
.sheet { max-height: min(88vh, 46rem); overflow-y: auto; overscroll-behavior: contain; }
.sheet #sheet-close { position: sticky; bottom: 0; }
@media (max-width: 45.99rem) { .sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; max-height: 86vh; border-left: 0; border-right: 0; border-bottom: 0; padding-bottom: calc(1.25rem + env(safe-area-inset-bottom)); } }
.sheetpic { display: grid; place-items: center; margin-top: .9rem; max-height: 11rem; } .sheetpic img { max-width: 100%; max-height: 11rem; object-fit: contain; }
.sheet .why { color: var(--strong); font-weight: 600; }
.factgrid { display: grid; margin-top: 1rem; border-top: 1px solid var(--line); }
.factgrid div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .875rem; line-height: 1.4; }
.factgrid span { color: var(--grey); } .factgrid b { color: var(--strong); font-weight: 400; }
.sheetlinks { display: flex; flex-wrap: wrap; gap: .4rem .5rem; } .sheetlinks a { padding: .45rem .7rem; border: 1px solid var(--line-strong); color: var(--strong); text-decoration: none; font-size: .8125rem; } .sheetlinks a:hover { border-color: var(--strong); }
button.fishbtn { display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: var(--bg); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; cursor: pointer; transition: background-color .15s; }
button.fishbtn:hover { background: var(--raise); } button.fishbtn .fishpic img { transition: transform .35s var(--ease); } button.fishbtn:hover .fishpic img { transform: translateX(6px) scale(1.04); }
.pbody .more { margin-top: .8rem; min-height: 2.5rem; padding: .4rem .9rem; background: none; color: var(--strong); border: 1px solid var(--line-strong); border-radius: 0; font: 600 .6875rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.foot .learn { flex-basis: 100%; } .foot .learn a { color: var(--text); }

/* ================= theater, and the thing that is not mentioned anywhere ================= */
.view .theaterbtn { right: auto; left: .75rem; bottom: .75rem; }
.view.dock .theaterbtn { display: none; }
.view:not(.dock) .cams { left: auto; right: .75rem; top: .75rem; bottom: auto; }
html.theater-on { overflow: hidden; }
.theater { position: fixed; inset: 0; z-index: 60; background: #000; display: grid; grid-template-rows: minmax(0, 1fr); color: #e9edea; transition: box-shadow 1.5s ease; }
.th-stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; }
.view.in-theater { position: relative; inset: auto; width: min(100vw, calc(100vh * 16 / 9)); height: auto; aspect-ratio: 16 / 9; max-width: none; box-shadow: none; cursor: default; }
.view.in-theater .fs:not(.theaterbtn), .view.in-theater .undock { display: none; }
.view.in-theater .theaterbtn { display: none; }
.th-bar { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; padding: 1.5rem 1.25rem calc(.9rem + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgb(0 0 0 / 82%) 45%); transition: opacity .5s ease; }
.theater.idle .th-bar { opacity: 0; pointer-events: none; } .theater.idle { cursor: none; }
.th-mode { color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; font-size: 1.25rem; line-height: 1; white-space: nowrap; }
.th-sub { margin-top: .3rem; color: #9aa39e; font-size: .75rem; white-space: nowrap; }
.th-dial { display: flex; align-items: center; gap: .6rem; } .th-dial .pdial { width: 4.25rem; } .th-dial .tag { margin: 0; color: #9aa39e; border-color: #56605b; }
.th-strip { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; min-width: 0; } .th-strip::-webkit-scrollbar { display: none; }
.th-strip button, .th-btns button { flex: none; min-height: 2.25rem; padding: .35rem .7rem; background: rgb(255 255 255 / 8%); color: #e9edea; border: 1px solid transparent; border-radius: 0; font: 600 .6875rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.th-strip button.now { border-color: #86c9a2; color: #86c9a2; } .th-strip button:hover, .th-btns button:hover { background: rgb(255 255 255 / 18%); }
.th-btns { display: flex; gap: .35rem; } .th-btns .th-exit { background: #fff; color: #000; }
@media (max-width: 45.99rem) { .th-bar { grid-template-columns: auto minmax(0, 1fr) auto; gap: .6rem; padding: 1rem .75rem calc(.6rem + env(safe-area-inset-bottom)); } .th-dial { display: none; } .th-mode { font-size: 1rem; } .th-btns button:first-child { display: none; } }
@media (max-width: 45.99rem) and (orientation: portrait) { .th-bar { grid-template-columns: 1fr auto; } .th-strip { grid-column: 1 / -1; grid-row: 2; } }

.sharkdim { position: fixed; inset: 0; z-index: 55; background: rgb(0 8 20 / 0%); pointer-events: none; transition: background-color .9s ease; }
.sharkdim.on { background: rgb(0 8 20 / 46%); } .sharkdim.out { background: rgb(0 8 20 / 0%); }
.sharkline { position: fixed; left: 50%; bottom: 14vh; z-index: 70; transform: translateX(-50%); margin: 0; padding: 0 1rem; width: max-content; max-width: 92vw; text-align: center; color: #fff; font: 800 clamp(1.1rem, 1rem + 1.6vw, 2rem)/1.1 var(--sans); letter-spacing: -.02em; text-transform: uppercase; text-shadow: 0 2px 18px rgb(0 0 0 / 80%); opacity: 0; pointer-events: none; transition: opacity 1.4s ease 2.6s; }
.sharkline.on { opacity: 1; } .sharkline.out { opacity: 0; transition-delay: 0s; transition-duration: .8s; }
.sharkhost { z-index: 56; } .rigbox:has(.sharkhost) { position: relative; z-index: 56; }
.rig.sharkhost { position: relative; }
.sharkfin { position: absolute; z-index: 3; height: auto; pointer-events: none; overflow: visible; filter: drop-shadow(0 4px 6px rgb(0 0 0 / 50%)); }
.sharkfin path { fill: #24394a; stroke: #a9cbdc; stroke-width: 2; stroke-linejoin: round; }
.sharkfin .wake { fill: none; stroke: rgb(255 255 255 / 55%); stroke-width: 3; stroke-linecap: round; }

/* water test photos */
.testpic { margin: 0 0 1.25rem; max-width: 22rem; } .testpic button { display: block; width: 100%; padding: 0; border: 1px solid var(--line-strong); background: var(--raise); cursor: zoom-in; }
.testpic img { display: block; width: 100%; height: auto; max-height: 26rem; object-fit: cover; } .testpic figcaption { margin-top: .5rem; color: var(--grey); }
.testthumb { display: inline-block; vertical-align: middle; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--line-strong); background: var(--raise); cursor: zoom-in; } .testthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.testbig { display: block; width: 100%; height: auto; margin-top: .9rem; }
