:root {
  --c-deep: #0A1128;
  --c-night: #1A0B2E;
  --c-gold: #C9A227;
  --c-gold-light: #E5C86B;
  --c-cyan: #00E5FF;
  --c-white: #F5F5F7;
  --c-gray: #A0A8B8;
  --c-glass: rgba(255, 255, 255, 0.08);
  --c-warning: #FFB800;
  --c-good: #00FF9D;
  --c-bad: #FF3B3B;
  --gradient-gold: linear-gradient(135deg, #C9A227 0%, #E5C86B 50%, #C9A227 100%);
  --font-title: "Noto Serif SC", "Source Han Serif SC", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
  --site-width: 1320px;
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 0%, rgba(201, 162, 39, 0.18), transparent 32%),
    radial-gradient(circle at 10% 25%, rgba(0, 229, 255, 0.1), transparent 28%),
    radial-gradient(circle at 65% 90%, rgba(26, 11, 46, 0.8), transparent 46%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 45%),
    var(--c-deep);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.0625rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-title);
  color: var(--c-white);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

p {
  margin-bottom: 1.25rem;
}

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

a:hover {
  color: var(--c-cyan);
}

ul,
ol {
  list-style: none;
}

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

::selection {
  background: rgba(0, 229, 255, 0.28);
  color: var(--c-white);
}

:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 4px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(var(--site-width), calc(100% - clamp(1.5rem, 4vw, 4rem)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3000;
  transform: translateY(calc(-100% - 2rem));
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--c-gold-light);
  border-radius: 999px;
  background: var(--c-deep);
  color: var(--c-white);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--c-white);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 4000;
  width: 100%;
  height: 2px;
  pointer-events: none;
  background: var(--gradient-gold);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 50%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 17, 40, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.site-header__inner {
  width: min(var(--site-width), calc(100% - 2rem));
  margin-inline: auto;
  padding: 1.5rem 0 0;
}

.masthead {
  text-align: center;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--c-white);
}

.brand:hover {
  color: var(--c-white);
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.25rem;
  flex: 0 0 auto;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-gold);
  clip-path: polygon(8% 90%, 0% 20%, 24% 48%, 50% 0%, 76% 48%, 100% 20%, 92% 90%, 76% 100%, 24% 100%);
  transition: filter 0.3s ease;
}

.brand-mark__gem {
  position: absolute;
  left: 50%;
  bottom: 28%;
  width: 15%;
  height: 28%;
  background: var(--c-cyan);
  clip-path: polygon(50% 0%, 100% 100%, 50% 70%, 0% 100%);
  filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.7));
  transform: translateX(-50%);
}

.brand:hover .brand-mark::before {
  filter: drop-shadow(0 0 8px rgba(229, 200, 107, 0.85));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.brand-copy__name {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--c-gold-light);
  text-shadow: 0 0 24px rgba(229, 200, 107, 0.18);
}

.brand-copy__sub {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  color: var(--c-gray);
  text-transform: uppercase;
}

.brand-copy__slogan {
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-cyan);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.25rem;
}

.site-nav__link {
  display: inline-block;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--c-gray);
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.site-nav__link:hover {
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.04);
}

.site-nav__link[aria-current="page"] {
  color: var(--c-white);
  border-bottom-color: var(--c-gold-light);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  margin: 0.75rem 0;
  background: transparent;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 999px;
  color: var(--c-white);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.nav-toggle:hover {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
}

.nav-toggle__label {
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-toggle__icon {
  width: 1.2rem;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background 0.2s ease;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: top 0.2s ease, bottom 0.2s ease, transform 0.2s ease;
}

.nav-toggle__icon::before {
  top: -6px;
}

.nav-toggle__icon::after {
  bottom: -6px;
}

.site-nav[data-open] .nav-toggle {
  border-color: var(--c-gold-light);
}

.site-nav[data-open] .nav-toggle__icon {
  background: transparent;
}

.site-nav[data-open] .nav-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.site-nav[data-open] .nav-toggle__icon::after {
  bottom: 0;
  transform: rotate(-45deg);
}

.site-footer {
  position: relative;
  margin-top: clamp(5rem, 10vw, 8rem);
  background: linear-gradient(180deg, rgba(26, 11, 46, 0.96), rgba(10, 17, 40, 0.98));
  border-top: 1px solid rgba(201, 162, 39, 0.35);
}

.site-footer::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-gold-light), transparent);
  opacity: 0.7;
}

.site-footer__inner {
  width: min(var(--site-width), calc(100% - clamp(1.5rem, 4vw, 4rem)));
  margin-inline: auto;
  padding: 4.5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-brand .brand-copy {
  align-items: flex-start;
}

.footer-trust {
  margin-top: 1.25rem;
  font-family: var(--font-title);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: var(--c-white);
}

.footer-note {
  max-width: 24rem;
  margin-top: 0.5rem;
  font-size: 0.925rem;
  color: var(--c-gray);
}

.footer-heading {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold-light);
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}

.footer-contact-list,
.footer-legal-list {
  display: grid;
  gap: 0.55rem;
  color: var(--c-gray);
}

.footer-legal-list a {
  color: var(--c-gray);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-legal-list a:hover {
  color: var(--c-white);
  padding-left: 0.25rem;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--c-gray);
}

.footer-icp {
  color: var(--c-gold-light);
}

.section {
  position: relative;
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.section__header {
  max-width: 54rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section__index {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  color: var(--c-gold-light);
}

.section__title {
  margin-bottom: 1rem;
}

.section__lead {
  max-width: 34em;
  font-size: 1.1rem;
  color: var(--c-gray);
}

.glass-card {
  position: relative;
  padding: 1.75rem;
  background: var(--c-glass);
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 18px 40px rgba(0, 0, 0, 0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--c-deep);
  box-shadow: 0 0 24px rgba(201, 162, 39, 0.32);
}

.btn-primary:hover {
  color: var(--c-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 162, 39, 0.42);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--c-white);
  border-color: rgba(201, 162, 39, 0.5);
}

.btn-ghost:hover {
  color: var(--c-cyan);
  border-color: var(--c-cyan);
  transform: translateY(-2px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--c-gray);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: rgba(255, 255, 255, 0.25);
}

.breadcrumbs a {
  color: var(--c-gray);
}

.breadcrumbs a:hover {
  color: var(--c-cyan);
}

.breadcrumbs [aria-current="page"] {
  color: var(--c-white);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

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

.masonry {
  columns: 3 300px;
  column-gap: 1.5rem;
}

.masonry > * {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--c-gold-light), var(--c-cyan));
  opacity: 0.6;
}

.timeline__item {
  position: relative;
  padding: 0 0 2rem 2.25rem;
}

.timeline__item::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: 0;
  width: 14px;
  height: 14px;
  background: var(--c-deep);
  border: 2px solid var(--c-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-btn {
  padding: 0.55rem 1.25rem;
  background: transparent;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 999px;
  color: var(--c-gray);
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.filter-btn:hover {
  color: var(--c-white);
  border-color: var(--c-cyan);
}

.filter-btn.is-active {
  background: var(--gradient-gold);
  border-color: transparent;
  color: var(--c-deep);
}

.media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.14), rgba(0, 229, 255, 0.08));
}

.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--square {
  aspect-ratio: 1;
}

.media--portrait {
  aspect-ratio: 4 / 5;
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
  }

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .site-header__inner {
    width: min(100% - 1.5rem, var(--site-width));
    padding-top: 1rem;
  }

  .masthead {
    padding-bottom: 0.8rem;
  }

  .brand-mark {
    width: 2.25rem;
    height: 1.9rem;
  }

  .brand-copy__name {
    font-size: 1.35rem;
  }

  .site-nav {
    flex-direction: column;
    justify-content: center;
    min-height: auto;
  }

  html.js .nav-toggle {
    display: inline-flex;
  }

  html.js .site-nav__list {
    display: none;
  }

  html.js .site-nav[data-open] .site-nav__list {
    display: flex;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .site-nav__link {
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-nav__link[aria-current="page"] {
    border-bottom-color: var(--c-gold-light);
  }

  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .masonry {
    columns: 1;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-col--brand {
    grid-column: auto;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.js [data-reveal],
  html.js [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
