/* ═══════════════════════════════════════════════════════════════
   CAISIBO — company site
   Theme: E Ink · flat.mono
   Paper and ink only. Every surface equals the background;
   components separate with hairlines. No shadows, no gradients.
   Token values are the ones the app derives in monoTheme.ts for
   the "E Ink" preset (bg #ece9e1 / accent #1c1b18, dark #16140f).
   ═══════════════════════════════════════════════════════════════ */

:root {
  color-scheme: light;

  --paper:     #ece9e1;
  --ink:       #0f0d0a;
  --ink-2:     #5a5853;
  --ink-3:     #94918b;
  --line:      #999791;
  --line-2:    #bebcb5;
  --soft:      #c7c4bd;
  --dim:       #a5a39d;
  --accent:    #1c1b18;
  --on-accent: #ffffff;

  --sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;

  --radius: 2px;
  --maxw: 1180px;
  --pad: 1.75rem;
  --hair: 1px;
}

html[data-mode="ink"] {
  color-scheme: dark;
  --paper:     #16140f;
  --ink:       #f4f4f3;
  --ink-2:     #9b9a98;
  --ink-3:     #6f6e6a;
  --line:      #47443e;
  --line-2:    #302e28;
  --soft:      #292722;
  --dim:       #403e38;
  --accent:    #b8b5ad;
  --on-accent: #0a0a08;
}

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

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

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01' 1;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--paper); }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: .7rem 1rem; font: 500 .75rem/1 var(--mono);
  letter-spacing: .12em; text-transform: uppercase;
}
.skip:focus { left: .5rem; top: .5rem; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* ── shared type ───────────────────────────────────────────── */
.label {
  font: 500 .68rem/1.2 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.label--ink { color: var(--ink); }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; }

h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.7rem);
  letter-spacing: -0.042em;
  line-height: 0.98;
}
h2 { font-size: clamp(1.75rem, 3.1vw, 2.5rem); text-wrap: balance; }
h3 { font-size: 1.0625rem; letter-spacing: -0.015em; line-height: 1.3; }

.lead { font-size: clamp(1.02rem, 1.35vw, 1.19rem); line-height: 1.62; color: var(--ink-2); }
.prose p + p { margin-top: 1.05em; }
.prose { color: var(--ink-2); max-width: 62ch; }
.prose strong { color: var(--ink); font-weight: 600; }

.mono-num {
  font-family: var(--mono);
  font-feature-settings: 'tnum' 1;
  letter-spacing: .04em;
}

/* ── rules & ticks ─────────────────────────────────────────── */
.rule { height: var(--hair); background: var(--line); border: 0; }
.rule--faint { background: var(--line-2); }

.ticks {
  height: 6px;
  background-image: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 22px);
  background-repeat: repeat-x;
  background-position: left bottom;
  background-size: 22px 4px;
  opacity: .8;
}

/* ── buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .78rem 1.15rem;
  border: var(--hair) solid var(--ink);
  border-radius: var(--radius);
  font: 500 .78rem/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .12s steps(2), color .12s steps(2), border-color .12s;
}
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--paper); color: var(--ink); }
.btn--ghost { color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn .arrow { transition: transform .16s ease-out; }
.btn:hover .arrow { transform: translateX(3px); }
.btn--sm { padding: .55rem .85rem; font-size: .7rem; }

/* ── wordmarks ─────────────────────────────────────────────── */
.wordmark {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 700 1.06rem/1 var(--mono);
  letter-spacing: -.02em;
  color: var(--ink);
}
.wordmark .mk { width: 9px; height: 9px; background: var(--ink); flex: none; }

.gabai-mark {
  display: inline-grid; grid-template-columns: 1fr 1fr; gap: 2px;
  width: 12px; height: 12px; flex: none;
}
.gabai-mark i { background: var(--ink); }
.gabai-mark i:nth-child(2), .gabai-mark i:nth-child(3) { opacity: .32; }

/* ── nav ───────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper);
  border-bottom: var(--hair) solid transparent;
  transition: border-color .18s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav__in {
  display: flex; align-items: center; gap: 1.5rem;
  height: 68px;
}
.nav__drawer { display: flex; align-items: center; gap: 1.9rem; margin-left: auto; }
.nav__links { display: flex; align-items: center; gap: 1.55rem; }
.nav__links a {
  font: 500 .74rem/1 var(--mono);
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink-2);
  padding: .4rem 0;
  border-bottom: var(--hair) solid transparent;
  transition: color .14s, border-color .14s;
}
.nav__links a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav__end { display: flex; align-items: center; gap: .55rem; }

/* theme switch — segmented, like the app's DARK / LIGHT control */
.switch {
  display: inline-flex; align-items: stretch;
  border: var(--hair) solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.switch button {
  font: 500 .64rem/1 var(--mono);
  letter-spacing: .13em; text-transform: uppercase;
  padding: .5rem .58rem;
  color: var(--ink-3);
  transition: background-color .1s steps(2), color .1s steps(2);
}
.switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.nav__toggle { display: none; width: 40px; height: 40px; margin-left: auto; position: relative; }
.nav__toggle span {
  position: absolute; left: 9px; right: 9px; height: var(--hair); background: var(--ink);
  transition: transform .2s, opacity .2s;
}
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 24px; }
.menu-open .nav__toggle span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .nav__toggle span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ── reading rail (left edge, e-reader style) ──────────────── */
.rail {
  position: fixed; left: 20px; top: 50%; transform: translateY(-50%);
  z-index: 50; display: none; flex-direction: column; gap: .1rem;
}
.rail a {
  display: flex; align-items: center; gap: .55rem;
  padding: .3rem 0;
  font: 500 .6rem/1 var(--mono); letter-spacing: .12em;
  color: var(--ink-3);
}
.rail .tick { width: 14px; height: var(--hair); background: var(--line); transition: width .18s, background-color .18s; }
.rail .name { opacity: 0; transition: opacity .18s; text-transform: uppercase; white-space: nowrap; }
.rail a:hover .name, .rail a[aria-current="true"] .name { opacity: 1; }
.rail a:hover .tick, .rail a[aria-current="true"] .tick { width: 24px; background: var(--ink); }
.rail a[aria-current="true"] { color: var(--ink); }

/* ── sections ──────────────────────────────────────────────── */
.sec { padding-block: clamp(4rem, 8vw, 7rem); }
.sec + .sec { border-top: var(--hair) solid var(--line-2); }

.sec-head {
  display: grid;
  grid-template-columns: 92px minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 0 clamp(1.6rem, 3.2vw, 3rem);
  align-items: start;
  margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
}
.sec-index {
  font: 700 clamp(2.6rem, 5vw, 4rem)/1 var(--mono);
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  letter-spacing: -.04em;
  display: block;
}
.sec-title { grid-column: 2; max-width: 33rem; }
.sec-title .label { margin-bottom: .9rem; }
.sec-head .aside { grid-column: 3; margin-top: .5rem; max-width: 48ch; }

/* ── panels ────────────────────────────────────────────────── */
.panel {
  border: var(--hair) solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.45rem 1.6rem;
  background: var(--paper);
}
.panel h3 { margin-bottom: .55rem; }
.panel p { color: var(--ink-2); font-size: .935rem; line-height: 1.58; }
.panel .label { margin-bottom: 1.1rem; }

/* invert on hover — the "selected" state of an e-ink UI */
.panel--flip { transition: background-color .1s steps(2), color .1s steps(2), border-color .1s; }
.panel--flip:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.panel--flip:hover p, .panel--flip:hover .label { color: var(--paper); opacity: .82; }

.grid { display: grid; gap: 1px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* hairline-joined grid: one shared border between cells */
.grid--joined { border: var(--hair) solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.grid--joined > * { border: 0; border-radius: 0; }

/* ── hero ──────────────────────────────────────────────────── */
.hero { padding-top: clamp(2.6rem, 6vw, 5rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero .eyebrow { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.6rem; }
.hero .eyebrow .dot { width: 6px; height: 6px; background: var(--ink); flex: none; }
.hero h1 { margin-bottom: 1.5rem; text-wrap: balance; }
.hero .lead { max-width: 46ch; margin-bottom: 2.1rem; }
.hero .cta { display: flex; flex-wrap: wrap; gap: .7rem; }

.meta {
  margin-top: clamp(2.6rem, 5vw, 3.6rem);
  border-top: var(--hair) solid var(--line);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.meta div { padding: 1.1rem 1.2rem 1.15rem 0; }
.meta div + div { border-left: var(--hair) solid var(--line-2); padding-left: 1.2rem; }
.meta dt { font: 500 .62rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .55rem; }
.meta dd { font-size: .92rem; color: var(--ink); font-weight: 500; }

/* ── figures ───────────────────────────────────────────────── */
.fig { width: 100%; height: auto; display: block; color: var(--ink); }
.fig-cloud circle { fill: var(--ink); }
.fig-hair path { stroke: var(--line); stroke-width: .6; fill: none; }
.fig-band .fig-stroke { stroke: var(--line); stroke-width: 1; }
.fig-link path { stroke: var(--line); stroke-width: .9; fill: none; }
.fig-node circle { fill: var(--ink); }
.fig-rule path { stroke: var(--line); stroke-width: 1; fill: none; }
.fig-label { font: 500 11px var(--mono); letter-spacing: .16em; fill: var(--ink-3); text-transform: uppercase; }
.fig-name { font: 400 11px var(--mono); letter-spacing: .01em; fill: var(--ink-2); }
.fig-label.soft { fill: var(--ink-3); }
/* A label that sits over a ribbon carries a paper halo. Measured plates would
   break the moment the label is translated, a halo never does. */
.fig-name.halo {
  stroke: var(--paper);
  stroke-width: 3.5px;
  stroke-linejoin: round;
  paint-order: stroke fill;
}
.fig-bracket path { stroke: var(--line); stroke-width: 1; fill: none; }
.fig-arrow path { fill: var(--line); }
.fig-hairline { stroke: var(--line-2); stroke-width: 1; fill: none; }
.fig-hairbox { fill: none; stroke: var(--line); stroke-width: .7; }
.fig-baseline { stroke: var(--line); stroke-width: 1; stroke-dasharray: 5 4; fill: none; }
.rollup-card .plate { fill: var(--paper); stroke: var(--line); stroke-width: 1; }
.rollup-card .spark { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.rollup-card .spark-dot { fill: var(--ink); }
.fig-name.delta { fill: var(--ink); font-weight: 500; }
.fig-label.tier { fill: var(--ink); }
.flow-ribbon path { stroke: var(--line); stroke-width: .5; }
.flow-node rect { fill: var(--ink); }

.figframe {
  border: var(--hair) solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  position: relative;
}
.figframe__cap {
  display: flex; justify-content: space-between; gap: 1rem;
  border-top: var(--hair) solid var(--line-2);
  margin-top: 1rem; padding-top: .8rem;
}

/* corner registration marks — plate/instrument feel */
.figframe::before, .figframe::after {
  content: ""; position: absolute; width: 9px; height: 9px; pointer-events: none;
  border: var(--hair) solid var(--ink);
}
.figframe::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.figframe::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ── beliefs list ──────────────────────────────────────────── */
.beliefs { border-top: var(--hair) solid var(--line); margin-top: 2.6rem; }
.beliefs li {
  list-style: none;
  display: grid;
  grid-template-columns: 92px minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 0 clamp(1.6rem, 3.2vw, 3rem);
  padding: 1.5rem 0;
  border-bottom: var(--hair) solid var(--line-2);
  align-items: baseline;
}
.beliefs .n { font: 500 .72rem/1.6 var(--mono); letter-spacing: .1em; color: var(--ink-3); }
.beliefs h3 { max-width: 24rem; }
.beliefs p { color: var(--ink-2); font-size: .945rem; }

/* ── product ───────────────────────────────────────────────── */
.gabai-lockup { display: flex; align-items: center; gap: .7rem; }
.gabai-lockup .gabai-mark { width: .58em; height: .58em; gap: .07em; }
.sec-title .tag {
  margin-top: .85rem;
  font: 500 .72rem/1 var(--mono);
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
}

.spec {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: 1.5rem;
}
.spec span {
  font: 400 .68rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  border: var(--hair) solid var(--line); border-radius: var(--radius);
  padding: .48rem .62rem; color: var(--ink-2);
}

/* ── notes, sub-features ───────────────────────────────────── */
.note {
  margin-top: 2.2rem;
  border: var(--hair) solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem 1.45rem;
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: .7rem clamp(1.6rem, 3.2vw, 3rem);
}
.note p:last-child { color: var(--ink-2); font-size: .95rem; max-width: 70ch; }

.subfeature { margin-top: clamp(3rem, 5vw, 4.4rem); }
.sec-head--sub { margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
.sec-index--sub { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: 0; }
.sub-h { font-size: clamp(1.35rem, 2.1vw, 1.8rem); letter-spacing: -.025em; line-height: 1.12; }
.subfeature .aside p { font-size: .95rem; }

.claim {
  margin-top: 1.7rem;
  padding-left: 1.15rem;
  border-left: 2px solid var(--line);
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 76ch;
}

/* ── people ────────────────────────────────────────────────── */
.person { padding: 1.6rem 1.45rem 1.7rem; }
/* One ink everywhere else on the page, so the portraits drop their colour too.
   A touch of contrast keeps them from going flat against the paper. */
.person .portrait {
  width: 116px; height: 116px;
  object-fit: cover;
  border: var(--hair) solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1.15rem;
  background: var(--soft);
  filter: grayscale(1) contrast(1.08);
}
/* Two of the three were shot on a white backdrop, which glares on dark paper. */
html[data-mode="ink"] .person .portrait { filter: grayscale(1) contrast(1.04) brightness(.88); }
.person h3 { margin-bottom: .25rem; }
.person .role { font: 500 .66rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .85rem; }
.person p { font-size: .93rem; color: var(--ink-2); line-height: 1.56; }

/* ── contact ───────────────────────────────────────────────── */
.contact {
  display: grid;
  grid-template-columns: 92px minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 0 clamp(1.6rem, 3.2vw, 3rem);
  align-items: start;
}
.contact__say { grid-column: 2; }
.contact__facts { grid-column: 3; }
.mailto {
  display: inline-block;
  font: 700 clamp(1.5rem, 3.4vw, 2.5rem)/1.1 var(--sans);
  letter-spacing: -.035em;
  border-bottom: 2px solid var(--line);
  padding-bottom: .12em;
  transition: border-color .14s, color .14s;
  word-break: break-word;
}
.mailto:hover { border-bottom-color: var(--ink); }
.contact__meta { border-top: var(--hair) solid var(--line); padding-top: 1.1rem; margin-top: 2rem; }
.contact__meta dl { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: .5rem 1rem; }
.contact__meta dt { font: 500 .62rem/1.6 var(--mono); letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); }
.contact__meta dd { font-size: .92rem; color: var(--ink-2); }

/* ── footer ────────────────────────────────────────────────── */
.foot { border-top: var(--hair) solid var(--line); padding-block: 2.6rem 3rem; }
.foot__top { display: flex; flex-wrap: wrap; gap: 1.6rem 2.5rem; align-items: flex-start; justify-content: space-between; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.foot__nav a { font: 500 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.foot__nav a:hover { color: var(--ink); }
.foot__bottom { margin-top: 2.4rem; padding-top: 1.2rem; border-top: var(--hair) solid var(--line-2); display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: space-between; }
.foot__bottom p { font-size: .76rem; color: var(--ink-3); max-width: 62ch; line-height: 1.55; }

/* ── e-ink motion ──────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(10px); }
.reveal.in { animation: settle .46s cubic-bezier(.22,.7,.28,1) forwards; }
@keyframes settle { to { opacity: 1; transform: none; } }

/* a panel refresh: the plate goes to ink, then the content appears */
.flash { position: relative; isolation: isolate; }
.flash::after {
  content: ""; position: absolute; inset: 0; z-index: 3;
  background: var(--ink); opacity: 0; pointer-events: none;
}
.flash.in::after { animation: einkflash .3s forwards; }
@keyframes einkflash { 0%, 42% { opacity: 1; } 43%, 100% { opacity: 0; } }

/* full-page refresh when the palette is switched */
#refresh {
  position: fixed; inset: 0; z-index: 300; background: var(--ink);
  opacity: 0; pointer-events: none;
}
#refresh.on { opacity: 1; }
#refresh.off { opacity: 0; transition: opacity .14s steps(3); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { opacity: 1; transform: none; animation: none; }
  .flash.in::after { animation: none; }
  #refresh { display: none; }
  * { transition-duration: .01ms !important; }
}

/* ── responsive ────────────────────────────────────────────── */
@media (min-width: 1340px) { .rail { display: flex; } }

/* The nav carries two switches now; give up the CTA before things collide. */
@media (max-width: 1010px) {
  .nav__drawer { gap: 1.1rem; }
  .nav__links { gap: 1.05rem; }
  .nav__links a { font-size: .7rem; letter-spacing: .08em; }
  .nav__end .btn { display: none; }
}

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta div:nth-child(3), .meta div:nth-child(4) { border-top: var(--hair) solid var(--line-2); }
  .meta div:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__fig { order: -1; }
  .contact { grid-template-columns: 1fr; }
  .contact__say, .contact__facts { grid-column: 1; }
  .beliefs li { grid-template-columns: 60px minmax(0, 1fr); }
  .beliefs h3 { max-width: none; }
  .beliefs p { grid-column: 2; margin-top: .3rem; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-head { grid-template-columns: 1fr; gap: .6rem; }
  .beliefs li { grid-template-columns: 92px minmax(0, 1fr); }
  .beliefs h3 { max-width: none; margin-bottom: .3rem; }
  .beliefs p { grid-column: 2; }
  .sec-index { font-size: 2.4rem; }
  .sec-head .aside { grid-column: 1; margin-top: 1.3rem; max-width: 60ch; }
  .sec-title { grid-column: 1; max-width: 100%; }
}

@media (max-width: 560px) {
  .meta { grid-template-columns: 1fr; }
  .meta div + div { border-left: 0; padding-left: 0; border-top: var(--hair) solid var(--line-2); }
  .figframe { padding: .8rem; }
}

@media (max-width: 720px) {
  :root { --pad: 1.2rem; }
  .nav__toggle { display: block; margin-left: auto; }
  .nav__drawer {
    position: fixed; inset: 68px 0 auto 0;
    background: var(--paper);
    border-bottom: var(--hair) solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--pad) 1.5rem;
    margin-left: 0;
    display: none;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .menu-open .nav__drawer { display: flex; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__links a { width: 100%; padding: .95rem 0; border-bottom: var(--hair) solid var(--line-2); font-size: .82rem; }
  .nav__links a:hover { border-bottom-color: var(--line-2); }
  .nav__end { flex-wrap: wrap; gap: .6rem; padding-top: 1.1rem; }
  .nav__end .btn { display: inline-flex; flex: 1 0 100%; justify-content: center; order: 3; margin-top: .3rem; }
  .note { grid-template-columns: 1fr; }
  .claim { font-size: .97rem; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .beliefs li { grid-template-columns: 1fr; gap: .35rem; }
  .contact__meta dl { grid-template-columns: 1fr; gap: .1rem .5rem; }
  .contact__meta dd { margin-bottom: .7rem; }
}

/* ── print: it is an e-ink theme, it should print ──────────── */
@media print {
  .nav, .rail, #refresh, .hero .cta, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .sec { padding-block: 1.4rem; break-inside: avoid; }
  .reveal { opacity: 1; transform: none; }
}
