/* =========================================================================
   Ainvil — public marketing site
   Design direction: a forge, taken literally. Ainvil's own positioning is a
   "sealed perimeter" — a contained, controlled space where raw work gets
   struck into something verified. Two accents carry that tension all the
   way through: EMBER (heat, labor, the Builder's strike) against CONTRACT
   (cold precision, the interface contract, the mechanical gate). Committed
   single dark theme, deliberately — a forge doesn't have a light mode.
   ========================================================================= */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

:root {
  /* ---- surface: oxidized steel, warm-biased neutrals ---- */
  --steel-950: #0b0a09;
  --steel-900: #131110;
  --steel-850: #1a1714;
  --steel-800: #211d19;
  --steel-700: #2d2721;
  --steel-600: #453b31;
  --steel-500: #6b5e50;
  --steel-300: #a89c8c;
  --steel-100: #ece6dc;
  --paper: #f6f1e7;

  /* ---- accents ---- */
  --ember: #ff5a1f;
  --ember-hot: #ffb347;
  --ember-dim: #b8380c;
  --contract: #5fd4ff;
  --contract-deep: #1a8fb8;

  /* ---- semantic ---- */
  --ok: #6fce8a;

  --bg: var(--steel-950);
  --surface: var(--steel-900);
  --surface-raised: var(--steel-850);
  --border: var(--steel-700);
  --border-soft: rgba(236, 230, 220, 0.08);
  --text: var(--steel-100);
  --text-dim: var(--steel-300);
  --text-faint: var(--steel-500);

  --font-display: "Unbounded", ui-sans-serif, system-ui, sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shell-w: 1200px;
  --radius: 14px;
  --radius-sm: 8px;

  --shadow-lift: 0 1px 2px rgba(0,0,0,0.4), 0 20px 48px -12px rgba(0,0,0,0.6);
}

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 520px at 82% -6%, rgba(255,90,31,0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at -10% 30%, rgba(95,212,255,0.08), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.shell {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
  color: var(--paper);
}

p { margin: 0; color: var(--text-dim); }
a { color: inherit; text-decoration: none; }

code, .mono { font-family: var(--font-mono); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ember); color: #17110c;
  padding: 0.75rem 1.25rem; z-index: 200; border-radius: 0 0 8px 0;
  font-family: var(--font-mono); font-size: 0.85rem;
}
.skip-link:focus { left: 0; }

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

/* ---------------------------------------------------------------------- */
/* Buttons                                                                 */
/* ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(.2,.9,.3,1.3), box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--ember {
  background: linear-gradient(155deg, var(--ember-hot), var(--ember) 55%, var(--ember-dim));
  color: #1a0f08;
  box-shadow: 0 8px 24px -6px rgba(255,90,31,0.55);
}
.btn--ember:hover { box-shadow: 0 12px 32px -6px rgba(255,90,31,0.7); }

.btn--ghost {
  background: transparent;
  border-color: var(--border-soft);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--contract); color: var(--contract); }

.btn--outline-contract {
  background: rgba(95,212,255,0.06);
  border-color: rgba(95,212,255,0.35);
  color: var(--contract);
}
.btn--outline-contract:hover { background: rgba(95,212,255,0.12); }

.btn--contract {
  background: linear-gradient(155deg, #8fe6ff, var(--contract) 55%, var(--contract-deep));
  color: #052733;
  box-shadow: 0 8px 24px -6px rgba(95,212,255,0.4);
}
.btn--contract:hover { box-shadow: 0 12px 32px -6px rgba(95,212,255,0.55); }

.btn--lg { padding: 0.95rem 1.9rem; font-size: 1rem; }

/* ---------------------------------------------------------------------- */
/* Header                                                                  */
/* ---------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(11,10,9,0.72);
  border-bottom: 1px solid var(--border-soft);
}
.site-header__inner {
  display: flex; align-items: center; gap: 2rem;
  height: 68px;
}
.wordmark { display: inline-flex; align-items: center; gap: 0.55rem; }
.wordmark__mark {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(155deg, var(--ember-hot), var(--ember-dim));
  color: #180f08;
}
.wordmark--small .wordmark__mark { width: 26px; height: 26px; }
.wordmark__text {
  font-family: var(--font-display); font-weight: 800; letter-spacing: 0.04em;
  font-size: 1.05rem; color: var(--paper);
}

.site-nav { display: flex; gap: 1.75rem; margin-left: 0.5rem; }
.site-nav a {
  font-size: 0.9rem; color: var(--text-dim); font-weight: 500;
  position: relative; padding: 0.25rem 0;
  transition: color 0.2s ease;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--ember); transition: right 0.25s ease;
}
.site-nav a:hover { color: var(--paper); }
.site-nav a:hover::after { right: 0; }

.site-header__actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 40px; height: 40px; border-radius: 8px;
  background: transparent; border: 1px solid var(--border-soft);
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

.mobile-nav {
  display: none; flex-direction: column; gap: 0.25rem;
  padding: 0.75rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
  border-top: 1px solid var(--border-soft);
}
.mobile-nav a { padding: 0.65rem 0; font-size: 0.95rem; color: var(--text-dim); }
.mobile-nav .btn { margin-top: 0.5rem; justify-content: center; }

@media (max-width: 920px) {
  .site-nav, .site-header__actions { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav.is-open { display: flex; }
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em;
  color: var(--ember-hot); text-transform: uppercase;
  padding: 0.4rem 0.8rem; border: 1px solid rgba(255,90,31,0.35);
  border-radius: 999px; background: rgba(255,90,31,0.08);
  margin-bottom: 1.6rem;
}
.hero__eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ember);
  box-shadow: 0 0 0 3px rgba(255,90,31,0.25);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero__title {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  margin-bottom: 1.4rem;
}
.hero__title .lit { color: var(--ember-hot); }
.hero__title .cool { color: var(--contract); }

.hero__lede {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  max-width: 46ch;
  color: var(--text-dim);
  margin-bottom: 2.1rem;
}
.hero__lede strong { color: var(--paper); font-weight: 600; }

.hero__ctas { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.hero__ctas .fine-print { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint); }

.hero__stats { display: flex; gap: clamp(1.5rem, 4vw, 2.75rem); flex-wrap: wrap; }
.stat b {
  display: block; font-family: var(--font-display); font-size: 1.55rem; color: var(--paper);
}
.stat span { font-size: 0.8rem; color: var(--text-faint); }

.hero__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 560px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: radial-gradient(ellipse at 60% 30%, rgba(255,90,31,0.12), transparent 65%), var(--steel-900);
  box-shadow: var(--shadow-lift);
}
/* Explicit position/inset rather than relying on height:auto — a canvas
   child's height:100% can't resolve against an auto-height parent (circular
   reference), so it silently falls back to the canvas's default intrinsic
   2:1 ratio instead of actually filling the square stage. */
#forge-canvas { position: absolute; inset: 0; }
.hero__stage canvas { display: block; width: 100% !important; height: 100% !important; touch-action: pan-y; }
.hero__stage-caption {
  position: absolute; left: 1.1rem; bottom: 1.1rem; right: 1.1rem;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-family: var(--font-mono); font-size: 0.72rem; color: rgba(246,241,231,0.55);
  pointer-events: none;
}
.hero__stage-caption b { color: var(--contract); font-weight: 500; }

.hero__stage-noscript {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-mono); color: var(--text-faint); font-size: 0.85rem; text-align: center; padding: 2rem;
}

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__stage { max-height: 420px; order: -1; }
}

/* Persona-page hero: single column, centered, no 3D stage */
.hero--persona .hero__inner { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; text-align: center; }
.hero--persona .hero__eyebrow { margin-left: auto; margin-right: auto; }
.hero--persona .hero__lede { margin-left: auto; margin-right: auto; }
.hero--persona .hero__ctas { justify-content: center; }
.hero--persona .hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 620px; margin: 0 auto; text-align: left; }
@media (max-width: 640px) { .hero--persona .hero__stats { grid-template-columns: 1fr; gap: 1.25rem; max-width: 320px; } }

/* ---------------------------------------------------------------------- */
/* Section shell                                                          */
/* ---------------------------------------------------------------------- */
section { position: relative; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.76rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--contract);
  margin-bottom: 1rem;
}
.section-head { max-width: 62ch; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 0.9rem; }
.section-head p { font-size: 1.02rem; }

.divider {
  height: 1px; border: none;
  background: linear-gradient(90deg, transparent, var(--border-soft) 20%, var(--border-soft) 80%, transparent);
  margin: 0;
}

/* ---------------------------------------------------------------------- */
/* Trust strip                                                            */
/* ---------------------------------------------------------------------- */
.trust-strip { padding: 1.75rem 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.trust-strip .shell {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; justify-content: space-between;
}
.trust-strip__item {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-faint);
}
.trust-strip__item svg { flex-shrink: 0; color: var(--contract); }

/* ---------------------------------------------------------------------- */
/* Pipeline (how it works)                                                */
/* ---------------------------------------------------------------------- */
.pipeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.pipeline__step {
  background: var(--surface); padding: 1.5rem 1.15rem; position: relative;
  border-right: 1px solid var(--border);
  transition: background 0.25s ease;
}
.pipeline__step:last-child { border-right: none; }
.pipeline__step:hover { background: var(--surface-raised); }
.pipeline__num {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--ember-hot); margin-bottom: 0.9rem; display: block;
}
.pipeline__step h4 { font-size: 0.95rem; font-family: var(--font-body); font-weight: 700; color: var(--paper); margin-bottom: 0.45rem; }
.pipeline__step p { font-size: 0.8rem; line-height: 1.5; }
.pipeline__step::after {
  content: "";
  position: absolute; top: 1.7rem; right: -1px; width: 10px; height: 10px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 50%;
  transform: translateX(50%);
}
.pipeline__step:last-child::after { display: none; }

@media (max-width: 980px) {
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pipeline__step { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .pipeline__step::after { display: none; }
}
@media (max-width: 560px) { .pipeline { grid-template-columns: 1fr; } }
.pipeline--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px) { .pipeline--5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pipeline--5 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* FAQ                                                                     */
/* ---------------------------------------------------------------------- */
.faq-list { display: grid; gap: 0.75rem; max-width: 760px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.2rem 1.3rem;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.05rem 0;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem; color: var(--paper);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 1.2rem; color: var(--text-faint); flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 1.15rem; font-size: 0.92rem; max-width: 62ch; }

/* ---------------------------------------------------------------------- */
/* Pillars ("why Ainvil")                                                 */
/* ---------------------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pillar-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
}
.pillar-card__icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: rgba(255,90,31,0.1); color: var(--ember-hot); margin-bottom: 1.1rem;
}
.pillar-card h3 { font-family: var(--font-body); font-size: 1.08rem; color: var(--paper); margin-bottom: 0.6rem; }
.pillar-card p { font-size: 0.9rem; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* Split CTA (Sponsor / Builder)                                          */
/* ---------------------------------------------------------------------- */
.split-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.split-card {
  display: block; border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--border); position: relative; overflow: hidden;
  transition: transform 0.25s cubic-bezier(.2,.8,.3,1.2), border-color 0.25s ease;
}
.split-card:hover { transform: translateY(-4px); }
.split-card__eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 0.9rem; opacity: 0.85;
}
.split-card h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-bottom: 0.7rem; max-width: 22ch; }
.split-card p { font-size: 0.92rem; max-width: 34ch; margin-bottom: 1.5rem; }
.split-card__cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.92rem;
}
.split-card--ember {
  background: linear-gradient(155deg, rgba(255,90,31,0.14), rgba(255,90,31,0.03));
}
.split-card--ember .split-card__eyebrow, .split-card--ember .split-card__cta { color: var(--ember-hot); }
.split-card--ember:hover { border-color: rgba(255,90,31,0.5); }
.split-card--contract {
  background: linear-gradient(155deg, rgba(95,212,255,0.12), rgba(95,212,255,0.02));
}
.split-card--contract .split-card__eyebrow, .split-card--contract .split-card__cta { color: var(--contract); }
.split-card--contract:hover { border-color: rgba(95,212,255,0.5); }
@media (max-width: 700px) { .split-cta { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* Role mini grid (compact, non-interactive)                              */
/* ---------------------------------------------------------------------- */
.role-mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.role-mini-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1.3rem 1.25rem;
}
.role-mini-card__tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.7rem;
}
.role-mini-card h4 { font-family: var(--font-body); font-size: 1.02rem; color: var(--paper); margin-bottom: 0.5rem; }
.role-mini-card p { font-size: 0.85rem; }
@media (max-width: 860px) { .role-mini-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .role-mini-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* Roles (tab component — reused on persona pages)                        */
/* ---------------------------------------------------------------------- */
.role-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.role-tab {
  font-family: var(--font-mono); font-size: 0.82rem;
  padding: 0.6rem 1.1rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-dim); cursor: pointer;
  transition: all 0.2s ease;
}
.role-tab:hover { border-color: var(--contract); color: var(--paper); }
.role-tab[aria-selected="true"] {
  background: var(--contract); border-color: var(--contract); color: #06222b; font-weight: 600;
}

.role-panels { position: relative; }
.role-panel {
  display: none;
  grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.role-panel[data-active] { display: grid; }
.role-panel__eyebrow {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-faint); letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.role-panel h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 0.9rem; }
.role-panel p.lede { color: var(--text-dim); font-size: 1rem; margin-bottom: 1.4rem; }
.role-panel__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.role-panel__list li {
  display: flex; gap: 0.6rem; font-size: 0.92rem; color: var(--text-dim); align-items: flex-start;
}
.role-panel__list svg { flex-shrink: 0; margin-top: 0.2rem; color: var(--ok); }
.role-panel__side {
  background: var(--surface-raised); border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  padding: 1.4rem; display: flex; flex-direction: column; gap: 1rem; align-self: start;
}
.role-panel__stat { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-mono); font-size: 0.85rem; }
.role-panel__stat b { color: var(--contract); font-size: 1.1rem; }
.role-panel__quote {
  font-size: 0.86rem; color: var(--text-dim); border-left: 2px solid var(--ember); padding-left: 0.9rem; font-style: italic;
}

@media (max-width: 760px) { .role-panel { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* Perimeter / security                                                  */
/* ---------------------------------------------------------------------- */
.perimeter {
  background: var(--steel-900);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}
.perimeter::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(95,212,255,0.09) 1px, transparent 0);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}
.perimeter .shell { position: relative; }
.perimeter__grid { display: grid; grid-template-columns: minmax(0,0.95fr) minmax(0,1.05fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.perimeter blockquote {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.35rem, 2.8vw, 2rem); line-height: 1.35; color: var(--paper);
}
.perimeter blockquote span { color: var(--contract); }
.perimeter cite { display: block; margin-top: 1.25rem; font-family: var(--font-mono); font-style: normal; font-size: 0.8rem; color: var(--text-faint); }

.gate-list { display: grid; gap: 0.9rem; }
.gate-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem 1.15rem;
}
.gate-item__icon {
  width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(95,212,255,0.1); color: var(--contract);
}
.gate-item h4 { font-family: var(--font-body); font-size: 0.94rem; color: var(--paper); margin-bottom: 0.2rem; }
.gate-item p { font-size: 0.82rem; }

@media (max-width: 860px) { .perimeter__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* CTA band                                                               */
/* ---------------------------------------------------------------------- */
.cta-band {
  border-radius: 24px;
  padding: clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(135deg, rgba(255,90,31,0.16), rgba(95,212,255,0.08)), var(--steel-850);
  border: 1px solid var(--border-soft);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 0.9rem; }
.cta-band p { max-width: 52ch; margin: 0 auto 2rem; font-size: 1.02rem; }
.cta-band__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------------- */
/* Tilt / reveal micro-interactions                                      */
/* ---------------------------------------------------------------------- */
[data-tilt] { transform-style: preserve-3d; transition: transform 0.15s ease-out; will-change: transform; }

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border-soft); padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.site-footer__inner { display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; padding-bottom: 2.5rem; }
.site-footer__brand p { max-width: 32ch; margin-top: 0.85rem; font-size: 0.88rem; }
.site-footer__links { display: flex; gap: clamp(2rem, 6vw, 4rem); }
.site-footer__heading { display: block; font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 0.85rem; }
.site-footer__links a { display: block; font-size: 0.88rem; color: var(--text-dim); padding: 0.3rem 0; }
.site-footer__links a:hover { color: var(--contract); }
.site-footer__legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  padding: 1.4rem 0 2rem; border-top: 1px solid var(--border-soft);
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-faint);
}

/* ---------------------------------------------------------------------- */
/* 404                                                                     */
/* ---------------------------------------------------------------------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 1.5rem; }
.error-page .code { font-family: var(--font-mono); color: var(--ember-hot); font-size: 0.95rem; margin-bottom: 1rem; }
