/* Joe Cavadini — portfolio
   Layout concept: a quiet black stage with tiny mono labels at the edges; work fills the screen,
   one cobalt accent marks the thing to look at. */

@font-face { font-family: 'Geist'; src: url('../fonts/geist.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../fonts/geist-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../fonts/geist-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  /* dark first */
  --bg: #0b0c0e;
  --bg-2: #131418;
  --line: #24262c;
  --fg: #f1f2f4;
  --muted: #8a8e97;
  --dim: #4a4e57;
  --accent: #3d6dff;
  --accent-ink: #ffffff;
  --img-bg: #16181d;
  color-scheme: dark;

  --f-sans: 'Geist', ui-sans-serif, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --t-xs: 0.6875rem;   /* 11 */
  --t-sm: 0.8125rem;   /* 13 */
  --t-md: 1rem;        /* 16 */
  --t-lg: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  --t-xl: clamp(2rem, 1.3rem + 3vw, 4rem);
  --t-2xl: clamp(2.75rem, 1rem + 7.4vw, 9.5rem);
  --t-3xl: clamp(3.25rem, 0.6rem + 11vw, 15rem);

  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --side: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --hdr-h: 64px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f4f6; --bg-2: #e8eaee; --line: #d5d8de; --fg: #0b0c0e; --muted: #5f636c; --dim: #a3a7b0;
    --accent: #1f4fe6; --img-bg: #e2e4e9; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f3f4f6; --bg-2: #e8eaee; --line: #d5d8de; --fg: #0b0c0e; --muted: #5f636c; --dim: #a3a7b0;
  --accent: #1f4fe6; --img-bg: #e2e4e9; color-scheme: light;
}

*, *::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 { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--f-sans); font-size: var(--t-md); line-height: 1.5; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
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, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { padding-left: calc(var(--gut) + var(--side) - 16px); padding-right: calc(var(--gut-r) + var(--side) - 16px); }
.mono { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 400; }
.label { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 0.75rem; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.h-section { font-size: var(--t-xl); font-weight: 500; letter-spacing: -0.04em; line-height: 1; text-wrap: balance; }
.ulink { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; padding-bottom: 1px; }
.ulink:hover { background-size: 100% 1px; color: var(--accent); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 4px; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* split-line reveal containers */
.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line__in { display: block; will-change: transform; }
.proj__title .line, .proj__title .line__in { display: inline-block; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6em; height: 44px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: 999px; font-size: var(--t-sm); font-weight: 500;
  position: relative; overflow: hidden; isolation: isolate; transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before { content: ''; position: absolute; inset: 0; background: var(--fg); border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease); z-index: -1; }
.btn:hover { color: var(--bg); border-color: var(--fg); }
.btn:hover::before { transform: none; }
.btn--solid { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--solid::before { background: var(--fg); }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: calc(var(--hdr-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding-left: calc(var(--gut) + var(--side) - 16px); padding-right: calc(var(--gut-r) + var(--side) - 16px);
  color: #fff; mix-blend-mode: difference; pointer-events: none;
  transition: transform .6s var(--ease);
}
.hdr > * { pointer-events: auto; }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__mark { display: flex; flex-direction: column; line-height: 1.15; justify-self: start; }
.hdr__name { font-weight: 600; font-size: var(--t-sm); letter-spacing: -0.01em; }
.hdr__role { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .04em; text-transform: uppercase; opacity: .6; }
.hdr__nav { display: flex; gap: 28px; }
.nav__link { font-size: var(--t-sm); font-weight: 500; position: relative; opacity: .7; transition: opacity .3s; }
.nav__link:hover, .nav__link.is-active { opacity: 1; }
.nav__link sup { font-size: 9px; margin-left: 2px; vertical-align: super; opacity: .7; }
.nav__link.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; }
.hdr__util { justify-self: end; display: flex; align-items: center; gap: 18px; }
.hdr__clock { opacity: .7; font-variant-numeric: tabular-nums; }
.theme-btn { width: 18px; height: 18px; border-radius: 50%; border: 1px solid currentColor; position: relative; overflow: hidden; }
.theme-btn span { position: absolute; inset: 0; background: currentColor; clip-path: inset(0 0 0 50%); transition: clip-path .5s var(--ease); }
:root[data-theme="light"] .theme-btn span { clip-path: inset(0 50% 0 0); }
.menu-btn { display: none; font-size: var(--t-sm); font-weight: 500; height: 32px; overflow: hidden; position: relative; }
.menu-btn span { display: block; line-height: 32px; transition: transform .5s var(--ease); }
.menu-btn__c { position: absolute; top: 100%; }
.menu-btn[aria-expanded="true"] span { transform: translateY(-100%); }

.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + 24px) var(--gut-r) calc(24px + env(safe-area-inset-bottom, 0px)) var(--gut);
}
.menu__nav { display: flex; flex-direction: column; gap: 4px; }
.menu__nav a { font-size: clamp(2.75rem, 14vw, 5rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.menu__nav a:hover { color: var(--accent); }
.menu__foot { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); flex-wrap: wrap; }

@media (max-width: 760px) {
  .hdr { grid-template-columns: 1fr auto; }
  .hdr__nav, .hdr__clock { display: none; }
  .menu-btn { display: block; }
  .hdr__role { display: none; }
}

/* ---------- curtain (page transitions) + cursor ---------- */
.curtain { position: fixed; inset: 0; z-index: 150; background: var(--bg-2); display: none; place-items: center; pointer-events: none; }
.js .curtain { display: grid; }
.curtain__mark { font-weight: 600; font-size: var(--t-sm); letter-spacing: .02em; color: var(--fg); }
.curtain__mark::after { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: middle; }

.cursor { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; display: none; }
@media (pointer: fine) { .js .cursor { display: block; } }
.cursor span {
  display: grid; place-items: center; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-family: var(--f-mono); font-size: 0; letter-spacing: .06em; text-transform: uppercase;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), font-size .2s, opacity .3s;
  opacity: 0;
}
.cursor.is-on span { opacity: 1; }
.cursor.is-label span { width: 88px; height: 88px; margin: -44px 0 0 -44px; font-size: 11px; }

/* ---------- hero ---------- */
.hero { padding-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + clamp(40px, 9vh, 120px)); padding-bottom: clamp(32px, 6vh, 64px); display: grid; gap: clamp(28px, 5vh, 56px); }
.hero__top { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); flex-wrap: wrap; }
.hero__eyebrow { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 10px transparent; } }
.hero__title { font-size: var(--t-2xl); font-weight: 500; letter-spacing: -0.055em; line-height: 0.92; max-width: 15ch; }
.hero__foot { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__scroll { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.hero__scroll-line { width: 64px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ''; position: absolute; inset: 0; background: var(--fg); animation: scan 2.2s var(--ease) infinite; }
@keyframes scan { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* reel: starts inset, opens to full bleed on scroll */
.reel, .proj__hero { padding-inline: 0; }
.reel__frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; max-height: 100svh; width: 100%; background: var(--img-bg); }
.reel__img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.reel__tag { position: absolute; left: var(--side); bottom: var(--side); color: #fff; background: rgba(0,0,0,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 8px 12px; border-radius: 999px; }
.reel__tag:hover { background: var(--accent); }

/* ---------- selected work stack ---------- */
.sel { padding-top: clamp(80px, 14vh, 160px); }
.sel__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 6vh, 64px); }
.sel__note { max-width: 32ch; color: var(--muted); }
.stack { position: relative; }
.stack__item { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--bg); }
.stack__link { position: absolute; inset: 0; display: block; color: #fff; }
.stack__media { position: absolute; inset: 0; background: var(--img-bg); }
.stack__img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; will-change: transform; }
.stack__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 45%, rgba(0,0,0,.62) 100%); }
.stack__copy {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 14px;
  padding: 0 calc(var(--gut-r) + var(--side) - 16px) calc(clamp(24px, 5vh, 56px) + env(safe-area-inset-bottom, 0px)) calc(var(--gut) + var(--side) - 16px);
}
.stack__count { color: rgba(255,255,255,.75); }
.stack__count .accent { color: #fff; }
.stack__title { font-size: var(--t-3xl); font-weight: 500; letter-spacing: -0.06em; line-height: .86; text-wrap: balance; max-width: 12ch; }
.stack__meta { display: flex; gap: 24px; align-items: baseline; flex-wrap: wrap; color: rgba(255,255,255,.8); }
.stack__blurb { max-width: 46ch; font-size: var(--t-sm); }
.stack__link:hover .stack__img { transform: scale(1.03); }
.stack__img { transition: transform 1.2s var(--ease); }
.sel__more { padding-top: clamp(40px, 8vh, 80px); }

/* ---------- areas of focus ---------- */
.focus { padding-top: clamp(96px, 16vh, 180px); }
.split-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 24px; }
.focus__list { border-top: 1px solid var(--line); }
.focus__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: clamp(14px, 2.4vh, 22px) 0; border-bottom: 1px solid var(--line); cursor: default; }
.focus__name { font-size: var(--t-xl); font-weight: 500; letter-spacing: -0.045em; line-height: 1; color: var(--dim); transition: color .45s var(--ease), transform .6s var(--ease); }
.focus__arrow { color: var(--accent); opacity: 0; transform: translateX(-12px); transition: opacity .4s, transform .5s var(--ease); font-size: var(--t-lg); }
.focus__row:hover .focus__name { color: var(--fg); transform: translateX(12px); }
.focus__row:hover .focus__arrow { opacity: 1; transform: none; }
.focus__preview { position: fixed; left: 0; top: 0; z-index: 40; width: clamp(180px, 18vw, 280px); aspect-ratio: 1; pointer-events: none; opacity: 0; transform: scale(.85); transition: opacity .35s, transform .5s var(--ease); border-radius: 4px; overflow: hidden; background: var(--img-bg); }
.focus__preview.is-on { opacity: 1; transform: scale(1); }
.focus__preview img { width: 100%; height: 100%; object-fit: cover; }
@media (pointer: coarse) { .focus__preview { display: none; } }

/* ---------- process ---------- */
.process { padding-top: clamp(96px, 16vh, 180px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); }
.process__side { position: sticky; top: calc(var(--hdr-h) + 24px); align-self: start; display: grid; gap: 16px; }
.process__side .muted { max-width: 30ch; }
.process__meter { height: 2px; background: var(--line); width: 100%; max-width: 280px; margin-top: 12px; overflow: hidden; }
.process__meter span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.process__list { display: grid; }
.process__step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: clamp(24px, 5vh, 48px) 0; border-top: 1px solid var(--line); transition: opacity .5s var(--ease); }
.process__step:last-child { border-bottom: 1px solid var(--line); }
.js .process__step { opacity: .32; }
.js .process__step.is-active { opacity: 1; }
.process__n { color: var(--accent); padding-top: .55em; }
.process__name { font-size: var(--t-lg); font-weight: 500; letter-spacing: -0.03em; margin-bottom: 10px; }
.process__text { color: var(--muted); max-width: 52ch; }

/* ---------- marquee ---------- */
.clients { padding-top: clamp(96px, 16vh, 180px); }
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(18px, 3vh, 28px); margin-top: 8px; }
.marquee__track { display: flex; width: max-content; align-items: center; gap: clamp(20px, 3vw, 40px); animation: marq 60s linear infinite; padding-right: clamp(20px, 3vw, 40px); }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-size: var(--t-xl); font-weight: 500; letter-spacing: -0.045em; white-space: nowrap; transition: color .3s; }
.marquee__track span:hover { color: var(--accent); }
.marquee__track i { font-style: normal; color: var(--dim); font-size: var(--t-lg); }
.marquee--big .marquee__track span { font-size: var(--t-2xl); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- field photo ---------- */
.field { padding-top: clamp(96px, 16vh, 180px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 24px; align-items: end; }
.field__fig { grid-column: 2; overflow: hidden; aspect-ratio: 3 / 2; background: var(--img-bg); }
.field__fig img { width: 100%; height: 115%; object-fit: cover; }
.field__cap { grid-column: 1; grid-row: 1; color: var(--muted); max-width: 24ch; }

/* ---------- footer ---------- */
.ftr { margin-top: clamp(120px, 20vh, 240px); border-top: 1px solid var(--line); }
.ftr__inner { padding-top: clamp(56px, 10vh, 120px); padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); display: grid; gap: clamp(40px, 8vh, 80px); }
.ftr__kicker { color: var(--muted); margin-bottom: -24px; }
.ftr__cta { font-size: var(--t-2xl); font-weight: 500; letter-spacing: -0.055em; line-height: .92; display: block; max-width: 14ch; transition: opacity .3s; }
.ftr__cta:hover { opacity: .85; }
.ftr__cta .split { display: inline; }
.ftr__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ftr__grid p:not(.label) { font-size: var(--t-sm); line-height: 1.6; }
.ftr__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; }
.copy { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; font-size: var(--t-sm); }
.copy:hover .copy__text { color: var(--accent); }
.copy__hint { color: var(--muted); }
@media (max-width: 760px) { .ftr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } }

/* ---------- page heads ---------- */
.pagehead { padding-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + clamp(48px, 12vh, 140px)); padding-bottom: clamp(32px, 6vh, 72px); display: grid; gap: 20px; }
.pagehead__title { font-size: var(--t-3xl); font-weight: 500; letter-spacing: -0.065em; line-height: .86; }

/* ---------- work ---------- */
.view-toggle { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; justify-self: start; }
.view-toggle button { height: 30px; padding: 0 14px; border-radius: 999px; color: var(--muted); transition: background .3s, color .3s; }
.view-toggle button[aria-selected="true"] { background: var(--fg); color: var(--bg); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(48px, 9vh, 104px); }
.card:nth-child(4n+2), .card:nth-child(4n+3) { }
.card__link { display: grid; gap: 14px; }
.card__media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--img-bg); }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
.card__link:hover .card__img { transform: scale(1.045); }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card__title { font-size: var(--t-lg); font-weight: 500; letter-spacing: -0.03em; transition: color .3s; }
.card__link:hover .card__title { color: var(--accent); }
.card__n { color: var(--muted); }
.card__svc { font-size: var(--t-sm); margin-top: -8px; }
.idx { display: none; border-top: 1px solid var(--line); }
.work[data-work-view="index"] .grid { display: none; }
.work[data-work-view="index"] .idx { display: block; }
.idx__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1.6fr) 56px; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease), color .3s; }
.idx__title { font-size: var(--t-lg); font-weight: 500; letter-spacing: -0.03em; }
.idx__row:hover { padding-left: 12px; }
.idx__row:hover .idx__title { color: var(--accent); }
.idx__client, .idx__svc { font-size: var(--t-sm); }
.idx__yr { text-align: right; }
@media (max-width: 760px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .idx__row { grid-template-columns: minmax(0, 1fr) auto; }
  .idx__client, .idx__svc { display: none; }
}

/* ---------- project ---------- */
.proj__head { padding-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + clamp(48px, 12vh, 140px)); padding-bottom: clamp(40px, 7vh, 80px); display: grid; gap: clamp(24px, 4vh, 40px); }
.proj__title { font-size: var(--t-2xl); font-weight: 500; letter-spacing: -0.06em; line-height: .9; max-width: 16ch; text-wrap: balance; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.meta__cell p:not(.label) { font-size: var(--t-sm); line-height: 1.6; }
.proj__hero .reel__frame { aspect-ratio: 16 / 9; }
.txt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; padding-top: clamp(64px, 12vh, 140px); }
.txt__v { font-size: var(--t-lg); line-height: 1.4; letter-spacing: -0.015em; max-width: 40ch; text-wrap: pretty; }
.stats { padding-top: clamp(64px, 12vh, 140px); }
.stats__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stats__list li { display: grid; gap: 8px; padding: 24px 16px 24px 0; border-right: 1px solid var(--line); }
.stats__list li:last-child { border-right: 0; }
.stats__list li + li { padding-left: 16px; }
.stats__n { font-size: var(--t-xl); font-weight: 500; letter-spacing: -0.05em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats__list li:nth-child(2) { border-right: 0; } .stats__list li:nth-child(3) { padding-left: 0; } .stats__list li:nth-child(n+3) { border-top: 1px solid var(--line); } }
.videos { padding-top: clamp(64px, 12vh, 140px); display: grid; gap: clamp(16px, 2vw, 32px); }
.videos--multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.videos--multi .video:first-child { grid-column: 1 / -1; }
.video { display: grid; gap: 10px; }
.video__poster, .video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--img-bg); border: 0; }
.video__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .4s; }
.video__poster:hover img { transform: scale(1.03); }
.video__play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; transition: transform .5s var(--ease); }
.video__play svg { width: 26px; fill: #fff; margin-left: 3px; }
.video__poster:hover .video__play { transform: scale(1.12); }
.video figcaption { color: var(--muted); }
@media (max-width: 760px) { .videos--multi { grid-template-columns: minmax(0, 1fr); } }
.gallery { padding-top: clamp(64px, 12vh, 140px); display: grid; gap: clamp(16px, 2vw, 32px); }
.g { overflow: hidden; background: var(--img-bg); }
.g img { width: 100%; }
.g--full img.parallax { height: auto; }
.g-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); align-items: start; }
@media (max-width: 760px) { .g-pair { grid-template-columns: minmax(0, 1fr); } }
.logos { padding-top: clamp(64px, 12vh, 140px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-inline: calc(var(--gut) + var(--side) - 16px) calc(var(--gut-r) + var(--side) - 16px); padding: 0; margin-top: clamp(64px, 12vh, 140px); }
.logos__cell { background: #fff; display: grid; grid-template-rows: 1fr auto; aspect-ratio: 1; padding: 12%; gap: 8px; }
.logos__cell img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); }
.logos__cell:hover img { transform: scale(1.06); }
.logos__cell span { color: #6b6f78; font-size: 10px; }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.next { margin-top: clamp(96px, 18vh, 200px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: end; border-top: 1px solid var(--line);
  padding: clamp(32px, 6vh, 64px) calc(var(--gut-r) + var(--side) - 16px) 0 calc(var(--gut) + var(--side) - 16px); }
.next__k { grid-column: 1 / -1; }
.next__title { font-size: var(--t-2xl); font-weight: 500; letter-spacing: -0.06em; line-height: .9; transition: color .4s; text-wrap: balance; }
.next:hover .next__title { color: var(--accent); }
.next__media { overflow: hidden; aspect-ratio: 16 / 10; background: var(--img-bg); }
.next__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.next:hover .next__media img { transform: scale(1.05); }
@media (max-width: 760px) { .next { grid-template-columns: minmax(0, 1fr); } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__portrait { overflow: hidden; aspect-ratio: 4 / 5; background: var(--img-bg); position: sticky; top: calc(var(--hdr-h) + 24px); }
.about__portrait img { width: 100%; height: 115%; object-fit: cover; }
.about__copy { display: grid; gap: 1.25em; max-width: 60ch; }
.about__copy > p { color: var(--muted); font-size: 1.0625rem; line-height: 1.65; }
.about__copy > .about__lead { color: var(--fg); font-size: var(--t-lg); line-height: 1.3; letter-spacing: -0.02em; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 1em; }
.facts dd { margin: 0; font-size: var(--t-sm); line-height: 1.6; }
.about__links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1em; }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } .about__portrait { position: relative; top: 0; } }

/* ---------- contact ---------- */
.contact { padding-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + clamp(48px, 12vh, 140px)); display: grid; gap: 24px; }
.contact__email { display: grid; gap: 8px; justify-items: start; text-align: left; margin-top: clamp(24px, 6vh, 64px); }
.contact__email .copy__text { font-size: clamp(1.75rem, 0.6rem + 5.6vw, 6.5rem); font-weight: 500; letter-spacing: -0.055em; line-height: 1; overflow-wrap: anywhere; transition: color .4s; }
.contact__email:hover .copy__text { color: var(--accent); }
.contact__alt { font-size: var(--t-sm); color: var(--muted); }
.contact__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: clamp(40px, 10vh, 120px); }
.contact__big { font-size: var(--t-lg); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .contact__grid { grid-template-columns: minmax(0, 1fr); } }

/* resume */
.resume__doc { max-width: 900px; margin-inline: auto; background: #fff; overflow: hidden; }

/* 404 */
.p-404 .pagehead { min-height: 60vh; align-content: end; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee__track [aria-hidden="true"] { display: none; }
  .stack__item { position: relative; height: 80svh; }
  .js .process__step { opacity: 1; }
}

/* ---------- utility: honor the hidden attribute everywhere ---------- */
[hidden] { display: none !important; }

/* ---------- manifesto: words light up with scroll ---------- */
.manifesto { padding-top: clamp(96px, 18vh, 200px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 24px; }
.manifesto__text { font-size: var(--t-xl); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; text-wrap: pretty; max-width: 22ch; }
.js .manifesto__text .w { opacity: .16; }
@media (max-width: 760px) { .manifesto, .split-head, .field { grid-template-columns: minmax(0, 1fr); } .field__fig, .field__cap { grid-column: auto; grid-row: auto; } }

/* ---------- giant sliding word ---------- */
.bigword { overflow: hidden; padding-block: 0 clamp(16px, 3vh, 32px); }
.bigword__t { font-size: clamp(5rem, 21vw, 26rem); font-weight: 600; letter-spacing: -0.07em; line-height: .82; white-space: nowrap; width: max-content; padding-left: calc(var(--gut) + var(--side) - 16px); will-change: transform; }
@media (prefers-reduced-motion: reduce) { .bigword__t { white-space: normal; width: auto; font-size: var(--t-3xl); } .js .manifesto__text .w { opacity: 1; } }

/* ---------- phone layout ---------- */
@media (max-width: 760px) {
  .txt, .process { grid-template-columns: minmax(0, 1fr); }
  .process__side { position: relative; top: 0; }
  .txt__v { font-size: 1.1875rem; }
  .reel__tag { left: calc(var(--side) + 12px); bottom: 12px; font-size: 10px; }
  .stack__meta { gap: 10px; }
  .hero__title { font-size: clamp(2.6rem, 11.5vw, 4rem); }
}

/* hero reel video */
video.reel__img { display: block; background: #000; }
.reel__sound { position: absolute; right: var(--side); bottom: var(--side); color: #fff; background: rgba(0,0,0,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 8px 12px; border-radius: 999px; transition: background .3s; }
.reel__sound:hover, .reel__sound[aria-pressed="true"] { background: var(--accent); }
@media (max-width: 760px) { .reel__sound { right: calc(var(--side) + 12px); bottom: 12px; font-size: 10px; } }

/* home: reel is the first screen */
.reel--top { position: relative; }
.reel--top .reel__frame { height: 100svh; aspect-ratio: auto; max-height: none; clip-path: inset(0 0 0 0 round 0); }
.reel--top .reel__img { position: absolute; inset: 0; }
.reel__cue { position: absolute; right: calc(var(--gut-r) + var(--side) - 16px); bottom: calc(var(--side) + env(safe-area-inset-bottom, 0px)); color: #fff; display: flex; align-items: center; gap: 12px; }
.reel__cue .hero__scroll-line { background: rgba(255,255,255,.3); }
.reel__cue .hero__scroll-line::after { background: #fff; }
.p-home .hero { padding-top: clamp(72px, 14vh, 160px); }

/* footer — carried over from the Squarespace site: dark band, three centered columns */
.ftr { position: relative; margin-top: clamp(120px, 20vh, 240px); border-top: 0; background: #000; color: #fdfdfd; overflow: hidden; isolation: isolate; }
.ftr__bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -1; }
.ftr__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; text-align: center; padding-block: clamp(56px, 9vh, 88px) calc(clamp(56px, 9vh, 88px) + env(safe-area-inset-bottom, 0px)); }
.ftr__h { font-size: 1rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; margin-bottom: 18px; color: #fdfdfd; }
.ftr__col p { font-size: 0.875rem; font-weight: 300; color: #d9dbe0; }
.ftr__mark { background: color-mix(in srgb, var(--accent) 55%, transparent); color: #fdfdfd; padding: 1px 3px; }
.ftr__mail { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(253,253,253,.5); transition: color .3s, text-decoration-color .3s; }
.ftr__mail:hover { color: #fff; text-decoration-color: var(--accent); }
@media (max-width: 760px) { .ftr__cols { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* process photo sits in the sticky side column */
.process__photo { overflow: hidden; aspect-ratio: 4 / 3; background: var(--img-bg); margin-top: 20px; max-width: 520px; }
.process__photo img { width: 100%; height: 115%; object-fit: cover; }

/* ---------- quieter hovers ---------- */
.btn::before { display: none; }
.btn:hover { color: var(--fg); border-color: var(--muted); background: transparent; }
.btn--solid:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); opacity: .88; }
.ulink:hover { color: inherit; }
.stack__link:hover .stack__img, .card__link:hover .card__img, .next:hover .next__media img,
.video__poster:hover img, .logos__cell:hover img { transform: none; }
.card__link:hover .card__img, .next:hover .next__media img { opacity: .9; }
.card__img, .next__media img { transition: opacity .4s ease; }
.card__link:hover .card__title, .next:hover .next__title, .idx__row:hover .idx__title, .marquee__track span:hover, .contact__email:hover .copy__text, .copy:hover .copy__text { color: inherit; }
.focus__row:hover .focus__name { transform: none; color: var(--fg); }
.focus__name { transition: color .3s ease; }
.idx__row:hover { padding-left: 0; }
.idx__row { transition: none; }
.idx__row:hover .idx__title { opacity: .7; }
.video__poster:hover .video__play { transform: none; }
.cursor { display: none !important; }
.p-home .focus__preview { display: none; }
.focus__preview { transform: none; transition: opacity .25s ease; width: clamp(160px, 14vw, 220px); }
.focus__preview.is-on { transform: none; }

/* ---------- smaller titles over full-screen images ---------- */
.stack__title { font-size: clamp(2.25rem, 1.2rem + 3.8vw, 5rem); letter-spacing: -0.045em; line-height: .95; max-width: 16ch; }

/* logo: black-on-transparent PNG shown white; the header's difference blend flips it on light backgrounds */
.hdr__logo { display: block; height: 30px; width: auto; filter: invert(1); }
@media (max-width: 760px) { .hdr__logo { height: 24px; } }

/* ---------- sticky nav ---------- */
:root { --logo-filter: invert(1); --hdr-bg: rgba(11, 12, 14, .78); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --logo-filter: none; --hdr-bg: rgba(243, 244, 246, .82); } }
:root[data-theme="light"] { --logo-filter: none; --hdr-bg: rgba(243, 244, 246, .82); }
:root[data-theme="dark"] { --logo-filter: invert(1); --hdr-bg: rgba(11, 12, 14, .78); }
.hdr.is-hidden { transform: none; }
.hdr { transition: background-color .4s ease, border-color .4s ease, backdrop-filter .4s ease; border-bottom: 1px solid transparent; }
.hdr.is-solid { mix-blend-mode: normal; color: var(--fg); background: var(--hdr-bg); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.hdr.is-solid .hdr__logo { filter: var(--logo-filter); }
.hdr.is-solid .nav__link.is-active::after { background: var(--accent); }

/* social marks */
.about__links { align-items: center; }
.social { display: inline-flex; align-items: center; gap: 8px; }
.social__a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--fg); transition: border-color .3s ease, color .3s ease; }
.social__a svg { width: 17px; height: 17px; fill: currentColor; }
.social__a:hover { border-color: var(--muted); color: var(--accent); }
.social--lg .social__a { width: 48px; height: 48px; }
.social--lg .social__a svg { width: 19px; height: 19px; }

/* ---------- footer: info row on the dark grid background ---------- */
.ftr__cols { display: none; }
.ftr { color: #f1f2f4; }
.ftr__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; padding-block: clamp(64px, 11vh, 112px) calc(clamp(64px, 11vh, 112px) + env(safe-area-inset-bottom, 0px)); }
.ftr__k { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .06em; text-transform: uppercase; color: rgba(241, 242, 244, .6); margin-bottom: 14px; }
.ftr__v { font-size: var(--t-lg); letter-spacing: -0.02em; line-height: 1.3; font-variant-numeric: tabular-nums; color: #f1f2f4; max-width: 14ch; }
.ftr__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ftr__email { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: #fff; font-size: var(--t-sm); font-weight: 500; transition: opacity .3s ease; }
.ftr__email:hover { opacity: .88; }
.social--ftr .social__a { width: 48px; height: 48px; border-color: rgba(241, 242, 244, .28); color: #f1f2f4; }
.social--ftr .social__a svg { width: 19px; height: 19px; }
.social--ftr .social__a:hover { border-color: rgba(241, 242, 244, .6); color: #f1f2f4; }
@media (max-width: 900px) { .ftr__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .ftr__row { grid-template-columns: minmax(0, 1fr); } }

/* full-screen photo between Areas of Focus and Process */
.bleed { margin-top: clamp(96px, 16vh, 180px); }
.bleed__fig { position: relative; height: 100svh; overflow: hidden; background: var(--img-bg); }
.bleed__img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; object-position: 50% 35%; will-change: transform; }
@media (max-width: 760px) { .bleed__fig { height: 80svh; } .bleed__img { object-position: 30% 35%; } }

/* ---------- Selected Work: smaller ---------- */
.sel { padding-top: clamp(80px, 12vh, 140px); }
.sel__head { align-items: end; margin-bottom: clamp(24px, 4vh, 40px); }
.stack__item { top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px)); height: calc(100svh - var(--hdr-h) - env(safe-area-inset-top, 0px)); padding: 0 calc(var(--gut-r) + var(--side) - 16px) clamp(16px, 2.5vh, 28px) calc(var(--gut) + var(--side) - 16px); }
.stack__link { position: relative; inset: auto; height: 100%; border-radius: 6px; overflow: hidden; }
.stack__title { font-size: clamp(1.75rem, 1rem + 2.6vw, 3.5rem); }
.stack__copy { padding: 0 clamp(20px, 3vw, 40px) clamp(20px, 4vh, 40px); gap: 10px; }
@media (max-width: 760px) { .stack__item { height: calc(80svh - var(--hdr-h)); } }

/* ---------- Areas of Focus + Process: one shared frame ---------- */
.focus { padding-top: clamp(96px, 16vh, 180px); }
.process { display: block; padding-top: clamp(96px, 16vh, 180px); }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.duo__side { position: sticky; top: calc(var(--hdr-h) + 32px); display: grid; gap: 14px; }
.duo__side .muted { max-width: 30ch; }
.duo__list { border-top: 1px solid var(--line); }
.duo__list > li { padding: clamp(20px, 3.4vh, 32px) 0; border-bottom: 1px solid var(--line); }
.focus__row { display: block; cursor: default; }
.focus__name { font-size: var(--t-lg); font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; color: var(--fg); }
.focus__row:hover .focus__name { color: var(--fg); }
.process__step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; border-top: 0; }
.process__step:last-child { border-bottom: 1px solid var(--line); }
.js .process__step, .js .process__step.is-active { opacity: 1; }
.process__name { font-size: var(--t-lg); font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; margin: 0; }
.process__text { color: var(--muted); max-width: 52ch; }
.process__side, .process__meter, .bigword { display: none; }
@media (max-width: 760px) { .duo { grid-template-columns: minmax(0, 1fr); } .duo__side { position: relative; top: 0; } }

/* ---------- scroll highlights: Areas of Focus + Process ---------- */
.process__meter { display: block; height: 2px; width: 100%; max-width: 280px; margin-top: 18px; background: var(--line); overflow: hidden; }
.process__meter span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.js .process__step { opacity: .3; transition: opacity .5s ease; }
.js .process__step.is-active { opacity: 1; }
.focus__name { font-size: var(--t-xl); letter-spacing: -0.045em; line-height: 1.05; }
.js .focus__name { color: var(--dim); transition: color .5s ease; }
.js .focus__row.is-active .focus__name, .js .focus__row:hover .focus__name { color: var(--fg); }
@media (prefers-reduced-motion: reduce) { .js .process__step { opacity: 1; } .js .focus__name { color: var(--fg); } }

/* Selected Work: no grey wash — shade only behind the project name */
.stack__item { background: var(--bg); }
.stack__shade { background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.5) 100%); }
.stack__media { background: var(--img-bg); }

/* footer: three columns now that local time is gone */
.ftr__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .ftr__row { grid-template-columns: minmax(0, 1fr); } }

/* footer values stay on one line */
.ftr__v { max-width: none; white-space: nowrap; }
@media (max-width: 360px) { .ftr__v { white-space: normal; } }

/* phones: show the whole 16:9 reel (no crop), tucked under the nav */
@media (max-width: 760px) {
  .reel--top { background: #000; padding-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px)); }
  .reel--top .reel__frame { height: auto; aspect-ratio: 16 / 9; clip-path: none; }
  .reel--top .reel__img { position: static; width: 100%; height: 100%; object-fit: contain; }
  .reel--top .reel__cue { display: none; }
  .p-home .hero { padding-top: clamp(40px, 7vh, 64px); }
}

/* footer: centered columns, like the original Squarespace footer */
.ftr__row { justify-items: center; text-align: center; max-width: 1200px; margin-inline: auto; }
.ftr__cell { display: flex; flex-direction: column; align-items: center; }
.ftr__acts { justify-content: center; }


/* ---------- Selected Clients: the logo grid, split into three sliding rows ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.clients--logos .wrap { margin-bottom: clamp(28px, 5vh, 56px); }
.logo-rows { display: grid; gap: clamp(8px, 2vh, 20px); overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(20px, 4vh, 40px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-row { overflow: hidden; }
.logo-track { display: flex; width: max-content; animation: logos 70s linear infinite; }
.logo-row--1 .logo-track { animation-direction: reverse; animation-duration: 80s; }
.logo-row--2 .logo-track { animation-duration: 64s; }
.logo-strip { --w: clamp(720px, 78vw, 1180px); display: block; width: var(--w); height: calc(var(--w) * 481 / 1599 / 3); margin-right: calc(var(--w) * .06);
  background-image: var(--logos); background-repeat: no-repeat; background-size: 100% 300%; filter: var(--logo-filter); opacity: .9; }
.logo-row--0 .logo-strip { background-position: 0 0; }
.logo-row--1 .logo-strip { background-position: 0 50%; }
.logo-row--2 .logo-strip { background-position: 0 100%; }
.logo-rows:hover .logo-track { animation-play-state: paused; }
@keyframes logos { to { transform: translateX(-50%); } }
.logo-static { display: none; }
@media (prefers-reduced-motion: reduce) {
  .logo-rows { display: none; }
  .logo-static { display: block; width: min(1100px, 100% - 32px); margin: 0 auto; filter: var(--logo-filter); }
}

/* client logos: crisp vector rows, tinted with the text color */
.logo-strip { --u: clamp(0.5px, 0.07vw, 0.9px); background-image: none; background-color: var(--fg); filter: none; opacity: .92;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; margin-right: calc(140 * var(--u)); }
.logo-row--0 .logo-strip { width: calc(1306 * var(--u)); height: calc(107 * var(--u)); }
.logo-row--1 .logo-strip { width: calc(1298 * var(--u)); height: calc(102 * var(--u)); }
.logo-row--2 .logo-strip { width: calc(1298 * var(--u)); height: calc(90 * var(--u)); }
.logo-rows { gap: clamp(18px, 3.4vh, 36px); align-items: center; }
@media (prefers-reduced-motion: reduce) {
  .logo-rows { display: grid; justify-items: center; -webkit-mask-image: none; mask-image: none; }
  .logo-track { animation: none; }
  .logo-strip + .logo-strip { display: none; }
}

/* ---------- Typeface: Poppins (headlines + text) + Fragment Mono (labels) ----------
   Fonts live in assets/fonts. Geist, Bricolage, Funnel, Outfit and Sora files are kept there too if you want to switch back. */
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Fragment Mono'; src: url('../fonts/fragment-mono.woff2') format('woff2'); font-weight: 400; font-display: swap; }
:root { --f-sans: 'Poppins', 'Helvetica Neue', Arial, sans-serif; --f-display: var(--f-sans); --f-mono: 'Fragment Mono', ui-monospace, Menlo, monospace; }
body { letter-spacing: 0; }
.hero__title, .pagehead__title, .proj__title, .next__title, .h-section, .stack__title, .focus__name, .process__name,
.card__title, .idx__title, .contact__email .copy__text, .ftr__v, .stats__n, .menu__nav a { font-family: var(--f-display); }
.hero__title, .pagehead__title, .proj__title, .next__title { letter-spacing: -0.04em; font-weight: 500; line-height: 1; }
.h-section, .stack__title, .focus__name, .contact__email .copy__text, .stats__n { letter-spacing: -0.03em; font-weight: 500; }
.process__name, .card__title, .idx__title, .about__lead, .ftr__v { letter-spacing: -0.015em; font-weight: 500; }
.txt__v { letter-spacing: -0.005em; font-weight: 400; }
.about__copy > p, .process__text, .stack__blurb { font-weight: 300; }
.mono, .label, .ftr__k { letter-spacing: 0.02em; }
.hero__title { max-width: none; }
.hero__title .line__in { white-space: nowrap; }
@media (max-width: 760px) { .hero__title .line__in { white-space: normal; } }
@media (max-width: 760px) { .hero__title { font-size: clamp(2.1rem, 9.4vw, 3.6rem); } }

/* Sora runs wide: scale the biggest headlines down slightly */
.hero__title { font-size: clamp(2.5rem, 0.9rem + 6.6vw, 8.6rem); }
.pagehead__title { font-size: clamp(3rem, 0.6rem + 10vw, 13.5rem); }
.proj__title { font-size: clamp(2.5rem, 0.9rem + 6.6vw, 8.6rem); }
@media (max-width: 760px) { .hero__title { font-size: clamp(1.9rem, 8.4vw, 3.2rem); } }

/* room for Poppins descenders (g, p, y) inside the line-reveal masks */
.line { padding-bottom: 0.2em; margin-bottom: -0.2em; padding-top: 0.04em; margin-top: -0.04em; }
.proj__title .line { padding-bottom: 0.2em; margin-bottom: -0.2em; }
.stack__title, .h-section, .focus__name { padding-bottom: 0.08em; }

/* Areas of Focus hover: just the icon (crops the 700×738 source to its icon square, tinted blue) */
.p-home .focus__preview { display: block; }
.focus__preview.is-icon { --s: 0.5; width: calc(240px * var(--s)); height: calc(240px * var(--s)); aspect-ratio: auto; border-radius: 0; background: var(--accent);
  -webkit-mask-image: var(--icon); mask-image: var(--icon); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: calc(700px * var(--s)) calc(738px * var(--s)); mask-size: calc(700px * var(--s)) calc(738px * var(--s));
  -webkit-mask-position: calc(-240px * var(--s)) calc(-160px * var(--s)); mask-position: calc(-240px * var(--s)) calc(-160px * var(--s)); }
.focus__preview.is-icon img { display: none; }

/* ---------- smaller page titles (Work, My story, Get in touch, Resume, project pages) ---------- */
.pagehead__title { font-size: clamp(2.5rem, 1.2rem + 4.6vw, 6.25rem); letter-spacing: -0.035em; line-height: 1; }
.proj__title { font-size: clamp(2.25rem, 1.1rem + 3.8vw, 5.25rem); }
.pagehead { padding-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + clamp(40px, 9vh, 104px)); }

/* ---------- Contact ---------- */
.contact { padding-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + clamp(40px, 9vh, 104px)); min-height: 62vh; }
.contact__grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__side { display: grid; gap: 20px; position: sticky; top: calc(var(--hdr-h) + 32px); }
.contact__intro { color: var(--muted); max-width: 34ch; font-weight: 300; line-height: 1.6; }
.contact__list { border-top: 1px solid var(--line); }
.contact__row { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: baseline; gap: 16px; padding: clamp(22px, 4vh, 36px) 0; border-bottom: 1px solid var(--line); }
.contact__row::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.contact__row:hover::after, .contact__row:focus-visible::after { transform: scaleX(1); }
.contact__k { color: var(--muted); }
.contact__v { font-family: var(--f-display); font-size: clamp(1.4rem, 0.9rem + 1.6vw, 2.5rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; overflow-wrap: anywhere; transition: color .35s ease; }
.contact__row:hover .contact__v { color: var(--accent); }
@media (max-width: 760px) {
  .contact__grid2 { grid-template-columns: minmax(0, 1fr); }
  .contact__side { position: relative; top: 0; }
  .contact__row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

/* ---------- Selected Work: the outgoing project eases back as the next one slides over ---------- */
.stack__link { transform-origin: 50% 40%; will-change: transform; }

/* ---------- Selected Work: heading + CTA stay pinned above the stacking images ---------- */
.sel { --sel-head: clamp(72px, 10vh, 104px); }
.sel__head { position: sticky; top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px)); z-index: 5; height: var(--sel-head); margin-bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--bg); }
.sel__head .h-section { padding-bottom: 0; }
.stack__item { top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + var(--sel-head)); height: calc(100svh - var(--hdr-h) - env(safe-area-inset-top, 0px) - var(--sel-head)); }
@media (max-width: 760px) {
  .sel { --sel-head: 72px; }
  .sel__head .h-section { font-size: 1.6rem; }
  .sel__cta { height: 38px; padding: 0 16px; }
  .stack__item { height: calc(78svh - var(--hdr-h) - var(--sel-head)); }
}

/* role pill above each Selected Work title */
.pill { justify-self: start; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px;
  font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .04em; text-transform: uppercase; color: #fff;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.stack__copy { gap: 12px; }

/* ---------- Contact rows: icon + handle ---------- */
.contact__row { grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 20px; }
.contact__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); color: var(--fg); transition: border-color .35s ease, color .35s ease; }
.contact__ico svg { width: 20px; height: 20px; fill: currentColor; }
.contact__row:hover .contact__ico { border-color: var(--accent); color: var(--accent); }
@media (max-width: 760px) { .contact__row { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; } .contact__ico { width: 44px; height: 44px; } .contact__ico svg { width: 17px; height: 17px; } }

/* ---------- About: smaller services marquee ---------- */
.marquee--big .marquee__track span { font-size: var(--t-xl); }

/* ---------- Footer: smaller values ---------- */
.ftr__v { font-size: clamp(0.95rem, 0.85rem + 0.3vw, 1.125rem); font-weight: 400; letter-spacing: 0; }

/* ---------- Work: Grid / Index toggle on the right ---------- */
.pagehead__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pagehead__row .view-toggle { margin-bottom: 0.4em; }

/* ---------- Hero: small bobbing down arrow instead of the scroll line ---------- */
.reel__cue { width: 22px; height: 22px; right: auto; left: 50%; margin-left: -11px; bottom: calc(clamp(20px, 4vh, 36px) + env(safe-area-inset-bottom, 0px)); gap: 0; animation: bob 1.8s ease-in-out infinite; }
.reel__cue svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .reel__cue { animation: none; } }

/* ---------- mobile hamburger: two lines → X ---------- */
.burger { width: 28px; height: 28px; position: relative; overflow: visible; }
.burger i { position: absolute; left: 3px; right: 3px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger i:nth-child(1) { top: 10px; }
.burger i:nth-child(2) { top: 17px; }
.burger[aria-expanded="true"] i:nth-child(1) { top: 13.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { top: 13.5px; transform: rotate(-45deg); }
.burger span { display: none; }

/* ---------- Areas of Focus: icons + "&" labels on phones ---------- */
.focus__ico, .focus__short { display: none; }
@media (max-width: 760px) {
  .focus__row { display: flex; align-items: center; gap: 14px; }
  .focus__ico { display: block; flex: 0 0 auto; --s: 0.14; width: calc(240px * var(--s)); height: calc(240px * var(--s)); background: var(--accent);
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-size: calc(700px * var(--s)) calc(738px * var(--s)); mask-size: calc(700px * var(--s)) calc(738px * var(--s));
    -webkit-mask-position: calc(-240px * var(--s)) calc(-160px * var(--s)); mask-position: calc(-240px * var(--s)) calc(-160px * var(--s)); }
  .focus__long { display: none; }
  .focus__short { display: inline; }
  .focus__name { font-size: clamp(1.15rem, 5.4vw, 1.5rem); white-space: nowrap; }
}

/* ---------- photo between Areas of Focus and Process: framed like Selected Work ---------- */
.bleed { padding-inline: calc(var(--gut) + var(--side) - 16px) calc(var(--gut-r) + var(--side) - 16px); }
.bleed__fig { height: min(82svh, 860px); border-radius: 6px; }
@media (max-width: 760px) { .bleed__fig { height: 62svh; } }

/* ---------- hero arrow: phones only, under the buttons ---------- */
.hero__arrow { display: none; }
@media (max-width: 760px) {
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero__arrow { display: block; width: 20px; height: 20px; align-self: center; animation: bob 1.8s ease-in-out infinite; }
  .hero__arrow svg { width: 20px; height: 20px; fill: none; stroke: var(--fg); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
}
@media (prefers-reduced-motion: reduce) { .hero__arrow { animation: none; } }
@media (max-width: 760px) { .focus__row { justify-content: flex-start; } }

/* Selected Work: each card holds briefly once it's fully in view before the next slides over */
.stack__item:not(:last-child) { margin-bottom: 22svh; }
@media (max-width: 760px) { .stack__item:not(:last-child) { margin-bottom: 16svh; } }
@media (prefers-reduced-motion: reduce) { .stack__item:not(:last-child) { margin-bottom: 0; } }

/* ---------- muted blue accent ---------- */
:root { --accent: #4f79d4; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --accent: #3c62b2; } }
:root[data-theme="light"] { --accent: #3c62b2; }
:root[data-theme="dark"] { --accent: #4f79d4; }

/* page transition: a solid blue swipe (left → right) instead of the JC panel */
.curtain { --b: 12px; --o: 30%; background: color-mix(in srgb, var(--bg) var(--o), transparent); -webkit-backdrop-filter: blur(var(--b)); backdrop-filter: blur(var(--b)); }
.curtain__mark { display: none; }
/* hero reel: show the whole frame on every screen (no crop) */
.reel--top .reel__frame { background: #000; }
.reel--top video.reel__img { object-fit: contain; }
/* hero reel: framed card, same insets as Selected Work, whole 16:9 frame visible */
.reel--top { --rpad: clamp(16px, 2.5vh, 28px); background: var(--bg); padding: calc(var(--hdr-h) + env(safe-area-inset-top, 0px)) calc(var(--gut-r) + var(--side) - 16px) var(--rpad) calc(var(--gut) + var(--side) - 16px); }
.reel--top .reel__frame { height: auto; max-height: none; aspect-ratio: 16 / 9; clip-path: none; border-radius: 8px; margin-inline: auto;
  width: min(100%, calc((100svh - var(--hdr-h) - env(safe-area-inset-top, 0px) - var(--rpad)) * 16 / 9)); transform-origin: 50% 0; }
.reel--top video.reel__img { position: absolute; inset: 0; object-fit: cover; }
@media (max-width: 760px) { .reel--top .reel__frame { width: 100%; } }

/* rounded image corners */
.stack__link, .card__media, .g, .next__media, .about__portrait, .bleed__fig, .proj__hero .reel__frame, .video__poster, .video iframe, .focus__preview:not(.is-icon) { border-radius: 8px; overflow: hidden; }
.proj__hero { padding-inline: calc(var(--gut) + var(--side) - 16px) calc(var(--gut-r) + var(--side) - 16px); }
/* hero reel: breathing room under the nav, arrow sits just below the video in blue */
.reel--top { --rtop: clamp(16px, 3vh, 32px); --cue-h: 50px; padding-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + var(--rtop)); padding-bottom: 0; }
.reel--top .reel__frame { width: min(100%, calc((100svh - var(--hdr-h) - env(safe-area-inset-top, 0px) - var(--rtop) - var(--cue-h)) * 16 / 9)); }
.reel--top .reel__cue { position: relative; display: block; left: auto; right: auto; bottom: auto; margin: 14px auto 14px; }
.reel--top .reel__cue svg { stroke: var(--accent); opacity: 1; }
@media (max-width: 760px) { .reel--top .reel__cue { display: none; } .reel--top { padding-bottom: var(--rtop); } }
/* hero: "Scroll" label + arrow under the video */
.reel--top { --cue-h: 96px; }
.reel__more { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 0 14px; color: var(--accent); }
.reel__more-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.reel--top .reel__cue { margin: 0; }
@media (max-width: 760px) { .reel__more { display: none; } }
/* hero: no scroll cue; the video leaves room so the headline peeks above the fold */
@media (min-width: 761px) {
  .reel--top { --peek: clamp(130px, 19vh, 200px); padding-bottom: 0; }
  .reel--top .reel__frame { width: min(100%, calc((100svh - var(--hdr-h) - env(safe-area-inset-top, 0px) - var(--rtop) - var(--peek)) * 16 / 9)); }
  .p-home .hero { padding-top: clamp(28px, 4.5vh, 48px); }
}
/* mobile: hero CTAs stack full width */
@media (max-width: 760px) {
  .hero__foot { align-items: stretch; }
  .hero__ctas { flex-direction: column; width: 100%; gap: 10px; }
  .hero__ctas .btn { width: 100%; justify-content: center; height: 52px; }
}
@media (max-width: 760px) { .hero__arrow { margin-top: 20px; margin-bottom: 12px; } }
/* mobile hero: eyebrow tight to the headline, both closer to the video */
@media (max-width: 760px) {
  .p-home .hero { padding-top: 16px; gap: 28px; }
  .p-home .hero__top { margin-bottom: -18px; }
}
@media (max-width: 760px) { .reel--top { padding-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + 44px); } }
/* desktop: bouncing arrow back under the video, more room before the second panel */
@media (min-width: 761px) {
  .reel--top { --peek: 88px; }
  .reel--top .reel__cue { position: relative; display: block; left: auto; right: auto; bottom: auto; margin: 30px auto 0; }
  .reel--top .reel__cue svg { stroke: var(--accent); opacity: 1; }
  .p-home .hero { padding-top: clamp(96px, 16vh, 180px); }
}
/* hero location lockup: pill with a pin, sized to read as part of the headline block */
.hero__loc { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px 0 12px; border: 1px solid var(--line); border-radius: 999px;
  font-family: inherit; font-size: clamp(14px, .8rem + .25vw, 17px); font-weight: 400; letter-spacing: -0.005em; text-transform: none; color: var(--fg); }
.hero__pin { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linejoin: round; flex: none; }
@media (max-width: 760px) { .hero__loc { height: 34px; padding: 0 14px 0 10px; font-size: 14px; gap: 6px; } .hero__pin { width: 16px; height: 16px; } .p-home .hero__top { margin-bottom: -12px; } }
/* location pill: all caps, grey */
.hero__loc { text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-size: clamp(12px, .68rem + .2vw, 14px); font-weight: 500; }
@media (max-width: 760px) { .hero__loc { font-size: 12px; } }
.hero__loc { padding: 0 18px; } @media (max-width: 760px) { .hero__loc { padding: 0 14px; } }
.hero__loc { border: 0; background: color-mix(in srgb, var(--fg) 8%, transparent); }
.hero__loc, .hero__loc:is(*) { background: none; border: 0; padding: 0; height: auto; border-radius: 0; }
/* location line: bigger */
.hero__loc { font-size: clamp(16px, .85rem + .45vw, 22px); letter-spacing: .06em; }
@media (max-width: 760px) { .hero__loc { font-size: 15px; } }
/* header: small analog clock next to the theme switch */
.aclock { display: inline-block; width: 18px; height: 18px; opacity: 1; color: currentColor; }
.aclock svg { width: 100%; height: 100%; display: block; fill: none; stroke: currentColor; stroke-linecap: round; }
.aclock svg > circle:first-child { stroke-width: 1.4; }
.aclock__h, .aclock__m { transform-box: view-box; transform-origin: 12px 12px; transition: transform .6s var(--ease); }
.aclock__h { stroke-width: 2; }
.aclock__m { stroke-width: 1.5; }
.aclock__c { fill: currentColor; stroke: none; }
/* clock: Braun-style — solid dial, fine ticks, slim hands, colored sweep hand with round counterweight */
.aclock { width: 22px; height: 22px; }
.aclock svg { fill: none; stroke: none; }
.aclock .aclock__face { fill: var(--fg); stroke: none; }
.aclock__t { stroke: var(--bg); stroke-width: .7; stroke-linecap: butt; }
.aclock__t--q { stroke-width: 1.1; }
.aclock__h, .aclock__m { stroke: var(--bg); stroke-linecap: butt; }
.aclock__h { stroke-width: 1.7; }
.aclock__m { stroke-width: 1.15; }
.aclock__s { transform-box: view-box; transform-origin: 12px 12px; transition: transform .25s cubic-bezier(.3,1.6,.6,1); }
.aclock__s line { stroke: var(--accent); stroke-width: .6; }
.aclock__s circle { fill: var(--accent); }
.aclock__c { fill: var(--accent); }
/* clock inside the blended (difference) header: draw in white/black so it inverts cleanly,
   and pre-invert the sweep hand in light mode so it still lands on the brand blue */
:root { --clock-s-blend: var(--accent); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --clock-s-blend: #b79244; } }
:root[data-theme="light"] { --clock-s-blend: #b79244; }
.hdr:not(.is-solid) .aclock .aclock__face { fill: #fff; }
.hdr:not(.is-solid) .aclock__t, .hdr:not(.is-solid) .aclock__h, .hdr:not(.is-solid) .aclock__m { stroke: #000; }
.hdr:not(.is-solid) .aclock__s line { stroke: var(--clock-s-blend); }
.hdr:not(.is-solid) .aclock__s circle, .hdr:not(.is-solid) .aclock__c { fill: var(--clock-s-blend); }
/* mobile: show the whole photo at its natural shape, framed like the hero video */
@media (max-width: 760px) {
  .bleed__fig { height: auto; }
  .bleed__img { position: static; display: block; width: 100%; height: auto; top: 0; object-fit: contain; transform: none !important; }
}
/* mobile: tighter gaps hero → Selected Work and Areas of Focus → photo → Process */
@media (max-width: 760px) {
  .p-home .hero { padding-bottom: 20px; }
  .sel { padding-top: 32px; }
  .bleed { margin-top: 48px; }
  .process { padding-top: 56px; }
}
/* work index: no year column */
.idx__row { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1.6fr); }
@media (max-width: 760px) { .idx__row { grid-template-columns: minmax(0, 1fr); } }
/* ---------- product carousel (white product shots) ---------- */
.car { margin-top: clamp(56px, 10vh, 120px); }
.car__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab;
  padding-inline: calc(var(--gut) + var(--side) - 16px) calc(var(--gut-r) + var(--side) - 16px); scroll-padding-inline: calc(var(--gut) + var(--side) - 16px); }
.car__track::-webkit-scrollbar { display: none; }
.car__track.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.car__track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.car__slide { flex: 0 0 min(62vw, 980px); aspect-ratio: 4 / 3; scroll-snap-align: start; margin: 0; border-radius: 8px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.car__slide img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.car__dots { display: flex; gap: 8px; margin-top: 18px; }
.car__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .3s, width .4s var(--ease); padding: 0; }
.car__dot.is-on { width: 22px; border-radius: 999px; background: var(--fg); }
@media (max-width: 760px) { .car__slide { flex-basis: 86vw; } .car__track { gap: 10px; } }
/* ---------- previous / next project ---------- */
.pn { margin-top: clamp(96px, 16vh, 180px); padding-top: clamp(28px, 4vh, 44px); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.pn__link { display: grid; gap: 10px; align-content: start; }
.pn__link--next { text-align: right; justify-items: end; grid-column: 2; }
.pn__title { font-size: clamp(1.5rem, 1rem + 2.2vw, 3rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; transition: color .3s ease; text-wrap: balance; }
.pn__link:hover .pn__title { color: var(--accent); }
@media (max-width: 760px) { .pn { gap: 16px; } .pn__title { font-size: 1.25rem; } }
.pn__title { padding-bottom: .12em; }
/* ---------- Squarespace-matched project layouts ---------- */
.lay { --col: 61vw; display: grid; gap: clamp(12px, 1.4vw, 20px); margin-top: clamp(56px, 10vh, 120px); }
.lay--medium { --col: 77vw; }
.lay--wide { --col: 100%; }
.lay > .lay__row { width: min(100%, var(--col)); margin-inline: auto; }
.lay__row { display: grid; gap: clamp(12px, 1.4vw, 20px); }
.lay__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lay__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lay__row--small .lay__item { width: 80%; margin-inline: auto; }
.lay__item { margin: 0; border-radius: 8px; overflow: hidden; background: var(--img-bg); }
.lay__item img { display: block; width: 100%; height: auto; }
.lay__item[style*="--ar"] { aspect-ratio: var(--ar); }
.lay__item[style*="--ar"] img { height: 100%; object-fit: cover; }
.lay .video { gap: 0; }
.lay .video[style*="--ar"] .video__poster { aspect-ratio: var(--ar); }
.lay .video[style*="--ar"] iframe { aspect-ratio: var(--ar); }
@media (max-width: 760px) {
  .lay > .lay__row { width: 100%; }
  .lay__row--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* product slideshow: one product at a time, centered on white */
.ss { margin-top: clamp(40px, 7vh, 88px); display: grid; justify-items: center; gap: 18px; }
.ss__stage { position: relative; width: min(48vw, 760px); aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; touch-action: pan-y; }
.ss__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(.96); transition: opacity .6s var(--ease), transform .9s var(--ease); }
.ss__slide.is-on { opacity: 1; transform: none; }
.ss__slide img { width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; }
.ss__dots { display: flex; gap: 8px; }
@media (max-width: 760px) { .ss__stage { width: calc(100% - 2 * (var(--side) + var(--gut) - 16px)); } }

/* photo carousel: several photos in view, full width */
.car--photos .car__slide { flex-basis: min(29vw, 460px); aspect-ratio: 5 / 4; background: var(--img-bg); }
.car--photos .car__slide img { object-fit: cover; }
.car__bar { margin-top: 18px; }
.car__bar::before { content: ''; display: block; height: 2px; background: var(--line); border-radius: 2px; }
.car__bar { position: relative; }
.car__bar span { position: absolute; left: calc(var(--gut) + var(--side) - 16px); top: 0; height: 2px; border-radius: 2px; background: var(--fg); width: 20%; transform-origin: 0 0; transition: transform .2s linear; }
@media (max-width: 760px) { .car--photos .car__slide { flex-basis: 80vw; } }
.video__file { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
/* project text: sits in the same centered column as the images, label beside the copy */
.txt { --col: 61vw; --pad: calc(var(--gut) + var(--side) - 16px);
  padding-inline: max(var(--pad), calc((100% - var(--col)) / 2)); grid-template-columns: minmax(0, 1fr) minmax(0, 3.2fr); column-gap: clamp(24px, 3vw, 48px); }
.txt--medium { --col: 77vw; }
.txt--wide { --col: 100%; }
.txt__k { padding-top: .55em; }
.txt__v { max-width: 52ch; }
.txt + .txt { padding-top: clamp(40px, 7vh, 80px); }
@media (max-width: 760px) { .txt { padding-inline: var(--pad); grid-template-columns: minmax(0, 1fr); } .txt__k { padding-top: 0; } }
/* results: just a thin line to the left of each number */
.stats .label { display: block; margin-bottom: clamp(20px, 3vh, 32px); }
.stats__list { border-top: 0; gap: clamp(20px, 2.5vw, 40px); }
.stats__list li, .stats__list li + li, .stats__list li:last-child { border: 0; border-left: 1px solid var(--line); padding: 4px 0 4px clamp(16px, 1.6vw, 24px); align-content: start; gap: 14px; }
@media (max-width: 760px) { .stats__list { row-gap: 32px; } .stats__list li:nth-child(n) { border: 0; border-left: 1px solid var(--line); padding: 4px 0 4px 16px; } }
/* product slideshow: same width as the image column below */
.ss { --col: 61vw; --pad: calc(var(--gut) + var(--side) - 16px); }
.ss--medium { --col: 77vw; }
.ss--wide { --col: 100vw; }
.ss__stage { width: min(calc(100% - 2 * var(--pad)), var(--col)); }
@media (max-width: 760px) { .ss__stage { width: calc(100% - 2 * var(--pad)); } }
.ss { margin-top: clamp(80px, 13vh, 150px); }
/* nav: links grouped on the right, next to the clock and theme switch */
@media (min-width: 761px) {
  .hdr { grid-template-columns: 1fr auto auto; column-gap: clamp(28px, 3vw, 48px); }
  .hdr__nav { justify-self: end; }
}

/* ---------- Selected Clients: individual logos, one color, optically balanced ---------- */
.logo-rows { --lh: max(22px, 3.6vw); gap: clamp(30px, 5vh, 56px); }
.logo-track { align-items: center; }
.logo { flex: none; display: block; height: calc(var(--lh) * var(--s)); width: calc(var(--lh) * var(--s) * var(--ar));
  margin-right: calc(var(--lh) * 3.2); object-fit: contain; opacity: .88; }
.logo { filter: var(--logo-filter); }
@media (max-width: 760px) { .logo-rows { --lh: 22px; } .logo { margin-right: 48px; } }
@media (prefers-reduced-motion: reduce) {
  .logo-track { flex-wrap: wrap; justify-content: center; width: auto; max-width: 1100px; margin: 0 auto; row-gap: 24px; }
  .logo:nth-child(n+6) { display: none; }
}

/* ---------- Process on phones: heading pins, each step slides over the last (mirrors Selected Work) ---------- */
@media (max-width: 760px) {
  .process .duo { gap: 0; }
  .process .duo__side { position: sticky; top: var(--hdr-h); z-index: 3; background: var(--bg); padding: 12px 0 16px; gap: 8px; }
  .process .process__meter { margin-top: 8px; max-width: none; }
  .process__list { border-top: 0; padding-bottom: 12svh; }
  .process__step { position: sticky; top: calc(var(--hdr-h) + var(--ph, 110px)); z-index: 2; background: var(--bg);
    min-height: 34svh; padding: 22px 0 28px; border-top: 1px solid var(--line); border-bottom: 0; }
  .process__step:last-child { border-bottom: 0; }
  .js .process__step, .js .process__step.is-active { opacity: 1; }
}

/* Selected Work: role chip pinned to the card's top-left corner */
.stack__pill { position: absolute; z-index: 2; top: clamp(24px, 4.5vh, 44px); left: clamp(20px, 3vw, 40px); }

/* Selected Clients: no rules above or below the logos */
.logo-rows { border-block: 0; }

/* Video play buttons: quiet white glass circle */
.video__play { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .3s ease, border-color .3s ease; }
.video__play svg { width: 18px; fill: #fff; margin-left: 2px; }
.video__poster:hover .video__play { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.8); }
@media (max-width: 760px) { .video__play { width: 48px; height: 48px; margin: -24px 0 0 -24px; } .video__play svg { width: 16px; } }

/* Mobile: light/dark switch lives in the hamburger menu */
.menu__theme { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; margin-top: auto; margin-bottom: 28px; padding: 10px 0; color: var(--fg); font-size: var(--t-sm); }
.menu__theme .theme-btn { width: 20px; height: 20px; }
.menu__theme-d { display: none; }
:root[data-theme="dark"] .menu__theme-l { display: none; }
:root[data-theme="dark"] .menu__theme-d { display: inline; }
@media (max-width: 760px) { .hdr__util > .theme-btn { display: none; } }
/* theme switch sits in the menu's bottom row, left of the email */
.menu__foot { align-items: center; }
.menu__foot .menu__theme { margin: 0; padding: 0; color: var(--muted); font-size: inherit; }

/* Project meta: fixed three columns so Client / Role / Contributors line up on every page */
.proj__head .meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .proj__head .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================================
   Work page: falling cascade (staggered, mixed sizes — after Scott Snyder)
   ========================================================================== */
.grid.fall { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(56px, 10vh, 120px); align-items: start; padding-bottom: clamp(48px, 10vh, 120px); }
.work[data-work-view="index"] .grid.fall { display: none; }
.fall__link { display: grid; gap: 14px; }
.fall__media { overflow: hidden; border-radius: 8px; background: var(--img-bg); aspect-ratio: 4 / 3; will-change: transform; }
.fall__img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s ease; }
.fall__link:hover .fall__img { opacity: .9; }
.fall__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.fall__title { font-family: var(--f-display); font-size: var(--t-lg); font-weight: 500; letter-spacing: -0.015em; line-height: 1.15; transition: color .3s ease; }
.fall__link:hover .fall__title { color: var(--accent); }
.fall__role { font-size: var(--t-xs, .75rem); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.fall__item:nth-child(4n+1) { grid-column: 1 / 8; }
.fall__item:nth-child(4n+1) .fall__media { aspect-ratio: 16 / 10; }
.fall__item:nth-child(4n+2) { grid-column: 9 / 13; margin-top: 16vw; }
.fall__item:nth-child(4n+2) .fall__media { aspect-ratio: 4 / 5; }
.fall__item:nth-child(4n+3) { grid-column: 2 / 7; }
.fall__item:nth-child(4n+3) .fall__media { aspect-ratio: 1 / 1; }
.fall__item:nth-child(4n) { grid-column: 8 / 13; margin-top: 9vw; }
.fall__item:nth-child(4n) .fall__media { aspect-ratio: 4 / 3; }
@media (max-width: 760px) {
  .grid.fall { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
  .fall__item:nth-child(n) { grid-column: 1; margin-top: 0; width: 86%; }
  .fall__item:nth-child(2n) { justify-self: end; width: 72%; }
  .fall__cap { flex-direction: column; gap: 4px; }
}

/* ==========================================================================
   Project pages: hero first, then two columns — title + facts left, story right
   ========================================================================== */
.proj__hero { padding-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + clamp(16px, 3vh, 32px)); }
.proj__intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); padding-top: clamp(56px, 11vh, 128px); padding-bottom: clamp(24px, 4vh, 48px); align-items: start; }
.proj__side { grid-column: 1 / 6; display: grid; gap: clamp(28px, 5vh, 56px); position: sticky; top: calc(var(--hdr-h) + 32px); }
.proj__body { grid-column: 7 / 13; display: grid; gap: clamp(28px, 5vh, 48px); }
.proj__intro .proj__title { font-size: clamp(2rem, 1rem + 2.6vw, 3.5rem); line-height: 1.02; max-width: 14ch; }
.proj__facts { display: grid; gap: 22px; margin: 0; }
.proj__fact dd { margin: 6px 0 0; font-size: clamp(1rem, .9rem + .35vw, 1.25rem); line-height: 1.4; }
.proj__k { font-family: var(--f-display); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--fg); margin: 0; }
.proj__sec { display: grid; gap: 10px; }
.proj__sec p { font-size: clamp(1.15rem, .95rem + .55vw, 1.5rem); line-height: 1.42; letter-spacing: -0.01em; text-wrap: pretty; margin: 0; }
.proj__sec:first-child p { font-size: clamp(1.3rem, 1rem + .9vw, 1.9rem); line-height: 1.32; letter-spacing: -0.015em; }
@media (max-width: 760px) {
  .proj__intro { grid-template-columns: minmax(0, 1fr); row-gap: 40px; padding-top: 40px; }
  .proj__side, .proj__body { grid-column: 1; position: relative; top: 0; }
  .proj__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
}

/* three results spread across the row (four-column grid otherwise) */
@media (min-width: 761px) { .stats__list:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 761px) { .stats__list:has(> li:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Project intro: title on its own row, then ROLE and the first story label start on the same line */
@media (min-width: 761px) {
  .proj__side { display: contents; }
  .proj__intro { row-gap: clamp(36px, 6vh, 64px); }
  .proj__intro .proj__title { grid-column: 1 / 7; grid-row: 1; max-width: none; }
  .proj__facts { grid-column: 1 / 6; grid-row: 2; }
  .proj__body { grid-column: 7 / 13; grid-row: 2; }
}

/* Work cascade: show each cover at its natural shape — no cropping */
.fall__item .fall__media, .fall__item:nth-child(n) .fall__media { aspect-ratio: auto; }
.fall__img { height: auto; display: block; }

/* Work cascade: role chip on the image, top-left — same chip as Selected Work */
.fall__media { position: relative; }
.fall__pill { position: absolute; z-index: 2; top: clamp(14px, 1.6vw, 24px); left: clamp(14px, 1.6vw, 24px); }

/* About: no page heading, so the portrait and bio start just under the nav */
.p-about .about { padding-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + clamp(56px, 12vh, 144px)); }
/* soft shade in the corner behind the chip, so the homepage-style chip reads on bright photos */
.fall__media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 0% 0%, rgba(0,0,0,.42) 0%, rgba(0,0,0,.12) 28%, rgba(0,0,0,0) 48%); }
.fall__media--plain::after { content: none; }

/* "The result" label matches ROLE / CLIENT / INSIGHT */
.stats > .label { font-family: var(--f-display); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--fg); }

/* ==========================================================================
   Type system — one eyebrow, one body, one lead, used everywhere
   ========================================================================== */
:root {
  --eyebrow-size: .75rem;
  --body-size: clamp(1rem, .94rem + .25vw, 1.125rem);   /* ~16–18px */
  --lead-size: clamp(1.25rem, 1rem + .8vw, 1.75rem);     /* ~20–28px */
}
/* Eyebrows: Poppins bold, all caps, wide tracking */
.label, .proj__k, .stats > .label, .ftr__k, .pn__k, .about .facts dt, .hero__eyebrow {
  font-family: var(--f-display); font-size: var(--eyebrow-size); font-weight: 700; text-transform: uppercase;
  letter-spacing: .15em; line-height: 1.5; color: var(--fg);
}
.ftr__k { color: rgba(241, 242, 244, .6); }
.pn__k { color: var(--muted); }
/* Brooklyn-Based keeps its larger lockup size but shares the eyebrow style */
.hero__eyebrow { font-size: clamp(.95rem, .8rem + .45vw, 1.25rem); color: var(--muted); }
/* Body copy: every paragraph and supporting line */
.process__text, .contact__intro, .about__copy > p:not(.about__lead), .duo__side .muted, .stats__list .muted,
.about .facts dd, .proj__fact dd, .txt__v {
  font-size: var(--body-size); line-height: 1.6; font-weight: 300; letter-spacing: 0;
}
.process__text, .contact__intro, .about__copy > p:not(.about__lead), .duo__side .muted, .stats__list .muted { color: var(--muted); }
.about .facts dd, .proj__fact dd { color: var(--fg); font-weight: 400; }
/* Lead: the About intro and every project story paragraph */
.about__lead, .proj__sec p, .proj__sec:first-child p {
  font-size: var(--lead-size); line-height: 1.38; font-weight: 400; letter-spacing: -0.01em; color: var(--fg);
}
.about .about__copy .about__lead { font-size: var(--lead-size); line-height: 1.38; font-weight: 400; letter-spacing: -0.01em; }
.idx__client, .idx__svc { font-size: var(--body-size); font-weight: 300; }
.ftr__v { font-size: var(--body-size); }

/* Areas of Focus, desktop: the row's icon slides in at the right end on hover (no cursor-follow) */
@media (min-width: 761px) {
  .p-home .focus__preview { display: none !important; }
  .focus__row { position: relative; }
  .focus__row .focus__ico { display: block; position: absolute; right: 0; top: 50%; --s: .3; width: calc(240px * var(--s)); height: calc(240px * var(--s));
    background: var(--accent); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-size: calc(700px * var(--s)) calc(738px * var(--s)); mask-size: calc(700px * var(--s)) calc(738px * var(--s));
    -webkit-mask-position: calc(-240px * var(--s)) calc(-160px * var(--s)); mask-position: calc(-240px * var(--s)) calc(-160px * var(--s));
    opacity: 0; transform: translate(-16px, -50%); transition: opacity .35s ease, transform .5s var(--ease); pointer-events: none; }
  .focus__row:hover .focus__ico { opacity: 1; transform: translate(0, -50%); }
}

/* Looping product film in the image column */
.lay__loop { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Phones: lighter Selected Work cards */
@media (max-width: 760px) {
  .stack__link, .stack__img { will-change: auto; }
  .stack__img { transition: none; }
}

/* About: Process lives in the right column; portrait stays pinned on the left */
.about__process { margin-top: clamp(64px, 12vh, 140px); display: grid; gap: 10px; }
.about__process .process__meter { margin: 14px 0 8px; }
.about__process .process__list { margin-top: 8px; }
.about__process .process__step { padding: clamp(24px, 4.5vh, 44px) 0; border-top: 1px solid var(--line); }
.p-about .about__portrait img { height: 100%; }
@media (max-width: 760px) {
  .about__process .process__list { padding-bottom: 0; }
  .about__process .process__step { position: static; min-height: 0; }
  .about__process .process__step:last-child { border-bottom: 1px solid var(--line); }
}

/* About: Resume + socials sit under the portrait; both stay pinned together */
.about__side { position: sticky; top: calc(var(--hdr-h) + 24px); align-self: start; display: grid; gap: 20px; }
.about__side .about__portrait { position: relative; top: 0; }
.about__side .about__links { margin-top: 0; }
@media (min-width: 861px) { .about__side .about__portrait { max-height: calc(100svh - var(--hdr-h) - 48px - 64px); } }
@media (max-width: 860px) { .about__side { position: relative; top: 0; } }
