/* ==========================================================
   AIO — All in One · aione.london
   ========================================================== */

@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #030407;
  --bg-2: #080a10;
  --ink: #eef1f7;
  --ink-2: #c3c9d6;
  --muted: #7d8497;
  --line: rgba(238, 241, 247, 0.12);
  --line-2: rgba(238, 241, 247, 0.22);
  --blue: #4c8dff;
  --blue-2: #8fb8ff;
  --glow: rgba(76, 141, 255, 0.45);
  --chrome: linear-gradient(180deg, #ffffff 0%, #dfe4ee 40%, #8e98ab 56%, #eef2f9 100%);
  --blue-grad: linear-gradient(100deg, #cfe0ff 0%, #6fa2ff 45%, #e9f0ff 100%);

  --f-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--blue); color: #fff; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: 100%; max-width: 1560px; margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.muted { color: var(--muted); }
.serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
em.serif {
  background: var(--blue-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

.display {
  font-size: clamp(3rem, 8.4vw, 10.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.display-2 {
  font-size: clamp(2.5rem, 6vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.display em.serif, .display-2 em.serif { font-size: 1.06em; line-height: 0.8; }
.lead { font-size: clamp(1rem, 1.25vw, 1.25rem); line-height: 1.5; color: var(--ink-2); max-width: 36ch; font-weight: 400; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px var(--blue); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.section-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: clamp(40px, 7vw, 110px); }

/* Split text helpers */
em.serif .w, em.serif .split-word { background: var(--blue-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
.split-line { overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w { display: inline-block; will-change: transform; }

/* ---------- Grain / starfield / cursor / progress ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.8s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); }
}
.starfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .footer { position: relative; z-index: 1; }

.cursor { position: fixed; top: 0; left: 0; z-index: 400; pointer-events: none; mix-blend-mode: normal; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor__dot { width: 6px; height: 6px; background: #fff; }
.cursor__ring {
  width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, 0.4);
  display: grid; place-items: center;
  transition: width 0.45s var(--ease), height 0.45s var(--ease), background 0.45s var(--ease), border-color 0.45s var(--ease);
}
.cursor__label { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0; transition: opacity 0.3s; color: #fff; white-space: nowrap; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; border-color: rgba(143, 184, 255, 0.8); background: rgba(76, 141, 255, 0.08); }
.cursor.is-label .cursor__ring { width: 96px; height: 96px; background: var(--blue); border-color: var(--blue); box-shadow: 0 0 40px var(--glow); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (hover: hover) and (pointer: fine) { html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; } }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-2)); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 10px var(--glow); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: #000; display: grid; place-items: center;
  clip-path: inset(0 0 0 0);
}
.loader__inner { display: grid; justify-items: center; gap: 36px; }
.loader__mark { width: clamp(90px, 12vw, 150px); height: auto; overflow: visible; filter: drop-shadow(0 0 22px rgba(76, 141, 255, 0.55)); }
.loader__stroke { fill: none; stroke: #9fc2ff; stroke-width: 3; stroke-linejoin: round; }
.loader__fill { opacity: 0; }
.loader__meta { display: flex; gap: 28px; color: var(--muted); }
.loader__count b { color: var(--ink); font-weight: 500; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  transition: translate 0.6s var(--ease), background 0.4s;
}
.header.is-scrolled { background: linear-gradient(180deg, rgba(3, 4, 7, 0.75), rgba(3, 4, 7, 0)); }
.header.is-hidden { translate: 0 -110%; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 26px; height: 26px; filter: drop-shadow(0 0 8px rgba(76, 141, 255, 0.6)); }
.brand__word { font-weight: 600; font-size: 20px; letter-spacing: 0.12em; }
.nav { display: flex; gap: clamp(18px, 2.4vw, 40px); font-size: 14px; }
.nav a, .footer a, .menu__foot a { position: relative; }
.nav a::after, .footer__col a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.5s var(--ease);
}
.nav a:hover::after, .footer__col a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.header__right { display: flex; align-items: center; gap: 22px; }
.clock { color: var(--muted); }
.clock b { color: var(--ink); font-weight: 500; }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border-radius: 999px; font-size: 14px; font-weight: 500; overflow: hidden; isolation: isolate;
}
.btn--ghost { border: 1px solid var(--line-2); }
.btn--ghost::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); border-radius: inherit;
  transform: translateY(101%); transition: transform 0.55s var(--ease);
}
.btn--ghost:hover { color: var(--bg); }
.btn--ghost:hover::before { transform: translateY(0); }
.btn span { transition: color 0.3s; }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform 0.5s var(--ease); }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 65; background: rgba(3, 4, 7, 0.96); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
}
.menu__nav { display: flex; flex-direction: column; gap: 4px; }
.menu__nav a { display: block; overflow: hidden; font-size: clamp(2.6rem, 11vw, 5rem); line-height: 1.05; letter-spacing: -0.04em; font-weight: 500; }
.menu__nav a span { display: inline-block; }
.menu__foot { display: flex; flex-direction: column; gap: 8px; color: var(--muted); }

/* ---------- Scroll sequences ---------- */
.seq { position: relative; background: #000; z-index: 2; }
.seq--cosmos { height: 780vh; }
.seq--build { height: 560vh; }
.seq__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.seq__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.seq__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 22%, transparent 70%, rgba(0, 0, 0, 0.7) 100%);
}
.seq__fade { position: absolute; inset: 0; background: var(--bg); opacity: 0; pointer-events: none; }

.beat {
  position: absolute; z-index: 3; padding: 0 var(--gutter);
  display: flex; flex-direction: column; gap: 22px; pointer-events: none;
}
.beat--hero { left: 0; right: 0; bottom: clamp(90px, 14vh, 150px); }
.beat--hero .hero-title { max-width: 12ch; text-shadow: 0 10px 60px rgba(0, 0, 0, 0.6); }
.beat--left { left: 0; top: 50%; translate: 0 -50%; max-width: 760px; }
.beat--right { right: 0; top: 50%; translate: 0 -50%; max-width: 760px; text-align: right; align-items: flex-end; }
.beat--center { left: 0; right: 0; top: 50%; translate: 0 -50%; text-align: center; align-items: center; }
.beat--center .lead { text-align: center; }
.beat--low { left: 0; right: 0; top: 16vh; text-align: center; align-items: center; }
.beat h2 { text-shadow: 0 10px 60px rgba(0, 0, 0, 0.55); }
.beat[data-beat]:not([data-beat="0"]) { opacity: 0; }

.hud {
  position: absolute; z-index: 4; right: var(--gutter); bottom: 34px; width: 280px;
  display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 10.5px; pointer-events: none;
}
.hud__row { display: flex; justify-content: space-between; }
.hud__row span:last-child { color: var(--ink-2); }
.hud__chapters { display: flex; justify-content: space-between; }
.hud__chapters span { transition: color 0.4s; }
.hud__chapters span.is-active { color: var(--blue-2); }
.hud__bar { height: 1px; background: var(--line); position: relative; overflow: hidden; }
.hud__bar i { position: absolute; inset: 0; background: var(--blue-2); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 8px var(--glow); }
.hud--build { left: var(--gutter); right: auto; }

.scroll-cue {
  position: absolute; z-index: 4; left: var(--gutter); bottom: 34px; display: flex; align-items: center; gap: 14px; color: var(--ink-2); font-size: 11px;
}
.scroll-cue i { width: 60px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--blue-2); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* Assembly chapters */
.chapter {
  position: absolute; z-index: 3; top: 50%; translate: 0 -50%; width: min(420px, 34vw); opacity: 0;
  display: flex; flex-direction: column; gap: 16px; pointer-events: none;
  padding: 26px 28px; border-left: 1px solid rgba(143, 184, 255, 0.4);
  background: linear-gradient(90deg, rgba(3, 4, 7, 0.55), rgba(3, 4, 7, 0));
}
.chapter--l { left: var(--gutter); }
.chapter--r { right: var(--gutter); border-left: 0; border-right: 1px solid rgba(143, 184, 255, 0.4); text-align: right; background: linear-gradient(270deg, rgba(3, 4, 7, 0.55), rgba(3, 4, 7, 0)); }
.chapter__n { color: var(--blue-2); }
.chapter h3 { font-size: clamp(1.9rem, 3.2vw, 3.2rem); line-height: 1; letter-spacing: -0.035em; font-weight: 500; }
.chapter p { color: var(--ink-2); font-size: clamp(0.95rem, 1.1vw, 1.1rem); }

.wordmark { position: absolute; z-index: 3; left: 0; right: 0; bottom: 7vh; display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none; }
.wordmark__big { display: flex; gap: 0.08em; font-size: clamp(3rem, 9vw, 9rem); font-weight: 600; letter-spacing: 0.1em; line-height: 0.9; overflow: hidden; padding: 0.04em 0; }
.wordmark__big span {
  display: inline-block; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(76, 141, 255, 0.35));
}
.wordmark__sub { color: var(--ink-2); opacity: 0; letter-spacing: 0.3em; }

/* ---------- Approach ---------- */
.approach { padding: clamp(120px, 18vw, 260px) 0 clamp(100px, 14vw, 200px); position: relative; }
.manifesto {
  font-size: clamp(1.9rem, 4.1vw, 4.6rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 500; max-width: 22ch;
  max-width: 1300px;
}
.manifesto .w { opacity: 0.14; }
.approach__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); margin-top: clamp(80px, 11vw, 160px); }
.pillar { border-top: 1px solid var(--line-2); padding-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.pillar__n { color: var(--blue-2); }
.pillar h3 { font-size: clamp(1.5rem, 2vw, 2rem); letter-spacing: -0.03em; font-weight: 500; }
.pillar p { color: var(--ink-2); max-width: 38ch; }

/* ---------- Services ---------- */
.services { padding: clamp(120px, 16vw, 240px) 0; position: relative; }
.services__title { margin-bottom: clamp(50px, 7vw, 100px); }
.svc { border-top: 1px solid var(--line); }
.svc__row {
  position: relative; display: grid; grid-template-columns: 80px 1.3fr 1fr 60px; align-items: center; gap: 24px;
  padding: clamp(26px, 3vw, 44px) 0; border-bottom: 1px solid var(--line); cursor: pointer; isolation: isolate;
}
.svc__row::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
  background: linear-gradient(90deg, rgba(76, 141, 255, 0.14), rgba(76, 141, 255, 0.02));
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform 0.6s var(--ease);
}
.svc__row:hover::before { transform: scaleY(1); }
.svc__n { color: var(--muted); transition: color 0.4s; }
.svc__t { font-size: clamp(1.8rem, 3.8vw, 4rem); line-height: 1; letter-spacing: -0.04em; font-weight: 500; transition: translate 0.6s var(--ease); }
.svc__d { color: var(--ink-2); max-width: 40ch; transition: color 0.4s; }
.svc__arrow { justify-self: end; font-size: 28px; transition: color 0.4s; }
.svc__arrow i { display: inline-block; font-style: normal; transition: transform 0.6s var(--ease); }
.svc__row:hover .svc__n, .svc__row:hover .svc__arrow { color: var(--blue-2); }
.svc__row:hover .svc__t { translate: 18px 0; }
.svc__row:hover .svc__arrow i { transform: rotate(45deg); }
.svc-preview { position: fixed; top: 0; left: 0; z-index: 60; width: 340px; aspect-ratio: 16 / 10; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
.svc-preview__inner { width: 100%; height: 100%; overflow: hidden; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(143, 184, 255, 0.25); }
.svc-preview img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }

/* ---------- Process (horizontal) ---------- */
.process { position: relative; }
.process__pin { height: 100vh; height: 100svh; overflow: hidden; position: relative; display: flex; flex-direction: column; justify-content: center; }
.process__track { display: flex; align-items: stretch; gap: clamp(20px, 2.4vw, 36px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.process__intro { width: min(560px, 80vw); display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-right: clamp(20px, 6vw, 120px); }
.step {
  position: relative; width: clamp(300px, 34vw, 500px); min-height: min(66vh, 600px); border: 1px solid var(--line);
  border-radius: 22px; padding: clamp(24px, 2.6vw, 40px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  background: linear-gradient(160deg, rgba(20, 26, 40, 0.65), rgba(6, 8, 13, 0.65)); backdrop-filter: blur(6px);
}
.step::after {
  content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -20%; top: -20%; border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 141, 255, 0.25), transparent 65%); pointer-events: none;
}
.step__n {
  font-size: clamp(6rem, 12vw, 11rem); line-height: 0.8; font-weight: 500; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(143, 184, 255, 0.55);
}
.step__body { display: flex; flex-direction: column; gap: 14px; }
.step h3 { font-size: clamp(1.8rem, 2.6vw, 2.6rem); letter-spacing: -0.035em; font-weight: 500; }
.step p { color: var(--ink-2); }
.step ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.step li { border: 1px solid var(--line-2); border-radius: 99px; padding: 7px 12px; font-size: 10.5px; color: var(--ink-2); }
.process__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 40px; height: 1px; background: var(--line); }
.process__bar i { position: absolute; inset: 0; background: var(--blue-2); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Numbers ---------- */
.numbers { padding: clamp(120px, 14vw, 220px) 0 clamp(80px, 10vw, 140px); }
.numbers__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.num { padding: 34px 24px 40px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.num + .num { padding-left: 24px; }
.num:last-child { border-right: 0; }
.num__v {
  font-size: clamp(5rem, 13vw, 14rem); line-height: 0.9; font-weight: 500; letter-spacing: -0.06em;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.num__l { font-family: var(--f-mono); text-transform: uppercase; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.numbers__note { margin-top: 48px; font-size: clamp(1.3rem, 2.2vw, 2.2rem); letter-spacing: -0.03em; max-width: 30ch; line-height: 1.15; }

/* ---------- Marquee ---------- */
.marquee { padding: clamp(40px, 6vw, 80px) 0; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee__row { display: flex; white-space: nowrap; }
.marquee__inner { display: flex; align-items: center; gap: 0.35em; padding-right: 0.35em; font-size: clamp(3.4rem, 10vw, 11rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 500; will-change: transform; }
.marquee__inner i { font-style: normal; font-size: 0.35em; color: var(--blue); text-shadow: 0 0 20px var(--glow); }
.marquee__inner .serif { font-size: 1.05em; }
.marquee__row--outline .marquee__inner { color: transparent; -webkit-text-stroke: 1px rgba(238, 241, 247, 0.35); }
.marquee__row--outline .marquee__inner i { -webkit-text-stroke: 0; }

/* ---------- Contact ---------- */
.contact { position: relative; padding: clamp(140px, 18vw, 260px) 0 clamp(120px, 14vw, 200px); overflow: hidden; }
.contact__glow {
  position: absolute; left: 50%; top: 55%; width: 120vw; aspect-ratio: 2 / 1; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(76, 141, 255, 0.22), rgba(76, 141, 255, 0.05) 40%, transparent 65%);
  pointer-events: none;
}
.contact__inner { position: relative; display: flex; flex-direction: column; gap: 40px; }
.contact__title { max-width: 14ch; }
.contact__row { display: flex; align-items: center; gap: clamp(30px, 6vw, 100px); margin-top: 30px; flex-wrap: wrap; }
.orb {
  position: relative; width: clamp(160px, 16vw, 230px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #9fc2ff, #3b73e6 45%, #1d3b8a 100%);
  box-shadow: 0 0 60px rgba(76, 141, 255, 0.5), inset 0 0 30px rgba(255, 255, 255, 0.25);
  transition: box-shadow 0.5s var(--ease);
}
.orb:hover { box-shadow: 0 0 110px rgba(76, 141, 255, 0.8), inset 0 0 40px rgba(255, 255, 255, 0.35); }
.orb__label { text-align: center; font-weight: 500; font-size: clamp(1rem, 1.3vw, 1.25rem); line-height: 1.15; }
.contact__details { display: flex; flex-direction: column; gap: 12px; }
.contact__mail { font-size: clamp(1.6rem, 3.4vw, 3.4rem); letter-spacing: -0.035em; font-weight: 500; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.6s var(--ease); }
.contact__mail:hover { background-size: 100% 1px; }

/* ---------- Footer ---------- */
.footer { padding: 80px 0 30px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer__col { display: flex; flex-direction: column; gap: 14px; line-height: 1.7; }
.footer__word {
  display: flex; justify-content: space-between; margin: clamp(40px, 6vw, 90px) 0 20px;
  font-size: clamp(8rem, 33vw, 36rem); line-height: 0.78; font-weight: 600; letter-spacing: -0.02em; overflow: hidden; padding-bottom: 0.02em;
}
.footer__word span {
  display: inline-block; background: linear-gradient(180deg, #eef1f7 0%, #5b6478 70%, rgba(76, 141, 255, 0.3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.to-top:hover { color: var(--ink); }


/* ---------- Selected work: 3D ring ---------- */
.work { position: relative; z-index: 2; background: #030407; --work-accent: var(--blue); }
.work__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #030407; }
.work__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.work__gl.is-dragging { cursor: grabbing; }
html.has-cursor .work__gl { cursor: none; }
.work__smoke { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: blur(14px); mix-blend-mode: screen; }
.work__ui {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 10px) var(--gutter) clamp(22px, 4vh, 40px);
}
.work__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.work__hint { color: var(--muted); font-size: 11px; }
.work__hint span { color: var(--work-accent); margin: 0 .5em; }
.work__bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 24px; }
.work__title { display: flex; align-items: baseline; gap: .28em; font-family: var(--f-serif); font-style: normal; font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 5.6rem); line-height: .95; letter-spacing: -.01em; white-space: nowrap; }
.work__arrow { font-family: var(--f-sans); font-size: .42em; color: var(--work-accent); transform: translateY(-.2em); }
.work__name .scr, .case__title .scr { color: var(--work-accent, var(--blue)); font-family: var(--f-mono); font-size: .7em; }
.work__desc { margin-top: 14px; color: var(--ink-2); font-size: 11px; max-width: 46ch; min-height: 1.6em; }
.work__desc .scr { color: var(--work-accent); }
.work__filters { pointer-events: auto; display: flex; gap: 4px; padding: 5px; border-radius: 99px; background: rgba(10, 12, 20, .62);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line-2); }
.work__filter { padding: 11px 16px; border-radius: 99px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); transition: background .35s var(--ease), color .35s var(--ease); white-space: nowrap; }
.work__filter:hover { color: var(--ink); }
.work__filter[aria-selected="true"] { background: var(--work-accent); color: #05060a; box-shadow: 0 0 24px color-mix(in srgb, var(--work-accent) 55%, transparent); }
.work__filter sup { font-size: 9px; opacity: .65; margin-left: 3px; vertical-align: super; }
.work__filter:focus-visible, .case button:focus-visible { outline: 2px solid var(--work-accent, var(--blue)); outline-offset: 3px; }
.work__meta { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; color: var(--muted); font-size: 11px; }
.work__count { color: var(--ink); font-size: 13px; }
.work__count::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 10px; background: var(--work-accent); box-shadow: 0 0 12px var(--work-accent); vertical-align: 1px; }

/* keyboard / screen-reader list, becomes the gallery when WebGL is unavailable */
.work__list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: 0; padding: 0; list-style: none; }
.work:not(.work--fallback) .work__list:focus-within { width: auto; height: auto; clip: auto; clip-path: none; left: var(--gutter); top: calc(var(--header-h) + 50px); z-index: 5; display: flex; gap: 6px; flex-wrap: wrap; max-width: 60vw; }
.work:not(.work--fallback) .work__list:focus-within .work__item { padding: 8px 14px; border-radius: 99px; background: rgba(10,12,20,.8); border: 1px solid var(--line-2); font-size: 13px; }
.work:not(.work--fallback) .work__list:focus-within .work__item img, .work:not(.work--fallback) .work__list:focus-within .work__item-meta { display: none; }
.work--fallback .work__hint { display: none; }
.work--fallback .work__gl, .work--fallback .work__smoke { display: none; }
.work--fallback .work__pin { height: auto; min-height: 100vh; padding: calc(var(--header-h) + 80px) 0 220px; }
.work--fallback .work__list { position: relative; width: auto; height: auto; clip: auto; clip-path: none; white-space: normal; display: flex; gap: 18px; overflow-x: auto; padding: 0 var(--gutter) 20px; scroll-snap-type: x mandatory; }
.work--fallback .work__list li { flex: 0 0 min(260px, 70vw); scroll-snap-align: start; }
.work--fallback .work__item { display: grid; gap: 10px; text-align: left; width: 100%; }
.work--fallback .work__item img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; border: 2px solid var(--work-accent); box-shadow: 0 0 30px color-mix(in srgb, var(--work-accent) 40%, transparent); }
.work--fallback .work__item-title { font-family: var(--f-serif); font-size: 1.8rem; }
.work--fallback .work__item-meta { color: var(--muted); font-size: 11px; }
.work--fallback .work__ui { position: absolute; }

/* ---------- Case view ---------- */
html.case-open { overflow: hidden; }
.case { position: fixed; inset: 0; z-index: 150; color: #0c0e17; --case-accent: var(--blue); }
.case[hidden] { display: none; }
.case__bg { position: absolute; inset: 0; background: #e8e9f4; }
.case__scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.case ::selection { background: var(--case-accent); color: #fff; }
.case__bar { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px var(--gutter); background: linear-gradient(180deg, #e8e9f4 55%, rgba(232, 233, 244, 0)); }
.case__back, .case__nextbtn { font-size: 11px; padding: 11px 16px; border-radius: 99px; border: 1px solid rgba(12, 14, 23, .22); color: #0c0e17; transition: background .3s, color .3s; }
.case__back:hover, .case__nextbtn:hover { background: #0c0e17; color: #e8e9f4; }
.case__idx { font-size: 11px; color: #5b6076; }
.case__hero { position: relative; min-height: calc(100vh - 76px); min-height: calc(100svh - 76px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 33vw); grid-template-rows: auto 1fr; gap: 28px 56px;
  padding: 10px var(--gutter) clamp(28px, 5vh, 56px); }
.case__facts { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 48px; max-width: 680px; margin: 0; font-size: 11px; line-height: 1.65; }
.case__facts dt { color: #6a6f86; margin-bottom: 6px; }
.case__facts dt::after { content: " ↘"; color: var(--case-accent); }
.case__facts dd { margin: 0; color: #0c0e17; text-transform: none; letter-spacing: .02em; }
.case__head { grid-column: 1; grid-row: 2; align-self: end; }
.case__title { font-family: var(--f-serif); font-weight: 400; font-style: normal; font-size: clamp(3.2rem, 8.6vw, 10rem); line-height: .88; letter-spacing: -.015em; min-height: .9em; }
.case__sub { margin-top: 16px; font-size: 11px; color: #4b5064; max-width: 40ch; }
.case__media { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin: 0; width: 100%; aspect-ratio: 3 / 4; max-height: calc(100vh - 150px); border-radius: 10px; overflow: hidden; justify-self: end; }
.case__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case__did { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 32px; margin: clamp(40px, 8vh, 90px) var(--gutter) 0; padding: 22px 0 clamp(60px, 12vh, 140px); border-top: 1px solid rgba(12, 14, 23, .16); }
.case__label { font-size: 11px; color: #5b6076; }
.case__statement { font-family: var(--f-serif); font-size: clamp(1.8rem, 3.4vw, 3.6rem); line-height: 1.08; letter-spacing: -.01em; }
.case__statement::before { content: "↳ "; font-family: var(--f-sans); font-size: .5em; color: var(--case-accent); vertical-align: .3em; }
.case__wide { margin: 0 var(--gutter); border-radius: 10px; overflow: hidden; background: #d9dbe8; aspect-ratio: 16 / 10; }
.case__wide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case__table { margin: clamp(60px, 12vh, 140px) var(--gutter) 0; border-bottom: 1px solid rgba(12, 14, 23, .16); }
.case__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 32px; padding: 16px 0; border-top: 1px solid rgba(12, 14, 23, .16); font-size: 15px; }
.case__row > span { font-size: 11px; color: #5b6076; padding-top: 3px; }
.case__row div { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.case__next { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px 20px; width: calc(100% - 2 * var(--gutter)); margin: clamp(70px, 14vh, 160px) var(--gutter) 0; padding: 22px 0 clamp(40px, 8vh, 80px); text-align: left; border-top: 1px solid rgba(12, 14, 23, .16); color: #0c0e17; }
.case__next .mono { grid-column: 1 / -1; font-size: 11px; color: #5b6076; }
.case__nexttitle { font-family: var(--f-serif); font-size: clamp(2.8rem, 7vw, 8rem); line-height: .9; transition: color .4s var(--ease); }
.case__arrow { font-size: clamp(2rem, 4vw, 4rem); transition: transform .5s var(--ease), color .4s; }
.case__next:hover .case__nexttitle, .case__next:hover .case__arrow { color: var(--case-accent); }
.case__next:hover .case__arrow { transform: translateX(10px); }

/* flight + pixel transition layers */
.flight { position: fixed; inset: 0; z-index: 200; pointer-events: none; perspective: 1500px; perspective-origin: 50% 45%; }
.flight__card { position: absolute; left: 0; top: 0; transform-style: preserve-3d; transform-origin: 50% 50%; will-change: transform; }
.flight__card::before { content: ""; position: absolute; inset: 2px; border-radius: 12px; transform: translateZ(-2px); opacity: var(--glow, 1);
  box-shadow: 0 0 0 2px var(--work-accent, #4c8dff), 0 0 34px 6px color-mix(in srgb, var(--work-accent, #4c8dff) 65%, transparent); }
.flight__strip { position: absolute; top: 0; height: 100%; background-repeat: no-repeat; backface-visibility: hidden; }
.flight__strip:first-child { border-radius: 10px 0 0 10px; }
.flight__strip:last-child { border-radius: 0 10px 10px 0; }
.pixels { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 250; pointer-events: none; display: none; }

@media (max-width: 900px) {
  .work__bottom { grid-template-columns: 1fr; gap: 16px; }
  .work__filters { justify-self: start; order: 3; }
  .work__meta { justify-self: start; align-items: flex-start; flex-direction: row; gap: 16px; order: 2; }
  .work__title { font-size: clamp(2.2rem, 10vw, 3.4rem); white-space: normal; }
  .work__hint { display: none; }
  .case__hero { grid-template-columns: 1fr; grid-template-rows: auto auto auto; min-height: 0; gap: 26px; }
  .case__media { grid-column: 1; grid-row: 1; max-height: none; width: 100%; justify-self: stretch; }
  .case__head { grid-row: 2; }
  .case__facts { grid-row: 3; }
  .case__did, .case__row { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 640px) {
  .work__filter { padding: 10px 12px; }
  .case__bar { padding: 14px var(--gutter); }
  .case__idx { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav, .clock { display: none; }
  .burger { display: block; }
}
@media (max-width: 900px) {
  .svc__row { grid-template-columns: 44px 1fr 32px; }
  .svc__d { grid-column: 2 / 3; grid-row: 2; }
  .svc__arrow { grid-row: 1; grid-column: 3; }
  .approach__grid { grid-template-columns: 1fr; }
  .numbers__grid { grid-template-columns: repeat(2, 1fr); }
  .num:nth-child(2) { border-right: 0; }
  .num:nth-child(3) { padding-left: 0; }
  .num:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .footer__top { grid-template-columns: repeat(2, 1fr); }
  .chapter { width: auto; left: var(--gutter); right: var(--gutter); top: auto; bottom: 16vh; translate: none; text-align: left; border-right: 0; border-left: 1px solid rgba(143, 184, 255, 0.4); background: linear-gradient(90deg, rgba(3, 4, 7, 0.75), rgba(3, 4, 7, 0.2)); }
  .chapter--r { right: var(--gutter); }
  .hud--build { display: none; }
  .beat--left, .beat--right, .beat--center { left: 0; right: 0; top: auto; bottom: 14vh; translate: none; text-align: left; align-items: flex-start; }
  .beat--center .lead { text-align: left; }
  .beat--low { top: 14vh; }
  .br-d { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .btn--ghost { display: none; }
  .hud { display: none; }
  .scroll-cue { bottom: 24px; }
  .beat--hero { bottom: 90px; }
  .section-head .muted { display: none; }
  .step { width: 82vw; min-height: 60vh; }
  .process__intro { width: 82vw; }
  .svc-preview { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
