:root {
  --bg: #08111f;
  --bg-soft: #11213a;
  --panel: rgba(11, 20, 36, 0.72);
  --panel-strong: rgba(8, 15, 28, 0.92);
  --text: #f4f7fb;
  --muted: #a8b5ca;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #ff8a5b;
  --accent-soft: #ffd166;
  --accent-cool: #7bdff2;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(123, 223, 242, 0.18), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(255, 138, 91, 0.2), transparent 24%),
    linear-gradient(160deg, #050a14 0%, #091426 45%, #08111f 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(20px);
  opacity: 0.65;
}

body::before {
  width: 18rem;
  height: 18rem;
  top: 6rem;
  right: -4rem;
  background: rgba(255, 138, 91, 0.12);
}

body::after {
  width: 22rem;
  height: 22rem;
  left: -8rem;
  bottom: 8rem;
  background: rgba(123, 223, 242, 0.12);
}

.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.hero,
.story,
.gallery-section,
.footer {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 2rem;
  padding: 1rem 0 3rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 15, 28, 0.56);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.topbar a,
.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.brand {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.hero-copy {
  max-width: 52rem;
}

.eyebrow,
.section-label {
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1,
.story h2,
.section-head h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero h1 {
  margin-top: 0.9rem;
  font-size: clamp(3.2rem, 9vw, 7.2rem);
  max-width: 11ch;
}

.lede,
.story p,
.section-head p,
.card p {
  color: var(--muted);
  line-height: 1.75;
}

.lede {
  margin-top: 1.4rem;
  max-width: 44rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11rem;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

.btn-primary {
  color: #09111d;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
}

.btn-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hero-stats article,
.story,
.section-head,
.card,
.footer {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-stats article {
  padding: 1.4rem;
  border-radius: 1.5rem;
}

.hero-stats strong {
  display: block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.hero-stats span {
  color: var(--muted);
}

.story {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  margin: 2rem 0;
  padding: 2rem;
  border-radius: 2rem;
}

.story h2,
.section-head h2 {
  margin-top: 0.7rem;
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.gallery-section {
  padding: 1rem 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  padding: 2rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 1.6rem;
  transform: translateY(32px) scale(0.98);
  opacity: 0;
  transition:
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 700ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

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

.card:hover {
  border-color: rgba(255, 209, 102, 0.34);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

.card:nth-child(6n + 1),
.card:nth-child(6n + 4) {
  grid-column: span 7;
}

.card:nth-child(6n + 2),
.card:nth-child(6n + 3),
.card:nth-child(6n + 5),
.card:nth-child(6n + 6) {
  grid-column: span 5;
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 900ms ease;
}

.card:hover img {
  transform: scale(1.08);
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 8, 18, 0.9) 0%, rgba(4, 8, 18, 0.12) 46%, transparent 72%);
}

.card-content {
  position: absolute;
  inset: auto 0 0;
  padding: 1.1rem 1.1rem 1.2rem;
}

.card h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin-bottom: 0.35rem;
}

.card p {
  max-width: 28ch;
  font-size: 0.95rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1.4rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: revealUp 900ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-copy {
  animation-delay: 120ms;
}

.hero-stats {
  animation-delay: 260ms;
}

.story {
  animation-delay: 160ms;
}

.section-head {
  animation-delay: 180ms;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .story,
  .section-head,
  .footer,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }

  .card:nth-child(6n + 1),
  .card:nth-child(6n + 2),
  .card:nth-child(6n + 3),
  .card:nth-child(6n + 4),
  .card:nth-child(6n + 5),
  .card:nth-child(6n + 6) {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1rem, 1180px);
  }

  .hero {
    min-height: auto;
    padding-top: 0.5rem;
  }

  .topbar {
    flex-direction: column;
    gap: 0.8rem;
    border-radius: 1.4rem;
  }

  .hero h1 {
    max-width: 9ch;
  }

  .story,
  .section-head {
    padding: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .card,
  .card img,
  .btn {
    animation: none;
    transition: none;
    transform: none;
    opacity: 1;
  }
}
