/* ──────────────────────────────────────────────────────────────────────────
   innerpulse.net · site styles
   The brand in one line: a single phosphor trace on deep ink. Ember red is
   reserved for the mark and moments of emphasis; everything else is ink,
   text greys and hairlines. Tokens mirror the innerpulse-brand kit.
────────────────────────────────────────────────────────────────────────── */

@font-face { font-family: "Syne"; src: url("../fonts/syne-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --ink-0: #05070b;
  --ink-1: #090d14;
  --ink-2: #0e141e;
  --ink-3: #151d2a;
  --line: rgba(170, 196, 255, .09);
  --line-2: rgba(170, 196, 255, .16);
  --grid: rgba(170, 196, 255, .05);
  --text: #e8edf5;
  --text-2: #a3afc2;
  --text-3: #6a7790;

  --ember-from: #e5102e;
  --ember-to: #ff6a1f;
  --ember: #f23d26;
  --ember-glow: rgba(242, 61, 38, .45);
  --ember-grad: linear-gradient(120deg, var(--ember-from), var(--ember-to));

  --display: "Syne", "Arial Black", system-ui, sans-serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(18px, 4vw, 56px);
  --maxw: 1240px;
  --radius: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --bar-h: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink-0); color: var(--text); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; margin: 0; }
h3 { font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
::selection { background: rgba(242, 61, 38, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--text); color: var(--ink-0); padding: 8px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* ── type helpers ── */
.eyebrow, .label { font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.eyebrow a { color: var(--text-2); text-decoration: none; }
.eyebrow a:hover { color: var(--text); }
.label { display: block; margin-bottom: 10px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 var(--ember-glow); animation: ping 2.6s infinite; }
.lede { font-size: clamp(18px, 1.5vw, 21px); color: var(--text-2); max-width: 60ch; }
.lede-sm { color: var(--text-2); margin-top: 8px; }
.muted { color: var(--text-2); }
.h1-out { display: block; color: transparent; -webkit-text-stroke: 1.4px rgba(232, 237, 245, .75); }
@supports not (-webkit-text-stroke: 1px black) { .h1-out { color: var(--text-2); } }

/* ── buttons & links ── */
.btn { --b: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; background: var(--text); color: var(--ink-0); font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -12px rgba(255, 106, 31, .55), 0 0 0 1px rgba(255, 106, 31, .35); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: rgba(232, 237, 245, .4); box-shadow: none; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.link-arrow { font: 500 14px var(--mono); color: var(--text-2); text-decoration: none; white-space: nowrap; }
.link-arrow:hover { color: var(--text); }
.link-arrow span { display: inline-block; transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ── brand glyph & lockup ── */
.ip-glyph path { stroke: var(--ember); stroke: url(#ip-ember) var(--ember); stroke-width: 15; }
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.lockup-glyph { width: 26px; height: 26px; overflow: visible; }
.lockup-glyph path { filter: drop-shadow(0 0 6px var(--ember-glow)); }
.wordmark { font: 800 22px/1 var(--display); letter-spacing: -.03em; transform: translateY(-1px); }

/* ── header ── */
.bar { position: sticky; top: 0; z-index: 50; height: var(--bar-h); background: rgba(5, 7, 11, .72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.bar.scrolled { border-bottom-color: var(--line); }
.bar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { padding: 8px 14px; border-radius: 999px; color: var(--text-2); text-decoration: none; font-size: 15px; transition: color .2s, background .2s; }
.nav a:not(.btn):hover, .nav a[aria-current="page"]:not(.btn) { color: var(--text); background: rgba(170, 196, 255, .06); }
.nav .btn { margin-left: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: transparent; color: var(--text); cursor: pointer; position: relative; }
.nav-toggle i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.nav-toggle i:first-of-type { top: 17px; } .nav-toggle i:last-of-type { top: 25px; }
.nav-toggle[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: var(--bar-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px var(--gutter) 24px; background: rgba(5, 7, 11, .97); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 12px 8px; font-size: 17px; }
  .nav .btn { margin: 10px 0 0; }
  .no-js .nav { position: static; opacity: 1; visibility: visible; transform: none; }
}

/* ── hero ── */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 9vw, 120px) clamp(36px, 6vw, 72px); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 20%, transparent 75%); pointer-events: none; }
.hero::before { content: ""; position: absolute; width: 900px; height: 900px; right: -240px; top: -260px; background: radial-gradient(closest-side, rgba(242, 61, 38, .14), rgba(229, 16, 46, .04) 55%, transparent 75%); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); grid-template-areas: "copy copy" "text scope"; column-gap: clamp(24px, 4vw, 64px); }
.hero-copy { grid-area: copy; position: relative; z-index: 1; }
.hero-text { grid-area: text; position: relative; z-index: 1; padding-top: clamp(12px, 3vw, 44px); align-self: start; }
.hero h1 { font-size: clamp(29px, 4.9vw, 66px); line-height: 1.04; margin-bottom: 30px; }
.hero .lede { margin-bottom: 36px; }
.hero .scope { grid-area: scope; margin-top: -10px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.scope { margin: 0; position: relative; }
.scope-svg { width: 100%; max-width: 470px; aspect-ratio: 1; display: block; margin-inline: auto; overflow: visible; }
.scope-grat circle, .scope-grat path { fill: none; stroke: rgba(170, 196, 255, .12); stroke-width: 1; }
.scope-grat .faint { stroke: rgba(170, 196, 255, .06); stroke-dasharray: 2 6; }
.scope-ticks path { stroke: rgba(170, 196, 255, .2); stroke-width: 1; }
.scope-trail path { fill: none; stroke: url(#scope-ember); stroke-linejoin: round; }
.scope-trail path.head { filter: drop-shadow(0 0 5px rgba(242, 61, 38, .9)) drop-shadow(0 0 16px rgba(255, 106, 31, .45)); }
.scope-read { display: flex; justify-content: space-between; gap: 12px; max-width: 470px; margin: 14px auto 0; font: 500 12px var(--mono); letter-spacing: .08em; color: var(--text-3); }

.hero-trace { position: relative; display: block; width: 100%; height: 80px; margin-top: clamp(24px, 5vw, 56px); }
.hero-trace path { fill: none; stroke: url(#trace-ember); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; grid-template-areas: "copy" "text" "scope"; }
  .hero-text { padding-top: 24px; }
  .hero .scope { margin: 40px auto 0; width: min(100%, 340px); }
  .scope-read { display: none; }
}

/* ── sections ── */
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section-alt { background: linear-gradient(180deg, var(--ink-1), var(--ink-0)); border-block: 1px solid var(--line); }
.sec-head { margin-bottom: clamp(32px, 4vw, 56px); max-width: 760px; }
.sec-head h2, .page-head h1 { text-wrap: balance; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 52px); }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-form { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .sec-head-row { flex-direction: column; align-items: flex-start; } }

/* ── service cards ── */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 250px; padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, var(--ink-2), var(--ink-1)); border: 1px solid var(--line); text-decoration: none; overflow: hidden; isolation: isolate; transition: border-color .3s, transform .35s var(--ease); }
.card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--ember-grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; z-index: -1; }
.card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -120px; top: -120px; background: radial-gradient(closest-side, rgba(242, 61, 38, .16), transparent); opacity: 0; transition: opacity .35s; z-index: -1; }
.card:hover { transform: translateY(-3px); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card h3 { font-size: 22px; }
.card p { color: var(--text-2); font-size: 16px; }
.card-index { font: 500 13px var(--mono); color: var(--ember); letter-spacing: .08em; }
.card-more { margin-top: auto; font: 500 13px var(--mono); color: var(--text-3); transition: color .2s; }
.card:hover .card-more { color: var(--text); }

/* ── process ── */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 1px; background: linear-gradient(90deg, var(--ember-from), var(--ember-to) 40%, var(--line-2) 70%, transparent); }
.process li { position: relative; padding-top: 56px; }
.step-n { position: absolute; top: 0; left: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--ink-0); border: 1px solid var(--line-2); font: 500 13px var(--mono); color: var(--text); }
.process li:first-child .step-n { border-color: var(--ember); box-shadow: 0 0 0 4px rgba(242, 61, 38, .12); }
.process h3 { font-size: 22px; margin-bottom: 10px; }
.process p { color: var(--text-2); font-size: 16px; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; row-gap: 36px; } .process::before { display: none; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ── work ── */
.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .work { grid-template-columns: 1fr; } }
.work-item { display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-1); overflow: hidden; text-decoration: none; transition: border-color .3s, transform .35s var(--ease); }
.work-item:hover { border-color: var(--line-2); transform: translateY(-3px); }
.work-shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-2); border-bottom: 1px solid var(--line); }
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s var(--ease); }
.work-item:hover .work-shot img { transform: scale(1.03); }
.work-meta { display: block; padding: 22px 24px 26px; }
.work-meta h3 { font-size: 24px; margin-bottom: 8px; }
.work-meta p { color: var(--text-2); font-size: 16px; }
.portfolio-band { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(60% 120% at 100% 0%, rgba(242, 61, 38, .1), transparent 70%), var(--ink-1); }
.portfolio-band h2 { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 10px; }
.portfolio-band p { color: var(--text-2); max-width: 60ch; }
@media (max-width: 760px) { .portfolio-band { flex-direction: column; align-items: flex-start; } }

/* ── principles, engagements, faq ── */
.principles { margin: 0; display: grid; gap: 0; }
.principles div { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; }
.principles div:last-child { border-bottom: 1px solid var(--line); }
.principles dt { font: 700 20px/1.2 var(--display); letter-spacing: -.02em; }
.principles dd { margin: 0; color: var(--text-2); }
@media (max-width: 560px) { .principles div { grid-template-columns: 1fr; gap: 6px; } }
.engagements { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .engagements { grid-template-columns: 1fr; } }
.engagement { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-1); }
.engagement h3 { font-size: 30px; margin-bottom: 12px; }
.engagement p:last-child { color: var(--text-2); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative; font: 600 19px/1.35 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 400 24px var(--mono); color: var(--text-3); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--ember); }
.faq details p { color: var(--text-2); padding: 0 36px 24px 0; }

/* ── page heads, prose, panels ── */
.page-head { position: relative; padding-block: clamp(56px, 9vw, 112px) clamp(8px, 2vw, 24px); overflow: hidden; }
.page-head::before { content: ""; position: absolute; width: 700px; height: 700px; right: -220px; top: -360px; background: radial-gradient(closest-side, rgba(242, 61, 38, .12), transparent 72%); pointer-events: none; }
.page-head h1 { font-size: clamp(40px, 5.6vw, 80px); margin-bottom: 24px; max-width: 16ch; }
.page-head-tall { min-height: 62vh; display: flex; align-items: center; }
.page-head-tall .lede { margin-bottom: 32px; }
.prose p { color: var(--text-2); margin-bottom: 18px; font-size: 18px; }
.prose h2 { font-size: 24px; margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose a, .muted a, .form-note a { color: var(--text); text-decoration-color: rgba(242, 61, 38, .6); text-underline-offset: 3px; }
.prose-narrow { max-width: 760px; }
.fit, .example { padding-top: 18px; border-top: 1px solid var(--line); }
.example a { color: var(--text); }
.panel { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--ink-2), var(--ink-1)); }
.panel .btn { margin-top: 24px; }
.panel .label:not(:first-child) { margin-top: 24px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 1.5px; background: var(--ember-grad); }
.steps-sm { margin: 0 0 8px; padding-left: 20px; color: var(--text-2); display: grid; gap: 8px; }

.services-list { display: grid; gap: 0; }
.service-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 24px; align-items: start; padding: 34px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--bar-h) + 20px); }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row h2 { font-size: clamp(24px, 2.4vw, 32px); }
.service-row h2 a { text-decoration: none; }
.service-row h2 a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.service-row .card-index { padding-top: 8px; }
@media (max-width: 900px) { .service-row { grid-template-columns: 40px 1fr; } .service-row .ticks, .service-row .link-arrow { grid-column: 2; } }
.next-service { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.next-service .label { margin: 0; }
.next-service a { font: 800 clamp(22px, 3vw, 36px) var(--display); letter-spacing: -.03em; text-decoration: none; }
.next-service a:hover { color: #fff; }

/* ── form ── */
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font: 500 13px var(--mono); letter-spacing: .06em; color: var(--text-2); padding: 0; }
.opt { color: var(--text-3); margin-left: 6px; }
.field input[type="text"], .field input[type="email"], .field textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink-1); color: var(--text); font: 400 16px/1.5 var(--sans); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; border-color: rgba(255, 106, 31, .6); box-shadow: 0 0 0 4px rgba(242, 61, 38, .14); }
.field [aria-invalid="true"] { border-color: #ff6b6b; }
.field-err, .form-alert { color: #ff9a8f; font-size: 15px; }
.form-alert { padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255, 107, 107, .35); background: rgba(255, 107, 107, .08); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 15px; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.choice input:checked + span { border-color: var(--ember); color: var(--text); background: rgba(242, 61, 38, .1); }
.choice input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 2px; }
.form-note { color: var(--text-3); font-size: 15px; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── call to action ── */
.cta { padding-block: clamp(64px, 8vw, 104px); border-top: 1px solid var(--line); background: radial-gradient(50% 140% at 85% 100%, rgba(242, 61, 38, .14), transparent 70%), var(--ink-0); }
.cta-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(32px, 4.2vw, 60px); margin-bottom: 16px; max-width: 18ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── footer ── */
.foot { border-top: 1px solid var(--line); padding-block: 56px 28px; background: var(--ink-0); }
.foot-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; }
.foot-brand p { color: var(--text-3); margin-top: 16px; max-width: 42ch; font-size: 15px; }
.foot-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-nav a { display: block; color: var(--text-2); text-decoration: none; font-size: 15px; padding: 4px 0; }
.foot-nav a:hover { color: var(--text); }
.foot-base { display: flex; align-items: center; gap: 24px; margin-top: 48px; font: 500 12px var(--mono); color: var(--text-3); letter-spacing: .06em; }
.foot-trace { flex: 1; height: 24px; }
.foot-trace path { fill: none; stroke: url(#ip-ember); stroke: var(--ember); stroke-width: 1.2; opacity: .5; vector-effect: non-scaling-stroke; }
@media (max-width: 820px) { .foot-inner { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .foot-nav { grid-template-columns: 1fr 1fr; } }

/* ── motion ── */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(242, 61, 38, .55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(242, 61, 38, 0); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .dot { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
