/* ---------- James Holcomb — Citizen file design system ---------- */
:root {
  --parchment: #f4e9d2;
  --parchment-2: #ece0c2;
  --parchment-3: #e3d5b1;
  --ink: #0f1b3d;
  --ink-2: #1a2750;
  --gold: #e0a82e;
  --gold-2: #b48218;
  --stamp-red: #b73e2e;
  --flag-blue: #2b5fa3;
  --paper-line: rgba(15, 27, 61, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter Tight", system-ui, sans-serif;
  background: var(--parchment);
  color: var(--ink);
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.55;
}

/* Subtle paper grain + horizontal rules to evoke filing-cabinet stationery */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(15,27,61,0.045) 31px 32px),
    radial-gradient(1200px 800px at 10% 0%, rgba(224,168,46,0.10), transparent 60%),
    radial-gradient(900px 700px at 100% 30%, rgba(43,95,163,0.08), transparent 60%);
  z-index: 0;
  mix-blend-mode: multiply;
}

/* Tiny "noise" speckles */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(15,27,61,0.08) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.18;
  mix-blend-mode: multiply;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- Type ---------- */
.font-display { font-family: "Archivo Black", system-ui, sans-serif; letter-spacing: -0.01em; }
.font-typewriter { font-family: "Special Elite", "Courier New", monospace; }
.font-serif { font-family: "DM Serif Display", Georgia, serif; }
.font-body { font-family: "Inter Tight", system-ui, sans-serif; }

h1, h2, h3 { margin: 0; line-height: 1.05; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 233, 210, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--paper-line);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; gap: 24px;
}
.nav-mark {
  font-family: "Archivo Black", sans-serif;
  font-size: 18px;
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 10px;
}
.nav-mark .torch { font-size: 18px; }
.nav-links {
  margin-left: auto;
  display: flex; gap: 4px;
  flex-wrap: wrap;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover {
  background: var(--ink);
  color: var(--parchment);
}
.nav-classified {
  font-family: "Special Elite", monospace;
  font-size: 11px;
  color: var(--stamp-red);
  border: 1px dashed var(--stamp-red);
  padding: 2px 8px;
  letter-spacing: 0.18em;
  transform: rotate(-2deg);
  white-space: nowrap;
}

/* ---------- Section base ---------- */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 28px;
  position: relative;
}
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Special Elite", monospace;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 10px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: rgba(255,255,255,0.35);
}
.section-eyebrow .dot {
  width: 8px; height: 8px; background: var(--stamp-red); border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(183, 62, 46, 0.18);
}

/* ---------- Citizen file (hero) ---------- */
.hero {
  padding-top: 56px;
  padding-bottom: 80px;
  position: relative;
  isolation: isolate;
}
.folder {
  position: relative;
  background: linear-gradient(180deg, #f8eed7 0%, #ecdfba 100%);
  border: 2px solid var(--ink);
  border-radius: 6px 26px 6px 6px;
  box-shadow:
    0 30px 60px -30px rgba(15,27,61,0.45),
    0 6px 0 var(--ink),
    inset 0 0 0 6px rgba(255,255,255,0.4);
  padding: 56px 64px 72px;
  overflow: hidden;
}
/* Folder tab */
.folder-tab {
  position: absolute;
  top: -28px; left: 56px;
  background: var(--ink);
  color: var(--parchment);
  font-family: "Special Elite", monospace;
  font-size: 13px;
  letter-spacing: 0.22em;
  padding: 8px 22px 10px;
  border-radius: 6px 6px 0 0;
  transform: rotate(-1deg);
  z-index: 2;
  box-shadow: 0 -2px 0 var(--gold) inset;
}
.folder-tab small {
  font-family: "Inter Tight", sans-serif;
  font-size: 9px;
  display: block;
  letter-spacing: 0.4em;
  opacity: 0.75;
  margin-top: 2px;
}

.file-meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  font-family: "Special Elite", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15,27,61,0.7);
  margin-bottom: 28px;
  border-bottom: 1px dashed rgba(15,27,61,0.35);
  padding-bottom: 14px;
}
.file-meta span b { color: var(--ink); font-weight: 700; }

.hero h1 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(64px, 11vw, 168px);
  line-height: 0.86;
  letter-spacing: -0.02em;
  color: var(--ink);
  position: relative;
}
.hero h1 .citizen-tag {
  display: block;
  font-family: "Special Elite", monospace;
  font-size: clamp(14px, 1.4vw, 18px);
  letter-spacing: 0.5em;
  font-weight: normal;
  color: var(--stamp-red);
  margin-bottom: 12px;
}
.hero h1 .james {
  display: block;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}
.hero h1 .holcomb {
  display: block;
  color: var(--gold);
  text-shadow:
    0 0 0 transparent,
    2px 0 0 var(--ink),
    -2px 0 0 var(--ink),
    0 2px 0 var(--ink),
    0 -2px 0 var(--ink);
  position: relative;
}
.hero-shine {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,0.55) 50%, transparent 62%);
  pointer-events: none;
  animation: shine 6s ease-in-out infinite;
  mix-blend-mode: overlay;
}
@keyframes shine {
  0%, 100% { transform: translateX(-30%); }
  50% { transform: translateX(30%); }
}

.tagline {
  margin-top: 28px;
  font-family: "Inter Tight", sans-serif;
  font-weight: 500;
  font-size: clamp(18px, 2vw, 26px);
  display: flex; flex-wrap: wrap; gap: 0 18px;
  align-items: center;
  color: var(--ink);
}
.tagline .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--parchment);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.tagline .pill.gold { background: var(--gold); color: var(--ink); }
.tagline .pill.red { background: var(--stamp-red); color: white; }
.tagline .pill.blue { background: var(--flag-blue); color: white; }

.subtagline {
  margin-top: 16px;
  font-family: "Special Elite", monospace;
  font-size: 15px;
  color: rgba(15,27,61,0.7);
  letter-spacing: 0.06em;
}

/* Action row */
.hero-actions {
  margin-top: 40px;
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center;
}

/* Stamps */
.stamp {
  font-family: "Special Elite", monospace;
  font-weight: 700;
  color: var(--stamp-red);
  border: 3px double var(--stamp-red);
  padding: 6px 14px 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-block;
  background: transparent;
  opacity: 0.85;
}
.stamp.large { font-size: 20px; }
.stamp.spin { transform: rotate(-8deg); }
.stamp.red { color: var(--stamp-red); border-color: var(--stamp-red); }
.stamp.navy { color: var(--ink); border-color: var(--ink); }
.stamp.gold { color: var(--gold-2); border-color: var(--gold-2); }

.no-permission-stamp {
  position: absolute;
  top: 200px; right: 80px;
  transform: rotate(8deg);
  font-size: 22px;
  padding: 12px 22px;
  text-align: center;
  line-height: 1.1;
  background: rgba(244,233,210,0.5);
  animation: wobble 4s ease-in-out infinite;
  z-index: 4;
}
@media (max-width: 800px) {
  .no-permission-stamp { top: 140px; right: 12px; font-size: 14px; padding: 8px 12px; }
}
.no-permission-stamp small { display: block; font-size: 10px; letter-spacing: 0.4em; opacity: 0.7; }
@keyframes wobble {
  0%,100% { transform: rotate(8deg); }
  50% { transform: rotate(6deg) translateY(-2px); }
}

/* Cut red tape ribbon */
.red-tape {
  position: absolute;
  width: 100%;
  height: 28px;
  background: repeating-linear-gradient(
    -8deg,
    var(--stamp-red) 0 14px,
    #952f22 14px 28px
  );
  top: 38%; left: 0;
  transform: rotate(-3deg);
  opacity: 0.85;
  z-index: 3;
  pointer-events: none;
  /* clip-path creates the "cut" notch */
  clip-path: polygon(
    0 0, 42% 0, 50% 50%, 42% 100%, 0 100%,
    60% 100%, 60% 100%, 100% 100%, 100% 0, 58% 0, 50% 50%, 58% 0
  );
}
.red-tape::after {
  content: "RED TAPE — CUT";
  position: absolute; right: 60px; top: 4px;
  font-family: "Special Elite", monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: white;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}

/* Floating paper forms */
.form-bg {
  position: absolute;
  width: 130px; height: 170px;
  background: white;
  border: 1px solid rgba(15,27,61,0.5);
  padding: 12px 10px;
  font-family: "Special Elite", monospace;
  font-size: 7px;
  color: rgba(15,27,61,0.55);
  line-height: 1.3;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 20px -10px rgba(15,27,61,0.4);
  pointer-events: none;
  z-index: 0;
}
.form-bg::before {
  content: "FORM 27B/6";
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: rgba(15,27,61,0.8);
  letter-spacing: 0.18em;
}

/* Sparkles */
.sparkle {
  position: absolute;
  pointer-events: none;
  width: 14px; height: 14px;
  background:
    linear-gradient(var(--gold), var(--gold)) center/2px 100% no-repeat,
    linear-gradient(var(--gold), var(--gold)) center/100% 2px no-repeat;
  filter: drop-shadow(0 0 6px rgba(224,168,46,0.8));
  animation: twinkle 2.4s ease-in-out infinite;
}
.sparkle::before, .sparkle::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(var(--gold), var(--gold)) center/1px 100% no-repeat,
    linear-gradient(var(--gold), var(--gold)) center/100% 1px no-repeat;
  transform: rotate(45deg);
  opacity: 0.7;
}
@keyframes twinkle {
  0%, 100% { transform: scale(0.6); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* Liberty scale (balance) — rocks back and forth */
.torch {
  display: inline-block;
  position: relative;
  width: 22px; height: 22px;
  color: currentColor;
  filter: drop-shadow(0 0 4px rgba(224,168,46,0.55));
  vertical-align: middle;
  line-height: 0;
}
.torch svg { display: block; width: 100%; height: 100%; overflow: visible; }
.torch .scale-beam {
  transform-origin: 12px 7px;
  animation: scale-rock 2.8s ease-in-out infinite;
}
@keyframes scale-rock {
  0%, 100% { transform: rotate(-9deg); }
  50% { transform: rotate(9deg); }
}

/* ---------- Buttons ---------- */
.btn {
  --c-bg: var(--ink);
  --c-fg: var(--parchment);
  --c-glow: var(--gold);
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--c-bg);
  color: var(--c-fg);
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 14px 22px;
  font-family: "Inter Tight", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s, background 0.2s, color 0.2s;
  box-shadow:
    0 0 0 0 rgba(224,168,46,0),
    4px 4px 0 var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.btn::before { /* shimmer */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.35) 50%, transparent 65%);
  transform: translateX(-150%);
  transition: transform 0.6s ease;
  z-index: -1;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 0 0 24px 4px rgba(224,168,46,0.5), 6px 6px 0 var(--ink); }
.btn:hover::before { transform: translateX(150%); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

.btn.primary { --c-bg: var(--gold); --c-fg: var(--ink); }
.btn.primary:hover { box-shadow: 0 0 30px 6px rgba(224,168,46,0.7), 6px 6px 0 var(--ink); }

.btn.outline { --c-bg: transparent; --c-fg: var(--ink); }
.btn.red { --c-bg: var(--stamp-red); --c-fg: white; border-color: var(--stamp-red); box-shadow: 4px 4px 0 #6e2418; }
.btn.red:hover { box-shadow: 0 0 28px 4px rgba(183,62,46,0.5), 6px 6px 0 #6e2418; }

/* Tooltip on .btn[data-tip] */
.btn[data-tip] { position: relative; }
.btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%; transform: translateX(-50%) translateY(4px);
  background: var(--ink);
  color: var(--parchment);
  font-family: "Special Elite", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 3px;
  white-space: nowrap;
  text-transform: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 5;
  box-shadow: 0 8px 16px -8px rgba(0,0,0,0.4);
}
.btn[data-tip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- About / values cards ---------- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }
.about-copy h2 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(40px, 5vw, 72px);
  margin-top: 18px;
}
.about-copy p {
  font-size: 19px;
  margin-top: 20px;
  max-width: 56ch;
}
.values-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.value-card {
  background: var(--parchment-2);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  padding: 18px 16px;
  position: relative;
  cursor: pointer;
  transition: transform 0.25s, background 0.25s;
  overflow: hidden;
}
.value-card:hover { transform: translate(-2px,-2px); background: var(--gold); }
.value-card:hover .denied-stamp { opacity: 1; transform: rotate(-12deg) scale(1); }
.value-card .num {
  font-family: "Special Elite", monospace;
  font-size: 10px; letter-spacing: 0.3em;
  color: rgba(15,27,61,0.55);
}
.value-card h3 {
  font-family: "Archivo Black", sans-serif;
  font-size: 22px; margin-top: 8px;
}
.value-card p {
  font-size: 14px; margin: 6px 0 0;
  color: rgba(15,27,61,0.75);
}
.denied-stamp {
  position: absolute;
  top: 50%; right: -10px;
  transform: rotate(-12deg) scale(0.6);
  opacity: 0;
  transition: opacity 0.2s, transform 0.3s;
  font-family: "Special Elite", monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--stamp-red);
  border: 3px double var(--stamp-red);
  padding: 4px 10px;
  letter-spacing: 0.12em;
  background: rgba(244,233,210,0.6);
  pointer-events: none;
}

/* ---------- LPWA banner ---------- */
.lpwa {
  margin: 0 auto;
  background: var(--ink);
  color: var(--parchment);
  border-radius: 8px;
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px var(--ink), 0 0 60px -10px rgba(224,168,46,0.5);
}
.lpwa::before { /* waving flag stripes */
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(224,168,46,0.06) 0 60px,
      transparent 60px 120px
    );
  animation: scrollStripes 14s linear infinite;
}
.lpwa::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(224,168,46,0.18) 25%, transparent 50%, rgba(43,95,163,0.18) 75%, transparent 100%);
  animation: spinSlow 22s linear infinite;
  pointer-events: none;
}
@keyframes scrollStripes { to { background-position: -120px 0; } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.lpwa-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 900px) { .lpwa-inner { grid-template-columns: 1fr; } }
.lpwa h2 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(36px, 4.5vw, 60px);
  color: var(--parchment);
}
.lpwa h2 .accent { color: var(--gold); }
.lpwa p { font-size: 18px; margin-top: 14px; opacity: 0.85; max-width: 56ch; }
.lpwa .lpwa-cta { text-align: right; }
@media (max-width: 900px) { .lpwa .lpwa-cta { text-align: left; } }

/* ---------- Book section ---------- */
.book-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .book-grid { grid-template-columns: 1fr; } }

.book-mockup {
  position: relative;
  aspect-ratio: 3/4;
  perspective: 1200px;
}
.book-cover {
  position: relative;
  width: 100%; height: 100%;
  background: #000;
  border-radius: 4px 12px 12px 4px;
  box-shadow:
    -8px 0 0 #0a1230 inset,
    20px 30px 60px -20px rgba(15,27,61,0.6),
    0 0 0 1px var(--gold) inset;
  transform: rotateY(-8deg);
  transition: transform 0.6s cubic-bezier(.25,1,.3,1);
  cursor: pointer;
  overflow: hidden;
}
.book-cover-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.book-cover:hover { transform: rotateY(-2deg) translateY(-6px); }
.book-cover::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(224,168,46,0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: bookShine 5s ease-in-out infinite;
}
@keyframes bookShine { 0%, 100% { transform: translateX(-100%); } 50% { transform: translateX(100%); } }
.book-cover .imprint {
  font-family: "Special Elite", monospace;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: auto;
}
.book-cover .title {
  font-family: "DM Serif Display", serif;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.book-cover .title em {
  display: block; color: var(--gold); font-style: italic;
}
.book-cover .by {
  margin-top: 16px;
  font-family: "Special Elite", monospace;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: rgba(244,233,210,0.7);
}
.book-cover .classified {
  position: absolute; top: 12px; right: 12px;
  font-family: "Special Elite", monospace;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--stamp-red);
  border: 2px solid var(--stamp-red);
  padding: 4px 8px;
  transform: rotate(8deg);
  background: rgba(244,233,210,0.92);
  z-index: 3;
  line-height: 1.2;
  text-align: center;
  font-weight: 700;
}
.book-cover .torch-mark { position: absolute; bottom: 16px; right: 16px; z-index: 3; }
.book-cover .scribble {
  position: absolute; bottom: 60px; left: 48px; right: 32px;
  height: 1px; background: rgba(224,168,46,0.5);
}

/* drifting page next to book */
.book-page {
  position: absolute;
  background: white;
  border: 1px solid rgba(15,27,61,0.4);
  width: 70%; aspect-ratio: 0.78;
  top: 12%; right: -8%;
  z-index: -1;
  transform: rotate(8deg);
  box-shadow: 12px 18px 36px -16px rgba(15,27,61,0.5);
  padding: 20px;
  font-family: "Special Elite", monospace;
  font-size: 8px;
  line-height: 1.45;
  color: rgba(15,27,61,0.7);
  animation: floatPage 7s ease-in-out infinite;
}
@keyframes floatPage {
  0%,100% { transform: rotate(8deg) translateY(0); }
  50% { transform: rotate(6deg) translateY(-10px); }
}

.book-copy h2 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.book-copy h2 em { color: var(--gold-2); }
.book-copy .review {
  margin-top: 24px;
  padding: 16px 18px;
  background: var(--parchment-2);
  border-left: 4px solid var(--gold);
  font-family: "Special Elite", monospace;
  font-size: 14px;
  color: var(--ink);
}
.book-copy .review b { color: var(--stamp-red); }
.book-copy p { font-size: 18px; margin-top: 20px; max-width: 54ch; }

/* ---------- Substack section ---------- */
.substack {
  background: linear-gradient(180deg, var(--parchment) 0%, var(--parchment-3) 100%);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}
.substack-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: stretch; }
@media (max-width: 900px) { .substack-grid { grid-template-columns: 1fr; } }
.substack h2 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(38px, 4.6vw, 64px);
  margin-bottom: 14px;
}
.substack h2 .underline {
  background-image: linear-gradient(transparent 70%, var(--gold) 70%, var(--gold) 88%, transparent 88%);
}
.posts { display: flex; flex-direction: column; gap: 10px; }
.post {
  display: grid; grid-template-columns: 60px 1fr auto; gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(15,27,61,0.2);
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink);
  font-family: "Inter Tight", sans-serif;
  transition: background 0.2s, transform 0.2s;
}
.post:hover { background: white; transform: translateX(4px); }
.post .num {
  font-family: "Special Elite", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(15,27,61,0.6);
}
.post .title {
  font-weight: 600;
  font-size: 16px;
}
.post .read {
  font-family: "Special Elite", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--stamp-red);
}

/* ---------- Photos ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.photo {
  position: relative;
  background: var(--parchment-2);
  border: 2px solid var(--ink);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  min-height: 200px;
}
.photo:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.photo .caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(15,27,61,0.85) 60%);
  color: var(--parchment);
  font-family: "Special Elite", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  transform: translateY(20%);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
}
.photo:hover .caption { opacity: 1; transform: translateY(0); }
.photo .file-num {
  position: absolute; top: 10px; left: 12px;
  background: var(--parchment);
  border: 1px solid var(--ink);
  font-family: "Special Elite", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  padding: 2px 6px;
  z-index: 2;
}
.photo .stamp-mini {
  position: absolute; top: 10px; right: 12px;
  font-family: "Special Elite", monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  border: 2px solid var(--stamp-red);
  color: var(--stamp-red);
  padding: 3px 6px;
  transform: rotate(8deg);
  background: rgba(244,233,210,0.55);
  z-index: 2;
}
.photo-placeholder {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(
      45deg,
      var(--parchment-2) 0 12px,
      var(--parchment-3) 12px 24px
    );
  display: flex; align-items: center; justify-content: center;
  font-family: "Special Elite", monospace;
  color: rgba(15,27,61,0.55);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-align: center;
  padding: 20px;
}

/* Span helpers */
.span-4 { grid-column: span 4; min-height: 240px; }
.span-5 { grid-column: span 5; min-height: 280px; }
.span-6 { grid-column: span 6; min-height: 260px; }
.span-7 { grid-column: span 7; min-height: 280px; }
.span-3 { grid-column: span 3; min-height: 200px; }
@media (max-width: 800px) {
  .span-3, .span-4, .span-5, .span-6, .span-7 { grid-column: span 12; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15,27,61,0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox-inner {
  background: var(--parchment);
  border: 3px solid var(--gold);
  max-width: 880px; width: 100%; max-height: 88vh;
  padding: 24px;
  position: relative;
  cursor: default;
}
.lightbox-inner .photo-placeholder { min-height: 60vh; }
.lightbox .closex {
  position: absolute; top: -16px; right: -16px;
  width: 40px; height: 40px;
  background: var(--stamp-red); color: white;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: "Special Elite", monospace;
  font-weight: 700;
  cursor: pointer;
}
.lightbox h4 {
  font-family: "Archivo Black", sans-serif;
  margin: 14px 0 4px;
  font-size: 22px;
}
.lightbox .filedesc {
  font-family: "Special Elite", monospace;
  font-size: 12px;
  color: rgba(15,27,61,0.7);
  letter-spacing: 0.1em;
}

/* ---------- Guest book ---------- */
.guestbook {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.3)),
    repeating-linear-gradient(180deg, var(--parchment) 0 31px, rgba(43,95,163,0.18) 31px 32px);
  border: 2px solid var(--ink);
  border-left: 14px solid var(--stamp-red);
  padding: 48px 44px;
  border-radius: 4px;
  position: relative;
}
.guestbook::before {
  content: "LEDGER";
  position: absolute;
  top: -1px; right: 30px;
  background: var(--ink); color: var(--parchment);
  padding: 6px 16px;
  font-family: "Special Elite", monospace;
  font-size: 11px; letter-spacing: 0.3em;
}
.gb-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
@media (max-width: 900px) { .gb-grid { grid-template-columns: 1fr; } }
.gb-form input, .gb-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--ink);
  font-family: "Special Elite", monospace;
  font-size: 16px;
  padding: 8px 0 6px;
  margin-bottom: 18px;
  color: var(--ink);
  outline: none;
}
.gb-form textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.gb-form input::placeholder, .gb-form textarea::placeholder {
  color: rgba(15,27,61,0.4);
}
.gb-form label {
  font-family: "Special Elite", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(15,27,61,0.7);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.committee-note {
  margin-top: 6px;
  font-family: "Special Elite", monospace;
  font-size: 11px;
  color: rgba(15,27,61,0.55);
  letter-spacing: 0.04em;
}
.entries {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 8px;
}
.entry {
  background: rgba(255,255,255,0.6);
  padding: 14px 16px;
  margin-bottom: 12px;
  border-left: 4px solid var(--gold);
  border-radius: 0 4px 4px 0;
  position: relative;
  font-family: "Inter Tight", sans-serif;
}
.entry .e-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: "Special Elite", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.entry .e-head b { color: var(--ink); font-weight: 700; }
.entry .e-head span { color: rgba(15,27,61,0.55); }
.entry .e-msg { font-size: 15px; color: var(--ink); }
.entry .e-stamp {
  position: absolute;
  top: 50%; right: 12px;
  transform: translateY(-50%) rotate(-8deg);
  font-family: "Special Elite", monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--gold-2);
  border: 1.5px solid var(--gold-2);
  padding: 2px 5px;
}

/* ---------- Contact ---------- */
.contact-card {
  background: var(--ink);
  color: var(--parchment);
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px) { .contact-card { grid-template-columns: 1fr; } }
.contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 90% 10%, rgba(224,168,46,0.18), transparent 60%);
  pointer-events: none;
}
.contact-card h2 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  color: var(--parchment);
}
.contact-card h2 .accent { color: var(--gold); }
.contact-card p {
  margin-top: 12px;
  font-family: "Special Elite", monospace;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: rgba(244,233,210,0.7);
}
.contact-list { display: grid; gap: 12px; position: relative; z-index: 2; }
.contact-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(224,168,46,0.3);
  border-radius: 4px;
  text-decoration: none;
  color: var(--parchment);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.contact-row:hover {
  background: rgba(224,168,46,0.12);
  border-color: var(--gold);
  transform: translateX(4px);
}
.contact-row .lbl {
  font-family: "Special Elite", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(244,233,210,0.55);
  text-transform: uppercase;
  width: 70px;
}
.contact-row .val { font-family: "Inter Tight", sans-serif; font-weight: 500; font-size: 15px; }
.contact-row .ext {
  margin-left: auto;
  font-family: "Special Elite", monospace;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.18em;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 80px;
  background: var(--ink);
  color: rgba(244,233,210,0.7);
  padding: 60px 28px 32px;
  position: relative;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer h5 {
  font-family: "Special Elite", monospace;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin: 0 0 14px;
  text-transform: uppercase;
}
.footer a {
  display: block;
  color: rgba(244,233,210,0.75);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
}
.footer a:hover { color: var(--gold); }
.footer .brand {
  font-family: "Archivo Black", sans-serif;
  font-size: 28px;
  color: var(--parchment);
  display: block;
  margin-bottom: 8px;
}
.footer .tinyjoke {
  margin-top: 36px;
  text-align: center;
  font-family: "Special Elite", monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(244,233,210,0.4);
  border-top: 1px solid rgba(244,233,210,0.15);
  padding-top: 20px;
}

/* ---------- Floating UI: toasts / easter eggs ---------- */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--ink);
  border: 2px solid var(--stamp-red);
  color: var(--parchment);
  padding: 16px 20px;
  font-family: "Special Elite", monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  z-index: 200;
  max-width: 320px;
  box-shadow: 0 16px 30px -10px rgba(0,0,0,0.5);
  animation: toastIn 0.35s cubic-bezier(.2,1,.3,1);
}

#toast-host { display: none; }
#toast-host.show { display: block; }
.toast b { color: var(--stamp-red); display: block; margin-bottom: 4px; letter-spacing: 0.2em;}
.toast button {
  margin-top: 10px;
  background: var(--stamp-red); color: white;
  border: none; padding: 6px 10px;
  font-family: "Special Elite", monospace;
  cursor: pointer; letter-spacing: 0.1em;
}
@keyframes toastIn {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.loading-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--gold); color: var(--ink);
  font-family: "Special Elite", monospace;
  font-size: 12px;
  letter-spacing: 0.3em;
  padding: 8px 16px;
  text-align: center;
  z-index: 300;
  border-bottom: 1px solid var(--ink);
}

/* ---------- Egg discovery counter (corner) ---------- */
.egg-counter {
  position: fixed;
  bottom: 16px; left: 16px;
  background: rgba(15,27,61,0.92);
  color: var(--gold);
  font-family: "Special Elite", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  padding: 8px 12px;
  border: 1px solid var(--gold);
  z-index: 90;
  cursor: help;
  user-select: none;
}
.egg-counter b { color: var(--parchment); }

/* ---------- Hidden 404 micro-label (in nav background) ---------- */
.gov-eff {
  font-family: "Special Elite", monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(15,27,61,0.45);
  cursor: help;
}
.gov-eff:hover { color: var(--stamp-red); }

/* Scrollbar */
.entries::-webkit-scrollbar { width: 8px; }
.entries::-webkit-scrollbar-track { background: rgba(15,27,61,0.06); }
.entries::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 4px; }

/* ---------- Permission Slips game ---------- */
.slip-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  overflow: hidden;
}
.perm-slip {
  position: absolute;
  top: 0; left: 0;
  width: 168px;
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  touch-action: none;
  will-change: transform;
}
.perm-slip.dragging { cursor: grabbing; z-index: 25; }
.perm-slip.disposed {
  transition: opacity 0.25s ease, transform 0.25s ease;
  opacity: 0;
  pointer-events: none;
}
.perm-slip.disposed .perm-slip-wobble {
  animation: none;
  transform: rotate(var(--rot, 0deg)) scale(0.4);
}
.perm-slip-wobble {
  animation: slip-float ease-in-out infinite alternate;
  transform: rotate(var(--rot, 0deg));
  filter: drop-shadow(0 8px 14px rgba(15,27,61,0.22));
  transition: filter 0.2s;
}
.perm-slip.dragging .perm-slip-wobble {
  animation: none;
  filter: drop-shadow(0 18px 28px rgba(15,27,61,0.45));
}
@keyframes slip-float {
  0%   { transform: rotate(var(--rot, 0deg)) translate(-3px, -2px); }
  100% { transform: rotate(calc(var(--rot, 0deg) + 4deg)) translate(5px, -10px); }
}
.perm-slip-inner {
  background: #fdfaf2;
  border: 1px solid rgba(15,27,61,0.45);
  padding: 11px 11px 10px;
  font-family: "Special Elite", monospace;
  font-size: 9px;
  line-height: 1.4;
  color: rgba(15,27,61,0.85);
  letter-spacing: 0.06em;
  position: relative;
}
.perm-slip-inner::before {
  /* perforated edge feel */
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 6px;
  width: 1px;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 4px,
    rgba(15,27,61,0.18) 4px 6px
  );
}
.perm-slip-head {
  font-size: 8px;
  letter-spacing: 0.3em;
  color: rgba(15,27,61,0.55);
  border-bottom: 1px solid rgba(15,27,61,0.3);
  padding: 0 0 4px 8px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}
.perm-slip-head::after {
  content: "✎";
  color: rgba(15,27,61,0.4);
}
.perm-slip-title {
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  line-height: 1.18;
  margin-bottom: 6px;
  color: var(--ink);
  padding-left: 8px;
}
.perm-slip-meta {
  font-size: 7.5px;
  letter-spacing: 0.16em;
  margin: 4px 0 6px;
  padding-left: 8px;
  color: rgba(15,27,61,0.6);
}
.perm-slip-line {
  border-bottom: 1px solid rgba(15,27,61,0.28);
  height: 10px;
  margin-left: 8px;
}
.perm-slip-deny {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed rgba(183,62,46,0.4);
  color: var(--stamp-red);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-align: center;
}

/* Trash can */
.trash-can {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 35;
  pointer-events: none;
  text-align: center;
  color: var(--ink);
  user-select: none;
  transition: transform 0.25s cubic-bezier(.25,1,.3,1), filter 0.25s;
  filter: drop-shadow(0 12px 20px rgba(15,27,61,0.25));
}
.trash-can.over {
  transform: scale(1.12) translateY(-4px);
  filter: drop-shadow(0 0 28px rgba(224,168,46,0.65)) drop-shadow(0 12px 20px rgba(15,27,61,0.3));
}
.trash-can.over .trash-art { animation: trashShake 0.3s ease-in-out infinite; }
.trash-art { display: flex; justify-content: center; }
@keyframes trashShake {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
.trash-counter {
  background: var(--gold);
  color: var(--ink);
  font-family: "Special Elite", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  margin-top: 8px;
  display: inline-block;
}
.trash-counter b { font-weight: 700; font-size: 14px; }
.trash-label {
  font-family: "Special Elite", monospace;
  font-size: 9.5px;
  letter-spacing: 0.26em;
  color: var(--ink);
  margin-top: 6px;
  background: var(--parchment);
  border: 1px solid var(--ink);
  padding: 3px 8px;
  display: inline-block;
}
.trash-bounce { animation: trashBounce 0.5s ease-out; }
@keyframes trashBounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.2); }
  60%  { transform: scale(0.94); }
  100% { transform: scale(1); }
}

/* Achievement modal */
.achievement-overlay {
  position: fixed; inset: 0;
  background: rgba(15,27,61,0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 500;
  padding: 24px;
  animation: ach-fade 0.4s ease-out;
  cursor: pointer;
}
@keyframes ach-fade { from { opacity: 0; } to { opacity: 1; } }
.achievement-card {
  background: var(--parchment);
  border: 4px double var(--gold);
  outline: 1px solid var(--ink);
  outline-offset: 6px;
  padding: 48px 56px;
  text-align: center;
  max-width: 600px;
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6), 0 0 80px rgba(224,168,46,0.35);
  cursor: default;
  animation: ach-pop 0.45s cubic-bezier(.2,1.4,.3,1);
}
@media (max-width: 600px) { .achievement-card { padding: 36px 24px; } }
@keyframes ach-pop {
  0% { transform: scale(0.85) rotate(-2deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.ach-stamp {
  font-family: "Special Elite", monospace;
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--stamp-red);
  border: 3px double var(--stamp-red);
  padding: 6px 16px;
  display: inline-block;
  margin-bottom: 22px;
  transform: rotate(-3deg);
}
.achievement-card h2 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  color: var(--ink);
  margin-bottom: 18px;
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.achievement-card h2 ::before { content: ""; }
.achievement-card p {
  font-size: 17px;
  line-height: 1.55;
  margin: 0 auto 28px;
  max-width: 48ch;
  color: rgba(15,27,61,0.85);
}
.ach-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.ach-meta {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 8px 14px;
  font-family: "Special Elite", monospace;
}
.ach-meta-lbl { font-size: 9px; letter-spacing: 0.24em; color: rgba(15,27,61,0.6); }
.ach-meta-val { font-size: 13px; letter-spacing: 0.14em; color: var(--ink); margin-top: 2px; font-weight: 700; }
.achievement-card button {
  background: var(--gold);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-family: "Inter Tight", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  padding: 14px 24px;
  letter-spacing: 0.04em;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.2s;
}
.achievement-card button:hover {
  transform: translate(-2px,-2px);
  box-shadow: 6px 6px 0 var(--ink), 0 0 24px rgba(224,168,46,0.5);
}

/* Section divider */
.divider {
  display: flex; align-items: center; gap: 14px;
  max-width: 1280px; margin: 0 auto;
  padding: 0 28px;
  color: rgba(15,27,61,0.4);
  font-family: "Special Elite", monospace;
  font-size: 11px;
  letter-spacing: 0.32em;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px;
  background: repeating-linear-gradient(90deg, rgba(15,27,61,0.4) 0 6px, transparent 6px 12px);
}

/* ---------- About page ---------- */
.about-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 28px 80px;
}
.about-folder {
  background: linear-gradient(180deg, #f8eed7 0%, #ecdfba 100%);
  border: 2px solid var(--ink);
  border-radius: 6px 26px 6px 6px;
  box-shadow:
    0 30px 60px -30px rgba(15,27,61,0.45),
    0 6px 0 var(--ink),
    inset 0 0 0 6px rgba(255,255,255,0.4);
  padding: 56px 56px 64px;
  position: relative;
  overflow: hidden;
}
.about-folder .folder-tab { left: 56px; }
.about-hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; gap: 36px; }
  .about-folder { padding: 48px 28px 48px; }
}
.about-photo {
  position: relative;
  aspect-ratio: 1/1;
  background: white;
  padding: 16px 16px 56px;
  border: 1px solid rgba(15,27,61,0.3);
  box-shadow: 16px 22px 40px -18px rgba(15,27,61,0.55);
  transform: rotate(-2deg);
  transition: transform 0.4s cubic-bezier(.25,1,.3,1);
}
.about-photo:hover { transform: rotate(0deg) translateY(-4px); }
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) contrast(1.02);
}
.about-photo .photo-caption {
  position: absolute;
  bottom: 14px; left: 18px; right: 18px;
  font-family: "Special Elite", monospace;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0.06em;
  display: flex; justify-content: space-between;
  align-items: baseline;
}
.about-photo .photo-caption span { color: rgba(15,27,61,0.55); font-size: 11px; }
.about-photo .pin {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 22px;
  background: radial-gradient(circle at 35% 35%, #f7c5be 0%, var(--stamp-red) 60%, #6e2418 100%);
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(15,27,61,0.4);
  z-index: 3;
}
.about-photo .corner-stamp {
  position: absolute;
  top: 10px; right: 10px;
  font-family: "Special Elite", monospace;
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--stamp-red);
  border: 1.5px solid var(--stamp-red);
  padding: 3px 6px;
  background: rgba(244,233,210,0.7);
  transform: rotate(6deg);
  z-index: 2;
}

.about-bio h1 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-top: 14px;
}
.about-bio h1 em {
  font-style: normal;
  color: var(--gold);
  text-shadow:
    2px 0 0 var(--ink), -2px 0 0 var(--ink),
    0 2px 0 var(--ink), 0 -2px 0 var(--ink);
}
.about-bio .role-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 20px;
}
.about-bio .role-row .pill {
  font-family: "Inter Tight", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ink); color: var(--parchment);
}
.about-bio .role-row .pill.gold { background: var(--gold); color: var(--ink); }
.about-bio .role-row .pill.red { background: var(--stamp-red); color: white; }
.about-bio .role-row .pill.blue { background: var(--flag-blue); color: white; }
.about-bio p {
  font-size: 19px;
  line-height: 1.6;
  margin-top: 22px;
  max-width: 54ch;
}

/* Two-up info strip below */
.about-meta-strip {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 800px) { .about-meta-strip { grid-template-columns: 1fr 1fr; } }
.meta-card {
  background: var(--parchment-2);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, background 0.2s;
  cursor: default;
}
.meta-card:hover { transform: translate(-2px,-2px); background: var(--gold); }
.meta-card .meta-label {
  font-family: "Special Elite", monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(15,27,61,0.55);
  text-transform: uppercase;
}
.meta-card .meta-value {
  font-family: "Archivo Black", sans-serif;
  font-size: 22px;
  margin-top: 6px;
  line-height: 1.05;
}
.meta-card .meta-sub {
  font-size: 13px;
  margin-top: 4px;
  color: rgba(15,27,61,0.72);
}

/* Story section */
.about-story {
  max-width: 760px;
  margin: 64px auto 0;
  padding: 0 8px;
}
.about-story h2 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 8px;
}
.about-story .lead {
  font-family: "Special Elite", monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--stamp-red);
  text-transform: uppercase;
}
.about-story p {
  font-size: 18px;
  line-height: 1.7;
  margin-top: 16px;
}
.about-story p:first-of-type::first-letter {
  font-family: "DM Serif Display", serif;
  font-size: 72px;
  float: left;
  line-height: 0.85;
  margin: 8px 12px 0 0;
  color: var(--ink);
}
.about-story .pullquote {
  margin: 32px 0;
  font-family: "DM Serif Display", serif;
  font-size: 28px;
  line-height: 1.25;
  font-style: italic;
  color: var(--ink);
  border-left: 4px solid var(--gold);
  padding: 12px 0 12px 20px;
  position: relative;
}
.about-story .pullquote::after {
  content: "";
  position: absolute;
  left: -4px; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  filter: blur(4px);
  opacity: 0.8;
}

.about-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 48px;
  font-family: "Special Elite", monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dashed var(--ink);
  padding-bottom: 2px;
}
.about-back:hover { color: var(--stamp-red); border-color: var(--stamp-red); }

/* ---------- Citizen Files (PDF viewer) ---------- */
.cf-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 28px 80px;
}
.cf-folder {
  background: linear-gradient(180deg, #f8eed7 0%, #ecdfba 100%);
  border: 2px solid var(--ink);
  border-radius: 6px 26px 6px 6px;
  box-shadow:
    0 30px 60px -30px rgba(15,27,61,0.45),
    0 6px 0 var(--ink),
    inset 0 0 0 6px rgba(255,255,255,0.4);
  padding: 56px 56px 64px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 800px) { .cf-folder { padding: 56px 20px 48px; } }
.cf-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap;
}
.cf-header h1 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 0.94;
  margin-top: 14px;
}
.cf-header h1 em {
  font-style: normal;
  color: var(--gold);
  text-shadow:
    2px 0 0 var(--ink), -2px 0 0 var(--ink),
    0 2px 0 var(--ink), 0 -2px 0 var(--ink);
}
.cf-lead {
  font-family: "Special Elite", monospace;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: rgba(15,27,61,0.7);
  margin-top: 18px;
  max-width: 60ch;
}
.cf-meta-bar {
  display: flex; flex-wrap: wrap; gap: 18px;
  font-family: "Special Elite", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15,27,61,0.7);
  margin: 24px 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(15,27,61,0.35);
}
.cf-meta-bar b { color: var(--ink); font-weight: 700; }

/* Booklet picker tabs */
.cf-picker {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 24px 0 32px;
}
.cf-tab {
  background: var(--parchment-2);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-family: "Special Elite", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 10px 16px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cf-tab:hover { background: var(--gold); transform: translate(-1px,-1px); }
.cf-tab.active {
  background: var(--ink);
  color: var(--parchment);
}
.cf-tab .tab-tag {
  font-size: 10px;
  background: var(--stamp-red);
  color: white;
  padding: 2px 6px;
  letter-spacing: 0.18em;
  border-radius: 2px;
}

/* PDF viewer */
.cf-viewer {
  position: relative;
  background: #1a2750;
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 600px;
}
.cf-viewer-inner {
  position: relative;
  background: white;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.5);
  border: 1px solid rgba(15,27,61,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
}
.cf-canvas {
  display: block;
  max-width: 100%;
  height: auto;
}
.cf-loading {
  font-family: "Special Elite", monospace;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--gold);
  padding: 80px 0;
  text-align: center;
}
.cf-loading .spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid var(--gold);
  border-top-color: transparent;
  border-radius: 50%;
  animation: cfspin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 10px;
}
@keyframes cfspin { to { transform: rotate(360deg); } }

.cf-page-stamp {
  position: absolute;
  top: 14px; left: 14px;
  font-family: "Special Elite", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--stamp-red);
  border: 1.5px solid var(--stamp-red);
  padding: 3px 8px;
  background: rgba(244,233,210,0.92);
  transform: rotate(-3deg);
  z-index: 3;
  pointer-events: none;
}

/* Controls */
.cf-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.cf-nav-btn {
  background: var(--gold);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-family: "Inter Tight", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cf-nav-btn:hover:not(:disabled) {
  transform: translate(-1px,-1px);
  box-shadow: 5px 5px 0 var(--ink), 0 0 18px rgba(224,168,46,0.45);
}
.cf-nav-btn:active:not(:disabled) { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.cf-nav-btn:disabled {
  background: var(--parchment-2);
  color: rgba(15,27,61,0.4);
  cursor: not-allowed;
  box-shadow: 2px 2px 0 rgba(15,27,61,0.3);
}

.cf-pagecount {
  font-family: "Special Elite", monospace;
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--parchment);
  background: var(--ink);
  border: 1px solid var(--gold);
  padding: 10px 18px;
  border-radius: 4px;
  min-width: 140px;
  text-align: center;
}
.cf-pagecount b { color: var(--gold); font-weight: 700; }

.cf-page-input {
  width: 50px;
  background: transparent;
  border: none;
  border-bottom: 1px dashed var(--gold);
  color: var(--gold);
  text-align: center;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.cf-actions {
  display: flex; gap: 10px; align-items: center;
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.cf-actions a {
  font-family: "Special Elite", monospace;
  font-size: 12px;
  color: rgba(244,233,210,0.7);
  letter-spacing: 0.12em;
  text-decoration: none;
  border: 1px solid rgba(244,233,210,0.3);
  padding: 6px 12px;
  border-radius: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.cf-actions a:hover { color: var(--gold); border-color: var(--gold); }

/* Empty state */
.cf-empty {
  text-align: center;
  padding: 80px 24px;
  font-family: "Special Elite", monospace;
  color: rgba(15,27,61,0.7);
}
.cf-empty h3 {
  font-family: "Archivo Black", sans-serif;
  font-size: 28px;
  color: var(--ink);
  margin-bottom: 12px;
}

/* Two-up grid of viewers */
.cf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 900px) {
  .cf-grid { grid-template-columns: 1fr; }
}
.cf-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cf-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cf-card-title {
  font-family: "Archivo Black", sans-serif;
  font-size: 20px;
  line-height: 1.1;
  color: var(--ink);
}
.cf-card-sub {
  font-family: "Special Elite", monospace;
  font-size: 12px;
  color: rgba(15,27,61,0.65);
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.cf-grid .cf-viewer { padding: 18px; min-height: 0; }
.cf-grid .cf-viewer .cf-controls { gap: 8px; }
.cf-grid .cf-viewer .cf-nav-btn { padding: 8px 14px; font-size: 12px; }
.cf-grid .cf-viewer .cf-pagecount { font-size: 12px; padding: 8px 12px; min-width: 110px; letter-spacing: 0.16em; }
.cf-grid .cf-viewer .cf-actions a { font-size: 10px; padding: 4px 8px; }

/* Soft entry animation for sections */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   RESPONSIVE / MOBILE
   Breakpoints: 1100px (tablet), 768px (tablet/phone), 480px (phone)
   ============================================================ */

/* ---- Hamburger button (hidden on desktop) ---- */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  cursor: pointer;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 60;
  transition: background 0.2s;
}
.nav-toggle:hover { background: rgba(15, 27, 61, 0.06); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav.open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.nav.open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.nav-locked { overflow: hidden; }

/* ---- 1100px: smaller paddings, tighter type ---- */
@media (max-width: 1100px) {
  .section { padding: 72px 24px; }
  .nav-inner { padding: 12px 20px; }
  .folder { padding: 48px 36px 56px; }
  .lpwa { padding: 44px 32px; }
  .substack { padding: 44px 32px; }
  .guestbook { padding: 36px 28px; }
  .contact-card { padding: 36px 28px; }
}

/* ---- 820px / 768px: switch to mobile layout ---- */
@media (max-width: 820px) {
  /* Nav: turn into hamburger dropdown */
  .nav-inner {
    padding: 10px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .nav-mark { font-size: 16px; gap: 8px; }
  .nav-mark .nav-classified { display: none; }
  .nav-toggle { display: inline-flex; order: 3; }
  .gov-eff { display: none; }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--parchment);
    border-top: 1px solid var(--paper-line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px 80px;
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    margin-left: 0;
    z-index: 55;
  }
  .nav.open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 18px 14px;
    font-size: 18px;
    border-radius: 4px;
    border-bottom: 1px dashed rgba(15, 27, 61, 0.15);
    font-family: "Special Elite", monospace;
    letter-spacing: 0.08em;
    min-height: 44px;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a:hover { background: var(--gold); color: var(--ink); }

  /* Hide decorative chrome that's noisy on small screens */
  body::before, body::after { opacity: 0.4; }
  .hero-shine,
  .red-tape,
  .sparkle,
  [data-sparkles] { display: none !important; }

  /* Section padding + type scale */
  .section { padding: 56px 16px; }
  main, footer { position: relative; z-index: 1; }
  h1, h2, h3 { letter-spacing: 0; }

  /* ---------- HERO ---------- */
  .hero { padding-top: 32px; padding-bottom: 48px; }
  .folder {
    padding: 56px 22px 40px;
    border-radius: 4px 22px 4px 4px;
    box-shadow: 0 16px 30px -20px rgba(15, 27, 61, 0.45), 0 4px 0 var(--ink);
  }
  .folder-tab {
    left: 22px;
    font-size: 11px;
    padding: 7px 14px 9px;
  }
  .folder-tab small { font-size: 8px; letter-spacing: 0.32em; }
  .file-meta {
    gap: 8px 14px;
    font-size: 10px;
    letter-spacing: 0.14em;
    margin-bottom: 22px;
  }
  .hero h1 { line-height: 0.92; }
  .hero h1 .citizen-tag {
    font-size: 11px;
    letter-spacing: 0.42em;
    margin-bottom: 8px;
  }
  .hero h1 .james,
  .hero h1 .holcomb {
    font-size: clamp(54px, 16vw, 96px);
  }
  .tagline { gap: 8px; margin-top: 22px; }
  .tagline .pill { font-size: 13px; padding: 5px 12px; }
  .subtagline { font-size: 14px; }

  .no-permission-stamp {
    /* take it out of the absolute corner — drop inline at the bottom */
    position: static;
    transform: none;
    animation: none;
    display: inline-block;
    margin: 22px 0 4px;
    font-size: 14px;
    padding: 10px 14px;
  }
  .no-permission-stamp small { font-size: 8px; letter-spacing: 0.28em; }

  .hero-actions { gap: 10px; margin-top: 28px; }
  .btn {
    padding: 14px 18px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
    min-height: 48px;
    box-shadow: 3px 3px 0 var(--ink);
  }
  .btn:hover { transform: none; box-shadow: 4px 4px 0 var(--ink); }
  /* Hover tooltips can stick on touch — hide */
  .btn[data-tip]::after { display: none; }

  /* ---------- BOOK ---------- */
  .book-grid { grid-template-columns: 1fr; gap: 36px; }
  .book-mockup { max-width: 320px; margin: 0 auto; }
  .book-cover { transform: rotateY(0); }
  .book-cover:hover { transform: rotateY(0) translateY(-3px); }
  .book-page { display: none; }
  .book-copy h2 { font-size: clamp(34px, 8vw, 48px); }
  .book-copy p { font-size: 16px; }
  .review { font-size: 13px; }

  /* ---------- LPWA ---------- */
  .lpwa { padding: 36px 22px; }
  .lpwa::before, .lpwa::after { opacity: 0.5; }
  .lpwa-inner { grid-template-columns: 1fr; gap: 22px; text-align: left; }
  .lpwa h2 { font-size: clamp(30px, 7vw, 44px); }
  .lpwa .lpwa-cta { text-align: left; }
  .lpwa .btn { font-size: 15px !important; padding: 16px 22px !important; }

  /* ---------- SUBSTACK ---------- */
  .substack { padding: 36px 22px; }
  .substack h2 { font-size: clamp(28px, 7vw, 42px); }
  .substack p { font-size: 16px; }

  /* ---------- GUEST BOOK ---------- */
  .guestbook {
    padding: 32px 20px;
    border-left-width: 8px;
  }
  .gb-grid { grid-template-columns: 1fr; gap: 28px; }
  .gb-form input, .gb-form textarea {
    font-size: 16px; /* prevents iOS zoom */
    padding: 10px 0 8px;
  }
  .gb-form button { width: 100%; }
  .entries { max-height: 360px; }

  /* ---------- CONTACT ---------- */
  .contact-card { grid-template-columns: 1fr; padding: 32px 22px; gap: 24px; }
  .contact-card h2 { font-size: clamp(28px, 7vw, 40px); }
  .contact-row { padding: 14px 14px; flex-wrap: wrap; min-height: 60px; }
  .contact-row .lbl { width: 60px; font-size: 10px; }
  .contact-row .val { font-size: 14px; flex: 1; min-width: 0; word-break: break-word; }

  /* ---------- DIVIDER ---------- */
  .divider {
    padding: 0 16px;
    font-size: 10px;
    letter-spacing: 0.24em;
  }

  /* ---------- FOOTER ---------- */
  .footer { padding: 44px 16px 24px; margin-top: 60px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer .brand { font-size: 24px; }
  .footer h5 { font-size: 11px; }
  .footer a { font-size: 14px; padding: 6px 0; }
  .tinyjoke { font-size: 10px; letter-spacing: 0.14em; }

  /* ---------- TOAST ---------- */
  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }

  /* ---------- ABOUT PAGE ---------- */
  .about-page { padding: 32px 16px 60px; }
  .about-folder { padding: 56px 22px 40px; border-radius: 4px 22px 4px 4px; }
  .about-hero { grid-template-columns: 1fr; gap: 28px; text-align: left; }
  .about-photo {
    max-width: 280px;
    margin: 0 auto;
    transform: rotate(-1.5deg);
  }
  .about-bio h1 { font-size: clamp(40px, 11vw, 64px); }
  .about-bio p { font-size: 16px; }
  .about-meta-strip { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 32px; }
  .meta-card { padding: 14px 12px; }
  .meta-card .meta-value { font-size: 18px; }
  .meta-card .meta-sub { font-size: 12px; }
  .about-story { margin-top: 44px; padding: 0; }
  .about-story h2 { font-size: clamp(26px, 7vw, 40px); }
  .about-story p { font-size: 16px; }
  .about-story p:first-of-type::first-letter {
    font-size: 56px;
    margin: 6px 8px 0 0;
  }
  .about-story .pullquote { font-size: 21px; margin: 24px 0; }

  /* ---------- CITIZEN FILES ---------- */
  .cf-page { padding: 32px 16px 60px; }
  .cf-folder { padding: 56px 18px 36px; border-radius: 4px 22px 4px 4px; }
  .cf-header h1 { font-size: clamp(36px, 9vw, 56px); }
  .cf-lead { font-size: 13px; }
  .cf-meta-bar {
    gap: 8px 14px;
    font-size: 10px;
    letter-spacing: 0.14em;
  }
  .cf-grid { grid-template-columns: 1fr; gap: 36px; }
  .cf-card-head { gap: 10px; }
  .cf-card-title { font-size: 18px; }
  .cf-card-sub { font-size: 11px; }
  .cf-viewer { padding: 14px; min-height: 0; }
  .cf-viewer-inner { width: 100%; }
  .cf-canvas { max-width: 100%; height: auto !important; }
  .cf-controls { gap: 8px; flex-wrap: nowrap; }
  .cf-nav-btn { padding: 10px 14px; font-size: 13px; min-height: 44px; flex: 1; }
  .cf-pagecount { font-size: 12px; padding: 8px 10px; min-width: 110px; }
  .cf-actions { font-size: 11px; }
  .cf-actions a { padding: 6px 10px; min-height: 36px; }
}

/* ---- 480px: ultra-narrow phones ---- */
@media (max-width: 480px) {
  .section { padding: 44px 14px; }

  .nav-mark { font-size: 14px; }
  .nav-mark .torch { width: 18px; height: 18px; }

  .folder { padding: 48px 16px 32px; }
  .folder-tab { left: 16px; }
  .file-meta { font-size: 9px; gap: 6px 10px; }
  .hero h1 .james,
  .hero h1 .holcomb {
    font-size: clamp(46px, 14vw, 72px);
  }
  .tagline .pill { font-size: 12px; padding: 4px 10px; }

  .about-folder { padding: 48px 16px 32px; }
  .about-bio h1 { font-size: clamp(34px, 11vw, 52px); }
  .about-meta-strip { grid-template-columns: 1fr; }

  .cf-folder { padding: 48px 14px 28px; }
  .cf-controls { flex-wrap: wrap; }
  .cf-pagecount { width: 100%; order: -1; }

  /* Make the achievement card less cramped */
  .achievement-card { padding: 32px 20px; }
  .achievement-card h2 { font-size: clamp(28px, 8vw, 42px); }
  .achievement-card p { font-size: 15px; }
  .ach-row { gap: 10px; }
  .ach-meta { padding: 6px 10px; }
}

/* ---- Touch + reduced motion safety ---- */
@media (hover: none) {
  .nav-links a:hover { background: transparent; color: var(--ink); }
  .btn:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  body::before, body::after { opacity: 0.3; }
}
