:root {
  --bg: #000000;
  --bg-2: #0a0a0a;
  --fg: #ecebe6;
  --muted: #8d8b85;
  --line: rgba(236, 235, 230, 0.12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter Tight", system-ui, sans-serif;
  --pad: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--pad);
  mix-blend-mode: difference;
}
.brand { font-family: var(--serif); font-size: 22px; letter-spacing: .35em; }
.nav nav { display: flex; gap: clamp(14px, 3vw, 40px); }
.nav nav a {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  opacity: .8; transition: opacity .3s;
}
.nav nav a:hover { opacity: 1; }

/* ---------- HERO ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.2) 50%, rgba(0,0,0,.4) 100%);
}
/* Same container as the About/Social/Contact band so the left edges line up */
.hero-content { position: relative; width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad) clamp(70px, 12vh, 130px); }
.hero .kicker { white-space: nowrap; }
.kicker { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.hero .kicker { color: rgba(236,235,230,.75); }
.hero h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(56px, 12vw, 180px); line-height: .9; letter-spacing: .08em;
  margin: 18px 0 34px -0.05em;
}
.btn {
  display: inline-flex; align-items: center; gap: 14px; white-space: nowrap;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  padding: 14px 22px 14px 16px; border: 1px solid rgba(236,235,230,.4);
  transition: background .3s, color .3s, border-color .3s;
}
.btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.play {
  flex: none; width: 0; height: 0; border-left: 9px solid currentColor;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.scroll-cue {
  position: absolute; right: var(--pad); bottom: 36px;
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: rgba(236,235,230,.6);
  writing-mode: vertical-rl;
}
.scroll-cue::after {
  content: ""; display: inline-block; width: 1px; height: 48px; margin-top: 12px;
  background: currentColor; animation: cue 2.4s ease-in-out infinite; transform-origin: top;
}
@keyframes cue { 0%,100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }

/* ---------- SECTIONS ---------- */
.section { padding: clamp(90px, 14vw, 180px) var(--pad) 0; }
.section-head {
  display: flex; align-items: baseline; gap: 20px;
  border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: clamp(36px, 6vw, 70px);
}
.index { font-size: 12px; color: var(--muted); letter-spacing: .15em; }
.section-head h2 {
  font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 6vw, 76px); line-height: 1;
}
.lead { max-width: 560px; color: var(--muted); margin: -30px 0 40px; }

/* ---------- WORKS (full-width strips) ---------- */
.works { display: grid; gap: 10px; padding-top: 10px; }
.work {
  position: relative; width: 100%; aspect-ratio: 3.6 / 1; min-height: 220px;
  overflow: hidden; cursor: pointer; background: var(--bg-2);
}
.work img, .work video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .6s ease, transform 1.6s cubic-bezier(.2,.7,.2,1);
}
.work video { opacity: 0; }
.work.playing video { opacity: 1; }
.work:hover img, .work:hover video { transform: scale(1.02); }
.work::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0) 55%);
  opacity: 0; transition: opacity .5s;
}
.work-meta {
  position: absolute; left: var(--pad); bottom: clamp(18px, 3vw, 40px); z-index: 2;
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s;
}
.work-meta .title { font-weight: 600; font-size: clamp(20px, 2vw, 28px); letter-spacing: .04em; line-height: 1.1; }
.work-meta .category { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.work:hover::after, .work.playing::after, .work:hover .work-meta, .work.playing .work-meta { opacity: 1; transform: none; }
@media (hover: none) { .work::after, .work-meta { opacity: 1; transform: none; } }

/* ---------- ADDONS LIST ---------- */
.list { list-style: none; border-top: 1px solid var(--line); }
.list li { border-bottom: 1px solid var(--line); }
.list a, .list li > div {
  display: grid; grid-template-columns: minmax(180px, 1fr) 2fr 140px; gap: 24px; align-items: baseline;
  padding: 28px 0; transition: padding .4s, color .3s;
}
.list a:hover { padding-left: 14px; }
.list .name { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); line-height: 1.1; }
.list .name small { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-left: 6px; }
.list .desc { color: var(--muted); font-size: 15px; }
.list .meta { text-align: right; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; }
.list a .meta::after { content: " ↗"; }
.list li.soon, .list li.soon.reveal.in { opacity: .5; }

/* ---------- SERVICES ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.service { padding: 32px 28px 40px 0; border-right: 1px solid var(--line); }
.service + .service { padding-left: 28px; }
.service:last-child { border-right: 0; }
.service h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; margin-bottom: 14px; }
.service p { color: var(--muted); font-size: 15px; }

/* ---------- ABOUT / CONTACT ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 8vw, 120px); }
.bio { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.35; font-weight: 300; }
.contact .mail {
  display: inline-block; margin: 16px 0 28px;
  font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px);
  border-bottom: 1px solid var(--line); padding-bottom: 4px; word-break: break-all;
  transition: border-color .3s;
}
.contact .mail:hover { border-color: var(--fg); }
.socials { display: flex; gap: 28px; }
.socials a { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.socials a:hover { color: var(--fg); }

.footer {
  display: flex; justify-content: space-between;
  margin-top: clamp(100px, 14vw, 180px); padding: 28px var(--pad);
  border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); letter-spacing: .08em;
}

/* ---------- VIEWER (fiche projet) ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 100; background: #000;
  overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s;
}
.viewer.open { opacity: 1; visibility: visible; }
.viewer-close {
  position: fixed; top: 20px; right: var(--pad); z-index: 2;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; padding: 10px 16px;
  background: rgba(5,5,5,.75); backdrop-filter: blur(8px); border: 1px solid var(--line);
}
.viewer-close:hover { border-color: var(--fg); }
.viewer-body { padding: 80px var(--pad) 100px; max-width: 1500px; margin: 0 auto; }
.viewer-player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.viewer-player video, .viewer-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.viewer-player.free { aspect-ratio: auto; }
.viewer-player.free video { position: static; width: 100%; height: auto; max-height: 85vh; }
.viewer-meta {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding: 40px 0 60px;
  border-bottom: 1px solid var(--line);
}
.viewer-meta h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(42px, 6vw, 84px); line-height: 1; }
.viewer-meta .kicker { margin-top: 14px; }
.viewer-meta .text { color: var(--muted); align-self: end; }
.gallery-title { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 60px 0 24px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery .wide { grid-column: 1 / -1; }
.gallery .tall { grid-column: 1 / -1; width: min(100%, 520px); height: auto; margin: 0 auto; }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; background: var(--bg-2); }
body.locked { overflow: hidden; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- INFO BAND (between showreel and work) ---------- */
.info-band {
  display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 40px;
  padding: clamp(90px, 11vw, 150px) var(--pad) clamp(80px, 10vw, 140px);
  max-width: 1440px; margin: 0 auto;
}
.info-about { padding-right: 12%; }
.info-col { display: flex; flex-direction: column; align-items: flex-start; }
.info-label { font-size: 15px; color: var(--muted); }
.info-dash { color: var(--muted); margin: 14px 0 22px; line-height: 1; }
.info-lead { font-weight: 600; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.3; max-width: 380px; }
.info-col p { font-size: 16px; line-height: 1.5; max-width: 300px; }
.info-col .info-lead { font-size: clamp(20px, 1.8vw, 24px); max-width: 380px; }
.info-col > a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; line-height: 1.6; transition: color .3s; }
.info-col > a:hover, .info-col a.inline:hover { color: var(--fg); }
.info-col a.inline { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 800px) {
  .info-band { grid-template-columns: 1fr 1fr; gap: 48px 24px; }
  .info-about { grid-column: 1 / -1; padding-right: 0; }
}


/* ---------- INFO PAGE ---------- */
.nav nav a.active { opacity: 1; color: var(--muted); }
.info-page { max-width: 1440px; margin: 0 auto; padding: clamp(130px, 14vw, 180px) var(--pad) 0; }
.info-row { display: grid; gap: 40px; margin-bottom: clamp(90px, 11vw, 150px); }
.info-row-4 { grid-template-columns: repeat(4, 1fr); }
.info-row-split { grid-template-columns: 1fr 1.6fr 0.4fr; }
.info-block { display: flex; flex-direction: column; align-items: flex-start; }
.info-title { font-family: var(--sans); font-weight: 600; font-size: clamp(22px, 1.9vw, 26px); line-height: 1.2; }
.info-list { list-style: none; font-size: 16px; line-height: 1.55; }
.info-text { font-size: 16px; line-height: 1.65; max-width: 520px; }
.info-row-4 .info-text { max-width: 300px; }
.info-body { padding-top: calc(15px * 1.6 + 14px + 22px + 1em); }
.info-clients { font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; line-height: 1.6; }
.info-clients span { color: var(--muted); font-weight: 300; font-size: .75em; }
.info-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
.info-links a:hover, .info-text a.inline:hover { color: var(--fg); }
.info-text a.inline { text-decoration: underline; text-underline-offset: 3px; }
.page-info .site-footer { margin-top: 0; }
.page-info .nav { background: #000; mix-blend-mode: normal; }
@media (max-width: 900px) {
  .info-row-4 { grid-template-columns: 1fr 1fr; gap: 56px 24px; }
  .info-row-split { grid-template-columns: 1fr; gap: 24px; }
  .info-body { padding-top: 0; }
}

/* ---------- SITE FOOTER (every page) ---------- */
.site-footer { max-width: 780px; margin: clamp(120px, 14vw, 200px) auto 0; padding: 0 var(--pad) 70px; }
.footer-motto { text-align: center; font-weight: 600; font-size: clamp(22px, 2vw, 28px); letter-spacing: .01em; margin-bottom: 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 0.9fr; gap: 24px; border-top: 1px solid rgba(236,235,230,.35); padding-top: 22px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-col .info-label { font-size: 13px; }
.footer-col .info-dash { margin: 10px 0 18px; }
.footer-strong { font-weight: 600; font-size: 15px; }
a.footer-strong:hover { color: var(--muted); }
.footer-link { color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; line-height: 1.6; transition: color .3s; }
.footer-link:hover { color: var(--fg); }
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .footer-col:first-child { grid-column: 1 / -1; }
}

/* ---------- PROJECT STORY (inside the project viewer) ---------- */
.viewer { overflow-x: hidden; }
.story { padding-top: clamp(60px, 8vw, 110px); }
.story-block {
  display: grid; grid-template-columns: 1fr 2fr; gap: 40px;
  max-width: 1000px; margin: 0 auto; padding: clamp(50px, 6vw, 80px) 0 clamp(70px, 8vw, 110px);
}
.story-head { display: flex; flex-direction: column; align-items: flex-start; }
.story-head .info-label { color: var(--fg); opacity: .8; }
.story-head h3 { font-family: var(--sans); font-weight: 600; font-size: clamp(22px, 1.9vw, 26px); line-height: 1.2; color: #bdbcb8; }
.story-text { padding-top: calc(15px * 1.6 + 14px + 22px + 1em); }
.story-text p { color: #b5b4b0; font-weight: 400; font-size: 16px; line-height: 1.6; max-width: 600px; }
.story-text p + p { margin-top: 1.4em; }
.story-quote {
  max-width: 1200px; margin: 0 auto clamp(90px, 10vw, 140px);
  font-family: var(--sans); font-weight: 600; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.15;
  color: #6f6e6b; letter-spacing: -.01em;
}
.story-strip {
  width: 100vw; margin-left: calc(50% - 50vw);
  aspect-ratio: 2.7 / 1; overflow: hidden; background: var(--bg-2);
}
.story-strip img, .story-strip video { width: 100%; height: 100%; object-fit: cover; }
.story-gallery { max-width: 1200px; margin: 0 auto; }
.story-credits { grid-template-columns: 1fr; }
.credits-lines { color: #b5b4b0; font-weight: 400; font-size: 16px; line-height: 1.5; }
.story-back {
  display: block; max-width: 1000px; margin: 0 auto 40px; width: 100%; text-align: left;
  color: var(--muted); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; transition: color .3s;
}
.story-back:hover { color: var(--fg); }
@media (max-width: 800px) {
  .story-block { grid-template-columns: 1fr; gap: 20px; }
  .story-text { padding-top: 0; }
  .story-strip { aspect-ratio: 16 / 9; }
}

/* ---------- TRANSITIONS (black shutter wiping upward) ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 1000; background: #000;
  display: flex; align-items: center; justify-content: center;
  transform: translateY(100%); pointer-events: none;
}
.curtain::before {               /* thin light line on the leading edge */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(236,235,230,.35), transparent);
}
.curtain-mark {
  font-family: var(--serif); font-size: 22px; letter-spacing: .5em; padding-left: .5em;
  color: var(--fg); opacity: 0; transition: opacity .35s ease;
}
.curtain.is-covering {
  pointer-events: all;
  animation: curtainIn .65s cubic-bezier(.77, 0, .18, 1) forwards;
}
.curtain.is-covered { transform: none; pointer-events: all; }
.curtain.is-covering .curtain-mark, .curtain.is-covered .curtain-mark { opacity: .55; transition-delay: .25s; }
.curtain.is-leaving {
  animation: curtainOut .75s cubic-bezier(.77, 0, .18, 1) forwards;
}
.curtain.is-leaving .curtain-mark { opacity: 0; transition-delay: 0s; transition-duration: .2s; }
.curtain:not(.is-covering):not(.is-covered):not(.is-leaving) { visibility: hidden; }
@keyframes curtainIn  { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes curtainOut { from { transform: translateY(0); } to { transform: translateY(-100%); } }
/* safety net: if JavaScript is off, never keep the page hidden */
.curtain.is-covered { animation: curtainOut .75s cubic-bezier(.77, 0, .18, 1) 2.5s forwards; }
@media (prefers-reduced-motion: reduce) { .curtain { display: none; } }

/* ---------- SHOW VISUALS PAGE ---------- */
.sv-link { display: inline-block; margin-top: 14px; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--fg); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.sv-link:hover { border-color: var(--fg); }
.page-sv .nav { background: linear-gradient(to bottom, rgba(0,0,0,.7), rgba(0,0,0,0)); mix-blend-mode: normal; }
.sv-hero { height: 62vh; min-height: 360px; position: relative; overflow: hidden; }
.sv-hero video { width: 100%; height: 100%; object-fit: cover; }
.sv-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.2) 40%, #000); }
.sv-page { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.sv-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-top: -90px; position: relative; z-index: 2; }
.sv-intro h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(54px, 8vw, 120px); line-height: .95; }
.sv-lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: #cfcec9; max-width: 560px; }
.sv-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: clamp(60px, 7vw, 100px) 0; padding-top: 28px; border-top: 1px solid var(--line); }
.sv-fact { font-weight: 500; font-size: 17px; line-height: 1.4; }
.sv-offer { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: clamp(100px, 12vw, 170px); }
.sv-offer-item { padding: 30px 26px 36px 0; }
.sv-offer-item + .sv-offer-item { padding-left: 26px; border-left: 1px solid var(--line); }
.sv-num { font-size: 12px; color: var(--muted); letter-spacing: .15em; }
.sv-offer-item h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; margin: 12px 0; }
.sv-offer-item p { color: var(--muted); font-size: 15px; }

.case { margin-bottom: clamp(110px, 13vw, 190px); }
.case-head { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.case-meta h2 { font-weight: 600; font-size: clamp(30px, 3vw, 42px); line-height: 1.05; margin-bottom: 24px; }
.case-meta dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 16px; font-size: 14px; }
.case-meta dt { color: var(--muted); }
.case-meta dd { color: #d8d7d2; }
.case-text { align-self: end; color: #b5b4b0; font-size: 16px; line-height: 1.65; max-width: 620px; }

.tile { position: relative; overflow: hidden; background: var(--bg-2); cursor: pointer; aspect-ratio: 16 / 9; margin: 0; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .5s; }
.tile:hover img, .tile:hover video { transform: scale(1.03); }
.tile.vert { aspect-ratio: 9 / 16; }
.tile.sq { aspect-ratio: 1; }
.tile figcaption {
  position: absolute; left: 14px; bottom: 12px; font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.85); text-shadow: 0 1px 8px rgba(0,0,0,.8); pointer-events: none;
}
.tile::after { content: "↗"; position: absolute; top: 10px; right: 12px; font-size: 14px; opacity: 0; transition: opacity .3s; text-shadow: 0 1px 6px #000; }
.tile:hover::after { opacity: .9; }
.media { display: grid; gap: 10px; }
.media + .media { margin-top: 10px; }
.m-wide { grid-template-columns: repeat(3, 1fr); }
.m-wide .big { grid-column: 1 / -1; aspect-ratio: 2.4 / 1; }
.m-split { grid-template-columns: 1fr .633fr; align-items: start; }
.m-split .stack { display: grid; gap: 10px; }
.m-verticals { grid-template-columns: repeat(4, 1fr); }
.m-verticals.three { grid-template-columns: repeat(3, 1fr); max-width: 75%; }
.m-wide-one .tile { aspect-ratio: 2.4 / 1; }
.m-covers { grid-template-columns: repeat(4, 1fr); }
.m-grid2 { grid-template-columns: 1fr 1fr; }
.tile.poster { aspect-ratio: 4 / 5; }

.sv-more { margin-bottom: clamp(100px, 12vw, 170px); }
.sv-more .section-head { margin-bottom: 40px; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 10px; }
.more-grid.verticals { grid-template-columns: repeat(4, 1fr); margin-top: 40px; }
.more-name { font-weight: 600; font-size: 17px; margin-top: 12px; }
.more-type { color: var(--muted); font-size: 13px; }

.sv-cta { max-width: 760px; margin: 0 auto; text-align: left; }
.sv-cta h2 { font-weight: 600; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.15; margin-bottom: 18px; }
.sv-cta > p:not(.info-label) { color: #b5b4b0; font-size: 17px; margin-bottom: 30px; max-width: 560px; }
.sv-cta .btn { text-transform: none; letter-spacing: .02em; font-size: 15px; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; padding: 60px var(--pad) 30px; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-body { max-width: 100%; max-height: 100%; display: flex; }
.lightbox-body video, .lightbox-body img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: var(--pad); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; padding: 10px 16px; border: 1px solid var(--line); }
.lightbox-close:hover { border-color: var(--fg); }

@media (max-width: 900px) {
  .sv-intro, .case-head { grid-template-columns: 1fr; }
  .sv-intro { margin-top: -60px; }
  .sv-facts, .sv-offer { grid-template-columns: 1fr 1fr; }
  .sv-offer-item { padding: 26px 18px 28px 0 !important; border-left: 0 !important; border-bottom: 1px solid var(--line); }
  .sv-offer-item:nth-child(even) { padding-left: 18px !important; border-left: 1px solid var(--line) !important; }
  .m-verticals, .more-grid.verticals { grid-template-columns: 1fr 1fr; }
  .m-verticals.three { max-width: none; grid-template-columns: repeat(3, 1fr); }
  .m-covers { grid-template-columns: repeat(2, 1fr); }
  .more-grid { grid-template-columns: 1fr; }
  .m-split { grid-template-columns: 1fr; }
  .m-split .vert { aspect-ratio: 9 / 16; height: auto; width: 60%; }
}
@media (max-width: 640px) {
  .sv-facts, .sv-offer { grid-template-columns: 1fr; }
  .sv-offer-item:nth-child(even) { padding-left: 0 !important; border-left: 0 !important; }
  .m-wide { grid-template-columns: 1fr 1fr; }
  .m-wide .tile:not(.big):last-child { display: none; }
}

/* ---------- MOBILE ---------- */
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service { padding: 28px 20px 32px 0 !important; border-right: 0; border-bottom: 1px solid var(--line); }
  .service:nth-child(even) { padding-left: 20px !important; border-left: 1px solid var(--line); }
  .about-grid, .viewer-meta { grid-template-columns: 1fr; }
  .list a, .list li > div { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .list .desc { grid-column: 1 / -1; grid-row: 2; }
  .list .meta { grid-row: 1; grid-column: 2; }
}
@media (max-width: 640px) {
  .nav nav a.nav-extra { display: none; }
  .work { aspect-ratio: 2.2 / 1; min-height: 0; }
  .services { grid-template-columns: 1fr; }
  .service:nth-child(even) { padding-left: 0 !important; border-left: 0; }
  .gallery { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- MOBILE NAV FIX: solid bar so the menu never overlaps text (phones only) ---------- */
@media (max-width: 640px) {
  .nav, .page-sv .nav, .page-info .nav {
    mix-blend-mode: normal;
    background: rgba(0, 0, 0, .88);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    padding-top: 16px; padding-bottom: 16px;
    border-bottom: 1px solid rgba(236, 235, 230, .08);
  }
  .nav nav { gap: 16px; }
  .nav nav a { font-size: 11px; letter-spacing: .12em; }
  .brand { font-size: 19px; letter-spacing: .3em; }
}
