/* =====================================================================
   SIGNAL — phase5.css  (Interaction design & motion refinement)
   Isolated visual layer for the Phase 5 signature interactions, so it
   reviews / reverts as one unit. Loaded AFTER style.css (overrides win).
   Tokens reused from style.css :root. Transforms are GPU; root magnetic
   elements keep their gsap-owned transform — only children animate here.
   ===================================================================== */

/* ============== 1 · HERO TITLE — IGNITE TYPOGRAPHY ================== */
/* The letters IGNITE from white into a premium ultraviolet gradient as the
   cursor's light passes over them. Done with a pixel-perfect, fully STATIC
   gradient clone whose glyphs crossfade per-proximity — same position, no
   mask edge, no 3D divergence → reads as letters lighting up, never as a
   second/ghost text. A soft diffuse glow trails the cursor for warmth. */
/* fit the longest line ("O INESQUECÍVEL.") to the viewport — the old size
   clipped the last glyph off the right edge (QA 2026-06-24). */
.hero__title { position: relative; font-size: clamp(2.2rem, 9vw, 10rem); }
.hero__line { position: relative; z-index: 1; }

/* travelling ultraviolet "signal" glow that tracks the cursor under the type */
.hero__title-glow {
  position: absolute; left: 0; top: 0;
  width: 460px; height: 460px;
  margin-left: -230px; margin-top: -230px;       /* x/y position its CENTRE */
  border-radius: 50%;
  background: radial-gradient(circle, var(--signal-glow) 0%, rgba(139, 92, 255, 0.12) 35%, transparent 68%);
  filter: blur(8px);
  mix-blend-mode: screen;
  opacity: 0; visibility: hidden;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
}

/* the gradient clone — sits EXACTLY over the base type; each glyph's opacity
   is driven per-proximity by JS (0 = white base shows · 1 = ignited gradient) */
.hero__title-spot { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero__title-spot .hero__line { color: transparent; }
.hero__title-spot .char {
  opacity: 0;
  background-image: linear-gradient(125deg, #e7ddff 0%, var(--signal-br) 34%, var(--signal) 62%, #6b3fff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  will-change: opacity;
}
@media (prefers-reduced-motion: reduce) {
  .hero__title-glow, .hero__title-spot { display: none; }
}

/* WebGL liquid-title canvas — fixed over the title, hover-driven (water.js).
   Hidden by default; the plain DOM title shows whenever this is off/failed. */
.hero__water {
  position: fixed; z-index: 6; pointer-events: none;
  opacity: 0; transition: opacity 0.35s var(--ease);
  will-change: opacity;
}
@media (prefers-reduced-motion: reduce) { .hero__water { display: none; } }

/* ====================== 2 · SCROLL-TO-TOP LAUNCHER =================== */
.footer__top-circle {
  position: relative; overflow: hidden;
  will-change: transform;
}
/* two stacked arrows → the launcher "fires": current exits up, next rolls in */
.footer__top-circle svg { grid-area: 1 / 1; }      /* stack both in one cell */
.footer__top-circle svg:nth-child(2) { transform: translateY(140%); }
.footer__top:hover .footer__top-circle svg:nth-child(1) { transform: translateY(-140%); }
.footer__top:hover .footer__top-circle svg:nth-child(2) { transform: translateY(0); }
.footer__top-circle svg {
  transition: transform 0.55s var(--ease);
}
.footer__top:hover .footer__top-circle { border-color: var(--signal-deep); background: rgba(139, 92, 255, 0.14); }

/* ====================== 6 · FOOTER SOCIAL SYSTEM ===================== */
.footer__socials { gap: var(--s-4); }
.social {
  position: relative; overflow: visible;          /* name floats above */
  color: #c8c8d2;
}
/* icon window — clips the vertical roll */
.social__icon {
  display: block; width: 20px; height: 20px; overflow: hidden;
}
.social__roll {
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease);
  will-change: transform;
}
.social__roll svg {
  width: 20px; height: 20px; flex: 0 0 20px;
  fill: currentColor; display: block;
}
.social__roll svg:nth-child(2) { color: var(--signal-br); fill: var(--signal-br); }
.social:hover .social__roll { transform: translateY(-20px); }   /* roll to the UV copy */

/* floating platform label — reveals above the button on hover */
.social__name {
  position: absolute; left: 50%; bottom: calc(100% + 10px);
  transform: translate(-50%, 8px);
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; white-space: nowrap;
  color: var(--signal-br);
  padding: 4px 10px; border-radius: 999px;
  background: rgba(139, 92, 255, 0.1); border: 1px solid rgba(139, 92, 255, 0.28);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.social:hover .social__name { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.social:hover { color: #fff; border-color: var(--signal-deep); background: rgba(139, 92, 255, 0.14); }
@media (prefers-reduced-motion: reduce) {
  .social__roll, .footer__top-circle svg { transition: none; }
}

/* ====================== 4 · GALLERY DISCOVERY HUD ==================== */
.gallery__progress {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(20px, 4vh, 44px);
  display: flex; align-items: center; gap: var(--s-4);
  pointer-events: none; z-index: 4;
}
.gallery__progress-index {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em;
  color: var(--text-dim); white-space: nowrap;
}
.gallery__progress-index b { color: var(--signal-br); font-weight: 500; }
.gallery__progress-index i { font-style: normal; color: var(--text-mute); }
.gallery__progress-rail {
  position: relative; flex: 1; height: 1px;
  background: var(--line); overflow: hidden;
}
.gallery__progress-bar {
  position: absolute; inset: 0; transform-origin: left center; transform: scaleX(0);
  background: linear-gradient(90deg, var(--signal-deep), var(--signal-br));
  will-change: transform;
}
.gallery__progress-hint {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--text); white-space: nowrap; min-width: 14ch; text-align: right;
}
@media (max-width: 1024px) { .gallery__progress { display: none; } }

/* ====================== 5 · PREMIUM PROJECT MODAL =================== */
.pmodal {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none;
  width: 100vw; height: 100dvh; background: transparent; color: var(--text);
  overflow: hidden;
}
.pmodal:not([open]) { display: none; }
.pmodal[open] { display: flex; align-items: center; justify-content: center; }
.pmodal::backdrop { background: transparent; }      /* we drive our own scrim */

.pmodal__scrim {
  position: fixed; inset: 0; z-index: 0;
  background: rgba(5, 5, 8, 0.72);
  -webkit-backdrop-filter: blur(10px) saturate(0.9); backdrop-filter: blur(10px) saturate(0.9);
}
.pmodal__shell {
  position: relative; z-index: 1;
  width: min(960px, 92vw); max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(180deg, #121119, var(--surface));
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 60px 140px -50px rgba(0, 0, 0, 0.9);
  scrollbar-width: none;                       /* hidden scrollbar — scroll still works */
}
.pmodal__shell::-webkit-scrollbar { width: 0; height: 0; display: none; }

.pmodal__hero {
  position: relative; height: clamp(220px, 38vh, 360px); overflow: hidden;
  border-radius: 18px 18px 0 0;
}
.pmodal__media {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: saturate(0.9) contrast(1.04);
}
.pmodal__media--grad {
  background:
    radial-gradient(120% 120% at 25% 10%, rgba(139, 92, 255, 0.5), transparent 55%),
    conic-gradient(from 210deg at 70% 80%, #2b1b54, #0c0c18, #1a2540, #0c0c18);
}
.pmodal__hero::after {           /* legibility veil under the heading */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 14, 0.1) 30%, rgba(8, 8, 14, 0.85) 100%);
}
.pmodal__heading {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: clamp(20px, 4vw, 40px);
}
.pmodal__index b { font-family: var(--font-mono); font-size: 0.8rem; color: var(--signal-br); font-weight: 500; }
.pmodal__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -0.03em;
  margin-top: 6px;
}
.pmodal__client {
  display: block; margin-top: 8px;
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-dim);
}

.pmodal__body { padding: clamp(22px, 4vw, 44px); display: grid; gap: clamp(24px, 4vw, 38px); }
.pmodal__lead {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(20px, 4vw, 44px);
  align-items: start;
}
.pmodal__desc { color: var(--text); font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.6; }
.pmodal__meta { display: grid; gap: var(--s-3); }
.pmodal__meta div { display: flex; justify-content: space-between; gap: var(--s-3); border-bottom: 1px solid var(--line); padding-bottom: var(--s-2); }
.pmodal__meta dt { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.06em; }
.pmodal__meta dd { font-size: 0.9rem; color: var(--text); text-align: right; }

.pmodal__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.pmetric {
  border: 1px solid var(--line); border-radius: 12px; padding: clamp(14px, 2vw, 22px);
  background: rgba(255, 255, 255, 0.015);
}
.pmetric b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--signal-br); letter-spacing: -0.02em; }
.pmetric span { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--text-dim); }

.pmodal__cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(22px, 4vw, 44px); }
.pmodal__sub {
  display: block; margin-bottom: var(--s-3);
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-mute);
}
.pmodal__highlights { list-style: none; display: grid; gap: var(--s-3); }
.pmodal__highlights li {
  position: relative; padding-left: 22px; color: var(--text-dim); font-size: 0.94rem; line-height: 1.5;
}
.pmodal__highlights li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 12px var(--signal-glow);
}
.pmodal__stack { display: flex; flex-wrap: wrap; gap: var(--s-2); align-content: flex-start; }
.pmodal__stack span {
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--text);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.pmodal__close {
  position: absolute; top: 18px; right: 18px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(8, 8, 14, 0.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  cursor: pointer; color: #fff;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.pmodal__close:hover { border-color: var(--signal-deep); background: rgba(139, 92, 255, 0.2); }
.pmodal__close-x { position: relative; width: 16px; height: 16px; }
.pmodal__close-x i {
  position: absolute; top: 50%; left: 0; width: 100%; height: 1.5px; background: currentColor; border-radius: 2px;
}
.pmodal__close-x i:nth-child(1) { transform: translateY(-50%) rotate(45deg); }
.pmodal__close-x i:nth-child(2) { transform: translateY(-50%) rotate(-45deg); }

/* the FLIP ghost — clone that morphs card ↔ modal hero */
.pmodal__ghost {
  background-size: cover; background-position: center;
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.9);
  pointer-events: none; will-change: left, top, width, height;
  overflow: hidden;
}
.pmodal__ghost--grad {
  background:
    radial-gradient(120% 120% at 25% 10%, rgba(139, 92, 255, 0.5), transparent 55%),
    conic-gradient(from 210deg at 70% 80%, #2b1b54, #0c0c18, #1a2540, #0c0c18);
}

@media (max-width: 720px) {
  .pmodal__lead, .pmodal__cols { grid-template-columns: 1fr; }
  .pmodal__metrics { grid-template-columns: 1fr; }
}

/* ====================== QA FIXES (2026-06-24) ======================= */

/* C · gallery cards must FIT the pinned viewport (were clipped top/bottom) and
   the HUD gets a reserved bottom band so it never sits over the card text.
   Cap the media by HEIGHT (not aspect-ratio) + clamp the desc to 2 lines. */
@media (min-width: 1025px) {
  .gallery { padding-bottom: clamp(78px, 12vh, 132px); }
  .gallery .wcard__media { aspect-ratio: auto; height: clamp(230px, 42vh, 430px); }
  .gallery .wcard--md .wcard__media { height: clamp(250px, 50vh, 510px); }
  .gallery .wcard__desc {
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* D · restore a real pointer INSIDE the modal — the <dialog> top-layer renders
   above the custom cursor element, so without this there is no cursor at all. */
.pmodal[open], .pmodal[open] * { cursor: auto; }
.pmodal[open] .pmodal__close, .pmodal[open] a, .pmodal[open] [data-pmodal-close] { cursor: pointer; }

/* F · collaboration wall — real brand logos (black-on-transparent PNGs from the
   old repo → forced to a uniform white silhouette on the dark wall). */
.collab__wall--logos { gap: clamp(28px, 5vw, 72px) clamp(34px, 6vw, 84px); }
.collab__brand img {
  display: block; height: clamp(22px, 2.4vw, 34px); width: auto; object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.collab__brand:hover img { opacity: 1; transform: translateY(-2px); }
/* square / tall marks (BYD, Itaú) need a touch more height to match optically */
.collab__brand img[alt="BYD"], .collab__brand img[alt="Itaú"] { height: clamp(30px, 3.4vw, 46px); }

/* ============== SECTION STEPS (right rail, replaces the scrollbar) ==== */
/* hide the page scrollbar — the dot-nav is the scroll indicator now.
   (the modal keeps its own scrollbar — more specific selector wins.) */
html { scrollbar-width: none; }
html::-webkit-scrollbar { width: 0; height: 0; display: none; }

.dotnav {
  position: fixed; right: clamp(14px, 2vw, 34px); top: 50%; transform: translateY(-50%);
  z-index: 60; display: flex; flex-direction: column; gap: 11px; align-items: center;
}
.dotnav__dot {
  position: relative; display: block; padding: 3px 6px; border: 0; background: none;
  cursor: pointer; line-height: 0;
}
.dotnav__track {
  display: block; width: 2px; height: 18px; border-radius: 3px; overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), background-color 0.35s var(--ease);
}
.dotnav__fill {
  display: block; width: 100%; height: 100%;
  background: var(--signal); transform: scaleY(0); transform-origin: top;
  transition: transform 0.12s linear;
  will-change: transform;
}
.dotnav__dot.is-active .dotnav__track {
  width: 3px; height: 34px; background: rgba(255, 255, 255, 0.24);
}
.dotnav__dot.is-active .dotnav__fill { box-shadow: 0 0 12px var(--signal-glow); }

/* section label — slides in from the right on hover */
.dotnav__label {
  position: absolute; right: calc(100% + 6px); top: 50%;
  transform: translateY(-50%) translateX(6px);
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; white-space: nowrap; color: var(--signal-br);
  padding: 3px 9px; border-radius: 999px;
  background: rgba(139, 92, 255, 0.1); border: 1px solid rgba(139, 92, 255, 0.26);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.dotnav__dot:hover .dotnav__label,
.dotnav__dot.is-active:hover .dotnav__label { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }

@media (max-width: 820px) { .dotnav { display: none; } }
@media (prefers-reduced-motion: reduce) { .dotnav__fill, .dotnav__track { transition: none; } }

/* ============== NAV AUTO-HIDE + PREMIUM STORY CARD (Phase 7) ========= */
/* hide the navbar while scrolling DOWN, reveal on the way up (main.js) */
.nav {
  transition: transform 0.45s var(--ease), padding 0.5s var(--ease),
    background-color 0.5s var(--ease), border-color 0.5s var(--ease),
    backdrop-filter 0.5s var(--ease);
}
.nav.is-hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .nav.is-hidden { transform: none; } }

/* premium frame for the Trajetória story card (was flat) */
.about__portrait {
  border-color: rgba(139, 92, 255, 0.16);
  background:
    radial-gradient(130% 90% at 50% -8%, rgba(139, 92, 255, 0.22), transparent 58%),
    linear-gradient(165deg, #181233 0%, #0d0b18 58%, #08070f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 70px -22px rgba(139, 92, 255, 0.28),
    0 50px 100px -52px rgba(0, 0, 0, 0.85);
}
.about__portrait-glow { opacity: 0.9; }

/* huge faded state number = depth + fills the empty top half */
.story__bignum {
  position: absolute; right: clamp(12px, 2.6vw, 30px); top: 50%;
  transform: translateY(-58%); z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--font-display); font-weight: 700; line-height: 0.76;
  font-size: clamp(7rem, 24vh, 15rem); letter-spacing: -0.05em;
  color: rgba(139, 92, 255, 0.07);
}

/* editorial phase label with a leading accent line + bigger title */
.story__phase { display: inline-flex; align-items: center; gap: 10px; }
.story__phase::before { content: ""; flex: 0 0 auto; width: 20px; height: 1px; background: var(--signal); }
.story__head { font-size: clamp(1.5rem, 2.4vw, 2.4rem); line-height: 1.05; }
.story__progress span.is-active { box-shadow: 0 0 10px var(--signal-glow); }

/* ============== PHASE 6 — TRANSITION DESIGN & MOTION CONTINUITY ====== */

/* 2 · TRAJECTORY — storytelling card (5 states cross-fade while pinned) */
.story__states { position: absolute; inset: 0; z-index: 1; }
.story__state {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: var(--s-3); padding: clamp(22px, 3vw, 40px);
  opacity: 0; visibility: hidden;
  will-change: opacity, transform;
}
.story__state.is-first { opacity: 1; visibility: visible; }   /* static fallback (mobile/reduced) */
.story__phase {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--signal-br);
}
.story__head {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.3rem, 2vw, 2rem); line-height: 1.08; letter-spacing: -0.02em;
  color: var(--text);
}
.story__body { font-size: clamp(0.86rem, 1vw, 0.96rem); line-height: 1.5; color: var(--text-dim); max-width: 30ch; }

.story__progress {
  position: absolute; top: clamp(20px, 3vw, 34px); left: clamp(22px, 3vw, 40px);
  display: flex; gap: 7px; z-index: 3;
}
.story__progress span {
  width: 22px; height: 2px; border-radius: 2px;
  background: var(--line); transition: background-color 0.4s var(--ease);
}
.story__progress span.is-active { background: var(--signal); }

/* move the id chip to the top-right so it never collides with the state copy */
.about__portrait-id { left: auto; right: clamp(22px, 3vw, 40px); top: clamp(20px, 3vw, 34px); bottom: auto; z-index: 3; }

/* fit the whole Trajetória scene in the viewport (was overflowing — QA 2026-06-24) */
@media (min-width: 1025px) {
  .about { padding-top: clamp(84px, 10vh, 116px); padding-bottom: clamp(36px, 6vh, 64px); }
  .about__media, .about__portrait { max-height: 52vh; }
  .about__lead { font-size: clamp(1.4rem, 2.5vw, 2.1rem); }
}

/* EXPERTISE — premium service cards (3-up, real 3D tilt, cursor light,
   tech-stack chips, focus-dim). The old 2-col + dead translateZ looked off. */
@media (min-width: 1025px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); perspective: 1400px; }
}
.service {
  background: linear-gradient(180deg, #131019, #0c0b11);
  padding: clamp(24px, 2.3vw, 38px);
  min-height: clamp(230px, 32vh, 380px);
  justify-content: flex-start; gap: var(--s-3);
  isolation: isolate;
  transition: border-color 0.5s var(--ease), background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.service:hover {
  border-color: var(--signal-deep); background: linear-gradient(180deg, #181225, #0e0c14);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9);
}
/* immersive focus — hovering one card recedes the others */
.services__grid:has(.service:hover) .service:not(:hover) { opacity: 0.45; filter: saturate(0.6); }

/* huge ghost index bleeding off the corner = depth + premium */
.service__ghost {
  position: absolute; right: -0.06em; bottom: -0.28em; z-index: 0;
  font-family: var(--font-display); font-weight: 700; line-height: 0.8;
  font-size: clamp(7rem, 12vw, 13rem); letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.035);
  transition: color 0.5s var(--ease); pointer-events: none; user-select: none;
}
.service:hover .service__ghost { color: rgba(139, 92, 255, 0.10); }

/* cursor-following light inside the card (JS sets --gx/--gy) */
.service__glow {
  position: absolute; top: 0; left: 0; z-index: 1;
  width: 420px; height: 420px; margin: -210px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 255, 0.22), transparent 66%);
  opacity: 0; transition: opacity 0.4s var(--ease);
  mix-blend-mode: screen; pointer-events: none;
  will-change: transform, opacity;
}
.service:hover .service__glow { opacity: 1; }

.service__head, .service__desc, .service__stack { position: relative; z-index: 2; }
.service__head { display: flex; align-items: center; gap: var(--s-3); }
.service__num { transform: none; }
.service__name { margin: 0; transform: none; }
.service__desc { transform: none; margin-top: var(--s-2); font-size: 0.92rem; line-height: 1.55; }

.service__stack {
  list-style: none; display: flex; flex-wrap: wrap; gap: 7px;
  margin-top: auto; padding-top: var(--s-4);
}
.service__stack li {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.02em;
  color: var(--text-dim);
  padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.015);
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.service:hover .service__stack li { color: var(--text); border-color: rgba(139, 92, 255, 0.32); }

/* COLOR BRIDGE hero → about — the two sections must MEET at the same colour
   so there's no hard seam. The hero fades to a soft ultraviolet at its BOTTOM
   and the about fades from the SAME ultraviolet at its TOP → at the boundary
   both equal ~0.12, then each fades away into its own section (a shared glow
   straddling the seam, not a purple band starting abruptly). */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  z-index: -1; pointer-events: none;          /* behind the hero content, above the bg layers */
  background: linear-gradient(180deg, transparent 0%, rgba(108, 63, 255, 0.12) 100%);
}
.about { position: relative; }
.about::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(108, 63, 255, 0.12) 0%,
    rgba(108, 63, 255, 0.04) 22%,
    transparent 46%);
}

/* 1 · CONTINUITY — the migrating "bridge" light that travels hero → about,
   living in the fixed atmosphere layer so it spans the section boundary. */
.bridge-orb {
  position: absolute; top: 0; left: 0;
  width: 40vw; height: 40vw; max-width: 620px; max-height: 620px;
  margin-left: -20vw; margin-top: -20vw;       /* x/y position its centre */
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 255, 0.20), rgba(108, 63, 255, 0.08) 45%, transparent 70%);
  filter: blur(60px);
  opacity: 0; will-change: transform, opacity;
}
@media (prefers-reduced-motion: reduce) { .bridge-orb { display: none; } }
@media (max-width: 1024px) { .bridge-orb { display: none; } }
