:root {
  --font-display: "Playfair Display", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  --bg-deep: #0F1B2D;
  --bg-deep-alt: #081220;
  --bg-panel: #1A2A3A;
  --gold: #D4AF37;
  --gold-light: #E6C779;
  --gold-pale: #F0E3C8;
  --red: #8B0000;
  --text-cream: #F5F5F0;
  --slate: #2C3E50;
  --container: 1240px;
  --radius-pill: 999px;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  background: var(--bg-deep);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(212, 175, 55, .08), transparent 28%),
    radial-gradient(circle at 12% 82%, rgba(139, 0, 0, .08), transparent 30%),
    linear-gradient(115deg, transparent 60%, rgba(212, 175, 55, .04) 60%, rgba(212, 175, 55, .04) 60.5%, transparent 60.5%),
    var(--bg-deep);
  color: var(--text-cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

main {
  display: block;
}

#main-content {
  scroll-margin-top: 8rem;
  outline: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .8em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-cream);
}

p, ul, ol, dl, blockquote {
  margin: 0 0 1rem;
}

ul[class], ol[class] {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  color: var(--gold-light);
}

a:hover {
  color: var(--gold);
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--gold);
  color: var(--bg-deep);
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: .7rem 1.2rem;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--bg-deep);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  transform: translateY(-220%);
  transition: transform .2s var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.content-container {
  width: min(100% - 48px, 780px);
  margin-inline: auto;
  padding-block: clamp(3rem, 8vw, 6rem);
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 100;
  padding: 10px 24px 14px;
  pointer-events: none;
}

.header-inner {
  position: relative;
  max-width: var(--container);
  margin-inline: auto;
  padding: .6rem .6rem .6rem 1.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  background:
    linear-gradient(120deg, rgba(230, 199, 121, .08), transparent 30%),
    var(--bg-panel);
  border: 1px solid rgba(212, 175, 55, .36);
  border-radius: var(--radius-pill);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, .4),
    0 0 0 1px rgba(230, 199, 121, .08) inset;
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.brand-mark-diamond {
  width: 12px;
  height: 12px;
  background: var(--bg-deep);
  border: 1px solid rgba(255, 255, 255, .35);
  transform: rotate(45deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(212, 175, 55, .25);
}

.brand-tagline {
  margin-top: .15rem;
  font-size: .64rem;
  letter-spacing: .22em;
  color: var(--gold-pale);
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgba(212, 175, 55, .4);
  border-radius: 50%;
  background: rgba(212, 175, 55, .12);
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  border-radius: 2px;
  background: var(--gold);
  transition: transform .25s var(--ease-out), opacity .2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(4) {
  transform: translateY(-5px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: .15rem;
}

.nav-link {
  display: block;
  padding: .55rem .85rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: .84rem;
  color: var(--gold-pale);
  text-decoration: none;
  letter-spacing: .02em;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}

.nav-link:hover {
  color: var(--gold);
  background: rgba(212, 175, 55, .1);
  border-color: rgba(212, 175, 55, .25);
}

.nav-link[aria-current="page"] {
  color: var(--bg-deep);
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(212, 175, 55, .28);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-left: .4rem;
  padding: .58rem 1.05rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--bg-deep);
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(212, 175, 55, .28);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}

.nav-cta::after {
  content: "→";
  margin-left: .35rem;
}

.nav-cta:hover {
  color: var(--bg-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(212, 175, 55, .34);
}

.site-footer {
  position: relative;
  padding: 64px 0 24px;
  overflow: hidden;
  background: var(--bg-deep-alt);
  border-top: 1px solid rgba(212, 175, 55, .3);
  color: var(--gold-pale);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 8%, rgba(212, 175, 55, .1), transparent 30%),
    repeating-linear-gradient(125deg, rgba(212, 175, 55, .05) 0 1px, transparent 1px 22px);
  pointer-events: none;
}

.site-footer .container {
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand-link {
  margin-bottom: .75rem;
}

.footer-tagline {
  margin: .75rem 0 0;
  font-size: .92rem;
  color: var(--gold-light);
  letter-spacing: .04em;
}

.footer-trust {
  max-width: 36rem;
  margin: .9rem 0 0;
  padding-left: .8rem;
  border-left: 2px solid var(--gold);
  font-size: .8rem;
  line-height: 1.8;
  color: #A6B2C0;
}

.footer-nav, .footer-legal {
  min-width: 0;
}

.footer-heading {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-links {
  display: grid;
  gap: .5rem;
}

.footer-links a {
  color: var(--gold-pale);
  font-size: .9rem;
  text-decoration: none;
  transition: color .2s, padding-left .2s;
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-contact {
  margin-top: 1.2rem;
  font-size: .8rem;
  line-height: 1.9;
  color: #A6B2C0;
}

.footer-bottom {
  position: relative;
  z-index: 2;
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid rgba(212, 175, 55, .15);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  font-size: .75rem;
  color: #A6B2C0;
}

.footer-bottom-inner p {
  margin: 0;
}

@media (max-width: 920px) {
  .site-header {
    padding: 8px 12px;
    top: 8px;
  }

  .header-inner {
    border-radius: 24px;
    padding: .65rem .65rem .65rem 1rem;
  }

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

  .site-nav {
    display: none;
    width: 100%;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    margin-top: .5rem;
    padding-top: .5rem;
    border-top: 1px solid rgba(212, 175, 55, .18);
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
  }

  .nav-link {
    padding: .75rem .9rem;
    border-radius: 14px;
  }

  .nav-cta {
    width: 100%;
    margin-left: 0;
    margin-top: .35rem;
    justify-content: center;
  }

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

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

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

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .content-container {
    width: min(100% - 28px, 780px);
  }

  .header-inner {
    border-radius: 20px;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .brand-tagline {
    font-size: .58rem;
  }

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

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

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  font-size: .8rem;
  color: var(--gold-light);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: .5rem;
  color: var(--slate);
}

.breadcrumb a {
  color: var(--gold-pale);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb [aria-current="page"] {
  color: var(--gold);
  font-weight: 600;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .6rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-kicker::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--gold);
  opacity: .6;
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.1;
}

.section-lede {
  max-width: 68ch;
  color: var(--gold-pale);
  line-height: 1.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.25rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius-pill);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s, color .25s;
}

.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--bg-deep);
}

.btn-primary:hover {
  color: var(--bg-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(212, 175, 55, .3);
}

.btn-ghost {
  background: transparent;
  color: var(--gold-light);
}

.btn-ghost:hover {
  color: var(--gold);
  background: rgba(212, 175, 55, .12);
}

.btn-danger {
  background: var(--red);
  border-color: transparent;
  color: #fff;
}

.btn-danger:hover {
  color: #fff;
  background: #A50D0D;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 0, 0, .3);
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

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

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

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.panel-cut {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem);
  background-color: var(--bg-panel);
  background-image: linear-gradient(150deg, rgba(212, 175, 55, .08), transparent 50%);
  border: 1px solid rgba(212, 175, 55, .22);
  clip-path: polygon(0 6px, 6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}

.panel-cut::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(212, 175, 55, .12);
  pointer-events: none;
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, var(--bg-panel), var(--bg-deep-alt));
  border: 1px solid rgba(212, 175, 55, .18);
}

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

.media-frame[data-placeholder]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 70% 22%, rgba(212, 175, 55, .2), transparent 42%),
    linear-gradient(115deg, transparent 42%, rgba(212, 175, 55, .16) 42%, rgba(212, 175, 55, .16) 43%, transparent 43%),
    repeating-linear-gradient(135deg, rgba(212, 175, 55, .06) 0 1px, transparent 1px 14px);
}

.media-frame[data-placeholder]::after {
  content: attr(data-caption);
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: .3rem .6rem;
  border-left: 2px solid var(--gold);
  background: rgba(15, 27, 45, .72);
  color: var(--gold-light);
  font-size: .75rem;
  letter-spacing: .12em;
}

.tabs {
  margin: 2rem 0;
}

.tabs-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--slate);
}

.tab {
  padding: .55rem 1.1rem;
  border: 1px solid var(--slate);
  border-radius: var(--radius-pill);
  font-size: .9rem;
  color: var(--gold-pale);
  background: transparent;
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}

.tab:hover {
  color: var(--gold);
  border-color: rgba(212, 175, 55, .4);
}

.tab[aria-selected="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-deep);
  font-weight: 600;
}

.tabpanel {
  animation: fadeUp .3s var(--ease-out);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}

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

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

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