/* ============================================================
   qsartak.org — day chart / night ops
   Light = NOAA chart paper. Dark = the operations screen
   (same tokens as the QSAR ops portal).
   ============================================================ */

:root {
  /* day chart */
  --bg: #f5f6f2;
  --surface: #fdfdfb;
  --surface-2: #edeee7;
  --line: #dcded4;
  --line-2: #c2c6b8;
  --ink: #1d2733;
  --muted: #5c6b78;
  --brand: #1a5493;
  --brand-2: #2465ab;
  --amber: #96700f;
  --amber-bg: #f6ecd2;
  --red: #a8433a;
  --cyan: #17708c;
  --green: #2e7d4f;
  --focus: #2465ab;

  --shadow: 0 1px 2px rgba(29, 39, 51, .05), 0 8px 28px rgba(29, 39, 51, .07);
  --font-body: "Public Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-disp: "Barlow Condensed", "Arial Narrow", var(--font-body);
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* night ops — matches the operations portal token-for-token */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1216;
    --surface: #171c22;
    --surface-2: #1e242c;
    --line: #2a323c;
    --line-2: #3b4552;
    --ink: #eaeef2;
    --muted: #8d99a6;
    --brand: #1a5493;
    --brand-2: #4b8fd6;
    --amber: #e8b93c;
    --amber-bg: rgba(232, 185, 60, .09);
    --red: #d9584d;
    --cyan: #4fb6d9;
    --green: #56b381;
    --focus: #7ab5ec;

    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 32px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --bg: #0f1216;
  --surface: #171c22;
  --surface-2: #1e242c;
  --line: #2a323c;
  --line-2: #3b4552;
  --ink: #eaeef2;
  --muted: #8d99a6;
  --brand: #1a5493;
  --brand-2: #4b8fd6;
  --amber: #e8b93c;
  --amber-bg: rgba(232, 185, 60, .09);
  --red: #d9584d;
  --cyan: #4fb6d9;
  --green: #56b381;
  --focus: #7ab5ec;

  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 32px rgba(0, 0, 0, .35);
}

/* theme-conditional assets */
.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: inline-block; }
:root[data-theme="dark"] .only-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: inline-block; }
  :root:not([data-theme="light"]) .only-light { display: none; }
}

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand-2); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--surface); color: var(--ink);
  padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* 87rem - 2x1.5rem padding = 84rem of content, the same measure as .hero-in
   (90rem - 2x3rem), so every section lines up with the hero on wide screens.
   Prose keeps its own narrower max-widths so line length stays readable. */
.wrap { max-width: 87rem; margin: 0 auto; padding: 0 1.5rem; }

.eyebrow {
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-2);
}
.section-t {
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: .5rem;
  margin: 2.75rem 0 1.15rem;
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: 90rem; margin: 0 auto;
  display: flex; align-items: center; gap: 1.1rem;
  padding: .6rem 1.5rem;
}
.brand {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--ink);
}
.brand img { width: 30px; height: auto; }
.brand-name {
  font-family: var(--font-disp);
  font-weight: 600; font-size: 1.35rem; letter-spacing: .06em;
  display: flex; align-items: baseline; gap: .6rem;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: .68rem; letter-spacing: .08em;
  color: var(--muted); text-transform: uppercase;
}
.topnav { margin-left: auto; display: flex; gap: .35rem; align-items: center; }
.topnav a {
  color: var(--muted); text-decoration: none;
  font-weight: 600; font-size: .88rem;
  padding: .4rem .7rem; border-radius: 7px;
  white-space: nowrap;
}
.topnav a:hover { color: var(--ink); background: var(--surface-2); }
.topnav .ext { margin-left: .3rem; font-size: .8em; }

.themebtn, .navbtn {
  background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 2.1rem; height: 2.1rem; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); cursor: pointer;
}
.themebtn:hover, .navbtn:hover { color: var(--ink); border-color: var(--line-2); }
.themebtn svg, .navbtn svg {
  width: 17px; height: 17px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.themebtn .ic-night { display: none; }
:root[data-theme="dark"] .themebtn .ic-night { display: block; }
:root[data-theme="dark"] .themebtn .ic-day { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .themebtn .ic-night { display: block; }
  :root:not([data-theme="light"]) .themebtn .ic-day { display: none; }
}
.navbtn { display: none; }

/* ---------- docs shell ---------- */
.shell {
  flex: 1;
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  max-width: 90rem;
  width: 100%;
  margin: 0 auto;
}
.sidebar {
  border-right: 1px solid var(--line);
  padding: 1.9rem 1.5rem 2.5rem;
  position: sticky; top: 3.4rem;
  max-height: calc(100vh - 3.4rem);
  overflow-y: auto;
}
.navgroup { margin-bottom: 1.6rem; }
.navgroup-t {
  font-family: var(--font-disp);
  font-weight: 600; font-size: .88rem;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .45rem;
}
.navgroup ul { list-style: none; }
.navgroup a {
  display: block;
  color: var(--ink); text-decoration: none;
  font-size: .92rem; line-height: 1.35;
  padding: .34rem .6rem;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
}
.navgroup a:hover { background: var(--surface-2); }
.navgroup a[aria-current="page"] {
  border-left-color: var(--brand-2);
  background: var(--surface-2);
  font-weight: 600;
}
.side-scrim { display: none; }

.doc {
  padding: 2.6rem 3rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 46rem) 1fr;
  gap: 3rem;
  align-items: start;
}
.doc article { max-width: 46rem; min-width: 0; }

.toc-rail {
  position: sticky; top: 5rem;
  max-width: 15rem;
  padding-left: 1.2rem;
  border-left: 1px solid var(--line);
  font-size: .84rem;
}
.toc-t {
  font-family: var(--font-disp);
  font-weight: 600; font-size: .85rem;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}
.toc-rail ul { list-style: none; }
.toc-rail a {
  display: block;
  color: var(--muted); text-decoration: none;
  padding: .22rem 0; line-height: 1.35;
}
.toc-rail a:hover { color: var(--ink); }
.toc-rail a.is-here { color: var(--brand-2); font-weight: 600; }
@media (max-width: 74rem) { .toc-rail { display: none; } }
.doc-head { margin-bottom: 2rem; }
.doc-head .eyebrow { margin-bottom: .5rem; }
.doc-head h1 {
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.5vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.doc-head .lede {
  margin-top: .8rem;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 40rem;
}

/* ---------- prose ---------- */
.prose > * + * { margin-top: 1rem; }
.prose h2 {
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.prose h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-top: 1.9rem;
}
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-top: .35rem; }
.prose strong { font-weight: 700; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.prose code {
  font-family: var(--font-mono);
  font-size: .84em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .1em .35em;
}
.prose pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  line-height: 1.45;
}
.prose pre code { background: none; border: 0; padding: 0; font-size: .82rem; }

.prose table {
  display: block;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: .94rem;
}
.prose th {
  font-family: var(--font-disp);
  font-weight: 600; font-size: .92rem;
  letter-spacing: .09em; text-transform: uppercase;
  text-align: left;
  color: var(--muted);
  border-bottom: 2px solid var(--line-2);
  padding: .5rem .9rem .45rem .1rem;
}
.prose td {
  border-bottom: 1px solid var(--line);
  padding: .55rem .9rem .55rem .1rem;
  vertical-align: top;
}

.prose blockquote {
  border-left: 3px solid var(--amber);
  background: var(--amber-bg);
  border-radius: 0 10px 10px 0;
  padding: .85rem 1.2rem;
}
.prose blockquote > * + * { margin-top: .5rem; }

.prose img {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.prose details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 0;
}
.prose details summary {
  cursor: pointer;
  padding: .8rem 1.1rem;
  font-weight: 600;
  color: var(--brand-2);
  list-style-position: inside;
}
.prose details summary:hover { background: var(--surface-2); border-radius: 10px; }
.prose details[open] summary { border-bottom: 1px solid var(--line); }
.prose details > *:not(summary) { margin: .9rem 1.1rem; }

.prose figure.video {
  margin: 1.4rem 0 0;
  max-width: 720px;
}
.prose figure.video .frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0d1117;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  overflow: hidden;
}
.prose figure.video iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.prose figure.video figcaption {
  margin-top: .65rem;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--muted);
}

.prose kbd {
  font-family: var(--font-mono); font-size: .82em;
  border: 1px solid var(--line-2); border-bottom-width: 2px;
  border-radius: 5px; padding: .05em .4em;
  background: var(--surface);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600; font-size: .97rem;
  padding: .68rem 1.25rem;
  border-radius: 9px;
  border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }

/* ---------- home: hero ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero-in {
  max-width: 90rem; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(19rem, 4fr) 7fr;
  gap: 2.8rem;
  align-items: center;
  padding: 3.5rem 3rem 3.2rem;
}
.hero-copy .eyebrow { margin-bottom: 1rem; }
.hero-copy h1 {
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: clamp(3rem, 6.5vw, 4.6rem);
  line-height: .96;
  letter-spacing: .015em;
  text-transform: uppercase;
}
.hero-copy .lede {
  margin-top: 1.2rem;
  font-size: 1.13rem;
  color: var(--muted);
  max-width: 34rem;
}
.hero-cta { margin-top: 1.7rem; display: flex; gap: .7rem; flex-wrap: wrap; }
.hero-note {
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 30rem;
}

/* ---------- home: hero photograph ----------
   Bleeds off the right edge of the viewport so the photo reads as a window
   rather than a boxed illustration. */
.hero-shot { position: relative; }
.hero-shot a { display: block; border-radius: 3px; overflow: hidden; }
.hero-shot a:hover { outline: 1px solid var(--brand-2); }
.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  border: 1px solid var(--line);
}
.hero-shot figcaption {
  margin-top: .7rem;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 32rem;
}

/* ---------- home: screenshots ---------- */
.sec-lede { max-width: 42rem; color: var(--muted); }
.shot { min-width: 0; margin-top: 1.6rem; }
/* The phone screenshot is 1:2.2 — pairing it with a landscape shot alongside
   uses the height instead of leaving a column of dead space. */
.screens-pair {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.screens-pair .shot { margin-top: 0; }
/* Dark mount: both screenshots are dark-UI, so a neutral field keeps them
   from floating on the light theme. */
.shot-img {
  display: block;
  background: #0d1117;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: .5rem;
  overflow: hidden;
}
a.shot-img:hover { border-color: var(--brand-2); }
.shot-img img { display: block; width: 100%; height: auto; border-radius: 2px; }
.shot-phone .shot-img { padding: .6rem; }
.shot figcaption { margin-top: .85rem; display: grid; gap: .35rem; }
.shot-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-2);
}
.shot-cap { font-size: .88rem; line-height: 1.55; color: var(--muted); max-width: 44rem; }

/* ---------- home: layers + field photos ---------- */
.layers-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  gap: 2.5rem;
  align-items: start;
}
.side-shot img, .field-shot img {
  display: block; width: 100%; height: auto;
  border-radius: 3px;
  border: 1px solid var(--line);
}
.side-shot figcaption, .field-shot figcaption {
  margin-top: .65rem;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--muted);
}
/* ---------- home: mission logger ---------- */
.logger-in {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2.4rem;
  align-items: start;
}
.logger-vid video {
  display: block; width: 100%; height: auto;
  background: #0d1117;
  border: 1px solid var(--line-2);
  border-radius: 4px;
}
.logger-vid figcaption {
  margin-top: .65rem;
  font-size: .82rem; color: var(--muted);
}
.logger-steps {
  list-style: none;
  counter-reset: step;
  display: grid; gap: 1rem;
}
.logger-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.4rem;
  font-size: .95rem; line-height: 1.55;
}
.logger-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: .05rem;
  font-family: var(--font-disp); font-weight: 600; font-size: 1.05rem;
  color: var(--brand-2);
  border: 1px solid var(--line-2); border-radius: 8px;
  width: 1.8rem; height: 1.8rem;
  display: flex; align-items: center; justify-content: center;
}
.logger-link { margin-top: 1.6rem; font-weight: 600; }

.buoy-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 17rem);
  gap: 2.6rem;
  align-items: start;
}
.buoy-main { display: grid; gap: 1.6rem; }
.buoy-phone { margin-top: 0; }
.buoy-shot img {
  display: block; width: 100%; height: auto;
  border-radius: 3px; border: 1px solid var(--line);
}
.buoy-shot figcaption {
  margin-top: .65rem;
  font-size: .82rem; line-height: 1.5;
  color: var(--muted);
}
.buoy-copy > * + * { margin-top: 1.2rem; }
.buoy-copy .press { margin-top: 1.5rem; }

/* Photo and quote stack as one unit: side by side they could never match
   heights, which stranded every quote in a column of empty space. */
.field-grid {
  display: grid;
  /* 28rem floor keeps this at two columns on desktop (three would leave a
     dangling fourth) and collapses to one on narrow screens. */
  grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  gap: 2.6rem 2rem;
  align-items: start;
}
.field-pair { display: grid; gap: 1rem; align-content: start; }
.pull { padding: 0 0 0 1.2rem; border-left: 2px solid var(--brand-2); }
.pull p {
  font-family: var(--font-disp);
  font-weight: 500;
  font-size: clamp(1.2rem, 1.6vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: .005em;
  text-wrap: balance;
}
.pull footer {
  margin-top: .7rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .05em;
  color: var(--muted);
}
.press {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline;
}
.press-src {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  flex: none;
}
.press .ext { margin-left: .3rem; font-size: .8em; }
.credit {
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ---------- home: status ---------- */
.status-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: .6rem 1.6rem;
}
.status-row li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: .6rem;
  align-items: center;
  padding: .3rem 0;
}
.status-row b { font-weight: 600; font-size: .95rem; }
.status-row .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent);
}
.status-row span {
  grid-column: 2;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--muted);
  margin-top: .1rem;
}

/* ---------- home: layers ---------- */
.layer-list {
  list-style: none;
  max-width: 46rem;
  display: grid; gap: .9rem;
}
.layer-list li { display: flex; gap: 1.1rem; align-items: flex-start; }
.layer-n {
  flex: none;
  font-family: var(--font-disp); font-weight: 600; font-size: 1.15rem;
  color: var(--brand-2);
  border: 1px solid var(--line-2); border-radius: 8px;
  width: 2.1rem; height: 2.1rem;
  display: flex; align-items: center; justify-content: center;
  margin-top: .1rem;
}

/* ---------- home: guide cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: .8rem;
}
.card {
  position: relative;
  display: flex; flex-direction: column; gap: .3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.05rem 1.15rem 1.1rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .13s ease, background .13s ease;
}
.card:hover { background: var(--surface-2); border-color: var(--line-2); }
.card:hover .card-go { transform: translateX(3px); color: var(--brand-2); }
.card-t { font-weight: 700; font-size: 1rem; letter-spacing: -.005em; }
.card-d { font-size: .86rem; color: var(--muted); line-height: 1.45; }
.card-go {
  position: absolute; right: 1rem; top: .95rem;
  color: var(--muted); font-size: .95rem;
  transition: transform .13s ease, color .13s ease;
}

/* ---------- home: share ---------- */
.share { padding-bottom: 3.5rem; }
.share-in { display: flex; gap: 1.8rem; align-items: center; flex-wrap: wrap; }
.share-in img {
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  padding: 6px; flex: none;
}
.share-in p { max-width: 34rem; color: var(--muted); }
.share-in .section-t { margin-top: 0; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--surface); }
.foot-in {
  max-width: 90rem; margin: 0 auto;
  padding: 1.2rem 1.5rem 1.35rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.foot-org { display: flex; flex-direction: column; gap: .15rem; }
.foot-name { font-size: .85rem; font-weight: 600; }
.foot-coord {
  font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .04em; color: var(--muted);
}
.foot-credit {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--muted); font-size: .8rem;
}
.foot-credit:hover { color: var(--ink); }
.foot-credit img { height: 26px; width: auto; }

/* ---------- responsive ---------- */
@media (max-width: 74rem) {
  .hero-in { grid-template-columns: 1fr; gap: 2.4rem; padding: 2.8rem 1.5rem 2.6rem; }
  .hero-copy h1 br { display: none; }
  .hero-shot { max-width: 46rem; }
  .layers-in { grid-template-columns: 1fr; gap: 2rem; }
  .side-shot { max-width: 34rem; }
}

@media (max-width: 56rem) {
  .navbtn { display: flex; }
  .topnav a:first-child { display: none; }
  .shell { display: block; }
  .sidebar {
    position: fixed; z-index: 150; top: 0; left: 0; bottom: 0;
    width: min(19rem, 85vw);
    background: var(--bg);
    border-right: 1px solid var(--line);
    max-height: none;
    transform: translateX(-102%);
    transition: transform .2s ease;
  }
  body.nav-open .sidebar { transform: none; box-shadow: var(--shadow); }
  body.nav-open .side-scrim {
    display: block; position: fixed; inset: 0; z-index: 140;
    background: rgba(10, 14, 18, .45);
  }
  .doc { padding: 2rem 1.5rem 3.5rem; }
  .brand-sub { display: none; }
}

@media (max-width: 52rem) {
  .buoy-in { grid-template-columns: 1fr; gap: 1.8rem; }
  .logger-in { grid-template-columns: 1fr; gap: 1.8rem; }
  .screens-pair { grid-template-columns: 1fr; gap: 2rem; }
  .screens-pair .shot-phone .shot-img { max-width: 17rem; }
}

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .hero-in { padding: 2.2rem 1.25rem; }
  .wrap { padding: 0 1.25rem; }
  .doc { padding: 1.7rem 1.25rem 3rem; }
  .shot-img { padding: .35rem; }
}

/* ---------- motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
@media print {
  .topbar, .sidebar, .themebtn, .navbtn, .foot-credit { display: none !important; }
  .shell { display: block; }
  body { background: #fff; color: #000; }
}
