/* ============================================================
   THE CODE SMITH — main site · "The Forge"
   AI consulting, process automation, web design, lead gen.
   Space Grotesk + Inter + JetBrains Mono.
   Dark iron + molten ember + data cyan. No blocking preloader —
   speed is a feature we sell.
   ============================================================ */

@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/spacegrotesk.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/inter.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/jetbrains.woff2') format('woff2'); }

:root {
  --disp: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;

  --bg: #0b0a09;
  --bg-2: #100e0c;
  --card: #161311;
  --ink: #efeae2;
  --ink-soft: rgba(239, 234, 226, 0.62);
  --ink-faint: rgba(239, 234, 226, 0.38);
  --line: rgba(239, 234, 226, 0.14);
  --line-soft: rgba(239, 234, 226, 0.07);
  --ember: #ff8a3d;
  --ember-deep: #ff5a2e;
  --ember-soft: rgba(255, 138, 61, 0.13);
  --molten: linear-gradient(100deg, #ffb35c, #ff8a3d 45%, #ff5a2e);
  --cyan: #4fd8ff;
  --cyan-soft: rgba(79, 216, 255, 0.14);
  --shadow: 0 30px 80px -32px rgba(0, 0, 0, 0.7);
  --header-h: 74px;
  --ease: cubic-bezier(0.62, 0.03, 0.18, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
:root[data-theme='light'] {
  --bg: #f5f1ea;
  --bg-2: #ece7dd;
  --card: #fdfbf7;
  --ink: #17120e;
  --ink-soft: rgba(23, 18, 14, 0.66);
  --ink-faint: rgba(23, 18, 14, 0.4);
  --line: rgba(23, 18, 14, 0.16);
  --line-soft: rgba(23, 18, 14, 0.08);
  --ember: #d95d1e;
  --ember-deep: #c14a12;
  --ember-soft: rgba(217, 93, 30, 0.1);
  --molten: linear-gradient(100deg, #e8863a, #d95d1e 45%, #c14a12);
  --cyan: #0e7fae;
  --cyan-soft: rgba(14, 127, 174, 0.1);
  --shadow: 0 24px 60px -28px rgba(23, 18, 14, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.reduced-motion { scroll-behavior: auto; }
body {
  margin: 0; font-family: var(--sans); font-weight: 380; font-size: 1rem; line-height: 1.7;
  color: var(--ink); background: var(--bg);
  transition: background-color 0.4s ease, color 0.4s ease; overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--disp); font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; }
h1 em, h2 em, h3 em {
  font-style: normal;
  background: var(--molten);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
p { margin: 0 0 1rem; }
::selection { background: var(--ember); color: #0b0a09; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--ink); color: var(--bg); padding: 0.6rem 1.1rem; font-size: 0.8rem; text-decoration: none; }
.skip-link:focus { left: 8px; }
.container { width: min(1240px, 92vw); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 10vh, 7.5rem); position: relative; }

.kicker {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--mono); font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 1.2rem;
}
.kicker::before { content: '//'; color: var(--ember); letter-spacing: 0; }
.kicker--bare::before { display: none; }
.kicker b { color: var(--ember); font-weight: 600; }
.disp-xl { font-size: clamp(2.6rem, 7vw, 6rem); }
.disp-lg { font-size: clamp(2rem, 4.6vw, 3.8rem); }
.disp-md { font-size: clamp(1.5rem, 3vw, 2.4rem); }
.lede { font-size: clamp(1rem, 1.5vw, 1.16rem); line-height: 1.8; color: var(--ink-soft); max-width: 58ch; }
.small { font-size: 0.82rem; color: var(--ink-soft); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-reveal].is-inview { opacity: 1; transform: none; transition: opacity 0.85s ease, transform 0.85s var(--ease-out); }
html.reduced-motion [data-reveal] { opacity: 1 !important; transform: none !important; }

/* Forge-glow image/media reveal */
.media { position: relative; overflow: hidden; background: var(--bg-2); border-radius: 10px; }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.js .media[data-reveal-media] { box-shadow: 0 0 0 0 rgba(255, 138, 61, 0); }
.js .media[data-reveal-media] img, .js .media[data-reveal-media] video { opacity: 0; transform: scale(1.04); }
.js .media[data-reveal-media].is-inview img, .js .media[data-reveal-media].is-inview video {
  opacity: 1; transform: none; transition: opacity 0.9s ease, transform 1.2s var(--ease);
}
html.reduced-motion .media[data-reveal-media] img, html.reduced-motion .media[data-reveal-media] video { opacity: 1 !important; transform: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  height: var(--header-h); display: flex; align-items: center;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line-soft); }
body.menu-open .site-header { z-index: 90; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--disp); font-weight: 700; font-size: 1.14rem; letter-spacing: -0.01em; }
.wordmark .spark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: var(--molten); display: grid; place-items: center;
  color: #16100b; font-family: var(--mono); font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 0 18px rgba(255, 138, 61, 0.35);
}
.wordmark .tld { color: var(--ink-faint); font-weight: 400; }
.main-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.main-nav a { text-decoration: none; font-size: 0.92rem; font-weight: 450; color: var(--ink-soft); transition: color 0.25s ease; position: relative; padding-block: 0.3rem; }
.main-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--molten); transition: right 0.35s var(--ease); border-radius: 2px; }
.main-nav a:hover, .main-nav a[aria-current='page'] { color: var(--ink); }
.main-nav a:hover::after, .main-nav a[aria-current='page']::after { right: 0; }
@media (max-width: 920px) { .main-nav { display: none; } }
.header-tools { display: flex; align-items: center; gap: 0.75rem; }
.theme-toggle { width: 37px; height: 37px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: border-color 0.3s ease; }
.theme-toggle:hover { border-color: var(--ember); }
.theme-toggle svg { width: 15px; height: 15px; }
:root[data-theme='dark'] .icon-moon { display: none; }
:root[data-theme='light'] .icon-sun { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--disp); font-size: 0.86rem; font-weight: 700; letter-spacing: 0.01em;
  color: #16100b; background: var(--molten); border: 0; border-radius: 10px;
  padding: 0.95rem 1.6rem; cursor: pointer; text-decoration: none;
  position: relative; isolation: isolate; overflow: hidden;
  box-shadow: 0 8px 26px -10px rgba(255, 110, 50, 0.55);
  transition: transform 0.25s var(--ease-out), box-shadow 0.3s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(255, 110, 50, 0.7); }
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s ease; }
.btn:hover::after { transform: translateX(120%); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn--ghost:hover { border-color: var(--ember); box-shadow: none; }
.btn--sm { padding: 0.7rem 1.15rem; font-size: 0.78rem; }
.link-rule { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 0.45rem; transition: color 0.3s ease, border-color 0.3s ease; }
.link-rule:hover { color: var(--ember); border-color: var(--ember); }
.menu-btn { display: none; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-family: var(--disp); font-size: 0.78rem; font-weight: 700; padding: 0.7rem 1.1rem; border-radius: 10px; }
@media (max-width: 920px) { .menu-btn { display: inline-flex; } }

/* Mobile drawer */
.drawer-scrim { position: fixed; inset: 0; z-index: 190; background: rgba(5, 4, 3, 0.6); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease; }
body.menu-open .drawer-scrim { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 200; width: min(360px, 90vw); background: var(--bg-2); border-left: 1px solid var(--line); transform: translateX(104%); transition: transform 0.5s var(--ease); display: flex; flex-direction: column; padding: 1.3rem 1.6rem 2rem; }
body.menu-open .drawer { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.drawer-close { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 8px; padding: 0.6rem 1rem; cursor: pointer; font-family: var(--disp); font-weight: 700; font-size: 0.78rem; }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a { text-decoration: none; font-family: var(--disp); font-weight: 700; font-size: 1.5rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line-soft); }
.drawer-nav a[aria-current='page'] { color: var(--ember); }
.drawer-foot { margin-top: auto; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-content: center; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; z-index: 0; }
.hero-glow {
  position: absolute; z-index: 0; left: 50%; bottom: -32vh; width: 130vw; height: 70vh;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 110, 45, 0.28), rgba(255, 110, 45, 0.08) 45%, transparent 70%);
  filter: blur(10px);
}
.hero-grid-lines { position: absolute; inset: 0; z-index: 0; background: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%); pointer-events: none; }
.hero-content { position: relative; z-index: 2; text-align: center; padding-top: var(--header-h); }
.hero h1 { font-size: clamp(2.9rem, 8.4vw, 7.2rem); letter-spacing: -0.03em; }
.hero h1 .swap-line { display: block; min-height: 1.06em; }
.swap-word { display: inline-block; }
.js .swap-word .sw { display: inline-block; overflow: hidden; vertical-align: bottom; }
.js .swap-word .sw span { display: inline-block; transform: translateY(0); transition: transform 0.55s var(--ease); }
.js .swap-word.is-out .sw span { transform: translateY(-110%); }
.hero-sub { margin: 1.6rem auto 0; max-width: 58ch; font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--ink-soft); }
.hero-ctas { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }
.hero-proof { margin-top: clamp(2.6rem, 7vh, 4.5rem); display: flex; justify-content: center; gap: clamp(1.2rem, 3.5vw, 3rem); flex-wrap: wrap; padding-inline: 4vw; }
.hero-proof .pf { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); display: inline-flex; align-items: center; gap: 0.55rem; }
.hero-proof .pf::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--ember); box-shadow: 0 0 10px rgba(255, 138, 61, 0.6); }
.booted .hero-rise { opacity: 1; transform: none; }
.hero-rise { opacity: 0; transform: translateY(22px); transition: opacity 0.9s ease, transform 0.9s var(--ease-out); }
.hero-rise:nth-child(2) { transition-delay: 0.1s; }
.hero-rise:nth-child(3) { transition-delay: 0.2s; }
.hero-rise:nth-child(4) { transition-delay: 0.3s; }
html.reduced-motion .hero-rise { opacity: 1 !important; transform: none !important; }
.hero-scroll { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 2; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.9rem, 1.8vw, 1.4rem); }
.svc-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: clamp(1.4rem, 2.6vw, 2rem); text-decoration: none; color: var(--ink); overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease;
  display: flex; flex-direction: column; gap: 0.9rem;
}
.svc-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--molten); transform: scaleX(0); transform-origin: 0 0; transition: transform 0.5s var(--ease); }
.svc-card:hover { transform: translateY(-6px); border-color: rgba(255, 138, 61, 0.5); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--ember-soft); display: grid; place-items: center; color: var(--ember); }
.svc-card .ic svg { width: 22px; height: 22px; }
.svc-card h3 { font-size: 1.18rem; }
.svc-card p { color: var(--ink-soft); font-size: 0.9rem; margin: 0; line-height: 1.65; }
.svc-card .go { margin-top: auto; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); transition: color 0.3s ease; }
.svc-card:hover .go { color: var(--ember); }
@media (max-width: 1020px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- Assembly line (pipeline) ---------- */
.pipe-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.4rem, 3vw, 2.6rem); overflow: hidden; position: relative; }
.pipe-wrap::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 120%, var(--ember-soft), transparent 60%); }
.pipe-svg { width: 100%; height: auto; display: block; }
.pipe-svg .rail { fill: none; stroke: var(--line); stroke-width: 2; }
.pipe-svg .pulse { fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.pipe-svg .node-box { fill: var(--bg-2); stroke: var(--line); stroke-width: 1.5; rx: 12; transition: stroke 0.4s ease; }
.pipe-svg .node-ic { stroke: var(--ember); stroke-width: 1.7; fill: none; }
.pipe-svg .node-lbl { fill: var(--ink); font-family: var(--disp); font-weight: 700; font-size: 15px; }
.pipe-svg .node-sub { fill: var(--ink-faint); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; }
.pipe-svg .g-node.lit .node-box { stroke: var(--cyan); }
.pipe-legend { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 1.2rem; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); position: relative; z-index: 2; }
.pipe-legend b { color: var(--cyan); font-weight: 600; }

/* ---------- Terminal ---------- */
.term { background: #0d0c0a; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
:root[data-theme='light'] .term { background: #17130f; }
.term-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; border-bottom: 1px solid rgba(239, 234, 226, 0.1); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(239, 234, 226, 0.18); }
.term-bar i:first-child { background: #ff5a52; }
.term-bar i:nth-child(2) { background: #ffbe2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar .t-title { margin-left: 0.6rem; font-family: var(--mono); font-size: 0.66rem; color: rgba(239, 234, 226, 0.45); letter-spacing: 0.1em; }
.term-body { padding: 1.2rem 1.3rem 1.5rem; font-family: var(--mono); font-size: 0.78rem; line-height: 1.9; color: rgba(239, 234, 226, 0.82); min-height: 240px; }
.term-body .ln { display: block; white-space: pre-wrap; }
.term-body .ok { color: #6ee7a0; }
.term-body .dim { color: rgba(239, 234, 226, 0.4); }
.term-body .amber { color: var(--ember); }
.term-body .cyan { color: #7fe3ff; }
.term-caret { display: inline-block; width: 8px; height: 15px; background: #7fe3ff; vertical-align: -2px; animation: caretBlink 0.9s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }
html.reduced-motion .term-caret { animation: none; }
.term-note { margin-top: 0.9rem; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Template gallery ---------- */
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2.2vw, 1.8rem); }
.tpl-grid--teaser { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1020px) { .tpl-grid, .tpl-grid--teaser { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tpl-grid, .tpl-grid--teaser { grid-template-columns: 1fr; } }
.tpl-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.35s var(--ease-out), border-color 0.35s ease, box-shadow 0.35s ease; }
.tpl-card:hover { transform: translateY(-6px); border-color: rgba(255, 138, 61, 0.45); box-shadow: var(--shadow); }
.tpl-chrome { display: flex; align-items: center; gap: 0.4rem; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--line-soft); }
.tpl-chrome i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.tpl-chrome .url { margin-left: 0.5rem; font-family: var(--mono); font-size: 0.6rem; color: var(--ink-faint); letter-spacing: 0.06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-shot { position: relative; aspect-ratio: 16 / 10; background: #000; overflow: hidden; }
.tpl-shot video, .tpl-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tpl-shot video { opacity: 0; transition: opacity 0.4s ease; }
.tpl-shot.is-playing video { opacity: 1; }
.tpl-shot .play-hint { position: absolute; right: 0.8rem; bottom: 0.8rem; z-index: 3; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(239, 234, 226, 0.85); background: rgba(10, 9, 8, 0.55); backdrop-filter: blur(6px); padding: 0.4rem 0.7rem; border-radius: 6px; transition: opacity 0.3s ease; }
.tpl-shot.is-playing .play-hint { opacity: 0; }
.tpl-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.tpl-body h3 { font-size: 1.15rem; display: flex; align-items: baseline; gap: 0.6rem; }
.tpl-body h3 .no { font-family: var(--mono); font-weight: 400; font-size: 0.66rem; color: var(--ember); letter-spacing: 0.1em; }
.tpl-niche { display: flex; align-items: baseline; gap: 0.5rem; margin: -0.15rem 0 0.1rem; font-size: 0.82rem; color: var(--ink); font-weight: 600; line-height: 1.4; }
.tpl-niche span { flex: none; font-family: var(--mono); font-weight: 400; font-size: 0.54rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.5rem; transform: translateY(-0.12em); }
.tpl-body p { color: var(--ink-soft); font-size: 0.88rem; margin: 0; line-height: 1.65; }
.tpl-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.2rem; }
.tpl-chips span { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.08em; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 0.28rem 0.65rem; }
.tpl-foot { margin-top: auto; padding-top: 0.9rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tpl-foot .demo { font-family: var(--disp); font-weight: 700; font-size: 0.84rem; text-decoration: none; color: var(--ember); }
.tpl-foot .demo:hover { text-decoration: underline; }
.tpl-foot .use { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); text-decoration: none; }
.tpl-foot .use:hover { color: var(--ink); }

/* ---------- Products strip ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 860px) { .prod-grid { grid-template-columns: 1fr; } }
.prod { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem 1.6rem; }
.prod .p-name { font-family: var(--disp); font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 0.6rem; }
.prod .p-name i { width: 8px; height: 8px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan-soft); }
.prod p { color: var(--ink-soft); font-size: 0.88rem; margin: 0.6rem 0 0; }

/* ---------- Spec rows ---------- */
.spec-row { border-top: 1px solid var(--line); padding-block: clamp(1.5rem, 4vh, 2.4rem); display: grid; grid-template-columns: 110px 1fr 0.85fr; gap: clamp(1.2rem, 3vw, 3rem); align-items: start; }
.spec-row:last-child { border-bottom: 1px solid var(--line); }
.spec-row .no { font-family: var(--mono); font-weight: 600; font-size: clamp(1rem, 2vw, 1.5rem); color: var(--ember); line-height: 1.4; }
.spec-row h3 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); margin-bottom: 0.5rem; }
.spec-row p { color: var(--ink-soft); margin: 0; }
.spec-row .aside { font-family: var(--mono); font-size: 0.72rem; line-height: 2.1; color: var(--ink-faint); border-left: 1px solid var(--line); padding-left: 1.4rem; }
.spec-row .aside b { color: var(--ember); font-weight: 600; }
@media (max-width: 860px) { .spec-row { grid-template-columns: 60px 1fr; } .spec-row .aside { grid-column: 2; border-left: 0; padding-left: 0; } }

/* ---------- Blog cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2.2vw, 1.8rem); }
@media (max-width: 1020px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
.b-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform 0.35s var(--ease-out), border-color 0.35s ease; }
.b-card:hover { transform: translateY(-5px); border-color: rgba(255, 138, 61, 0.45); }
.b-card .media { aspect-ratio: 16 / 9; border-radius: 0; }
.b-card .media img { transition: transform 0.7s var(--ease); }
.b-card:hover .media img { transform: scale(1.045); }
.b-card .body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.b-card .cat { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ember); }
.b-card h3 { font-size: 1.05rem; line-height: 1.3; }
.b-card p { color: var(--ink-soft); font-size: 0.85rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b-card .foot { margin-top: auto; padding-top: 0.8rem; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }

/* Blog filters */
.filter-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: clamp(1.6rem, 4vh, 2.6rem); }
.filter-btn { border: 1px solid var(--line); background: transparent; color: var(--ink-soft); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; padding: 0.55rem 1.05rem; border-radius: 999px; cursor: pointer; transition: all 0.25s ease; }
.filter-btn:hover { border-color: var(--ember); color: var(--ink); }
.filter-btn.is-on { background: var(--molten); border-color: transparent; color: #16100b; font-weight: 600; }

/* ---------- Article (blog post) ---------- */
.post-head { padding-top: calc(var(--header-h) + clamp(2.6rem, 7vh, 4.5rem)); padding-bottom: clamp(1.8rem, 4vh, 2.6rem); }
.post-head h1 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); max-width: 24ch; }
.post-meta { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-top: 1.2rem; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.post-meta .cat { color: var(--ember); }
.post-hero { border-radius: 14px; overflow: hidden; margin-bottom: clamp(1.8rem, 4vh, 3rem); box-shadow: var(--shadow); }
.post-hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; display: block; }
.prose { max-width: 70ch; margin-inline: auto; font-size: 1.02rem; line-height: 1.85; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 2.4rem 0 0.9rem; }
.prose h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin: 1.9rem 0 0.7rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose a { color: var(--ember); }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1rem; }
.prose blockquote { margin: 1.9rem 0; padding: 0.2rem 0 0.2rem 1.4rem; border-left: 3px solid var(--ember); color: var(--ink); font-weight: 450; }
.prose img { border-radius: 10px; margin: 1.4rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 0.92rem; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line-soft); }
.prose code { font-family: var(--mono); font-size: 0.86em; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 5px; padding: 0.08em 0.4em; }
.prose pre { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 1rem 1.2rem; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; }

/* ---------- Page head / forms / contact ---------- */
.page-head { padding-top: calc(var(--header-h) + clamp(3rem, 8vh, 5rem)); padding-bottom: clamp(2rem, 5vh, 3.2rem); }
.page-head .crumb { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1.4rem; display: flex; gap: 0.8rem; }
.page-head .crumb a { text-decoration: none; }
.page-head .crumb a:hover { color: var(--ember); }
.page-head h1 { font-size: clamp(2.3rem, 6vw, 4.8rem); letter-spacing: -0.03em; }
.page-head .lede { margin-top: 1.4rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem 1rem; font: inherit; color: var(--ink); transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px var(--ember-soft); }
.field textarea { min-height: 140px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-success { display: none; padding: 2rem; border: 1px solid var(--ember); border-radius: 14px; background: var(--card); }
.form-success.is-visible { display: block; }
.form-success h3 { margin-bottom: 0.5rem; }
.form-err { display: none; margin-top: 0.9rem; color: #ff8078; font-size: 0.85rem; }
.form-err.is-visible { display: block; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-rail { display: flex; flex-direction: column; gap: 1.6rem; }
.info-rail .blk { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem 1.5rem; }
.info-rail .blk h3 { font-size: 1.02rem; margin-bottom: 0.45rem; }
.info-rail .blk p { color: var(--ink-soft); margin: 0; font-size: 0.9rem; }

/* ---------- Utility ---------- */
.rule-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(1.8rem, 5vh, 3rem); flex-wrap: wrap; }
.bg-alt { background: var(--bg-2); }
.cta-band { text-align: center; position: relative; overflow: hidden; }
.cta-band .hero-glow { bottom: -46vh; }
.cta-band h2 { font-size: clamp(2.1rem, 5.6vw, 4.4rem); margin-bottom: 1.6rem; letter-spacing: -0.03em; position: relative; }
.cta-band .row { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; position: relative; }
.cta-note { margin-top: 1.8rem; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); position: relative; }

.stat-row { display: flex; gap: clamp(1.4rem, 4.5vw, 3.6rem); flex-wrap: wrap; }
.stat-row .stat b { display: block; font-family: var(--disp); font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.1; }
.stat-row .stat b i { font-style: normal; background: var(--molten); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-row .stat span { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; padding-block: clamp(2.6rem, 6vh, 4rem) 2.4rem; }
.footer-grid h4 { font-family: var(--mono); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-grid a { text-decoration: none; color: var(--ink-soft); font-size: 0.9rem; transition: color 0.3s ease; }
.footer-grid a:hover { color: var(--ember); }
.footer-brand p { color: var(--ink-soft); font-size: 0.9rem; max-width: 34ch; }
.footer-bar { border-top: 1px solid var(--line-soft); padding-block: 1.1rem; display: flex; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); flex-wrap: wrap; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Gradient must be applied per char span — background-clip:text does not
   paint through inline-block descendants (the roll-up animation spans). */
.swap-word .sw span {
  background: var(--molten);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* Small-screen header: drop the CTA (it lives in the drawer), keep wordmark on one line */
@media (max-width: 700px) {
  .wordmark { font-size: 0.98rem; white-space: nowrap; }
  .wordmark .tld { display: none; }
  .site-header .header-tools .btn { display: none; }
}
@media (max-width: 700px) { .hero-scroll { display: none; } }

/* ============================================================
   V2 FLAGSHIP LAYER — "the site forges itself"
   Boot terminal intro, tilted template wall, stamped type,
   torch-reveal dark room, weld seams, spark trail, marquee.
   ============================================================ */

/* ---------- Boot intro ---------- */
.boot {
  position: fixed; inset: 0; z-index: 300; background: #070605;
  display: grid; place-items: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.boot.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-win {
  width: min(560px, 90vw); background: #0d0b09; border: 1px solid rgba(255, 138, 61, 0.25);
  border-radius: 12px; overflow: hidden; box-shadow: 0 0 80px rgba(255, 110, 45, 0.15);
}
.boot-bar { display: flex; gap: 0.45rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid rgba(239, 234, 226, 0.08); }
.boot-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(239, 234, 226, 0.16); }
.boot-bar i:first-child { background: #ff5a52; }
.boot-body { padding: 1.1rem 1.2rem 1.4rem; font-family: var(--mono); font-size: 0.8rem; line-height: 2; color: rgba(239, 234, 226, 0.85); min-height: 168px; }
.boot-body .ln { display: block; }
.boot-body .ok { color: #6ee7a0; }
.boot-body .amber { color: var(--ember); }
.boot-body .dim { color: rgba(239, 234, 226, 0.45); }
.boot-skip { margin-top: 1rem; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(239, 234, 226, 0.35); text-align: center; }
html.reduced-motion .boot { display: none; }

/* ---------- Forge hero (tilted wall of real work) ---------- */
.hero--forge { align-content: end; text-align: left; }
.hero--forge .hero-content { text-align: left; padding-bottom: clamp(3rem, 9vh, 6rem); }
.wall { position: absolute; inset: -14% -8%; z-index: 0; display: flex; gap: 1.6vw; transform: perspective(1100px) rotateX(11deg) rotateZ(-7deg) scale(1.16); pointer-events: none; }
.wall-col { flex: 1; display: flex; flex-direction: column; gap: 1.6vw; will-change: transform; }
.wall-col .wi { border-radius: 10px; overflow: hidden; border: 1px solid rgba(239, 234, 226, 0.08); }
.wall-col img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; filter: saturate(0.9) brightness(0.85); }
.wall-col.up { animation: wallUp 52s linear infinite; }
.wall-col.dn { animation: wallDn 60s linear infinite; }
@keyframes wallUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes wallDn { from { transform: translateY(-50%); } to { transform: translateY(0); } }
html.reduced-motion .wall-col { animation: none !important; }
.hero-scrim2 { position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(to right, color-mix(in srgb, var(--bg) 92%, transparent) 6%, color-mix(in srgb, var(--bg) 55%, transparent) 45%, color-mix(in srgb, var(--bg) 30%, transparent)),
  linear-gradient(to top, var(--bg) 4%, transparent 45%),
  linear-gradient(to bottom, color-mix(in srgb, var(--bg) 80%, transparent), transparent 30%); }
.hero--forge .hero-canvas { z-index: 2; }
.hero--forge .hero-content { position: relative; z-index: 3; }
.mega {
  font-size: clamp(3rem, 11.5vw, 10.4rem); line-height: 0.94; letter-spacing: -0.03em;
  text-transform: uppercase; font-weight: 700;
}
.mega .swap-line { min-height: 1.02em; }
.hero--forge .hero-sub { margin: 1.5rem 0 0; max-width: 52ch; }
.hero--forge .hero-ctas { justify-content: flex-start; }
.hero--forge .hero-proof { justify-content: flex-start; padding-inline: 0; }
@media (max-width: 700px) { .wall { inset: -8% -30%; gap: 3vw; } .wall-col:nth-child(4) { display: none; } }

/* ---------- Stamped type (words strike in like hammered metal) ---------- */
.js .stw { display: inline-block; opacity: 0; transform: translateY(-0.32em) scale(1.4); filter: blur(7px); }
.js .is-stamped .stw { opacity: 1; transform: none; filter: none; transition: opacity 0.4s ease, transform 0.42s var(--ease-out), filter 0.35s ease; }
html.reduced-motion .stw { opacity: 1 !important; transform: none !important; filter: none !important; }
.spark-burst { position: fixed; z-index: 240; width: 4px; height: 4px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px rgba(255, 138, 61, 0.8); pointer-events: none; animation: sparkFly 0.7s ease-out forwards; }
.spark-burst.hot { background: #7fe3ff; box-shadow: 0 0 8px rgba(127, 227, 255, 0.8); }
@keyframes sparkFly { to { transform: translate(var(--sx), var(--sy)) scale(0.2); opacity: 0; } }

/* ---------- Torch-reveal dark room ---------- */
.dark-room { position: relative; border-radius: 18px; overflow: hidden; background: #080706; border: 1px solid var(--line); min-height: 480px; cursor: none; }
:root[data-theme='light'] .dark-room { background: #14100c; }
.dr-off { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 2rem; z-index: 1; }
.dr-off h3 { color: rgba(239, 234, 226, 0.32); font-size: clamp(1.4rem, 3vw, 2.3rem); max-width: 22ch; }
.dr-off p { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(239, 234, 226, 0.28); margin-top: 1rem; }
.dr-lit {
  position: absolute; inset: 0; z-index: 2; padding: clamp(1.4rem, 3vw, 2.6rem);
  display: grid; align-content: center; background: #131008;
  -webkit-mask-image: radial-gradient(circle 200px at var(--tx, 50%) var(--ty, 50%), black 0 52%, transparent 78%);
  mask-image: radial-gradient(circle 200px at var(--tx, 50%) var(--ty, 50%), black 0 52%, transparent 78%);
}
.dr-lit .pipe-svg .node-box { fill: #1b150e; stroke: rgba(255, 179, 92, 0.35); }
.dr-lit .pipe-svg .node-lbl { fill: #efeae2; }
.dr-lit .pipe-svg .node-sub { fill: rgba(239, 234, 226, 0.5); }
.dr-lit .pipe-svg .rail { stroke: rgba(239, 234, 226, 0.25); }
.torch { position: absolute; z-index: 3; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; pointer-events: none; left: 0; top: 0;
  background: radial-gradient(circle, rgba(255, 200, 120, 0.95), rgba(255, 138, 61, 0.35) 55%, transparent 75%);
  box-shadow: 0 0 34px 10px rgba(255, 150, 70, 0.35); }
.dr-cap { margin-top: 1.1rem; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
html.reduced-motion .dark-room { cursor: auto; }
html.reduced-motion .dr-lit { -webkit-mask-image: none; mask-image: none; }
html.reduced-motion .dr-off, html.reduced-motion .torch { display: none; }

/* ---------- Weld seams ---------- */
.seam { border: 0; margin: 0 auto; width: min(1240px, 92vw); height: 26px; position: relative; overflow: visible; background: none; }
.seam svg { width: 100%; height: 100%; overflow: visible; }
.seam .s-line { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 6 8; }
.seam .s-melt { fill: none; stroke: url(#seamGrad); stroke-width: 2; stroke-dasharray: 900; stroke-dashoffset: 900; }
.seam.is-inview .s-melt { animation: seamDraw 1.6s var(--ease) forwards; }
@keyframes seamDraw { to { stroke-dashoffset: 0; } }
.seam .s-dot { fill: var(--ember); filter: drop-shadow(0 0 6px rgba(255, 138, 61, 0.8)); opacity: 0; }
.seam.is-inview .s-dot { opacity: 1; animation: seamDot 1.6s var(--ease) forwards; }
@keyframes seamDot { from { transform: translateX(0); } to { transform: translateX(100%); opacity: 0; } }
html.reduced-motion .seam .s-melt { stroke-dashoffset: 0; animation: none; }
html.reduced-motion .seam .s-dot { display: none; }

/* ---------- Spark cursor trail ---------- */
.trail-dot { position: fixed; z-index: 250; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 6px rgba(255, 138, 61, 0.7); pointer-events: none; animation: trailFade 0.55s ease-out forwards; }
@keyframes trailFade { to { transform: translateY(6px) scale(0.15); opacity: 0; } }

/* ---------- Template marquee (home teaser) ---------- */
.tpl-marquee { overflow: hidden; margin-inline: calc(50% - 50vw); padding-block: 0.6rem; }
.tpl-track { display: flex; gap: clamp(1rem, 1.8vw, 1.6rem); width: max-content; animation: tplDrift 55s linear infinite; padding-inline: 2vw; }
.tpl-marquee:hover .tpl-track { animation-play-state: paused; }
@keyframes tplDrift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html.reduced-motion .tpl-track { animation: none; flex-wrap: wrap; width: auto; }
.tpl-track .tpl-card { width: clamp(300px, 30vw, 420px); flex: none; }

/* FX layer — sparks/trail live here so they can never expand the viewport */
#fx-layer { position: fixed; inset: 0; overflow: hidden; z-index: 250; pointer-events: none; }
#fx-layer .spark-burst, #fx-layer .trail-dot { position: absolute; }

/* Mobile layout-viewport guard: body's overflow-x propagates to the viewport,
   leaving pre-stamped (scaled) words free to expand the ICB — clip at html. */
html { overflow-x: hidden; }
.js .stw { transform: translateY(-0.32em) scale(1.18); }
.dr-cap { width: min(1240px, 92vw); margin-inline: auto; }

/* ---------- Floating WhatsApp chat button ---------- */
.wa-fab {
  position: fixed; right: calc(1.5rem - 4px); bottom: 1.5rem; z-index: 180;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.55), 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s var(--ease-out), box-shadow 0.3s ease;
}
.wa-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 38px -10px rgba(37, 211, 102, 0.7), 0 2px 8px rgba(0, 0, 0, 0.25); }
.wa-fab svg { width: 30px; height: 30px; fill: currentColor; }
.wa-fab::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.55); animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: 1; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
html.reduced-motion .wa-fab::before { animation: none; display: none; }
.wa-fab .wa-tip {
  position: absolute; right: calc(100% + 0.7rem); top: 50%; transform: translateY(-50%) translateX(6px);
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.5rem 0.8rem; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.3s var(--ease-out);
}
.wa-fab:hover .wa-tip, .wa-fab:focus-visible .wa-tip { opacity: 1; transform: translateY(-50%); }
@media (max-width: 700px) { .wa-fab { width: 52px; height: 52px; right: calc(1rem - 2px); } .wa-fab .wa-tip { display: none; } }

/* Count-up spans inside .stat b must not inherit the small label style (.stat span). */
.stat-row .stat b span { font: inherit; letter-spacing: inherit; color: inherit; text-transform: none; }
