/* CivicByte — shared styles (Variation B: Warm Civic Modern) */

html, body { margin:0; padding:0; background:#f4f0e7; }
*, *::before, *::after { box-sizing: border-box; }

/* ── Page canvas: cherry-wood library panel ──────────────────
   Layered:
   1) warm wood base (gradient — slightly lighter top-left)
   2) horizontal wood-grain streaks (SVG turbulence, stretched x)
   3) finer wood ticks (SVG turbulence, smaller scale, darker)
   4) warm radial light washes
   5) faint vignette
   The grain SVGs are stretched horizontally (baseFrequency x is tiny,
   y is moderate) so the noise reads as parallel wood fibres. */
/* ── Page canvas: NYC blueprint / civic plan ──────────────────
   Deep prussian-blue field with a precise drafting grid (major + minor),
   subtle vignette, and a faint paper-grain overlay. Civic, technical,
   library-of-record — without leaning rustic. */
body {
  background-color: #18324a;
  background-image:
    /* major grid lines (every 96px) */
    linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px),
    /* minor grid lines (every 16px) */
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
    /* soft vignette */
    radial-gradient(1500px 1100px at 50% 30%, transparent 35%, rgba(8,18,30,0.55) 100%),
    /* warm corner glow */
    radial-gradient(900px 700px at 12% -10%, rgba(200,135,51,0.10), transparent 60%),
    /* base gradient */
    linear-gradient(180deg, #1d3b58 0%, #16304a 55%, #0f2236 100%);
  background-size:
    96px 96px, 96px 96px,
    16px 16px, 16px 16px,
    auto, auto, auto;
  background-position:
    0 0, 0 0,
    0 0, 0 0,
    0 0, 0 0, 0 0;
  background-attachment: fixed, fixed, fixed, fixed, fixed, fixed, fixed;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* The .page sits ON the blueprint like a cream document */
.page {
  background:
    radial-gradient(1200px 700px at 50% 0%, #faf3e1 0%, #f4ecd6 60%, #efe5c7 100%);
  box-shadow:
    0 0 0 1px rgba(8,18,30,0.6),
    inset 0 0 0 1px rgba(255,240,210,0.35),
    0 30px 70px -25px rgba(0,0,0,0.55),
    0 70px 140px -45px rgba(0,0,0,0.45);
  margin-top: 22px;
  margin-bottom: 22px;
  border-radius: 4px;
  overflow: hidden;
}

/* Archival corner marks on the centered page — registration / crop ticks */
.page { position: relative; }
.page::before, .page::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  border: 1.5px solid rgba(29,26,21,0.18);
  pointer-events: none;
}
.page::before { top: 14px; left: 14px;   border-right: none; border-bottom: none; }
.page::after  { top: 14px; right: 14px;  border-left: none;  border-bottom: none; }
/* Add bottom marks via .page > footer pseudo via separate selector */
footer { position: relative; }
footer::before, footer::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  border: 1.5px solid rgba(29,26,21,0.18);
  pointer-events: none; bottom: 14px;
}
footer::before { left: 14px;  border-right: none; border-top: none; }
footer::after  { right: 14px; border-left: none;  border-top: none; }

:root {
  --ink:       #1d1a15;
  --ink-soft:  #3a342b;
  --paper:     #f4f0e7;
  --paper-2:   #ebe6d9;
  --paper-3:   #ddd6c4;
  --brick:     #b8432b;
  --brick-dk:  #8f2f1d;
  --ochre:     #c88733;
  --moss:      #5b6b3a;
  --sky:       #2d5a78;
  --cream:     #f8f4ea;
}

body {
  font-family: 'Inter Tight', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.45;
}
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.serif { font-family: 'Fraunces', serif; }

a { color: var(--ink); }

.page { max-width: 1280px; margin: 0 auto; }

/* ── Nav ──────────────────────────────── */
.nav {
  display:flex; align-items:center; justify-content:space-between;
  padding: 20px 44px;
}
.mark {
  font-family:'Fraunces',serif; font-weight:700; font-size: 24px;
  letter-spacing:-0.02em; display:flex; align-items:center; gap:10px;
  color: var(--ink); text-decoration:none;
  /* Subtle wordmark refinement: turn "civicbyte" into a slightly tracked,
     compound-feeling lockup. Capital C+B accents added by ::first-letter +
     a spaced second cap effect via a span in markup if we add it later. */
}
.mark:hover .sq { transform: translateY(-1px) rotate(-2deg) scale(1.05); }
.mark .wm-civic { color: var(--ink); }
.mark .wm-byte  { color: var(--brick); font-style: italic; letter-spacing: -0.01em; }
.mark:hover .wm-byte { color: var(--brick-dk); }
.mark .sq {
  width: 26px; height: 26px;
  background: url("/cb-mark.svg") center/contain no-repeat;
  border-radius: 7px;
  flex-shrink: 0;
  transition: transform .35s cubic-bezier(.2,.8,.2,1.2);
  /* faux-3D shadow so it pops on cream pages */
  filter: drop-shadow(0 1px 0 rgba(29,26,21,0.12)) drop-shadow(0 4px 10px rgba(184,67,43,0.18));
  /* pixel-build-in on first paint */
  animation: cbBuild .9s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes cbBuild {
  0%   { clip-path: inset(0 100% 0 0); opacity: 0; }
  40%  { opacity: 1; }
  100% { clip-path: inset(0 0 0 0); opacity: 1; }
}
footer .mark .sq { animation: none; }
.nav ul {
  list-style:none; margin:0; padding:0;
  display:flex; gap:28px; font-size:14px; font-weight:500;
}
.nav ul a { color: var(--ink); text-decoration:none; opacity:0.85; white-space:nowrap; }
.nav ul a:hover { opacity:1; color: var(--brick); }
.nav ul a.active { color: var(--brick); opacity:1; }
.nav .cta {
  background: var(--ink); color: var(--cream);
  padding: 10px 18px; border-radius: 999px; white-space:nowrap;
  text-decoration:none; font-size: 13.5px; font-weight:600;
}
.nav .cta:hover { background: var(--brick); }

/* Buttons */
.btn {
  padding: 13px 22px; border-radius: 999px; font-weight:600; font-size:14px;
  text-decoration:none; display:inline-flex; align-items:center; gap:8px;
  border: 1px solid transparent; cursor: pointer;
}
.btn-p { background: var(--brick); color: #fff; border-color: var(--brick); }
.btn-p:hover { background: var(--brick-dk); border-color: var(--brick-dk); }
.btn-s { background: transparent; color: var(--ink); border-color: rgba(29,26,21,0.2); }
.btn-s:hover { border-color: var(--ink); background: var(--cream); }
.btn-d { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Pills / chips */
.pill {
  display:inline-flex; align-items:center; gap: 8px;
  font-family:'IBM Plex Mono',monospace; font-size:11.5px; letter-spacing:0.08em;
  background: var(--paper-2); border: 1px solid rgba(29,26,21,0.12);
  padding: 6px 12px; border-radius: 999px; color: var(--ink-soft);
}
.pill .pulse { width:7px; height:7px; border-radius:50%; background: var(--brick); box-shadow:0 0 0 4px rgba(184,67,43,0.15); }

.chip {
  font-family:'IBM Plex Mono',monospace; font-size: 10.5px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--paper); color: var(--ink-soft); letter-spacing:0.05em;
  border: 1px solid rgba(29,26,21,0.08);
}

/* Section heads */
.sec-head { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom: 36px; gap: 40px; }
.sec-head .l .k { font-family:'IBM Plex Mono',monospace; font-size:11.5px; letter-spacing:0.16em; text-transform:uppercase; color: var(--brick); margin-bottom: 10px; }
.sec-head h2 { font-family:'Fraunces',serif; font-weight:500; font-size: 56px; letter-spacing:-0.025em; margin: 0; line-height:1; max-width: 14ch; }
.sec-head h2 em { color: var(--brick); font-style:italic; }
.sec-head .r { max-width: 34ch; font-size: 14.5px; color: var(--ink-soft); line-height:1.55; }

/* Page hero (shared across inner pages) */
.page-hero {
  padding: 36px 44px 56px;
}
.page-hero h1 {
  font-family:'Fraunces',serif; font-weight:500;
  font-size: 80px; line-height: 0.98; letter-spacing:-0.035em;
  margin: 18px 0 20px; max-width: 18ch;
}
.page-hero h1 em { font-style: italic; font-weight: 500; color: var(--brick); }
.page-hero h1 u {
  text-decoration: none;
  background: linear-gradient(180deg, transparent 62%, rgba(200,135,51,0.45) 62%, rgba(200,135,51,0.45) 94%, transparent 94%);
  padding: 0 2px;
}
.page-hero .lede { font-size: 18px; line-height: 1.55; color: var(--ink-soft); max-width: 56ch; margin: 0 0 20px; }

/* Hero bullet list (home page) */
.hero-list { list-style:none; padding:0; margin: 0 0 20px; border-top:1px solid rgba(29,26,21,0.12); }
.hero-list li { display:flex; align-items:baseline; gap: 18px; padding: 12px 2px; border-bottom: 1px solid rgba(29,26,21,0.12); }
.hero-list .hl-k { font-family:'IBM Plex Mono',monospace; font-size: 10.5px; letter-spacing: 0.16em; text-transform:uppercase; color: var(--brick); width: 92px; flex-shrink:0; }
.hero-list .hl-v { font-family:'Fraunces',serif; font-size: 19px; font-weight:500; letter-spacing:-0.01em; color: var(--ink); line-height:1.3; }
.hero-note { font-family:'IBM Plex Mono',monospace; font-size: 12px; letter-spacing: 0.04em; color: var(--ink-soft); margin: 4px 0 24px; }

/* Footer */
footer { padding: 48px 44px 28px; background: var(--paper-2); border-top: 1px solid rgba(29,26,21,0.1); margin-top: 64px; }
.fg { display:grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 24px; border-bottom: 1px solid rgba(29,26,21,0.15); }
footer .mark { font-size: 24px; margin-bottom: 10px; }
footer p { font-size: 13.5px; color: var(--ink-soft); line-height:1.55; max-width: 34ch; margin: 0; }
footer h5 { font-family:'IBM Plex Mono',monospace; font-size: 11px; letter-spacing:0.14em; text-transform:uppercase; color: var(--ink-soft); margin: 4px 0 14px; font-weight:500; }
footer ul { list-style:none; padding:0; margin:0; font-size:13.5px; }
footer ul li { padding: 5px 0; }
footer ul a { color: var(--ink); text-decoration:none; }
footer ul a:hover { color: var(--brick); }
.col2 { display:flex; justify-content:space-between; padding-top: 18px; font-family:'IBM Plex Mono',monospace; font-size: 10.5px; letter-spacing:0.1em; color: var(--ink-soft); }

/* Tool screenshots — pixel-art NYC fragments */
.shot {
  position:relative; overflow:hidden;
  background: var(--paper-2) center/cover no-repeat;
  border-bottom: 1px solid rgba(29,26,21,0.1);
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
}
.shot.brick { background-image: url("/shot-building.svg"); background-color: #b8432b; background-size: cover; }
.shot.ochre { background-image: url("/shot-portfolio.svg"); background-color: #c88733; background-size: cover; }
.shot.moss  { background-image: url("/shot-school.svg"); background-color: #5b6b3a; background-size: cover; }
.shot.sky   { background-image: url("/shot-eviction.svg"); background-color: #2d5a78; background-size: cover; }
.shot.ink   { background-image: url("/shot-311.svg"); background-color: #1d1a15; background-size: cover; }
.shot.soon  { background-image: url("/shot-soon.svg"); background-color: #ebe6d9; background-size: cover; }
.shot .shot-label {
  position:absolute; inset:auto 10px 10px auto;
  font-family:'IBM Plex Mono',monospace; font-size: 10px;
  background: var(--cream); padding: 3px 8px; border-radius: 999px;
  color: var(--ink-soft); letter-spacing:0.08em;
}

/* Utility */
.hr { height:1px; background: rgba(29,26,21,0.12); border: none; margin: 0; }

/* ─────────────────────────────────────────────────────────
   GLOBAL FX — applied across every page via civicbyte-fx.js
   ───────────────────────────────────────────────────────── */

/* Selection + focus polish */
::selection { background: var(--brick); color: var(--cream); }
:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scroll progress — thin ochre line, ink shadow */
#cb-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 10000;
  background: linear-gradient(90deg, var(--brick), var(--ochre));
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .08s linear;
  pointer-events: none;
  box-shadow: 0 0 14px rgba(200,135,51,0.55);
}

/* Cursor spotlight — ambient ochre warmth that follows the cursor */
#cb-spot {
  position: fixed; pointer-events: none; z-index: 9998;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200,135,51,0.06), transparent 70%);
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity .4s;
}
@media (hover: hover) { #cb-spot { opacity: 1; } }

/* Nav link draw-in underline */
.nav ul a {
  position: relative; padding: 4px 2px;
}
.nav ul a::after {
  content: ""; position: absolute;
  left: 2px; right: 2px; bottom: -2px;
  height: 2px; background: var(--brick);
  transform: scaleX(0); transform-origin: right center;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.nav ul a:hover::after,
.nav ul a.active::after { transform: scaleX(1); transform-origin: left center; }

/* CTA shine — diagonal gloss sweeps on hover */
.cta, .btn-p {
  position: relative; overflow: hidden; isolation: isolate;
}
.cta::before, .btn-p::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.32) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .7s cubic-bezier(.2,.7,.3,1);
  pointer-events: none;
}
.cta:hover::before, .btn-p:hover::before { transform: translateX(120%); }

/* Magnetic button — moved by JS via --mx/--my */
.btn, .cta { transform: translate3d(var(--mx,0), var(--my,0), 0); transition: transform .25s cubic-bezier(.2,.8,.2,1.2), background .2s, border-color .2s; }
.btn:active, .cta:active { transform: translate3d(var(--mx,0), var(--my,0), 0) scale(0.97); }

/* Cursor glow on opt-in cards */
[data-glow] {
  position: relative;
  --gx: 50%; --gy: 50%;
}
[data-glow]::after {
  content: ""; position: absolute; inset: 0;
  pointer-events: none; border-radius: inherit;
  background: radial-gradient(360px circle at var(--gx) var(--gy), rgba(200,135,51,0.18), transparent 60%);
  opacity: 0; transition: opacity .35s;
}
[data-glow]:hover::after { opacity: 1; }

/* Reveal — clip + lift */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  clip-path: inset(0 0 14% 0);
  transition: opacity .9s cubic-bezier(.2,.7,.3,1),
              transform .9s cubic-bezier(.2,.7,.3,1),
              clip-path .9s cubic-bezier(.2,.7,.3,1);
}
[data-reveal].in {
  opacity: 1; transform: none; clip-path: inset(0 0 0 0);
}
[data-reveal][data-d="1"] { transition-delay: .08s; }
[data-reveal][data-d="2"] { transition-delay: .16s; }
[data-reveal][data-d="3"] { transition-delay: .24s; }
[data-reveal][data-d="4"] { transition-delay: .32s; }

/* Letter-stagger for h1 / hero-class headings (added by JS) */
.cb-word { display: inline-block; white-space: nowrap; }
.cb-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em) rotate(2deg);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}
.cb-letter.in { opacity: 1; transform: none; }

/* Subtle marquee */
.cb-marquee {
  overflow: hidden; white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.cb-marquee > .track {
  display: inline-flex; gap: 64px; align-items: center;
  animation: cbMarquee 40s linear infinite;
}
.cb-marquee:hover > .track { animation-play-state: paused; }
@keyframes cbMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Live status dot — universal pulse */
.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #6ea84a;
  box-shadow: 0 0 0 0 rgba(110,168,74,0.8);
  animation: liveDot 1.8s ease-out infinite;
}
@keyframes liveDot {
  0%   { box-shadow: 0 0 0 0 rgba(110,168,74,0.8); }
  70%  { box-shadow: 0 0 0 10px rgba(110,168,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(110,168,74,0); }
}

/* Animated pixel constellation backdrop (opt-in via .pixel-bg) */
.pixel-bg { position: relative; isolation: isolate; }
.pixel-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(184,67,43,0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 28% 72%, rgba(200,135,51,0.20) 0 2.5px, transparent 3px),
    radial-gradient(circle at 64% 30%, rgba(91,107,58,0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 64%, rgba(45,90,120,0.18) 0 2.5px, transparent 3px),
    radial-gradient(circle at 46% 88%, rgba(184,67,43,0.14) 0 2px, transparent 3px);
  background-size: 100% 100%;
  animation: pxFloat 18s ease-in-out infinite alternate;
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
}
@keyframes pxFloat {
  from { transform: translateY(0) translateX(0); }
  to   { transform: translateY(-12px) translateX(8px); }
}

/* Scroll-tied tilt cards */
[data-tilt] {
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateX(var(--tx,0deg)) rotateY(var(--ty,0deg));
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}

/* Subtle aside-margin "byte" halo — small ochre square trailing the active section */
.byte-halo {
  display: inline-block; width: 10px; height: 10px;
  background: var(--ochre); border-radius: 2px;
  vertical-align: middle; margin-left: 8px;
  box-shadow: 0 0 0 0 rgba(200,135,51,0.6);
  animation: liveDot 2.2s ease-out infinite;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  #cb-progress, #cb-spot { display: none; }
  .mark .sq { animation: none; }
  [data-reveal] { opacity: 1; transform: none; clip-path: none; transition: none; }
  .cb-letter { opacity: 1; transform: none; }
  .cb-marquee > .track, .live-dot, .pixel-bg::before, .byte-halo { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE — these two rules are the ONLY top-level additions.
   They ensure the hamburger + drawer are invisible on desktop.
   Everything else lives inside @media blocks below.
   ═══════════════════════════════════════════════════════════ */
.cb-ham    { display: none; }  /* hidden on desktop, shown by media query */
.nav-drawer { display: none; }  /* hidden always; JS + media query open it */

/* ── iOS Safari: background-attachment:fixed is broken on mobile ── */
@supports (-webkit-touch-callout: none) {
  body { background-attachment: scroll, scroll, scroll, scroll, scroll; }
}

/* ── Tablet ≤ 960px ── */
@media (max-width: 960px) {
  .page { margin-top: 10px; margin-bottom: 10px; border-radius: 3px; }

  /* Nav: hide desktop links + CTA, reveal hamburger */
  .nav { padding: 16px 24px; position: relative; flex-wrap: nowrap; }
  .nav > ul  { display: none; }
  .nav > .cta { display: none; }
  .cb-ham {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; cursor: pointer; background: none; border: none; padding: 8px;
    border-radius: 8px; margin-left: auto; width: 40px; height: 40px;
  }
  .cb-ham span {
    display: block; width: 20px; height: 2px;
    background: var(--ink); border-radius: 2px;
    transition: transform .25s, opacity .2s, width .25s;
    transform-origin: center;
  }
  .nav.nav-open .cb-ham span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.nav-open .cb-ham span:nth-child(2) { opacity: 0; width: 0; }
  .nav.nav-open .cb-ham span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Drawer — positioned below nav bar */
  .nav-drawer {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 200;
    background: var(--cream);
    border-top: 1px solid rgba(29,26,21,0.1);
    border-bottom: 1px solid rgba(29,26,21,0.1);
    box-shadow: 0 12px 32px -8px rgba(29,26,21,0.18);
    padding: 8px 24px 20px;
  }
  .nav-drawer.open { display: block; }
  .nav-drawer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
  .nav-drawer ul a {
    display: block; padding: 14px 0; font-size: 17px; font-weight: 500;
    color: var(--ink); text-decoration: none;
    border-bottom: 1px solid rgba(29,26,21,0.08);
  }
  .nav-drawer ul a.active { color: var(--brick); }
  .nav-drawer .nd-cta {
    display: block; margin-top: 14px;
    background: var(--ink); color: var(--cream);
    padding: 14px 20px; border-radius: 999px; text-align: center;
    text-decoration: none; font-size: 15px; font-weight: 600;
  }

  /* Hero */
  .page-hero { padding: 28px 24px 44px; }
  .page-hero h1 { font-size: 52px; margin: 14px 0 16px; }
  .page-hero .lede { font-size: 16px; }

  /* Section heads */
  .sec-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 28px; }
  .sec-head h2 { font-size: 40px; }
  .sec-head .r { max-width: none; }

  /* Footer */
  footer { padding: 40px 24px 24px; margin-top: 40px; }
  .fg { grid-template-columns: 1fr 1fr; gap: 28px; }
  .col2 { flex-direction: column; gap: 6px; }
}

/* ── Phone ≤ 600px ── */
@media (max-width: 600px) {
  /* Strip wood-panel texture — full-bleed cream, no margin */
  body { background-color: var(--paper); background-image: none; }
  body::before { display: none; }
  .page { margin: 0; border-radius: 0; box-shadow: none; }
  .page::before, .page::after, footer::before, footer::after { display: none; }

  .nav { padding: 14px 18px; }
  .mark { font-size: 20px; }
  .mark .sq { width: 22px; height: 22px; }

  /* Hero */
  .page-hero { padding: 22px 18px 36px; }
  .page-hero h1 { font-size: 40px; letter-spacing: -0.03em; max-width: none; }
  .page-hero .lede { font-size: 15px; }

  /* Buttons stack */
  .hero-actions, .actions { flex-direction: column; gap: 10px; }
  .btn { padding: 15px 20px; font-size: 15px; justify-content: center; text-align: center; }

  /* Section heads */
  .sec-head { margin-bottom: 20px; }
  .sec-head h2 { font-size: 32px; }
  .sec-head .r { font-size: 14px; }

  /* Section padding */
  .values, .standards { padding: 40px 18px !important; }
  .mission  { padding: 20px 18px 48px !important; grid-template-columns: 1fr !important; gap: 28px !important; }
  .story    { padding: 48px 18px !important; grid-template-columns: 1fr !important; gap: 20px !important; }
  .about-cta { padding: 24px 18px 40px !important; }
  .about-cta .box { grid-template-columns: 1fr !important; padding: 28px 20px !important; gap: 20px !important; }
  .about-cta h3 { font-size: 32px !important; }
  .about-cta .btns { flex-direction: column; }

  /* Mission stats → horizontal scroll strip */
  .mission .side {
    display: flex !important; flex-direction: row !important; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; border-radius: 12px;
  }
  .mission .side::-webkit-scrollbar { display: none; }
  .mission .side .r {
    flex: 0 0 auto; min-width: 120px;
    flex-direction: column !important; align-items: flex-start !important; gap: 4px;
    padding: 14px 16px;
  }
  .mission .side .r .val { font-size: 22px !important; }
  .mission h2 { font-size: 34px !important; }
  .mission p.big { font-size: 16px !important; }
  .mission .pull { font-size: 19px !important; }

  /* Values → 1 col */
  .values-grid { grid-template-columns: 1fr !important; }
  .value { border-right: none !important; }
  .value:nth-last-child(-n+3) { border-bottom: 1px solid rgba(29,26,21,0.1) !important; }
  .value:last-child { border-bottom: none !important; }

  /* Standards → simplified */
  .std { grid-template-columns: 52px 1fr !important; gap: 14px !important; }
  .std p { display: none; }

  /* Story */
  .story h2 { font-size: 32px !important; }
  .story .body p:first-child::first-letter { font-size: 48px; }

  /* Footer → 1 col */
  footer { padding: 32px 18px 20px; margin-top: 32px; }
  .fg { grid-template-columns: 1fr !important; gap: 24px; }
}

/* ── iPhone mini / SE ≤ 390px ── */
@media (max-width: 390px) {
  .page-hero h1 { font-size: 34px; }
  .sec-head h2 { font-size: 28px !important; }
  .mission h2 { font-size: 28px !important; }
  .nav { padding: 12px 16px; }
}
