:root {
  --bg: #071019;
  --paper: #f4efe6;
  --ink: #f7f7fb;
  --muted: rgba(247, 247, 251, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --display: "Unbounded", "Arial Black", sans-serif;
  --sans: "Manrope", "Avenir Next", sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(31, 224, 194, 0.18), transparent 22%),
    radial-gradient(circle at 86% 14%, rgba(255, 114, 72, 0.15), transparent 20%),
    radial-gradient(circle at 74% 72%, rgba(177, 255, 69, 0.1), transparent 18%),
    linear-gradient(180deg, #08111a 0%, #071019 38%, #0d1620 100%);
}

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

.gallery-shell {
  width: min(1200px, calc(100vw - 2.4rem));
  margin: 0 auto;
  padding: 4rem 0 5.4rem;
}

.eyebrow {
  margin: 0;
  color: rgba(177, 255, 69, 0.86);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.gallery-hero h1 {
  margin: 1rem 0 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 5.9rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.intro {
  max-width: 52rem;
  margin: 1.5rem 0 0;
  line-height: 1.85;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-note-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.hero-note-row div,
.gallery-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
}

.hero-note-row div {
  padding: 1rem 1.1rem;
}

.hero-note-row span {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.hero-note-row strong {
  display: block;
  margin-top: 0.55rem;
  line-height: 1.6;
  font-size: 0.98rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.gallery-card {
  display: grid;
  gap: 1rem;
  min-height: 18rem;
  padding: 1.7rem;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.gallery-card::before {
  content: "";
  position: absolute;
  inset: auto -8% -34% auto;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  opacity: 0.8;
  filter: blur(12px);
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.06), transparent 40%, rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.gallery-card span {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.gallery-card h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.gallery-card p {
  position: relative;
  z-index: 1;
  max-width: 30rem;
  margin: 0;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.78);
}

.theme-neon {
  background:
    radial-gradient(circle at 78% 18%, rgba(53, 255, 224, 0.22), transparent 24%),
    linear-gradient(180deg, rgba(8, 24, 38, 0.96), rgba(6, 14, 25, 0.92));
}

.theme-neon::before {
  background: rgba(53, 255, 224, 0.32);
}

.theme-neon span {
  color: #7efceb;
}

.theme-botanical {
  background:
    radial-gradient(circle at 80% 22%, rgba(170, 201, 133, 0.24), transparent 24%),
    linear-gradient(180deg, rgba(44, 58, 41, 0.94), rgba(26, 35, 24, 0.96));
}

.theme-botanical::before {
  background: rgba(190, 211, 141, 0.26);
}

.theme-botanical span {
  color: #dfe5ac;
}

.theme-pitlane {
  background:
    linear-gradient(132deg, rgba(255, 255, 255, 0.08) 0 24%, transparent 24% 27%, rgba(255, 255, 255, 0.08) 27% 31%, transparent 31% 100%),
    linear-gradient(180deg, rgba(50, 49, 55, 0.98), rgba(17, 17, 20, 0.96));
}

.theme-pitlane::before {
  background: rgba(255, 88, 54, 0.32);
}

.theme-pitlane span {
  color: #ff8b6d;
}

.theme-pacific {
  color: #13202f;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 243, 182, 0.72), transparent 22%),
    linear-gradient(180deg, rgba(228, 241, 247, 0.96), rgba(174, 214, 227, 0.92));
}

.theme-pacific::before {
  background: rgba(94, 197, 222, 0.24);
}

.theme-pacific span {
  color: #235f77;
}

.theme-pacific p {
  color: rgba(19, 32, 47, 0.76);
}

.theme-monograph {
  color: #f0efeb;
  background: linear-gradient(180deg, rgba(26, 27, 25, 0.98), rgba(10, 10, 10, 0.98));
}

.theme-monograph::before {
  background: rgba(202, 255, 76, 0.22);
}

.theme-monograph span {
  color: #d8ff72;
}

.gallery-card:last-child {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .hero-note-row,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .gallery-shell {
    width: min(1200px, calc(100vw - 1.4rem));
    padding-top: 2rem;
  }

  .gallery-hero h1 {
    max-width: none;
  }

  .hero-note-row,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    min-height: auto;
  }

  .gallery-card:last-child {
    grid-column: auto;
  }
}
