/* ==========================================================================
   AiPex Brands — design system (light / holographic)
   Owned-instance build artifact. Reads the web-dev KB; never writes to knowledge/**.
   Palette: near-white→soft-lavender base · violet→electric-blue signature gradient ·
   warm near-black ink. WCAG 2.2 AA enforced (contrast verified at build QA).
   Motion: transform/opacity only · prefers-reduced-motion honored · no layout animation.
   ========================================================================== */

/* ---- Fonts (self-hosted, SIL OFL 1.1 — license-clean) -------------------- */
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

/* ---- Tokens -------------------------------------------------------------- */
:root {
  /* surfaces */
  --bg: #FBFAFF;            /* page base — near-white w/ faint lavender */
  --surface: #FFFFFF;       /* raised card */
  --surface-2: #F4F1FC;     /* soft lavender block */
  --surface-3: #ECE7FA;     /* deeper lavender */
  --ink-bg: #141124;        /* dark section device (frames screenshots) */
  --ink-bg-2: #1E1838;

  /* ink */
  --ink: #15131F;           /* primary text on light — ~16:1 on --bg */
  --muted: #56526B;         /* secondary text — ~7.0:1 on --bg (AA body) */
  --muted-2: #6E6A82;       /* tertiary — ~5.2:1 on --bg (AA body) */
  --on-dark: #F4F2FB;       /* text on --ink-bg */
  --on-dark-muted: #C6C1DC; /* muted on --ink-bg — AA */

  /* accent — solid, contrast-safe for body-size links/text on light */
  --accent: #5B43E0;        /* violet — ~5.6:1 on --bg */
  --accent-ink: #4A35C8;    /* hover/active, deeper */
  --on-accent: #FFFFFF;

  /* signature gradients */
  --grad: linear-gradient(120deg, #6E56F0 0%, #4F9CFF 100%);   /* decorative / large */
  --grad-cta: linear-gradient(120deg, #6E56F0 0%, #5566E6 100%); /* CTA — white text ≥4.6:1 both stops */
  --grad-text: linear-gradient(120deg, #6A41E6 0%, #2E7DEE 100%); /* headline accent — ≥3:1 large on light */

  /* lines + focus */
  --line: #E7E2F6;
  --line-2: #D9D2F0;
  --field-border: #8A84A8;  /* form borders — 3:1 UI on --surface */
  --focus: #5B43E0;
  --ok: #1E7F52;
  --danger: #B42449;

  /* type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* scale (fluid) */
  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.92rem);
  --step-0:  clamp(1rem, 0.96rem + 0.22vw, 1.13rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.34rem + 0.8vw, 2.1rem);
  --step-3:  clamp(1.9rem, 1.6rem + 1.5vw, 3rem);
  --step-4:  clamp(2.4rem, 1.9rem + 2.6vw, 4.2rem);

  /* layout */
  --maxw: 1120px;
  --gutter: clamp(1.1rem, 0.6rem + 2.4vw, 2.5rem);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20,17,36,.05), 0 2px 8px rgba(20,17,36,.04);
  --shadow: 0 8px 30px rgba(78,86,240,.10), 0 2px 8px rgba(20,17,36,.05);
  --shadow-lg: 0 30px 80px rgba(78,86,240,.18), 0 8px 24px rgba(20,17,36,.08);
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; color: #fff; }

/* ---- Layout helpers ----------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 1.6rem + 4vw, 4.5rem); }
.eyebrow {
  font-family: var(--font-mono); font-size: var(--step--1); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 .9rem;
}
.eyebrow--dark { color: #B9A9FF; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }
.measure { max-width: 64ch; }
.center { text-align: center; margin-inline: auto; }
.grad-word { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; line-height: 1; cursor: pointer;
  padding: .85rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background-image: var(--grad-cta); color: var(--on-accent); box-shadow: var(--shadow); }
.btn--primary:hover { color: var(--on-accent); box-shadow: var(--shadow-lg); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { color: var(--ink); border-color: var(--accent); }
.btn--on-dark { background: rgba(255,255,255,.08); color: var(--on-dark); border-color: rgba(255,255,255,.28); }
.btn--on-dark:hover { color: #fff; border-color: rgba(255,255,255,.55); }
.btn--lg { padding: 1rem 1.7rem; font-size: var(--step-0); }

/* ---- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 650; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.brand span { font-size: 1.05rem; }
.nav-links { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 550; padding: .5rem .7rem; border-radius: 8px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav-cta { margin-left: .4rem; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; margin-left: auto; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px;
    background: var(--surface); color: var(--ink); cursor: pointer;
  }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .6rem var(--gutter) 1.1rem; margin: 0;
    box-shadow: var(--shadow);
  }
  .nav-links a { padding: .8rem .7rem; }
  .nav-cta { margin: .4rem 0 0; }
  .nav-links[hidden] { display: none; }
}

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; overflow: clip; padding-block: clamp(3rem, 1.5rem + 6vw, 6rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lede { font-size: var(--step-1); color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.hero__note { margin-top: 1.1rem; font-size: var(--step--1); color: var(--muted-2); }
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { order: -1; }
}

/* ======================================================================
   THE PRISM STAGE — the signature moment (KB 08 §3 depth/lighting/materiality,
   §2 glass; advanced-css §1 mesh gradients, §2 backdrop-filter, §5 clip-path,
   §11 SVG). Pure CSS/SVG, NO WebGL → CWV-safe. All motion is the ONE Tier-3
   ambient drift, transform/opacity only, killed under prefers-reduced-motion.
   ====================================================================== */
.stage {
  position: relative; width: 100%; max-width: 520px; margin-inline: auto;
  aspect-ratio: 1 / 1;                 /* reserve space → no CLS */
  --stage-fg: var(--ink); --stage-muted: var(--muted);
}
.stage--dark { --stage-fg: var(--on-dark); --stage-muted: var(--on-dark-muted); }

/* atmosphere: stacked radial blobs = faux mesh "lighting" (advanced-css §1) */
.stage__atmos {
  position: absolute; inset: -8%; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(38% 38% at 50% 30%, rgba(124,92,255,.45), transparent 70%),
    radial-gradient(50% 40% at 68% 64%, rgba(79,156,255,.32), transparent 72%),
    radial-gradient(42% 42% at 30% 70%, rgba(150,90,255,.28), transparent 72%);
  filter: blur(14px);
  animation: stage-pulse 9s ease-in-out infinite;
}
/* dotted sphere/grid — radial dot tile masked into a soft disc */
.stage__sphere {
  position: absolute; inset: 8%; border-radius: 50%; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(110,86,240,.55) 1px, transparent 1.4px);
  background-size: 17px 17px;
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 78%);
          mask-image: radial-gradient(closest-side, #000 60%, transparent 78%);
}
/* faint background data panels (glass rectangles, deep) */
.stage__panel {
  position: absolute; border-radius: 10px; pointer-events: none;
  background: linear-gradient(150deg, rgba(124,92,255,.16), rgba(79,156,255,.06));
  border: 1px solid rgba(124,92,255,.18); backdrop-filter: blur(2px);
}
.stage__panel--a { width: 26%; height: 17%; top: 18%; left: 4%; transform: rotate(-8deg); }
.stage__panel--b { width: 22%; height: 22%; bottom: 24%; right: 3%; transform: rotate(7deg); }

/* vertical light beam from the apex (mask-faded gradient + glow) */
.stage__beam {
  position: absolute; left: 50%; top: -2%; width: 3px; height: 52%; transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(168,140,255,.9), rgba(124,92,255,.35) 40%, transparent);
  filter: blur(.5px); border-radius: 3px;
  animation: stage-beam 6s ease-in-out infinite;
}
.stage__beam::after {
  content: ""; position: absolute; top: -10px; left: 50%; width: 60px; height: 60px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(190,170,255,.8), transparent 70%); filter: blur(4px);
}

/* the glass prism (peak ∧ — NOT a solid letter A) */
.prism { position: absolute; left: 50%; top: 14%; width: 50%; transform: translateX(-50%); z-index: 2; }
.prism svg { width: 100%; height: auto;
  filter: drop-shadow(0 18px 42px rgba(96,72,230,.55)) drop-shadow(0 4px 14px rgba(79,156,255,.5)); }

/* reflective pedestal — stacked ellipses + glowing rings (conic/radial) */
.pedestal { position: absolute; left: 50%; bottom: 12%; width: 64%; transform: translateX(-50%); z-index: 1; }
.pedestal__disc {
  height: 0; padding-bottom: 27%; border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(200,186,255,.85), rgba(124,92,255,.5) 45%, rgba(79,156,255,.16) 75%, transparent),
    conic-gradient(from 0deg, rgba(168,140,255,0), rgba(190,170,255,.6), rgba(79,156,255,0), rgba(190,170,255,.6), rgba(168,140,255,0));
  box-shadow: 0 6px 60px rgba(110,86,240,.6), inset 0 0 34px rgba(200,186,255,.55);
}
.pedestal__ring {
  position: absolute; left: 50%; bottom: -7%; width: 122%; padding-bottom: 32%; height: 0;
  transform: translateX(-50%); border-radius: 50%;
  border: 1.5px solid rgba(150,120,255,.5); box-shadow: 0 0 28px rgba(110,86,240,.45), inset 0 0 18px rgba(150,120,255,.3);
}
.pedestal__ring::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 78%; height: 80%;
  transform: translate(-50%,-50%); border-radius: 50%;
  border: 1px solid rgba(180,155,255,.35);
}

/* floating glassmorphic cards (KB §2 — translucent + blur + scrim; NO metrics) */
.fcard {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: .55rem;
  max-width: 46%; padding: .6rem .8rem; border-radius: 14px;
  font-family: var(--font-mono); font-size: .72rem; line-height: 1.25; font-weight: 500;
  color: var(--ink); letter-spacing: .01em;
  background: color-mix(in srgb, #fff 78%, transparent);
  border: 1px solid rgba(124,92,255,.28);
  box-shadow: 0 10px 30px rgba(76,60,170,.22), 0 2px 6px rgba(20,17,36,.08);
  -webkit-backdrop-filter: blur(8px) saturate(140%); backdrop-filter: blur(8px) saturate(140%);
  animation: stage-float 8s ease-in-out infinite;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .fcard { background: #fff; }   /* opaque fallback keeps AA text contrast */
}
.fcard .fic {
  flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  color: #fff; background-image: var(--grad); box-shadow: 0 2px 8px rgba(110,86,240,.5);
}
.fcard .fic svg { width: 15px; height: 15px; }
.fcard--tl { top: 6%; left: -4%; }
.fcard--tr { top: 26%; right: -6%; animation-delay: -2s; }
.fcard--br { bottom: 22%; right: -2%; animation-delay: -4s; }
.fcard--bl { bottom: 6%; left: -3%; animation-delay: -6s; }
.stage--dark .fcard {
  color: var(--on-dark); background: color-mix(in srgb, #2a2350 72%, transparent);
  border-color: rgba(168,140,255,.34);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .stage--dark .fcard { background: #241e44; }
}

@keyframes stage-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes stage-pulse { 0%,100% { opacity: .9; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes stage-beam  { 0%,100% { opacity: .65; } 50% { opacity: 1; } }

@media (max-width: 540px) {
  .stage { max-width: 340px; }
  .fcard { font-size: .66rem; max-width: 52%; }
}

/* dark "stage panel" that frames the prism on service heroes (mockup parity) */
.stage-frame {
  border-radius: 26px; padding: clamp(1.1rem, 1rem + 2vw, 2.6rem);
  background: radial-gradient(125% 95% at 50% 0%, #2c2356, var(--ink-bg) 72%);
  border: 1px solid rgba(124,92,255,.28);
  box-shadow: var(--shadow-lg); overflow: clip;
}
.stage-frame .stage { max-width: 440px; }

/* ---- Cards / grids ------------------------------------------------------ */
.grid { display: grid; gap: clamp(1rem, .6rem + 1.6vw, 1.6rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.2rem, 1rem + 1vw, 1.8rem);
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin: 0; }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card__kicker { font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent); letter-spacing: .04em; }
.card__more { display: inline-block; margin-top: .9rem; font-weight: 600; color: var(--accent); }
a.card:hover .card__more { color: var(--accent-ink); }

/* numbered method steps */
.steps { counter-reset: step; }
.step__n {
  font-family: var(--font-mono); font-weight: 600; color: var(--accent);
  font-size: var(--step--1); letter-spacing: .08em;
}

/* pillars / feature row */
.pillar h3 { font-size: var(--step-1); }
.pillar p { color: var(--muted); }

/* glass method chips (qualitative only — no metrics) */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.chip {
  font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px;
  padding: .5rem .85rem; box-shadow: var(--shadow-sm);
}

/* ---- Dark section device ------------------------------------------------ */
.section--dark { background: var(--ink-bg); color: var(--on-dark); position: relative; overflow: clip; }
.section--dark h2 { color: #fff; }
.section--dark .lede, .section--dark p { color: var(--on-dark-muted); }
.section--dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(110,86,240,.28), transparent 60%),
    radial-gradient(50% 50% at 0% 100%, rgba(79,156,255,.20), transparent 60%);
}
.section--dark > .wrap { position: relative; }

/* venture / brand row (ownership, no results) */
.brand-row { display: flex; flex-wrap: wrap; gap: .7rem 1.5rem; align-items: center; }
.brand-row li {
  font-family: var(--font-mono); font-size: var(--step-0); letter-spacing: .02em;
  color: var(--on-dark); opacity: .92;
}
.brand-row { list-style: none; padding: 0; margin: 1.2rem 0 0; }

/* ---- CTA band ----------------------------------------------------------- */
.ctaband { text-align: center; }
.ctaband .btn { margin-top: 1.4rem; }

/* ---- Service sub-page hero (the repeatable ∧ template) ------------------ */
.svc-hero { position: relative; overflow: clip; padding-block: clamp(2.6rem, 1.5rem + 5vw, 5rem); }
.svc-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: center; }
.svc-triad { font-size: var(--step-4); line-height: 1.04; }
@media (max-width: 820px) { .svc-hero__grid { grid-template-columns: 1fr; } .svc-hero__stage { order: -1; max-width: 360px; } }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.feature-list li { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; }
.feature-list .tick {
  width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center;
  background: var(--surface-3); color: var(--accent); flex: none; margin-top: .15rem;
}
.feature-list h3 { margin: 0 0 .15rem; font-size: var(--step-0); }
.feature-list p { margin: 0; color: var(--muted); font-size: var(--step--1); }

/* ---- Contact / Calendly ------------------------------------------------- */
/* Calendly inline embed — fixed height reserved up front so the iframe never shifts layout (CLS-safe). */
.calendly-inline-widget { min-width: 280px; height: 700px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
@media (max-width: 820px) { .calendly-inline-widget { height: 820px; } }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 1rem + 3vw, 3rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.noscript-note { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }

/* ---- Prose (privacy/terms) --------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .3rem 0; color: var(--muted); }
.callout { background: var(--surface-2); border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin: 1.4rem 0; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--ink-bg); color: var(--on-dark-muted); padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem 2rem; }
.footer-grid .footer-h { font-size: var(--step--1); line-height: 1.3; text-transform: uppercase; letter-spacing: .1em; color: var(--on-dark); font-family: var(--font-mono); font-weight: 500; margin: 0 0 .8rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .55rem; color: #fff; font-weight: 650; text-decoration: none; }
.footer-brand img { width: 28px; height: 28px; }
.footer-bottom { margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: var(--step--1); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Scroll-reveal (the ONE Tier-2 motion) ------------------------------ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; will-change: transform, opacity; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---- Motion guardrail (non-negotiable) ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, a.card:hover { transform: none; }
}

/* ---- Utilities ---------------------------------------------------------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.stack > * + * { margin-top: 1rem; }
