/* Valeor Tech: brand tokens (Apple Store direction: white is the dominant color) */
:root {
  --bg: #FFFFFF;
  --fg: #14161F;
  --accent: #AE8A4C;
  --sand: #6E6E73;
  --line: rgba(0, 0, 0, 0.08);
  /* Editorial break and the scroll-scrubbed panel stay fixed dark cinematic
     moments regardless of the page theme, the footage was shot against
     near-black and a white ground would fight it. Intentionally NOT theme
     variables: they don't flip in dark mode. */
  --panel: #0B0B0D;
  --panel-fg: #F5F5F7;
  --panel-sand: #A9A9AE;
  --panel-line: rgba(245, 245, 247, 0.16);
  --display: 'Instrument Serif', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); }

body {
  font-family: var(--sans);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom cursor replaces the system cursor only where it can actually run:
   fine-pointer devices, once JS has confirmed it booted. Everyone else
   (touch, no-js, reduced-motion) keeps the normal cursor. */
html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }

img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary:focus-visible, .btn-pill:focus-visible { outline-offset: 4px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--fg);
}

em { font-style: normal; color: var(--accent); }

/* ---------- custom cursor ----------
   The outer .cursor is a zero-size positioning anchor JS translates every
   frame (see script.js). The visible dot is a fixed 68px circle scaled down
   at rest, so growing it on hover animates transform, not width/height. */
.cursor {
  position: fixed; top: 0; left: 0; width: 0; height: 0; pointer-events: none; z-index: 9999;
  display: none;
}
html.has-cursor .cursor { display: block; }
.cursor__dot {
  position: absolute; top: -34px; left: -34px; width: 68px; height: 68px; border-radius: 50%;
  background: var(--fg); transform: scale(0.206);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}
.cursor__label {
  position: absolute; top: -34px; left: -34px; width: 68px; height: 68px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.08em; color: var(--fg);
  opacity: 0; transition: opacity 0.25s var(--ease); white-space: nowrap;
}
.cursor.is-active .cursor__dot { transform: scale(1); background: var(--accent); }
.cursor.is-active .cursor__label { opacity: 1; }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 10000; background: var(--bg);
  display: flex; align-items: flex-end;
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease);
}
.preloader.is-done { opacity: 0; transform: translateY(-4%); pointer-events: none; }
.preloader__arc {
  position: absolute; top: 2rem; right: 2rem; width: 46px; height: 46px;
}
.preloader__arc circle {
  fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 264; stroke-dashoffset: 264;
  transition: stroke-dashoffset 1.4s var(--ease);
}
.preloader.is-loading .preloader__arc circle { stroke-dashoffset: 40; }
.preloader__bottom {
  display: flex; align-items: center; gap: 1rem;
  padding: 0 6vw 2.2rem; width: 100%;
}
.preloader__label { font-size: 11px; letter-spacing: 0.14em; color: var(--sand); }
.preloader__bar { flex: 1; height: 1px; background: var(--line); position: relative; }
.preloader__bar-fill {
  position: absolute; inset: 0; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.2s linear;
}
.preloader__pct { font-size: 11px; color: var(--sand); min-width: 3ch; text-align: right; }

/* ---------- reveal-on-scroll (animated by GSAP, see script.js) ----------
   Every .reveal / .reveal-lines / .section-anim / .curtain-in element gets a
   shared "is-in" class the moment it crosses into view; each section's own
   CSS below decides what, if anything, that class should trigger beyond the
   base fade, so every section reads with its own distinct entrance. */
.reveal { opacity: 0; transform: translateY(26px); }
.no-js .reveal, .reduced-motion .reveal { opacity: 1; transform: none; filter: none; }

.reveal-lines .line { display: block; overflow: hidden; }
.reveal-lines .line > span { display: inline-block; transform: translateY(112%); }
.no-js .reveal-lines .line > span, .reduced-motion .reveal-lines .line > span { transform: none; }

/* Intro's blur-focus variant of .reveal */
.reveal.blur-in { filter: blur(8px); }

/* A left-to-right curtain wipe (used by the agency statement) instead of a fade */
.curtain-in { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease); }
.curtain-in.is-in { clip-path: inset(0 0% 0 0); }
.no-js .curtain-in, .reduced-motion .curtain-in { clip-path: none; }

.mono-label { font-family: var(--sans); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sand); }
.mono-row { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; font-family: var(--sans); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sand); }
.section-label { margin-bottom: 2.5rem; }

section { padding: 8rem 6vw; }
main > section + section, .work, .agency { border-top: 1px solid var(--line); }

/* ---------- buttons / links ---------- */
.btn-primary {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--bg); background: var(--fg);
  padding: 1.1rem 2rem; border: 1px solid var(--fg);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--fg); }
.btn-primary--footer { margin-top: 3rem; }

.btn-pill {
  display: inline-flex; align-items: center; font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--bg); background: var(--fg);
  padding: 0.65rem 1.3rem; border-radius: 999px; border: 1px solid var(--fg);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-pill:hover { background: var(--accent); border-color: var(--accent); color: var(--fg); }

.link-underline {
  display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--sans); font-size: 12px;
  letter-spacing: 0.06em; color: var(--fg); border-bottom: 1px solid var(--accent); padding-bottom: 3px;
  transition: opacity 0.3s var(--ease);
}
.link-underline:hover { opacity: 0.6; }

/* ---------- nav ----------
   A persistent frosted white bar with dark ink text throughout, the way
   Apple's own store nav stays put regardless of what's beneath it, rather
   than a transparent-over-hero trick, which would break across the hero,
   editorial-break, and scrub-panel's three separate dark video moments.
   .is-scrolled only adds a touch more depth once you've moved past the hero. */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem 6vw; background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow 0.4s var(--ease);
}
.nav.is-scrolled { padding: 1rem 6vw; box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(0,0,0,0.15); }
.nav__logo { display: flex; align-items: center; gap: 0.5rem; font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; color: var(--fg); }
.nav__logo img { height: 0.95em; width: auto; }
.nav__links { display: flex; gap: 2rem; font-size: 11px; letter-spacing: 0.1em; color: var(--fg); }
.nav__links a { position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav .btn-pill { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.nav__toggle { display: none; flex-direction: column; gap: 6px; }
.nav__toggle span { width: 22px; height: 1px; background: var(--fg); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }

/* ---------- hero ----------
   Full-bleed video, one clip at a time, cycling through all 5 on a loop
   (see script.js). A moderate gradient, not a heavy crush, so the footage's
   own color still reads through, same idea as hobro.digital's reference:
   dark enough for the text, not dark enough to erase the video underneath. */
.hero {
  position: relative; min-height: 100vh; overflow: hidden; background: var(--panel);
  display: flex; align-items: center; padding: 9rem 6vw 4rem;
}
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__video {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08); animation: hero-zoom 4s var(--ease) forwards;
}
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.reduced-motion .hero__video { animation: none; transform: none; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,11,13,0.12) 0%, rgba(11,11,13,0.28) 55%, rgba(11,11,13,0.62) 100%);
}
.hero__content {
  position: relative; z-index: 2; color: var(--panel-fg);
  display: flex; flex-direction: column; gap: 2.2rem; max-width: 1400px;
}
.hero__labels { padding-bottom: 0.5rem; color: var(--panel-sand); }
.hero__headline { font-size: clamp(2.4rem, 8.2vw, 7.4rem); color: var(--panel-fg); }
.hero__sub { max-width: 40ch; color: var(--panel-sand); }
.hero__actions { display: flex; align-items: center; gap: 2.2rem; flex-wrap: wrap; }
.hero__actions .btn-primary { background: var(--panel-fg); color: var(--panel); border-color: var(--panel-fg); }
.hero__actions .btn-primary:hover { background: var(--accent); color: var(--fg); border-color: var(--accent); }
.hero__actions .link-underline { color: var(--panel-fg); }
.hero__scroll-cue {
  position: absolute; bottom: 2.4rem; left: 6vw; z-index: 2; display: flex; align-items: center; gap: 0.7rem;
}
.hero__scroll-cue em { font-style: normal; color: var(--panel-sand); font-size: 10px; letter-spacing: 0.12em; }
.hero__scroll-cue span {
  display: block; width: 1px; height: 34px; background: var(--panel-line); position: relative; overflow: hidden;
}
.hero__scroll-cue span::after {
  content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: var(--accent);
  animation: scroll-cue 2s infinite ease-in-out;
}
@keyframes scroll-cue { 0% { top: -100%; } 50% { top: 0; } 100% { top: 100%; } }
.reduced-motion .hero__scroll-cue span::after { animation: none; top: 0; }

/* ---------- intro ---------- */
.intro__grid { display: grid; grid-template-columns: 200px 1fr 260px; gap: 3rem; max-width: 1300px; margin: 0 auto; align-items: center; }
.intro__text { font-size: clamp(1.2rem, 2.4vw, 1.7rem); color: var(--fg); max-width: 46ch; line-height: 1.45; transition: filter 1s var(--ease), opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.intro__kicker { opacity: 0; transform: translateX(-18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.intro__kicker.is-in { opacity: 1; transform: none; }
.no-js .intro__kicker, .reduced-motion .intro__kicker { opacity: 1; transform: none; }
.intro__media { aspect-ratio: 4 / 5; overflow: hidden; clip-path: inset(0 0 100% 0); }
.no-js .intro__media, .reduced-motion .intro__media { clip-path: none; }
.intro__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- services pillars (lead-in imagery above the marquee) ---------- */
.services__pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-bottom: 4rem; }
.pillar__frame { overflow: hidden; clip-path: inset(0 0 100% 0); }
.no-js .pillar__frame, .reduced-motion .pillar__frame { clip-path: none; }
.pillar__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: contrast(1.05) saturate(1.05); transition: transform 0.8s var(--ease); }
.pillar:hover .pillar__frame img { transform: scale(1.04); }
.pillar figcaption { margin-top: 0.9rem; }

/* ---------- services marquee ---------- */
.marquee-row {
  display: flex; align-items: baseline; justify-content: flex-start; gap: 2rem;
  padding: 1.5rem 0; border-top: 1px solid var(--line);
  opacity: 0; transform: translateX(-28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.marquee-row.is-in { opacity: 1; transform: none; }
.no-js .marquee-row, .reduced-motion .marquee-row { opacity: 1; transform: none; }
.marquee-list { border-bottom: 1px solid var(--line); }
.marquee-list:hover .marquee-row.is-in:not(:hover) { opacity: 0.32; }
.marquee-row__num { font-family: var(--sans); font-size: 12px; color: var(--sand); min-width: 2.5rem; }
.marquee-row__name {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.3rem, 3.6vw, 2.6rem); letter-spacing: -0.01em; transition: color 0.3s var(--ease);
}
.marquee-row:hover .marquee-row__name { color: var(--accent); }
.marquee-row__tag { margin-left: auto; font-size: 10px; letter-spacing: 0.1em; color: var(--sand); align-self: center; }

/* ---------- editorial break ----------
   Autoplaying loop, not scroll-scrubbed: a pinned scroll-scrub here added
   extra scroll distance before the user could get past it, which read as
   the page stalling rather than as an interaction. Fixed dark panel. */
.editorial-break { position: relative; padding: 0; height: 64vh; min-height: 420px; overflow: hidden; border: none; background: var(--panel); }
.editorial-break__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.1); transition: transform 3s var(--ease);
}
.editorial-break.is-in .editorial-break__video { transform: scale(1); }
.reduced-motion .editorial-break__video { transform: none; transition: none; }
.editorial-break__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--panel) 0%, rgba(11,11,13,0.18) 45%, rgba(11,11,13,0.05) 100%);
}
.editorial-break__quote {
  position: absolute; left: 6vw; right: 6vw; bottom: 2.5rem; z-index: 1;
  font-family: var(--display); font-weight: 600; font-style: italic; text-transform: none;
  font-size: clamp(1.3rem, 3vw, 2.1rem); color: var(--panel-fg); max-width: 780px;
}

/* ---------- scrub panel ----------
   Also reverted to a plain autoplaying loop, same reasoning as the editorial
   break above: the pin/scrub made scrolling feel stuck, not interactive. */
.scrub-panel { position: relative; height: 64vh; min-height: 420px; overflow: hidden; background: var(--panel); }
.scrub-panel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scrub-panel__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--panel) 0%, rgba(11,11,13,0.1) 45%, rgba(11,11,13,0.4) 100%);
}
.scrub-panel__caption {
  position: absolute; left: 6vw; right: 6vw; bottom: 2.5rem; z-index: 1; max-width: 720px;
}
.scrub-panel__caption p { font-family: var(--sans); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--panel-sand); margin-bottom: 0.9rem; }
.scrub-panel__caption h2 { font-family: var(--display); font-weight: 600; text-transform: none; color: var(--panel-fg); font-size: clamp(1.5rem, 3.2vw, 2.4rem); }

/* ---------- approach ---------- */
.approach__layout { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 3.5rem; align-items: center; max-width: 1300px; margin: 0 auto; }
.approach__media { aspect-ratio: 3 / 4; overflow: hidden; clip-path: inset(0 0 100% 0); align-self: stretch; }
.no-js .approach__media, .reduced-motion .approach__media { clip-path: none; }
.approach__media img { width: 100%; height: 100%; object-fit: cover; }
.approach__step {
  position: relative;
  display: grid; grid-template-columns: 90px 220px 1fr; gap: 2rem; align-items: baseline;
  padding: 2.2rem 0 2.2rem 1.2rem; border-top: 1px solid var(--line); transition: color 0.3s var(--ease);
}
.approach__step:last-child { border-bottom: 1px solid var(--line); }
.approach__rule {
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent);
  transform: scaleY(0); transform-origin: top; transition: transform 0.9s var(--ease);
}
.approach__step.is-in .approach__rule { transform: scaleY(1); }
.no-js .approach__rule, .reduced-motion .approach__rule { transform: scaleY(1); }
.approach__num { font-size: 12px; color: var(--sand); }
.approach__tag {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.2rem, 2.6vw, 1.9rem); transition: color 0.3s var(--ease);
}
.approach__desc { color: var(--sand); font-size: 0.95rem; max-width: 48ch; transition: color 0.3s var(--ease); }
.approach__step:hover .approach__tag { color: var(--accent); }
.approach__step:hover .approach__desc { color: var(--fg); }

/* ---------- offer band ---------- */
.offer-band {
  position: relative; text-align: center; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 1.6rem;
}
.offer-band__bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.94)), url("assets/photos/editorial-break.jpg") center/cover;
  opacity: 0; transform: scale(1.08); transition: opacity 1.2s var(--ease), transform 1.6s var(--ease);
}
.offer-band.is-in .offer-band__bg { opacity: 1; transform: scale(1); }
.no-js .offer-band__bg, .reduced-motion .offer-band__bg { opacity: 1; transform: scale(1); }
.offer-band > *:not(.offer-band__bg) { position: relative; z-index: 1; }
.offer-band::before, .offer-band::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1px; background: var(--accent); z-index: 2;
  transform: scaleX(0); transform-origin: center; transition: transform 1.1s var(--ease);
}
.offer-band::before { top: 0; }
.offer-band::after { bottom: 0; }
.offer-band.is-in::before, .offer-band.is-in::after { transform: scaleX(1); }
.no-js .offer-band::before, .no-js .offer-band::after,
.reduced-motion .offer-band::before, .reduced-motion .offer-band::after { transform: scaleX(1); }
.offer-band h2 { font-size: clamp(2rem, 6vw, 4.2rem); max-width: 900px; }
.offer-band__terms { max-width: 46ch; }

/* ---------- selected work ---------- */
.work__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 3rem; }
.work__head .section-label { margin-bottom: 0; }
.work__filters { display: flex; gap: 0.7rem; }
.filter-chip {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.1em; color: var(--sand);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 1.1rem;
  opacity: 0; transform: scale(0.88);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease),
              opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.filter-chip:hover { color: var(--fg); border-color: var(--sand); }
.filter-chip.is-active { background: var(--accent); color: var(--fg); border-color: var(--accent); }
.work__filters.is-in .filter-chip { opacity: 1; transform: none; }
.work__filters.is-in .filter-chip:nth-child(1) { transition-delay: 0s; }
.work__filters.is-in .filter-chip:nth-child(2) { transition-delay: 0.08s; }
.work__filters.is-in .filter-chip:nth-child(3) { transition-delay: 0.16s; }
.work__filters.is-in .filter-chip:nth-child(4) { transition-delay: 0.24s; }
.no-js .filter-chip, .reduced-motion .filter-chip { opacity: 1; transform: none; }

.work__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.case-card { display: block; border: 1px solid var(--line); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.case-card.is-filtered-out { opacity: 0; transform: scale(0.97); pointer-events: none; position: absolute; }
.case-card__media { position: relative; overflow: hidden; clip-path: inset(0 0 100% 0); }
.no-js .case-card__media, .reduced-motion .case-card__media { clip-path: none; }
.case-card__media .browser-chrome { transform: scale(1.06); transition: transform 1s var(--ease); }
.reduced-motion .case-card__media .browser-chrome { transform: none; }
.case-card:hover .case-card__media .browser-chrome { transform: scale(1); }
.browser-chrome { background: var(--panel); }
.browser-chrome__bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--panel-line); }
.browser-chrome .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--panel-line); }
.browser-chrome__url { margin-left: 0.8rem; font-size: 11px; color: var(--panel-sand); }
.browser-chrome__body { min-height: 280px; overflow: hidden; }
.browser-chrome__body video { width: 100%; height: 100%; min-height: 280px; object-fit: cover; object-position: top; display: block; }
.case-card__meta {
  display: flex; align-items: center; justify-content: space-between; padding: 1.6rem 1.8rem;
  opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease) 0.25s, transform 0.7s var(--ease) 0.25s;
}
.case-card.is-in .case-card__meta { opacity: 1; transform: none; }
.no-js .case-card__meta, .reduced-motion .case-card__meta { opacity: 1; transform: none; }
.case-card__meta h3 { font-size: 1.3rem; }
.case-card--placeholder {
  display: flex; align-items: center; justify-content: center; min-height: 100%;
  border: 1px dashed var(--line); color: var(--sand);
}
.work__disclosure { margin-top: 2rem; }

/* ---------- agency ---------- */
.agency__layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; max-width: 1200px; margin: 0 auto; }
.agency__grid { display: flex; flex-direction: column; gap: 2.5rem; }
.agency__text { font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.6; color: var(--fg); }
.agency__email { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); text-transform: uppercase; border-bottom: 1px solid var(--accent); display: inline-block; width: fit-content; }
.agency__media {
  aspect-ratio: 4 / 5; overflow: hidden; background: var(--panel);
  clip-path: inset(0 0 100% 0);
}
.no-js .agency__media, .reduced-motion .agency__media { clip-path: none; }
.agency__media video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- footer ---------- */
.footer { padding: 7rem 6vw 3.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: 2.5rem; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.footer__mark { height: clamp(2.2rem, 6vw, 4.4rem); width: auto; flex-shrink: 0; }
.footer__wordmark { font-size: clamp(3rem, 12vw, 9rem); }
.footer__grid { display: flex; flex-wrap: wrap; gap: 0.6rem 2.4rem; }
.footer__grid > * {
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.footer__grid.is-in > * { opacity: 1; transform: none; }
.footer__grid.is-in > *:nth-child(1) { transition-delay: 0s; }
.footer__grid.is-in > *:nth-child(2) { transition-delay: 0.08s; }
.footer__grid.is-in > *:nth-child(3) { transition-delay: 0.16s; }
.footer__grid.is-in > *:nth-child(4) { transition-delay: 0.24s; }
.no-js .footer__grid > *, .reduced-motion .footer__grid > * { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: auto; }
  .cursor { display: none !important; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav.menu-open .nav__links {
    display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 400;
    background: var(--bg); align-items: flex-start; justify-content: center; gap: 1.6rem;
    padding: 0 8vw; font-size: 1.6rem;
  }
  .nav.menu-open .nav__links a { color: var(--fg); }
  .nav.menu-open .btn-pill { display: none; }
  .intro__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .intro__media { order: -1; aspect-ratio: 16 / 9; max-width: 320px; }
  .approach__layout { grid-template-columns: 1fr; gap: 2rem; }
  .approach__media { order: -1; aspect-ratio: 16 / 10; }
  .approach__step { grid-template-columns: 60px 1fr; }
  .approach__desc { grid-column: 2 / -1; }
  .work__grid { grid-template-columns: 1fr; }
  .agency__layout { grid-template-columns: 1fr; gap: 2rem; }
  .agency__media { order: -1; aspect-ratio: 16 / 10; }
  section { padding: 5.5rem 6vw; }
  .hero__headline { font-size: clamp(2.2rem, 9vw, 3.4rem); }
}
