:root {
  --bg: #07090d;
  --bg-elevated: #0e1218;
  --ink: #f4f1ea;
  --ink-muted: rgba(244, 241, 234, 0.62);
  --ink-dim: rgba(244, 241, 234, 0.38);
  --gold: #c49a2e;
  --gold-soft: rgba(196, 154, 46, 0.85);
  --line: rgba(244, 241, 234, 0.12);
  --danger: #e11d2e;
  --frame: rgba(244, 241, 234, 0.55);
  --nav-h: 72px;
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-ui: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-ui);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
.btn {
  font: inherit;
  cursor: pointer;
  border: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.72), rgba(7, 9, 13, 0));
  backdrop-filter: blur(0px);
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.is-solid {
  background: rgba(7, 9, 13, 0.88);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 7rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  font-size: 0.92rem;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 1px;
  background: var(--gold);
}

.btn-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 241, 234, 0.28);
  background: rgba(244, 241, 234, 0.06);
  color: var(--ink);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.btn-join:hover {
  background: rgba(244, 241, 234, 0.14);
  border-color: rgba(244, 241, 234, 0.5);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  color: var(--ink);
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 1px;
  margin: 0.32rem auto;
  background: currentColor;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.35) 0%, rgba(7, 9, 13, 0.55) 45%, rgba(7, 9, 13, 0.92) 100%),
    linear-gradient(90deg, rgba(7, 9, 13, 0.45), transparent 30%, transparent 70%, rgba(7, 9, 13, 0.45)),
    url("../assets/hero.jpg") center / cover no-repeat;
  transform: scale(1.04);
  animation: heroDrift 28s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, -0.6%, 0); }
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(7, 9, 13, 0.35) 70%, rgba(7, 9, 13, 0.75) 100%);
  pointer-events: none;
}

.viewfinder {
  position: absolute;
  inset: clamp(1rem, 3vw, 2rem);
  border: 1px solid rgba(244, 241, 234, 0.22);
  pointer-events: none;
  z-index: 2;
}

.viewfinder::before,
.viewfinder::after {
  content: "";
  position: absolute;
  width: 1.4rem;
  height: 1.4rem;
  border: 1.5px solid var(--frame);
}

.viewfinder::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.viewfinder::after {
  top: -1px;
  right: -1px;
  border-left: 0;
  border-bottom: 0;
}

.vf-corner-bl,
.vf-corner-br {
  position: absolute;
  width: 1.4rem;
  height: 1.4rem;
  border: 1.5px solid var(--frame);
}

.vf-corner-bl {
  left: -1px;
  bottom: -1px;
  border-right: 0;
  border-top: 0;
}

.vf-corner-br {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
}

.vf-hud {
  position: absolute;
  inset: clamp(0.85rem, 2.2vw, 1.4rem);
  z-index: 3;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.78);
}

.vf-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vf-rec {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.vf-rec i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 0 rgba(225, 29, 46, 0.55);
  animation: recPulse 1.4s ease-out infinite;
}

@keyframes recPulse {
  0% { box-shadow: 0 0 0 0 rgba(225, 29, 46, 0.55); opacity: 1; }
  70% { box-shadow: 0 0 0 0.55rem rgba(225, 29, 46, 0); opacity: 0.85; }
  100% { box-shadow: 0 0 0 0 rgba(225, 29, 46, 0); opacity: 1; }
}

.vf-center {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  opacity: 0.85;
}

.hero-center {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 6rem 1.5rem 5rem;
  max-width: 48rem;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 14vw, 8.5rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-indent: 0.18em;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  animation: titleIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-lead {
  margin: 1.35rem auto 0;
  max-width: 28rem;
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  animation: titleIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

@keyframes titleIn {
  from { opacity: 0; transform: translateY(1.1rem); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(1.8rem, 5vh, 3rem);
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-dim);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  animation: titleIn 1.2s ease 0.35s both;
}

.hero-scroll .bar {
  width: 1px;
  height: 2.4rem;
  background: linear-gradient(180deg, rgba(244, 241, 234, 0.55), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.55); opacity: 0.45; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

.stat {
  position: absolute;
  z-index: 4;
  font-family: var(--font-mono);
  text-align: right;
  animation: titleIn 1s ease 0.25s both;
}

.stat strong {
  display: block;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

.stat-version {
  top: calc(var(--nav-h) + 2.2rem);
  right: clamp(2rem, 5vw, 4rem);
}

.stat-online {
  left: clamp(2rem, 5vw, 4rem);
  bottom: clamp(5rem, 12vh, 7.5rem);
  text-align: left;
}

.stat-sponsor {
  right: clamp(2rem, 5vw, 4rem);
  top: 48%;
}

.stat-industry {
  right: clamp(2rem, 5vw, 4rem);
  bottom: clamp(5rem, 12vh, 7.5rem);
}

/* ---------- Story invite ---------- */
.story {
  background: #000;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.story-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.story-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.08em;
  color: #fff;
}

.story-copy p {
  margin: 1.15rem 0 0;
  max-width: 28rem;
  font-size: 0.98rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.48);
}

.story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0 1.45rem;
  border-radius: 0.55rem;
  background: linear-gradient(180deg, #d4ad3f, var(--gold));
  color: #140f05;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.btn-start:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.7rem;
  padding: 0 1rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-social svg {
  width: 1rem;
  height: 1rem;
  opacity: 0.85;
}

.btn-social:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.story-media {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 260px;
  background: #0a0c10;
}

.story-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 5vw, 4rem);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.section-desc {
  margin: 0.9rem 0 0;
  max-width: 36rem;
  color: var(--ink-muted);
}

.section-dark {
  background:
    radial-gradient(ellipse at top, rgba(196, 154, 46, 0.06), transparent 50%),
    var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 3rem;
}

.feature {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.feature h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
}

.feature p {
  margin: 0.7rem 0 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--line);
}

.cta-band p {
  margin: 0;
  color: var(--ink-muted);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.6rem;
  border-radius: 999px;
  background: var(--gold);
  color: #140f05;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.2rem;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

/* ---------- Page header (inner) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 3.5rem) clamp(1.25rem, 5vw, 4rem) 3rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.55), rgba(7, 9, 13, 0.92)),
    url("../assets/hero.jpg") center 35% / cover no-repeat;
  opacity: 0.55;
  z-index: -1;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: 0.14em;
}

.page-hero p {
  margin: 0.85rem 0 0;
  max-width: 36rem;
  color: var(--ink-muted);
}

/* ---------- Rules (minimal list) ---------- */
.page-rules {
  background: #000;
  color: #fff;
}

.page-rules .site-nav {
  background: rgba(0, 0, 0, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.page-rules .brand-sub,
.page-rules .nav-links a {
  color: rgba(255, 255, 255, 0.45);
}

.page-rules .nav-links a:hover,
.page-rules .nav-links a.is-active,
.page-rules .brand-name {
  color: #fff;
}

.page-rules .nav-links a.is-active::after {
  background: #fff;
}

.page-rules .btn-join {
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
}

.page-rules .btn-join:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

.rules-minimal {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 4.5rem) clamp(1.5rem, 5vw, 3rem) 5rem;
}

.rules-minimal-head {
  padding-bottom: 2.25rem;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.rules-minimal-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 3.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: #fff;
}

.rules-minimal-head p {
  margin: 1rem 0 0;
  max-width: 40rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.48);
}

.rules-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2rem, 5vw, 3.5rem);
}

.rules-list > li {
  padding: 1.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rules-list h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.4;
}

.rules-list h2 span {
  font-variant-numeric: tabular-nums;
}

.rules-list p {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.42);
}

.rule-bullets {
  margin: 0.7rem 0 0;
  padding-left: 1.15rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.9rem;
  line-height: 1.75;
}

.rule-bullets li {
  margin: 0.3rem 0;
}

.rule-note-box {
  margin-top: 0.9rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid rgba(120, 160, 210, 0.75);
  background: rgba(120, 160, 210, 0.08);
}

.rule-note-box.is-danger {
  border-left-color: rgba(220, 80, 80, 0.85);
  background: rgba(220, 80, 80, 0.08);
}

.rule-note-box.is-danger strong {
  color: rgba(255, 180, 180, 0.92);
}

.rule-note-box strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.06em;
}

.rule-note-box ul {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.88rem;
  line-height: 1.7;
}

.rule-note-box li {
  margin: 0.25rem 0;
}

.rule-points {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: rule-point;
}

.rule-points li {
  position: relative;
  margin: 0.55rem 0;
  padding-left: 2rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.48);
  counter-increment: rule-point;
}

.rule-points li::before {
  content: counter(rule-point);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 1px solid rgba(196, 154, 46, 0.65);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.35rem;
  text-align: center;
}

.penalty-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 1.15rem 0 0;
}

.penalty-table th,
.penalty-table td {
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
  vertical-align: top;
  color: rgba(255, 255, 255, 0.55);
}

.penalty-table th {
  background: rgba(196, 154, 46, 0.12);
  color: var(--gold-soft);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.rule-closing {
  margin: 1.25rem 0 0 !important;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(196, 154, 46, 0.35);
  background: rgba(196, 154, 46, 0.08);
  color: #fff !important;
  font-size: 1rem !important;
  letter-spacing: 0.04em;
}

.rule-closing span {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--gold-soft);
}

.rules-minimal-foot {
  margin: 2.5rem 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.32);
}

.rules-minimal-foot a {
  color: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: color 0.2s ease;
}

.rules-minimal-foot a:hover {
  color: #fff;
}

@media (max-width: 760px) {
  .rules-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- Galleries ---------- */
.sponsor-cats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 2rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sponsor-cats button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  min-height: 2.4rem;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.2;
  box-shadow: none;
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sponsor-cats button:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.07);
}

.sponsor-cats button.is-active,
.sponsor-cats button.is-active:hover {
  background: rgba(196, 154, 46, 0.14);
  border-color: rgba(196, 154, 46, 0.7);
  color: #d4ad3f;
}

.gallery-empty {
  margin: 0 0 1.5rem;
  color: var(--ink-dim);
  font-size: 0.92rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 0;
}

.gallery-item[hidden] {
  display: none !important;
}

.gallery-item {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 30%, rgba(7, 9, 13, 0.92)),
    radial-gradient(circle at 30% 20%, rgba(196, 154, 46, 0.12), transparent 55%),
    var(--bg-elevated);
}

.gallery-item.has-image {
  min-height: 280px;
  padding: 0;
  justify-content: flex-end;
  cursor: zoom-in;
}

.gallery-item.has-image:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}

.gallery-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.gallery-zoom {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: rgba(244, 241, 234, 0.45);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  cursor: default;
}

.lightbox-caption {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.gallery-item.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.1) 15%, rgba(7, 9, 13, 0.82) 68%, rgba(7, 9, 13, 0.96));
  pointer-events: none;
}

.gallery-tag {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
}

.gallery-item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
}

.gallery-item p {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.gallery-copy {
  position: relative;
  z-index: 2;
  padding: 1.25rem;
}

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

.industry-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 160px;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(196, 154, 46, 0.06), transparent 42%),
    rgba(244, 241, 234, 0.02);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.industry-card:hover {
  border-color: rgba(196, 154, 46, 0.35);
  background:
    linear-gradient(160deg, rgba(196, 154, 46, 0.1), transparent 48%),
    rgba(244, 241, 234, 0.035);
  transform: translateY(-2px);
}

.industry-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.industry-card .idx {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.industry-card .tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

.industry-card h3 {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.industry-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 2.5rem clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-dim);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(7, 9, 13, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .btn-join {
    display: none;
  }

  .stat-sponsor {
    display: none;
  }

  .feature-grid,
  .industry-grid {
    grid-template-columns: 1fr;
  }

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

  .story-media {
    order: -1;
  }

  .story-media img {
    max-height: 240px;
    min-height: 200px;
  }
}

@media (max-width: 640px) {
  .stat-online,
  .stat-industry {
    display: none;
  }

  .hero-title {
    letter-spacing: 0.12em;
    text-indent: 0.12em;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-bg {
    transform: none;
  }
}
