/* ==========================================================================
   A2B Technologies — style
   Type: Satoshi (display and text, self-hosted) · Geist Mono (labels)
   ========================================================================== */

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #05080c;
  --bg-2: #0a1118;
  --bg-3: #111b26;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --ink: #eef3f8;
  --ink-2: #aab8c8;
  --ink-3: #6d7d90;
  --accent: #2e8cea;
  --accent-2: #6db8ff;
  --accent-deep: #1f5fa6;
  --accent-ink: #ffffff;
  --paper: #edf1f5;
  --paper-2: #dfe6ed;
  --paper-ink: #08121c;
  --paper-ink-2: #46566a;
  --rec: #ff3b30;

  --f-display: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "Cascadia Mono", monospace;

  --m: max(clamp(16px, 3.2vw, 48px), calc((100vw - 1480px) / 2));
  --gap: clamp(88px, 9vw, 150px);
  --r-lg: clamp(20px, 2.2vw, 32px);
  --r-md: 18px;
  --fs-hero: clamp(44px, 7.3vw, 124px);
  --fs-h2: clamp(34px, 4.4vw, 72px);
  --fs-h3: clamp(22px, 2vw, 30px);
  --fs-statement: clamp(22px, 2.3vw, 36px);
  --fs-body: clamp(16.5px, 1.1vw, 18.5px);
  --fs-small: 14px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --nav-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 450;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Film grain over everything: cinematic, never interactive */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { background-position: 0 0; } 20% { background-position: -37px 21px; } 40% { background-position: 29px -43px; }
  60% { background-position: -18px -11px; } 80% { background-position: 41px 33px; }
}
html.js.is-loading body { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

h1, h2 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.02;
}
h2 { font-size: var(--fs-h2); text-wrap: balance; }
h1 em, h2 em {
  font-style: normal; font-weight: inherit;
  background: linear-gradient(100deg, var(--accent-2), var(--accent) 60%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h3 { font-family: var(--f-display); font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.mono, .label { font-family: var(--f-mono); }

section { position: relative; }

/* Section header: label, heading, one plain sentence */
.label {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start; width: max-content; max-width: 100%;
  padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.label i { font-style: normal; color: var(--accent-2); }
.label i::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; vertical-align: middle; transform: translateY(-1px); }
.sec-head { display: grid; gap: 20px; padding: 0 var(--m); margin-bottom: clamp(40px, 4.5vw, 64px); }
.sec-head > h2 { max-width: 18ch; }
.sec-head--row { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 40px; }
.sec-head--row > div { display: grid; gap: 20px; }
.sec-lead { max-width: 50ch; color: var(--ink-2); font-size: clamp(17px, 1.25vw, 20px); line-height: 1.6; }
.sec-head--row .sec-lead { justify-self: end; }

/* Reveal on entry (IntersectionObserver adds .in) */
html.js .rv { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-out) var(--rv-d, 0ms), transform 1.1s var(--ease-out) var(--rv-d, 0ms); }
html.js .rv.in { opacity: 1; transform: none; }
html.js .tile.rv { transform: perspective(1200px) translateY(70px) rotateX(-24deg); transform-origin: 50% 100%; }
html.js .tile.rv.in { transform: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px;
  border-radius: 999px;
  font-weight: 600; font-size: 15.5px; letter-spacing: -0.005em;
  overflow: hidden; isolation: isolate;
  transition: scale .3s var(--ease-out), background-color .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn span { position: relative; z-index: 1; display: inline-block; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:active { scale: .96; }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 40px -10px rgba(46, 140, 234, .7); }
.btn--accent::before { background: var(--ink); }
.btn--accent:hover { color: var(--paper-ink); }
.btn--glass, .btn--ghost {
  background: rgba(255, 255, 255, .06); color: var(--ink);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn--glass::before, .btn--ghost::before { background: var(--accent); }
.btn--glass:hover, .btn--ghost:hover { color: #fff; border-color: var(--accent); }

/* ---------- Loader: logo traced in light, then a shutter closes onto it ---------- */
.loader { display: none; }
html.js .loader {
  display: block; position: fixed; inset: 0; z-index: 1000; pointer-events: all; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 42%, #0b1a2c 0%, #05080c 55%, #020305 100%);
  clip-path: circle(150% at 50% 42%);
}
/* Slow light rays behind the logo */
.loader__rays {
  position: absolute; left: 50%; top: 42%; width: 180vmax; aspect-ratio: 1; translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, rgba(109, 184, 255, .07) 0deg 4deg, transparent 4deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 10%, transparent 62%); mask: radial-gradient(closest-side, #000 10%, transparent 62%);
  animation: rays 40s linear infinite; opacity: 0;
}
@keyframes rays { to { rotate: 360deg; } }
.loader__halo {
  position: absolute; left: 50%; top: 42%; width: min(80vw, 760px); aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(46, 140, 234, .45), rgba(46, 140, 234, .12) 45%, transparent 72%);
  filter: blur(10px); opacity: 0; scale: .6;
}
.loader__stage {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: clamp(20px, 3vh, 34px);
  padding: 0 var(--m); padding-bottom: 8vh;
}
.ll-svg { width: clamp(240px, 36vw, 560px); height: auto; overflow: visible; filter: drop-shadow(0 0 28px rgba(46, 140, 234, .35)); }
.ll-fill--a { fill: #3d8bd0; opacity: 0; }
.ll-fill--b { fill: #1a5f99; opacity: 0; }
.ll-line { fill: none; stroke: #9fd0ff; stroke-width: 5; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 10px rgba(109, 184, 255, .9)); }
.ll-word { fill: #eef3f8; }
.ll-shine { mix-blend-mode: overlay; }
.ll-tag {
  max-width: calc(100vw - 2 * var(--m)); text-align: center;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-2); padding-left: .32em; opacity: 0;
}
.ll-meta { display: flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--ink-2); opacity: 0; }
.ll-progress { width: clamp(120px, 16vw, 220px); height: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.ll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; transform: scaleX(0); }
.ll-count b { font-weight: 500; color: var(--ink); }
@media (max-width: 760px) { .ll-tag { font-size: 10.5px; letter-spacing: .16em !important; } .ll-svg { width: 72vw; } }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0 auto auto 0; z-index: 900; pointer-events: none; display: none; }
@media (hover: hover) and (pointer: fine) { html.js .cursor { display: block; } }
.cursor__dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--accent-2); }
.cursor__ring {
  position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  border: 1px solid rgba(238, 243, 248, .4); display: grid; place-items: center;
  transition: width .4s var(--ease-out), height .4s var(--ease-out), margin .4s var(--ease-out), background-color .3s, border-color .3s;
}
.cursor__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s; }
.cursor.is-link .cursor__ring { width: 60px; height: 60px; margin: -30px 0 0 -30px; border-color: var(--accent-2); }
.cursor.is-view .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--accent); border-color: var(--accent); }
.cursor.is-view .cursor__label { opacity: 1; }
.cursor.is-hidden { opacity: 0; }

/* ---------- Navigation: floating glass bar ---------- */
.nav {
  position: fixed; top: 14px; left: var(--m); right: var(--m); z-index: 500;
  height: 64px; display: flex; align-items: center; gap: 28px;
  padding: 0 10px 0 22px;
  border-radius: 999px;
  background: rgba(8, 13, 19, .45);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  transition: transform .6s var(--ease-out), background-color .4s;
}
.nav.is-solid { background: rgba(8, 13, 19, .78); }
.nav.is-hidden { transform: translateY(calc(-100% - 20px)); }
.nav__brand { display: block; height: 40px; flex: none; }
.nav__brand img { height: 100%; width: auto; }
.nav__links { display: flex; gap: 4px; margin-left: auto; font-size: 14.5px; font-weight: 500; }
.nav__links a { position: relative; padding: 9px 14px; border-radius: 999px; color: var(--ink-2); transition: color .3s, background-color .3s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); background: rgba(255, 255, 255, .06); }
.nav__cta { min-height: 46px; padding: 0 20px; font-size: 14.5px; }
.nav__toggle { display: none; width: 46px; height: 46px; margin-left: auto; position: relative; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); transition: transform .4s var(--ease-out); }
.nav__toggle span:first-child { top: 19px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 400; background: var(--bg);
  padding: calc(var(--nav-h) + 32px) var(--m) var(--m);
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-family: var(--f-display); font-size: clamp(36px, 10vw, 60px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.12; }
.mobile-menu__call { margin-top: auto; color: var(--accent-2); font-size: 22px !important; font-family: var(--f-mono) !important; letter-spacing: 0 !important; }

/* ---------- Hero ---------- */
.hero { height: 100svh; min-height: 640px; }
.hero__stage { position: relative; height: 100%; overflow: hidden; background: var(--bg); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__fallback { position: absolute; inset: 0; display: none; }
.hero__fallback img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.no-webgl .hero__fallback { display: block; }
.hero__content {
  position: absolute; left: var(--m); right: var(--m); bottom: clamp(36px, 7vh, 72px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; pointer-events: none;
}
.hero__content a { pointer-events: auto; }
.hero__label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }
.hero__title { font-size: var(--fs-hero); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line__in { display: block; }
.hero__row { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.hero__lead { max-width: 54ch; font-size: clamp(16px, 1.25vw, 19px); color: var(--ink-2); }
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__hud {
  position: absolute; inset: calc(var(--nav-h) + 24px) var(--m) auto var(--m);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
  pointer-events: none;
}
.hud__rec { display: flex; gap: 8px; align-items: center; color: var(--ink); }
.hud__rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); animation: blink 1s steps(2, start) infinite; }
.hud__track { color: var(--accent-2); }
.hero__scroll {
  position: absolute; right: var(--m); bottom: clamp(36px, 7vh, 72px); writing-mode: vertical-rl;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3);
  display: none; align-items: center; gap: 12px;
}
.hero__scroll span { width: 1px; height: 56px; background: linear-gradient(var(--accent-2), transparent); animation: drip 1.8s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes blink { to { visibility: hidden; } }

/* ---------- About: text fills as you read ---------- */
.about {
  padding: var(--gap) var(--m);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 48px; align-items: start;
}
.about__text { grid-column: 1 / 7; display: grid; gap: 32px; }
.about__fill { font-family: var(--f-display); font-size: var(--fs-statement); font-weight: 500; line-height: 1.22; letter-spacing: -0.02em; }
.about__fill .fl-line {
  background: linear-gradient(90deg, var(--ink) 50%, rgba(238, 243, 248, .16) 50%) no-repeat;
  background-size: 200% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.about__facts li { background: var(--bg); padding: 20px; display: grid; gap: 6px; }
.about__facts b { font-family: var(--f-display); font-size: clamp(34px, 3.4vw, 54px); font-weight: 700; letter-spacing: -0.035em; line-height: 1; color: var(--accent-2); }
.about__facts span { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.about__stack { grid-column: 8 / -1; position: sticky; top: calc(var(--nav-h) + 24px); aspect-ratio: 4 / 5; }
.peel { position: absolute; inset: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); }
.peel img { width: 100%; height: 100%; object-fit: cover; }
.peel figcaption {
  position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(5, 8, 12, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line);
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: clamp(24px, 4vw, 56px) 0; border-block: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__track span {
  font-family: var(--f-display); font-size: clamp(48px, 8.5vw, 140px); font-weight: 700;
  letter-spacing: -0.035em; line-height: 1; white-space: nowrap; padding-right: .45em;
}
.marquee__track span.o { color: transparent; -webkit-text-stroke: 1.5px rgba(238, 243, 248, .5); }
.marquee__track span::after { content: "✦"; display: inline-block; margin-left: .45em; font-size: .35em; vertical-align: middle; color: var(--accent); -webkit-text-stroke: 0; }

/* ---------- Services: coverflow ---------- */
.services { padding-top: calc(var(--gap) * .8); }
.services__pin { position: relative; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; perspective: 1800px; }
.services__track { display: flex; gap: clamp(16px, 2vw, 28px); padding: 0 calc(50vw - min(17vw, 230px)); width: max-content; transform-style: preserve-3d; will-change: transform; }
.svc {
  position: relative; flex: none;
  width: min(34vw, 460px); height: min(72svh, 640px);
  display: flex; flex-direction: column;
  border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  transform-style: preserve-3d; will-change: transform;
  transition: border-color .4s;
}
.svc:hover { border-color: rgba(109, 184, 255, .45); }
.svc__no { position: absolute; top: 16px; left: 18px; z-index: 2; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; padding: 6px 12px; border-radius: 999px; background: rgba(5, 8, 12, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line); }
.svc__icon { position: absolute; top: calc(52% - 64px); right: 16px; z-index: 2; width: 112px; height: 112px; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .5)); transition: transform .8s var(--ease-out); }
.svc:hover .svc__icon { transform: translateY(-8px) rotate(-6deg) scale(1.06); }
.svc__img { position: relative; height: 52%; overflow: hidden; }
.svc__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, var(--bg-3)); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.svc:hover .svc__img img { transform: scale(1.07); }
.svc__body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 24px; }
.svc__title { font-family: var(--f-display); font-size: clamp(24px, 2.2vw, 34px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.svc__text { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.svc__tags i, .tags li { font-style: normal; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
.svc__more { margin-top: auto; font-weight: 600; color: var(--accent-2); display: flex; gap: 8px; align-items: center; }
.svc__more b { display: inline-block; transition: transform .5s var(--ease-out); }
.svc:hover .svc__more b { transform: translateX(6px); }
.services__progress { margin: 28px auto 0; width: min(420px, 60vw); height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.services__progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.services__hint {
  display: none; justify-content: space-between; margin: 12px var(--m) 0;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.services__hint b { display: inline-block; font-weight: 500; color: var(--accent-2); animation: nudge 1.6s var(--ease-io) infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }

/* ---------- Process (paper field) ---------- */
.process { background: var(--paper); color: var(--paper-ink); margin: calc(var(--gap) * .6) clamp(8px, 1.2vw, 18px) 0; border-radius: clamp(24px, 3vw, 44px); overflow: hidden; }
.process .label, .process .sec-lead { color: var(--paper-ink-2); }
.process .label { border-color: var(--paper-2); background: #fff; }
.process .label i { color: var(--accent-deep); }
.process h2 em { color: var(--accent-deep); }
.process__pin { min-height: 100svh; padding: calc(var(--nav-h) + 24px) 0 48px; display: flex; flex-direction: column; justify-content: center; }
.process .sec-head { margin-bottom: 8px; }
.process__map { display: grid; gap: 24px; padding: 0 var(--m); }
.process__route { position: relative; width: min(100%, calc(30svh * 3)); aspect-ratio: 3 / 1; margin: 0 auto; }
.process__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.process__svg path { fill: none; stroke-width: 6; stroke-linecap: round; }
#routeBg { stroke: var(--paper-2); stroke-dasharray: .006 .012; }
#route { stroke: var(--accent-deep); stroke-dasharray: 1; stroke-dashoffset: 1; }
.no-motion #route, html:not(.js) #route { stroke-dashoffset: 0; }
.process__end {
  position: absolute; font-family: var(--f-display); font-weight: 800; line-height: .8;
  font-size: clamp(56px, 7vw, 120px); letter-spacing: -0.035em; color: var(--accent-deep); translate: -50% -50%;
}
.process__end--a { left: 5.5%; top: 82.5%; }
.process__end--b { left: 94.5%; top: 20%; }
.process__dot { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--accent); pointer-events: none; box-shadow: 0 0 0 6px rgba(46, 140, 234, .2); }
.process__dot::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid var(--accent); animation: ping 1.6s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.process__stops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stop { position: relative; padding: 22px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--paper-2); transition: background-color .5s, color .5s, transform .6s var(--ease-out), box-shadow .5s; }
.stop__no { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-ink-2); }
.stop h3 { margin: 10px 0 8px; }
.stop p { color: var(--paper-ink-2); font-size: 15px; line-height: 1.5; }
.stop__icon { position: absolute; top: -26px; right: 14px; width: 68px; height: 68px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(8, 18, 28, .25)); }
.stop.is-on { background: var(--accent-deep); color: #fff; transform: translateY(-8px); box-shadow: 0 24px 50px -20px rgba(31, 95, 166, .7); }
.stop.is-on p, .stop.is-on .stop__no { color: rgba(255, 255, 255, .82); }

/* ---------- Industries: pinned deck ---------- */
.industries { padding-top: var(--gap); }
.ind__pin {
  min-height: 100svh; padding: calc(var(--nav-h) + 40px) var(--m) 48px;
  display: grid; grid-template-columns: minmax(300px, .85fr) 1.6fr; gap: clamp(32px, 4vw, 72px); align-items: center;
}
.ind__side { display: grid; gap: 22px; align-content: center; }
.ind__nav { display: grid; gap: 2px; margin-top: 12px; }
.ind__nav button {
  width: 100%; display: flex; align-items: center; gap: 16px; text-align: left;
  padding: 12px 14px; border-radius: 12px;
  font-family: var(--f-display); font-size: clamp(17px, 1.3vw, 21px); font-weight: 600; letter-spacing: -0.01em; color: var(--ink-3);
  transition: color .35s, background-color .35s, box-shadow .35s;
}
.ind__nav button span { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; color: inherit; opacity: .8; }
.ind__nav button:hover { color: var(--ink); }
.ind__nav li.is-on button { color: var(--ink); background: rgba(46, 140, 234, .12); box-shadow: inset 3px 0 0 var(--accent); }
.ind__nav li.is-on button span { color: var(--accent-2); }
.ind__deck { position: relative; height: min(70svh, 620px); }
.card {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(160deg, #0f1c2b 0%, #0a1219 60%);
  border: 1px solid rgba(109, 184, 255, .16);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
  transform-origin: 50% 0; will-change: transform, opacity;
}
/* Cards stay opaque; a shade layer darkens the ones stepping back, so nothing ghosts through */
.card::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: #05080c; opacity: var(--shade, 0); }
.card__img { position: relative; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, rgba(10, 18, 25, .9)); }
.card__text { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 48px); }
.card__no { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; color: var(--accent-2); }
.card h3 { font-size: clamp(30px, 3.2vw, 52px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; margin-top: auto; }
.card p { max-width: 40ch; color: var(--ink-2); font-size: clamp(16px, 1.15vw, 18.5px); }
.card .card__k { margin-top: 6px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(109, 184, 255, .25); background: rgba(46, 140, 234, .08); color: #cfe3f7; }

/* ---------- Planner ---------- */
.plan {
  padding: var(--gap) var(--m);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 48px; align-items: start;
  background: radial-gradient(60% 50% at 80% 30%, rgba(46, 140, 234, .12), transparent 70%);
}
.plan__intro { grid-column: 1 / -1; padding: 0; margin: 0; }
.plan__form {
  grid-column: 1 / 8; display: grid; gap: 34px;
  padding: clamp(22px, 2.6vw, 40px); border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line);
}
.plan__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.plan__group legend, .plan__range label, .plan__fields span { display: block; font-weight: 600; font-size: 16px; margin-bottom: 14px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  font-weight: 500; font-size: 15px;
  transition: background-color .25s, color .25s, border-color .25s, transform .4s var(--ease-out);
}
.chip:hover span { transform: translateY(-2px); border-color: var(--accent-2); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.plan__range { display: grid; gap: 4px; transition: opacity .3s; }
.plan__range.is-off { opacity: .35; pointer-events: none; }
.plan__range label { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 6px; }
.plan__range output { font-family: var(--f-display); font-weight: 700; font-size: 30px; letter-spacing: -0.03em; color: var(--accent-2); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(var(--accent), var(--accent)) 0 / var(--fill, 5%) 100% no-repeat, var(--bg-3); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--bg-3); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(46, 140, 234, .3); transition: transform .2s; }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }
.plan__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan__fields input {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 14px;
  background: rgba(255, 255, 255, .03); color: var(--ink); font: inherit; transition: border-color .3s;
}
.plan__fields input:focus { border-color: var(--accent); outline: none; }
.plan__fields input::placeholder { color: var(--ink-3); }
.plan__out {
  grid-column: 8 / -1; position: sticky; top: calc(var(--nav-h) + 24px);
  padding: clamp(24px, 2.6vw, 40px); border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(46, 140, 234, .22), rgba(10, 17, 24, .9) 60%);
  border: 1px solid rgba(109, 184, 255, .25);
  display: grid; gap: 22px;
}
.plan__summary { font-family: var(--f-display); font-size: clamp(24px, 2.1vw, 32px); font-weight: 600; line-height: 1.18; letter-spacing: -0.025em; }
.plan__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plan__specs div { background: rgba(5, 8, 12, .5); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.plan__specs dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.plan__specs dd { margin: 4px 0 0; font-family: var(--f-display); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.plan__note { font-size: 13px; color: var(--ink-2); }
.plan__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Numbers: giant zoom (rounded panel) ---------- */
.numbers {
  margin: var(--gap) clamp(8px, 1.2vw, 18px) 0; border-radius: clamp(24px, 3vw, 44px);
  background: radial-gradient(80% 120% at 85% 0%, #3a8fe0 0%, var(--accent-deep) 45%, #164a85 100%);
  color: #fff; overflow: hidden;
}
.numbers .label { color: rgba(255, 255, 255, .85); border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); }
.numbers .label i { color: #fff; }
.numbers__pin { position: relative; display: grid; align-content: center; padding: clamp(64px, 8vw, 120px) var(--m); }
.numbers__giant {
  position: absolute; right: 2%; top: 50%; translate: 0 -50%;
  font-family: var(--f-display); font-weight: 900; letter-spacing: -0.06em; line-height: .8;
  font-size: 34vw; white-space: nowrap; color: rgba(255, 255, 255, .08); pointer-events: none; transform-origin: 70% 50%;
}
.numbers__giant sup { font-size: .4em; vertical-align: .9em; }
.numbers__body { position: relative; display: grid; gap: 22px; }
.numbers__body h2 { margin-bottom: 26px; }
.numbers__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--r-lg); overflow: hidden; }
.num { display: flex; flex-wrap: wrap; align-items: baseline; padding: clamp(22px, 2.4vw, 36px); background: rgba(14, 52, 96, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.num b { font-family: var(--f-display); font-size: clamp(56px, 6vw, 100px); font-weight: 800; letter-spacing: -0.05em; line-height: .9; }
.num > span { font-family: var(--f-display); font-size: clamp(32px, 3.4vw, 56px); font-weight: 500; color: #bfe0ff; }
.num p { flex-basis: 100%; margin-top: 14px; padding-right: 20%; text-wrap: pretty; color: rgba(255, 255, 255, .85); font-size: 15.5px; }

/* ---------- Why: bento ---------- */
.why { padding: var(--gap) 0 calc(var(--gap) * .6); }
.bento {
  padding: 0 var(--m);
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(250px, auto); gap: 14px;
  perspective: 1400px;
}
.tile {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
  padding: clamp(24px, 2.2vw, 34px); border-radius: var(--r-lg);
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(109, 184, 255, .13), transparent 45%), linear-gradient(160deg, #0f1924, #0a1118);
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  transition: border-color .4s;
}
.tile:hover { border-color: rgba(109, 184, 255, .35); }
.tile__no { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; color: var(--accent-2); }
.tile h3 { font-size: clamp(24px, 2vw, 32px); font-weight: 700; letter-spacing: -0.025em; margin-top: auto; }
.tile p { color: var(--ink-2); max-width: 38ch; font-size: 16px; }
.tile__icon { width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .45)); transform: translateZ(40px); }
.tile__img { margin: 8px calc(-1 * clamp(24px, 2.2vw, 34px)) calc(-1 * clamp(24px, 2.2vw, 34px)); flex: 1; min-height: 200px; overflow: hidden; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; }
.tile--a { grid-column: 1 / 3; grid-row: 1 / 3; }
.tile--a h3 { margin-top: 0; }
.tile--b { grid-column: 3 / 4; grid-row: 1; }
.tile--c { grid-column: 4 / 5; grid-row: 1; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .22), transparent 45%), linear-gradient(160deg, #3a8fe0, var(--accent-deep)); border-color: transparent; }
.tile--c p, .tile--c .tile__no { color: rgba(255, 255, 255, .88); }
.tile--d { grid-column: 3 / 4; grid-row: 2; }
.tile--e { grid-column: 4 / 5; grid-row: 2; }

/* ---------- Gallery: drifting columns ---------- */
.gallery { padding: calc(var(--gap) * .6) 0 var(--gap); overflow: hidden; }
.cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 0 var(--m); height: clamp(640px, 115vh, 1100px); overflow: hidden; mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.col { display: grid; gap: 14px; align-content: start; will-change: transform; }
.col:nth-child(even) { margin-top: -18%; }
.col figure { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); }
.col img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.col figure:hover img { transform: scale(1.06); }

/* ---------- FAQ: curtain ---------- */
.faq {
  background: var(--paper); color: var(--paper-ink);
  padding: var(--gap) var(--m);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 40px;
  margin: 0 clamp(8px, 1.2vw, 18px);
  border-radius: clamp(24px, 3vw, 44px);
  transform-origin: 50% 0;
}
.faq .label, .faq .sec-lead { color: var(--paper-ink-2); }
.faq .label { border-color: var(--paper-2); background: #fff; }
.faq .label i, .faq h2 em { color: var(--accent-deep); }
.faq > .sec-head, .faq > h2 { grid-column: 1 / 6; align-self: start; position: sticky; top: calc(var(--nav-h) + 24px); padding: 0; margin: 0; }
.faq__list { grid-column: 6 / -1; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--paper-2); border-radius: var(--r-md); overflow: hidden; transition: background-color .4s, border-color .4s; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 24px; font-family: var(--f-display); font-size: clamp(18px, 1.5vw, 23px); font-weight: 600; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat,
    var(--paper);
  transition: transform .45s var(--ease-out), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details[open] { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.faq details[open] summary::after { background-color: rgba(255, 255, 255, .15); }
.faq details p { padding: 0 24px 26px; max-width: 62ch; color: inherit; opacity: .88; }

/* ---------- Contact ---------- */
.contact { padding: var(--gap) var(--m) calc(var(--gap) * .7); overflow: hidden; }
.cta { position: relative; display: grid; gap: 28px; margin-bottom: clamp(56px, 7vw, 110px); }
.cta__title { font-size: clamp(64px, 13.5vw, 240px); letter-spacing: -0.035em; line-height: .84; }
.cta__line { display: block; will-change: transform; }
.cta__line:last-child { color: var(--accent-2); font-weight: 300; padding-left: 8vw; }
.cta__orb {
  position: absolute; right: 2vw; bottom: 10%; width: clamp(130px, 13vw, 200px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 600; font-size: 16px;
  box-shadow: 0 20px 60px -10px rgba(46, 140, 234, .7);
  transition: background-color .3s, scale .4s var(--ease-out);
}
.cta__orb:hover { background: #fff; color: var(--paper-ink); scale: 1.06; }
.contact__grid, .page-service .contact { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 40px; }
.contact__info { grid-column: 1 / 6; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.page-service .contact__info h2 { margin-bottom: 28px; }
.contact__phone { font-family: var(--f-display); font-size: clamp(30px, 3.4vw, 56px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; transition: color .3s; }
.contact__phone:hover, .contact__mail:hover { color: var(--accent-2); }
.contact__phone--2 { color: var(--ink-2); }
.contact__mail { font-size: clamp(18px, 1.6vw, 24px); font-weight: 500; margin-top: 8px; transition: color .3s; }
.contact address { font-style: normal; margin-top: 18px; color: var(--ink-2); }
.contact__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.contact__map { grid-column: 6 / -1; min-height: 460px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.contact__map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; filter: grayscale(1) invert(.92) contrast(.9) brightness(.92); }

/* ---------- Footer: call to action, directory, wordmark, base ---------- */
.footer {
  position: relative; overflow: hidden;
  padding: clamp(28px, 4vw, 56px) var(--m) 22px;
  background:
    radial-gradient(70% 60% at 85% 0%, rgba(46, 140, 234, .16), transparent 60%),
    linear-gradient(180deg, #060b11, #030508);
  border-top: 1px solid var(--line);
}
/* Call to action band */
.footer__cta {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: clamp(24px, 3vw, 40px) clamp(22px, 3vw, 44px);
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, rgba(46, 140, 234, .22), rgba(31, 95, 166, .08) 60%), var(--bg-2);
  border: 1px solid rgba(109, 184, 255, .22);
}
.footer__eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.footer__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; }
.footer__cta-title { font-family: var(--f-display); font-size: clamp(28px, 3.2vw, 50px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.footer__cta-title em { font-style: normal; background: linear-gradient(100deg, var(--accent-2), var(--accent) 60%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer__cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Directory */
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 64px);
  padding: clamp(48px, 6vw, 80px) 0 clamp(36px, 4vw, 56px);
}
.footer__brand { display: grid; gap: 20px; align-content: start; }
.footer__logo { height: 64px; width: auto; }
.footer__brand p { max-width: 36ch; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.footer__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.footer__chips li { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; font-size: 15.5px; }
.footer__head { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 6px; }
.footer__col a { position: relative; color: var(--ink-2); transition: color .3s, transform .4s var(--ease-out); }
.footer__col a:hover { color: var(--ink); transform: translateX(4px); }
.footer__contact a[href^="tel"] { font-family: var(--f-display); font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.footer__contact address { font-style: normal; color: var(--ink-3); font-size: 14.5px; line-height: 1.6; max-width: 30ch; }
.footer__col .footer__map { color: var(--accent-2); font-weight: 600; }

/* Giant wordmark: fades into the bottom edge */
.footer__word {
  display: flex; justify-content: space-between; gap: .18em; white-space: nowrap;
  font-family: var(--f-display); font-size: min(11.2vw, 240px); font-weight: 800; letter-spacing: -0.05em; line-height: .8;
  padding: 10px 0 4px; overflow: hidden;
  background: linear-gradient(180deg, rgba(238, 243, 248, .95) 0%, rgba(238, 243, 248, .14) 82%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-mask: linear-gradient(180deg, #000 55%, transparent 100%); mask: linear-gradient(180deg, #000 55%, transparent 100%);
}
/* Each word carries its own gradient: the letters animate on their own layers, so they can't borrow the parent's */
.footer__word > span { background: linear-gradient(180deg, rgba(238, 243, 248, .95) 0%, rgba(238, 243, 248, .14) 82%); -webkit-background-clip: text; background-clip: text; }
.footer__word > span:first-child { background: linear-gradient(180deg, var(--accent-2), rgba(46, 140, 234, .15) 85%); -webkit-background-clip: text; background-clip: text; }
.footer__word .fl { display: inline-block; background: inherit; -webkit-background-clip: text; background-clip: text; }
html.js .footer__word .fl { opacity: 0; transform: translateY(40%); transition: opacity .8s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 30ms); }
html.js .footer__word.in .fl { opacity: 1; transform: none; }

/* Base bar */
.footer__base {
  display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap;
  padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3);
}
.footer__top-link { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); transition: color .3s; }
.footer__top-link b {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-2); font-weight: 500; transition: background-color .3s, border-color .3s, transform .5s var(--ease-out);
}
.footer__top-link:hover { color: var(--ink); }
.footer__top-link:hover b { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
@media (min-width: 900px) {
  html.js body.has-reveal main { position: relative; z-index: 1; background: var(--bg); }
  html.js body.has-reveal .footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 0; }
}
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__brand, .footer__contact { grid-column: 1 / -1; }
  .footer__col { font-size: 15px; gap: 10px; }
  .footer__cta-actions, .footer__cta-actions .btn { width: 100%; }
  .footer__word { font-size: 13vw; }
  .footer__base { flex-direction: column; align-items: flex-start; }
}

/* Floating picture used by hover lists (service pages) */
.why__float {
  position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none;
  width: 300px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-md);
  opacity: 0; scale: .6; transition: opacity .35s, scale .5s var(--ease-out);
}
.why__float.is-on { opacity: 1; scale: 1; }
.why__float img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Responsive ---------- */
@media (min-width: 1081px) { .hero__scroll { display: flex; } }
@media (max-width: 1080px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .svc { width: min(62vw, 440px); }
  .services__track { padding: 0 calc(50vw - min(31vw, 220px)); }
  .process__stops { grid-template-columns: 1fr 1fr; }
  .numbers__grid { grid-template-columns: 1fr 1fr; }
  .plan__form, .plan__out { grid-column: 1 / -1; }
  .plan__out { position: static; }
  .about__text { grid-column: 1 / -1; }
  .about__stack { grid-column: 1 / -1; position: relative; top: 0; aspect-ratio: 16 / 10; }
  .ind__pin { display: block; min-height: 0; padding-top: 0; }
  .ind__side { margin-bottom: 36px; }
  .ind__nav { display: none; }
  .ind__deck { height: auto; display: grid; gap: 16px; }
  .card { position: relative; inset: auto; grid-template-columns: 1fr 1fr; min-height: 380px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--a { grid-column: 1 / 3; grid-row: auto; }
  .tile--b, .tile--c, .tile--d, .tile--e { grid-column: auto; grid-row: auto; }
  .cols { grid-template-columns: repeat(3, 1fr); }
  .col:nth-child(4) { display: none; }
}
@media (max-width: 760px) {
  :root { --nav-h: 72px; }
  .nav { top: 10px; height: 56px; padding-left: 16px; }
  .nav__brand { height: 34px; }
  .sec-head--row { grid-template-columns: 1fr; gap: 18px; }
  .sec-head--row .sec-lead { justify-self: start; }
  .hero__content { gap: 20px; bottom: max(28px, env(safe-area-inset-bottom)); }
  .hero__label { font-size: 11px; letter-spacing: .08em; }
  .hero__label-loc { display: none; }
  .hero__title { font-size: 12vw; }
  .hero__title .line, .hero__title .line__in { display: inline; }
  .hero__title em { white-space: nowrap; }
  .hero__row { grid-template-columns: 1fr; gap: 20px; }
  .hero__lead { font-size: 15.5px; line-height: 1.55; }
  .hero__actions .btn { flex: 1 1 0; padding: 0 18px; }
  .hero__hud { font-size: 10.5px; }
  .hud__loc { display: none; }
  .about__facts { grid-template-columns: 1fr; }
  .about__stack { aspect-ratio: 4 / 5; }
  /* Phone: services become a swipeable row */
  .services__pin { height: auto; overflow: visible; display: block; perspective: none; }
  .services__track { width: auto; padding: 0 var(--m); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--m); overscroll-behavior-x: contain; scrollbar-width: none; }
  .services__track::-webkit-scrollbar { display: none; }
  /* Cards size to their content (equal height across the row) instead of a fixed height that can clip text */
  .svc { width: min(82vw, 380px); height: auto; scroll-snap-align: center; }
  .svc__img { height: 210px; flex: none; }
  .svc__body { padding: 18px 20px 22px; gap: 12px; }
  .svc__title { font-size: 26px; }
  /* The cut-out 3D icon collides with the title on narrow cards; the photo already says it */
  .svc__icon { display: none; }
  .services__progress { display: block; margin-top: 22px; width: calc(100% - 2 * var(--m)); }
  .services__hint { display: flex; }
  .process__pin { min-height: 0; padding-top: var(--gap); padding-bottom: var(--gap); }
  .process__route { display: none; }
  .process__stops { grid-template-columns: 1fr; gap: 34px; }
  .card { grid-template-columns: 1fr; min-height: 0; }
  .card__img { aspect-ratio: 16 / 10; }
  .card__img::after { background: linear-gradient(180deg, transparent 55%, rgba(10, 18, 25, .9)); }
  .numbers__grid { grid-template-columns: 1fr; }
  /* Backdrop blur ignores the grid's rounded clip on mobile Chrome and paints square corners */
  .num { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(14, 52, 96, .72); }
  .num p { padding-right: 0; }
  .numbers__giant { font-size: 60vw; right: -4%; }
  .bento { grid-template-columns: 1fr; }
  .tile--a, .tile--b, .tile--c, .tile--d, .tile--e { grid-column: auto !important; grid-row: auto; }
  .gallery { padding-bottom: 48px; }
  .cols { grid-template-columns: 1fr 1fr; gap: 10px; height: 640px; }
  .col { gap: 10px; }
  .col:nth-child(n+3) { display: none; }
  .faq { row-gap: 28px; }
  .faq summary { padding: 18px 18px 18px 20px; line-height: 1.3; gap: 14px; }
  .faq details p { padding: 0 20px 22px; }
  .faq > .sec-head, .faq > h2, .faq__list, .contact__info, .contact__map { grid-column: 1 / -1; position: static; }
  .plan__fields { grid-template-columns: 1fr; }
  .plan__specs dd { font-size: 17px; line-height: 1.3; }
  .plan__actions .btn { flex: 1 1 100%; }
  .cta__title { font-size: 15vw; }
  .cta__line:last-child { padding-left: 5vw; }
  .cta__orb { position: relative; right: auto; bottom: auto; justify-self: end; width: 116px; font-size: 14.5px; margin-top: 4px; }
  .contact__actions .btn { flex: 1 1 0; padding: 0 18px; }
  .contact__map, .contact__map iframe { min-height: 340px; }
  .footer__word { font-size: 11vw; justify-content: flex-start; }
}

/* Short phones (iPhone SE and similar): tighten the hero so the 3D camera keeps clear of the headline */
@media (max-width: 760px) and (max-height: 720px) {
  .hero__content { gap: 14px; }
  .hero__title { font-size: 10.6vw; }
  .hero__lead { font-size: 14.5px; line-height: 1.5; }
  .hero__actions .btn { min-height: 48px; }
  .hero__hud { inset-block-start: calc(var(--nav-h) + 12px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .about__fill .fl-line { background-position: 0 0; }
}

/* ---------- 3D icons (ChatGPT renders on a dark glow; edges fade into dark surfaces) ---------- */
.svc__icon, .tile__icon {
  -webkit-mask: radial-gradient(closest-side, #000 70%, transparent 100%);
  mask: radial-gradient(closest-side, #000 70%, transparent 100%);
}
.svc__icon { top: calc(52% - 70px); right: 12px; width: 120px; height: 120px; filter: none; }
.tile__icon { width: 104px; height: 104px; margin: -6px 0 0 -8px; filter: none; }
.stop__icon {
  position: absolute; top: -30px; right: 16px; width: 76px; height: 76px; object-fit: cover;
  border-radius: 20px; box-shadow: 0 14px 30px -10px rgba(8, 18, 28, .45); filter: none;
}
.stop { padding-top: 34px; }
.sp-icon {
  position: absolute; left: 18px; bottom: 18px; z-index: 2; width: 96px; height: 96px; border-radius: 24px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7); border: 1px solid rgba(109, 184, 255, .25);
}
