/* ============ Sysverge 5.0 mockup: "A different dimension" ============
   Identity carried from 4.0: #04050d / #1d3bff, Space Grotesk + JetBrains Mono,
   glass-pill nav, flat buttons (no glow), no marquee.
   The WebGL canvas (#gl) sits behind everything; sections stay transparent. */

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

:root {
  --bg: #04050d;
  --bg-raise: #0a0c1a;
  --text: #e9ebf3;
  --muted: #828a9d;
  --muted-2: #aab0c4;
  --line: rgba(255, 255, 255, 0.10);
  --accent: #1d3bff;
  --accent-soft: #6d7fff;
  --chrome: #cfd6ea;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid #b8c1ff; outline-offset: 4px; border-radius: 4px; }
:target { scroll-margin-top: 110px; }
.skip-link {
  position: fixed; z-index: 120; top: 12px; left: 16px;
  padding: 12px 18px; background: var(--bg-raise); color: #fff;
  border: 2px solid #b8c1ff; border-radius: 8px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- WebGL layer ---- */
#gl {
  position: fixed;               /* pinned by the browser itself, so it can never drift while scrolling */
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}
.no-gl #gl { display: none; }
/* Without WebGL or JS the page keeps a quiet static version of the hero light. */
.no-gl body, html:not(.js) body {
  background:
    radial-gradient(60vw 60vw at 78% 18vh, rgba(29, 59, 255, .22), transparent 70%),
    var(--bg);
}
main, .footer { position: relative; z-index: 1; }

.wrap { width: min(1200px, 88vw); margin: 0 auto; }
.wrap-narrow { width: min(780px, 88vw); margin: 0 auto; }
.act .wrap { width: min(1520px, 88vw); }

/* ---- shared type ---- */
.label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
.accent-label { color: var(--accent-soft); }

h2 {
  font-size: clamp(34px, 4.6vw, 62px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-top: 14px;
  text-wrap: balance;
}
h3 { font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }

.section { padding: clamp(84px, 11vw, 150px) 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }

main p a, .svc-foot a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-decoration-thickness: .06em;
  text-underline-offset: .18em;
  transition: color .2s;
}
main p a:hover, .svc-foot a:hover { color: #fff; }

/* ---- buttons: solid, flat, no glow ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .25s, border-color .25s, color .25s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #3550ff; }
.btn-ghost { background: rgba(4, 5, 13, .45); color: var(--text); border-color: rgba(255, 255, 255, .24); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .6); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============ LOADER (only shown when JS runs) ============ */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .5s ease, visibility 0s linear .5s;
}
.ready .loader { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-box { display: grid; gap: 14px; justify-items: center; }
.loader-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.loader-bar { width: 132px; height: 1px; background: var(--line); display: block; }
.loader-bar i { display: block; height: 100%; width: 100%; background: var(--accent-soft); transform: scaleX(0); transform-origin: left; }

/* The top bar and menu panel live in css/nav.css (shared with the inner pages). */

/* Promotions pill (added by app.js, same behaviour as 4.0) */
.see-offers {
  position: fixed; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 45;
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 13px 20px;
  border: 1px solid var(--accent-soft); border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 14.5px; font-weight: 600;
}
.see-offers:hover { background: #3550ff; }
.see-offers[hidden] { display: none; }

/* ============ ACT 1: hero + three dimensions ============ */
.act { display: grid; position: relative; }
.stage {
  grid-area: 1 / 1;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  align-self: start;
  pointer-events: none;
}
.stage-slot { position: absolute; inset: 0; }
.stage-tags { position: absolute; inset: 0; overflow: clip; }
.tag {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .4s, color .3s;
  will-change: transform;
}
.tag::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .6; }
.tag b { font-weight: 500; color: var(--accent-soft); }
.tag.is-on { opacity: 1; }
.tag.is-hot { color: #fff; }
.no-gl .stage { display: none; }

.act-copy { grid-area: 1 / 1; position: relative; z-index: 1; }

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 128px 0 40px;
}
.hero-label { margin-bottom: clamp(14px, 2vh, 26px); }
.hero-title { font-weight: 700; perspective: 900px; perspective-origin: 0% 50%; }
.hero-words {
  display: block;
  width: max-content;
  font-size: clamp(60px, min(10vw, 14.6vh), 176px);
  line-height: .88;
  letter-spacing: -.045em;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--mx, 0) * 5deg)) rotateX(calc(var(--my, 0) * -4deg));
  transform-origin: 0% 50%;
}
.word { display: block; width: max-content; transition: opacity .3s; cursor: default; }
/* Each word is two stacked copies of the same text:
     <i>        the extrusion: a solid side colour pushed down-right in 12 steps
     <i>::after the face: a lit gradient clipped to the letters, sitting on top */
.word i {
  position: relative;
  display: inline-block;
  font-style: normal;
  transform-origin: 50% 100%;
  color: #9aa3c4;
  text-shadow:
    0.0052em 0.0074em 0 #9aa3c4,
    0.0104em 0.0148em 0 #8f98b9,
    0.0156em 0.0222em 0 #858dae,
    0.0208em 0.0296em 0 #7a83a3,
    0.0260em 0.0370em 0 #707898,
    0.0312em 0.0444em 0 #656d8d,
    0.0364em 0.0518em 0 #5b6281,
    0.0416em 0.0592em 0 #505776,
    0.0468em 0.0666em 0 #464c6b,
    0.0520em 0.0740em 0 #3b4260,
    0.0572em 0.0814em 0 #313755,
    0.0624em 0.0888em 0 #262c4a,
    0.092em 0.159em .16em rgba(0, 0, 0, .55);
}
.word i::after {
  content: attr(data-t);
  position: absolute; left: 0; top: 0;
  color: transparent;
  text-shadow: none;
  background:
    linear-gradient(104deg, transparent 42%, rgba(255, 255, 255, .95) 50%, transparent 58%) 160% 0 / 260% 100% no-repeat,
    linear-gradient(180deg, #ffffff 0%, #eef0f8 38%, #c3c9de 78%, #aab2cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.word:nth-child(2) { transform: translateZ(28px); }
.word:nth-child(3) { transform: translateZ(56px); }
.word:nth-child(3) i {
  color: #3148e0;
  text-shadow:
    0.0052em 0.0074em 0 #3148e0,
    0.0104em 0.0148em 0 #2e43d4,
    0.0156em 0.0222em 0 #2a3fc7,
    0.0208em 0.0296em 0 #273abb,
    0.0260em 0.0370em 0 #2335af,
    0.0312em 0.0444em 0 #2030a2,
    0.0364em 0.0518em 0 #1c2c96,
    0.0416em 0.0592em 0 #192789,
    0.0468em 0.0666em 0 #15227d,
    0.0520em 0.0740em 0 #121d71,
    0.0572em 0.0814em 0 #0e1964,
    0.0624em 0.0888em 0 #0b1458,
    0.092em 0.159em .16em rgba(0, 0, 0, .55);
}
.word:nth-child(3) i::after {
  background:
    linear-gradient(104deg, transparent 42%, rgba(214, 222, 255, .95) 50%, transparent 58%) 160% 0 / 260% 100% no-repeat,
    linear-gradient(180deg, #aab6ff 0%, #7f90ff 34%, #5e72ff 72%, #4a5df2 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-words.has-hot .word { opacity: .3; }
.hero-words.has-hot .word.is-hot { opacity: 1; }

.hero-sub {
  display: block;
  margin-top: clamp(12px, 2vh, 22px);
  font-size: clamp(26px, min(4.1vw, 6vh), 64px);
  line-height: 1;
  letter-spacing: -.03em;
  /* stroke painted under a background-coloured fill: clean outline, no inner overlaps */
  color: var(--bg);
  -webkit-text-stroke: 2.6px var(--chrome);
  paint-order: stroke fill;
}
.hero-body { margin-top: clamp(18px, 3vh, 34px); max-width: 560px; }
.hero-lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--text); margin-bottom: 26px; }
.hero-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 40px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; }
.scroll-cue i { width: 1px; height: 30px; background: linear-gradient(var(--accent-soft), transparent); display: block; }

/* One orchestrated load moment: the three words drop in from above, one at a time.
   Each landing squashes the word, jolts the page (.quake) and opens one layer of the
   stack. app.js adds .drop to start it, .quake on each impact, .landed when it is over. */
.js:not(.ready) .word i { opacity: 0; }
.drop .word i { animation: word-drop .84s both; animation-delay: var(--drop-at, .3s); }
.drop .word:nth-child(2) i { --drop-at: .78s; }
.drop .word:nth-child(3) i { --drop-at: 1.26s; }
@keyframes word-drop {
  0%   { transform: translate3d(0, -118vh, 0) rotate(-2.5deg); animation-timing-function: cubic-bezier(.55, 0, 1, .6); }
  55%  { transform: translate3d(0, 0, 0) scale(1.06, .82); animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  72%  { transform: translate3d(0, -6%, 0) scale(.98, 1.04); animation-timing-function: ease-in; }
  87%  { transform: translate3d(0, 0, 0) scale(1.015, .975); }
  100% { transform: none; }
}
.drop:not(.landed) :is(.hero-sub, .hero-body, .hero-foot) { opacity: 0; }
.drop :is(.hero-sub, .hero-body, .hero-foot) { transition: opacity .8s ease; }
.drop .hero-body { transition-delay: .12s; }
.drop .hero-foot { transition-delay: .24s; }

/* the jolt: page content and nav kick down, rebound, settle (GL shakes its own camera) */
.quake main, .quake .topbar { animation: quake .36s cubic-bezier(.3, .6, .4, 1); }
@keyframes quake {
  0%   { transform: translate3d(0, 0, 0); }
  14%  { transform: translate3d(calc(var(--q, 1) * -1px), calc(var(--q, 1) * 9px), 0) rotate(calc(var(--q, 1) * .12deg)); }
  34%  { transform: translate3d(calc(var(--q, 1) * 1px), calc(var(--q, 1) * -6px), 0) rotate(calc(var(--q, 1) * -.09deg)); }
  54%  { transform: translate3d(0, calc(var(--q, 1) * 3.5px), 0); }
  74%  { transform: translate3d(0, calc(var(--q, 1) * -1.5px), 0); }
  100% { transform: none; }
}

/* a single glint crosses the letters once everything has landed */
.landed .word i::after { animation: glint 1.1s ease-out .15s both; }
.landed .word:nth-child(2) i::after { animation-delay: .25s; }
.landed .word:nth-child(3) i::after { animation-delay: .35s; }
@keyframes glint {
  from { background-position: 160% 0, 0 0; }
  to   { background-position: -60% 0, 0 0; }
}

.dims { padding-bottom: 12vh; }
.dim {
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dim-in { max-width: 440px; }
.dim-intro .dim-in { max-width: 560px; }
.dim-intro h2 { font-size: clamp(30px, 3.5vw, 50px); margin-top: 0; }
.dim-intro p { margin-top: 22px; color: var(--muted-2); max-width: 460px; }
.dim h3 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.05; letter-spacing: -.025em; margin-top: 14px; }
.dim h3 span { display: block; color: var(--muted-2); font-weight: 500; }
.dim p:not(.label) { margin-top: 20px; color: var(--muted-2); }
.dim ul { margin-top: 20px; display: grid; gap: 10px; }
.dim li {
  position: relative;
  padding-left: 22px;
  font-size: 15.5px;
  color: var(--text);
}
.dim li::before {
  content: "";
  position: absolute; left: 0; top: .62em;
  width: 10px; height: 1px;
  background: var(--accent-soft);
}
.js .dim[data-step] .dim-in { opacity: .32; transition: opacity .45s ease; }
.js .dim[data-step].is-active .dim-in { opacity: 1; }

/* ============ CINEMATIC ============ */
/* Default (no JS / reduced motion): a framed still with the line over it. */
.cine { position: relative; padding: clamp(40px, 6vw, 90px) 0; }
.cine-frame {
  position: relative;
  width: min(1520px, 88vw);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  background: #05060f;
}
.cine-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cine-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(4, 5, 13, .88) 0%, rgba(4, 5, 13, .25) 38%, transparent 60%),
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(4, 5, 13, .7) 100%);
}
.cine-fig {
  position: absolute; top: clamp(18px, 3vw, 40px); left: clamp(18px, 3vw, 44px); right: clamp(18px, 3vw, 44px);
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(233, 235, 243, .7);
}
.cine-copy {
  position: absolute; left: 0; right: 0; bottom: clamp(26px, 6vh, 72px);
  padding: 0 6vw;
  text-align: center;
}
.cine-title {
  margin: 0;
  font-size: clamp(46px, min(10vw, 17vh), 168px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.045em;
}
.cine-sub { margin: clamp(14px, 2.4vh, 26px) auto 0; max-width: 520px; color: var(--muted-2); font-size: clamp(15.5px, 1.3vw, 18.5px); }
.cine-scroll { display: none; }

/* Scrub mode: the section pins, the frame opens to full bleed, scroll drives the clip. */
.scrub .cine { padding: 0; height: 360vh; }
.scrub .cine-stage {
  position: sticky; top: 0;
  height: 100vh;
  height: 100svh;
  overflow: clip;
}
.scrub .cine-frame {
  width: 100%; height: 100%;
  aspect-ratio: auto;
  border-radius: calc((1 - var(--open, 0)) * 26px);
  transform: scale(calc(.8 + .2 * var(--open, 0)));
  will-change: transform;
}
/* the scene's subject sits near the top; drop it clear of the fixed nav */
.scrub .cine-video { transform: translateY(8%); }
.scrub .cine-shade {
  background:
    linear-gradient(to bottom, #05060f 0%, #05060f 7%, transparent 24%),
    linear-gradient(to top, rgba(4, 5, 13, .88) 0%, rgba(4, 5, 13, .25) 38%, transparent 60%),
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(4, 5, 13, .7) 100%);
}
.scrub .cine-copy {
  opacity: var(--say, 0);
  filter: blur(calc((1 - var(--say, 0)) * 16px));
  transform: translateY(calc((1 - var(--say, 0)) * 34px));
  will-change: opacity, filter, transform;
}
.scrub .cine-fig { opacity: calc(.25 + .75 * var(--open, 0)); }
.scrub .cine-scroll {
  display: block;
  position: absolute;
  top: 50%;
  right: max(clamp(12px, 2vw, 28px), env(safe-area-inset-right));
  z-index: 2;
  margin: 0;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: clamp(10px, .8vw, 11px);
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(233, 235, 243, .78);
  text-shadow: 0 1px 6px rgba(4, 5, 13, .9);
  pointer-events: none;
}

/* ============ SERVICES ============ */
#services > .wrap { width: min(1520px, 92vw); }
.svc-list { --svc-top: 104px; --svc-step: 16px; }
.svc {
  position: sticky;
  top: calc(var(--svc-top) + var(--card-index) * var(--svc-step));
  z-index: calc(var(--card-index) + 1);
  display: grid;
  grid-template-columns: clamp(100px, 11vw, 156px) minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: start;
  gap: clamp(24px, 3.4vw, 56px);
  min-height: 320px;
  margin-bottom: 32px;
  padding: clamp(28px, 3vw, 46px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  background: #070913;
  box-shadow: 0 -18px 48px rgba(0, 0, 0, .24);
  scroll-margin-top: 112px;
  transition: border-color .3s;
}
.svc:last-child { margin-bottom: 0; }
.svc:hover, .svc:focus-visible { border-color: var(--accent-soft); }
.svc:focus-visible { z-index: 10; }
.svc-visual { display: grid; justify-items: start; gap: 10px; }
.svc-number {
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(233, 235, 243, .38);
  transition: color .3s, -webkit-text-stroke-color .3s;
}
.svc:hover .svc-number, .svc:focus-visible .svc-number { color: var(--accent-soft); -webkit-text-stroke-color: var(--accent-soft); }
.svc-shape { display: block; width: 136px; max-width: 100%; aspect-ratio: 1; }
.svc-shape canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
.no-gl .svc-shape, html:not(.js) .svc-shape { background: radial-gradient(circle at 40% 35%, var(--accent-soft), var(--accent) 45%, transparent 70%); border-radius: 50%; transform: scale(.4); }
.no-gl .svc-shape canvas { display: none; }
.svc-main { display: grid; justify-items: start; gap: 28px; }
.svc-name {
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.025em;
  transition: transform .35s var(--ease-out);
}
.svc:hover .svc-name { transform: translateX(4px); }
.svc-detail { display: grid; gap: 26px; }
.svc-line { color: var(--muted-2); font-size: clamp(17px, 1.6vw, 23px); line-height: 1.5; }
.svc-list-items { display: grid; gap: 10px; font-size: 15.5px; color: var(--muted-2); }
.svc-list-items span { position: relative; padding-left: 18px; }
.svc-list-items span::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--accent-soft); }
.svc-go {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  position: relative;
  transition: background-color .25s, border-color .25s;
}
.svc-go::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 9px; height: 9px;
  border-top: 1.5px solid #fff; border-right: 1.5px solid #fff;
  transform: translate(-30%, -70%);
}
.svc-go::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 14px; height: 1.5px;
  background: #fff;
  transform: translate(-50%, -50%) rotate(-45deg);
}
.svc:hover .svc-go, .svc:focus-visible .svc-go { background: var(--accent); border-color: var(--accent); }
.svc-foot { margin-top: 36px; color: var(--muted-2); max-width: 640px; }

/* ---- Web development card: its details type themselves out as code, once ----
   app.js builds .svc-code and adds .has-code to the card. The original sentence and
   bullets stay in the page for screen readers and search; they are only hidden visually. */
.svc.has-code :is(.svc-line, .svc-list-items) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.svc-code {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(12.5px, 1.25vw, 18px);
  line-height: 1.75;
  color: var(--text);
}
.svc-code-tab {
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 14px;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: .78em;
  letter-spacing: .06em;
  color: var(--muted-2);
}
.svc-code-tab::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-soft); }
.svc-code-body { display: block; }
.code-line { display: grid; grid-template-columns: 2.3em minmax(0, 1fr); }
.code-num { font-style: normal; color: rgba(233, 235, 243, .26); user-select: none; transition: color .2s; }
.code-line.is-live .code-num { color: var(--accent-soft); }
.code-text { display: block; min-height: 1.75em; white-space: pre-wrap; overflow-wrap: anywhere; }
.tok-c { color: var(--muted); }
.tok-k { color: #b4bfff; }
.tok-n { color: var(--text); }
.tok-s { color: #8f9fff; }
.tok-d { color: #fff; }
.tok-p { color: var(--muted-2); }
.code-caret {
  display: inline-block;
  width: .56em; height: 1.12em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--accent-soft);
  animation: code-caret 1.05s steps(1) infinite;
}
@keyframes code-caret { 50% { opacity: 0; } }

/* ============ WORK ============ */
/* Default (no JS / reduced motion): a plain two-column grid. */
.work { padding: clamp(84px, 11vw, 150px) 0; }
.work-stage {
  width: min(1200px, 88vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 32px;
  align-items: start;
}
.work-title { grid-column: 1 / -1; }
.work-hint { margin-top: 18px; color: var(--muted-2); }
.work-hud { display: none; }
.work-card { display: block; }
.frame, .poster {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-raise);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55);
  transition: border-color .3s;
}
.work-card:hover :is(.frame, .poster), .work-card:focus-visible :is(.frame, .poster) { border-color: var(--accent-soft); }
.frame-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: #0d1022;
}
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.frame-url { margin-left: 10px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.frame img, .poster img { width: 100%; height: auto; }
.work-meta { display: grid; gap: 4px; margin-top: 18px; }
.work-name { font-size: clamp(20px, 1.9vw, 28px); font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
.work-scope { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }

/* Spiral mode: the section pins, the title holds the centre, and the builds spiral
   out from behind it toward the viewer as you scroll. app.js positions every piece. */
.work-float { display: none; }
.spiral .work { padding: 0; }
.spiral .work-stage {
  position: sticky; top: 0;
  width: auto;
  height: 100vh;
  height: 100svh;
  display: block;
  overflow: clip;
  perspective: 1400px;
}
.spiral .work-item {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.spiral .work-title { width: min(1000px, 90vw); text-align: center; z-index: 58; pointer-events: none; }
.spiral .work-title a { pointer-events: auto; }
.spiral .work-title h2 { font-size: clamp(44px, 8vw, 128px); line-height: .95; letter-spacing: -.04em; }
.spiral .work-card { width: min(52vw, 760px, 96vh); visibility: hidden; }
.spiral .work-float { display: block; width: min(21vw, 310px, 38vh); visibility: hidden; }
.work-float img {
  display: block; width: 100%; height: auto;
  border-radius: 12px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55);
}
.spiral .work-hud {
  position: absolute; left: 6vw; right: 6vw; bottom: 28px;
  z-index: 95;
  display: flex; align-items: center; gap: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.work-track { flex: 1; height: 1px; background: var(--line); display: block; }
.work-track i { display: block; height: 100%; background: var(--accent-soft); transform: scaleX(0); transform-origin: left; }

/* ============ PROCESS ============ */
.phase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  perspective: 1400px;
}
.phase {
  position: relative;
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 12, 26, .66);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease-out), border-color .3s;
  transform-style: preserve-3d;
}
.phase:hover { border-color: rgba(109, 127, 255, .5); transition-duration: .12s, .3s; }
.phase-num {
  display: block;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  color: #080a17;
  -webkit-text-stroke: 2.4px var(--accent-soft);
  paint-order: stroke fill;
  margin-bottom: 44px;
  transition: transform .5s var(--ease-out);
}
.phase:hover .phase-num { transform: translateZ(34px); }
.phase p { margin-top: 10px; font-size: 15.5px; color: var(--muted-2); }

/* ============ WHY ============ */
.why-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.why-story { margin-top: 26px; color: var(--muted-2); max-width: 540px; }
.why-payoff { margin-top: 20px; padding-left: 18px; border-left: 2px solid var(--accent); max-width: 520px; }
.why-list { display: grid; }
.why-list li { padding: 22px 0; border-top: 1px solid var(--line); color: var(--muted-2); }
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-list strong { display: block; color: var(--text); font-size: 20px; font-weight: 600; margin-bottom: 4px; }

/* ============ FAQ ============ */
.faq { border-top: 1px solid var(--line); }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 24px 48px 24px 0;
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 600;
  letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: "";
  position: absolute; right: 6px; top: 50%;
  width: 16px; height: 1.5px;
  background: var(--accent-soft);
  transition: transform .3s var(--ease-out);
}
.faq summary::after { transform: rotate(90deg); }
.faq[open] summary::after { transform: rotate(0deg); }
.faq p { padding: 0 48px 26px 0; color: var(--muted-2); max-width: 68ch; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact h2 { font-size: clamp(40px, 5.6vw, 84px); }
.contact-lede { margin-top: 24px; color: var(--muted-2); max-width: 460px; }
.contact-phone {
  display: inline-block;
  margin-top: 34px;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 600;
  letter-spacing: -.02em;
  border-bottom: 2px solid var(--accent);
  transition: color .2s;
}
.contact-phone:hover { color: var(--accent-soft); }
.business-hours { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.contact-form {
  display: grid; gap: 16px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(10, 12, 26, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 7px; }
.contact-form label > span { font-size: 13.5px; color: var(--muted-2); }
.contact-form :is(input, select, textarea) {
  width: 100%;
  padding: 13px 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  font-size: 16px;
  transition: border-color .2s, background-color .2s;
}
.contact-form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted-2) 50%), linear-gradient(135deg, var(--muted-2) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.contact-form select option { background: var(--bg-raise); color: var(--text); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form :is(input, select, textarea):focus { outline: none; border-color: var(--accent-soft); background: rgba(255, 255, 255, .06); }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.form-status { font-size: 14.5px; color: var(--muted-2); flex: 1; min-width: 200px; }
.form-privacy { font-size: 14.5px; color: var(--muted-2); }

/* ============ FOOTER ============ */
/* Shared typography and container rules from the original footer. */
.footer .wrap { width: min(1160px, 88vw); margin-left: auto; margin-right: auto; }
.footer .mono-link { font: inherit; letter-spacing: inherit; color: var(--accent-soft); transition: color 0.25s; }
.footer .mono-link:hover { color: #fff; }
.footer .business-hours { margin-top: 0; color: var(--muted-2); font-size: 14px; line-height: 1.65; }
.footer .business-hours span { white-space: nowrap; }
.footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand p { margin-top: 14px; color: var(--muted); font-size: 14px; }
.footer-brand { min-width: 0; }
.footer-bbb { display: block; width: 250px; max-width: 100%; }
.footer-bbb img { width: 100%; height: auto; border: 0; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, auto));
  gap: 10px 28px;
  align-content: start;
}
.footer-links a { color: var(--muted-2); font-size: 14.5px; transition: color 0.25s; white-space: nowrap; }
.footer-links a:hover { color: #ffffff; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-hours { max-width: 30ch; }
.footer-profile-links { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; line-height: 1.4; }
.footer-platform-row { align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 24px; }
.footer-profile-links a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 13px; color: var(--text); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px; background: rgba(255, 255, 255, 0.04); text-decoration: none; transition: background 0.2s, border-color 0.2s; }
.footer-platform-icon { width: 22px; height: 22px; flex: 0 0 22px; object-fit: contain; }
.footer-profile-links a:hover, .footer-profile-links a:focus-visible { color: #fff; border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.09); }
.footer-profile-links a.footer-bbb, .footer-profile-links a.footer-bbb-review { padding: 0; border: 0; border-radius: 0; background: none; min-height: 0; max-width: 100%; }
.footer-bbb-review img { display: block; max-width: 100%; height: auto; }
@media (max-width: 1100px) {
  .footer-platform-row > a:has(.footer-platform-icon) { width: 44px; height: 44px; padding: 10px; justify-content: center; }
  .footer-platform-row > a > span { display: none; }
}
@media (max-width: 600px) {
  .footer-platform-row { justify-content: flex-start; gap: 12px; }
  .footer-platform-row .footer-bbb { flex-basis: 100%; }
  .footer-platform-row .footer-bbb img { width: 250px; max-width: 100%; }
  .footer-platform-row .footer-bbb-review { width: 100px; }
}
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .phase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 100px minmax(0, 1fr); gap: 24px; }
  .svc-visual { grid-row: 1 / 3; }
  .svc-shape { width: 100px; }
  .svc-main { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
  .svc-go { flex: 0 0 46px; }
  .svc-detail { grid-column: 2; gap: 18px; }
}

@media (max-width: 900px) {
  /* Stage goes full width; the stack sits under the hero copy, then rises
     above the text cards for the three layer steps (positions set in JS). */
  .stage-tags { display: none; }
  .hero { justify-content: flex-start; padding: 104px 0 28px; }
  .hero-words { font-size: clamp(52px, min(18.5vw, 11.5vh), 110px); }
  .hero-sub { font-size: clamp(25px, 7.6vw, 40px); -webkit-text-stroke-width: 2.2px; }
  .hero-body { margin-top: 18px; }
  .hero-lede { font-size: 16px; margin-bottom: 18px; }
  .hero .btn { padding: 13px 20px; font-size: 15px; }
  .hero-foot span:last-child { display: none; }

  .dim { justify-content: flex-end; padding-bottom: 7vh; min-height: 100vh; min-height: 100svh; }
  .dim-in {
    max-width: none;
    padding: 22px 20px 24px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(6, 8, 20, .78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .js .dim[data-step] .dim-in { opacity: .5; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .see-offers { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); padding: 11px 17px; }

  .svc-list { --svc-top: 88px; --svc-step: 10px; }
  .svc { grid-template-columns: 64px minmax(0, 1fr); gap: 20px 16px; padding: 24px 20px; min-height: 0; margin-bottom: 24px; border-radius: 18px; }
  .svc-visual { grid-row: auto; gap: 8px; }
  .svc-number { font-size: 46px; }
  .svc-shape { width: 64px; }
  .svc-main { align-self: center; }
  .svc-name { font-size: clamp(25px, 6.2vw, 36px); }
  .svc-go { display: none; }
  .svc-detail { grid-column: 1 / -1; gap: 18px; }
  .svc-line { font-size: 16px; }
  .svc-list-items { font-size: 14px; gap: 8px; }

  .work-stage { grid-template-columns: 1fr; }
  .spiral .work-card { width: 78vw; }
  .spiral .work-float { width: 40vw; }
  .spiral .work-hud { bottom: 18px; }

  .phase-grid { grid-template-columns: 1fr; }
  .phase-num { margin-bottom: 22px; font-size: 52px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .hero-words { transform: none; }
  .svc { position: relative; top: auto; }
}

@media (max-height: 600px) {
  .svc { position: relative; top: auto; }
}
