/* ==========================================================================
   1MillionWebs v3 — "Orbit" design system
   Palette: deep orbit navy, lunar grey, signal red (logo), starlight white.
   Type: Archivo variable (width 62–125, weight 100–900), one family used
   expressively through its width axis.
   ========================================================================== */

:root {
  --orbit: #0B1022;
  --orbit-2: #131B3A;
  --orbit-3: #1C2750;
  --lunar: #E8E9EE;
  --lunar-2: #F4F5F8;
  --signal: #E3122B;
  --signal-2: #FF3B4E;
  --star: #FFFFFF;
  --dust: #8C93AB;
  --ink: #0B1022;
  --ink-soft: #4A5170;

  --line-d: rgba(255, 255, 255, .14);
  --line-l: rgba(11, 16, 34, .14);

  --ff: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --fs-hero: clamp(2.9rem, 8vw, 9.4rem);
  --fs-1: clamp(2.5rem, 6.4vw, 6.5rem);
  --fs-2: clamp(1.9rem, 3.6vw, 3.4rem);
  --fs-3: clamp(1.25rem, 1.8vw, 1.6rem);
  --fs-body: 1.0625rem;
  --fs-sm: .875rem;

  --pad: clamp(1.25rem, 4vw, 4rem);
  --max: 1440px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 28px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; font-family: var(--ff); font-size: var(--fs-body); line-height: 1.6;
  color: var(--star); background: var(--orbit);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--signal); color: var(--star); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 999; background: var(--signal); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm); }
.skip:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.red { color: var(--signal); }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

/* Display type ----------------------------------------------------------- */
.h-display {
  font-size: var(--fs-1); line-height: .92; letter-spacing: -.035em; font-weight: 800;
  font-variation-settings: "wdth" 118; text-wrap: balance;
}
.h-md { font-size: clamp(2.3rem, 4.8vw, 4.8rem); }
.h-display .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.h-display .w > span { display: inline-block; will-change: transform; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  --bg: transparent; --fg: currentColor; --bd: currentColor;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: 0 1.6rem; border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: .98rem; letter-spacing: -.005em;
  overflow: hidden; isolation: isolate; transition: color .5s var(--ease), border-color .5s var(--ease), transform .2s;
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--fill, var(--star)); transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn span { position: relative; }
.btn-sm { min-height: 42px; padding: 0 1.15rem; font-size: .9rem; }
.btn-signal { --bg: var(--signal); --fg: #fff; --bd: var(--signal); --fill: var(--star); }
.btn-signal:hover { color: var(--ink); border-color: var(--star); }
.btn-line { --fg: var(--star); --bd: rgba(255,255,255,.4); --fill: var(--star); }
.btn-line:hover { color: var(--ink); border-color: var(--star); }
.btn-ink { --bg: var(--ink); --fg: #fff; --bd: var(--ink); --fill: var(--signal); }
.btn-ink:hover { border-color: var(--signal); }
.btn-ghost { --fg: var(--ink); --bd: var(--line-l); --fill: var(--ink); }
.btn-ghost:hover { color: #fff; }
.btn:disabled { opacity: .4; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; border-bottom: 1.5px solid currentColor; padding-bottom: .2rem; }
.link-arrow::after { content: ""; width: .9em; height: .9em; background: currentColor; clip-path: polygon(0 40%, 60% 40%, 60% 10%, 100% 50%, 60% 90%, 60% 60%, 0 60%); transition: transform .4s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }
.link-arrow.light { color: var(--star); }

/* Loader ----------------------------------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--orbit); color: var(--star);
  display: grid; place-items: center; pointer-events: none;
}
.js .loader { pointer-events: auto; }
.no-js .loader, .loader.is-done { display: none; }
.loader-count { position: absolute; right: var(--pad); bottom: calc(var(--pad) + env(safe-area-inset-bottom, 0px)); font-size: clamp(4rem, 14vw, 13rem); font-weight: 800; line-height: .8; font-variation-settings: "wdth" 125; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.loader-word { font-size: clamp(2rem, 6vw, 5rem); font-weight: 900; letter-spacing: -.04em; font-variation-settings: "wdth" 110; display: flex; overflow: hidden; }
.loader-word span { display: inline-block; transform: translateY(105%); }
.loader-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.08); }
.loader-bar i { position: absolute; inset: 0; background: var(--signal); transform-origin: left; transform: scaleX(0); }

/* Cursor ----------------------------------------------------------------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 150; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--signal); pointer-events: none; opacity: 0;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), opacity .3s, background .3s;
  display: grid; place-items: center; will-change: transform;
}
.cursor-label { font-size: .8rem; font-weight: 700; color: #fff; opacity: 0; transition: opacity .25s; letter-spacing: .01em; }
.has-cursor .cursor { opacity: 1; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(227, 18, 43, .25); }
.cursor.is-label { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--signal); }
.cursor.is-label .cursor-label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--pad) 0; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  color: var(--star); transition: transform .6s var(--ease), color .4s, background .4s, backdrop-filter .4s;
}
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: transparent; transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.is-scrolled .site-header::before { background: rgba(11, 16, 34, .72); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: var(--line-d); }
body[data-header="light"] .site-header { color: var(--ink); }
body[data-header="light"].is-scrolled .site-header::before { background: rgba(244, 245, 248, .8); border-bottom-color: var(--line-l); }
.is-hidden .site-header { transform: translateY(-110%); }
.menu-open .site-header { color: var(--star) !important; transform: none; }
.menu-open .site-header::before { background: transparent !important; border-color: transparent !important; }

.logo { font-weight: 900; font-size: 1.45rem; letter-spacing: -.045em; font-variation-settings: "wdth" 108; line-height: 1; display: inline-flex; }
.logo-lg { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.nav { display: flex; gap: .3rem; }
.nav a { position: relative; padding: .5rem .85rem; font-size: .95rem; font-weight: 500; border-radius: 999px; }
.nav .roll { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.3; height: 1.3em; }
.nav .roll > span { display: inline-block; position: relative; transition: transform .5s var(--ease); }
.nav .roll > span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
.nav a:hover .roll > span { transform: translateY(-100%); }
.nav a.is-active::before { content: ""; position: absolute; left: 50%; bottom: .2rem; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--signal); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.menu-btn { display: inline-flex; align-items: center; gap: .6rem; height: 42px; padding: 0 .4rem 0 1rem; border-radius: 999px; border: 1.5px solid currentColor; font-weight: 600; font-size: .9rem; position: relative; }
.menu-btn i { width: 18px; height: 1.5px; background: currentColor; display: block; transition: transform .5s var(--ease); position: absolute; right: 14px; }
.menu-btn i:first-of-type { transform: translateY(-3.5px); }
.menu-btn i:last-of-type { transform: translateY(3.5px); }
.menu-btn { padding-right: 44px; }
.menu-open .menu-btn i:first-of-type { transform: rotate(45deg); }
.menu-open .menu-btn i:last-of-type { transform: rotate(-45deg); }
@media (max-width: 1080px) { .nav { display: none; } }
@media (max-width: 560px) { .header-actions .btn { display: none; } :root { --header-h: 64px; } .logo { font-size: 1.25rem; } }

/* Full-screen menu -------------------------------------------------------- */
.menu { position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; color: var(--star); }
.menu-bg { position: absolute; inset: 0; background: var(--orbit); clip-path: circle(0% at calc(100% - 60px) 38px); transition: clip-path .9s var(--ease-io); }
.menu-open .menu { visibility: visible; pointer-events: auto; }
.menu-open .menu-bg { clip-path: circle(150% at calc(100% - 60px) 38px); }
.menu-inner { position: relative; height: 100%; overflow-y: auto; padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 3vh) var(--pad) calc(2rem + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; }
.menu-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 3rem; }
.menu-group { color: var(--dust); font-size: .9rem; margin-bottom: 1rem; }
.menu-link { display: block; overflow: hidden; font-size: clamp(1.8rem, 3.6vw, 3.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; font-variation-settings: "wdth" 100; transition: font-variation-settings .5s var(--ease), color .3s; }
.menu-link span { display: inline-block; transform: translateY(110%); transition: transform .8s var(--ease); }
.menu-open .menu-link span { transform: translateY(0); }
.menu-link:hover { font-variation-settings: "wdth" 125; color: var(--signal); }
.menu-link.is-active { color: var(--signal); }
.menu-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem; border-top: 1px solid var(--line-d); padding-top: 1.5rem; opacity: 0; transition: opacity .6s .35s; }
.menu-open .menu-foot { opacity: 1; }
.menu-foot a { color: var(--dust); }
.menu-foot a:hover { color: var(--star); }
.menu-foot .btn { margin-left: auto; }
@media (max-width: 760px) { .menu-cols { grid-template-columns: 1fr 1fr; } .menu-col:first-child { grid-column: 1 / -1; } }
.menu-open { overflow: hidden; }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; background: radial-gradient(120% 90% at 70% 40%, #17224a 0%, var(--orbit) 55%); }
.hero-globe { position: absolute; inset: 0; }
.hero-globe canvas { width: 100% !important; height: 100% !important; }
.hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity 1.2s; }
.hero-globe.is-live .hero-fallback { opacity: 0; }
.hero-grain { position: absolute; inset: 0; pointer-events: none; opacity: .5; background: linear-gradient(180deg, rgba(11,16,34,.2) 0%, transparent 30%, transparent 55%, rgba(11,16,34,.92) 100%); }
.hero-content { position: relative; z-index: 2; padding: 0 var(--pad) clamp(5.5rem, 12vh, 8rem); max-width: var(--max); width: 100%; margin: 0 auto; pointer-events: none; }
.hero-content a, .hero-content button { pointer-events: auto; }
.hero-kicker { font-size: 1rem; color: var(--dust); margin-bottom: 1.2rem; display: flex; align-items: center; gap: .7rem; }
.hero-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(227,18,43,.6); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(227,18,43,.55); } 80%, 100% { box-shadow: 0 0 0 14px rgba(227,18,43,0); } }
.hero-title { font-size: var(--fs-hero); line-height: .88; letter-spacing: -.05em; font-weight: 800; font-variation-settings: "wdth" 112; margin-left: -.04em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; }
.hero-title .line:last-child { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.9); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-top: 2.2rem; }
.hero-foot p { max-width: 34rem; color: #C9CEDD; font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-legend { position: absolute; z-index: 2; right: var(--pad); top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 2rem); display: flex; flex-direction: column; gap: .4rem; font-size: .9rem; color: #C9CEDD; }
.hero-legend span { display: flex; gap: .5rem; justify-content: flex-end; align-items: center; }
.hero-legend b { color: var(--star); min-width: 1.6em; text-align: right; font-variant-numeric: tabular-nums; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px)); width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 20px; }
.scroll-cue i { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--star); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
@media (max-width: 760px) {
  .hero-legend { display: none; }
  .hero-title .line:last-child { -webkit-text-stroke-width: 1px; }
  .hero-foot p { font-size: 1rem; }
  .scroll-cue { display: none; }
}

/* Marquee ---------------------------------------------------------------- */
.marquee { background: var(--signal); color: #fff; overflow: hidden; padding: 1.05rem 0; position: relative; z-index: 3; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-item { font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 700; letter-spacing: -.02em; font-variation-settings: "wdth" 112; white-space: nowrap; padding: 0 1.4rem; }
.marquee-dot { opacity: .6; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Section scaffolding ---------------------------------------------------- */
[data-theme="light"] { background: var(--lunar); color: var(--ink); }
[data-theme="dark"] { background: var(--orbit); color: var(--star); }
.section-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-top p { max-width: 34rem; color: var(--ink-soft); font-size: 1.1rem; }
[data-theme="dark"] .section-top p { color: #AEB4C8; }
@media (max-width: 860px) { .section-top { grid-template-columns: 1fr; } }
.center-row { display: flex; justify-content: center; margin-top: 3.5rem; }

/* Mission ---------------------------------------------------------------- */
.mission { padding: clamp(5rem, 11vw, 10rem) 0; }
.mission-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem 5rem; align-items: center; }
.mission-copy p { margin: 1.8rem 0 2rem; max-width: 36rem; color: var(--ink-soft); font-size: 1.12rem; }
.mission-num { font-size: clamp(4rem, 11vw, 10rem); font-weight: 800; line-height: .85; letter-spacing: -.06em; font-variation-settings: "wdth" 125; font-variant-numeric: tabular-nums; color: var(--signal); }
.mission-label { margin: .8rem 0 1.4rem; font-size: 1.05rem; color: var(--ink-soft); }
.meter { height: 10px; border-radius: 10px; background: rgba(11,16,34,.08); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--p); background: var(--ink); border-radius: inherit; transform-origin: left; }
.mission-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.2rem 0 0; border-top: 1px solid var(--line-l); padding-top: 1.4rem; }
.mission-facts dt { font-size: 2rem; font-weight: 800; letter-spacing: -.04em; font-variation-settings: "wdth" 115; }
.mission-facts dd { margin: 0; font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 900px) { .mission-grid { grid-template-columns: 1fr; } }

/* Project tiles ---------------------------------------------------------- */
.tile { --hue: 220; position: relative; }
.tile-link { display: block; }
.tile-media {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--hue) 55% 22%), hsl(calc(var(--hue) + 40) 60% 12%));
  transform-style: preserve-3d; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.55);
}
.tile-cover { position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem; text-align: center; }
.tile-cover span { font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 800; letter-spacing: -.04em; line-height: .95; font-variation-settings: "wdth" 118; color: rgba(255,255,255,.92); }
.tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease), opacity .5s; background: #fff; }
.tile-link:hover .tile-media img { transform: scale(1.06); }
.tile-chrome { position: absolute; left: 0; right: 0; top: 0; height: 30px; display: flex; align-items: center; gap: 5px; padding: 0 12px; background: rgba(11,16,34,.82); backdrop-filter: blur(6px); transform: translateY(-100%); transition: transform .5s var(--ease); z-index: 2; }
.tile-chrome i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); }
.tile-chrome i:first-child { background: var(--signal); }
.tile-chrome b { margin-left: 8px; font-size: .75rem; font-weight: 500; color: #C9CEDD; }
.tile-link:hover .tile-chrome { transform: none; }
.tile-meta { padding-top: 1.1rem; display: grid; gap: .3rem; }
.tile-meta h3 { font-size: 1.45rem; font-weight: 700; letter-spacing: -.03em; font-variation-settings: "wdth" 108; line-height: 1.1; }
.tile-meta p { color: var(--dust); font-size: .95rem; }
[data-theme="light"] .tile-meta p { color: var(--ink-soft); }
.tile-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; padding: .28rem .7rem; border-radius: 999px; border: 1px solid var(--line-d); }
[data-theme="light"] .tag { border-color: var(--line-l); }
.tile[hidden] { display: none; }

/* Latest: horizontal pinned gallery -------------------------------------- */
.latest { position: relative; padding: clamp(5rem, 10vw, 8rem) 0 0; overflow: hidden; }
.latest-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 3rem; margin-bottom: 3rem; }
.latest-head p { max-width: 28rem; color: #AEB4C8; font-size: 1.05rem; }
.hscroll { position: relative; }
.hscroll-track { display: flex; gap: clamp(1.25rem, 2.4vw, 2.5rem); padding: 0 var(--pad) clamp(4rem, 8vw, 6rem); width: max-content; align-items: flex-start; }
.tile-lg { width: clamp(300px, 42vw, 640px); flex: none; }
.hs-divider { flex: none; width: clamp(240px, 22vw, 340px); align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.6rem; border-radius: var(--r-md); border: 1px solid var(--line-d); background: linear-gradient(160deg, var(--orbit-2), var(--orbit)); aspect-ratio: auto; min-height: 280px; }
.hs-count { font-size: clamp(4rem, 8vw, 7rem); font-weight: 800; line-height: .8; letter-spacing: -.06em; color: var(--signal); font-variation-settings: "wdth" 125; margin-bottom: auto; }
.hs-divider h3 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; font-variation-settings: "wdth" 112; line-height: 1; margin: 1rem 0 .6rem; }
.hs-divider p { color: #AEB4C8; font-size: .95rem; }
.hs-end { flex: none; align-self: stretch; width: clamp(240px, 22vw, 320px); display: grid; place-items: center; border-radius: var(--r-md); background: var(--signal); color: #fff; font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; font-variation-settings: "wdth" 115; text-align: center; padding: 2rem; min-height: 280px; transition: background .4s; }
.hs-end:hover { background: var(--signal-2); }
.hscroll-progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 2rem; height: 2px; background: var(--line-d); display: none; }
.hscroll-progress i { position: absolute; inset: 0; background: var(--signal); transform-origin: left; transform: scaleX(0); }
.is-pinned-ready .hscroll-progress { display: block; }
/* No-GSAP / mobile: native horizontal scroll with snap */
.hscroll { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll-track > * { scroll-snap-align: start; }
.is-pinned-ready .hscroll { overflow: visible; }
@media (max-width: 760px) { .tile-lg { width: 82vw; } .hs-divider, .hs-end { width: 70vw; } }

/* Services list ---------------------------------------------------------- */
.services { padding: clamp(5rem, 11vw, 9rem) 0; position: relative; }
.svc-list { border-top: 1px solid var(--line-l); }
.svc { border-bottom: 1px solid var(--line-l); }
.svc a { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; gap: 1rem 2.5rem; align-items: center; padding: clamp(1.3rem, 2.6vw, 2.2rem) 0; transition: padding .6s var(--ease), color .4s; }
.svc-title { font-size: var(--fs-2); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variation-settings: "wdth" 100; transition: font-variation-settings .7s var(--ease); }
.svc-desc { color: var(--ink-soft); max-width: 30rem; }
.svc-arrow { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--line-l); display: grid; place-items: center; transition: background .4s, border-color .4s, transform .6s var(--ease); }
.svc-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.svc a:hover .svc-title { font-variation-settings: "wdth" 125; }
.svc a:hover .svc-arrow { background: var(--signal); border-color: var(--signal); color: #fff; transform: rotate(45deg); }
.svc a:hover { padding-left: 1rem; }
.preview-float { position: fixed; left: 0; top: 0; z-index: 40; width: 340px; aspect-ratio: 16/10; border-radius: var(--r-md); overflow: hidden; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .35s, transform .5s var(--ease); box-shadow: 0 40px 80px -30px rgba(11,16,34,.5); }
.preview-float.is-on { opacity: 1; }
.preview-float img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (max-width: 760px) { .svc a { grid-template-columns: 1fr auto; } .svc-desc { grid-column: 1 / -1; grid-row: 2; } .svc-arrow { width: 44px; height: 44px; } .preview-float { display: none; } }
@media (hover: none) { .preview-float { display: none; } }

/* Products: 3D screens ---------------------------------------------------- */
.products { padding: clamp(5rem, 11vw, 9rem) 0; overflow: hidden; }
.products-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 3rem 5rem; align-items: center; }
.products-copy p { margin: 1.6rem 0; color: #AEB4C8; font-size: 1.08rem; max-width: 34rem; }
.plain-list { display: grid; gap: 1rem; margin-bottom: 2rem; }
.plain-list li { padding-left: 1.2rem; border-left: 2px solid var(--signal); color: #AEB4C8; }
.plain-list b { display: block; color: var(--star); font-weight: 700; }
.screens { position: relative; aspect-ratio: 1 / .82; perspective: 1600px; transform-style: preserve-3d; }
.screen { position: absolute; margin: 0; width: 72%; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 50px 90px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08); will-change: transform; }
.screen img { width: 100%; height: auto; }
.s1 { left: 0; top: 4%; transform: rotateY(18deg) rotateX(8deg) translateZ(-60px); }
.s2 { right: 0; top: 30%; transform: rotateY(-14deg) rotateX(6deg) translateZ(40px); z-index: 2; }
.s3 { left: 14%; bottom: 0; width: 58%; transform: rotateY(10deg) rotateX(-4deg) translateZ(90px); z-index: 3; }
@media (max-width: 900px) { .products-grid { grid-template-columns: 1fr; } }

/* AI --------------------------------------------------------------------- */
.ai { padding: 0 0 clamp(5rem, 11vw, 9rem); }
.ai-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem 5rem; align-items: start; border-top: 1px solid var(--line-d); padding-top: clamp(4rem, 8vw, 7rem); }
.ai-sticky { position: sticky; top: calc(var(--header-h) + 3rem); }
.ai-sticky p { margin: 1.6rem 0 2rem; color: #AEB4C8; font-size: 1.08rem; max-width: 30rem; }
.ai-list { counter-reset: ai; }
.ai-list li { counter-increment: ai; display: grid; grid-template-columns: 3rem 1fr; gap: 0 1rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line-d); }
.ai-list li::before { content: counter(ai, decimal-leading-zero); color: var(--signal); font-weight: 700; font-size: .9rem; padding-top: .45rem; grid-row: span 2; }
.ai-list h3 { font-size: var(--fs-3); font-weight: 700; letter-spacing: -.025em; font-variation-settings: "wdth" 110; }
.ai-list p { color: #AEB4C8; margin-top: .3rem; }
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; } .ai-sticky { position: static; } }

/* Archive grid ----------------------------------------------------------- */
.archive { padding: clamp(5rem, 11vw, 9rem) 0; }
.grid-work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 2.5rem); }
.grid-work .tile:nth-child(4n+2), .grid-work .tile:nth-child(4n+3) { }
@media (min-width: 900px) { .grid-work .tile:nth-child(even) { margin-top: 5rem; } }
@media (max-width: 640px) { .grid-work { grid-template-columns: 1fr; } }

/* Process ---------------------------------------------------------------- */
.process { padding: clamp(5rem, 11vw, 9rem) 0; }
.steps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line-d); }
.step { padding: 1.6rem 1.2rem 0 0; position: relative; }
.step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); }
.step-n { font-size: .9rem; color: var(--dust); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.025em; margin: .8rem 0 .4rem; font-variation-settings: "wdth" 110; }
.step p { font-size: .95rem; color: #AEB4C8; }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); row-gap: 2.5rem; } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }

/* Stack rows ------------------------------------------------------------- */
.stack { padding: clamp(3.5rem, 7vw, 6rem) 0; overflow: hidden; }
.stack-row { display: flex; width: max-content; gap: 3rem; white-space: nowrap; will-change: transform; }
.stack-row span { font-size: clamp(2.8rem, 7vw, 6.5rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.05; font-variation-settings: "wdth" 120; }
.stack-row.outline span { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.stack-row span:hover { color: var(--signal); -webkit-text-stroke-color: var(--signal); }

/* Footer ----------------------------------------------------------------- */
.footer { position: relative; overflow: hidden; padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-cta { padding: clamp(6rem, 12vw, 10rem) var(--pad) clamp(4rem, 8vw, 6rem); max-width: var(--max); margin: 0 auto; }
.footer-cta-kicker { color: var(--dust); margin-bottom: 1rem; }
.footer-cta-title { font-size: clamp(3rem, 11vw, 11rem); font-weight: 800; line-height: .86; letter-spacing: -.055em; font-variation-settings: "wdth" 80; }
.footer-cta-title span { display: block; }
.footer-cta-title span:last-child { color: var(--signal); }
.footer-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem 3rem; margin-top: 3rem; }
.footer-cta-row p { max-width: 30rem; color: #AEB4C8; }
.orb { width: clamp(150px, 16vw, 200px); aspect-ratio: 1; border-radius: 50%; background: var(--signal); color: #fff; font-weight: 700; font-size: 1.05rem; display: grid; place-items: center; transition: background .4s, transform .3s; position: relative; }
.orb::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(227,18,43,.5); animation: orbit-ring 3s var(--ease) infinite; }
@keyframes orbit-ring { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
.orb:hover { background: var(--star); color: var(--ink); }
.footer-grid { max-width: var(--max); margin: 0 auto; padding: 3.5rem var(--pad); display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2.5rem; border-top: 1px solid var(--line-d); }
.footer-brand p { color: #AEB4C8; margin-top: 1.2rem; max-width: 26rem; font-size: .98rem; }
.footer-col { display: flex; flex-direction: column; gap: .55rem; }
.footer-h { color: var(--dust); font-size: .88rem; margin-bottom: .4rem; }
.footer-col a { font-size: .98rem; width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); overflow-wrap: anywhere; }
.footer-col a:hover { background-size: 100% 1px; }
.footer-mega { font-size: 12.4vw; font-weight: 900; letter-spacing: -.06em; line-height: .78; font-variation-settings: "wdth" 110; white-space: nowrap; text-align: center; opacity: .08; user-select: none; padding: 0 1vw; display: flex; justify-content: center; }
.footer-bottom { max-width: var(--max); margin: 0 auto; padding: 1.5rem var(--pad) 2rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; font-size: .88rem; color: var(--dust); border-top: 1px solid var(--line-d); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.footer-bottom a:hover, .to-top:hover { color: var(--star); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

.wa-float { position: fixed; right: max(1.1rem, env(safe-area-inset-right, 0px)); bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); z-index: 80; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 16px 30px -10px rgba(0,0,0,.5); transition: transform .4s var(--ease); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }

/* Quote modal ------------------------------------------------------------ */
.quote-modal { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; padding: 1rem; visibility: hidden; pointer-events: none; }
.quote-modal[aria-hidden="false"] { visibility: visible; pointer-events: auto; }
.quote-backdrop { position: absolute; inset: 0; background: rgba(11,16,34,.7); backdrop-filter: blur(8px); opacity: 0; transition: opacity .5s; }
.quote-modal[aria-hidden="false"] .quote-backdrop { opacity: 1; }
.quote-panel { position: relative; width: min(760px, 100%); max-height: calc(100svh - 2rem); overflow-y: auto; background: var(--lunar-2); color: var(--ink); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.8rem); transform: translateY(40px) scale(.97); opacity: 0; transition: transform .7s var(--ease), opacity .4s; }
.quote-modal[aria-hidden="false"] .quote-panel { transform: none; opacity: 1; }
.quote-panel h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variation-settings: "wdth" 115; padding-right: 3rem; }
.quote-lede { color: var(--ink-soft); margin: .8rem 0 1.4rem; }
.quote-progress { height: 3px; background: rgba(11,16,34,.1); border-radius: 3px; overflow: hidden; margin-bottom: 1.6rem; }
.quote-progress i { display: block; height: 100%; width: 25%; background: var(--signal); transition: width .6s var(--ease); }
.close-x { position: absolute; right: 1.2rem; top: 1.2rem; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-l); font-size: 1.5rem; line-height: 1; transition: transform .5s var(--ease), background .3s; }
.close-x:hover { transform: rotate(90deg); background: var(--ink); color: #fff; }
.quote-step { display: none; }
.quote-step.active { display: block; animation: stepIn .6s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.quote-step h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -.02em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
label { display: grid; gap: .4rem; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: .9rem; }
.form-grid label { margin: 0; }
input, select, textarea { width: 100%; padding: .85rem 1rem; border-radius: 10px; border: 1.5px solid var(--line-l); background: #fff; color: var(--ink); font-weight: 400; transition: border-color .3s, box-shadow .3s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(11,16,34,.08); }
textarea { resize: vertical; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1rem; }
.choice { margin: 0; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: block; padding: .85rem 1rem; border-radius: 10px; border: 1.5px solid var(--line-l); background: #fff; font-weight: 500; transition: all .3s; }
.choice input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.consent { display: flex; align-items: center; gap: .6rem; font-weight: 500; }
.consent input { width: auto; }
.quote-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line-l); }
.quote-count { color: var(--ink-soft); font-size: .9rem; }
.quote-submit { width: 100%; margin-top: .5rem; }
.quote-submit[hidden], .quote-next[hidden] { display: none; }
.form-status { font-size: .95rem; border-radius: 10px; }
.form-status:not(:empty) { padding: .8rem 1rem; margin-bottom: 1rem; }
.form-status.is-loading { background: rgba(11,16,34,.06); }
.form-status.is-success { background: #E3F6EA; color: #0E6B34; }
.form-status.is-error { background: #FDE8EA; color: #A30F21; }
@media (max-width: 600px) { .form-grid, .choice-grid { grid-template-columns: 1fr; } }
.modal-open { overflow: hidden; }

/* Reveal ----------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-head { position: relative; padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(4rem, 10vw, 8rem)) 0 clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.page-head .wrap { position: relative; z-index: 2; }
.page-head-title { font-size: clamp(3rem, 9vw, 9rem); font-weight: 800; letter-spacing: -.055em; line-height: .88; font-variation-settings: "wdth" 122; max-width: 14ch; }
.page-head-sub { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; }
.page-head-sub p { max-width: 36rem; font-size: 1.15rem; color: #AEB4C8; }
[data-theme="light"] .page-head-sub p { color: var(--ink-soft); }
.page-head-bg { position: absolute; inset: 0; z-index: 0; }
.page-head-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.page-head-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,16,34,.4), var(--orbit)); }
.stat-row { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.stat-row div { display: grid; }
.stat-row b { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.04em; font-variation-settings: "wdth" 118; line-height: 1; }
.stat-row span { font-size: .9rem; color: var(--dust); }

/* Portfolio page */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 3rem; }
.filter { padding: .6rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line-l); font-weight: 600; font-size: .92rem; transition: all .3s; }
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter sup { font-size: .7rem; margin-left: .25rem; opacity: .6; }
.work-block { padding: clamp(4rem, 8vw, 7rem) 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 3.5vw, 3rem) clamp(1.25rem, 2.5vw, 2rem); }
@media (max-width: 1000px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }
.product-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.product-duo figure { margin: 0; border-radius: var(--r-md); overflow: hidden; background: #fff; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.product-duo figcaption { padding: 1rem 1.2rem; color: var(--ink); font-size: .95rem; }
@media (max-width: 700px) { .product-duo { grid-template-columns: 1fr; } }

/* Services page */
.svc-detail { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem 5rem; padding: clamp(3.5rem, 7vw, 6rem) 0; border-top: 1px solid var(--line-l); align-items: start; }
[data-theme="dark"] .svc-detail { border-color: var(--line-d); }
.svc-detail h2 { font-size: var(--fs-2); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variation-settings: "wdth" 115; }
.svc-detail .lead { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 1.6rem; }
[data-theme="dark"] .svc-detail .lead { color: #AEB4C8; }
.svc-detail figure { margin: 2rem 0 0; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16/10; }
.svc-detail figure img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.feature-list li { padding: .9rem 0; border-bottom: 1px solid var(--line-l); display: flex; gap: .7rem; }
[data-theme="dark"] .feature-list li { border-color: var(--line-d); }
.feature-list li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .6em; border-radius: 50%; background: var(--signal); }
@media (max-width: 860px) { .svc-detail { grid-template-columns: 1fr; } .feature-list { grid-template-columns: 1fr; } }
.svc-sticky { position: sticky; top: calc(var(--header-h) + 2rem); }
@media (max-width: 860px) { .svc-sticky { position: static; } }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem 5rem; padding-block: clamp(4rem, 8vw, 7rem); }
.contact-ways { display: grid; gap: 0; border-top: 1px solid var(--line-l); }
.contact-ways a, .contact-ways button { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line-l); font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -.03em; font-variation-settings: "wdth" 105; text-align: left; transition: font-variation-settings .6s var(--ease), color .3s; overflow-wrap: anywhere; }
.contact-ways small { display: block; font-size: .9rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; font-variation-settings: "wdth" 100; }
.contact-ways a:hover, .contact-ways button:hover { font-variation-settings: "wdth" 125; color: var(--signal); }
.contact-form { background: #fff; border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.6rem); box-shadow: 0 40px 80px -50px rgba(11,16,34,.4); }
.contact-form h2 { font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 1.4rem; font-variation-settings: "wdth" 112; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Region work strip */
.region-work { padding: clamp(4rem, 8vw, 6rem) 0; }

/* ==========================================================================
   Legacy content pages (pricing, FAQ, legal, insights, regions…) mapped onto
   the v3 system so every page shares the same look.
   ========================================================================== */
body.legacy main { background: var(--lunar); color: var(--ink); }
.legacy .page-hero, .legacy .subhero {
  position: relative; background: var(--orbit); color: var(--star);
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(3.5rem, 9vw, 7rem)) var(--pad) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.legacy .page-hero > *, .legacy .subhero > * { max-width: var(--max); margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
.legacy .page-hero::after, .legacy .subhero::after { content: ""; position: absolute; right: -10vw; top: -20vw; width: 60vw; height: 60vw; border-radius: 50%; background: radial-gradient(circle, rgba(227,18,43,.28), transparent 62%); pointer-events: none; }
.legacy .page-hero h1, .legacy .subhero h1 { font-size: clamp(2.6rem, 7vw, 6.5rem); font-weight: 800; letter-spacing: -.05em; line-height: .92; font-variation-settings: "wdth" 120; margin: 1rem auto 1.4rem; max-width: var(--max); }
.legacy .page-hero p, .legacy .subhero p { color: #AEB4C8; font-size: 1.12rem; max-width: 42rem; margin-left: 0; }
.legacy .page-hero > p, .legacy .subhero .wrap > p { margin-bottom: 1.8rem; }
.legacy .page-hero img, .legacy .subhero img { border-radius: var(--r-md); margin-top: 2rem; max-height: 440px; width: 100%; object-fit: cover; }
.legacy .eyebrow { display: inline-block; font-size: .9rem; font-weight: 600; color: var(--signal); letter-spacing: 0; text-transform: none; }
.legacy .eyebrow.light { color: #FF6B79; }
.legacy .section, .legacy .content-section { padding: clamp(3.5rem, 7vw, 6rem) var(--pad); max-width: calc(var(--max)); margin: 0 auto; }
.legacy .content-section.alt { background: var(--lunar-2); max-width: none; }
.legacy .section-heading { max-width: 52rem; margin-bottom: 2.5rem; }
.legacy .section-heading h2, .legacy .long-copy h2, .legacy h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; font-variation-settings: "wdth" 112; margin: .5rem 0 1rem; }
.legacy .section-heading p { color: var(--ink-soft); font-size: 1.08rem; }
.legacy .long-copy { max-width: 46rem; padding: 2rem 0; border-top: 1px solid var(--line-l); }
.legacy .long-copy p { color: var(--ink-soft); margin-bottom: 1rem; line-height: 1.7; }
.legacy .long-copy h3 { font-size: 1.3rem; font-weight: 700; margin: 1.2rem 0 .5rem; }
.legacy .long-copy ul, .legacy .check-list { display: grid; gap: .5rem; margin: 1rem 0; }
.legacy .long-copy li, .legacy .check-list li { padding-left: 1.2rem; position: relative; color: var(--ink-soft); }
.legacy .long-copy li::before, .legacy .check-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.legacy .editorial-grid, .legacy .article-grid, .legacy .industry-card-grid, .legacy .pricing-grid, .legacy .pricing-preview, .legacy .contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.legacy .editorial-grid .long-copy { border: 1px solid var(--line-l); background: #fff; border-radius: var(--r-md); padding: 1.8rem; max-width: none; }
.legacy .wrap { padding: 0; }
.legacy .page-hero .wrap, .legacy .subhero .wrap { padding: 0; }
.legacy article.reveal, .legacy .industry-card, .legacy .price-card, .legacy .article-grid article { background: #fff; border-radius: var(--r-md); padding: 1.8rem; border: 1px solid var(--line-l); }
.legacy .industry-card img, .legacy .article-grid img { border-radius: 10px; margin-bottom: 1rem; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.legacy .industry-card h3, .legacy .price-card h3, .legacy .article-grid h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; margin: .4rem 0 .6rem; }
.legacy .price-card strong { display: block; font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; font-variation-settings: "wdth" 118; color: var(--signal); margin: .3rem 0 .8rem; }
.legacy .price-card ul { display: grid; gap: .45rem; margin: 1rem 0 1.4rem; }
.legacy .price-card li { padding-left: 1.2rem; position: relative; color: var(--ink-soft); }
.legacy .price-card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.legacy .price-card p, .legacy .industry-card p, .legacy .article-grid p { color: var(--ink-soft); }
.legacy .pricing-note { margin-top: 2rem; color: var(--ink-soft); }
.legacy .btn-primary { --bg: var(--signal); --fg: #fff; --bd: var(--signal); --fill: var(--ink); }
.legacy .btn-primary:hover { border-color: var(--ink); }
.legacy .btn-light { --bg: #fff; --fg: var(--ink); --bd: #fff; --fill: var(--signal); }
.legacy .btn-light:hover { color: #fff; border-color: var(--signal); }
.legacy .btn-ghost-dark, .legacy .btn-ghost { --fg: var(--ink); --bd: var(--line-l); --fill: var(--ink); }
.legacy .btn-ghost-dark:hover { color: #fff; }
.legacy .page-hero .btn-ghost, .legacy .subhero .btn-ghost { --fg: #fff; --bd: rgba(255,255,255,.4); --fill: #fff; }
.legacy .hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.legacy .text-button, .legacy .text-link { color: var(--signal); font-weight: 600; border-bottom: 1.5px solid currentColor; }
.legacy .cta-band, .legacy .future-cta { background: var(--orbit); color: var(--star); border-radius: var(--r-lg); padding: clamp(2rem, 5vw, 4rem); margin: 2rem var(--pad) clamp(3rem, 6vw, 5rem); max-width: var(--max); position: relative; overflow: hidden; }
@media (min-width: 1520px) { .legacy .cta-band, .legacy .future-cta { margin-left: auto; margin-right: auto; } }
.legacy .cta-band h2, .legacy .future-cta h2 { color: var(--star); max-width: 22ch; }
.legacy .cta-band p, .legacy .future-cta p { color: #AEB4C8; max-width: 40rem; margin-bottom: 1.4rem; }
.legacy .future-cta-overlay { display: none; }
.legacy details { border-top: 1px solid var(--line-l); padding: 1.2rem 0; }
.legacy details summary { cursor: pointer; font-weight: 700; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.legacy details summary::after { content: "+"; color: var(--signal); font-size: 1.4rem; line-height: 1; transition: transform .4s var(--ease); }
.legacy details[open] summary::after { transform: rotate(45deg); }
.legacy details p { color: var(--ink-soft); margin-top: .8rem; max-width: 50rem; }
.legacy .faq-list .reveal { background: none; border: 0; border-radius: 0; }
.legacy .faq-list details { max-width: 56rem; border-top: 1px solid var(--line-l); padding: 1.3rem 0; }
.legacy .ai-product-row { display: grid; grid-template-columns: auto 1fr; gap: 1rem 2rem; margin-bottom: 1.2rem; }
.legacy .ai-product-number { font-size: 2.4rem; font-weight: 800; color: var(--signal); font-variation-settings: "wdth" 120; }
.legacy .product-category-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.legacy .product-category-nav a { padding: .6rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line-l); font-weight: 600; }
.legacy .ai-orbit-card { background: var(--orbit); color: #fff; border-radius: var(--r-md); padding: 1.5rem; }
.legacy .countries-visual-hero img { max-height: 520px; }
.legacy .countries-mobile-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.legacy .service-directory-grid, .legacy .service-picture-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.legacy .reveal { opacity: 1; transform: none; }

/* Reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .loader { display: none; }
}

.about-figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; max-width: 420px; justify-self: end; box-shadow: 0 40px 80px -40px rgba(11,16,34,.5); }
.about-figure img { width: 100%; height: auto; }
.mission-copy p + p { margin-top: 0; }
@media (max-width: 900px) { .about-figure { justify-self: start; } }

.legacy article h2, .legacy .editorial-grid h2 { font-size: clamp(1.4rem, 2.1vw, 1.85rem); line-height: 1.1; }
.legacy .price-card h3 { font-size: 1.5rem; line-height: 1.1; }
.legacy .page-hero h1 em, .legacy .subhero h1 em { font-style: normal; }

/* ==========================================================================
   Mobile apps
   ========================================================================== */
.dphone { position: relative; width: 250px; aspect-ratio: 9 / 18.4; border-radius: 40px; padding: 9px; background: linear-gradient(145deg, #2c3142, #0b0d13); box-shadow: 0 40px 70px -30px rgba(0,0,0,.6), inset 0 0 0 2px #3d4354; flex: none; }
.dphone-island { position: absolute; z-index: 2; top: 18px; left: 50%; width: 76px; height: 22px; margin-left: -38px; border-radius: 20px; background: #000; }
.dphone-screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #fff; padding-top: 34px; }
.dphone-screen img { width: 100%; height: auto; display: block; }
.app-case { padding: clamp(4.5rem, 9vw, 7.5rem) 0; overflow: hidden; }
.app-case-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; margin-bottom: 3rem; }
.app-case-id { display: flex; gap: 1.2rem; align-items: center; }
.app-case-icon { flex: none; width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; font-weight: 900; font-size: 2rem; color: #fff; background: linear-gradient(145deg, hsl(var(--ah, 215) 70% 45%), hsl(var(--ah, 215) 70% 24%)); }
.app-case-kind { color: var(--signal-2); font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
[data-theme="light"] .app-case-kind { color: var(--signal); }
.app-case h2 small { font-size: .38em; font-weight: 600; color: var(--dust); letter-spacing: 0; font-variation-settings: "wdth" 100; }
.app-case-client { color: var(--dust); margin-top: .5rem; }
.app-case-sum { font-size: 1.1rem; color: #AEB4C8; max-width: 38rem; }
[data-theme="light"] .app-case-sum { color: var(--ink-soft); }
.phone-rail { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.phone-rail::-webkit-scrollbar { display: none; }
.phone-rail-track { display: flex; gap: clamp(1.25rem, 2.5vw, 2.5rem); padding: 1rem var(--pad) 2rem; width: max-content; margin: 0 auto; }
.phone-fig { margin: 0; display: grid; justify-items: center; gap: .9rem; scroll-snap-align: center; }
.phone-fig figcaption { font-size: .9rem; font-weight: 600; color: var(--dust); }
.phone-fig:nth-child(even) { transform: translateY(2.2rem); }
.phone-fig:nth-child(even).is-in { transform: translateY(2.2rem); }
.app-case-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-top: 3.5rem; }
.app-case-foot .feature-list { flex: 1 1 520px; grid-template-columns: 1fr 1fr; }
.app-case-foot .tile-tags { flex-direction: column; align-items: flex-end; }
[data-theme="dark"] .feature-list li { border-color: var(--line-d); color: #C9CEDD; }
.alj-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem 5rem; align-items: center; }
.alj-web-note { margin-top: 1.8rem; font-size: .92rem; color: var(--dust); border-left: 2px solid var(--signal); padding-left: .9rem; }
.alj-web-card { background: var(--orbit-2); border: 1px solid var(--line-d); border-radius: var(--r-lg); padding: 2.2rem; }
.alj-web-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-bottom: 1.6rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line-d); }
.alj-web-stats div { display: grid; }
.alj-web-stats b { font-size: 2rem; font-weight: 800; letter-spacing: -.04em; font-variation-settings: "wdth" 112; }
.alj-web-stats span { font-size: .85rem; color: var(--dust); }
.gplay { display: inline-grid; background: #000; border: 1px solid #555; border-radius: 12px; padding: .6rem 1.4rem; line-height: 1.1; transition: transform .4s var(--ease), border-color .3s; }
.gplay small { font-size: .7rem; color: #ccc; }
.gplay b { font-size: 1.5rem; letter-spacing: -.02em; }
.gplay:hover { transform: translateY(-3px); border-color: #fff; }
.app-process { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.steps-light { border-color: var(--line-l); }
.steps-light .step p { color: var(--ink-soft); }
@media (max-width: 900px) { .app-case-top, .alj-grid { grid-template-columns: 1fr; } .app-case-foot .feature-list { grid-template-columns: 1fr; } .app-case-foot .tile-tags { align-items: flex-start; flex-direction: row; } }
@media (max-width: 600px) { .dphone { width: 210px; border-radius: 34px; } .dphone-screen { border-radius: 27px; } }

/* Home: apps teaser */
.home-apps { padding: clamp(5rem, 10vw, 8rem) 0; overflow: hidden; }
.home-apps-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem 4rem; align-items: center; }
.home-apps-copy p { margin: 1.6rem 0 2rem; color: var(--ink-soft); font-size: 1.1rem; max-width: 32rem; }
.home-apps-list { display: grid; gap: 0; border-top: 1px solid var(--line-l); margin-bottom: 2rem; }
.home-apps-list a { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-l); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; transition: font-variation-settings .6s var(--ease), color .3s; }
.home-apps-list a span { font-weight: 400; font-size: .9rem; color: var(--ink-soft); letter-spacing: 0; }
.home-apps-list a:hover { font-variation-settings: "wdth" 120; color: var(--signal); }
.home-apps-stage { position: relative; display: flex; justify-content: center; align-items: center; gap: 1.2rem; perspective: 1400px; min-height: 560px; }
.home-apps-stage .dphone { width: 220px; }
.home-apps-stage .dphone:nth-child(1) { transform: rotateY(22deg) translateY(30px) scale(.92); }
.home-apps-stage .dphone:nth-child(2) { z-index: 2; width: 250px; }
.home-apps-stage .dphone:nth-child(3) { transform: rotateY(-22deg) translateY(30px) scale(.92); }
@media (max-width: 900px) { .home-apps-grid { grid-template-columns: 1fr; } .home-apps-stage { min-height: 0; } .home-apps-stage .dphone { width: 150px; } .home-apps-stage .dphone:nth-child(2) { width: 170px; } }
.legacy .page-head .wrap { padding-inline: var(--pad); }
.phone-rail .dphone { width: clamp(200px, 15.5vw, 240px); }
.legacy .pricing-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* Branded cover for projects without an uploaded screenshot */
.tile-cover { flex-direction: column; gap: .7rem; align-content: center;
  background:
    radial-gradient(120% 90% at 85% 10%, hsl(calc(var(--hue) + 30) 70% 45% / .45), transparent 60%),
    linear-gradient(135deg, hsl(var(--hue) 55% 24%), hsl(calc(var(--hue) + 40) 60% 11%));
}
.tile-cover::before { content: ""; position: absolute; inset: 0; opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 75%); }
.tile-cover span, .tile-cover small { position: relative; }
.tile-cover small { font-size: .85rem; color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: .3rem .9rem; letter-spacing: .01em; }
.tile-cover { display: flex; align-items: center; justify-content: center; }
