/* ============================================
   BOLDWAY.AI — DESIGN TOKENS
   ============================================ */
:root {
  --navy: #020213;
  --navy-deep: #000008;
  --orange: #E8623C;
  --orange-soft: #F0764E;
  --cream: #F5F1E9;
  --white: #FFFFFF;
  --text-muted: rgba(245, 241, 233, 0.7);
  --text-dim: rgba(245, 241, 233, 0.5);
  --border-subtle: rgba(245, 241, 233, 0.15);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-gap: clamp(4rem, 9vw, 8rem);
}

/* ============================================
   RESET + BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--cream);
  line-height: 1.55;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.display em, .display .italic {
  font-style: italic;
  color: var(--orange);
  font-weight: 300;
}
h1.display { font-size: clamp(2.5rem, 7vw, 5.5rem); }
h2.display { font-size: clamp(2rem, 5vw, 3.75rem); /* 60px max */ }
h3.display { font-size: clamp(1.5rem, 3vw, 2.5rem); /* 40px max */ }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.lead {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.6;
}
.hero__subhead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 25px;
  letter-spacing: 0.10em;
  color: var(--cream);
  max-width: 56ch;
  margin: 0 auto;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(2, 2, 19, 0.95), rgba(2, 2, 19, 0.7) 60%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: padding 0.3s ease;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 40px;
}
.nav__logo img {
  height: 100%;
  width: auto;
  display: block;
}
.nav__menu {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  list-style: none;
}
.nav__menu a {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.25s ease;
}
.nav__menu a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav__menu a:hover { color: var(--white); }
.nav__menu a:hover::after { transform: scaleX(1); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1.5px solid var(--cream);
  background: var(--cream);
  color: var(--navy);
  border-radius: 2px;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn:hover { background: transparent; color: var(--cream); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--cream); }
.btn--ghost:hover { background: var(--cream); color: var(--navy); }
.btn--orange { border-color: var(--orange); color: var(--orange); background: transparent; }
.btn--orange:hover { background: var(--orange); color: var(--navy); }

.nav__cta { padding: 0.6rem 1.25rem; font-size: 0.7rem; }

@media (max-width: 768px) {
  .nav__menu { gap: 1rem; }
  .nav__menu a { font-size: 0.65rem; }
}

/* ============================================
   HERO / SHOWREEL
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem var(--gutter) 4rem;
  gap: 2.5rem;
}
.hero__title { max-width: 18ch; }
.hero__categories {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
  align-items: center;
}
.hero__categories span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__categories span:not(:last-child)::after { content: '·'; margin-left: 1.5rem; color: var(--orange); }

.showreel {
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 21/9;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  background: var(--navy-deep);
}
.showreel video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.showreel__placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #1a1f3e, #0E1230);
}

.tagline {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--orange);
  text-transform: uppercase;
  margin-top: 1rem;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
section { padding: var(--section-gap) 0; }
.section__header { margin-bottom: clamp(2rem, 5vw, 4rem); }
.section__header .lead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 19px;
  letter-spacing: 0.10em;
  color: var(--cream);
  max-width: 60ch;
  margin-top: 1.5rem;
}

/* ============================================
   PORTFOLIO GRID — matches Figma exactly
   Row 1: 5 vertical tiles (3:4)
   Row 2: large landscape left + 2 stacked landscape right
   Row 3: 5 vertical tiles (3:4)
   Row 4: 3 landscape tiles (16:9)
   ============================================ */
.portfolio-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.portfolio-row {
  display: grid;
  gap: 0.65rem;
}
.portfolio-row--3 { grid-template-columns: repeat(3, 1fr); }
.portfolio-row--5 { grid-template-columns: repeat(5, 1fr); }
.portfolio-row--mobile-only { display: none; } /* shown only in the mobile swipe line */
.portfolio-row--split {
  grid-template-columns: 2fr 1fr;
}
.portfolio-row--split .tile--stack-wrapper {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0.65rem;
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--navy-deep);
  cursor: pointer;
}
.tile--landscape { aspect-ratio: 16/9; }
.tile--vertical { aspect-ratio: 3/4; }
.tile--landscape-stack { aspect-ratio: 16/9; }
.tile--big-landscape { aspect-ratio: 16/9; }

.tile video, .tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.tile:hover video, .tile:hover img { transform: scale(1.04); }

.tile__placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(245, 241, 233, 0.35);
  background: linear-gradient(135deg, #0a0d2a, #020213);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.tile__credit {
  position: absolute;
  bottom: 0.85rem; left: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(2, 2, 19, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 0.35rem 0.9rem 0.35rem 0.35rem;
  font-size: 0.78rem;
  color: var(--cream);
  z-index: 2;
}
.tile__credit img {
  width: 26px; height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.tile__credit-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #b94a2a);
  display: grid; place-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--white);
  flex-shrink: 0;
}

/* "Recent work." header + swipe hint: MOBILE ONLY */
.portfolio-mobile-header { display: none; }
@media (min-width: 769px) {
  .portfolio-mobile-header { display: none !important; }
}

@media (max-width: 900px) {
  .portfolio-row--3,
  .portfolio-row--5 { grid-template-columns: repeat(2, 1fr); }
  .portfolio-row--split { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .portfolio-row--3,
  .portfolio-row--5 { grid-template-columns: 1fr; }
}

/* ============================================
   ARTISTS
   ============================================ */
.artist {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: 30px;
}
.artist__photo {
  aspect-ratio: 4/5;
  background: var(--navy-deep);
  border-radius: 4px;
  overflow: hidden;
}
.artist__photo img { width: 100%; height: 100%; object-fit: cover; }
.artist__photo-placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #1a1f3e, #0E1230);
}
.artist__role {
  color: var(--orange);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.artist__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.5rem); /* 40px max */
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin-bottom: 0.5rem;
}
.artist__categories {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.artist__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--cream);
  margin-bottom: 1.5rem;
  max-width: 28ch;
}
.artist__bio {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 19px;
  letter-spacing: 0.10em;
  color: var(--cream);
  margin-bottom: 1rem;
  max-width: 58ch;
}
p.artist__bio:last-of-type { margin-bottom: 2rem; }
@media (max-width: 800px) {
  .artist { grid-template-columns: 1fr; }
  .artist__photo { max-width: 400px; }
}

/* ============================================
   CASE STUDY (home page — single, swipeable)
   ============================================ */
.case-section { position: relative; }
.case-section__nav {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}
.case-section__nav button {
  color: var(--orange);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.case-section__nav button:hover { opacity: 0.7; }

.case-carousel {
  overflow: hidden;
  position: relative;
}
.case-carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  touch-action: pan-y;
}
.case-card {
  flex: 0 0 100%;
  min-width: 0;
}
.case-card__media {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.case-card__media--single {
  display: block;
}
.case-card__media--single img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}
.case-card__media > * {
  aspect-ratio: 1/1;
  background: var(--navy-deep);
  border-radius: 4px;
  overflow: hidden;
}
.case-card__media img { width: 100%; height: 100%; object-fit: cover; }
.case-card__media-placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #1a1f3e, #0E1230);
}
.case-card__tags {
  color: var(--orange);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.case-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.5rem); /* 40px max */
  line-height: 1.175; /* 47/40 */
  letter-spacing: -0.005em;
  margin-bottom: 1.5rem;
}
.case-card__intro {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 19px;
  letter-spacing: 0.10em;
  color: var(--cream);
  max-width: 80ch;
  margin-bottom: 2rem;
}
.case-card__read-more {
  color: var(--orange);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.25s ease;
}
.case-card__read-more:hover { gap: 0.85rem; }

@media (max-width: 700px) {
  .case-card__media { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   PROCESS (Directed. Not generated.)
   ============================================ */
.process { text-align: center; }
.process__header { margin-bottom: clamp(3rem, 7vw, 6rem); }
.process__header h2.display { margin-bottom: 1.5rem; }
.process__header .lead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 19px;
  letter-spacing: 0.10em;
  color: var(--cream);
  max-width: 60ch;
  margin: 0 auto;
}
.process__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  text-align: left;
}
.process__step {
  padding: 0 1.5rem;
  border-left: 1px solid rgba(245, 241, 233, 0.18);
}
.process__step:first-child { border-left: none; padding-left: 0; }
.process__step .num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  color: var(--orange);
  margin-bottom: 0.85rem;
}
.process__step h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--cream);
  margin-bottom: 1rem;
}
.process__step p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 19px;
  letter-spacing: 0.10em;
  color: var(--cream);
}
@media (max-width: 900px) {
  .process__steps { grid-template-columns: repeat(2, 1fr); gap: 2rem 0; }
  .process__step { padding: 0 1rem; border-left: 1px solid rgba(245, 241, 233, 0.18); }
  .process__step:nth-child(odd) { border-left: none; padding-left: 0; }
}
@media (max-width: 500px) {
  .process__steps { grid-template-columns: 1fr; }
  .process__step { border-left: none; padding: 0; padding-top: 1.5rem; border-top: 1px solid rgba(245, 241, 233, 0.18); }
  .process__step:first-child { border-top: none; padding-top: 0; }
}

/* ============================================
   FOUNDERS
   ============================================ */
.founders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}
.founder__photo {
  aspect-ratio: 4/3;
  background: var(--navy-deep);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder__photo-placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #1a1f3e, #0E1230);
}
.founder__role {
  color: var(--orange);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.founder__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.5rem); /* 40px max */
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin-bottom: 1rem;
}
.founder__bio {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 19px;
  letter-spacing: 0.10em;
  color: var(--cream);
}
@media (max-width: 700px) { .founders { grid-template-columns: 1fr; } }

/* ============================================
   CTA STRIP
   ============================================ */
.cta-strip { text-align: center; padding: clamp(3rem, 7vw, 5rem) 0; }
.cta-strip p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 19px;
  letter-spacing: 0.10em;
  color: var(--cream);
  margin-bottom: 2rem;
  max-width: 60ch;
  margin-left: auto; margin-right: auto;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--orange);
  color: var(--navy);
  padding: clamp(2rem, 5vw, 3rem) var(--gutter);
}
.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.footer__contact a { display: block; line-height: 1.6; font-size: 0.95rem; color: var(--navy); }
.footer__contact a:hover { text-decoration: underline; }
.footer__logo {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer__logo img {
  width: clamp(180px, 22vw, 280px);
  height: auto;
  display: block;
}
.footer__parent {
  text-align: right;
  font-size: 0.85rem;
  color: var(--navy);
}
.footer__parent a { text-decoration: underline; }
@media (max-width: 700px) {
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__parent, .footer__contact { text-align: center; }
}

/* ============================================
   CASE STUDIES PAGE
   ============================================ */
.case-hero {
  padding: 9rem var(--gutter) 3rem;
  text-align: center;
}
.case-hero__title { max-width: 14ch; margin: 0 auto; }
.case-hero__filters {
  margin-top: 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
}
.case-hero__filters span:not(:last-child)::after {
  content: '·';
  margin-left: 1.5rem;
  color: var(--orange);
}

.case-gallery {
  width: 100%;
  aspect-ratio: 4/1;
  background: var(--navy-deep);
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 4rem;
}
.case-gallery img { width: 100%; height: 100%; object-fit: cover; }
.case-gallery__placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #1a1f3e, #0E1230);
}
@media (max-width: 700px) { .case-gallery { aspect-ratio: 16/9; } }

.case-body { max-width: 1000px; margin: 0 auto; }
.case-body__tags {
  color: var(--orange);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.case-body__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 2.5rem); /* 40px max */
  line-height: 1.175; /* 47/40 */
  letter-spacing: -0.005em;
  margin-bottom: 1.5rem;
}
.case-body__intro {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 19px;
  letter-spacing: 0.10em;
  color: var(--cream);
  margin-bottom: 3rem;
  max-width: 80ch;
}

.case-videos {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
  max-width: 1000px;
  align-items: stretch;
}
.case-videos > * {
  background: var(--navy-deep);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.case-videos > *:first-child { aspect-ratio: 3/2; }
.case-videos > *:last-child { height: 100%; }
.case-videos video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) {
  .case-videos { grid-template-columns: 1fr; max-width: 420px; }
  .case-videos > *:first-child { aspect-ratio: 16/9; }
  .case-videos > *:last-child { aspect-ratio: 16/9; height: auto; }
}

.case-body__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 19px;
  letter-spacing: 0.10em;
  color: var(--cream);
  max-width: 80ch;
}
.case-body__text p { margin-bottom: 1.2rem; }

.case-author {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(8, 11, 34, 0.6);
  border-radius: 999px;
  padding: 0.4rem 1.25rem 0.4rem 0.4rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}
.case-author__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #b94a2a);
  display: grid; place-items: center;
  font-size: 0.85rem;
  color: var(--white);
}
.case-author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

.case-nav {
  max-width: 1000px;
  margin: 4rem auto 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
}
.case-nav a { transition: opacity 0.2s ease; }
.case-nav a:hover { opacity: 0.7; }
.case-nav__spacer { visibility: hidden; }

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 34, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox__close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(245, 241, 233, 0.1);
  font-size: 1.5rem;
  transition: background 0.2s ease;
}
.lightbox__close:hover { background: rgba(245, 241, 233, 0.2); }
.lightbox__media {
  max-width: 90vw;
  max-height: 85vh;
  display: block;
}

/* ============================================
   SCROLL-IN ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Stagger inside grids */
.reveal--stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal--stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal--stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal--stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal--stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal--stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal--stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal--stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--stagger > * { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .tile video, .tile img, .artist__photo img, .founder__photo img,
  .case-card__media img, .case-gallery img, .showreel video,
  .btn, .tile__credit { transition: none; }
  .portfolio-mobile-header button span { animation: none; }
}

/* ============================================
   MICRO-INTERACTIONS (images, videos, buttons)
   ============================================ */
/* Buttons — lift on hover, glow, press feedback */
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: 0.1s; }
.btn--orange:hover { box-shadow: 0 8px 28px rgba(232, 98, 60, 0.32); }
.btn:not(.btn--orange):hover { box-shadow: 0 8px 28px rgba(245, 241, 233, 0.12); }

/* Portfolio tiles — brightness lift on top of the existing zoom,
   credit pill nudges up */
.tile video, .tile img {
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.4s ease;
}
.tile:hover video, .tile:hover img { filter: brightness(1.07); }
.tile__credit { transition: transform 0.3s ease; }
.tile:hover .tile__credit { transform: translateY(-2px); }

/* Artist & founder photos, case-study images — gentle zoom */
.artist__photo img, .founder__photo img, .case-card__media img, .case-gallery img {
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.artist__photo:hover img,
.founder__photo:hover img,
.case-card__media > *:hover img,
.case-gallery:hover img { transform: scale(1.04); }

/* Hero showreel — slow cinematic zoom on hover */
.showreel video { transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1); }
.showreel:hover video { transform: scale(1.025); }

/* Nav logo */
.nav__logo img { transition: opacity 0.25s ease; }
.nav__logo:hover img { opacity: 0.85; }

/* Swipe-hint arrow nudge (used on mobile) */
@keyframes hint-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

/* ============================================
   MOBILE OPTIMISATION  (≤768px only — desktop unchanged)
   Added: nav fit, hero category pipes, portfolio visibility/stacking
   ============================================ */
@media (max-width: 768px) {

  /* --- 1. NAV: fit logo · menu · contact on one row, evenly spaced --- */
  .nav { padding: 1rem var(--gutter); }
  .nav__logo { height: 28px; }
  .nav__menu {
    position: static;            /* was absolute-centered → caused the overlap */
    transform: none;
    left: auto; top: auto;
    flex: 1 1 auto;
    justify-content: space-evenly;   /* even gaps between logo, links, contact */
    gap: 0.25rem;
  }
  .nav__menu a {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-align: center;          /* "Case Studies" centred when it wraps to 2 lines */
    line-height: 1.25;
    padding: 0;
  }
  .nav__cta {
    padding: 0.4rem 0.7rem;      /* smaller contact button */
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    flex-shrink: 0;
  }

  /* --- 2. HERO CATEGORIES: three lines of two, orange "|" instead of dots --- */
  .hero__categories {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    gap: 0.45rem 0;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }
  .hero__categories span { flex: 0 0 50%; gap: 0; }
  .hero__categories span:nth-child(odd)  { justify-content: flex-end; }
  .hero__categories span:nth-child(even) { justify-content: flex-start; }
  .hero__categories span:nth-child(odd)::after  { content: '|'; margin: 0 0.55rem; color: var(--orange); }
  .hero__categories span:nth-child(even)::after { content: none; margin: 0; }

  /* --- 3. PORTFOLIO: make it appear + stack one tile per row --- */
  /* The scroll-in fade can't reach its trigger on the very tall single-column
     grid, so it stayed hidden. On mobile, reveal everything immediately. */
  .reveal,
  .reveal--stagger > * { opacity: 1 !important; transform: none !important; }

  /* --- HERO SHOWREEL: mobile version is 3:4 (vertical) --- */
  .showreel { aspect-ratio: 3/4; max-width: 480px; }

  /* Portfolio: "Recent work." header + looping swipe carousel.
     Active card centred, neighbouring cards peeking on both sides
     (full-bleed to the screen edges); script.js translates the
     tiles and wraps last → first. */
  .portfolio-mobile-header { display: block; margin-bottom: 1.25rem; }
  .portfolio-mobile-header h2 { margin-bottom: 1rem; }
  .portfolio-mobile-header button {
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: 0.4rem;
    color: var(--orange);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }
  .portfolio-mobile-header button span {
    font-size: 1.05rem;
    line-height: 1;
    animation: hint-nudge 1.6s ease-in-out infinite;
  }
  .portfolio-grid {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
    touch-action: pan-y;
    cursor: grab;
    margin: 0 calc(-1 * var(--gutter));   /* full-bleed */
    padding: 0 var(--gutter);             /* edge inset for first/last card */
  }
  .portfolio-row,
  .portfolio-row--split .tile--stack-wrapper { display: contents; }
  /* Mobile portfolio = vertical videos only, in one swipe line */
  .portfolio-grid .tile--landscape,
  .portfolio-grid .tile--landscape-stack,
  .portfolio-grid .tile--big-landscape { display: none !important; }
  .portfolio-row--mobile-only { display: contents; }
  .portfolio-grid .tile {
    flex: 0 0 74%;
    width: 74%;
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .portfolio-grid.is-dragging .tile { transition: none; }
}

/* ============================================
   FOR AGENTS PAGE
   ============================================ */
.agents-hero {
  padding: 9rem var(--gutter) 3rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.agents-hero .eyebrow { margin-bottom: 1.25rem; }
.agents-hero h1.display { margin-bottom: 1.5rem; }
.agents-hero .lead { margin: 0 auto; max-width: 68ch; }

.agents-section {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--border-subtle);
}
.agents-section h2.display { margin-bottom: 1.75rem; }

.agents-prose { max-width: 74ch; }
.agents-prose p {
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--cream);
  margin-bottom: 1rem;
}
.agents-prose p:last-child { margin-bottom: 0; }
.agents-prose strong { font-weight: 600; color: var(--cream); }
.agents-prose a { color: var(--orange); transition: opacity 0.2s ease; }
.agents-prose a:hover { opacity: 0.75; }

.agents-list {
  list-style: none;
  max-width: 74ch;
  display: grid;
  gap: 0.9rem;
}
.agents-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 14px;
  line-height: 1.6;
  color: var(--cream);
}
.agents-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.agents-list strong { font-weight: 600; }

.agents-defs { display: grid; gap: 2rem; max-width: 74ch; margin-top: 1.5rem; }
.agents-def h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 0.35rem;
}
.agents-def__role {
  color: var(--orange);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.agents-def p:not(.agents-def__role) {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}
.agents-def em { font-style: italic; }

.agents-steps { list-style: none; max-width: 74ch; display: grid; gap: 1.1rem; }
.agents-steps li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--cream);
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
}
.agents-steps__num {
  font-family: var(--font-display);
  color: var(--orange);
  font-size: 1rem;
  flex-shrink: 0;
  min-width: 2ch;
}
.agents-steps strong { font-weight: 600; }

.faq { display: grid; gap: 1.75rem; max-width: 74ch; }
.faq__q {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.faq__a {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 72ch;
}

/* ============================================
   SUBTLE SCROLL-IN FADE — images + text, both viewports.
   Opacity-only, so it never fights hover-scale or the carousel.
   The .fx class is added by JS, so content stays visible if JS is off.
   ============================================ */
.fx { opacity: 0; transition: opacity 0.85s ease; will-change: opacity; }
.fx.fx-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .fx, .fx.fx-in { opacity: 1 !important; transition: none !important; }
}

/* ============================================
   MOBILE HEADINGS + SECTION SPACING (mobile only)
   Big 100px section headings; ~140px between sections.
   NOTE: 140px placement is a best-guess pending the reference image.
   ============================================ */
@media (max-width: 768px) {
  h1.display,
  h2.display {
    font-size: 100px;
    line-height: 0.95;
    overflow-wrap: break-word;   /* never cause horizontal scroll on narrow phones */
    hyphens: auto;
  }
  section { padding: 70px 0; }    /* 70 + 70 = 140px between adjacent sections */
  /* 140px between the "Recent work." heading and the carousel */
  .portfolio-mobile-header h2 { margin-bottom: 140px; }
  .hero { padding-bottom: 70px; }   /* makes hero -> "Recent work." exactly 140px */
}

/* ============================================
   MOBILE WORD-STACK HEADLINES
   Applies only on mobile. Desktop stays inline / unchanged.
   ============================================ */
@media (max-width: 768px) {
  .mobile-word-stack {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .mobile-word-stack .word {
    display: block;
    white-space: nowrap;
  }

  .mobile-word-stack .desktop-break {
    display: none;
  }
}
