/* DeFlock Galveston County · design system */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #000000;
  --fg: #f4f3ef;
  --fg-2: rgba(244, 243, 239, 0.66);
  --fg-3: rgba(244, 243, 239, 0.56);
  --fg-4: rgba(244, 243, 239, 0.38);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --shell: rgba(255, 255, 255, 0.028);
  --core: #0a0a0a;
  --core-2: #101010;
  --rec: #ff3b2f;
  --rec-soft: rgba(255, 59, 47, 0.14);
  --ok: #4ade80;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --r-xl: 2rem;
  --r-lg: 1.375rem;
  --r-md: 0.875rem;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(96px, 13vw, 176px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--rec); color: #000; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }

.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: 16px; top: -60px; z-index: 200;
  background: var(--fg); color: #000; padding: 10px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 16px; }

/* Film grain, fixed and non-interactive */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(72px, 9vw, 120px); }
.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-2);
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line);
}
.eyebrow .dot, .rec-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--rec);
  box-shadow: 0 0 0 0 rgba(255, 59, 47, 0.6); animation: rec 2s var(--ease) infinite;
}
@keyframes rec {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 47, 0.55); opacity: 1; }
  60% { box-shadow: 0 0 0 7px rgba(255, 59, 47, 0); opacity: 0.85; }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 47, 0); opacity: 1; }
}
.display {
  font-size: clamp(3rem, 8.4vw, 7.6rem); line-height: 0.92; letter-spacing: -0.05em;
  font-weight: 620; margin: 0; text-wrap: balance;
}
.title {
  font-size: clamp(2.4rem, 5.6vw, 4.9rem); line-height: 0.98; letter-spacing: -0.045em;
  font-weight: 600; margin: 0; text-wrap: balance;
}
.title--md { font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -0.04em; line-height: 1.02; }
.serif {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.02em; font-size: 1.06em;
}
.muted { color: var(--fg-2); }
.faint { color: var(--fg-3); }
.lede { font-size: clamp(1.08rem, 1.55vw, 1.32rem); line-height: 1.55; color: var(--fg-2); max-width: 36ch; text-wrap: pretty; }
.mono { font-family: var(--mono); }
.label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fg-3);
}
p { margin: 0 0 1em; text-wrap: pretty; }
.prose p { color: var(--fg-2); max-width: 62ch; }
.prose strong { color: var(--fg); font-weight: 560; }
.link-u {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 0.5s var(--ease), color 0.3s var(--ease);
}
.link-u:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Buttons: pill with nested icon ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; gap: 14px;
  height: var(--h); padding: 0 7px 0 24px; border-radius: 999px; border: 0;
  font-size: 15px; font-weight: 560; letter-spacing: -0.01em; cursor: pointer;
  transition: transform 0.5s var(--ease), background-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn .ico {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  transition: transform 0.5s var(--ease);
}
.btn .ico svg { width: 16px; height: 16px; }
.btn:hover .ico { transform: translate(2px, -1px) scale(1.06); }
.btn--primary { background: var(--fg); color: #000; }
.btn--primary .ico { background: #000; color: var(--fg); }
.btn--primary:hover { background: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08); }
.btn--ghost { background: rgba(255, 255, 255, 0.05); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost .ico { background: rgba(255, 255, 255, 0.08); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); }
.btn--rec { background: var(--rec); color: #000; }
.btn--rec .ico { background: #000; color: var(--rec); }
.btn--rec:hover { box-shadow: 0 0 0 6px var(--rec-soft); }
.btn--sm { --h: 44px; font-size: 14px; padding-left: 18px; gap: 10px; padding-right: 5px; }
.btn--sm .ico { width: 34px; height: 34px; }
.btn--block { width: 100%; justify-content: space-between; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Double bezel ---------- */
.bezel {
  background: var(--shell); border-radius: var(--r-xl); padding: 7px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.core {
  background: var(--core); border-radius: calc(var(--r-xl) - 7px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  overflow: hidden; position: relative; height: 100%;
}

/* ---------- Navigation island ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 80;
  width: min(calc(100% - 24px), 1080px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px 7px 7px 16px; border-radius: 999px;
  background: rgba(10, 10, 10, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  transition: background-color 0.5s var(--ease), transform 0.6s var(--ease);
}
.nav.is-scrolled { background: rgba(8, 8, 8, 0.82); }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand svg.mark { width: 30px; height: 30px; color: var(--fg); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 640; font-size: 17px; letter-spacing: -0.035em; }
.brand-sub { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.22em; color: var(--fg-3); margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 10px 14px; border-radius: 999px; font-size: 14px; color: var(--fg-2);
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav-links a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.05); }
.nav-links a[aria-current="page"] { color: var(--fg); background: rgba(255, 255, 255, 0.08); }
.nav-cta { flex: none; }
.burger {
  display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; position: relative;
  background: rgba(255, 255, 255, 0.07); flex: none;
}
.burger span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--fg); border-radius: 2px;
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 70; padding: 110px var(--gutter) 40px;
  background: rgba(0, 0, 0, 0.86);
  -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px; overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
}
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease); }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { overflow: hidden; border-bottom: 1px solid var(--line); }
.menu li a {
  display: flex; justify-content: space-between; align-items: baseline; padding: 18px 2px;
  font-size: clamp(2rem, 9vw, 3rem); font-weight: 600; letter-spacing: -0.045em;
  transform: translateY(110%); opacity: 0; transition: transform 0.7s var(--ease), opacity 0.7s var(--ease);
}
.menu li a small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--fg-3); font-weight: 400; }
.menu-open .menu li a { transform: none; opacity: 1; }
.menu-open .menu li:nth-child(1) a { transition-delay: 0.08s; }
.menu-open .menu li:nth-child(2) a { transition-delay: 0.13s; }
.menu-open .menu li:nth-child(3) a { transition-delay: 0.18s; }
.menu-open .menu li:nth-child(4) a { transition-delay: 0.23s; }
.menu-open .menu li:nth-child(5) a { transition-delay: 0.28s; }
.menu-open .menu li:nth-child(6) a { transition-delay: 0.33s; }
.menu-foot { display: flex; flex-direction: column; gap: 18px; opacity: 0; transform: translateY(16px); transition: all 0.7s var(--ease) 0.3s; }
.menu-open .menu-foot { opacity: 1; transform: none; }
.menu-open { overflow: hidden; }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 50%; animation: settle 2.4s var(--ease-out) both; }
@keyframes settle { from { transform: scale(1.06); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 34%, rgba(0,0,0,0) 62%),
    linear-gradient(0deg, #000 0%, rgba(0,0,0,0.6) 18%, rgba(0,0,0,0) 46%),
    linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 22%);
}
.hero-inner { width: 100%; padding-top: 140px; padding-bottom: clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 40px; align-items: end; }
.hero h1 { margin-top: 26px; }
.hero .lede { margin-top: 28px; }
.hero .btn-row { margin-top: 36px; }
.fov { mix-blend-mode: screen; }
.fov .beam { animation: beam 5.5s var(--ease) infinite; transform-origin: 1110px 318px; }
@keyframes beam { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.95; } }
.fov .bracket { animation: track 5.5s var(--ease) infinite; }
@keyframes track {
  0% { transform: translate(-90px, 18px); opacity: 0; }
  12% { opacity: 1; }
  70% { transform: translate(60px, -6px); opacity: 1; }
  85%, 100% { transform: translate(90px, -10px); opacity: 0; }
}

/* HUD readout */
.hud {
  font-family: var(--mono); font-size: 12px; line-height: 1.35; color: var(--fg-2);
  background: rgba(0, 0, 0, 0.58);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line-2); padding: 16px 18px 14px;
  max-width: 380px; justify-self: end; width: 100%;
}
.hud-top { display: flex; align-items: center; gap: 9px; color: var(--fg); font-size: 11px; letter-spacing: 0.14em; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.hud-top .sim { margin-left: auto; color: var(--fg-3); }
.hud dl { margin: 10px 0 0; display: grid; grid-template-columns: 86px 1fr; row-gap: 7px; }
.hud dt { color: var(--fg-3); letter-spacing: 0.1em; font-size: 10.5px; padding-top: 2px; }
.hud dd { margin: 0; color: var(--fg); min-height: 1.35em; }
.hud .no { color: var(--fg); }
.hud .stored { color: var(--rec); }
.plate {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  background: #f1f1ec; color: #0b0b0b; border-radius: 4px; padding: 1px 8px 2px; line-height: 1;
  font-weight: 640; letter-spacing: 0.08em; font-size: 14px; box-shadow: inset 0 0 0 1.5px #0b0b0b33;
}
.plate small { font-size: 6.5px; letter-spacing: 0.32em; font-weight: 600; margin-bottom: 1px; color: #333; }
.hud-foot { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; color: var(--fg-3); font-size: 10.5px; letter-spacing: 0.06em; }
.hud-foot b { color: var(--fg); font-weight: 500; font-size: 12px; }
.scramble { transition: opacity 0.25s var(--ease); }

.scroll-cue { display: inline-flex; align-items: center; gap: 10px; margin-top: 46px; color: var(--fg-3); font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--fg-3), transparent); display: block; animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding-top: clamp(150px, 18vw, 220px); padding-bottom: clamp(56px, 7vw, 96px); overflow: hidden; isolation: isolate; }
.page-hero--img { min-height: 78dvh; display: flex; align-items: flex-end; }
.page-hero--img .hero-shade {
  background:
    linear-gradient(0deg, #000 0%, rgba(0,0,0,0.75) 30%, rgba(0,0,0,0.25) 65%, rgba(0,0,0,0.55) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 70%);
}
.page-hero .display { margin-top: 24px; }
.page-hero .lede { margin-top: 26px; max-width: 46ch; }
.crumbs { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); }

/* ---------- League City stats band ---------- */
.news-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 40px; }
.news-head .title { max-width: 14ch; }
.news-head .prose { max-width: 44ch; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.stat { padding: 30px 26px 8px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 26px; }
.stat:last-child { border-right: 0; }
.stat .num { font-size: clamp(2.8rem, 5.6vw, 4.6rem); font-weight: 560; letter-spacing: -0.055em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .num .unit { font-size: 0.45em; letter-spacing: -0.02em; color: var(--fg-3); margin-left: 4px; }
.stat p { margin-top: 14px; color: var(--fg-2); font-size: 15px; line-height: 1.5; max-width: 26ch; }
.source-note { margin-top: 30px; font-family: var(--mono); font-size: 11.5px; color: var(--fg-3); letter-spacing: 0.02em; line-height: 1.7; }
.source-note a { color: var(--fg-2); }
.source-note a:hover { color: var(--fg); }

/* ---------- How it works ---------- */
.steps-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(48px, 6vw, 80px); }
.step .core { display: flex; flex-direction: column; }
.step-media { aspect-ratio: 4 / 5; overflow: hidden; position: relative; }
.step-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); filter: saturate(0.9); }
.step:hover .step-media img { transform: scale(1.04); }
.step-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--core) 0%, rgba(10,10,10,0) 45%); }
.step-tag {
  position: absolute; top: 16px; left: 16px; z-index: 1; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  padding: 6px 11px; border-radius: 999px; background: rgba(0,0,0,0.6); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.step-body { padding: 4px 26px 30px; margin-top: -40px; position: relative; z-index: 1; }
.step-body h3 { font-size: 1.75rem; letter-spacing: -0.04em; font-weight: 600; margin: 0 0 12px; line-height: 1.05; }
.step-body p { color: var(--fg-2); font-size: 15.5px; margin: 0; }
.step-body .fact { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--fg-3); letter-spacing: 0.02em; line-height: 1.6; }
.step-body .fact b { color: var(--fg); font-weight: 500; }

/* ---------- Your week, reconstructed ---------- */
.week { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.week-copy { position: sticky; top: 120px; }
.week-copy .title { margin-top: 22px; }
.week-copy .lede { margin-top: 24px; }
.week-panel .core { padding: 10px; }
.week-map { border-radius: 18px; overflow: hidden; background: #050505; box-shadow: inset 0 0 0 1px var(--line); aspect-ratio: 16 / 10; position: relative; }
.week-map svg { width: 100%; height: 100%; }
.week-map .road { stroke: rgba(255,255,255,0.09); stroke-width: 1.2; fill: none; }
.week-map .road--major { stroke: rgba(255,255,255,0.17); stroke-width: 2.4; }
.week-map .water { fill: rgba(255,255,255,0.025); }
.week-map .trail { stroke: var(--rec); stroke-width: 1.6; fill: none; stroke-dasharray: 4 5; opacity: 0.85; }
.week-map .pin circle.halo { fill: var(--rec); opacity: 0; transition: opacity 0.4s var(--ease), r 0.4s var(--ease); }
.week-map .pin circle.dot { fill: #2a2a2a; stroke: rgba(255,255,255,0.35); stroke-width: 1.2; transition: fill 0.4s var(--ease), stroke 0.4s var(--ease); }
.week-map .pin.is-on circle.dot { fill: var(--rec); stroke: #fff; }
.week-map .pin.is-on circle.halo { opacity: 0.22; }
.week-map .pin text { font-family: var(--mono); font-size: 10px; fill: var(--fg-3); letter-spacing: 0.08em; }
.week-map .pin.is-on text { fill: var(--fg); }
.week-map .map-tag { position: absolute; left: 14px; top: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--fg-3); display: flex; gap: 8px; align-items: center; }
.log { list-style: none; margin: 10px 0 0; padding: 0; }
.log li {
  display: grid; grid-template-columns: 92px 62px 1fr; gap: 12px; align-items: baseline;
  padding: 15px 14px; border-radius: 14px; font-family: var(--mono); font-size: 12.5px; color: var(--fg-3);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease); cursor: default;
}
.log li + li { box-shadow: inset 0 1px 0 var(--line); }
.log li .what { font-family: var(--sans); font-size: 15px; color: var(--fg-2); letter-spacing: -0.01em; }
.log li.is-on { background: rgba(255,255,255,0.04); color: var(--fg-2); }
.log li.is-on .what { color: var(--fg); }
.log li.is-on .when::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--rec); margin-right: 8px; vertical-align: 1px; }
.week-total { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 14px 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--fg-3); text-transform: uppercase; }
.week-total b { color: var(--rec); font-weight: 500; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; margin-top: clamp(48px, 6vw, 80px); }
.bento > * { grid-column: span 6; }
.bento .b-7 { grid-column: span 7; }
.bento .b-5 { grid-column: span 5; }
.bento .core { padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; justify-content: space-between; gap: 34px; min-height: 290px; }
.bento h3 { font-size: clamp(1.5rem, 2.3vw, 2.05rem); letter-spacing: -0.04em; line-height: 1.06; margin: 0 0 14px; font-weight: 600; max-width: 18ch; }
.bento p { color: var(--fg-2); font-size: 15.5px; margin: 0; max-width: 46ch; }
.bento .big { font-size: clamp(4.2rem, 10vw, 8.6rem); line-height: 0.85; font-weight: 540; letter-spacing: -0.065em; font-variant-numeric: tabular-nums; }
.bento .big-cap { font-size: clamp(1.2rem, 1.8vw, 1.5rem); letter-spacing: -0.03em; line-height: 1.3; color: var(--fg); max-width: 30ch; margin-top: 18px; }
.b-feature .core { background: radial-gradient(120% 90% at 100% 0%, rgba(255, 59, 47, 0.13) 0%, rgba(255,59,47,0) 55%), var(--core); }
.b-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 1px var(--line); color: var(--fg); }
.b-icon svg { width: 22px; height: 22px; }
.cite { font-family: var(--mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.02em; line-height: 1.6; }
.cite a { color: var(--fg-2); }
.cite a:hover { color: var(--fg); }

/* ---------- Local list ---------- */
.local { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.local-media .core { aspect-ratio: 4 / 5; }
.local-media img { width: 100%; height: 100%; object-fit: cover; }
.places { list-style: none; margin: 34px 0 0; padding: 0; border-top: 1px solid var(--line); }
.places li { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.places .name { font-size: 1.35rem; letter-spacing: -0.03em; font-weight: 560; }
.places .status { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; align-self: center; padding: 6px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg-2); white-space: nowrap; }
.places .status--off { color: var(--ok); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.35); }
.places .status--on { color: var(--rec); box-shadow: inset 0 0 0 1px rgba(255, 59, 47, 0.4); }
.places .note { grid-column: 1 / -1; color: var(--fg-2); font-size: 15px; margin: 0; max-width: 54ch; }

/* ---------- CTA band ---------- */
.cta-band .core {
  padding: clamp(36px, 6vw, 88px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: end;
  background:
    radial-gradient(90% 120% at 0% 100%, rgba(255, 59, 47, 0.16) 0%, rgba(255, 59, 47, 0) 60%),
    var(--core);
}
.cta-band .title { margin-top: 22px; }
.demands { list-style: none; margin: 0; padding: 0; counter-reset: d; }
.demands li { counter-increment: d; display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 13px 0; border-top: 1px solid var(--line); color: var(--fg-2); font-size: 15.5px; line-height: 1.5; }
.demands li::before { content: counter(d, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--rec); padding-top: 4px; letter-spacing: 0.08em; }
.demands li strong { color: var(--fg); font-weight: 560; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-media .core { aspect-ratio: 3 / 2; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { font-size: 14px; color: var(--fg-2); padding: 9px 15px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(255,255,255,0.02); }

/* ---------- Actions list (Get Physical) ---------- */
.actions { list-style: none; margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.action { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); gap: 24px 40px; padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.action .n { font-family: var(--mono); font-size: 12px; color: var(--rec); letter-spacing: 0.14em; padding-top: 10px; }
.action h3 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); letter-spacing: -0.045em; line-height: 1; margin: 0; font-weight: 600; }
.action p { color: var(--fg-2); margin: 0; font-size: 16px; }
.action .how { margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--fg-3); line-height: 1.7; }
.action .how a { color: var(--fg); }
.rule-card .core { padding: clamp(26px, 3.5vw, 44px); display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; }
.rule-card .core { background: linear-gradient(135deg, rgba(255, 59, 47, 0.1), rgba(255,59,47,0) 60%), var(--core); }
.rule-card h3 { margin: 0 0 8px; font-size: 1.5rem; letter-spacing: -0.035em; }
.rule-card p { margin: 0; color: var(--fg-2); max-width: 64ch; }

/* ---------- Forms ---------- */
.form-wrap .core { padding: clamp(22px, 3.4vw, 44px); }
.form-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.form-head h2, .form-head h3 { margin: 0; font-size: 1.45rem; letter-spacing: -0.035em; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field > label:not(.check), .field .legend { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); }
.field > label .opt { color: var(--fg-4); letter-spacing: 0.1em; }
.input {
  width: 100%; height: 52px; padding: 0 16px; border-radius: var(--r-md); border: 0; outline: none;
  background: var(--core-2); color: var(--fg); font-size: 16px; letter-spacing: -0.005em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  transition: box-shadow 0.35s var(--ease), background-color 0.35s var(--ease);
  -webkit-appearance: none; appearance: none;
}
textarea.input { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: var(--fg-4); }
.input:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.42); }
.input:focus { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6), 0 0 0 4px rgba(255,255,255,0.06); background: #121212; }
select.input {
  padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23f4f3ef' stroke-opacity='.6' stroke-width='1.4'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 17px center;
}
select.input option { background: #111; color: var(--fg); }
.field.has-error .input { box-shadow: inset 0 0 0 1px rgba(255, 59, 47, 0.85); }
.field.has-error .input:focus { box-shadow: inset 0 0 0 1px var(--rec), 0 0 0 4px rgba(255, 59, 47, 0.28); }
.err { font-size: 12.5px; color: var(--rec); min-height: 0; display: none; }
.field.has-error .err { display: block; }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: 15px; color: var(--fg-2); line-height: 1.45; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box {
  width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34); background: var(--core-2);
  display: grid; place-items: center; transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease); margin-top: 1px;
}
.check .box svg { width: 13px; height: 13px; opacity: 0; transform: scale(0.6); transition: all 0.35s var(--ease); color: #000; }
.check input:checked + .box { background: var(--fg); box-shadow: none; }
.check input:checked + .box svg { opacity: 1; transform: none; }
.check input:focus-visible + .box { outline: 2px solid var(--fg); outline-offset: 2px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-opt { position: relative; }
.pill-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill-opt span {
  display: inline-block; padding: 10px 15px; border-radius: 999px; font-size: 14px; color: var(--fg-2);
  box-shadow: inset 0 0 0 1px var(--line-2); background: var(--core-2); transition: all 0.3s var(--ease); user-select: none;
}
.pill-opt input:hover + span { color: var(--fg); }
.pill-opt input:checked + span { background: var(--fg); color: #000; box-shadow: none; }
.pill-opt input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }
.form-foot { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.fine { font-size: 13px; color: var(--fg-3); line-height: 1.55; margin: 0; }
.fine a { color: var(--fg-2); }
.hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.form-status { font-size: 14px; color: var(--rec); display: none; }
.form-status.is-shown { display: block; }

.success { display: none; text-align: left; padding: 8px 0; }
.is-sent .success { display: block; animation: rise 0.9s var(--ease-out) both; }
.is-sent form { display: none; }
.success .tick { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: #000; margin-bottom: 26px; }
.success .tick svg { width: 24px; height: 24px; }
.success h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.045em; line-height: 1.02; margin: 0 0 14px; }
.success p { color: var(--fg-2); }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.share a, .share button {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 14px; color: var(--fg); background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color 0.3s var(--ease);
}
.share a:hover, .share button:hover { background: rgba(255,255,255,0.11); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Petition page ---------- */
.petition-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.letter { position: relative; }
.letter .to { font-family: var(--mono); font-size: 12px; color: var(--fg-3); letter-spacing: 0.04em; line-height: 1.8; margin-bottom: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.letter .to b { color: var(--fg-2); font-weight: 500; }
.letter p { font-size: 18px; line-height: 1.65; color: var(--fg-2); max-width: 58ch; }
.letter p.big { font-size: clamp(1.4rem, 2.2vw, 1.75rem); color: var(--fg); letter-spacing: -0.025em; line-height: 1.35; }
.letter .demands { margin: 26px 0 30px; }
.letter .demands li { font-size: 16.5px; }
.sticky-form { position: sticky; top: 104px; }
.petition-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- About ---------- */
.manifesto { font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: 1.12; letter-spacing: -0.045em; font-weight: 520; max-width: 22ch; margin: 0; text-wrap: balance; }
.manifesto .dim { color: var(--fg-3); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(48px, 6vw, 80px); }
.principles .core { padding: clamp(26px, 3vw, 38px); min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.principles .k { font-family: var(--mono); font-size: 11px; color: var(--rec); letter-spacing: 0.16em; }
.principles h3 { margin: 0 0 10px; font-size: 1.6rem; letter-spacing: -0.04em; line-height: 1.05; }
.principles p { margin: 0; color: var(--fg-2); font-size: 15.5px; }
.network .core { padding: clamp(28px, 4vw, 52px); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.ext-links { list-style: none; margin: 0; padding: 0; }
.ext-links li + li { border-top: 1px solid var(--line); }
.ext-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; transition: padding 0.4s var(--ease); }
.ext-links a:hover { padding-left: 12px; }
.ext-links .t { font-size: 1.15rem; letter-spacing: -0.02em; font-weight: 560; }
.ext-links .d { display: block; color: var(--fg-3); font-size: 14px; font-weight: 400; margin-top: 2px; letter-spacing: 0; }
.ext-links svg { width: 18px; height: 18px; flex: none; color: var(--fg-3); }

.faq { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-size: clamp(1.15rem, 1.8vw, 1.45rem); letter-spacing: -0.03em; font-weight: 540;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 36px; height: 36px; border-radius: 50%; flex: none; position: relative; box-shadow: inset 0 0 0 1px var(--line-2); transition: transform 0.5s var(--ease), background-color 0.3s var(--ease); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--fg); transform: translate(-50%, -50%); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.5s var(--ease); }
.faq details[open] summary .pm { background: rgba(255,255,255,0.06); }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .ans { padding: 0 0 28px; color: var(--fg-2); max-width: 70ch; }
.faq .ans p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-side .ext-links { margin-top: 34px; border-top: 1px solid var(--line); }

/* ---------- Sources ---------- */
.sources { list-style: none; margin: 22px 0 0; padding: 0; columns: 2; column-gap: 40px; }
.sources li { break-inside: avoid; padding: 9px 0; font-size: 13.5px; color: var(--fg-3); line-height: 1.5; border-top: 1px solid var(--line); }
.sources a { color: var(--fg-2); }
.sources a:hover { color: var(--fg); }

/* ---------- Footer ---------- */
.footer { padding: clamp(72px, 9vw, 120px) 0 36px; border-top: 1px solid var(--line); margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer .big-mark { font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -0.055em; font-weight: 600; line-height: 0.95; margin: 22px 0 0; max-width: 12ch; }
.footer h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3); font-weight: 400; margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li a { display: inline-block; padding: 6px 0; color: var(--fg-2); font-size: 15px; transition: color 0.3s var(--ease); }
.footer li a:hover { color: var(--fg); }
.footer-bottom { margin-top: clamp(56px, 7vw, 96px); padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; font-family: var(--mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.06em; }
.footer-bottom .clean { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom .clean i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); display: inline-block; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(44px); filter: blur(8px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }
.js .reveal[data-d="1"] { transition-delay: 0.08s; }
.js .reveal[data-d="2"] { transition-delay: 0.16s; }
.js .reveal[data-d="3"] { transition-delay: 0.24s; }
.js .reveal[data-d="4"] { transition-delay: 0.32s; }
.load-in { animation: rise 1.2s var(--ease-out) both; }
.load-in[data-d="1"] { animation-delay: 0.12s; }
.load-in[data-d="2"] { animation-delay: 0.24s; }
.load-in[data-d="3"] { animation-delay: 0.36s; }
.load-in[data-d="4"] { animation-delay: 0.6s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav { width: calc(100% - 24px); }
  .hero-grid { grid-template-columns: 1fr; }
  .hud { justify-self: start; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .step-media { aspect-ratio: 16 / 11; }
  .steps-head, .week, .local, .split, .petition-layout, .contact-layout, .network .core, .cta-band .core { grid-template-columns: 1fr; }
  .week-copy, .sticky-form { position: static; }
  .bento > *, .bento .b-7, .bento .b-5 { grid-column: 1 / -1; }
  .principles { grid-template-columns: 1fr; }
  .action { grid-template-columns: 1fr; gap: 14px; }
  .action .n { padding-top: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .sources { columns: 1; }
  .local-media .core { aspect-ratio: 16 / 11; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .nav-cta { display: none; }
  .hero { min-height: auto; display: block; padding-top: 0; }
  .hero .hero-media { position: relative; height: 68svh; min-height: 420px; }
  .hero .hero-media img { object-position: 82% 40%; }
  .hero .hero-media svg.fov { display: none; }
  .hero .hero-shade { background: linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 32%), linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 30%); height: 68svh; min-height: 420px; }
  .page-hero--img .hero-media img { object-position: 60% 50%; }
  .form-head .label { display: none; }
  .hero-inner { padding-top: 0; margin-top: -120px; position: relative; }
  .hud { max-width: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 14px 6px 0; }
  .stat + .stat { padding-left: 14px; }
  .stat:nth-child(3) { padding-left: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .log li { grid-template-columns: 76px 1fr; }
  .log li .cam { display: none; }
  .btn-row .btn { flex: 1 1 auto; justify-content: space-between; }
  .footer-top { grid-template-columns: 1fr; }
  .rule-card .core { grid-template-columns: 1fr; }
  .page-hero--img { min-height: 70svh; }
}
@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; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
}

[data-form-wrap] { scroll-margin-top: 96px; }

/* HUD pause, preview badge, thanks page */
.hud-pause {
  border: 0; cursor: pointer; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg); background: rgba(255,255,255,0.08); padding: 5px 10px; border-radius: 999px; flex: none;
  transition: background-color 0.3s var(--ease);
}
.hud-pause:hover { background: rgba(255,255,255,0.14); }
.hud-foot { align-items: center; }
.hud.is-paused .rec-dot { animation: none; opacity: 0.4; }
.preview-badge {
  position: fixed; left: 14px; bottom: 14px; z-index: 85; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: #000; background: #ffd60a; padding: 7px 12px; border-radius: 999px; pointer-events: none;
}
.preview-note { margin-top: 18px; color: #ffd60a; }
@media (max-height: 620px) { .menu { padding-top: 84px; } .menu li a { padding: 10px 2px; font-size: 1.7rem; } }
.hud-foot > span { display: inline-flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }

/* ==========================================================================
   Light theme: <html data-theme="light">, built with `node tools/build.mjs --theme light`.
   Same layout and components on warm paper. The photo heroes, the camera HUD,
   the week map and the photo tags stay night-dark, so they get the dark tokens back.
   ========================================================================== */
[data-theme="light"] {
  --paper: #f6f5f1;
  --bg: var(--paper);
  --fg: #0e0e0d;
  --fg-2: rgba(14, 14, 13, 0.72);
  --fg-3: rgba(14, 14, 13, 0.62);
  --fg-4: rgba(14, 14, 13, 0.5);
  --line: rgba(0, 0, 0, 0.1);
  --line-2: rgba(0, 0, 0, 0.16);
  --shell: rgba(0, 0, 0, 0.03);
  --core: #ffffff;
  --core-2: #ffffff;
  --rec-ink: #c4261b;
  --ok-ink: #13773a;
  --on-fg: #ffffff;
  --fg-hover: #000000;
  --tint: 0, 0, 0;
  --ghost: #ffffff;
  --ghost-hover: #f1f0eb;
  --ghost-ico: rgba(0, 0, 0, 0.06);
  --field: rgba(0, 0, 0, 0.46);
  --field-hover: rgba(0, 0, 0, 0.62);
  --field-focus: rgba(0, 0, 0, 0.85);
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%230e0e0d' stroke-opacity='.7' stroke-width='1.4'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
}
[data-theme="light"] :is(.hero, .page-hero--img, .hud, .week-map, .step-tag) {
  --bg: #000000;
  --fg: #f4f3ef;
  --fg-2: rgba(244, 243, 239, 0.66);
  --fg-3: rgba(244, 243, 239, 0.56);
  --fg-4: rgba(244, 243, 239, 0.38);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --shell: rgba(255, 255, 255, 0.028);
  --core: #0a0a0a;
  --core-2: #101010;
  --rec-ink: var(--rec);
  --ok-ink: var(--ok);
  --on-fg: #000000;
  --fg-hover: #ffffff;
  --tint: 255, 255, 255;
  --ghost: rgba(255, 255, 255, 0.05);
  --ghost-hover: rgba(255, 255, 255, 0.09);
  --ghost-ico: rgba(255, 255, 255, 0.08);
}
[data-theme="light"] ::selection { background: var(--rec); color: #fff; }
[data-theme="light"] .skip-link { color: var(--on-fg); }
[data-theme="light"] .grain {
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Photo bands stay dark and melt into the paper below */
[data-theme="light"] :is(.hero, .page-hero--img) { --fade: clamp(64px, 8vw, 112px); background: #000; color: var(--fg); }
[data-theme="light"] :is(.hero, .page-hero--img)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--fade); z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(246, 245, 241, 0) 0%, rgba(246, 245, 241, 0.22) 30%, rgba(246, 245, 241, 0.7) 68%, var(--paper) 100%);
}
[data-theme="light"] .hero-inner { padding-bottom: calc(clamp(40px, 6vw, 72px) + var(--fade)); }
[data-theme="light"] .page-hero--img { padding-bottom: calc(clamp(56px, 7vw, 96px) + var(--fade)); }

/* Type chips and buttons (token driven, so the dark bands keep the dark look) */
[data-theme="light"] .eyebrow { background: rgba(var(--tint), 0.04); }
[data-theme="light"] .btn--primary { color: var(--on-fg); }
[data-theme="light"] .btn--primary .ico { background: var(--on-fg); color: var(--fg); }
[data-theme="light"] .btn--primary:hover { background: var(--fg-hover); box-shadow: 0 0 0 6px rgba(var(--tint), 0.08); }
[data-theme="light"] .btn--ghost { background: var(--ghost); }
[data-theme="light"] .btn--ghost .ico { background: var(--ghost-ico); }
[data-theme="light"] .btn--ghost:hover { background: var(--ghost-hover); }

/* White cards with a quiet ring */
[data-theme="light"] .core { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04), 0 22px 44px -30px rgba(0, 0, 0, 0.25); }

/* Navigation: a frosted white island that reads over the night photo and over paper */
[data-theme="light"] .nav { background: rgba(255, 255, 255, 0.8); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 16px 40px -22px rgba(0, 0, 0, 0.45); }
[data-theme="light"] .nav.is-scrolled { background: rgba(255, 255, 255, 0.92); }
[data-theme="light"] .nav-links a:hover { background: rgba(0, 0, 0, 0.05); }
[data-theme="light"] .nav-links a[aria-current="page"] { background: rgba(0, 0, 0, 0.07); }
[data-theme="light"] .burger { background: rgba(0, 0, 0, 0.06); }
[data-theme="light"] .menu { background: rgba(246, 245, 241, 0.95); }

/* Sections */
[data-theme="light"] .step-media::after { background: linear-gradient(0deg, var(--core) 0%, rgba(255, 255, 255, 0) 45%); }
[data-theme="light"] .log li.is-on { background: rgba(0, 0, 0, 0.04); }
[data-theme="light"] .b-icon { background: rgba(0, 0, 0, 0.035); }
[data-theme="light"] .chip { background: #fff; }
[data-theme="light"] .places .status--off { color: var(--ok-ink); box-shadow: inset 0 0 0 1px rgba(19, 119, 58, 0.4); }
[data-theme="light"] .places .status--on { color: var(--rec-ink); box-shadow: inset 0 0 0 1px rgba(196, 38, 27, 0.4); }
[data-theme="light"] :is(.week-total b, .action .n, .principles .k, .err, .form-status) { color: var(--rec-ink); }
[data-theme="light"] .demands li::before { color: var(--rec-ink); }
[data-theme="light"] .footer-bottom .clean i { background: var(--ok-ink); }

/* Forms: input borders at 3:1 or better */
[data-theme="light"] .field > label .opt { color: var(--fg-3); }
[data-theme="light"] .input { box-shadow: inset 0 0 0 1px var(--field); }
[data-theme="light"] .input:hover { box-shadow: inset 0 0 0 1px var(--field-hover); }
[data-theme="light"] .input:focus { box-shadow: inset 0 0 0 1px var(--field-focus), 0 0 0 4px rgba(0, 0, 0, 0.07); background-color: #fff; }
[data-theme="light"] select.input, [data-theme="light"] select.input:focus { background-image: var(--arrow); background-repeat: no-repeat; background-position: right 17px center; }
[data-theme="light"] select.input option { background: #fff; color: var(--fg); }
[data-theme="light"] .field.has-error .input { box-shadow: inset 0 0 0 1px var(--rec-ink); }
[data-theme="light"] .field.has-error .input:focus { box-shadow: inset 0 0 0 1px var(--rec-ink), 0 0 0 4px rgba(255, 59, 47, 0.2); }
[data-theme="light"] .check .box { box-shadow: inset 0 0 0 1px var(--field); }
[data-theme="light"] .pill-opt span { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.24); }
[data-theme="light"] :is(.check .box svg, .pill-opt input:checked + span, .success .tick) { color: var(--on-fg); }
[data-theme="light"] :is(.share a, .share button) { background: #fff; }
[data-theme="light"] :is(.share a:hover, .share button:hover) { background: var(--ghost-hover); }
[data-theme="light"] .faq details[open] summary .pm { background: rgba(0, 0, 0, 0.05); }

/* Preview-only helpers */
[data-theme="light"] .preview-badge { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14), 0 8px 20px -10px rgba(0, 0, 0, 0.4); }
[data-theme="light"] .preview-note { color: #7a5a00; }
