/* ═══════════════════════════════════════════════════════════════
   MIHARU — "Specimen Record"
   Palette sampled from images/miharu-original.jpg: aquarium cyan
   behind a warm grey animal. Light, institutional, hairline-ruled.
   The page is a placard. The joke is that it is entirely deadpan.
   ═══════════════════════════════════════════════════════════════ */

:root {
  color-scheme: only light;

  --paper:    #E9EDEC;
  --paper-2:  #DCE3E2;
  --paper-3:  #F3F6F5;
  --ink:      #141B1A;
  --ink-2:    #4A5654;
  --ink-3:    #515C5B;
  --tank:     #0C3F45;
  --tank-2:   #10515A;
  --water:    #7EC8D8;
  --water-dk: #276A7C;
  --porpoise: #8A8D91;
  --mouth:    #D98E92;
  --rule:     rgba(20, 27, 26, 0.14);
  --rule-2:   rgba(20, 27, 26, 0.07);

  --display: 'Big Shoulders Display', 'Haettenschweiler', 'Arial Narrow', sans-serif;
  --body:    'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --on-tank: #E9EDEC;   /* text on the always-dark Status band */

  --pad: clamp(1.25rem, 4vw, 3rem);
  --sec: clamp(4.5rem, 10vw, 8.5rem);
}

/* Dark: the same tank at depth. Paper darkens to near-black green, ink
   inverts to a warm off-white, and the inverted Status band goes lighter
   than its surroundings so it still reads as a break in the page. */
:root[data-theme="dark"] {
  color-scheme: only dark;
  --paper:    #0F1614;
  --paper-2:  #141C1A;
  --paper-3:  #18211F;
  --ink:      #E6ECEA;
  --ink-2:    #A3B0AD;
  --ink-3:    #93A09D;
  --tank:     #0A2E33;
  --water:    #7EC8D8;
  --water-dk: #9BD8E6;
  --porpoise: #8A8D91;
  --mouth:    #D98E92;
  --rule:     rgba(230, 236, 234, 0.16);
  --rule-2:   rgba(230, 236, 234, 0.09);
}
:root[data-theme="dark"] .nav { background: rgba(15, 22, 20, .88); }
:root[data-theme="dark"] .btn-ink { background: var(--water); color: #08201F; border-color: var(--water); }
:root[data-theme="dark"] .btn-ink:hover { background: transparent; color: var(--water); }
:root[data-theme="dark"] .btn-line:hover { background: var(--ink); color: var(--paper); }
:root[data-theme="dark"] .copy-btn { background: var(--water); color: #08201F; border-color: var(--water); }
:root[data-theme="dark"] .copy-btn:hover { background: transparent; color: var(--water); }
:root[data-theme="dark"] .footer { background: #080D0C; color: var(--on-tank); }
:root[data-theme="dark"] .acc-mark::before,
:root[data-theme="dark"] .acc-mark::after { background: var(--ink); }
:root[data-theme="dark"] .acc-item.open .step-n { background: var(--water); color: #08201F; border-color: var(--water); }
:root[data-theme="dark"] .plate-img { background: var(--paper-2); }
:root[data-theme="dark"] .posts button { background: #000; }
:root[data-theme="dark"] .dex:hover,
:root[data-theme="dark"] .org:hover,
:root[data-theme="dark"] .gallery button:hover { border-color: var(--water); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

::selection { background: var(--water); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--water-dk);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: .75rem 1.25rem; font-family: var(--mono); font-size: .8125rem;
}
.skip-link:focus { left: 0; }

/* ── layout ───────────────────────────────────────────── */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--pad); }
.wrap-narrow { max-width: 780px; }

.section { padding-block: var(--sec); border-top: 1px solid var(--rule); }
.section-alt { background: var(--paper-2); }

/* ── type primitives ──────────────────────────────────── */
.field-label,
.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.section-head {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: .92;
  letter-spacing: -.005em;
  margin-bottom: 1.75rem;
  max-width: 20ch;
}
.section-head .field-label {
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--rule);
}

.section-lede {
  max-width: 62ch;
  color: var(--ink-2);
  font-size: 1.125rem;
  margin-bottom: 3rem;
}

.latin { font-style: italic; }
.jp { font-size: .9em; color: var(--ink-3); }

/* ── buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .8125rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  padding: .9rem 1.5rem; border: 1px solid var(--ink); border-radius: 2px;
  transition: background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-ink   { background: var(--ink); color: var(--paper); }
.btn-ink:hover  { background: transparent; color: var(--ink); }
.btn-line  { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* ── nav ──────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(233, 237, 236, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner { display: flex; align-items: center; gap: 2rem; height: 4.5rem; }

.wordmark { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.wordmark-name {
  font-family: var(--display); font-weight: 900;
  font-size: 1.75rem; letter-spacing: .01em;
}
.wordmark-tag {
  font-family: var(--mono); font-size: .625rem; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3);
  margin-top: .15rem;
}

.nav-links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav-links a {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none; color: var(--ink-2);
  padding-bottom: 2px; border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.nav-end { display: flex; align-items: center; gap: .75rem; }
.nav-buy { padding: .7rem 1.15rem; font-size: .75rem; }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 42px; height: 42px; padding: 0 9px;
  background: none; border: 1px solid var(--rule); border-radius: 2px; cursor: pointer;
}
.menu-toggle span { display: block; height: 1.5px; background: var(--ink); transition: transform .22s ease, opacity .22s ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

.theme-toggle {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex: none;
  background: none; border: 1px solid var(--rule); border-radius: 2px;
  color: var(--ink-2); cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun  { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }

/* ── hero: the fixed smile ────────────────────────────── */
.hero { padding-block: clamp(2rem, 4vw, 3.5rem) var(--sec); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.hero-name {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(4.25rem, 13vw, 9.5rem);
  line-height: .8;
  letter-spacing: -.01em;
  margin: .5rem 0 1.25rem;
}

.eyebrow { margin-bottom: .25rem; }

.hero-lede {
  max-width: 46ch; color: var(--ink-2);
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  margin-bottom: 1.85rem;
}

/* the one animated element on the page */
.caption-cycle {
  border-left: 2px solid var(--water);
  padding: .35rem 0 .35rem 1.5rem;
  margin-bottom: 1.5rem;
  min-height: 5.75rem;
}
.caption-cycle blockquote {
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  font-style: italic;
  line-height: 1.35;
  max-width: 26ch;
  transition: opacity .45s ease;
}
.caption-cycle.is-swapping blockquote { opacity: 0; }
.caption-cycle figcaption {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); margin-top: .9rem;
}

.counter {
  display: grid; gap: .35rem; justify-items: start;
  border-top: 1px solid var(--rule); padding-top: 1.15rem; margin-bottom: 1.85rem;
}
.counter-label {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-3);
}
.counter-line { order: -1; }
.counter-line { display: flex; align-items: baseline; gap: .6rem; }
.counter-num {
  font-family: var(--display); font-weight: 800; font-size: 2.5rem;
  color: var(--ink); line-height: .9;
}
.counter-unit {
  font-family: var(--mono); font-size: .8125rem; color: var(--ink-2);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* the plate — a field-guide specimen figure */
.plate { background: var(--paper-3); border: 1px solid var(--rule); border-radius: 2px; padding: .875rem; }
.plate-img { overflow: hidden; background: var(--paper-2); }
.plate-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 42%; }
.plate-cap {
  display: grid; gap: .4rem;
  font-family: var(--mono); font-size: .6875rem; line-height: 1.6;
  color: var(--ink-3); padding: .875rem .25rem .125rem;
}
.plate-no { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }

/* ── specimen ─────────────────────────────────────────── */
.specimen-grid {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}

.record-card { border: 1px solid var(--rule); border-radius: 2px; background: var(--paper-3); }
.record > div {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0 1.25rem; padding: .8rem 1.25rem;
  border-bottom: 1px solid var(--rule-2);
}
.record > div:last-child { border-bottom: 0; }
.record dt {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); padding-top: .2rem;
}
.record dd { font-size: .9375rem; font-weight: 500; }
.record dd.note {
  grid-column: 2; font-family: var(--mono); font-size: .6875rem;
  font-weight: 400; color: var(--ink-3); margin-top: .15rem; line-height: 1.5;
}

.specimen-prose h3 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1; margin-bottom: 1.25rem;
}
.specimen-prose p { margin-bottom: 1.15rem; color: var(--ink-2); max-width: 56ch; }
.specimen-prose .pull {
  color: var(--ink); font-size: 1.1875rem; font-style: italic;
  border-top: 1px solid var(--rule); padding-top: 1.25rem; margin-top: 1.75rem;
}
.micro { font-family: var(--mono); font-size: .75rem; color: var(--ink-3); margin-top: 1.5rem; }
.micro a, .specimen-prose a { color: var(--water-dk); text-decoration: underline; text-underline-offset: 2px; }

/* ── record: who posted him ───────────────────────────── */
.roll {
  list-style: none; display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 2.5rem;
}
.roll li {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .06em;
  border: 1px solid var(--rule); border-radius: 2px;
  padding: .5rem .8rem; background: var(--paper-3); color: var(--ink-2);
}

.impressions {
  border-left: 2px solid var(--water);
  padding: .25rem 0 .25rem 1.5rem; margin-bottom: 2.5rem;
}
.impressions blockquote {
  font-size: clamp(1.125rem, 2.2vw, 1.5rem); font-style: italic;
  line-height: 1.35; max-width: 34ch;
}
.impressions figcaption {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); margin-top: .85rem;
}

/* masonry: these are portrait screenshots and the engagement figures at the
   bottom of each are the point, so never crop them to a fixed ratio */
.posts { columns: 3; column-gap: .875rem; }
.posts button {
  display: block; width: 100%; padding: 0; margin-bottom: .875rem;
  break-inside: avoid; cursor: pointer; overflow: hidden;
  border: 1px solid var(--rule); border-radius: 3px; background: var(--ink);
  transition: border-color .18s ease, transform .18s ease;
}
.posts button:hover { border-color: var(--ink); transform: translateY(-2px); }
.posts img { width: 100%; height: auto; }
.posts-note {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); margin: 1rem 0 3.5rem;
}

/* ── record of spread: the timeline ───────────────────── */
.timeline { list-style: none; border-top: 1px solid var(--rule); }
.timeline li {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1.5rem; padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.timeline time {
  font-family: var(--mono); font-size: .8125rem; letter-spacing: .04em;
  color: var(--ink-3); padding-top: .35rem;
}
.tl-body h3 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.375rem, 2.6vw, 1.875rem); line-height: 1.05; margin-bottom: .5rem;
}
.tl-body h3 a { color: inherit; text-decoration: underline; text-decoration-color: var(--water); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.tl-body h3 a:hover { text-decoration-color: var(--ink); }
.tl-body p { color: var(--ink-2); max-width: 60ch; font-size: .9688rem; }
.tl-body p a { color: var(--water-dk); text-decoration: underline; text-underline-offset: 2px; }

.metric { font-family: var(--mono); font-weight: 700; font-size: .68em; letter-spacing: -.01em; }
.tl-peak { background: linear-gradient(90deg, rgba(126,200,216,.16), transparent 65%); }
.tl-peak time { color: var(--water-dk); font-weight: 700; }
.tl-end .tl-body h3 { color: var(--ink-3); }

/* ── the class he came up in ──────────────────────────── */
.klass { margin-top: 3.5rem; padding-top: 3rem; border-top: 1px solid var(--rule); }
.klass-head {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1; margin-bottom: 1rem;
}
.klass-lede { color: var(--ink-2); max-width: 60ch; margin-bottom: 2.25rem; }
.pfps {
  list-style: none; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem;
}
.pfps li { display: grid; gap: .5rem; justify-items: center; text-align: center; }
.pfps img {
  width: 100%; max-width: 132px; aspect-ratio: 1; object-fit: cover;
  border-radius: 50%; border: 1px solid var(--rule); background: var(--paper-3);
  filter: saturate(.35) contrast(.95);
  transition: filter .3s ease, border-color .3s ease;
}
.pfps li:hover img { filter: none; }
.pfp-self img {
  filter: none;
  border: 2px solid var(--water);
}
.pfps span { font-family: var(--mono); font-size: .8125rem; font-weight: 500; }
.pfp-self span { color: var(--water-dk); font-weight: 700; }
.pfps small { font-family: var(--mono); font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.klass-note { font-family: var(--mono); font-size: .6875rem; color: var(--ink-3); margin-top: 1.75rem; }

/* ── status: the inverted band ────────────────────────── */
.section-tank { background: var(--tank); color: var(--on-tank); border-top-color: transparent; }
.section-tank .section-head { color: var(--on-tank); }
.section-tank .field-label { color: var(--water); border-bottom-color: rgba(126,200,216,.28); }

.status-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem;
  padding-bottom: 1.5rem; margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(126,200,216,.22);
}
.live {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--water);
}
.live::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--mouth); animation: pulse 2.4s ease-in-out infinite;
}
.live[data-state="stale"]::before { background: var(--porpoise); animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .28; } }

.status-src { font-family: var(--mono); font-size: .6875rem; color: rgba(233,237,236,.62); }

.metrics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px; background: rgba(126,200,216,.2);
  border: 1px solid rgba(126,200,216,.2); border-radius: 2px;
  margin-bottom: 3.5rem;
}
.metric-cell { background: var(--tank); padding: 1.5rem 1.375rem; display: grid; gap: .4rem; }
.m-label {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--water);
}
.m-value { font-family: var(--mono); font-size: clamp(1.375rem, 2.6vw, 1.75rem); font-weight: 700; line-height: 1.1; }
.m-sub { font-family: var(--mono); font-size: .6875rem; color: rgba(233,237,236,.62); }
.m-sub.up   { color: #7FD8A8; }
.m-sub.down { color: var(--mouth); }

/* every source failed: make that visible rather than letting month-old
   numbers sit there looking current (the exact bug that went unnoticed for 12 days) */
.metrics.is-stale .m-value { opacity: .45; }
.metrics.is-stale .m-value::after {
  content: '*'; color: var(--mouth); margin-left: .15em; opacity: .9;
}

.assurance { border-top: 1px solid rgba(126,200,216,.22); }
.assure-row {
  display: grid; grid-template-columns: 13rem 8rem minmax(0, 1fr);
  gap: 1.25rem; align-items: baseline;
  padding: 1.25rem 0; border-bottom: 1px solid rgba(126,200,216,.22);
}
.a-key {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--water);
}
.a-val { font-family: var(--display); font-weight: 800; font-size: 1.875rem; line-height: 1; }
.a-how { color: rgba(233,237,236,.78); font-size: .9375rem; }

.assurance-note {
  margin-top: 2rem; max-width: 68ch;
  color: rgba(233,237,236,.78); font-size: 1.0625rem;
}
.assurance-note strong { color: var(--on-tank); font-family: var(--mono); font-weight: 700; }
.assurance-note a { color: var(--water); text-decoration: underline; text-underline-offset: 3px; }

/* ── acquire ──────────────────────────────────────────── */
.ca-block { border: 1px solid var(--rule); border-radius: 2px; background: var(--paper-3); padding: 1.5rem; margin-bottom: 2.5rem; }
.ca-label {
  display: block; font-family: var(--mono); font-size: .6875rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .75rem;
}
.ca-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.ca-row code {
  flex: 1 1 22rem; min-width: 0;
  font-family: var(--mono); font-size: .8125rem; word-break: break-all;
  background: var(--paper-2); border: 1px solid var(--rule-2); border-radius: 2px; padding: .7rem .85rem;
}
.copy-btn {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: 2px;
  padding: .7rem 1.1rem; cursor: pointer; transition: background .18s ease, color .18s ease;
}
.copy-btn:hover { background: transparent; color: var(--ink); }
.copy-btn.copied { background: var(--water-dk); border-color: var(--water-dk); color: #fff; }
.ca-warn { font-family: var(--mono); font-size: .75rem; color: var(--ink-3); margin-top: .85rem; }
.ca-row-inline { margin-top: 1rem; }

.dex-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 3rem; }
.dex {
  display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto;
  gap: .15rem 1rem; align-items: center; text-decoration: none;
  border: 1px solid var(--rule); border-radius: 2px; background: var(--paper-3);
  padding: 1.5rem; transition: border-color .18s ease, transform .18s ease;
}
.dex:hover { border-color: var(--ink); transform: translateY(-2px); }
.dex img { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.dex-name { font-family: var(--display); font-weight: 800; font-size: 1.625rem; line-height: 1; }
.dex-go { font-family: var(--mono); font-size: .75rem; color: var(--ink-3); }

/* ── accordion (shared: steps + faq) ──────────────────── */
.accordion { border-top: 1px solid var(--rule); }
.acc-item { border-bottom: 1px solid var(--rule); }
.acc-trigger {
  display: flex; align-items: center; gap: 1rem; width: 100%;
  padding: 1.25rem 0; background: none; border: 0; cursor: pointer;
  text-align: left; color: inherit; font-family: inherit;
}
.acc-title { flex: 1; font-size: 1.0625rem; font-weight: 500; }
.step-n {
  flex: none; width: 1.75rem; height: 1.75rem;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: .75rem; font-weight: 700;
  border: 1px solid var(--rule); border-radius: 50%; color: var(--ink-3);
}
.acc-mark { flex: none; position: relative; width: 14px; height: 14px; }
.acc-mark::before, .acc-mark::after {
  content: ''; position: absolute; inset: 50% 0 auto 0;
  height: 1.5px; background: var(--ink); transition: transform .22s ease;
}
.acc-mark::after { transform: rotate(90deg); }
.acc-item.open .acc-mark::after { transform: rotate(0deg); }
.acc-item.open .step-n { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; min-height: 0; }
.acc-inner > :last-child { padding-bottom: 1.5rem; }
.acc-body p { color: var(--ink-2); max-width: 66ch; }
.acc-body p + * { margin-top: 1rem; }
.acc-body a { color: var(--water-dk); text-decoration: underline; text-underline-offset: 2px; }

.risk {
  margin-top: 2.5rem; padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--mouth); background: var(--paper-3);
  font-size: .9375rem; color: var(--ink-2); max-width: 70ch;
}

/* ── archive ──────────────────────────────────────────── */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .625rem;
}
.gallery button {
  display: block; padding: 0; border: 1px solid var(--rule); border-radius: 2px;
  background: var(--paper-3); overflow: hidden; cursor: pointer; width: 100%;
  transition: border-color .18s ease, transform .18s ease;
}
.gallery button:hover { border-color: var(--ink); transform: translateY(-2px); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ── lightbox ─────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: rgba(12, 63, 69, .96); padding: clamp(1rem, 5vw, 4rem);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(100%, 900px); max-height: 86vh; object-fit: contain; border-radius: 3px; }
.lb-close, .lb-nav {
  position: absolute; background: none; border: 1px solid rgba(233,237,236,.4); border-radius: 2px;
  color: var(--on-tank); cursor: pointer; line-height: 1;
  width: 3rem; height: 3rem; display: grid; place-items: center;
  font-size: 1.75rem; transition: background .18s ease;
}
.lb-close:hover, .lb-nav:hover { background: rgba(233,237,236,.14); }
.lb-close { top: 1.25rem; right: 1.25rem; }
.lb-prev { left: 1.25rem; }
.lb-next { right: 1.25rem; }
.lb-count {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; color: rgba(233,237,236,.6);
}

/* ── conservation ─────────────────────────────────────── */
.orgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.org {
  display: grid; gap: .5rem; align-content: start; text-decoration: none;
  border: 1px solid var(--rule); border-radius: 2px; background: var(--paper-3);
  padding: 1.5rem; transition: border-color .18s ease, transform .18s ease;
}
.org:hover { border-color: var(--ink); transform: translateY(-2px); }
.org-name { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.05; }
.org-desc { color: var(--ink-2); font-size: .9375rem; }
.org-go { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; color: var(--water-dk); margin-top: .35rem; }

/* ── footer ───────────────────────────────────────────── */
.footer { background: var(--ink); color: var(--on-tank); padding-block: 4rem 3rem; }
.footer-inner { display: grid; gap: 2rem; justify-items: center; text-align: center; }
.footer-brand { display: grid; justify-items: center; }
.footer .wordmark-tag { color: rgba(233,237,236,.45); }
.footer-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.footer-socials a { color: rgba(233,237,236,.6); transition: color .18s ease; }
.footer-socials a:hover { color: var(--water); }
.footer-legal {
  font-family: var(--mono); font-size: .6875rem; line-height: 1.8;
  color: rgba(233,237,236,.42); max-width: 58ch;
}

/* ── scroll reveal ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.shown { opacity: 1; transform: none; }

/* ── responsive ───────────────────────────────────────── */
@media (max-width: 1000px) {
  .posts { columns: 2; }
  .hero-inner, .specimen-grid { grid-template-columns: 1fr; }
  .plate { max-width: 620px; }
  .assure-row { grid-template-columns: 11rem 7rem; }
  .a-how { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav-links {
    position: fixed; inset: 4.5rem 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: var(--pad); margin-left: 0;
    transform: translateY(-120%); transition: transform .28s ease;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: .9rem 0; border-bottom: 1px solid var(--rule-2); font-size: .875rem; }
  .nav-links a:hover { border-bottom-color: var(--rule-2); }
  .nav-inner { gap: 1rem; }
  .nav-end { margin-left: auto; }
  .menu-toggle { display: flex; }
}

@media (max-width: 600px) {
  .posts { columns: 1; }
  .nav-buy { display: none; }
  .timeline li { grid-template-columns: 1fr; gap: .5rem; }
  .timeline time { padding-top: 0; }
  .record > div { grid-template-columns: 1fr; gap: .15rem; padding: .8rem 1rem; }
  .record dd.note { grid-column: 1; }
  .assure-row { grid-template-columns: 1fr; gap: .35rem; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .lb-nav { width: 2.5rem; height: 2.5rem; }
  .lb-prev { left: .5rem; } .lb-next { right: .5rem; }
}

/* ── reduced motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
