@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,ital,wght@9..144,0,300..600;9..144,1,300..600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Light, ink-on-paper base shared by every page. Each page's own <style>
     block redefines --bg-0/--bg-1/--bg-2/--line/--line-strong/--ink-soft/
     --muted and its own accent tokens to its real brand values. */
  --ink: #0A1F1C;
  --ink-soft: #3D4D49;
  --muted: #7A8A85;
  --bg-0: #FFFFFF;
  --bg-1: #F7F5F0;
  --bg-2: #EFEBE2;
  --line: #DDD8CC;
  --line-strong: #CFC9B8;
  --surface: #FFFFFF;

  --accent: var(--ink);
  --accent-soft: rgba(10,31,28,.08);

  --display: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Inter', system-ui, sans-serif;

  --container: 1120px;
  --radius-btn: 4px;
  --radius-card: 6px;
  --shadow-rest: 0 1px 2px rgba(10,31,28,.06);
  --shadow-hover: 0 8px 24px -12px rgba(10,31,28,.18);
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg-0);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: 16px;
}
@media (min-width: 640px) { body { font-size: 17px; } }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.08; color: var(--ink); text-wrap: balance; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
img { display: block; max-width: 100%; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }
em, .em { font-style: italic; font-weight: 400; color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ---------- Eyebrow / section header ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--accent); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px,3.6vw,42px); margin: 12px 0 12px; }
.section-head p { font-size: 16.5px; color: var(--ink-soft); line-height: 1.6; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .section { padding: 64px 0; } }
.bg-0 { background: var(--bg-0); }
.bg-1 { background: var(--bg-1); }
.text-muted { color: var(--ink-soft); }
.text-center { text-align: center; }

/* ---------- Nav (shared markup; colors/accent set per page) ---------- */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: color-mix(in srgb, var(--bg-0) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.nav__brand { display: flex; align-items: center; gap: 10px; flex: none; }
.nav__logo { height: 30px; width: auto; mix-blend-mode: multiply; }
.nav__links { display: none; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.nav__links a { position: relative; padding: 4px 0; color: var(--ink-soft); }
.nav__links a:hover { color: var(--ink); }
.nav__links a.active { color: var(--ink); border-bottom: 2px solid var(--accent); }
.nav__links .ext { font-size: 12px; color: var(--muted); }
@media (min-width: 900px) { .nav__links { display: flex; } }
.nav__burger { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; }
@media (min-width: 900px) { .nav__burger { display: none; } }
.nav__burger span, .nav__burger span::before, .nav__burger span::after { content: ''; display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; }
.nav__burger span::before { position: absolute; top: -6px; width: 18px; height: 1.5px; background: inherit; }
.nav__burger span::after { position: absolute; top: 6px; width: 18px; height: 1.5px; background: inherit; }

.sheet { position: fixed; inset: 0; z-index: 199; background: var(--bg-0); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.sheet.open { opacity: 1; pointer-events: auto; }
.sheet a { font-family: var(--display); font-size: 24px; color: var(--ink); }
.sheet__close { position: absolute; top: 20px; right: 20px; width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); font-size: 18px; }
.sheet__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; width: 80%; max-width: 320px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--radius-btn); font-weight: 500; font-size: 14.5px; white-space: nowrap; transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.btn-primary { background: var(--ink); color: var(--bg-1); }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-primary .arrow { transition: transform .2s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-ghost, .btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover, .btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }

/* ---------- Cards ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-rest);
  position: relative;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.glass.lift:hover, a.glass:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--accent); }

/* ---------- Chips / pills / tags ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-1); color: var(--ink-soft); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }

/* ---------- Reveal (quiet fade/rise, respects reduced motion) ---------- */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-group .reveal:nth-child(1) { transition-delay: .02s; }
.reveal-group .reveal:nth-child(2) { transition-delay: .06s; }
.reveal-group .reveal:nth-child(3) { transition-delay: .10s; }
.reveal-group .reveal:nth-child(4) { transition-delay: .14s; }
.reveal-group .reveal:nth-child(5) { transition-delay: .18s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(10,31,28,.45); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); max-width: 600px; width: 100%; max-height: 86vh; overflow-y: auto; padding: 32px 28px; transform: translateY(12px); transition: transform .3s var(--ease); position: relative; box-shadow: var(--shadow-hover); }
.modal-overlay.open .modal-panel { transform: translateY(0); }
.modal-panel__close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); font-size: 16px; }
.modal-panel h3 { font-size: 22px; margin: 10px 0 12px; }
.modal-panel p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 14px; }
.modal-panel ul { list-style: none; margin-bottom: 18px; }
.modal-panel li { font-size: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; color: var(--ink-soft); }
.modal-panel li::before { content: '—'; color: var(--accent); flex: none; }
@media (max-width: 560px) { .modal-overlay { align-items: flex-end; padding: 0; } .modal-panel { border-radius: var(--radius-card) var(--radius-card) 0 0; max-height: 88vh; } }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; }
.field input, .field textarea, .field select { width: 100%; height: 46px; padding: 0 14px; border-radius: var(--radius-btn); background: var(--bg-0); border: 1px solid var(--line); color: var(--ink); font-family: inherit; font-size: 14.5px; }
.field textarea { height: 90px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-row { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-0); font-size: 13.5px; color: var(--ink-soft); transition: all .2s; }
.seg button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.hp-field { position: absolute; left: -9999px; }

/* ---------- Accordion ---------- */
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__item:first-child { border-top: 1px solid var(--line); }
.accordion__q { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 15.5px; text-align: left; }
.accordion__q::after { content: '+'; font-size: 20px; color: var(--accent); flex: none; }
.accordion__item.open .accordion__q::after { content: '–'; }
.accordion__a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.accordion__a p { padding-bottom: 18px; color: var(--ink-soft); font-size: 15px; line-height: 1.6; max-width: 62ch; }

/* ---------- Footer (shared markup) ---------- */
footer { background: var(--bg-1); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 24px; mix-blend-mode: multiply; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { font-size: 14px; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.footer-back { font-size: 14px; color: var(--muted); margin-bottom: 20px; display: inline-block; }
.footer-back:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
