/* ============================================================
   Chemtelliq — main.css
   Design tokens first, then base, layout, components, utilities.
   Keep component blocks self-contained so they port cleanly to
   a component framework later.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --c-brand:        #0e4c68;
  --c-brand-dark:   #0a374b;
  --c-brand-light:  #e6f0f4;
  --c-accent:       #17b0a0;
  --c-accent-dark:  #0f8577;

  /* Neutrals */
  --c-ink:          #0f1c24;
  --c-body:         #44585f;
  --c-muted:        #6b8087;
  --c-line:         #dde5e8;
  --c-surface:      #ffffff;
  --c-surface-alt:  #f5f9fa;
  --c-surface-deep: #0a2532;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Apple SD Gothic Neo", "Noto Sans KR", Roboto, sans-serif;

  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg:   1.1875rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2rem;
  --fs-3xl:  2.75rem;
  --fs-4xl:  3.5rem;

  /* Space */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;

  /* Other */
  --radius:    10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 28, 36, .06), 0 4px 12px rgba(15, 28, 36, .04);
  --shadow-md: 0 8px 30px rgba(15, 28, 36, .09);
  --maxw:      1160px;
  --header-h:  72px;
  --ease:      cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-body);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--sp-4);
  color: var(--c-ink);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p  { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--c-brand);
  text-decoration: none;
  transition: color .18s var(--ease);
}
a:hover { color: var(--c-accent-dark); }

img, svg { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25em; }
li + li { margin-top: var(--sp-2); }

hr { border: 0; border-top: 1px solid var(--c-line); margin: var(--sp-12) 0; }

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}
.container--narrow { max-width: 780px; }

.section { padding-block: var(--sp-24); }
.section--tight { padding-block: var(--sp-16); }
.section--alt { background: var(--c-surface-alt); }
.section--dark {
  background: var(--c-surface-deep);
  color: rgba(255, 255, 255, .78);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: #fff; }

.grid { display: grid; gap: var(--sp-8); }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.stack > * + * { margin-top: var(--sp-4); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--c-brand);
  color: #fff;
  padding: var(--sp-3) var(--sp-4);
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  color: var(--c-ink);
}
.brand:hover { color: var(--c-ink); }
.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.nav { display: flex; align-items: center; gap: var(--sp-6); }
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list li { margin: 0; }
.nav__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-body);
  padding-block: var(--sp-2);
  position: relative;
}
.nav__link:hover { color: var(--c-ink); }
.nav__link[aria-current="page"] { color: var(--c-brand); font-weight: 600; }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--c-accent);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform .22s var(--ease), opacity .16s linear;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  /* Anchored to the header rather than the viewport: the header's
     backdrop-filter makes it a containing block, so `fixed` here would
     resolve against the header anyway — absolute is the honest version. */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-md);
    padding: var(--sp-4) var(--sp-6) var(--sp-8);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s linear, transform .22s var(--ease), visibility .18s;
  }
  .nav[data-open="true"] { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li + li { border-top: 1px solid var(--c-line); }
  .nav__link { display: block; padding: var(--sp-4) 0; font-size: var(--fs-base); }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav .btn { margin-top: var(--sp-4); width: 100%; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--c-brand); color: #fff; }
.btn--primary:hover { background: var(--c-brand-dark); color: #fff; }

.btn--accent { background: var(--c-accent); color: #04302b; }
.btn--accent:hover { background: var(--c-accent-dark); color: #fff; }

.btn--ghost {
  background: transparent;
  border-color: var(--c-line);
  color: var(--c-ink);
}
.btn--ghost:hover { border-color: var(--c-brand); color: var(--c-brand); }

.btn--on-dark {
  background: transparent;
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}
.btn--on-dark:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(23, 176, 160, .16), transparent 60%),
    radial-gradient(700px 420px at 88% 8%, rgba(14, 76, 104, .14), transparent 62%),
    var(--c-surface-alt);
  border-bottom: 1px solid var(--c-line);
  padding-block: var(--sp-24);
}
.hero__inner {
  display: grid;
  gap: var(--sp-12);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; }
}
.hero h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, var(--fs-4xl));
  margin-bottom: var(--sp-6);
}
.hero__lead {
  font-size: var(--fs-lg);
  color: var(--c-body);
  max-width: 46ch;
  margin-bottom: var(--sp-8);
}
.hero__visual {
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-md);
  padding: var(--sp-8);
}

/* ---- Media figure (autoplaying loop) ---- */
.media-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}
.media-figure video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #fff;
}
.media-figure figcaption {
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-xs);
  color: var(--c-muted);
  line-height: 1.5;
}
.media-figure figcaption strong {
  display: block;
  color: var(--c-ink);
  font-size: var(--fs-sm);
  margin-bottom: 2px;
}

/* Pause control - autoplaying media longer than 5s must be stoppable */
.media-toggle {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(6px);
  color: var(--c-ink);
  cursor: pointer;
  opacity: 0;
  transition: opacity .18s var(--ease), background .18s var(--ease);
}
.media-figure:hover .media-toggle,
.media-toggle:focus-visible { opacity: 1; }
.media-toggle:hover { background: #fff; }
.media-toggle svg { width: 14px; height: 14px; }
.media-toggle .icon-play  { display: none; }
.media-toggle[aria-pressed="true"] .icon-play  { display: block; }
.media-toggle[aria-pressed="true"] .icon-pause { display: none; }

@media (prefers-reduced-motion: reduce) {
  .media-toggle { opacity: 1; }
}

/* ---------- Eyebrow / section head ---------- */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  margin-bottom: var(--sp-3);
}
.section--dark .eyebrow { color: var(--c-accent); }

/* A .card keeps its light surface inside a dark section, so its own headings
   must stay ink - the blanket white-heading rule above would erase them. */
.section--dark .card h1,
.section--dark .card h2,
.section--dark .card h3,
.section--dark .card h4 { color: var(--c-ink); }
.section--dark .card p  { color: var(--c-muted); }

.section-head { max-width: 700px; margin-bottom: var(--sp-12); }
.section-head p { font-size: var(--fs-lg); color: var(--c-muted); }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- Cards ---------- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              border-color .2s var(--ease);
}
.card--link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-brand-light);
}
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--c-brand-light);
  color: var(--c-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
}
.card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.card p  { font-size: var(--fs-sm); color: var(--c-muted); }

/* ---------- Stats ---------- */
.stats { display: grid; gap: var(--sp-8); }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__value {
  font-size: var(--fs-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--c-ink);
  line-height: 1.05;
}
.section--dark .stat__value { color: #fff; }
.stat__label {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  margin-top: var(--sp-2);
}
.section--dark .stat__label { color: rgba(255, 255, 255, .62); }

/* ---------- Pipeline table ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.table th, .table td {
  text-align: left;
  padding: var(--sp-4);
  border-bottom: 1px solid var(--c-line);
  vertical-align: middle;
}
.table thead th {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
  border-bottom-width: 2px;
}
.table tbody tr:hover { background: var(--c-surface-alt); }
.table td:first-child { font-weight: 600; color: var(--c-ink); }

.phase {
  display: inline-block;
  height: 8px;
  border-radius: 4px;
  background: var(--c-brand-light);
  width: 100%;
  min-width: 120px;
  position: relative;
  overflow: hidden;
}
.phase::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress, 25%);
  background: linear-gradient(90deg, var(--c-brand), var(--c-accent));
  border-radius: 4px;
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
  background: var(--c-brand-light);
  color: var(--c-brand);
}
.tag--accent { background: rgba(23, 176, 160, .14); color: var(--c-accent-dark); }

/* ---------- Modality explainer rows ----------
   Labelled diagrams need width to stay legible, so each modality gets a row:
   figure on one side, the explanation on the other. */
.explainer { display: grid; gap: var(--sp-8); }

.explainer__row {
  display: grid;
  gap: var(--sp-8);
  align-items: center;
  padding-block: var(--sp-8);
  border-top: 1px solid var(--c-line);
  margin: 0;
}
.explainer__row:first-child { border-top: 0; padding-top: 0; }

@media (min-width: 880px) {
  .explainer__row { grid-template-columns: 1.35fr 1fr; gap: var(--sp-12); }
  .explainer__row--flip .explainer__media { order: 2; }
}

.explainer__media {
  display: grid;
  gap: var(--sp-4);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
}
.explainer__media img { width: 100%; height: auto; display: block; }

.explainer__body h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-3);
}
.explainer__body p { color: var(--c-muted); }
.explainer__body .tag { margin-bottom: var(--sp-3); }

/* ---------- Pipeline stage chart ----------
   Single series: every program sits at the same stage, so the message is carried by
   the stage axis, not by varying bar lengths. One hue, and no legend - a legend with
   a single swatch would only restate the heading. Bar #0e4c68 on white = 9.3:1. */
.pipeline-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.pipeline {
  min-width: 660px;
  --label-w: 210px;
  --stages: 5;
}

.pipeline__head,
.pipeline__row {
  display: grid;
  grid-template-columns: var(--label-w) 1fr;
  align-items: center;
  gap: var(--sp-4);
}

.pipeline__axis { display: grid; grid-template-columns: repeat(var(--stages), 1fr); }
.pipeline__axis span {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-muted);
  padding: 0 var(--sp-2) var(--sp-3);
  border-left: 1px solid var(--c-line);
  line-height: 1.3;
}
.pipeline__head { border-bottom: 2px solid var(--c-line); }

.pipeline__row { padding-block: var(--sp-4); border-bottom: 1px solid var(--c-line); }
.pipeline__row:hover { background: var(--c-surface-alt); }

.pipeline__name { line-height: 1.35; }
.pipeline__name strong {
  display: block;
  color: var(--c-ink);
  font-size: var(--fs-base);
  font-weight: 600;
}
.pipeline__name span { font-size: var(--fs-xs); color: var(--c-muted); }

/* The track is the runway still ahead; hairlines mark the stage boundaries. */
.pipeline__track {
  position: relative;
  height: 14px;
  background-image: linear-gradient(to right, var(--c-line) 1px, transparent 1px);
  background-size: calc(100% / var(--stages)) 100%;
}
.pipeline__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--stage, 1) * 100% / var(--stages));
  background: var(--c-brand);
  border-radius: 0 4px 4px 0;   /* square at the baseline, rounded data-end */
}

.pipeline__note { font-size: var(--fs-xs); color: var(--c-muted); margin-top: var(--sp-6); }

/* Table view - values never depend on the graphic alone */
.pipeline-table { margin-top: var(--sp-6); }
.pipeline-table summary {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-brand);
  cursor: pointer;
  padding: var(--sp-2) 0;
}
.pipeline-table summary:hover { color: var(--c-accent-dark); }
.pipeline-table[open] summary { margin-bottom: var(--sp-4); }

@media (max-width: 640px) { .pipeline { --label-w: 150px; } }

/* ---------- Page header ---------- */
.page-head {
  background:
    radial-gradient(700px 320px at 20% -30%, rgba(23, 176, 160, .14), transparent 60%),
    var(--c-surface-alt);
  border-bottom: 1px solid var(--c-line);
  padding-block: var(--sp-16);
}
.page-head p { font-size: var(--fs-lg); color: var(--c-muted); max-width: 60ch; }

.breadcrumb {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  margin-bottom: var(--sp-4);
}
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-brand); }

/* ---------- Prose ---------- */
.prose h2 { margin-top: var(--sp-12); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--sp-8); }
.prose ul { color: var(--c-body); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 var(--sp-8) var(--sp-8);
  border-left: 2px solid var(--c-line);
  margin: 0;
}
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-accent);
  border: 2px solid var(--c-surface);
}
.timeline__year {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  margin-bottom: var(--sp-1);
}

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--sp-5); }
.field { display: grid; gap: var(--sp-2); }
.field label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-ink);
}
.field .req { color: #c2410c; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--c-ink);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px rgba(14, 76, 104, .12);
}
.field__hint { font-size: var(--fs-xs); color: var(--c-muted); }
.field--row { display: grid; gap: var(--sp-5); }
@media (min-width: 640px) { .field--row { grid-template-columns: 1fr 1fr; } }

/* Honeypot - off-screen rather than display:none, which some bots skip */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: var(--fs-xs);
  color: var(--c-muted);
}
.form-status {
  font-size: var(--fs-sm);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius);
  display: none;
}
.form-status[data-state="ok"] {
  display: block;
  background: rgba(23, 176, 160, .12);
  color: var(--c-accent-dark);
}
.form-status[data-state="error"] {
  display: block;
  background: #fef2f2;
  color: #b91c1c;
}

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(135deg, var(--c-brand-dark), var(--c-brand) 55%, var(--c-accent-dark));
  color: rgba(255, 255, 255, .85);
  border-radius: var(--radius-lg);
  padding: var(--sp-12);
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { max-width: 56ch; margin-inline: auto; margin-bottom: var(--sp-8); }
.cta .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-surface-deep);
  color: rgba(255, 255, 255, .62);
  font-size: var(--fs-sm);
  padding-block: var(--sp-16) var(--sp-8);
}
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: #fff; }
.site-footer h4 {
  color: #fff;
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.footer__grid {
  display: grid;
  gap: var(--sp-8);
  margin-bottom: var(--sp-12);
}
@media (min-width: 720px) {
  .footer__grid { grid-template-columns: 1.7fr 1fr 1.3fr; }
}
.footer__brand .brand { color: #fff; margin-bottom: var(--sp-4); }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin: 0 0 var(--sp-2); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  font-size: var(--fs-xs);
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-8 { margin-top: var(--sp-8); }
.muted { color: var(--c-muted); }
.lead { font-size: var(--fs-lg); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

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

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .cta { display: none; }
  body { color: #000; }
}
