/* ==========================================================================
   MergeXR Studio — design system
   Rebuilt to match https://www.mergexr.studio/
   Type: Montserrat (thin 100 / light 300 / regular 400 / medium 500 / semibold 600)
   Palette: black canvas, white text, #0087FE accent
   ========================================================================== */

:root {
  --bg: #000;
  --surface: #191919;
  --surface-2: #0e0e0e;
  --line: rgba(255, 255, 255, 0.14);
  --text: #fff;
  --muted: #979797;
  --muted-2: #b0b0b0;
  --accent: #0087fe;
  --accent-dark: #0069c6;

  --container: 1344px; /* 1280px of content at 1440 — matches the live grid */
  --gutter: 32px;
  --radius: 14px;
  --radius-sm: 8px;

  --header-h: 76px;
  --rail-w: 37px;

  --ff: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* --- reset ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, h5, h6, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--accent); color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 900px; }

.section { padding-block: 100px; }
.section--tight { padding-block: 64px; }
.section--flush { padding-block: 0; }

/* --- typography ----------------------------------------------------------- */
.display {
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
}
.h1 {
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.28;
}
.h2 {
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 45px);
  line-height: 1.22;
}
.h3 {
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.25;
}
.h4 { font-weight: 600; font-size: 25px; line-height: 1.3; }
.lead {
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--text);
}
.body { font-size: 18px; line-height: 1.55; color: var(--muted); }
.body--light { color: rgba(255, 255, 255, 0.86); }
.small { font-size: 14px; line-height: 1.5; }

.accent { color: var(--accent); }
.center { text-align: center; }
.upper { text-transform: uppercase; }

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border: 2px solid #fff;
  border-radius: 4px;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.2;
  color: #fff;
  background: transparent;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { background: #fff; color: #000; }
.btn--lg { font-size: 22px; padding: 15px 34px; }
.btn--sm { font-size: 15px; padding: 9px 20px; }
.btn--accent { border-color: var(--accent); background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  color: #fff;
  transition: background-color .25s ease, transform .25s ease;
}
.arrow-btn:hover { background: var(--accent); transform: translateX(3px); }
.arrow-btn svg { width: 20px; height: 20px; }

/* --- header --------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--header-h);
  background: #000;
  display: flex;
  align-items: center;
}
.site-header__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { flex: none; }
.brand img { width: 147px; height: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 34px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 2px;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
  transition: color .2s ease;
}
.nav__link:hover,
.nav__item.is-current > .nav__link { color: var(--accent); }
.nav__caret { width: 10px; height: 10px; flex: none; transition: transform .2s ease; }
.nav__item:hover .nav__caret { transform: rotate(180deg); }

.nav__sub {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 220px;
  padding: 10px 0;
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav__item:hover .nav__sub,
.nav__item:focus-within .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub a {
  display: block;
  padding: 8px 18px;
  font-size: 15px;
  color: #fff;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}
.nav__sub a:hover { color: var(--accent); background: rgba(255, 255, 255, 0.05); }

.nav-toggle { display: none; margin-left: auto; width: 34px; height: 34px; }
.nav-toggle span {
  display: block; height: 2px; background: #fff; margin: 6px 0;
  transition: transform .25s ease, opacity .25s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- social rail ---------------------------------------------------------- */
.social-rail {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  width: var(--rail-w);
  padding: 6px 0;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.social-rail a { opacity: .85; transition: opacity .2s ease, transform .2s ease; }
.social-rail a:hover { opacity: 1; transform: scale(1.12); }
.social-rail img { width: 24px; height: 24px; }

/* --- hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 700px;
  height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: var(--header-h);
}
.hero--tall { height: 100vh; min-height: 760px; margin-top: 0; }
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.55) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  padding-inline: var(--gutter);
  text-align: center;
}
.hero__title {
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.3;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .55);
}
.hero__sub {
  margin-top: 18px;
  font-weight: 400;
  font-size: clamp(18px, 2.4vw, 35px);
  line-height: 1.35;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .5);
}
.hero__cta { margin-top: 30px; }
.hero__cta .btn { font-size: clamp(16px, 1.7vw, 25px); padding: 12px 30px; }

/* page header for text-only pages */
.page-head {
  margin-top: var(--header-h);
  padding-block: 110px 40px;
  text-align: center;
}
.page-head__title { font-weight: 600; font-size: clamp(34px, 4vw, 56px); line-height: 1.2; }
.page-head__sub { margin-top: 16px; font-size: 18px; color: var(--muted); }

/* --- partner strip -------------------------------------------------------- */
.partners { padding-block: 90px 0; }
.partners__grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  gap: 40px;
}
.partners__grid img {
  max-height: 96px;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
  filter: grayscale(0);
}
.partners__rule {
  margin-top: 56px;
  height: 1px;
  background: var(--accent);
}

/* --- split (heading left / body right) ------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split__title { font-weight: 600; font-size: clamp(30px, 3.3vw, 47.5px); line-height: 1.2; }
.split__eyebrow { font-weight: 600; font-size: 24px; margin-bottom: 22px; }
.split__body { font-weight: 100; font-size: 20px; line-height: 1.6; }

/* --- media / text alternating rows ---------------------------------------- */
.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.media-row + .media-row { margin-top: 110px; }
.media-row--reverse .media-row__media { order: 2; }
.media-row__media video,
.media-row__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
.media-row__title { font-weight: 600; font-size: clamp(30px, 3.8vw, 54.5px); line-height: 1.18; }
.media-row__body { margin-top: 26px; font-size: 18px; line-height: 1.6; }

/* --- card grid ------------------------------------------------------------ */
.card-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.card {
  display: flex;
  flex-direction: column;
  padding: 21px;
  background: var(--surface);
  border-radius: var(--radius);
}
.card__media {
  width: 100%;
  aspect-ratio: 377 / 215;
  object-fit: cover;
  border-radius: 2px;
}
.card__title {
  margin-top: 26px;
  padding-bottom: 12px;
  font-weight: 600;
  font-size: 25px;
  line-height: 1.25;
  border-bottom: 3px solid var(--accent);
  align-self: flex-start;
}
.card__body {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--muted);
  white-space: pre-line;
}
.card__foot { margin-top: auto; padding-top: 28px; }

/* --- feature list columns (PROS / CONS) ----------------------------------- */
.list-cols {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 80px;
}
.list-cols li {
  font-size: 24px;
  line-height: 1.7;
  text-transform: uppercase;
}
.list-title { font-weight: 600; font-size: clamp(32px, 3.4vw, 52px); text-align: center; }

/* --- spec cards (studio facility figures) --------------------------------- */
.spec-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.spec-card {
  padding: 24px 26px 28px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}
.spec-card__label { font-weight: 600; font-size: 22px; color: var(--accent); }
.spec-card__value { margin-top: 6px; font-weight: 600; font-size: 28px; }
.spec-card__note { margin-top: 22px; font-weight: 300; font-size: 16px; line-height: 1.45; }

/* Oversized ghost word sitting behind a section heading. */
.ghost-stack { position: relative; }
.ghost-word {
  font-weight: 600;
  font-size: clamp(64px, 10vw, 140px);
  line-height: 1;
  color: #1c1c1c;
  pointer-events: none;
  user-select: none;
}
.ghost-stack__fore { position: relative; margin-top: -0.42em; }

/* --- masonry photo strip -------------------------------------------------- */
.masonry {
  columns: 4;
  column-gap: 4px;
}
.masonry img {
  width: 100%;
  margin-bottom: 4px;
  break-inside: avoid;
}

/* --- tall image tiles (services grid) ------------------------------------- */
.tile-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tile { display: block; }
.tile img {
  width: 100%;
  aspect-ratio: 455 / 650;
  object-fit: cover;
  border-radius: 4px;
}
.tile__label { margin-top: 18px; font-weight: 400; font-size: 28px; }
.tile:hover .tile__label { color: var(--accent); }

/* --- showcase cards (named work samples) ---------------------------------- */
.showcase-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px 40px;
}
.showcase img {
  width: 100%;
  aspect-ratio: 498 / 281;
  object-fit: contain;
  background: #0a0a0a;
  border-radius: 4px;
}
.showcase__title { margin-top: 16px; font-weight: 500; font-size: 36px; line-height: 1.2; }

/* --- benefit list (icon + heading + copy) --------------------------------- */
.benefit-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 70px;
}
.benefit {
  display: grid;
  grid-template-columns: 107px 1fr;
  gap: 26px;
  align-items: start;
}
.benefit img { width: 100%; height: auto; }
.benefit h3 { font-weight: 600; font-size: 22px; line-height: 1.3; }
.benefit p { margin-top: 12px; font-size: 16px; line-height: 1.5; }

/* --- full-bleed media band ------------------------------------------------ */
.band { width: 100%; }
.band img, .band video { width: 100%; height: auto; }

/* --- gallery -------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gallery-grid--4 { grid-template-columns: repeat(4, 1fr); }
.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface);
  aspect-ratio: 4 / 3;
}
.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* --- bleed row (image runs off the page edge, copy in the container) ------- */
.bleed-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  max-width: 1600px;
  margin-inline: auto;
}
.bleed-row + .bleed-row { margin-top: 120px; }
.bleed-row__media img,
.bleed-row__media video { width: 100%; height: 480px; object-fit: cover; }
.bleed-row__copy { padding-inline: 40px; max-width: 660px; }
.bleed-row--right .bleed-row__media { order: 2; }
.bleed-row--right .bleed-row__copy { margin-left: auto; }
.bleed-row__title { font-weight: 600; font-size: clamp(34px, 4.4vw, 62px); line-height: 1.1; }
.bleed-row__body { margin-top: 22px; font-size: 18px; line-height: 1.6; }

/* --- team ----------------------------------------------------------------- */
.team-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.team-card {
  padding: 24px;
  text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--accent);
  border-radius: 18px;
}
.team-card img {
  width: 100%;
  max-width: 303px;
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0 auto 22px;
  border-radius: 12px;
}
.team-card__name { font-weight: 600; font-size: 25px; }
.team-card__role { margin-top: 8px; font-size: 18px; color: rgba(255,255,255,.9); }
.team-card__social { margin-top: 16px; display: inline-flex; }
.team-card__social svg { width: 34px; height: 34px; }
.team-card__social:hover { color: var(--accent); }

/* --- careers / enquiry form ------------------------------------------------ */
.form-grid {
  margin-top: 48px;
  max-width: 940px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 40px;
}
.form-grid .field--wide { grid-column: 1 / -1; }
.form-grid .field label { text-transform: none; letter-spacing: 0; font-size: 14px; color: #fff; }
.form-grid .field input,
.form-grid .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 0;
}
.form-grid .field input:focus,
.form-grid .field textarea:focus { border-bottom-color: var(--accent); }
.form-actions { grid-column: 1 / -1; margin-top: 24px; text-align: center; }
.file-field {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 16px;
}
.file-field input { font-size: 14px; color: var(--muted); }

/* --- blog ----------------------------------------------------------------- */
.post-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__title { font-weight: 600; font-size: 20px; line-height: 1.35; }
.post-card__meta { margin-top: 14px; font-size: 13px; color: var(--muted); }
.post-card__excerpt { margin-top: 14px; font-size: 15px; color: var(--muted); line-height: 1.6; }
.post-card__more { margin-top: auto; padding-top: 20px; font-size: 15px; color: var(--accent); }

.article { max-width: 780px; margin-inline: auto; }
.article__hero { width: 100%; border-radius: var(--radius); margin-bottom: 44px; }
.article p { margin-bottom: 22px; font-size: 18px; line-height: 1.75; color: rgba(255,255,255,.86); }
.article h2 { margin: 44px 0 18px; font-weight: 600; font-size: 28px; }
.article h3 { margin: 34px 0 14px; font-weight: 600; font-size: 22px; }
.article ul { margin-bottom: 22px; padding-left: 22px; list-style: disc; }
.article li { margin-bottom: 10px; font-size: 18px; line-height: 1.7; color: rgba(255,255,255,.86); }
.article__meta { margin-bottom: 30px; font-size: 14px; color: var(--muted); }

/* --- legal / long-form text ----------------------------------------------- */
.legal { max-width: 900px; margin-inline: auto; }
.legal p { margin-bottom: 20px; font-size: 16px; line-height: 1.8; color: rgba(255,255,255,.82); }
.legal h2 { margin: 40px 0 16px; font-weight: 600; font-size: 24px; }
.legal h3 { margin: 30px 0 12px; font-weight: 600; font-size: 19px; }
.legal ul { margin-bottom: 20px; padding-left: 22px; list-style: disc; }
.legal li { margin-bottom: 8px; font-size: 16px; line-height: 1.8; color: rgba(255,255,255,.82); }

/* --- store ---------------------------------------------------------------- */
.product-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--surface);
  border-radius: var(--radius-sm);
}
.product-card__name { margin-top: 14px; font-size: 16px; }
.product-card__price { margin-top: 6px; font-size: 16px; color: var(--muted); }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.product-detail img { width: 100%; border-radius: var(--radius-sm); background: var(--surface); }
.product-detail__price { margin-top: 14px; font-size: 22px; color: var(--muted); }
.product-detail__desc { margin-top: 26px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.qty {
  margin-top: 26px; display: flex; align-items: center; gap: 12px;
  font-size: 14px; text-transform: uppercase; letter-spacing: .04em;
}
.qty input {
  width: 74px; padding: 10px; background: transparent; color: #fff;
  border: 1px solid var(--line); border-radius: 4px;
}

/* --- CTA band ------------------------------------------------------------- */
.cta {
  padding-block: 110px;
  text-align: center;
}
.cta__title {
  font-weight: 500;
  font-size: clamp(28px, 3vw, 42.7px);
  line-height: 1.25;
}
.cta__actions { margin-top: 26px; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

/* --- footer --------------------------------------------------------------- */
.site-footer { padding-block: 60px 30px; }
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer__logo img { width: 225px; height: auto; }
.site-footer h4 { font-weight: 600; font-size: 16px; margin-bottom: 22px; }
.site-footer p,
.site-footer li { font-size: 16px; line-height: 1.5; margin-bottom: 20px; }
.site-footer a:hover { color: var(--accent); }
.site-footer__bottom {
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.site-footer__bottom a { text-decoration: underline; }
.site-footer__bottom span { margin-left: 6px; }

/* --- contact modal -------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .78);
}
.modal.is-open { display: flex; }
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 42px;
  background: var(--surface);
  border-radius: var(--radius);
}
.modal__close {
  position: absolute;
  top: 14px; right: 18px;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
}
.modal__close:hover { color: #fff; }
.modal h3 { font-weight: 600; font-size: 26px; margin-bottom: 8px; }
.modal p { font-size: 15px; color: var(--muted); margin-bottom: 26px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; color: var(--muted); }
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #fff;
  font: inherit;
  font-size: 15px;
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 120px; resize: vertical; }

/* --- lightbox ------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .93);
}
.lightbox.is-open { display: flex; }
.lightbox img,
.lightbox video { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox__close { position: absolute; top: 20px; right: 28px; font-size: 38px; line-height: 1; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  background: rgba(255, 255, 255, .12);
  border-radius: 50%;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, .24); }
.lightbox__prev { left: 24px; }
.lightbox__next { right: 24px; }

/* --- scroll reveal -------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .partners__grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --gutter: 22px; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 22px 30px;
    background: #000;
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    display: none;
  }
  body.nav-open .nav { display: flex; }
  .nav__link { padding: 14px 0; font-size: 18px; justify-content: space-between; }
  .nav__sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    border-radius: 0;
    padding: 0 0 8px 16px;
    min-width: 0;
    display: none;
  }
  .nav__item.is-open .nav__sub { display: block; }
  .nav__item.is-open .nav__caret { transform: rotate(180deg); }
  .nav__cta { margin-top: 16px; }
  .nav-toggle { display: block; }

  .social-rail { display: none; }

  .section { padding-block: 64px; }
  .split, .media-row, .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .media-row--reverse .media-row__media { order: 0; }
  .media-row + .media-row { margin-top: 64px; }
  .list-cols { grid-template-columns: 1fr; gap: 4px; }
  .list-cols li { font-size: 18px; }
  .gallery-grid, .gallery-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .cta { padding-block: 70px; }
  .hero, .hero--tall { height: auto; min-height: 82vh; padding-block: 90px; }
}

@media (max-width: 640px) {
  .card-grid, .post-grid, .team-grid, .product-grid { grid-template-columns: 1fr; }
  .partners__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .site-footer__top { grid-template-columns: 1fr; gap: 28px; }
  .gallery-grid, .gallery-grid--4 { grid-template-columns: 1fr; }
  .modal__panel { padding: 28px 22px; }
}
