:root {
  color-scheme: dark;
  --bg: #020202;
  --ink: #f5f5f7;
  --muted: rgba(245, 245, 247, 0.66);
  --soft: rgba(245, 245, 247, 0.48);
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(255, 255, 255, 0.07);
  --accent: #7db7ff;
  --green: #30f28a;
  --gold: #e9bd66;
  --section: min(1180px, calc(100vw - 48px));
  --shadow: 0 32px 100px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(20, 35, 44, 0.45), transparent 22rem),
    linear-gradient(135deg, rgba(48, 242, 138, 0.06), transparent 28rem),
    #020202;
  color: var(--ink);
  font-family:
    "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1240px, calc(100vw - 32px));
  margin: 14px auto 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.74);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(22px);
}

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

.nav-links {
  gap: 4px;
}

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

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

.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  margin-top: -60px;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 172px 0 34px;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.08) contrast(1.02);
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.42) 47%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 28%, rgba(0, 0, 0, 0.9) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.36fr);
  align-items: end;
  gap: 48px;
}

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

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

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

.hero h1 {
  font-size: clamp(72px, 12vw, 170px);
  line-height: 0.86;
  font-weight: 950;
  text-shadow: 0 16px 60px rgba(0, 0, 0, 0.45);
}

.hero-title {
  margin: 24px 0 0;
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 850;
  line-height: 1.16;
}

.hero-lede {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(245, 245, 247, 0.72);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 38px;
}

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

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

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

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

.button.secondary {
  border: 1px solid rgba(125, 183, 255, 0.7);
  background: rgba(13, 42, 74, 0.38);
  color: #f5f5f7;
}

.hero-meta {
  display: grid;
  gap: 12px;
  align-self: end;
}

.hero-meta span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 13px 18px;
  background: rgba(5, 5, 5, 0.46);
  color: rgba(245, 245, 247, 0.76);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(16px);
}

.hero-meta b {
  color: #fff;
  font-size: 18px;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(700px, calc(100vw - 36px));
  margin: 42px auto 0;
}

.hero-thumb {
  position: relative;
  overflow: hidden;
  min-height: 110px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0;
  background: #111;
  color: #fff;
  cursor: zoom-in;
}

.hero-thumb img {
  width: 100%;
  height: 100%;
  min-height: 110px;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.hero-thumb:hover img,
.hero-thumb:focus-visible img {
  transform: scale(1.06);
  filter: saturate(1.1);
}

.hero-thumb span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(0, 0, 0, 0.42);
  font-size: 11px;
  font-weight: 850;
  backdrop-filter: blur(12px);
}

.overview,
.story-section,
.gallery-section,
.workflow {
  padding: clamp(76px, 9vw, 128px) 0;
}

.overview {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  align-items: start;
  gap: 44px;
}

.section-heading h2 {
  font-size: clamp(42px, 6.6vw, 94px);
  line-height: 0.98;
  font-weight: 940;
}

.insight-grid,
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.insight-panel,
.workflow-steps article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.insight-panel span,
.workflow-steps span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.insight-panel h3,
.workflow-steps h3 {
  margin: 18px 0 12px;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.16;
}

.insight-panel p,
.story-head > p,
.story-card span,
.workflow-steps p,
.site-footer {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.78;
}

.insight-panel p,
.workflow-steps p {
  margin: 0;
}

.story-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    #050505;
}

.story-head,
.gallery-head {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 0.62fr);
  align-items: end;
  gap: 44px;
  margin-bottom: 38px;
}

.story-head > p {
  margin: 0 0 10px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.story-card {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: #111;
  box-shadow: var(--shadow);
}

.story-card.story-wide {
  grid-column: span 2;
}

.story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 580ms ease;
}

.story-card:hover img {
  transform: scale(1.045);
}

.story-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 24%, rgba(0, 0, 0, 0.8) 100%);
}

.story-card div {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 26px;
}

.story-card p,
.story-card h3,
.story-card span {
  margin: 0;
}

.story-card p {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.story-card h3 {
  max-width: 580px;
  margin: 10px 0;
  font-size: clamp(24px, 3vw, 46px);
  line-height: 1.1;
}

.story-card span {
  display: block;
  max-width: 520px;
}

.gallery-section {
  background:
    linear-gradient(180deg, #030303 0%, #000 36%, #050505 100%);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.065);
  color: rgba(245, 245, 247, 0.74);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  border-color: rgba(48, 242, 138, 0.62);
  background: rgba(48, 242, 138, 0.14);
  color: #fff;
  transform: translateY(-1px);
}

.gallery-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.gallery-status span:first-child {
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  gap: 16px;
}

.work-tile {
  position: relative;
  grid-column: span 4;
  aspect-ratio: 1.34;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0;
  background: #111;
  color: #fff;
  cursor: zoom-in;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
}

.work-tile.wide {
  grid-column: span 6;
  aspect-ratio: 1.52;
}

.work-tile.ultra {
  grid-column: span 8;
  aspect-ratio: 1.78;
}

.work-tile.poster {
  grid-column: span 3;
  grid-row: span 2;
  aspect-ratio: 0.56;
}

.work-tile.is-hidden {
  display: none;
}

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

.work-tile.poster img {
  object-position: top;
}

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

.work-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.76) 100%);
  opacity: 0.96;
}

.work-tile figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  display: grid;
  gap: 6px;
  text-align: left;
}

.work-tile small,
.work-tile strong {
  display: block;
}

.work-tile small {
  color: rgba(245, 245, 247, 0.66);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.work-tile strong {
  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 1.22;
}

.workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  color: rgba(245, 245, 247, 0.8);
  font-weight: 850;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 68px clamp(18px, 4vw, 58px) 34px;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  backdrop-filter: blur(18px);
}

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

.lightbox-panel {
  width: min(1460px, calc(100vw - 70px));
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.96);
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.68);
}

.lightbox-stage {
  display: grid;
  place-items: center;
  min-height: min(68vh, 760px);
  max-height: calc(100vh - 220px);
  overflow: auto;
  background: #030303;
}

.lightbox-stage img {
  width: 100%;
  max-height: calc(100vh - 220px);
  object-fit: contain;
}

.lightbox-panel figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 16px 18px;
  color: rgba(245, 245, 247, 0.72);
}

.lightbox-panel strong {
  color: #fff;
  font-size: 18px;
}

.lightbox-panel span,
.lightbox-panel em {
  font-style: normal;
  font-size: 13px;
  font-weight: 850;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  z-index: 101;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(16, 16, 16, 0.76);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: background 180ms ease, transform 180ms ease;
}

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.04);
}

.lightbox-close {
  top: 20px;
  right: 22px;
  width: 46px;
  height: 46px;
  font-size: 30px;
}

.lightbox-nav {
  top: 50%;
  width: 52px;
  height: 52px;
  font-size: 42px;
  transform: translateY(-50%);
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  transform: translateY(-50%) scale(1.04);
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

@media (max-width: 1080px) {
  .overview,
  .workflow,
  .story-head,
  .gallery-head,
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .story-card.story-wide {
    grid-column: span 1;
  }

  .work-tile,
  .work-tile.wide,
  .work-tile.ultra {
    grid-column: span 6;
  }

  .work-tile.poster {
    grid-column: span 4;
  }
}

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

  .site-header {
    width: calc(100vw - 20px);
    margin-top: 10px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    margin-top: -58px;
    padding-top: 92px;
  }

  .hero h1 {
    font-size: clamp(52px, 15vw, 78px);
  }

  .hero .eyebrow {
    margin-bottom: 10px;
  }

  .hero-title {
    margin-top: 16px;
    font-size: 22px;
  }

  .hero-lede {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.62;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 22px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    min-width: 0;
    min-height: 42px;
    font-size: 15px;
  }

  .insight-grid,
  .workflow-steps,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .hero-meta span {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    border-radius: 8px;
    padding: 10px;
    font-size: 10px;
    line-height: 1.25;
  }

  .hero-meta b {
    font-size: 16px;
  }

  .hero-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-strip {
    margin-top: 32px;
  }

  .hero-thumb,
  .hero-thumb img {
    min-height: 76px;
  }

  .hero-thumb span {
    display: none;
  }

  .story-card {
    min-height: 390px;
  }

  .filter-bar {
    justify-content: flex-start;
  }

  .gallery-status {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .work-tile,
  .work-tile.wide,
  .work-tile.ultra,
  .work-tile.poster {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 1.34;
  }

  .work-tile.poster {
    aspect-ratio: 0.68;
  }

  .lightbox {
    padding: 68px 12px 24px;
  }

  .lightbox-panel {
    width: calc(100vw - 24px);
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 34px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

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