/* ═══════════════════════════════════════════════════════════
   LANTECH FOUNDATION CSS — single source of truth
   Imported by every page. Edit here = every page updates.
   ═══════════════════════════════════════════════════════════ */

/* ── TOKENS ───────────────────────────────────────── */
:root {
  --bg:              #FAFAF7;
  --surface:         #FFFFFF;
  --elevated:        #F5F0EA;
  --ink:             #1C1917;
  --txt:             #1C1917;
  --warm-stone:      #78716C;
  --muted:           #78716C;
  --subtle:          #A8A29E;
  --accent:          #E8600A;
  --accent-hover:    #C2500A;
  --accent-dim:      rgba(232,96,10,0.08);
  --accent-border:   rgba(232,96,10,0.22);
  --blue:            #1D4ED8;
  --border:          #E7E0D8;
  --rule:            rgba(28,25,23,0.08);

  --shadow-def:      0 1px 3px rgba(28,25,23,0.08), 0 1px 2px rgba(28,25,23,0.06);
  --shadow-lift:     0 4px 16px rgba(28,25,23,0.10), 0 2px 6px rgba(28,25,23,0.06);
  --shadow-elevated: 0 12px 40px rgba(28,25,23,0.12), 0 4px 12px rgba(28,25,23,0.06);
  --shadow-glow:     0 8px 24px rgba(232,96,10,0.22);

  --ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:         cubic-bezier(0.7, 0, 0.84, 0);

  --container-max:   1200px;
  --content-max:     1200px;
  --container-px:    2rem;
  --section-py:      96px;
}

/* ── RESET ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── LAYOUT ───────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: var(--section-py) 0; }

/* ── TYPOGRAPHY ───────────────────────────────────── */
.display {
  font-family: 'Calistoga', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}
.headline {
  font-family: 'Calistoga', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}
.title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.body-large {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--warm-stone);
}
.label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

/* ── BUTTONS ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.8125rem 1.625rem;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  transition: background 0.15s ease, transform 0.2s var(--ease-out), box-shadow 0.15s ease;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.2s var(--ease-out);
}
.btn-ghost:hover {
  border-color: var(--accent-border);
  background: var(--accent-dim);
  transform: translateY(-2px);
}
.btn-ghost:active { transform: translateY(0); }
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: transparent;
  color: var(--warm-stone);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.5rem 0;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}
.btn-text:hover { color: var(--ink); }
.btn-text:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ── TAG ──────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  padding: 5px 13px;
}
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

/* ── CARD ─────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
.card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

/* ── DIVIDER ──────────────────────────────────────── */
.rule { border: none; border-top: 1px solid var(--rule); }

/* ── REDUCED MOTION ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── FADE-UP ANIMATION ────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s var(--ease-out) both; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.12s; }
.d3 { animation-delay: 0.20s; }
.d4 { animation-delay: 0.28s; }
.d5 { animation-delay: 0.38s; }

/* ── ACCESSIBILITY ────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .container { padding: 0 1.5rem; }
}
@media (max-width: 768px) {
  :root { --section-py: 64px; }
  #nav-links, #nav-cta { display: none !important; }
  #nav-toggle { display: flex !important; }
}
