/* ============================================================
   LUMEN — A2P tax-resolution skin
   For the nights the letters pile up: a dark, cinematic calm
   with one warm light left on. The signature is the real IRS
   escalation ladder (CP14 → LT11) going quiet under a filed
   Form 2848. Single-hue tonal system — build.py rewrites the
   @palette block.
   Type: Newsreader (display) · Albert Sans (body) · DM Mono (data).
   ============================================================ */

/* @palette:start */
:root {
  --primary: #14532D;
  --primary-dark: #104224;
  --secondary: #1a6b3a;
  --accent: #165b31;
  --accent-light: #1c743e;
}
/* @palette:end */

:root {
  /* Night neutrals — hue-tinted charcoal */
  --paper:      color-mix(in srgb, var(--primary) 5%, #0D0D0E);
  --surface:    color-mix(in srgb, var(--primary) 7%, #141414);
  --surface-2:  color-mix(in srgb, var(--primary) 10%, #191918);
  --ink:        #F3F0E9;
  --ink-soft:   color-mix(in srgb, #F3F0E9 70%, transparent);
  --ink-faint:  color-mix(in srgb, #F3F0E9 45%, transparent);
  --line:       color-mix(in srgb, #F3F0E9 11%, transparent);

  /* Brand-tinted helpers (follow --primary) */
  --edge:       color-mix(in srgb, var(--primary) 42%, transparent);
  --brand-soft: color-mix(in srgb, var(--primary) 16%, transparent);
  --glow:       color-mix(in srgb, var(--primary) 34%, transparent);
  --lamp:       color-mix(in srgb, var(--primary) 72%, #fff);

  --font-display: 'Newsreader', Georgia, serif;
  --font-body:    'Albert Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'DM Mono', ui-monospace, monospace;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Film grain, fixed over everything */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 2000; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------- Typography --------------------------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; color: var(--ink); letter-spacing: 0; line-height: 1.12; font-optical-sizing: auto; }
h1 em, h2 em { font-style: italic; color: var(--lamp); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--lamp);
  font-weight: 500;
}

p { color: var(--ink-soft); }
a { color: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; }

/* --------------------------- Buttons --------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.99rem;
  padding: 0.95rem 1.7rem; border-radius: var(--r-pill);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #101010; box-shadow: 0 8px 30px var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px var(--glow); background: var(--lamp); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--edge); color: var(--lamp); transform: translateY(-2px); }
.btn-arrow { transition: transform .25s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* --------------------------- Navigation --------------------------- */

.nav {
  position: sticky; top: 0; z-index: 900;
  background: color-mix(in srgb, var(--paper) 76%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 1.1rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.brand {
  font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: 1.45rem;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: baseline; gap: 0.6rem;
}
.brand .brand-mark {
  font-family: var(--font-mono); font-style: normal; font-size: 0.58rem; letter-spacing: 0.2em;
  color: var(--lamp); border: 1px solid var(--edge); border-radius: var(--r-pill);
  padding: 0.2rem 0.6rem; text-transform: uppercase;
  transform: translateY(-3px);
}
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 0.94rem; transition: color .25s ease, text-shadow .25s ease; }
.nav-links a:hover { color: var(--lamp); text-shadow: 0 0 18px var(--glow); }
.nav-cta { display: flex; align-items: center; gap: 1.25rem; }
.nav-cta .btn { padding: 0.6rem 1.25rem; font-size: 0.88rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------- Hero --------------------------- */

.hero {
  position: relative; text-align: center;
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  overflow: visible;
}
/* The lamp: a warm glow that breathes */
.hero::before {
  content: ''; position: absolute; left: 50%; top: -22%; z-index: -1;
  width: min(820px, 100vw); aspect-ratio: 1.4;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, var(--glow) 0%, transparent 68%);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.75; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}
/* Cursor spotlight (set via JS custom props) */
.hero .spot {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 30%), var(--brand-soft) 0%, transparent 70%);
}
.hero-inner { max-width: 820px; margin: 0 auto; padding: 0 2rem; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.7rem; margin-bottom: 1.6rem; animation: fade-up .8s ease .1s both; }
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 14px var(--lamp); animation: flicker 3.5s ease-in-out infinite; }
@keyframes flicker { 0%,100% { opacity: 1; } 46% { opacity: 1; } 50% { opacity: 0.45; } 54% { opacity: 1; } 78% { opacity: 0.8; } }
.hero h1 { font-size: clamp(2.7rem, 4.6vw + 1rem, 4.8rem); margin-bottom: 1.6rem; animation: fade-up .8s ease .22s both; }
.hero h1 em, .hero h1 span { font-style: italic; color: var(--lamp); text-shadow: 0 0 34px var(--glow); }
.hero-sub { font-size: 1.16rem; color: var(--ink-soft); max-width: 56ch; margin: 0 auto 2.4rem; animation: fade-up .8s ease .34s both; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.2rem; animation: fade-up .8s ease .46s both; }
.hero-trust { display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: center; font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-faint); letter-spacing: 0.06em; animation: fade-up .8s ease .58s both; }
.hero-trust span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-trust span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--lamp); }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* --------------------------- Signature: the escalation goes quiet --------------------------- */

.esc-band { padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.esc {
  max-width: 900px; margin: 0 auto; padding: 0 2rem;
}
.esc-caption {
  text-align: center; font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 1.6rem;
}
.esc-caption b { color: var(--lamp); font-weight: 500; }
.esc-row { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }
.chip {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em;
  color: var(--ink-faint); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 0.6rem 1rem; background: var(--surface);
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.15rem;
  opacity: 0.55; transform: translateY(6px);
}
.chip small { font-size: 0.56rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.esc.in .chip { animation: ignite 4.4s ease both; }
.esc.in .chip:nth-child(1) { animation-delay: 0s; }
.esc.in .chip:nth-child(2) { animation-delay: .35s; }
.esc.in .chip:nth-child(3) { animation-delay: .7s; }
.esc.in .chip:nth-child(4) { animation-delay: 1.05s; }
.esc.in .chip:nth-child(5) { animation-delay: 1.4s; }
@keyframes ignite {
  0%   { opacity: 0.55; transform: translateY(6px); border-color: var(--line); color: var(--ink-faint); }
  12%  { opacity: 1; transform: none; border-color: var(--edge); color: var(--lamp); box-shadow: 0 0 22px var(--glow); }
  55%  { opacity: 1; border-color: var(--edge); color: var(--lamp); box-shadow: 0 0 22px var(--glow); }
  75%, 100% { opacity: 0.55; transform: none; border-color: var(--line); color: var(--ink-faint); box-shadow: none; }
}
.poa-card {
  max-width: 560px; margin: 1.8rem auto 0;
  background: var(--surface-2); border: 1px solid var(--edge); border-radius: var(--r);
  box-shadow: 0 0 44px var(--glow);
  padding: 1.4rem 1.7rem; text-align: center;
  opacity: 0; transform: translateY(14px);
}
.esc.in .poa-card { animation: poa-in .9s cubic-bezier(.2,.9,.3,1) 3.1s forwards; }
@keyframes poa-in { to { opacity: 1; transform: none; } }
.poa-card .poa-kicker { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--lamp); display: block; margin-bottom: 0.4rem; }
.poa-card b { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.3rem; color: var(--ink); display: block; margin-bottom: 0.3rem; }
.poa-card p { font-size: 0.92rem; color: var(--ink-soft); }

/* --------------------------- Section scaffold --------------------------- */

section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-tint { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto clamp(2.5rem, 4vw, 3.8rem); text-align: center; }
.section-head .eyebrow { margin-bottom: 1.1rem; display: inline-block; }
.section-head h2 { font-size: clamp(1.9rem, 2.6vw + 1rem, 3rem); margin-bottom: 1rem; }
.section-head p { font-size: 1.08rem; color: var(--ink-soft); }

/* --------------------------- About --------------------------- */

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-grid h2 { font-size: clamp(1.9rem, 2.4vw + 1rem, 2.7rem); margin-bottom: 1.4rem; }
.about-grid p { font-size: 1.05rem; margin-bottom: 1.1rem; }
.about-marks { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-marks .mark {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.6rem; transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.about-marks .mark:hover { border-color: var(--edge); box-shadow: 0 0 30px var(--glow); transform: translateY(-3px); }
.about-marks .mark b { font-family: var(--font-display); font-style: italic; font-size: 2rem; color: var(--lamp); font-weight: 500; display: block; line-height: 1.1; }
.about-marks .mark span { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }

/* --------------------------- Services --------------------------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 2rem 1.8rem;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease, background .3s ease;
}
.card:hover { border-color: var(--edge); box-shadow: 0 12px 44px var(--glow); transform: translateY(-5px); background: var(--surface-2); }
.card .num { font-family: var(--font-mono); font-size: 0.68rem; color: var(--lamp); letter-spacing: 0.2em; }
.card h3 { font-size: 1.35rem; margin: 0.9rem 0 0.6rem; }
.card p { font-size: 0.96rem; color: var(--ink-soft); }

/* --------------------------- Process: the night watch --------------------------- */

.timeline { max-width: 720px; margin: 0 auto; position: relative; padding-left: 2.2rem; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.timeline .tfill {
  position: absolute; left: 6.5px; top: 6px; width: 2px; height: 0;
  background: linear-gradient(var(--lamp), var(--primary));
  box-shadow: 0 0 14px var(--glow);
  transition: height 1.6s cubic-bezier(.3,.9,.3,1);
}
.timeline.in .tfill { height: calc(100% - 12px); }
.tstep { position: relative; padding: 0 0 2.4rem; }
.tstep:last-child { padding-bottom: 0; }
.tstep::before {
  content: ''; position: absolute; left: -2.2rem; top: 7px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--line);
  transition: border-color .4s ease, box-shadow .4s ease;
}
.timeline.in .tstep::before { border-color: var(--lamp); box-shadow: 0 0 12px var(--glow); }
.timeline.in .tstep:nth-child(2)::before { transition-delay: .2s; }
.timeline.in .tstep:nth-child(3)::before { transition-delay: .55s; }
.timeline.in .tstep:nth-child(4)::before { transition-delay: .9s; }
.timeline.in .tstep:nth-child(5)::before { transition-delay: 1.25s; }
.tstep .step-meta { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--lamp); display: block; margin-bottom: 0.3rem; }
.tstep h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.tstep p { font-size: 0.98rem; max-width: 54ch; }

/* --------------------------- FAQ --------------------------- */

.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 1.5rem 3rem 1.5rem 0; position: relative;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; color: var(--ink);
  transition: color .25s ease;
}
.faq-q:hover { color: var(--lamp); }
.faq-q::after {
  content: '+'; position: absolute; right: 0.3rem; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-size: 1.5rem; color: var(--lamp);
  transition: transform .3s ease;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a p { padding-bottom: 1.6rem; font-size: 1rem; color: var(--ink-soft); }
.faq-a a { color: var(--lamp); font-weight: 600; }

/* --------------------------- CTA --------------------------- */

#cta { position: relative; text-align: center; overflow: hidden; }
#cta::before {
  content: ''; position: absolute; left: 50%; bottom: -55%; z-index: 0;
  width: min(760px, 100vw); aspect-ratio: 1.5;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, var(--glow) 0%, transparent 70%);
}
#cta .container { position: relative; z-index: 1; max-width: 720px; }
#cta h2 { font-size: clamp(2rem, 3vw + 1rem, 3.2rem); margin: 1rem 0 1.2rem; }
#cta p { font-size: 1.12rem; margin-bottom: 2.2rem; }

/* --------------------------- Lead form --------------------------- */

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 20px 60px color-mix(in srgb, #000 40%, transparent); padding: clamp(2rem, 4vw, 3.2rem); }
.form-card h2 { font-size: clamp(1.7rem, 2.4vw + 1rem, 2.4rem); margin-bottom: 0.8rem; }
.form-card > p { margin-bottom: 2rem; color: var(--ink-soft); }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.5rem; }
.field input {
  width: 100%; padding: 0.95rem 1.1rem; font-family: var(--font-body); font-size: 1rem;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus { outline: none; border-color: var(--edge); box-shadow: 0 0 0 4px var(--brand-soft), 0 0 24px var(--glow); }
.field input.error { border-color: #D96055; box-shadow: 0 0 0 4px color-mix(in srgb, #D96055 16%, transparent); }
.error-message { display: none; color: #E88379; font-size: 0.82rem; margin-top: 0.4rem; }
.consent { display: flex; gap: 0.8rem; align-items: flex-start; margin-bottom: 1.1rem; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--primary); cursor: pointer; }
.consent label { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.55; cursor: pointer; }
.consent label strong { color: var(--ink); font-weight: 600; }
.form-legal { font-size: 0.82rem; color: var(--ink-faint); margin: 0.4rem 0 1.6rem; }
.form-legal a { color: var(--lamp); font-weight: 600; text-decoration: none; }
.form-legal a:hover { text-decoration: underline; }
.btn-submit { width: 100%; justify-content: center; }
.thank-you { display: none; text-align: center; background: var(--surface); border: 1px solid var(--edge); border-radius: var(--r-lg); box-shadow: 0 0 44px var(--glow); padding: clamp(2.5rem, 5vw, 4rem); }
.thank-you.show { display: block; animation: rise .5s ease; }
.thank-you h3 { font-size: 2rem; margin-bottom: 1rem; color: var(--lamp); }
.thank-you p { margin-bottom: 0.9rem; }

.contact-grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 2.5rem; align-items: start; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem; position: sticky; top: 6rem; }
.info-card h3 { font-size: 1.3rem; margin-bottom: 1.5rem; }
.info-row { margin-bottom: 1.3rem; }
.info-row .k { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lamp); display: block; margin-bottom: 0.35rem; }
.info-row .v, .info-row .v a { font-weight: 500; color: var(--ink); text-decoration: none; font-size: 1.02rem; }
.info-row .v a:hover { color: var(--lamp); }

/* --------------------------- Legal pages --------------------------- */

.legal { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.legal-head { max-width: var(--maxw); margin: 0 auto 2.5rem; padding: 0 2rem; }
.legal-head .eyebrow { display: inline-block; margin-bottom: 0.9rem; }
.legal-head h1 { font-size: clamp(2.2rem, 3vw + 1rem, 3.4rem); }
.legal-head .lead { font-size: 1.08rem; color: var(--ink-soft); margin-top: 0.8rem; max-width: 60ch; }
.legal-body { max-width: 860px; margin: 0 auto; padding: 0 2rem; }
.legal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(2rem, 4vw, 3.4rem); }
.effective {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-soft);
  background: var(--brand-soft); border-left: 2px solid var(--lamp); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 1rem 1.2rem; margin-bottom: 2.2rem;
}
.effective strong { color: var(--lamp); }
.legal-card > p { font-size: 1.02rem; line-height: 1.8; margin-bottom: 1.4rem; }
.legal-card h2 { font-size: 1.5rem; margin: 2.6rem 0 1rem; }
.legal-card h3 { font-size: 1.2rem; margin: 1.8rem 0 0.8rem; }
.legal-card ul { margin: 0 0 1.6rem 1.4rem; }
.legal-card li { font-size: 1.02rem; line-height: 1.8; color: var(--ink-soft); margin-bottom: 0.6rem; }
.legal-card strong { color: var(--ink); }
.legal-card a { color: var(--lamp); font-weight: 600; text-decoration: none; }
.legal-card a:hover { text-decoration: underline; }
.legal-contact { margin-top: 2.5rem; padding: 2rem; background: var(--surface-2); border: 1px solid var(--edge); color: var(--ink); border-radius: var(--r); }
.legal-contact h2 { color: var(--ink); margin-top: 0; font-size: 1.4rem; }
.legal-contact p { color: var(--ink-soft); margin-bottom: 0.4rem; }
.legal-contact .name { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--lamp); margin: 0.6rem 0 0.4rem; }
.legal-links { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); text-align: center; font-family: var(--font-mono); font-size: 0.82rem; }
.legal-links a { color: var(--lamp); text-decoration: none; margin: 0 0.8rem; }

/* --------------------------- Footer --------------------------- */

.footer { background: color-mix(in srgb, #000 30%, var(--paper)); border-top: 1px solid var(--line); padding: clamp(3rem, 5vw, 4.5rem) 0 2rem; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.footer h4.brand-f { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--ink); margin-bottom: 1rem; font-weight: 500; }
.footer p { color: var(--ink-soft); font-size: 0.95rem; max-width: 34ch; }
.footer .col h5 { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lamp); margin-bottom: 1.1rem; }
.footer .col a { display: block; color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; margin-bottom: 0.7rem; transition: color .2s ease, transform .2s ease; }
.footer .col a:hover { color: var(--lamp); transform: translateX(3px); }
.footer-bottom {
  max-width: var(--maxw); margin: 2.5rem auto 0; padding: 1.6rem 2rem 0;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-faint);
}

/* --------------------------- Motion in --------------------------- */

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
[data-rise] { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
[data-rise].in { opacity: 1; transform: translateY(0); }

/* --------------------------- Responsive --------------------------- */

@media (max-width: 940px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .info-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 1.2rem; padding: 1.5rem 2rem; background: var(--paper); border-bottom: 1px solid var(--line); }
  .cards, .footer-grid, .about-marks { grid-template-columns: 1fr; }
  .container, .nav-inner, .hero-inner, .footer-grid, .legal-head, .legal-body, .esc { padding-left: 1.3rem; padding-right: 1.3rem; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .timeline { padding-left: 1.8rem; }
  .tstep::before { left: -1.8rem; }
}

/* --------------------------- A11y --------------------------- */

:focus-visible { outline: 3px solid var(--lamp); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
  [data-rise] { opacity: 1; transform: none; }
  .chip { opacity: 0.55; transform: none; }
  .esc-row .chip:last-child { opacity: 1; border-color: var(--edge); color: var(--lamp); }
  .poa-card { opacity: 1; transform: none; }
  .timeline .tfill, .timeline.in .tfill { height: calc(100% - 12px); }
  .timeline .tstep::before { border-color: var(--lamp); }
}
