/* ==========================================================================
   MGS Waste — Design System
   ========================================================================== */

:root {
  /* Color */
  --ink: #07070c;
  --ink-soft: #101024;
  --surface: #ffffff;
  --surface-alt: #f4f5f7;
  --surface-dim: #eceef2;
  --steel: #9199a3;
  --steel-dark: #565c66;
  --text: #14151a;
  --text-muted: #565b66;
  --text-on-dark: #f5f6fa;
  --text-on-dark-muted: #b7bad0;
  --blue: #3d3bf0;
  --blue-bright: #4f4dff;
  --blue-deep: #171454;
  --cyan: #38d0f5;
  --border: #e3e5eb;
  --border-on-dark: rgba(255, 255, 255, 0.14);

  /* Gradients */
  --gradient-hero: linear-gradient(165deg, #07070c 0%, #171454 52%, #3d3bf0 100%);
  --gradient-band: linear-gradient(115deg, #0a0918 0%, #2b26c4 100%);
  --gradient-steel: linear-gradient(180deg, #f2f3f5 0%, #aeb3bc 45%, #7a808c 55%, #eef0f2 100%);

  /* Type */
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 20px 40px -24px rgba(7, 7, 12, 0.35);
  --shadow-pop: 0 24px 60px -20px rgba(61, 59, 240, 0.45);
}

/* ---------------------------------- Reset ------------------------------- */

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 900px) {
  .container {
    padding-inline: 40px;
  }
}

.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;
}

/* ------------------------------- Type scale ------------------------------ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow--dark {
  color: var(--blue);
}

.eyebrow--center {
  justify-content: center;
}

h1,
.display-1 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: none;
  line-height: 1.02;
  letter-spacing: 0.002em;
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
}

h2,
.display-2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  font-size: clamp(2rem, 3.6vw, 3rem);
}

h3,
.display-3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-muted);
  max-width: 46ch;
}

.on-dark {
  color: var(--text-on-dark);
}

.on-dark .lede,
.on-dark p {
  color: var(--text-on-dark-muted);
}

.text-cyan {
  color: var(--cyan);
}

/* -------------------------------- Buttons -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(61, 59, 240, 0.55);
}

.btn-primary:hover {
  background: var(--blue-bright);
  box-shadow: 0 18px 34px -10px rgba(61, 59, 240, 0.65);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--text-on-dark);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline-dark:hover {
  background: var(--ink);
  color: #fff;
}

/* --------------------------------- Header -------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__logo {
  height: 46px;
  width: auto;
  display: block;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav__list a {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav__list a:hover,
.main-nav__list a[aria-current="page"] {
  color: var(--blue);
  border-color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-actions .btn {
  padding: 11px 22px;
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .header-actions .btn {
    padding: 10px 16px;
    font-size: 0.78rem;
  }

  .main-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 24px;
  }

  .main-nav__list a {
    display: block;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.is-active .nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.is-active .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* --------------------------------- Sections ------------------------------ */

.section {
  padding-block: clamp(56px, 8vw, 96px);
}

.section--tight {
  padding-block: clamp(40px, 6vw, 64px);
}

.section--dark {
  background: var(--ink);
}

.section--band {
  background: var(--gradient-band);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

/* ---------------------------------- Hero --------------------------------- */

.hero {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 12vw, 132px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 82% 20%, rgba(56, 208, 245, 0.16), transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 20px;
  max-width: 720px;
}

.hero__title {
  color: var(--text-on-dark);
}

.hero__impact,
.hero__haul {
  display: inline-block;
}

.hero__impact {
  animation: hero-impact 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.hero__haul {
  animation: hero-haul 0.55s ease-out both;
  animation-delay: 0.4s;
}

@keyframes hero-impact {
  0% {
    opacity: 0;
    transform: translateY(-32px);
  }
  55% {
    opacity: 1;
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-haul {
  0% {
    opacity: 0;
    transform: translateX(-24px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (min-width: 700px) {
  .hero__title--tight-fit {
    white-space: nowrap;
  }
}

.hero__body {
  margin-top: 8px;
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

/* ----------------------------- Service cards ------------------------------ */

.card-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-card {
  background: var(--gradient-steel);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -20px rgba(7, 7, 12, 0.45);
}

.service-card__icon {
  width: 46px;
  height: 46px;
  color: var(--ink);
  margin-bottom: 18px;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  color: var(--ink);
  margin-bottom: 10px;
}

.service-card p {
  color: #24262c;
  font-size: 0.96rem;
}

/* --------------------------------- Stats --------------------------------- */

.stat-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  text-align: center;
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  background: var(--gradient-steel);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(61, 59, 240, 0.25);
  line-height: 1;
}

.stat__label {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ----------------------------------- CTA ---------------------------------- */

.cta-band {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.cta-band .lede {
  max-width: 52ch;
}

/* --------------------------------- Footer --------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--text-on-dark-muted);
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  font-size: 0.85rem;
}

.site-footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site-footer a:hover {
  color: var(--cyan);
}

/* ============================= Page: Services ============================= */

.service-block {
  display: grid;
  gap: 44px;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .service-block {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .service-block--reverse .service-block__media {
    order: -1;
  }
}

.service-block__content .eyebrow {
  margin-bottom: 0.75rem;
}

.media-placeholder {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--gradient-steel);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.service-block__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-dim);
}

.service-block__list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.service-block__list li {
  position: relative;
  padding-left: 26px;
  color: var(--text-muted);
}

.service-block__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--blue);
}

.pricing-table {
  margin-top: 26px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.pricing-table__head {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.pricing-table__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.pricing-table__row:nth-child(even) {
  background: var(--surface-alt);
}

.pricing-table__size {
  font-weight: 700;
  color: var(--text);
}

.pricing-table__dims {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-table__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--blue);
}

.pricing-note {
  margin-top: 20px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.35;
  color: var(--text);
}

/* --------------------------------- FAQ ------------------------------------ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 820px;
  margin-inline: auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item:hover {
  border-color: var(--blue);
}

.faq-item[open] {
  border-color: var(--blue);
}

.faq-item__question {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text);
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::marker {
  content: "";
}

.faq-item__icon {
  position: relative;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  color: var(--blue);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.faq-item__icon::before {
  width: 10px;
  height: 2px;
}

.faq-item__icon::after {
  width: 2px;
  height: 10px;
  transition: opacity 0.15s ease;
}

.faq-item[open] .faq-item__icon {
  background: var(--blue);
  color: #fff;
}

.faq-item[open] .faq-item__icon::after {
  opacity: 0;
}

.faq-item__answer {
  padding: 0 22px 20px;
  color: var(--text-muted);
}

.faq-item__answer ul,
.faq-item__answer ol {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.faq-item__answer ul li {
  position: relative;
  padding-left: 20px;
}

.faq-item__answer ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
}

.faq-item__answer ol {
  list-style: none;
  counter-reset: faq-step;
}

.faq-item__answer ol li {
  position: relative;
  padding-left: 24px;
  counter-increment: faq-step;
}

.faq-item__answer ol li::before {
  content: counter(faq-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-item__answer p + ul,
.faq-item__answer p + ol {
  margin-top: 10px;
}

/* ============================ Simple content pages ========================= */

.simple-hero {
  background: var(--gradient-hero);
  padding-block: clamp(64px, 10vw, 100px);
}

.content-block {
  max-width: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.content-block p {
  color: var(--text-muted);
}

.feature-photo {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.feature-photo-wrap {
  max-width: 980px;
  margin-inline: auto;
}

.content-block h3 {
  margin-top: 8px;
}

.content-block .lede-statement {
  font-family: "Big Shoulders Display", var(--font-display), sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  color: var(--text);
  line-height: 1.3;
  letter-spacing: 0.01em;
  margin-top: 8px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 4px;
}

.service-area-box {
  width: 100%;
  max-width: 640px;
  margin: 22px auto 4px;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  text-align: left;
}

.service-area-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px 20px;
}

.service-area-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.service-area-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--blue);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px solid var(--border);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--blue);
}

.team-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.team-card {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.team-card__photo {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: var(--gradient-steel);
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.team-card__role {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 4px;
}

.contact-layout {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contact-card {
  background: var(--ink);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.contact-card a {
  color: var(--cyan);
  font-weight: 700;
}

.map-embed {
  margin-top: 44px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 6;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 700px) {
  .map-embed {
    aspect-ratio: 4 / 3;
  }
}

.form-field {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 1px;
}

/* ============================== Page: Gallery ============================= */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.gallery-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.gallery-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.gallery-card .media-placeholder {
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: 4 / 3;
}

.gallery-card__photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-card--pair {
  grid-column: span 2;
}

.gallery-card__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
}

.gallery-card__pair-item {
  position: relative;
}

.gallery-card__pair-item .gallery-card__photo {
  aspect-ratio: 4 / 3;
  height: 100%;
}

.gallery-card__pair-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(7, 7, 12, 0.72);
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.gallery-card__pair + .gallery-card__pair {
  margin-top: 2px;
}

@media (max-width: 560px) {
  .gallery-card--pair {
    grid-column: span 1;
  }

  .gallery-card__pair {
    grid-template-columns: 1fr;
  }
}

.gallery-card__caption {
  padding: 16px 18px;
}

.gallery-card__tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
}

.gallery-card__title {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
}

/* -------------------------------- Reveal-on-scroll ------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
