/* ============================================================
   Atypisch — Components v2 (fresh)
   Built from scratch, not derived from the existing theme.
   Editorial > template. Lines and type do the work, not cards.
   ============================================================ */


:root {
  /* Component-system-specific tokens (additive — do not collide) */
  --ax2-rule:        #1f2937;
  --ax2-rule-soft:   #e5e7eb;
  --ax2-ink:         #0a0f1a;
  --ax2-ink-soft:    #4b5563;
  --ax2-ink-faint:   #9ca3af;
  --ax2-surface:     #ffffff;
  --ax2-paper:       #fafaf7;     /* warm off-white, replaces #f4f6f8 */
  --ax2-tint:        #f1efe9;     /* slightly warmer alt slab */
  --ax2-accent:      #14b8a6;     /* single accent, used sparingly */
  --ax2-accent-warm: #d81b60;     /* the other end of the gradient */

  --ax2-radius-xs: 4px;
  --ax2-radius-sm: 6px;
  --ax2-radius:    10px;
  --ax2-radius-lg: 16px;

  --ax2-shadow-card:  0 1px 0 rgba(15,23,42,0.04), 0 6px 24px -16px rgba(15,23,42,0.18);
  --ax2-shadow-hover: 0 1px 0 rgba(15,23,42,0.06), 0 18px 40px -22px rgba(15,23,42,0.28);
}

/* ──────────────────────────────────────────────────────────
   1. RESET & PAGE
   ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--atyp-font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ax2-ink-soft);
  background: var(--ax2-paper);
  -webkit-font-smoothing: antialiased;
}

/* ──────────────────────────────────────────────────────────
   2. TYPE — bigger, bolder, tighter than the old system
   ────────────────────────────────────────────────────────── */
.ax2-display {
  font-family: var(--atyp-font-hero);          /* Inter */
  font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--ax2-ink);
  margin: 0;
}
.ax2-h1 {
  font-family: var(--atyp-font-hero);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--ax2-ink);
  margin: 0;
}
.ax2-h2 {
  font-family: var(--atyp-font-heading);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.018em;
  line-height: 1.1;
  color: var(--ax2-ink);
  margin: 0;
}
.ax2-h3 {
  font-family: var(--atyp-font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.012em;
  color: var(--ax2-ink);
  margin: 0;
}
.ax2-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--ax2-ink-soft);
  max-width: 42rem;
  margin: 0;
}
.ax2-body { font-size: 1rem; line-height: 1.6; color: var(--ax2-ink-soft); margin: 0; }
.ax2-small { font-size: 0.875rem; line-height: 1.5; color: var(--ax2-ink-soft); margin: 0; }

/* Editorial number marker — used as section anchor */
.ax2-marker {
  font-family: var(--atyp-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ax2-ink-faint);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ax2-marker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.ax2-marker--right::before { display: none; }
.ax2-marker--right::after  {
  content: "";
  width: 18px; height: 1px;
  background: currentColor; display: inline-block;
}

/* Single underline accent that uses the brand gradient */
.ax2-rule-gradient {
  height: 2px;
  background: var(--atyp-logo-gradient);
  border-radius: 2px;
  width: 56px;
}

/* ──────────────────────────────────────────────────────────
   3. LAYOUT
   ────────────────────────────────────────────────────────── */
.ax2-shell { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.ax2-section { padding: 96px 0; border-top: 1px solid var(--ax2-rule-soft); }
.ax2-section:first-of-type { border-top: 0; }
.ax2-section--paper { background: var(--ax2-paper); }
.ax2-section--tint  { background: var(--ax2-tint); }
.ax2-section--ink   { background: var(--ax2-ink); color: rgba(255,255,255,0.78); }
.ax2-section--ink .ax2-h1,
.ax2-section--ink .ax2-h2,
.ax2-section--ink .ax2-h3,
.ax2-section--ink .ax2-display { color: #fff; }
.ax2-section--ink .ax2-lead   { color: rgba(255,255,255,0.7); }
.ax2-section--ink .ax2-marker { color: rgba(255,255,255,0.5); }

.ax2-section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 48px;
  max-width: 56rem;
}
@media (min-width: 900px) {
  .ax2-section__head--split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; align-items: end; }
}

/* ──────────────────────────────────────────────────────────
   4. BUTTONS — rectangular (10px radius), confident, no pill
   ────────────────────────────────────────────────────────── */
.ax2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--ax2-radius);
  font-family: var(--atyp-font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ax2-ink);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.ax2-btn:focus-visible { outline: 2px solid var(--ax2-accent); outline-offset: 3px; }

.ax2-btn--solid {
  background: var(--ax2-ink);
  color: #fff;
  border-color: var(--ax2-ink);
}
.ax2-btn--solid:hover { background: #1a2332; color: #fff; }

.ax2-btn--outline {
  background: transparent;
  color: var(--ax2-ink);
  border-color: var(--ax2-rule);
}
.ax2-btn--outline:hover { background: var(--ax2-ink); color: #fff; }

.ax2-btn--ghost {
  background: transparent;
  color: var(--ax2-ink);
  border-color: var(--ax2-rule-soft);
}
.ax2-btn--ghost:hover { border-color: var(--ax2-rule); }

.ax2-btn--accent {
  background: var(--ax2-accent);
  color: #051a18;
  border-color: var(--ax2-accent);
}
.ax2-btn--accent:hover { background: #0d9488; color: #fff; border-color: #0d9488; }

/* On-dark variants */
.ax2-section--ink .ax2-btn--solid   { background: #fff; color: var(--ax2-ink); border-color: #fff; }
.ax2-section--ink .ax2-btn--solid:hover { background: rgba(255,255,255,0.92); }
.ax2-section--ink .ax2-btn--outline { color: #fff; border-color: rgba(255,255,255,0.3); }
.ax2-section--ink .ax2-btn--outline:hover { border-color: #fff; background: rgba(255,255,255,0.04); }

/* Inline link — minimal, with hover underline that grows from left */
.ax2-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--atyp-font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ax2-ink);
  text-decoration: none;
  padding-bottom: 3px;
}
.ax2-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.16);
  transform-origin: left;
  transition: transform 220ms cubic-bezier(0.2, 0.75, 0.2, 1);
}
.ax2-link:hover::after { transform: scaleX(1); }
.ax2-link__arrow {
  display: inline-block;
  transition: transform 220ms cubic-bezier(0.2, 0.75, 0.2, 1);
}
.ax2-link:hover .ax2-link__arrow { transform: translateX(4px); }

/* ──────────────────────────────────────────────────────────
   5. TAGS / META
   ────────────────────────────────────────────────────────── */
.ax2-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 5px;
  border: 1px solid var(--ax2-rule-soft);
  border-radius: 999px;
  font-family: var(--atyp-font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ax2-ink-soft);
  background: transparent;
}
.ax2-tag--ink   { background: var(--ax2-ink); color: #fff; border-color: var(--ax2-ink); }
.ax2-tag--paper { background: var(--ax2-paper); }
.ax2-tag--dot::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--ax2-accent);
}
.ax2-tag--dot.ax2-tag--live::before  { background: var(--ax2-accent); }
.ax2-tag--dot.ax2-tag--beta::before  { background: #f59e0b; }
.ax2-tag--dot.ax2-tag--soon::before  { background: var(--ax2-ink-faint); }

/* ──────────────────────────────────────────────────────────
   6. INPUT — bottom rule only, no boxes
   ────────────────────────────────────────────────────────── */
.ax2-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ax2-field__label {
  font-family: var(--atyp-font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ax2-ink-faint);
}
.ax2-input,
.ax2-textarea {
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--ax2-rule);
  background: transparent;
  padding: 8px 0;
  font-family: var(--atyp-font-body);
  font-size: 1.05rem;
  color: var(--ax2-ink);
  border-radius: 0;
}
.ax2-input::placeholder { color: var(--ax2-ink-faint); }
.ax2-input:focus,
.ax2-textarea:focus { outline: 0; border-bottom-color: var(--ax2-accent); }
.ax2-textarea { resize: vertical; min-height: 96px; }

.ax2-select {
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--ax2-rule);
  background: transparent
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%231f2937' d='M6 8 0 0h12z'/></svg>")
    no-repeat right 4px center;
  padding: 8px 24px 8px 0;
  font-family: var(--atyp-font-body);
  font-size: 1.05rem;
  color: var(--ax2-ink);
  border-radius: 0;
}

/* ──────────────────────────────────────────────────────────
   7. CARDS — flatter, more typographic, less drop-shadow
   ────────────────────────────────────────────────────────── */

/* 7a. Product card — wordmark forward, no gradient header */
.ax2-product {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 32px;
  background: var(--ax2-surface);
  border: 1px solid var(--ax2-rule-soft);
  border-radius: var(--ax2-radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  min-height: 320px;
}
.ax2-product:hover {
  border-color: var(--ax2-rule);
  transform: translateY(-2px);
  box-shadow: var(--ax2-shadow-hover);
}
.ax2-product__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.ax2-product__brand {
  font-family: var(--atyp-font-hero);
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: -0.025em;
  color: var(--ax2-ink);
  line-height: 1;
}
.ax2-product__domain {
  font-family: var(--atyp-font-mono);
  font-size: 0.75rem;
  color: var(--ax2-ink-faint);
}
.ax2-product__pitch {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ax2-ink-soft);
  margin: 0 0 28px;
}
.ax2-product__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--ax2-rule-soft);
  font-family: var(--atyp-font-mono);
  font-size: 0.75rem;
  color: var(--ax2-ink-faint);
}

/* 7b. Editorial card — for projects and posts */
.ax2-edcard {
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.ax2-edcard__cover {
  aspect-ratio: 4 / 3;
  border-radius: var(--ax2-radius);
  background: var(--ax2-tint);
  position: relative;
  overflow: hidden;
  transition: transform 320ms cubic-bezier(0.2, 0.75, 0.2, 1);
}
.ax2-edcard:hover .ax2-edcard__cover { transform: scale(1.01); }
.ax2-edcard__cover--ink    { background: linear-gradient(135deg, #0a0f1a 0%, #1e293b 100%); }
.ax2-edcard__cover--teal   { background: linear-gradient(135deg, #0d3f3a 0%, #134e4a 100%); }
.ax2-edcard__cover--violet { background: linear-gradient(135deg, #2d1b4e 0%, #4c1d95 100%); }
.ax2-edcard__cover--rose   { background: linear-gradient(135deg, #4c0519 0%, #9d174d 100%); }
.ax2-edcard__cover--amber  { background: linear-gradient(135deg, #451a03 0%, #b45309 100%); }
.ax2-edcard__meta {
  display: flex;
  gap: 14px;
  font-family: var(--atyp-font-mono);
  font-size: 0.72rem;
  color: var(--ax2-ink-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ax2-edcard__title {
  font-family: var(--atyp-font-heading);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.018em;
  line-height: 1.15;
  color: var(--ax2-ink);
  margin: 0;
  transition: color 160ms ease;
}
.ax2-edcard:hover .ax2-edcard__title { color: #0d9488; }
.ax2-edcard__excerpt {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ax2-ink-soft);
  margin: 0;
}

/* 7c. Compact list row — for changelog / sidebar lists */
.ax2-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--ax2-rule-soft);
  text-decoration: none;
  color: inherit;
}
.ax2-row:last-child { border-bottom: 1px solid var(--ax2-rule-soft); }
.ax2-row:hover .ax2-row__title { color: #0d9488; }
.ax2-row__date {
  font-family: var(--atyp-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ax2-ink-faint);
}
.ax2-row__title {
  font-family: var(--atyp-font-heading);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ax2-ink);
  margin: 0 0 2px;
  letter-spacing: -0.01em;
  transition: color 160ms ease;
}
.ax2-row__excerpt {
  font-size: 0.92rem;
  color: var(--ax2-ink-soft);
  margin: 0;
}
.ax2-row__tag {
  font-family: var(--atyp-font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ax2-ink-faint);
}

/* 7d. Stat block — single number, the type does the work */
.ax2-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px 0;
  border-top: 1px solid var(--ax2-rule-soft);
}
.ax2-stat__value {
  font-family: var(--atyp-font-hero);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 0.9;
  color: var(--ax2-ink);
}
.ax2-stat__label {
  font-size: 0.92rem;
  color: var(--ax2-ink-soft);
}

/* ──────────────────────────────────────────────────────────
   8. SERVICE / FEATURE — no icon tile, just a numbered line
   ────────────────────────────────────────────────────────── */
.ax2-service {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  padding: 32px 0;
  border-top: 1px solid var(--ax2-rule);
}
.ax2-service__num {
  font-family: var(--atyp-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ax2-ink-faint);
  letter-spacing: 0.06em;
}
.ax2-service__title {
  font-family: var(--atyp-font-heading);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.018em;
  color: var(--ax2-ink);
  margin: 0;
}
.ax2-service__body {
  font-size: 1rem;
  color: var(--ax2-ink-soft);
  line-height: 1.55;
  margin: 0;
  max-width: 30rem;
}

/* ──────────────────────────────────────────────────────────
   9. QUOTE — pull-quote, not a card. Big type, thin rule.
   ────────────────────────────────────────────────────────── */
.ax2-quote {
  display: grid;
  gap: 24px;
  padding: 48px 0;
  border-top: 1px solid var(--ax2-rule);
  border-bottom: 1px solid var(--ax2-rule);
  margin: 0;
}
.ax2-quote__text {
  font-family: var(--atyp-font-hero);
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--ax2-ink);
  margin: 0;
  text-wrap: balance;
}
.ax2-quote__text::before { content: "“"; color: var(--ax2-ink-faint); margin-right: 4px; }
.ax2-quote__text::after  { content: "”"; color: var(--ax2-ink-faint); margin-left: 4px; }
.ax2-quote__cite {
  font-family: var(--atyp-font-mono);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ax2-ink-soft);
  letter-spacing: 0.04em;
}

/* ──────────────────────────────────────────────────────────
   10. DATA TABLE — index/list pattern, no card chrome
   ────────────────────────────────────────────────────────── */
.ax2-index {
  width: 100%;
  border-collapse: collapse;
}
.ax2-index thead th {
  font-family: var(--atyp-font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ax2-ink-faint);
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--ax2-rule);
}
.ax2-index tbody td {
  padding: 18px 0;
  border-bottom: 1px solid var(--ax2-rule-soft);
  font-size: 0.95rem;
  color: var(--ax2-ink-soft);
  vertical-align: top;
}
.ax2-index tbody tr:hover td { background: rgba(15,23,42,0.015); }
.ax2-index tbody td:first-child {
  font-family: var(--atyp-font-heading);
  font-weight: 600;
  color: var(--ax2-ink);
}

/* ──────────────────────────────────────────────────────────
   11. NAVIGATION — line-anchored
   ────────────────────────────────────────────────────────── */
.ax2-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ax2-paper);
  border-bottom: 1px solid var(--ax2-rule-soft);
  backdrop-filter: saturate(140%) blur(8px);
}
.ax2-topbar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}
.ax2-topbar__brand img { height: 22px; width: auto; display: block; }
.ax2-topbar__nav {
  display: flex;
  gap: 28px;
  justify-self: center;
}
.ax2-topbar__nav a {
  font-family: var(--atyp-font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ax2-ink-soft);
  text-decoration: none;
  letter-spacing: -0.005em;
  position: relative;
  padding: 4px 0;
}
.ax2-topbar__nav a.is-current { color: var(--ax2-ink); }
.ax2-topbar__nav a.is-current::after {
  content: "";
  position: absolute;
  inset: auto 0 -19px 0;
  height: 1px;
  background: var(--ax2-ink);
}

/* ──────────────────────────────────────────────────────────
   12. HERO PATTERNS
   ────────────────────────────────────────────────────────── */

/* 12a. Display hero — type does the work, plus a single gradient rule */
.ax2-hero-type {
  padding: 120px 0 80px;
}
.ax2-hero-type__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.ax2-hero-type__copy {
  display: grid;
  gap: 28px;
  max-width: 64rem;
}

/* 12b. Split hero — heavy left, supporting facts right */
.ax2-hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 120px 0 80px;
  align-items: end;
}
@media (min-width: 960px) {
  .ax2-hero-split { grid-template-columns: 1.4fr 1fr; gap: 64px; }
}
.ax2-hero-split__facts {
  display: grid;
  gap: 0;
}

/* 12c. Dark hero — kept (homepage), but tightened */
.ax2-hero-dark {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at 18% 22%, rgba(255,255,255,0.10), transparent 55%),
              linear-gradient(120deg, #061018 0%, #0a2528 32%, #0d5c52 58%, #164e63 88%, #3f2756 100%);
  background-size: 170% 170%;
  animation: ax2-heroDrift 9s ease-in-out infinite alternate;
  color: #fff;
  padding: 140px 0 96px;
}
.ax2-hero-dark::before {
  content: "";
  position: absolute;
  inset: -25%;
  background: radial-gradient(circle, rgba(142,36,170,0.22) 0%, rgba(142,36,170,0) 65%);
  transform: translate3d(-10%, 0, 0);
  animation: ax2-heroGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.ax2-hero-dark > .ax2-shell { position: relative; z-index: 1; }
.ax2-hero-dark__title {
  font-family: var(--atyp-font-hero);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  margin: 0 0 24px;
  max-width: 32ch;
}
.ax2-hero-dark__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: rgba(241,245,249,0.78);
  max-width: 42rem;
  line-height: 1.5;
  margin: 0 0 36px;
}
.ax2-hero-dark__eyebrow {
  font-family: var(--atyp-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(45,212,191,0.95);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ax2-hero-dark__eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: rgba(45,212,191,0.6);
}
.ax2-hero-dark .ax2-btn--accent { background: #2dd4bf; color: #050f14; border-color: #2dd4bf; }
.ax2-hero-dark .ax2-btn--accent:hover { background: #5eead4; border-color: #5eead4; }
.ax2-hero-dark .ax2-btn--ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.ax2-hero-dark .ax2-btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.04); }

@keyframes ax2-heroDrift {
  0%   { background-position: 0% 45%; }
  100% { background-position: 100% 55%; }
}
@keyframes ax2-heroGlow {
  0%   { transform: translate3d(-12%, -2%, 0) scale(0.96); }
  100% { transform: translate3d(14%, 3%, 0) scale(1.14); }
}
@media (prefers-reduced-motion: reduce) {
  .ax2-hero-dark, .ax2-hero-dark::before { animation: none; }
}

/* ──────────────────────────────────────────────────────────
   13. UTILITY
   ────────────────────────────────────────────────────────── */
.ax2-grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.ax2-grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.ax2-grid-4 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 720px) {
  .ax2-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .ax2-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .ax2-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .ax2-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .ax2-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Strip with hairline between columns (for hero facts) */
.ax2-fact-strip {
  display: grid;
  grid-template-columns: 1fr;
}
.ax2-fact {
  padding: 20px 0;
  border-top: 1px solid var(--ax2-rule-soft);
}
.ax2-fact:first-child { border-top: 1px solid var(--ax2-rule); }
.ax2-fact:last-child  { border-bottom: 1px solid var(--ax2-rule); }
.ax2-fact__k {
  font-family: var(--atyp-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ax2-ink-faint);
  margin-bottom: 4px;
}
.ax2-fact__v {
  font-family: var(--atyp-font-heading);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ax2-ink);
}
.ax2-section--ink .ax2-fact   { border-color: rgba(255,255,255,0.12); }
.ax2-section--ink .ax2-fact__k { color: rgba(255,255,255,0.5); }
.ax2-section--ink .ax2-fact__v { color: #fff; }

/* Footnote / spec strip on dark */
.ax2-spec-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  font-family: var(--atyp-font-mono);
  font-size: 0.78rem;
  color: rgba(241,245,249,0.65);
}

/* Demo card frame (used in the kit reference page only) */
.kit-demo {
  background: var(--ax2-surface);
  border: 1px solid var(--ax2-rule-soft);
  border-radius: var(--ax2-radius-lg);
  padding: 36px;
}
.kit-demo--ink { background: var(--ax2-ink); }
.kit-demo--tint { background: var(--ax2-tint); }
.kit-spec {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--ax2-rule-soft);
  font-family: var(--atyp-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--ax2-ink-faint);
  text-transform: uppercase;
}
