/* ========== Macarena Rubio — Portfolio ========== */

:root {
  --bg: #000000;
  --fg: #EDEAE3;
  --muted: #6E6A60;
  --hairline: rgba(237, 234, 227, 0.12);
  --hairline-strong: rgba(237, 234, 227, 0.28);

  --font-display: "Söhne", "ABC Diatype", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Söhne Mono", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pad-x: clamp(20px, 4vw, 56px);
  --pad-y: clamp(20px, 3vw, 40px);
}

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

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

img, video {
  display: block;
  max-width: 100%;
}

/* ---------- Floating Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--pad-y) var(--pad-x);
  z-index: 100;
  pointer-events: none;
  mix-blend-mode: difference;
}

.nav > * { pointer-events: auto; }

.nav__brand {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.nav__brand span {
  display: inline-block;
  margin-left: 8px;
  color: #fff;
  opacity: 0.55;
  font-weight: 400;
}

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #fff;
}

.nav__links a {
  position: relative;
  padding: 4px 0;
  transition: opacity 0.2s ease;
}

.nav__links a:hover { opacity: 0.55; }

.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 4px; height: 4px;
  background: #fff;
  transform: translateY(-50%);
  border-radius: 50%;
}

/* Hamburger button — hidden on desktop */
.nav__burger {
  display: none;
  width: 36px;
  height: 36px;
  position: relative;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
}
.nav__burger::before,
.nav__burger::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: #fff;
  transform: translate(-50%, -4px);
  transition: transform 0.3s ease;
}
.nav__burger::after { transform: translate(-50%, 4px); }
.nav__burger.is-open::before { transform: translate(-50%, 0) rotate(45deg); }
.nav__burger.is-open::after  { transform: translate(-50%, 0) rotate(-45deg); }

/* Mobile drawer (collapsed) */
.nav__drawer {
  display: none;
}

/* ---------- Hero Reel ---------- */

.reel {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.reel__media {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

.reel__media svg, .reel__media .placeholder {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
}

.reel__stack {
  position: absolute;
  inset: 0;
}
.reel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.reel__slide.is-active { opacity: 1; }
.reel__slide svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.reel__slide iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  background: #000;
}
.reel__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

.reel__hud {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: calc(var(--pad-x) + 4px);
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.reel__hud .key { color: rgba(255,255,255,0.5); margin-right: 14px; }
.reel__hud-left, .reel__hud-right { display: flex; align-items: center; gap: 4px; }
.reel__title-now {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 22px);
  letter-spacing: -0.01em;
  text-transform: none;
  color: #fff;
  font-weight: 400;
}

.reel__progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.12);
  z-index: 5;
}
.reel__progress-bar {
  height: 100%;
  width: 0;
  background: rgba(255,255,255,0.85);
  transform-origin: left center;
}

.reel--letterbox .reel__media {
  inset: auto 0;
  top: 50%;
  transform: translateY(-50%);
  height: calc(100vw / 2.39);
  max-height: 100%;
}

.reel--letterbox::before,
.reel--letterbox::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: calc((100vh - 100vw / 2.39) / 2);
  background: #000;
  z-index: 2;
  pointer-events: none;
}
.reel--letterbox::before { top: 0; }
.reel--letterbox::after { bottom: 0; }

.reel__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--pad-y) var(--pad-x) calc(var(--pad-y) + 12px);
  pointer-events: none;
}

.reel__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
}

.reel__meta-block { display: flex; flex-direction: column; gap: 4px; }
.reel__meta-block .key { color: rgba(255, 255, 255, 0.45); font-size: 10px; }

.reel__title {
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 400;
  color: #fff;
  margin-bottom: 24px;
  max-width: 14ch;
}

.reel__title em {
  font-style: italic;
  font-weight: 400;
  opacity: 0.55;
}

.reel__playbtn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 96px; height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: all 0.3s ease;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.reel__playbtn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.reel__scroll {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  pointer-events: none;
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50%      { transform: translateX(-50%) translateY(4px); opacity: 0.85; }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(80px, 12vw, 160px) var(--pad-x) clamp(60px, 8vw, 120px);
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 24px;
  margin-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--hairline);
}

.section__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}

.section__title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.section__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- Project Grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), 1fr);
  gap: clamp(20px, 2.5vw, 40px) clamp(20px, 2.5vw, 40px);
}

.grid--3 { --cols: 3; }

.card {
  position: relative;
  cursor: pointer;
  background: #0A0A0A;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.card__media {
  position: absolute;
  inset: 0;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}

.card__media svg, .card__media .placeholder {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.card__media .vimeo-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.card__media .vimeo-frame.is-ready { opacity: 1; }
/* Vimeo iframes need to overflow the card to crop letterboxing */
.card__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  background: #000;
}
.card__poster {
  position: absolute; inset: 0;
  z-index: 1;
  background: #0A0A0A;
  background-size: cover;
  background-position: center;
}
.card__poster::after {
  /* subtle filmic grade so thumbnails feel cohesive */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.15) 100%);
}

/* Hover style A: fade title in over still */
.card[data-hover="fade"] .card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(16px, 1.8vw, 28px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.card[data-hover="fade"]:hover .card__overlay { opacity: 1; }
.card[data-hover="fade"]:hover .card__media { transform: scale(1.02); }

/* Hover style B: desaturate by default, color on hover */
.card[data-hover="desat"] .card__media {
  filter: grayscale(1) contrast(1.1);
  transition: filter 0.6s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card[data-hover="desat"]:hover .card__media {
  filter: grayscale(0) contrast(1);
  transform: scale(1.02);
}
.card[data-hover="desat"] .card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.65) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(16px, 1.8vw, 28px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.card[data-hover="desat"]:hover .card__overlay { opacity: 1; }

.card__title {
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
}

.card__title em {
  font-style: italic;
  opacity: 0.7;
}

.card__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  margin-top: 8px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.card__sub span:not(:last-child)::after {
  content: "·";
  margin-left: 16px;
  opacity: 0.5;
}

.card__index {
  position: absolute;
  top: clamp(18px, 2vw, 28px);
  left: clamp(18px, 2vw, 28px);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.7);
  z-index: 2;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  border-radius: 2px;
}

/* ---------- Filter ---------- */

.filter {
  display: flex;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.filter button {
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  color: var(--muted);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter button:hover {
  color: var(--fg);
  border-color: var(--hairline-strong);
}

.filter button.is-active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.filter__count {
  margin-left: 6px;
  opacity: 0.5;
  font-size: 9px;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--hairline);
  padding: clamp(40px, 5vw, 64px) var(--pad-x) clamp(20px, 3vw, 28px);
  margin-top: clamp(40px, 5vw, 72px);
}

.footer__top {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(48px, 8vw, 120px);
  padding-bottom: clamp(32px, 4vw, 48px);
  flex-wrap: wrap;
}

.footer__col {
  min-width: 140px;
}

.footer__lede {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 14ch;
}

.footer__lede em { font-style: italic; opacity: 0.55; }

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 16px;
}

.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer__col a:hover { color: var(--muted); }

.footer__bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- Lightbox (fullscreen video) ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(48px, 5vw, 72px) clamp(16px, 3vw, 40px) clamp(40px, 4vw, 56px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__close {
  position: absolute;
  top: clamp(14px, 2vw, 28px);
  right: clamp(14px, 2vw, 32px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  padding: 10px 14px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  border-radius: 999px;
}
.lightbox__close::after {
  content: "";
  width: 14px; height: 14px;
  background:
    linear-gradient(45deg, transparent 46%, var(--fg) 46%, var(--fg) 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, var(--fg) 46%, var(--fg) 54%, transparent 54%);
}

.lightbox__inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.4vw, 20px);
}

.lightbox__media {
  width: min(100%, calc((100vh - 160px) * 16/9));
  aspect-ratio: 16/9;
  background: #000;
  position: relative;
  overflow: hidden;
  max-height: calc(100vh - 140px);
}
.lightbox__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lightbox__caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(237, 234, 227, 0.75);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.lightbox__caption .dot { opacity: 0.4; }
.lightbox__caption strong { font-weight: 500; color: var(--fg); letter-spacing: 0.05em; }

/* poster lightbox variant — portrait */
.lightbox--poster .lightbox__media {
  width: auto;
  height: min(100%, calc(100vh - 140px));
  aspect-ratio: 2 / 3;
  max-width: calc(100vw - 32px);
}
.lightbox--poster .lightbox__media img,
.lightbox--poster .lightbox__media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Custom cursor ---------- */

.cursor-on, .cursor-on * { cursor: none !important; }

.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--fg);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
  mix-blend-mode: difference;
  display: none;
}

.cursor-on .cursor { display: block; }

.cursor.is-hover {
  width: 64px; height: 64px;
}

.cursor__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #000;
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.cursor.is-hover .cursor__label { opacity: 1; }

/* ---------- Marquee strip ---------- */

.strip {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
}

.strip__track {
  display: inline-flex;
  gap: 48px;
  animation: marquee 40s linear infinite;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.strip__track span { display: inline-flex; align-items: center; gap: 48px; }
.strip__track span::after { content: "◇"; opacity: 0.4; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Posters strip (Narrative) ---------- */

.posters {
  padding: clamp(40px, 5vw, 64px) 0 clamp(60px, 7vw, 96px);
  border-top: 1px solid var(--hairline);
  margin-top: clamp(40px, 5vw, 72px);
  overflow: hidden;
  position: relative;
}

.posters__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 var(--pad-x);
  margin-bottom: clamp(28px, 3vw, 40px);
}

.posters__head .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}

.posters__head .title {
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.posters__head .meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}

.posters__viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.posters__track {
  display: flex;
  gap: clamp(16px, 1.6vw, 28px);
  width: max-content;
  animation: poster-scroll 80s linear infinite;
  will-change: transform;
}

.posters:hover .posters__track {
  animation-play-state: paused;
}

.poster {
  flex: 0 0 auto;
  width: 280px;
  aspect-ratio: 2 / 3;
  background: #0A0A0A;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease;
}

.poster:hover { transform: translateY(-4px); }

.poster img,
.poster svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poster__caption {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.poster:hover .poster__caption {
  opacity: 1;
}

@keyframes poster-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 480px) 1fr;
  gap: clamp(24px, 3vw, 48px);
  padding: 0 var(--pad-x);
  margin-top: clamp(24px, 3vw, 40px);
  margin-bottom: clamp(48px, 6vw, 80px);
  align-items: start;
  justify-content: center;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.contact__photo {
  aspect-ratio: 4/5;
  max-height: 72vh;
  background: #0A0A0A;
  position: relative;
  overflow: hidden;
}

.contact__bio {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact__lede {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.contact__lede em { font-style: italic; opacity: 0.5; }

.contact__bio p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(237, 234, 227, 0.78);
  max-width: 50ch;
}

.contact__direct {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 16px;
}
.contact__direct a {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--fg);
  border-bottom: 1px solid var(--hairline);
  padding: 6px 0;
  display: inline-block;
  width: fit-content;
}
.contact__direct a:hover { color: var(--muted); }

.rep {
  padding: 0 var(--pad-x);
  margin-bottom: clamp(48px, 6vw, 96px);
}

.rep__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 32px;
}

.rep__list {
  display: block;
}

.rep__row {
  display: grid;
  grid-template-columns: 60px 1.2fr 1.5fr 110px;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
  transition: padding-left 0.3s ease;
  cursor: pointer;
}

.rep__row:hover { padding-left: 8px; }

.rep__row .flag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}

.rep__row .country {
  font-size: 16px;
  letter-spacing: -0.01em;
}

.rep__row .agency {
  color: rgba(237, 234, 227, 0.7);
  font-size: 13px;
}

.rep__row .arrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  transition: transform 0.3s ease, color 0.3s ease;
}
.rep__row:hover .arrow {
  transform: translateX(4px);
  color: var(--fg);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  :root {
    --pad-x: 18px;
    --pad-y: 16px;
  }

  /* Nav: hide inline links, show burger */
  .nav { mix-blend-mode: normal; }
  .nav__brand { font-size: 12px; }
  .nav__links { display: none; }
  .nav__burger { display: block; }

  .nav__drawer {
    display: flex;
    position: fixed;
    top: 0; right: 0;
    width: min(82vw, 320px);
    height: 100vh;
    background: #050505;
    border-left: 1px solid var(--hairline);
    flex-direction: column;
    padding: 80px 28px 32px;
    gap: 24px;
    z-index: 99;
    transform: translateX(105%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 20px;
    letter-spacing: -0.01em;
  }
  .nav__drawer.is-open { transform: translateX(0); }
  .nav__drawer a {
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline);
    color: var(--fg);
  }
  .nav__drawer a.is-active { color: #fff; }
  .nav__drawer .nav__drawer-key {
    margin-top: auto;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--muted);
    text-transform: uppercase;
    border: none;
  }

  /* Hero reel */
  .reel { height: 70vh; min-height: 480px; }
  .reel__hud { font-size: 10px; }
  .reel__title-now { font-size: 14px; max-width: 60%; }

  /* Sections */
  .section {
    padding: clamp(56px, 12vw, 96px) var(--pad-x) clamp(40px, 6vw, 72px);
  }
  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .section__title { font-size: clamp(32px, 9vw, 44px); }

  /* Grid: single column, full bleed */
  .grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .card { aspect-ratio: 16 / 10; }
  .card[data-hover="fade"] .card__overlay,
  .card[data-hover="desat"] .card__overlay {
    opacity: 1;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.7) 100%);
  }
  .card[data-hover="desat"] .card__media {
    filter: none;
  }
  .card__title { font-size: 18px; }
  .card__sub { font-size: 9px; gap: 10px; }

  /* Filter */
  .filter {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .filter button { flex: 0 0 auto; }

  /* Contact: photo stacks above bio */
  .contact {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 16px;
  }
  .contact__photo {
    aspect-ratio: 4 / 5;
    max-height: none;
  }
  .contact__lede { font-size: 24px; }
  .contact__bio p { font-size: 14px; max-width: 100%; }
  .contact__direct a { font-size: 16px; }

  /* Rep / studies / awards */
  .rep__list { grid-template-columns: 1fr; }
  .rep__row {
    grid-template-columns: 50px 1fr;
    grid-template-rows: auto auto;
    row-gap: 4px;
    column-gap: 14px;
    padding: 16px 0;
    font-size: 13px;
  }
  .rep__row .flag { grid-row: span 2; align-self: center; }
  .rep__row .country { font-size: 14px; }
  .rep__row .agency { font-size: 12px; color: rgba(237,234,227,0.55); }
  .rep__row .arrow { display: none; }

  /* Footer: stack columns vertically */
  .footer {
    margin-top: 32px;
    padding: 40px var(--pad-x) 24px;
  }
  .footer__top {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
    padding-bottom: 28px;
  }
  .footer__col { min-width: 0; width: 100%; }
  .footer__bot {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    text-align: left;
  }

  /* Lightbox: true fullscreen, video fills */
  .lightbox {
    padding: 0;
    background: #000;
  }
  .lightbox__inner {
    gap: 12px;
    padding: 8px;
  }
  .lightbox__media {
    width: 100%;
    max-height: calc(100vh - 80px);
  }
  .lightbox__close {
    top: 14px;
    right: 14px;
    padding: 10px 12px;
    font-size: 10px;
  }
  .lightbox__caption {
    font-size: 10px;
    padding: 0 16px 8px;
  }
  .lightbox--poster .lightbox__media {
    height: auto;
    width: 100%;
    max-height: calc(100vh - 80px);
  }

  /* Posters strip */
  .poster { width: 200px; }
  .posters__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Strip marquee smaller */
  .strip { padding: 12px 0; }
  .strip__track { gap: 28px; font-size: 10px; }
  .strip__track span { gap: 28px; }
}

@media (max-width: 540px) {
  /* Reel: true full-screen 9:16 portrait */
  .reel {
    height: 100svh;
    min-height: 0;
  }

  /* Video fills entire reel — scale to fill 9:16 portrait */
  .reel__stack,
  .reel__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .reel__slide iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Scale a 16:9 iframe to fill a 9:16 screen:
       need height = 100svh, so width = 100svh * 16/9
       and that width is always > 100vw so sides crop */
    width: calc(100svh * 16 / 9);
    height: 100svh;
    transform: translate(-50%, -50%);
    min-width: 100%;
  }

  /* HUD: counter + title at bottom, right side hidden */
  .reel__hud {
    padding: 16px 16px 48px;
    align-items: flex-end;
  }
  .reel__hud-right { display: none; }
  .reel__hud-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .reel__title-now { font-size: 13px; max-width: 80vw; }

  /* Remove old scroll hint inside reel */
  .reel__scroll { display: none; }

  /* Section head: title ABOVE num */
  .section__head {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 8px;
  }
  .section__head .section__num { display: block; }
  .section__title { margin-bottom: 0; }

  .poster { width: 180px; }

  /* Cards: always show title overlay on mobile (no hover available) */
  .card__overlay {
    opacity: 1 !important;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%) !important;
  }
  .card[data-hover="desat"] .card__media { filter: none !important; }
}





/* Mobile scroll-reveal: show card title when card enters viewport */
@media (max-width: 900px) {
  .card__overlay {
    transition: opacity 0.4s ease;
  }
  .card__overlay.is-visible {
    opacity: 1 !important;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%) !important;
  }
}


/* Work page: title row */
.section__head-title {
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  /* Work page mobile: stack title above filters */
  .section__head--work {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .section__head--work .section__head-title {
    flex-direction: column-reverse;
    gap: 6px;
  }
}


/* Lightbox loading state — title pulses while video loads */
.lb-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: opacity 0.6s ease;
}
.lb-loading__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.02em;
  animation: lbPulse 2s ease-in-out infinite;
  text-align: center;
  padding: 0 24px;
}
@keyframes lbPulse {
  0%, 100% { opacity: 0.15; }
  50%       { opacity: 0.85; }
}

@keyframes lbSpin { to { transform: rotate(360deg); } }
