/* ============================================================
   A-BOOKKEEPER · v3
   The ledger as architecture.
   Every section is a line item. Every page is a balanced book.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,400;1,9..144,500;1,9..144,600;1,9..144,700&family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,300;1,6..72,400;1,6..72,500&family=Geist:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Caveat:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ============== TOKENS ============== */
:root {
  /* Earth, deepened */
  --moss: #2a3320;
  --moss-deep: #1a2113;
  --moss-mid: #3f4f2a;
  --sage: #7d8762;

  --ink: #1c1610;
  --ink-soft: #3a2f24;
  --stone: #6b5f4f;
  --stone-light: #a89a82;

  --parchment: #f0e6cf;
  --parchment-deep: #e6d9b8;
  --paper: #f9f1da;
  --bone: #ddc99f;
  --paper-warm: #fbf6e7;

  --gold: #b8842e;
  --gold-light: #dba74a;
  --gold-deep: #7d5417;
  --gold-pale: rgba(184, 132, 46, 0.12);

  --terracotta: #ad4f2e;
  --terracotta-deep: #7a3617;
  --rust: #8a3a1c;

  --line: #c9b886;
  --line-soft: #d8c89a;
  --line-strong: #9a8553;

  /* Type */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-body: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --font-hand: 'Caveat', 'Bradley Hand', cursive;

  /* Sizes */
  --fs-hero: clamp(2.75rem, 7vw, 6.25rem);
  --fs-display: clamp(2.5rem, 5.5vw, 4.75rem);
  --fs-h1: clamp(2.25rem, 4.5vw, 3.75rem);
  --fs-h2: clamp(1.85rem, 3.4vw, 2.85rem);
  --fs-h3: clamp(1.35rem, 2.2vw, 1.85rem);
  --fs-lg: 1.1875rem;
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-tiny: 0.6875rem;

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --max: 1360px;
  --max-text: 680px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ============== BASE ============== */
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.62;
  color: var(--ink);
  background: var(--parchment);
  overflow-x: hidden;
  position: relative;
  font-feature-settings: "kern", "liga", "calt";
}

/* Paper texture — fixed full-viewport grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 320 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.15 0 0 0 0 0.12 0 0 0 0 0.08 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

::selection { background: var(--gold); color: var(--paper); }

/* Hide scroll indicators */
::-webkit-scrollbar { width: 10px; background: var(--parchment); }
::-webkit-scrollbar-thumb { background: var(--bone); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }

/* ============== TYPOGRAPHY ============== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--moss-deep);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 {
  font-size: 1.0625rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--moss-deep);
}

em, .em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-deep);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.serif { font-family: var(--font-serif); }
.mono { font-family: var(--font-mono); }
.hand {
  font-family: var(--font-hand);
  font-weight: 500;
  color: var(--gold-deep);
  font-size: 1.4em;
  line-height: 1;
}

/* ============== LAYOUT ============== */
.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
}

.section { padding-block: clamp(5rem, 10vw, 9rem); position: relative; }
.section-sm { padding-block: clamp(3rem, 6vw, 5rem); position: relative; }

/* The ledger spine — left-edge vertical rule with gold markers */
.spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(1rem, 3vw, 2rem);
  width: 1.5px;
  background: var(--line);
  pointer-events: none;
  z-index: 1;
}
.spine::before, .spine::after {
  content: '';
  position: absolute;
  left: -3.5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.spine::before { top: 0; }
.spine::after { bottom: 0; }

/* ============== EYEBROW / LINE-NUMBER ============== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 1.75rem;
  height: 1.5px;
  background: var(--gold);
}

.lede {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 38em;
}

/* Hand-drawn underline */
.draw {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.draw::after {
  content: '';
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.08em;
  height: 0.3em;
  background: url("data:image/svg+xml,%3Csvg width='240' height='14' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 14'%3E%3Cpath d='M3 9 C 40 3, 80 12, 120 8 S 200 3, 237 10' stroke='%23b8842e' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  opacity: 0.75;
  z-index: -1;
}

/* ============== HEADER ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 230, 207, 0.85);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(240, 230, 207, 0.96);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  gap: 1.5rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo img { height: 170px; width: auto; }

.nav-menu {
  display: flex;
  gap: 1.875rem;
  align-items: center;
}
.nav-menu a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-block: 0.25rem;
  transition: color 0.2s var(--ease);
}
.nav-menu a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-menu a:not(.btn):hover::after,
.nav-menu a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 1.5px;
  background: var(--moss);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 10px; }
.nav-toggle span:nth-child(2) { top: 16px; }
.nav-toggle span:nth-child(3) { top: 22px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.95rem 1.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.3s var(--ease);
  position: relative;
  border-radius: 0;
  white-space: nowrap;
}
.btn-primary {
  background: var(--moss);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(42, 51, 32, 0.20), 0 12px 28px rgba(42, 51, 32, 0.15);
}
.btn-primary:hover {
  background: var(--moss-deep);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(42, 51, 32, 0.25), 0 18px 40px rgba(42, 51, 32, 0.22);
}
.btn-gold {
  background: var(--gold);
  color: #ffffff !important;
  font-weight: 700;
}
.btn-gold:hover {
  background: var(--gold-deep);
  color: #ffffff !important;
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--moss);
  border: 1.5px solid var(--moss);
}
.btn-outline:hover {
  background: var(--moss);
  color: var(--paper);
}
.bg-dark .btn-outline {
  color: var(--paper);
  border-color: rgba(249, 241, 218, 0.5);
}
.bg-dark .btn-outline:hover {
  background: var(--paper);
  color: var(--moss);
}
.btn-arrow::after {
  content: '→';
  transition: transform 0.3s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--gold-deep);
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 2px;
  transition: gap 0.3s var(--ease), color 0.2s var(--ease);
}
.link-arrow::after { content: '→'; transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--moss); gap: 0.65rem; }

/* ============================================================
   HERO — the entire site's anchor
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}

/* Gold radial atmosphere in upper right */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 65%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(184, 132, 46, 0.18) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* The "ledger margin" — left vertical rule with line numbers */
.hero-margin {
  position: absolute;
  top: 4rem;
  bottom: 4rem;
  left: clamp(1.25rem, 3vw, 2rem);
  width: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  z-index: 1;
}
.hero-margin::after {
  content: '';
  position: absolute;
  left: 0.4rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.hero-margin span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  background: var(--parchment);
  padding-block: 0.4rem;
  position: relative;
  z-index: 1;
  text-align: center;
  width: 1.8rem;
  font-weight: 600;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  min-height: clamp(440px, calc(100vh - 180px), 640px);
  padding-left: clamp(3rem, 5vw, 4rem);
}

.hero-left { position: relative; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.hero-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(173, 79, 46, 0.2);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(173, 79, 46, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(173, 79, 46, 0.05); }
}

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-block: 0 1.25rem;
  font-variation-settings: "opsz" 144, "SOFT" 25;
  color: var(--moss-deep);
}
.hero h1 .line { display: block; }
.hero h1 .italic-em {
  font-style: italic;
  color: var(--gold-deep);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-weight: 400;
}
.hero h1 .word-dash {
  color: var(--gold);
  font-weight: 500;
  display: inline-block;
}

.hero .lede {
  margin-bottom: 1.75rem;
  max-width: 32em;
  font-size: clamp(1rem, 1.25vw, 1.1875rem);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Hero margin annotation */
.hero-annotation {
  position: absolute;
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--gold-deep);
  line-height: 1;
  font-weight: 500;
  transform: rotate(-3deg);
  pointer-events: none;
}
.hero-annotation.top {
  top: 1rem;
  right: -1rem;
}
.hero-annotation.top::after {
  content: '';
  position: absolute;
  bottom: -1.5rem;
  right: 3rem;
  width: 60px;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 60 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4 Q 25 4, 50 18 L 50 16' stroke='%237d5417' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3Cpath d='M48 14 L 50 18 L 46 19' stroke='%237d5417' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat;
}

/* ============================================================
   HERO RIGHT — the showpiece ledger
   ============================================================ */
.hero-right {
  position: relative;
  aspect-ratio: 0.92 / 1;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

.ledger {
  position: absolute;
  inset: 0;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  box-shadow:
    0 1px 0 rgba(28, 22, 16, 0.04),
    0 2px 4px rgba(28, 22, 16, 0.05),
    0 12px 24px rgba(28, 22, 16, 0.08),
    0 32px 60px rgba(28, 22, 16, 0.12);
  padding: 1.75rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.ledger::before {
  /* Page edge gradient — like a real book spine */
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 28px;
  background: linear-gradient(90deg, rgba(28, 22, 16, 0.08) 0%, transparent 100%);
  pointer-events: none;
}

.ledger::after {
  /* Bottom gradient fade */
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: linear-gradient(180deg, transparent 0%, var(--paper-warm) 100%);
  pointer-events: none;
}

.ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 0.875rem;
  border-bottom: 1.5px solid var(--moss);
  margin-bottom: 1rem;
  position: relative;
}
.ledger-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--moss-deep);
  font-weight: 500;
  font-variation-settings: "opsz" 144;
}
.ledger-period {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 600;
}

.ledger-cols {
  display: grid;
  grid-template-columns: 1.5rem 1fr auto auto;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.ledger-cols .r { text-align: right; }

.ledger-line {
  display: grid;
  grid-template-columns: 1.5rem 1fr auto auto;
  gap: 0.75rem;
  padding-block: 0.55rem;
  align-items: center;
  font-size: 0.8125rem;
  border-bottom: 1px dashed var(--line-soft);
  position: relative;
}
.ledger-line .ln {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--stone-light);
  font-weight: 600;
}
.ledger-line .desc {
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ledger-line .cat {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--gold-pale);
  padding: 0.18rem 0.4rem;
  font-weight: 600;
}
.ledger-line .amt {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: 0.8125rem;
  text-align: right;
  min-width: 5.5rem;
}
.ledger-line.income .amt { color: var(--moss-mid); }
.ledger-line.expense .amt { color: var(--terracotta); }

.ledger-foot {
  margin-top: auto;
  padding-top: 0.875rem;
  border-top: 1.5px solid var(--moss);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
}
.ledger-foot .label {
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 600;
}
.ledger-foot .value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--moss-deep);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  font-style: italic;
  font-variation-settings: "opsz" 144;
}
.ledger-foot .value .sm {
  font-size: 0.75rem;
  color: var(--stone);
  font-family: var(--font-mono);
  font-weight: 400;
  font-style: normal;
}
.ledger-foot .value .zero {
  color: var(--moss-mid);
  font-weight: 600;
}

/* Floating accent: terracotta stamp */
.stamp {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  z-index: 3;
  transform: rotate(8deg);
  box-shadow: 0 12px 28px rgba(173, 79, 46, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.18);
}
.stamp .big {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  margin-block: 0.1rem;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

/* Floating "Day 9" badge bottom left */
.day-badge {
  position: absolute;
  bottom: 1rem;
  left: -1.25rem;
  background: var(--moss);
  color: var(--paper);
  padding: 0.65rem 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  z-index: 3;
  box-shadow: 0 8px 20px rgba(42, 51, 32, 0.3);
}
.day-badge .gold { color: var(--gold-light); }

/* Sketched arrow callout pointing into the ledger */
.callout {
  position: absolute;
  top: -2.5rem;
  left: -3.5rem;
  width: 180px;
  z-index: 4;
  pointer-events: none;
}
.callout-text {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--gold-deep);
  line-height: 1.15;
  font-weight: 600;
  transform: rotate(-5deg);
  display: inline-block;
  max-width: 130px;
}

/* ============================================================
   HERO STATS STRIP — below hero
   ============================================================ */
.hero-strip {
  position: relative;
  z-index: 2;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.75rem;
  padding-left: clamp(3rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  flex-wrap: wrap;
}
.hero-strip-label {
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 600;
}
.hero-strip-items {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}
.hero-strip-items span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-strip-items span::before {
  content: '—';
  color: var(--gold);
  font-weight: 600;
  font-family: var(--font-display);
}

/* ============================================================
   MANIFESTO STRIP
   ============================================================ */
.manifesto {
  background: var(--moss-deep);
  color: var(--paper);
  padding-block: clamp(4rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% center, rgba(184, 132, 46, 0.22) 0%, transparent 55%);
  pointer-events: none;
}
.manifesto-grid {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.manifesto-mark {
  font-family: var(--font-display);
  font-size: clamp(5rem, 11vw, 10rem);
  font-style: italic;
  font-weight: 300;
  line-height: 0.8;
  color: var(--gold-light);
  opacity: 0.6;
  letter-spacing: -0.06em;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.manifesto p {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.5rem);
  line-height: 1.22;
  font-weight: 400;
  color: var(--paper);
  letter-spacing: -0.02em;
  max-width: 30em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.manifesto p .em {
  color: var(--gold-light);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--paper);
  position: relative;
}
.stat {
  padding: 2rem 1.75rem 1.75rem;
  border-right: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.stat:last-child { border-right: none; }
.stat::before {
  content: attr(data-num);
  position: absolute;
  top: 0.4rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
  font-weight: 600;
}
.stat::after {
  content: attr(data-decor);
  position: absolute;
  bottom: -2.5rem;
  right: -1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 7rem;
  color: var(--gold);
  opacity: 0.12;
  font-weight: 300;
  line-height: 1;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.stat .value {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  color: var(--moss-deep);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.625rem;
  font-variation-settings: "opsz" 144;
}
.stat .label {
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 600;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 760px;
}
.section-header.center {
  margin-inline: auto;
  text-align: center;
}
.section-header.center .eyebrow { justify-content: center; }
.section-header h2 {
  font-size: var(--fs-display);
  margin-top: 1.25rem;
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.section-header .lede { margin-top: 1.5rem; }
.section-header.center .lede { margin-inline: auto; }

/* ============================================================
   SERVICES — magazine grid with asymmetric columns
   ============================================================ */
.services {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}
.svc-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 2rem 1.75rem 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s var(--ease);
}
.svc-card.span-6 { grid-column: span 6; }
.svc-card.span-4 { grid-column: span 4; }
.svc-card.span-8 { grid-column: span 8; }

.svc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.svc-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 4px 8px rgba(28, 22, 16, 0.06), 0 24px 56px rgba(28, 22, 16, 0.14);
}
.svc-card:hover::before { transform: scaleX(1); }

.svc-card .num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 2.75rem;
  color: var(--gold);
  opacity: 0.55;
  line-height: 0.9;
  margin-bottom: 1.25rem;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.svc-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.875rem;
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
}
.svc-card p {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}
.svc-card .link-arrow {
  align-self: flex-start;
  font-size: var(--fs-xs);
}

/* ============================================================
   EDITORIAL SPLIT
   ============================================================ */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.editorial.reverse { grid-template-columns: 1.15fr 1fr; }
.editorial.reverse .ed-text { order: 2; }

.ed-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.ed-meta::before {
  content: '';
  display: inline-block;
  width: 1.75rem;
  height: 1.5px;
  background: var(--gold);
}

.ed-text h2 {
  font-size: var(--fs-display);
  margin-bottom: 1.5rem;
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.ed-text .lede { font-size: 1.125rem; margin-bottom: 2rem; }

.ed-list {
  display: grid;
  margin-block: 2rem;
}
.ed-list li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--ink);
  line-height: 1.55;
}
.ed-list li:last-child { border-bottom: none; }
.ed-list .n {
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  color: var(--gold-deep);
  letter-spacing: 0.06em;
  padding-top: 0.15em;
  font-weight: 600;
}

/* ============================================================
   DASHBOARD WIDGET
   ============================================================ */
.widget {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.75rem 1.625rem 1.5rem;
  box-shadow: 0 2px 4px rgba(28, 22, 16, 0.04), 0 16px 40px rgba(28, 22, 16, 0.09);
  position: relative;
}
.widget.tilted { transform: rotate(-0.8deg); }
.widget-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.125rem;
  margin-bottom: 0.75rem;
  border-bottom: 1.5px solid var(--moss);
}
.widget-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--moss-deep);
  font-weight: 500;
  font-variation-settings: "opsz" 144;
}
.widget-pill {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--gold-pale);
  padding: 0.32rem 0.55rem;
  font-weight: 700;
}
.widget-pill.green {
  color: var(--moss);
  background: rgba(125, 135, 98, 0.2);
}

.widget-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  padding-block: 0.7rem;
  border-bottom: 1px dashed var(--line-soft);
  font-size: var(--fs-sm);
  align-items: center;
}
.widget-row:last-of-type { border-bottom: none; }
.widget-row .desc { color: var(--ink); }
.widget-row .cat {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  background: var(--bone);
  padding: 0.22rem 0.5rem;
  font-weight: 600;
}
.widget-row .amt {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--moss-deep);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-align: right;
  min-width: 5rem;
}
.widget-row.income .amt { color: var(--moss-mid); }
.widget-row.expense .amt { color: var(--terracotta); }
.widget-row.cleared .amt { color: var(--sage); }
.widget-row.cleared::after { content: '✓'; color: var(--sage); font-weight: 700; }

.widget-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1.25rem;
  padding-top: 1.125rem;
  border-top: 1.5px solid var(--moss);
}
.widget-stat { padding-right: 0.75rem; }
.widget-stat + .widget-stat {
  border-left: 1px solid var(--line);
  padding-left: 1rem;
}
.widget-stat .label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.widget-stat .value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--moss-deep);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variation-settings: "opsz" 144;
}
.widget-stat .value .unit {
  font-size: 0.75rem;
  color: var(--stone);
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ============================================================
   PULL QUOTE
   ============================================================ */
.pq {
  text-align: center;
  max-width: 920px;
  margin-inline: auto;
  padding-block: clamp(2rem, 4vw, 3rem);
  position: relative;
}
.pq::before, .pq::after {
  content: '';
  display: block;
  width: 64px;
  height: 1.5px;
  background: var(--gold);
  margin-inline: auto;
}
.pq::before { margin-bottom: 2rem; }
.pq::after { margin-top: 2rem; }
.pq p {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  line-height: 1.16;
  font-weight: 400;
  font-style: italic;
  color: var(--moss-deep);
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 80;
}
.pq p .em {
  color: var(--gold-deep);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

/* ============================================================
   INDUSTRIES MAGAZINE GRID
   ============================================================ */
.industries {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}
.ind-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 2.25rem 1.75rem 2rem;
  position: relative;
  min-height: 280px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  overflow: hidden;
}
.ind-tile:nth-child(4n+1) { grid-column: span 5; }
.ind-tile:nth-child(4n+2) { grid-column: span 7; }
.ind-tile:nth-child(4n+3) { grid-column: span 7; }
.ind-tile:nth-child(4n+4) { grid-column: span 5; }
.ind-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(28, 22, 16, 0.06), 0 24px 56px rgba(28, 22, 16, 0.12);
}
.ind-tile .num {
  position: absolute;
  top: 1.25rem;
  right: 1.75rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.18;
  font-weight: 300;
  line-height: 1;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.ind-tile h3 {
  font-size: 1.65rem;
  margin-bottom: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  position: relative;
}
.ind-tile p {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.ind-tile .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ind-tile .tag {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--gold-pale);
  padding: 0.32rem 0.55rem;
  font-weight: 600;
}

/* ============================================================
   PROCESS TIMELINE
   ============================================================ */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  margin-top: 3rem;
}
.process::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: 5%;
  right: 5%;
  height: 1.5px;
  background-image: linear-gradient(90deg, var(--gold) 50%, transparent 50%);
  background-size: 14px 1.5px;
  background-repeat: repeat-x;
}
.step {
  position: relative;
  padding-inline: 1rem;
}
.step .dot-wrap {
  position: relative;
  height: 4rem;
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  z-index: 2;
}
.step .dot {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--parchment);
  border: 2.5px solid var(--gold);
  position: relative;
  z-index: 2;
}
.step .dot::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.step .stepnum {
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 0.625rem;
  display: block;
}
.step h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--moss-deep);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  font-variation-settings: "opsz" 144;
}
.step p {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ============================================================
   WHY GRID ON DARK
   ============================================================ */
.bg-dark {
  background: var(--moss-deep);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.bg-dark::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(184, 132, 46, 0.16) 0%, transparent 60%);
  pointer-events: none;
}
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--paper); }
.bg-dark p { color: rgba(249, 241, 218, 0.78); }
.bg-dark .eyebrow { color: var(--gold-light); }
.bg-dark .eyebrow::before { background: var(--gold-light); }
.bg-dark .lede { color: rgba(249, 241, 218, 0.82); }

.why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3.5rem;
}
.why-item {
  padding-top: 2rem;
  border-top: 1.5px solid rgba(218, 167, 74, 0.4);
  position: relative;
}
.why-item .n {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  color: var(--gold-light);
  opacity: 0.75;
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.why-item h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--paper);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.875rem;
  line-height: 1.15;
  font-variation-settings: "opsz" 144;
}
.why-item p {
  color: rgba(249, 241, 218, 0.72);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  background: var(--moss-deep);
  color: var(--paper);
  padding-block: clamp(5rem, 9vw, 7rem);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta::before {
  content: '';
  position: absolute;
  inset: -20% 0;
  background: radial-gradient(ellipse at center, rgba(184, 132, 46, 0.22) 0%, transparent 55%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
}
.cta h2 {
  color: var(--paper);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  margin-block: 1.125rem 1.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.cta h2 .em {
  font-style: italic;
  color: var(--gold-light);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.cta p {
  color: rgba(249, 241, 218, 0.85);
  font-size: var(--fs-lg);
  margin-bottom: 2.5rem;
  max-width: 32em;
  margin-inline: auto;
  font-family: var(--font-serif);
}
.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #14190d;
  color: rgba(249, 241, 218, 0.7);
  padding-block: 4.5rem 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(249, 241, 218, 0.1);
}
.footer-brand img {
  height: 100px;
  width: auto;
  margin-bottom: 1.25rem;
}
.footer-brand p {
  color: rgba(249, 241, 218, 0.6);
  font-size: var(--fs-sm);
  max-width: 24em;
  line-height: 1.6;
}
.footer h5 {
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.footer-links { display: grid; gap: 0.65rem; }
.footer-links a {
  color: rgba(249, 241, 218, 0.7);
  font-size: var(--fs-sm);
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(249, 241, 218, 0.45);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.dash-reminder {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-sm);
  color: var(--gold-light);
  letter-spacing: 0;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.dash-reminder .dash { color: var(--paper); font-weight: 500; }

/* ============================================================
   FORMS
   ============================================================ */
.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: 0.5rem; }
.field label {
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 600;
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  padding: 0.875rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 132, 46, 0.18);
}
.field textarea { min-height: 140px; resize: vertical; }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  padding-block: clamp(5rem, 9vw, 7rem) clamp(3rem, 6vw, 5rem);
  background: linear-gradient(180deg, var(--parchment) 0%, var(--parchment-deep) 100%);
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.page-header::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(184, 132, 46, 0.12) 0%, transparent 60%);
}
.page-header-content {
  max-width: 880px;
  position: relative;
}
.page-header h1 {
  font-size: var(--fs-display);
  margin-block: 1.25rem 1.5rem;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.page-header h1 .em {
  font-style: italic;
  color: var(--gold-deep);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes drawIn {
  from { stroke-dashoffset: var(--len, 200); }
  to { stroke-dashoffset: 0; }
}
@keyframes stampDrop {
  0% { transform: rotate(8deg) scale(0.3); opacity: 0; }
  60% { transform: rotate(2deg) scale(1.08); opacity: 1; }
  100% { transform: rotate(8deg) scale(1); opacity: 1; }
}

.js-on .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.js-on .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Hero entrance */
.hero-tag { animation: fadeUp 0.7s var(--ease-out) 0.1s both; }
.hero h1 .line { animation: fadeUp 0.9s var(--ease-out) both; }
.hero h1 .line:nth-child(1) { animation-delay: 0.16s; }
.hero h1 .line:nth-child(2) { animation-delay: 0.28s; }
.hero h1 .line:nth-child(3) { animation-delay: 0.40s; }
.hero .lede { animation: fadeUp 0.9s var(--ease-out) 0.5s both; }
.hero-actions { animation: fadeUp 0.85s var(--ease-out) 0.62s both; }
.hero-right { animation: fadeUp 1.1s var(--ease-out) 0.55s both; }
.hero-strip { animation: fadeUp 0.85s var(--ease-out) 0.85s both; }
.stamp { animation: stampDrop 0.8s var(--ease-out) 1.2s both; }
.day-badge { animation: fadeUp 0.85s var(--ease-out) 1.4s both; }
.callout { animation: fadeUp 0.85s var(--ease-out) 1.6s both; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ============================================================
   GLOBAL HORIZONTAL OVERFLOW KILL (v3.5)
   ============================================================ */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(6, 1fr); }
  .svc-card.span-6, .svc-card.span-4, .svc-card.span-8 { grid-column: span 6; }
  .industries { grid-template-columns: repeat(6, 1fr); }
  .ind-tile, .ind-tile:nth-child(4n+1), .ind-tile:nth-child(4n+2),
  .ind-tile:nth-child(4n+3), .ind-tile:nth-child(4n+4) { grid-column: span 6; }
  .why { grid-template-columns: repeat(2, 1fr); }

  /* Mobile/tablet nav — logo left, hamburger CENTER, CTA right */
  .nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding-block: 0.75rem;
  }
  .nav-logo {
    flex: 0 0 auto;
  }
  .nav-logo img { height: 100px; }

  /* The .nav-actions-mobile wrapper contains [CTA][hamburger] in HTML.
     We split it: hamburger floats to center via auto margins,
     CTA pins to the right. */
  .nav-actions-mobile {
    display: contents; /* unwrap so children participate in parent flex */
  }
  .nav-toggle {
    display: block;
    z-index: 10000;
    position: relative;
    order: 2;
    margin-left: auto;
    margin-right: auto;
  }
  .nav-cta-mobile {
    display: inline-flex !important;
    align-items: center;
    padding: 0.6rem 0.95rem;
    background: var(--moss);
    color: #fff !important;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    order: 3;
    flex: 0 0 auto;
  }
  .nav-cta-mobile::after { content: ' →'; }

  body.nav-open .site-header { z-index: 9998; }
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: var(--parchment);
    flex-direction: column;
    padding: 6rem 2.5rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    align-items: flex-start;
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    box-sizing: border-box;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu li { display: block; width: 100%; }
  .nav-menu a:not(.btn) {
    font-size: 1.5rem;
    font-family: var(--font-display);
    display: block;
    padding-block: 0.5rem;
  }
  .nav-menu .btn {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    padding: 1.1rem 1.5rem;
    font-size: 1rem;
  }

  /* Hide ledger margin everywhere mobile-tablet to prevent right-edge bleed */
  .hero-margin { display: none !important; }
}

@media (max-width: 900px) {
  .hero-margin { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 3.5rem; padding-left: 0; }
  .hero-strip { padding-left: 0; }
  .hero-right { max-width: 460px; margin-top: 1rem; }
  .callout { display: none; }
  .editorial, .editorial.reverse { grid-template-columns: 1fr; }
  .editorial.reverse .ed-text { order: 0; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .process::before { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: span 2; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 1rem; }
  .manifesto-mark { font-size: 5rem; }
  .why { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-logo img { height: 84px; max-width: 42vw; object-fit: contain; }
  .form-row { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .services, .industries { grid-template-columns: 1fr; }
  .svc-card.span-6, .svc-card.span-4, .svc-card.span-8,
  .ind-tile, .ind-tile:nth-child(4n+1), .ind-tile:nth-child(4n+2),
  .ind-tile:nth-child(4n+3), .ind-tile:nth-child(4n+4) { grid-column: span 1; }

  .stamp { width: 5rem; height: 5rem; top: -0.5rem; right: -0.5rem; font-size: 0.55rem; }
  .stamp .big { font-size: 1.1rem; }
  .day-badge { left: 0.5rem; bottom: 0.5rem; }
  /* Keep CTA visible on phones — just make it smaller */
  .nav-cta-mobile {
    padding: 0.5rem 0.7rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 420px) {
  .nav-cta-mobile { padding: 0.45rem 0.6rem; font-size: 0.7rem; }
  .nav-cta-mobile::after { content: ''; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js-on .reveal { opacity: 1; transform: none; }
}
