/* ============================================================
   DVM Consulting — design system
   ============================================================ */
:root {
  --bg: #0b0906;
  --bg-2: #14100a;
  --surface: rgba(226, 195, 132, 0.05);
  --surface-2: rgba(226, 195, 132, 0.09);
  --line: rgba(226, 195, 132, 0.14);
  --line-strong: rgba(226, 195, 132, 0.26);
  --ink: #f2ecdf;
  --ink-dim: #b5a88f;
  --ink-faint: #8f8069;
  --accent: #e3b264;
  --accent-rgb: 227, 178, 100;
  --accent-soft: rgba(227, 178, 100, 0.14);
  --accent-contrast: #241605;
  --accent-2: #e05a45;
  --accent2-rgb: 224, 90, 69;
  --cyan: #f0d9a8;
  --cyan-rgb: 240, 217, 168;
  --violet: #cf8a5a;
  --violet-rgb: 207, 138, 90;
  --bg-rgb: 11, 9, 6;
  --wash-rgb: 20, 15, 9;
  --glow-rgb: 104, 72, 30;
  --scrollbar: #2e2517;
  --scrollbar-hover: #403321;
  --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --headline-accent: #B5502B; /* the original site's --amber, used on "audit." */
  --font-mono: "IBM Plex Mono", "Cascadia Code", Consolas, ui-monospace, monospace;
  --container: 1180px;
  --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(var(--accent-rgb), 0.32); color: #fff; }

body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: var(--bg); }
body::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 5px; }
body::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-hover); }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* film grain + ambient glow */
.noise {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 200;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 2%); }
  40% { transform: translate(2%, -1%); }
  60% { transform: translate(-1%, -2%); }
  80% { transform: translate(1%, 2%); }
}

.page-glow {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(58% 48% at 72% 30%, rgba(var(--glow-rgb), 0.15), transparent 68%),
    radial-gradient(42% 38% at 12% 82%, rgba(var(--glow-rgb), 0.12), transparent 70%);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 clamp(20px, 3.4vw, 44px);
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(var(--bg-rgb), 0.74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
/* wordmark: mirrors the original site's SVG lockup */
.wordmark {
  display: block;
  height: 34px;
  width: auto;
  overflow: visible;
}
.lm-a {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 900;
  font-variation-settings: "wdth" 118, "wght" 900;
  letter-spacing: 0.5px;
  fill: var(--ink);
}
.lm-b {
  font-family: var(--font-mono);
  font-size: 6.2px;
  letter-spacing: 2.95px;
  fill: var(--ink-dim);
}

.nav-links {
  display: flex;
  gap: 8px;
}
.nav-links a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 8px 14px;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
  box-shadow: 0 0 28px rgba(var(--accent-rgb), 0.25);
}
.btn-primary:hover {
  box-shadow: 0 0 48px rgba(var(--accent-rgb), 0.45);
  transform: translateY(-2px);
}
.btn-ghost { color: var(--ink-dim); }
.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}
.btn-ghost .arrow { transition: transform 0.3s ease; }
.btn-ghost:hover .arrow { transform: translateY(3px); }
.btn-nav {
  padding: 10px 20px;
  font-size: 12px;
  color: var(--ink);
}
.btn-nav:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(52% 62% at 74% 44%, rgba(var(--glow-rgb), 0.30), transparent 70%),
    radial-gradient(120% 90% at 50% 118%, rgba(var(--wash-rgb), 0.9), transparent 60%);
  z-index: 0;
}
/* legibility scrim behind the nav */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 150px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(var(--bg-rgb), 0.8), transparent);
}
/* legibility scrim under the hero copy */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(var(--bg-rgb), 0.82) 8%, rgba(var(--bg-rgb), 0.45) 34%, transparent 56%);
}
@media (max-width: 900px) {
  .hero::after {
    background: linear-gradient(to top, rgba(var(--bg-rgb), 0.9) 30%, rgba(var(--bg-rgb), 0.35) 62%, transparent 85%);
  }
}

#globe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
}
#globe.dragging { cursor: grabbing; }

.globe-label {
  position: absolute;
  top: 0; left: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}
.globe-label-line {
  position: absolute;
  left: 10px; top: -46px;
  width: 1px; height: 40px;
  background: linear-gradient(to top, rgba(var(--accent2-rgb), 0.85), transparent);
}
.globe-label-text {
  position: absolute;
  left: 16px; top: -74px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-family: var(--font-mono);
  white-space: nowrap;
}
.globe-label-text strong {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.globe-label-text span {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
}
/* .flip is toggled by globe.js when the marker sits in the right half
   of a narrow viewport, so the label always stays on-screen */
.globe-label.flip .globe-label-text {
  left: auto;
  right: 10px;
  align-items: flex-end;
  text-align: right;
}
@media (max-width: 640px) {
  .globe-label-text strong { font-size: 10px; }
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) clamp(20px, 4vw, 48px) 40px;
  pointer-events: none;
}
.hero-inner a, .hero-inner .btn,
.hero-inner h1, .hero-inner p, .hero-inner .hero-foot { pointer-events: auto; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 30px;
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.55);
  animation: pulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.2vw, 6.1rem);
  font-weight: 800;
  font-variation-settings: "wdth" 118, "wght" 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 34px;
  max-width: 12ch;
}
h1 em {
  font-style: normal;
  color: var(--headline-accent);
}

.lede {
  max-width: 520px;
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  line-height: 1.72;
  color: var(--ink-dim);
  margin-bottom: 40px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-foot {
  max-width: 460px;
  border-left: 1px solid var(--line-strong);
  padding-left: 20px;
}
.hero-foot-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.hero-foot p {
  font-size: 15px;
  line-height: 1.66;
  color: var(--ink-dim);
}

/* status ticker */
.ticker {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 46s linear infinite;
}
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-group {
  display: flex;
  gap: 14px;
  padding-right: 14px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(var(--wash-rgb), 0.55);
}
.chip b {
  font-weight: 600;
  color: var(--ink);
}
.chip b::before {
  content: "·";
  margin: 0 7px 0 0;
  color: var(--ink-faint);
}
.chip i {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.chip .ok { background: var(--accent); box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.7); }
.chip .warn { background: var(--accent-2); box-shadow: 0 0 8px rgba(var(--accent2-rgb), 0.7); }
.chip .info { background: var(--cyan); box-shadow: 0 0 8px rgba(var(--cyan-rgb), 0.7); }

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.section {
  position: relative;
  z-index: 2;
  padding: clamp(90px, 12vw, 150px) 0;
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(48px, 6vw, 76px);
}
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.section-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  font-variation-settings: "wdth" 118, "wght" 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.section-sub {
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.72;
  color: var(--ink-dim);
}

/* ============================================================
   DELIVERED — cards
   ============================================================ */
.work {
  background: linear-gradient(to bottom, transparent, rgba(var(--wash-rgb), 0.65) 18%, rgba(var(--wash-rgb), 0.65) 82%, transparent);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(26px, 3vw, 38px);
  background:
    radial-gradient(600px 300px at var(--mx, 50%) var(--my, 0%), rgba(var(--accent-rgb), 0.06), transparent 62%),
    var(--surface);
  overflow: hidden;
  transition: border-color 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
}
.card-wide { grid-column: span 2; }
.card-wide::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(120deg, rgba(var(--accent-rgb), 0.5), transparent 30%, transparent 70%, rgba(var(--cyan-rgb), 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid;
}
.status i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 7px currentColor;
}
.status-done  { color: var(--accent);   border-color: rgba(var(--accent-rgb), 0.32); background: rgba(var(--accent-rgb), 0.08); }
.status-live  { color: var(--cyan);     border-color: rgba(var(--cyan-rgb), 0.32);   background: rgba(var(--cyan-rgb), 0.08); }
.status-build { color: var(--accent-2); border-color: rgba(var(--accent2-rgb), 0.34); background: rgba(var(--accent2-rgb), 0.08); }
.status-dev   { color: var(--violet);   border-color: rgba(var(--violet-rgb), 0.34);  background: rgba(var(--violet-rgb), 0.08); }

.card-seal {
  position: absolute;
  right: clamp(24px, 4vw, 64px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(150px, 16vw, 220px);
  height: auto;
  color: var(--accent);
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-wide:hover .card-seal { opacity: 0.6; transform: translateY(-50%) rotate(6deg); }
.card-wide > *:not(.card-seal) { position: relative; max-width: 62%; }
@media (max-width: 900px) {
  .card-seal { display: none; }
  .card-wide > *:not(.card-seal) { max-width: none; }
}

.card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 700;
  font-variation-settings: "wdth" 110, "wght" 700;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-dim);
  max-width: 68ch;
}
.card-note {
  margin-top: 12px;
  padding-left: 16px;
  border-left: 2px solid rgba(var(--accent-rgb), 0.45);
  font-style: italic;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 11px;
  background: rgba(var(--wash-rgb), 0.55);
}

/* ============================================================
   PROCESS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
  margin-bottom: clamp(56px, 7vw, 88px);
}
.step {
  position: relative;
  border-top: 1px solid var(--line-strong);
  padding-top: 26px;
}
.step::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 52px; height: 1px;
  background: var(--accent);
}
.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  font-variation-settings: "wdth" 110, "wght" 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.step p {
  font-size: 15px;
  line-height: 1.68;
  color: var(--ink-dim);
}

.asks {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: clamp(26px, 3.4vw, 42px);
}
.asks-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 24px;
}
.asks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 40px;
}
.asks-grid li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: var(--ink-dim);
  line-height: 1.55;
}
.asks-grid li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 15px; height: 8px;
  border-left: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg) scale(0.9);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: linear-gradient(to bottom, transparent, rgba(var(--wash-rgb), 0.7) 30%);
}
.contact .section-head { max-width: 780px; }

.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.4vw, 3.1rem);
  font-weight: 700;
  font-variation-settings: "wdth" 110, "wght" 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: clamp(48px, 6vw, 72px);
  transition: color 0.3s ease, border-color 0.3s ease;
  overflow-wrap: anywhere;
}
.contact-mail svg {
  width: clamp(28px, 3.4vw, 44px);
  height: auto;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-mail:hover { color: var(--accent); border-color: var(--accent); }
.contact-mail:hover svg { transform: translateX(10px); }

.contact-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
}
.contact-meta dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.contact-meta dd {
  font-size: 15px;
  line-height: 1.66;
  color: var(--ink-dim);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  position: relative;
  z-index: 2;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.footer a:hover { color: var(--accent); }
.footer-coords { opacity: 0.75; }

/* ============================================================
   REVEAL ANIMATIONS
   (hidden state is gated on the .js root class so content is
   always visible when JavaScript is unavailable)
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

.reveal-hero {
  opacity: 0;
  transform: translateY(22px);
  animation: heroIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--d, 0s) + 0.55s);
}
@keyframes heroIn {
  to { opacity: 1; transform: none; }
}

/* ============================================================
   FALLBACK — no WebGL
   ============================================================ */
.no-webgl .hero-bg {
  background:
    radial-gradient(46% 60% at 72% 44%, rgba(var(--glow-rgb), 0.45), transparent 68%),
    radial-gradient(30% 40% at 72% 44%, rgba(var(--wash-rgb), 0.9), transparent 70%),
    radial-gradient(120% 90% at 50% 118%, rgba(var(--wash-rgb), 0.9), transparent 60%);
}
.no-webgl .globe-label { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .card-grid { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-inner {
    padding-top: calc(var(--nav-h) + 30vh);
    padding-bottom: 24px;
  }
  h1 { font-size: clamp(2.5rem, 10.5vw, 3.6rem); }
  .hero-foot { display: none; }
  .cta-row { margin-bottom: 36px; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .asks-grid { grid-template-columns: 1fr; }
  .contact-meta { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 560px) {
  .btn-nav { display: none; }
  .hero-inner { padding-top: calc(var(--nav-h) + 34vh); }
}

/* screenshot-test mode: everything settled, no animation */
.static-shot .reveal,
.static-shot .reveal-hero {
  opacity: 1;
  transform: none;
  animation: none;
  transition: none;
}
.static-shot .noise,
.static-shot .ticker-track { animation: none; }
.static-shot .pulse-dot { animation: none; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .noise { animation: none; }
  .ticker-track { animation: none; }
  .reveal, .js .reveal, .reveal-hero {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .pulse-dot { animation: none; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  :root {
    --bg: #ffffff;
    --ink: #171310;
    --ink-dim: #40382e;
    --ink-faint: #6b5f4e;
    --accent: #7a5a10;
    --accent-2: #9c3a28;
    --cyan: #7a621e;
    --violet: #8a5a32;
    --line: #ded6c8;
    --line-strong: #c0b4a0;
    --surface: #f8f5f0;
  }
  body { background: #fff; }
  .noise, .page-glow, #globe, .globe-label, .ticker,
  .hero-bg, .hero::before, .hero::after, .nav, .card-seal { display: none !important; }
  .reveal, .js .reveal, .reveal-hero { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero { min-height: auto; }
  .hero-inner { padding-top: 40px; }
  h1 em { color: var(--headline-accent); }
  .chip, .tags li { background: #fff; }
  .card { background: var(--surface); box-shadow: none !important; }
}
