:root {
  color-scheme: dark;
  --bg: #000;
  --ink: #f5f5f7;
  --muted: rgba(245, 245, 247, 0.64);
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(255, 255, 255, 0.065);
  --accent: #8ab4ff;
  --warm: #ffb15e;
  --section: min(1180px, calc(100vw - 48px));
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, #050505 0%, #000 34%, #070707 72%, #000 100%);
  color: var(--ink);
  letter-spacing: 0;
  overflow-x: clip;
}

body.modal-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.section-shell {
  width: var(--section);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1240px, calc(100vw - 32px));
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.72);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f5f5f7;
  color: #050505;
  font-size: 12px;
  letter-spacing: 0;
}

.nav-links {
  gap: 4px;
}

.nav-links a {
  border-radius: 999px;
  padding: 9px 13px;
  color: rgba(245, 245, 247, 0.7);
  font-size: 13px;
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

.render-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #020202;
  isolation: isolate;
}

.render-hero::before,
.render-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.render-hero::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.42) 42%, rgba(0, 0, 0, 0.08) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), #000 100%);
}

.render-hero::after {
  background: linear-gradient(180deg, transparent 56%, #000 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  filter: saturate(0.96) contrast(1.04);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.42fr);
  align-items: end;
  gap: clamp(42px, 6vw, 92px);
  min-height: 100vh;
  padding: clamp(134px, 12vw, 190px) 0 clamp(68px, 7vw, 108px);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.contact h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero-copy h1 {
  font-size: clamp(82px, 12vw, 178px);
  line-height: 0.88;
  font-weight: 950;
  text-shadow: 0 20px 64px rgba(255, 255, 255, 0.2);
}

.hero-title {
  max-width: 650px;
  margin: 26px 0 0;
  font-size: clamp(28px, 3.2vw, 52px);
  font-weight: 850;
  line-height: 1.14;
}

.hero-lede {
  max-width: 600px;
  margin: 28px 0 0;
  color: rgba(245, 245, 247, 0.68);
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 202px;
  min-height: 60px;
  border-radius: 999px;
  padding: 0 28px;
  font-size: 17px;
  font-weight: 780;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  justify-content: space-between;
  background: #f5f5f7;
  color: #050505;
  box-shadow: 0 16px 42px rgba(255, 255, 255, 0.16);
}

.button.primary span {
  margin-left: 28px;
  font-size: 26px;
  line-height: 1;
}

.button.secondary {
  border: 1px solid rgba(138, 180, 255, 0.62);
  background: rgba(12, 35, 86, 0.28);
  color: #f5f5f7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-index {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 360px;
  justify-self: end;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  padding-left: clamp(20px, 2.5vw, 36px);
}

.hero-index div {
  display: grid;
  gap: 4px;
}

.hero-index strong {
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.92;
  font-weight: 950;
}

.hero-index span {
  color: rgba(245, 245, 247, 0.56);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.overview {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.1fr);
  gap: clamp(42px, 7vw, 96px);
  padding: clamp(86px, 10vw, 138px) 0 clamp(72px, 9vw, 118px);
}

.section-heading h2 {
  font-size: clamp(44px, 6vw, 96px);
  line-height: 0.98;
  font-weight: 930;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-self: end;
}

.overview-grid article {
  min-height: 248px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    #080808;
  box-shadow: 0 24px 78px rgba(0, 0, 0, 0.32);
}

.overview-grid span {
  color: var(--warm);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.overview-grid h3 {
  margin: 44px 0 14px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.05;
}

.overview-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.76;
}

.featured {
  padding: clamp(70px, 9vw, 118px) 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%),
    #000;
  overflow: hidden;
}

.featured-heading {
  margin-bottom: 34px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(168px, 14vw, 242px);
  gap: 18px;
}

.feature-tile {
  position: relative;
  grid-column: span 4;
  grid-row: span 2;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 0;
  background: #090909;
  color: #fff;
  cursor: zoom-in;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

.feature-large {
  grid-column: span 7;
  grid-row: span 3;
}

.feature-wide {
  grid-column: span 5;
}

.feature-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 620ms ease, filter 620ms ease;
}

.feature-tile::after,
.gallery-card button::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
  pointer-events: none;
}

.feature-tile:hover img,
.feature-tile:focus-visible img,
.gallery-card button:hover img,
.gallery-card button:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.04);
}

.feature-tile span,
.gallery-card span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1;
  display: grid;
  gap: 6px;
  text-align: left;
}

.feature-tile b,
.gallery-card b {
  overflow: hidden;
  color: #fff;
  font-size: clamp(18px, 1.5vw, 25px);
  font-weight: 880;
  line-height: 1.06;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-tile em,
.gallery-card em {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-style: normal;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.gallery {
  padding: clamp(78px, 9vw, 132px) 0;
}

.gallery-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 30px;
}

.filter-bar {
  position: sticky;
  top: 86px;
  z-index: 25;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px;
  background: rgba(10, 10, 10, 0.72);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.filter-button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 38px;
  padding: 0 15px;
  background: transparent;
  color: rgba(245, 245, 247, 0.64);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.gallery-count {
  margin: 0 0 22px;
  color: rgba(245, 245, 247, 0.5);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery-grid {
  column-count: 4;
  column-gap: 18px;
}

.gallery-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  break-inside: avoid;
}

.gallery-card button {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 0;
  background: #080808;
  color: #fff;
  cursor: zoom-in;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.gallery-card figure {
  display: block;
  aspect-ratio: var(--ratio);
  margin: 0;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 560ms ease, filter 560ms ease;
}

.gallery-card.is-hidden {
  display: none;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 70px 0 86px;
}

.contact h2 {
  font-size: clamp(34px, 5vw, 74px);
  line-height: 1;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 74px clamp(18px, 4vw, 58px) 36px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.94)),
    rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  backdrop-filter: blur(18px);
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  display: grid;
  width: min(1480px, calc(100vw - 72px));
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(8, 8, 8, 0.9);
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.62);
}

.modal-stage {
  display: grid;
  place-items: center;
  overflow: auto;
  min-height: min(62vh, 720px);
  max-height: calc(100vh - 244px);
  background: #050505;
}

.modal-image {
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.modal-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 18px;
  align-items: end;
  padding: 18px clamp(18px, 2.4vw, 30px) 20px;
}

.modal-kicker {
  grid-column: 1 / -1;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal-title {
  min-width: 0;
  color: #fff;
  font-size: clamp(20px, 2vw, 34px);
  font-weight: 850;
}

.modal-counter {
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 780;
}

.modal-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.modal-meta span {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.045);
}

.modal-meta b {
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.08em;
}

.modal-meta em {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-style: normal;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-nav,
.modal-close {
  appearance: none;
  position: fixed;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.modal-close {
  top: 22px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
}

.modal-nav {
  top: 50%;
  width: 54px;
  height: 54px;
  font-size: 42px;
  line-height: 1;
}

.modal-prev {
  left: 24px;
}

.modal-next {
  right: 24px;
}

.modal-nav:hover,
.modal-close:hover {
  border-color: rgba(138, 180, 255, 0.62);
  background: rgba(138, 180, 255, 0.18);
  transform: translateY(-1px);
}

@media (max-width: 1080px) {
  .hero-content,
  .overview,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-index {
    justify-self: start;
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding: 22px 0 0;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .feature-tile,
  .feature-large,
  .feature-wide {
    grid-column: span 6;
    grid-row: span 2;
  }

  .gallery-grid {
    column-count: 3;
  }
}

@media (max-width: 760px) {
  :root {
    --section: min(100vw - 28px, 1180px);
  }

  .site-header {
    width: min(100vw - 24px, 1240px);
  }

  .nav-links {
    display: none;
  }

  .render-hero {
    min-height: 92vh;
  }

  .hero-content {
    min-height: 92vh;
    padding-top: 118px;
  }

  .hero-copy,
  .hero-title,
  .hero-lede {
    max-width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(52px, 15vw, 68px);
    line-height: 0.96;
    word-break: keep-all;
  }

  .hero-title {
    font-size: clamp(24px, 7vw, 30px);
    overflow-wrap: anywhere;
  }

  .hero-lede {
    font-size: 16px;
    line-height: 1.78;
    overflow-wrap: anywhere;
  }

  .hero-actions,
  .contact {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-index {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    font-size: clamp(40px, 13vw, 62px);
  }

  .feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(280px, auto);
  }

  .feature-tile,
  .feature-large,
  .feature-wide {
    grid-column: 1;
    grid-row: auto;
    aspect-ratio: 0.86;
  }

  .feature-wide {
    aspect-ratio: 1.28;
  }

  .filter-bar {
    top: 78px;
    border-radius: 24px;
  }

  .gallery-grid {
    column-count: 1;
  }

  .modal {
    padding: 66px 14px 24px;
  }

  .modal-panel {
    width: 100%;
    border-radius: 20px;
  }

  .modal-stage {
    min-height: 46vh;
    max-height: calc(100vh - 260px);
  }

  .modal-info,
  .modal-meta {
    grid-template-columns: 1fr;
  }

  .modal-counter {
    justify-self: start;
  }

  .modal-nav {
    top: auto;
    bottom: 16px;
    width: 46px;
    height: 46px;
    font-size: 34px;
  }

  .modal-prev {
    left: 18px;
  }

  .modal-next {
    right: 18px;
  }
}

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