/* ============================================================
   RIPPLE — (Un)sustainable Tipping Points
   Paper-and-ink palette, committed light design.
   ============================================================ */

:root {
  color-scheme: light;

  /* surfaces */
  --paper:        #f7f4ef;
  --paper-2:      #f1ece4;
  --card:         #fffdfa;
  --ink-plane:    #16191c;

  /* ink */
  --ink:          #16191c;
  --ink-2:        #454d52;
  --ink-3:        #7c848a;
  --rule:         #ddd6ca;
  --rule-soft:    #e8e2d8;

  /* accents */
  --water:        #1b4b5a;
  --water-2:      #2a78d6;   /* categorical slot 1 — adoption */
  --friction:     #eb6834;   /* categorical slot 2 — resistance */

  /* type */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* layout */
  --wrap: 1140px;
  --gut: clamp(1.25rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  overflow-x: clip;               /* clip, not hidden — keeps the sticky header working */
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--water); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .6em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.22rem; line-height: 1.25; }
p { margin: 0 0 1.05em; }

.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--gut); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .7rem 1rem;
}
.skip:focus { left: 0; }

:where(a, button, input, summary):focus-visible {
  outline: 2px solid var(--water-2); outline-offset: 3px; border-radius: 2px;
}

/* ── top bar ────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}
.topbar-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.4rem; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; margin-right: auto; }
.brand-mark { width: 66px; height: auto; opacity: .85; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 1.16rem; letter-spacing: .14em; }
.brand-text em { font-style: normal; font-size: .7rem; letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; }

.nav { display: flex; gap: 1.35rem; }
.nav a {
  font-size: .875rem; color: var(--ink-2); text-decoration: none;
  padding: .3rem 0; border-bottom: 1.5px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.nav a.is-active { color: var(--ink); border-bottom-color: var(--water); }

/* language switch — far right of the bar, and outside the collapsing menu so
   it stays reachable on small screens. Hidden without JS, where it does nothing. */
.lang { display: none; align-items: center; gap: .3rem; }
.js .lang { display: flex; }
.lang-btn {
  background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: .78rem; letter-spacing: .09em;
  color: var(--ink-3); padding: .3rem 0; border-bottom: 1.5px solid transparent;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--water); }
.lang-sep { color: var(--rule); font-size: .78rem; user-select: none; }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 1.6px; background: var(--ink); margin: 4.5px 0; transition: .2s; }

/* topbar on a page with no section nav, e.g. privacy.html */
.back-link { font-size: .85rem; color: var(--ink-2); text-decoration: none; margin-left: auto; }
.back-link:hover { color: var(--ink); }

@media (max-width: 900px) {
  .topbar-inner { gap: .9rem; }
  .nav {
    position: absolute; inset: 100% 0 auto; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gut) 1rem; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .65rem 0; border-bottom: 1px solid var(--rule-soft); }
  .nav-toggle { display: block; }
}

/* ── hero ───────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 9vw, 7rem) 0 0; }
.hero-inner { position: relative; z-index: 2; max-width: 46rem; }

.eyebrow {
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 1.6rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 7.4vw, 5rem);
  letter-spacing: -0.025em; margin-bottom: .5em;
}
.hero h1 .hl {
  background-image: linear-gradient(transparent 62%, color-mix(in srgb, var(--water-2) 22%, transparent) 62%);
  padding-inline: .06em;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 40rem; }

.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.btn {
  display: inline-block; font: inherit; font-size: .9rem; cursor: pointer;
  padding: .68rem 1.3rem; border-radius: 999px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  text-decoration: none; transition: background .18s, color .18s, transform .18s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--water); border-color: var(--water); color: #fff; }
.btn-sm { padding: .45rem .95rem; font-size: .82rem; }

.hero-logo {
  position: relative; z-index: 2;
  display: block; width: min(1180px, 100%);
  margin: clamp(1rem, 4vw, 3rem) auto -3%;
  opacity: .9; pointer-events: none;
}

/* animated rings behind the hero text */
.ripple-field { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.ripple-field .ring {
  position: absolute; left: 50%; top: 78%;
  width: 18vmax; aspect-ratio: 2.6 / 1; margin: -3.5vmax 0 0 -9vmax;
  border: 1px solid color-mix(in srgb, var(--water) 16%, transparent);
  border-radius: 50%;
  transform: scale(.2); opacity: 0;
  animation: ripple 11s cubic-bezier(.16,.7,.3,1) infinite;
}
.ripple-field .ring:nth-child(2) { animation-delay: 2.2s; }
.ripple-field .ring:nth-child(3) { animation-delay: 4.4s; }
.ripple-field .ring:nth-child(4) { animation-delay: 6.6s; }
.ripple-field .ring:nth-child(5) { animation-delay: 8.8s; }
@keyframes ripple {
  0%   { transform: scale(.15); opacity: 0; }
  14%  { opacity: .7; }
  100% { transform: scale(3.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .ripple-field { display: none; } }

/* ── bands ──────────────────────────────────────────────── */
.band { padding: clamp(3.5rem, 8vw, 6.5rem) 0; border-top: 1px solid var(--rule-soft); }
.band-tint { background: var(--paper-2); }
.band-dark { background: var(--ink-plane); color: #efeae2; border-top: 0; }

.kicker {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--water); margin-bottom: .9rem;
}
.kicker-light { color: #8fb6c4; }
.section-title { max-width: 20ch; }
.section-lede { max-width: 52ch; color: var(--ink-2); font-size: 1.05rem; margin-bottom: 3rem; }

.grid-2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

/* ── question band ──────────────────────────────────────── */
.band-question { background: var(--paper-2); }
.bigq {
  margin: 0 0 3rem; padding: 0 0 0 clamp(1rem, 3vw, 2.2rem);
  border-left: 3px solid var(--water);
  font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.15rem);
  line-height: 1.3; letter-spacing: -0.012em; max-width: 30ch;
}
.q-parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 760px) { .q-parts { grid-template-columns: 1fr; gap: 1.25rem; } }
.q-part { display: flex; gap: .9rem; align-items: baseline; }
.q-part p { margin: 0; color: var(--ink-2); }
.q-num {
  flex: none; width: 1.7rem; height: 1.7rem; display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: 50%;
  font-family: var(--serif); font-size: .95rem; font-style: italic; color: var(--water);
}

/* ── fact box ───────────────────────────────────────────── */
.factbox {
  background: var(--card); border: 1px solid var(--rule); border-radius: 4px;
  padding: 1.6rem 1.7rem;
}
.factbox h3 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-family: var(--sans); color: var(--ink-3); margin-bottom: 1.1rem; }
.factbox dl { margin: 0; }
.factbox dt { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.factbox dd { margin: .15rem 0 1rem; font-size: .95rem; line-height: 1.5; }
.factbox dd:last-child { margin-bottom: 0; }

/* ── concept cards ──────────────────────────────────────── */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 1000px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .cards-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--rule); border-radius: 4px;
  padding: 1.5rem 1.4rem 1.6rem; position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -20px rgba(22,25,28,.45); }
.card-ix { font-family: var(--serif); font-size: .85rem; color: var(--water); letter-spacing: .1em; }
.card h3 { margin: .45rem 0 .55rem; }
.card p { font-size: .93rem; color: var(--ink-2); margin: 0; }

.pullout {
  margin: 3.2rem auto 0; max-width: 34ch; text-align: center;
  font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.35; color: var(--ink);
}

/* ── work packages ──────────────────────────────────────── */
.wp {
  display: grid; grid-template-columns: 12rem 1fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: 2.6rem 0; border-top: 1px solid var(--rule);
}
.wp:last-child { border-bottom: 1px solid var(--rule); }
@media (max-width: 800px) { .wp { grid-template-columns: 1fr; gap: 1rem; } }

.wp-tag { display: flex; flex-direction: column; gap: .35rem; position: sticky; top: 6rem; align-self: start; }
@media (max-width: 800px) { .wp-tag { position: static; flex-direction: row; align-items: baseline; gap: 1rem; } }
.wp-id { font-family: var(--serif); font-size: 2rem; color: var(--water); line-height: 1; }
.wp-lead { font-size: .78rem; letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; }

.wp-body h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: .2em; }
.wp-sub { color: var(--water); font-size: .92rem; margin-bottom: 1.1em; }
.wp-body p { color: var(--ink-2); max-width: 62ch; }
.wp-meta { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .5rem; }
.wp-meta li { font-size: .9rem; color: var(--ink-2); display: flex; gap: .8rem; flex-wrap: wrap; }
.wp-meta span {
  flex: none; min-width: 6.5rem; font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); padding-top: .22rem;
}

/* ── simulation ─────────────────────────────────────────── */
.sim {
  --surface-1: #fffdfa;
  --series-1: var(--water-2);
  --series-2: var(--friction);
  --grid-line: #e1dcd2;
  --axis: #c9c2b6;
  --muted: #8a837a;
  background: var(--surface-1); border: 1px solid var(--rule); border-radius: 5px;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.sim-controls {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.1rem 1.6rem; align-items: end;
  padding-bottom: 1.4rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--rule-soft);
}
.ctrl label {
  display: flex; justify-content: space-between; gap: .5rem; align-items: baseline;
  font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: .4rem;
}
.ctrl output { font-variant-numeric: tabular-nums; color: var(--ink); letter-spacing: 0; text-transform: none; font-size: .85rem; }
.ctrl input[type=range] { width: 100%; accent-color: var(--water); }
.ctrl-check label { text-transform: none; font-size: .88rem; color: var(--ink-2); letter-spacing: 0; justify-content: flex-start; gap: .55rem; }
.ctrl-check input { accent-color: var(--water); }
.ctrl-buttons { display: flex; gap: .5rem; }

.sim-stage { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.8rem; }
@media (max-width: 900px) { .sim-stage { grid-template-columns: 1fr; } }

.sim figure { margin: 0; }
.sim figcaption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: .7rem;
}
.fig-note { letter-spacing: .02em; text-transform: none; color: var(--muted); font-size: .8rem; }

#s-canvas { width: 100%; height: auto; display: block; background: #fbf9f5; border: 1px solid var(--rule-soft); border-radius: 3px; }

.swatches { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: .8rem; }
.sw { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--ink-2); }
.sw::before { content: ""; width: 11px; height: 11px; border-radius: 2px; box-shadow: 0 0 0 2px var(--surface-1); }
.sw-undecided::before { background: #ded8cd; }
.sw-adopt::before { background: var(--series-1); }
.sw-resist::before { background: var(--series-2); }

.chart-holder { position: relative; }
#s-chart { width: 100%; height: auto; display: block; }
.swatches-chart { margin-top: .5rem; }
.tip {
  position: absolute; pointer-events: none; z-index: 3;
  background: var(--ink-plane); color: #f4f1ea; border-radius: 3px;
  padding: .45rem .6rem; font-size: .78rem; line-height: 1.45; white-space: nowrap;
  transform: translate(-50%, -115%); font-variant-numeric: tabular-nums;
}
.tip b { font-weight: 600; }
.tip i { font-style: normal; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: .35rem; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.2rem; border-top: 1px solid var(--rule-soft); padding-top: 1rem; }
.stat { display: flex; flex-direction: column; gap: .1rem; }
.stat-v { font-size: 1.6rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-l { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.sim-table { margin-top: 1.6rem; border-top: 1px solid var(--rule-soft); padding-top: 1rem; }
.sim-table summary { cursor: pointer; font-size: .82rem; color: var(--ink-2); }
.table-scroll { overflow-x: auto; max-height: 260px; overflow-y: auto; margin-top: .8rem; }
.sim-table table { border-collapse: collapse; width: 100%; font-size: .85rem; font-variant-numeric: tabular-nums; }
.sim-table caption { text-align: left; color: var(--muted); font-size: .78rem; padding-bottom: .5rem; }
.sim-table th, .sim-table td { text-align: right; padding: .3rem .8rem; border-bottom: 1px solid var(--rule-soft); }
.sim-table th:first-child, .sim-table td:first-child { text-align: left; }
.sim-table thead th { position: sticky; top: 0; background: var(--surface-1); color: var(--ink-3); font-weight: 500; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

.sim-note { margin: 1.4rem 0 0; font-size: .85rem; color: var(--muted); max-width: 68ch; }

/* ── gantt ──────────────────────────────────────────────── */
.scroll-hint { display: none; font-size: .78rem; color: var(--ink-3); margin: 0 0 .6rem; }
@media (max-width: 900px) { .scroll-hint { display: block; } }
.gantt-scroll { overflow-x: auto; padding-bottom: .5rem; }
.gantt { min-width: 760px; }
.g-head, .g-row { display: grid; grid-template-columns: 13rem repeat(9, 1fr); align-items: stretch; }
.g-head { border-bottom: 1px solid var(--rule); }
.g-col { padding: 0 .3rem .6rem; text-align: center; border-left: 1px solid var(--rule-soft); }
.g-col span { display: block; font-size: .82rem; }
.g-col em { font-style: normal; font-size: .7rem; color: var(--ink-3); }

.g-row { border-bottom: 1px solid var(--rule-soft); }
.g-label { padding: 1.1rem .8rem 1.1rem 0; font-size: .92rem; }
.g-label em { display: block; font-style: normal; font-size: .78rem; color: var(--ink-3); }
.g-track { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(9, 1fr); position: relative; align-items: center; }
.g-track::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: repeating-linear-gradient(to right, var(--rule-soft) 0 1px, transparent 1px calc(100% / 9));
}
.g-bar {
  grid-column: var(--from) / calc(var(--to) + 1); grid-row: 1;
  height: 8px; border-radius: 4px; margin: 0 2px; z-index: 1;
  background: color-mix(in srgb, var(--water) 22%, transparent);
}
.g-mark { grid-column: var(--at); grid-row: 1; z-index: 2; display: grid; place-items: center; }
.g-mark span {
  font-size: .72rem; letter-spacing: .04em; padding: .18rem .5rem; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--water);
  color: var(--water); box-shadow: 0 0 0 2px var(--paper);
}
.g-d span { background: var(--water); color: #fff; }

.legend-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .45rem; font-size: .88rem; color: var(--ink-2); }
.legend-list li { display: flex; align-items: baseline; gap: .6rem; }
.lg { flex: none; width: 10px; height: 10px; border-radius: 999px; transform: translateY(1px); }
.lg-m { border: 1px solid var(--water); }
.lg-d { background: var(--water); }

/* ── people ─────────────────────────────────────────────── */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 860px) { .people { grid-template-columns: 1fr; max-width: 32rem; } }

.person img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 3px;
  filter: grayscale(1) contrast(1.04); background: var(--paper);
  margin-bottom: 1.1rem; transition: filter .4s ease;
}
.person:hover img { filter: grayscale(.15) contrast(1.02); }
.person h3 { margin-bottom: .25rem; }
.person .role { font-size: .82rem; letter-spacing: .04em; color: var(--water); margin-bottom: .9rem; }
.person p { font-size: .93rem; color: var(--ink-2); }
.person-open img { filter: grayscale(1) opacity(.5); }
.person-open:hover img { filter: grayscale(1) opacity(.5); }

/* ── deliverables ───────────────────────────────────────── */
.deliv { list-style: none; margin: 0; padding: 0; counter-reset: d; }
.deliv li { display: flex; gap: 1.1rem; align-items: baseline; padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.deliv li:last-child { border-bottom: 1px solid var(--rule); }
.d-id { font-family: var(--serif); font-size: 1.2rem; color: var(--water); flex: none; }
.deliv strong { display: block; font-weight: 600; }
.deliv em { font-size: .9rem; color: var(--ink-3); }

/* ── policy page (privacy.html) ────────────────────────── */
.policy-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3rem); }
.policy-hero h1 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 .5rem; }
.policy-updated { color: var(--ink-3); font-size: .85rem; margin-bottom: 1.6rem; }
.policy-intro { max-width: 60ch; color: var(--ink-2); font-size: 1.05rem; }
.policy-cta { margin-top: 1.5rem; }

.policy-stack { display: grid; gap: 3rem; }

.policy-section { max-width: 68ch; }
.policy-section--wide { max-width: none; }
.policy-section + .policy-section { margin-top: 3rem; }
.policy-section h2 { margin-bottom: .9rem; }
.policy-section p { color: var(--ink-2); }
.policy-section code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: var(--paper-2); padding: .08em .35em; border-radius: 3px; }
.policy-lede { max-width: 68ch; }

.policy-scroll { overflow-x: auto; }
.policy-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .88rem; margin: 1.5rem 0; }
.policy-table th, .policy-table td { text-align: left; padding: .65rem .9rem; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.policy-table thead th { color: var(--ink-3); font-weight: 500; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--rule); }
.policy-table td code, .policy-table th code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; }
.policy-table tbody tr:last-child td { border-bottom: 0; }

/* ── contact ────────────────────────────────────────────── */
.band-dark h2 { color: #fff; }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .contact-inner { grid-template-columns: 1fr; } }
.contact-lede { color: #bfb8ac; max-width: 42ch; }
.contact-links { font-size: 1.05rem; display: flex; gap: .8rem; flex-wrap: wrap; align-items: baseline; }
.contact-links a { color: #9ec8d6; }
.contact-links a:hover { color: #fff; }
.contact-links span { color: #5c6166; }
.contact-mark { width: 100%; filter: invert(1); opacity: .42; }

/* ── footer ─────────────────────────────────────────────── */
.foot { background: var(--ink-plane); color: #7f8890; padding: 2rem 0 3rem; border-top: 1px solid #262c31; }
.foot-inner p { margin: 0 0 .35rem; font-size: .84rem; }
.foot strong { color: #d5cec3; letter-spacing: .1em; }
.foot-note { color: #656d74; }
.foot-inner .foot-links { margin-top: .8rem; display: flex; gap: .7rem; flex-wrap: wrap; align-items: baseline; }
.foot-links a { color: #9ec8d6; }
.foot-links a:hover { color: #fff; }
.foot-links span { color: #4a5157; }
.foot-link-btn {
  font: inherit; font-size: .84rem; background: none; border: 0; padding: 0; margin: 0;
  color: #9ec8d6; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  cursor: pointer;
}
.foot-link-btn:hover { color: #fff; }

/* ── cookie consent bar ─────────────────────────────────── */
.cookiebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: var(--card); border-top: 1px solid var(--rule);
  box-shadow: 0 -12px 32px -20px rgba(22,25,28,.35);
  max-height: 88vh; overflow-y: auto;
}
.cookiebar:focus { outline: 0; }
.cookiebar-inner { padding-block: 1.1rem 1.3rem; }

.cb-main { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; justify-content: space-between; }
.cb-text { margin: 0; font-size: .88rem; color: var(--ink-2); max-width: 56ch; }
.cb-text a { white-space: nowrap; }
.cb-actions { display: flex; gap: .6rem; flex-wrap: wrap; flex: none; }

.cb-panel { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--rule-soft); display: grid; gap: 1rem; }
.cb-cat { border-bottom: 1px solid var(--rule-soft); padding-bottom: .9rem; }
.cb-cat:last-of-type { border-bottom: 0; padding-bottom: 0; }
.cb-cat-head { display: flex; align-items: center; gap: .6rem; cursor: pointer; }
.cb-cat-head input { accent-color: var(--water); width: 16px; height: 16px; flex: none; }
.cb-cat-head input:disabled { opacity: .55; }
.cb-cat-name { font-size: .92rem; font-weight: 600; }
.cb-cat-desc { margin: .3rem 0 0 1.85rem; font-size: .84rem; color: var(--ink-2); max-width: 62ch; }
.cb-cat-item { display: block; margin-top: .2rem; color: var(--ink-3); font-size: .8rem; }
.cb-cat-item code, .cb-cat-desc code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; }
.cb-panel-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

@media (max-width: 640px) { .cb-actions { width: 100%; } .cb-actions .btn { flex: 1; text-align: center; } }

/* ── reveal on scroll (only when JS is running) ─────────── */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ── print ──────────────────────────────────────────────── */
@media print {
  .topbar, .ripple-field, .sim-controls, .hero-cta { display: none; }
  body { font-size: 11pt; }
  .band { padding: 1.5rem 0; }
}
