/* ==========================================================
   The Edit Desk — site styles
   Warm off-white palette (Noho) + #0000FF accent
   ========================================================== */

:root {
  --paper: #efeeea;
  --paper-2: #e5e3dd;
  --ink: #2b2b2b;
  --ink-soft: rgba(43, 43, 43, 0.58);
  --line: rgba(43, 43, 43, 0.14);
  --blue: #0000ff;
  --on-blue: #efeeea;   /* text/marks on blue stay light in both themes */
  --header-bg: rgba(239, 238, 234, 0.86);

  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;

  --gutter: clamp(16px, 2.2vw, 32px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

::selection { background: var(--blue); color: var(--on-blue); }

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.muted { color: var(--ink-soft); }
[hidden] { display: none !important; }

/* ---------- Film grain: a faint moving noise layer over everything, like printed paper ---------- */
body::before {
  content: ""; position: fixed; inset: -50%; z-index: 99; pointer-events: none;
  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.8' 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;
  opacity: var(--grain, 0.07);
  animation: grain 0.9s steps(6) infinite;
}
[data-theme="dark"] { --grain: 0.09; }
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  17% { transform: translate(-5%, -7%); }
  33% { transform: translate(-12%, 4%); }
  50% { transform: translate(6%, -11%); }
  67% { transform: translate(-3%, 12%); }
  83% { transform: translate(11%, 3%); }
}
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

/* ---------- Custom cursor (added by JS on mouse devices only) ---------- */
.has-dot, .has-dot * { cursor: none !important; }
.cursor {
  position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none;
  mix-blend-mode: difference; /* white dot inverts what's under it: dark on light, light on dark */
  opacity: 0; transition: opacity 0.2s;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hidden { opacity: 0; }
.cursor-shape {
  position: absolute; left: 0; top: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  display: grid; place-items: center; overflow: hidden;
  transform: translate(-50%, -50%);
  transition: width 0.45s var(--ease), height 0.45s var(--ease), border-radius 0.45s var(--ease),
              background-color 0.3s, transform 0.25s var(--ease);
}
.cursor-label {
  font-size: 13px; font-weight: 500; letter-spacing: -0.01em; color: var(--on-blue);
  opacity: 0; transform: scale(0.6); transition: opacity 0.25s, transform 0.45s var(--ease);
  white-space: nowrap;
}
.cursor.is-down .cursor-shape { transform: translate(-50%, -50%) scale(0.6); }

/* Over links and buttons: a slightly bigger inverted disc */
.cursor.is-link .cursor-shape { width: 30px; height: 30px; }

/* Over projects and films: a blue circle with a label */
.cursor.is-label { mix-blend-mode: normal; }
.cursor.is-label .cursor-shape { width: 84px; height: 84px; background: var(--blue); }
.cursor.is-label .cursor-label { opacity: 1; transform: scale(1); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.header.is-solid {
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

/* Empty slot the flying logo lands in */
.brand-slot { width: 92px; aspect-ratio: 333.2 / 193.8; display: block; }

.nav { display: flex; gap: clamp(20px, 3vw, 44px); font-size: 15px; font-weight: 500; }
.nav a { position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-cta { justify-self: end; display: flex; align-items: center; gap: 12px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 999px;
  background: var(--blue); color: var(--on-blue);
  font-size: 14px; font-weight: 500;
  transition: transform 0.4s var(--ease), background-color 0.3s;
}
.pill:hover { transform: translateY(-2px); background: var(--ink); color: var(--paper); }
.pill svg { width: 12px; height: 12px; transition: transform 0.4s var(--ease); }
.pill:hover svg { transform: rotate(45deg); }

.menu-btn { display: none; width: 40px; height: 40px; border-radius: 50%; background: var(--paper-2); place-items: center; }
.menu-btn span, .menu-btn span::before {
  display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; transition: transform 0.4s var(--ease);
}
.menu-btn span::before { content: ""; position: absolute; top: 5px; }
.menu-btn span { transform: translateY(-2.5px); }
.menu-open .menu-btn span { transform: translateY(0) rotate(45deg); }
.menu-open .menu-btn span::before { transform: translateY(-5px) rotate(-90deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--paper);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease);
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; font-size: 44px; font-weight: 500; letter-spacing: -0.04em; }

/* ---------- Flying logo ---------- */

.logo-fly {
  position: fixed;
  z-index: 60;
  top: 0; left: 0;
  color: var(--ink);
  transform-origin: 0 0;
  will-change: transform;
}
.logo-fly { transition: opacity 0.4s var(--ease); }
.menu-open .logo-fly:not(.is-docked) { opacity: 0; pointer-events: none; }
.logo-fly svg { width: 100%; height: auto; display: block; overflow: visible; }
.logo-fly a { display: block; }

/* ---------- Intro ---------- */

.intro {
  position: relative;
  height: 100svh;
  min-height: 560px;
  padding: calc(var(--header-h) + 8px) var(--gutter) 28px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.intro-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.intro-row p { max-width: 260px; font-size: 14px; }
.intro-row .right { text-align: right; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue i {
  width: 1px; height: 28px; background: var(--line); position: relative; overflow: hidden;
}
.scroll-cue i::after {
  content: ""; position: absolute; inset: 0; background: var(--blue);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Section scaffolding ---------- */

.section { padding: clamp(96px, 14vw, 200px) var(--gutter); position: relative; }
.section-head {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter);
  align-items: end; margin-bottom: clamp(48px, 7vw, 96px);
}
.section-title {
  grid-column: 1 / span 7;
  font-size: clamp(44px, 7.4vw, 120px);
  line-height: 0.92; letter-spacing: -0.05em; font-weight: 500;
}
.section-title .count { font-family: var(--serif); font-style: italic; font-size: 0.42em; letter-spacing: 0; vertical-align: top; margin-left: 0.2em; color: var(--blue); }

/* ---------- Statement (Noho inline images) ---------- */

.statement { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.statement .meta { grid-column: 1 / span 3; display: flex; flex-direction: column; gap: 6px; padding-top: 0.8em; }
.statement-text {
  grid-column: 4 / span 9;
  font-size: clamp(32px, 4.6vw, 76px);
  line-height: 1.04; letter-spacing: -0.045em; font-weight: 500;
}
.statement-text .w { opacity: 0.14; transition: opacity 0.2s linear; }
.statement-text .serif { color: var(--blue); }
.chip {
  display: inline-block; vertical-align: middle;
  width: 1.5em; height: 0.92em; margin: -0.12em 0.06em 0;
  border-radius: 0.14em; overflow: hidden;
  background: var(--paper-2);
  transform: scale(0.6); opacity: 0;
}
.chip img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Media ---------- */

.media {
  position: relative; overflow: hidden; background: var(--paper-2);
  border-radius: 4px;
}
.media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease);
}

/* ---------- Reel videos: autoplay (muted) while on screen ---------- */
.reel-video {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.6s var(--ease);
}
.reel-video.is-ready, .reel-video[poster] { opacity: 1; }
.media .play { z-index: 2; }
/* Sound on/off for each film */
.sound-btn {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(15, 15, 15, 0.45); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.3s, transform 0.4s var(--ease);
}
.sound-btn svg { width: 18px; height: 18px; }
.sound-btn:hover { transform: scale(1.08); }
.sound-btn.is-on { background: var(--blue); color: var(--on-blue); }
.sound-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
/* No film yet: the still image drifts slowly so the reel still feels alive */
.media.is-still.in-view img { animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.14) translate(-2%, -2%); } }

/* ---------- Work ---------- */

.view-toggle {
  grid-column: 9 / span 4; justify-self: end;
  display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper-2);
  font-size: 13px; font-weight: 500;
}
.view-toggle button { padding: 8px 16px; border-radius: 999px; transition: background-color 0.3s, color 0.3s; }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.work-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter); row-gap: clamp(56px, 8vw, 120px);
  align-items: start;
}
.work-item { display: block; }
.work-item .media { aspect-ratio: var(--ar, 4 / 5); }
.work-item:hover .media img { transform: scale(1); }
.work-cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 14px; }
.work-cap b { font-weight: 500; }
.work-cap span { color: var(--ink-soft); }

/* Scattered, Esquire-style placement */
.w1 { grid-column: 1 / span 5; --ar: 4 / 5; }
.w2 { grid-column: 8 / span 3; --ar: 3 / 4; margin-top: 18vw; }
.w3 { grid-column: 4 / span 4; --ar: 1 / 1; }
.w4 { grid-column: 10 / span 3; --ar: 4 / 5; margin-top: 10vw; }
.w5 { grid-column: 1 / span 3; --ar: 3 / 4; margin-top: 6vw; }
.w6 { grid-column: 5 / span 5; --ar: 5 / 4; }
.w7 { grid-column: 11 / span 2; --ar: 2 / 3; margin-top: 22vw; }
.w8 { grid-column: 2 / span 4; --ar: 4 / 5; }

.work-list { display: none; border-top: 1px solid var(--line); }
.is-list .work-grid { display: none; }
.is-list .work-list { display: block; }
.work-row {
  display: grid; grid-template-columns: 60px 1.6fr 1fr 1fr 80px; gap: var(--gutter);
  align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -0.02em;
  transition: color 0.3s, padding 0.5s var(--ease);
}
.work-row:hover { color: var(--blue); padding-left: 12px; }
.work-row .n, .work-row .y { font-size: 13px; color: var(--ink-soft); letter-spacing: 0; }
.work-row .y { text-align: right; }
.work-row .name { font-weight: 500; }

.cursor-preview {
  position: fixed; top: 0; left: 0; z-index: 40; pointer-events: none;
  width: 260px; aspect-ratio: 4 / 5;
  opacity: 0; transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
}
.cursor-preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor-preview .media { width: 100%; height: 100%; }

/* ---------- Clients (logos only) ---------- */

.client-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.client-grid li {
  aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 12%;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background-color 0.4s var(--ease);
}
.client-grid img {
  max-width: 100%; max-height: 42px; width: auto; height: auto; object-fit: contain;
  filter: brightness(0); opacity: 0.55; /* every logo in one tone, regardless of the file's colours */
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.client-grid li:hover { background: var(--paper-2); }
.client-grid li:hover img { opacity: 1; transform: scale(1.06); }

/* ---------- Marquee ---------- */

.marquee {
  background: var(--blue); color: var(--on-blue);
  overflow: hidden; white-space: nowrap;
  padding: 18px 0;
}
.marquee-track { display: inline-flex; will-change: transform; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 0.5em; padding-right: 0.5em;
  font-size: clamp(28px, 4vw, 56px); letter-spacing: -0.04em; font-weight: 500;
}
.marquee-track .serif { font-size: 1.05em; }
.marquee-track .dot { width: 0.22em; height: 0.22em; border-radius: 50%; background: var(--on-blue); display: inline-block; }

/* ---------- Services ---------- */

.services { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.services-intro { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 24px; }
.services-intro p { max-width: 340px; color: var(--ink-soft); }
.service-list { grid-column: 6 / span 7; border-top: 1px solid var(--line); }
.service { border-bottom: 1px solid var(--line); }
.service-head {
  width: 100%; display: grid; grid-template-columns: 48px 1fr 32px; align-items: center; gap: 12px;
  padding: 26px 0; text-align: left;
  font-size: clamp(24px, 2.6vw, 40px); letter-spacing: -0.035em; font-weight: 500;
}
.service-head .n { font-size: 13px; color: var(--ink-soft); letter-spacing: 0; font-weight: 400; }
.service-head .plus { position: relative; width: 18px; height: 18px; justify-self: end; }
.service-head .plus::before, .service-head .plus::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor;
  transition: transform 0.5s var(--ease);
}
.service-head .plus::after { transform: rotate(90deg); }
.service.is-open .plus::after { transform: rotate(0deg); }
.service-head:hover { color: var(--blue); }
.service-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.service.is-open .service-body { grid-template-rows: 1fr; }
.service-body > div { overflow: hidden; }
.service-body ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; padding: 0 0 28px 60px; color: var(--ink-soft); }
.service-body li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }

/* ---------- Reel (curved carousel) ---------- */

.reel { --card: min(30vw, 42svh); padding: calc(var(--header-h) + 4vh) 0 8vh; overflow: hidden; min-height: 100svh; }
.reel .section-head { padding: 0 var(--gutter); margin-bottom: 5vh; }
.reel-stage { perspective: 1400px; }
.reel-track {
  display: flex; gap: clamp(16px, 2vw, 28px);
  padding: 0 calc(50vw - var(--card) / 2);
  position: relative; width: max-content;
  transform-style: preserve-3d; will-change: transform;
}
.reel-card { margin: 0; flex: 0 0 var(--card); transform-style: preserve-3d; will-change: transform; }
.reel-card .media { aspect-ratio: 3 / 4; border-radius: 8px; }
.reel-card .work-cap { margin-top: 14px; }

/* ---------- Process ---------- */

.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.step {
  background: var(--paper-2); border-radius: 6px; padding: 24px;
  min-height: clamp(280px, 30vw, 420px);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
.step:hover { background: var(--blue); color: var(--on-blue); }
.step:hover .muted { color: rgba(239, 238, 234, 0.7); }
.step h3 { font-size: clamp(32px, 3.6vw, 56px); letter-spacing: -0.045em; font-weight: 500; line-height: 1; }
.step p { max-width: 300px; font-size: 15px; }
.step-top { display: flex; justify-content: space-between; font-size: 13px; }

/* ---------- Footer / contact ---------- */

.footer {
  background: var(--blue); color: var(--on-blue);
  padding: clamp(80px, 12vw, 160px) var(--gutter) var(--gutter);
  overflow: hidden;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
  padding-bottom: clamp(56px, 7vw, 96px); border-bottom: 1px solid rgba(239, 238, 234, 0.25);
}
.footer h2 { font-size: clamp(48px, 8vw, 132px); line-height: 0.92; letter-spacing: -0.055em; font-weight: 500; }
.footer h2 .serif { letter-spacing: -0.02em; }
.pill--light { background: var(--on-blue); color: var(--blue); padding: 16px 26px; font-size: 16px; }
.pill--light:hover { background: var(--ink); color: var(--paper); }

/* Three columns: address · socials & contacts · newsletter (bottom bar lines up with them) */
.footer-grid, .footer-bottom {
  display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 40px var(--gutter);
}
.footer-grid { padding: clamp(48px, 6vw, 88px) 0; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.35; letter-spacing: -0.02em; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(32px, 4vw, 64px); }
.footer-col address { font-style: normal; }
.footer-social { display: flex; flex-direction: column; gap: 2px; }
.footer-pair { display: flex; flex-direction: column; align-items: flex-start; }
.footer-pair > span { opacity: 0.6; }
.footer-bottom a { position: relative; }
.footer-bottom a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.footer-bottom a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Footer hovers: letters roll up one by one (JS splits the text into .ch spans) */
.roll { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: top; line-height: 1.3; }
.roll .ch {
  display: inline-block; text-shadow: 0 1.3em currentColor;
  transition: transform 0.55s var(--ease); transition-delay: calc(var(--i) * 14ms);
}
.footer-grid a:hover .roll .ch { transform: translateY(-1.3em); }
/* Socials also get a little arrow that pops in */
.footer-social a { display: inline-flex; align-items: center; gap: 6px; }
.footer-social a::after {
  content: "\2197"; font-size: 0.7em; opacity: 0; transform: translate(-6px, 6px);
  transition: opacity 0.3s, transform 0.5s var(--ease);
}
.footer-social a:hover::after { opacity: 1; transform: none; }
/* Newsletter heading does a small wave */
.footer-news h3 .ch { display: inline-block; }
.footer-news:hover h3 .ch { animation: wave 0.8s var(--ease) both; animation-delay: calc(var(--i) * 22ms); }
@keyframes wave { 0%, 100% { transform: none; } 40% { transform: translateY(-0.1em) rotate(-4deg); } }
.status i { transition: transform 0.4s var(--ease); }
.status:hover i { transform: scale(1.7); }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: 0; opacity: 0.85; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--on-blue); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 238, 234, 0.6); } 50% { box-shadow: 0 0 0 6px rgba(239, 238, 234, 0); } }

.footer-news h3 {
  font-size: clamp(40px, 4.8vw, 80px); line-height: 1; letter-spacing: -0.05em; font-weight: 500;
}
.news-form {
  position: relative; margin-top: clamp(28px, 3.5vw, 48px);
  display: flex; align-items: center; border-radius: 16px;
  background: rgba(239, 238, 234, 0.12); transition: background-color 0.3s;
}
.news-form:focus-within { background: rgba(239, 238, 234, 0.2); }
.news-form input {
  flex: 1; min-width: 0; font: inherit; font-size: clamp(17px, 1.4vw, 21px); color: var(--on-blue);
  background: transparent; border: 0; outline: none; padding: clamp(18px, 1.8vw, 26px) 24px;
}
.news-form input::placeholder { color: rgba(239, 238, 234, 0.55); }
.news-form button { padding: 0 24px; align-self: stretch; display: grid; place-items: center; color: var(--on-blue); }
.news-form button svg { width: 26px; height: 26px; transition: transform 0.5s var(--ease); }
.news-form button:hover svg { transform: translateX(6px); }
.news-form.is-error { box-shadow: inset 0 0 0 1.5px rgba(239, 238, 234, 0.7); }
.news-note { margin-top: 14px; font-size: 14px; letter-spacing: 0; opacity: 0.6; }

/* "Next page" link: at the bottom of the page, each scroll fills 20%; at 100% the next page opens */
.next-page {
  display: flex; align-items: center; gap: clamp(16px, 2vw, 28px);
  padding: clamp(28px, 3vw, 40px) 0; border-top: 1px solid rgba(239, 238, 234, 0.25);
}
.next-page .eyebrow { font-size: clamp(14px, 1.3vw, 18px); white-space: nowrap; }
.np-track {
  position: relative; flex: 0 1 300px; height: 4px; border-radius: 4px; overflow: hidden;
  background: rgba(239, 238, 234, 0.22);
}
.np-fill {
  position: absolute; inset: 0; border-radius: inherit; background: var(--on-blue);
  transform: scaleX(0); transform-origin: left center;
}
.np-name {
  font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1; white-space: nowrap;
}
.next-page svg { width: 26px; height: 26px; flex: none; transition: transform 0.5s var(--ease); }
.next-page:hover svg { transform: translateX(8px); }

.footer-bottom {
  align-items: center; padding-top: 24px; border-top: 1px solid rgba(239, 238, 234, 0.25);
  font-size: 14px; gap: 12px var(--gutter);
}
.footer-bottom-end { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.made { display: inline-flex; align-items: center; gap: 6px; }
.heart { width: 15px; height: 15px; color: var(--on-blue); animation: beat 1.6s ease-in-out infinite; transform-origin: center; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 30% { transform: scale(0.95); } 45% { transform: scale(1.12); } }

/* ---------- Reveal helpers ---------- */

.reveal { opacity: 0; transform: translateY(28px); }
.no-js .reveal, .reduced .reveal { opacity: 1; transform: none; }
.no-js .chip, .reduced .chip { opacity: 1; transform: none; }
.no-js .statement-text .w, .reduced .statement-text .w { opacity: 1; }

/* ==========================================================
   Inner pages
   ========================================================== */

.nav a[aria-current="page"] { color: var(--blue); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.mobile-menu a[aria-current="page"] { color: var(--blue); }

.section-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: clamp(48px, 6vw, 80px);
  font-size: 15px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 4px;
  transition: color 0.3s, gap 0.4s var(--ease);
}
.section-link:hover { color: var(--blue); gap: 16px; }

/* ---------- Page hero ---------- */

.page-hero {
  padding: calc(var(--header-h) + clamp(56px, 10vw, 140px)) var(--gutter) clamp(56px, 8vw, 110px);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end;
}
.page-hero .crumb { grid-column: 1 / -1; display: flex; gap: 10px; }
.page-hero .crumb a { color: var(--ink-soft); }
.page-hero .crumb a:hover { color: var(--blue); }
.page-title {
  grid-column: 1 / span 8;
  font-size: clamp(64px, 12.5vw, 210px); line-height: 0.88; letter-spacing: -0.065em; font-weight: 500;
}
.page-title .mask { display: block; overflow: hidden; padding-bottom: 0.04em; }
.page-title .line { display: block; }
.page-title .serif { color: var(--blue); letter-spacing: -0.03em; }
.page-intro { grid-column: 9 / span 4; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.4; letter-spacing: -0.02em; }
.page-intro .eyebrow { display: block; margin-bottom: 14px; color: var(--ink-soft); }

/* ---------- Filters ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(40px, 5vw, 72px); }
.filters button {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filters .count { opacity: 0.55; margin-left: 4px; font-size: 12px; }

/* ---------- Work page ---------- */

.project-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter); row-gap: clamp(64px, 9vw, 140px);
}
.project { display: block; grid-column: span 6; }
.project:nth-child(4n + 1) { grid-column: 1 / span 7; }
.project:nth-child(4n + 2) { grid-column: 9 / span 4; margin-top: 16vw; }
.project:nth-child(4n + 3) { grid-column: 2 / span 5; }
.project:nth-child(4n + 4) { grid-column: 7 / span 6; margin-top: 8vw; }
.project .media { aspect-ratio: 4 / 5; }
.project:nth-child(4n + 1) .media, .project:nth-child(4n + 4) .media { aspect-ratio: 5 / 4; }
.project:hover .media img { transform: scale(1); }
.project-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 16px; }
.project-meta h3 { font-size: clamp(22px, 2.2vw, 34px); letter-spacing: -0.035em; font-weight: 500; transition: color 0.3s; }
.project:hover .project-meta h3 { color: var(--blue); }
.project-meta span { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.project p { margin-top: 6px; max-width: 420px; color: var(--ink-soft); font-size: 15px; }

/* ---------- Services page ---------- */

.svc-block {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter);
  padding: clamp(48px, 6vw, 88px) 0; border-top: 1px solid var(--line);
}
.svc-block:last-child { border-bottom: 1px solid var(--line); }
.svc-side { grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--header-h) + 32px); }
.svc-side .n { font-size: 13px; color: var(--ink-soft); }
.svc-side h2 { margin-top: 10px; font-size: clamp(36px, 4.6vw, 76px); line-height: 0.95; letter-spacing: -0.05em; font-weight: 500; }
.svc-main { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 32px; }
.svc-main > p { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.35; letter-spacing: -0.02em; }
.svc-main .media { aspect-ratio: 16 / 10; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { padding: 7px 14px; border-radius: 999px; background: var(--paper-2); font-size: 14px; }

.faq { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.faq .services-intro { grid-column: 1 / span 4; }
.faq .service-list { grid-column: 6 / span 7; }
.faq .service-head { font-size: clamp(19px, 1.8vw, 26px); }
.faq .service-body p { padding: 0 0 26px 60px; color: var(--ink-soft); max-width: 640px; }

/* ---------- Reel page ---------- */

.feature { position: relative; display: block; width: 100%; text-align: left; }
.feature .media { aspect-ratio: 16 / 8; border-radius: 6px; }
.feature-cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 15px; }
.play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: clamp(72px, 8vw, 112px); aspect-ratio: 1; border-radius: 50%;
  background: var(--blue); color: var(--on-blue);
  display: grid; place-items: center; font-size: 13px; font-weight: 500;
  transition: transform 0.5s var(--ease);
}
.feature .play { top: calc(50% - 20px); }
.feature:hover .play, .reel-thumb:hover .play { transform: translate(-50%, -50%) scale(1.1); }

.reel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 5vw, 72px) var(--gutter); }
.reel-thumb { display: block; width: 100%; text-align: left; }
.reel-thumb .media { aspect-ratio: 4 / 5; position: relative; }
.reel-thumb .play { width: 64px; font-size: 12px; opacity: 0; transition: opacity 0.4s, transform 0.5s var(--ease); }
.reel-thumb:hover .play { opacity: 1; }
.reel-thumb:nth-child(3n + 2) { margin-top: 8vw; }

.lightbox {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center; padding: var(--gutter);
  visibility: hidden; opacity: 0; transition: opacity 0.4s var(--ease), visibility 0s 0.4s;
}
.lightbox.is-open { visibility: visible; opacity: 1; transition: opacity 0.4s var(--ease); }
.lightbox-bg { position: absolute; inset: 0; background: rgba(43, 43, 43, 0.92); }
/* The player takes each film's own shape (vertical or wide) and fits the screen without cropping */
.lightbox-inner { position: relative; width: fit-content; max-width: 100%; color: var(--on-blue); }
.lightbox-media { background: #000; border-radius: 6px; overflow: hidden; }
.lightbox-media img, .lightbox-media video {
  display: block; width: auto; height: auto;
  max-width: min(1100px, calc(100vw - 2 * var(--gutter))); max-height: calc(100svh - 140px);
  object-fit: contain;
}
.lightbox-bar { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 15px; }
.lightbox-bar button { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Process page ---------- */

.pstep {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter);
  padding: clamp(48px, 6vw, 96px) 0; border-top: 1px solid var(--line);
}
.pstep-num {
  grid-column: 1 / span 4; align-self: start; position: sticky; top: calc(var(--header-h) + 24px);
  font-size: clamp(96px, 14vw, 240px); line-height: 0.8; letter-spacing: -0.07em; font-weight: 500; color: var(--blue);
}
.pstep-body { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 24px; }
.pstep-body h2 { font-size: clamp(36px, 4.4vw, 72px); line-height: 0.95; letter-spacing: -0.05em; font-weight: 500; }
.pstep-body > p { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; letter-spacing: -0.02em; max-width: 620px; }
.pstep-meta { display: flex; gap: 32px; font-size: 14px; color: var(--ink-soft); }
.pstep-meta b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 4px; }

/* ---------- Contact page ---------- */

.contact { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.contact-info { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 32px; }
.contact-info .big-mail { font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.03em; border-bottom: 1.5px solid var(--line); padding-bottom: 6px; align-self: start; transition: border-color 0.3s, color 0.3s; }
.contact-info .big-mail:hover { color: var(--blue); border-color: var(--blue); }
.info-row { display: flex; flex-direction: column; gap: 4px; }
.info-row .eyebrow { color: var(--ink-soft); }

.form { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span, .form legend { font-size: 13px; color: var(--ink-soft); }
.field input, .field textarea {
  font: inherit; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -0.02em; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 8px 0 12px; outline: none; transition: border-color 0.3s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { border-color: var(--blue); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft); }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { margin-bottom: 14px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 15px; transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.chips input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-foot .pill { padding: 16px 26px; font-size: 16px; }
.form-note { font-size: 13px; color: var(--ink-soft); }
.form-sent { display: none; color: var(--blue); }
.form.is-sent .form-sent { display: block; }

.footer--compact { padding-top: clamp(24px, 3vw, 40px); }

/* ==========================================================
   Night edit (dark mode) — toggled from the header, saved per visitor
   ========================================================== */

:root[data-theme="dark"] {
  --paper: #0f0f0f;
  --paper-2: #1c1c1c;
  --ink: #efeeea;
  --ink-soft: rgba(239, 238, 234, 0.6);
  --line: rgba(239, 238, 234, 0.16);
  --header-bg: rgba(15, 15, 15, 0.86);
}
body { transition: background-color 0.5s var(--ease), color 0.5s var(--ease); }
[data-theme="dark"] .client-grid img { filter: brightness(0) invert(1); }

.theme-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; transition: border-color 0.3s, transform 0.6s var(--ease);
}
.theme-btn:hover { border-color: var(--ink); }
.theme-btn svg { width: 18px; height: 18px; transition: transform 0.6s var(--ease); }
[data-theme="dark"] .theme-btn svg { transform: rotate(180deg); }

/* ---------- Page transition ---------- */

/* Covers the page from first paint when arriving via an internal link; JS then slides it away */
html.pt-in::after { content: ""; position: fixed; inset: 0; z-index: 300; background: var(--blue); }
.pt {
  position: fixed; inset: 0; z-index: 300; pointer-events: none;
  background: var(--blue); color: var(--on-blue);
  display: grid; place-items: center;
  transform: translateY(100%);
}
.pt.is-cover { pointer-events: auto; }
.pt svg { width: clamp(90px, 10vw, 140px); height: auto; }

/* ---------- Studio clock ---------- */

.clock { display: inline-flex; gap: 8px; align-items: baseline; }
.clock b { font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- Numbers band ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.stat { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.stat-num {
  font-size: clamp(56px, 7.4vw, 124px); line-height: 0.9; letter-spacing: -0.065em; font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.stat-num .suf { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--blue); letter-spacing: 0; }
.stat p { color: var(--ink-soft); max-width: 220px; font-size: 15px; }

/* ---------- Studio page ---------- */

.manifesto .statement-text { grid-column: 1 / -1; }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(32px, 4vw, 56px) var(--gutter); }
.member .media { aspect-ratio: 3 / 4; }
.member .media img + img { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s var(--ease), transform 1.2s var(--ease); }
.member:hover .media img + img { opacity: 1; }
.member:hover .media img { transform: scale(1); }
.member h3 { margin-top: 14px; font-size: 20px; letter-spacing: -0.03em; font-weight: 500; }
.member p { color: var(--ink-soft); font-size: 14px; }

/* Behind the scenes: one vertical film beside one wide film */
.bts { display: grid; grid-template-columns: 1fr 2.35fr; gap: var(--gutter); align-items: end; }
.bts-item { margin: 0; }
.bts-item:first-child .media { aspect-ratio: 9 / 16; }
.bts-item:last-child .media { aspect-ratio: 16 / 9; }

/* ---------- Case study ---------- */

.case-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter);
  padding: 0 var(--gutter) clamp(40px, 5vw, 64px);
}
.case-meta div { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.case-meta .eyebrow { color: var(--ink-soft); }
.case-hero { padding: 0 var(--gutter); }
.case-hero .media { aspect-ratio: 16 / 8; border-radius: 6px; }
.case-block { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.case-block .side { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 10px; }
.case-block .side .eyebrow { color: var(--ink-soft); }
.case-block .side h2 { font-size: clamp(32px, 3.6vw, 56px); line-height: 0.95; letter-spacing: -0.05em; font-weight: 500; }
.case-block .body { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 20px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; letter-spacing: -0.02em; }
.case-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.case-grid .media:nth-child(1) { grid-column: 1 / span 5; aspect-ratio: 4 / 5; }
.case-grid .media:nth-child(2) { grid-column: 7 / span 6; aspect-ratio: 4 / 5; margin-top: 12vw; }
.case-grid .media:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.case-quote { max-width: 1100px; }
.case-quote blockquote {
  margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(34px, 4.6vw, 76px); line-height: 1.05; letter-spacing: -0.02em;
}
.case-quote blockquote::before { content: "\201C"; color: var(--blue); }
.case-quote blockquote::after { content: "\201D"; color: var(--blue); }
.case-quote cite { display: block; margin-top: 24px; font-style: normal; color: var(--ink-soft); font-size: 15px; }

.next-project {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end;
  padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line);
}
.next-project .eyebrow { grid-column: 1 / -1; color: var(--ink-soft); }
.next-project h2 {
  grid-column: 1 / span 7; font-size: clamp(56px, 10vw, 170px); line-height: 0.88; letter-spacing: -0.065em; font-weight: 500;
  transition: color 0.4s;
}
.next-project:hover h2 { color: var(--blue); }
.next-project .media { grid-column: 9 / span 4; aspect-ratio: 4 / 3; }
.next-project:hover .media img { transform: scale(1); }

/* ---------- Easter egg toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90;
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: 14px; font-weight: 500;
  transform: translate(-50%, calc(100% + 40px)); transition: transform 0.6s var(--ease);
}
.toast.is-on { transform: translate(-50%, 0); }
.toast .serif { font-size: 1.15em; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .header { grid-template-columns: 1fr auto; }
  .nav, .header-cta .pill { display: none; }
  .work-cap { flex-wrap: wrap; gap: 2px 12px; }
  .reel { min-height: 0; }
  .menu-btn { display: grid; }
  .brand-slot { width: 76px; }

  .statement .meta { grid-column: 1 / -1; flex-direction: row; gap: 16px; padding-top: 0; }
  .statement-text { grid-column: 1 / -1; }

  .section-title { grid-column: 1 / -1; }
  .view-toggle { grid-column: 1 / -1; justify-self: start; }

  .work-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .work-grid .work-item { grid-column: auto / span 1; margin-top: 0; }
  .work-grid .work-item:nth-child(3n + 1) { grid-column: 1 / -1; }
  .work-grid .work-item:nth-child(even) { margin-top: 48px; }
  .work-row { grid-template-columns: 32px 1fr 56px; }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
  .work-row .cat { display: none; }
  .work-row .client { display: none; }

  .services-intro, .service-list { grid-column: 1 / -1; }
  .service-body ul { grid-template-columns: 1fr; padding-left: 60px; }

  .reel-track { width: auto; padding: 0 var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .reel-track::-webkit-scrollbar { display: none; }
  .reel-card { flex-basis: 72vw; scroll-snap-align: center; }

  .process { grid-template-columns: 1fr; }
  .step { min-height: 220px; }

  .footer-grid, .footer-bottom { grid-template-columns: 1fr 1fr; }
  .footer-news, .footer-bottom-end { grid-column: 1 / -1; }
  .cursor-preview { display: none; }

  .page-title, .page-intro { grid-column: 1 / -1; }
  .project-grid { grid-template-columns: 1fr; row-gap: 56px; }
  .project-grid .project { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .svc-side, .svc-main, .faq .services-intro, .faq .service-list,
  .pstep-num, .pstep-body, .contact-info, .form { grid-column: 1 / -1; }
  .svc-side, .pstep-num { position: static; }
  .faq .service-body p { padding-left: 0; }
  .reel-grid { grid-template-columns: 1fr 1fr; }
  .reel-thumb:nth-child(3n + 2) { margin-top: 0; }
  .reel-thumb:nth-child(even) { margin-top: 40px; }
  .reel-thumb .play { opacity: 1; }
  .feature .media { aspect-ratio: 4 / 3; }
  .form-row { grid-template-columns: 1fr; gap: 40px; }
  .contact-info { margin-bottom: 40px; }
  .header-cta .theme-btn { width: 36px; height: 36px; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .team { grid-template-columns: 1fr 1fr; }
  .bts { grid-template-columns: 1fr; }
  .bts-item:first-child .media { aspect-ratio: 4 / 5; }
  .case-meta { grid-template-columns: 1fr 1fr; }
  .case-hero .media { aspect-ratio: 4 / 3; }
  .case-block .side, .case-block .body { grid-column: 1 / -1; }
  .case-grid .media:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .next-project h2, .next-project .media { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .intro-row { flex-direction: column; align-items: flex-start; }
  .intro-row .right { text-align: left; }
  .footer-grid, .footer-bottom { grid-template-columns: 1fr; }
  .footer-bottom-end { flex-direction: column; align-items: flex-start; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
