/* ═══════════════════════════════════════════════════════════
   ARCANE GLOBAL — cinematic dark
   red #D51F36 · ink #0a0a0b · bone #f5f5f7
   ═══════════════════════════════════════════════════════════ */

:root {
  --red: #d51f36;
  --red-dim: #8e1524;
  --ink: #0a0a0b;
  --ink-2: #101013;
  --ink-3: #17171b;
  --bone: #f5f5f7;
  --grey: #8a8a92;
  --line: rgba(245, 245, 247, 0.1);
  --display: "Clash Display", "Space Grotesk", sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --ease: cubic-bezier(0.65, 0.05, 0, 1);
  --pad: clamp(1.25rem, 4vw, 4rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--red); color: var(--bone); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--ink-3); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--red-dim); }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.mono {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ── film grain ─────────────────────────────────────────── */
/* the oversized, animated texture lives on a pseudo-element inside a
   clipped fixed wrapper, so it can never widen the mobile viewport */
.grain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  overflow: hidden;
}
.grain::before {
  content: ""; position: absolute; inset: -100px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-40px, 30px); }
  50% { transform: translate(30px, -50px); }
  75% { transform: translate(-30px, -20px); }
  100% { transform: translate(0, 0); }
}

/* ── preloader ──────────────────────────────────────────── */
.preloader {
  position: fixed; inset: 0; z-index: 300;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.preloader-inner { width: min(300px, 70vw); text-align: center; }
.preloader-logo {
  width: 170px; margin: 0 auto 2rem;
  opacity: 0; transform: translateY(14px);
  animation: pre-in 0.9s var(--ease) 0.15s forwards;
}
@keyframes pre-in { to { opacity: 1; transform: none; } }
.preloader-bar {
  height: 1px; background: var(--line); overflow: hidden;
}
.preloader-bar-fill {
  display: block; height: 100%; width: 0%;
  background: var(--red);
  transition: width 0.3s ease-out;
}
.preloader-count {
  margin-top: 0.9rem;
  font-size: 0.72rem; letter-spacing: 0.3em; color: var(--grey);
}

/* ── custom cursor ──────────────────────────────────────── */
.cursor, .cursor-ring { pointer-events: none; position: fixed; top: 0; left: 0; z-index: 250; }
.cursor {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(245, 245, 247, 0.35);
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
              background-color 0.35s, border-color 0.35s;
}
.cursor-ring span {
  font-size: 0.55rem; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0; transition: opacity 0.25s;
}
.cursor-ring.is-hover { width: 64px; height: 64px; border-color: var(--red); }
.cursor-ring.is-label {
  width: 84px; height: 84px;
  background: rgba(213, 31, 54, 0.9); border-color: transparent;
}
.cursor-ring.is-label span { opacity: 1; }
@media (hover: none), (max-width: 820px) { .cursor, .cursor-ring { display: none; } }

/* ── nav ────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  transition: transform 0.5s var(--ease);
}
/* scrolled backdrop lives on a pseudo-element so the nav itself never
   gains filter/backdrop-filter — that would become the containing block
   for the fixed fullscreen mobile menu and trap it inside the bar */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-110%); }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a {
  font-size: 0.8rem; font-weight: 400; letter-spacing: 0.06em;
  color: var(--grey); position: relative;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--bone); }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  border: 1px solid rgba(245, 245, 247, 0.25);
  padding: 0.55rem 1.2rem; border-radius: 99px;
  color: var(--bone) !important;
  overflow: hidden; position: relative;
}
.nav-cta span { position: relative; z-index: 1; }
.nav-cta::before {
  content: ""; position: absolute; inset: 0;
  background: var(--red);
  transform: translateY(101%); transition: transform 0.45s var(--ease);
}
.nav-cta:hover::before { transform: translateY(0); }
.nav-cta:hover { border-color: var(--red); }
.nav-burger { display: none; }

/* ── buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block; position: relative; overflow: hidden;
  padding: 0.95rem 2.1rem; border-radius: 99px;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.05em;
}
.btn span { position: relative; z-index: 1; transition: color 0.4s; }
.btn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  transform: translateY(101%); transition: transform 0.45s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn-solid { background: var(--red); color: var(--bone); }
.btn-solid::before { background: var(--bone); }
.btn-solid:hover span { color: var(--ink); }
.btn-ghost { border: 1px solid rgba(245, 245, 247, 0.3); color: var(--bone); }
.btn-ghost::before { background: var(--red); }

/* ── hero — pinned scroll assembly ──────────────────────── */
.hero { position: relative; height: 380vh; }
.hero-pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 95% at 50% 45%, transparent 48%, rgba(10, 10, 11, 0.6) 100%),
    linear-gradient(180deg, rgba(10, 10, 11, 0.35) 0%, transparent 28%, rgba(10, 10, 11, 0.45) 100%);
}
.hero-content {
  position: absolute; left: var(--pad); right: var(--pad);
  bottom: clamp(4.5rem, 11vh, 8rem);
  max-width: 1200px;
}
.hero-title {
  font-family: var(--display); font-weight: 600;
  /* the vh term keeps the 3-line block clear of the nav on short/wide screens */
  font-size: clamp(2.8rem, min(10vw, 11.5vh), 8.5rem);
  line-height: 0.98; letter-spacing: -0.02em;
  display: flex; flex-direction: column;
}
.hero-word { display: block; overflow: hidden; }
.hero-word > span { display: inline-block; will-change: transform; }
.hero-word i { font-style: normal; color: var(--red); }
.hero-sub {
  max-width: 34rem; margin-top: clamp(1.1rem, 2.2vh, 1.8rem);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem); color: #c9c9cf;
}
.hero-ctas { display: flex; gap: 1rem; margin-top: clamp(1.4rem, 2.8vh, 2.4rem); flex-wrap: wrap; }
.reveal-line { overflow: hidden; }
.reveal-line > span { display: inline-block; will-change: transform; }

.hero-foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 1.4rem;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line); padding-top: 1.1rem;
}
.hero-scrollcue {
  width: 1px; height: 44px; background: var(--line);
  position: relative; overflow: hidden;
}
.hero-scrollcue span {
  position: absolute; left: 0; top: 0; width: 100%; height: 45%;
  background: var(--red);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translateY(-110%); }
  60%, 100% { transform: translateY(240%); }
}
.hero-coord { font-size: 0.72rem; letter-spacing: 0.2em; color: var(--grey); }

/* fly-through stage captions */
.hero-stage {
  position: absolute; left: var(--pad);
  bottom: clamp(6rem, 14vh, 9rem);
  max-width: 26rem;
  opacity: 0; visibility: hidden;
}
.hero-stage .mono { color: var(--red); margin-bottom: 0.7rem; }
.hero-stage .mono::after {
  content: ""; display: inline-block; width: 26px; height: 1px;
  background: var(--red); vertical-align: middle; margin-left: 0.8rem;
}
.hero-stage p:last-child {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.4; color: #e4e4e8;
}

/* closing tagline moment */
.hero-final {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  opacity: 0; visibility: hidden;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.4rem, 6.5vw, 5.6rem);
  line-height: 1.05; letter-spacing: -0.02em;
}
.hero-final-word { display: block; overflow: hidden; }
.hero-final-word > span { display: inline-block; will-change: transform; }
.hero-final i { font-style: normal; color: var(--red); }

/* ── manifesto ──────────────────────────────────────────── */
.manifesto { padding: clamp(7rem, 16vh, 12rem) var(--pad); max-width: 1200px; margin: 0 auto; }
.manifesto-label { margin-bottom: 2.2rem; }
.manifesto-text {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 3.3rem);
  line-height: 1.22; letter-spacing: -0.01em;
}
.manifesto-text .w { opacity: 0.14; transition: opacity 0.3s linear; }
.manifesto-text .w.is-lit { opacity: 1; }
.manifesto-meta {
  display: flex; gap: clamp(2rem, 6vw, 5rem); margin-top: 4rem; flex-wrap: wrap;
}
.manifesto-meta strong {
  display: block; font-family: var(--display); font-weight: 600;
  font-size: 2rem; color: var(--red);
}
.manifesto-meta span { font-size: 0.8rem; color: var(--grey); letter-spacing: 0.05em; }

/* ── marquee ────────────────────────────────────────────── */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-block: 1px solid var(--line);
  padding: 1.1rem 0;
}
.marquee-track { display: inline-flex; will-change: transform; animation: marquee 26s linear infinite; }
.marquee-track span {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 245, 247, 0.28);
}
.marquee-track i { font-style: normal; color: var(--red); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── sections ───────────────────────────────────────────── */
.section-head { max-width: 1200px; margin: 0 auto 4rem; }
.section-label { margin-bottom: 1.6rem; }
.section-label::before {
  content: ""; display: inline-block; width: 26px; height: 1px;
  background: var(--red); vertical-align: middle; margin-right: 0.8rem;
}
.section-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.2rem, 5.4vw, 4.6rem);
  line-height: 1.04; letter-spacing: -0.02em;
}

/* split-text helpers */
[data-split] .sw { display: inline-block; overflow: hidden; vertical-align: top; }
[data-split] .sw > span { display: inline-block; will-change: transform; }

/* ── services ───────────────────────────────────────────── */
.services { padding: clamp(6rem, 14vh, 10rem) var(--pad); }
.svc-list { max-width: 1200px; margin: 0 auto; border-top: 1px solid var(--line); }
.svc-row { border-bottom: 1px solid var(--line); }
.svc-head {
  width: 100%; display: grid;
  grid-template-columns: 4rem 1fr 3rem;
  align-items: center; gap: 1rem;
  padding: 1.9rem 0; text-align: left;
  position: relative;
}
.svc-head::before {
  content: ""; position: absolute; inset: 0 -1.2rem;
  background: linear-gradient(90deg, rgba(213,31,54,0.09), transparent 70%);
  opacity: 0; transition: opacity 0.35s;
  pointer-events: none;
}
.svc-row:hover .svc-head::before, .svc-row.is-open .svc-head::before { opacity: 1; }
.svc-num { color: var(--red); }
.svc-name {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.3rem, 3vw, 2.4rem);
  letter-spacing: -0.01em;
  transition: transform 0.45s var(--ease), color 0.3s;
}
.svc-row:hover .svc-name, .svc-row.is-open .svc-name { transform: translateX(12px); }
.svc-plus { position: relative; width: 16px; height: 16px; justify-self: end; }
.svc-plus::before, .svc-plus::after {
  content: ""; position: absolute; background: var(--grey);
  transition: transform 0.45s var(--ease), background 0.3s;
}
.svc-plus::before { top: 50%; left: 0; width: 100%; height: 1px; }
.svc-plus::after { left: 50%; top: 0; height: 100%; width: 1px; }
.svc-row.is-open .svc-plus::after { transform: rotate(90deg); }
.svc-row.is-open .svc-plus::before, .svc-row.is-open .svc-plus::after { background: var(--red); }
.svc-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}
.svc-body-inner { overflow: hidden; padding-left: 4rem; }
.svc-row.is-open .svc-body { grid-template-rows: 1fr; }
.svc-body p { max-width: 40rem; color: #bdbdc4; font-size: 0.97rem; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.2rem 0 1.4rem; }
.svc-link {
  display: inline-block; margin-bottom: 2rem;
  color: var(--red); letter-spacing: 0.16em;
}
.svc-link i { font-style: normal; display: inline-block; transition: transform 0.35s var(--ease); }
.svc-link:hover i { transform: translateX(6px); }
.chapter-cta { margin-top: 2.2rem; }
.svc-tags span {
  border: 1px solid var(--line); border-radius: 99px;
  padding: 0.35rem 0.85rem;
  transition: border-color 0.3s, color 0.3s;
}
.svc-tags span:hover { border-color: var(--red); color: var(--bone); }
.svc-note { max-width: 1200px; margin: 3rem auto 0; }

/* ── chapters ───────────────────────────────────────────── */
.chapter { position: relative; }
.chapter-hero {
  position: relative; height: 100vh; height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.chapter-media {
  position: absolute; inset: 0;
  transform: scale(1.18);
  will-change: transform;
}
.chapter-video, .chapter-media video {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.9);
  background: var(--ink-2);
}
.chapter-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0.5) 0%, rgba(10,10,11,0.08) 40%, rgba(10,10,11,0.88) 100%);
}
.chapter-hero-text {
  position: relative; padding: 0 var(--pad) clamp(3rem, 9vh, 6rem);
  max-width: 1400px;
}
.chapter-label { margin-bottom: 1.4rem; color: #d5d5da; }
.chapter-label::before {
  content: ""; display: inline-block; width: 26px; height: 1px;
  background: var(--red); vertical-align: middle; margin-right: 0.8rem;
}
.chapter-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  line-height: 1.02; letter-spacing: -0.02em;
}

.chapter-body {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 6vw, 6rem);
  max-width: 1300px; margin: 0 auto;
  padding: clamp(5rem, 12vh, 9rem) var(--pad);
}
.chapter-sticky { position: relative; }
.stat-stack { position: sticky; top: 18vh; display: grid; gap: 2.6rem; }
.stat strong {
  display: block; font-family: var(--display); font-weight: 600;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  color: var(--red); line-height: 1;
}
.stat span { display: block; margin-top: 0.5rem; color: var(--grey); font-size: 0.85rem; letter-spacing: 0.04em; }
.chapter-lead {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 2.3rem);
  line-height: 1.3; letter-spacing: -0.01em;
  margin-bottom: 3rem;
}
.chapter-points li {
  display: flex; align-items: baseline; gap: 1.2rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--line);
  font-size: 1.02rem; color: #d8d8dd;
  transition: padding-left 0.4s var(--ease);
}
.chapter-points li:first-child { border-top: 1px solid var(--line); }
.chapter-points li:hover { padding-left: 0.8rem; }
.chapter-points .mono { color: var(--red); }

.chapter-lab {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  max-width: 1300px; margin: 0 auto;
  padding: 0 var(--pad) clamp(6rem, 14vh, 10rem);
  align-items: stretch;
}
.chapter-lab-single { grid-template-columns: 1fr; }
.lab-canvas-wrap {
  position: relative; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; min-height: 420px;
  background: radial-gradient(90% 90% at 50% 110%, rgba(213,31,54,0.08), transparent 60%), var(--ink-2);
}
#cityCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lab-hint {
  position: absolute; left: 1.2rem; bottom: 1rem; z-index: 2;
  color: var(--grey);
}
.lab-card {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
  transform-style: preserve-3d; will-change: transform;
  background: var(--ink-2);
  min-height: 420px;
}
.lab-card video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
/* no aspect-ratio here on purpose: combined with min-height it created an
   intrinsic ~700px min width that stretched every phone's layout viewport
   to ~767px ("tablet mode"). Height is controlled directly instead. */
.lab-card-wide { height: clamp(280px, 40vw, 520px); min-height: 0; min-width: 0; }
.lab-card figcaption {
  position: absolute; left: 1.2rem; bottom: 1rem; z-index: 2;
  color: #d5d5da;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}
.lab-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 55%, rgba(10,10,11,0.55));
}

/* ── work — floating parallax gallery ───────────────────── */
.work { padding: clamp(6rem, 14vh, 10rem) 0 clamp(5rem, 10vh, 8rem); overflow: hidden; }
.work .section-head { padding: 0 var(--pad); }
.work-strips { display: grid; gap: clamp(1.4rem, 3vw, 2.4rem); }
.work-strip {
  display: flex; align-items: center;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  width: max-content;
  padding-left: var(--pad);
  will-change: transform;
}
.work-card {
  position: relative; flex-shrink: 0;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
  width: clamp(190px, 22vw, 280px);
  aspect-ratio: 3 / 4;
  animation: floaty 7s ease-in-out infinite;
}
.work-card-sq { width: clamp(240px, 28vw, 360px); aspect-ratio: 1 / 1; }
.work-strip .work-card:nth-child(2n) { animation-delay: -2.3s; }
.work-strip .work-card:nth-child(3n) { animation-delay: -4.6s; }
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}
.work-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.work-card:hover img { transform: scale(1.06); }
.work-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 58%, rgba(10, 10, 11, 0.6));
}
.work-card figcaption {
  position: absolute; left: 1rem; bottom: 0.9rem; z-index: 2;
  color: var(--bone);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

/* ── logo chips (partners / clients / supported) ────────── */
.logo-chip {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: #ececef;
  border-radius: 12px;
  height: 76px; min-width: 150px;
  padding: 0.9rem 1.6rem;
  transition: translate 0.35s var(--ease), box-shadow 0.35s;
}
.logo-chip:hover { translate: 0 -4px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4); }
.logo-chip img { max-height: 44px; max-width: 170px; width: auto; object-fit: contain; }
.logo-chip-wide { height: 88px; padding: 1rem 1.8rem; }
.logo-chip-wide img { max-height: 54px; max-width: 250px; }

/* ── clients ────────────────────────────────────────────── */
.clients { padding: clamp(6rem, 14vh, 10rem) 0; overflow: hidden; }
.clients .section-head { padding: 0 var(--pad); margin-bottom: 3.4rem; }
.section-title em { font-style: normal; color: var(--red); }
.clients-rows { display: grid; gap: 1.1rem; }
.clients-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.clients-track {
  display: inline-flex; gap: 1.1rem;
  width: max-content;
  padding-right: 1.1rem;
  animation: clientsMarquee 55s linear infinite;
}
.clients-row-rev .clients-track { animation-direction: reverse; animation-duration: 64s; }
.clients-row:hover .clients-track { animation-play-state: paused; }
@keyframes clientsMarquee { to { transform: translateX(-50%); } }

/* ── supported / recognitions ───────────────────────────── */
.supported { margin-top: clamp(4.5rem, 10vh, 7.5rem); padding: 0 var(--pad); text-align: center; }
.supported-label { margin-bottom: 1.8rem; }
.supported-label::before, .supported-label::after {
  content: ""; display: inline-block; width: 26px; height: 1px;
  background: var(--red); vertical-align: middle; margin: 0 0.9rem;
}
.supported-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ── why ────────────────────────────────────────────────── */
.why { position: relative; overflow: hidden; }
.why-media { position: absolute; inset: 0; }
.why-media video {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.55);
}
.why-shade { position: absolute; inset: 0; background: rgba(10, 10, 11, 0.62); }
.why-inner {
  position: relative; max-width: 1200px; margin: 0 auto;
  padding: clamp(6rem, 14vh, 10rem) var(--pad);
}
.why-quote {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  line-height: 1.25; letter-spacing: -0.01em;
  max-width: 60rem;
}
.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
  margin-top: 4.5rem;
}
.why-cell { background: rgba(10, 10, 11, 0.82); padding: 2rem 1.6rem; }
.why-cell strong {
  display: block; font-family: var(--display); font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1;
  color: var(--bone); margin-bottom: 0.8rem;
}
.why-cell span { font-size: 0.82rem; color: var(--grey); line-height: 1.5; display: block; }
.why-partners-label { margin: 3.2rem 0 1.3rem; }
.why-partners-label::before {
  content: ""; display: inline-block; width: 26px; height: 1px;
  background: var(--red); vertical-align: middle; margin-right: 0.8rem;
}
.why-partners { display: flex; flex-wrap: wrap; gap: 1rem; }
.why-partners .logo-chip { height: 92px; min-width: 172px; }
.why-partners .logo-chip img { max-height: 58px; max-width: 200px; }

/* ── contact ────────────────────────────────────────────── */
.contact { position: relative; overflow: hidden; }
.contact-media { position: absolute; inset: 0; }
.contact-media video {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.8);
}
.contact-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(10,10,11,0.45) 45%, rgba(10,10,11,0.75) 100%);
}
.contact-inner {
  position: relative; max-width: 1200px; margin: 0 auto;
  padding: clamp(7rem, 16vh, 12rem) var(--pad) 2rem;
}
.contact-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(3rem, 8.5vw, 7.5rem);
  line-height: 1; letter-spacing: -0.02em;
}
.contact-mail {
  display: inline-block; margin-top: 2.6rem;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  position: relative;
}
.contact-mail::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; background: var(--red);
  transform: scaleX(0.35); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.contact-mail:hover::after { transform: scaleX(1); }
.contact-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem; margin-top: 5.5rem;
  padding-top: 3rem; border-top: 1px solid var(--line);
  max-width: 40rem;
}
.contact-h { margin-bottom: 0.9rem; color: var(--red); }
.contact-grid p { font-size: 0.95rem; color: #c9c9cf; }
.contact-grid a { transition: color 0.3s; }
.contact-grid a:hover { color: var(--red); }
.contact-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  margin-top: 5rem; padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.contact-logo { height: 26px; width: auto; opacity: 0.8; }
.backtop { transition: color 0.3s; }
.backtop:hover { color: var(--red); }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .chapter-body { grid-template-columns: 1fr; }
  .stat-stack { position: static; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
  .stat strong { font-size: 1.6rem; }
  .chapter-lab { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-logo, .nav-burger { position: relative; z-index: 2; }
  .nav-links {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100svh;
    z-index: 1;
    flex-direction: column; justify-content: center; gap: 2rem;
    background: #0c0c0e;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s;
  }
  .nav-links a { font-size: 1.4rem; }
  .nav.menu-open .nav-links { opacity: 1; pointer-events: auto; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 6px;
    padding: 0.6rem 0.2rem;
  }
  .nav-burger span {
    width: 26px; height: 2px; background: var(--bone);
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
    transition: transform 0.4s var(--ease);
  }
  .nav.menu-open .nav-burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.menu-open .nav-burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .svc-head { grid-template-columns: 2.6rem 1fr 2rem; }
  .svc-body-inner { padding-left: 2.6rem; }
  .lab-canvas-wrap, .lab-card { min-height: 320px; }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .stat-stack { grid-template-columns: 1fr; }
  .hero-ctas .btn { padding: 0.85rem 1.6rem; }
}

/* phones: long display headlines must never exceed the viewport */
@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.1rem, 10.5vw, 2.8rem); }
  .chapter-title { font-size: clamp(1.7rem, 8.6vw, 2.4rem); }
  .contact-title { font-size: clamp(2rem, 10vw, 2.8rem); }
  .section-title { font-size: clamp(1.7rem, 8.4vw, 2.2rem); }
  .page-title { font-size: clamp(1.8rem, 9vw, 2.5rem); }
  .manifesto-text { font-size: clamp(1.3rem, 6.4vw, 1.7rem); }
  .chapter-lead, .page-intro-statement { font-size: clamp(1.15rem, 5.6vw, 1.4rem); }
  .hero-final { font-size: clamp(1.7rem, 8.6vw, 2.3rem); }
  .contact-mail { font-size: clamp(1.05rem, 5.4vw, 1.3rem); }
}

/* note: the prefers-reduced-motion overrides were removed on purpose —
   several Android OEMs force that flag on (battery saver), which froze
   the whole site on mobile while desktop looked fine */

/* ═══════════════════════════════════════════════════════════
   SERVICE PAGES
   ═══════════════════════════════════════════════════════════ */

/* ── page hero ──────────────────────────────────────────── */
.page-hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.page-hero .hero-canvas,
.page-hero .page-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero .page-hero-media img,
.page-hero .page-hero-media video {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.7);
}
.page-hero .hero-shade { z-index: 1; }
.page-hero-inner {
  position: relative; z-index: 2;
  padding: 0 var(--pad);
  margin-bottom: clamp(5rem, 12vh, 8rem);
  max-width: 1200px;
}
.crumb { margin-bottom: 1.5rem; }
.crumb a { color: var(--grey); transition: color 0.3s; }
.crumb a:hover { color: var(--red); }
.crumb i { font-style: normal; color: var(--red); padding: 0 0.4rem; }
.page-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.6rem, min(7.5vw, 10.5vh), 6.8rem);
  line-height: 1; letter-spacing: -0.02em;
  display: flex; flex-direction: column;
}
.page-hero .hero-foot { z-index: 2; position: absolute; }

/* ── intro: statement + portrait image ──────────────────── */
.page-intro {
  display: grid; grid-template-columns: 7fr 5fr;
  gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
  max-width: 1300px; margin: 0 auto;
  padding: clamp(6rem, 14vh, 10rem) var(--pad);
}
.page-intro-statement {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.5rem, 2.9vw, 2.5rem);
  line-height: 1.28; letter-spacing: -0.01em;
}
.page-img {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--ink-2);
  aspect-ratio: 4 / 5;
}
.page-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.7s var(--ease);
}
.page-img:hover img { transform: scale(1.05); }
.page-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 60%, rgba(10, 10, 11, 0.5));
}
.page-img figcaption {
  position: absolute; left: 1rem; bottom: 0.9rem; z-index: 2;
  color: #d5d5da; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}
/* technical viewfinder brackets over the image */
.page-img .vf {
  position: absolute; inset: 0.9rem; z-index: 2; pointer-events: none;
  opacity: 0.85;
  transition: inset 0.45s var(--ease);
  background:
    linear-gradient(var(--red), var(--red)) left 0 top 0 / 20px 2px,
    linear-gradient(var(--red), var(--red)) left 0 top 0 / 2px 20px,
    linear-gradient(var(--red), var(--red)) right 0 top 0 / 20px 2px,
    linear-gradient(var(--red), var(--red)) right 0 top 0 / 2px 20px,
    linear-gradient(var(--red), var(--red)) left 0 bottom 0 / 20px 2px,
    linear-gradient(var(--red), var(--red)) left 0 bottom 0 / 2px 20px,
    linear-gradient(var(--red), var(--red)) right 0 bottom 0 / 20px 2px,
    linear-gradient(var(--red), var(--red)) right 0 bottom 0 / 2px 20px;
  background-repeat: no-repeat;
}
.page-img:hover .vf { inset: 0.5rem; }

/* ── sub-service rows ───────────────────────────────────── */
.subsvc {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 9vh, 7rem) var(--pad) clamp(5rem, 11vh, 8rem);
}
/* huge outlined word drifting behind the section */
.ghost-word {
  position: absolute; top: -0.08em; right: -3%;
  z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(7rem, 24vw, 22rem);
  line-height: 1; letter-spacing: -0.02em; text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 245, 247, 0.07);
  will-change: transform;
}
.subsvc > *:not(.ghost-word) { position: relative; z-index: 1; }
.subsvc-list { max-width: 1200px; margin: 0 auto; border-top: 1px solid var(--line); }
.subsvc-row {
  display: grid; grid-template-columns: 4rem 1fr 1.2fr;
  gap: clamp(1rem, 3vw, 3rem);
  padding: 2.2rem 0; border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease);
  position: relative;
}
.subsvc-row::before {
  content: ""; position: absolute; inset: 0 -1.2rem;
  background: linear-gradient(90deg, rgba(213, 31, 54, 0.07), transparent 65%);
  opacity: 0; transition: opacity 0.35s; pointer-events: none;
}
.subsvc-row:hover::before { opacity: 1; }
.subsvc-row:hover { padding-left: 0.7rem; }
.subsvc-num { color: var(--red); }
.subsvc-row h3 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1.15; letter-spacing: -0.01em;
}
.subsvc-row p { color: #bdbdc4; font-size: 0.97rem; max-width: 34rem; }
.subsvc-row .svc-tags { margin: 1rem 0 0; }

/* ── media bands (image or video) ───────────────────────── */
.band {
  position: relative; overflow: hidden;
  height: clamp(320px, 62vh, 640px);
  margin: 0 var(--pad);
  border-radius: 14px; border: 1px solid var(--line);
}
.band > img, .band > video {
  position: absolute; left: 0; top: -12%; width: 100%; height: 124%;
  object-fit: cover; will-change: transform;
}
.band-caption {
  position: absolute; left: 1.4rem; bottom: 1.2rem; z-index: 2;
  color: #d5d5da; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}
.band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 11, 0.55));
}

/* ── process steps ──────────────────────────────────────── */
.steps { padding: clamp(6rem, 13vh, 9rem) var(--pad); }
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  max-width: 1200px; margin: 0 auto;
}
.step { background: var(--ink); padding: 2rem 1.6rem 2.4rem; position: relative; }
.step strong {
  display: block; font-family: var(--display); font-weight: 600;
  font-size: 2.6rem; color: transparent;
  -webkit-text-stroke: 1px rgba(245, 245, 247, 0.4);
  margin-bottom: 1rem; line-height: 1;
  transition: color 0.4s, -webkit-text-stroke-color 0.4s;
}
.step:hover strong { color: var(--red); -webkit-text-stroke-color: var(--red); }
.step h3 { font-family: var(--display); font-weight: 500; font-size: 1.15rem; margin-bottom: 0.6rem; }
.step p { color: var(--grey); font-size: 0.88rem; line-height: 1.55; }

/* ── page stats ─────────────────────────────────────────── */
.page-stats {
  display: flex; flex-wrap: wrap; gap: clamp(2rem, 6vw, 5rem);
  max-width: 1200px; margin: 0 auto;
  padding: 0 var(--pad) clamp(5rem, 11vh, 8rem);
}
.page-stats .stat strong { font-size: clamp(2rem, 4vw, 3.4rem); }

/* ── next service ───────────────────────────────────────── */
.next-svc { border-block: 1px solid var(--line); }
.next-svc a {
  display: block; padding: clamp(3rem, 8vh, 5rem) var(--pad);
  position: relative; overflow: hidden;
}
.next-svc a::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(213, 31, 54, 0.12), transparent 70%);
  transform: translateX(-101%); transition: transform 0.5s var(--ease);
}
.next-svc a:hover::before { transform: translateX(0); }
.next-svc .mono { margin-bottom: 0.9rem; display: block; }
.next-svc strong {
  position: relative;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  letter-spacing: -0.02em; line-height: 1.05;
  display: inline-block; transition: transform 0.5s var(--ease);
}
.next-svc a:hover strong { transform: translateX(14px); }
.next-svc i { font-style: normal; color: var(--red); }

/* ── CTA band ───────────────────────────────────────────── */
.cta-band {
  text-align: center;
  padding: clamp(6rem, 14vh, 10rem) var(--pad);
}
.cta-band h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 2.2rem;
}
.cta-band h2 i { font-style: normal; color: var(--red); }

/* ── enquiry form ───────────────────────────────────────── */
.enquiry {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  max-width: 1300px; margin: 0 auto;
  padding: clamp(4rem, 9vh, 7rem) var(--pad) clamp(6rem, 13vh, 9rem);
}
.enquiry-aside .mono { color: var(--red); margin-bottom: 1rem; }
.enquiry-aside p { color: #bdbdc4; font-size: 0.97rem; margin-bottom: 1.6rem; max-width: 26rem; }
.enquiry-aside a { border-bottom: 1px solid var(--red); transition: color 0.3s; }
.enquiry-aside a:hover { color: var(--red); }

.form-panel { position: relative; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1.4rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); }
.field label i { font-style: normal; color: var(--red); }
.field input, .field select, .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid rgba(245, 245, 247, 0.22);
  color: var(--bone); font: inherit; font-size: 1rem;
  padding: 0.55rem 0.1rem; border-radius: 0;
  transition: border-color 0.3s;
  -webkit-appearance: none; appearance: none;
}
.field select { cursor: pointer; }
.field select option { background: var(--ink-2); color: var(--bone); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--red);
}
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chips label {
  border: 1px solid rgba(245, 245, 247, 0.22); border-radius: 99px;
  padding: 0.5rem 1.05rem; cursor: pointer;
  font-size: 0.8rem; letter-spacing: 0.04em; color: #c9c9cf;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
  text-transform: none;
}
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label:has(input:checked) {
  border-color: var(--red); background: rgba(213, 31, 54, 0.14); color: var(--bone);
}
.chips label:hover { border-color: var(--red); }
.form-actions { margin-top: 2.2rem; display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.form-note { color: var(--grey); font-size: 0.85rem; }
.hp { position: absolute; left: -9999px; opacity: 0; }

.form-sent {
  position: absolute; inset: 0; z-index: 3;
  display: none; flex-direction: column; justify-content: center; align-items: flex-start;
  background: var(--ink);
}
.form-panel.is-sent .form-sent { display: flex; }
.form-sent strong {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem;
}
.form-sent strong i { font-style: normal; color: var(--red); }
.form-sent p { color: var(--grey); max-width: 28rem; }

/* ── compact footer for subpages ────────────────────────── */
.footer-lite {
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 8vh, 5.5rem) var(--pad) 2rem;
}
.footer-lite-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem; max-width: 1300px; margin: 0 auto;
}
.footer-lite-grid .contact-h { margin-bottom: 0.9rem; }
.footer-lite-grid p, .footer-lite-grid li { font-size: 0.92rem; color: #c9c9cf; }
.footer-lite-grid li { margin-bottom: 0.45rem; }
.footer-lite-grid a { transition: color 0.3s; }
.footer-lite-grid a:hover { color: var(--red); }
.footer-lite-logo { height: 26px; width: auto; opacity: 0.85; margin-bottom: 1.2rem; }
.footer-lite .contact-foot { max-width: 1300px; margin: 3rem auto 0; }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .page-intro { grid-template-columns: 1fr; }
  .subsvc-row { grid-template-columns: 2.6rem 1fr; }
  .subsvc-row > div { grid-column: 2; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .enquiry { grid-template-columns: 1fr; }
  .footer-lite-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-lite-grid { grid-template-columns: 1fr; }
  .band { height: 300px; }
}
