/* Startup Revitalization Studio — styles
   Structure: tokens → base → layout → header → buttons → sections → form → footer → motion */

/* ---------- Tokens ---------- */
:root {
  --bg: #fbfaf7;
  --bg-tint: #eff4f0;
  --surface: #ffffff;
  --text: #0d1411;
  --muted: #4a5651;
  --line: #e2e5df;
  --line-strong: #c9cfc8;
  --accent: #1d5a43;
  --accent-hover: #154835;
  --on-accent: #ffffff;
  --accent-soft: #e2eee7;

  /* Deep "ink" bands: hero, experience, final CTA */
  --ink: #0e2620;
  --ink-2: #153429;
  --ink-line: rgba(255, 255, 255, .12);
  --on-ink: #f3f5f1;
  --on-ink-muted: #b0c3ba;

  /* Warm signal colour, used sparingly on ink */
  --signal: #e3a84b;
  --signal-hover: #edb963;
  --on-signal: #1b1408;

  --danger: #a33b2c;
  --shadow: 0 1px 2px rgba(13, 20, 17, .04), 0 10px 28px -14px rgba(13, 20, 17, .14);
  --shadow-lg: 0 2px 4px rgba(13, 20, 17, .04), 0 26px 50px -22px rgba(13, 20, 17, .26);

  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --max: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --r: 14px;
  --r-sm: 9px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f0d; --bg-tint: #0f1613; --surface: #131b17; --text: #eceee9; --muted: #a3b0a9;
    --line: #212b26; --line-strong: #33413a; --accent: #7cc3a2; --accent-hover: #98d3b7;
    --on-accent: #0a1410; --accent-soft: #15261e; --ink: #0f241d; --ink-2: #173229;
    --signal: #e8b25b; --danger: #e58b7a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 26px 50px -22px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0f0d; --bg-tint: #0f1613; --surface: #131b17; --text: #eceee9; --muted: #a3b0a9;
  --line: #212b26; --line-strong: #33413a; --accent: #7cc3a2; --accent-hover: #98d3b7;
  --on-accent: #0a1410; --accent-soft: #15261e; --ink: #0f241d; --ink-2: #173229;
  --signal: #e8b25b; --danger: #e58b7a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 26px 50px -22px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .25s ease, color .25s ease;
}
h1, h2, h3 { font-weight: 650; line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); letter-spacing: -.035em; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -.028em; }
h3 { font-size: 1.2rem; letter-spacing: -.012em; line-height: 1.3; font-weight: 600; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--accent); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-underline-offset: 3px; }
ul, ol { padding: 0; margin: 0; list-style: none; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tint { background: var(--bg-tint); }
.sec-head { max-width: 780px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1.2rem; font-weight: 650;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); line-height: 1.6; max-width: 40em; }
.sec-head .lead { margin-top: 1rem; }

.split { display: grid; gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; } .split.center { align-items: center; } }

/* ---------- Ink bands ---------- */
.ink { background: var(--ink); color: var(--on-ink); position: relative; isolation: isolate; overflow: hidden; }
.ink h1, .ink h2, .ink h3 { color: var(--on-ink); }
.ink h1 em, .ink h2 em { color: var(--signal); }
.ink .eyebrow { color: var(--signal); }
.ink .lead, .ink p { color: var(--on-ink-muted); }
.pattern::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--ink-line) 1px, transparent 1px), linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 64px 64px; background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 85%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 85%);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.3) blur(10px); -webkit-backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-mark rect { fill: var(--accent); }
.logo-mark path { fill: none; stroke: var(--on-accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.logo span { font-weight: 650; font-size: 1rem; letter-spacing: -.01em; line-height: 1.1; }
.logo small { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--muted); padding: 8px 14px; border-radius: 999px; transition: color .2s, background-color .2s; }
.nav a:not(.btn):hover { color: var(--text); background: var(--bg-tint); }
.nav a[aria-current="page"]:not(.btn) { color: var(--text); background: var(--bg-tint); }
.nav .btn { margin-left: 10px; }

.icon-btn { appearance: none; background: none; border: 1px solid var(--line); color: var(--muted); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: inline-grid; place-items: center; transition: color .2s, border-color .2s; }
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-grid; }
  .nav {
    position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 22px;
    display: none; gap: 0; box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none !important; }
  .nav .btn { margin: 18px 0 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: .98rem; font-weight: 600; line-height: 1;
  padding: 15px 24px; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--on-accent); text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.btn-sm { padding: 11px 18px; font-size: .9rem; }
.btn-signal { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.btn-signal:hover { background: var(--signal-hover); border-color: var(--signal-hover); }
.btn-outline-light { background: transparent; color: var(--on-ink); border-color: rgba(255,255,255,.28); }
.btn-outline-light:hover { background: rgba(255,255,255,.06); border-color: var(--on-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); border-color: var(--text); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.2rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 36px; font-weight: 600; color: var(--accent); text-decoration: none; transition: gap .2s; }
.link-arrow:hover { gap: 12px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(72px, 10vw, 136px) 0 clamp(72px, 9vw, 120px); }
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.3fr .9fr; gap: 72px; } }
.hero h1 { max-width: 11.5em; }
.hero .lead { margin-top: 1.6rem; font-size: clamp(1.1rem, 1.7vw, 1.3rem); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: .9rem; }
.trust span { display: inline-flex; align-items: center; gap: 9px; }
.trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }

.route-card { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 18px; padding: 10px 28px 14px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.route-card .card-title { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--signal); font-weight: 650; margin: 18px 0 6px; }
.route-card li { display: grid; grid-template-columns: 30px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--ink-line); }
.route-card li:first-child { border-top: 0; }
.route-card .n { width: 30px; height: 30px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--signal) 55%, transparent); color: var(--signal); display: grid; place-items: center; font-size: .82rem; font-weight: 650; }
.route-card strong { display: block; color: var(--on-ink); font-weight: 600; margin-bottom: 2px; }
.route-card .d { color: var(--on-ink-muted); font-size: .93rem; line-height: 1.5; }

/* ---------- Page head (inner pages) ---------- */
.page-head { padding: clamp(64px, 9vw, 112px) 0 clamp(56px, 7vw, 88px); }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 14em; }
.page-head .lead { margin-top: 1.4rem; }

/* ---------- Chips (situations) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .98rem; font-weight: 500; transition: border-color .2s, transform .2s;
}
.chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); flex: none; }
.chips li:hover { border-color: var(--accent); transform: translateY(-1px); }

/* ---------- Experience ---------- */
.exp-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .exp-grid { grid-template-columns: auto 1fr; gap: 96px; } }
.big-num { font-family: var(--serif); font-size: clamp(7.5rem, 17vw, 13.5rem); line-height: .78; letter-spacing: -.05em; color: var(--signal); }
.big-num small { display: block; font-family: var(--sans); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--on-ink-muted); margin-top: 26px; line-height: 1.5; font-weight: 600; }
.facts { display: grid; gap: 20px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--ink-line); }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts strong { display: block; color: var(--on-ink); margin-bottom: 2px; }
.facts span { color: var(--on-ink-muted); font-size: .94rem; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards.four { grid-template-columns: repeat(4, 1fr); } .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.card h3 { font-size: 1.1rem; margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .96rem; line-height: 1.55; }
.ic { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 20px; }
.ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 36px; margin-top: 56px; counter-reset: step; position: relative; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .steps::before { content: ""; position: absolute; top: 24px; left: 24px; right: calc(25% - 48px); height: 2px; background: var(--line-strong); }
}
.steps li { position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step); position: relative; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); display: grid; place-items: center;
  font-weight: 650; font-size: 1.05rem; margin-bottom: 22px; box-shadow: 0 0 0 8px var(--bg);
}
.section-tint .steps li::before { box-shadow: 0 0 0 8px var(--bg-tint); }
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--muted); font-size: .98rem; }

/* ---------- Scenarios (from → to) ---------- */
.cases { display: grid; gap: 20px; margin-top: 48px; }
@media (min-width: 880px) { .cases { grid-template-columns: 1fr 1fr; } }
.case {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px;
  display: flex; flex-direction: column; gap: 20px; transition: transform .25s ease, box-shadow .25s ease;
}
.case:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.case .tag { font-size: .74rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); font-weight: 650; margin: 0 0 8px; }
.case h3 { font-size: 1.35rem; margin: 0; }
.ft { display: grid; gap: 8px; margin-top: auto; }
.ft > div { border-radius: 11px; padding: 15px 18px; font-size: .97rem; line-height: 1.5; }
.ft b { display: block; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 5px; }
.ft .from { background: var(--bg-tint); color: var(--muted); }
.ft .from b { color: var(--muted); }
.ft .to { background: var(--accent-soft); color: var(--text); }
.ft .to b { color: var(--accent); }
.ft .arrow { justify-self: start; margin-left: 20px; color: var(--accent); line-height: 0; }
.ft .arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.note { font-size: .9rem; color: var(--muted); margin-top: 24px; }

/* ---------- Audience ---------- */
.audience { display: grid; gap: 32px; margin-top: 48px; }
@media (min-width: 640px) { .audience { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .audience { grid-template-columns: repeat(4, 1fr); } }
.audience li { border-top: 2px solid var(--accent); padding-top: 22px; }
.audience h3 { font-size: 1.15rem; }
.audience p { color: var(--muted); font-size: .97rem; }

/* ---------- Checklist ---------- */
.check-list li { position: relative; padding: 16px 0 16px 38px; border-bottom: 1px solid var(--line); color: var(--muted); }
.check-list li:first-child { border-top: 1px solid var(--line); }
.check-list li strong { color: var(--text); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 18px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); }
.check-list li::after { content: ""; position: absolute; left: 7px; top: 24px; width: 8px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* ---------- Final CTA ---------- */
.cta-grid { display: grid; gap: 32px; align-items: end; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: 1fr auto; gap: 64px; } }
.cta-grid h2 { max-width: 15em; }
.cta-grid .btn-row { margin-top: 0; }

/* ---------- How it works: phases ---------- */
.phase-list { display: grid; gap: 20px; }
.phase {
  display: grid; gap: 18px 56px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow);
}
@media (min-width: 880px) { .phase { grid-template-columns: 280px 1fr; } }
.phase .num { font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--accent); margin-bottom: 14px; }
.phase h2 { font-size: 1.6rem; margin-bottom: .3em; }
.phase .meta { color: var(--muted); font-size: .96rem; }
.phase p { color: var(--muted); }
.receive { margin-top: 20px; background: var(--accent-soft); border-radius: 11px; padding: 16px 20px; color: var(--text) !important; font-size: .98rem; }
.receive b { color: var(--accent); }

/* ---------- Use cases: detail ---------- */
.case-list { display: grid; gap: 24px; }
.case-detail { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow); }
.case-detail h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 24px; }
.case-cols { display: grid; gap: 14px; }
@media (min-width: 920px) { .case-cols { grid-template-columns: 1fr 1fr 1.15fr; } }
.col { border-radius: 12px; padding: 20px; font-size: .98rem; line-height: 1.55; }
.col b { display: block; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 8px; }
.col.start { background: var(--bg-tint); color: var(--muted); }
.col.look { border: 1px solid var(--line); color: var(--muted); }
.col.way { background: var(--accent-soft); }
.col.way b { color: var(--accent); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: start; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 4fr 7fr; } }
.next-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .97rem; }
.next-steps li:last-child { border-bottom: 1px solid var(--line); }
.next-steps .n { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 650; font-size: .85rem; }
.next-steps strong { display: block; color: var(--text); }
.exp-note { margin-top: 28px; background: var(--ink); border-radius: var(--r); padding: 26px; color: var(--on-ink-muted); font-size: .96rem; }
.exp-note .yrs { display: block; font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--signal); margin-bottom: 10px; }
.aside-note { font-size: .9rem; color: var(--muted); margin-top: 24px; }

.form-card { scroll-margin-top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-lg); }
.form-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card .sub { color: var(--muted); font-size: .96rem; margin-bottom: 28px; }

form { display: grid; gap: 20px; }
.row { display: grid; gap: 20px; }
@media (min-width: 640px) { .row.two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: .92rem; font-weight: 600; margin-bottom: 8px; }
.field .opt { color: var(--muted); font-weight: 400; }
.field .hint { display: block; font-size: .85rem; color: var(--muted); margin-top: 7px; line-height: 1.5; }

input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 13px 15px; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
select {
  appearance: none; padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 21px) 54%, calc(100% - 15px) 54%; background-size: 6px 6px; background-repeat: no-repeat;
}
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background-color: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.error { color: var(--danger); font-size: .86rem; margin-top: 6px; }
.error:empty { display: none; }


.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 4px; }
.form-foot small { color: var(--muted); font-size: .85rem; max-width: 30em; }
.form-error { color: var(--danger); border: 1px solid var(--danger); border-radius: var(--r-sm); padding: 12px 14px; font-size: .95rem; }
.form-error:empty { display: none; }

.success:focus { outline: none; }
.success .check { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 22px; }
.success .check svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.success h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.success p { color: var(--muted); }
.success[hidden], form[hidden] { display: none; }

/* ---------- Prose (privacy) ---------- */
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: .93rem; color: var(--muted); }
.footer-grid { display: grid; gap: 32px 48px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 5fr 3fr 4fr; } }
.site-footer .footer-title { font-size: .74rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text); margin: 0 0 14px; font-weight: 650; }
.site-footer li { padding: 4px 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-blurb { margin-top: 16px; max-width: 26em; }
.legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .83rem; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (scripting: none) { .reveal { opacity: 1; transform: none; } }

/* ---------- Cookie consent ---------- */
.consent {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; width: calc(100% - 32px); max-width: 520px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 20px 22px; animation: consent-in .4s ease both;
}
.consent p { font-size: .92rem; line-height: 1.55; color: var(--muted); margin: 0 0 16px; }
.consent p strong { color: var(--text); }
.consent-actions { display: flex; gap: 10px; }
.consent-actions .btn { flex: 1; }
@keyframes consent-in { from { opacity: 0; transform: translateY(8px); } }
.linklike { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.linklike:hover { color: var(--text); text-decoration-color: currentColor; }
