/* RANDPOWERSTATE (PTY) LTD
   Navy editorial system: square edges, big boxy grid, heavy scroll motion.
   Shares its design language with the founder's portfolio. Motion lives in
   assets/js/site.js; everything here also works without JS. */

:root {
  --navy-950: #030b1c;
  --navy-900: #061430;
  --navy-850: #081a3d;
  --navy-800: #0b2350;
  --navy-700: #13336f;
  --blue: #2a5cff;
  --blue-2: #5c86ff;
  --sky: #a8c0ff;
  --ice: #dfe7fb;
  --paper: #f3f5f9;
  --paper-2: #e8edf5;
  --white: #ffffff;
  --ok: #2fd08a;

  --ink: #071430;
  --ink-2: #33405c;
  --muted: #6a7591;
  --line: rgba(7, 20, 48, 0.14);
  --line-strong: rgba(7, 20, 48, 0.9);

  --c: var(--blue);                      /* per-client accent */

  --display: "Archivo", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --wrap: 1440px;
  --gutter: clamp(16px, 3.4vw, 48px);
  --head-h: 76px;
  --ease: cubic-bezier(.19, 1, .22, 1);
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:not(.lenis) { scroll-behavior: auto; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--blue); color: #fff; }

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); font-stretch: 112%; line-height: 1; margin: 0; letter-spacing: -0.025em; font-weight: 800; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--blue); color: #fff; padding: 10px 16px; z-index: 300; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- dark sections ---------- */
.dark {
  --ink: #f1f4fb;
  --ink-2: #b5c0d8;
  --muted: #7d8aa8;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.85);
  background: var(--navy-900);
  color: var(--ink);
}
.deep { background: var(--navy-950); }

/* atmosphere behind dark sections: slow drifting light under a fine film grain */
:root { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.atmo { position: relative; isolation: isolate; overflow: hidden; }
.atmo::before {
  content: ""; position: absolute; inset: -15%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(42% 38% at 80% 18%, rgba(42, 92, 255, .2), transparent 70%),
    radial-gradient(36% 34% at 12% 88%, rgba(92, 134, 255, .1), transparent 70%);
  animation: atmo-drift 26s ease-in-out infinite alternate;
}
.atmo::after, .case-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain); background-size: 220px; opacity: .06; mix-blend-mode: screen; }
@keyframes atmo-drift { to { transform: translate3d(-5%, 4%, 0) scale(1.08); } }
.no-motion .atmo::before { animation: none; }

/* ---------- header ---------- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--head-h);
  color: #fff;
  transition: background .4s var(--ease), color .4s var(--ease), transform .5s var(--ease), border-color .4s;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.site-head.solid { background: rgba(6, 20, 48, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-head.hide { transform: translateY(-100%); }
.site-head .wrap { display: flex; align-items: stretch; height: 100%; max-width: none; padding: 0; }
.logo {
  display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter);
  font-family: var(--display); font-stretch: 120%; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; text-transform: uppercase;
  border-right: 1px solid rgba(255, 255, 255, .14);
}
.logo img { width: 28px; height: auto; }
.logo b { font-weight: inherit; }
.logo span { color: var(--blue-2); }
.nav { margin-left: auto; display: flex; align-items: stretch; }
.nav a {
  display: flex; align-items: center; padding: 0 22px; text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .78);
  border-left: 1px solid rgba(255, 255, 255, .14); position: relative; overflow: hidden;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: #fff; }
.nav .cta { background: var(--blue); color: #fff; padding: 0 30px; border-left: 0; }
.nav .cta::after { background: #fff; }
.nav .cta:hover { background: #1e4ae0; }
.nav-toggle { display: none; margin-left: auto; background: var(--blue); color: #fff; border: 0; padding: 0 26px; font: 600 13px var(--body); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: fixed; inset: var(--head-h) 0 auto 0; flex-direction: column; background: var(--navy-950); border-top: 1px solid rgba(255,255,255,.14); max-height: calc(100vh - var(--head-h)); overflow: auto; }
  .nav.open { display: flex; }
  .nav a { padding: 22px var(--gutter); border-left: 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 15px; }
  .nav .cta { padding: 22px var(--gutter); }
}
@media (max-width: 420px) { .logo { font-size: 15px; gap: 10px; } .logo img { width: 24px; } .nav-toggle { padding: 0 18px; } }

/* scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--blue-2); transform: scaleX(0); transform-origin: left; z-index: 120; pointer-events: none; }

/* ---------- type ---------- */
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--c); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: currentColor; flex: none; }
.dark .eyebrow { color: var(--blue-2); }
.dark[style*="--c"] .eyebrow, .dark .eyebrow[style*="--c"] { color: var(--c); }
.h-mega { font-size: clamp(42px, 6.6vw, 124px); line-height: .88; letter-spacing: -0.045em; text-transform: uppercase; font-stretch: 118%; }
.h-xl { font-size: clamp(42px, 7vw, 120px); line-height: .92; letter-spacing: -0.04em; }
.h-lg { font-size: clamp(34px, 5vw, 80px); line-height: .95; letter-spacing: -0.035em; }
.h-md { font-size: clamp(24px, 2.6vw, 38px); line-height: 1.05; }
.lede { font-size: clamp(18px, 1.55vw, 23px); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.hl { color: var(--blue); }
.dark .hl { color: var(--blue-2); }

/* split text */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.swi { display: inline-block; will-change: transform; }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 0; }
.btn {
  --bf: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  min-height: 62px; padding: 0 26px; text-decoration: none; font: 600 14px var(--body); letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--line-strong); color: var(--ink); background: transparent; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
.btn + .btn { margin-left: -1px; }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--bf); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); z-index: -1; }
.btn:hover { color: var(--paper); }
.dark .btn:hover { color: var(--navy-900); }
.btn:hover::before { transform: scaleY(1); }
.btn::after { content: "→"; font-family: var(--body); transition: transform .5s var(--ease); }
.btn:hover::after { transform: translateX(5px); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; --bf: var(--navy-950); }
.dark .btn.primary:hover { color: #fff; }
.btn.primary:hover { color: #fff; }
.btn.ext::after { content: "↗"; }
.btn.back::after { content: none; }
.btn.back::before { transform-origin: top; }
@media (max-width: 420px) { .btns .btn { flex: 1 1 100%; } .btn + .btn { margin-left: 0; margin-top: -1px; } }

/* ---------- sections ---------- */
section { position: relative; padding-block: clamp(80px, 11vw, 170px); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head > * { margin: 0; }
.sec-head .eyebrow { grid-column: 1 / -1; margin-bottom: -8px; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- home hero ---------- */
.hero { min-height: 100svh; padding: calc(var(--head-h) + clamp(40px, 7vh, 90px)) 0 0; display: flex; flex-direction: column; overflow: hidden; background: var(--navy-950); }
/* three slow light orbs plus a cursor spotlight */
.hero .glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero .glow i { position: absolute; border-radius: 50%; filter: blur(50px); will-change: transform; }
.hero .glow i:nth-child(1) { width: 56vmax; height: 56vmax; right: -14vmax; top: -24vmax; background: radial-gradient(closest-side, rgba(42, 92, 255, .32), transparent); animation: orb-a 22s ease-in-out infinite alternate; }
.hero .glow i:nth-child(2) { width: 40vmax; height: 40vmax; left: -16vmax; bottom: -20vmax; background: radial-gradient(closest-side, rgba(92, 134, 255, .26), transparent); animation: orb-b 28s ease-in-out infinite alternate; }
.hero .glow i:nth-child(3) { width: 28vmax; height: 28vmax; left: 34%; top: 16%; background: radial-gradient(closest-side, rgba(124, 92, 255, .16), transparent); animation: orb-c 34s ease-in-out infinite alternate; }
@keyframes orb-a { to { transform: translate3d(-9vmax, 7vmax, 0) scale(1.12); } }
@keyframes orb-b { to { transform: translate3d(12vmax, -6vmax, 0) scale(.9); } }
@keyframes orb-c { to { transform: translate3d(-8vmax, 10vmax, 0) scale(1.25); } }
.no-motion .hero .glow i { animation: none; }
.hero .spot { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 30%), rgba(92, 134, 255, .13), transparent 62%); opacity: 0; transition: opacity .8s var(--ease); }
.hero:hover .spot { opacity: 1; }
/* hairline that fades in from the edges along the bottom of the hero */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(168, 192, 255, .35), transparent); }
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; flex: 1; position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(40px, 5.3vw, 94px); line-height: .94; letter-spacing: -0.04em; max-width: 16ch; }
.hero h1 .l2 { color: var(--blue-2); }
/* a slow glint travels across the accent words (delays set per word in site.js) */
.has-motion:not(.no-motion) .hero h1 .l2 .swi { background: linear-gradient(100deg, var(--blue-2) 35%, #e6ecff 50%, var(--blue-2) 65%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: glint 7s var(--ease) infinite; }
@keyframes glint { 0%, 55% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.hero-sub { display: grid; gap: 28px; margin-top: clamp(28px, 4vw, 48px); max-width: 600px; }
.hero-sub .lede { margin: 0; color: #c3cde3; }

/* night map of Kimberley across the whole hero: glow raster + SVG arterials that draw in, office pin */
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; background: var(--navy-950); }
.map-pos { position: absolute; top: 50%; left: 50%; width: max(100%, 178svh); aspect-ratio: 16 / 9; transform: translate(-50%, -50%); }
.map-stage { position: absolute; inset: 0; will-change: transform; }
.map-stage img { width: 100%; height: 100%; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* fades: solid behind the copy on the left, open over the pin on the right, closed top and bottom */
.hero-fade { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 11, 28, .97) 0%, rgba(3, 11, 28, .9) 28%, rgba(3, 11, 28, .55) 50%, rgba(3, 11, 28, .08) 72%, rgba(3, 11, 28, .3) 100%),
    linear-gradient(180deg, rgba(3, 11, 28, .9) 0%, rgba(3, 11, 28, 0) 22%, rgba(3, 11, 28, 0) 66%, rgba(3, 11, 28, .96) 100%); }
.map-credit { position: absolute; right: var(--gutter); bottom: calc(100% + 18px); margin: 0; z-index: 1; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(223, 231, 251, .6); text-align: right; }
.map-credit small { display: block; margin-top: 4px; font-size: 10px; letter-spacing: .04em; text-transform: none; color: rgba(223, 231, 251, .42); }
.map-credit a { color: inherit; pointer-events: auto; }
.map-roads path { fill: none; stroke: #e6ecff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.map-roads { filter: drop-shadow(0 0 6px rgba(92, 134, 255, .95)); }
.map-hole path { fill: rgba(3, 11, 28, .6); stroke: var(--sky); stroke-width: 3.5; stroke-dasharray: 8 9; }
.map-label line, .map-pin line { stroke: rgba(223, 231, 251, .7); stroke-width: 2.5; }
.map-label text { font: 500 20px var(--mono); letter-spacing: 3px; fill: rgba(223, 231, 251, .8); }
.map-pin text { font: 800 30px var(--display); font-stretch: 118%; letter-spacing: 1px; fill: #fff; }
.map-pin text.sub { font: 500 18px var(--mono); letter-spacing: 3px; fill: var(--sky); }
.map-pin .core { fill: #fff; stroke: var(--blue); stroke-width: 6; }
.map-pin .ring { fill: none; stroke: var(--blue-2); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; animation: pin-ping 2.6s var(--ease) infinite; }
.map-pin .ring.r2 { animation-delay: 1.3s; }
@keyframes pin-ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(3.6); opacity: 0; } }
.no-motion .map-pin .ring { animation: none; opacity: .5; }
.hero-bar { position: relative; margin-top: clamp(40px, 6vh, 72px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: rgba(3, 11, 28, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero-bar > div { padding: 22px var(--gutter) 26px; border-left: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.hero-bar > div:first-of-type { border-left: 0; }
.hero-bar b { display: block; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.hero-bar .scroll-cue { display: flex; align-items: center; justify-content: space-between; color: #fff; text-decoration: none; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.scroll-cue i { width: 1px; height: 38px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }
@media (max-width: 980px) {
  .hero-bar { grid-template-columns: 1fr 1fr; }
  .hero-bar > div:nth-of-type(3) { border-left: 0; }
  .hero-bar > div:nth-of-type(n+3) { border-top: 1px solid var(--line); }
  .map-credit { display: none; }
}
@media (max-width: 1100px) {
  /* the copy spans the width here, so keep the pin and drop the map captions */
  .map-label, .map-pin line, .map-pin text { display: none; }
}
@media (max-width: 760px) {
  /* bring the office into frame and darken evenly so copy stays readable over the whole width */
  .map-pos { transform: translate(-66%, -50%); }
  .hero-fade { background: linear-gradient(180deg, rgba(3, 11, 28, .82) 0%, rgba(3, 11, 28, .72) 45%, rgba(3, 11, 28, .9) 80%, rgba(3, 11, 28, .97) 100%); }
}

/* live status dot */
.dot { display: inline-block; width: 8px; height: 8px; background: var(--ok); margin-right: 8px; position: relative; vertical-align: 1px; }
.dot::after { content: ""; position: absolute; inset: 0; background: var(--ok); animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.2); opacity: 0; } }
.no-motion .dot::after { animation: none; }

/* curtain: the section after the hero slides over it */
.curtain { position: relative; z-index: 2; box-shadow: 0 -40px 80px rgba(3, 11, 28, .35); }

/* ---------- statement with light sweep ---------- */
.statement { padding-block: clamp(90px, 13vw, 200px); }
.sweep {
  font-family: var(--display); font-stretch: 112%; font-weight: 700; letter-spacing: -0.03em; line-height: 1.04;
  font-size: clamp(32px, 5vw, 80px); margin: 0; max-width: 19ch; color: var(--ink);
}
.sweep .swi { transition: color .3s; }
.sweep .swi.lit { color: var(--blue); }
.statement-foot { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
@media (max-width: 760px) { .statement-foot { grid-template-columns: 1fr; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: clamp(28px, 3vw, 44px) clamp(18px, 2vw, 32px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--display); font-stretch: 120%; font-weight: 800; font-size: clamp(50px, 6.4vw, 108px); line-height: .9; letter-spacing: -0.05em; color: var(--ink); white-space: nowrap; }
.stat b sup { font-size: .45em; color: var(--blue); vertical-align: top; position: relative; top: .15em; margin-left: 2px; }
.dark .stat b sup { color: var(--blue-2); }
.stat > span { display: block; margin-top: 14px; font-size: 14px; color: var(--muted); max-width: 22ch; }
.stat > span strong { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(18px, 2.4vw, 32px); user-select: none; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-track span { flex: none; font-family: var(--display); font-stretch: 120%; font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(30px, 4.4vw, 70px); line-height: 1; padding-right: .7em; display: inline-flex; align-items: center; gap: .7em; white-space: nowrap; }
.marquee-track span::after { content: ""; width: .32em; height: .32em; background: var(--blue); }
.marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.dark .marquee-track span:nth-child(even) { -webkit-text-stroke-color: var(--sky); }
html:not(.has-motion) .marquee-track { animation: marquee 40s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- work: horizontal pinned track ---------- */
.work-sec { overflow: hidden; }
.htrack { display: flex; gap: 0; width: max-content; border-left: 1px solid var(--line); }
.hpanel { width: min(76vw, 1100px); flex: none; border-right: 1px solid var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; text-decoration: none; position: relative; background: var(--navy-900); }
.hpanel .media { position: relative; height: clamp(240px, 54vh, 620px); overflow: hidden; background: var(--navy-800); }
.hpin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.hpanel .media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: scale(1.02); transition: transform 1.2s var(--ease); }
.hpanel:hover .media img { transform: scale(1.07); }
.hpanel .media::after { content: ""; position: absolute; inset: 0; background: var(--c); mix-blend-mode: multiply; opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.hpanel:hover .media::after { opacity: .35; }
.hpanel .num { position: absolute; top: 0; left: 0; z-index: 2; background: var(--c); color: #fff; font-family: var(--mono); font-size: 13px; padding: 10px 16px; letter-spacing: .1em; }
.hpanel .live { position: absolute; top: 0; right: 0; z-index: 2; background: var(--navy-950); color: #fff; font-family: var(--mono); font-size: 11px; padding: 10px 14px; letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; }
.hpanel .body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 40px; padding: clamp(24px, 2.6vw, 40px); padding-right: 88px; align-items: start; }
.hpanel .kind { grid-column: 1 / -1; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--c); filter: brightness(1.35); }
.hpanel h3 { font-size: clamp(30px, 3.4vw, 56px); color: #fff; }
.hpanel p { color: var(--ink-2); margin: 0; font-size: 16px; }
.hpanel .go { position: absolute; right: 0; bottom: 0; width: 64px; height: 64px; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 22px; transition: width .6s var(--ease); }
.hpanel:hover .go { width: 120px; }
/* logo wall inside a panel: full-colour marks on white cells */
.hpanel .media.logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--navy-950); }
.hpanel .media.logos span { background: #fff; display: grid; place-items: center; padding: clamp(18px, 3vw, 48px); }
.hpanel .media.logos img { width: auto; height: auto; max-width: 100%; max-height: 42%; object-fit: contain; transform: none; transition: transform 1.2s var(--ease), filter .6s; }
.hpanel:hover .media.logos img { transform: scale(1.06); }
.hpanel .media.logos span.ink, .logo-cell.ink { background: #0a0a0a; }
.hend { width: min(52vw, 640px); flex: none; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: clamp(28px, 4vw, 72px); border-right: 1px solid var(--line); border-block: 1px solid var(--line); }
.hend h3 { font-size: clamp(34px, 4vw, 64px); color: #fff; }
.hprogress { margin-top: 28px; height: 2px; background: var(--line); position: relative; }
.hprogress i { position: absolute; inset: 0; background: var(--blue-2); transform: scaleX(0); transform-origin: left; }
@media (max-width: 980px) {
  .htrack { flex-direction: column; width: auto; border-left: 0; padding-inline: var(--gutter) !important; }
  .hpanel, .hend { width: auto; border-left: 1px solid var(--line); }
  .hpanel + .hpanel, .hend { border-top: 0; }
  .hpanel .body { grid-template-columns: 1fr; }
  .hpanel .media { height: auto; aspect-ratio: 16 / 10; }
  .hpin { min-height: 0; display: block; }
  .hprogress { display: none; }
}
.no-motion .hpanel .media { height: auto; aspect-ratio: 16 / 10; }
.no-motion .hpin { min-height: 0; display: block; }
.no-motion .htrack { flex-direction: column; width: auto; border-left: 0; padding-inline: var(--gutter) !important; }
.no-motion .hpanel, .no-motion .hend { width: auto; border-left: 1px solid var(--line); }
.no-motion .hpanel + .hpanel, .no-motion .hend { border-top: 0; }
.no-motion .hprogress { display: none; }

/* ---------- pillars (capabilities, values) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pillar { padding: clamp(28px, 3vw, 48px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; isolation: isolate; text-decoration: none; transition: color .6s var(--ease); }
.pillar::before { content: ""; position: absolute; inset: 0; background: var(--navy-900); transform: translateY(101%); transition: transform .7s var(--ease); z-index: -1; }
.pillar:hover { color: #fff; }
.pillar:hover::before { transform: none; }
.pillar:hover p, .pillar:hover li { color: var(--sky); }
.pillar .n { font-family: var(--display); font-stretch: 120%; font-weight: 800; font-size: clamp(56px, 6vw, 96px); line-height: .85; color: var(--blue); letter-spacing: -0.05em; }
.pillar h3 { font-size: clamp(24px, 2.2vw, 34px); }
.pillar p { color: var(--ink-2); margin: 0; transition: color .6s; }
.pillar ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pillar li { padding-left: 20px; position: relative; color: var(--ink-2); font-size: 15px; transition: color .6s; }
.pillar li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--blue); }
.pillar.wide { grid-column: span 2; }
.pillar.go-cell { background: var(--blue); color: #fff; justify-content: space-between; }
.pillar.go-cell::before { background: var(--navy-950); }
.pillar.go-cell p { color: rgba(255,255,255,.82); }
.pillar.go-cell .n { color: #fff; transition: transform .7s var(--ease); }
.pillar.go-cell:hover .n { transform: translateX(12px); }
.dark .pillar::before { background: var(--blue); }
.dark .pillar:hover p, .dark .pillar:hover li { color: rgba(255,255,255,.88); }
.dark .pillar .n { color: var(--blue-2); transition: color .6s; }
.dark .pillar:hover .n, .dark .pillar:hover li::before { color: #fff; background-color: transparent; }
.dark .pillar li::before { background: var(--blue-2); }
.dark .pillar:hover li::before { background: #fff; }
@media (max-width: 960px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .pillars { grid-template-columns: 1fr; } .pillar.wide { grid-column: auto; } }

/* ---------- services (detailed rows) ---------- */
.svc-list { border-top: 2px solid var(--line-strong); counter-reset: svc; }
.svc { display: grid; grid-template-columns: minmax(0, .55fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px clamp(28px, 4vw, 64px); padding: clamp(32px, 4vw, 64px) 0; border-bottom: 1px solid var(--line); position: relative; align-items: start; }
.svc::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.svc:hover::after { transform: scaleX(1); }
.svc .big { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: clamp(72px, 10vw, 170px); line-height: .78; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px var(--ink); position: relative; transition: color .6s var(--ease); }
.svc:hover .big { color: var(--blue); -webkit-text-stroke-color: var(--blue); }
.svc .kind { display: block; font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.svc h3 { font-size: clamp(28px, 3vw, 48px); margin-bottom: 18px; }
.svc p { color: var(--ink-2); margin: 0; }
.checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.checks li { padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 19px; width: 14px; height: 8px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
@media (max-width: 900px) { .svc { grid-template-columns: 1fr; } .svc .big { font-size: 80px; } }

/* ---------- process steps with a drawn rail ---------- */
.steps-wrap { position: relative; }
.steps-rail { height: 2px; background: var(--line); position: relative; margin-bottom: -1px; }
.steps-rail i { position: absolute; inset: 0; background: var(--blue-2); transform: scaleX(0); transform-origin: left; }
html:not(.has-motion) .steps-rail i { transform: none; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--line); }
.step { padding: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 36px) clamp(36px, 4vw, 56px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.step::before { content: ""; position: absolute; top: -6px; left: clamp(20px, 2.4vw, 36px); width: 10px; height: 10px; background: var(--blue-2); }
.step .n { display: block; font-family: var(--display); font-stretch: 120%; font-weight: 800; font-size: clamp(48px, 5vw, 80px); line-height: .9; letter-spacing: -0.05em; color: var(--blue-2); margin: 18px 0 22px; }
.step h3 { font-size: clamp(22px, 2vw, 30px); margin-bottom: 12px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- photo band ---------- */
.photo-band { position: relative; height: clamp(380px, 80vh, 820px); overflow: hidden; padding: 0; background: var(--navy-950); display: flex; align-items: flex-end; }
.photo-band > img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; }
.photo-band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(3,11,28,.2), rgba(3,11,28,.1) 45%, rgba(3,11,28,.86)); }
.photo-band .wrap { position: relative; z-index: 2; padding-bottom: clamp(32px, 6vh, 72px); color: #fff; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.photo-band h2 { font-size: clamp(38px, 5.6vw, 96px); line-height: .92; letter-spacing: -0.045em; text-transform: uppercase; }
.photo-band p { color: rgba(255,255,255,.82); margin: 0; }
.credit { display: block; margin-top: 14px; font: 400 11px var(--mono); letter-spacing: .04em; color: rgba(255,255,255,.55); }
.credit a { color: inherit; }
@media (max-width: 860px) { .photo-band .wrap { grid-template-columns: 1fr; } }

/* ---------- quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.quote { margin: 0; padding: clamp(28px, 3.4vw, 56px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 36px; position: relative; }
.quote::before { content: "“"; font-family: var(--display); font-weight: 800; font-size: 120px; line-height: .6; color: var(--c); display: block; height: 44px; }
.quote p { font-family: var(--display); font-stretch: 105%; font-weight: 600; font-size: clamp(20px, 1.9vw, 28px); line-height: 1.3; letter-spacing: -0.015em; margin: 0; }
.quote footer { font-size: 14px; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.quote footer::before { content: ""; width: 28px; height: 2px; background: var(--c); }
.quote footer b { color: var(--ink); font-weight: 600; }
.quotes.solo { grid-template-columns: 1fr; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- framed screenshot ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.shot { margin: 0; border: 1px solid var(--line); background: var(--white); overflow: hidden; display: block; text-decoration: none; }
.dark .shot { background: var(--navy-850); }
.shot .bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.shot .bar i { width: 9px; height: 9px; background: var(--line); flex: none; }
.shot .bar i:first-child { background: var(--c); }
.shot .bar span { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot .bar em { margin-left: auto; font: normal 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--c); white-space: nowrap; }
.shot button { all: unset; cursor: zoom-in; display: block; width: 100%; overflow: hidden; }
.shot img { width: 100%; transition: transform 1.2s var(--ease); }
.shot:hover img { transform: scale(1.03); }
.shot figcaption { padding: 16px 18px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.shot iframe { display: block; width: 100%; height: clamp(280px, 40vw, 460px); border: 0; filter: grayscale(.4) contrast(1.05); }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 5px 11px; border: 1px solid var(--line); color: var(--ink-2); transition: background .3s, color .3s, border-color .3s; }
.chip:hover { background: var(--c); color: #fff; border-color: var(--c); }

/* ---------- briefs (insights cards) ---------- */
.briefs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.brief { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 2.8vw, 44px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; position: relative; isolation: isolate; overflow: hidden; min-height: 340px; transition: color .5s var(--ease); }
.brief::before { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); z-index: -1; }
.brief:hover { color: #fff; }
.brief:hover::before { transform: none; }
.brief:hover p, .brief:hover .tag, .brief:hover .meta { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.3); }
.brief .tag { font: 500 12px var(--mono); color: var(--blue); letter-spacing: .12em; text-transform: uppercase; transition: color .5s; }
.dark .brief .tag { color: var(--blue-2); }
.brief h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.05; }
.brief p { color: var(--ink-2); margin: 0; font-size: 15px; transition: color .5s; }
.brief .meta { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: color .5s, border-color .5s; }
.brief::after { content: "↗"; position: absolute; right: 24px; top: 20px; font-size: 22px; transition: transform .5s var(--ease); }
.brief:hover::after { transform: translate(4px, -4px); }
@media (max-width: 960px) { .briefs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .briefs { grid-template-columns: 1fr; } .brief { min-height: 0; } }

/* ---------- case index ---------- */
.filters { display: flex; flex-wrap: wrap; margin-top: clamp(36px, 5vw, 64px); }
.filters button { all: unset; cursor: pointer; padding: 14px 20px; border: 1px solid var(--line); margin: 0 -1px -1px 0; font: 600 12px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); position: relative; overflow: hidden; isolation: isolate; transition: color .4s; }
.filters button::before { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); z-index: -1; }
.filters button:hover, .filters button[aria-pressed="true"] { color: #fff; }
.filters button[aria-pressed="true"]::before { transform: scaleY(1); }
.filters button:focus-visible { outline: 2px solid var(--blue-2); outline-offset: -2px; }
.filters button sup { font: 500 10px var(--mono); margin-left: 6px; opacity: .7; }

.cases { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.case-card { display: flex; flex-direction: column; text-decoration: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; background: var(--paper); }
.case-card[hidden] { display: none; }
.logo-cell { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; padding: 12%; }
.logo-cell img { position: absolute; inset: 16% 14%; width: 72%; height: 68%; max-width: none; object-fit: contain; transition: transform 1s var(--ease); }
.logo-cell::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.case-card:hover .logo-cell img { transform: scale(1.08); }
.case-card:hover .logo-cell::after { transform: scaleX(1); }
.case-card .live { position: absolute; top: 0; right: 0; z-index: 1; background: var(--navy-950); color: #fff; font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 8px 10px; display: flex; align-items: center; }
.case-card .bd { padding: clamp(20px, 2vw, 28px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case-card .tag { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.case-card h3 { font-size: clamp(20px, 1.7vw, 26px); }
.case-card p { margin: 0; font-size: 15px; color: var(--ink-2); }
.case-card .more { margin-top: auto; padding-top: 12px; font: 600 12px var(--body); letter-spacing: .1em; text-transform: uppercase; display: flex; justify-content: space-between; }
.case-card .more::after { content: "↓"; transition: transform .5s var(--ease); }
.case-card:hover .more::after { transform: translateY(4px); }
@media (max-width: 1100px) { .cases { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .cases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .cases { grid-template-columns: 1fr; } }

/* ---------- case study detail ---------- */
.cs { padding-block: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line); scroll-margin-top: 0; }
.cs-head { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-bottom: clamp(36px, 4.6vw, 64px); }
.cs-head .logo-cell { border: 1px solid var(--line); }
.cs-head .logo-cell::after { transform: scaleX(1); }
.cs-head .num { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c); display: block; margin-bottom: 16px; }
.cs-head h2 { font-size: clamp(36px, 5vw, 80px); line-height: .92; letter-spacing: -0.04em; margin-bottom: 18px; }
.cs-head .where { font-size: 15px; color: var(--muted); margin: 0 0 18px; }
.cs-head .where a { color: var(--ink); font-weight: 600; text-decoration-color: var(--c); text-underline-offset: 4px; }
.cs .shot { margin-bottom: clamp(36px, 4.6vw, 64px); }
.cs .shot img { aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 0; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.trio > div { padding: clamp(24px, 3vw, 44px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trio h3 { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c); margin-bottom: 18px; display: flex; gap: 12px; align-items: center; }
.trio h3 i { font-style: normal; color: var(--muted); }
.trio p { margin: 0; color: var(--ink-2); }
.trio > div:last-child p { color: var(--ink); font-weight: 500; }
.cs .quotes { margin-top: -1px; }
@media (max-width: 860px) { .cs-head { grid-template-columns: 1fr; } .cs-head .logo-cell { max-width: 340px; } .trio { grid-template-columns: 1fr; } }

/* ---------- contact page ---------- */
.methods { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.method { display: flex; flex-direction: column; gap: 10px; padding: clamp(26px, 3vw, 48px); min-height: 260px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; position: relative; overflow: hidden; isolation: isolate; transition: color .5s var(--ease); }
.method::before { content: ""; position: absolute; inset: 0; background: var(--c); transform: translateY(101%); transition: transform .7s var(--ease); z-index: -1; }
.method:hover { color: #fff; }
.method:hover::before { transform: none; }
.method small { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c); transition: color .5s; }
.method:hover small, .method:hover p { color: rgba(255,255,255,.85); }
.method b { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(24px, 2.4vw, 38px); letter-spacing: -0.03em; line-height: 1.05; margin-top: auto; word-break: break-word; }
.method b.sm { font-size: clamp(20px, 1.75vw, 28px); word-break: normal; overflow-wrap: anywhere; }
.method p { margin: 0; color: var(--ink-2); font-size: 15px; transition: color .5s; }
.method::after { content: "↗"; position: absolute; right: 26px; top: 22px; font-size: 24px; transition: transform .5s var(--ease); }
.method:hover::after { transform: translate(4px, -4px); }
@media (max-width: 860px) { .methods { grid-template-columns: 1fr; } .method { min-height: 200px; } }

.form { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.field { display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.field.full { grid-column: 1 / -1; }
.field label { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 18px 22px 0; }
.field input, .field textarea { all: unset; box-sizing: border-box; width: 100%; padding: 8px 22px 20px; font: 400 17px var(--body); color: var(--ink); }
.field textarea { min-height: 170px; resize: vertical; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: stretch; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.form-foot .btn { border: 0; min-height: 72px; }
.form-foot p { margin: 0; padding: 16px 22px; font-size: 14px; color: var(--muted); flex: 1 1 260px; align-self: center; }
.form-msg { display: none; grid-column: 1 / -1; padding: 16px 22px; font-size: 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.form-msg.show { display: block; }
.form-msg.error { background: #fde8e8; color: #8b1a1a; }
.form-msg.ok { background: #e3f6ec; color: #11603b; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr) 48px; gap: 16px; align-items: center; padding: clamp(20px, 2.4vw, 32px) 0; font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: clamp(20px, 2vw, 30px); letter-spacing: -0.02em; line-height: 1.15; transition: color .4s; }
.faq-q:hover { color: var(--blue-2); }
.faq-q:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.faq-q small { font: 500 12px var(--mono); letter-spacing: .1em; color: var(--muted); }
.faq-q i { width: 48px; height: 48px; border: 1px solid var(--line); position: relative; transition: background .4s, border-color .4s; }
.faq-q i::before, .faq-q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor; translate: -50% -50%; transition: transform .5s var(--ease); }
.faq-q i::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] i { background: var(--blue); border-color: var(--blue); color: #fff; }
.faq-q[aria-expanded="true"] i::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 64px clamp(22px, 2.4vw, 32px) 72px; color: var(--ink-2); max-width: 78ch; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
@media (max-width: 640px) { .faq-q { grid-template-columns: 36px minmax(0, 1fr) 40px; gap: 10px; } .faq-q i { width: 40px; height: 40px; } .faq-a p { padding: 0 0 22px 46px; } }

/* ---------- article + legal ---------- */
.article { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.article aside { position: sticky; top: calc(var(--head-h) + 32px); border-top: 2px solid var(--line-strong); }
.article aside h4 { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 16px 0 10px; }
.article aside a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 15px; color: var(--ink-2); transition: color .3s, padding .4s var(--ease); }
.article aside a:hover { color: var(--blue); padding-left: 8px; }
@media (max-width: 900px) { .article { grid-template-columns: 1fr; } .article aside { position: static; } }

.prose { max-width: 70ch; color: var(--ink-2); font-size: 18px; line-height: 1.7; }
.prose > .lede { color: var(--ink); font-size: clamp(21px, 1.9vw, 27px); line-height: 1.45; margin-bottom: 1.4em; font-family: var(--display); font-stretch: 105%; font-weight: 600; letter-spacing: -0.015em; }
.prose h2 { color: var(--ink); font-size: clamp(26px, 2.6vw, 38px); margin: 1.6em 0 .55em; scroll-margin-top: calc(var(--head-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--ink); font-size: 24px; margin: 1.8em 0 .5em; }
.prose ul { padding: 0; list-style: none; display: grid; gap: 12px; margin: 0 0 1em; }
.prose li { padding-left: 22px; position: relative; }
.prose li::before { content: ""; position: absolute; left: 0; top: .66em; width: 9px; height: 9px; background: var(--c); }
.prose strong { color: var(--ink); }
.prose a { color: var(--blue); }

.callout { border: 1px solid var(--line); border-left: 6px solid var(--c); padding: 24px 28px; color: var(--ink-2); font-size: 16px; background: var(--white); margin-bottom: 2em; }
.callout b { color: var(--ink); }

.pager { display: flex; flex-wrap: wrap; }
.pager .btn { flex: 1 1 300px; min-height: 104px; font-size: 14px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; text-transform: none; letter-spacing: 0; padding-block: 18px; }
.pager .btn::after { position: absolute; right: 26px; top: 50%; translate: 0 -50%; }
.pager .btn small { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.pager .btn b { font-family: var(--display); font-stretch: 108%; font-size: clamp(18px, 1.7vw, 24px); letter-spacing: -0.02em; padding-right: 40px; }
.pager .btn + .btn { margin-left: -1px; }
@media (max-width: 660px) { .pager .btn + .btn { margin-left: 0; margin-top: -1px; } }

/* ---------- page hero (inner pages) ---------- */
.case-hero { background: var(--navy-950); color: #f1f4fb; padding-top: calc(var(--head-h) + clamp(56px, 9vh, 120px)); padding-bottom: 0; overflow: hidden;
  --ink: #f1f4fb; --ink-2: #b5c0d8; --muted: #7d8aa8; --line: rgba(255,255,255,.12); --line-strong: rgba(255,255,255,.85); }
.case-hero::before { content: ""; position: absolute; width: 60vmax; height: 60vmax; right: -16vmax; top: -24vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%); filter: blur(20px); pointer-events: none; z-index: 0; }
.case-hero { isolation: isolate; }
.case-hero::before { z-index: -1; animation: atmo-drift 26s ease-in-out infinite alternate; }
.no-motion .case-hero::before { animation: none; }
.case-hero .wrap { position: relative; z-index: 1; }
.case-hero .eyebrow { color: var(--blue-2); }
.case-hero[style*="--c"] .eyebrow { color: var(--c); filter: brightness(1.3); }
.case-hero h1 { color: #fff; max-width: 17ch; }
.case-hero .lede { color: #b5c0d8; margin-top: clamp(24px, 3vw, 40px); }
.case-hero .btns { margin-top: 32px; }
.case-hero.short { padding-bottom: clamp(56px, 7vw, 100px); }
.crumb { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #7d8aa8; margin-bottom: 40px; }
.crumb a { color: #b5c0d8; text-decoration: none; }
.crumb a:hover { color: #fff; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); margin-inline: calc(var(--gutter) * -1); }
.facts div { padding: 24px var(--gutter); border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts span { display: block; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #7d8aa8; margin-bottom: 8px; }
.facts b { font-weight: 600; font-size: 16px; color: #fff; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(3) { border-left: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- 404 ---------- */
.err { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--head-h); background: var(--navy-950); overflow: hidden; }
.err .glow { position: absolute; z-index: -1; width: 70vmax; height: 70vmax; left: -20vmax; bottom: -30vmax; background: radial-gradient(closest-side, rgba(42, 92, 255, .38), transparent 70%); filter: blur(20px); pointer-events: none; }
.err .code { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: clamp(140px, 30vw, 480px); line-height: .78; letter-spacing: -0.07em; color: transparent; -webkit-text-stroke: 2px var(--sky); margin: clamp(12px, 2vw, 28px) 0 clamp(24px, 4vw, 56px); }
.err .code span { color: var(--blue); -webkit-text-stroke: 0; }

/* ---------- contact CTA ---------- */
.contact { overflow: hidden; background: var(--navy-950); }
.contact .aurora { position: absolute; inset: -20%; z-index: -1; pointer-events: none; opacity: .75;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(42, 92, 255, .55), transparent 70%),
    radial-gradient(35% 45% at 80% 70%, rgba(92, 134, 255, .35), transparent 70%),
    radial-gradient(30% 40% at 60% 20%, rgba(19, 51, 111, .9), transparent 70%);
  filter: blur(30px); animation: aurora 18s ease-in-out infinite alternate; }
@keyframes aurora { 0% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(6%, -4%) rotate(8deg); } 100% { transform: translate(-6%, 5%) rotate(-6deg); } }
.no-motion .contact .aurora { animation: none; }
.contact .h-xl { max-width: 16ch; margin-bottom: clamp(24px, 3vw, 40px); }
.contact .lede { margin-bottom: clamp(36px, 5vw, 64px); }
.contact .big { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(28px, 5.4vw, 92px); letter-spacing: -0.04em; line-height: 1; text-decoration: none; display: inline-block; position: relative; word-break: break-word; color: #fff; }
.contact .big::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.1em; height: 4px; background: var(--blue-2); transform-origin: left; transition: transform .7s var(--ease); }
.contact .big:hover::after { transform: scaleX(.3); }
.contact-list { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.contact-list a { display: block; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; transition: background .4s; }
.contact-list a:hover { background: var(--blue); }
.contact-list span { display: block; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.contact-list a:hover span { color: rgba(255,255,255,.75); }
@media (max-width: 900px) { .contact-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .contact-list { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-foot { background: var(--navy-950); color: #b5c0d8; padding-top: clamp(48px, 6vw, 88px); overflow: hidden; border-top: 1px solid rgba(255,255,255,.1); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr 1fr; gap: 32px; padding-bottom: 48px; }
.foot-grid h4 { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #7d8aa8; margin-bottom: 16px; }
.foot-grid a { display: block; text-decoration: none; padding: 4px 0; color: #dfe6f5; }
.foot-grid a:hover { color: var(--blue-2); }
.foot-grid p { max-width: 36ch; margin-bottom: .6em; }
.foot-grid .motto { font-family: var(--display); font-stretch: 112%; font-weight: 700; color: #fff; font-size: 20px; letter-spacing: -0.02em; margin-top: 18px; }
.motion-toggle { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: #dfe6f5; padding: 4px 0; margin-top: 10px; }
.motion-toggle i { width: 34px; height: 16px; border: 1px solid #7d8aa8; position: relative; }
.motion-toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; background: #7d8aa8; transition: transform .4s var(--ease), background .4s; }
.motion-toggle[aria-pressed="true"] i::after { transform: translateX(18px); background: var(--blue-2); }
.wordmark { position: relative; font-family: var(--display); font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: -0.05em; line-height: .8; font-size: clamp(20px, 6vw, 92px); margin: 0 0 -0.04em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(168, 192, 255, .28); user-select: none; }
.wordmark .fill { position: absolute; inset: 0; color: var(--blue); -webkit-text-stroke: 0; clip-path: inset(0 100% 0 0); }
html:not(.has-motion) .wordmark .fill { clip-path: none; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #7d8aa8; }
.foot-base a { color: #b5c0d8; text-decoration: none; }
.foot-base a:hover { color: #fff; }
.foot-base nav { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- floating contact button ---------- */
.fab-wrap { position: fixed; right: clamp(14px, 2.4vw, 32px); bottom: clamp(14px, 2.4vw, 32px); z-index: 150; transition: transform 1s var(--ease), opacity .6s; opacity: 0; transform: translateY(140%); pointer-events: none; }
.fab-wrap.in { opacity: 1; transform: none; pointer-events: auto; }
.fab-wrap.in.away { transform: translateY(140%); opacity: 0; pointer-events: none; }
.fab {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative;
  display: flex; align-items: center; gap: 16px; height: 62px; padding: 0 22px 0 24px;
  background: var(--blue); color: #fff; font: 700 13px var(--body); letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 16px 40px -14px rgba(3, 11, 28, .55);
  transition: background .35s var(--ease);
}
.fab:hover, .fab[aria-expanded="true"] { background: var(--navy-800); }
.fab .ic { width: 22px; height: 22px; display: grid; place-items: center; font-size: 18px; transition: transform .5s var(--ease); }
.fab[aria-expanded="true"] .ic { transform: rotate(45deg); }
.fab-panel {
  position: absolute; right: 0; bottom: calc(100% + 10px); width: min(340px, calc(100vw - 28px));
  background: var(--navy-950); color: #fff; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 80px -20px rgba(3, 11, 28, .8);
  clip-path: inset(100% 0 0 0); visibility: hidden; transition: clip-path .6s var(--ease), visibility 0s .6s;
}
.fab-panel.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease), visibility 0s; }
.fab-panel header { padding: 20px 22px; border-bottom: 1px solid rgba(255,255,255,.12); }
.fab-panel header b { display: block; font-family: var(--display); font-stretch: 112%; font-size: 22px; letter-spacing: -0.02em; }
.fab-panel header span { font-size: 13px; color: #9fb0d4; }
.fab-panel a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 15px; transition: background .3s, padding .4s var(--ease); }
.fab-panel a:last-child { border-bottom: 0; }
.fab-panel a small { display: block; font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #7d8aa8; }
.fab-panel a:hover { background: var(--blue); padding-left: 28px; }
.fab-panel a:hover small { color: rgba(255,255,255,.75); }
@media (max-width: 520px) { .fab { height: 56px; padding: 0 16px; } .fab .label-long { display: none; } }

/* ---------- page transition + preloader ---------- */
.pt { position: fixed; inset: 0; z-index: 400; background: var(--navy-950); pointer-events: none; transform: scaleY(0); transform-origin: bottom; }
html.pt-in .pt { transform: scaleY(1); transform-origin: top; }

.preloader { position: fixed; inset: 0; z-index: 450; background: var(--navy-950); color: #fff; display: none; }
html.is-preloading .preloader { display: flex; }
.preloader .inner { margin-top: auto; width: 100%; padding: 0 var(--gutter) clamp(24px, 5vh, 56px); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.preloader .name { font-family: var(--display); font-stretch: 120%; font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 4vw, 56px); letter-spacing: -0.03em; line-height: .9; }
.preloader .name span { color: var(--blue-2); }
.preloader .name small { display: block; margin-top: 14px; font: 500 12px var(--mono); letter-spacing: .14em; color: #7d8aa8; }
.preloader .count { font-family: var(--display); font-stretch: 120%; font-weight: 800; font-size: clamp(80px, 16vw, 260px); line-height: .8; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.preloader .bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.preloader .name { min-width: 0; }
.preloader .name small { white-space: nowrap; }
.preloader .count { flex: none; white-space: nowrap; }
/* phones: stack the name over a counter sized to the screen, so "100" never runs off the edge */
@media (max-width: 640px) {
  .preloader .inner { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: clamp(20px, 4vh, 36px); padding-bottom: calc(clamp(28px, 6vh, 56px) + env(safe-area-inset-bottom)); }
  .preloader .name { font-size: clamp(26px, 8vw, 40px); }
  .preloader .count { font-size: min(36vw, 30vh); line-height: .78; margin-left: -.04em; }
}

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 500; background: rgba(3, 11, 28, .96); display: none; align-items: center; justify-content: center; padding: 72px 16px 24px; }
.lb.open { display: flex; }
.lb img { max-width: min(1500px, 100%); max-height: 100%; width: auto; }
.lb button { position: absolute; top: 0; right: 0; height: 64px; padding: 0 28px; background: var(--blue); color: #fff; border: 0; font: 600 13px var(--body); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }

/* ---------- reveal helpers ---------- */
[data-parallax] { will-change: transform; }

/* no flash before the intro animation, no jump on page arrival */
html.js:not(.ready) .hero-top, html.js:not(.ready) .hero-bar, html.js:not(.ready) .case-hero .wrap, html.js:not(.ready) .err .wrap { opacity: 0; }
html.pt-in::after { content: ""; position: fixed; inset: 0; z-index: 401; background: var(--navy-950); }

/* basic fallback reveal (no GSAP) */
.js:not(.has-motion) .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js:not(.has-motion) .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js:not(.has-motion) .rv { opacity: 1; transform: none; } }
