/* ==========================================================================
   MarketPush — "The Pulse Board" design system
   Bright market-board studio. Chalk / Board / Ink / Teal, coral for ticks only.
   ========================================================================== */

:root {
  --chalk: #ffffff;
  --board: #ffffff;
  --ink:   #121A18;
  --teal:  #008E7B;
  --coral: #FF5C4A;
  --mute:  #7A8178;

  --font-display: 'Outfit', 'Karla', sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-ui: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  --radius: 8px;
  --radius-lg: 14px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw: 1240px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

body {
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 400;
  line-height: 1.62;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 { font-weight: 800; }
h4, h5 { font-family: var(--font-display); font-weight: 600; line-height: 1.25; }

p.standfirst, .lede, .sub {
  font-family: var(--font-serif);
}

.eyebrow, .mono, .board-num {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: var(--chalk);
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Surfaces (paired bg + color, never independent) ---------- */
.surface-chalk { background: var(--chalk); color: var(--ink); }
.surface-board { background: var(--board); color: var(--ink); }
.surface-ink   { background: #ffffff; color: var(--ink); }
.surface-teal  { background: #ffffff; color: var(--ink); }

.surface-chalk .mute, .surface-board .mute,
.surface-ink .mute, .surface-teal .mute { color: var(--ink); }

.mute { color: var(--ink); }

.surface-chalk a.link, .surface-board a.link,
.surface-ink a.link, .surface-teal a.link { color: var(--teal); }
a.link { text-underline-offset: 3px; text-decoration: underline; }

/* ---------- Board-grid texture ---------- */
.board-grid { position: relative; }
.board-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18,26,24,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,26,24,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
  z-index: 0;
}
.board-grid > * { position: relative; z-index: 1; }

/* ---------- Signal-bar hairline (ink line, teal ticks) ---------- */
.signal-bar {
  height: 6px;
  background-image: repeating-linear-gradient(to right, var(--teal) 0, var(--teal) 2px, transparent 2px, transparent 46px);
  background-position: bottom;
  background-repeat: repeat-x;
  background-size: 100% 100%;
  border-bottom: 1px solid currentColor;
  opacity: 0.9;
}
.surface-chalk .signal-bar, .surface-board .signal-bar,
.surface-ink .signal-bar, .surface-teal .signal-bar { border-bottom-color: rgba(18,26,24,0.35); }

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { max-width: 660px; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.section-head p { margin-top: 0.9rem; font-size: 1.08rem; font-family: var(--font-serif); }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

hr.hairline { border: none; border-top: 1px solid rgba(18,26,24,0.14); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

.btn-primary {
  background: var(--teal);
  color: var(--chalk);
}
.btn-primary:hover { background: #007566; }

.btn-secondary {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.surface-chalk .btn-secondary, .surface-board .btn-secondary,
.surface-ink .btn-secondary, .surface-teal .btn-secondary { border-color: rgba(18,26,24,0.4); color: var(--ink); }
.surface-chalk .btn-secondary:hover, .surface-board .btn-secondary:hover,
.surface-ink .btn-secondary:hover, .surface-teal .btn-secondary:hover { border-color: var(--ink); background: rgba(18,26,24,0.05); }

.btn-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header .header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.15rem;
  color: var(--ink);
}
.site-header.is-stuck {
  background: #ffffff;
  box-shadow: 0 6px 24px rgba(18,26,24,0.1);
}
.site-header.is-stuck .header-bar { color: var(--ink); }
.site-header.is-stuck .logo-mark { color: var(--ink); }
.site-header.is-stuck .nav-menu a { color: var(--ink); }
.site-header.is-stuck .nav-toggle-bar,
.site-header.is-stuck .nav-toggle-bar::before,
.site-header.is-stuck .nav-toggle-bar::after { background: var(--ink); }

body.no-hero .site-header { background: #ffffff; box-shadow: 0 6px 24px rgba(18,26,24,0.1); }
body.no-hero .site-header .header-bar { color: var(--ink); }
body.no-hero .logo-mark { color: var(--ink); }
body.no-hero .nav-menu a { color: var(--ink); }
body.no-hero .nav-toggle-bar, body.no-hero .nav-toggle-bar::before, body.no-hero .nav-toggle-bar::after { background: var(--ink); }

.logo-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo-mark span { color: var(--teal); }
.site-header.is-stuck .logo-mark span, body.no-hero .logo-mark span { color: var(--teal); }

.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.nav-menu { display: flex; gap: 1.6rem; align-items: center; }
.nav-menu a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--coral);
  transition: width 0.2s var(--ease);
}
.nav-menu a:hover::after, .nav-menu a[aria-current="page"]::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 0.5rem;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle-bar::before { transform: translateY(-7px); }
.nav-toggle-bar::after { transform: translateY(5px); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .main-nav { gap: 0.75rem; }
  .nav-menu {
    position: fixed;
    inset: 0 0 0 auto;
    top: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: #ffffff;
    color: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem var(--gutter);
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    box-shadow: -8px 0 32px rgba(18,26,24,0.12);
  }
  .nav-menu a { color: var(--ink) !important; font-size: 1.15rem; }
  .nav-menu.is-open { transform: translateX(0); }
  .nav-cta { display: none; }
  .site-header .nav-toggle-bar { background: var(--ink); }
  .site-header.is-stuck .nav-toggle-bar, body.no-hero .nav-toggle-bar { background: var(--ink); }
}

/* ---------- Hero: The Board ---------- */
.hero-board {
  position: relative;
  min-height: 94vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--chalk);
  color: var(--ink);
  overflow: hidden;
}
@media (max-width: 640px) {
  .hero-board { min-height: 82vh; }
}

.hero-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5.5rem var(--gutter) 0;
  max-width: var(--maxw);
  margin-inline: auto;
  width: 100%;
}
.hero-topbar .eyebrow-right { color: var(--teal); }
.hero-signal {
  margin: 1rem var(--gutter) 0;
  max-width: calc(var(--maxw) - (var(--gutter) * 2));
  margin-inline: auto;
  width: calc(100% - (var(--gutter) * 2));
}

.hero-main {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin-inline: auto;
  width: 100%;
  padding: clamp(2rem, 5vw, 3.25rem) var(--gutter) clamp(1.5rem, 4vw, 2.5rem);
}
.hero-main h1 {
  font-size: clamp(46px, 6.4vw, 84px);
  max-width: 920px;
}
.hero-main h1 .signal { color: var(--teal); }

.hero-baseline {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 3px solid var(--teal);
  padding-top: 0.9rem;
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  flex-wrap: wrap;
}
.hero-baseline .stage-tick { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.hero-baseline .stage-tick::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); display: inline-block; }

.hero-main .standfirst {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  font-size: 1.18rem;
  max-width: 620px;
  color: var(--ink);
  line-height: 1.55;
}
.hero-main .btn-row { margin-top: 2.1rem; }

.hero-trust {
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-transform: uppercase;
}

.hero-plate-wrap {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin-inline: auto;
  width: 100%;
  padding: clamp(1rem, 3vw, 1.5rem) var(--gutter) clamp(3rem, 7vw, 5rem);
}

/* ---------- Framed chalk plate (ink hairline + teal corner ticks) ---------- */
.plate {
  position: relative;
  border: 1px solid var(--ink);
  padding: 6px;
  background: var(--board);
}
.plate .plate-media { position: relative; overflow: hidden; }
.plate .plate-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plate .corner { position: absolute; width: 20px; height: 20px; pointer-events: none; }
.plate .corner::before, .plate .corner::after { content: ''; position: absolute; background: var(--teal); }
.plate .corner::before { width: 20px; height: 3px; }
.plate .corner::after { width: 3px; height: 20px; }
.plate .corner-tl { top: -1px; left: -1px; }
.plate .corner-tl::before, .plate .corner-tl::after { top: 0; left: 0; }
.plate .corner-tr { top: -1px; right: -1px; }
.plate .corner-tr::before, .plate .corner-tr::after { top: 0; right: 0; }
.plate .corner-bl { bottom: -1px; left: -1px; }
.plate .corner-bl::before, .plate .corner-bl::after { bottom: 0; left: 0; }
.plate .corner-br { bottom: -1px; right: -1px; }
.plate .corner-br::before, .plate .corner-br::after { bottom: 0; right: 0; }
.plate figcaption { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.04em; color: var(--ink); margin-top: 0.75rem; text-transform: uppercase; }

/* ---------- Pulse wave (draws on scroll) ---------- */
.pulse-wave { width: clamp(48px, 8vw, 64px); height: 24px; }
.pulse-wave path {
  fill: none;
  stroke: var(--coral);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 130;
  stroke-dashoffset: 130;
  transition: stroke-dashoffset 1.1s var(--ease);
}
.pulse-wave.is-drawn path { stroke-dashoffset: 0; }

/* ---------- Page hero (non-home) ---------- */
.page-hero {
  padding: clamp(7.5rem, 14vw, 10rem) var(--gutter) clamp(3rem, 6vw, 4.5rem);
  background: var(--chalk);
  color: var(--ink);
  position: relative;
}
.page-hero .eyebrow { color: var(--teal); display: block; margin-bottom: 1rem; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 800px; }
.page-hero .lede { margin-top: 1.1rem; max-width: 660px; font-size: 1.12rem; color: var(--ink); }

/* ---------- Reveal animation (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Board statement ---------- */
.statement { text-align: left; }
.statement .eyebrow { color: var(--teal); }
.statement h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); max-width: 920px; margin-top: 1rem; }
.statement .standfirst { max-width: 700px; margin-top: 1.25rem; font-size: 1.12rem; }

/* ---------- Metric trio ---------- */
.metric-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 700px) { .metric-trio { grid-template-columns: 1fr; } }
.metric-card {
  border: 1px solid rgba(18,26,24,0.12);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  background: #ffffff;
  color: var(--ink);
}
.metric-card .metric-num {
  font-family: var(--font-mono);
  color: var(--teal);
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 500;
}
.metric-card p { margin-top: 0.6rem; color: var(--ink); font-size: 0.95rem; }
.metric-note { margin-top: 1.4rem; font-size: 0.85rem; color: var(--ink); }

/* ---------- Stage / timeline ---------- */
.stage-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .stage-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stage-list { grid-template-columns: 1fr; } }
.stage-card {
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.6rem;
  border: 1px solid rgba(18,26,24,0.12);
  background: #ffffff;
  color: var(--ink);
}
.stage-card .board-num { color: var(--teal); }
.stage-card h3 { font-size: 1.25rem; margin-top: 0.75rem; color: var(--ink); }
.stage-card p { margin-top: 0.6rem; font-size: 0.96rem; color: var(--ink); }

/* ---------- Method rows ---------- */
.method-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  padding-block: 1.6rem;
  border-top: 1px solid rgba(18,26,24,0.14);
}
.method-row:first-of-type { border-top: none; }
.method-row .board-num { color: var(--teal); font-size: 1rem; }
.method-row h3 { font-size: 1.3rem; }
.method-row p { margin-top: 0.5rem; max-width: 660px; color: var(--ink); }
@media (max-width: 620px) { .method-row { grid-template-columns: 1fr; gap: 0.5rem; } }

/* ---------- Capability rail ---------- */
.capability-rail { background: #ffffff; color: var(--ink); }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(18,26,24,0.08); border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 900px) { .capability-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .capability-grid { grid-template-columns: 1fr; } }
.capability-item { background: #ffffff; padding: 1.9rem 1.7rem; color: var(--ink); border: 1px solid rgba(18,26,24,0.1); }
.capability-item .board-num { color: var(--teal); opacity: 1; }
.capability-item h3 { font-size: 1.2rem; margin-top: 0.6rem; color: var(--ink); }
.capability-item p { margin-top: 0.55rem; font-size: 0.94rem; color: var(--ink); opacity: 1; }

/* ---------- Cards (work teasers, services, faq) ---------- */
.card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(18,26,24,0.14);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: var(--ink);
}
.surface-board .card { border-color: rgba(18,26,24,0.12); }
.card .card-media { aspect-ratio: 4/3; overflow: hidden; }
.card .card-media img { width: 100%; height: 100%; object-fit: cover; }
.card .card-body { padding: 1.6rem; flex: 1; display: flex; flex-direction: column; color: var(--ink); }
.card .card-body .board-num { color: var(--teal); }
.card h3 { font-size: 1.25rem; margin-top: 0.65rem; color: var(--ink); }
.card p { margin-top: 0.6rem; font-size: 0.96rem; color: var(--ink); flex: 1; }
.card .card-link { margin-top: 1.1rem; font-weight: 600; font-size: 0.92rem; }

.service-card {
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  border: 1px solid rgba(18,26,24,0.14);
  background: #ffffff;
  color: var(--ink);
}
.surface-board .service-card { border-color: rgba(18,26,24,0.12); background: #ffffff; }
.service-card .board-num { color: var(--teal); }
.service-card h3 { font-size: 1.3rem; margin-top: 0.7rem; color: var(--ink); }
.service-card p { margin-top: 0.65rem; color: var(--ink); }
.service-card .price-tag { margin-top: 1rem; font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink); }

/* ---------- FAQ accordion ---------- */
.faq-item { border-top: 1px solid rgba(18,26,24,0.16); }
.surface-board .faq-item { border-top-color: rgba(18,26,24,0.14); }
.faq-item:first-child { border-top: none; }
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: inherit;
  padding: 1.35rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
}
.faq-q .plus { font-family: var(--font-mono); font-size: 1.3rem; color: var(--coral); transition: transform 0.2s var(--ease); flex-shrink: 0; }
.faq-q[aria-expanded="true"] .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq-a[data-open="true"] { max-height: 900px; }
.faq-a .faq-a-inner { padding-bottom: 1.4rem; color: var(--ink); max-width: 780px; }
.faq-a .faq-a-inner p + p { margin-top: 0.8rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 780px; margin-inline: auto; }
.cta-band p { margin-top: 1rem; max-width: 580px; margin-inline: auto; color: var(--ink); font-family: var(--font-serif); }
.cta-band .btn-row { justify-content: center; margin-top: 2rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field input, .field select, .field textarea {
  background: var(--chalk);
  color: var(--ink);
  border: 1.5px solid rgba(18,26,24,0.28);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-size: 0.98rem;
  font-family: var(--font-ui);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-hint { font-size: 0.82rem; color: var(--ink); }
.consent-row { display: flex; align-items: flex-start; gap: 0.7rem; }
.consent-row input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; }
.consent-row label { font-size: 0.9rem; font-weight: 400; }
.honey-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-note { margin-top: 1rem; font-size: 0.85rem; color: var(--ink); }

/* ---------- Contact info blocks ---------- */
.contact-info-list { display: flex; flex-direction: column; gap: 1.4rem; }
.contact-info-item .board-num { color: var(--teal); display: block; margin-bottom: 0.4rem; }
.contact-info-item p { margin-top: 0.2rem; }

/* ---------- Legal content ---------- */
.legal-content { max-width: 800px; }
.legal-content h2 { font-size: 1.5rem; margin-top: 2.4rem; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.legal-content p { margin-top: 0.9rem; color: var(--ink); }
.legal-content ul { margin-top: 0.9rem; padding-left: 1.4rem; list-style: disc; }
.legal-content ul li { margin-top: 0.5rem; }
.legal-content .updated { color: var(--teal); font-family: var(--font-mono); font-size: 0.85rem; }

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(2.8rem, 6vw, 4rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }
.footer-logo { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; margin-bottom: 0.7rem; }
.footer-grid p { font-size: 0.92rem; color: var(--ink); margin-top: 0.5rem; }
.footer-grid a { color: var(--ink); }
.footer-grid a:hover { color: var(--teal); }
.footer-nav-list { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-nav-list a { font-size: 0.92rem; }
.footer-bottom { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(18,26,24,0.12); }
.footer-bottom p { font-size: 0.82rem; color: var(--ink); }
.footer-disclaimer { margin-top: 0.6rem; max-width: 920px; line-height: 1.55; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: #ffffff;
  color: var(--ink);
  border-top: 1px solid rgba(18,26,24,0.14);
  padding: 1.4rem var(--gutter);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
  box-shadow: 0 -8px 32px rgba(18,26,24,0.08);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner .cookie-wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.cookie-banner p { font-size: 0.92rem; max-width: 620px; color: var(--ink); }
.cookie-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.cookie-actions .btn { padding: 0.65rem 1.2rem; font-size: 0.88rem; }

.cookie-panel {
  display: none;
  max-width: var(--maxw);
  margin: 1rem auto 0;
  border-top: 1px solid rgba(18,26,24,0.12);
  padding-top: 1rem;
}
.cookie-panel.is-open { display: block; }
.cookie-option { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 0.6rem; }
.cookie-option:not(:last-child) { border-bottom: 1px solid rgba(18,26,24,0.1); }
.cookie-option strong { font-size: 0.92rem; color: var(--ink); }
.cookie-option span { font-size: 0.82rem; color: var(--ink); display: block; margin-top: 0.15rem; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 8rem var(--gutter) 4rem;
  background: var(--chalk);
}
.error-page .board-num { color: var(--coral); font-size: 1rem; }
.error-page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-top: 1rem; }
.error-page p { margin-top: 1rem; max-width: 560px; color: var(--ink); font-family: var(--font-serif); }
.error-page .btn-row { margin-top: 2rem; }

/* ---------- Utility ---------- */
.mt-lg { margin-top: 2.5rem; }
.text-center { text-align: center; }
.center-head { margin-inline: auto; text-align: center; }
.center-head p { margin-inline: auto; }
figure.photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; }
figure.photo img { width: 100%; }
figure.photo figcaption { font-size: 0.78rem; color: var(--ink); margin-top: 0.6rem; }
