/* ==========================================================================
   LAPRODIUM — main stylesheet
   Monochrome system: near-black and white / light-gray fields alternate
   full-bleed; the change of field is the section divider.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --black: #0c0c0b;
  --black-2: #151513;
  --black-3: #1f1f1c;
  --off: #f1eee8;
  --warm: #e6e1d7;
  --paper: #ffffff;   /* light field */
  --paper-2: #efefed; /* second light field, neutral (no cream) */
  --gray-300: #b8b3a9;
  --gray-500: #938f87;
  --gray-600: #5f5c55;
  --line-dark: rgba(241, 238, 232, 0.16);
  --line-light: rgba(12, 12, 11, 0.16);

  /* Contextual roles — overridden per field */
  --bg: var(--black);
  --fg: var(--off);
  --fg-2: var(--gray-500);
  --line: var(--line-dark);

  --font-display: "Clash Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-text: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --font-label: "Space Grotesk", "General Sans", "Helvetica Neue", Arial, sans-serif;

  /* Fluid type */
  --fs-mega: clamp(4rem, 15.5vw, 17rem);
  --fs-hero: clamp(3rem, 8.4vw, 9.5rem);
  --fs-d1: clamp(2.6rem, 6.4vw, 7rem);
  --fs-d2: clamp(2.1rem, 4.4vw, 4.75rem);
  --fs-d3: clamp(1.6rem, 2.6vw, 2.75rem);
  --fs-lead: clamp(1.35rem, 2.35vw, 2.4rem);
  --fs-body-l: clamp(1.0625rem, 1.15vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;

  /* Space */
  --pad-x: clamp(16px, 3.2vw, 56px);
  --gutter: clamp(12px, 1.6vw, 28px);
  --section: clamp(96px, 14vw, 220px);
  --section-s: clamp(64px, 8vw, 128px);

  /* Motion — strong ease-out for arrivals, ease-in-out for on-screen moves */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-ui: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --t-press: 140ms;
  --t-ui: 220ms;
  --t-reveal: 1000ms;
  --t-project: 600ms;
  --t-page: 720ms;
  --t-page-text-start: 590ms;

  --header-h: 96px;   /* owner: logo and menu further from the top edge (was 76) */

  color-scheme: dark light;
}

/* Field polarity: the color change IS the divider */
.field-dark { --bg: var(--black); --fg: var(--off); --fg-2: var(--gray-500); --line: var(--line-dark); background: var(--bg); color: var(--fg); }
.field-light { --bg: var(--paper); --fg: var(--black); --fg-2: var(--gray-600); --line: var(--line-light); background: var(--bg); color: var(--fg); }
.field-warm { --bg: var(--paper-2); --fg: var(--black); --fg-2: var(--gray-600); --line: var(--line-light); background: var(--bg); color: var(--fg); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--off);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img, video { width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--off); color: var(--black); }
.field-light ::selection, .field-warm ::selection { background: var(--black); color: var(--off); }
:focus-visible { outline: 1.5px solid currentColor; outline-offset: 4px; border-radius: 2px; }
/* Keep the scrollbar gutter when menus and dialogs lock page scrolling. */
html { scrollbar-color: var(--gray-600) var(--black); scrollbar-width: thin; scrollbar-gutter: stable; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 16px; background: var(--off); color: var(--black); border-radius: 999px; transform: translateY(-160%); transition: transform var(--t-ui) var(--ease-out-ui); }
.skip-link:focus { transform: none; }

/* ---------- Type ---------- */
.display, .h-hero, .h-d1, .h-d2, .h-d3, .h-mega {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-wrap: balance;
}
.h-mega { font-size: var(--fs-mega); letter-spacing: -0.04em; line-height: 0.82; }
.h-hero { font-size: var(--fs-hero); line-height: 0.9; }
.h-d1 { font-size: var(--fs-d1); }
.h-d2 { font-size: var(--fs-d2); line-height: 0.98; letter-spacing: -0.03em; }
.h-d3 { font-size: var(--fs-d3); line-height: 1.05; letter-spacing: -0.02em; }
.lead { font-size: var(--fs-lead); line-height: 1.3; letter-spacing: -0.015em; font-weight: 400; text-wrap: pretty; }
.body-l { font-size: var(--fs-body-l); line-height: 1.6; color: var(--fg-2); max-width: 62ch; text-wrap: pretty; }
.body-l strong { color: var(--fg); font-weight: 500; }
.small { font-size: var(--fs-small); }
.label { font-size: var(--fs-small); letter-spacing: 0.01em; color: var(--fg-2); }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.muted { color: var(--fg-2); }

/* ---------- Layout ---------- */
.wrap { padding-inline: var(--pad-x); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section { padding-block: var(--section); }
.section-s { padding-block: var(--section-s); }
.rule { border: 0; height: 1px; background: var(--line); margin: 0; }

/* ---------- Icons ---------- */
.icon { width: 1em; height: 1em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: var(--pad-x);
  color: var(--off);
  transition: transform 480ms var(--ease-out), color 300ms ease;
  view-transition-name: site-header;
}
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: baseline; gap: 2px; font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1; }
.brand sup { font-family: var(--font-text); font-size: 0.55rem; letter-spacing: 0.04em; font-weight: 500; transform: translateY(-0.6em); }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); }
.nav-links { display: flex; gap: clamp(18px, 2vw, 34px); }
.nav-link { position: relative; font-size: 0.9375rem; padding-block: 6px; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 420ms var(--ease-out);
}
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
}
.lang { display: inline-flex; gap: 2px; font-size: 0.8125rem; }
.lang button { padding: 6px 4px; opacity: 0.45; transition: opacity var(--t-ui) ease; letter-spacing: 0.02em; }
.lang button[aria-pressed="true"] { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .lang button:hover { opacity: 1; } }
.lang span { opacity: 0.45; padding-block: 6px; }
.site-header.on-light { color: var(--black); }
.menu-open .site-header { color: var(--off); }
.menu-toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9375rem; padding: 8px 0; }
.menu-toggle .bars { position: relative; width: 22px; height: 22px; flex: none; }
.menu-toggle .bars::before, .menu-toggle .bars::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px;
  margin-top: -0.75px; border-radius: 999px; background: currentColor;
  transform-origin: 50% 50%;
  transition: transform 360ms var(--ease-out);
}
.menu-toggle .bars::before { transform: translateY(-3.25px); }
.menu-toggle .bars::after { transform: translateY(3.25px); }
.menu-open .menu-toggle .bars::before { transform: rotate(45deg); }
.menu-open .menu-toggle .bars::after { transform: rotate(-45deg); }

@media (max-width: 860px) {
  :root { --header-h: 80px; }
  .nav-links { display: none; }
}

/* ---------- Fullscreen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--black); color: var(--off);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 32px) var(--pad-x) max(28px, env(safe-area-inset-bottom));
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 380ms var(--ease-in-out), visibility 0s linear 380ms;
}
/* Prepare the clipped layer before the first entrance, not during its first visible frame. */
.menu.is-primed { visibility: visible; will-change: clip-path; transition: none; }
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 850ms var(--ease-in-out), visibility 0s; }
.menu-list { display: flex; flex-direction: column; gap: 2px; }
.menu-item { overflow: hidden; }
.menu-item a {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.035em;
  font-size: clamp(3rem, 15vw, 7rem); line-height: 1;
  padding-block: 4px;
  transition: color 180ms ease, transform 220ms var(--ease-out-ui);
}
.menu-item a > [data-i18n] { display: block; opacity: 0; transform: translateY(100%); transition: transform 220ms var(--ease-out-ui), opacity 180ms ease; }
.menu-open .menu-item a > [data-i18n] { opacity: 1; transform: none; transition-duration: 700ms, 440ms; transition-delay: calc(820ms + var(--i, 0) * 65ms); }
.menu-item a .num { font-family: var(--font-text); font-size: 0.8125rem; letter-spacing: 0; color: var(--gray-500); opacity: 0; transform: translateY(calc(-1.6em + 8px)); transition: opacity 140ms ease, transform 180ms var(--ease-out); }
.menu-open .menu-item a .num { opacity: 1; transform: translateY(-1.6em); transition-duration: 340ms, 450ms; transition-delay: calc(860ms + var(--i, 0) * 65ms); }
.menu-item a[aria-current="page"] { color: var(--gray-500); }
.menu-list:has(a:focus-visible) .menu-item a:not(:focus-visible):not(:hover) { color: var(--gray-500); }
.menu-list .menu-item a:focus-visible { color: var(--off); outline-offset: -2px; border-radius: 0; transition: none; }
.menu-item a:focus-visible .num { color: var(--off); }
@media (hover: hover) and (pointer: fine) {
  .menu-list:has(a:hover) .menu-item a:not(:hover):not(:focus-visible) { color: var(--gray-500); }
  .menu-list .menu-item a:hover { color: var(--off); transform: translateX(12px); }
  .menu-item a:hover .num { color: var(--off); }
}
@media (prefers-reduced-motion: reduce) {
  .menu-list .menu-item a:hover { transform: none; }
}
.menu-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; font-size: var(--fs-small); color: var(--gray-500); opacity: 0; transition: opacity 200ms ease; }
.menu-open .menu-foot { opacity: 1; transition: opacity 600ms ease 520ms; }
.menu-foot a { color: var(--off); }

/* ---------- Buttons ---------- */
.btn {
  --btn-fg: var(--fg);
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 22px 0 24px;
  border: 1px solid var(--line);
  border-color: color-mix(in srgb, var(--fg) 34%, transparent);
  border-radius: 999px;
  font-size: 0.9375rem; font-weight: 500; letter-spacing: 0;
  color: var(--btn-fg);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-press) var(--ease-out-ui), color 420ms var(--ease-out), border-color 420ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  background: var(--fg);
  border-radius: inherit;
  clip-path: inset(100% 0 0 0 round 999px);
  transition: clip-path 520ms var(--ease-out);
}
.btn .icon { width: 18px; height: 18px; transition: transform 520ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { color: var(--bg); border-color: var(--fg); }
  .btn:hover::before { clip-path: inset(0 0 0 0 round 999px); }
  .btn:hover .icon { transform: rotate(45deg); }
  .btn.btn-arrow-r:hover .icon { transform: translateX(3px); }
}
.btn-solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-solid::before { background: var(--bg); }
@media (hover: hover) and (pointer: fine) { .btn-solid:hover { color: var(--fg); } }
.btn-lg { height: 64px; padding: 0 28px 0 32px; font-size: 1.0625rem; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; position: relative; padding-block: 4px; }
.link-arrow::after { content: ""; position: absolute; left: 0; right: 28px; bottom: 0; height: 1px; background: currentColor; transform-origin: left; transition: transform 520ms var(--ease-out); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform 520ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover::after { transform: scaleX(0); transform-origin: right; }
  .link-arrow:hover .icon { transform: rotate(45deg); }
}

[data-magnetic] { will-change: auto; }

/* ---------- Media frame ---------- */
.media { position: relative; overflow: hidden; background: var(--black-3); }
.media > img, .media > video { position: absolute; inset: 0; }
.media .m-video { opacity: 0; transition: opacity 600ms var(--ease-out); }
.media.is-playing .m-video { opacity: 1; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-1x1 { aspect-ratio: 1; }
.ratio-21x9 { aspect-ratio: 21 / 9; }
.ratio-16x10 { aspect-ratio: 16 / 10; }
.ratio-3x2 { aspect-ratio: 3 / 2; }

/* ---------- Reveal system (content visible by default; JS opts in) ---------- */
.motion [data-reveal="fade"]:not(.is-in) { opacity: 0; transform: translateY(18px); }
.motion [data-reveal="fade"] { transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease-out); transition-delay: var(--d, 0ms); }

.motion [data-reveal="media"] { clip-path: inset(0 0 0 0); transition: clip-path 1400ms var(--ease-in-out); transition-delay: var(--d, 0ms); }
.motion [data-reveal="media"]:not(.is-in) { clip-path: inset(100% 0 0 0); }
.motion [data-reveal="media"] > img, .motion [data-reveal="media"] > video, .motion [data-reveal="media"] .media-inner { transform: scale(1); transition: transform 1800ms var(--ease-out), opacity 600ms var(--ease-out); transition-delay: var(--d, 0ms); }
.motion [data-reveal="media"]:not(.is-in) > img, .motion [data-reveal="media"]:not(.is-in) .media-inner { transform: scale(1.18); }

/* line masks generated by JS */
.line { display: block; overflow: hidden; padding-top: 0.16em; margin-top: -0.16em; padding-bottom: 0.08em; margin-bottom: -0.08em; } /* top room so carons on capitals (Š, Č, Ž) are not clipped */
.line-inner { display: block; transition: transform 1100ms var(--ease-out); transition-delay: calc(var(--d, 0ms) + var(--li, 0) * 80ms); }
.motion [data-reveal="lines"]:not(.is-in) .line-inner { transform: translateY(108%); }

/* rule draw */
.motion [data-reveal="rule"] { transform-origin: left; transition: transform 1400ms var(--ease-in-out); transition-delay: var(--d, 0ms); }
.motion [data-reveal="rule"]:not(.is-in) { transform: scaleX(0); }

/* scroll-linked word highlight */
.words .w { opacity: 0.18; transition: opacity 400ms ease; }
.words .w.on { opacity: 1; }
.no-motion .words .w, .words.static .w { opacity: 1; }

/* ---------- Intro loader (first visit per session only) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--black); color: var(--off);
  clip-path: inset(0 0 0 0);
}
.intro-word { display: flex; overflow: hidden; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.04em; font-size: clamp(3rem, 13vw, 12rem); line-height: 0.9; padding-bottom: 0.06em; }
.intro-word span { display: inline-block; transform: translateY(110%); }
.intro-count { position: absolute; bottom: var(--pad-x); right: var(--pad-x); font-size: var(--fs-small); color: var(--gray-500); }
.intro-place { position: absolute; bottom: var(--pad-x); left: var(--pad-x); font-size: var(--fs-small); color: var(--gray-500); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--black); color: var(--off); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img { position: absolute; inset: 0; opacity: 0; transition: opacity 1200ms var(--ease-out); }
.hero-media .is-active { opacity: 1; }
.hero-media .hero-poster { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(12,12,11,0.62) 0%, rgba(12,12,11,0.2) 16%, rgba(12,12,11,0) 30%),
    linear-gradient(to top, rgba(12,12,11,0.82) 0%, rgba(12,12,11,0.28) 46%, rgba(12,12,11,0.1) 100%);
}
.hero-inner { position: absolute; inset: auto 0 0 0; padding: 0 var(--pad-x) clamp(24px, 3.6vw, 52px); display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gutter); row-gap: 36px; align-items: end; }
.hero-title { grid-column: 1 / span 9; }
.hero-side { grid-column: 10 / -1; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; padding-bottom: 0.6vw; }
.hero-side p { font-size: var(--fs-body-l); line-height: 1.45; color: rgba(241,238,232,0.78); max-width: 34ch; }
.hero-bar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid rgba(241,238,232,0.2); font-size: var(--fs-small); color: rgba(241,238,232,0.72); }
.reel-meta { display: flex; align-items: center; gap: 16px; min-width: 0; }
.reel-progress { position: relative; width: 72px; height: 1px; background: rgba(241,238,232,0.25); overflow: hidden; flex: none; }
.reel-progress i { position: absolute; inset: 0; background: var(--off); transform-origin: left; transform: scaleX(0); }
.reel-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reel-play { display: inline-flex; align-items: center; gap: 10px; color: var(--off); }
.reel-play .dot { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(241,238,232,0.4); transition: transform var(--t-press) var(--ease-out-ui), background-color 300ms ease, color 300ms ease; }
.reel-play .dot .icon { width: 14px; height: 14px; }
.reel-play:active .dot { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .reel-play:hover .dot { background: var(--off); color: var(--black); } }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue .track { position: relative; width: 1px; height: 28px; background: rgba(241,238,232,0.25); overflow: hidden; }
.scroll-cue .track::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--off); animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

@media (max-width: 960px) {
  .hero-title { grid-column: 1 / -1; }
  .hero-side { grid-column: 1 / -1; flex-direction: column; }
  .hero-side p { max-width: 40ch; }
}
@media (max-width: 560px) {
  .hero { min-height: 600px; }
  .hero-inner { row-gap: 28px; }
  .hero-bar .scroll-cue { display: none; }
  .hero-side .btn { width: 100%; justify-content: space-between; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(72px, 12vw, 200px)); padding-bottom: var(--section-s); }
.page-hero .h-hero { max-width: 14ch; }
.page-hero-meta { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: clamp(32px, 4.4vw, 72px); } /* owner: no rule line on any page */
.page-hero-meta .body-l { max-width: 48ch; }
@media (max-width: 760px) { .page-hero-meta { flex-direction: column; align-items: flex-start; } }

/* ---------- Home: intro statement ---------- */
.statement { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gutter); row-gap: 48px; }
.statement .label { grid-column: 1 / span 3; padding-top: 0.7em; }
.statement .lead-xl { grid-column: 4 / -1; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-d2); line-height: 1.04; letter-spacing: -0.03em; text-wrap: pretty; }
.statement-foot { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--gutter); align-items: end; }
@media (max-width: 860px) {
  .statement .label, .statement .lead-xl, .statement-foot { grid-column: 1 / -1; }
  .statement-foot { grid-template-columns: 1fr; gap: 32px; }
}

/* Capability ticker */
.disciplines { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-small); color: var(--fg); white-space: nowrap; }

/* ---------- Section head ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(40px, 6vw, 96px); }
.sec-head .h-d1 { max-width: 24ch; }
.sec-head .count { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-d3); color: var(--fg-2); letter-spacing: -0.02em; }
@media (max-width: 640px) { .sec-head { flex-direction: column; align-items: flex-start; } }

/* ---------- Work: editorial showcase ---------- */
.showcase { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gutter); row-gap: clamp(48px, 6vw, 96px); }
.work-card { position: relative; display: block; }
.work-card .media { cursor: pointer; }
.work-card .wc-meta { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: baseline; padding-top: 18px; }
.work-card .wc-index { font-size: var(--fs-small); color: var(--fg-2); }
.work-card .wc-title { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-d3); letter-spacing: -0.025em; line-height: 1.02; }
.work-card .wc-cat { font-size: var(--fs-small); color: var(--fg-2); text-align: right; }
.work-card .wc-client { font-size: var(--fs-small); color: var(--fg-2); margin-top: 4px; grid-column: 2; }
.work-card .media > img { transition: transform 1400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .work-card:hover .media > img, .work-card:hover .media > video { transform: scale(1.035); }
  .work-card .media > video { transition: transform 1400ms var(--ease-out), opacity 600ms var(--ease-out); }
}
/* asymmetric placements */
.sc-feature { grid-column: 1 / -1; }
.sc-feature .wc-title { font-size: var(--fs-d2); }
.sc-a { grid-column: 1 / span 7; }
.sc-b { grid-column: 9 / -1; margin-top: clamp(40px, 8vw, 140px); }
.sc-c { grid-column: 2 / span 5; }
.sc-d { grid-column: 7 / -1; margin-top: clamp(-40px, -6vw, 0px); }
@media (max-width: 860px) {
  .sc-a, .sc-b, .sc-c, .sc-d { grid-column: 1 / -1; margin-top: 0; }
  .showcase { row-gap: 48px; }
}
@media (max-width: 560px) {
  .work-card .wc-meta { grid-template-columns: 1fr auto; }
  .work-card .wc-index { display: none; }
  .work-card .wc-client { grid-column: 1; }
}
.showcase-foot { display: flex; justify-content: center; margin-top: clamp(48px, 6vw, 96px); }

/* Cursor follower (fine pointer only) */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none;
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--off); color: var(--black);
  font-size: 0.75rem; font-weight: 500;
  transform: translate3d(-200px, -200px, 0);
}
.cursor span { transform: scale(0.4); opacity: 0; transition: transform 380ms var(--ease-out), opacity 200ms ease; }
.cursor .ring { position: absolute; inset: 0; border-radius: 50%; background: var(--off); transform: scale(0); transition: transform 420ms var(--ease-out); }
.cursor span { position: relative; }
.cursor.is-on .ring { transform: scale(1); }
.cursor.is-on span { transform: scale(1); opacity: 1; }
@media not ((hover: hover) and (pointer: fine)) { .cursor { display: none; } }

/* ---------- Services list (home + services) ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); }
.svc-btn {
  width: 100%; display: grid; grid-template-columns: minmax(48px, 1fr) 7fr 3fr auto; gap: var(--gutter); align-items: center;
  padding-block: clamp(22px, 2.8vw, 40px); text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.svc-no { font-size: var(--fs-small); color: var(--fg-2); align-self: start; padding-top: 0.7em; }
.svc-title { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-d2); letter-spacing: -0.035em; line-height: 0.95; transition: transform 600ms var(--ease-out), color 400ms ease; }
.svc-teaser { font-size: var(--fs-small); color: var(--fg-2); max-width: 30ch; }
.svc-toggle { position: relative; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: transform var(--t-press) var(--ease-out-ui), background-color 300ms ease, color 300ms ease; }
.svc-toggle::before, .svc-toggle::after { content: ""; position: absolute; width: 14px; height: 1.5px; background: currentColor; transition: transform 480ms var(--ease-out); }
.svc-toggle::after { transform: rotate(90deg); }
.svc.is-open .svc-toggle::after { transform: rotate(0deg); }
.svc-btn:active .svc-toggle { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .svc-list:hover .svc-title { color: var(--fg-2); }
  .svc-list .svc-btn:hover .svc-title { color: var(--fg); transform: translateX(14px); }
  .svc-btn:hover .svc-toggle { background: var(--fg); color: var(--bg); border-color: var(--fg); }
}
.svc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 560ms var(--ease-in-out); }
.svc.is-open .svc-panel { grid-template-rows: 1fr; }
.svc-panel > div { overflow: hidden; }
.svc-body { display: grid; grid-template-columns: minmax(48px, 1fr) 7fr 3fr auto; gap: var(--gutter); padding-bottom: clamp(28px, 3.6vw, 56px); opacity: 0; transform: translateY(10px); transition: opacity 300ms ease, transform 400ms var(--ease-out); }
.svc.is-open .svc-body { opacity: 1; transform: none; transition: opacity 600ms ease 160ms, transform 800ms var(--ease-out) 160ms; }
.svc-body .body-l { grid-column: 2; color: var(--fg); }
.svc-body ul { grid-column: 3 / -1; display: grid; gap: 8px; font-size: var(--fs-small); color: var(--fg-2); align-content: start; }
.svc-body ul li { display: flex; gap: 10px; }
.svc-body ul li::before { content: ""; width: 10px; height: 1px; background: currentColor; margin-top: 0.75em; flex: none; }
@media (max-width: 860px) {
  .svc-btn { grid-template-columns: 1fr auto; row-gap: 10px; }
  .svc-no { grid-column: 1 / -1; padding-top: 0; }
  .svc-title { grid-column: 1; }
  .svc-teaser { display: none; }
  .svc-toggle { grid-column: 2; grid-row: 2; }
  .svc-body { grid-template-columns: 1fr; row-gap: 24px; }
  .svc-body .body-l, .svc-body ul { grid-column: 1; }
}

/* floating preview image (fine pointer only) */
.float-preview {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: clamp(220px, 20vw, 340px); aspect-ratio: 4 / 5;
  margin: calc(clamp(220px, 20vw, 340px) * -0.625) 0 0 calc(clamp(220px, 20vw, 340px) * -0.5);
  overflow: hidden;
  clip-path: inset(50% 50% 50% 50%);
  transition: clip-path 520ms var(--ease-out);
}
.float-preview.is-on { clip-path: inset(0 0 0 0); }
.float-preview img { position: absolute; inset: 0; transition: opacity 300ms ease; }
@media not ((hover: hover) and (pointer: fine)) { .float-preview { display: none; } }

/* ---------- Clients ---------- */
.clients { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gutter); row-gap: 40px; align-items: start; }
.clients .label { grid-column: 1 / span 3; }
.client-list { grid-column: 4 / -1; display: flex; flex-wrap: wrap; gap: 0.1em 0.5em; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-d2); line-height: 1.05; letter-spacing: -0.03em; }
.client-list li { display: inline-flex; gap: 0.5em; }
.client-list li:not(:last-child)::after { content: "/"; color: var(--fg-2); font-weight: 400; }
@media (max-width: 860px) { .clients .label, .client-list { grid-column: 1 / -1; } }

/* ---------- Studio teaser ---------- */
.studio { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gutter); row-gap: 48px; align-items: end; }
.studio .media { grid-column: 1 / span 5; }
.studio-copy { grid-column: 7 / -1; display: flex; flex-direction: column; gap: 36px; }
@media (max-width: 860px) { .studio .media, .studio-copy { grid-column: 1 / -1; } }

/* ---------- Contact CTA ---------- */
.cta { position: relative; padding-top: var(--section); padding-bottom: clamp(40px, 5vw, 72px); }
.cta-title { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.04em; line-height: 0.86; font-size: clamp(3.4rem, 12.6vw, 14rem); }
.cta-title .muted { color: var(--fg-2); }
.cta-row { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gutter); row-gap: 32px; margin-top: clamp(48px, 7vw, 112px); align-items: end; }
.cta-mail { grid-column: 1 / span 7; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-d3); letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 0.35em; width: fit-content; position: relative; }
.cta-mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; background: currentColor; transform-origin: left; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .cta-mail:hover::after { transform: scaleX(0); transform-origin: right; } }
.cta-actions { grid-column: 9 / -1; justify-self: end; }
@media (max-width: 860px) { .cta-mail, .cta-actions { grid-column: 1 / -1; justify-self: start; } .cta-mail { font-size: clamp(1.25rem, 6vw, 2rem); } }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(56px, 7vw, 112px) var(--pad-x) max(20px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gutter); row-gap: 40px; font-size: var(--fs-small); }
.foot-col { grid-column: span 3; display: flex; flex-direction: column; gap: 8px; }
.foot-col h2 { font-size: var(--fs-small); font-weight: 400; color: var(--fg-2); margin-bottom: 8px; }
.foot-col a { width: fit-content; position: relative; }
.foot-col a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 420ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .foot-col a:hover::after { transform: scaleX(1); transform-origin: left; } }
.foot-word { margin-top: clamp(56px, 8vw, 128px); font-family: var(--font-display); font-weight: 500; letter-spacing: -0.045em; line-height: 0.76; font-size: 18vw; white-space: nowrap; overflow: hidden; padding-block: 0.06em 0.04em; }
.foot-word span { display: inline-block; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; margin-top: 16px; border-top: 1px solid var(--line); font-size: var(--fs-micro); color: var(--fg-2); }
.to-top { display: inline-flex; align-items: center; gap: 6px; }
.to-top .icon { transform: rotate(180deg); width: 14px; height: 14px; }
@media (max-width: 860px) { .foot-col { grid-column: span 6; } }

/* ---------- Work page ---------- */
.work-tools { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: clamp(40px, 6vw, 88px); position: sticky; top: 0; z-index: 30; background: var(--bg); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: var(--fs-small);
  transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease, transform var(--t-press) var(--ease-out-ui);
}
.filter sup { font-size: 0.65rem; color: var(--fg-2); transition: color 300ms ease; }
.filter:active { transform: scale(0.97); }
.filter[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filter[aria-pressed="true"] sup { color: var(--bg); opacity: 0.6; }
@media (hover: hover) and (pointer: fine) { .filter:not([aria-pressed="true"]):hover { border-color: var(--fg); } }
.view-switch { display: inline-flex; gap: 4px; font-size: var(--fs-small); }
.view-switch button { padding: 8px 10px; color: var(--fg-2); transition: color 300ms ease; }
.view-switch button[aria-pressed="true"] { color: var(--fg); }
@media (max-width: 640px) {
  .work-tools { position: static; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad-x) * -1); padding-inline: var(--pad-x); -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .view-switch { display: none; }
}

.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: clamp(40px, 4.5vw, 72px); }
.work-grid .work-card .wc-meta { grid-template-columns: 1fr auto; gap: 4px 12px; padding-top: 14px; }
.work-grid .work-card .wc-index { display: none; }
.work-grid .work-card .wc-title { font-size: clamp(1.15rem, 1.6vw, 1.5rem); }
.work-grid .work-card .wc-client { grid-column: 1; margin-top: 0; }
.work-grid .work-card .wc-cat { grid-column: 2; grid-row: 1; }
@media (max-width: 1100px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .work-grid { grid-template-columns: 1fr; } }

.work-index { border-top: 1px solid var(--line); }
.wi-row { display: grid; grid-template-columns: 7fr 3fr 2fr 1fr; gap: var(--gutter); align-items: baseline; padding-block: clamp(18px, 2vw, 28px); border-bottom: 1px solid var(--line); transition: color 400ms ease; }
.wi-row .wi-title { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-d3); letter-spacing: -0.025em; line-height: 1; transition: transform 600ms var(--ease-out); }
.wi-row .small { color: var(--fg-2); }
.wi-row .icon { justify-self: end; width: 20px; height: 20px; transition: transform 520ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .work-index:hover .wi-row { color: var(--fg-2); }
  .work-index .wi-row:hover { color: var(--fg); }
  .work-index .wi-row:hover .wi-title { transform: translateX(14px); }
  .work-index .wi-row:hover .icon { transform: rotate(45deg); }
}
@media (max-width: 860px) { .wi-row { grid-template-columns: 1fr auto; } .wi-row .wi-client { display: none; } }

.empty-state { padding-block: 80px; text-align: center; color: var(--fg-2); }

/* ---------- Project page ---------- */
.p-hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; color: var(--off); background: var(--black); isolation: isolate; }
.p-hero .media { position: absolute; inset: 0; z-index: -2; }
.p-hero .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(12,12,11,0.6) 0%, rgba(12,12,11,0) 24%), linear-gradient(to top, rgba(12,12,11,0.85) 0%, rgba(12,12,11,0.2) 50%, rgba(12,12,11,0.2) 100%); pointer-events: none; }
.p-hero-inner { position: absolute; inset: auto 0 0 0; padding: 0 var(--pad-x) clamp(28px, 4vw, 56px); }
.project-arrival .p-hero .media, .project-arrival .cp-shot .media { view-transition-name: project-media; }
/* Grid filter names belong to local reordering, not cross-document navigation. */
.page-navigation .work-card, .project-transition .work-card { view-transition-name: none !important; }
.p-hero .h-hero { max-width: 15ch; }
.p-hero-sub { display: flex; gap: 20px 40px; flex-wrap: wrap; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(241,238,232,0.22); font-size: var(--fs-small); color: rgba(241,238,232,0.75); }
.p-meta { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gutter); row-gap: 48px; }
.p-facts { grid-column: 1 / span 4; display: grid; grid-template-columns: 1fr 1fr; gap: 28px var(--gutter); align-content: start; }
.p-facts dt { font-size: var(--fs-small); color: var(--fg-2); margin-bottom: 6px; }
.p-facts dd { font-size: var(--fs-body); }
.p-facts .wide { grid-column: 1 / -1; }
.p-overview { grid-column: 6 / -1; display: flex; flex-direction: column; gap: 32px; }
@media (max-width: 860px) { .p-facts, .p-overview { grid-column: 1 / -1; } }
.p-gallery { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gutter); row-gap: var(--gutter); }
.g-full { grid-column: 1 / -1; }
.g-half { grid-column: span 6; }
.g-wide { grid-column: 1 / span 8; }
.g-narrow { grid-column: 9 / -1; align-self: end; }
.g-offset { grid-column: 4 / span 6; margin-block: clamp(40px, 6vw, 96px); }
@media (max-width: 760px) { .g-half, .g-wide, .g-narrow, .g-offset { grid-column: 1 / -1; margin-block: 0; } }
.p-gallery figcaption { font-size: var(--fs-small); color: var(--fg-2); padding-top: 12px; }
.p-quote { grid-column: 3 / span 8; padding-block: clamp(72px, 9vw, 160px); }
.p-quote p { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-d2); line-height: 1.04; letter-spacing: -0.03em; }
@media (max-width: 760px) { .p-quote { grid-column: 1 / -1; } }
.p-film { position: relative; }
.p-film .play-big { position: absolute; inset: 0; display: grid; place-items: center; color: var(--off); }
.p-film .play-big span { display: inline-flex; align-items: center; gap: 12px; height: 64px; padding: 0 28px; border-radius: 999px; background: rgba(12,12,11,0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(241,238,232,0.25); font-weight: 500; transition: transform var(--t-press) var(--ease-out-ui), background-color 300ms ease, color 300ms ease; }
.p-film .play-big:active span { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .p-film .play-big:hover span { background: var(--off); color: var(--black); } }
.p-film.is-active .play-big { display: none; }
.p-film video[controls] { position: absolute; inset: 0; opacity: 1; }
.p-credits { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gutter); row-gap: 24px; }
.p-credits .label { grid-column: 1 / span 4; }
.p-credits dl { grid-column: 6 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gutter); }
.p-credits dl div { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.p-credits dt { color: var(--fg-2); }
@media (max-width: 760px) { .p-credits .label, .p-credits dl { grid-column: 1 / -1; } .p-credits dl { grid-template-columns: 1fr; } }

.next-project { position: relative; display: block; overflow: hidden; color: var(--off); background: var(--black); isolation: isolate; }
.next-project .media { position: absolute; inset: 0; z-index: -1; }
.next-project .media::after { content: ""; position: absolute; inset: 0; background: rgba(12,12,11,0.62); transition: background-color 800ms var(--ease-out); }
.next-project .media img { transform: scale(1.06); transition: transform 1600ms var(--ease-out); }
.next-inner { min-height: 82svh; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 4vw, 56px) var(--pad-x); }
.next-inner .label { color: rgba(241,238,232,0.7); display: flex; justify-content: space-between; }
.next-title { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.04em; line-height: 0.88; font-size: var(--fs-d1); max-width: 14ch; transition: transform 900ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .next-project:hover .media::after { background: rgba(12,12,11,0.4); }
  .next-project:hover .media img { transform: scale(1); }
  .next-project:hover .next-title { transform: translateX(16px); }
}

/* ---------- Services page ---------- */
.svc-chapter { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gutter); row-gap: 48px; }
.svc-chapter-head { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gutter); align-items: end; }
.svc-chapter-head .num { grid-column: 1 / span 2; font-size: var(--fs-small); color: var(--fg-2); align-self: start; padding-top: 1em; }
.svc-chapter-head .h-d1 { grid-column: 3 / -1; }
.svc-chapter .media { grid-column: 1 / span 7; }
.svc-chapter .svc-copy { grid-column: 9 / -1; display: flex; flex-direction: column; gap: 36px; align-self: end; }
.svc-chapter.v1 .media { grid-column: 1 / -1; }
.svc-chapter.v1 .svc-copy { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gutter); row-gap: 32px; }
.svc-chapter.v1 .svc-copy > p { grid-column: 3 / span 5; }
.svc-chapter.v1 .svc-copy > ul { grid-column: 9 / -1; }
.svc-chapter.v2 .media { grid-column: 8 / -1; grid-row: 2; }
.svc-chapter.v2 .svc-copy { grid-column: 1 / span 5; grid-row: 2; align-self: start; padding-top: 8px; }
.svc-chapter.v4 .media { grid-column: 3 / span 4; }
.svc-chapter.v4 .svc-copy { grid-column: 8 / span 4; align-self: center; }
.cap-list { display: grid; border-top: 1px solid var(--line); }
.cap-list li { padding-block: 12px; border-bottom: 1px solid var(--line); font-size: var(--fs-small); display: flex; justify-content: space-between; gap: 16px; }
.cap-list li span:last-child { color: var(--fg-2); }
@media (max-width: 860px) {
  .svc-chapter-head .num, .svc-chapter-head .h-d1 { grid-column: 1 / -1; }
  .svc-chapter .media, .svc-chapter .svc-copy, .svc-chapter[class*=' v'] .media, .svc-chapter[class*=' v'] .svc-copy, .svc-chapter.v1 .svc-copy > * { grid-column: 1 / -1; grid-row: auto; }
  .svc-chapter.v1 .svc-copy { display: flex; }
}

/* Process: four solid blocks that rise and darken, so the order reads without numbers. */
.process { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(12px, 1.2vw, 20px); align-items: end; }
.step { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: var(--step-h); padding: clamp(24px, 2.4vw, 36px); border-radius: 14px; background: var(--step-bg); color: var(--step-fg); }
.step h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 2.1vw, 2.1rem); letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.step p { color: var(--step-fg2); font-size: 0.9375rem; line-height: 1.55; max-width: 34ch; }
.step:nth-child(1) { --step-h: 260px; --step-bg: #fff; --step-fg: var(--black); --step-fg2: var(--gray-600); }
.step:nth-child(2) { --step-h: 305px; --step-bg: #dbd8d1; --step-fg: var(--black); --step-fg2: #46443e; }
.step:nth-child(3) { --step-h: 350px; --step-bg: #55524b; --step-fg: var(--off); --step-fg2: #dcd9d2; }
.step:nth-child(4) { --step-h: 395px; --step-bg: var(--black); --step-fg: var(--off); --step-fg2: var(--gray-300); }
@media (max-width: 1000px) { .process { grid-template-columns: 1fr 1fr; align-items: stretch; } .step:nth-child(n) { --step-h: 240px; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } .step:nth-child(n) { --step-h: 0px; gap: 20px; } }

/* ---------- About page ---------- */
.about-split { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gutter); row-gap: 48px; }
.about-split .label { grid-column: 1 / span 3; }
.about-split .about-body { grid-column: 4 / span 8; display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 860px) { .about-split .label, .about-split .about-body { grid-column: 1 / -1; } }
.principles { border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gutter); row-gap: 16px; padding-block: clamp(28px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.principle h3 { grid-column: 1 / span 6; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-d2); letter-spacing: -0.03em; line-height: 0.98; }
.principle p { grid-column: 8 / -1; color: var(--fg-2); font-size: var(--fs-body-l); line-height: 1.55; align-self: end; }
@media (max-width: 860px) { .principle h3, .principle p { grid-column: 1 / -1; } }
.about-images { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gutter); align-items: end; }
.about-images .media:first-child { grid-column: 1 / span 7; }
.about-images .media:last-child { grid-column: 9 / -1; }
@media (max-width: 760px) { .about-images { row-gap: var(--gutter); } .about-images .media:first-child, .about-images .media:last-child { grid-column: 1 / -1; } }

/* ---------- Contact page ---------- */
.contact-hero { padding-bottom: clamp(40px, 5vw, 72px); }
.contact-hero .cta-title { font-size: var(--fs-hero); line-height: 0.9; letter-spacing: -0.035em; max-width: 14ch; }
.contact-intro { margin-top: clamp(28px, 3.6vw, 56px); }
.contact-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px var(--gutter); margin-top: clamp(36px, 4vw, 64px); padding-top: 20px; border-top: 1px solid var(--line); }
.contact-ways li:has([data-phone][hidden]) { display: none; }
.contact-ways .way-label { display: block; margin-bottom: 10px; font-size: var(--fs-small); color: var(--fg-2); }
.contact-ways .way-value { font-size: var(--fs-body-l); width: fit-content; overflow-wrap: anywhere; }
.contact-ways a.way-value { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.contact-ways .foot-socials a { display: inline-flex; align-items: center; gap: 8px; width: fit-content; }
.contact-ways .icon { width: 16px; height: 16px; transition: transform 420ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .contact-ways a:hover .icon { transform: rotate(45deg); } }
.contact-body { --bg: #fff; padding-block: var(--section-s) var(--section); }
.contact-layout { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gutter); row-gap: 64px; align-items: start; }
.contact-form { grid-column: 5 / -1; grid-row: 1; }
.contact-aside { grid-column: 1 / span 3; grid-row: 1; position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 28px; }
.contact-form > .h-d2 { margin-bottom: 16px; }
.form-req { color: var(--fg-2); margin-bottom: 40px; }
.form-part { margin-top: 36px; padding-bottom: 6px; font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.01em; border-bottom: 1px solid var(--fg); }
.form-req + form .form-part:first-child { margin-top: 0; }
.aside-title { font-size: var(--fs-small); font-weight: 400; color: var(--fg-2); }
.next-steps { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.next-steps li { display: grid; row-gap: 6px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.next-steps h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.15; }
.next-steps p { font-size: var(--fs-small); line-height: 1.55; color: var(--fg-2); }
@media (max-width: 960px) {
  .contact-form, .contact-aside { grid-column: 1 / -1; grid-row: auto; }
  .contact-aside { position: static; }
}
.field { position: relative; display: flex; flex-direction: column; gap: 10px; padding-block: 18px 6px; border-bottom: 1px solid var(--line); transition: border-color 300ms ease; }
.field:focus-within { border-color: var(--fg); }
.field label, .fieldset legend { font-size: var(--fs-small); color: var(--fg-2); }
.field.is-required label::after { content: " *"; color: var(--fg); }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; outline: 0; padding: 4px 0 12px;
  font-size: clamp(1.125rem, 1.6vw, 1.5rem); letter-spacing: -0.01em; color: var(--fg); border-radius: 0;
  caret-color: var(--fg);
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-2); opacity: 0.7; }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.45; }
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--bg); color: var(--fg); }
.field.has-select::after { content: ""; position: absolute; right: 4px; bottom: 28px; width: 8px; height: 8px; border-right: 1.5px solid var(--fg-2); border-bottom: 1.5px solid var(--fg-2); transform: rotate(45deg); pointer-events: none; }
.field.is-invalid { border-color: #e2725b; }
.field-error { font-size: var(--fs-small); color: #f0947f; min-height: 0; }
.field-light .field-error { color: #b3402a; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gutter); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.fieldset { border: 0; margin: 0; padding: 24px 0 24px; border-bottom: 1px solid var(--line); }
.fieldset legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; }
.choice-grid { clear: both; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice > span { display: inline-flex; align-items: center; gap: 0; height: 42px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-small); transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease, transform var(--t-press) var(--ease-out-ui); }
.choice > span .icon { width: 0; height: 14px; margin-right: 0; opacity: 0; transition: width 300ms var(--ease-out), margin-right 300ms var(--ease-out), opacity 200ms ease; }
.choice input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.choice input:checked + span .icon { width: 14px; margin-right: 8px; opacity: 1; }
.choice input:focus-visible + span { outline: 1.5px solid var(--fg); outline-offset: 3px; }
.choice input:active + span { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .choice input:not(:checked):hover + span { border-color: var(--fg); } }
.form-foot { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; margin-top: 40px; }
.form-foot-notes { display: flex; flex-direction: column; gap: 6px; flex: 1 1 240px; }
.form-foot .small { color: var(--fg-2); max-width: 44ch; }
.form-status { margin-top: 24px; font-size: var(--fs-body); }
.btn .spinner { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; animation: spin 600ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { padding-block: 48px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

/* ---------- Reel modal ---------- */
.reel-modal { position: fixed; inset: 0; z-index: 90; background: rgba(12,12,11,0.96); display: grid; place-items: center; padding: var(--pad-x); opacity: 0; visibility: hidden; transition: opacity 260ms ease, visibility 0s linear 260ms; }
.reel-modal.is-open { opacity: 1; visibility: visible; transition: opacity 400ms var(--ease-out), visibility 0s; }
.reel-modal .reel-frame { width: min(100%, 1400px); aspect-ratio: 16 / 9; max-height: 82svh; background: #000; transform: scale(0.96); transition: transform 500ms var(--ease-out); }
.reel-modal.is-open .reel-frame { transform: none; }
.reel-modal video { object-fit: contain; }
.reel-close { position: absolute; top: max(16px, env(safe-area-inset-top)); right: var(--pad-x); display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(241,238,232,0.3); color: var(--off); font-size: var(--fs-small); transition: transform var(--t-press) var(--ease-out-ui); }
.reel-close:active { transform: scale(0.97); }
.reel-close .icon { width: 16px; height: 16px; }

/* ---------- Placeholder notice ---------- */
.preview-note { position: fixed; left: var(--pad-x); top: calc(var(--header-h) + 4px); z-index: 80; display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 999px; background: var(--off); color: var(--black); font-size: var(--fs-micro); box-shadow: 0 6px 24px rgba(0,0,0,0.25); }
.preview-note button { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.preview-note .icon { width: 14px; height: 14px; }

/* ---------- Page transitions (cross-document View Transitions) ---------- */
@view-transition { navigation: auto; }
/* Default fade is the fallback; normal page arrivals use one top-to-bottom reveal. */
::view-transition-old(root) { animation: vt-out 220ms ease-out both; }
::view-transition-new(root) { animation: vt-in 260ms ease-out both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
.page-sweep::view-transition { background: var(--black); }
.page-sweep::view-transition-image-pair(root) { isolation: isolate; }
.page-sweep::view-transition-old(root) { mix-blend-mode: normal; animation: page-cover var(--t-page) var(--ease-in-out) both; }
.page-sweep::view-transition-new(root) { z-index: 1; mix-blend-mode: normal; animation: page-sweep var(--t-page) var(--ease-in-out) 160ms both; }
@keyframes page-cover {
  from { clip-path: inset(0 0 0 0); }
  to { clip-path: inset(100% 0 0 0); }
}
@keyframes page-sweep {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}
/* Hold the first viewport at its reveal start until the page curtain/media has settled. */
:is(.page-sweep, .project-arrival, .project-return, .page-slide) [data-page-arrival],
:is(.page-sweep, .project-arrival, .project-return, .page-slide) [data-page-arrival] .line-inner { transition: none !important; }
:is(.page-sweep, .project-arrival, .project-return, .page-slide) [data-page-arrival="lines"] .line-inner { transform: translateY(108%); }
:is(.page-sweep, .project-arrival, .project-return, .page-slide) [data-page-arrival="fade"] { opacity: 0; transform: translateY(18px); }
:is(.page-sweep, .project-arrival, .project-return, .page-slide) [data-page-arrival="media"] { clip-path: inset(100% 0 0 0); }
.page-sweep .site-header { transition: none; }
.page-sweep::view-transition-group(site-header) { animation: none; }
.page-sweep::view-transition-old(site-header) { animation: vt-out 140ms ease both; }
.page-sweep::view-transition-new(site-header) { animation: vt-in 240ms ease 320ms both; }
/* One movement: the clicked frame expands, then gives way to the hero's graded image.
   Keep scrims inside that frame so they cannot pop over it when the snapshot disappears. */
.project-transition::view-transition-old(root) { animation: vt-out 160ms ease both; }
.project-transition::view-transition-new(root) { animation: vt-in 320ms ease 160ms both; }
::view-transition-group(project-media) { animation-duration: var(--t-project); animation-timing-function: var(--ease-out); z-index: 2; }
::view-transition-image-pair(project-media) { isolation: isolate; overflow: clip; }
::view-transition-old(project-media), ::view-transition-new(project-media) { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
::view-transition-old(project-media) { animation: vt-out 320ms ease 120ms both; }
::view-transition-new(project-media) { animation: vt-in 440ms ease 80ms both; }
::view-transition-group(site-header) { z-index: 4; }
.project-transition::view-transition-group(site-header) { animation: none; }
.project-transition::view-transition-old(site-header) { animation: vt-out 160ms ease both; }
.project-transition::view-transition-new(site-header) { animation: vt-in 220ms ease 160ms both; }

/* Fallback load fade for browsers without cross-document transitions */
@supports not (view-transition-name: none) {
  body { animation: page-in 600ms var(--ease-out) both; }
  @keyframes page-in { from { opacity: 0; } }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
  ::view-transition-old(root), ::view-transition-new(root), ::view-transition-group(*) { animation-duration: 200ms !important; animation-name: vt-fade !important; }
  @keyframes vt-fade { from { opacity: 0; } }
  .scroll-cue .track::after { animation: none; }
  .menu, .menu-open .menu { transition: opacity 200ms ease, visibility 0s; clip-path: none; opacity: 0; }
  .menu-open .menu { opacity: 1; }
  .menu-item a, .menu-open .menu-item a { transform: none; transition: none; }
  .svc-panel { transition: none; }
  .svc-body, .svc.is-open .svc-body { transform: none; }
}

/* ---------- Additions ---------- */
.motion [data-reveal="lines"]:not(.is-split) { visibility: hidden; }
.no-intro .intro { display: none; }
.intro { animation: intro-failsafe 0s linear 4.5s forwards; }
@keyframes intro-failsafe { to { visibility: hidden; } }
.ratio-feature { aspect-ratio: 21 / 9; }
.foot-socials { display: flex; flex-direction: column; gap: 8px; }

.hero-bar .num, .reel-play { white-space: nowrap; }
@media (max-width: 420px) { .reel-label { display: none; } }

.tag-sample { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; margin-left: 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.6875rem; letter-spacing: 0.02em; color: var(--fg-2); vertical-align: middle; }
.p-hero .tag-sample { border-color: rgba(241,238,232,0.3); color: rgba(241,238,232,0.75); margin-left: 0; }
.hero-media { will-change: auto; }

/* ---------- Home: Web & Digital ---------- */
.web .rule { margin-bottom: clamp(56px, 7vw, 112px); }
.web-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gutter); row-gap: 64px; align-items: center; }
.web-copy { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 32px; }
.web-copy .h-d1 { max-width: 9ch; }
.web-list { border-top: 1px solid var(--line); }
.web-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.wl-t { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.2rem, 1.6vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.1; }
.wl-d { font-size: var(--fs-small); color: var(--fg-2); text-align: right; }
.web-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.web-devices { grid-column: 7 / -1; position: relative; padding-bottom: 12%; margin: 0; }
.device-desktop { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--black-2); }
.device-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); font-size: 0.6875rem; color: var(--fg-2); }
.device-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--black-3); border: 1px solid var(--line); }
.device-bar span { margin-left: auto; margin-right: auto; padding-right: 40px; }
.device-screen { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--black); }
.device-screen .scroller { position: absolute; inset: 0; object-fit: cover; object-position: 50% 0%; }
.device-phone { position: absolute; left: -6%; bottom: 0; width: 26%; padding: 6px; border-radius: 22px; background: var(--black); border: 1px solid var(--line-dark); box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.device-phone .device-screen { aspect-ratio: 9 / 19.5; border-radius: 16px; }
.web-devices figcaption { position: absolute; right: 0; bottom: 0; }
.web-devices.is-running .scroller { animation: screen-scroll 26s cubic-bezier(0.77, 0, 0.175, 1) infinite alternate; }
.web-devices.is-running .device-phone .scroller { animation-duration: 20s; animation-delay: -6s; }
@keyframes screen-scroll { 0%, 8% { object-position: 50% 0%; } 92%, 100% { object-position: 50% 100%; } }
@media (hover: hover) and (pointer: fine) { .web-devices:hover .scroller { animation-play-state: paused; } }
@media (max-width: 960px) {
  .web-copy, .web-devices { grid-column: 1 / -1; }
  .web-devices { padding-bottom: 18%; margin-left: 6%; }
  .web-devices figcaption { position: static; margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) { .web-devices.is-running .scroller { animation: none; } }

/* ---------- Logo ---------- */
.brand .logo { width: clamp(118px, 9.5vw, 150px); height: auto; }
.foot-logo { font-size: 0 !important; overflow: visible; }
.foot-logo .logo { width: 100%; height: auto; }
.intro-word .logo { width: clamp(220px, 46vw, 680px); height: auto; color: var(--off); }

/* ---------- Hero: client websites cycle ---------- */
.hero-media img { object-position: 50% 0%; }
.hero-media img.is-active { animation: hero-kb 9s linear both; }
@keyframes hero-kb { from { transform: scale(1.02); } to { transform: scale(1.08); } }
.hero::after {
  background:
    linear-gradient(to bottom, rgba(12,12,11,0.7) 0%, rgba(12,12,11,0.25) 18%, rgba(12,12,11,0.25) 40%),
    linear-gradient(to top, rgba(12,12,11,0.94) 0%, rgba(12,12,11,0.6) 45%, rgba(12,12,11,0.25) 100%);
}
@media (prefers-reduced-motion: reduce) { .hero-media img.is-active { animation: none; } }

/* ---------- Web project cards: screenshot scrolls on hover ---------- */
.work-card.is-web .media > img:first-child { object-position: 50% 0%; }
.media .m-scroll { opacity: 0; object-position: 50% 0%; transition: opacity 500ms var(--ease-out); }
.media.is-playing .m-scroll { opacity: 1; animation: screen-scroll 14s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate; }
@media (prefers-reduced-motion: reduce) { .media.is-playing .m-scroll { animation: none; } }

/* ---------- Home: content section (film & photo) ---------- */
.content-media { grid-column: 7 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: start; }
.content-media .media:last-child { margin-top: clamp(40px, 8vw, 140px); }
@media (max-width: 960px) { .content-media { grid-column: 1 / -1; } }

/* ---------- Project page: live site ---------- */
.p-visit { display: inline-flex; align-items: center; gap: 6px; color: var(--off); border-bottom: 1px solid rgba(241,238,232,0.4); }
.p-visit .icon { width: 14px; height: 14px; }
.web-devices-lg { padding-bottom: 8%; margin: 0 0 0 8%; }
.web-devices-lg .device-phone { width: 22%; left: -8%; }
.p-facts dd .link-arrow { font-weight: 400; }

/* Hero: real client sites, full-bleed and sharp, with a slow push-in */
.hero-media img { filter: none; transform-origin: var(--ho, 50% 100%); transform: scale(var(--hs, 1.14)); object-position: 50% 100%; }
.hero-media img.is-active { animation: hero-push 7s cubic-bezier(0.25, 0.1, 0.25, 1) both; }
@keyframes hero-push { from { transform: scale(var(--hs, 1.14)); } to { transform: scale(calc(var(--hs, 1.14) + 0.06)); } }
.hero::after {
  background:
    linear-gradient(to bottom, rgba(12,12,11,0.75) 0%, rgba(12,12,11,0.2) 22%, rgba(12,12,11,0) 38%),
    linear-gradient(to top, rgba(12,12,11,0.96) 0%, rgba(12,12,11,0.78) 34%, rgba(12,12,11,0.25) 62%, rgba(12,12,11,0.1) 100%),
    linear-gradient(to right, rgba(12,12,11,0.72) 0%, rgba(12,12,11,0.45) 40%, rgba(12,12,11,0) 72%);
}
.hero-title { grid-column: 1 / span 9; }
@media (max-width: 760px) {
  .hero-media img { --hs: 1.16; transform-origin: 50% 0%; transform: scale(1.16) translateY(-7%); object-position: 50% 0%; }
  .hero-media img.is-active { animation-name: hero-push-m; }
  @keyframes hero-push-m { from { transform: scale(1.16) translateY(-7%); } to { transform: scale(1.22) translateY(-7%); } }
  .hero::after { background: linear-gradient(to bottom, rgba(12,12,11,0.8) 0%, rgba(12,12,11,0.3) 16%, rgba(12,12,11,0.2) 34%, rgba(12,12,11,0.85) 58%, rgba(12,12,11,0.97) 100%); }
}
@media (prefers-reduced-motion: reduce) { .hero-media img.is-active { animation: none; } }

/* Web projects: the screenshot is atmosphere behind the title; the sharp site lives in the device frames */
.p-hero.is-web .media img { filter: blur(6px) brightness(0.62); transform: scale(1.04); }
.next-project.is-web .media img { filter: blur(5px) brightness(0.8); }
@media (hover: hover) and (pointer: fine) { .next-project.is-web:hover .media img { transform: scale(1.04); } }

/* ---------- Client logo wall ---------- */
.clients .logo-wall { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo-wall li { display: grid; place-items: center; aspect-ratio: 457 / 230; padding: 12% 10%; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-wall img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) contrast(1.05); mix-blend-mode: multiply; opacity: 0.72; transition: opacity 300ms ease, filter 300ms ease; }
@media (hover: hover) and (pointer: fine) { .logo-wall li:hover img { opacity: 1; filter: grayscale(0); } }
@media (max-width: 1100px) { .clients .logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .clients .logo-wall { grid-column: 1 / -1; } }
@media (max-width: 560px) { .clients .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Film gallery ---------- */
.ratio-9x16 { aspect-ratio: 9 / 16; }
.g-reel { grid-column: span 3; }
@media (max-width: 760px) { .g-reel { grid-column: span 6; } }
.p-gallery .p-film { margin: 0; }
.p-film .p-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.p-film.is-active > img { visibility: hidden; }

/* ---------- Player (Plyr themed to the monochrome system) ---------- */
.player, .player .plyr { position: absolute; inset: 0; width: 100%; height: 100%; }
.plyr {
  --plyr-color-main: var(--off);
  --plyr-video-background: #000;
  --plyr-font-family: var(--font-text);
  --plyr-font-size-base: 13px;
  --plyr-control-icon-size: 16px;
  --plyr-control-spacing: 10px;
  --plyr-control-radius: 999px;
  --plyr-video-control-color: var(--off);
  --plyr-video-control-color-hover: var(--black);
  --plyr-video-control-background-hover: var(--off);
  --plyr-video-controls-background: linear-gradient(to top, rgba(12,12,11,0.85), rgba(12,12,11,0));
  --plyr-range-thumb-background: var(--off);
  --plyr-range-thumb-height: 11px;
  --plyr-range-track-height: 2px;
  --plyr-range-fill-background: var(--off);
  --plyr-video-progress-buffered-background: rgba(241,238,232,0.25);
  --plyr-menu-background: var(--off);
  --plyr-menu-color: var(--black);
  --plyr-menu-radius: 10px;
  --plyr-tooltip-background: var(--off);
  --plyr-tooltip-color: var(--black);
  --plyr-badge-background: var(--black);
  height: 100%;
}
.plyr--video .plyr__control--overlaid { background: rgba(12,12,11,0.55); border: 1px solid rgba(241,238,232,0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 22px; }
.plyr--video .plyr__control--overlaid:hover { background: var(--off); color: var(--black); }
.plyr__video-wrapper, .plyr video { height: 100%; }
.plyr video { object-fit: contain; background: #000; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: max(64px, env(safe-area-inset-top)) var(--pad-x) 32px; background: rgba(12,12,11,0.96); opacity: 0; visibility: hidden; transition: opacity 260ms ease, visibility 0s linear 260ms; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 400ms var(--ease-out), visibility 0s; }
.lightbox-frame { position: relative; width: min(100%, 1400px); aspect-ratio: 16 / 9; max-height: 84svh; background: #000; transform: scale(0.96); transition: transform 500ms var(--ease-out); }
.lightbox-frame.is-vertical { width: auto; height: min(86svh, 900px); aspect-ratio: 9 / 16; max-width: 100%; }
.lightbox.is-open .lightbox-frame { transform: none; }

/* ---------- Reels strip (9:16) ---------- */
.reels { margin-top: clamp(56px, 7vw, 112px); }
.reels-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.reels-track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(180px, 18vw, 280px); gap: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: calc(var(--pad-x) * -1); padding-inline: var(--pad-x); scroll-padding-inline: var(--pad-x); scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.reels-track li { scroll-snap-align: start; }
.reel-card { display: block; width: 100%; cursor: pointer; border-radius: 0; }
.reel-card > img { transition: transform 1200ms var(--ease-out); }
.reel-card-meta { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 40px 14px 14px; font-size: var(--fs-small); color: var(--off); background: linear-gradient(to top, rgba(12,12,11,0.75), rgba(12,12,11,0)); text-align: left; }
.reel-card-meta .icon { width: 16px; height: 16px; }
.reel-card:active { transform: scale(0.98); transition: transform var(--t-press) var(--ease-out-ui); }
@media (hover: hover) and (pointer: fine) { .reel-card:hover > img { transform: scale(1.04); } }
@media (max-width: 560px) { .reels-track { grid-auto-columns: 58vw; } .reels-head { flex-direction: column; } }

/* ---------- Hero doors: choose web or film ---------- */
.hero-side { gap: 26px; }
.hero-doors { display: flex; flex-direction: column; width: 100%; border-top: 1px solid rgba(241,238,232,0.22); }
.door { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid rgba(241,238,232,0.22); color: var(--off); transition: padding 420ms var(--ease-out), background-color 300ms ease; }
.door .num { font-size: var(--fs-micro); color: rgba(241,238,232,0.6); align-self: start; padding-top: 6px; }
.door-body { display: flex; flex-direction: column; gap: 4px; }
.door-t { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.25rem, 1.7vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.05; }
.door-d { font-size: var(--fs-small); color: rgba(241,238,232,0.68); }
.door .icon { width: 20px; height: 20px; transition: transform 420ms var(--ease-out); }
.door:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .door:hover { padding-left: 14px; background: rgba(241,238,232,0.06); }
  .door:hover .icon { transform: translateY(3px); }
}
.hero-media video { object-fit: cover; }
@media (max-width: 960px) { .hero-side p { display: none; } }

/* ---------- Menu: links + contact details ---------- */
.menu { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); align-items: end; column-gap: var(--gutter); row-gap: 40px; overflow-y: auto; }
.menu-contact { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; padding-bottom: 8px; }
.menu-contact > * { opacity: 0; transform: translateY(14px); transition: opacity 140ms ease, transform 180ms var(--ease-out); }
.menu-contact > :nth-child(1) { --i: 0; }
.menu-contact > :nth-child(2) { --i: 1; }
.menu-contact > :nth-child(3) { --i: 2; }
.menu-contact > :nth-child(4) { --i: 3; }
.menu-open .menu-contact > * { opacity: 1; transform: none; transition-duration: 420ms, 550ms; transition-delay: calc(1040ms + var(--i, 0) * 70ms); }
.mc-block { display: flex; flex-direction: column; gap: 6px; width: 100%; padding-top: 14px; border-top: 1px solid var(--line-dark); }
.mc-block h2 { font-size: var(--fs-small); font-weight: 400; color: var(--gray-500); }
.mc-email { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.25rem, 1.8vw, 1.6rem); letter-spacing: -0.02em; color: var(--off); width: fit-content; }
.mc-phone, .menu-contact p { font-size: var(--fs-body-l); color: var(--off); }
.mc-socials { display: flex; flex-direction: column; gap: 4px; }
.mc-socials a { display: inline-flex; align-items: center; gap: 6px; color: var(--off); width: fit-content; }
.mc-socials .icon { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) { .mc-email:hover, .mc-socials a:hover { color: var(--gray-300); } }
@media (max-width: 860px) {
  .menu { grid-template-columns: 1fr; align-content: space-between; }
  .menu-contact { gap: 18px; }
  .menu-contact .btn { width: 100%; justify-content: space-between; }
}
/* Keyboard actions stay immediate; pointer animation never delays navigation. */
.menu-instant .menu, .menu-instant .menu *, .menu-instant .menu-toggle .bars::before, .menu-instant .menu-toggle .bars::after { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .menu-item a > [data-i18n], .menu-contact > * { transform: none; }
  .menu-item a > [data-i18n], .menu-open .menu-item a > [data-i18n] { transition: none; }
  .menu-item a .num, .menu-open .menu-item a .num { transform: translateY(-1.6em); transition: opacity 160ms ease; }
  .menu-contact > *, .menu-open .menu-contact > * { transition: opacity 160ms ease; }
}

/* Home showcases: simple 2 × 2 grid, same card as the Work page */
.showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: clamp(40px, 5vw, 80px); }
.showcase .work-card .wc-meta { grid-template-columns: 1fr auto; gap: 4px 12px; padding-top: 16px; }
.showcase .work-card .wc-index { display: none; }
.showcase .work-card .wc-title { font-size: clamp(1.3rem, 2vw, 1.9rem); }
.showcase .work-card .wc-client { grid-column: 1; margin-top: 0; }
.showcase .work-card .wc-cat { grid-column: 2; grid-row: 1; }
@media (max-width: 700px) { .showcase { grid-template-columns: 1fr; } }

/* Web cards: the screenshot sits as a screen on a quiet stage, so every site reads in one consistent frame */
.work-card.is-web .media { background: var(--black-2); }
.work-card.is-web .media > img,
.work-card.is-web .media > .m-scroll {
  inset: 8% 8% 0 8%; width: 84%; height: 92%;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 -1px 0 rgba(241,238,232,0.08), 0 20px 50px rgba(0,0,0,0.45);
  object-position: 50% 0%;
}
@media (hover: hover) and (pointer: fine) {
  .work-card.is-web:hover .media > img, .work-card.is-web:hover .media > .m-scroll { transform: translateY(-2%); }
}
.field-light .work-card.is-web .media, .field-warm .work-card.is-web .media { background: var(--paper-2); }

/* Cursor label: a small pill that trails the pointer (replaces the large circle) */
.cursor {
  width: auto; height: 28px; margin: 14px 0 0 14px; padding: 0 12px;
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; background: var(--off); color: var(--black);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.01em;
  opacity: 0; transition: opacity 180ms ease;
}
.cursor .ring { display: none; }
.cursor span { transform: none; opacity: 1; transition: none; }
.cursor .icon { width: 12px; height: 12px; }
.cursor.is-on { opacity: 1; }
.cursor.is-on span { transform: none; }

/* Reels strip arrows + edge fades */
.reels-side { display: flex; align-items: center; gap: 20px; }
.reels-nav { display: flex; gap: 8px; }
.reels-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--fg); transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease, opacity 300ms ease, transform var(--t-press) var(--ease-out-ui); }
.reels-arrow .icon { width: 18px; height: 18px; }
.reels-arrow:active:not(:disabled) { transform: scale(0.94); }
.reels-arrow:disabled { opacity: 0.3; cursor: default; }
@media (hover: hover) and (pointer: fine) { .reels-arrow:not(:disabled):hover { background: var(--fg); color: var(--bg); border-color: var(--fg); } }
.reels-viewport { position: relative; }
.reels-viewport::before, .reels-viewport::after { content: ""; position: absolute; top: 0; bottom: 12px; width: clamp(40px, 6vw, 96px); z-index: 1; pointer-events: none; opacity: 0; transition: opacity 300ms ease; }
.reels-viewport::before { left: calc(var(--pad-x) * -1); background: linear-gradient(to right, var(--bg), transparent); }
.reels-viewport::after { right: calc(var(--pad-x) * -1); background: linear-gradient(to left, var(--bg), transparent); }
.reels-viewport.has-prev::before, .reels-viewport.has-more::after { opacity: 1; }
@media (max-width: 560px) { .reels-side { width: 100%; justify-content: space-between; } }

/* Services: image lives inside the open panel, never over the text */
.ratio-4x3 { aspect-ratio: 4 / 3; }
.svc-body { grid-template-columns: minmax(48px, 1fr) 5fr 3fr 3fr; }
.svc-body .body-l { grid-column: 2; }
.svc-body ul { grid-column: 3; }
.svc-body .svc-media { grid-column: 4; align-self: start; }
@media (max-width: 860px) {
  .svc-body { grid-template-columns: 1fr; }
  .svc-body .body-l, .svc-body ul, .svc-body .svc-media { grid-column: 1; }
  .svc-body .svc-media { order: -1; }
}

/* Floating preview sits beside the pointer (offset handled in JS) */
.float-preview { margin: calc(clamp(180px, 15vw, 240px) * -0.625) 0 0 0; width: clamp(180px, 15vw, 240px); }

/* ---------- Services page: one consistent row per service ---------- */
.svc-rows { border-top: 1px solid var(--line); }
.svc-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 28px; padding-block: clamp(40px, 5vw, 80px); border-bottom: 1px solid var(--line); align-items: start; scroll-margin-top: var(--header-h); }
.svc-row-head { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 14px; }
.svc-row-body { grid-column: 5 / span 4; display: flex; flex-direction: column; gap: 22px; }
.svc-row-body .body-l { color: var(--fg); }
.svc-caps { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-caps li { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-micro); color: var(--fg-2); white-space: nowrap; }
.svc-row .media { grid-column: 9 / -1; }
@media (max-width: 960px) {
  .svc-row-head { grid-column: 1 / -1; }
  .svc-row-body { grid-column: 1 / span 7; }
  .svc-row .media { grid-column: 8 / -1; }
}
@media (max-width: 640px) {
  .svc-row-body, .svc-row .media { grid-column: 1 / -1; }
}

/* About: captioned shots linking to their projects */
.about-images .about-shot:first-child { grid-column: 1 / span 7; }
.about-images .about-shot:last-child { grid-column: 9 / -1; }
.about-shot { display: flex; flex-direction: column; gap: 14px; }
.about-cap { display: flex; flex-direction: column; gap: 2px; }
.about-cap-t { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.1rem, 1.5vw, 1.4rem); letter-spacing: -0.02em; }
.about-shot .media img { transition: transform 1400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .about-shot:hover .media img { transform: scale(1.035); } }
@media (max-width: 760px) { .about-images { row-gap: 40px; } .about-images .about-shot:first-child, .about-images .about-shot:last-child { grid-column: 1 / -1; } }

/* Web cards: slow, smooth page scroll on hover; eases back to the top on leave */
.work-card.is-web .media > img.web-scroll { object-position: 50% 0%; transition: object-position 1400ms cubic-bezier(0.22, 1, 0.36, 1), transform 900ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .work-card.is-web:hover .media > img.web-scroll { object-position: 50% 100%; transform: none; transition: object-position 9s cubic-bezier(0.45, 0, 0.55, 1) 250ms, transform 900ms var(--ease-out); }
}
@media (prefers-reduced-motion: reduce) { .work-card.is-web .media > img.web-scroll, .work-card.is-web:hover .media > img.web-scroll { object-position: 50% 0%; transition: none; } }

/* A playing film must be able to go fullscreen: drop the reveal mask / transforms that clip it */
.p-film.is-active, .motion .p-film.is-active[data-reveal="media"] { clip-path: none !important; overflow: visible; }
.p-film.is-active > img { transform: none !important; }
.lightbox.is-open .lightbox-frame { transform: none; }
.plyr--fullscreen-fallback { position: fixed !important; inset: 0 !important; z-index: 1000 !important; }

/* ---------- Photography ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 8px; column-gap: var(--gutter); row-gap: var(--gutter); grid-auto-flow: dense; }
.ph-item { margin: 0; }
.ph-btn { display: block; width: 100%; height: 100%; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.ph-btn .media { display: block; width: 100%; height: 100%; }
.ph-btn .media img { transition: transform 1200ms var(--ease-out), opacity 400ms ease, filter 400ms ease; }
.ph-btn:active { transform: scale(0.99); transition: transform var(--t-press) var(--ease-out-ui); }
@media (hover: hover) and (pointer: fine) {
  .photo-grid:hover .ph-btn .media img { opacity: 0.55; filter: grayscale(0.4); }
  .photo-grid .ph-btn:hover .media img { opacity: 1; filter: none; transform: scale(1.04); }
}
@media (max-width: 1100px) { .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; row-gap: 8px; } }

.photo-viewer { position: fixed; inset: 0; z-index: 96; background: rgba(12,12,11,0.97); display: grid; place-items: center; padding: 72px var(--pad-x) 32px; opacity: 0; visibility: hidden; transition: opacity 240ms ease, visibility 0s linear 240ms; }
.photo-viewer.is-open { opacity: 1; visibility: visible; transition: opacity 360ms var(--ease-out), visibility 0s; }
.pv-stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; height: 100%; justify-content: center; }
.pv-stage img { width: auto; height: auto; max-width: 100%; max-height: calc(100svh - 150px); object-fit: contain; opacity: 0; transform: scale(0.985); transition: opacity 320ms ease, transform 480ms var(--ease-out); }
.pv-stage img.is-loaded { opacity: 1; transform: none; }
.pv-cap { display: flex; gap: 20px; justify-content: space-between; width: min(100%, 900px); font-size: var(--fs-small); color: var(--gray-500); }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(241,238,232,0.3); color: var(--off); background: rgba(12,12,11,0.4); transition: background-color 300ms ease, color 300ms ease; }
.pv-nav .icon { width: 20px; height: 20px; }
.pv-prev { left: var(--pad-x); } .pv-next { right: var(--pad-x); }
.pv-nav:active { transform: translateY(-50%) scale(0.94); }
@media (hover: hover) and (pointer: fine) { .pv-nav:hover { background: var(--off); color: var(--black); } }
@media (max-width: 640px) { .pv-nav { top: auto; bottom: 20px; transform: none; width: 46px; height: 46px; } .pv-nav:active { transform: scale(0.94); } .pv-stage img { max-height: calc(100svh - 190px); } }

/* Photography inside Work: secondary category chips above the gallery */
.photo-wrap .filters-sub { margin-bottom: clamp(24px, 3vw, 40px); }
.photo-wrap .filters-sub .filter { height: 32px; padding: 0 12px; font-size: var(--fs-micro); }
.photo-wrap { margin-top: calc(clamp(40px, 6vw, 88px) * -0.6); }

/* Category pages (/work/web, /work/film, /work/photo) read as standalone pages:
   no "All / Web / Film / Photo" row there, only on /work. */
main[data-section="web"] [data-filters], main[data-section="film"] [data-filters], main[data-section="photo"] [data-filters] { display: none; }
main[data-section="photo"] .work-tools { display: none; }
main[data-section="photo"] .photo-wrap { margin-top: 0; }
main[data-section="web"] .work-tools, main[data-section="film"] .work-tools { justify-content: flex-end; }

.site-footer { position: relative; overflow: hidden; isolation: isolate; }

/* Footer dot field (canvas, behind content) */
.foot-dots { position: absolute; inset: 0; z-index: -2; pointer-events: none; }

/* Footer: larger, clearer type */
.foot-grid { font-size: clamp(1rem, 1.15vw, 1.125rem); row-gap: 48px; }
.foot-col { gap: 10px; }
.foot-col h2 { font-size: 0.8125rem; letter-spacing: 0.02em; color: var(--gray-300); margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.foot-col a, .foot-col p { color: var(--off); line-height: 1.4; }
.foot-col:first-child a[data-email] { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.25rem, 1.7vw, 1.6rem); letter-spacing: -0.02em; }
.foot-base { font-size: var(--fs-small); color: var(--gray-300); }
.foot-base .to-top .icon { width: 16px; height: 16px; }
@media (max-width: 860px) { .foot-col:first-child { grid-column: 1 / -1; } }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 5px; z-index: 75; pointer-events: none; mix-blend-mode: difference; }
.scroll-progress i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .scroll-progress i { animation: scroll-progress linear both; animation-timeline: scroll(root block); }
  @keyframes scroll-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
.menu-open .scroll-progress { opacity: 0; }

/* Web cards: full-bleed screenshot (no inner frame) */
.work-card.is-web .media { background: var(--black-3); }
.work-card.is-web .media > img,
.work-card.is-web .media > .m-scroll { inset: 0; width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .work-card.is-web:hover .media > img.web-scroll { transform: none; }
}

/* Everything that previews work is landscape 16:10 (the native shape of the site screenshots) */
.float-preview { width: clamp(260px, 22vw, 380px); aspect-ratio: 16 / 10; margin: calc(clamp(260px, 22vw, 380px) * -0.3125) 0 0 0; }
.float-preview img { object-position: 50% 0%; }
.about-images .about-shot:first-child { grid-column: 1 / span 6; }
.about-images .about-shot:last-child { grid-column: 7 / -1; }
@media (max-width: 760px) { .about-images .about-shot:first-child, .about-images .about-shot:last-child { grid-column: 1 / -1; } }

/* Mobile menu: everything fits one screen, no scrolling */
@media (max-width: 860px) {
  .menu { height: 100svh; overflow: hidden; padding-top: calc(var(--header-h) + 12px); padding-bottom: max(20px, env(safe-area-inset-bottom)); row-gap: 16px; grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; }
  .menu-list { justify-content: center; gap: 0; }
  .menu-item a { font-size: clamp(1.9rem, min(13vw, 6.4svh), 3.6rem); line-height: 1.04; padding-block: 2px; }
  .menu-item a .num { transform: translateY(-1.2em); }
  .menu-contact { gap: 12px; }
  .menu-contact .mc-block { padding-top: 10px; gap: 4px; }
  .menu-contact .mc-block:nth-of-type(3) { display: none; }
  .menu-contact .mc-block h2 { display: none; }
  .mc-email { font-size: 1.15rem; }
  .mc-socials { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
  .menu-contact .btn { height: 48px; }
}

/* Card focus on hover: the others dim to grey, the hovered card stays in colour */
@media (hover: hover) and (pointer: fine) {
  .work-card { transition: opacity 500ms var(--ease-out), filter 500ms var(--ease-out); }
  .work-grid:has(.work-card:hover) .work-card:not(:hover),
  .showcase:has(.work-card:hover) .work-card:not(:hover) { opacity: 0.32; filter: grayscale(1); }
  .work-card .wc-title { position: relative; width: fit-content; transition: transform 600ms var(--ease-out); }
  .work-card .wc-title::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease-out); }
  .work-card:hover .wc-title { transform: translateX(8px); }
  .work-card:hover .wc-title::after { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) { .work-card, .work-card .wc-title, .work-card .wc-title::after { transition: none; } }

/* ---------- Custom cursor: small ring → arrow disc over projects ---------- */
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
  html.has-cursor input, html.has-cursor textarea { cursor: text !important; }
  .cursor {
    width: 14px; height: 14px; margin: -7px 0 0 -7px; padding: 0; gap: 0;
    display: grid; place-items: center;
    border: 1.5px solid #fff; border-radius: 50%; background: transparent;
    mix-blend-mode: difference; color: var(--black);
    opacity: 0;
    transition: width 320ms var(--ease-out), height 320ms var(--ease-out), margin 320ms var(--ease-out),
                background-color 260ms ease, border-color 260ms ease, opacity 200ms ease;
  }
  .cursor.is-visible { opacity: 1; }
  .cursor .icon { width: 18px; height: 18px; opacity: 0; transform: scale(0.4) rotate(-45deg); transition: opacity 200ms ease, transform 420ms var(--ease-out); }
  .cursor.is-link { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
  .cursor.is-on { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: var(--off); border-color: var(--off); mix-blend-mode: normal; }
  .cursor.is-on .icon { opacity: 1; transform: none; }
  .cursor.is-text { opacity: 0; }
}

/* Web cards: ease back to the top slowly when the pointer leaves */
.work-card.is-web .media > img.web-scroll { transition: object-position 2600ms cubic-bezier(0.65, 0, 0.35, 1), transform 900ms var(--ease-out); }

/* ---------- Previous / next project ---------- */
.pn { display: flex; height: clamp(280px, 48svh, 480px); background: var(--black); color: var(--off); border-top: 1px solid var(--line-dark); }
.pn-link { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; isolation: isolate; display: flex; transition: flex-grow 800ms var(--ease-out); }
.pn-link + .pn-link { border-left: 1px solid var(--line-dark); }
.pn-link .media { position: absolute; inset: 0; z-index: -1; }
.pn-link .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,12,11,0.85), rgba(12,12,11,0.45) 60%, rgba(12,12,11,0.35)); transition: background-color 600ms ease, opacity 600ms ease; }
.pn-link .media img { transform: scale(1.08); filter: brightness(0.75); transition: transform 1400ms var(--ease-out), filter 800ms var(--ease-out); }
.pn-link.is-web .media img { object-position: 50% 0%; filter: blur(4px) brightness(0.7); }
.pn-inner { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; width: 100%; padding: clamp(20px, 3vw, 44px) var(--pad-x); }
.pn-next .pn-inner { align-items: flex-end; text-align: right; }
.pn-label { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-small); color: rgba(241,238,232,0.75); }
.pn-label .icon { width: 18px; height: 18px; transition: transform 600ms var(--ease-out); }
.pn-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 3.2vw, 3.2rem); letter-spacing: -0.03em; line-height: 1; max-width: 16ch; transition: transform 700ms var(--ease-out); }
.pn-meta { font-size: var(--fs-small); color: rgba(241,238,232,0.6); }
@media (hover: hover) and (pointer: fine) {
  .pn:hover .pn-link { flex-grow: 0.7; }
  .pn .pn-link:hover { flex-grow: 1.6; }
  .pn-link:hover .media img { transform: scale(1); filter: brightness(0.95); }
  .pn-link.is-web:hover .media img { filter: blur(0) brightness(0.9); }
  .pn:hover .pn-link:not(:hover) .media img { filter: grayscale(1) brightness(0.45); }
  .pn-prev:hover .pn-title { transform: translateX(-10px); }
  .pn-next:hover .pn-title { transform: translateX(10px); }
  .pn-prev:hover .pn-label .icon { transform: translateX(-6px); }
  .pn-next:hover .pn-label .icon { transform: translateX(6px); }
}
@media (max-width: 760px) {
  .pn { flex-direction: column; height: auto; }
  .pn-link { min-height: 32svh; }
  .pn-link + .pn-link { border-left: 0; border-top: 1px solid var(--line-dark); }
}
@media (prefers-reduced-motion: reduce) { .pn-link, .pn-link .media img, .pn-title, .pn-label .icon { transition: none; } }

/* Previous / next: slower, softer motion */
.pn-link { transition: flex-grow 1400ms cubic-bezier(0.65, 0, 0.35, 1); }
.pn-link .media::after { transition: background-color 1000ms ease, opacity 1000ms ease; }
.pn-link .media img { transition: transform 1800ms cubic-bezier(0.22, 1, 0.36, 1), filter 1200ms ease; }
.pn-title { transition: transform 1100ms cubic-bezier(0.22, 1, 0.36, 1); }
.pn-label .icon { transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) and (pointer: fine) {
  .pn:hover .pn-link { flex-grow: 0.8; }
  .pn .pn-link:hover { flex-grow: 1.35; }
}

/* Previous / next: medium pace; every state uses the same filter list so dimming fades instead of jumping */
.pn-link { transition: flex-grow 1000ms cubic-bezier(0.65, 0, 0.35, 1); }
.pn-link .media img { filter: blur(0px) grayscale(0) brightness(0.75); transition: transform 1300ms cubic-bezier(0.22, 1, 0.36, 1), filter 900ms ease; }
.pn-link.is-web .media img { filter: blur(4px) grayscale(0) brightness(0.7); }
.pn-title { transition: transform 850ms cubic-bezier(0.22, 1, 0.36, 1); }
.pn-label .icon { transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) and (pointer: fine) {
  .pn-link:hover .media img { filter: blur(0px) grayscale(0) brightness(0.95); }
  .pn-link.is-web:hover .media img { filter: blur(0px) grayscale(0) brightness(0.9); }
  .pn:hover .pn-link:not(:hover) .media img { filter: blur(0px) grayscale(1) brightness(0.45); }
  .pn:hover .pn-link.is-web:not(:hover) .media img { filter: blur(4px) grayscale(1) brightness(0.45); }
}

/* Previous / next: a touch quicker */
.pn-link { transition: flex-grow 750ms cubic-bezier(0.65, 0, 0.35, 1); }
.pn-link .media img { transition: transform 1000ms cubic-bezier(0.22, 1, 0.36, 1), filter 650ms ease; }
.pn-title { transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1); }
.pn-label .icon { transition: transform 550ms cubic-bezier(0.22, 1, 0.36, 1); }

/* Previous / next: the image keeps a fixed size and is pinned to the outer edge,
   so only the dividing edge moves (no cover re-framing while the halves resize). */
@media (min-width: 761px) {
  .pn-link .media { inset: 0 auto 0 auto; width: 66vw; }
  .pn-prev .media { left: 0; }
  .pn-next .media { right: 0; }
}
.pn-link .media img { transform: scale(1.02); }
@media (hover: hover) and (pointer: fine) {
  .pn-link:hover .media img { transform: scale(1); }
}

/* ---------- Language switch: pill with a sliding indicator ---------- */
.lang { position: relative; align-items: center; gap: 0; padding: 3px; border: 1px solid color-mix(in srgb, currentColor 28%, transparent); border-radius: 999px; }
.lang > span[aria-hidden] { display: none; }
.lang button { position: relative; z-index: 1; padding: 5px 10px; font-size: 0.75rem; letter-spacing: 0.04em; opacity: 0.6; border-radius: 999px; transition: opacity 250ms ease, color 300ms ease; }
.lang button[aria-pressed="true"] { opacity: 1; color: var(--black); }
.site-header.on-light .lang button[aria-pressed="true"] { color: var(--off); }
.lang::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 0; width: var(--lw, 0); transform: translateX(var(--lx, 0)); border-radius: 999px; background: currentColor; opacity: 0; transition: transform 520ms cubic-bezier(0.34, 1.4, 0.64, 1), width 520ms cubic-bezier(0.34, 1.4, 0.64, 1), opacity 200ms ease; }
.lang.has-pill::before { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .lang button:not([aria-pressed="true"]):hover { opacity: 1; } }
.lang button:active { transform: scale(0.94); transition: transform 120ms var(--ease-out-ui); }

/* Text swap: blur out, change language, blur back in */
.motion [data-i18n], .motion [data-i18n-html], .motion .work-card .wc-meta, .motion .p-overview, .motion .p-facts, .motion .pn-inner { transition: opacity 260ms ease, filter 260ms ease; }
.lang-out [data-i18n], .lang-out [data-i18n-html], .lang-out .work-card .wc-meta, .lang-out .p-overview, .lang-out .p-facts, .lang-out .pn-inner { opacity: 0.12; filter: blur(2px); transition-duration: 160ms; }
.lang-out .lang [data-lang], .lang-out .lang { opacity: 1; filter: none; }
@media (prefers-reduced-motion: reduce) { .lang::before { transition: none; } }

/* Section head action (replaces the count) */
.sec-head .sec-btn { flex: none; align-self: end; margin-bottom: 0.4em; }
@media (max-width: 640px) { .sec-head .sec-btn { align-self: flex-start; } }

/* Floating preview: stacked layers for the wipe transition */
.float-preview .fp-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; will-change: clip-path, transform; }

/* Grid / Index row scrolls with the page (no sticky bar) */
.work-tools { position: static; }
/* Film clips in the floating preview are framed on their centre (vertical 9:16 clips included) */
.float-preview video.fp-layer { object-position: 50% 50%; }

/* About: Camera | Code diptych */
.about-crafts .about-cap-t { font-size: clamp(1.6rem, 2.6vw, 2.6rem); }
.craft-screen .craft-scroll { object-position: 50% 0%; animation: screen-scroll 22s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate; }
@media (prefers-reduced-motion: reduce) { .craft-screen .craft-scroll { animation: none; } }

/* Footer wordmark: warped by an SVG displacement filter (see initFooterDots) */
.foot-logo { position: relative; }

/* Cursor stays on top of lightboxes / photo viewer; inside players and fullscreen the system pointer returns */
.cursor { z-index: 2000; }
html.has-cursor .plyr, html.has-cursor .plyr *,
html.has-cursor :fullscreen, html.has-cursor :fullscreen * { cursor: auto !important; }
html.has-cursor .plyr button, html.has-cursor .plyr input[type="range"] { cursor: pointer !important; }

/* Menu content starts earlier, overlapping the panel wipe */
.menu-open .menu-item a > [data-i18n] { transition-delay: calc(380ms + var(--i, 0) * 55ms); }
.menu-open .menu-contact > * { transition-delay: calc(560ms + var(--i, 0) * 60ms); }

/* Menu: a warm-white sweep races ahead of the black panel (open), then trails it back up (close) */
.menu-sweep {
  position: fixed; inset: 0; z-index: 54; pointer-events: none;
  background: var(--off);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 460ms var(--ease-in-out) 70ms, visibility 0s linear 530ms;
}
.menu-open .menu-sweep { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 720ms var(--ease-in-out), visibility 0s; }
.menu-open .menu { transition: clip-path 820ms var(--ease-in-out) 110ms, visibility 0s; }
.menu-instant .menu-sweep { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .menu-sweep { display: none; } }

/* Photography: same focus hover as the project grids (others dim to grey) */
@media (hover: hover) and (pointer: fine) {
  .ph-btn .media img { filter: grayscale(0); opacity: 1; transition: transform 1200ms var(--ease-out), opacity 500ms var(--ease-out), filter 500ms var(--ease-out); }
  .photo-grid:hover .ph-btn .media img { opacity: 1; filter: grayscale(0); }
  .photo-grid:has(.ph-btn:hover) .ph-item:not(:has(.ph-btn:hover)) .media img { opacity: 0.32; filter: grayscale(1); }
  .photo-grid .ph-btn:hover .media img { opacity: 1; filter: grayscale(0); transform: scale(1.04); }
}

/* What we do: calmer hover. No sideways step; the open service always stays bright. */
.svc-title { transition: color 450ms ease, opacity 450ms ease; transform: none !important; }
@media (hover: hover) and (pointer: fine) {
  .svc-list:hover .svc-title { color: var(--fg); opacity: 0.38; }
  .svc-list .svc-btn:hover .svc-title,
  .svc-list .svc.is-open .svc-title { opacity: 1; }
  .svc-list:not(:hover) .svc-title { opacity: 1; }
}

/* Footer links: springy grow on hover (the dot lens closes around them, see initFooterDots) */
.foot-col a { display: inline-block; transform-origin: left center; transition: transform 520ms cubic-bezier(0.34, 1.56, 0.64, 1), color 300ms ease; }
.foot-col a::after { display: none; }
@media (hover: hover) and (pointer: fine) {
  .foot-col a:hover { transform: scale(1.16); }
  .foot-col:hover a:not(:hover) { color: var(--gray-300); }
}
@media (prefers-reduced-motion: reduce) { .foot-col a { transition: color 200ms ease; } .foot-col a:hover { transform: none; } }

/* Footer: liquid blob behind the hovered link (replaces the scale-up) */
.foot-blob { position: absolute; left: 0; top: 0; z-index: 0; width: 0; height: 0; border-radius: 999px; background: var(--off); pointer-events: none; transform-origin: center; will-change: transform, width, height; }
.foot-grid, .foot-base { position: relative; z-index: 1; }
@media (hover: hover) and (pointer: fine) {
  .foot-col a:hover { transform: none; }
  .foot-col a, .foot-base a { transition: color 220ms ease; }
  .foot-col a.is-blob, .foot-base a.is-blob { color: var(--black) !important; }
  .foot-base a.is-blob .icon { color: var(--black); }
}
@media (prefers-reduced-motion: reduce) { .foot-blob { display: none; } }

/* Footer links: pill removed; springy grow returns (dots part around the hovered link) */
.foot-blob { display: none !important; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .foot-col a { transition: transform 560ms cubic-bezier(0.34, 1.45, 0.64, 1), color 300ms ease; }
  .foot-col a:hover { transform: scale(1.16); color: var(--off) !important; }
}

/* Footer links: underline draws in on hover, like the nav */
.foot-col a { position: relative; }
.foot-col a::after { display: block; content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 420ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .foot-col a:hover::after { transform: scaleX(1); transform-origin: left; } }
.foot-col a::after { transition: transform 550ms cubic-bezier(0.65, 0, 0.35, 1); }

/* Intro: logo drawn as an outline, then filled */
.intro { animation: intro-failsafe 0s linear 5.5s forwards; }
.intro-word { overflow: visible; }
.intro-logo { width: clamp(240px, 50vw, 720px); height: auto; color: var(--off); }
.intro-logo path { fill: currentColor; fill-opacity: 0; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }

/* Intro loading bar along the bottom edge (same weight as the scroll progress bar) */
.intro-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(241,238,232,0.08); }
.intro-bar i { display: block; height: 100%; background: var(--off); transform-origin: 0 50%; transform: scaleX(0); }
.intro-count, .intro-place { bottom: calc(var(--pad-x) + 8px); }

/* Intro percentage: large, riding the loading bar */
.intro-count {
  left: 0; right: auto; bottom: 14px; padding: 0 var(--pad-x);
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.04em; line-height: 0.9;
  font-size: clamp(3rem, 8vw, 7.5rem); color: var(--off);
  font-variant-numeric: tabular-nums; will-change: transform;
}
.intro-count small { font-size: 0.4em; letter-spacing: 0; margin-left: 0.08em; color: var(--gray-500); vertical-align: 0.9em; }
.intro-count { font-size: clamp(2rem, 4.2vw, 3.75rem); bottom: 12px; }
/* no stroke residue before the draw starts */
.intro-logo path { stroke-dasharray: 1 1.01; stroke-dashoffset: 1.01; stroke-opacity: 0; stroke-linecap: butt; }

/* Mobile: fixed header with a soft backdrop once the page scrolls */
@media (max-width: 860px) {
  .site-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: rgba(12,12,11,0.78);
    -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid rgba(241,238,232,0.08);
    opacity: 0; transition: opacity 300ms ease, background-color 300ms ease;
  }
  .site-header.is-solid::before { opacity: 1; }
  .site-header.on-light::before { background: rgba(255,255,255,0.82); border-bottom-color: rgba(12,12,11,0.08); }
  .menu-open .site-header::before { opacity: 0; }
  .site-header.is-hidden { transform: none; }
}
@media (max-width: 860px) {
  .site-header::before { background: rgba(12,12,11,0.94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  .site-header.on-light::before { background: rgba(255,255,255,0.95); }
}
/* backdrop drawn on the header itself (a pseudo-element under its content blended with the page in some engines) */
@media (max-width: 860px) {
  .site-header::before { display: none; }
  .site-header { transition: transform 480ms var(--ease-out), color 300ms ease, background-color 300ms ease, box-shadow 300ms ease; }
  .site-header.is-solid { background-color: rgba(12,12,11,0.96); box-shadow: 0 1px 0 rgba(241,238,232,0.08); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  .site-header.is-solid.on-light { background-color: rgba(255,255,255,0.97); box-shadow: 0 1px 0 rgba(12,12,11,0.08); }
  .menu-open .site-header.is-solid { background-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* Menu open over a light section: header ink is light again, so the active language text must be dark on the light pill */
.menu-open .site-header.on-light .lang button[aria-pressed="true"],
.menu-open .site-header .lang button[aria-pressed="true"] { color: var(--black); }

/* Project overview: large statement heading + story paragraphs */
.p-overview { gap: clamp(24px, 2.6vw, 36px); }
.p-headline { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 4.6vw, 4.6rem); line-height: 1; letter-spacing: -0.035em; color: var(--fg); max-width: 15ch; text-wrap: balance; }
.p-story { display: flex; flex-direction: column; gap: 1.1em; max-width: 60ch; }
.p-story .body-l { color: var(--fg-2); line-height: 1.6; }

/* ---------- Project: scroll-driven horizontal strip of website screens ---------- */
.hscroll { position: relative; }
.hs-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(16px, 2.4vw, 28px); }
.hs-head { display: flex; justify-content: space-between; align-items: baseline; }
.hs-track { display: flex; gap: var(--gutter); padding-inline: var(--pad-x); will-change: transform; }
.hs-item { margin: 0; flex: none; width: min(64vw, calc((100svh - 220px) * 1.6)); }
.hs-frame { border: 1px solid var(--line-dark); border-radius: 10px; overflow: hidden; background: var(--black-2); }
.hs-frame .device-bar { color: var(--gray-500); }
.hs-frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 0%; }
.hs-progress { height: 2px; }
.hs-progress i { display: block; height: 100%; background: var(--off); transform: scaleX(0); transform-origin: 0 50%; }
@media (max-width: 760px) { .hs-item { width: 84vw; } .hs-frame .device-bar { height: 24px; } }
/* reduced motion: plain horizontal scroller, no pinning */
.hscroll.is-static .hs-sticky { position: static; height: auto; padding-block: var(--section-s); }
.hscroll.is-static .hs-track { overflow-x: auto; scroll-snap-type: x mandatory; }
.hscroll.is-static .hs-item { scroll-snap-align: start; }
.hscroll.is-static .hs-progress { display: none; }
/* end spacer: the last screen stops with the same margin as the first */
.hs-track::after { content: ""; flex: none; width: calc(var(--pad-x) - var(--gutter)); min-width: 1px; }

/* Screen strip: bigger, frameless screenshots with a capture note */
.hs-item { width: min(78vw, calc((100svh - 150px) * 1.6)); }
.hs-frame { border: 0; border-radius: 0; background: transparent; }
.hs-frame img { box-shadow: 0 30px 80px rgba(0,0,0,0.45); }
.hs-title { display: inline-flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.hs-note { font-size: var(--fs-micro); color: var(--gray-600); letter-spacing: 0.02em; }
.hs-note::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: #e2725b; vertical-align: 1px; }
@media (max-width: 760px) { .hs-item { width: 88vw; } }
/* capture note sits under the strip, no dot */
.hs-note::before { display: none; }
.hs-foot { display: flex; flex-direction: column; gap: 12px; }
.hs-foot .hs-note { font-size: var(--fs-small); color: var(--gray-500); }
.hs-track { gap: clamp(32px, 4vw, 72px); }
.hs-track::after { width: calc(var(--pad-x) - clamp(32px, 4vw, 72px)); }
.hs-track { gap: clamp(48px, 7vw, 120px); }
.hs-track::after { width: 1px; margin-left: calc(var(--pad-x) - clamp(48px, 7vw, 120px)); }

/* Project hero: lighter blur on website screenshots; parallax-ready */
.p-hero.is-web .media img { filter: blur(2px) brightness(0.66); transform: scale(1.02); }
.p-hero > .media { will-change: transform; }

/* Web card tilt: 3D lean + inner parallax */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .work-card.is-web .media { transform-style: preserve-3d; will-change: transform; }
  /* Web cards show the whole 16:10 screenshot: no overscan zoom or parallax offset that would crop its edges. */
  .work-card.is-web .media > img.web-scroll { translate: none; scale: none; }
}

/* ---------- Project end: notes left, compact next / previous rows right ---------- */
.pn2 { padding: clamp(40px, 5vw, 80px) 0; }
.pn2-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.pn2-notes { display: grid; gap: 10px; max-width: 58ch; font-size: 0.8125rem; line-height: 1.6; color: var(--fg-2); }
.pn2-notes .label { margin-bottom: 4px; }
.pn2-notes p { margin: 0; }
.pn2-rows { border-top: 1px solid var(--line); }
.pn2-row { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: clamp(96px, 9vw, 130px) minmax(0, 1fr) clamp(64px, 5.5vw, 84px) auto; align-items: center; gap: clamp(12px, 1.6vw, 24px); padding: clamp(14px, 1.4vw, 20px) clamp(10px, 1.2vw, 16px); border-bottom: 1px solid var(--line); color: var(--fg); transition: color 450ms var(--ease-out), opacity 450ms ease; }
/* Dark fill rises from the bottom edge on hover. */
.pn2-fill { position: absolute; inset: 0; z-index: -1; background: var(--black); transform: scaleY(0); transform-origin: 50% 100%; transition: transform 600ms var(--ease-out); }
.pn2-dir { white-space: nowrap; color: var(--fg-2); transition: color 450ms ease; }
.pn2-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem, 1.7vw, 1.7rem); letter-spacing: -0.02em; line-height: 1.1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn2-title > span { display: inline-block; transition: transform 650ms var(--ease-out); }
/* Cover has its own slot (never over text) and morphs into the next hero on click. */
.pn2-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; clip-path: inset(50% 0 50% 0); transition: clip-path 650ms var(--ease-out); }
.pn2-thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); transition: transform 1000ms var(--ease-out); }
.pn2-arrow { display: grid; place-items: center; width: 36px; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; transition: background-color 450ms ease, border-color 450ms ease, color 450ms ease; }
.pn2-arrow .icon { width: 15px; height: 15px; transition: transform 550ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .pn2-row:hover { color: var(--off); }
  .pn2-row:hover .pn2-fill { transform: scaleY(1); }
  .pn2-row:hover .pn2-dir { color: rgba(241,238,232,0.6); }
  .pn2-row:hover .pn2-title > span { transform: translateX(8px); }
  .pn2-row:hover .pn2-thumb { clip-path: inset(0 0 0 0); }
  .pn2-row:hover .pn2-thumb img { transform: scale(1); }
  .pn2-row:hover .pn2-arrow { background: var(--off); border-color: var(--off); color: var(--black); }
  .pn2-next:hover .pn2-arrow .icon { transform: translateX(2px); }
  .pn2-prev:hover .pn2-arrow .icon { transform: translateX(-2px); }
  /* The other row steps back so the hovered one reads clearly. */
  .pn2-rows:hover .pn2-row:not(:hover) { opacity: 0.45; }
}
@media (hover: none), (pointer: coarse) { .pn2-thumb { clip-path: none; } .pn2-thumb img { transform: none; } }
@media (max-width: 860px) {
  .pn2-grid { grid-template-columns: 1fr; }
  .pn2-rows { order: -1; }
  .pn2-row { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "thumb dir arrow" "thumb title arrow"; row-gap: 4px; column-gap: 14px; padding-inline: 0; }
  .pn2-thumb { grid-area: thumb; }
  .pn2-dir { grid-area: dir; }
  .pn2-title { grid-area: title; }
  .pn2-arrow { grid-area: arrow; }
}
@media (prefers-reduced-motion: reduce) { .pn2 * { transition: none !important; } }
/* Back from a project: cards are already in place, so no reveal sweep may replay under the landing image. */
.project-return .work-card, .project-return .work-card * { transition: none !important; }

/* Reel strip: same scroll-driven travel as the web screens, sized by height so 9:16 frames fit the viewport. */
.hs-reels .hs-item { width: calc((100svh - 240px) * 9 / 16); max-width: 72vw; }
.hs-reels .hs-track { gap: clamp(20px, 2.4vw, 40px); }
.hs-reels .hs-track::after { width: 1px; margin-left: calc(var(--pad-x) - clamp(20px, 2.4vw, 40px)); }
.hs-reels .p-film { box-shadow: 0 30px 80px rgba(0,0,0,0.45); }
.hs-reels figcaption { margin-top: 12px; font-size: var(--fs-small); color: var(--gray-500); }

/* The ring lives above page transitions: the outgoing copy is dropped and the new page's live
   cursor shows at once, so it keeps following the mouse instead of freezing in the old snapshot. */
.has-cursor .cursor { view-transition-name: lp-cursor; }
/* Navigation feedback stays visible above the page curtain. */
.has-cursor .cursor.is-loading { z-index: 10002; width: 14px; height: 14px; margin: -7px 0 0 -7px; opacity: 1; background: transparent; border-color: #fff; mix-blend-mode: difference; }
.cursor.is-loading .icon { opacity: 0; }
.cursor::after { content: ""; position: absolute; inset: -7px; border: 1.5px solid transparent; border-top-color: #fff; border-right-color: rgba(255,255,255,0.35); border-radius: 50%; opacity: 0; pointer-events: none; }
.cursor.is-loading::after { opacity: 1; animation: cursor-loading 800ms linear infinite; }
@keyframes cursor-loading { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cursor.is-loading::after { animation: none; } }
::view-transition-group(lp-cursor) { z-index: 100; animation: none; }
::view-transition-old(lp-cursor) { display: none; }
::view-transition-new(lp-cursor) { animation: none; }

/* Next / previous project: the whole page slides — next comes in from the right, previous from the left.
   The outgoing page drifts a shorter distance and darkens, so the move reads as depth, not a wipe. */
.page-slide::view-transition { background: var(--black); }
.page-slide::view-transition-image-pair(root) { isolation: isolate; }
.page-slide::view-transition-old(root), .page-slide::view-transition-new(root) { mix-blend-mode: normal; animation-duration: 1050ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; }
.page-slide::view-transition-new(root) { z-index: 1; box-shadow: 0 0 120px rgba(0,0,0,0.5); }
.slide-next::view-transition-old(root) { animation-name: slide-old-next; }
.slide-next::view-transition-new(root) { animation-name: slide-new-next; }
.slide-prev::view-transition-old(root) { animation-name: slide-old-prev; }
.slide-prev::view-transition-new(root) { animation-name: slide-new-prev; }
.page-slide::view-transition-group(site-header) { animation: none; }
.page-slide::view-transition-old(site-header) { animation: vt-out 200ms ease both; }
.page-slide::view-transition-new(site-header) { animation: vt-in 300ms ease 700ms both; }
/* Distances in vw, not %: a % moves by the snapshot's width, which can be wider than the screen
   (e.g. a project page with a horizontal gallery on tablet Safari), so the old page flew past the edge. */
@keyframes slide-old-next { to { transform: translateX(-30vw); filter: brightness(0.4); } }
@keyframes slide-new-next { from { transform: translateX(100vw); } }
@keyframes slide-old-prev { to { transform: translateX(30vw); filter: brightness(0.4); } }
@keyframes slide-new-prev { from { transform: translateX(-100vw); } }
.page-slide::view-transition-old(root), .page-slide::view-transition-new(root) { width: 100vw; object-fit: cover; object-position: 0 0; }

/* Language switch lives in the menu now. */
.mc-lang .lang { align-self: flex-start; margin-top: 4px; }

/* Phones: page screens stack one under another; reels become a native swipe row. */
.hscroll.is-mobile .hs-sticky { position: static; height: auto; padding-block: var(--section-s); }
.hscroll.is-mobile .hs-progress, .hscroll.is-mobile [data-hs-count] { display: none; }
.hscroll.is-mobile:not(.hs-reels) .hs-track { flex-direction: column; gap: 20px; transform: none !important; }
.hscroll.is-mobile:not(.hs-reels) .hs-track::after { display: none; }
.hscroll.is-mobile:not(.hs-reels) .hs-item { width: 100%; }
.hs-reels.is-mobile .hs-track { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad-x); transform: none !important; scrollbar-width: none; }
.hs-reels.is-mobile .hs-item { width: 64vw; max-width: none; scroll-snap-align: start; }

/* ---------- 404 ---------- */
.err { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; display: grid; place-items: center; padding: calc(var(--header-h) + 40px) var(--pad-x) 64px; text-align: center; }
.err-dots { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.err-inner { display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 2vw, 24px); width: 100%; }
.err-kicker { color: var(--gray-500); }
.err-num { display: block; width: min(92vw, 1100px); height: auto; overflow: visible; color: var(--off); }
.err-num text { font-family: var(--font-display); font-weight: 500; font-size: 400px; letter-spacing: -0.06em; fill: currentColor; }
.err-text { max-width: 38ch; color: rgba(241,238,232,0.72); }
.err-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; margin-top: 8px; }
.err-link { font-size: var(--fs-small); color: rgba(241,238,232,0.72); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: color 300ms ease, background-size 550ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .err-link:hover { color: var(--off); background-size: 100% 1px; } }

/* ---------- About crafts: camera viewfinder + live editor ---------- */
.cam-hud, .code-hud { position: absolute; inset: 0; z-index: 2; pointer-events: none; color: var(--off); font-size: 0.6875rem; letter-spacing: 0.06em; }
.cam-hud { --ci: 18px; opacity: 0; transition: opacity 600ms ease; }
.cam-hud.is-live { opacity: 1; }
.ch-c { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(241,238,232,0.85); transition: inset 700ms var(--ease-out), transform 700ms var(--ease-out); }
.ch-tl { top: var(--ci); left: var(--ci); border-top-width: 1.5px; border-left-width: 1.5px; }
.ch-tr { top: var(--ci); right: var(--ci); border-top-width: 1.5px; border-right-width: 1.5px; }
.ch-bl { bottom: var(--ci); left: var(--ci); border-bottom-width: 1.5px; border-left-width: 1.5px; }
.ch-br { bottom: var(--ci); right: var(--ci); border-bottom-width: 1.5px; border-right-width: 1.5px; }
.ch-rec { position: absolute; top: calc(var(--ci) + 4px); left: calc(var(--ci) + 32px); display: inline-flex; align-items: center; gap: 6px; }
.ch-rec b { width: 7px; height: 7px; border-radius: 50%; background: var(--off); animation: rec-blink 1.2s steps(1) infinite; }
@keyframes rec-blink { 50% { opacity: 0.15; } }
.ch-tc { position: absolute; top: calc(var(--ci) + 4px); right: calc(var(--ci) + 32px); font-variant-numeric: tabular-nums; }
.ch-exp { position: absolute; bottom: calc(var(--ci) + 4px); left: calc(var(--ci) + 32px); opacity: 0.75; }
.ch-focus { position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; translate: -50% -50%; border: 1px solid rgba(241,238,232,0.55); transition: transform 500ms var(--ease-out), border-color 300ms ease; }
.ch-focus i { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; translate: -50% -50%; background: linear-gradient(currentColor, currentColor) 50% 0 / 1px 100% no-repeat, linear-gradient(currentColor, currentColor) 0 50% / 100% 1px no-repeat; opacity: 0.7; }
@media (hover: hover) and (pointer: fine) {
  .about-shot:hover .cam-hud { --ci: 34px; }
  .about-shot:hover .ch-focus { border-color: var(--off); animation: focus-lock 700ms var(--ease-out) both; }
}
@keyframes focus-lock { 0% { transform: scale(1.35); } 55% { transform: scale(0.92); } 70% { opacity: 0.4; } 80% { opacity: 1; } 100% { transform: scale(1); } }

.code-hud { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: clamp(12px, 1.6vw, 22px); }
.cd-editor { width: min(64%, 360px); background: rgba(12,12,11,0.82); border: 1px solid rgba(241,238,232,0.12); border-radius: 8px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); overflow: hidden; opacity: 0; transform: translateY(12px); transition: opacity 600ms ease, transform 700ms var(--ease-out); }
.cd-bar { display: flex; align-items: center; gap: 5px; padding: 7px 10px; border-bottom: 1px solid rgba(241,238,232,0.08); color: rgba(241,238,232,0.5); }
.cd-bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(241,238,232,0.22); }
.cd-bar span { margin-left: 6px; letter-spacing: 0.02em; }
.cd-code { margin: 0; padding: 10px 12px 12px; min-height: 6.4em; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.6875rem; line-height: 1.6; letter-spacing: 0; color: rgba(241,238,232,0.62); white-space: pre; }
.cd-code .ln { display: inline-block; width: 1.6em; color: rgba(241,238,232,0.22); user-select: none; }
.cd-code .t { color: var(--off); }
.cd-code .a { color: rgba(241,238,232,0.78); }
.cd-code .s { color: rgba(241,238,232,0.45); }
.cd-code .caret { display: inline-block; width: 6px; height: 1.1em; margin-left: 1px; vertical-align: -0.2em; background: var(--off); animation: rec-blink 1s steps(1) infinite; }
.cd-score { position: relative; display: grid; place-items: center; width: 64px; opacity: 0; transform: translateY(12px); transition: opacity 600ms ease 150ms, transform 700ms var(--ease-out) 150ms; }
.cd-score svg { width: 52px; height: 52px; transform: rotate(-90deg); }
.cd-score circle { fill: none; stroke-width: 3; }
.cd-track { stroke: rgba(241,238,232,0.18); }
.cd-ring { stroke: var(--off); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1400ms cubic-bezier(0.22, 1, 0.36, 1) 150ms; }
.cd-score .num { position: absolute; top: 26px; translate: 0 -50%; font-size: 0.875rem; font-weight: 500; letter-spacing: 0; }
.cd-score small { margin-top: 4px; font-size: 0.625rem; color: rgba(241,238,232,0.6); }
.code-hud.is-live .cd-editor, .code-hud.is-live .cd-score { opacity: 1; transform: none; }
.code-hud.is-live .cd-ring { stroke-dashoffset: 0; }
.cd-score { filter: drop-shadow(0 4px 18px rgba(0,0,0,0.5)); }
@media (max-width: 760px) { .ch-exp { display: none; } .cd-editor { width: 78%; } .cd-code { font-size: 0.625rem; } }
@media (prefers-reduced-motion: reduce) { .ch-rec b, .cd-code .caret { animation: none; } }

/* Trusted by — light field, black logos; one random cell at a time is swapped under a wiping block. */
.clients .logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.logo-wall li { position: relative; overflow: hidden; aspect-ratio: 457 / 250; }
/* Grayscale keeps each logo's inner detail (flattening to black turned filled marks into blobs). */
.logo-wall img { position: absolute; inset: 22% 16%; width: 68%; height: 56%; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.1); opacity: 0.85; }
@media (hover: hover) and (pointer: fine) { .logo-wall li:hover img { opacity: 1; filter: grayscale(0); } }
.lw-block { position: absolute; inset: 0; z-index: 1; background: var(--fg); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.logo-wall li.is-wiping .lw-block { animation: lw-wipe 940ms cubic-bezier(0.76, 0, 0.24, 1) both; }
@keyframes lw-wipe {
  0% { transform: scaleX(0); transform-origin: 0 50%; }
  45% { transform: scaleX(1); transform-origin: 0 50%; }
  55% { transform: scaleX(1); transform-origin: 100% 50%; }
  100% { transform: scaleX(0); transform-origin: 100% 50%; }
}
@media (max-width: 1100px) { .clients .logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .clients .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Crafts — captions read as an answer (number, short statement, one line, link), not as a project card. */
.about-crafts .about-shot { gap: 22px; }
.craft-cap { display: grid; gap: 10px; }
.craft-no { font-size: var(--fs-small); color: var(--gray-500); letter-spacing: 0.04em; }
.craft-no span { margin-left: 8px; }
.craft-q { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 4.4vw, 4.4rem); letter-spacing: -0.035em; line-height: 0.95; }
.craft-a { max-width: 38ch; font-size: var(--fs-body); line-height: 1.5; color: rgba(241,238,232,0.7); }
.craft-more { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; font-size: var(--fs-small); width: max-content; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 600ms var(--ease-out); }
.craft-more .icon { width: 16px; height: 16px; transition: transform 600ms var(--ease-out); }
/* Camera: a rack focus on hover — the shot slips soft, then pulls sharp. */
@keyframes rack-focus { 0% { filter: blur(0); } 35% { filter: blur(7px); } 100% { filter: blur(0); } }
/* Code: a highlight bar runs through the lines while the editor lifts. */
.cd-code { position: relative; }
.cd-code::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 1.6em; background: rgba(241,238,232,0.07); opacity: 0; pointer-events: none; }
@keyframes line-scan { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(calc(1.6em * 3)); opacity: 1; } }
@media (hover: hover) and (pointer: fine) {
  .about-shot:hover .craft-more { background-size: 100% 1px; }
  .about-shot:hover .craft-more .icon { transform: translateX(6px); }
  .about-shot:first-child:hover .media > img, .about-shot:first-child:hover .media > video { animation: rack-focus 900ms var(--ease-out) both; }
  .about-shot:hover .cd-editor { transform: translateY(-8px) scale(1.02); box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
  .about-shot:hover .cd-code::before { animation: line-scan 1.6s steps(4, jump-none) infinite; }
  .about-shot:hover .cd-ring { stroke-width: 4; }
  .about-shot:hover .cd-score { transform: translateY(-8px); }
}

/* Trusted by — label, a counting "50+" and one line underneath. */
.clients-head { grid-column: 1 / span 3; display: flex; flex-direction: column; gap: 10px; }
.clients .clients-head .label { grid-column: auto; }
.clients-count { display: flex; align-items: flex-start; margin-top: 10px; font-family: var(--font-display); font-weight: 500; font-size: clamp(3.4rem, 7vw, 7rem); letter-spacing: -0.05em; line-height: 0.85; font-variant-numeric: tabular-nums; }
.cc-plus { font-size: 0.5em; margin-left: 0.06em; opacity: 0; transform: translateY(0.3em) scale(0.6); transition: opacity 400ms ease, transform 700ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.clients-count.is-done .cc-plus, .no-motion .cc-plus { opacity: 1; transform: none; }
.clients-note { max-width: 24ch; color: var(--fg-2); }
@media (max-width: 860px) { .clients-head { grid-column: 1 / -1; } }

/* ---------- About crafts: one split frame — camera left, code right; the hovered half takes the room ---------- */
.cs { display: flex; gap: 6px; height: clamp(460px, 74vh, 780px); }
.cs-panel { position: relative; isolation: isolate; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 4px; color: var(--off); transition: flex-grow 1000ms cubic-bezier(0.65, 0, 0.35, 1); }
.cs-media { position: absolute; inset: 0; z-index: -2; background: var(--black-2); }
.cs-media > img, .cs-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter 900ms ease, transform 1400ms var(--ease-out); }
.cs-code .craft-scroll { object-position: 50% 0%; }
/* Scrim only behind the copy. */
.cs-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(12,12,11,0.88) 0%, rgba(12,12,11,0.35) 38%, rgba(12,12,11,0) 60%); pointer-events: none; }
.cs-copy { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 10px; padding: clamp(20px, 2.6vw, 40px); }
.cs-no { font-size: var(--fs-small); color: rgba(241,238,232,0.6); letter-spacing: 0.04em; }
.cs-no span { margin-left: 8px; }
.cs-q { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 5vw, 5.4rem); letter-spacing: -0.04em; line-height: 0.92; white-space: nowrap; }
.cs-a { max-width: 36ch; font-size: var(--fs-body); line-height: 1.5; color: rgba(241,238,232,0.75); }
.cs-more { display: inline-flex; align-items: center; gap: 10px; width: max-content; font-size: var(--fs-small); padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 600ms var(--ease-out); }
.cs-more .icon { width: 16px; height: 16px; transition: transform 600ms var(--ease-out); }
/* HUDs inside the panels */
.cs .cam-hud { opacity: 1; }
.cs .ch-focus { top: 42%; }
.cs .code-hud { align-items: flex-start; justify-content: flex-end; padding: clamp(18px, 2.2vw, 32px); }
.cs .cd-editor { width: min(78%, 380px); }
.cs .cd-score { order: -1; }
.cs .cd-code { min-height: 0; }
@media (hover: hover) and (pointer: fine) {
  .cs:hover .cs-panel { flex-grow: 0.62; }
  .cs .cs-panel:hover { flex-grow: 1.5; }
  .cs:hover .cs-panel:not(:hover) .cs-media > img, .cs:hover .cs-panel:not(:hover) .cs-media > video { filter: grayscale(1) brightness(0.45); }
  .cs-panel:hover .cs-media > img, .cs-panel:hover .cs-media > video { transform: scale(1.03); }
  .cs-cam:hover .cs-media > img, .cs-cam:hover .cs-media > video { animation: rack-focus 900ms var(--ease-out) both; }
  .cs-panel:hover .cs-more { background-size: 100% 1px; }
  .cs-panel:hover .cs-more .icon { transform: translateX(6px); }
  .cs-cam:hover .cam-hud { --ci: 30px; }
  .cs-cam:hover .ch-focus { border-color: var(--off); animation: focus-lock 700ms var(--ease-out) both; }
  .cs-code:hover .cd-editor { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
  .cs-code:hover .cd-code::before { animation: none; }
  /* The narrow half hides its sentence so it never wraps into a column. */
  .cs:hover .cs-panel:not(:hover) .cs-a, .cs:hover .cs-panel:not(:hover) .cs-more { opacity: 0; }
  .cs-a, .cs-more { transition: opacity 400ms ease, background-size 600ms var(--ease-out); }
}
@media (max-width: 760px) {
  .cs { flex-direction: column; height: auto; }
  .cs-panel { flex: none; height: 118vw; max-height: 620px; }
  .cs .cd-editor { width: 82%; }
  .cs .cd-score { display: none; }
}
/* The website capture is bright and busy: darken it so the copy and editor read cleanly. */
.cs-code .cs-media > img { filter: brightness(0.55) saturate(0.85); }
.cs-code::after { background: linear-gradient(to top, rgba(12,12,11,0.97) 0%, rgba(12,12,11,0.82) 40%, rgba(12,12,11,0.2) 72%); }
@media (hover: hover) and (pointer: fine) { .cs-code:hover .cs-media > img { filter: brightness(0.7) saturate(1); } }
.cs-panel { border-radius: 0; }
/* Copy always sits above the viewfinder marks. */
.cs-copy { z-index: 2; }

/* ---------- Menu, redesigned: one screen, no scroll ----------
   Links sized by viewport height so all six always fit; contact collapses to one quiet row. */
.menu { display: grid; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; row-gap: clamp(20px, 3svh, 40px); height: 100svh; overflow: hidden; align-items: stretch; padding-top: calc(var(--header-h) + clamp(16px, 4svh, 48px)); padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.menu-list { justify-content: center; gap: 0; }
.menu-item a { font-size: clamp(2rem, min(7.2vw, 9svh), 5.6rem); line-height: 1.02; padding-block: 1px; }
.menu-contact { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px clamp(32px, 6vw, 96px); align-items: end; padding: 18px 0 0; border-top: 1px solid var(--line-dark); }
.mc-cell { display: flex; flex-direction: column; gap: 6px; }
.mc-k { font-size: var(--fs-micro); color: var(--gray-500); letter-spacing: 0.02em; }
.mc-email { font-family: var(--font-text); font-weight: 400; font-size: var(--fs-body); letter-spacing: 0; }
.mc-socials { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
.mc-lang .lang { margin-top: 0; }
.mc-lang { justify-self: start; }
@media (max-width: 860px) {
  .menu-item a { font-size: clamp(1.9rem, min(12vw, 7.4svh), 3.4rem); }
  .menu-contact { grid-template-columns: 1fr auto; gap: 14px 24px; }
  .menu-contact .mc-cell:nth-child(2) { display: none; }
  .mc-k { display: none; }
}

/* ---------- Menu: a "London Eye" of film projects on the right (desktop) ---------- */
.menu-ring { display: none; }
@media (min-width: 861px) and (hover: hover) and (pointer: fine) {
  .menu { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .menu-list { grid-column: 1; grid-row: 1; }
  .menu-contact { grid-column: 1 / -1; grid-row: 2; }
  .menu-ring { display: grid; place-items: center; grid-column: 2; grid-row: 1; min-height: 0; opacity: 0; transform: scale(0.8) rotate(-12deg); transition: opacity 260ms ease, transform 400ms var(--ease-out); }
  .menu-open .menu-ring { opacity: 1; transform: none; transition: opacity 800ms ease 480ms, transform 1400ms cubic-bezier(0.22, 1, 0.36, 1) 440ms; }
}
.mr-defs { position: absolute; width: 0; height: 0; }
.mr-stage { --cw: clamp(84px, 8.4vw, 132px); position: relative; width: min(100%, calc(100svh - var(--header-h) - 190px), 620px); aspect-ratio: 1; }
/* rim of the wheel */
.mr-stage::before { content: ""; position: absolute; inset: calc(var(--cw) * 0.625); border: 1px solid rgba(241,238,232,0.12); border-radius: 50%; }
.mr-spin { position: absolute; inset: 0; }
.mr-card { position: absolute; left: 50%; top: 50%; width: var(--cw); aspect-ratio: 4 / 5; overflow: hidden; background: var(--black-2); will-change: transform; box-shadow: 0 18px 40px rgba(0,0,0,0.35); }
.mr-card img, .mr-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 400ms ease; }
.mr-card video { opacity: 0; }
.mr-card.is-playing video { opacity: 1; }
.mr-card.is-hot { z-index: 3; }
.mr-card.is-hot img, .mr-card.is-hot video { filter: url(#mr-liquid); }
.mr-card::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(241,238,232,0.12); pointer-events: none; }
.mr-spin:hover .mr-card:not(.is-hot) { filter: grayscale(1) brightness(0.5); }
.mr-card { transition: filter 400ms ease; }
/* Title sits in the hub of the wheel, above everything. */
.mr-label { position: absolute; left: 50%; top: 50%; z-index: 4; width: 52%; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; pointer-events: none; opacity: 0; transform: translateY(8px); transition: opacity 300ms ease, transform 500ms var(--ease-out); }
.menu-ring.has-label .mr-label { opacity: 1; transform: none; }
.mr-label-t { font-family: var(--font-display); font-weight: 500; font-size: clamp(1rem, 1.4vw, 1.4rem); letter-spacing: -0.02em; line-height: 1.15; }
.mr-label-c { font-size: var(--fs-micro); color: var(--gray-500); }

/* ---------- Menu opening: links tilt up out of blur; the rule above contact draws across ---------- */
.menu-item a > [data-i18n] { transform-origin: 0 100%; transform: translateY(105%) rotate(5deg); filter: blur(6px); transition: transform 220ms var(--ease-out-ui), opacity 180ms ease, filter 200ms ease; }
.menu-open .menu-item a > [data-i18n] { transform: none; filter: blur(0); transition: transform 1000ms cubic-bezier(0.22, 1, 0.36, 1), opacity 500ms ease, filter 700ms ease; transition-delay: calc(360ms + var(--i, 0) * 60ms); }
/* Match the footer underline, keeping it attached to the animated text. */
.menu-item a > [data-i18n], .menu-contact a { position: relative; }
.menu-contact a { width: fit-content; }
.menu-item a > [data-i18n]::after, .menu-contact a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 550ms cubic-bezier(0.65, 0, 0.35, 1); }
.menu-contact a::after { bottom: -2px; }
@media (hover: hover) and (pointer: fine) {
  .menu-item a:hover > [data-i18n]::after, .menu-contact a:hover::after { transform: scaleX(1); transform-origin: left; }
}
.menu-item a:focus-visible > [data-i18n]::after, .menu-contact a:focus-visible::after { transform: scaleX(1); transform-origin: left; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .menu-item a > [data-i18n]::after, .menu-contact a::after { transition: none; }
}
/* Language swaps use the same immediate blur as page text, without the menu entrance stagger. */
.motion.menu-open.lang-switching .menu-item a > [data-i18n] { transition: opacity 260ms ease, filter 260ms ease; }
.motion.menu-open.lang-switching.lang-out .menu-item a > [data-i18n] { opacity: 0.12; filter: blur(2px); transition-duration: 160ms; }
.menu-contact { position: relative; border-top: 0; }
.menu-contact::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-dark); transform: scaleX(0); transform-origin: 0 50%; transition: transform 300ms ease; }
.menu-open .menu-contact::before { transform: scaleX(1); transition: transform 1200ms cubic-bezier(0.65, 0, 0.35, 1) 520ms; }
@media (prefers-reduced-motion: reduce) {
  .menu-item a > [data-i18n], .menu-open .menu-item a > [data-i18n] { filter: none; transform: none; }
  .menu-contact::before { transform: none; }
}

/* Wheel, bigger and off-canvas: its hub sits near the right edge, so only the left arc shows. */
@media (min-width: 861px) and (hover: hover) and (pointer: fine) {
  .menu-ring { position: relative; display: block; align-self: stretch; }
  .mr-stage { --R: min(44svh, 30vw); --cw: clamp(130px, 12vw, 200px); position: absolute; top: 50%; right: calc(var(--R) * -0.62 - var(--pad-x)); width: calc(var(--R) * 2); translate: 0 -50%; }
  .mr-stage::before { inset: 0; }
  .mr-card { box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
  .mr-label { width: calc(var(--R) * 0.62); left: 50%; translate: -100% -50%; align-items: flex-start; text-align: left; padding-right: 20px; }
}
@media (min-width: 861px) and (hover: hover) and (pointer: fine) {
  /* The wheel spans the menu's full height on the right and fades out under the header. */
  .menu { position: fixed; }
  .menu-ring { position: absolute; inset: 0; z-index: 0; pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent calc(var(--header-h) + 6px), #000 calc(var(--header-h) + 110px));
            mask-image: linear-gradient(to bottom, transparent calc(var(--header-h) + 6px), #000 calc(var(--header-h) + 110px)); }
  .menu-list, .menu-contact { position: relative; z-index: 1; }
  .mr-stage { --cw: clamp(170px, 15vw, 250px); }
}
.mr-card { aspect-ratio: 16 / 10; }
@media (min-width: 861px) and (hover: hover) and (pointer: fine) {
  .mr-card { pointer-events: auto; }
  .mr-stage { right: calc(var(--R) * -0.62); }
}
@media (min-width: 861px) and (hover: hover) and (pointer: fine) {
  /* Tighter wheel (cards overlap more) pushed further off the right edge. */
  .mr-stage { --R: min(40svh, 27vw); --cw: clamp(170px, 15.5vw, 260px); right: calc(var(--R) * -0.84); }
  .mr-label { width: calc(var(--R) * 0.5); }
}
@media (min-width: 861px) and (hover: hover) and (pointer: fine) { .mr-stage { --cw: clamp(200px, 19vw, 320px); } }
@media (min-width: 861px) and (hover: hover) and (pointer: fine) { .mr-stage { top: 42%; } }
@media (min-width: 861px) and (hover: hover) and (pointer: fine) {
  .menu-ring { -webkit-mask-image: linear-gradient(to bottom, transparent calc(var(--header-h) - 24px), #000 calc(var(--header-h) + 36px));
                       mask-image: linear-gradient(to bottom, transparent calc(var(--header-h) - 24px), #000 calc(var(--header-h) + 36px)); }
}
@media (min-width: 861px) and (hover: hover) and (pointer: fine) {
  /* fades top (under the header) and bottom */
  .menu-ring { -webkit-mask-image: linear-gradient(to bottom, transparent 20px, #000 150px, #000 calc(100% - 150px), transparent calc(100% - 20px));
                       mask-image: linear-gradient(to bottom, transparent 20px, #000 150px, #000 calc(100% - 150px), transparent calc(100% - 20px)); }
}
/* Title follows the hovered card (positioned from JS), always above the cards. */
.mr-label, .menu-ring .mr-label { left: 50%; top: 50%; translate: none; width: max-content; max-width: 22ch; z-index: 60; align-items: flex-start; text-align: left; padding: 0; transition: opacity 300ms ease; text-shadow: 0 2px 18px rgba(0,0,0,0.85); }

/* Film cards: liquid ripple on pointer enter (filter driven from JS). */
.liquid-defs { position: absolute; width: 0; height: 0; }
.media.is-liquid > img, .media.is-liquid > video { filter: url(#card-liquid); }


/* Home hero: original studio introduction, with quieter display typography. */
.hero-inner {
  padding-bottom: max(clamp(28px, 4vw, 56px), env(safe-area-inset-bottom));
}
.hero .hero-title {
  font-size: clamp(2.25rem, 8.2vw, 9rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 500;
}
@media (max-width: 960px) {
  .hero .hero-title { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hero .hero-title { font-size: clamp(2.125rem, 9.8vw, 3.375rem); line-height: 1.08; }
}

/* Menu variant: a living 3 × 3 landscape contact sheet. The original wheel remains available. */
.menu-chess { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 1px; aspect-ratio: 16 / 10; background: rgba(241,238,232,0.26); }
.chess-lines { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.chess-lines path { fill: none; stroke: var(--off); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chess-cell { position: relative; min-width: 0; min-height: 0; background: #151513; }
.chess-cell.is-dark { background: #10100f; }
.chess-project { display: block; position: absolute; inset: 0; opacity: 0; transform: translateY(12px) scale(0.96); transition: opacity 280ms ease, transform 400ms var(--ease-out); }
.chess-project.is-visible { opacity: 1; transform: none; }
.chess-project img, .chess-project video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chess-project video { opacity: 0; transition: opacity 300ms ease; }
.chess-project.is-playing video { opacity: 1; }
.chess-caption { position: absolute; inset: auto 0 0; padding: 10px; background: rgba(12,12,11,0.9); color: var(--off); font-size: 0.8125rem; line-height: 1.3; opacity: 0; transition: opacity 180ms ease; pointer-events: none; }
.chess-project:focus-visible { z-index: 2; outline: 2px solid var(--off); outline-offset: 3px; }
.chess-project:focus-visible .chess-caption { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .chess-project:hover .chess-caption { opacity: 1; }
  .chess-project:hover { z-index: 2; }
}
@media (min-width: 861px) {
  .menu[data-menu-visual="grid"] { grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.15fr); }
  .menu[data-menu-visual="grid"] .menu-list { grid-column: 1; grid-row: 1; }
  .menu[data-menu-visual="grid"] .menu-contact { grid-column: 1 / -1; grid-row: 2; }
  .menu-chess { grid-column: 2; grid-row: 1; align-self: center; justify-self: end; width: min(100%, calc((100svh - var(--header-h) - 180px) * 1.6), 960px); }
}
@media (max-width: 860px) {
  .menu[data-menu-visual="grid"] { grid-template-rows: auto minmax(0, 1fr) auto; row-gap: 16px; }
  .menu[data-menu-visual="grid"] .menu-item a { font-size: clamp(1.65rem, 5.4svh, 2.75rem); }
  .menu[data-menu-visual="grid"] .menu-contact { grid-row: 3; }
  .menu-chess { grid-row: 2; width: min(100%, 48svh, 520px); max-height: 100%; align-self: center; justify-self: end; }
  .chess-caption { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .chess-project, .chess-project.is-visible { transform: none; transition: opacity 180ms ease; }
  .chess-project video { display: none; }
}

/* Push menu: a compact navigation panel above the current page's live window. */
.push-menu { --drawer-height: clamp(360px, 51svh, 500px); --window-scroll: 0px; --t-drawer: 650ms; }
.push-menu body { background: #151513; }
.push-menu .menu-sweep { display: none; }
.push-menu .menu[data-menu-layout="push"] {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 1fr;
  column-gap: clamp(24px, 4vw, 64px); row-gap: 0;
  height: var(--drawer-height); padding: calc(var(--header-h) + 24px) var(--pad-x) 48px;
  background: #151513; clip-path: none; overflow: auto;
  transform: translate3d(0, -100%, 0); visibility: hidden;
  transition: transform var(--t-drawer) var(--ease-drawer), visibility 0s linear var(--t-drawer);
}
.push-menu.menu-open .menu[data-menu-layout="push"] { transform: none; visibility: visible; transition: transform var(--t-drawer) var(--ease-drawer), visibility 0s; }
.push-menu .menu-list { grid-column: 1 / 3; grid-row: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); grid-auto-flow: column; align-content: center; justify-content: stretch; column-gap: clamp(24px, 4vw, 64px); }
.push-menu .menu-item a { width: fit-content; min-height: 44px; font-size: clamp(1.75rem, 2.8vw, 3rem); line-height: 1.12; padding-block: 2px; letter-spacing: -0.025em; }
.push-menu .menu-item a > [data-i18n] { opacity: 0; filter: none; transform: translateY(12px); transition: opacity 180ms ease, transform 220ms var(--ease-out-ui); }
.push-menu.menu-open .menu-item a > [data-i18n] { opacity: 1; filter: none; transform: none; transition: opacity 260ms ease, transform 400ms var(--ease-out); transition-delay: calc(140ms + var(--i, 0) * 35ms); }
.push-menu .menu-contact { grid-column: 3; grid-row: 1; display: flex; flex-direction: column; align-self: center; align-items: flex-start; gap: 14px; padding: 0; border: 0; }
.push-menu .menu-contact::before, .push-menu .menu-contact .mc-k { display: none; }
.push-menu .menu-contact > * { opacity: 0; transform: translateY(10px); transition: opacity 180ms ease, transform 220ms var(--ease-out-ui); }
.push-menu.menu-open .menu-contact > * { opacity: 1; transform: none; transition: opacity 260ms ease 200ms, transform 400ms var(--ease-out) 200ms; }
.push-menu .menu-contact .mc-cell { display: flex; }
.push-menu .push-contact-link { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 2.3vw, 2.5rem); letter-spacing: -0.025em; line-height: 1.2; }
.push-menu .mc-email { font-size: 0.9375rem; }
.push-menu .mc-socials { font-size: 0.9375rem; }
.push-menu .mc-lang { order: 1; }
.push-menu.menu-open .nav-links { visibility: hidden; pointer-events: none; }
.push-menu.menu-open .site-header { transform: none; background: #151513; }
.push-menu .menu-toggle { min-height: 48px; gap: 6px; }
.push-menu .menu-toggle .bars { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 0; }
.push-menu .menu-toggle .bars::before, .push-menu .menu-toggle .bars::after { left: 11px; width: 20px; }
.page-window { position: relative; background: var(--black); transform-origin: 50% var(--window-scroll); transition: transform var(--t-drawer) var(--ease-drawer), clip-path var(--t-drawer) var(--ease-drawer); }
.push-menu.menu-open .page-window { transform: translate3d(0, var(--drawer-height), 0) scale(0.956); clip-path: inset(var(--window-scroll) 0 0 round 14px 14px 0 0); }
.window-dismiss { position: fixed; inset: var(--drawer-height) 0 0; z-index: 54; cursor: pointer; }
.push-menu.menu-instant .page-window { transition: none; }
@media (hover: hover) and (pointer: fine) {
  .push-menu .menu-item a:hover { transform: translateX(6px); }
}
@media (max-width: 600px) {
  .push-menu { --drawer-height: min(440px, 70svh); }
  .push-menu .menu[data-menu-layout="push"] { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 24px 20px; padding: calc(var(--header-h) + 28px) var(--pad-x) 28px; align-content: center; }
  .push-menu .menu-list { grid-column: 1 / -1; grid-row: 1; column-gap: 20px; }
  .push-menu .menu-item a { font-size: clamp(1.5rem, 6.8vw, 2rem); }
  .push-menu .menu-contact { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; gap: 12px 16px; }
  .push-menu .menu-contact > :first-child { grid-column: 1; grid-row: 1 / 3; }
  .push-menu .push-contact-link { font-size: 1.25rem; }
  .push-menu .mc-email { font-size: 0.8125rem; }
  .push-menu .mc-lang { grid-column: 2; grid-row: 1; }
  .push-menu .menu-contact > .mc-cell:last-child { grid-column: 2; grid-row: 2; }
  .push-menu .mc-socials { font-size: 0.8125rem; }
  .push-menu .menu-contact .lang { font-size: 0.75rem; }
}
@media (max-height: 500px) and (min-width: 601px) {
  .push-menu { --drawer-height: 76svh; }
  .push-menu .menu[data-menu-layout="push"] { padding-top: calc(var(--header-h) + 12px); padding-bottom: 16px; }
  .push-menu .menu-item a { font-size: 1.5rem; min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .push-menu .menu[data-menu-layout="push"], .push-menu.menu-open .menu[data-menu-layout="push"], .push-menu .page-window { transition: none; }
  .push-menu.menu-open .menu-item a > [data-i18n], .push-menu .menu-item a > [data-i18n], .push-menu .menu-contact > *, .push-menu.menu-open .menu-contact > * { transition: opacity 160ms ease; transform: none; }
}

/* Compact navigation stays fixed on desktop as well as mobile. */
.push-menu .nav-links { display: none; }

/* The open navigation contrasts with the section that was in focus. */
.push-menu { --menu-surface: #0c0c0b; --menu-ink: #f1eee8; --menu-muted: #b8b3a9; }
.push-menu[data-menu-tone="light"] { --menu-surface: #ffffff; --menu-ink: #0c0c0b; --menu-muted: #5f5c55; }   /* opposite of the page: white menu over dark sections, black over light */
.push-menu body, .push-menu .menu[data-menu-layout="push"] { background: var(--menu-surface); }
.push-menu .menu[data-menu-layout="push"] { color: var(--menu-ink); }
.push-menu.menu-open .site-header { background: var(--menu-surface); color: var(--menu-ink); }
.push-menu .menu .mc-email, .push-menu .menu .mc-socials a { color: inherit; }
.push-menu .menu .lang button[aria-pressed="true"] { color: var(--menu-surface); }
.push-menu .menu-item a[aria-current="page"],
.push-menu .menu-list:has(a:focus-visible) .menu-item a:not(:focus-visible):not(:hover) { color: var(--menu-muted); }
.push-menu .menu-list .menu-item a:focus-visible { color: var(--menu-ink); }
@media (hover: hover) and (pointer: fine) {
  .push-menu .menu-list:has(a:hover) .menu-item a:not(:hover):not(:focus-visible),
  .push-menu .menu .mc-email:hover, .push-menu .menu .mc-socials a:hover { color: var(--menu-muted); }
  .push-menu .menu-list .menu-item a:hover { color: var(--menu-ink); }
}

/* The wordmark belongs to the page; only the menu control follows the viewport. */
.push-menu .site-header,
.push-menu .site-header.is-solid,
.push-menu.menu-open .site-header {
  position: absolute;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  pointer-events: none;
}
.push-menu .site-header .brand { pointer-events: auto; }
.push-menu .site-header .nav {
  position: fixed;
  top: 0;
  right: var(--pad-x);
  height: var(--header-h);
  pointer-events: auto;
}

/* Menu navigation variant: keep moving upward instead of waiting for two full transitions. */
.menu-sweep-up::view-transition { background: var(--menu-surface, var(--black)); }
.menu-sweep-up::view-transition-old(root) { mix-blend-mode: normal; animation: menu-page-out 440ms var(--ease-in-out) both; }
.menu-sweep-up::view-transition-new(root) { z-index: 1; mix-blend-mode: normal; animation: menu-page-up 440ms var(--ease-in-out) both; }
.menu-sweep-up::view-transition-old(site-header) { animation: vt-out 140ms ease both; }
.menu-sweep-up::view-transition-new(site-header) { animation: vt-in 180ms ease 200ms both; }
@keyframes menu-page-out { to { transform: translateY(-8%); } }
@keyframes menu-page-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

.menu-sweep-up [data-menu-arrival], .menu-sweep-up [data-menu-arrival] .line-inner { transition: none !important; }

/* An open menu always carries its wordmark, even when opened below the fold. */
.push-menu.menu-open .site-header { position: fixed; }

/* Quiet pointer feedback without bringing back the circle around the icon. */
.push-menu .menu-toggle > [data-i18n] { position: relative; }
.push-menu .menu-toggle > [data-i18n]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 220ms var(--ease-out-ui);
}
.push-menu .menu-toggle .bars { transition: transform 180ms var(--ease-out-ui); }
.push-menu .menu-toggle:focus-visible > [data-i18n]::after { transform: scaleX(1); transform-origin: left; }
@media (hover: hover) and (pointer: fine) {
  .push-menu .menu-toggle:hover > [data-i18n]::after { transform: scaleX(1); transform-origin: left; }
  .push-menu .menu-toggle:hover .bars { transform: scale(1.12); }
}
.push-menu .menu-toggle:active .bars { transform: scale(0.96); }
@media (prefers-reduced-motion: reduce) {
  .push-menu .menu-toggle .bars, .push-menu .menu-toggle > [data-i18n]::after { transition: none; }
  .push-menu .menu-toggle:hover .bars, .push-menu .menu-toggle:active .bars { transform: none; }
}

/* One continuous handoff: the menu's lower edge and the next page move together. */
.menu-connected::view-transition { background: var(--menu-route-surface, var(--black)); }
.menu-connected::view-transition-image-pair(root) { overflow: hidden; }
.menu-connected::view-transition-old(root) { animation: menu-connected-out 600ms var(--ease-drawer) both; }
.menu-connected::view-transition-new(root) { transform-origin: 50% 0; animation: menu-connected-in 600ms var(--ease-drawer) both; }
.menu-connected::view-transition-old(site-header) { animation: vt-out 180ms ease both; }
.menu-connected::view-transition-new(site-header) { animation: vt-in 260ms ease 140ms both; }
@keyframes menu-connected-out {
  from { transform: translateY(0); }
  to { transform: translateY(calc(-1 * var(--menu-route-distance))); }
}
@keyframes menu-connected-in {
  from { transform: translateY(var(--menu-route-distance)) scale(0.956); clip-path: inset(0 0 0 0 round 14px 14px 0 0); }
  to { transform: translateY(0) scale(1); clip-path: inset(0 0 0 0 round 0px); }
}

/* The incoming page replaces the preview; never flash the old preview above its edge. */
.menu-connected.menu-open .page-window { visibility: hidden; }

/* Live cinematic sweep: cover, navigate, uncover; the page beneath keeps rendering. */
.menu-live-leave::after, .menu-live-enter::after {
  content: ""; position: fixed; z-index: 10000; top: -10svh; left: -5%; width: 110%; height: 120svh;
  background: var(--menu-route-surface, var(--black)); pointer-events: none; transform-origin: 50% 50%;
}
.menu-live-leave::after { animation: menu-live-cover 360ms var(--ease-drawer) both; }
.menu-live-enter::after { transform: translateY(0); }
.menu-live-enter.menu-live-running::after { animation: menu-live-uncover 640ms var(--ease-drawer) both; }
.menu-live-running .page-window { transform-origin: 50% 0; animation: menu-live-page 640ms var(--ease-drawer) both; }
.menu-live-enter [data-menu-arrival], .menu-live-enter [data-menu-arrival] .line-inner { transition: none !important; }
@keyframes menu-live-cover {
  from { transform: translateY(110%) skewY(-3deg); }
  to { transform: translateY(0) skewY(0); }
}
@keyframes menu-live-uncover {
  from { transform: translateY(0) skewY(0); }
  to { transform: translateY(-115%) skewY(-3deg); }
}
@keyframes menu-live-page {
  from { transform: perspective(1400px) translateY(48px) rotateX(3deg) scale(0.975); }
  to { transform: perspective(1400px) translateY(0) rotateX(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .menu-live-leave::after, .menu-live-enter::after { display: none; animation: none; }
  .menu-live-running .page-window { animation: none; }
}

/* ---------- Menu → page: the menu closes in view while a curtain slides up from the bottom ----------
   The chosen word stays, the others dissolve; the curtain carries the page name and keeps rising on arrival. */
.menu.is-choosing .menu-item a:not(.is-chosen) > [data-i18n] { opacity: 0; filter: blur(8px); transform: translateY(-24%); transition: opacity 260ms ease, filter 260ms ease, transform 320ms var(--ease-out); transition-delay: 0s; }
.menu.is-choosing .menu-item a.is-chosen { transform: translateX(14px); transition: transform 420ms var(--ease-out); }
.menu.is-choosing .menu-contact > *, .menu.is-choosing .menu-ring { opacity: 0; transition: opacity 240ms ease; }
@keyframes menu-live-cover {
  from { transform: translateY(105%); border-radius: 50% 50% 0 0 / 22vh 22vh 0 0; }
  to { transform: translateY(0); border-radius: 0; }
}
@keyframes menu-live-uncover {
  from { transform: translateY(0); border-radius: 0; }
  to { transform: translateY(-112%); border-radius: 0 0 50% 50% / 0 0 22vh 22vh; }
}
/* slower rise, so the menu can be seen closing underneath */
.menu-live-leave::after { animation-duration: 700ms; animation-timing-function: cubic-bezier(0.3, 0.15, 0.2, 1); }
.menu-live-enter.menu-live-running::after { animation-duration: 900ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); }
.menu-live-running .page-window { animation-duration: 900ms; }

/* Menu button: one pill around the word and the icon, growing in on hover; the button follows the pointer (data-magnetic). */
.push-menu .menu-toggle { position: relative; isolation: isolate; padding: 0 4px 0 18px; border-radius: 999px; }
.push-menu .menu-toggle::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: color-mix(in srgb, currentColor 11%, transparent); opacity: 0; transform: scale(0.72); transition: opacity 260ms ease, transform 520ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.push-menu .menu-toggle > [data-i18n]::after { display: none; }
@media (hover: hover) and (pointer: fine) {
  .push-menu .menu-toggle:hover::before { opacity: 1; transform: scale(1); }
  .push-menu .menu-toggle:hover .bars { transform: none; }
}
.push-menu .menu-toggle:focus-visible::before { opacity: 1; transform: scale(1); }
.push-menu .menu-toggle:active::before { transform: scale(0.94); transition-duration: 120ms; }
@media (prefers-reduced-motion: reduce) { .push-menu .menu-toggle::before { transition: opacity 160ms ease; transform: none; } }

/* Curtain texture: the site's dot field, and a hairline drawn top → bottom while it rises
   (it retracts upward with the curtain on the next page). */
.menu-live-leave::after, .menu-live-enter::after {
  background-color: var(--menu-route-surface, var(--black));
}
.menu-live-leave::before, .menu-live-enter::before {
  content: ""; position: fixed; z-index: 10001; top: 0; left: 50%; width: 3px; height: 100vh; translate: -50% 0;
  background: var(--menu-route-ink, var(--off)); opacity: 0.8; pointer-events: none; transform-origin: 50% 0;
}
.menu-live-leave::before { animation: curtain-line-draw 640ms cubic-bezier(0.65, 0, 0.35, 1) 160ms both; }
.menu-live-enter::before { transform: scaleY(1); }
.menu-live-enter.menu-live-running::before { animation: curtain-line-lift 760ms cubic-bezier(0.76, 0, 0.24, 1) both; }
@keyframes curtain-line-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes curtain-line-lift { from { transform: translateY(0) scaleY(1); } to { transform: translateY(-100vh) scaleY(0.4); } }
@media (prefers-reduced-motion: reduce) { .menu-live-leave::before, .menu-live-enter::before { display: none; } }

/* Work: Grid / Index lives in the hero, beside the count — no separate empty toolbar on category pages. */
main[data-section="web"] .work-tools, main[data-section="film"] .work-tools { display: none; }
.ph-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.ph-side .view-switch { position: relative; isolation: isolate; display: inline-flex; gap: 0; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-small); }
.ph-side .view-switch button { position: relative; z-index: 1; padding: 6px 14px; border-radius: 999px; color: var(--fg-2); transition: color 300ms ease; }
.ph-side .view-switch button[aria-pressed="true"] { color: var(--bg); }
.ph-side .view-switch::before { content: ""; position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; width: var(--vw, 0); transform: translateX(var(--vx, 0)); border-radius: 999px; background: var(--fg); opacity: 0; transition: transform 520ms cubic-bezier(0.34, 1.4, 0.64, 1), width 520ms cubic-bezier(0.34, 1.4, 0.64, 1), opacity 200ms ease; }
.ph-side .view-switch.has-pill::before { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .ph-side .view-switch button:not([aria-pressed="true"]):hover { color: var(--fg); } }
@media (max-width: 760px) { .ph-side { align-items: flex-start; } }

/* Logo comes back on scroll-up (push menu): fixed top-left, hidden while scrolling down, shown on the way up.
   The header itself must not take the hide transform, or its fixed children would follow it. */
.push-menu .site-header.is-hidden { transform: none; }
.push-menu .site-header .brand { position: fixed; top: 0; left: var(--pad-x); height: var(--header-h); display: flex; align-items: center; transition: transform 520ms var(--ease-out), opacity 300ms ease; }
.push-menu .site-header.brand-away .brand { transform: translateY(-120%); opacity: 0; }
.push-menu.menu-open .site-header .brand { transform: none; opacity: 1; }

/* Count sits in the same row and style as the Grid / Index switch. */
.ph-side { flex-direction: row; align-items: center; gap: 8px; }
.ph-side .count { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-text); font-size: var(--fs-small); letter-spacing: 0; color: var(--fg-2); }
.ph-side .view-switch { height: 38px; align-items: center; }

/* Arrival via the curtain: quicker lift; on-screen reveals wait hidden under it, then play as it lifts. */
.menu-live-enter.menu-live-running::after { animation-duration: 720ms; }
.menu-live-running .page-window { animation-duration: 720ms; }
.menu-live-enter.menu-live-running::before { animation-duration: 620ms; }
.menu-live-enter [data-menu-arrival][data-reveal="lines"] .line-inner { transform: translateY(108%); transition: none !important; }
.menu-live-enter [data-menu-arrival][data-reveal="fade"] { opacity: 0; transform: translateY(18px); transition: none !important; }
.menu-live-enter [data-menu-arrival][data-reveal="media"] { clip-path: inset(100% 0 0 0); transition: none !important; }

/* Phones: a fixed header again — logo and menu button always on top, with a solid backdrop once scrolled. */
@media (max-width: 860px) {
  .push-menu .site-header, .push-menu .site-header.is-solid { position: fixed; pointer-events: auto; }
  .push-menu .site-header .brand, .push-menu .site-header .nav { position: static; height: auto; }
  .push-menu .site-header.brand-away .brand { transform: none; opacity: 1; }
  .push-menu .site-header.is-solid { background-color: rgba(12,12,11,0.96); box-shadow: 0 1px 0 rgba(241,238,232,0.08); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  .push-menu .site-header.is-solid.on-light { background-color: rgba(255,255,255,0.97); box-shadow: 0 1px 0 rgba(12,12,11,0.08); }
  .push-menu.menu-open .site-header, .push-menu.menu-open .site-header.is-solid { background-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- /work/web: two bigger columns and a richer caption (number · title · category) ---------- */
@media (min-width: 761px) {
  main[data-section="web"] .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); row-gap: clamp(56px, 7vw, 110px); }
}
main[data-section="web"] .work-grid .work-card .wc-meta { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "no title" "no cat"; column-gap: clamp(16px, 2vw, 28px); row-gap: 8px; align-items: baseline; padding-top: 22px; }
main[data-section="web"] .work-grid .work-card .wc-index { display: block; grid-area: no; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 2.8vw, 2.8rem); letter-spacing: -0.04em; line-height: 1; color: color-mix(in srgb, var(--fg) 28%, transparent); transition: color 450ms ease; }
main[data-section="web"] .work-grid .work-card .wc-title { grid-area: title; font-size: clamp(1.6rem, 2.8vw, 2.8rem); letter-spacing: -0.035em; line-height: 1; }
main[data-section="web"] .work-grid .work-card .wc-cat { grid-area: cat; grid-column: auto; grid-row: auto; text-align: left; }
main[data-section="web"] .work-grid .work-card .wc-client { display: none; }
@media (hover: hover) and (pointer: fine) {
  main[data-section="web"] .work-grid .work-card:hover .wc-index { color: var(--fg); }
  main[data-section="web"] .work-grid .work-card:hover .wc-title { transform: translateX(10px); }
}

/* Film-grain noise on the curtain (tiled SVG turbulence over the curtain colour). */
.menu-live-leave::after, .menu-live-enter::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  /* overlay keeps the curtain's average colour identical to the page; grain only varies around it */
  background-blend-mode: overlay;
}



/* Route pacing: curtain rises, the line draws, then navigate (ROUTE_HOLD in app.js); arrival is a softer lift. */
.menu-live-leave::before { animation: curtain-line-draw 750ms cubic-bezier(0.65, 0, 0.35, 1) 250ms both; }
.menu-live-enter.menu-live-running::after { animation-duration: 900ms; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
.menu-live-running .page-window { animation-duration: 900ms; }
.menu-live-enter.menu-live-running::before { animation: curtain-line-lift 900ms cubic-bezier(0.65, 0, 0.35, 1) both; }
/* The line runs upward with the curtain: drawn bottom → top. */
.menu-live-leave::before, .menu-live-enter::before { transform-origin: 50% 100%; }
/* Shorter route: line 150–700ms, navigate at ~1s; arrival lift 750ms. */
.menu-live-leave::before { animation: curtain-line-draw 550ms cubic-bezier(0.65, 0, 0.35, 1) 150ms both; }
.menu-live-enter.menu-live-running::after { animation-duration: 750ms; }
.menu-live-running .page-window { animation-duration: 750ms; }
.menu-live-enter.menu-live-running::before { animation-duration: 750ms; }
/* /work/web: number + title only, no category line. */
main[data-section="web"] .work-grid .work-card .wc-cat { display: none; }
main[data-section="web"] .work-grid .work-card .wc-meta { grid-template-areas: "no title"; align-items: center; }
.showcase .work-card.is-web .wc-cat { display: none; }


/* ---------- Arrival as an unzip: the curtain splits along the line, opening from the top 
   down in a V, the two halves parting left and right. (html::after = left half, body::before = right half) ---------- */
.menu-live-enter::after { top: 0; left: 0; width: 50%; height: 100vh; transform: none; border-radius: 0; }
.menu-live-enter body::before {
  content: ""; position: fixed; z-index: 10000; top: 0; right: 0; width: 50%; height: 100vh; pointer-events: none;
  background-color: var(--menu-route-surface, var(--black));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px; background-blend-mode: overlay;
}
.menu-live-enter.menu-live-running::after { animation: curtain-unzip-left 950ms cubic-bezier(0.55, 0, 0.25, 1) both; }
.menu-live-enter.menu-live-running body::before { animation: curtain-unzip-right 950ms cubic-bezier(0.55, 0, 0.25, 1) both; }
.menu-live-enter.menu-live-running::before { animation: curtain-line-fade 320ms ease both; }
@keyframes curtain-unzip-left { to { transform: translateX(-118%) rotate(-10deg); } }
@keyframes curtain-unzip-right { to { transform: translateX(118%) rotate(10deg); } }
@keyframes curtain-line-fade { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .menu-live-enter body::before { display: none; } }

/* Smooth unzip: transform-only (composited, so it stays fluid while the page loads). Each half is a little wider
   than half the screen with a deeply rounded inner edge — a soft, liquid seam — and swings open from its bottom
   outer corner, so the gap opens at the top first. */
.menu-live-enter::after { width: 58%; left: 0; border-radius: 0 12% 12% 0 / 0 46% 46% 0; transform-origin: 0 100%; will-change: transform; }
.menu-live-enter body::before { width: 58%; right: 0; border-radius: 12% 0 0 12% / 46% 0 0 46%; transform-origin: 100% 100%; will-change: transform; }
.menu-live-enter.menu-live-running::after { animation: curtain-unzip-left 1000ms cubic-bezier(0.65, 0, 0.25, 1) both; }
.menu-live-enter.menu-live-running body::before { animation: curtain-unzip-right 1000ms cubic-bezier(0.65, 0, 0.25, 1) both; }
/* Tighter: line drawn 80–580ms, navigate when the curtain is closed (~700ms). */
.menu-live-leave::before { animation: curtain-line-draw 500ms cubic-bezier(0.65, 0, 0.35, 1) 80ms both; }

/* ---------- Slice: the line is drawn on the arriving page, bottom → top, and the curtain is cut right behind
   its tip — the halves pivot from their top outer corners, so the cut opens from the bottom upward. ---------- */
.menu-live-leave::before { display: none; }
.menu-live-enter::before { transform-origin: 50% 100%; transform: scaleY(0); }
.menu-live-enter.menu-live-running::before { animation: curtain-line-slice 1000ms cubic-bezier(0.65, 0, 0.35, 1) both; }
@keyframes curtain-line-slice { 0% { transform: scaleY(0); opacity: 0.8; } 55% { transform: scaleY(1); opacity: 0.8; } 100% { transform: scaleY(1); opacity: 0; } }
.menu-live-enter::after { transform-origin: 0 0; }
.menu-live-enter body::before { transform-origin: 100% 0; }
.menu-live-enter.menu-live-running::after { animation: curtain-slice-left 1050ms cubic-bezier(0.6, 0, 0.25, 1) 160ms both; }
.menu-live-enter.menu-live-running body::before { animation: curtain-slice-right 1050ms cubic-bezier(0.6, 0, 0.25, 1) 160ms both; }
@keyframes curtain-slice-left { to { transform: translateX(-118%) rotate(10deg); } }
@keyframes curtain-slice-right { to { transform: translateX(118%) rotate(-10deg); } }
/* The line is a blade: a short streak (fading tail) that travels bottom → top and leaves the screen;
   the curtain parts behind it, so no line is left over the revealed page. */
.menu-live-enter::before {
  top: 0; height: 34vh; transform: translateY(100vh); opacity: 1;
  background: linear-gradient(to bottom, var(--menu-route-ink, var(--off)) 0%, color-mix(in srgb, var(--menu-route-ink, #f1eee8) 0%, transparent) 100%);
}
.menu-live-enter.menu-live-running::before { animation: curtain-blade 720ms cubic-bezier(0.55, 0, 0.3, 1) both; }
@keyframes curtain-blade { from { transform: translateY(100vh); } to { transform: translateY(-36vh); } }
.menu-live-enter.menu-live-running::after { animation-delay: 110ms; }
.menu-live-enter.menu-live-running body::before { animation-delay: 110ms; }
/* Slower slice on arrival. */
.menu-live-enter.menu-live-running::before { animation-duration: 1100ms; }
.menu-live-enter.menu-live-running::after { animation-duration: 1400ms; animation-delay: 180ms; }
.menu-live-enter.menu-live-running body::before { animation-duration: 1400ms; animation-delay: 180ms; }

/* Final route: leave = curtain rises while the full line draws bottom → top.
   Arrive = the full line holds clearly (~300ms), then slides up off the screen; its lower end is the cut,
   so the curtain parts from the bottom upward behind it. */
.menu-live-leave::before { display: block; animation: curtain-line-draw 500ms cubic-bezier(0.65, 0, 0.35, 1) 80ms both; }
.menu-live-enter::before { top: 0; height: 100vh; transform: none; opacity: 0.8; transform-origin: 50% 100%; background: var(--menu-route-ink, var(--off)); }
.menu-live-enter.menu-live-running::before { animation: curtain-line-rise 900ms cubic-bezier(0.6, 0, 0.3, 1) 300ms both; }
@keyframes curtain-line-rise { from { transform: translateY(0); } to { transform: translateY(-100vh); } }
.menu-live-enter.menu-live-running::after { animation: curtain-slice-left 1100ms cubic-bezier(0.6, 0, 0.3, 1) 380ms both; }
.menu-live-enter.menu-live-running body::before { animation: curtain-slice-right 1100ms cubic-bezier(0.6, 0, 0.3, 1) 380ms both; }

/* Clean slice (replaces the swinging halves): two straight-edged halves part sideways, and a full-width cap
   above them shrinks from the top in lock-step with the rising line — so the cut runs straight up the middle,
   opening from the bottom, with crisp edges. Transform-only. (html::after = left, body::before = right, body::after = cap) */
.menu-live-enter::after { width: 50%; border-radius: 0; transform-origin: 50% 50%; }
.menu-live-enter body::before { width: 50%; border-radius: 0; transform-origin: 50% 50%; }
.menu-live-enter body::after {
  content: ""; position: fixed; z-index: 10000; top: 0; left: 0; width: 100%; height: 100vh; pointer-events: none;
  background-color: var(--menu-route-surface, var(--black));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px; background-blend-mode: overlay; transform-origin: 50% 0; will-change: transform;
}
.menu-live-enter.menu-live-running body::after { animation: curtain-cap 900ms cubic-bezier(0.6, 0, 0.3, 1) 300ms both; }
.menu-live-enter.menu-live-running::after { animation: curtain-part-left 1050ms cubic-bezier(0.7, 0, 0.3, 1) 340ms both; }
.menu-live-enter.menu-live-running body::before { animation: curtain-part-right 1050ms cubic-bezier(0.7, 0, 0.3, 1) 340ms both; }
@keyframes curtain-cap { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes curtain-part-left { from { transform: none; } to { transform: translateX(-102%); } }
@keyframes curtain-part-right { from { transform: none; } to { transform: translateX(102%); } }
@media (prefers-reduced-motion: reduce) { .menu-live-enter body::after { display: none; } }
/* No grain on the curtain; shorter hold before the line rises. */
.menu-live-leave::after, .menu-live-enter::after, .menu-live-enter body::before, .menu-live-enter body::after { background-image: none; }
.menu-live-enter.menu-live-running::before { animation-delay: 120ms; }
.menu-live-enter.menu-live-running body::after { animation-delay: 120ms; }
.menu-live-enter.menu-live-running::after, .menu-live-enter.menu-live-running body::before { animation-delay: 160ms; }

/* Liquid slice: the cap carries a rounded arch notch at its bottom centre and slides up with the line
   (translate, so the arch keeps its shape); the halves first part to exactly the arch's width, then all the way —
   the opening rises like a bubble with a round top. Transform-only. */
.menu-live-enter body::after {
  height: 100vh; transform-origin: 50% 50%;
  background: radial-gradient(ellipse 12vw 18vh at 50% 100%, transparent 97%, var(--menu-route-surface, var(--black)) 100%);
}
.menu-live-enter.menu-live-running body::after { animation: curtain-cap-rise 900ms cubic-bezier(0.6, 0, 0.3, 1) 120ms both; }
@keyframes curtain-cap-rise { from { transform: translateY(0); } to { transform: translateY(-100vh); } }
@keyframes curtain-part-left { 0% { transform: none; } 28% { transform: translateX(-24%); } 100% { transform: translateX(-102%); } }
@keyframes curtain-part-right { 0% { transform: none; } 28% { transform: translateX(24%); } 100% { transform: translateX(102%); } }

/* ===== Arrival restored to the swinging unzip (smooth, transform-only) — overrides the slice/cap experiments above. ===== */
.menu-live-enter body::after { display: none; }
.menu-live-enter::after { width: 58%; left: 0; border-radius: 0 12% 12% 0 / 0 46% 46% 0; transform-origin: 0 100%; }
.menu-live-enter body::before { width: 58%; right: 0; border-radius: 12% 0 0 12% / 46% 0 0 46%; transform-origin: 100% 100%; }
.menu-live-enter::before { top: 0; height: 100vh; transform: none; opacity: 0.8; background: var(--menu-route-ink, var(--off)); }
.menu-live-enter.menu-live-running::before { animation: curtain-line-fade 320ms ease both; }
.menu-live-enter.menu-live-running::after { animation: curtain-unzip-left 1000ms cubic-bezier(0.65, 0, 0.25, 1) 0ms both; }
.menu-live-enter.menu-live-running body::before { animation: curtain-unzip-right 1000ms cubic-bezier(0.65, 0, 0.25, 1) 0ms both; }

/* ===== Arrival: straight seam — two flat halves slide apart left and right (no swing, no rounding). ===== */
.menu-live-enter::after { width: 50%; left: 0; border-radius: 0; transform-origin: 50% 50%; }
.menu-live-enter body::before { width: 50%; right: 0; border-radius: 0; transform-origin: 50% 50%; }
.menu-live-enter.menu-live-running::after { animation: curtain-split-left 950ms cubic-bezier(0.76, 0, 0.24, 1) both; }
.menu-live-enter.menu-live-running body::before { animation: curtain-split-right 950ms cubic-bezier(0.76, 0, 0.24, 1) both; }
@keyframes curtain-split-left { from { transform: translateX(0); } to { transform: translateX(-101%); } }
@keyframes curtain-split-right { from { transform: translateX(0); } to { transform: translateX(101%); } }
/* With the side split the page is visible from the first frame: keep it still (no rise/scale), so no dark band shows above it. */
.menu-live-running .page-window { animation: none; }

/* /work/web captions, quieter: small muted number + medium title on one line, a hairline above. */
main[data-section="web"] .work-grid .work-card .wc-meta { grid-template-columns: 2.6em minmax(0, 1fr); grid-template-areas: "no title"; align-items: baseline; column-gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
main[data-section="web"] .work-grid .work-card .wc-index { font-family: var(--font-text); font-weight: 400; font-size: var(--fs-small); letter-spacing: 0.02em; color: var(--fg-2); }
main[data-section="web"] .work-grid .work-card .wc-title { font-size: clamp(1.2rem, 1.55vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.15; }
@media (hover: hover) and (pointer: fine) {
  main[data-section="web"] .work-grid .work-card:hover .wc-title { transform: translateX(4px); }
}
/* /work/web: just the title under the image — no number, no rule. */
main[data-section="web"] .work-grid .work-card .wc-index { display: none; }
main[data-section="web"] .work-grid .work-card .wc-meta { display: block; margin-top: 0; padding-top: 16px; border-top: 0; }
@media (min-width: 761px) { main[data-section="web"] .work-grid { row-gap: clamp(36px, 4vw, 64px); } }

/* Home web showcase: every website as a column of large names; the one crossing the middle of the viewport is lit
   and its screenshot sits beside the list, held in the vertical centre. Phones: names only. */
.showcase[data-showcase="web"] { display: block; }
.web-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.web-index { list-style: none; margin: 0; padding: 0; border: 0; }
.web-index .wi-row { display: flex; width: fit-content; align-items: center; gap: 0.3em; padding: 0; border: 0; color: color-mix(in srgb, var(--fg) 18%, transparent); transition: color 350ms ease; }
.web-index .wi-title { font-size: clamp(2.2rem, 4.3vw, 4.6rem); line-height: 1.02; letter-spacing: -0.04em; transform: none !important; }
.web-index .wi-row.is-active { color: var(--fg); }
.web-index .wi-no, .web-index .wi-cat, .web-index .wi-thumb { display: none; }
.web-index .wi-row .icon { width: 0.5em; height: 0.5em; font-size: clamp(2.2rem, 4.3vw, 4.6rem); opacity: 0; transition: opacity 300ms ease, transform 520ms var(--ease-out); }
.web-index .wi-row.is-active .icon { opacity: 1; }
.work-index.web-index:hover .wi-row:not(:hover):not(.is-active) { color: color-mix(in srgb, var(--fg) 18%, transparent); }
/* Starts level with the top of the list, scrolls up with it, and once it reaches the middle of the viewport it stays there. */
.ws-col { align-self: stretch; }
.ws-screen { display: block; position: sticky; top: calc(50svh - var(--ws-h, 0px) / 2); }
.ws-screen .media { position: relative; overflow: hidden; background: var(--black-2); }
.ws-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; opacity: 0; transform: scale(1.03); transition: opacity 650ms var(--ease-out), transform 1100ms var(--ease-out); }
.ws-img.is-prev { opacity: 1; transform: none; z-index: 0; transition: opacity 650ms var(--ease-out) 250ms; }
.ws-img.is-active { opacity: 1; transform: none; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .ws-img { transition: none; transform: none; } }
@media not ((hover: hover) and (pointer: fine)), (max-width: 860px) {
  .web-split { grid-template-columns: 1fr; }
  .ws-col { display: none; }
  .web-index li:nth-child(n+5) { display: none; }
  .web-index .wi-row { width: auto; color: var(--fg); justify-content: space-between; padding-block: 6px; }
  .web-index .wi-title { font-size: clamp(1.9rem, 8.5vw, 3rem); }
  .web-index .wi-row .icon { opacity: 1; width: 20px; height: 20px; font-size: inherit; }
}
/* Less air between the websites and the films section. */
.section:has([data-showcase="web"]) { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }
/* Home films: tighter space between rows. */
.showcase[data-showcase="film"] { row-gap: clamp(24px, 3vw, 44px); }
/* Reels: draggable with a mouse. Snap waits until the drag ends. */
@media (hover: hover) and (pointer: fine) {
  .reels-track { cursor: grab; }
  .reels-track.is-dragging { cursor: grabbing; scroll-snap-type: none; -webkit-user-select: none; user-select: none; }
  .reels-track.is-dragging * { pointer-events: none; }
}


/* Project hero parallax in CSS where supported (0.35 × scroll over the first 130vh, same as the JS fallback). */
.p-hero > .media { will-change: transform; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .p-hero > .media { animation: p-hero-parallax linear both; animation-timeline: scroll(root block); animation-range: 0 130vh; }
  }
}
@keyframes p-hero-parallax { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 45.5vh, 0); } }

/* ==========================================================================
   Home 2026-12: software, web & app development company
   ========================================================================== */

/* ---------- Home hero: statement and actions; the client banner closes the first screen ---------- */
.hx { display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(500px, calc(100svh - 130px), 780px); padding-top: calc(var(--header-h) + 32px); padding-bottom: clamp(40px, 7vh, 88px); }
.hx-title { font-size: clamp(2.6rem, min(6.2vw, 11.5vh), 6.25rem); line-height: 0.98; max-width: 14ch; }
.hx-side { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; margin-top: clamp(24px, 3.4vh, 40px); }
.hx-side p { font-size: var(--fs-body-l); line-height: 1.5; color: var(--fg-2); max-width: 52ch; }
.hx-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) {
  .hx { min-height: calc(100svh - 96px); }
  .hx-actions, .hx-actions .btn { width: 100%; }
  .hx-actions .btn { justify-content: space-between; }
}
@keyframes hx-drift { to { transform: translateX(-50%); } }

/* ---------- Clients: a moving banner, logos only ---------- */
.cb { position: relative; padding-block: clamp(22px, 2.6vw, 38px); overflow: hidden; }
.cb-viewport { overflow: hidden; }
.cb-track { display: flex; width: max-content; animation: hx-drift calc(var(--n, 30) * 3.4s) linear infinite; }
.cb-set { display: flex; align-items: center; }
.cb-set li { flex: none; width: clamp(130px, 12vw, 180px); height: clamp(46px, 4.4vw, 62px); margin-right: clamp(28px, 3.6vw, 60px); }
/* The logos are drawn for light paper: inverted to light on dark, with their backgrounds dropped out by the blend.
   Logos that are already white (.is-light) are only greyed. */
.cb-set img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) invert(1) brightness(1.2); mix-blend-mode: screen; opacity: 0.72; transition: opacity 300ms ease; }
.cb-set li.is-light img { filter: grayscale(1) brightness(1.15); mix-blend-mode: normal; }
/* Converted logos already share one canvas (12:5) with their margins built in: equal boxes, no filter. */
.cb-set li { width: clamp(150px, 12.6vw, 216px); height: auto; aspect-ratio: 12 / 5; margin-right: clamp(6px, 1vw, 18px); }
.cb-set li.is-ready img { filter: none; mix-blend-mode: normal; }
.marquee-paused .cb-track, .cb.is-offscreen .cb-track { animation-play-state: paused; }
/* The pause control appears for keyboard users; the pointer pauses by hovering. */
.cb-pause { position: absolute; right: var(--pad-x); bottom: 6px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: var(--fs-micro); opacity: 0; pointer-events: none; }
.cb-pause:focus-visible { opacity: 1; pointer-events: auto; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .cb-viewport:hover .cb-track { animation-play-state: paused; }
  .cb-set li:hover img { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cb-viewport { overflow-x: auto; }
  .cb-track { animation: none; padding-left: var(--pad-x); }
  .cb-set[aria-hidden="true"], .cb-pause { display: none; }
}

/* ---------- Device mock-ups on a panel in the client's colour (case studies) ---------- */
.dv-panel { position: relative; overflow: hidden; border-radius: 14px; background: var(--brand, var(--black-3)); isolation: isolate; }
.dv-panel img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.dv-laptop { position: absolute; left: 50%; top: 50%; width: 74%; transform: translate(-50%, -50%); filter: drop-shadow(0 28px 32px rgba(0, 0, 0, 0.35)); transition: transform 900ms var(--ease-out); }
.dv-screen { aspect-ratio: 16 / 10; padding: 1.4% 1.4% 0; border-radius: 14px 14px 0 0; background: #0b0b0a; }
.dv-screen img { border-radius: 5px 5px 0 0; }
.dv-base { position: relative; width: 116%; margin-left: -8%; aspect-ratio: 46 / 1; border-radius: 2px 2px 14px 14px; background: #c9c7c1; }
.dv-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 15%; height: 45%; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #a3a19b; }
.dv-phone { position: absolute; left: 50%; top: 9%; width: 54%; aspect-ratio: 390 / 844; transform: translateX(-50%); overflow: hidden; border: 6px solid #0b0b0a; border-radius: 34px; background: #0b0b0a; box-shadow: 0 30px 50px rgba(0, 0, 0, 0.35); }
.dv-phone img { border-radius: 27px; }
.dv-window { position: absolute; left: 11%; top: 15%; width: 132%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; box-shadow: 0 30px 50px rgba(0, 0, 0, 0.35); }
.dv-window.is-left { left: -43%; }
.dv-window.is-tall { left: 12%; top: 9%; width: 76%; height: 110%; aspect-ratio: auto; }
.dv-panel .dv-window.is-tall img { object-position: 50% 45%; }
/* A wide panel shows its screen whole and centred. */
.cs-tile.is-wide .dv-window { left: 9%; top: 10%; width: 82%; height: auto; aspect-ratio: 16 / 10; }
.cs-tile.is-wide .dv-phone { width: 26%; }

/* Website plus app ("cover.app"): laptop to the left, two phones standing in front of it. */
.dv-combo { position: absolute; inset: 0; }
.dv-panel .dv-combo .dv-laptop { left: 41%; width: 62%; }
.dv-panel .dv-combo .dv-phone { position: absolute; left: auto; top: auto; bottom: 7%; right: 20%; width: 18%; transform: none; border-width: 4px; border-radius: 18px; }
.dv-panel .dv-combo .dv-phone:last-child { right: 4%; bottom: 13%; }
.dv-combo .dv-phone img { border-radius: 14px; }
.cs-hero .dv-combo .dv-phone { border-width: 6px; border-radius: 30px; }
.cs-hero .dv-combo .dv-phone img { border-radius: 24px; }
@media (max-width: 860px) { .dv-panel .dv-combo .dv-phone { width: 22%; right: 25%; border-width: 4px; border-radius: 18px; } .cs-hero .dv-combo .dv-phone img { border-radius: 14px; } .dv-panel .dv-combo .dv-phone:last-child { right: 3%; } }

/* Three phones side by side, for projects with "cover.phones". */
.dv-phones { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: 3.5%; transition: transform 900ms var(--ease-out); }
.dv-phones .dv-phone { position: relative; left: auto; top: auto; flex: none; width: 27%; transform: none; border-width: 4px; border-radius: 18px; }
.dv-phones .dv-phone img { border-radius: 14px; }
.dv-phones .dv-phone:not(:nth-child(2)) { top: 4%; }
.cs-hero .dv-phones .dv-phone { width: 21%; border-width: 6px; border-radius: 30px; }
.cs-hero .dv-phones .dv-phone img { border-radius: 24px; }
@media (max-width: 860px) { .cs-hero .dv-phones .dv-phone { width: 27%; border-width: 4px; border-radius: 18px; } .cs-hero .dv-phones .dv-phone img { border-radius: 14px; } }
@media (hover: hover) and (pointer: fine) { .case:hover .dv-phones { transform: scale(1.03); } }

/* ---------- Project blocks (home case studies and Work): picture left, text right, on a solid background ---------- */
.cases { display: grid; gap: clamp(14px, 1.6vw, 24px); }
.case { position: relative; display: grid; grid-template-columns: minmax(0, 57fr) minmax(0, 43fr); padding: 12px; border-radius: 20px; background: #1a1a17; color: var(--off); --fg: var(--off); --fg-2: var(--gray-500); transition: background-color 300ms ease; }
.case-media { min-height: clamp(300px, 30vw, 420px); border-radius: 12px; }
.case-media .dv-laptop { width: 72%; }
.case-body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; padding: clamp(20px, 3.4vw, 56px); }
.case-kind { font-size: var(--fs-small); color: var(--fg-2); }
.case-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.9rem, 3vw, 3rem); letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.case-text, .case-metric { max-width: 46ch; font-size: 1rem; line-height: 1.55; color: var(--fg-2); }
.case-metric strong { margin-right: 8px; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 2.4vw, 2.5rem); letter-spacing: -0.03em; color: var(--fg); }
.case-link { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 12px; padding: 0 24px; border-radius: 999px; background: color-mix(in srgb, var(--off) 11%, transparent); font-size: 0.9375rem; font-weight: 500; transition: background-color 300ms ease, color 300ms ease; }
/* The link covers the whole block. */
.case-link::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.case-link .icon { transition: transform 520ms var(--ease-out); }
.case-link:focus-visible { outline: none; }
.case:has(.case-link:focus-visible) { outline: 1.5px solid var(--off); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .case:hover { background: #22221f; }
  .case:hover .dv-laptop { transform: translate(-50%, -52%) scale(1.03); }
  .case:hover .case-link { background: var(--off); color: var(--black); }
  .case:hover .case-link .icon { transform: rotate(45deg); }
}
.cases-more { display: flex; justify-content: center; margin-top: clamp(40px, 4vw, 64px); }
@media (max-width: 860px) {
  .case { grid-template-columns: 1fr; }
  .case-media { min-height: 0; aspect-ratio: 4 / 3; }
  .case-body { gap: 12px; padding: 20px 10px 10px; }
}
/* Home and Work: two to a row, full width. Picture beside text while there is room; below 1200px the text moves under it. */
.cases.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.is-grid .case { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); }
.is-grid .case-media { min-height: clamp(260px, 18vw, 340px); }
.is-grid .case-media .dv-laptop { width: 76%; }
.is-grid .case-body { gap: 10px; padding: clamp(16px, 1.8vw, 36px); }
.is-grid .case-title { font-size: clamp(1.35rem, 1.9vw, 2.1rem); overflow-wrap: anywhere; }
.is-grid .case-text { font-size: 0.9375rem; line-height: 1.5; }
.is-grid .case-link { min-height: 42px; margin-top: 6px; padding: 0 18px; font-size: var(--fs-small); }
@media (max-width: 1199px) {
  .is-grid .case { grid-template-columns: 1fr; align-content: start; }
  .is-grid .case-media { min-height: 0; aspect-ratio: 4 / 3; }
  .is-grid .case-body { justify-content: flex-start; padding: 18px 10px 8px; }
}
@media (max-width: 700px) { .cases.is-grid { grid-template-columns: 1fr; } }

/* ---------- In numbers: big figures, no boxes ---------- */
.nums-sec { padding-top: 0; }
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px var(--gutter); }
.nums > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 12px; }
.nums dt { font-size: var(--fs-small); color: var(--fg-2); }
.nums dd { font-family: var(--font-display); font-weight: 500; font-size: clamp(3rem, 6vw, 5.5rem); letter-spacing: -0.04em; line-height: 0.95; }
@media (max-width: 860px) { .nums { grid-template-columns: 1fr 1fr; } }

/* A fact still to be supplied (technologies). Hidden with "caseDrafts": false in data/site.json. */
.draft { justify-self: start; padding: 2px 10px; border: 1px dashed currentColor; border-radius: 999px; font-size: var(--fs-small); color: var(--fg-2); }

/* ---------- Technologies ---------- */
.stack { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 16px; margin-top: clamp(56px, 7vw, 104px); padding-top: 28px; border-top: 1px solid var(--line); align-items: baseline; }
.stack .label { grid-column: 1 / span 3; }
.stack ul, .stack .draft { grid-column: 4 / -1; }
.stack ul { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) { .stack .label, .stack ul, .stack .draft { grid-column: 1 / -1; } .stack .draft { border-radius: 12px; padding: 8px 12px; } }

/* ---------- One step down in scale on every page (owner, 2026-12-01: "everything is too big") ---------- */
html[data-page] { --section: clamp(64px, 6.5vw, 104px); --section-s: clamp(48px, 4.5vw, 72px); --fs-d1: clamp(1.9rem, 3.1vw, 3.25rem); --fs-d3: clamp(1.25rem, 1.7vw, 1.75rem); --fs-d2: clamp(1.6rem, 2.4vw, 2.5rem); --fs-hero: clamp(2.3rem, 4.8vw, 5rem); }
[data-page] .sec-head { margin-bottom: clamp(28px, 3vw, 48px); }
[data-page="index"] .svc-btn { padding-block: clamp(14px, 1.5vw, 22px); }
[data-page="index"] .svc-title { font-size: clamp(1.35rem, 2.1vw, 2.15rem); letter-spacing: -0.025em; }
[data-page="index"] .svc-no { padding-top: 0.5em; }
[data-page="index"] .svc-toggle { width: 36px; height: 36px; }
[data-page="index"] .svc-body { padding-bottom: clamp(20px, 2.4vw, 32px); }
[data-page="index"] .svc-body .body-l { font-size: 1rem; }
[data-page] .stack { margin-top: clamp(40px, 4vw, 64px); }
[data-page="index"] .web-index .wi-title, [data-page="index"] .web-index .wi-row .icon { font-size: clamp(1.4rem, 2.2vw, 2.25rem); }
[data-page="index"] .web-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
[data-page] .cta-title { font-size: clamp(2.4rem, 5.6vw, 5.75rem); line-height: 0.96; }
[data-page] .cta-row { margin-top: clamp(32px, 3.5vw, 56px); }
@media (max-width: 860px) {
  [data-page="index"] .web-index .wi-title { font-size: clamp(1.5rem, 6.5vw, 2rem); }
}

/* ---------- Case study page ---------- */
/* Headline, one big coloured panel, the text and facts, then services beside a wall of screens. */
.cs-in { max-width: 1280px; margin-inline: auto; }
.cstudy { padding-top: calc(var(--header-h) + clamp(28px, 5vw, 80px)); } /* not ".cs": older panel styles own that name */
.cs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; }
.cs-title { max-width: 18ch; font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 5vw, 4.75rem); letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }
.cs-head .btn { flex: none; }
.cp-shot { margin: clamp(32px, 4vw, 56px) 0 0; }
.cs-hero { aspect-ratio: 16 / 9; }
.cs-summary { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 10fr); gap: 14px clamp(20px, 3vw, 48px); align-items: start; margin-top: clamp(48px, 6vw, 96px); }
.cs-text { max-width: 46ch; font-size: clamp(1.35rem, 2.1vw, 2rem); }
.cs-label { margin-bottom: 14px; font-size: var(--fs-small); font-weight: 400; color: var(--fg-2); }
.cs-intro { font-size: clamp(1.35rem, 2.1vw, 2rem); line-height: 1.3; letter-spacing: -0.015em; text-wrap: pretty; }
.cs-intro + .cs-intro { margin-top: 20px; }
.cs-intro + .cs-label { margin-top: 36px; }
/* Client, type and website sit right under the headline. */
.cs-facts { display: flex; flex-wrap: wrap; gap: 18px clamp(32px, 5vw, 80px); margin-top: clamp(20px, 2.4vw, 32px); }
.cs-facts dt { margin-bottom: 8px; font-family: var(--font-label); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-300); }
.cs-facts dd { font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
.cs-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px var(--gutter); margin-top: clamp(48px, 6vw, 96px); }
.cs-metrics > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; }
.cs-metrics dt { font-size: var(--fs-small); color: var(--fg-2); }
.cs-metrics dd { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.8rem, 5.4vw, 5rem); letter-spacing: -0.04em; line-height: 1; }
.cs-challenges { margin-top: clamp(64px, 8vw, 128px); }
.cs-h { margin-bottom: clamp(24px, 3vw, 44px); font-family: var(--font-display); font-weight: 500; font-size: var(--fs-d2); letter-spacing: -0.03em; line-height: 1; }
.cs-challenges ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px var(--gutter); }
.cs-challenges li { display: flex; flex-direction: column; gap: 12px; }
.cs-challenges .num { font-size: var(--fs-small); color: var(--fg-2); }
.cs-challenges p { font-size: var(--fs-body-l); line-height: 1.5; }
.cs-ct { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.2rem, 1.6vw, 1.5rem); letter-spacing: -0.015em; line-height: 1.15; text-wrap: balance; }
.cs-ct + p { color: var(--fg-2); }
/* Four items never wrap three and one. */
@media (min-width: 561px) and (max-width: 1099px) { .cs-challenges ol:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cs-work { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 10fr); gap: 32px clamp(20px, 3vw, 48px); align-items: start; margin-top: clamp(64px, 8vw, 128px); }
.cs-side { position: sticky; top: calc(var(--header-h) + 16px); }
.cs-list { display: grid; gap: 10px; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem, 1.5vw, 1.45rem); letter-spacing: -0.015em; line-height: 1.2; }
.cs-list + .cs-label { margin-top: 36px; }
.cs-wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.cs-tile { aspect-ratio: 4 / 5; }
.cs-tile.is-wide { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
/* Previous on the left, next on the right: picture, then a round arrow beside the name. */
.cs-pn-sec { padding-block: var(--section); }
.cs-pn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 4vw, 64px); }
.cs-pn-link { display: flex; flex-direction: column; gap: 20px; }
.cs-pn-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: var(--black-3); }
.cs-pn-media img { object-position: 50% 0; opacity: 0.6; transition: opacity 400ms ease, transform 1100ms var(--ease-out); }
.cs-pn-row { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 20px); }
.cs-pn-link.is-next .cs-pn-row { flex-direction: row-reverse; text-align: right; }
.cs-pn-arrow { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, var(--fg) 12%, transparent); transition: background-color 300ms ease, color 300ms ease, transform 520ms var(--ease-out); }
.cs-pn-arrow .icon { width: 20px; height: 20px; }
.cs-pn-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cs-pn-k { font-size: var(--fs-small); color: var(--fg-2); }
.cs-pn-t { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem, 2.4vw, 2.25rem); letter-spacing: -0.025em; line-height: 1.05; overflow-wrap: anywhere; }
.cs-pn-link:focus-visible { outline-offset: 6px; }
.cs-pn-link:focus-visible img { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .cs-pn-link:hover img { opacity: 1; transform: scale(1.035); }
  .cs-pn-link:hover .cs-pn-arrow { background: var(--fg); color: var(--bg); }
  .cs-pn-link.is-prev:hover .cs-pn-arrow { transform: translateX(-6px); }
  .cs-pn-link.is-next:hover .cs-pn-arrow { transform: translateX(6px); }
}
.cs-pn-all { display: flex; justify-content: center; margin-top: clamp(40px, 4.5vw, 72px); }
@media (max-width: 560px) {
  .cs-pn-arrow { width: 36px; height: 36px; }
  .cs-pn-k { font-size: var(--fs-micro); }
}
.cp-block { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cp-block .num { font-size: var(--fs-small); color: var(--fg-2); }
.cp-block p { font-size: 1rem; line-height: 1.6; color: var(--fg-2); }
@media (max-width: 860px) {
  .cs-head { flex-direction: column; align-items: flex-start; }
  .cs-summary, .cs-work { grid-template-columns: 1fr; }
  .cs-side { position: static; }
  .cs-hero { aspect-ratio: 4 / 3; }
  .cs-hero .dv-laptop { width: 80%; }
}
@media (max-width: 560px) {
  .cs-wall { grid-template-columns: 1fr; }
  .cs-tile.is-wide { aspect-ratio: 4 / 3; }
  .cs-tile.is-wide .dv-window { top: 18%; }
  .cs-head .btn { width: 100%; justify-content: space-between; }
}
[data-page="contact"] .contact-hero .cta-title { font-size: var(--fs-hero); }

/* ---------- Services and About blocks ---------- */
.ab-title { max-width: 16ch; }
.page-hero .nums { margin-top: clamp(32px, 3.6vw, 56px); }
.ab-principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(24px, 3vw, 56px); }
.ab-principles h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-d3); letter-spacing: -0.02em; line-height: 1.08; }
@media (max-width: 1100px) { .ab-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ab-principles { grid-template-columns: 1fr; } }

/* ---------- Services: clear solid blocks, type only ---------- */
.sg-sec { padding-block: var(--section-s) var(--section); }
.sg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 20px); }
.sg-item { display: flex; scroll-margin-top: calc(var(--header-h) + 16px); }
.sg-box { display: flex; flex-direction: column; width: 100%; padding: clamp(24px, 2.6vw, 40px); border-radius: 14px; background: var(--paper-2); color: var(--black); transition: background-color 300ms ease, color 300ms ease; }
.sg-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 2.3vw, 2.25rem); letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.sg-text { margin-top: 14px; color: var(--gray-600); line-height: 1.55; }
.sg-caps { display: grid; gap: 10px; margin-top: auto; padding-top: clamp(28px, 2.8vw, 44px); font-weight: 500; font-size: 0.9375rem; line-height: 1.35; }
.sg.is-compact .sg-box { min-height: clamp(190px, 16vw, 250px); justify-content: space-between; gap: 32px; }
.sg-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.sg-foot .sg-text { margin: 0; max-width: 30ch; }
.sg-foot .icon { width: 22px; height: 22px; transition: transform 520ms var(--ease-out); }
a.sg-box:focus-visible { outline: 1.5px solid var(--black); outline-offset: 3px; border-radius: 14px; }
a.sg-box:focus-visible, a.sg-box:focus-visible .sg-text { background-color: var(--black); color: var(--off); }
@media (hover: hover) and (pointer: fine) {
  a.sg-box:hover { background: var(--black); color: var(--off); }
  a.sg-box:hover .sg-text { color: var(--gray-300); }
  a.sg-box:hover .icon { transform: rotate(45deg); }
}
@media (max-width: 1100px) { .sg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sg { grid-template-columns: 1fr; } .sg.is-compact .sg-box { min-height: 0; } }

/* ---------- Inner page header: title left, intro right (About, Contact) ---------- */
.ph2 { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 112px)); padding-bottom: clamp(40px, 5vw, 80px); }
.ph2-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px 8%; align-items: end; }
.ph2-head .h-hero { max-width: 16ch; }
.ph2 .nums { margin-top: clamp(48px, 6vw, 96px); }
@media (max-width: 860px) { .ph2-head { grid-template-columns: 1fr; } }

/* ---------- About: two statement blocks, then principle blocks ---------- */
.ab-duo-sec { padding-bottom: var(--section); }
.ab-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 20px); }
.ab-box { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 24px; padding: clamp(24px, 3.4vw, 56px); border-radius: 20px; background: #1a1a17; }
.ab-box.is-bone { background: var(--off); color: var(--black); }
.ab-box h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 2.8vw, 2.9rem); letter-spacing: -0.03em; line-height: 1.12; text-wrap: balance; }
.ab-box p { max-width: 52ch; font-size: var(--fs-body-l); line-height: 1.6; color: var(--fg-2); }
.ab-box .btn { margin-top: auto; }
.sg.sg-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sg-two .sg-box { justify-content: space-between; min-height: clamp(180px, 15vw, 240px); gap: 28px; }
.sg-two .sg-text { margin: 0; max-width: 52ch; }
@media (max-width: 760px) { .ab-duo { grid-template-columns: 1fr; } .sg.sg-two { grid-template-columns: 1fr; } .sg-two .sg-box { min-height: 0; } }

/* ---------- Contact: solid blocks, filled fields, no rules ---------- */
.ph2 .contact-ways { gap: clamp(12px, 1.2vw, 20px); margin-top: clamp(32px, 4vw, 64px); padding-top: 0; border: 0; }
.ph2 .contact-ways li { padding: clamp(18px, 1.8vw, 28px); border-radius: 14px; background: #1a1a17; }
.ct-body { padding-bottom: var(--section); }
/* Title and note on the left, the fields on the right, across the full width. */
.ct-form { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr; column-gap: clamp(24px, 4vw, 72px); padding: clamp(22px, 3.4vw, 56px); border-radius: 20px; background: #1a1a17; }
.ct-form > .h-d2 { grid-column: 1; grid-row: 1; margin-bottom: 12px; }
.ct-form > .form-req { grid-column: 1; grid-row: 2; margin-bottom: 32px; }
.ct-form > form, .ct-form > .form-success { grid-column: 2; grid-row: 1 / span 3; }
.ct-form > .form-success { padding-block: 0; }
@media (max-width: 960px) { .ct-form { grid-template-columns: 1fr; grid-template-rows: none; } .ct-form > .h-d2, .ct-form > .form-req, .ct-form > form, .ct-form > .form-success { grid-column: 1; grid-row: auto; } }
.ct-form .form-part { margin: 40px 0 16px; padding: 0; border: 0; font-family: var(--font-display); font-size: var(--fs-d3); letter-spacing: -0.02em; }
.ct-form .form-req + form .form-part:first-child { margin-top: 0; }
.ct-form .form-row { gap: 0 16px; }
.ct-form .field { gap: 8px; padding: 0; margin-bottom: 16px; border: 0; }
.ct-form .field input, .ct-form .field textarea, .ct-form .field select { padding: 14px 16px; border-radius: 12px; background: #272723; font-size: 1.0625rem; outline: 2px solid transparent; outline-offset: 0; transition: outline-color 200ms ease, background-color 200ms ease; }
.ct-form .field input:focus, .ct-form .field textarea:focus, .ct-form .field select:focus { outline-color: var(--off); }
.ct-form .field.is-invalid input, .ct-form .field.is-invalid textarea { outline-color: #e2725b; }
.ct-form .field select option { background: #272723; color: var(--off); }
.ct-form .field.has-select::after { right: 18px; bottom: 21px; }
.ct-form .fieldset { margin-bottom: 20px; padding: 0; border: 0; }
.ct-form .choice > span { border: 0; background: #272723; }
.ct-form .choice input:checked + span { background: var(--off); color: var(--black); }
@media (hover: hover) and (pointer: fine) { .ct-form .choice input:not(:checked):hover + span { background: #34342f; } }
.ct-form .form-foot { margin-top: 28px; }

/* ---------- 404: the number, one line, four ways out ---------- */
.err-num { width: min(80vw, 820px); }
.err-text { max-width: 30ch; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 2.25rem); letter-spacing: -0.025em; line-height: 1.15; color: var(--off); text-wrap: balance; }
.err-blocks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 20px); width: min(100%, 1100px); margin-top: clamp(20px, 3vw, 44px); text-align: left; }
.err-blocks a { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; min-height: clamp(110px, 11vw, 150px); padding: clamp(18px, 1.8vw, 28px); border-radius: 20px; background: #1a1a17; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 1.8vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.1; transition: background-color 300ms ease, color 300ms ease; }
.err-blocks .icon { width: 22px; height: 22px; transition: transform 520ms var(--ease-out); }
.err-blocks a:focus-visible { outline: 1.5px solid var(--off); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .err-blocks a:hover { background: var(--off); color: var(--black); }
  .err-blocks a:hover .icon { transform: rotate(45deg); }
}
@media (max-width: 700px) { .err-blocks { grid-template-columns: 1fr 1fr; } }

/* ---------- Home hero field: slow gradient in the colours of the featured projects, a dot grid that lights up and parts around the pointer. ---------- */
.hx { position: relative; isolation: isolate; overflow: hidden; }
.hx > :not(.hx-bg) { position: relative; z-index: 1; }
.hx-bg { --c1: #8e2328; --c2: #23589e; --c3: #a8884f; --c4: #8a5a2b; position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; animation: hx-bg-in 1600ms var(--ease-out) both; }
.hx-blob { position: absolute; width: 62vmax; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--c) 0%, color-mix(in srgb, var(--c) 45%, transparent) 45%, transparent 100%); opacity: 0.78; will-change: transform; }
.hx-b1 { --c: var(--c1); right: -16vmax; top: -20vmax; animation: hx-drift-a 26s ease-in-out infinite alternate; }
.hx-b2 { --c: var(--c2); right: 6vw; bottom: -30vmax; opacity: 0.7; animation: hx-drift-b 32s ease-in-out infinite alternate; }
.hx-b3 { --c: var(--c3); left: 24vw; top: -28vmax; width: 56vmax; opacity: 0.5; animation: hx-drift-c 29s ease-in-out infinite alternate; }
.hx-b4 { --c: var(--c4); left: -20vmax; top: -16vmax; width: 52vmax; opacity: 0.55; animation: hx-drift-b 36s ease-in-out infinite alternate-reverse; }
/* Keep the copy readable: the field fades to black under the title and into the section below. */
.hx-bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(to top, var(--black) 0%, rgba(12, 12, 11, 0.7) 24%, rgba(12, 12, 11, 0) 58%),
  linear-gradient(to right, rgba(12, 12, 11, 0.35) 0%, rgba(12, 12, 11, 0) 50%); }
.hx-dots { position: absolute; inset: 0; z-index: 2; }
@keyframes hx-bg-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hx-drift-a { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-14vw, 10vh, 0) scale(1.12); } }
@keyframes hx-drift-b { from { transform: translate3d(0, 0, 0) scale(1.05); } to { transform: translate3d(12vw, -14vh, 0) scale(0.92); } }
@keyframes hx-drift-c { from { transform: translate3d(0, 0, 0) scale(0.95); } to { transform: translate3d(-10vw, 16vh, 0) scale(1.1); } }
@media (max-width: 700px) {
  .hx-blob { width: 95vmax; }
  .hx-b1 { right: -40vmax; top: -22vmax; }
  .hx-b2 { right: -30vmax; bottom: -50vmax; }
  .hx-b3 { left: -20vmax; top: -40vmax; width: 80vmax; }
  .hx-bg::after { background: linear-gradient(to top, var(--black) 0%, rgba(12, 12, 11, 0.8) 34%, rgba(12, 12, 11, 0) 72%); }
}
@media (prefers-reduced-motion: reduce) {
  .hx-bg, .hx-blob { animation: none; }
}

/* ---------- About: every client logo in a grid, no boxes (same uniform white logos as the banner). ---------- */
.clist .sec-head { margin-bottom: clamp(32px, 4vw, 64px); }
.clist-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: clamp(8px, 1.4vw, 20px) clamp(16px, 2.6vw, 44px); margin: 0; padding: 0; list-style: none; }
.clist-logos li { aspect-ratio: 12 / 5; }
.clist-logos img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) invert(1) brightness(1.2); mix-blend-mode: screen; opacity: 0.72; transition: opacity 300ms ease; }
.clist-logos li.is-light img { filter: grayscale(1) brightness(1.15); mix-blend-mode: normal; }
.clist-logos li.is-ready img { filter: none; mix-blend-mode: normal; }
@media (hover: hover) and (pointer: fine) { .clist-logos li:hover img { opacity: 1; } }
@media (max-width: 560px) { .clist-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 14px; } }

/* ---------- Menu: original push layout (owner preferred it). Only fix: the hover nudge is not clipped. ---------- */
.push-menu .menu-list .menu-item { overflow: visible; }

/* ---------- Footer: company and short description, pages, services, contact; legal line at the bottom. ---------- */
.site-footer { padding-top: clamp(64px, 7vw, 112px); }
.foot-main { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 48px clamp(24px, 4vw, 72px); }
.foot-main .foot-col { grid-column: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.foot-main .foot-col h2 { margin: 0 0 8px; padding: 0; border: 0; font-family: var(--font-text); font-weight: 400; font-size: 0.8125rem; letter-spacing: 0.02em; color: var(--gray-300); }
.foot-main .foot-col a, .foot-main .foot-col p { font-size: 1rem; line-height: 1.45; color: var(--off); }
.foot-main .foot-socials { flex-direction: column; gap: 10px; }
.foot-brand { display: inline-flex; color: var(--off); }
.foot-brand .logo { width: clamp(150px, 12vw, 200px); height: auto; }
.foot-main .foot-about { gap: 0; }
.foot-main .foot-about .foot-desc { max-width: 36ch; margin-top: 22px; color: var(--gray-300); }
.foot-main .foot-about .foot-cta { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; margin-top: 28px; color: var(--black); }
.site-footer .foot-base { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; margin-top: clamp(56px, 6vw, 96px); padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--gray-300); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.foot-legal a { color: var(--gray-300); transition: color 200ms ease; }
.foot-legal a:hover { color: var(--off); }
@media (max-width: 1000px) {
  .foot-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-main .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .foot-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
  .foot-main .foot-reach { grid-column: 1 / -1; }
  .site-footer .foot-base { flex-direction: column; align-items: flex-start; }
}

/* ---------- Legal pages: contents list at the left (sticky), readable text column at the right. ---------- */
.lg-lead { display: flex; flex-direction: column; gap: 16px; }
.lg-date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-size: 0.9375rem; color: var(--fg-2); }
.lg-date-k { font-family: var(--font-label); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-300); }
.lg-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 120px); padding-block: clamp(56px, 7vw, 112px); }
.lg-toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 0.9375rem; }
.lg-toc a { color: var(--fg-2); transition: color 200ms ease; }
.lg-toc a:hover { color: var(--fg); }
.lg-text { max-width: 68ch; }
.lg-sec + .lg-sec { margin-top: clamp(36px, 4vw, 56px); }
.lg-sec { scroll-margin-top: calc(var(--header-h) + 24px); }
.lg-sec h2 { margin-bottom: 14px; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.375rem, 2vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.2; }
.lg-sec p { font-size: 1.0625rem; line-height: 1.65; color: var(--fg-2); }
.lg-sec a { color: var(--fg); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
@media (max-width: 860px) {
  .lg-body { grid-template-columns: 1fr; }
  .lg-toc { display: none; }
}

/* ---------- Call to action: centred, compact ---------- */
.cta.cta-center { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: var(--section); }
.cta-center .cta-title { font-size: clamp(2.5rem, 5.4vw, 5.25rem); line-height: 1; letter-spacing: -0.035em; }
.cta-text { max-width: 36ch; margin-top: 20px; font-size: var(--fs-body-l); line-height: 1.5; color: var(--fg-2); }
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(28px, 3vw, 44px); }
@media (max-width: 560px) { .cta-buttons, .cta-buttons .btn { width: 100%; } .cta-buttons .btn { justify-content: center; } }

/* ---------- About: GPS and API strength, one panel with the NavTrace map ---------- */
.tech-sec { padding-top: 0; padding-bottom: var(--section); }
.sg-sec + .tech-sec { padding-top: var(--section); }
.tech-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); color: var(--off); --fg: var(--off); --fg-2: rgba(241, 238, 232, 0.72); }
.tech-copy { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(22px, 2.4vw, 34px); padding: clamp(24px, 3.6vw, 56px); }
.tech-copy .muted { color: var(--fg-2); }
.tech-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(20px, 2.4vw, 40px); }
.tech-list dt { margin-bottom: 8px; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.2rem, 1.6vw, 1.5rem); letter-spacing: -0.015em; line-height: 1.15; }
.tech-list dd { font-size: 0.9375rem; line-height: 1.55; color: var(--fg-2); }
.tech-fig { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; color: var(--fg-2); }
.tech-fig strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.8rem, 5vw, 4.5rem); letter-spacing: -0.04em; line-height: 0.95; color: var(--fg); }
.tech-shot { position: relative; min-height: clamp(260px, 30vw, 480px); }
.tech-shot .dv-laptop { left: 62%; width: 108%; }
@media (max-width: 1100px) {
  .tech-panel { grid-template-columns: 1fr; }
  .tech-shot { aspect-ratio: 4 / 3; min-height: 0; }
  .tech-shot .dv-laptop { left: 50%; width: 82%; }
}
@media (max-width: 560px) { .tech-list { grid-template-columns: 1fr; } }

/* ---------- Page change: swipe. The old page slides up and fades, the new one rises from below.
   Overrides every earlier curtain variant (all html/body pseudo-element curtains are switched off). ---------- */
html.menu-live-leave, html.menu-live-enter { background: var(--black); }
html.menu-live-leave::before, html.menu-live-leave::after,
html.menu-live-enter::before, html.menu-live-enter::after,
html.menu-live-enter body::before, html.menu-live-enter body::after { content: none; display: none; animation: none; }
html.menu-live-leave body { animation: page-swipe-out 420ms cubic-bezier(0.7, 0, 0.84, 0) both; pointer-events: none; }
html.menu-live-enter body { opacity: 0; transform: translate3d(0, 7vh, 0); }
html.menu-live-enter.menu-live-running body { animation: page-swipe-in 700ms cubic-bezier(0.16, 1, 0.3, 1) both; }
html.menu-live-running .page-window { animation: none; }
@keyframes page-swipe-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate3d(0, -7vh, 0); } }
@keyframes page-swipe-in { from { opacity: 0; transform: translate3d(0, 7vh, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html.menu-live-leave body, html.menu-live-enter body, html.menu-live-enter.menu-live-running body { animation: none; opacity: 1; transform: none; }
}

/* Project page labels: clearer than the small grey default. */
.cstudy .cs-label { font-family: var(--font-label); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-300); }

/* ---------- Small labels everywhere: Space Grotesk, uppercase, semibold (same as the project page labels). Colours stay per component. ---------- */
.case-kind, .nums dt, .cs-pn-k, .way-label, .foot-main .foot-col h2, .label, .cs-label, .cs-facts dt {
  font-family: var(--font-label); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase;
}

/* ---------- Work hero: the Home gradient and dot field behind the heading, no rule, one dropdown filter. ---------- */
.work-hero { position: relative; z-index: 3; isolation: isolate; } /* above the project grid, so the open dropdown is not covered */
.work-hero > :not(.hx-bg) { position: relative; z-index: 1; }
.work-hero .page-hero-meta { flex-direction: column; align-items: flex-start; gap: clamp(20px, 2.4vw, 32px); padding-top: 0; border-top: 0; }
.work-hero .page-hero-meta { z-index: 5; }
.work-filter { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wf-dd { position: relative; }
.wf-all, .wf-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px; border: 1px solid rgba(241, 238, 232, 0.28); border-radius: 999px; color: var(--off); font-weight: 500; font-size: 0.9375rem; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms var(--ease-out-ui); }
.wf-btn { padding: 0 16px 0 20px; }
.wf-all[aria-pressed="true"], .wf-dd.is-set .wf-btn { background: var(--off); border-color: var(--off); color: var(--black); }
.wf-all:active, .wf-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .wf-all[aria-pressed="false"]:hover, .wf-dd:not(.is-set) .wf-btn:hover { border-color: var(--off); } }
.wf-btn .icon { width: 18px; height: 18px; transition: transform 300ms var(--ease-out-ui); }
.wf-dd.is-open .wf-btn .icon { transform: rotate(180deg); }
.wf-menu { position: absolute; left: 0; top: calc(100% + 8px); z-index: 30; display: grid; min-width: 220px; padding: 6px; border-radius: 16px; background: #1f1f1c; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45); }
.wf-menu[hidden] { display: none; }
.wf-opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--off); font-size: 0.9375rem; text-align: left; }
.wf-opt .icon { width: 16px; height: 16px; opacity: 0; }
.wf-opt[aria-checked="true"] .icon { opacity: 1; }
.wf-opt:hover, .wf-opt:focus-visible { background: rgba(241, 238, 232, 0.08); outline: none; }
@media (max-width: 560px) { .wf-all, .wf-btn { min-height: 42px; padding: 0 14px; font-size: 0.875rem; gap: 6px; } .wf-btn { padding-right: 10px; } .wf-btn .icon { width: 16px; height: 16px; } }

/* ---------- Services hero: the second line changes word by word (rising out of a line mask). ---------- */
.page-hero .sp-title { max-width: none; }
.sp-rot { display: inline-grid; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; vertical-align: top; }
.sp-word { grid-area: 1 / 1; white-space: nowrap; will-change: transform; }
@media (max-width: 560px) { .sp-word { white-space: normal; } }

/* ---------- Services hero: heading on top, then four colour cards wired to a central </> chip (owner's reference).
   Desktop: one scalable board (SVG lines + absolutely placed cards, sized in container units). Below 1000px: a plain card grid. ---------- */
.svc-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 4vw, 72px); align-items: center; padding-top: calc(var(--header-h) + clamp(32px, 4.4vw, 80px)); padding-bottom: clamp(40px, 5vw, 80px); }
.svc-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(20px, 2.4vw, 32px); }
.svc-hero-copy .h-hero { max-width: 16ch; font-size: clamp(2.6rem, 5.4vw, 5.25rem); line-height: 0.98; }
.svc-hero-copy .body-l { max-width: 38ch; color: var(--fg-2); }
.svc-map { position: relative; container-type: inline-size; aspect-ratio: 1200 / 560; max-width: 720px; justify-self: end; width: 100%; }
.svc-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.svc-line { fill: none; stroke: rgba(241, 238, 232, 0.55); stroke-width: 2; }
.svc-dot.is-teal { fill: #2ec4c4; }
.svc-dot.is-violet { fill: #8b5cf6; }
.svc-card { position: absolute; width: 35.83%; height: 28.57%; display: grid; grid-template-columns: auto 1px minmax(0, 1fr); align-items: center; gap: 2.2cqw; padding: 0 2.4cqw; border-radius: 2.2cqw; color: var(--off); transition: transform 300ms var(--ease-out-ui); }
.svc-card.c-tl { left: 0; top: 7.14%; }
.svc-card.c-tr { right: 0; top: 7.14%; }
.svc-card.c-bl { left: 0; bottom: 7.14%; }
.svc-card.c-br { right: 0; bottom: 7.14%; }
.svc-card.is-red { background: #8e2328; }
.svc-card.is-blue { background: #1f5bb5; }
.svc-card.is-gold { background: #a8884f; }
.svc-card.is-bone { background: #ecebe6; color: #0c0c0b; }
.svc-card::before { content: ""; grid-column: 2; grid-row: 1; align-self: stretch; margin-block: 22%; background: currentColor; opacity: 0.35; }
.svc-card-ic { grid-column: 1; grid-row: 1; display: grid; place-items: center; }
.svc-card-ic .icon { width: 4.8cqw; height: 4.8cqw; }
.svc-card-tx { grid-column: 3; grid-row: 1; display: flex; flex-direction: column; gap: 0.7cqw; }
.svc-card-t { font-family: var(--font-display); font-weight: 500; font-size: 3cqw; letter-spacing: -0.02em; line-height: 1.05; }
.svc-card-d { font-size: 1.9cqw; line-height: 1.3; opacity: 0.85; }
@media (hover: hover) and (pointer: fine) { .svc-card:hover { transform: translateY(-4px); } }
@media (max-width: 1100px) {
  .svc-hero { display: block; }
  .svc-map { max-width: none; margin-top: clamp(32px, 5vw, 56px); aspect-ratio: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; container-type: normal; }
  .svc-lines { display: none; }
  .svc-card.c-tl, .svc-card.c-tr, .svc-card.c-bl, .svc-card.c-br { inset: auto; }
  .svc-card { position: relative; inset: auto; width: auto; height: auto; min-height: 120px; gap: 16px; padding: 20px; border-radius: 16px; }
  .svc-card-ic .icon { width: 32px; height: 32px; }
  .svc-card-t { font-size: 1.25rem; }
  .svc-card-d { font-size: 0.875rem; }
  .svc-card-tx { gap: 6px; }
}
@media (max-width: 560px) { .svc-map { grid-template-columns: 1fr; } }

/* Services hero picture (owner's image). Its black background blends into the dark page. */
/* The glow lives on the wrapper and is painted under the picture; the picture (figure) lightens onto page + glow,
   so its black background never shows, not even while it fades in. */
.svc-visual { position: relative; justify-self: end; width: 100%; max-width: 760px; }
.svc-visual::before { content: ""; position: absolute; inset: -30% -18%; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(139, 92, 246, 0.55), rgba(70, 90, 230, 0.22) 45%, rgba(46, 196, 196, 0.08) 65%, transparent 80%);
  filter: blur(60px); animation: svc-glow 8s ease-in-out infinite alternate; }
.svc-figure { position: relative; margin: 0; width: 100%; }   /* transparent PNG/WebP: no blend needed */
.svc-figure img { display: block; width: 100%; height: auto; }
@keyframes svc-glow { from { opacity: 0.75; transform: scale(0.98); } to { opacity: 1; transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .svc-visual::before { animation: none; } }
@media (max-width: 1100px) { .svc-visual { max-width: none; margin-top: clamp(24px, 4vw, 48px); } }
.svc-hero { overflow-x: clip; }   /* the big glow must not widen the page */

/* ---------- Page glows: each page has its own soft gradient behind the top section (Home keeps its own field).
   Only the first screen is lit; it fades to the page colour before the next section. ---------- */
[data-page="services"] .svc-hero { display: block; }
[data-page]:not([data-page="index"]) #top { position: relative; isolation: isolate; }
[data-page]:not([data-page="index"]) #top::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: min(100%, 110vh); z-index: -1; pointer-events: none;
  background: var(--page-glow, none);
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%); mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
}
/* Services: from the right, violet into blue. */
[data-page="services"] { --page-glow: radial-gradient(120% 95% at 100% 35%, rgba(139, 92, 246, 0.42), rgba(70, 90, 230, 0.2) 38%, rgba(46, 196, 196, 0.06) 60%, transparent 78%); }
/* Work: from the bottom left, red into gold. */
[data-page="work"] { --page-glow: radial-gradient(110% 100% at 0% 100%, rgba(170, 38, 48, 0.42), rgba(168, 136, 79, 0.18) 40%, transparent 72%); }
/* About: from the top, teal into blue. */
[data-page="about"] { --page-glow: radial-gradient(90% 85% at 50% 0%, rgba(46, 196, 196, 0.3), rgba(35, 88, 158, 0.18) 42%, transparent 75%); }
/* Contact: from the top right, gold into warm red. */
[data-page="contact"] { --page-glow: radial-gradient(100% 95% at 100% 0%, rgba(190, 154, 88, 0.38), rgba(142, 35, 40, 0.14) 45%, transparent 75%); }
/* Privacy and terms: quiet blue-grey from the top left. */
[data-page="privacy"], [data-page="terms"] { --page-glow: radial-gradient(90% 90% at 0% 0%, rgba(110, 130, 170, 0.28), transparent 70%); }
/* 404: magenta from the top. */
[data-page="404"] { --page-glow: radial-gradient(90% 80% at 50% 0%, rgba(190, 60, 140, 0.3), rgba(120, 60, 200, 0.12) 45%, transparent 75%); }
/* Project: the client's own colour, from the top right. */
[data-page="project"] #top::before { background: radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--glow-brand, #23589e) 55%, transparent), transparent 70%); height: min(100%, 120vh); }

/* 404: one centred way back (owner: the four link blocks were too much). */
.err-back { margin-top: clamp(16px, 2.4vw, 32px); }

/* ---------- Menu language switch: same family as the Work filters and the small labels (Space Grotesk, semibold, tracked). ---------- */
.push-menu .menu .lang { padding: 4px; border-color: color-mix(in srgb, var(--menu-ink) 26%, transparent); }
.push-menu .menu .lang button { min-height: 36px; padding: 0 14px; font-family: var(--font-label); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.06em; opacity: 0.55; }
.push-menu .menu .lang button[aria-pressed="true"] { opacity: 1; }
.push-menu .menu .lang::before { top: 4px; bottom: 4px; background: var(--menu-ink); }
@media (max-width: 600px) { .push-menu .menu .lang button { min-height: 34px; padding: 0 12px; font-size: 0.75rem; } }

/* ---------- Legal pages in the newer style: dark body, contents list as labels that follow the reading position. ---------- */
.lg-body { padding-top: clamp(24px, 3vw, 48px); }
.lg-toc { gap: 4px; padding-left: 0; }
.lg-toc a { position: relative; padding: 7px 0 7px 16px; font-family: var(--font-label); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-500); }
.lg-toc a::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: currentColor; opacity: 0; transform: scale(0.4); transition: opacity 250ms ease, transform 300ms var(--ease-out-ui); }
.lg-toc a.is-current { color: var(--off); }
.lg-toc a.is-current::before { opacity: 1; transform: none; }
.lg-text { max-width: 70ch; }
.lg-sec + .lg-sec { margin-top: clamp(44px, 5vw, 72px); }
.lg-sec h2 { margin-bottom: 16px; color: var(--off); }
.lg-sec p { color: rgba(241, 238, 232, 0.7); }
.lg-sec a { color: var(--off); }
