/* =====================================================================
   Tabotec — public site styles
   Redesign rolled in from approved v3 mockup.

   Direction:
     · Palette sampled directly from the logo: midnight navy #102030 +
       signal cyan #50e0e0.
     · Inter for both display and body (heavy weights + tight tracking
       carry the display effect). No serif. No italics.
     · JetBrains Mono for instrumentation micro-labels.
     · Square (4 px) buttons, deep navy primary → cyan-deep on hover.
     · Asymmetric numbered tile grid, with optional inverted dark tile.
     · Dark navy footer with an ambient TABOTEC wordmark stamp.

   Class names are kept compatible with the existing HTML where possible
   so the per-page edits stay small.
   ===================================================================== */

:root {
  /* surfaces */
  --bg:        #f4f6fb;
  --bg-elev:   #ffffff;
  --bg-deep:   #0a1422;
  --bg-darker: #060e1a;

  /* ink */
  --ink:       #102030;
  --ink-2:     #2a3a52;
  --muted:     #5a6a82;
  --muted-on-dark: #8da0bd;

  /* signal cyan — sampled from the logo strokes */
  --cyan:      #50e0e0;
  --cyan-2:    #2bc7d6;
  --cyan-deep: #1f7a8c;   /* AA-safe on white for links, buttons */
  --cyan-soft: #d6f5f7;
  --cyan-glow: rgba(80, 224, 224, 0.22);

  /* lines */
  --line:      #e2e8f1;
  --line-2:    #cdd6e3;
  --line-dark: #1c2942;

  /* state colors */
  --ok:  #2bc78a;
  --err: #e35a52;

  --radius:    18px;
  --radius-sm: 10px;
  --radius-btn: 4px;
  --shadow:    0 1px 2px rgba(16, 32, 48, 0.05), 0 14px 38px rgba(16, 32, 48, 0.09);
  --shadow-lg: 0 2px 6px rgba(16, 32, 48, 0.06), 0 36px 100px rgba(16, 32, 48, 0.16);
  --max: 1240px;

  /* one display family — Inter does everything */
  --display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:    "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01", "ss03";
}

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

/* ============================================================
   Type — Inter at heavy weight + tight tracking
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.04;
}
h1 { font-size: clamp(3rem, 8.4vw, 6.6rem); line-height: 0.98; letter-spacing: -0.038em; font-weight: 800; }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); letter-spacing: -0.03em; }
h3 { font-size: 1.5rem; letter-spacing: -0.018em; line-height: 1.2; }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; color: var(--ink-2); font-size: 1.02rem; }
p.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 60ch; line-height: 1.5; }

/* Accent word treatment (replaces the old italic moment) */
.hl {
  color: var(--cyan-deep);
  position: relative;
  white-space: nowrap;
}
.hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 0.085em;
  background: var(--cyan);
  opacity: 0.55;
  border-radius: 2px;
}

a {
  color: var(--cyan-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
a:hover { color: var(--ink); border-bottom-color: var(--cyan); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}
.container.narrow { max-width: 860px; }

/* ============================================================
   Mono micro-type used for instrumentation labels
   ============================================================ */
.mono-label {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.mono-label.cyan { color: var(--cyan-deep); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, transparent 30%, var(--cyan) 50%, transparent 70%, transparent 100%);
  opacity: 0.35;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  border: 0;
}
.logo:hover { border: 0; color: var(--ink); }

/* New transparent, tight-cropped logo PNG fills this height */
.logo-img { height: 80px; width: auto; display: block; }

/* Old text-wordmark "T" mark — left in the stylesheet for backwards
   compatibility while we migrate footers, but the new design uses the
   image logo in both header and footer. */
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ink), var(--cyan-deep));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  color: var(--ink-2);
  border: 0;
  font-weight: 500;
  font-size: 0.96rem;
  font-family: var(--sans);
}
.nav-links a:hover { color: var(--ink); border: 0; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff !important;
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  border: 0 !important;
  font-weight: 500;
  font-size: 0.96rem;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}
.nav-cta::after { content: "→"; transition: transform 0.15s; }
.nav-cta:hover { background: var(--cyan-deep); }
.nav-cta:hover::after { transform: translateX(4px); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

@media (max-width: 820px) {
  .logo-img { height: 60px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 92px;
    right: 16px;
    left: 16px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 22px;
    box-shadow: var(--shadow);
  }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(72px, 10vw, 132px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.hero > .container { position: relative; z-index: 1; }

/* Split control-panel hero, used on index */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 72px;
  align-items: end;
}
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero h1 { max-width: 14ch; margin-bottom: 0.5em; }
.hero p.lead { max-width: 52ch; margin-top: 0; }
.hero-cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Eyebrow above hero H1 (used on interior pages instead of the readout) */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  background: var(--cyan-soft);
  border: 1px solid color-mix(in srgb, var(--cyan) 35%, transparent);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}

/* Ambient hero numeral (decorative) */
.hero-numeral {
  position: absolute;
  right: -8px;
  top: 32px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(10rem, 22vw, 22rem);
  line-height: 1;
  color: var(--cyan);
  opacity: 0.055;
  z-index: 0;
  pointer-events: none;
  letter-spacing: -0.06em;
}

/* ============================================================
   Readout panel — used as hero companion on landing
   ============================================================ */
.readout {
  background: var(--bg-deep);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 26px 28px 28px;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.7;
  color: #b8c5dc;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.readout::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.6;
}
.readout-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
.readout-head .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(80, 224, 224, 0.18);
}
.readout-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 4px 0;
}
.readout-row .k { color: var(--muted-on-dark); }
.readout-row .v { color: #e8f3ff; }
.readout-row .v.ok { color: var(--cyan); }
.readout-row .v.warn { color: #f0c94c; }
.readout-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.readout .cursor::after {
  content: "▍";
  color: var(--cyan);
  margin-left: 6px;
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Pulse used in mono labels with a live indicator */
.pulse {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px var(--cyan-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(80, 224, 224, 0.22); }
  50%      { box-shadow: 0 0 0 8px rgba(80, 224, 224, 0.06); }
}

/* ============================================================
   Buttons — square corners, ink default, cyan-deep on hover
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.98rem;
  border: 1px solid transparent;
  padding: 14px 26px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.05s, box-shadow 0.2s;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 0 6px 18px rgba(16, 32, 48, 0.22);
}
.btn-primary:hover {
  background: var(--cyan-deep);
  border-color: var(--cyan-deep);
  box-shadow: 0 10px 30px rgba(31, 122, 140, 0.36);
}

.btn-accent {
  background: var(--cyan);
  color: var(--ink);
  border-color: var(--cyan);
}
.btn-accent:hover {
  background: var(--cyan-2);
  border-color: var(--cyan-2);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--bg-elev); border-color: var(--ink); }

.btn-arrow::after { content: "→"; transition: transform 0.15s; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ============================================================
   Sections
   ============================================================ */
section { padding: clamp(80px, 9vw, 128px) 0; position: relative; }
section.tight { padding: clamp(48px, 6vw, 72px) 0; }
section.alt {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
section.dark { background: var(--bg-deep); color: #cfd6e1; }
section.dark h1, section.dark h2, section.dark h3, section.dark h4 { color: #fff; }
section.dark p { color: var(--muted-on-dark); }
section.dark .hl { color: var(--cyan); }
section.dark .hl::after { background: var(--cyan); opacity: 0.6; }

.section-eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin: 0 0 12px;
}

/* ============================================================
   Card grid
   ============================================================ */
.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid.cols-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card.linked { cursor: pointer; }
.card.linked:hover {
  border-color: var(--cyan-deep);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  background: var(--cyan-soft);
  border: 1px solid color-mix(in srgb, var(--cyan) 30%, transparent);
  padding: 4px 11px;
  border-radius: 999px;
  align-self: flex-start;
}

.card h3 { margin: 4px 0 0; }
.card p { margin: 0; color: var(--ink-2); }
.card .more {
  margin-top: auto;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  border: 0;
  padding-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card .more::after { content: "→"; transition: transform 0.15s; color: var(--cyan-deep); }
.card.linked:hover .more::after { transform: translateX(4px); }

/* Inverted dark card (use one per grid for visual rhythm) */
.card.dark {
  background: var(--bg-deep);
  border-color: var(--line-dark);
  color: #e8f1ff;
}
.card.dark h3 { color: #fff; }
.card.dark p { color: var(--muted-on-dark); }
.card.dark .tag {
  color: var(--cyan);
  background: rgba(80, 224, 224, 0.10);
  border-color: rgba(80, 224, 224, 0.30);
}
.card.dark .more { color: #fff; }
.card.dark.linked:hover {
  border-color: var(--cyan);
  box-shadow: 0 18px 40px rgba(10, 20, 34, 0.5);
}
.card.dark::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.55;
}

/* Optional mono "01 / NAME" prefix inside a card */
.card-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--cyan-deep);
}
.card.dark .card-num { color: var(--cyan); }

/* ============================================================
   Feature row (split copy + art panel)
   ============================================================ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.feature-row.flip { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) {
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; gap: 36px; }
  .feature-row.flip > .feature-art { order: -1; }
}
.feature-art {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.feature-art::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  opacity: 0.55;
}

/* ============================================================
   Checklist
   ============================================================ */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.checklist li {
  position: relative;
  padding-left: 38px;
  color: var(--ink-2);
  font-size: 1.02rem;
  font-family: var(--sans);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 22px;
  height: 1px;
  background: var(--cyan-deep);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 16px;
  top: calc(0.5em - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

/* ============================================================
   Stats
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.025em;
}
.stat-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ============================================================
   Language pills (used on languages page)
   ============================================================ */
.lang-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink-2);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
}
.lang-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.lang-pill.next .dot { background: var(--cyan-deep); }
.lang-pill.future .dot { background: var(--line-2); }

/* ============================================================
   Forms
   ============================================================ */
.form { display: grid; gap: 18px; max-width: 600px; }
.form .row { display: grid; gap: 18px; }
.form .row.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form .row.cols-2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}
.field .hint { color: var(--muted); font-size: 0.85rem; }
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}
.field textarea { resize: vertical; min-height: 120px; }

.form-status {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.95rem;
  display: none;
}
.form-status.ok  { display: block; background: rgba(43, 199, 138, 0.10); color: #1f8e62; border: 1px solid rgba(43, 199, 138, 0.30); }
.form-status.err { display: block; background: rgba(227, 90, 82, 0.10); color: #b8312e; border: 1px solid rgba(227, 90, 82, 0.30); }

/* Compact inline waitlist form */
.inline-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  flex-wrap: wrap;
}
.inline-form input {
  flex: 1 1 240px;
  font: inherit;
  color: var(--ink);
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-btn);
  padding: 12px 18px;
}
.inline-form input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-glow); }

/* ============================================================
   Callout / quote
   ============================================================ */
.callout {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.callout .who { color: var(--muted); font-size: 0.9rem; margin-top: 10px; font-family: var(--mono); letter-spacing: 0.06em; }

/* ============================================================
   Two-column body
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

/* ============================================================
   Code/spec panel
   ============================================================ */
.spec {
  background: var(--bg-deep);
  color: #e8eef7;
  border-radius: var(--radius);
  padding: 26px 28px;
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.7;
  overflow: auto;
  border: 1px solid var(--line-dark);
  position: relative;
}
.spec::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.55;
}
.spec .k { color: var(--cyan); }
.spec .v { color: #cfe1ff; }
.spec .c { color: #8aa1c1; }

/* ============================================================
   Page header (interior pages)
   ============================================================ */
.page-head {
  padding: clamp(64px, 9vw, 112px) 0 clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-head .crumbs {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.page-head .crumbs a { color: var(--muted); }
.page-head .crumbs a:hover { color: var(--cyan-deep); }

/* ============================================================
   Footer — dark with ambient TABOTEC wordmark
   ============================================================ */
.site-footer {
  background: var(--bg-darker);
  color: #cfd6e1;
  padding: 80px 0 36px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.5;
}
.site-footer a { color: #fff; border: 0; }
.site-footer a:hover { color: var(--cyan); border: 0; }

.ambient-wordmark {
  position: absolute;
  left: 50%;
  bottom: -6%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(8rem, 22vw, 22rem);
  line-height: 0.9;
  color: var(--cyan);
  opacity: 0.045;
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 44px;
  position: relative;
  z-index: 1;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 {
  color: #fff;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-grid ul a { font-size: 0.96rem; }

.footer-logo {
  height: 80px;
  width: auto;
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  margin-top: 56px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted-on-dark);
  font-size: 0.78rem;
  font-family: var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* ============================================================
   Misc utilities
   ============================================================ */
.kicker { color: var(--muted); font-size: 0.95rem; font-family: var(--mono); letter-spacing: 0.06em; }
.divider { height: 1px; background: var(--line); margin: 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--ink-2);
}
.badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

/* Skip link */
.skip { position: absolute; left: -9999px; top: -9999px; }
.skip:focus {
  left: 16px; top: 16px;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: var(--shadow);
}
