/* ==========================================================================
   Aperi · service.css — service detail pages (/services/<id>/) and the 404.
   Tokens and shared components come from base.css; nothing here overrides
   them. Every page section uses the same rhythm: .section padding
   (--section-y) and the .section-head pattern.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Navigation: mark where the visitor is (Services in the bar, the
      current service in the mobile sheet). Belongs in base.css section 7
      once the other pages adopt aria-current.
   -------------------------------------------------------------------------- */
.nav__link[aria-current] { color: var(--text); }
.nav__sheet a[aria-current="page"] { color: var(--green); }

/* --------------------------------------------------------------------------
   1. Hero: breadcrumb, then copy left and illustration right
      (stacked under 1000px)
   -------------------------------------------------------------------------- */
.svc-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(28px, 5vh, 56px));
  padding-bottom: clamp(8px, 1.5vw, 24px);
  overflow-x: clip;
}
.svc-hero .bg-grid { height: 820px; }
.svc-hero__glow {
  width: min(960px, 120vw);
  height: 680px;
  right: -14%;
  top: 40px;
  opacity: 0.7;
}
.svc-hero__inner { position: relative; }

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before {
  content: "/";
  margin-inline: 12px;
  color: var(--line-3);
}
.crumbs a {
  color: var(--text-3);
  border-radius: 4px;
  transition: color 200ms var(--ease-out);
}
.crumbs a:hover { color: var(--green); }
.crumbs [aria-current="page"] { color: var(--text-2); }

.svc-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 6vw, 96px);
  margin-top: clamp(40px, 7vh, 80px);
}
.svc-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  container-type: inline-size;
}
/* Each headline is two set lines. The cap (13.6% of the copy column) keeps the
   longest of them ("Steady accounts.", 7.2em) on one line at any width. */
.svc-hero__title {
  margin-top: clamp(20px, 2.2vw, 28px);
  font-size: min(var(--fs-h1), 13.6cqi);
}
.svc-hero__line { display: block; }
.svc-hero__lead { max-width: 40rem; margin-top: clamp(20px, 2.2vw, 28px); }
.svc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(32px, 3.4vw, 44px);
}

/* Small laptops and iPad landscape: give the copy more of the row so the
   headline keeps its size and both buttons stay on one line */
@media (min-width: 1000px) and (max-width: 1279px) {
  .svc-hero__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(40px, 4vw, 56px); }
}
@media (max-width: 999px) {
  .svc-hero__grid { grid-template-columns: minmax(0, 1fr); gap: clamp(48px, 8vw, 72px); }
  .svc-hero__glow { right: auto; left: 50%; translate: -50% 0; top: 360px; }
  .svc-figure { width: 100%; }
}
@media (max-width: 560px) {
  .svc-hero__grid { margin-top: 40px; }
  .svc-hero__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .svc-hero__actions .btn { width: 100%; }
}
/* Very narrow phones: a long service name may wrap rather than overflow */
@media (max-width: 380px) {
  .svc-hero__actions .btn {
    height: auto;
    min-height: var(--btn-h);
    padding-block: 14px;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }
}

/* --------------------------------------------------------------------------
   2. Illustration panel: the service's card art, larger, in window chrome
   -------------------------------------------------------------------------- */
.svc-figure {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(20, 26, 21, 0.82), rgba(10, 13, 11, 0.9));
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    inset 0 0 0 1px var(--line-2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 40px 120px -30px rgba(0, 0, 0, 0.9),
    0 0 80px -20px var(--green-a16);
  overflow: hidden;
}
.svc-figure__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 46px;
  padding-inline: 18px;
  border-bottom: 1px solid var(--line);
}
.svc-figure__lights { display: flex; gap: 7px; flex: none; }
.svc-figure__lights i { width: 11px; height: 11px; border-radius: 50%; background: rgba(214, 255, 216, 0.12); }
.svc-figure__title {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: var(--fs-mono-sm);
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.svc-figure__tag {
  flex: none;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  color: var(--text-3);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.svc-figure__art {
  padding: clamp(32px, 4.4vw, 56px) clamp(20px, 2.8vw, 36px);
  background: radial-gradient(120% 90% at 50% 100%, rgba(141, 255, 144, 0.07), transparent 60%);
}
.svc-figure__art svg { width: 100%; max-width: 520px; height: auto; margin-inline: auto; overflow: visible; }
.svc-figure__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line);
}
.svc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px 0 10px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.02em;
  color: var(--text-2);
  background: rgba(238, 243, 238, 0.03);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.svc-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green-a50);
}
/* Window chrome: when the panel is wide enough, the title centres on the
   window rather than in the space between the lights and the tag */
.svc-figure { container-type: inline-size; }
@media (min-width: 561px) {
  @container (min-width: 440px) {
    .svc-figure__bar { display: grid; grid-template-columns: 1fr minmax(0, max-content) 1fr; }
    .svc-figure__tag { justify-self: end; }
  }
}
/* Narrow panel beside the copy (about 1000–1170px): a tighter bar keeps the
   whole title visible */
@media (min-width: 1000px) {
  @container (max-width: 439px) {
    .svc-figure__bar { gap: 10px; padding-inline: 14px; }
    .svc-figure__tag { padding-inline: 7px; }
  }
}
@media (max-width: 560px) {
  .svc-figure__tag { display: none; }
  .svc-figure__title { text-align: left; }
  .svc-figure__art { padding: 36px 10px; }
  .svc-figure__foot { padding-inline: 16px; }
}
/* Narrow phones: three chips still fit on one row */
@media (max-width: 380px) {
  .svc-figure__foot { gap: 6px; padding-inline: 14px; }
  .svc-chip { gap: 6px; padding: 0 10px 0 8px; }
}

/* --------------------------------------------------------------------------
   3. Service art (same drawings as the home cards, scoped to .svc-art)
   -------------------------------------------------------------------------- */
.svc-art svg { display: block; }
.svc-art text { font-family: var(--font-mono); }
.svc-art .art-path path { stroke: rgba(141, 255, 144, 0.22); stroke-width: 1.4; }
.svc-art .art-pulse path {
  stroke: var(--green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 10 220;
  stroke-dashoffset: 230;
  opacity: 0;
}
.svc-art .art-node { fill: var(--surface-3); stroke: rgba(214, 255, 216, 0.2); stroke-width: 1.2; }
.svc-art .art-node--hot { stroke: var(--green); fill: rgba(141, 255, 144, 0.08); }
.svc-art .art-label { font-size: 10px; fill: var(--text-3); letter-spacing: 0.06em; }
.svc-art .art-label--hot { fill: var(--green); }
.svc-art .art-glyph { font-size: 11px; fill: var(--text-2); }
.svc-art .art-gridlines path { stroke: rgba(214, 255, 216, 0.06); stroke-width: 1; stroke-dasharray: 2 5; }
.svc-art .art-candles rect { fill: rgba(214, 255, 216, 0.14); transform-box: fill-box; transform-origin: 50% 100%; }
.svc-art .art-candles .art-candle--hot { fill: var(--green); }
.svc-art .art-trend { stroke: var(--green); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 0; opacity: 0.85; }
.svc-art .art-trend-dot { fill: var(--green); filter: drop-shadow(0 0 6px var(--green)); }
.svc-art .art-frame { fill: var(--surface-3); stroke: rgba(214, 255, 216, 0.16); stroke-width: 1.2; transform-box: fill-box; transform-origin: 50% 100%; }
.svc-art .art-frame--front { fill: #172019; stroke: rgba(141, 255, 144, 0.5); }
.svc-art .art-frame--back { opacity: 0.55; }
.svc-art .art-frame--mid { opacity: 0.8; }
.svc-art .art-frame-line { stroke: rgba(214, 255, 216, 0.22); stroke-width: 4; stroke-linecap: round; }
.svc-art .art-play { fill: rgba(141, 255, 144, 0.12); stroke: var(--green); stroke-width: 1.2; }
.svc-art .art-play-icon { fill: var(--green); }
.svc-art .art-badge { transform-box: fill-box; transform-origin: 50% 50%; }
.svc-art .art-badge rect { fill: var(--green); }
.svc-art .art-badge path { stroke: var(--green-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.svc-art .art-badge text { font-size: 11px; fill: var(--green-ink); font-weight: 600; }

/* Motion only when the visitor hasn't asked for less. Without JS or with
   reduced motion every drawing simply shows its finished state. */
@media (prefers-reduced-motion: no-preference) {
  .svc-art .art-candles rect { transition: fill 400ms var(--ease-out), transform var(--spring-smooth-ms) var(--spring-bounce); }
  .svc-art .art-frame { transition: transform var(--spring-smooth-ms) var(--spring-bounce); }

  /* Hero, tracking: a slow signal runs through the diagram (ambient) */
  .svc-figure .art-pulse path { opacity: 1; animation: svc-signal 3.2s linear infinite; }
  .svc-figure .art-pulse path:nth-child(n+2) { animation-delay: 1.4s; }
  .svc-figure .art-pulse path:nth-child(3) { animation-delay: 1.5s; }
  .svc-figure .art-pulse path:nth-child(4) { animation-delay: 1.6s; }
  .svc-figure .art-node--hot { animation: svc-node 3.2s var(--ease-out) 1.35s infinite; }

  /* Hero, ad accounts: candles rise and the trend line draws in on reveal */
  .svc-figure .art-candles rect { transition-delay: calc(var(--c, 0) * 55ms + 220ms); }
  .svc-figure .art-candles rect:nth-child(2) { --c: 1; }
  .svc-figure .art-candles rect:nth-child(3) { --c: 2; }
  .svc-figure .art-candles rect:nth-child(4) { --c: 3; }
  .svc-figure .art-candles rect:nth-child(5) { --c: 4; }
  .svc-figure .art-candles rect:nth-child(6) { --c: 5; }
  .svc-figure .art-candles rect:nth-child(7) { --c: 6; }
  .svc-figure .art-candles rect:nth-child(8) { --c: 7; }
  .js .svc-figure:not(.is-in) .art-candles rect { transform: scaleY(0.15); }
  .svc-figure .art-trend { transition: stroke-dashoffset 1400ms var(--ease-out) 520ms; }
  .js .svc-figure:not(.is-in) .art-trend { stroke-dashoffset: 320; }
  .svc-figure .art-trend-dot { transition: opacity 400ms var(--ease-out) 1500ms; }
  .js .svc-figure:not(.is-in) .art-trend-dot { opacity: 0; }

  /* Hero, ad creation: variants fan out from behind the front frame */
  .svc-figure .art-frame { transition-delay: 240ms; }
  .svc-figure .art-frame--back { transition-delay: 300ms; }
  .js .svc-figure:not(.is-in) .art-frame--back { transform: translateX(118px); }
  .js .svc-figure:not(.is-in) .art-frame--mid { transform: translateX(59px); }
  .svc-figure .art-badge { transition: opacity 300ms var(--ease-out) 760ms, transform var(--spring-bounce-ms) var(--spring-bounce) 760ms; }
  .js .svc-figure:not(.is-in) .art-badge { opacity: 0; transform: translateY(6px) scale(0.9); }

  /* Hover: small, physical responses (hero panel and the other-service cards) */
  .svc-figure:hover .art-candles rect { transform: scaleY(1.06); transition-delay: 0ms; }
  .svc-figure:hover .art-frame--back { transform: translateX(-5px) rotate(-3deg); transition-delay: 0ms; }
  .svc-figure:hover .art-frame--mid { transform: translateX(-2px) rotate(-1.5deg); transition-delay: 0ms; }

  .other:hover .art-pulse path, .other:focus-within .art-pulse path { opacity: 1; animation: svc-signal 1.8s linear infinite; }
  .other:hover .art-pulse path:nth-child(n+2), .other:focus-within .art-pulse path:nth-child(n+2) { animation-delay: 0.9s; }
  .other:hover .art-candles rect, .other:focus-within .art-candles rect { transform: scaleY(1.08); }
  .other:hover .art-candles rect:not(.art-candle--hot), .other:focus-within .art-candles rect:not(.art-candle--hot) { fill: rgba(214, 255, 216, 0.2); }
  .other:hover .art-frame--back, .other:focus-within .art-frame--back { transform: translateX(-6px) rotate(-3deg); }
  .other:hover .art-frame--mid, .other:focus-within .art-frame--mid { transform: translateX(-3px) rotate(-1.5deg); }
}
@keyframes svc-signal { from { stroke-dashoffset: 230; } to { stroke-dashoffset: 0; } }
@keyframes svc-node {
  0%, 100% { fill: rgba(141, 255, 144, 0.08); }
  12% { fill: rgba(141, 255, 144, 0.22); }
}

/* --------------------------------------------------------------------------
   4. What's included: six feature tiles
   -------------------------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: var(--card-pad);
}
.feature__icon {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-bottom: 18px;
  border-radius: 12px;
  color: var(--green);
  background: var(--green-a06);
  box-shadow: inset 0 0 0 1px var(--green-a16);
  overflow: visible;
}
.feature .t-small { max-width: 36ch; }

@media (max-width: 999px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Phone: icon beside the text keeps six tiles from becoming a tall tower */
@media (max-width: 639px) {
  .features { grid-template-columns: minmax(0, 1fr); gap: var(--card-gap); }
  .feature {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 18px;
    row-gap: 6px;
    align-items: start;
    padding: var(--card-pad);
  }
  .feature__icon { grid-row: span 2; margin-bottom: 0; }
  .feature .t-h4 { font-size: 1.1875rem; padding-top: 2px; }
}

/* --------------------------------------------------------------------------
   5. How it works: three steps joined by a line that fills on reveal
   -------------------------------------------------------------------------- */
.svc-steps {
  --marker: 44px;
  --gap: clamp(32px, 4vw, 56px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Track from the first marker's centre to the last marker's centre */
.svc-steps::before, .svc-steps::after {
  content: "";
  position: absolute;
  top: calc(var(--marker) / 2);
  left: calc(var(--marker) / 2);
  width: calc(((100% - var(--gap) * 2) / 3 + var(--gap)) * 2);
  height: 1px;
  background: var(--line-2);
}
.svc-steps::after {
  background: linear-gradient(90deg, var(--green), rgba(141, 255, 144, 0.25));
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1400ms var(--ease-out) 200ms;
}
.svc-steps.is-in::after, html:not(.js) .svc-steps::after { transform: none; }
.svc-step { position: relative; display: grid; gap: 10px; align-content: start; }
.svc-step__marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--marker);
  height: var(--marker);
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 0 0 6px var(--bg);
}
.svc-step__marker .t-mono { color: var(--green); }
.svc-step:first-child .svc-step__marker { background: var(--green); box-shadow: 0 0 0 6px var(--bg), 0 0 24px -2px var(--green-a50); }
.svc-step:first-child .svc-step__marker .t-mono { color: var(--green-ink); }
.svc-step .t-small { max-width: 37ch; }

/* Narrow: a vertical track, drawn per step so it ends exactly at the last marker */
@media (max-width: 699px) {
  .svc-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .svc-steps::before, .svc-steps::after { display: none; }
  .svc-step {
    grid-template-columns: var(--marker) minmax(0, 1fr);
    column-gap: 20px;
    row-gap: 6px;
    padding-bottom: 40px;
  }
  .svc-step:last-child { padding-bottom: 0; }
  .svc-step:not(:last-child)::before, .svc-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: calc(var(--marker) / 2);
    top: calc(var(--marker) / 2);
    bottom: calc(var(--marker) / -2);
    width: 1px;
    background: var(--line-2);
  }
  .svc-step:not(:last-child)::after {
    background: linear-gradient(180deg, var(--green), rgba(141, 255, 144, 0.3));
    transform-origin: center top;
    transform: scaleY(0);
    transition: transform 900ms var(--ease-out) 300ms;
  }
  .svc-step:nth-child(2)::after { transition-delay: 1100ms; }
  .svc-steps.is-in .svc-step::after, html:not(.js) .svc-step::after { transform: none; }
  .svc-step__marker { grid-row: span 2; margin-bottom: 0; }
  .svc-step .t-h4 { padding-top: 10px; }
  .svc-step .t-small { max-width: 44ch; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-steps::after, .svc-step::after { transition: none !important; }
}

/* --------------------------------------------------------------------------
   6. Other services: two cards, the whole card is the link target.
      Same build as the home service cards: illustration first, full width
      (beside the copy on tablets, art on the left).
   -------------------------------------------------------------------------- */
.others {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
}
.other {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 24px;
  padding: var(--card-pad);
  transition: scale var(--spring-ui-ms) var(--spring-ui);
}
/* Press feedback uses `scale`, so the reveal's `transform: none` can't cancel
   it; the reveal keeps its own timing and stagger */
.js .other[data-reveal] {
  transition-property: opacity, transform, scale;
  transition-duration: 600ms, var(--spring-smooth-ms), var(--spring-ui-ms);
  transition-timing-function: var(--ease-out), var(--spring-smooth), var(--spring-ui);
  transition-delay: calc(var(--reveal-i, 0) * 70ms), calc(var(--reveal-i, 0) * 70ms), 0ms;
}
.other:active { scale: 0.99; transition-duration: var(--press-ms); }
.js .other[data-reveal]:active { transition-duration: 600ms, var(--spring-smooth-ms), var(--press-ms); }
.other__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.other__index { color: var(--green); margin-bottom: 6px; }
.other .t-h3 { font-size: clamp(1.5rem, 1.3rem + 0.5vw, 1.75rem); }
.other__link { border-radius: 4px; }
.other__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--r-lg);
}
.other__link:focus-visible { outline: none; }
.other__link:focus-visible::after { outline: 2px solid var(--green); outline-offset: 3px; }
.other__more { margin-top: auto; padding-top: 12px; }
.other:hover .other__more { color: var(--green-hi); }
.other:hover .link-arrow__icon { transform: translateX(3px); }
.other__art {
  order: -1;
  align-self: start;
  aspect-ratio: 320 / 168;
  border-radius: var(--r-md);
  background:
    radial-gradient(120% 90% at 50% 100%, rgba(141, 255, 144, 0.06), transparent 60%),
    rgba(5, 7, 6, 0.55);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.other__art svg { width: 100%; height: 100%; }

/* Desktop: a wider stage, so the drawing stays at the home cards' scale
   instead of growing with the card */
@media (min-width: 1100px) {
  .other__art { aspect-ratio: 12 / 5; }
}
@media (max-width: 1099px) {
  .others { grid-template-columns: minmax(0, 1fr); }
}
/* Tablet: one card per row, art on the left as on the home page */
@media (min-width: 640px) and (max-width: 1099px) {
  .other {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-rows: auto;
    column-gap: 32px;
    padding: var(--card-pad);
  }
  .other__art { align-self: center; }
}
@media (max-width: 639px) {
  .others { gap: var(--card-gap); }
  .other { gap: 24px; padding: var(--card-pad); }
  .other__more { padding-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .other, .other:active { scale: none; transition: none; }
}

/* --------------------------------------------------------------------------
   7. Closing call to action
   -------------------------------------------------------------------------- */
.svc-cta__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(72px, 9vw, 128px) clamp(24px, 5vw, 64px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(60% 90% at 50% 120%, rgba(141, 255, 144, 0.16), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface-1));
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.svc-cta__panel .bg-grid {
  z-index: -1;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 100%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 100%, #000 10%, transparent 72%);
}
.svc-cta__lead { max-width: 34rem; margin-top: clamp(16px, 2vw, 24px); }
.svc-cta__actions { margin-top: clamp(32px, 3.6vw, 44px); }
.svc-cta__email {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  margin-top: 24px;
}
.svc-cta__email a { color: var(--text-2); }
.svc-cta__email a:hover { color: var(--green-hi); }
@media (max-width: 560px) {
  .svc-cta__panel { border-radius: var(--r-lg); }
  .svc-cta__actions { width: 100%; }
  .svc-cta__actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   8. 404
   -------------------------------------------------------------------------- */
.nf {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(100svh, 980px);
  padding: calc(var(--nav-h) + 56px) 0 clamp(80px, 10vw, 128px);
  text-align: center;
  overflow-x: clip;
}
.nf .bg-grid { height: 100%; }
.nf__glow {
  width: min(900px, 120vw);
  height: 640px;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  opacity: 0.6;
}
.nf__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.nf__code {
  font-family: var(--font-mono);
  font-size: clamp(7rem, 3rem + 16vw, 15rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--green);
  text-shadow: 0 0 40px var(--green-a28), 0 0 120px var(--green-a16);
}
.nf__title { margin-top: clamp(28px, 4vw, 48px); }
.nf__lead { max-width: 36rem; margin-top: 16px; }
.nf__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(32px, 3.6vw, 44px);
}
.nf__path { margin-top: 28px; }
@media (max-width: 560px) {
  .nf__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
}
