/* ============================================================
   CGC Labs: practice site stylesheet
   Implements the Website Theme Bible (section 3 tokens, section 4 components).
   Source palette: Paper / Ledger Ink / Brick 70. Sharp corners, hairline structure.
   ============================================================ */

:root {
  /* Surfaces */
  --paper: #F7F4EE;
  --bone: #FBF9F4;
  --vellum: #FFFFFF;
  --slate-ink: #14130F;
  --graphite-surface: #1C1A16;
  --iron: #252220;

  /* Ink scale */
  --ink: #161512;
  --pitch: #2A2823;
  --charcoal: #403D38;
  --graphite: #5E5A52;
  --slate: #8B8578;
  --stone: #D9D3C6;
  --ash: #B8B1A2;
  --bone-fill: #EDE8DE;

  /* Accent */
  --brick: #8B2E1F;
  --brick-light: #A1493C;
  --green: #3F6B4A;

  /* Type */
  --serif: "Source Serif 4", Charter, "Iowan Old Style", Baskerville, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Spacing (4px base) */
  --sp-xs: 4px; --sp-sm: 8px; --sp-md: 16px; --sp-lg: 24px;
  --sp-xl: 32px; --sp-2xl: 48px; --sp-3xl: 64px; --sp-4xl: 96px; --sp-5xl: 128px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  background: var(--paper);
  color: var(--pitch);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "cv11" 1, "ss01" 1, "calt" 1;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

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

*:focus { outline: none; }
*:focus-visible { outline: 2px solid #1F4D3A; outline-offset: 2px; }

.skip-link {
  position: absolute; top: -100px; left: 8px; z-index: 100;
  padding: 8px 16px; background: var(--ink); color: var(--paper);
  text-decoration: none; border-radius: 4px; transition: top 200ms ease-out;
}
.skip-link:focus { top: 8px; }

/* ---------- Type scale ---------- */
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; }

.h1 { font-size: clamp(2.75rem, 5.8vw, 4.75rem); line-height: 1.02; letter-spacing: -0.028em; }
.h2 { font-size: clamp(2rem, 3.9vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; }
.h3 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.2; letter-spacing: -0.012em; }
.h4 { font-family: var(--sans); font-size: 1.25rem; font-weight: 600; color: var(--charcoal); letter-spacing: -0.008em; line-height: 1.3; }
.h6 { font-family: var(--sans); font-size: 0.875rem; font-weight: 600; color: var(--graphite); line-height: 1.4; }

.body-lg { font-family: var(--serif); font-size: 1.25rem; line-height: 1.55; color: var(--pitch); letter-spacing: -0.005em; }
.body { font-size: 1rem; line-height: 1.6; color: var(--pitch); }
.body-sm { font-size: 0.875rem; line-height: 1.5; color: var(--pitch); letter-spacing: 0.003em; }
.caption { font-size: 0.75rem; line-height: 1.45; color: var(--graphite); letter-spacing: 0.01em; }

.overline {
  font-family: var(--sans); font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--brick);
  display: inline-flex; align-items: center; gap: 12px;
}
.overline::before { content: ""; width: 24px; height: 1px; background: var(--brick); display: inline-block; }
.section-head .overline::after { content: ""; width: 64px; height: 1px; background: var(--stone); display: inline-block; }

.mono { font-family: var(--mono); font-feature-settings: "zero" 1; }
.metric { font-family: var(--mono); font-weight: 500; font-feature-settings: "tnum" 1, "zero" 1; letter-spacing: -0.03em; line-height: 1.05; color: var(--ink); }
.metric .unit { font-size: 0.55em; letter-spacing: -0.02em; }
.metric--brick { color: var(--brick); }

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-lg); }
@media (min-width: 768px)  { .container { padding: 0 var(--sp-2xl); } }
@media (min-width: 1024px) { .container { padding: 0 var(--sp-3xl); } }
@media (min-width: 1280px) { .container { padding: 0 var(--sp-4xl); } }

.prose { max-width: 680px; }
.prose p + p { margin-top: 1em; }
.prose--hero { max-width: 900px; }
.prose--hero .body-lg { max-width: 680px; }

.section { padding: var(--sp-2xl) 0; }
@media (min-width: 768px)  { .section { padding: var(--sp-3xl) 0; } }
@media (min-width: 1024px) { .section { padding: 88px 0; } }

.section--bone { background: var(--bone); border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }
.section--dark { background: var(--slate-ink); }

.section-head { margin-bottom: var(--sp-xl); max-width: 760px; }
.section-head .overline { margin-bottom: var(--sp-md); }
.section-head .h2 { margin-bottom: var(--sp-md); }

.hairline { height: 1px; background: var(--stone); border: 0; }

/* ---------- Living ledger field ---------- */
.bg-field { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid rgba(217, 211, 198, 0.4);
  background: transparent;
  transition: background-color 200ms ease-out, border-color 200ms ease-out, box-shadow 200ms ease-out;
}
.nav.scrolled {
  background: var(--paper);
  border-bottom-color: var(--stone);
  box-shadow: 0 1px 2px 0 rgba(17, 17, 17, 0.04);
}
.nav-inner { display: flex; align-items: center; height: 64px; gap: var(--sp-xl); }
@media (max-width: 767px) { .nav-inner { height: 56px; } }

.logo { font-size: 18px; text-decoration: none; display: inline-flex; align-items: baseline; gap: 5px; color: var(--ink); }
.logo b { font-family: var(--serif); font-weight: 600; letter-spacing: 0; }
.logo i { font-family: var(--sans); font-style: italic; font-weight: 500; letter-spacing: -0.01em; }
.logo:hover i { border-bottom: 1px solid var(--brick); padding-bottom: 1px; }

.nav-links { display: flex; gap: var(--sp-xl); margin-left: auto; list-style: none; }
@media (max-width: 899px) { .nav-links { display: none; } }
.nav-links a {
  font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--pitch);
  text-decoration: none; padding: 6px 0;
}
.nav-links a:hover { border-bottom: 1px solid var(--brick); padding-bottom: 5px; }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom: 1px solid var(--brick); padding-bottom: 5px; }

.nav-cta { margin-left: var(--sp-lg); }
@media (max-width: 899px) { .nav-inner .nav-cta { display: none; } }

.hamburger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--pitch); transition: transform 200ms ease-out, opacity 200ms ease-out; }
@media (max-width: 899px) { .hamburger { display: flex; } }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.scrim {
  position: fixed; inset: 0; z-index: 40; background: rgba(22, 21, 18, 0.5);
  opacity: 0; pointer-events: none; transition: opacity 200ms ease-out;
}
.scrim.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: 88%; max-width: 400px; background: var(--paper);
  border-left: 1px solid var(--stone);
  transform: translateX(100%); transition: transform 300ms ease-out;
  display: flex; flex-direction: column; padding: var(--sp-lg);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-lg); }
.drawer-close { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 22px; line-height: 1; color: var(--pitch); }
.drawer-links { list-style: none; flex: 1; }
.drawer-links a {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 var(--sp-md); text-decoration: none;
  font-family: var(--sans); font-size: 16px; font-weight: 500; color: var(--pitch);
  border-bottom: 1px solid var(--stone);
}
.drawer-links a::after { content: "\2192"; color: var(--slate); }
.drawer-links a[aria-current="page"] { color: var(--ink); border-bottom: 1px solid var(--brick); }
.drawer-cta { padding: var(--sp-lg) var(--sp-md) var(--sp-md); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  border-radius: 4px; text-decoration: none; cursor: pointer;
  padding: 10px 16px; min-height: 40px;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}
.btn-lg { font-size: 16px; padding: 14px 24px; min-height: 52px; }
.btn .arr { display: inline-block; transition: transform 150ms ease-out; }
.btn:hover .arr { transform: translateX(4px); }

.btn-primary { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn-primary:hover { background: var(--pitch); }

.btn-secondary { background: transparent; color: var(--pitch); border: 1px solid var(--pitch); }
.btn-secondary:hover { background: var(--bone-fill); }

.btn-ghost { background: transparent; color: var(--pitch); border: 0; padding: 6px 0; }
.btn-ghost:hover { color: var(--ink); }
.btn-ghost:hover .arr { transform: translateX(4px); }

.btn-invert { background: var(--paper); color: var(--ink); border: 1px solid var(--paper); }
.btn-invert:hover { background: var(--bone); }

/* ---------- Hero ---------- */
.hero { padding: var(--sp-2xl) 0 var(--sp-3xl); }
@media (min-width: 768px)  { .hero { padding: var(--sp-3xl) 0 var(--sp-3xl); } }
@media (min-width: 1024px) { .hero { padding: 96px 0 96px; } }

.hero-grid { display: grid; gap: var(--sp-3xl); }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 7fr 5fr; align-items: center; } }

.hero-copy .overline { margin-bottom: var(--sp-lg); }
.hero-copy .h1 { max-width: 10.5em; margin-bottom: var(--sp-lg); }
.hero-copy .body-lg { max-width: 60ch; margin-bottom: var(--sp-xl); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--sp-md); align-items: center; }
.hero-trust { margin-top: var(--sp-xl); font-size: 0.875rem; color: var(--slate); }

.hero-meta { display: flex; flex-wrap: wrap; gap: var(--sp-sm); margin-top: var(--sp-xl); }
.hero-meta span {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.02em; color: var(--charcoal);
  border: 1px solid var(--stone); background: var(--vellum);
  padding: 6px 14px; border-radius: 2px; display: inline-flex; align-items: center;
}

/* Home hero chart card: stacked offset sheets behind the panel */
.hero-visual {
  border: 1px solid var(--stone); background: var(--vellum); padding: var(--sp-xl); border-radius: 4px;
  box-shadow:
    12px 12px 0 -1px var(--stone),
    12px 12px 0 0 var(--bone),
    24px 24px 0 -2px var(--stone),
    24px 24px 0 -1px var(--bone-fill);
  margin-right: 24px; margin-bottom: 24px;
}
@media (max-width: 1023px) {
  .hero-visual { box-shadow: 12px 12px 0 -1px var(--stone), 12px 12px 0 0 var(--bone); margin-right: 12px; margin-bottom: 12px; }
}
.hero-visual .h6 { margin-bottom: var(--sp-lg); }
.chart-caption { margin-top: var(--sp-lg); }

/* ---------- Practices index (museum word list) ---------- */
.index-list { border-top: 1px solid var(--stone); }
.index-row {
  display: grid; grid-template-columns: auto 1fr auto; column-gap: var(--sp-lg);
  align-items: baseline; padding: var(--sp-xl) 0; border-bottom: 1px solid var(--stone);
  text-decoration: none;
}
.index-row .idx {
  grid-column: 1; grid-row: 1;
  font-family: var(--mono); font-size: 0.75rem; color: var(--slate); letter-spacing: 0.08em;
  align-self: start; padding-top: 0.5em;
}
.index-row .idx::before { content: "("; }
.index-row .idx::after { content: ")"; }
.index-row .name {
  grid-column: 2; grid-row: 1;
  font-family: var(--serif); font-weight: 600; color: var(--ink);
  font-size: clamp(1.875rem, 5vw, 3.75rem); line-height: 1.04; letter-spacing: -0.022em;
  transition: color 150ms ease-out;
}
.index-row .name em { font-style: italic; font-weight: 500; }
.index-row--primary .name, .index-row--primary .idx { color: var(--brick); }
.index-row .arr {
  grid-column: 3; grid-row: 1 / 3; align-self: center;
  font-family: var(--sans); font-size: clamp(1.25rem, 2.2vw, 2rem); color: var(--slate);
  transition: transform 150ms ease-out, color 150ms ease-out;
}
.index-row .desc {
  grid-column: 2; grid-row: 2; margin-top: var(--sp-md);
  font-size: 0.9375rem; line-height: 1.6; color: var(--pitch); max-width: 56ch;
}
.index-row:hover .name, .index-row:focus-visible .name { color: var(--brick); }
.index-row:hover .arr, .index-row:focus-visible .arr { color: var(--ink); transform: translateX(6px); }
@media (max-width: 767px) {
  .index-row { grid-template-columns: auto 1fr; column-gap: var(--sp-md); padding: var(--sp-lg) 0; }
  .index-row .arr { display: none; }
  .index-row .desc { grid-column: 2; }
}

/* ---------- Stat blocks ---------- */
.stat-grid { display: grid; gap: var(--sp-lg); }
@media (min-width: 768px) { .stat-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stat-grid--4 { grid-template-columns: repeat(4, 1fr); } .stat-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .stat-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stat-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.stat-grid--2 { grid-template-columns: repeat(2, 1fr); gap: var(--sp-lg); }
.stat--mini .metric { font-size: clamp(1.625rem, 2.4vw, 2.125rem); }
.stat--mini .stat-label { font-size: 0.8125rem; }

.stat { padding: var(--sp-lg) 0; }
@media (min-width: 1024px) { .stat { padding: 0 var(--sp-lg); } .stat:first-child { padding-left: 0; } }
.stat .metric { font-size: clamp(2.25rem, 3.4vw, 3rem); }
.stat-label { margin-top: var(--sp-sm); font-size: 0.875rem; font-weight: 500; color: var(--charcoal); letter-spacing: 0.005em; max-width: 24ch; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: var(--sp-lg); }
@media (min-width: 768px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .card-grid--2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--bone); border: 1px solid var(--stone); border-radius: 6px;
  padding: var(--sp-xl); text-decoration: none; display: flex; flex-direction: column;
  transition: background-color 200ms ease-out, border-color 200ms ease-out, box-shadow 200ms ease-out, transform 450ms ease;
}
.card:hover { background: var(--vellum); border-color: var(--pitch); box-shadow: 0 1px 2px 0 rgba(17,17,17,0.04); transform: translateY(-3px); }
.card .num { font-family: var(--mono); font-size: 0.75rem; color: var(--brick); letter-spacing: 0.08em; margin-bottom: var(--sp-lg); }
.card .num::before { content: "("; }
.card .num::after { content: ")"; }
.card h3 { margin-bottom: var(--sp-md); }
.card p { font-size: 0.9375rem; color: var(--pitch); margin-bottom: var(--sp-lg); }
.card .card-link { margin-top: auto; font-size: 14px; font-weight: 500; color: var(--pitch); }
.card:hover .card-link { color: var(--ink); }
.card-link .arr { transition: transform 150ms ease-out; display: inline-block; }
.card:hover .card-link .arr { transform: translateX(4px); }

.card--static { text-decoration: none; }
.card--static:hover { transform: none; }

/* ---------- Deliverable blocks (numbered sections) ---------- */
.block-list { display: grid; gap: var(--sp-xl); }
@media (min-width: 768px) { .block-list--2 { grid-template-columns: repeat(2, 1fr); gap: var(--sp-lg) var(--sp-2xl); } }
.block { border-top: 1px solid var(--stone); padding-top: var(--sp-lg); }
.block .num { font-family: var(--mono); font-size: 0.75rem; color: var(--graphite); letter-spacing: 0.08em; display: block; margin-bottom: var(--sp-md); }
.block .num::before { content: "("; }
.block .num::after { content: ")"; }
.block h3 { font-size: 1.25rem; margin-bottom: var(--sp-sm); }
.block p { font-size: 0.9375rem; color: var(--pitch); }

/* ---------- Drag / fix lists ---------- */
.list-two-col { display: grid; gap: var(--sp-2xl); }
@media (min-width: 768px) { .list-two-col { grid-template-columns: 1fr 1fr; gap: var(--sp-2xl) var(--sp-2xl); } }
.sq-list { list-style: none; display: grid; gap: var(--sp-md); }
.sq-list li { position: relative; padding-left: 20px; font-size: 0.9375rem; color: var(--pitch); }
.sq-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; background: var(--stone); }
.sq-list--muted li { color: var(--slate); text-decoration: line-through; }
.sq-list--muted li::before { background: var(--ash); }
.sq-list--strong li { font-weight: 500; color: var(--pitch); }
.sq-list--strong li::before { background: var(--brick); }

/* ---------- Timeline ---------- */
.timeline { display: grid; gap: var(--sp-xl); position: relative; }
@media (min-width: 1024px) { .timeline { grid-template-columns: repeat(3, 1fr); gap: var(--sp-lg); } }
.step { position: relative; padding-top: var(--sp-lg); }
.step::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 1px; background: var(--stone); }
.step::after { content: ""; position: absolute; top: 0; left: 0; width: 9px; height: 9px; background: var(--ink); border-radius: 9999px; }
.step .num { font-family: var(--mono); font-size: 0.75rem; color: var(--brick); letter-spacing: 0.08em; display: block; margin-bottom: var(--sp-sm); }
.step .num::before { content: "("; }
.step .num::after { content: ")"; }
.step h3 { font-size: 1.25rem; margin-bottom: var(--sp-sm); }
.step p { font-size: 0.9375rem; color: var(--pitch); }

/* ---------- Case narratives ---------- */
.case { display: grid; gap: var(--sp-2xl); }
@media (min-width: 1024px) { .case { grid-template-columns: 8fr 4fr; } }
.case-meta { font-size: 0.875rem; color: var(--graphite); margin-bottom: var(--sp-md); }
.case .h3 { margin-bottom: var(--sp-md); }
.case-side { border-left: 1px solid var(--stone); padding-left: var(--sp-xl); }
@media (max-width: 1023px) { .case-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--stone); padding-top: var(--sp-xl); } }
.case-side dt { font-family: var(--sans); font-size: 0.75rem; font-weight: 600; color: var(--graphite); text-transform: uppercase; letter-spacing: 0.08em; margin-top: var(--sp-md); }
.case-side dt:first-child { margin-top: 0; }
.case-side dd { font-size: 0.875rem; color: var(--pitch); margin-top: 2px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: var(--sp-lg); }
@media (min-width: 768px) { .price-grid { grid-template-columns: 1fr 1fr; } }
.price-card { background: var(--bone); border: 1px solid var(--stone); border-radius: 6px; padding: var(--sp-xl); }
.price-card .metric { font-size: clamp(2.25rem, 3.4vw, 3rem); }
.price-card h3 { margin-top: var(--sp-lg); margin-bottom: var(--sp-md); }
.price-card p { font-size: 0.9375rem; color: var(--pitch); }
.price-card .price-note { margin-top: var(--sp-md); font-size: 0.875rem; color: var(--graphite); }

/* ---------- Pull quote (statement panel) ---------- */
.pull-quote {
  border: 1px solid var(--stone); border-left: 3px solid var(--brick);
  background: var(--vellum); padding: var(--sp-xl); max-width: 620px;
}
.pull-quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.4; color: var(--ink); }
.pull-quote cite { display: block; margin-top: var(--sp-md); font-family: var(--sans); font-style: normal; font-size: 0.875rem; color: var(--graphite); }

/* ---------- CTA blocks ---------- */
.cta-inline { border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); padding: var(--sp-4xl) 0; }
.cta-inline .h2 { margin-bottom: var(--sp-md); }
.cta-inline .body-lg { margin-bottom: var(--sp-xl); max-width: 60ch; }

/* ---------- Closing CTA: the brick wall (museum field) ---------- */
.cta-dark {
  position: relative; overflow: hidden;
  background: var(--brick); color: var(--paper); padding: var(--sp-3xl) 0;
}
.cta-dark .overline { color: rgba(247, 244, 238, 0.9); }
.cta-dark .overline::before { background: rgba(247, 244, 238, 0.7); }
.cta-dark .overline::after { background: rgba(247, 244, 238, 0.35); }
.cta-dark .h2 { color: var(--paper); font-size: clamp(2.25rem, 4.6vw, 3.5rem); line-height: 1.04; margin-bottom: var(--sp-md); max-width: 22ch; }
.cta-dark .body-lg { color: rgba(247, 244, 238, 0.94); margin-bottom: var(--sp-xl); max-width: 60ch; }
.cta-dark .cta-contact { margin-top: var(--sp-lg); font-family: var(--mono); font-size: 0.75rem; color: rgba(247, 244, 238, 0.75); letter-spacing: 0.02em; }
.cta-dark .cta-contact a { color: var(--paper); }
.cta-dark .btn-invert { background: var(--paper); color: var(--brick); border: 1px solid var(--paper); }
.cta-dark .btn-invert:hover { background: var(--bone); border-color: var(--bone); }
.ghost {
  position: absolute; left: 50%; bottom: -0.22em; transform: translateX(-50%);
  font-family: var(--serif); font-style: italic; font-weight: 500; line-height: 1;
  font-size: clamp(6rem, 16vw, 14rem); letter-spacing: -0.02em;
  color: rgba(247, 244, 238, 0.12); white-space: nowrap;
  pointer-events: none; user-select: none;
}
@media (max-width: 767px) { .ghost { font-size: clamp(4rem, 22vw, 6rem); bottom: -0.12em; } }

/* ---------- Footer ---------- */
.footer { background: var(--slate-ink); color: var(--bone); padding: var(--sp-3xl) 0 var(--sp-lg); border-top: 1px solid var(--graphite); }
.footer a { color: var(--bone); text-decoration: none; }
.footer a:hover { color: var(--paper); }
.footer-grid { display: grid; gap: var(--sp-xl); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 4fr 2fr 2fr 3fr; } }
.footer .logo { color: var(--paper); font-size: 24px; }
.footer-tag { margin-top: var(--sp-md); font-size: 0.875rem; color: var(--bone); max-width: 34ch; }
.footer-contact { margin-top: var(--sp-xl); font-size: 0.875rem; color: var(--slate); }
.footer-contact a { font-family: var(--mono); font-size: 0.8125rem; }
.footer h6 { color: var(--paper); margin-bottom: var(--sp-lg); }
.footer-links { list-style: none; display: grid; gap: 12px; }
.footer-links a { font-size: 14px; }
.footer-links a:hover { border-bottom: 1px solid var(--brick); padding-bottom: 1px; }
.footer-fine a { text-decoration: none; }
.footer-fine { margin-top: var(--sp-xl); padding-top: var(--sp-lg); border-top: 1px solid rgba(94, 90, 82, 0.4); display: flex; flex-wrap: wrap; gap: var(--sp-sm) var(--sp-xl); justify-content: space-between; }
.footer-fine span, .footer-fine a { font-size: 0.75rem; color: var(--slate); }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); animation: reveal 800ms ease-out forwards; }
.reveal--1 { animation-delay: 100ms; } .reveal--2 { animation-delay: 200ms; } .reveal--3 { animation-delay: 300ms; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

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