:root {
  color-scheme: dark;
  --bg: #070808;
  --panel: #111414;
  --panel-soft: #171b1b;
  --text: #f1f4f0;
  --muted: #a1aaa5;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #b7f36d;
  --accent-soft: rgba(183, 243, 109, 0.18);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 25% 0%, rgba(183, 243, 109, 0.1), transparent 30rem),
    linear-gradient(180deg, #090b0b 0%, var(--bg) 34rem);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 8, 0.74);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border: 1px solid var(--accent);
  background: linear-gradient(135deg, transparent 0 45%, var(--accent) 46% 100%);
  transform: rotate(45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  min-width: 56px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

main {
  width: min(1680px, 100%);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 52px) 64px;
}

.hero {
  display: grid;
  align-content: end;
  min-height: clamp(190px, 28vh, 340px);
  padding: 34px 0 38px;
}

.eyebrow,
.column-heading p {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(30px, 5vw, 72px);
  font-weight: 780;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 18px);
}

.gallery-shell {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 38px);
  align-items: start;
}

.media-column {
  min-width: 0;
}

.column-heading {
  position: sticky;
  top: 72px;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 12px;
  background: linear-gradient(180deg, rgba(7, 8, 8, 0.96), rgba(7, 8, 8, 0.72));
  backdrop-filter: blur(12px);
}

.column-heading h2 {
  margin: 0;
  font-size: clamp(20px, 1.8vw, 30px);
  font-weight: 760;
  line-height: 1;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.media-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--text);
  cursor: pointer;
  isolation: isolate;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.media-card:hover,
.media-card:focus-visible {
  border-color: rgba(183, 243, 109, 0.58);
  background: var(--panel-soft);
  transform: translateY(-3px);
  outline: none;
}

.media-card img,
.media-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.05);
  transform: scale(1.01);
  transition: transform 420ms ease, filter 420ms ease;
}

.media-card:hover img,
.media-card:hover video,
.media-card:focus-visible img,
.media-card:focus-visible video {
  filter: saturate(1.05) contrast(1.08);
  transform: scale(1.045);
}

.media-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 54%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
  pointer-events: none;
  z-index: 1;
}

.media-label {
  position: absolute;
  right: 11px;
  bottom: 10px;
  left: 11px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.media-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-type {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 72px clamp(16px, 4vw, 48px) 32px;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 55;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  border-color: rgba(183, 243, 109, 0.62);
  outline: none;
}

.lightbox-stage {
  width: min(1500px, 100%);
}

.lightbox-media {
  display: grid;
  place-items: center;
  min-height: 50vh;
}

.lightbox-media img,
.lightbox-media video {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: contain;
}

.lightbox-media video {
  width: min(1280px, 100%);
  background: #000;
}

.lightbox-caption {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.lightbox-caption strong {
  color: var(--text);
  font-size: 15px;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .site-header {
    min-height: 64px;
  }

  .brand span:last-child {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    min-height: 190px;
    padding: 28px 0;
  }

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

  .column-heading {
    top: 64px;
  }

  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 14px;
  }

  .site-nav a {
    min-width: 48px;
    padding-inline: 9px;
  }

  main {
    padding-inline: 14px;
  }

  .hero h1 {
    font-size: clamp(28px, 12vw, 48px);
  }

  .hero-copy {
    font-size: 15px;
  }

  .column-heading {
    align-items: start;
    flex-direction: column;
    gap: 0;
  }

  .media-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

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