/* Flex Your Event — matte palette: bone / ink / clay / olive / sand */
:root {
  --bone: #EAE5DB; --paper: #F3EFE7; --sand: #D8CCB4;
  --ink: #171614; --graphite: #211F1C;
  --mute: #5A554D; --mute-d: #A29C91;
  --clay: #A64B31; --clay-soft: #D07A5C; --olive: #5F6448;
  --r-xl: 30px;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Geist", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "Geist Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 56px);
}

*, *::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; }
.lenis.lenis-stopped, html.lock { overflow: hidden; }
body {
  margin: 0; background: var(--bone); color: var(--ink);
  font: 400 17px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--clay); color: var(--bone); }
:focus-visible { outline: 2px solid var(--clay-soft); outline-offset: 3px; border-radius: 10px; }
[tabindex="-1"]:focus { outline: none; } /* section targets of in-page links */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 90; background: var(--ink); color: var(--bone); padding: 10px 16px; border-radius: 999px; }

/* matte grain — fixed, never on scrolling layers */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.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");
}

/* ---------- type ---------- */
.h2, .hero__title, .page-title, .contact__title, .tile__h, .step h3, .principle h3, .project__title, .next__title, .lb-title, .logo, .footer__word {
  font-family: var(--f-display); font-weight: 600; font-variation-settings: "opsz" 96;
}
.hero__title { font-size: clamp(46px, 7.6vw, 128px); line-height: .94; letter-spacing: -.04em; }
.h2 { font-size: clamp(36px, 5.2vw, 84px); line-height: .98; letter-spacing: -.035em; max-width: 15ch; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--clay); }
.dark { background: var(--ink); color: var(--bone); }
.dark em { color: var(--clay-soft); }
.lead { max-width: 52ch; color: var(--mute); font-size: clamp(16px, 1.25vw, 19px); }

/* split-word masks (built by JS) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .02em .12em; margin: -.06em -.02em -.12em; }
.w > span { display: inline-block; will-change: transform; }
em .w { padding-right: .1em; margin-right: -.1em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; width: max-content;
  font: 500 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 999px; background: rgba(23, 22, 20, .06); color: var(--mute);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--clay); }
.dark .eyebrow { background: rgba(234, 229, 219, .08); color: var(--mute-d); }
.dark .eyebrow::before { background: var(--clay-soft); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--bone);
  display: inline-flex; align-items: center; gap: 14px; padding: 7px 7px 7px 22px; border-radius: 999px;
  background: var(--bg); color: var(--fg); font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: scale .4s var(--ease);
}
.btn:active { scale: .97; }
.btn__ic {
  width: 38px; height: 38px; border-radius: 50%; background: var(--clay); color: var(--bone);
  display: grid; place-items: center; transition: transform .7s var(--ease);
}
.btn__ic svg { width: 15px; height: 15px; }
.btn:hover .btn__ic { transform: translate(2px, -2px) scale(1.07) rotate(45deg); }
.btn--sm { padding: 5px 5px 5px 16px; font-size: 14px; gap: 10px; }
.btn--sm .btn__ic { width: 30px; height: 30px; }
.link { font-weight: 500; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .6s var(--ease); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; translate: -50% 0; z-index: 40;
  display: flex; align-items: center; gap: 28px; padding: 6px 6px 6px 10px; border-radius: 999px;
  width: max-content; max-width: calc(100% - 24px);
  background: rgba(243, 239, 231, .74); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 0 0 1px rgba(23, 22, 20, .07), 0 12px 32px -16px rgba(23, 22, 20, .25);
  transition: transform .8s var(--ease);
}
.nav.is-hidden { transform: translateY(-150%); }
.logo { display: flex; align-items: center; gap: 10px; font-size: 16px; letter-spacing: -.02em; color: var(--ink); }
.logo svg { width: 32px; height: 32px; flex: none; }
.nav__links { display: flex; gap: 24px; font-size: 14.5px; color: var(--mute); }
.nav__links a { position: relative; transition: color .4s var(--ease); }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--ink); }
.nav__links a[aria-current]::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--clay); }
.burger { display: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); position: relative; }
.burger span { position: absolute; left: 12px; width: 16px; height: 1.5px; background: var(--bone); transition: transform .6s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 22px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 35; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: 0 var(--gutter); background: rgba(234, 229, 219, .9); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.menu a {
  font: 600 clamp(44px, 13vw, 84px)/1.05 var(--f-display); letter-spacing: -.04em;
  transform: translateY(48px); opacity: 0; transition: transform .9s var(--ease), opacity .9s var(--ease);
}
.menu a[aria-current] { color: var(--clay); }
.menu.is-open a { transform: none; opacity: 1; }
.menu.is-open a:nth-child(2) { transition-delay: .05s; }
.menu.is-open a:nth-child(3) { transition-delay: .1s; }
.menu.is-open a:nth-child(4) { transition-delay: .15s; }
.menu.is-open a:nth-child(5) { transition-delay: .2s; }
.menu__foot { margin-top: 36px; font: 500 12px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }

/* hero waits a beat for its intro script; failsafe reveals it if JS dies */
html.js:not(.ready) :is(.hero, .page-hero) { opacity: 0; animation: heroIn .01s 2s forwards; }
@keyframes heroIn { to { opacity: 1; } }

/* smooth cross-page transitions (Chrome/Edge/Safari 18+; others just navigate) */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
::view-transition-old(root) { animation: vtOut .3s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vtIn .55s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-16px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(28px); } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100dvh; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: center;
  padding: 128px var(--gutter) 88px;
}
.hero__copy { grid-column: 1 / span 7; position: relative; z-index: 2; }
.hero__title { margin: 24px 0 28px; }
.hero__sub { max-width: 44ch; font-size: clamp(16px, 1.25vw, 19px); color: var(--mute); }
.hero__cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 36px; }
.hero__stack { grid-column: 8 / span 5; position: relative; height: min(66vh, 620px); }
.ph {
  position: absolute; top: 50%; left: 50%; width: 54%; aspect-ratio: 3 / 4; margin: 0; padding: 6px; border-radius: 26px;
  translate: -50% -50%; transform: translate(var(--x), var(--y)) rotate(var(--r));
  background: var(--paper); box-shadow: 0 0 0 1px rgba(23, 22, 20, .06), 0 40px 70px -40px rgba(23, 22, 20, .45);
}
.ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.sticker { position: absolute; right: 2%; bottom: 4%; width: clamp(96px, 9vw, 132px); z-index: 3; animation: spin 18s linear infinite; }
.sticker circle { fill: var(--clay); }
.sticker text { font: 500 9.6px var(--f-mono); letter-spacing: .14em; fill: var(--bone); }
.sticker__star { fill: var(--sand); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; justify-content: space-between;
  font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
}

/* ---------- reel ---------- */
.reel { position: relative; height: 100dvh; overflow: hidden; background: var(--bone); }
.reel__frame { position: absolute; inset: 0; overflow: hidden; }
.reel__frame img { width: 100%; height: 100%; object-fit: cover; }
.reel__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 22, 20, 0) 35%, rgba(23, 22, 20, .72)); }
.reel__text {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 7vh, 72px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; color: var(--bone);
}
.reel__text .h2 { max-width: 12ch; }
.reel__text em { color: var(--sand); }
.reel__cap { font: 500 11px/1.7 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; text-align: right; opacity: .8; }

/* ---------- brands marquee ---------- */
.brands { padding: clamp(72px, 9vw, 120px) 0; }
.brands .eyebrow { margin-left: var(--gutter); }
.marquee { overflow: hidden; margin-top: 36px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marq 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  display: flex; align-items: center; gap: .55em; padding-right: .55em; white-space: nowrap;
  font: 500 clamp(40px, 6vw, 92px)/1.1 var(--f-display); letter-spacing: -.035em;
}
.marquee__track span:nth-child(even) { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--sand); }
.marquee__track span::after { content: ""; width: .22em; height: .22em; border-radius: 50%; background: var(--clay-soft); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- sections / bezel cards ---------- */
.section { padding: clamp(96px, 12vw, 168px) var(--gutter); }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head--split { grid-template-columns: minmax(0, 1fr) max-content; align-items: end; gap: 32px; }
.section-head--split > div:first-child { display: grid; gap: 22px; }
.shell { display: block; height: 100%; padding: 6px; border-radius: var(--r-xl); background: rgba(23, 22, 20, .04); box-shadow: inset 0 0 0 1px rgba(23, 22, 20, .06); }
.core { display: block; position: relative; height: 100%; overflow: hidden; border-radius: calc(var(--r-xl) - 6px); background: var(--paper); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
.dark .shell { background: rgba(234, 229, 219, .035); box-shadow: inset 0 0 0 1px rgba(234, 229, 219, .08); }
.dark .core { background: var(--graphite); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile { display: block; grid-column: span 12; }
.tile .core { min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; }
.tile__img { position: absolute; inset: 0; overflow: hidden; }
.tile__img img { width: 100%; height: 120%; margin-top: -10%; object-fit: cover; transition: scale 1.4s var(--ease); }
.tile:hover .tile__img img { scale: 1.05; }
.tile__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 22, 20, 0) 30%, rgba(23, 22, 20, .82)); }
.tile__body { position: relative; display: grid; gap: 8px; padding: clamp(20px, 2vw, 30px); max-width: 46ch; color: var(--bone); }
.tile__n { display: block; font: 500 11px var(--f-mono); letter-spacing: .16em; color: var(--sand); }
.tile__h { display: block; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.04; letter-spacing: -.03em; }
.tile__p { font-size: 15px; color: rgba(234, 229, 219, .8); }
.tile__go {
  position: absolute; top: 16px; right: 16px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(234, 229, 219, .14); color: var(--bone); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .7s var(--ease), background .5s var(--ease);
}
.tile__go svg { width: 15px; }
.tile:hover .tile__go { transform: rotate(45deg); background: var(--clay); }
.tile--text .core { background: var(--olive); color: var(--bone); justify-content: space-between; gap: 32px; padding: clamp(20px, 2vw, 30px); box-shadow: none; }
.tile--text .tile__h { margin-top: 8px; }
.tile__list > span { display: block; padding: 12px 0; font-size: 15px; box-shadow: inset 0 1px 0 rgba(234, 229, 219, .18); }

/* photo strip */
.strip { display: grid; gap: 14px; overflow: hidden; padding-bottom: clamp(96px, 12vw, 160px); }
.strip__row { display: flex; gap: 14px; width: max-content; animation: marq 80s linear infinite; }
.strip__row--rev { animation-direction: reverse; }
.strip__row img { height: clamp(140px, 17vw, 240px); width: auto; border-radius: 18px; object-fit: cover; }

/* ---------- work ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 10px 16px; border-radius: 999px; font-size: 14px; background: rgba(234, 229, 219, .06); color: var(--mute-d);
  transition: background .5s var(--ease), color .5s var(--ease);
}
.chip sup { font: 500 10px var(--f-mono); margin-left: 3px; }
.chip:hover { color: var(--bone); }
.chip.is-active { background: var(--bone); color: var(--ink); }
.work__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(36px, 4vw, 56px) 20px; }
.project { grid-column: span 12; }
.project__open { display: block; width: 100%; text-align: left; }
html.has-cursor .project__open { cursor: none; }
.project__media { aspect-ratio: 4 / 3; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.project__open:hover .project__media img { transform: scale(1.05); }
.project__info { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 6px 0; }
.project__client { font: 500 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--clay-soft); }
.project__title { grid-row: 2; font-size: clamp(22px, 2vw, 30px); line-height: 1.1; letter-spacing: -.03em; }
.project__meta { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 13px; color: var(--mute-d); padding: 7px 12px; border-radius: 999px; background: rgba(234, 229, 219, .06); }

/* ---------- render → reality ---------- */
.r2r, .hero { overflow-x: clip; } /* off-screen start states must not widen the page on phones */
.r2r__pair { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2.4vw, 36px); max-width: 1180px; margin: 0 auto; }
.r2r__a { flex: 1.156 1 0; } .r2r__b { flex: .605 1 0; }
.r2r figure .core img { width: 100%; height: auto; }
.r2r figcaption { display: flex; justify-content: space-between; padding: 14px 8px 0; font: 500 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.r2r__arrow { flex: none; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--clay); color: var(--bone); }
.r2r__arrow svg { width: 22px; }

/* ---------- process ---------- */
.process { overflow: hidden; }
.process__pin { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: clamp(40px, 6vh, 72px); padding: clamp(96px, 13vh, 150px) 0 clamp(48px, 8vh, 96px); }
.process__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 0 var(--gutter); }
.process__head > div { display: grid; gap: 22px; }
.process__hint { color: var(--mute-d); max-width: 26ch; text-align: right; }
.process__track { display: flex; gap: 18px; width: max-content; padding: 0 var(--gutter); }
.step { width: clamp(300px, 29vw, 420px); }
.step .core { min-height: clamp(320px, 44vh, 400px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(22px, 2.2vw, 32px); }
.step__n { font: italic 400 clamp(72px, 7vw, 108px)/.8 var(--f-serif); color: var(--clay-soft); }
.step h3 { font-size: clamp(24px, 2.1vw, 32px); letter-spacing: -.03em; line-height: 1.05; margin-bottom: 10px; }
.step p { color: var(--mute-d); font-size: 15.5px; }
.process__progress { height: 2px; margin: 0 var(--gutter); border-radius: 2px; overflow: hidden; background: rgba(234, 229, 219, .1); }
.process__progress span { display: block; height: 100%; background: var(--clay-soft); transform-origin: left; transform: scaleX(0); }

/* ---------- contact ---------- */
.contact { background: var(--clay); color: var(--bone); padding: clamp(110px, 14vw, 200px) var(--gutter) clamp(80px, 10vw, 140px); }
.contact .eyebrow { background: rgba(234, 229, 219, .14); color: var(--bone); }
.contact .eyebrow::before { background: var(--bone); }
.contact__title { margin-top: 26px; font-size: clamp(46px, 7.6vw, 124px); line-height: .96; letter-spacing: -.04em; max-width: 14ch; }
.contact__title em { color: var(--sand); }
.contact__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: clamp(56px, 7vw, 96px); padding-top: 28px; box-shadow: inset 0 1px 0 rgba(234, 229, 219, .28); }
.contact__meta span { font: 500 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; }
.contact__meta p { margin-top: 8px; font-size: clamp(18px, 1.6vw, 24px); }

/* ---------- footer ---------- */
.footer { padding: 56px var(--gutter) 0; overflow: hidden; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; font-size: 14px; color: var(--mute-d); }
.footer__links { display: flex; gap: 22px; }
.footer__links a { transition: color .4s var(--ease); }
.footer__links a:hover { color: var(--bone); }
.footer__word { display: flex; justify-content: center; margin-top: clamp(40px, 6vw, 80px); font-size: clamp(52px, 12.4vw, 230px); line-height: .82; letter-spacing: -.055em; white-space: nowrap; padding-bottom: .04em; }
.footer__word em { margin: 0 .06em; color: var(--clay-soft); letter-spacing: -.02em; }
.footer__word .c { display: inline-block; }

.contact__btn { margin-top: clamp(32px, 4vw, 48px); }
a.r2r__pair { color: inherit; }

/* ---------- inner-page hero ---------- */
.page-hero { position: relative; display: grid; gap: 26px; padding: clamp(140px, 18vh, 200px) var(--gutter) clamp(56px, 7vw, 96px); }
.page-hero--full { min-height: 100dvh; align-content: center; }
.page-title { font-size: clamp(46px, 8vw, 132px); line-height: .94; letter-spacing: -.04em; max-width: 14ch; }
.page-hero__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px 48px; margin-top: 12px; }
.page-hero__foot .lead { max-width: 50ch; }
.dark .lead { color: var(--mute-d); }
.back { display: inline-flex; align-items: center; gap: 10px; width: max-content; font-size: 14px; color: var(--mute); transition: color .4s var(--ease), gap .6s var(--ease); }
.back svg { width: 18px; }
.back:hover { color: var(--ink); gap: 14px; }
.work--page { padding-top: 0; }
.chip-link {
  display: inline-flex; padding: 9px 15px; border-radius: 999px; font-size: 14px;
  background: rgba(23, 22, 20, .06); color: var(--ink); transition: background .5s var(--ease), color .5s var(--ease);
}
.chip-link:hover { background: var(--ink); color: var(--bone); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; max-width: 560px; }

/* ---------- case study ---------- */
.case__meta { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0; }
.case__meta dt { font: 500 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.case__meta dd { margin: 6px 0 0; font-size: 18px; }
.case__cover { padding: 0 var(--gutter); }
.case__cover .core { aspect-ratio: 16 / 9; }
.case__cover-link, .gallery__item { display: block; }
.case__cover-link { height: 100%; }
.case__cover img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.4s var(--ease); }
.case__cover-link:hover img, .gallery__item:hover img { scale: 1.03; }
.case__photos { padding-top: clamp(16px, 2vw, 24px); }
.gallery { columns: 3 300px; column-gap: 16px; }
.gallery__item { break-inside: avoid; margin-bottom: 16px; border-radius: 22px; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px rgba(23, 22, 20, .06); }
.gallery__item img { width: 100%; transition: scale 1.4s var(--ease); }
.next {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: clamp(420px, 60vh, 640px); overflow: hidden;
}
.next__media { position: relative; overflow: hidden; }
.next__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.next__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding: clamp(40px, 6vw, 96px) var(--gutter); }
.next__client { margin-top: 10px; font: 500 12px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--clay-soft); }
.next__title { font-size: clamp(36px, 5vw, 80px); line-height: .98; letter-spacing: -.035em; margin-bottom: 18px; }

/* ---------- services ---------- */
.svcs { display: grid; gap: clamp(96px, 12vw, 180px); padding-top: clamp(24px, 4vw, 56px); }
.svc { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px; align-items: center; scroll-margin-top: 100px; }
.svc__media { grid-column: 1 / 7; }
.svc__body { grid-column: 8 / 13; display: grid; gap: 22px; justify-items: start; }
.svc:nth-child(even) .svc__media { grid-column: 7 / 13; grid-row: 1; }
.svc:nth-child(even) .svc__body { grid-column: 1 / 6; grid-row: 1; }
.svc__media .core { aspect-ratio: 5 / 4; }
.svc__media img, .mosaic img { width: 100%; height: 118%; margin-top: -9%; object-fit: cover; }
.svc__n { font: italic 400 clamp(56px, 5vw, 84px)/.8 var(--f-serif); color: var(--clay); }
.svc .h2 { font-size: clamp(34px, 4vw, 64px); }
.svc__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; width: 100%; }
.svc__list li { padding: 12px 0; font-size: 15px; box-shadow: inset 0 1px 0 rgba(23, 22, 20, .12); }
.svc__rel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.svc__rel > span { margin-right: 6px; font: 500 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }

/* ---------- about ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; align-items: start; padding: 0 var(--gutter); } /* start: stretched rows + aspect-ratio would widen the cards */
.mosaic__item--a { grid-column: 1 / 7; } .mosaic__item--a .core { aspect-ratio: 4 / 3; }
.mosaic__item--b { grid-column: 7 / 10; margin-top: 18%; } .mosaic__item--b .core { aspect-ratio: 3 / 5; }
.mosaic__item--c { grid-column: 10 / 13; margin-top: 6%; } .mosaic__item--c .core { aspect-ratio: 3 / 4; }
.principles__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.principle .core { display: grid; gap: 14px; align-content: start; min-height: 280px; padding: clamp(24px, 2.6vw, 40px); }
.principle__n { font: italic 400 64px/.8 var(--f-serif); color: var(--clay); margin-bottom: 24px; }
.principle h3 { font-size: clamp(24px, 2.2vw, 34px); letter-spacing: -.03em; line-height: 1.05; }
.principle p { color: var(--mute); max-width: 40ch; }

/* ---------- contact ---------- */
.brief { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 24px; padding-top: 0; }
.brief__studio { grid-column: 1 / 5; display: grid; gap: 28px; align-content: start; }
.brief__studio span, .brief__list li span { font: 500 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.brief__studio p { margin-top: 8px; font-size: clamp(20px, 1.8vw, 26px); }
.brief__list { grid-column: 6 / 13; display: grid; gap: 36px; }
.brief__list ol { margin: 0; padding: 0; list-style: none; }
.brief__list li { display: flex; align-items: baseline; gap: 24px; padding: 20px 0; font-size: clamp(18px, 1.6vw, 24px); box-shadow: inset 0 1px 0 rgba(23, 22, 20, .12); }

/* ---------- lightbox ---------- */
.lightbox { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--ink); color: var(--bone); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.lightbox::backdrop { background: rgba(23, 22, 20, .5); }
.lb-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px var(--gutter) 16px; }
.lb-client { font: 500 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--clay-soft); }
.lb-title { margin-top: 6px; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -.03em; line-height: 1.05; }
.lb-btn { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(234, 229, 219, .08); transition: background .4s var(--ease); }
.lb-btn:hover { background: rgba(234, 229, 219, .16); }
.lb-btn svg { width: 20px; }
.lb-stage { position: relative; min-height: 0; touch-action: pan-y; }
/* absolute so max-height resolves against the stage's definite height */
.lb-img { position: absolute; inset: 0; margin: auto; max-width: calc(100% - 2 * var(--gutter)); max-height: 100%; width: auto; height: auto; border-radius: 18px; user-select: none; -webkit-user-drag: none; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px var(--gutter) 14px; }
.lb-blurb { max-width: 62ch; font-size: 15px; color: var(--mute-d); }
.lb-nav { display: flex; align-items: center; gap: 12px; flex: none; }
.lb-count { font: 500 12px var(--f-mono); letter-spacing: .12em; min-width: 64px; text-align: center; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--gutter) 20px; scrollbar-width: none; }
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumb { flex: none; width: 76px; height: 56px; border-radius: 10px; overflow: hidden; opacity: .45; transition: opacity .4s var(--ease); }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--clay-soft); }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 70; width: 0; height: 0; pointer-events: none; }
.cursor span {
  position: absolute; left: -46px; top: -46px; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bone); color: var(--ink); font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  transform: scale(0); transition: transform .5s var(--ease);
}
.cursor.is-on span { transform: scale(1); }

/* ---------- desktop layout ---------- */
@media (min-width: 900px) {
  .tile--a { grid-column: 1 / 8; grid-row: 1 / 3; }
  .tile--a .core { min-height: 640px; }
  .tile--b, .tile--c { grid-column: 8 / 13; }
  .tile--b .core, .tile--c .core { min-height: 312px; }
  .tile--d { grid-column: 1 / 6; } .tile--e { grid-column: 6 / 10; } .tile--f { grid-column: 10 / 13; }
  .tile--d .core, .tile--e .core, .tile--f .core { min-height: 380px; }
  .project.is-wide { grid-column: span 7; } .project.is-wide .project__media { aspect-ratio: 1.12; }
  .project.is-tall { grid-column: span 5; } .project.is-tall .project__media { aspect-ratio: .8; }
  .project.is-full { grid-column: span 12; } .project.is-full .project__media { aspect-ratio: 21 / 9; }
}

/* ---------- tablet / phone ---------- */
@media (max-width: 899px) {
  .hero { grid-template-columns: 1fr; align-content: center; gap: 48px; padding-top: 112px; }
  .hero__copy, .hero__stack { grid-column: 1; }
  .hero__stack { height: 380px; }
  .ph { width: 46%; }
  .section-head--split { grid-template-columns: 1fr; }
  .process__head { flex-direction: column; align-items: flex-start; }
  .process__hint { text-align: left; }
  .process__track { flex-direction: column; width: auto; }
  .step { width: auto; }
  .step .core { min-height: 0; }
  .process__progress { display: none; }
  .r2r__pair { flex-direction: column; }
  .r2r__a, .r2r__b { flex: none; width: 100%; }
  .r2r__b { max-width: 420px; }
  .r2r__arrow { rotate: 90deg; }
  .svc { grid-template-columns: 1fr; }
  .svc .svc__media, .svc .svc__body, .svc:nth-child(even) .svc__media, .svc:nth-child(even) .svc__body { grid-column: 1; grid-row: auto; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic__item--a { grid-column: 1 / 3; }
  .mosaic__item--b, .mosaic__item--c { grid-column: auto; margin-top: 0; }
  .principles__grid { grid-template-columns: 1fr; }
  .principle .core { min-height: 0; }
  .brief__studio, .brief__list { grid-column: 1 / -1; }
  .next { grid-template-columns: 1fr; }
  .next__media { aspect-ratio: 16 / 10; }
  .case__cover .core { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .svc__list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { gap: 12px; left: 12px; right: 12px; translate: none; width: auto; justify-content: space-between; }
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .reel__text { flex-direction: column; align-items: flex-start; }
  .reel__cap { text-align: left; }
  .lb-bar { flex-direction: column; align-items: stretch; }
  .lb-nav { justify-content: space-between; }
  .hero__foot span:last-child { display: none; }
}

/* no GSAP (reduced motion or script failure): rows that relied on pin/scroll lay out statically */
.static .process__track { flex-wrap: wrap; width: auto; }
.static .process__progress { display: none; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .marquee__track, .strip__row, .sticker { animation: none; }
  .marquee__track { flex-wrap: wrap; width: auto; padding: 0 var(--gutter); }
  .marquee__track [aria-hidden] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
