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

:root {
  --bg-deep: #0A111A;
  --bg-panel: #14263A;
  --bg-ink: #060C14;
  --text-warm: #F4EDE2;
  --gold: #D4A843;
  --red: #E04A3A;
  --slate: #9BB0C8;
  --line: #2E4057;
  --teal: #3DBBA3;
  --muted: #6B7C93;
  --white: #FFFFFF;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-data: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --maxw: 1200px;
  --header-w: 300px;
}

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-warm);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

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

a { color: inherit; text-decoration: none; transition: color .2s ease, border-color .2s ease, background-color .2s ease, opacity .2s ease; }

ul, ol { list-style: none; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

h1, h2, h3, h4 { font-weight: 900; color: var(--white); line-height: 1.25; }

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

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--gold);
  color: var(--bg-deep);
  padding: 10px 18px;
  font-weight: 700;
  border-radius: 2px;
  transition: top .2s ease;
}

.skip-link:focus { top: 12px; }

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

.section { padding: 56px 0; }
.section--dense { padding: 28px 0; }
.section--airy { padding: 80px 0; }

.section-head { margin-bottom: 32px; }

.section-kicker {
  display: block;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--gold);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  margin-right: 10px;
  vertical-align: middle;
}

.section-title { font-size: clamp(26px, 4vw, 40px); font-weight: 900; color: var(--white); line-height: 1.2; }

.page-heading { padding: 48px 0 24px; }
.page-title { font-size: clamp(28px, 5vw, 52px); font-weight: 900; color: var(--white); line-height: 1.15; }
.page-subtitle { font-size: 15px; color: var(--slate); margin-top: 6px; }

.font-data { font-family: var(--font-data); font-variant-numeric: tabular-nums; }

.prose { max-width: 72ch; }
.prose p { margin-bottom: 1em; }
.prose h2, .prose h3 { margin-top: 1.8em; margin-bottom: .6em; }

.divider { height: 1px; border: 0; background: linear-gradient(90deg, var(--line), rgba(46, 64, 87, 0)); margin: 32px 0; }

.grid-split { display: grid; grid-template-columns: 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }

.btn-gold,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 2px 10px 2px 10px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn-gold { background: var(--gold); color: var(--bg-deep); }
.btn-gold:hover { background: #E3BD56; }

.btn-ghost { border: 1px solid var(--slate); color: var(--text-warm); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 20px 0 0;
  color: var(--muted);
}

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

.glass-panel {
  position: relative;
  padding: 24px;
  background: rgba(20, 38, 58, .72);
  border: 1px solid rgba(155, 176, 200, .2);
  border-radius: 4px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.glass-panel::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 22px;
  height: 22px;
  border-top: 3px solid var(--gold);
  border-left: 3px solid var(--gold);
  opacity: .7;
  pointer-events: none;
}

.data-chip {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--slate);
  border: 1px solid var(--line);
  background: var(--bg-panel);
  padding: 4px 10px;
  border-radius: 2px;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.data-chip--gold { color: var(--gold); border-color: rgba(212, 168, 67, .42); }
.data-chip--red { color: var(--red); border-color: rgba(224, 74, 58, .42); }
.data-chip--teal { color: var(--teal); border-color: rgba(61, 187, 163, .42); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-data);
  font-size: 14px;
  background: var(--bg-panel);
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  color: var(--slate);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(46, 64, 87, .6);
  color: var(--text-warm);
}

.data-table tr:last-child td { border-bottom: 0; }
.data-table .is-hot { color: var(--gold); font-weight: 700; }
.data-table .is-red { color: var(--red); font-weight: 700; }

.frame-window {
  position: relative;
  padding: 32px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  -webkit-clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.frame-ruler {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--line) 0 2px, transparent 2px 12px);
  border-bottom: 1px solid var(--line);
  pointer-events: none;
}

.frame-tag {
  position: absolute;
  top: 14px;
  right: 20px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
}

.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}

.media-frame::after {
  content: "IMG PLACEHOLDER";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .18em;
  background: repeating-linear-gradient(45deg, rgba(155, 176, 200, .05) 0 10px, transparent 10px 20px);
}

.media-frame img,
.media-frame video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--wide { aspect-ratio: 21 / 9; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 17, 26, .92);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-header::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  right: 0;
  width: 4px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 4px, transparent 4px 7px);
  opacity: 0;
  pointer-events: none;
}

.header-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
}

.brand-block { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.brand-lockup { display: inline-flex; align-items: center; gap: 10px; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: var(--bg-deep);
  font-size: 22px;
  font-weight: 900;
  flex-shrink: 0;
  -webkit-clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.brand-lockup:hover .brand-mark { filter: brightness(1.08); }
.brand-lockup:hover .brand-text strong { color: var(--gold); }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 18px; font-weight: 900; color: var(--white); letter-spacing: .02em; transition: color .2s ease; }
.brand-text small { font-size: 11px; color: var(--slate); letter-spacing: .18em; }

.brand-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }

.brand-badge {
  display: inline-block;
  font-size: 11px;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 1px 8px;
  border-radius: 2px;
  letter-spacing: .1em;
  white-space: nowrap;
}

.header-note { display: none; font-family: var(--font-data); font-size: 12px; color: var(--slate); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  flex-shrink: 0;
}

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

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 20px;
}

.nav-toggle-line {
  width: 18px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease;
}

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

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  background: rgba(3, 7, 12, .7);
}

.nav-scrim:not([hidden]) { display: block; }

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  z-index: 80;
  background: var(--bg-panel);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 20px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .3s ease, visibility .3s ease;
}

.site-nav[data-open] {
  transform: translateX(0);
  visibility: visible;
}

.nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.nav-heading {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--slate);
  text-transform: uppercase;
}

.nav-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 18px;
  color: var(--slate);
  line-height: 1;
}

.nav-close:hover { color: var(--white); border-color: var(--gold); }

.nav-list { display: flex; flex-direction: column; gap: 2px; }

.nav-item { border-bottom: 1px solid rgba(46, 64, 87, .4); }

.nav-link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 8px;
  color: var(--slate);
  font-weight: 500;
  font-size: 15px;
  border-left: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.nav-index {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--muted);
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, .02);
  border-left-color: var(--gold);
}

.nav-link[aria-current="page"] {
  color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(212, 168, 67, .08);
}

.nav-link[aria-current="page"] .nav-index { color: var(--gold); }

.nav-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--muted);
}

.nav-foot-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
  flex-shrink: 0;
}

.header-foot { display: none; }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
  flex-shrink: 0;
}

.site-footer {
  background: var(--bg-ink);
  border-top: 1px solid var(--line);
  color: var(--slate);
  margin-top: 80px;
}

.footer-shell {
  width: min(var(--maxw), calc(100% - 40px));
  margin-inline: auto;
  padding-top: 48px;
  padding-bottom: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 36px;
}

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

.brand-lockup--footer .brand-text strong { font-size: 20px; }

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 38ch;
  margin-top: 14px;
}

.footer-nav { display: flex; flex-direction: column; }

.footer-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-warm);
  letter-spacing: .14em;
  margin-bottom: 14px;
}

.footer-link-list li + li { margin-top: 8px; }

.footer-link-list a {
  font-size: 14px;
  color: var(--slate);
  transition: color .2s ease, padding-left .2s ease;
}

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

.footer-contact { display: flex; flex-direction: column; }

.footer-contact-list li {
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
  margin-bottom: 10px;
}

.footer-contact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

.footer-service { font-size: 12px; color: var(--muted); margin-top: 8px; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--muted);
}

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

.js [data-reveal="visible"] {
  opacity: 1;
  transform: none;
}

@media (min-width: 768px) {
  .grid-split { grid-template-columns: 1fr 2fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr .8fr 1fr; }
  .footer-bottom { align-items: center; }
}

@media (min-width: 1024px) {
  body { padding-left: var(--header-w); }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--header-w);
    border-bottom: 0;
    border-right: 1px solid var(--line);
    background: var(--bg-deep);
  }

  .site-header::after { opacity: 1; }

  .header-rail {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100%;
    padding: 32px 28px;
  }

  .brand-block { width: 100%; }

  .brand-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 12px;
  }

  .header-note { display: block; }

  .nav-toggle { display: none; }
  .nav-scrim { display: none !important; }

  .site-nav,
  .site-nav[aria-hidden="true"] {
    position: static;
    width: auto;
    flex: 1;
    transform: none;
    visibility: visible;
    background: transparent;
    border-left: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  .site-nav[data-open] { pointer-events: auto; }
  .nav-head { display: none; }
  .nav-close { display: none; }

  .nav-list { margin-top: 28px; gap: 4px; }
  .nav-item { border-bottom: 0; }
  .nav-link { padding: 12px 10px; }

  .header-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-family: var(--font-data);
    font-size: 12px;
    color: var(--muted);
  }

  .nav-foot { display: none; }
}

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

  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
