/* FullMotion — site styles. Tokens follow DESIGN.md. */

@font-face { font-family: Geist; font-weight: 400; font-display: swap; src: url(../assets/fonts/Geist-400.ttf) format('truetype'); }
@font-face { font-family: Geist; font-weight: 500; font-display: swap; src: url(../assets/fonts/Geist-500.ttf) format('truetype'); }
@font-face { font-family: Geist; font-weight: 600; font-display: swap; src: url(../assets/fonts/Geist-600.ttf) format('truetype'); }
@font-face { font-family: Allura; font-weight: 400; font-display: swap; src: url(../assets/fonts/Allura.ttf) format('truetype'); }

:root {
  --ink: #050505;
  --ink-2: #0b0b0d;
  --graphite: #141417;
  --bone: #f4f4f2;
  --steel: #8d8d92;
  --soft: #bdbdc2;
  --line: rgb(255 255 255 / .08);
  --line-2: rgb(255 255 255 / .15);
  --line-3: rgb(255 255 255 / .26);
  --silver: linear-gradient(100deg, #8e8e94 0%, #f6f6f7 22%, #a9a9af 42%, #e9e9ec 58%, #8a8a90 78%, #d9d9dd 100%);
  --silver-v: linear-gradient(180deg, #ffffff 0%, #c9c9ce 55%, #7d7d83 100%);

  --glass-bg: rgb(20 20 23 / .5);
  --glass-blur: blur(24px) saturate(150%);
  --surface: linear-gradient(180deg, rgb(255 255 255 / .045), rgb(255 255 255 / .012));

  --sans: Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --script: Allura, cursive;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --dur-press: 120ms;
  --dur-hover: 200ms;
  --dur-ui: 260ms;

  --r-s: 12px; --r-m: 20px; --r-l: 28px;
  --pad: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { color-scheme: dark; scrollbar-gutter: stable; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink); color: var(--bone);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--bone); color: var(--ink); }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; border-radius: 8px; }
[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--bone); color: var(--ink); font-weight: 500; transition: top var(--dur-ui) var(--ease-out); }
.skip:focus { top: 16px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }

/* ── type ─────────────────────────────────────────────────────────── */
.label { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); }
.h2 { font-size: clamp(38px, 5.4vw, 80px); line-height: 1; letter-spacing: -.045em; }
.h2--xl { font-size: clamp(46px, 7.6vw, 120px); }
.h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.025em; line-height: 1.1; }
.script {
  font-family: var(--script); font-weight: 400; letter-spacing: 0; line-height: 1;
  font-size: 1.12em; display: inline-block; padding: .04em .14em .14em;
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.silver { background: var(--silver-v); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── surfaces ─────────────────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 30px 60px -30px rgb(0 0 0 / .7);
}
/* cards: a soft surface, a hairline edge and a light that follows the pointer */
.card {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .05);
  transition: border-color var(--dur-ui) var(--ease-out), transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
}
.card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / .07), transparent 60%);
  transition: opacity 400ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: var(--line-2); }
  .card:hover::before { opacity: 1; }
}

/* ── buttons ──────────────────────────────────────────────────────── */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 28px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -.005em; white-space: nowrap;
  user-select: none; -webkit-user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--sm { --h: 42px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--bone { background: var(--bone); color: var(--ink); box-shadow: 0 10px 30px -10px rgb(255 255 255 / .25); }
.btn--glass { background: rgb(255 255 255 / .06); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.btn__arw { display: inline-block; transition: transform var(--dur-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn--bone:hover { background: #fff; box-shadow: 0 14px 40px -10px rgb(255 255 255 / .35); }
  .btn--glass:hover { background: rgb(255 255 255 / .11); border-color: var(--line-3); }
  .btn:hover .btn__arw { transform: translateX(3px); }
}

/* ── nav ──────────────────────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); padding-top: env(safe-area-inset-top); border-bottom: 1px solid transparent; transition: background-color 300ms var(--ease-out), border-color 300ms var(--ease-out); }
.nav.is-solid { background: rgb(8 8 10 / .6); -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%); border-bottom-color: var(--line); }
.nav__in { height: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .28em; }
.brand img { width: 22px; height: auto; }
.nav__links { display: flex; gap: 2px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: rgb(255 255 255 / .03); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.nav__links a { padding: 7px 16px; border-radius: 999px; font-size: 14px; color: rgb(244 244 242 / .72); transition: color var(--dur-hover) var(--ease-out), background-color var(--dur-hover) var(--ease-out); }
.nav__links a[aria-current="true"] { color: var(--bone); background: rgb(255 255 255 / .09); }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--bone); } }
.nav__right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.lang { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.lang button { height: 30px; min-width: 38px; padding: 0 8px; border-radius: 999px; text-align: center; font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--steel); transition: background-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out); }
.lang button[aria-pressed="true"] { background: rgb(255 255 255 / .1); color: var(--bone); }
.burger { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--bone); transition: transform var(--dur-ui) var(--ease-out); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.sheet { position: fixed; inset: 0; z-index: 45; padding: calc(var(--nav-h) + 40px) var(--pad) 48px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; background: rgb(5 5 5 / .84); -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px); overscroll-behavior: contain; transition: opacity var(--dur-ui) var(--ease-out), display var(--dur-ui) allow-discrete; }
.sheet[hidden] { display: none; opacity: 0; }
@starting-style { .sheet:not([hidden]) { opacity: 0; } }
.sheet__links { display: grid; gap: 4px; }
.sheet__links a { padding: 10px 0; font-size: 38px; font-weight: 500; letter-spacing: -.035em; }
.sheet__mail { font-size: 17px; color: var(--soft); }

/* ── hero ─────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; min-height: 100dvh; display: grid; place-items: center; padding: calc(var(--nav-h) + 40px) 0 190px; text-align: center; overflow: clip; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #0b0b0c; }
/* the footage sits softly out of focus (about 5 %) so the type stays the subject */
.hero__poster, .hero__video { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); object-fit: cover; filter: blur(4px) brightness(.92); }
.hero__poster { background: url(../assets/img/hero-poster.webp) center/cover; }
.hero__video { opacity: 0; transition: opacity 1.4s var(--ease-out); }
.hero__video.is-playing { opacity: 1; }
.hero__shade { position: absolute; inset: 0; background:
  radial-gradient(70% 60% at 50% 46%, rgb(5 5 5 / .62) 0%, rgb(5 5 5 / .38) 55%, rgb(5 5 5 / .55) 100%),
  linear-gradient(0deg, var(--ink) 0%, rgb(5 5 5 / 0) 30%),
  linear-gradient(180deg, rgb(5 5 5 / .6) 0%, rgb(5 5 5 / 0) 20%); }
.hero__arcs { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.arc { stroke-dasharray: 1; stroke-dashoffset: 0; }

.hero__in { display: grid; justify-items: center; }
.hero__kicker { margin-bottom: 30px; color: var(--soft); }
.hero__title { font-size: clamp(56px, 10vw, 168px); line-height: .9; letter-spacing: -.055em; }
.mask { display: block; overflow: clip; padding: 0 .04em .08em; }
.rise { display: block; }
.sig { display: block; margin-top: -.06em; font-family: var(--script); font-weight: 400; letter-spacing: 0; font-size: .98em; line-height: 1.08; }
.sig > span { display: inline-block; padding: 0 .22em .1em; background: var(--silver); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lede { max-width: 40rem; margin-top: 30px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: rgb(244 244 242 / .8); }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; }

.dock { position: absolute; left: 0; right: 0; margin-inline: auto; bottom: 36px; width: min(1080px, calc(100% - 2 * var(--pad))); display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 22px; padding: 6px; }
.dock__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 12px; border-radius: 16px; text-align: center; font-size: 15px; transition: background-color var(--dur-hover) var(--ease-out); }
.dock__item + .dock__item::before { content: ''; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line-2); transition: opacity var(--dur-hover) var(--ease-out); }
.dock__n { font-size: 11px; letter-spacing: .14em; color: var(--steel); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .dock__item:hover { background: rgb(255 255 255 / .07); } .dock__item:hover::before, .dock__item:hover + .dock__item::before { opacity: 0; } }
.dock__item:active { background: rgb(255 255 255 / .1); }

/* hero entrance — only with JS and when motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .rise { transform: translateY(105%); }
  .js .hero [data-rise] { opacity: 0; transform: translateY(14px); }
  .js .hero .dock[data-rise] { transform: translateY(20px); }
  .js .hero .sig > span { clip-path: inset(0 100% 0 0); }
  .js .hero .arc { stroke-dashoffset: 1; }
  .js .hero.is-in .rise { transform: none; transition: transform 1.1s var(--ease-out) .15s; }
  .js .hero.is-in [data-rise] { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
  .js .hero.is-in .hero__lede { transition-delay: .95s; }
  .js .hero.is-in .hero__ctas { transition-delay: 1.05s; }
  .js .hero.is-in .dock { transition-delay: 1.2s; }
  .js .hero.is-in .sig > span { clip-path: inset(0 -10% 0 -10%); transition: clip-path 1.4s var(--ease-io) .5s; animation: sheen 8s linear 2.2s infinite; }
  .js .hero.is-in .arc { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s var(--ease-io) .25s; }
  .js .phead .rise { transform: translateY(105%); }
  .js .phead [data-rise] { opacity: 0; transform: translateY(14px); }
  .js .phead.is-in .rise { transform: none; transition: transform 1.1s var(--ease-out) .1s; }
  .js .phead.is-in [data-rise] { opacity: 1; transform: none; transition: opacity 1s var(--ease-out) .5s, transform 1s var(--ease-out) .5s; }
}
@keyframes sheen { from { background-position: 0% 0; } to { background-position: 200% 0; } }

/* ── bands & section heads ────────────────────────────────────────── */
.band { position: relative; padding-block: clamp(104px, 13vw, 184px); }
.band--raised { background: var(--ink-2); border-block: 1px solid var(--line); }
.shead { display: grid; justify-items: center; gap: 20px; max-width: 54rem; margin: 0 auto clamp(52px, 6vw, 84px); text-align: center; }
.shead__lede { color: var(--steel); font-size: 18px; max-width: 38rem; }
/* a left-set head: title on the left, text or action on the right */
.shead--split { max-width: none; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; justify-items: start; gap: 24px 64px; text-align: left; }
.shead--split > div { display: grid; gap: 20px; justify-items: start; }
.shead--split > .shead__lede, .shead--split > .btn { justify-self: end; }
.shead--split > .shead__lede { text-align: right; }
.ambient { position: absolute; inset: 0; z-index: -1; background: url(../assets/img/ambient.webp) center/cover; opacity: .2; filter: brightness(.7); -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); }
.ambient--flip { opacity: .14; transform: scaleX(-1); }
.band--apps, .band--contact { overflow: clip; isolation: isolate; }

/* ── services ─────────────────────────────────────────────────────── */
.svc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.svc__card { display: grid; grid-template-rows: auto 1fr; }
.svc__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; margin: 8px 8px 0; border-radius: calc(var(--r-l) - 8px); background: var(--graphite); }
.svc__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(5 5 5 / .55), transparent 55%); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); transition: transform 1.1s var(--ease-out); }
.svc__body { display: grid; justify-items: center; align-content: start; gap: 12px; padding: 28px 32px 34px; text-align: center; }
.svc__n { font-size: 12px; letter-spacing: .18em; color: var(--steel); font-variant-numeric: tabular-nums; }
.svc__t { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.035em; line-height: 1.05; }
.svc__d { max-width: 30rem; color: var(--steel); font-size: 16px; }
.svc__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; transition: background-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .svc__card:hover { transform: translateY(-4px); box-shadow: 0 40px 80px -40px rgb(0 0 0 / .9), inset 0 1px 0 rgb(255 255 255 / .06); }
  .svc__card:hover .svc__media img { transform: scale(1.06); }
  .svc__card:hover .svc__go { background: var(--bone); color: var(--ink); border-color: var(--bone); }
  .svc__card:hover .btn__arw { transform: translateX(3px); }
}
.svc__card:active { transform: scale(.99); }

/* ── apps ─────────────────────────────────────────────────────────── */
.devices { position: relative; display: grid; grid-template-columns: 1fr; justify-items: center; margin: 0 auto clamp(56px, 7vw, 96px); max-width: 1080px; padding-bottom: 40px; }
.devices__desk { width: 76%; padding: 8px; border-radius: 22px; background: #0c0c0e; border: 1px solid var(--line-2); box-shadow: 0 60px 120px -40px rgb(0 0 0 / .95), inset 0 1px 0 rgb(255 255 255 / .07); }
.devices__desk img { width: 100%; border-radius: 14px; }
.devices__phone { position: absolute; bottom: 0; width: 19%; padding: 6px; border-radius: 30px; background: #0c0c0e; border: 1px solid var(--line-3); box-shadow: 0 40px 80px -20px rgb(0 0 0 / .95), inset 0 1px 0 rgb(255 255 255 / .1); }
.devices__phone img { width: 100%; aspect-ratio: 585 / 1266; object-fit: cover; object-position: top; border-radius: 24px; }
.devices__phone--l { left: 2%; }
.devices__phone--r { right: 2%; }

.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }.pair { display: grid; align-content: start; gap: 18px; padding: 30px 32px; border-radius: var(--r-m); }
.pair p { display: grid; gap: 8px; line-height: 1.5; }
.pair .label { font-size: 11px; }
.pair__p { color: var(--steel); font-size: 15px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pair__x { text-decoration: line-through; text-decoration-color: rgb(141 141 146 / .55); text-decoration-thickness: 1px; }
.pair__s { color: var(--bone); font-size: 17px; }
.pair__case { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; color: var(--soft); border: 1px solid var(--line-2); transition: border-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out), background-color var(--dur-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .pair__case:hover { color: var(--ink); background: var(--bone); border-color: var(--bone); } }

/* ── work ─────────────────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; padding: 5px; border-radius: 999px; border: 1px solid var(--line); }
.filters button { height: 38px; padding: 0 18px; border-radius: 999px; font-size: 14px; color: var(--soft); transition: background-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out); }
.filters button[aria-pressed="true"] { background: var(--bone); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .filters button[aria-pressed="false"]:hover { color: var(--bone); background: rgb(255 255 255 / .06); } }

.phead { display: grid; justify-items: center; gap: 20px; padding-top: calc(var(--nav-h) + clamp(64px, 9vw, 128px)); padding-bottom: clamp(48px, 6vw, 72px); text-align: center; }
.phead__t { font-size: clamp(48px, 8.4vw, 136px); line-height: .95; letter-spacing: -.055em; }
.works-band { padding-bottom: clamp(80px, 9vw, 128px); }
.more { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }

/* project cards: a looping film (or a slow drift over a still) with the name laid over it */
/* every set reads the same way: one long 16:9 film, two squares under it, another long one */
/* one edge for everything: long films span the grid, the cards under them share it in 3 or 2 */
.works { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; max-width: var(--max); margin-inline: auto; }
.w-wide { grid-column: 1 / -1; }
.w-wide .work__media { aspect-ratio: 16 / 9; }
.w-wide .work__info h3 { font-size: clamp(26px, 2.6vw, 38px); }
.w-r3 { grid-column: span 2; }
.w-r3 .work__media { aspect-ratio: 4 / 5; }
.w-r2 { grid-column: span 3; }
.w-r2 .work__media { aspect-ratio: 4 / 3; }
.w-r3 .work__info { left: 22px; right: 76px; bottom: 20px; }
.w-r3 .work__info h3 { font-size: clamp(20px, 1.7vw, 24px); }
.w-r3 .work__info p { font-size: 14px; }
.work[hidden] { display: none; }

/* work page: one section per discipline */
.wnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; padding: 5px; border-radius: 999px; border: 1px solid var(--line); }
.wnav a { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 999px; font-size: 14px; color: var(--soft); transition: background-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .wnav a:hover { background: var(--bone); color: var(--ink); } }
.wsec { padding-bottom: clamp(88px, 10vw, 140px); }
.wsec .shead { margin-bottom: clamp(36px, 4vw, 56px); }
.work { position: relative; display: block; border-radius: var(--r-l); -webkit-tap-highlight-color: transparent; }
.work[hidden] { display: none; }
.work__media { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--r-l); background: var(--graphite); border: 1px solid var(--line); box-shadow: 0 40px 80px -50px rgb(0 0 0 / .9); transition: border-color var(--dur-ui) var(--ease-out); }
.work__media > video, .work__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.work__media::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgb(5 5 5 / .8) 0%, rgb(5 5 5 / .2) 40%, rgb(5 5 5 / 0) 62%); }
.work__tag { position: absolute; z-index: 2; top: 16px; left: 16px; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; background: rgb(20 20 23 / .38); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line-2); }
.work__info { position: absolute; z-index: 2; left: 26px; right: 90px; bottom: 24px; display: grid; gap: 4px; }
.work__info h3 { font-size: clamp(22px, 2.3vw, 32px); letter-spacing: -.035em; line-height: 1.05; }
.work__info p { font-size: 15px; color: rgb(244 244 242 / .72); }
.work__go { position: absolute; z-index: 2; right: 22px; bottom: 22px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; font-size: 18px; background: rgb(255 255 255 / .1); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line-2); transition: opacity var(--dur-ui) var(--ease-out), background-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out), transform 400ms var(--ease-out); }
.work:active .work__media { transform: scale(.99); }
@media (hover: hover) and (pointer: fine) {
  .work__go { opacity: 0; transform: translateX(-6px); }
  .work:hover .work__media { border-color: var(--line-3); }
  .work:hover .work__go { opacity: 1; }
  .work:hover .work__media > video, .work:hover .work__media > img:not(.kb) { transform: scale(1.04); }
  .work:hover .work__go { background: var(--bone); color: var(--ink); transform: rotate(-45deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .kb { animation: kb 22s ease-in-out infinite alternate; }
}
@keyframes kb { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(-2.5%, -3%); } }

/* music videos: one calm row that runs edge to edge */
.mv { padding-top: clamp(24px, 4vw, 48px); }
.mv[hidden] { display: none; }
.mv__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.mv__head > div:first-child { display: grid; gap: 8px; }
.mv__nav { display: flex; gap: 8px; }
.mv__btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line-2); text-align: center; transition: background-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out); }
.mv__btn:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) { .mv__btn:hover { background: var(--bone); color: var(--ink); } }
.mv__row { --edge: max(var(--pad), calc((100vw - var(--max)) / 2)); display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 31vw, 420px); gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); padding: 4px var(--edge) 12px; scrollbar-width: none; }
.mv__row::-webkit-scrollbar { display: none; }
.mv__item { scroll-snap-align: start; display: grid; gap: 14px; }
.mv__img { position: relative; display: block; overflow: hidden; border-radius: var(--r-s); }
.mv__img img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; filter: grayscale(.4) contrast(1.05) brightness(.9); transition: filter 400ms var(--ease-out), transform 900ms var(--ease-out); }
.mv__play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; translate: -50% -50%; border-radius: 50%; background: rgb(20 20 23 / .45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line-3); opacity: 0; scale: .9; transition: opacity var(--dur-ui) var(--ease-out), scale 400ms var(--ease-out); }
.mv__play::after { content: ''; position: absolute; left: 22px; top: 18px; border-style: solid; border-width: 10px 0 10px 15px; border-color: transparent transparent transparent var(--bone); }
.mv__cap { display: grid; gap: 2px; font-size: 13px; color: var(--steel); }
.mv__cap b { font-weight: 500; font-size: 16px; color: var(--bone); }
@media (hover: hover) and (pointer: fine) { .mv__item:hover img { filter: none; transform: scale(1.04); } .mv__item:hover .mv__play { opacity: 1; scale: 1; } }

/* ── float + gloss: panels drift a few pixels and a light passes over them ── */
.card::after, .dock::after, .work__media::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: linear-gradient(115deg, transparent 38%, rgb(255 255 255 / .075) 48%, rgb(255 255 255 / .02) 53%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 140% 0;
}
.svc__card:nth-child(2), .pair:nth-child(2), .work:nth-child(2n) { --f: 2.6s; }
.svc__card:nth-child(3), .pair:nth-child(3), .work:nth-child(3n) { --f: 1.3s; }
.svc__card:nth-child(4), .pair:nth-child(4), .work:nth-child(4n) { --f: 3.9s; }
@media (prefers-reduced-motion: no-preference) {
  .float, .svc__card, .pair, .dock, .form { animation: float 8s ease-in-out infinite; animation-delay: calc(var(--f, 0s) * -1); }
  .card::after, .dock::after, .work__media::before { animation: gloss 10s ease-in-out infinite; animation-delay: var(--f, 0s); }
}
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes gloss { 0%, 60% { background-position: 140% 0; } 100% { background-position: -40% 0; } }

/* ── contact ──────────────────────────────────────────────────────── */
.form { display: grid; gap: 18px; max-width: 780px; margin-inline: auto; padding: clamp(24px, 3.4vw, 44px); border-radius: var(--r-l); background: rgb(16 16 19 / .55); -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); border-color: var(--line-2); }
.form__chips { border: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.form__chips legend { width: 100%; margin-bottom: 14px; text-align: center; }
.form__chips label { position: relative; }
.form__chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.form__chips span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--soft); transition: background-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out); }
.form__chips input:checked + span { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.form__chips input:focus-visible + span { outline: 2px solid var(--bone); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .form__chips label:hover input:not(:checked) + span { border-color: var(--line-3); color: var(--bone); } }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; }
.field .label { font-size: 11px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--bone); background: rgb(0 0 0 / .3); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; resize: vertical; transition: border-color var(--dur-hover) var(--ease-out), background-color var(--dur-hover) var(--ease-out); }
.field input:focus, .field textarea:focus { outline: none; border-color: rgb(255 255 255 / .4); background: rgb(0 0 0 / .45); }
.field [aria-invalid="true"] { border-color: rgb(255 255 255 / .6); }
.form__err { font-size: 14px; text-align: center; }
.form__note { font-size: 13px; color: var(--steel); text-align: center; }
.form__note a { color: var(--bone); border-bottom: 1px solid var(--line-3); }

/* ── footer ───────────────────────────────────────────────────────── */
.foot { padding: 72px 0 32px; border-top: 1px solid var(--line); text-align: center; }
.foot .wrap { display: grid; justify-items: center; gap: 22px; }
.foot__wm { font-size: clamp(56px, 15vw, 230px); font-weight: 600; letter-spacing: -.045em; line-height: .8; background: linear-gradient(180deg, rgb(244 244 242 / .18), rgb(244 244 242 / .02)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; margin-top: 12px; font-size: 14px; color: var(--soft); }
.foot__mail { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; }
.foot__sig { font-size: 40px; }
.foot__bottom { padding-top: 22px; width: 100%; border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .14em; }
@media (hover: hover) and (pointer: fine) { .foot__links a:hover, .foot__mail:hover { color: var(--bone); } }

/* ── panel (service / project) ─────────────────────────────────────── */
.panel { width: min(1120px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 40px); margin: auto; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-l); color: var(--bone); background: rgb(12 12 14 / .9); -webkit-backdrop-filter: blur(30px) saturate(150%); backdrop-filter: blur(30px) saturate(150%); box-shadow: 0 60px 140px -30px rgb(0 0 0 / .95), inset 0 1px 0 rgb(255 255 255 / .07); overflow: hidden; overscroll-behavior: contain;
  opacity: 0; transform: translateY(18px) scale(.98);
  transition: opacity 320ms var(--ease-out), transform 420ms var(--ease-out), display 420ms allow-discrete, overlay 420ms allow-discrete; }
.panel[open] { opacity: 1; transform: none; }
@starting-style { .panel[open] { opacity: 0; transform: translateY(18px) scale(.98); } }
.panel::backdrop { background: rgb(0 0 0 / 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background-color 320ms var(--ease-out), backdrop-filter 320ms var(--ease-out), display 320ms allow-discrete, overlay 320ms allow-discrete; }
.panel[open]::backdrop { background: rgb(0 0 0 / .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@starting-style { .panel[open]::backdrop { background: rgb(0 0 0 / 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); } }
.panel__in { max-height: calc(100dvh - 42px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--graphite) transparent; }
.panel__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px; border-radius: 999px; background: rgb(20 20 23 / .6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line-2); transition: background-color var(--dur-hover) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.panel__close span { position: absolute; left: 14px; right: 14px; top: 21px; height: 1.5px; background: var(--bone); transform: rotate(45deg); }
.panel__close span + span { transform: rotate(-45deg); }
.panel__close:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .panel__close:hover { background: rgb(255 255 255 / .14); } }

.pn__hero { position: relative; aspect-ratio: 21 / 8; overflow: hidden; }
.pn__hero img { width: 100%; height: 100%; object-fit: cover; filter: blur(3px) brightness(.6) saturate(.8); transform: scale(1.04); }
.pn__hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(12 12 14) 0%, rgb(12 12 14 / .55) 50%, rgb(12 12 14 / .2) 100%); }
.pn__head { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; margin-top: -120px; padding: 0 clamp(20px, 4vw, 56px); text-align: center; }
.pn__head h2 { font-size: clamp(34px, 4.6vw, 64px); letter-spacing: -.045em; line-height: 1; }
.pn__head p { max-width: 40rem; color: var(--soft); font-size: 18px; }
.pn__body { padding: clamp(32px, 4vw, 56px) clamp(20px, 4vw, 56px) clamp(32px, 4vw, 52px); }
.pn__label { margin: 0 0 18px; text-align: center; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.pack { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 14px; padding: 26px; border-radius: var(--r-m); }
.pack ul { align-self: start; }
.pack__n { font-size: 12px; letter-spacing: .16em; color: var(--steel); }
.pack h3 { font-size: 23px; letter-spacing: -.025em; line-height: 1.15; }
.pack__best { font-size: 14px; color: var(--steel); }
.pack__best b { display: block; margin-bottom: 4px; font-weight: 500; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.pack ul { display: grid; border-top: 1px solid var(--line); }
.pack li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pack .btn { margin-top: 6px; }
.pn__note { margin-top: 24px; text-align: center; font-size: 14px; color: var(--steel); }
.pn__related { margin-top: clamp(36px, 4vw, 52px); }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related a { display: grid; gap: 10px; text-align: center; font-size: 15px; }
.related img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-s); border: 1px solid var(--line); transition: transform 700ms var(--ease-out), border-color var(--dur-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .related a:hover img { transform: translateY(-3px); border-color: var(--line-3); } }

.pj { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.pj__media { display: grid; gap: 12px; padding: 12px; align-content: start; }
.pj__media > img, .pj__media > video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 18px; background: var(--graphite); }
.pj__extra { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; }
.pj__extra img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 14px; background: var(--graphite); }
.pj__extra--phone img { aspect-ratio: 4 / 5; }
.pj__info { display: grid; align-content: center; justify-items: center; gap: 18px; padding: clamp(28px, 4vw, 56px); text-align: center; }
.pj__info h2 { font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -.045em; line-height: 1; }
.pj__sub { color: var(--soft); }
.pj__d { color: var(--steel); }
.pj__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pj__tags li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--soft); }
.pj__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

/* ── reveal ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .card[data-reveal].is-in { transition: opacity 900ms var(--ease-out) calc(var(--i, 0) * 70ms), transform 500ms var(--ease-out), border-color var(--dur-ui) var(--ease-out), box-shadow 500ms var(--ease-out); }
}

/* ── responsive ───────────────────────────────────────────────────── */
@media (max-width: 1060px) {
  .nav__in { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .burger { display: block; }
  .dock { grid-template-columns: repeat(2, 1fr); }
  .dock__item:nth-child(3)::before { display: none; }
  .hero { padding-bottom: 240px; }
  .pj { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }
  .hero { padding-bottom: 230px; }
  .hero__title { font-size: clamp(50px, 15vw, 76px); }
  .hero__kicker { font-size: 11px; letter-spacing: .16em; margin-bottom: 22px; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .dock { bottom: 20px; border-radius: 18px; }
  .dock__item { padding: 12px 8px; font-size: 13px; line-height: 1.3; }
  .svc, .pairs { grid-template-columns: 1fr; }
  .shead--split { grid-template-columns: 1fr; }
  .shead--split > .shead__lede, .shead--split > .btn { justify-self: start; text-align: left; }
  .svc__body { padding: 22px 20px 26px; }
  .pair { padding: 24px 22px; }
  .devices__desk { width: 100%; }
  .devices__phone { width: 26%; border-radius: 20px; padding: 4px; bottom: -6px; }
  .devices__phone img { border-radius: 16px; }
  .devices__phone--l { left: -2%; } .devices__phone--r { right: -2%; }
  /* phone: long films full width, the rest in pairs; the third of a row of three goes long */
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .w-wide .work__media, .w-tail .work__media { aspect-ratio: 16 / 10; }
  .w-r3, .w-r2 { grid-column: span 1; }
  .w-r3 .work__media, .w-r2 .work__media { aspect-ratio: 4 / 5; }
  .w-r3.w-tail { grid-column: 1 / -1; }
  :is(.w-r3, .w-r2):not(.w-tail) .work__info { left: 14px; right: 14px; bottom: 14px; }
  :is(.w-r3, .w-r2):not(.w-tail) .work__info h3 { font-size: 18px; }
  :is(.w-r3, .w-r2):not(.w-tail) :is(.work__info p, .work__go) { display: none; }
  .wnav a { height: 34px; padding: 0 12px; font-size: 13px; }
  .work__info { left: 18px; right: 74px; bottom: 18px; }
  .work__go { right: 16px; bottom: 16px; width: 42px; height: 42px; }
  .mv__nav { display: none; }
  .mv__row { grid-auto-columns: 78%; gap: 14px; }
  .form__row { grid-template-columns: 1fr; }
  .filters { gap: 2px; padding: 4px; }
  .filters button { height: 34px; padding: 0 11px; font-size: 13px; }
  .panel { width: 100%; max-height: calc(100dvh - 12px); margin: auto 0 0; border-radius: 24px 24px 0 0; border-bottom: 0; transform: translateY(40px); }
  @starting-style { .panel[open] { opacity: 0; transform: translateY(40px); } }
  .panel__in { max-height: calc(100dvh - 14px); }
  .pn__hero { aspect-ratio: 16 / 10; }
  .pn__head { margin-top: -80px; }
  .related { grid-template-columns: 1fr 1fr; }
  .related a:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
