:root {
  --bg: #050505;
  --bg-soft: #0d0d0e;
  --ink: #f7f4ee;
  --muted: rgba(247, 244, 238, 0.68);
  --paper: #f3efe6;
  --paper-2: #e8e1d3;
  --paper-ink: #151311;
  --paper-muted: rgba(21, 19, 17, 0.64);
  --line: rgba(247, 244, 238, 0.16);
  --line-dark: rgba(21, 19, 17, 0.14);
  --gold: #c9a46a;
  --gold-soft: #f4d59a;
  --blue: #7ab7ff;
  --max: 1180px;
  --radius: 28px;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.36);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  z-index: 20;
  background-image: radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 1px), radial-gradient(circle at 70% 80%, rgba(255,255,255,.18), transparent 1px);
  background-size: 5px 5px, 7px 7px;
  mix-blend-mode: overlay;
}

.site-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), var(--max));
  height: 62px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 12px 0 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.34), rgba(5, 5, 5, 0.22));
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  box-shadow: 0 14px 42px rgba(0,0,0,.18);
  transition:
    top .32s cubic-bezier(.22, 1, .36, 1),
    width .32s cubic-bezier(.22, 1, .36, 1),
    height .32s cubic-bezier(.22, 1, .36, 1),
    background .32s ease,
    border-color .32s ease,
    box-shadow .32s ease,
    backdrop-filter .32s ease;
}
.site-nav.is-scrolled {
  top: 12px;
  width: min(calc(100% - 44px), 1080px);
  height: 54px;
  border-color: rgba(255,255,255,0.18);
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0.82), rgba(5, 5, 5, 0.72));
  backdrop-filter: blur(26px) saturate(175%);
  -webkit-backdrop-filter: blur(26px) saturate(175%);
  box-shadow: 0 20px 70px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.08);
}
.site-nav.is-scrolled::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(244,213,154,.16), transparent);
  opacity: .42;
  mask-image: linear-gradient(#000, transparent 62%);
}
.brand, .nav-links, .hero-actions, .section-heading.split { display: flex; align-items: center; }
.brand { gap: 10px; font-size: 14px; letter-spacing: .02em; font-weight: 650; padding: 7px 12px; border-radius: 999px; background: rgba(243, 239, 230, .92); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); transition: padding .32s cubic-bezier(.22, 1, .36, 1), background .32s ease, box-shadow .32s ease; }
.site-nav.is-scrolled .brand { padding: 6px 11px; background: rgba(243, 239, 230, .96); box-shadow: inset 0 0 0 1px rgba(255,255,255,.34), 0 8px 22px rgba(0,0,0,.2); }
.brand-logo {
  width: 132px;
  height: auto;
  display: block;
  filter: none;
}
.nav-links { gap: 24px; color: var(--muted); font-size: 13px; }
.nav-links a:hover { color: var(--ink); }
.nav-cta, .button {
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .01em;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.nav-cta { background: var(--ink); color: #050505; }
.nav-cta:hover, .button:hover { transform: translateY(-2px); }

section { position: relative; overflow: hidden; }
.section-dark { background: var(--bg); color: var(--ink); }
.section-light { background: var(--paper); color: var(--paper-ink); }

.hero {
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 132px max(24px, calc((100vw - var(--max)) / 2)) 34px;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5,5,5,.9) 0%, rgba(5,5,5,.62) 43%, rgba(5,5,5,.08) 100%),
    radial-gradient(circle at 72% 22%, rgba(201,164,106,.24), transparent 34%);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 63% 58%; filter: saturate(.88) contrast(1.05); transform: scale(1.01); }
.hero-copy { max-width: 690px; padding-bottom: 42px; }
.eyebrow, .section-kicker, .case-meta {
  margin: 0 0 18px;
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  font-weight: 800;
}
.eyebrow.dark { color: #8a6838; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(42px, 6.7vw, 92px);
  line-height: .92;
  letter-spacing: -.065em;
  max-width: 780px;
  margin-bottom: 28px;
}
h2 {
  font-size: clamp(38px, 5.2vw, 74px);
  line-height: .94;
  letter-spacing: -.055em;
  margin-bottom: 0;
}
h3 { font-size: 24px; line-height: 1.02; letter-spacing: -.025em; }
.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(17px, 1.65vw, 21px);
  line-height: 1.34;
  letter-spacing: -.02em;
}
.hero-actions { gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.button.primary { background: var(--ink); color: #050505; }
.button.ghost { border: 1px solid rgba(255,255,255,.28); color: var(--ink); }
.dark-button { background: var(--paper-ink) !important; color: var(--paper) !important; display: inline-flex; }
.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(650px, 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--line);
  backdrop-filter: blur(16px);
}
.hero-proof div { padding: 18px 20px; background: rgba(255,255,255,.055); }
.hero-proof strong { display: block; font-size: 22px; letter-spacing: -.02em; }
.hero-proof span { color: var(--muted); font-size: 13px; }

.intro, .services, .process, .closing { padding: 120px max(24px, calc((100vw - var(--max)) / 2)); }
.section-kicker { color: #8a6838; }
.intro-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 72px; align-items: start; }
.intro-copy { color: var(--paper-muted); font-size: 19px; line-height: 1.55; }
.intro-copy p + p { margin-top: 22px; }

.work, .team, .proof, .media-reel { padding: 110px max(24px, calc((100vw - var(--max)) / 2)); }
.section-heading { max-width: 840px; margin-bottom: 46px; }
.section-heading.split { justify-content: space-between; gap: 32px; max-width: none; }
.section-note { max-width: 320px; color: var(--paper-muted); font-size: 18px; line-height: 1.45; }
.work-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
}
.case-card {
  display: block;
  color: inherit;
  text-decoration: none;
  position: relative;
  min-height: 410px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #151515;
  box-shadow: var(--shadow);
}
.case-card.large { grid-row: span 2; min-height: 840px; }
.case-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; filter: saturate(.86) contrast(1.05); transition: transform .55s ease; }
.case-card.portrait-media img { object-position: center; }
.case-card:hover img { transform: scale(1.04); }
.case-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 36%, rgba(0,0,0,.88)); }
.case-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px; z-index: 1; }
.case-copy p:last-child { color: var(--muted); line-height: 1.45; max-width: 560px; }
.case-meta { color: var(--gold-soft); margin-bottom: 12px; }
.case-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
}
.case-link::after { content: " →"; padding-left: 4px; transition: transform .2s ease; }
.case-card:hover .case-link::after { transform: translateX(3px); }

.media-reel { background: #030303; }
.reel-note { max-width: 360px; color: var(--muted); font-size: 17px; line-height: 1.45; }
.reel-grid {
  display: grid;
  grid-template-columns: 1.1fr .95fr .95fr;
  gap: 18px;
}
.reel-grid article {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #101010;
  box-shadow: var(--shadow);
}
.reel-grid video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.86) contrast(1.06);
}
.reel-grid article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.72));
}
.reel-grid span {
  position: absolute;
  z-index: 1;
  left: 22px;
  bottom: 22px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(0,0,0,.42);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.service-grid article { background: rgba(255,255,255,.42); padding: 30px; min-height: 300px; }
.service-grid span { color: #8a6838; font-weight: 800; font-size: 12px; letter-spacing: .14em; }
.service-grid h3 { color: var(--paper-ink); margin: 42px 0 16px; }
.service-grid p { color: var(--paper-muted); line-height: 1.48; }

.proof { text-align: center; padding-top: 92px; padding-bottom: 92px; }
.brand-wall {
  width: min(940px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
}
.brand-wall span {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: rgba(247,244,238,.82);
  font-size: clamp(13px, 1.45vw, 18px);
  font-weight: 760;
  letter-spacing: -.015em;
}
.brand-wall img {
  width: 34px;
  max-height: 28px;
  object-fit: contain;
  padding: 4px;
  border-radius: 9px;
  background: rgba(255,255,255,.9);
}
.brand-wall span:nth-child(3n) { border-right: 0; }
.brand-wall span:nth-last-child(-n + 3) { border-bottom: 0; }
.proof-note {
  max-width: 680px;
  margin: 24px auto 0;
  color: var(--muted);
  line-height: 1.45;
}

.process-line { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.process-line div { padding: 28px 24px 0 0; border-right: 1px solid var(--line-dark); min-height: 180px; }
.process-line div:last-child { border-right: 0; }
.process-line strong { display: block; margin-bottom: 16px; }
.process-line p { color: var(--paper-muted); line-height: 1.45; }

.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 980px; }
.team-grid article { background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding-top: 24px; }
.team-grid img { width: 178px; height: 178px; margin: 0 auto; border-radius: 50%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 28%; filter: grayscale(.12) contrast(1.03); background: rgba(255,255,255,.08); }
.team-grid h3 { margin: 20px 22px 5px; font-size: 21px; }
.team-grid p { margin: 0 22px 22px; color: var(--muted); }

.closing { min-height: 60svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.closing h2 { max-width: 900px; margin-bottom: 34px; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px max(24px, calc((100vw - var(--max)) / 2));
  background: #030303;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.site-footer div { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.site-footer strong, .site-footer a { color: var(--ink); }

.case-hero { min-height: 76svh; align-items: end; }
.case-page .hero-copy { max-width: 820px; }
.case-page h1 { max-width: 900px; }
.case-detail { padding: 110px max(24px, calc((100vw - var(--max)) / 2)); }
.case-detail-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; }
.case-facts { border-top: 1px solid var(--line-dark); }
.case-facts div { padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.case-facts strong { display: block; margin-bottom: 4px; }
.case-facts span { color: var(--paper-muted); }
.case-body { color: var(--paper-muted); font-size: 19px; line-height: 1.55; }
.case-body h2 { color: var(--paper-ink); margin: 0 0 26px; }
.case-body h3 { color: var(--paper-ink); margin-top: 38px; }
.case-gallery { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; padding: 0 max(24px, calc((100vw - var(--max)) / 2)) 110px; background: var(--paper); }
.case-gallery img, .case-gallery video { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line-dark); box-shadow: 0 22px 60px rgba(0,0,0,.16); }
.case-gallery.vertical-media { grid-template-columns: .78fr 1fr; align-items: stretch; }
.case-gallery.vertical-media video, .case-gallery.vertical-media img { height: 620px; object-fit: contain; object-position: center; background: radial-gradient(circle at center, #181511, #050505 72%); }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .hero { padding-top: 112px; }
  .intro-grid, .work-grid, .service-grid, .process-line, .team-grid, .reel-grid, .brand-wall, .case-detail-grid, .case-gallery { grid-template-columns: 1fr; }
  .case-card.large { min-height: 560px; }
  .case-card { min-height: 480px; }
  .hero-proof { grid-template-columns: 1fr; }
  .section-heading.split { align-items: flex-start; flex-direction: column; }
  .process-line div { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .brand-wall span, .brand-wall span:nth-child(3n), .brand-wall span:nth-last-child(-n + 3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .brand-wall span:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  .site-nav { top: 10px; height: 52px; }
  .nav-cta { display: none; }
  h1 { font-size: 46px; }
  h2 { font-size: 42px; }
  .intro, .services, .process, .closing, .work, .team, .proof, .media-reel { padding-top: 82px; padding-bottom: 82px; }
  .case-copy { padding: 22px; }
}

/* Mobile hardening: keeps external/cached image proportions under control. */
@media (max-width: 700px) {
  .site-nav {
    width: calc(100% - 22px);
    height: 54px;
    padding: 0 10px;
    gap: 10px;
  }
  .brand {
    flex: 0 0 auto;
    max-width: 172px;
    padding: 6px 10px;
    overflow: hidden;
  }
  .brand-logo {
    width: 140px !important;
    max-width: 140px !important;
    max-height: 32px !important;
    object-fit: contain;
  }
  .hero { min-height: 94svh; padding-left: 24px; padding-right: 24px; }
  .hero-media img { object-position: 58% 54%; }
  .hero-proof { margin-top: 26px; }
  .hero-proof div { min-height: auto; }

  .reel-grid article {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
  .reel-grid video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .brand-wall {
    width: 100%;
    border-radius: 22px;
  }
  .brand-wall span {
    min-height: 78px;
    padding: 16px 18px;
    justify-content: flex-start;
    text-align: left;
  }
  .brand-wall img {
    flex: 0 0 38px;
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    object-fit: contain;
  }

  .team-grid article { padding-top: 22px; }
  .team-grid img {
    width: 156px !important;
    height: 156px !important;
    max-width: 156px !important;
    border-radius: 50%;
    object-fit: cover;
  }

  .case-detail { padding: 74px 24px; }
  .case-facts div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .case-body { font-size: 17px; }
  .case-body h2 { font-size: 40px; letter-spacing: -.045em; }
  .case-gallery { padding: 0 24px 74px; }
  .case-gallery img, .case-gallery video {
    height: auto;
    aspect-ratio: 4 / 5;
  }
}

.case-phone-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(300px, 520px);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
  padding: 18px max(24px, calc((100vw - var(--max)) / 2)) 120px;
  background: var(--paper);
}
.phone-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 680px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 30%, rgba(192, 146, 82, .2), transparent 45%),
    linear-gradient(145deg, rgba(24, 20, 16, .08), rgba(24, 20, 16, .02));
  border: 1px solid var(--line-dark);
  box-shadow: 0 28px 70px rgba(0,0,0,.14);
}
.phone-frame {
  width: min(330px, 72vw);
  aspect-ratio: 9 / 20;
  padding: 12px;
  border-radius: 42px;
  background: linear-gradient(145deg, #111, #35312b);
  box-shadow: 0 28px 64px rgba(0,0,0,.38), inset 0 0 0 1px rgba(255,255,255,.18);
}
.phone-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 31px;
  background: #050505;
}
.phone-caption h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: .98;
  color: var(--paper-ink);
  letter-spacing: -.04em;
}
.phone-caption > p { color: #5f5a51; font-size: 18px; line-height: 1.65; }
.phone-caption ul { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.phone-caption li {
  padding: 13px 16px;
  border-radius: 999px;
  background: rgba(24, 20, 16, .06);
  color: var(--paper-ink);
  border: 1px solid rgba(24, 20, 16, .08);
}

@media (max-width: 920px) {
  .case-phone-showcase { grid-template-columns: 1fr; padding-bottom: 84px; }
  .phone-stage { min-height: auto; padding: 34px 0; }
  .phone-frame { width: min(310px, 78vw); }
}

@media (max-width: 560px) {
  .case-phone-showcase { padding-left: 18px; padding-right: 18px; gap: 28px; }
  .phone-stage { border-radius: 28px; padding: 24px 0; }
  .phone-frame { width: min(286px, 82vw); border-radius: 36px; padding: 10px; }
  .phone-frame video { border-radius: 27px; }
  .phone-caption h2 { font-size: 34px; }
  .phone-caption p { font-size: 16px; }
  .phone-caption li { border-radius: 18px; }
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
}
.lang-toggle button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 8px 9px;
  cursor: pointer;
}
.lang-toggle button.active {
  background: var(--ink);
  color: #050505;
}

@media (max-width: 700px) {
  .lang-toggle { margin-left: auto; }
  .lang-toggle button { padding: 7px 8px; font-size: 10px; }
}

.case-media-section {
  padding: 0 max(24px, calc((100vw - var(--max)) / 2)) 110px;
  background: var(--paper);
}
.case-media-section .section-heading {
  padding: 0 0 34px;
}
.case-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.media-tile {
  position: relative;
  display: block;
  width: 100%;
  min-height: 280px;
  padding: 0;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  cursor: zoom-in;
  box-shadow: 0 22px 60px rgba(0,0,0,.16);
}
.media-tile img,
.media-tile video {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease, filter .35s ease;
}
.media-tile:hover img,
.media-tile:hover video { transform: scale(1.035); filter: saturate(1.04) contrast(1.03); }
.media-tile:first-child { grid-column: span 2; min-height: 430px; }
.media-tile:first-child img,
.media-tile:first-child video { min-height: 430px; }
.video-tile::after,
.case-gallery video::after {
  content: '';
}
.media-play {
  position: absolute;
  left: 18px;
  bottom: 18px;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #050505;
  background: var(--ink);
  box-shadow: 0 14px 34px rgba(0,0,0,.25);
}
.case-gallery img,
.case-gallery video,
.phone-frame video { cursor: zoom-in; }

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 42px);
  background: rgba(3,3,3,.88);
  backdrop-filter: blur(18px);
}
.media-lightbox.open { display: flex; }
.media-lightbox-panel {
  position: relative;
  width: min(1180px, 96vw);
  max-height: 92svh;
  display: grid;
  gap: 12px;
}
.media-lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(72svh, 720px);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  background: #050505;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}
.media-lightbox-stage img,
.media-lightbox-stage video {
  max-width: 100%;
  max-height: 84svh;
  width: auto;
  height: auto;
  display: block;
}
.media-lightbox-stage video { width: auto; max-width: 100%; }
.media-lightbox-caption {
  color: rgba(243,239,230,.82);
  font-size: 14px;
  text-align: center;
}
.media-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(243,239,230,.94);
  color: #050505;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 920px) {
  .case-media-grid { grid-template-columns: 1fr; }
  .media-tile:first-child { grid-column: auto; min-height: 320px; }
  .media-tile:first-child img,
  .media-tile:first-child video { min-height: 320px; }
  .media-lightbox-close { top: 8px; right: 8px; }
}

/* v6 Europcar: make brand wall robust with any number of client cells */
.brand-wall {
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.brand-wall span {
  border: 0 !important;
  background: rgba(255,255,255,.06);
}
.brand-wall .brand-text {
  font-size: clamp(18px, 2vw, 27px);
  color: rgba(247,244,238,.9);
}

.brand-wall .brand-logo-wide img {
  width: 70px;
  max-height: 34px;
  padding: 0;
  border-radius: 5px;
  background: transparent;
}

/* v7 brand wall cleanup: independent, uniform logo cards */
.brand-wall {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--line);
}
.brand-wall span,
.brand-wall span:nth-child(3n),
.brand-wall span:nth-last-child(-n + 3) {
  min-height: 104px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  justify-content: initial;
  gap: 16px;
  border: 0 !important;
  background: rgba(255,255,255,.055);
  text-align: left;
}
.brand-wall img,
.brand-wall .brand-logo-wide img {
  width: 42px !important;
  height: 32px !important;
  max-width: 42px !important;
  max-height: 32px !important;
  box-sizing: border-box;
  object-fit: contain;
  padding: 5px;
  border-radius: 9px;
  background: rgba(255,255,255,.94);
  flex: none;
}
.brand-wall span {
  font-size: clamp(14px, 1.35vw, 18px);
  line-height: 1.16;
}
.brand-wall span:last-child {
  border-bottom: 0 !important;
}
@media (max-width: 920px) {
  .brand-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-wall span,
  .brand-wall span:nth-child(3n),
  .brand-wall span:nth-last-child(-n + 3) {
    min-height: 92px;
    border: 0 !important;
  }
}
@media (max-width: 560px) {
  .brand-wall { grid-template-columns: 1fr; }
  .brand-wall span,
  .brand-wall span:nth-child(3n),
  .brand-wall span:nth-last-child(-n + 3) {
    min-height: 76px;
    padding: 16px 18px;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
  }
  .brand-wall img,
  .brand-wall .brand-logo-wide img {
    width: 38px !important;
    height: 30px !important;
    max-width: 38px !important;
    max-height: 30px !important;
  }
}

/* v7.1 brand wall: no visible empty grid cells when count is uneven */
.brand-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1px;
  padding: 1px;
  background: transparent;
  border: 1px solid var(--line);
}
.brand-wall span,
.brand-wall span:nth-child(3n),
.brand-wall span:nth-last-child(-n + 3) {
  flex: 0 1 calc((100% - 2px) / 3);
  box-sizing: border-box;
}
@media (max-width: 920px) {
  .brand-wall span,
  .brand-wall span:nth-child(3n),
  .brand-wall span:nth-last-child(-n + 3) {
    flex-basis: calc((100% - 1px) / 2);
  }
}
@media (max-width: 560px) {
  .brand-wall span,
  .brand-wall span:nth-child(3n),
  .brand-wall span:nth-last-child(-n + 3) {
    flex-basis: 100%;
  }
}
