/* =========================================================
   Mallen.world — site-specific styles
   Built on top of tokens.css (Airbnb-derived design system),
   but with the Rausch red dialed down (mostly-mono treatment).
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
  --site-max: 1440px;
  --gutter: clamp(16px, 3vw, 48px);
  --accent: var(--color-ink);          /* mono treatment - swap to var(--color-primary) for full Rausch */
  --accent-soft: #f7f7f7;
  --display-font: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--color-canvas);
  color: var(--color-ink);
  overflow-x: hidden;
  cursor: none;
}
@media (hover: none) { body { cursor: auto; } }

a, button, [role="button"], input, label, select, textarea {
  cursor: none;
}
@media (hover: none) { a, button { cursor: pointer; } }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: none; border: 0; background: transparent; padding: 0; color: inherit; }
@media (hover: none) { button { cursor: pointer; } }

/* ------ Layout helpers ------ */
.container {
  width: 100%;
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.full-bleed { width: 100%; padding: 0 var(--gutter); }

/* ------ Custom cursor ------ */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  transition: transform 0.06s linear, background 0.18s ease, opacity 0.2s ease;
  background: #111;
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.45));
  clip-path: polygon(
    50% 0%, 61% 35%, 98% 35%, 68% 57%,
    79% 91%, 50% 70%, 21% 91%, 32% 57%,
    2% 35%, 39% 35%
  );
}
.cursor-dot.cursor-live { opacity: 1; }
.cursor-dot.over-link { background: #fff; filter: drop-shadow(0 0 1.5px rgba(0,0,0,0.65)); }
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid var(--color-ink);
  border-radius: 9999px;
  pointer-events: none;
  z-index: 9998;
  transform: translate3d(-100px, -100px, 0);
  transition: transform 0.22s cubic-bezier(.2,.7,.2,1), width 0.22s ease, height 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.cursor-ring.hover {
  width: 80px; height: 80px;
  background: rgba(34,34,34,0.04);
}
.cursor-ring.label::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font: 500 11px/1 var(--font-sans);
  color: var(--color-ink);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ------ City clocks (footer) ------ */
.city-clocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding: 64px 0 88px;
  border-top: 1px solid rgba(255,255,255,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-top: 64px;
}
.pj-hero-media-vertical {
  width: 100%;
  aspect-ratio: 3/4;
  max-height: 90vh;
  background: transparent;
}
.pj-hero-media-vertical media-slot {
  width: 100%; height: 100%; display: block;
  --is-radius: 0;
  --slot-bg: transparent;
}
   Auto-width columns + justify-content: center pack the three clocks tight
   and center the group, rather than stretching one across each column third
   (which made them read as right-pushed). */
.city-clocks--compact {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 24px;
  justify-content: center;
  padding: 0;
  border: 0;
  margin: 0;
  align-items: center;
}
.city-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.city-clocks--compact .city-clock { gap: 14px; }
.city-clock-face {
  width: clamp(120px, 16vw, 180px);
  height: clamp(120px, 16vw, 180px);
  display: block;
}
.city-clocks--compact .city-clock-face {
  width: 44px;
  height: 44px;
}
.city-clock-label {
  font-family: 'VT323', ui-monospace, 'Courier New', monospace;
  font-size: clamp(20px, 2vw, 28px);
  color: #fff;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow:
    0 0 1px rgba(255,255,255,0.6),
    0 0 14px rgba(255,255,255,0.18);
}
.city-clocks--compact .city-clock-label {
  font: 400 13px/1 var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
  text-shadow: none;
  color: rgba(255,255,255,0.5);
}
@media (max-width: 760px) {
  .city-clocks { gap: 24px; padding: 40px 0 48px; }
  .city-clock-label { font-size: 18px; }
}

.footer-grid .col--clocks {
  border-left: 1px solid rgba(255,255,255,0.10);
  padding-left: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-clocks, .flip-clock, .flip-tile, .flip-ampm, .flip-digits, .flip-label { display: none !important; }
/* ------ Dice nav icon ------ */
.nav-dice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-body);
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-dice:hover { color: var(--color-ink); background: var(--color-surface-soft); }
.dice-svg {
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1);
  transform-origin: center;
}
.nav-dice:hover .dice-svg { transform: rotate(180deg) scale(1.2); }

/* ------ Top nav ------ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-hairline-soft);
  z-index: 100;
  transition: transform 0.32s cubic-bezier(.5,.05,.1,1), background 0.2s, opacity 0.4s ease;
  animation: navFadeIn 0.5s ease 0.05s both;
}
@keyframes navFadeIn {
  0%   { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}
.nav.hide { transform: translateY(-100%); }
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}
.brand { display: flex; align-items: center; }
.brand-logo-wrap {
  position: relative;
  display: inline-block;
  height: 26px;
  line-height: 0;
}
.brand-logo {
  height: 26px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity 0.3s ease;
  /* Always-on vintage projector "gate weave" — tiny sub-pixel drift, no rotation */
  animation: gateWeave 4.5s ease-in-out infinite;
  will-change: transform;
}
/* Irregular micro-translations mimic film unsteadiness in a projector gate */
@keyframes gateWeave {
  0%   { transform: translate(0px,    0px);   }
  14%  { transform: translate(0.4px, -0.3px); }
  28%  { transform: translate(-0.3px, 0.4px); }
  42%  { transform: translate(0.3px,  0.2px); }
  56%  { transform: translate(-0.4px,-0.2px); }
  70%  { transform: translate(0.2px,  0.4px); }
  84%  { transform: translate(-0.2px,-0.4px); }
  100% { transform: translate(0.3px,  0.1px); }
}
@keyframes logoBreath {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}
/* Hover — just a faint fade, no movement override */
.brand:hover .brand-logo {
  opacity: 0.85;
}
@keyframes logoBounce {
  0%   { transform: scale(1) translateY(0); }
  40%  { transform: scale(1.08) translateY(-5px); }
  100% { transform: scale(1) translateY(0); }
}
  display: block;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  animation: logoBreath 5s ease-in-out infinite;
  transform-origin: center;
}
@keyframes logoBreath {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}
.nav-links { display: flex; gap: 18px; align-items: center; flex-shrink: 0; }
.nav-link {
  font: 500 14px/1 var(--font-sans);
  color: var(--color-body);
  position: relative;
  padding: 8px 2px;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--color-ink); }
.nav-link.active { color: var(--color-ink); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--color-ink);
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 9999px;
  border: 1px solid var(--color-hairline);
  font: 500 13px/1 var(--font-sans);
  background: #fff;
  color: var(--color-ink);
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}
.nav-cta:hover { border-color: var(--color-ink); background: var(--color-ink); color: #fff; }
.nav-cta .dot {
  width: 6px; height: 6px; border-radius: 9999px; background: #1aa15c;
  box-shadow: 0 0 0 0 rgba(26,161,92,0.4); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(26,161,92,0.4); }
  70% { box-shadow: 0 0 0 6px rgba(26,161,92,0); }
  100% { box-shadow: 0 0 0 0 rgba(26,161,92,0); }
}

/* ------ Page transition — clean fade ------ */
.page-wipe {
  position: fixed; inset: 0;
  background: #fff;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.page-enter .page-wipe {
  animation: fadeIn 0.35s ease forwards;
}
.page-leave .page-wipe {
  animation: fadeOut 0.35s ease forwards;
  pointer-events: all;
}
@keyframes fadeIn {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes fadeOut {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

/* Images ease in once decoded instead of popping in */
.img-fade { opacity: 0; transition: opacity 0.5s ease; }
.img-fade.is-loaded { opacity: 1; }

/* Bio paragraph — animates after headline */
.hero-bio-anim {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(3px);
  animation: headlineIn 0.65s cubic-bezier(.2,.7,.2,1) 0.6s forwards;
}

/* Portrait slot — animates last */
.hero-portrait-anim {
  opacity: 0;
  transform: translateY(12px);
  animation: headlineIn 0.7s cubic-bezier(.2,.7,.2,1) 0.85s forwards;
}

/* ------ Hero ------ */
.hero { padding: 128px var(--gutter) 0; min-height: 100vh; position: relative; overflow: hidden; }

/* Hero headline staggered reveal — delayed past the page-wipe (0.7s) */
.headline-line {
  display: block;
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  animation: headlineIn 0.75s cubic-bezier(.2,.7,.2,1) forwards;
  line-height: inherit;
}
.headline-line-1 { animation-delay: 0.55s; }
.headline-line-2 { animation-delay: 0.75s; }
@keyframes headlineIn {
  0%   { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0);   }
}
.hero-bg-vid-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.hero .hero-bg-scrim {
  display: none;
}
/* All hero content sits above the video */
.hero-variant,
.hero .container { position: relative; z-index: 2; }


.hero-v1 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 56px;
  align-items: start;
  padding-bottom: 48px;
}
.hero-v1 .display {
  font: 500 clamp(64px, 11vw, 168px)/0.92 var(--display-font);
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin: 0;
}
.hero-v1 .display .slash { color: var(--color-muted-soft); font-weight: 300; }
.hero-v1 .right-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
  justify-self: end;
  width: 100%;
  max-width: 440px;
}
.hero-v1 .portrait-slot {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface-soft);
}
.hero-v1 .bio {
  font: 400 14px/1.45 var(--font-sans);
  color: var(--color-body);
  text-wrap: pretty;
  max-width: 420px;
  align-self: flex-start;
  text-align: left;
}


/* V2: stacked editorial */
.hero-bio-bubble {
  display: none;
}
.hero-v2 {
  text-align: center;
  padding-bottom: 64px;
}
.hero-v2 .eyebrow {
  font: 500 13px/1 var(--font-sans);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 32px;
}
.hero-v2 .display {
  font: 500 clamp(64px, 11vw, 168px)/0.94 var(--display-font);
  letter-spacing: -0.04em;
  margin: 0 auto;
  max-width: 1200px;
}
.hero-v2 .portrait-slot {
  width: clamp(220px, 28vw, 360px);
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 48px auto 24px;
  background: var(--color-surface-soft);
}
.hero-v2 .bio {
  max-width: 420px;
  margin: 0 auto;
  font: 400 15px/1.55 var(--font-sans);
  color: var(--color-body);
  text-wrap: pretty;
}

/* V3: full-bleed image hero */
.hero-v3 {
  display: block;
  padding: 0;
  margin: 0 calc(-1 * var(--gutter));
  position: relative;
}
.hero-v3 .bg-slot {
  width: 100%;
  height: 92vh;
  min-height: 720px;
  background: var(--color-surface-strong);
  overflow: hidden;
}
.hero-v3 .overlay {
  position: absolute;
  inset: 0;
  padding: 0 var(--gutter) 64px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.55) 100%);
}
.hero-v3 .display {
  font: 500 clamp(64px, 11vw, 172px)/0.92 var(--display-font);
  letter-spacing: -0.04em;
  margin: 0;
  color: #fff;
}
.hero-v3 .bottom-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; margin-top: 32px;
}
.hero-v3 .bio {
  font: 400 15px/1.55 var(--font-sans);
  color: rgba(255,255,255,0.9);
  max-width: 340px;
}
.hero-v3 .meta {
  text-align: right;
  font: 500 13px/1.4 var(--font-sans);
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.05em;
}

/* ------ Marquee ------ */
.marquee-section { padding: 16px 0 40px; border-top: 1px solid var(--color-hairline-soft); border-bottom: 1px solid var(--color-hairline-soft); overflow: hidden; margin-top: -16px; }
.marquee {
  display: flex;
  gap: 56px;
  align-items: center;
  height: 72px;
  animation: marquee 80s linear infinite;
  width: max-content;
}
.marquee:hover { animation-play-state: paused; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee {
  display: flex;
  gap: 56px;
  align-items: center;
  animation: marquee 80s linear infinite;
  width: max-content;
}
.client-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.client-logo img {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  object-position: center center;
  vertical-align: middle;
  filter: brightness(0);
  display: block;
}
.client-wordmark {
  flex-shrink: 0;
  height: 32px;
  display: inline-flex;
  align-items: center;
  font: 600 14px/1 var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--color-ink);
  text-transform: uppercase;
  opacity: 0.65;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.client-wordmark:hover { opacity: 1; }
.client-logo:hover { opacity: 1; }

/* ------ Section base ------ */
.section {
  padding: var(--space-section) 0;
}
.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 48px;
  max-width: 760px;
}
.section-head .left { display: contents; }
.section-head .section-desc {
  max-width: 56ch;
  margin: 0;
}
/* Aligned variant keeps the grid only for the About-me row where the
   description must line up with the stat column below. */
.section-head--aligned {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
  gap: 48px;
  max-width: 100%;
}
.section-head--aligned .left { display: block; }
.section-head--aligned .section-desc { max-width: 100%; }
.section-head .left { max-width: 760px; }
.section-tag {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--color-hairline);
  border-radius: 9999px;
  font: 500 12px/1 var(--font-sans);
  color: var(--color-body);
  margin-bottom: 20px;
}
.section-title {
  font: 500 clamp(34px, 4.4vw, 56px)/1.05 var(--display-font);
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.section-desc {
  font: 400 15px/1.55 var(--font-sans);
  color: var(--color-muted);
  max-width: 360px;
  text-wrap: pretty;
  margin: 0;
}

/* ------ About slideshow ------ */
.about-show {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 16/10;
  background: transparent;
}
.about-show media-slot { --slot-bg: transparent; }
.about-show-track { position: absolute; inset: 0; }
.about-show-slide {
  position: absolute; inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1);
}
.about-show-slide.is-active { opacity: 1; z-index: 1; }
/* Crop-adjust drag layer + toggle button */
.about-focal-drag {
  position: absolute; inset: 0; z-index: 4;
  cursor: grab; touch-action: none;
  background: rgba(0,0,0,0.04);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.9), inset 0 0 0 3px rgba(0,0,0,0.25);
}
.about-focal-drag:active { cursor: grabbing; }
.about-adjust-btn {
  position: absolute; bottom: 12px; right: 12px; z-index: 6;
  font: 500 11px/1 var(--font-sans); letter-spacing: 0.04em;
  padding: 8px 12px; border: 0; border-radius: 9999px;
  background: rgba(0,0,0,0.6); color: #fff; cursor: pointer;
  backdrop-filter: blur(6px); transition: background 0.15s, opacity 0.15s;
  opacity: 0;
}
.about-show:hover .about-adjust-btn,
.portrait:hover .about-adjust-btn { opacity: 1; }
.about-adjust-btn:hover { background: rgba(0,0,0,0.82); }
.about-adjust-btn.is-on { background: #fff; color: #111; opacity: 1; }
/* Zoom slider shown while adjusting a carousel crop */
.about-zoom-ctl {
  position: absolute; bottom: 12px; left: 12px;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 9999px;
  background: rgba(0,0,0,0.6); color: #fff; backdrop-filter: blur(6px);
  font: 500 11px/1 var(--font-sans); letter-spacing: 0.04em;
}
.about-zoom-ctl input[type="range"] { width: 96px; accent-color: #fff; cursor: pointer; }
.about-show-slide media-slot {
  display: block;
  width: 100%; height: 100%;
  --is-radius: 0;
  --slot-bg: transparent;
}

/* Arrows */
.show-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 36px; height: 36px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-hairline);
  transition: background 0.18s, opacity 0.18s;
  opacity: 0;
}
.about-show:hover .show-arrow { opacity: 1; }
.show-arrow:hover { background: #fff; }
.show-arrow--prev { left: 12px; }
.show-arrow--next { right: 12px; }

/* Dots */
.show-dots {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; gap: 6px;
}
.show-dot {
  width: 6px; height: 6px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.5);
  transition: background 0.2s, transform 0.2s;
  border: none;
}
.show-dot.is-active {
  background: #fff;
  transform: scale(1.4);
}
.about-preview {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-preview .video-slot {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface-soft);
}
.about-preview .play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 9999px;
  background: rgba(34,34,34,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  backdrop-filter: blur(6px);
}
.about-preview .play-btn::after {
  content: ''; display: block; width: 0; height: 0;
  border-left: 14px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.about-stats { display: flex; flex-direction: column; gap: 32px; }
.stat-num { font: 500 clamp(56px, 6vw, 88px)/1 var(--display-font); letter-spacing: -0.03em; color: var(--color-ink); }
.stat-desc { font: 400 14px/1.5 var(--font-sans); color: var(--color-muted); max-width: 280px; margin-top: 8px; }

/* ------ Services ------ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.service-card {
  position: relative;
  padding: 24px 28px;
  background: var(--color-surface-soft);
  border-radius: var(--radius-md);
  min-height: 140px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background 0.25s, transform 0.25s;
  overflow: hidden;
}
.service-card.dark { background: var(--color-ink); color: #fff; }
.service-card.dark .service-desc { color: rgba(255,255,255,0.7); }
.service-card .service-title { font: 600 18px/1.25 var(--font-sans); margin: 0 0 8px; }
.service-card .service-desc { font: 400 14px/1.5 var(--font-sans); color: var(--color-muted); margin: 0; max-width: 28ch; }
.service-card .arrow {
  align-self: flex-end;
  width: 36px; height: 36px;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
}
.service-card.dark .arrow { background: rgba(255,255,255,0.08); }
.service-card .arrow svg { width: 16px; height: 16px; }
.service-card:hover { transform: translateY(-2px); }

/* ------ Timeline ------ */
.timeline-section {
  background: var(--color-surface-soft);
  padding: 48px var(--gutter);
  margin: 0 calc(-1 * var(--gutter));
  border-radius: var(--radius-md);
}
.timeline-row {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 24px 28px;
  border-radius: var(--radius-md);
  transition: background 0.25s;
  cursor: none;
}
.timeline-row:hover { background: #fff; }
.timeline-row + .timeline-row { border-top: 1px solid var(--color-hairline-soft); }
.timeline-role { font: 600 18px/1.3 var(--font-sans); margin: 0 0 4px; }
.timeline-desc { font: 400 14px/1.5 var(--font-sans); color: var(--color-muted); margin: 0; max-width: 60ch; }
.timeline-years { font: 500 clamp(28px, 3vw, 40px)/1 var(--display-font); letter-spacing: -0.02em; text-align: right; color: var(--color-ink); }

/* ------ Portfolio grid ------ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
  aspect-ratio: 4/3;
  display: block;
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
}
.project-card .img-slot { position: absolute; inset: 0; z-index: 0; }
.project-card .img-slot media-slot { width: 100%; height: 100%; }
.project-card .label {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px;
  color: #fff;
  z-index: 3;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.project-card .label .title { font: 500 18px/1.2 var(--font-sans); margin: 0; }
.project-card .label .tags { font: 400 12px/1.4 var(--font-sans); color: rgba(255,255,255,0.85); margin-top: 4px; max-width: 18ch;}
.project-card .view-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 9999px;
  background: #fff;
  color: var(--color-ink);
  font: 500 12px/1 var(--font-sans);
  pointer-events: auto;
  flex-shrink: 0;
  transition: background 0.2s;
}
.project-card .view-link:hover { background: var(--color-ink); color: #fff; }
.project-card .gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent 50%);
  opacity: 0; transition: opacity 0.3s;
  z-index: 2;
  pointer-events: none;
}
.project-card:hover .label, .project-card:hover .gradient { opacity: 1; transform: none; }
.project-card:hover { transform: translateY(-4px); }

.portfolio-grid.varied .project-card:nth-child(7n+1) { aspect-ratio: 4/5; }
.portfolio-grid.varied .project-card:nth-child(7n+4) { aspect-ratio: 4/5; }

/* ------ Footer CTA ------ */
.cta-section {
  background: var(--color-ink);
  color: #fff;
  margin: var(--space-section) 0 0;
  padding: 88px var(--gutter) 32px;
  border-radius: 28px;
  position: relative;
}
/* Restore the hairline between the CTA block and the footer grid — the big
   clock band used to provide this separation; with clocks moved into a footer
   column we need an explicit rule again. */
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
  padding-bottom: 96px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.cta-title {
  font: 500 clamp(54px, 9vw, 132px)/0.95 var(--display-font);
  letter-spacing: -0.035em;
  margin: 0;
  color: #fff;
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 9999px;
  font: 500 15px/1 var(--font-sans);
  color: #fff;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}
.cta-btn:hover { background: #fff; color: var(--color-ink); border-color: #fff; }
.cta-btn .icon {
  width: 34px; height: 34px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
}
.cta-btn:hover .icon { background: var(--color-ink); color: #fff; }
.footer-grid {
  padding: 56px 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-grid .col h4 { font: 500 12px/1 var(--font-sans); letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin: 0 0 16px; }
.footer-grid .col p { font: 400 14px/1.55 var(--font-sans); color: rgba(255,255,255,0.85); margin: 0; }
.footer-grid .col a { display: block; font: 400 14px/1.85 var(--font-sans); color: rgba(255,255,255,0.85); }
.footer-grid .col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font: 400 13px/1 var(--font-sans);
  color: rgba(255,255,255,0.5);
}
.footer-bottom .socials { display: flex; gap: 20px; align-items: center; }
.footer-bottom .socials a { color: rgba(255,255,255,0.7); display: flex; align-items: center; transition: color 0.15s; }
.footer-bottom .socials a:hover { color: #fff; }

/* ------ About page ------ */
.about-hero {
  padding: 104px var(--gutter) 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-hero h1 {
  font: 500 clamp(48px, 7vw, 104px)/0.98 var(--display-font);
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.about-hero .lede {
  font: 400 17px/1.55 var(--font-sans);
  color: var(--color-body);
  max-width: 420px;
  text-wrap: pretty;
}
.about-hero .portrait {
  aspect-ratio: 4/5;
  background: var(--color-surface-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  align-self: start;
  /* Line the frame's top up with the "Matt Allen" headline (below the About tag). */
  margin-top: 50px;
}
.about-section { padding: var(--space-section) 0; border-top: 1px solid var(--color-hairline-soft); }
.about-section .head { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; margin-bottom: 32px; }
.about-section .head h2 { font: 500 32px/1.1 var(--display-font); letter-spacing: -0.02em; margin: 0; }
.about-section .head p { font: 400 16px/1.65 var(--font-sans); color: var(--color-body); margin: 0; max-width: 60ch; }
.about-cv {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px 64px;
}
.cv-block h3 { font: 500 12px/1 var(--font-sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-muted); margin: 0 0 16px; }
.cv-block .item { padding: 16px 0; border-top: 1px solid var(--color-hairline-soft); display: flex; justify-content: space-between; gap: 24px; }
.cv-block .item:first-child { border-top: 0; padding-top: 0; }
.cv-block .item .role { font: 500 16px/1.3 var(--font-sans); margin: 0; }
.cv-block .item .place { font: 400 14px/1.4 var(--font-sans); color: var(--color-muted); margin: 2px 0 0; }
.cv-block .item .role a {
  text-decoration: none;
  border-bottom: 1px solid var(--color-hairline);
  transition: border-color 0.15s, color 0.15s;
}
.cv-block .item .role a:hover { border-bottom-color: var(--color-ink); }
.cv-block .item .yr { font: 500 14px/1.4 var(--font-sans); color: var(--color-muted); flex-shrink: 0; }

/* CV — paired experience + clients grid (row-aligned) */
.cv-pairs {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  column-gap: 48px;
}
.cv-pairs-head {
  display: contents;
}
.cv-pairs-head h3 {
  font: 500 12px/1 var(--font-sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 20px;
  padding-bottom: 0;
}
.cv-pair {
  display: contents;
}
.cv-pair > .role-cell,
.cv-pair > .clients-cell {
  padding: 20px 0;
  border-top: 1px solid var(--color-hairline-soft);
}
.cv-pair .role { font: 500 16px/1.3 var(--font-sans); margin: 0; }
.cv-pair .place { font: 400 14px/1.5 var(--font-sans); color: var(--color-muted); margin: 4px 0 0; }
.cv-pair .yr { font: 500 13px/1.4 var(--font-sans); color: var(--color-muted); display: block; margin-top: 8px; letter-spacing: 0.02em; }
.cv-pair .clients-cell {
  font: 400 15px/1.55 var(--font-sans);
  color: var(--color-ink);
  align-self: start;
  text-wrap: balance;
}

/* ============================================================
   Project case study page
   ============================================================ */
.pj-hero {
  padding: 128px var(--gutter) 48px;
}
.pj-eyebrow {
  font: 500 12px/1 var(--font-sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 16px;
}
.pj-title {
  font: 500 clamp(48px, 7vw, 104px)/0.96 var(--display-font);
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.pj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.pj-tag {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--color-hairline);
  border-radius: 9999px;
  font: 400 13px/1 var(--font-sans);
  color: var(--color-body);
  background: #fff;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.pj-tag:hover {
  background: var(--color-ink);
  color: #fff;
  border-color: var(--color-ink);
}
.pj-services {
  font: 400 italic clamp(18px, 2vw, 24px)/1.4 var(--display-font);
  color: var(--color-body);
  margin: 0;
  letter-spacing: -0.01em;
}
.pj-hero-media {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--color-surface-soft);
  overflow: hidden;
  margin-bottom: 0;
}
.pj-hero-media media-slot { width: 100%; height: 100%; display: block; --is-radius: 0; }

/* Fixed, baked-in hero image — smaller, centered, generous padding */
.pj-hero-fixed {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 72px var(--gutter) 56px;
}
.pj-hero-fixed-img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
}
@media (max-width: 700px) {
  .pj-hero-fixed { padding: 40px var(--gutter) 32px; }
  .pj-hero-fixed-img { max-width: 100%; }
}

/* ── Art of Nothing: stop-motion sleeve flip ── */
.aon-flip-section {
  display: flex;
  justify-content: center;
  padding: 56px var(--gutter) 64px;
}
.aon-flip-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 1080px;
}
.aon-flip2 {
  position: relative;
  flex: 1 1 0;
  min-width: 260px;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Pre-decoded stacked frames — only one visible at a time (no per-frame decode). */
.aon-flip2 .aon-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  visibility: hidden;
  filter: drop-shadow(0 22px 40px rgba(40,28,6,0.30));
}
.aon-flip2 .aon-frame.is-on { visibility: visible; }
.aon-flip2-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  image-rendering: auto;
  filter: drop-shadow(0 22px 40px rgba(40,28,6,0.38));
}

/* ── Art of Nothing: vinyl record sliding out of its sleeve ── */
.aon-stage {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.aon-assembly {
  position: absolute;
  inset: 0;
  animation: aonAssembly 6s infinite;
  will-change: transform;
}
.aon-disc, .aon-sleeve {
  position: absolute;
  height: auto;
  user-select: none;
}
/* Disc ≈ 97.4% of sleeve, centered behind it (≈9px margin all round) */
.aon-disc {
  left: 1.31%;
  top: 1.31%;
  width: 97.4%;
  z-index: 1;
  animation: aonDisc 6s infinite;
  will-change: transform;
}
.aon-sleeve {
  left: 0;
  top: 0;
  width: 100%;
  z-index: 2;
}
@keyframes aonDisc {
  0%, 12%  { transform: translateX(0); animation-timing-function: cubic-bezier(.66,0,.34,1); }
  42%, 62% { transform: translateX(50.1%); animation-timing-function: cubic-bezier(.66,0,.34,1); }
  90%, 100% { transform: translateX(0); }
}
@keyframes aonAssembly {
  0%, 12%  { transform: translateX(0); animation-timing-function: cubic-bezier(.66,0,.34,1); }
  42%, 62% { transform: translateX(-24.4%); animation-timing-function: cubic-bezier(.66,0,.34,1); }
  90%, 100% { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .aon-assembly { animation: none; transform: translateX(-24.4%); }
  .aon-disc { animation: none; transform: translateX(50.1%); }
}
/* Mobile: the record slides ~half a stage-width out of frame, so shrink the
   stage on phones (body has overflow-x:hidden, which would otherwise clip the
   record off the page mid-animation). */
@media (max-width: 600px) {
  .aon-stage { max-width: min(56vw, 230px); }
  .aon-flip-section { padding: 32px var(--gutter) 40px; }
  .aon-flip-pair { gap: 16px; }
  .aon-flip2 { min-width: 0; }
}

/* ── Art of Nothing: 70s home turntable lifestyle scene ── */
.aon-scene-section { padding: 8px var(--gutter) 64px; }
.aon-scene {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  perspective: 900px;
  perspective-origin: 52% 36%;
  background: #e7c07a;
  box-shadow: 0 34px 80px -34px rgba(60,30,10,0.55);
}
.aon-scene-bg {
  position: absolute; inset: 0;
  background: radial-gradient(120% 92% at 60% 16%, #f6dd94 0%, #ecbf73 36%, #db924f 68%, #c2752f 100%);
}
.aon-sun-glow {
  position: absolute; left: 33%; top: 4%;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,246,219,0.9) 0%, rgba(255,230,176,0.4) 36%, rgba(255,222,150,0) 70%);
  filter: blur(2px);
}
.aon-scene-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 33%;
  background: linear-gradient(180deg, #774b2a 0%, #5b3619 58%, #44270e 100%);
  box-shadow: inset 0 2px 0 rgba(255,212,156,0.28), inset 0 14px 30px -14px rgba(0,0,0,0.4);
}

/* Leaning sleeves */
.aon-lean {
  position: absolute;
  border-radius: 3px;
  box-shadow: 0 22px 34px -14px rgba(40,20,8,0.62);
}
.aon-lean-1 {
  width: 30%; left: 7%; bottom: 27%;
  transform: rotate(-3deg);
  outline: 1px solid rgba(0,0,0,0.08);
}
.aon-lean-2 {
  width: 27.5%; left: 2.5%; bottom: 28.5%; aspect-ratio: 1;
  background: linear-gradient(150deg, #c0602c, #9c4720);
  transform: rotate(-7deg);
}
.aon-lean-3 {
  width: 26%; left: 16%; bottom: 28%; aspect-ratio: 1;
  background: linear-gradient(150deg, #e0ab48, #c0832d);
  transform: rotate(3deg);
}

/* Turntable — single tilted plane so platter/arm/knobs stay coplanar */
.aon-turntable {
  position: absolute; left: 55%; bottom: 9%; width: 57%;
  transform: translateX(-50%) rotateX(54deg);
  transform-style: preserve-3d;
  transform-origin: center bottom;
}
.aon-tt-plinth {
  position: relative; width: 100%; aspect-ratio: 1.5 / 1;
  border-radius: 16px;
  background: linear-gradient(158deg, #9a663b 0%, #7a4c2a 46%, #4a2c17 100%);
  box-shadow: 0 44px 54px -12px rgba(20,10,4,0.6), inset 0 2px 0 rgba(255,222,172,0.3), inset 0 -8px 18px -8px rgba(0,0,0,0.5);
}
.aon-tt-platter {
  position: absolute; left: 50%; top: 53%; transform: translate(-50%,-50%);
  width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #2d2d2f 0%, #19191b 66%, #0c0c0d 100%);
  box-shadow: inset 0 0 0 7px rgba(0,0,0,0.22), 0 6px 16px rgba(0,0,0,0.4);
}
.aon-tt-recwrap {
  position: absolute; left: 50%; top: 53%; transform: translate(-50%,-50%);
  width: 65%; aspect-ratio: 1;
}
.aon-tt-record {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 50%;
  animation: aonSpin 3.2s linear infinite;
  will-change: transform;
}
.aon-tonearm {
  position: absolute; right: 7%; top: 13%;
  width: 44%; height: 2.4%; min-height: 4px;
  background: linear-gradient(90deg, #97979d, #d2d2d7);
  border-radius: 4px;
  transform-origin: right center;
  transform: rotate(26deg);
  box-shadow: 0 3px 5px rgba(0,0,0,0.4);
}
.aon-tonearm::before {
  content: ''; position: absolute; right: -10px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #d8d8dc, #82828a);
  box-shadow: 0 3px 7px rgba(0,0,0,0.45);
}
.aon-tonearm-head {
  position: absolute; left: -5px; top: -4px;
  width: 16px; height: 13px; border-radius: 2px;
  background: #232325;
  transform: rotate(-26deg);
}
.aon-knob {
  position: absolute; bottom: 8%; width: 5.6%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #cda76d, #784d27);
  box-shadow: 0 3px 5px rgba(0,0,0,0.45), inset 0 1px 1px rgba(255,232,192,0.4);
}
.aon-knob-a { left: 9%; }
.aon-knob-b { left: 18%; }

/* Grain + vignette */
.aon-scene-grain {
  position: absolute; inset: 0; pointer-events: none;
  mix-blend-mode: overlay; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.aon-scene-vignette {
  position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 130px 34px rgba(40,18,6,0.5);
  border-radius: 14px;
}
@keyframes aonSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .aon-tt-record { animation: none; }
}
@media (max-width: 700px) {
  .aon-scene-section { padding: 4px var(--gutter) 40px; }
}

/* Body */
.pj-body {
  padding-top: 80px;
  padding-bottom: 0;
}
/* E-commerce product cycling grid */
.ecom-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.ecom-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
}
.ecom-layer {
  position: absolute;
  inset: 0;
  transition: opacity 0.7s ease;
}
.ecom-dots {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.ecom-frame:hover .ecom-dots { opacity: 1; }
.ecom-dot {
  width: 6px; height: 6px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,0.55);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}
.ecom-dot.is-active { background: #fff; transform: scale(1.25); }
@media (max-width: 860px) { .ecom-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .ecom-grid { grid-template-columns: 1fr; max-width: 420px; } }

/* ── Club Drippy flyer grid — uniform size, staggered columns, peel hover ── */
.flyer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}
.flyer-col { display: flex; flex-direction: column; gap: 30px; }
/* Vertical stagger between columns */
.flyer-col-1 { margin-top: 54px; }
.flyer-col-2 { margin-top: 26px; }
.flyer-cell { position: relative; cursor: pointer; }
.flyer-peel {
  position: relative;
  transform-origin: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.flyer-peel img { width: 100%; height: auto; display: block; }
/* On hover: lift slightly off the page. */
.flyer-cell:hover .flyer-peel {
  transform: translateY(-8px);
  box-shadow: 0 16px 28px -12px rgba(0,0,0,0.32);
}
@media (prefers-reduced-motion: reduce) {
  .flyer-cell:hover .flyer-peel { transform: none; }
}
@media (max-width: 900px) {
  .flyer-cols { grid-template-columns: repeat(2, 1fr); }
  .flyer-col-2 { margin-top: 0; }
}
@media (max-width: 560px) {
  .flyer-cols { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .flyer-col-1, .flyer-col-2 { margin-top: 0; }
}

/* ── Vitaminwater key-visual carousels ── */
.kv-carousel { width: 100%; }
.kv-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface-soft);
}
.kv-frame {
  position: absolute;
  inset: 0;
  transition: opacity 0.55s ease;
  cursor: zoom-in;
  border-radius: 0;
}
.kv-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kv-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.92); border: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 4; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.16);
  opacity: 0; transition: opacity 0.2s ease;
}
.kv-stage:hover .kv-arrow { opacity: 1; }
.kv-prev { left: 12px; } .kv-next { right: 12px; }
.kv-dots { display: flex; gap: 7px; justify-content: center; margin-top: 16px; }
.kv-dot { width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--color-hairline); transition: background 0.2s ease, transform 0.2s ease; }
.kv-dot.is-on { background: var(--color-ink); transform: scale(1.25); }
/* Vitaminwater retail grid — stacked in-store shots, no crop */
.vw-retail-grid { display: flex; flex-direction: column; gap: 24px; align-items: center; }
.vw-retail-cell { overflow: hidden; background: var(--color-surface-soft); width: 100%; max-width: 720px; }
.vw-retail-cell img { width: 100%; height: auto; display: block; }
@media (max-width: 680px) { .vw-retail-grid { max-width: 420px; margin: 0 auto; } }
.mig-motion {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.mig-motion-cell {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--color-surface-soft);
}
.mig-motion-open {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(0,0,0,0.001);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.mig-motion-open svg {
  background: rgba(0,0,0,0.45);
  border-radius: 9999px;
  padding: 10px;
  width: 42px; height: 42px;
}
.mig-motion-cell:hover .mig-motion-open { opacity: 1; background: rgba(0,0,0,0.12); }
.mig-motion-cell media-slot { width: 100%; height: 100%; display: block; --is-radius: 0; }
@media (max-width: 760px) { .mig-motion { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .mig-motion { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto 14px; } }
.mig-squares {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.mig-posters {
  column-count: 3;
  column-gap: 14px;
}
.mig-squares .ph-img, .mig-posters .ph-img {
  overflow: hidden;
  border-radius: 0;
  background: var(--color-surface-soft);
  cursor: zoom-in;
}
.mig-posters .ph-img { break-inside: avoid; margin: 0 0 14px; }
.mig-squares .ph-img img, .mig-posters .ph-img img { width: 100%; height: auto; display: block; }
@media (max-width: 760px) {
  .mig-squares { grid-template-columns: repeat(2, 1fr); }
  .mig-posters { column-count: 2; }
}
@media (max-width: 480px) {
  .mig-squares { grid-template-columns: 1fr; }
  .mig-posters { column-count: 1; }
}

/* ── Music gallery: masonry of looping clips + lightbox ── */
.music-grid {
  column-count: 3;
  column-gap: 14px;
}
@media (max-width: 900px) { .music-grid { column-count: 2; } }
@media (max-width: 560px) { .music-grid { column-count: 1; max-width: 460px; margin: 0 auto; } }
.music-tile {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
  line-height: 0;
}
.music-tile video {
  width: 100%;
  height: auto;
  display: block;
}
.music-tile-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}
.music-tile:hover .music-tile-play { opacity: 1; }
.music-tile-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 14px 12px;
  font: 500 12px/1.3 var(--font-sans);
  letter-spacing: 0.02em;
  color: #fff;
  text-align: left;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.music-tile:hover .music-tile-cap { opacity: 1; }

.music-lb {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(8,8,10,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 6vw;
}
.music-lb-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  max-height: 90vh;
}
/* eharmony social reels — plain video clips, no phone chrome */
.ig-phone-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: start;
}
.ig-clip {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #000;
  overflow: hidden;
}
.ig-sound-bare {
  position: absolute;
  bottom: 10px; right: 10px;
  z-index: 5;
  border: none;
  background: transparent;
  padding: 0;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
}
.ig-clip-big {
  aspect-ratio: 9 / 16;
  height: 84vh;
}
@media (max-width: 760px) {
  .ig-phone-row { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
/* eharmony social & static ad grid */
.eh-ad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 18px;
  align-items: start;
}
.eh-ad-cap {
  font: 400 13px/1.5 var(--font-sans);
  color: var(--color-muted);
  margin: 10px 0 0;
  text-align: center;
  font-style: italic;
}
@media (max-width: 760px) { .eh-ad-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .eh-ad-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; } }

.music-lb-stage video {
  max-width: min(92vw, 1100px);
  max-height: 84vh;
  border-radius: 6px;
  background: #000;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8);
}
.music-lb-cap {
  margin: 0;
  font: 500 13px/1.4 var(--font-sans);
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.78);
}
.music-lb-close {
  position: absolute;
  top: 22px; right: 26px;
  width: 42px; height: 42px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff; font-size: 18px;
  cursor: pointer;
  transition: background 0.18s ease;
}
.music-lb-close:hover { background: rgba(255,255,255,0.22); }
.music-lb-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff; cursor: pointer;
  transition: background 0.18s ease;
}
.music-lb-nav:hover { background: rgba(255,255,255,0.22); }
.music-lb-prev { left: 20px; }
.music-lb-next { right: 20px; }
@media (max-width: 560px) {
  .music-lb-nav { width: 38px; height: 38px; }
  .music-lb-prev { left: 8px; } .music-lb-next { right: 8px; }
}

/* Club Drippy body photos interleaved with text */
.cd-body-photo {
  margin: 8px auto;
  overflow: hidden;
  padding: 0 280px;
}
.cd-body-photo img { width: 100%; height: auto; display: block; }
.cd-body-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 8px 0;
  padding: 0 280px;
}
.cd-body-pair .cd-body-photo { margin: 0; padding: 0; }
@media (max-width: 1100px) { .cd-body-photo, .cd-body-pair { padding: 0 140px; } }
@media (max-width: 900px) { .cd-body-photo, .cd-body-pair { padding: 0 64px; } }
@media (max-width: 600px) { .cd-body-pair { grid-template-columns: 1fr; } }

/* ── Beach Fossils OOH: fast stop-motion slideshow in one frame ── */
.ooth-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #0c0c0e;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.ooth-frame .ooth-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  visibility: hidden;
}
.ooth-frame .ooth-img.is-on { visibility: visible; }
.ooth-count {
  position: absolute;
  bottom: 12px; right: 14px;
  z-index: 3;
  font: 500 11px/1 var(--font-sans);
  letter-spacing: 0.08em;
  color: #fff;
  padding: 6px 9px;
  background: rgba(0,0,0,0.5);
  border-radius: 9999px;
  backdrop-filter: blur(4px);
}
.pj-video-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pj-video-cell {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #0e0e0e;
}
@media (max-width: 760px) {
  .pj-video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .pj-video-grid { grid-template-columns: 1fr; max-width: 420px; }
}

/* Single-row photo gallery (3 across) */
.pj-photo-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}
.pj-photo-row .ph-img { overflow: hidden; width: 100%; }
@media (max-width: 700px) {
  .pj-photo-row { padding: 0 16px; }
}

/* Project intro / overview paragraph */
.pj-intro {
  max-width: 640px;
  margin: 8px 0 56px;
  font: 400 18px/1.6 var(--font-sans);
  letter-spacing: 0.005em;
  color: var(--color-ink);
  text-wrap: pretty;
}
/* Intro paragraph + press card side by side */
.pj-intro-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  justify-items: center;
  max-width: 760px;
  margin: 0 auto;
}
.pj-intro-row .pj-intro { margin: 8px 0 0; max-width: 680px; text-align: center; }
.article-card.article-card--stacked { grid-template-columns: 280px 1fr; align-self: center; width: 100%; max-width: 760px; }
.article-card.article-card--stacked .article-card-img { aspect-ratio: 4/3; }
.article-card.article-card--stacked .article-card-img img { object-position: center 28%; }
.article-card.article-card--stacked .article-card-title { font-size: 22px; }
@media (max-width: 600px) {
  .article-card.article-card--stacked { grid-template-columns: 1fr; }
  .article-card.article-card--stacked .article-card-img { aspect-ratio: 16/9; }
}

/* Article / press link-preview card */
.press-list { display: flex; flex-direction: column; gap: 16px; }
/* When a press card has no preview image, collapse the empty image column. */
.article-card.article-card--noimg { grid-template-columns: 1fr !important; }
.article-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  border: 1px solid var(--color-hairline-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--color-canvas);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
  border-color: var(--color-hairline);
}
.article-card-img { overflow: hidden; background: var(--color-surface-soft); }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(.2,.7,.2,1); }
.article-card:hover .article-card-img img { transform: scale(1.04); }
.article-card-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 7px; justify-content: center; }
.article-card-source {
  font: 600 11px/1 var(--font-sans);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-muted-soft);
}
.article-card-title {
  margin: 0;
  font: 500 19px/1.25 var(--display-font, var(--font-sans));
  letter-spacing: -0.01em;
  color: var(--color-ink);
  text-wrap: pretty;
}
.article-card-desc {
  margin: 0;
  font: 400 14px/1.5 var(--font-sans);
  color: var(--color-muted);
  text-wrap: pretty;
}
.article-card-link {
  margin-top: 4px;
  font: 500 13px/1 var(--font-sans);
  color: var(--color-ink);
}
@media (max-width: 600px) {
  .article-card { grid-template-columns: 1fr; }
  .article-card-img { aspect-ratio: 16/9; }
}

/* Video credits block (music-video style) */
.pj-credits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 22px 40px;
  border-top: 1px solid var(--color-hairline-soft);
  padding-top: 22px;
}
.pj-credits-block { display: flex; flex-direction: column; gap: 3px; }
.pj-credit-line {
  margin: 0;
  font: 400 13px/1.55 var(--font-sans);
  letter-spacing: 0.01em;
  color: var(--color-muted);
  text-wrap: pretty;
}
.pj-section {
  border-top: 1px solid var(--color-hairline-soft);
  padding: 56px 0;
}
.pj-section-inner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  align-items: start;
}
.pj-label {
  font: 600 13px/1 var(--font-sans);
  letter-spacing: 0.01em;
  color: var(--color-ink);
  padding-top: 4px;
}
.pj-text {
  font: 400 17px/1.65 var(--font-sans);
  color: var(--color-body);
  max-width: 64ch;
  text-wrap: pretty;
}
.pj-text p, .pj-text span {
  font: 400 17px/1.65 var(--font-sans);
  color: var(--color-body);
  white-space: pre-line;
}
.pj-text p { margin: 0 0 1em; }
.pj-text p:last-child { margin-bottom: 0; }
/* Line-by-line rendering with hanging indents for wrapped bullet lines */
.pj-text .pj-line { display: block; white-space: normal; }
.pj-text .pj-bullet { padding-left: 1.25em; text-indent: -1.25em; }
.pj-text .pj-line-gap { display: block; height: 0.9em; }
.pj-placeholder {
  font-style: italic;
  color: var(--color-muted-soft);
}

/* Media rows */
.pj-media-row {
  margin: 0 calc(-1 * var(--gutter));
}
/* Art of Nothing: inset body media with generous side padding */
.pj-body-the-art-of-nothing .pj-media-row {
  margin: 0;
  padding: 0 clamp(32px, 7vw, 110px);
}
.pj-media-wide {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--color-surface-soft);
  overflow: hidden;
}
.pj-media-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.pj-media-pair .pj-media-slot {
  aspect-ratio: 4/5;
  background: var(--color-surface-soft);
  overflow: hidden;
}
.pj-media-slot media-slot { width: 100%; height: 100%; display: block; --is-radius: 0; }

/* Vertical hero variant (for vertical-grid layout) */
.pj-hero-media-vertical {
  width: 100%;
  aspect-ratio: 3/4;
  max-height: 90vh;
  background: var(--color-surface-soft);
  overflow: hidden;
}
.pj-hero-media-vertical media-slot { width: 100%; height: 100%; display: block; --is-radius: 0; }
.pj-vertical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 64px 0;
}
.pj-vertical-grid-cell {
  aspect-ratio: 4/5;
  background: transparent;
}
.pj-vertical-grid-cell media-slot {
  width: 100%; height: 100%; display: block;
  --is-radius: 0;
  --slot-bg: transparent;
}
@media (max-width: 700px) {
  .pj-vertical-grid { grid-template-columns: 1fr 1fr; }
}
.proj-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.proj-meta-row .left {
  display: flex; flex-direction: column; gap: 12px;
}
.proj-eyebrow { font: 500 12px/1 var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted); }
.proj-title {
  font: 500 clamp(56px, 9vw, 152px)/0.92 var(--display-font);
  letter-spacing: -0.04em;
  margin: 0;
  text-wrap: balance;
}
.proj-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  max-width: 380px;
  justify-content: flex-end;
}
.proj-tag {
  padding: 8px 14px;
  border: 1px solid var(--color-hairline);
  border-radius: 9999px;
  font: 500 12px/1 var(--font-sans);
  color: var(--color-body);
}
.proj-info-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--color-hairline-soft);
  border-bottom: 1px solid var(--color-hairline-soft);
}
.proj-info-col h4 { font: 500 11px/1 var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted); margin: 0 0 10px; }
.proj-info-col p { font: 400 14px/1.55 var(--font-sans); color: var(--color-ink); margin: 0; }

.proj-image-block {
  margin: 64px calc(-1 * var(--gutter));
  padding: 0;
}
.proj-image-block .slot {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--color-surface-soft);
  overflow: hidden;
}
.proj-image-block.tall .slot { aspect-ratio: 3/4; }
.proj-image-block.square .slot { aspect-ratio: 1/1; }
.proj-image-block.fullh .slot { height: 100vh; aspect-ratio: auto; }

.proj-image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 64px 0;
}
.proj-image-pair .slot {
  aspect-ratio: 4/5;
  background: var(--color-surface-soft);
  border-radius: 0;
  overflow: hidden;
}

.proj-text-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding: 64px var(--gutter);
  margin: 0 calc(-1 * var(--gutter));
  background: var(--color-canvas);
}
.proj-text-block h3 { font: 500 11px/1 var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted); margin: 0; }
.proj-text-block p { font: 400 clamp(20px, 1.8vw, 28px)/1.4 var(--display-font); letter-spacing: -0.01em; color: var(--color-ink); margin: 0; max-width: 22ch; text-wrap: balance; }

.proj-next {
  border-top: 1px solid var(--color-hairline-soft);
  padding: 64px var(--gutter);
  margin: 64px calc(-1 * var(--gutter)) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}
.proj-next .label { font: 500 11px/1 var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted); }
.proj-next .next-title {
  font: 500 clamp(40px, 6vw, 88px)/1 var(--display-font);
  letter-spacing: -0.03em;
  margin: 12px 0 0;
}
.proj-next .next-thumb {
  width: 280px; aspect-ratio: 4/3;
  background: transparent;
  overflow: hidden;
  flex-shrink: 0;
}
.proj-next .next-thumb media-slot {
  width: 100%; height: 100%; display: block;
  --is-radius: 0;
  --slot-bg: transparent;
}

/* ------ Tweaks for hero variations ------ */
.hero-variant { display: none; }
.hero-variant.is-active { display: grid; }
.hero-v3.is-active { display: block; }

/* ------ Responsive ------ */
@media (max-width: 900px) {
  .hero-v1 { grid-template-columns: 1fr; gap: 24px; }
  .hero-v1 .right-col { max-width: 100%; }
  .hero-v1 .bio { text-align: left; max-width: 100%; align-self: flex-start; }
  .about-preview { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .timeline-row { grid-template-columns: 1fr; gap: 12px; }
  .timeline-years { text-align: left; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .about-hero { grid-template-columns: 1fr; padding-top: 120px; }
  .about-hero .portrait { margin-top: 0; }
  .about-section .head { grid-template-columns: 1fr; gap: 16px; }
  .about-cv { grid-template-columns: 1fr; }
  .cv-pairs { grid-template-columns: 1fr; column-gap: 0; }
  .cv-pair > .clients-cell { padding-top: 4px; padding-bottom: 20px; border-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .proj-info-row { grid-template-columns: 1fr 1fr; gap: 24px; }
  .proj-text-block { grid-template-columns: 1fr; gap: 16px; }
  .proj-next { flex-direction: column; align-items: flex-start; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

/* ------ Phone-level pass ------ */
@media (max-width: 560px) {
  .hero-v1 .display, .hero-v2 .display, .hero-v3 .display { font-size: clamp(44px, 13vw, 72px); }
  .proj-title { font-size: clamp(38px, 12vw, 72px); }
  .ph-intro-title { font-size: clamp(46px, 13vw, 96px); }
  .portfolio-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid .col--clocks { border-left: 0; padding-left: 0; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* Project case-study text sections: collapse the 180px label column and
   tighten the oversized vertical rhythm on tablets/phones. */
@media (max-width: 760px) {
  .pj-body { padding-top: 48px; }
  .pj-section { padding: 32px 0; }
  .pj-section-inner { grid-template-columns: 1fr; gap: 10px; }
  .pj-label { padding-top: 0; }
  .pj-text, .pj-text p, .pj-text span { font-size: 16px; line-height: 1.6; }
  .pj-title { font-size: clamp(36px, 11vw, 80px); }
}

/* ------ Mobile hamburger + slide-in menu ------ */
.nav-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 11px 10px;
  cursor: pointer;
}
/* Desktop hides the burger; declared AFTER the base so it reliably wins
   (a max-width rule earlier in the file would lose the cascade tie). */
@media (min-width: 901px) { .nav-burger { display: none; } }
.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.2s ease;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: var(--color-scrim);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu-panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(82vw, 360px);
  background: var(--color-canvas);
  box-shadow: -8px 0 40px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 96px 32px 40px;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.4,0,.1,1);
}
.mobile-menu.is-open .mobile-menu-panel { transform: translateX(0); }
.mobile-menu-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu-link {
  font: 600 26px/1.15 var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--color-ink);
  padding: 10px 0;
  border-bottom: 1px solid var(--color-hairline-soft);
}
.mobile-menu-link.active { color: var(--color-muted); }
.mobile-menu-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font: 500 14px/1 var(--font-sans);
  padding: 12px 18px;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-full);
  color: var(--color-ink);
}
.mobile-menu-cta .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2ecc71;
}
@media (min-width: 901px) { .mobile-menu { display: none; } }

/* ============================================================
   Work page — filterable grid (work.html)
   ============================================================ */
.work-page {
  padding-top: 128px;
  min-height: 100vh;
}
.work-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  column-gap: 48px;
  padding-top: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-hairline-soft);
  align-items: end;
}
.work-title-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.work-title {
  font: 500 clamp(40px, 6vw, 80px)/1 var(--display-font);
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--color-ink);
}
.work-count {
  font: 400 13px/1 var(--font-sans);
  color: var(--color-muted);
  letter-spacing: 0.04em;
  margin: 0;
}
.work-filter-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.filter-label {
  font: 600 11px/1 var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink);
}
.filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.filter-btn {
  font: 400 15px/1.3 var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--color-muted-soft);
  background: none;
  border: none;
  padding: 2px 0;
  text-align: left;
  transition: color 0.15s;
  cursor: pointer;
}
.filter-btn:hover { color: var(--color-ink); }
.filter-btn.is-active { color: var(--color-ink); font-weight: 600; }

/* Grid */
.work-grid-section {
  padding-top: 56px;
  padding-bottom: 96px;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}
.work-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 0;
  font: 400 16px/1 var(--font-sans);
  color: var(--color-muted);
}
.work-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.work-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: transparent;
  overflow: hidden;
  margin-bottom: 16px;
}
.work-card-img media-slot {
  width: 100%;
  height: 100%;
  display: block;
  --is-radius: 0;
  --slot-bg: transparent;
}
.work-card-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}
.work-card-meta { display: flex; flex-direction: column; gap: 10px; }
.work-card-title {
  font: 500 16px/1.2 var(--font-sans);
  margin: 0;
  color: var(--color-ink);
}
.work-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.work-tag {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid var(--color-hairline);
  border-radius: 9999px;
  font: 400 12px/1 var(--font-sans);
  color: var(--color-body);
  background: #fff;
}

@media (max-width: 900px) {
  .work-header { grid-template-columns: 1fr; gap: 32px; }
  .work-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
@media (max-width: 600px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Photography page — editorial long-scroll
   ============================================================ */
.ph-main { padding-top: 72px; }

.ph-hero-full {
  width: 100%;
  overflow: hidden;
}
.ph-hero-full img { width: 100%; height: auto; display: block; }

.ph-intro {
  padding: 80px var(--gutter) 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 48px;
}
.ph-intro-tag {
  grid-column: 1 / -1;
  font: 500 10px/1 var(--font-sans);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-muted-soft);
  margin: 0 0 -8px;
}
.ph-intro-title {
  font: 500 clamp(64px, 10vw, 148px)/0.92 var(--display-font);
  letter-spacing: -0.04em;
  margin: 0;
  align-self: end;
}
.ph-intro-desc {
  font: 400 15px/1.65 var(--font-sans);
  color: var(--color-muted);
  max-width: 38ch;
  text-wrap: pretty;
  margin: 0;
  align-self: end;
  padding-bottom: 8px;
}

.ph-section { margin-bottom: 4px; }
.ph-section-label { font: 500 11px/1 var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted); padding: 40px var(--gutter) 16px; margin: 0; }

.ph-full { width: 100%; overflow: hidden; }
.ph-img { overflow: hidden; }
.ph-img img { width: 100%; height: auto; display: block; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.ph-img:hover img { transform: scale(1.02); }

/* Aspect ratio helpers — removed: images use natural height now */
.ph-img-tall     { }
.ph-img-portrait { }
.ph-img-square   { }

/* Gap */
.ph-gap { gap: 6px; }

/* Grid layouts */
.ph-grid-2 { display: grid; grid-template-columns: 1fr 1fr; }
.ph-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.ph-grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; }

/* Asymmetric */
.ph-asym { display: grid; grid-template-columns: 1.4fr 1fr; gap: 6px; align-items: start; }
.ph-asym-main { }
.ph-asym-side { display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 900px) {
  .ph-grid-2 { grid-template-columns: 1fr; }
  .ph-grid-3 { grid-template-columns: 1fr 1fr; }
  .ph-grid-4 { grid-template-columns: 1fr 1fr; }
  .ph-asym { grid-template-columns: 1fr; }
  .ph-asym-side { flex-direction: row; }
}

/* ------ Editorial Portraits — offset editorial layout ------ */
/* Verticals never span the full page: they sit in a ~46% column with negative
   space on one side. Pairs sit two-up. Only true landscapes go content-wide. */
.ep { padding: 8px var(--gutter) 0; max-width: 1280px; margin: 0 auto; }
.ep-row { margin-bottom: 8px; }
.ep-offset-l, .ep-offset-r { display: flex; }
.ep-offset-l { justify-content: flex-start; }
.ep-offset-r { justify-content: flex-end; }
.ep-offset-l .ph-img, .ep-offset-r .ph-img { width: 46%; }
.ep-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: start; }
.ep-wide { width: 100%; }              /* landscape only */
.ep-wide .ph-img { width: 100%; }
.ep-group { display: flex; }            /* group shot, offset, a touch wider */
.ep-group.is-right { justify-content: flex-end; }
.ep-group .ph-img { width: 62%; }

@media (max-width: 760px) {
  .ep-offset-l .ph-img, .ep-offset-r .ph-img,
  .ep-group .ph-img { width: 78%; }
  .ep-pair { grid-template-columns: 1fr; }
}

/* ------ Lifestyle — no-crop masonry grid ------ */
.ph-masonry {
  padding: 0 var(--gutter);
  column-count: 3;
  column-gap: 8px;
}
.ph-masonry-2 { column-count: 2; }
.ph-masonry .ph-img {
  break-inside: avoid;
  margin-bottom: 8px;
  width: 100%;
}
@media (max-width: 1000px) { .ph-masonry { column-count: 2; } .ph-masonry-2 { column-count: 2; } }
@media (max-width: 560px)  { .ph-masonry { column-count: 1; } .ph-masonry-2 { column-count: 1; } }
@media (max-width: 600px) {
  .ph-grid-3 { grid-template-columns: 1fr; }
  .ph-grid-4 { grid-template-columns: 1fr; }
}
/* ------ Pitchfork staggered editorial gallery ------ */
.pf-gallery {
  padding: 24px var(--gutter) 0;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.pf-cell { overflow: hidden; border-radius: var(--radius-md); }
.pf-cell img { display: block; width: 100%; height: auto; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.pf-cell:hover img { transform: scale(1.02); }
.pf-col { display: flex; flex-direction: column; gap: 48px; }
.pf-row-asym { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.pf-row-rev { grid-template-columns: 1fr 1.3fr; }
.pf-row-offset { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.pf-row-offset .pf-cell:nth-child(2) { margin-top: 64px; }
.pf-row-center { display: flex; justify-content: center; }
@media (max-width: 760px) {
  .pf-row-asym, .pf-row-rev, .pf-row-offset { grid-template-columns: 1fr; }
  .pf-row-offset .pf-cell:nth-child(2) { margin-top: 0; }
  .pf-gallery, .pf-col { gap: 24px; }
}

/* ------ Lightbox ------ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(20,20,20,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  cursor: zoom-out;
}
.lightbox-overlay.open { opacity: 1; pointer-events: auto; }
.lightbox-img {
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  transform: scale(0.96);
  transition: transform 0.28s cubic-bezier(.2,.7,.2,1);
}
.lightbox-overlay.open .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: fixed;
  top: 24px; right: 28px;
  width: 44px; height: 44px;
  font: 300 32px/1 var(--font-sans);
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.pf-cell, .ph-img, .ph-hero-full { cursor: none; }

/* Reveals are visible by default; IntersectionObserver adds .in for staggered entry. */
.reveal { opacity: 1; transform: none; transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.js-reveals-enabled .reveal { opacity: 0; transform: translateY(24px); }
.js-reveals-enabled .reveal.in,
.js-reveals-enabled .reveal[data-revealed] { opacity: 1; transform: none; }

/* =================================================================
   Intro overlay — simple headline flash
   ================================================================= */
@property --intro-wipe {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}
.intro-overlay {
  position: fixed; inset: 0;
  background: #000;
  color: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  /* Feathered left→right wipe reveal driven by --intro-wipe (0% = covered). */
  --intro-wipe: 0%;
  -webkit-mask-image: linear-gradient(to right, transparent calc(var(--intro-wipe) - 6%), #000 var(--intro-wipe));
          mask-image: linear-gradient(to right, transparent calc(var(--intro-wipe) - 6%), #000 var(--intro-wipe));
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
.intro-overlay.is-revealing {
  --intro-wipe: 110%;
  -webkit-transition: --intro-wipe 0.5s linear;
          transition: --intro-wipe 0.5s linear;
}
}
.intro-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
  width: 100%;
}
.intro-headline {
  font: 500 clamp(56px, 13vw, 192px)/0.92 var(--display-font);
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0;
  text-align: center;
  animation: introFlash 0.35s ease both;
  text-wrap: balance;
  font-kerning: normal;
  font-feature-settings: 'kern' 1, 'liga' 1;
  text-rendering: optimizeLegibility;
}
@keyframes introFlash {
  0%   { opacity: 0; filter: blur(4px); }
  100% { opacity: 1; filter: blur(0); }
}
.intro-skip {
  position: absolute;
  bottom: 32px; right: 32px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 9999px;
  color: rgba(255,255,255,0.7);
  font: 500 12px/1 var(--font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.intro-skip:hover { background: #fff; color: #000; border-color: #fff; }
.intro-reg {
  font-size: 0.13em;
  position: relative;
  top: -3.6em;
  margin-left: -0.3em;
  letter-spacing: 0;
  font-weight: 400;
  opacity: 0.9;
  color: #fff;
  font-feature-settings: normal;
  vertical-align: baseline;
}
.intro-wordmark {
  width: min(62vw, 760px);
  height: auto;
  display: block;
  opacity: 1;
}
/* Full-screen panel holding the wordmark (black field). */
.intro-wm-panel {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background: #000;
}

/* Low-frame-rate film weave on the whole stage (wordmark + category words). */
.intro-stage { animation: filmWeave 1.1s steps(1, end) infinite; will-change: transform; }
@keyframes filmWeave {
  0%   { transform: translate(0px,    0px);  }
  16%  { transform: translate(-1px,  0.5px); }
  33%  { transform: translate(1px,  -0.5px); }
  50%  { transform: translate(-0.5px, 1px);  }
  66%  { transform: translate(0.5px, -1px);  }
  83%  { transform: translate(-1px, -0.5px); }
  100% { transform: translate(0px,    0px);  }
}

/* ── Film dust specks + hair flecks ── */
.intro-dust { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.intro-dust span {
  position: absolute;
  display: block;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: dustFloat var(--dur) steps(6, end) var(--delay) infinite;
}
.intro-dust span.is-hair {
  border-radius: 1px;
  transform: rotate(var(--rot));
}
@keyframes dustFloat {
  0%   { opacity: 0;                  transform: translate(0,0) rotate(var(--rot, 0deg)); }
  12%  { opacity: var(--op);          }
  46%  { opacity: calc(var(--op) * 0.3); }
  82%  { opacity: var(--op);          }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot, 0deg)); }
}

/* ── Vertical film scratches ── */
.intro-scratch {
  position: absolute; top: -4%; height: 108%; width: 1px;
  pointer-events: none; opacity: 0;
  animation: scratchFlick var(--dur) steps(1, end) var(--delay) infinite;
}
@keyframes scratchFlick {
  0%, 38%  { opacity: 0; }
  40%      { opacity: var(--op); }
  52%      { opacity: 0; }
  66%      { opacity: calc(var(--op) * 0.6); }
  78%, 100% { opacity: 0; }
}

/* ── Film grain — gamma-crushed noise on screen blend: speckles read on every
   frame (MALLEN + all category colors) while the black field stays dark. ── */
.intro-grain {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  opacity: 0.6; mix-blend-mode: screen;
  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='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='gamma' amplitude='1' exponent='3.4' offset='0'/%3E%3CfeFuncG type='gamma' amplitude='1' exponent='3.4' offset='0'/%3E%3CfeFuncB type='gamma' amplitude='1' exponent='3.4' offset='0'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 170px 170px;
  animation: grainShift 0.45s steps(4) infinite;
}
@keyframes grainShift {
  0%   { background-position: 0 0; }
  20%  { background-position: -30px 12px; }
  40%  { background-position: 24px -28px; }
  60%  { background-position: -18px -10px; }
  80%  { background-position: 30px 24px; }
  100% { background-position: 0 0; }
}

/* ── Projector start flash / flicker before MALLEN reads ── */
.intro-flash {
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: #fff; opacity: 0;
  animation: filmFlash 0.95s ease-out both;
}
@keyframes filmFlash {
  0%   { opacity: 0; }
  5%   { opacity: 0.96; }
  11%  { opacity: 0.12; }
  17%  { opacity: 0.78; }
  25%  { opacity: 0.04; }
  34%  { opacity: 0.42; }
  48%  { opacity: 0.02; }
  62%  { opacity: 0.16; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-wm-panel { animation: none; }
  .intro-stage { animation: none; }
  .intro-grain, .intro-dust { display: none; }
}

/* ------ media-slot styling overrides ------ */
media-slot {
  --is-radius: 0;
  width: 100%; height: 100%;
  display: block;
}
.project-card media-slot { --is-radius: 0; }
