﻿/* InstaDesign — homepage
   Space Grotesk / Inter / JetBrains Mono
   Ink, blue, signal red
*/

:root {
  --ink: #0A1622;
  --ink-800: #10243A;
  --ink-700: #17324D;
  --blue-700: #075A96;
  --blue-600: #0B74BE;
  --blue-500: #128FE0;
  --blue-300: #6EC4F2;
  --blue-100: #D6ECFA;
  --blue-050: #EFF7FD;
  --red: #E8232A;
  --red-dark: #C4141B;
  --paper: #FFFFFF;
  --paper-2: #F5F7FA;
  --paper-3: #ECF0F5;
  --line: #DDE4EC;
  --grey-600: #5A6B7D;
  --grey-500: #7A8899;
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(20px, 4.5vw, 64px);
  --maxw: 1360px;
  --section-y: clamp(80px, 10vw, 150px);
  --radius: 4px;
  --radius-lg: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--blue-500); color: #fff; }
:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius);
}
.skip-link:focus { transform: none; }

.wrap {
  width: min(var(--maxw), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
.section { padding-block: var(--section-y); position: relative; }

.grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(10, 22, 34, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 22, 34, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 40%, #000 20%, transparent 78%);
}
.grid--light {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .06) 1px, transparent 1px);
}

/* Cursor reveal on blueprint grids — same motion as the Godin fretboard sections */
.grid,
.grid-glow,
.grid-spot,
.grid-noise { z-index: 0; }

.grid-glow,
.grid-spot,
.grid-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.grid-glow {
  opacity: 0;
  transition: opacity 2.4s cubic-bezier(0.16, 1, 0.3, 1);
  background-image:
    linear-gradient(to right, rgba(11, 116, 190, .42) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 116, 190, .42) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle 560px at var(--mx, 50%) var(--my, 50%), #000 0%, transparent 100%);
  mask-image: radial-gradient(circle 560px at var(--mx, 50%) var(--my, 50%), #000 0%, transparent 100%);
}
.grid-glow--light {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .34) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .34) 1px, transparent 1px);
}
.grid-spot {
  opacity: 0;
  z-index: 1;
  transition: opacity .7s ease;
  mix-blend-mode: multiply;
  background: radial-gradient(720px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(11, 116, 190, .16), transparent 42%);
}
.grid-spot--light {
  mix-blend-mode: soft-light;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, .18), transparent 40%);
}
.grid-noise {
  opacity: .18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.page-hero > .wrap,
.section > .wrap { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.eyebrow--light { color: var(--blue-300); }

.h-xl { font-size: clamp(48px, 7.2vw, 104px); }
.h-lg { font-size: clamp(36px, 4.6vw, 68px); }
.h-md { font-size: clamp(22px, 2.2vw, 32px); }
.lede {
  font-size: clamp(17px, 1.25vw, 19.5px);
  line-height: 1.65;
  color: var(--grey-600);
}
.lede--light { color: rgba(255, 255, 255, .7); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 4vw, 80px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 72px);
}
.section-head__title { margin-top: 16px; }

/* Buttons */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-hover: var(--red);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  overflow: hidden;
  transition: color .35s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .45s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--btn-hover);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .55s var(--ease-out);
  z-index: -1;
}
.btn:hover::before { transform: scaleX(1); }
.btn--accent { --btn-bg: var(--red); --btn-hover: var(--red-dark); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-hover: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--ghost:hover { color: #fff; }
.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-hover: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.btn--ghost-light:hover { color: var(--ink); }
.btn--sm { padding: 10px 16px; font-size: 13.5px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.text-link::after {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  transition: width .4s var(--ease-out);
}
.text-link:hover::after { width: 56px; }

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform 1s cubic-bezier(.76, 0, .24, 1);
}
.loader.is-done { transform: translateY(-105%); pointer-events: none; }
html.ptr-entering .loader { display: none; }

#ptr-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--ink);
  pointer-events: none;
  will-change: transform;
  transform: translateX(100%);
}
#ptr-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--red);
}
.loader__inner { width: min(520px, calc(100% - 48px)); }
/* Preloader shows only the loading bar — nothing else. */
.loader__kicker,
.loader__word,
.loader__count { display: none; }
.loader__track {
  margin-top: 0;
  height: 1px;
  background: rgba(255, 255, 255, .16);
  position: relative;
}
.loader__track span {
  position: absolute;
  left: 0; top: -1px;
  height: 3px;
  width: 0;
  background: var(--red);
}
.loader__count {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .55);
}

/* Cursor + progress */
@media (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
}
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--red);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 150;
  opacity: 0;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s, background .3s;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hot {
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--ink);
  mix-blend-mode: normal;
}
.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: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header);
  display: flex;
  align-items: center;
  transition: transform .6s var(--ease-out), background .4s var(--ease);
}
.header.is-stuck {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-110%); }
.header.is-open { transform: none; background: transparent; box-shadow: none; }
.header__inner {
  width: min(var(--maxw), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo { display: flex; align-items: center; min-height: 28px; }
.logo__img { height: 26px; width: auto; }
.logo__type {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.05em;
  line-height: 1;
}
.logo.has-img .logo__type { display: none; }
.footer .logo__type,
.header.is-open .logo__type { color: #fff; }
.nav { display: none; align-items: center; gap: 4px; margin-left: auto; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-800);
}
.nav__link:hover { background: var(--blue-050); color: var(--blue-700); }
.nav__link.is-current { color: var(--blue-700); }
.caret { width: 12px; height: 12px; }
.nav__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 50px -28px rgba(10, 22, 34, .45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
/* Invisible bridge over the 8px gap so moving the cursor down to the
   panel never crosses a dead zone that would drop :hover and close it. */
.nav__panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}
.nav__item:hover .nav__panel,
.nav__item:focus-within .nav__panel {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.nav__panel a {
  display: grid;
  gap: 2px;
  padding: 12px 12px;
  border-radius: 8px;
}
.nav__panel a:hover { background: var(--paper-2); }
.nav__panel strong { font-size: 14.5px; font-weight: 600; letter-spacing: -0.02em; }
.nav__panel span { font-size: 12.5px; color: var(--grey-500); line-height: 1.4; }

.header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav + .header__actions { margin-left: 0; }
.lang {
  display: flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
}
.lang a, .lang__on { padding: 6px 10px; border-radius: 999px; }
.lang__on { background: var(--ink); color: #fff; }
.header__cta { display: none; }

.burger {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  position: relative;
}
.burger__label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
/* Bar thickness and spacing must land on whole device pixels, otherwise the
   three bars get different sub-pixel offsets and render at uneven weights. */
.burger { --bar: 2px; --bar-gap: 5px; }
@media (min-resolution: 1.2dppx) { .burger { --bar: 1.6px; --bar-gap: 4.8px; } }
@media (min-resolution: 1.45dppx) { .burger { --bar: 1.334px; --bar-gap: 5.334px; } }
@media (min-resolution: 1.95dppx) { .burger { --bar: 1.5px; --bar-gap: 5px; } }
.burger__lines, .burger__lines::before, .burger__lines::after {
  display: block;
  width: 16px;
  height: var(--bar);
  background: var(--ink);
  position: relative;
  transition: transform .4s var(--ease), opacity .3s;
}
.burger__lines::before, .burger__lines::after {
  content: "";
  position: absolute;
  left: 0;
}
.burger__lines::before { top: calc(var(--bar-gap) * -1); }
.burger__lines::after { top: var(--bar-gap); }
.burger.is-open .burger__lines { background: transparent; }
.burger.is-open .burger__lines::before { top: 0; transform: rotate(45deg); }
.burger.is-open .burger__lines::after { top: 0; transform: rotate(-45deg); }

/* Overlay menu */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ink);
  color: #fff;
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 40px;
  padding: calc(var(--header) + 24px) var(--gutter) 48px;
  overflow: auto;
}
.overlay[hidden] { display: none; }
.overlay__nav { display: grid; align-content: center; gap: 2px; }
.overlay__nav > a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: rgba(255, 255, 255, .88);
  transform: translateY(24px);
  opacity: 0;
}
.overlay.is-in .overlay__nav > * {
  animation: menu-in .7s var(--ease-out) forwards;
  animation-delay: calc(.02s + var(--i, 0) * .04s);
}
.overlay__nav > a span {
  flex: none;
  width: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--blue-300);
}
.overlay__nav > a:hover { color: #fff; }
.overlay__sub {
  display: grid;
  gap: 2px;
  margin: 8px 0 12px 42px;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, .16);
  transform: translateY(24px);
  opacity: 0;
}
.overlay__sub a {
  padding: 5px 0;
  font-size: 16px;
  line-height: 1.35;
  color: rgba(255, 255, 255, .64);
  transition: color .25s var(--ease);
}
.overlay__sub a:hover { color: #fff; }
@keyframes menu-in {
  to { opacity: 1; transform: none; }
}
.overlay__side {
  align-self: end;
  display: grid;
  gap: 10px;
  padding-bottom: 12px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 22px;
}
.overlay__side a { color: rgba(255, 255, 255, .78); font-size: 15px; }
.overlay__side a:hover { color: #fff; }
.overlay__addr {
  margin-top: 18px;
  color: rgba(255, 255, 255, .5);
  font-size: 14px;
  line-height: 1.5;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header) + 28px);
  padding-bottom: 48px;
  display: flex;
  align-items: center;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(20px, 3vw, 40px) clamp(28px, 4vw, 64px);
  align-items: center;
  width: min(var(--maxw), calc(100% - var(--gutter) * 2));
}
.hero__inner > .eyebrow { grid-column: 1 / -1; }
.hero__title {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: clamp(52px, 7.8vw, 116px);
  line-height: 0.9;
  letter-spacing: -0.055em;
}
.hero__copy { grid-column: 1; grid-row: 3; }
.hero__visual { grid-column: 2; grid-row: 3; }
.hero__title em {
  font-style: normal;
  color: var(--blue-600);
}
.line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.line > span { display: block; transform: translateY(115%); }
.hero__lede { margin-top: 22px; max-width: 48ch; opacity: 0; }
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  opacity: 0;
}
.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 40px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 520px;
  opacity: 0;
}
.hero__meta dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey-500);
}
.hero__meta dd {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.hero__meta b { font-weight: 600; }

.hero__visual { position: relative; }
.hero__stage { position: relative; }
.hero__dots {
  position: absolute;
  inset: -8% -6%;
  background-image: radial-gradient(rgba(11, 116, 190, .28) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 72%);
  pointer-events: none;
}
.hero__frame {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--ink);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(10, 22, 34, .55);
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tick {
  position: absolute;
  width: 16px; height: 16px;
  z-index: 2;
  border-color: rgba(255, 255, 255, .85);
  border-style: solid;
}
.tick--tl { top: 10px; left: 10px; border-width: 1.5px 0 0 1.5px; }
.tick--tr { top: 10px; right: 10px; border-width: 1.5px 1.5px 0 0; }
.tick--bl { bottom: 10px; left: 10px; border-width: 0 0 1.5px 1.5px; }
.tick--br { bottom: 10px; right: 10px; border-width: 0 1.5px 1.5px 0; }

.crew {
  position: absolute;
  z-index: 3;
  width: clamp(84px, 9vw, 124px);
  aspect-ratio: 1;
  display: block;
  transform: rotate(var(--rot));
  animation: crew-drift var(--dur) ease-in-out var(--delay) infinite;
}
.crew__bg {
  position: absolute;
  inset: 0;
  background: var(--tile);
  border-radius: 6px;
  box-shadow: 0 18px 34px -18px rgba(10, 22, 34, .55);
}
.crew__img {
  position: relative;
  width: 118%;
  max-width: none;
  margin-left: -8%;
  margin-top: -18%;
  filter: drop-shadow(0 12px 16px rgba(10, 22, 34, .25));
}
.crew--1 { --tile: var(--blue-300); --rot: -6deg; --dur: 7s; --delay: 0s; top: -14%; left: 8%; }
.crew--2 { --tile: var(--red); --rot: 5deg; --dur: 8.5s; --delay: -2s; bottom: -6%; left: -8%; }
.crew--3 { --tile: var(--ink); --rot: 4deg; --dur: 9s; --delay: -4s; top: 38%; right: -7%; }
@keyframes crew-drift {
  0%, 100% { transform: rotate(var(--rot)) translate3d(0, 0, 0); }
  50% { transform: rotate(calc(var(--rot) * -.4)) translate3d(0, -10px, 0); }
}
.crew:hover { animation-play-state: paused; z-index: 4; }
.sheet-id {
  margin: 14px 0 0;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--grey-500);
}

/* Clients */
.clients {
  background: var(--ink);
  color: #fff;
  padding-block: clamp(36px, 5vw, 64px);
  overflow: hidden;
}
.clients__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .48);
  margin-bottom: 28px;
}
.marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(48px, 6vw, 88px);
  padding-right: clamp(48px, 6vw, 88px);
  flex: 0 0 auto;
  animation: scroll-x 38s linear infinite;
}
.clients:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
.marquee__track img {
  height: clamp(22px, 2.4vw, 32px);
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .5;
  transition: opacity .3s var(--ease);
}
.marquee__track img:hover { opacity: 1; }
.client-wordmark {
  flex: 0 0 auto;
  font-family: var(--font-display, var(--font-mono));
  font-weight: 600;
  font-size: clamp(16px, 1.6vw, 22px);
  letter-spacing: .01em;
  white-space: nowrap;
  color: rgba(255, 255, 255, .62);
  transition: color .3s var(--ease);
}
.client-wordmark:hover { color: #fff; }

/* Intro */
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: start;
}
.intro__body p + p { margin-top: 16px; color: var(--grey-600); }
.stats {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: clamp(22px, 2.4vw, 36px) clamp(16px, 2vw, 28px) 8px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: .9;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.stat__suffix { color: var(--blue-600); font-size: .55em; margin-top: .2em; }
.stat__label {
  margin: 14px auto 0;
  max-width: 24ch;
  font-size: 14.5px;
  color: var(--grey-600);
  line-height: 1.45;
}

/* Services */
.services { background: var(--paper-2); overflow: hidden; }
.svc-list { border-top: 1px solid var(--line); position: relative; z-index: 1; }
.svc {
  display: grid;
  grid-template-columns: 72px minmax(0, .9fr) minmax(0, 1.1fr) 52px;
  gap: clamp(12px, 2vw, 32px);
  align-items: center;
  padding: clamp(26px, 3vw, 40px) 8px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.svc::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  background: #fff;
  border-radius: 12px;
  opacity: 0;
  transform: scale(.985);
  transition: opacity .4s var(--ease), transform .45s var(--ease-out);
  box-shadow: 0 24px 50px -32px rgba(10, 22, 34, .45);
}
.svc:hover::before { opacity: 1; transform: none; }
.svc > * { position: relative; z-index: 1; }
.svc__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--blue-600);
}
.svc__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 600;
  letter-spacing: -0.03em;
  transition: color .3s var(--ease);
}
.svc:hover .svc__title { color: var(--blue-700); }
.svc__desc { color: var(--grey-600); font-size: 15.5px; line-height: 1.55; }
.svc__go {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  justify-self: end;
  background: #fff;
  transition: background .35s var(--ease), color .35s, transform .45s var(--ease-out), border-color .35s;
}
.svc__go svg { width: 16px; height: 16px; }
.svc:hover .svc__go {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: rotate(-45deg);
}

/* Horizontal projects */
.projects { position: relative; background: var(--paper); }
.h-scroll { overflow: hidden; }
.h-scroll__track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: clamp(28px, 6vw, 90px) var(--gutter) clamp(36px, 5vw, 72px);
  align-items: stretch;
}
.h-intro {
  flex: 0 0 min(440px, 78vw);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 12px;
  padding-right: 24px;
}
.h-intro .h-lg { margin-top: 14px; }
.h-intro .lede { margin-top: 16px; }
.h-count {
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--grey-500);
}
.h-card {
  position: relative;
  flex: 0 0 min(440px, 78vw);
  height: min(68vh, 620px);
  min-height: 420px;
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(to right, rgba(10, 22, 34, .04) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(to bottom, rgba(10, 22, 34, .04) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(165deg, #fff 20%, var(--blue-050) 100%);
  display: block;
}
.h-card img {
  position: absolute;
  inset: 8% 10% 28%;
  width: auto;
  height: auto;
  max-width: 80%;
  max-height: 68%;
  margin: auto;
  object-fit: contain;
  transition: transform .7s var(--ease-out);
  filter: drop-shadow(0 24px 30px rgba(10, 22, 34, .16));
}
.h-card:hover img { transform: scale(1.06) translateY(-8px); }
.h-card__index {
  position: absolute;
  top: 18px; left: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--grey-500);
}
.h-card__meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 22px 20px;
  display: grid;
  gap: 4px;
  background: linear-gradient(to top, rgba(255, 255, 255, .96), transparent);
}
.h-card__cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.h-card__name {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.h-progress {
  height: 2px;
  margin: 0 var(--gutter) clamp(28px, 4vw, 48px);
  background: var(--line);
}
.h-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--ink);
  transform: scaleX(.08);
  transform-origin: left center;
}

/* Why */
.why {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  position: relative;
  z-index: 1;
}
.why__card {
  grid-column: span 2;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  padding: clamp(22px, 2.2vw, 32px);
  min-height: 220px;
  transition: background .4s var(--ease), transform .5s var(--ease-out);
}
.why__card:nth-child(n + 4),
.why__card--wide { grid-column: span 3; }
.why__card:hover { transform: translateY(-4px); }
.why .why__card:hover { background: var(--ink-800); }
.why__icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--blue-300);
  background: rgba(18, 143, 224, .12);
  border: 1px solid rgba(110, 196, 242, .25);
  margin-bottom: 22px;
}
.why__icon svg { width: 22px; height: 22px; }
.why__card h3 { font-size: 20px; margin-bottom: 10px; }
.why__card p { font-size: 14.5px; line-height: 1.6; color: var(--grey-600); }
.why .why__card p { color: rgba(255, 255, 255, .64); }

/* Process */
.process__layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 100px);
  align-items: start;
}
.process__sticky { position: sticky; top: calc(var(--header) + 32px); }
.process__sticky .h-lg { margin-top: 14px; }
.process__sticky .lede { margin-top: 18px; }
.steps { position: relative; }
.step {
  padding: 28px 0 32px 28px;
  border-top: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--blue-600);
}
.step h3 { margin: 10px 0 8px; font-size: clamp(22px, 2vw, 28px); }
.step p { color: var(--grey-600); max-width: 46ch; }
.step::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--line);
}
.step.is-active::before { background: var(--blue-600); }
.step.is-active h3 { color: var(--blue-700); }

/* Case */
.case {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  min-height: 520px;
}
.case__body { padding: clamp(28px, 4vw, 64px); }
.case__title {
  margin: 16px 0 18px;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.case__body > p { color: var(--grey-600); max-width: 52ch; }
.figs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 32px 0 8px;
}
.figs__n {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(36px, 3.6vw, 56px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--blue-600);
}
.figs__l {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--grey-600);
  max-width: 18ch;
}
.case__media {
  position: relative;
  min-height: 320px;
  background:
    linear-gradient(to right, rgba(10, 22, 34, .045) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(to bottom, rgba(10, 22, 34, .045) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(160deg, #fff, var(--blue-100));
  border-left: 1px solid var(--line);
}
.case__media img {
  position: absolute;
  inset: 12%;
  margin: auto;
  max-width: 78%;
  max-height: 76%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 36px rgba(10, 22, 34, .18));
}

/* Careers */
.careers__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
}
.careers__quote { margin-top: 14px; }
.careers .lede { margin-top: 18px; max-width: 46ch; }
.roles {
  margin: 28px 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}
.roles li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  letter-spacing: -0.01em;
}
.careers__photo {
  margin: 0;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 460px;
  background: var(--ink);
}
.careers__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 460px;
  transform: scale(1.08);
}
.careers__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 22, 34, .45), transparent 42%),
    linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
  pointer-events: none;
}

/* CTA */
.cta {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding-block: clamp(88px, 12vw, 160px);
  overflow: hidden;
  text-align: center;
}
.cta__inner { position: relative; z-index: 1; }
.cta__title { max-width: 12ch; margin: 16px auto 0; }
.cta__lede {
  margin: 20px auto 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, .7);
  font-size: clamp(17px, 1.3vw, 19px);
}
.cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.cta .btn { --btn-bg: #fff; --btn-fg: var(--ink); --btn-hover: var(--red); }
.cta .btn:hover { color: #fff; }
.cta__contact {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  color: rgba(255, 255, 255, .55);
  font-size: 14.5px;
}
.cta__contact a:hover { color: #fff; }

/* Footer */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .62);
  padding-block: clamp(48px, 6vw, 80px) 28px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr .9fr .8fr 1fr;
  gap: clamp(24px, 4vw, 56px);
}
.footer__logo { margin-bottom: 18px; }
.footer__logo .logo__img { height: 26px; }
.footer__blurb { font-size: 14.5px; line-height: 1.65; max-width: 36ch; }
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
  margin-bottom: 16px;
}
.footer li { margin-bottom: 10px; }
.footer li a { font-size: 14.5px; line-height: 1.45; }
.footer li a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px;
}
.footer__social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  display: grid;
  place-items: center;
  color: #fff;
}
.footer__social a:hover { background: #fff; color: var(--ink); }
.footer__social svg { width: 16px; height: 16px; }

.coords {
  position: fixed;
  left: 18px;
  bottom: 14px;
  z-index: 40;
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--grey-500);
  mix-blend-mode: difference;
  pointer-events: none;
}
.coords b { color: inherit; font-weight: 500; }

/* Reveal baseline — GSAP owns the motion once ready */
.js [data-reveal-item] { will-change: transform, opacity; }

@media (min-width: 1080px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
  .burger { display: none; }
}

@media (max-width: 1079px) {
  /* Nav is hidden on mobile but still a DOM sibling, so push the lang + burger
     back to the right edge of the header. */
  .nav + .header__actions { margin-left: auto; }
  .crew--1 { top: 6%; left: 5%; }
  .crew--3 { top: auto; bottom: 8%; right: 4%; }
  .overlay { grid-template-columns: 1fr; padding-top: calc(var(--header) + 12px); }
  .overlay__side { display: none; }
  .hero__inner,
  .hero__inner > .eyebrow,
  .hero__title,
  .hero__copy,
  .hero__visual { grid-column: auto; grid-row: auto; }
  .hero__title { font-size: clamp(44px, 8vw, 72px); }
  .hero__inner,
  .intro__grid,
  .section-head,
  .process__layout,
  .case,
  .careers__grid,
  .footer__top { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--line); padding-right: 16px; }
  .stat:nth-child(2n) { border-right: 0; }
  .why__grid { grid-template-columns: 1fr; }
  .why__card,
  .why__card:nth-child(n + 4),
  .why__card--wide { grid-column: 1 / -1; display: block; min-height: 0; }
  .why__card--wide h3, .why__card--wide p { grid-column: auto; }
  .svc {
    grid-template-columns: auto 1fr;
    grid-template-areas: "num go" "title title" "desc desc";
  }
  .svc__num { grid-area: num; }
  .svc__go { grid-area: go; }
  .svc__title { grid-area: title; }
  .svc__desc { grid-area: desc; }
  .figs { grid-template-columns: 1fr; }
  .case__media { border-left: 0; border-top: 1px solid var(--line); min-height: 280px; }
  .roles { grid-template-columns: 1fr; }
  /* Keep clearance under the CTA so its reveal offset never overlaps the photo */
  .careers__grid { row-gap: clamp(44px, 11vw, 60px); align-items: start; }
  .process__sticky { position: static; }
  .coords { display: none; }
  /* Réalisations: stack vertically on mobile instead of a horizontal scroller */
  .h-scroll { overflow: visible; }
  .h-scroll__track {
    flex-direction: column;
    width: auto;
    gap: 16px;
    padding: clamp(36px, 8vw, 64px) var(--gutter) clamp(32px, 6vw, 56px);
  }
  .h-intro { flex: none; width: 100%; padding-right: 0; padding-bottom: 4px; }
  .h-count,
  .h-progress { display: none; }
  .h-card {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .hero { min-height: auto; padding-bottom: 28px; }
  .hero__inner > .eyebrow,
  .hero__title,
  .hero__copy,
  .hero__visual { grid-column: auto; grid-row: auto; }
  .hero__title { font-size: clamp(40px, 11vw, 64px); }
  .hero__meta { max-width: none; }
  .crew--2 { display: none; }
  .crew { width: 76px; }
  .header__cta { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; }
  .h-card { aspect-ratio: 4 / 5; height: auto; min-height: 0; }
}

/* Interior pages */
.page-hero {
  position: relative;
  padding-top: calc(var(--header) + 56px);
  padding-bottom: clamp(48px, 6vw, 88px);
  background: linear-gradient(180deg, #E3EAF2 0%, #EDF3F9 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-top: 16px; max-width: 16ch; }
.page-hero .lede { margin-top: 20px; max-width: 48ch; }
.page-hero--wide h1 { max-width: 18ch; }

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: start;
}
.split p + p { margin-top: 16px; color: var(--grey-600); }
.stack { display: grid; gap: 16px; }
.stack p { color: var(--grey-600); }

.checklist { display: grid; gap: 12px; margin-top: 22px; }
.checklist li {
  position: relative;
  padding-left: 28px;
  color: var(--grey-600);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 8px;
  border-left: 1.6px solid var(--blue-600);
  border-bottom: 1.6px solid var(--blue-600);
  transform: rotate(-45deg);
}

.spec {
  display: grid;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.spec div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.spec dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
  padding-top: 4px;
}
.spec dd { margin: 0; color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  background: #fff;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 2.4vw, 36px) clamp(14px, 1.6vw, 22px);
}
.member__photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--tile, var(--blue-600));
  margin-bottom: 14px;
}
.member__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.member__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.member__initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 42px;
  letter-spacing: -0.04em;
  color: #fff;
}
.member h3 { font-size: 18px; letter-spacing: -0.02em; }
.member__role {
  margin-top: 4px;
  color: var(--grey-600);
  font-size: 14px;
  line-height: 1.4;
}
.member__links { display: flex; gap: 14px; margin-top: 10px; font-size: 13px; }
.member__links a { color: var(--blue-700); border-bottom: 1px solid transparent; }
.member__links a:hover { border-bottom-color: currentColor; }

.jobs { display: grid; gap: 12px; }
.job {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .3s var(--ease), transform .4s var(--ease-out);
}
.job:hover { border-color: var(--blue-300); transform: translateY(-2px); }
.job h3 { font-size: 22px; }
.job p { margin-top: 4px; color: var(--grey-500); font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.job svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--blue-600);
  transition: transform .45s var(--ease-out);
}
.job:hover svg { transform: translateX(4px); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.work-grid .h-card {
  flex: none;
  width: auto;
  height: min(52vh, 460px);
  min-height: 320px;
}

.proj-hero {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--line);
  min-height: min(68vh, 640px);
  background:
    linear-gradient(to right, rgba(10,22,34,.04) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(to bottom, rgba(10,22,34,.04) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(165deg, #fff, var(--blue-050));
  overflow: hidden;
}
.proj-hero img {
  position: absolute;
  inset: 10% 12% 12%;
  margin: auto;
  max-width: 72%;
  max-height: 76%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 40px rgba(10,22,34,.18));
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}
.pager a { font-weight: 500; }
.pager a:hover { color: var(--blue-700); }

.feature--text { grid-template-columns: 1fr; }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper-2);
}
.feature__body { padding: clamp(24px, 3vw, 48px); }
.feature__body h2 { font-size: clamp(26px, 2.4vw, 36px); margin: 12px 0 14px; }
.feature__body p { color: var(--grey-600); }
.feature__media {
  position: relative;
  min-height: 280px;
  background:
    linear-gradient(to right, rgba(10,22,34,.04) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(to bottom, rgba(10,22,34,.04) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(160deg, #fff, var(--blue-100));
}
.feature__media img {
  position: absolute;
  inset: 12%;
  margin: auto;
  max-width: 80%;
  max-height: 76%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.note {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 28px;
  color: var(--grey-600);
}

@media (max-width: 980px) {
  .split, .feature, .spec div, .work-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .line > span, .hero__lede, .hero__cta, .hero__meta { transform: none !important; opacity: 1 !important; }
  .loader, #ptr-overlay, .grid-glow, .grid-spot { display: none; }
  .cursor { display: none; }
  .hero__cue { display: none; }
  .hero__visual { clip-path: none !important; }
}

/* ═══ Hero — full-viewport stage with a looping video (no scroll scrub) ═══ */
.hero {
  position: relative;
  min-height: 0;
  padding: 0;
  display: block;
}
.hero__pin {
  position: relative;
  height: 100dvh;
  min-height: 620px;
  overflow: hidden;
  background: var(--paper);
}
.hero .grid,
.hero .grid-glow {
  top: -20%;
  height: 140%;
  mask-image: none;
  -webkit-mask-image: none;
}
.hero .grid {
  background-image:
    linear-gradient(to right, rgba(10, 22, 34, .075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 22, 34, .075) 1px, transparent 1px);
}

/* Brand reel — right half, scroll-scrubbed frame sequence on a canvas */
.hero__visual {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: 58% 50%;
  will-change: transform, clip-path;
}
.hero .hero__frame {
  position: relative;
  width: min(31vw, 460px);
  aspect-ratio: 4 / 5;
  background: var(--paper);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(10, 22, 34, .55);
}
.hero .hero__canvas,
.hero .hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Subtle, animated play button over the (non-autoplay) header video */
.hero__play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: rgba(10, 22, 34, .34);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 14px 34px -16px rgba(0, 0, 0, .6);
  transform: translate(-50%, -50%);
  transition: opacity .45s var(--ease), transform .45s var(--ease), background .3s var(--ease);
}
.hero__play:hover { background: rgba(10, 22, 34, .5); transform: translate(-50%, -50%) scale(1.07); }
.hero__play:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.hero__play-icon { width: 28px; height: 28px; margin-left: 3px; position: relative; z-index: 1; }
.hero__play-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .55);
  pointer-events: none;
  animation: heroPlayPulse 2.6s var(--ease) infinite;
}
.hero__play-pulse--2 { animation-delay: 1.3s; }
@keyframes heroPlayPulse {
  0%   { transform: scale(1);   opacity: .7; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}
/* Hidden while the video is playing */
.hero__frame.is-playing .hero__play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.78);
}
@media (prefers-reduced-motion: reduce) {
  .hero__play-pulse { animation: none; opacity: .5; transform: scale(1.25); }
}

.hero .tick { border-color: rgba(10, 22, 34, .32); }
.hero__plate {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey-500);
  white-space: nowrap;
}

/* Copy — left half */
.hero__copy {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  width: min(52vw, 680px);
  padding-top: var(--header);
  will-change: transform, opacity;
}
.hero__kicker { margin-bottom: 16px; }
.hero .hero__title {
  grid-column: auto;
  margin: 0;
  font-size: clamp(44px, 5.1vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.hero .hero__lede { margin-top: 20px; max-width: 46ch; }
.hero .hero__cta { margin-top: 26px; }

.hero__cue {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  bottom: 26px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--grey-500);
}
.hero__cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 38px;
  margin: 10px 0 0;
  background: linear-gradient(var(--blue-600), transparent);
  transform-origin: top;
  animation: cue-drop 1.8s var(--ease-out) infinite;
}
@keyframes cue-drop {
  0% { transform: scaleY(.15); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

@media (max-width: 900px) {
  .hero__pin {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: calc(var(--header) + 24px) 0 36px;
    display: flex;
    flex-direction: column;
  }
  /* Stack order on mobile: title + copy first, then the video (as on the live site). */
  .hero__copy {
    order: 1;
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    width: calc(100% - var(--gutter) * 2);
    margin: 0 auto;
    padding-top: 0;
  }
  .hero__visual {
    order: 2;
    position: relative;
    width: 100%;
    height: auto;
    margin-top: 28px;
  }
  .hero .hero__frame { width: min(72vw, 380px); }
  .hero .hero__title { font-size: clamp(38px, 10vw, 60px); }
  .hero__cue, .hero__plate { display: none; }
}
