/* ============================================================
   AIGNITE — bold homepage
   Layout energy after datnt.dev home (giant type, marquee,
   inverted section, sticky card stack); theme = locked AIGNITE
   handoff via ../tokens.css; conventions = Astryx.
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  background: var(--color-bg-canvas);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.mono { font-family: var(--font-mono); }
.hide-sm { display: inline-flex; }

/* ---- giant display type (datnt hero-heading, AIGNITE hues) ---- */
.giant {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
  background: linear-gradient(180deg, #6E6577 0%, #E8E3EE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---- pills ---- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform var(--duration-fast) var(--ease-standard),
    background var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard);
}
.pill:hover { transform: translateY(-2px); }
.pill-brand {
  background: var(--gradient-brand);
  color: #0F0D12;
  box-shadow: 0 6px 24px rgba(41, 171, 226, 0.25);
}
.pill-ghost {
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-secondary);
}
.pill-ghost:hover { background: rgba(240, 237, 243, 0.07); color: var(--color-text-primary); }

/* ---- scroll fade-in ---- */
.fx {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s var(--ease-standard), transform 0.7s var(--ease-standard);
  transition-delay: var(--fx-delay, 0ms);
}
.fx.is-in { opacity: 1; transform: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: clip;
}

.hnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 4vw, 48px) 0;
  animation: drop-in 0.7s var(--ease-standard) both;
}
.hnav-links {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  font-size: clamp(0.85rem, 1.1vw, 1.15rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
}
.hnav-links a { transition: color var(--duration-fast) var(--ease-standard); }
.hnav-links a:hover { color: var(--color-text-primary); }
.hnav-mark {
  display: none;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.hnav-actions { display: flex; align-items: center; gap: 10px; }
.hnav-actions .pill { padding: 9px 18px; font-size: 13px; }

.hnav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-strong);
  background: none;
  cursor: pointer;
  align-items: center;
}
.hnav-burger span {
  width: 16px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform var(--duration-fast) var(--ease-standard);
}
.hnav-burger.is-x span:first-child { transform: translateY(4px) rotate(45deg); }
.hnav-burger.is-x span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu-overlay[hidden] { display: none; }
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 40px;
  background: rgba(18, 15, 22, 0.97);
  backdrop-filter: blur(8px);
}
.menu-top { display: flex; align-items: center; justify-content: space-between; }
.menu-top .hnav-mark { display: flex; }
.menu-links { display: flex; flex-direction: column; gap: 26px; margin-top: 56px; }
.menu-links a {
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.menu-links .menu-alt {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--color-text-muted);
  text-transform: none;
}
.menu-cta { margin-top: auto; }

.hero-headline-clip { overflow: hidden; padding: 0 clamp(12px, 2vw, 32px); }
.hero-headline {
  width: 100%;
  white-space: nowrap;
  text-align: center;
  font-size: clamp(4rem, 17.5vw, 20rem);
  margin-top: clamp(4px, 1.5vh, 20px);
  animation: rise-in 0.9s 0.12s var(--ease-standard) both;
}

.hero-stage { position: relative; flex: 1; min-height: 240px; }

.hero-flame {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 10;
  width: clamp(200px, 30vw, 430px);
  transform: translateX(-50%);
  pointer-events: none;
  animation: rise-in 1s 0.35s var(--ease-standard) both;
}
.hero-flame-inner {
  position: relative;
  will-change: transform;
}
.hero-flame img {
  position: relative;
  z-index: 1;
  width: 100%;
  user-select: none;
  filter: drop-shadow(0 18px 44px rgba(197, 108, 214, 0.35));
}
.hero-flame-glow {
  position: absolute;
  inset: -22%;
  background: radial-gradient(50% 50% at 50% 55%,
    rgba(41, 171, 226, 0.28), rgba(197, 108, 214, 0.18) 45%, transparent 72%);
  filter: blur(6px);
}

.hero-bottom {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(20px, 4vw, 48px) clamp(28px, 4vh, 44px);
}
.hero-tagline {
  max-width: 300px;
  font-size: clamp(0.85rem, 1.3vw, 1.3rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.45;
  color: var(--color-text-secondary);
  animation: rise-in 0.8s 0.45s var(--ease-standard) both;
}
.hero-cta {
  display: flex;
  gap: 12px;
  animation: rise-in 0.8s 0.55s var(--ease-standard) both;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: none; }
}
.hero-flame { animation-name: flame-in; }
@keyframes flame-in {
  from { opacity: 0; transform: translateX(-50%) translateY(36px); }
  to { opacity: 1; transform: translateX(-50%); }
}
@keyframes drop-in {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  padding: clamp(70px, 12vh, 150px) 0 44px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mq-row { display: flex; gap: 12px; will-change: transform; }
.mq-tile {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  height: clamp(84px, 10vw, 128px);
  padding: 0 clamp(24px, 3vw, 44px);
  border-radius: var(--radius-tile);
  border: 1px solid var(--color-border);
  background: var(--color-bg-surface);
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 1.6vw, 1.5rem);
  color: var(--color-text-secondary);
  white-space: nowrap;
}
.mq-tile .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gradient-brand);
}
.mq-tile.is-hot {
  border-color: var(--tint-blue-border);
  background: linear-gradient(135deg, rgba(41, 171, 226, 0.12), rgba(197, 108, 214, 0.12));
  color: var(--color-text-primary);
}
.mq-tile.is-hot .dot { background: var(--color-ember); }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(44px, 7vh, 72px);
  overflow: hidden;
  padding: 100px clamp(20px, 5vw, 48px);
  text-align: center;
}
.about .giant { font-size: clamp(3rem, 12vw, 10rem); }

/* soft glows that fade out inside their own box —
   no blur filter, so the section boundary never slices them */
.orb {
  position: absolute;
  pointer-events: none;
}
.orb-a {
  width: 620px; height: 620px;
  left: -240px; top: 4%;
  background: radial-gradient(closest-side,
    rgba(41, 171, 226, 0.14), rgba(41, 171, 226, 0.05) 55%, transparent 100%);
}
.orb-b {
  width: 680px; height: 680px;
  right: -270px; bottom: 4%;
  background: radial-gradient(closest-side,
    rgba(197, 108, 214, 0.12), rgba(197, 108, 214, 0.04) 55%, transparent 100%);
}

.about-text {
  max-width: 620px;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 500;
  line-height: 1.65;
}
.about-text .w {
  color: var(--color-text-primary);
  opacity: 0.14;
  transition: opacity 0.25s linear;
}
.about-text .w.lit { opacity: 1; }

/* ============================================================
   STATS
   ============================================================ */
.stats { padding: clamp(60px, 10vh, 110px) clamp(20px, 5vw, 48px); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.stat-n { font-size: clamp(3.2rem, 7vw, 6.5rem); }
.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
}

/* ============================================================
   CAPABILITIES — light section, vivid reveal stack
   (reverse of the Work stack: each card pins, then is pushed up
   and out by its slot, revealing the next card beneath)
   ============================================================ */
.caps {
  background: #F0EDF3;
  color: var(--color-bg-canvas);
  border-radius: clamp(36px, 5vw, 60px) clamp(36px, 5vw, 60px) 0 0;
  padding: clamp(80px, 12vh, 130px) clamp(16px, 4vw, 44px) clamp(40px, 6vh, 80px);
}
.caps-title {
  display: block;
  text-align: center;
  font-size: clamp(2.6rem, 11vw, 10rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--color-bg-canvas);
  margin-bottom: clamp(50px, 8vh, 100px);
}
/* tall track: ~90svh of scroll per calendar flip (6 flips) + dwell on the last card */
.caps-cards {
  position: relative;
  max-width: 1420px;
  margin: 0 auto;
  height: calc(6 * 90svh + 150svh);
}
/* the pinned stage all cards live in, with 3D depth for the flip */
.caps-pin {
  position: sticky;
  top: 8svh;
  height: 66svh; /* leaves room for the deck lips peeking below */
  perspective: 1600px;
}
.capcard {
  position: absolute;
  inset: 0;
  z-index: calc(20 - var(--i)); /* earlier cards sit on top of the stack */
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-rows: auto 1fr auto;
  column-gap: clamp(24px, 4vw, 56px);
  row-gap: clamp(14px, 2.2vh, 24px);
  border-radius: clamp(24px, 3vw, 40px);
  padding: clamp(30px, 4.5vw, 56px);
  color: var(--color-bg-canvas);
  box-shadow: 0 14px 44px rgba(23, 20, 27, 0.16);
  transform-origin: 50% 0;         /* flip up over the top edge, calendar-style */
  backface-visibility: hidden;      /* vanish past 90° instead of showing a mirror */
  will-change: transform;
}
/* right half: image tile (placeholder art until the generated images land) */
.capcard-art {
  grid-column: 2;
  grid-row: 1 / -1;
  overflow: hidden;
  border-radius: clamp(16px, 2vw, 28px);
  /* deep plum with a subtle center lift — matches the vignette in the renders */
  background: radial-gradient(circle at 50% 45%,
    #2A2230 0%, #1E1A22 55%, #18151C 100%);
}
.capcard-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.capcard.is-blue { background: var(--color-brand-blue); }
.capcard.is-purple { background: var(--color-brand-purple); }
.capcard.is-ember { background: var(--color-ember); }
.capcard-top { grid-column: 1; grid-row: 1; }
.capcard h3 {
  max-width: 16ch;
  font-size: clamp(1.9rem, 4.6vw, 4.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.02;
}
.capcard-n {
  position: absolute; /* pinned to the card's top-right, above the art tile */
  z-index: 1;
  top: clamp(40px, 5.5vw, 72px);
  right: clamp(44px, 6vw, 80px);
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  font-weight: 700;
  color: rgba(240, 237, 243, 0.85);
}
.capcard p {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  max-width: 620px;
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: rgba(23, 20, 27, 0.72);
}
.capcard-list {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  padding-top: clamp(16px, 2.5vh, 24px);
  border-top: 1px solid rgba(23, 20, 27, 0.28);
  list-style: none;
}
.capcard-list li {
  font-size: clamp(0.72rem, 1.1vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(23, 20, 27, 0.85);
}
.capcard-list li::before { content: "→ "; opacity: 0.55; }

/* capability art tiles — SVG "product panels" on the plum inset */
.capcard-art.viz { position: relative; }
.capcard-art.viz::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240,237,243,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,237,243,0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask: radial-gradient(120% 100% at 50% 42%, #000 50%, transparent 92%);
  mask: radial-gradient(120% 100% at 50% 42%, #000 50%, transparent 92%);
  pointer-events: none;
}
.capcard.is-blue   .capcard-art { --accent: #35B4E8; --accent-2: #C56CD6; }
.capcard.is-purple .capcard-art { --accent: #D08CE0; --accent-2: #29ABE2; }
.capcard.is-ember  .capcard-art { --accent: #FFA579; --accent-2: #29ABE2; }

/* ============================================================
   WORK — sticky stacking cards
   ============================================================ */
.work {
  position: relative;
  z-index: 10;
  background: var(--color-bg-canvas);
  padding: clamp(80px, 11vh, 120px) clamp(16px, 4vw, 44px) clamp(60px, 8vh, 100px);
}
.work > .giant {
  display: block;
  text-align: center;
  font-size: clamp(3.4rem, 14vw, 12rem);
}
.work-note {
  text-align: center;
  margin: 18px 0 clamp(30px, 5vh, 60px);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-faint);
}

.stack-slot {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100svh;
}
.stack-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(20px, 3vw, 44px);
  width: 100%;
  max-width: 1120px;
  padding: clamp(24px, 3.5vw, 52px);
  border-radius: clamp(30px, 4vw, 52px);
  border: 1px solid var(--color-border-strong);
  background:
    radial-gradient(120% 140% at 8% 0%, rgba(41, 171, 226, 0.09), transparent 55%),
    var(--color-bg-surface);
  box-shadow: var(--shadow-high);
  will-change: transform;
}
.stack-slot:nth-child(1) .stack-card { top: 0; }
.stack-slot:nth-child(2) .stack-card { top: 26px; }
.stack-slot:nth-child(3) .stack-card { top: 52px; }
.stack-slot:nth-child(4) .stack-card { top: 78px; }
.stack-slot:nth-child(5) .stack-card { top: 104px; }

.stack-info { display: flex; flex-direction: column; min-width: 0; }
.stack-n { font-size: clamp(3rem, 7vw, 6.5rem); margin-bottom: 6px; }
.stack-sector {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--tint-blue-text);
  margin-bottom: 10px;
}
.stack-info h3 {
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
}
.stack-desc {
  font-size: clamp(0.88rem, 1.3vw, 1.02rem);
  line-height: 1.65;
  color: var(--color-text-secondary);
}
.stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
}
.stack-chips span {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-bg-inset);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.stack-art {
  position: relative;
  min-height: clamp(220px, 34vh, 420px);
  border-radius: clamp(20px, 2.5vw, 34px);
  border: 1px solid var(--color-border);
  overflow: hidden;
}
/* real product screenshot fills the tile, anchored left so the form reads */
.stack-art.has-img { background: var(--color-bg-inset); }
.stack-art.has-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  display: block;
}
/* a chart output (light bg): show it whole, centred, on a clean panel */
.stack-art.is-chart { background: #fbfbfd; }
.stack-art.is-chart img {
  object-fit: contain;
  object-position: center;
  padding: clamp(14px, 2.2vw, 30px);
}
/* domain visuals — self-contained SVG "product panels", one per sector */
.stack-art.viz {
  --accent: var(--color-brand-blue);
  --accent-2: var(--color-brand-purple);
  background:
    radial-gradient(115% 90% at 16% -8%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 58%),
    radial-gradient(100% 85% at 108% 110%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 55%),
    linear-gradient(158deg, #221C2A 0%, #17141B 80%);
}
.stack-art.viz::before {          /* faint blueprint grid, faded toward the edges */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240,237,243,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,237,243,0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask: radial-gradient(120% 100% at 50% 42%, #000 50%, transparent 92%);
  mask: radial-gradient(120% 100% at 50% 42%, #000 50%, transparent 92%);
  pointer-events: none;
}
.viz-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.viz-chrome {
  position: absolute;
  top: 15px;
  left: 18px;
  display: flex;
  gap: 7px;
  z-index: 3;
}
.viz-chrome span {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background: rgba(240,237,243,0.22);
}
.viz-chrome span:first-child { background: color-mix(in srgb, var(--accent) 75%, transparent); }
.viz-tag {
  position: absolute;
  bottom: 15px;
  left: 18px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240,237,243,0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px 11px;
  background: rgba(23,20,27,0.55);
  backdrop-filter: blur(3px);
}
/* per-sector accent pairs (SVGs read var(--accent) / var(--accent-2)) */
.stack-art.viz.art-bio     { --accent: #29ABE2; --accent-2: #C56CD6; }
.stack-art.viz.art-climate { --accent: #C56CD6; --accent-2: #29ABE2; }
.stack-art.viz.art-agri    { --accent: #FF9166; --accent-2: #29ABE2; }
.stack-art.viz.art-music   { --accent: #29ABE2; --accent-2: #C56CD6; }
.stack-art.viz.art-civic   { --accent: #6FC6EC; --accent-2: #C56CD6; }

/* ============================================================
   PROCESS
   ============================================================ */
.process { padding: clamp(80px, 12vh, 130px) clamp(20px, 5vw, 48px); }
.process > .giant {
  display: block;
  text-align: center;
  font-size: clamp(2.4rem, 9vw, 8rem);
  margin-bottom: clamp(50px, 8vh, 90px);
}
.proc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}
.proc-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--color-border);
  transition: border-color var(--duration-medium) var(--ease-standard),
    background var(--duration-medium) var(--ease-standard);
}
.proc-card:hover {
  border-color: var(--tint-blue-border);
  background: rgba(41, 171, 226, 0.05);
}
.proc-n { font-size: clamp(1.9rem, 3.4vw, 3rem); align-self: flex-end; }
.proc-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.proc-card p { font-size: 0.92rem; line-height: 1.6; color: var(--color-text-muted); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(90px, 13vh, 140px) clamp(20px, 5vw, 48px) 28px;
}
.contact-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(26px, 4.5vh, 44px);
  text-align: center;
}
.contact-over {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--color-ember-text);
}
/* white headline with an ember hotspot that follows the cursor (--gx) */
.contact-main { --gx: 50%; }
.contact-giant {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
  font-size: clamp(2.6rem, 8.5vw, 7.5rem);
  background: linear-gradient(90deg,
    var(--color-text-primary) calc(var(--gx) - 42%),
    var(--color-ember) calc(var(--gx) - 14%),
    var(--color-brand-purple) calc(var(--gx) + 14%),
    var(--color-text-primary) calc(var(--gx) + 42%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.contact-sub {
  max-width: 560px;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  background: linear-gradient(90deg,
    var(--color-text-secondary) calc(var(--gx) - 42%),
    var(--color-ember) calc(var(--gx) - 14%),
    var(--color-brand-purple) calc(var(--gx) + 14%),
    var(--color-text-secondary) calc(var(--gx) + 42%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.contact-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.contact-links a { transition: color var(--duration-fast) var(--ease-standard); }
.contact-links a:hover { color: var(--color-text-primary); }
.contact-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-faint);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .proc-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-card { grid-template-columns: 1fr; }
  .stack-art { min-height: 150px; order: -1; }
  .stack-slot { height: auto; position: static; padding: 12px 0; }
  .stack-slot .stack-card { top: 0 !important; }
}

@media (max-width: 700px) {
  .hnav-links { display: none; }
  .hnav-mark { display: flex; }
  .hnav-burger { display: flex; }
  .hide-sm { display: none; }
  .hero-flame { bottom: auto; top: 50%; transform: translateX(-50%) translateY(-58%); }
  @keyframes flame-in {
    from { opacity: 0; transform: translateX(-50%) translateY(calc(-58% + 36px)); }
    to { opacity: 1; transform: translateX(-50%) translateY(-58%); }
  }
  .hero-bottom { flex-direction: column; align-items: stretch; }
  .hero-cta { width: 100%; }
  .hero-cta .pill { flex: 1; }
  .proc-grid { grid-template-columns: 1fr; }
  .capcard-list { grid-template-columns: 1fr; gap: 8px; }
  .caps-pin { height: 74svh; }
  .capcard { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; }
  .capcard-top { grid-row: 1; }
  .capcard p { grid-row: 2; }
  .capcard-art { grid-column: 1; grid-row: 3; min-height: 90px; }
  .capcard-list { grid-column: 1; grid-row: 4; }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fx { opacity: 1; transform: none; transition: none; }
  .hnav, .hero-headline, .hero-flame, .hero-tagline, .hero-cta { animation: none; }
  .about-text .w { opacity: 1; transition: none; }
  .mq-row { transform: none !important; }
  .stack-card { transform: none !important; }
  /* capabilities: plain stacked list instead of the flip */
  .caps-cards { height: auto; }
  .caps-pin {
    position: static;
    height: auto;
    perspective: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .capcard { position: static; min-height: 50vh; transform: none !important; }
}
