/* ═══════════════════════════════════════════
   José Bernabé · Portfolio
   Shared stylesheet — styles.css
   ═══════════════════════════════════════════ */

/* ── CUSTOM FONTS ── */
/* Neue Haas Grotesk Display Pro loaded via Adobe Fonts (typekit) */

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:     #0a0a0a;
  --ink:    #f0ede8;
  --accent: #FF5353;
  --muted:  #555;
  --border: #1e1e1e;
  --nav-h:  70px;
  --gap:    3px;
}

html {
  scroll-behavior: auto;
  scrollbar-gutter: stable;
  margin: 0; padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  margin: 0; padding: 0;
}

/* ── PAGE THEMES ── */
body.theme-light {
  background: #fff;
  color: #0f0f0f;
}
/* Nav and footer stay dark on light pages */
body.theme-light nav,
body.theme-light #fixed-footer,
body.theme-light footer {
  background: var(--bg);
}
/* All project text elements in #0f0f0f on light pages */
body.theme-light .project-title { color: #1e1e1e !important; }
body.theme-light .project-title,
body.theme-light .project-meta span,
body.theme-light .project-meta .dot,
body.theme-light .project-desc,
body.theme-light .project-desc p,
body.theme-light .section-label,
body.theme-light .section-label span,
body.theme-light .outro .next-label,
body.theme-light .outro .next-link {
  color: #0f0f0f;
}
body.theme-light .project-meta span { opacity: 1; }
body.theme-light .project-meta .dot { background: #0f0f0f; opacity: .4; }
body.theme-light .section-label::after { background: #0f0f0f; opacity: .15; }

body.theme-dark {
  background: #000;
  color: #f0ede8;
}
body.theme-dark nav,
body.theme-dark #fixed-footer,
body.theme-dark footer {
  background: #000;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 300;
  display: flex;
  align-items: center;
  padding: 0 32px;
  background: var(--bg);
  transition: transform .35s cubic-bezier(.22,.68,0,1);
}
nav.nav-hidden { transform: translateY(-100%); }

.nav-logo {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo img {
  height: 52px; width: auto;
  display: block;
  transition: opacity .2s;
}
.nav-logo-fallback {
  display: none;
  color: var(--ink);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: .1em;
}

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links-left  { margin-right: auto; }
.nav-links-right { display: none; }
.nav-links a {
  font-size: .72rem; letter-spacing: .15em;
  text-transform: uppercase; text-decoration: none;
  color: #7c7c7c; opacity: 1; transition: opacity .2s, color .2s;
  font-weight: 600;
}
.nav-links a:hover { opacity: 1; color: var(--accent); }
.nav-links a.active { opacity: 1; color: var(--accent); }

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 32px 18px;
  display: flex; flex-direction: column;
  align-items: center; gap: 0;
  text-align: center;
}
.footer-top { margin-bottom: 28px; }
.footer-social { margin-bottom: 14px; }
.footer-top {
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem; letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: #7c7c7c; text-decoration: none;
  transition: color .2s;
}
.footer-top:hover { color: var(--accent) !important; }
.footer-social {
  display: flex; align-items: center; gap: 28px;
}
.footer-social a {
  color: var(--ink); opacity: 1;
  text-decoration: none; display: flex; align-items: center;
  transition: opacity .2s, filter .2s;
}
.footer-social a:hover { opacity: 1; }
.footer-social a:hover img { filter: brightness(0) saturate(100%) invert(39%) sepia(97%) saturate(1000%) hue-rotate(316deg) brightness(105%); }
.footer-social img {
  display: block;
  filter: brightness(0) invert(0.49);
  transition: filter .2s;
}
.footer-copy {
  font-size: .65rem; letter-spacing: .08em;
  text-transform: uppercase; color: #7c7c7c;
  margin: 0;
}

/* theme-light footer overrides */
body.theme-light .site-footer { border-top-color: rgba(15,15,15,.15); }
body.theme-light .footer-top  { color: #7c7c7c; }
body.theme-light .footer-top:hover { color: #0f0f0f; }
body.theme-light .footer-social a { color: #0f0f0f; }
body.theme-light .footer-copy { color: #7c7c7c; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ══════════════════════════════════════════
   INDEX — MASONRY GRID
══════════════════════════════════════════ */
/* ── WORK PAGE + INDEX PAGE — fixed parallax ── */
body.page-work,
body.page-index { --gap: 2vw; }
body.page-work { overflow: hidden; }
body.page-index { overflow: hidden; height: 100vh; scrollbar-gutter: auto; }

body.page-work #scene,
body.page-index #scene {
  position: fixed !important;
  inset: 0 !important;
  overflow: hidden !important;
  z-index: 0 !important;
  width: auto !important;
  height: auto !important;
}

body.page-work #cols {
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  padding-top: calc(var(--nav-h) + 10px) !important;
}

body.page-index #cols {
  position: absolute !important;
  top: calc(100vh + 30px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  padding-top: 0 !important;
}

/* Fixed footer for work page */
body.page-work #fixed-footer,
body.page-index #fixed-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 400;
  border-top: 1px solid var(--border);
  padding: 24px 32px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  background: var(--bg);
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.22,.68,0,1);
}
body.page-work #fixed-footer.visible,
body.page-index #fixed-footer.visible {
  transform: translateY(0);
}
body.page-work #fixed-footer .footer-top,
body.page-index #fixed-footer .footer-top {
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  text-decoration: none; transition: color .2s;
}
body.page-work #fixed-footer .footer-top:hover,
body.page-index #fixed-footer .footer-top:hover { color: var(--accent) !important; }
body.page-work #fixed-footer .footer-social,
body.page-index #fixed-footer .footer-social {
  display: flex; align-items: center; gap: 28px;
}
body.page-work #fixed-footer .footer-social a,
body.page-index #fixed-footer .footer-social a {
  color: var(--ink); opacity: .45; text-decoration: none;
  display: flex; transition: opacity .2s;
}
body.page-work #fixed-footer .footer-social a:hover,
body.page-index #fixed-footer .footer-social a:hover { opacity: 1; }
body.page-work #fixed-footer .footer-social a:hover img,
body.page-index #fixed-footer .footer-social a:hover img { filter: brightness(0) saturate(100%) invert(39%) sepia(97%) saturate(1000%) hue-rotate(316deg) brightness(105%) !important; }
body.page-work #fixed-footer .footer-social img,
body.page-index #fixed-footer .footer-social img { filter: brightness(0) invert(0.49); }
body.page-work #fixed-footer .footer-copy,
body.page-index #fixed-footer .footer-copy {
  font-size: .65rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin: 0;
}

/* Scene — height set by JS to accommodate parallax columns */
#scene {
  position: relative;
  width: 100%;
  z-index: 0;
  overflow: hidden;
}

#cols {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--gap);
  padding-top: 20px;
  align-items: flex-start;
}

@media (max-width: 479px) {
  body.page-index {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
  }
  body.page-index #scene {
    position: relative !important;
    inset: auto !important;
    overflow: visible !important;
    height: auto !important;
    width: 100% !important;
  }
  body.page-index #cols {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    flex-direction: column !important;
    width: 100% !important;
    padding-top: 0 !important;
    padding-bottom: 320px !important;
  }
  body.page-index .col {
    transform: none !important;
    width: 100% !important;
  }
  body.page-index .hero {
    position: relative !important;
  }
  body.page-index .hero-content {
    position: absolute !important;
  }
  body.page-index .landing-overlay {
    position: absolute !important;
  }
  body.page-index .scroll-arrow {
    position: absolute !important;
  }
  body.page-index .card-img {
    height: auto !important;
  }
  body.page-index .card-img video,
  body.page-index .card-img img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto;
  }
  body.page-index #fixed-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    display: none;
    opacity: 0;
    transition: opacity .4s ease;
  }
  body.page-index #fixed-footer.visible {
    display: flex !important;
    opacity: 1;
  }
}

.col {
  flex-shrink: 0;
  display: flex; flex-direction: column;
  gap: var(--gap);
  will-change: transform;
}

/* ── CARD ── */
.card {
  display: block; text-decoration: none;
  color: inherit; cursor: pointer; flex-shrink: 0;
  position: relative;
}
.card-img {
  width: 100%; overflow: hidden;
  background: #000; position: relative;
  isolation: isolate;
  will-change: transform;
}
.card-img img,
.card-img video {
  display: block; width: calc(100% + 2px); height: calc(100% + 2px);
  margin: -1px;
  object-fit: cover;
  object-position: center center;
  transition: transform .65s cubic-bezier(.22,.68,0,1.15);
}
.card:hover .card-img img,
.card:hover .card-img video { transform: scale(1.15); }

/* Dark veil — extends into gap to eliminate visible borders */
.card-hover-label {
  position: absolute;
  inset: calc(var(--gap, 3px) * -0.5);
  background: rgba(0,0,0,0);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s; pointer-events: none;
  z-index: 10;
}
.card:hover .card-hover-label {
  background: rgba(0,0,0,.85);
}

/* Text block — hidden by default, fades in on hover */
.card-hover-text {
  text-align: center;
  padding: 0 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.card:hover .card-hover-text {
  opacity: 1;
  transform: translateY(0);
}
.card-hover-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: .04em;
  color: #ffffff;
  margin-bottom: 7px;
  line-height: 1.2;
}
.card-hover-tags {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}

/* Images that don't fill their container — scale up 15% inside the mask */
.card-img--zoom img {
  transform: scale(1.15);
  transform-origin: center center;
}
.card:hover .card-img--zoom img { transform: scale(1.15); }

/* (bottom-nav removed — navigation is in the top nav) 

/* ── LIGHTBOX ── */
.overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(10,10,10,.97);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .28s;
}
.overlay.open { opacity: 1; pointer-events: all; }
.overlay img,
.overlay video { max-width: 86vw; max-height: 82vh; object-fit: contain; display: block; }
.overlay-close {
  position: absolute; top: 20px; right: 24px;
  font-size: 1.6rem; cursor: pointer;
  background: none; border: none; color: var(--ink); line-height: 1;
}
.overlay-meta {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%); text-align: center;
  white-space: nowrap;
}
.overlay-meta .om-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem; letter-spacing: .1em; display: block; margin-bottom: 4px;
}
.overlay-meta .om-tags {
  font-size: .62rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.overlay-link {
  position: absolute; bottom: 28px; right: 26px;
  font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none;
  color: var(--ink); border-bottom: 1px solid currentColor;
  opacity: .5; transition: opacity .2s;
}
.overlay-link:hover { opacity: 1; }

/* ══════════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════════ */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 48px) 28px 100px;
}

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 100px;
  text-align: left;
}
.hero-photo {
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.hero-photo img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(10%);
}
.hero-tag {
  font-size: .65rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 20px; display: block;
}
.hero-headline {
  font-family: 'neue-haas-grotesk-display', 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 3.8vw, 3.8rem);
  line-height: .95; letter-spacing: -.01em;
  margin-bottom: 36px;
  white-space: nowrap;
  color: var(--accent);
}
.hero-headline em {
  font-style: italic;
  font-family: 'neue-haas-grotesk-display', 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: .01em;
  display: block; margin-top: 8px;
  color: var(--muted);
}
.bio {
  font-size: .92rem; line-height: 1.85;
  color: #bbb; max-width: 480px;
  text-align: left;
}
.bio p + p { margin-top: 18px; }
.bio a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.cta-link {
  display: inline-block; margin-top: 36px;
  font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; text-decoration: none;
  color: var(--accent); border-bottom: none;
  padding-bottom: 2px; transition: opacity .2s;
}
.hero-photo--mobile { display: none; }

/* ── DIVIDER ── */
.divider {
  width: 40px; height: 1px;
  background: var(--ink);
  margin: 80px auto 60px; opacity: .25;
}

/* ── SECTION LABEL (about) ── */
.section-label-text {
  font-family: 'neue-haas-grotesk-display', 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.8rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 32px;
  text-align: center;
}

/* ── TALKS ── */
.talks-list { list-style: none; display: flex; flex-direction: column; gap: 14px; max-width: 520px; margin: 0 auto; text-align: center; }
.talks-list li a {
  font-size: .88rem; letter-spacing: .02em;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 1px;
  transition: border-color .2s;
}
.talks-list li a:hover { border-color: var(--ink); }

/* ── EDITORIAL FEATURES ── */
.features-text {
  font-size: .85rem; line-height: 2;
  color: #7c7c7c; max-width: 600px;
  columns: 2; column-gap: 40px;
  margin: 0 auto; text-align: center;
}

/* ── RELATED PROJECTS ── */
.related-section {
  padding: 160px 0 0;
  text-align: center;
}
.related-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
  font-weight: 600;
  margin-bottom: 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.related-item { display: block; overflow: hidden; line-height: 0; }
.related-item img,
.related-item video {
  width: 100%; display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22,.68,0,1.15), filter .3s;
  filter: brightness(.8);
}
.related-item:hover img,
.related-item:hover video {
  transform: scale(1.05);
  filter: brightness(1);
}
.related-section .site-footer,
.related-section + .site-footer {
  margin-top: 80px;
}
@media (max-width: 760px) {
  .related-grid { grid-template-columns: 1fr 1fr; }
}

.project-desc p strong {
  display: block;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.brands-img {
  width: 120%;
  margin: 48px -10%;
  position: relative;
  z-index: 1;
}
.brands-img img {
  width: 100%; display: block;
  opacity: .7;
  filter: grayscale(20%);
}

/* ── TESTIMONIAL PHOTO ── */
.testimonial-photo {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  margin-bottom: 16px;
  display: block;
  filter: grayscale(20%);
}

/* ── TALKS PHOTOS ── */
.talks-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 120%;
  margin: 0 -10% 32px;
}
.talks-photos img {
  width: 100%; display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter .3s;
}
.talks-photos img:hover { filter: grayscale(0%); }
.testimonials {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
}
.testimonial { background: var(--bg); padding: 36px 32px; }
.testimonial-quote {
  font-size: .85rem; line-height: 1.85;
  color: #7c7c7c; font-style: italic; margin-bottom: 24px;
}
.testimonial-quote::before { content: '\201C'; }
.testimonial-quote::after  { content: '\201D'; }
.testimonial-person { display: flex; flex-direction: column; gap: 3px; }
.testimonial-name {
  font-family: 'neue-haas-grotesk-display', 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem; letter-spacing: .01em;
}
.testimonial-role { font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.testimonial-link {
  font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; margin-top: 10px;
  display: inline-block; border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.testimonial-link:hover { color: var(--ink); border-color: var(--ink); }

/* ── SERVICES ── */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; text-align: center; }
.service-col h2,
.service-col h3 {
  font-family: 'neue-haas-grotesk-display', 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.1rem; letter-spacing: .01em;
  margin-bottom: 6px;
  color: var(--ink);
}
/* Small visual separator line between title and list */
.service-col h2::after,
.service-col h3::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--muted);
  margin: 10px auto 18px;
  opacity: .5;
}
.service-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.service-col ul li {
  font-size: .82rem; letter-spacing: .04em;
  color: #7c7c7c; padding-left: 0;
}
.service-col ul li::before { content: none; }

/* About page footer override */
.page ~ footer { max-width: 1100px; margin: 0 auto; }

/* ══════════════════════════════════════════
   PROJECT PAGE (meta.html pattern)
══════════════════════════════════════════ */
:root { --pad: 80px; --pgap: 3px; }

/* ── INTRO ── */
.intro {
  padding: calc(var(--nav-h) + 8px + 3vh) var(--pad) 60px;
  text-align: center; max-width: 900px; margin: 0 auto;
}
/* Mid-page text blocks — much less top padding */
.intro.section-intro {
  padding-top: 48px;
}
.project-title {
  font-family: 'neue-haas-grotesk-display', 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: .92; letter-spacing: -.01em;
  margin-bottom: 16px;
  text-align: center; color: #efefef;
}
.project-meta {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-bottom: 36px;
}
.project-meta span {
  font-size: .62rem; letter-spacing: .18em;
  text-transform: uppercase; color: #efefef; opacity: .5;
}
.project-meta .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: #efefef; opacity: .5; flex-shrink: 0;
}
.project-desc { font-size: .9rem; line-height: 1.9; color: #efefef; opacity: .55; max-width: 620px; margin: 0 auto; text-align: center; }
.project-desc p + p { margin-top: 14px; }

/* ── SECTION LABEL (project page) ── */
.section-label {
  padding: 48px var(--pad) 20px;
  font-size: .58rem; letter-spacing: .22em; text-transform: uppercase;
  color: #efefef; display: flex; align-items: center; justify-content: center; gap: 16px;
}
.section-label::after { content: none; }

/* ── GRID / CELLS ── */
.bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.bleed + .bleed { margin-top: var(--pgap); }

.grid { display: grid; gap: var(--pgap); }
.c1   { grid-template-columns: 1fr; }
.c2   { grid-template-columns: 1fr 1fr; }
.c3   { grid-template-columns: 1fr 1fr 1fr; }
.c4   { grid-template-columns: 1fr 1fr 1fr 1fr; }

.cell { overflow: hidden; background: #111; display: block; line-height: 0; }
.cell img,
.cell video { width: 100%; height: auto; object-fit: cover; display: block; }

/* ── VIDEO CELL ── */
.video-cell {
  position: relative; width: 100%; padding-bottom: 56.25%;
  background: #000; overflow: hidden;
}
.video-cell iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: none;
}

/* ── OUTRO ── */
.outro { padding: 80px var(--pad) 40px; text-align: center; }
.outro .next-label {
  font-size: .58rem; letter-spacing: .2em; text-transform: uppercase;
  color: #efefef; opacity: .5; display: block; margin-bottom: 14px;
}
.outro .next-link {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: .05em;
  text-decoration: none; color: #efefef;
  opacity: .2; transition: opacity .3s;
}
.outro .next-link:hover { opacity: 1; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */

/* Large screens — scene always full width, no inset */
/* (removed previous left/right inset rules) */

/* Mobile */
@media (max-width: 760px) {
  :root { --pad: 20px; }
  nav { padding: 0 16px; }
  .hero { grid-template-columns: 1fr; gap: 0; margin-bottom: 48px; }
  .hero-photo { display: none; }
  .hero-photo--desktop { display: none; }
  .hero-photo--mobile { display: block; width: 100%; }
  .hero-photo--mobile img { width: 100%; height: auto; display: block; }
  .cta-link { text-decoration: none !important; }
  .testimonials { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; gap: 40px; }
  .features-text { columns: 1; }
  .page { padding-left: 16px; padding-right: 16px; padding-top: var(--nav-h); }
  footer { flex-direction: column; gap: 12px; text-align: center; }
  .c2 { grid-template-columns: 1fr; }
  .c3 { grid-template-columns: 1fr; }
  .c4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .brands-img,
  .talks-photos { width: 100%; margin-left: 0; margin-right: 0; margin-top: 20px; }
  .hero-photo img,
  .testimonial-photo { width: 100%; }
  .hero-photo { aspect-ratio: auto; overflow: visible; height: auto; }
  .hero-photo img { height: auto; object-fit: contain; }
  .talks-photos { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  nav { padding: 0 12px; }
}

/* ── IMAGE LIGHTBOX ── */
.lb-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  cursor: zoom-out;
}
.lb-overlay.open {
  opacity: 1; pointer-events: all;
}
.lb-overlay img,
.lb-overlay video {
  max-width: 95vw; max-height: 95vh;
  object-fit: contain;
  border: none;
  display: block;
  transform: scale(.95);
  transition: transform .3s cubic-bezier(.22,.68,0,1.2);
  cursor: default;
}
.lb-overlay.open img,
.lb-overlay.open video {
  transform: scale(1);
}
.lb-close {
  position: absolute; top: 20px; right: 24px;
  font-size: 2rem; line-height: 1;
  color: rgba(255,255,255,.6);
  cursor: pointer; background: none; border: none;
  transition: color .2s;
  z-index: 1;
}
.lb-close:hover { color: #fff; }

/* ── ABOUT PAGE — +2pt typography ── */
[data-page="about"] .talks-list li a       { font-size: 1.06rem; }
[data-page="about"] .features-text         { font-size: 1.03rem; }
[data-page="about"] .testimonial-quote     { font-size: .85rem; }
[data-page="about"] .testimonial-name      { font-size: 1rem; }
[data-page="about"] .testimonial-role      { font-size: .65rem; }
[data-page="about"] .testimonial-link      { font-size: .65rem; }
[data-page="about"] .service-col ul li     { font-size: 1rem; }
[data-page="about"] .service-col h2,
[data-page="about"] .service-col h3        { font-size: 1.28rem; }
[data-page="about"] .project-desc p        { font-size: 1.03rem; }
[data-page="about"] .section-label-text    { font-size: 1.98rem; }

/* ── REEL VIDEO OVERLAY ── */
#reel-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
#reel-overlay.open { opacity: 1; pointer-events: all; }
#reel-overlay .reel-ov-inner {
  position: relative;
  width: 90vw;
  max-width: 1200px;
}
#reel-overlay .reel-ov-ratio {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
#reel-overlay .reel-ov-ratio iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
}
#reel-overlay-close {
  position: absolute; top: -28px; right: 0;
  font-size: 1rem; color: rgba(255,255,255,.6);
  background: none; border: none; cursor: pointer;
  transition: color .2s; line-height: 1;
}
#reel-overlay-close:hover { color: #fff; }

/* ── HAMBURGER NAV (mobile/tablet) ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
  position: relative; z-index: 1001;
}
.nav-burger span {
  display: block;
  width: 100%; height: 2px;
  background: #FF5353;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  bottom: 0;
  background: rgba(10,10,10,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: none !important;
  transition: opacity .35s ease, visibility .35s ease;
  z-index: 9999;
}
.nav-drawer.open {
  opacity: 1;
  visibility: visible;
  transform: none !important;
}
.nav-drawer a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7c7c7c;
  text-decoration: none;
  opacity: 1;
  padding: 16px 0;
  width: 100%;
  text-align: center;
  transition: opacity .2s, color .2s;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover,
.nav-drawer a.active { opacity: 1; color: var(--accent); }

@media (max-width: 1024px) {
  .testimonial-photo {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    flex-shrink: 0 !important;
  }
  .testimonial-card {
    gap: 12px !important;
    align-items: flex-start !important;
  }
  .testimonial-card img {
    width: 56px !important;
    height: 56px !important;
    object-fit: cover !important;
  }
  .nav-links { display: none !important; }
  .nav-burger { display: flex; }
  nav {
    justify-content: center !important;
    padding: 0 20px !important;
    position: relative !important;
  }
  .nav-logo {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
  }
  .nav-burger {
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
}

@media (max-width: 768px) {
  body.page-index .hero { height: 100svh !important; }
  .landing-headline { font-size: clamp(2rem, 10vw, 3.5rem) !important; }
  .hero-content { padding-top: 0 !important; gap: 12px !important; }
}

/* ── MOBILE PROJECT PAGE FIXES ── */
@media (max-width: 768px) {
  /* Reduce space between nav and project title */
  .intro {
    padding-top: calc(var(--nav-h) + 8px + 3vh) !important;
  }
  /* Ensure nav always stays on top during scroll */
  nav {
    position: fixed !important;
    top: 0 !important;
    z-index: 9000 !important;
  }
}

/* JS video placeholder — matches video dimensions */
.js-video { width: 100%; display: block; background: #111; }

/* ── MOBILE: force all media containers to full width on project pages ── */
@media (max-width: 768px) {
  [data-page="work"] main .bleed,
  [data-page="work"] main .grid,
  [data-page="work"] main [class*="st75"],
  [data-page="work"] main [class*="st-c2"],
  [data-page="work"] main [class*="lrl-"],
  [data-page="work"] main [class*="sh-"],
  [data-page="work"] main [class*="dambot-vimeo"],
  [data-page="work"] main [style*="width:50%"],
  [data-page="work"] main [style*="width: 50%"],
  [data-page="work"] main [style*="width:75%"],
  [data-page="work"] main [style*="width: 75%"],
  [data-page="work"] main [style*="width:25%"],
  [data-page="work"] main [style*="width: 25%"] {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  [data-page="work"] main .cell img,
  [data-page="work"] main .cell video,
  [data-page="work"] main img,
  [data-page="work"] main video {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}
