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

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

ul, ol {
  list-style: none;
}

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

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

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

:root {
  --bg: #1A1512;
  --bg-deep: #0F0F0F;
  --bg-panel: #171310;
  --bg-soft: #211A15;
  --fg: #F5EFE6;
  --fg-strong: #FFFFFF;
  --fg-muted: #A89F91;
  --gold: #D4AF37;
  --gold-soft: #F1E5C0;
  --gold-deep: #B8860B;
  --red: #8B0000;
  --green: #2ECC71;
  --gray: #A89F91;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --header-w: 300px;
  --cut: 12px;
  --container-max: 1180px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --lh: 1.7;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: .01em;
  color: var(--fg);
}

h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

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

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.main-content {
  flex: 1;
  padding-block: clamp(32px, 6vw, 72px);
}

.section {
  margin-block: var(--space-xl);
}

.section-head {
  margin-bottom: var(--space-lg);
}

.section-title {
  margin-bottom: 8px;
}

.section-desc {
  color: var(--gray);
  max-width: 60ch;
  font-size: 15px;
}

.text-muted {
  color: var(--gray);
}

.highlight-gold {
  color: var(--gold);
}

.font-mono {
  font-family: var(--mono);
}

.font-serif {
  font-family: var(--serif);
}

.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--header-w);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: 28px 20px 18px;
  background:
    repeating-conic-gradient(rgba(212, 175, 55, .035) 0% 25%, transparent 0% 50%) 0 0 / 24px 24px,
    linear-gradient(180deg, #1A1512, #0F0C0A);
  border-right: 1px solid rgba(212, 175, 55, .25);
  max-height: 100vh;
  overflow-y: auto;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 24px;
  z-index: 900;
  padding: 12px 22px;
  background: var(--gold);
  color: var(--bg);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transition: top .2s ease;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.scroll-progress {
  position: fixed;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 500;
  pointer-events: none;
}

.brand-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--fg);
  min-width: 0;
}

.brand-coin {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .4), transparent 50%),
    linear-gradient(135deg, #E5C558, var(--gold-deep));
  color: var(--bg);
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 800;
  position: relative;
}

.brand-coin::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(26, 21, 18, .35);
}

.brand-coin-face {
  position: relative;
  z-index: 1;
}

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

.brand-name {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--fg);
}

.brand-sub {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: .26em;
  text-transform: uppercase;
  margin-top: 4px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, .35);
  cursor: pointer;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

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

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

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

.site-nav {
  margin-top: 4px;
}

.nav-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.nav-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 175, 55, .45), transparent);
}

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

.nav-list::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(212, 175, 55, .35) 20%, rgba(212, 175, 55, .25) 80%, transparent);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 12px 11px 0;
  color: var(--gray);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  position: relative;
  transition: color .2s ease, background .2s ease;
}

.nav-link::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border: 2px solid var(--gray);
  border-radius: 50%;
  background: var(--bg);
  position: relative;
  z-index: 1;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--fg);
  background: linear-gradient(90deg, rgba(212, 175, 55, .09), transparent 90%);
}

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

.nav-link[aria-current="page"] {
  font-weight: 800;
}

.nav-link[aria-current="page"]::before {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, .65);
}

.nav-footnote {
  margin-top: 26px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--gray);
  background: rgba(212, 175, 55, .05);
  border-left: 2px solid var(--gold);
  font-family: var(--mono);
}

.announcement-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(139, 0, 0, .26);
  border: 1px solid rgba(139, 0, 0, .5);
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg);
  position: relative;
}

.announcement-bar::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.announcement-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D32020;
  box-shadow: 0 0 0 3px rgba(139, 0, 0, .45);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(212, 175, 55, .14);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gray);
  line-height: 1;
}

.status-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(46, 204, 113, .7);
  flex-shrink: 0;
}

.header-status-divider {
  width: 1px;
  height: 12px;
  background: rgba(212, 175, 55, .3);
}

.status-label {
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  color: var(--gray);
}

@media (min-width: 1024px) {
  .scroll-progress {
    left: var(--header-w);
    width: calc(100vw - var(--header-w));
  }
}

@media (max-width: 1023.98px) {
  body {
    display: block;
  }

  .site-header {
    position: sticky;
    top: 0;
    inset: auto;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-right: none;
    border-bottom: 1px solid rgba(212, 175, 55, .22);
    background: rgba(26, 21, 18, .98);
    max-height: none;
    overflow: visible;
  }

  .brand-block {
    flex: 1;
  }

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

  .announcement-bar {
    order: 3;
    width: 100%;
    margin-top: 2px;
  }

  .header-status {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 84vw);
    margin: 0;
    padding: 78px 22px 24px;
    background:
      repeating-conic-gradient(rgba(212, 175, 55, .03) 0% 25%, transparent 0% 50%) 0 0 / 22px 22px,
      var(--bg-deep);
    border-right: 1px solid rgba(212, 175, 55, .3);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .4s var(--ease), visibility .4s;
    z-index: 95;
    overflow-y: auto;
  }

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

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(8, 6, 5, .62);
    z-index: 85;
    pointer-events: none;
  }
}

@media (max-width: 639.98px) {
  .brand-name {
    font-size: 20px;
  }

  .brand-coin {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .brand-sub {
    font-size: 10px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  color: var(--fg);
  clip-path: polygon(var(--cut) 0, calc(100% - 1px) 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 1px 100%, 0 var(--cut));
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.btn-gold {
  background: var(--gold);
  color: var(--bg);
}

.btn-gold:hover {
  background: var(--gold-soft);
  transform: translateY(-1px);
}

.btn-outline {
  color: var(--gold);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, .5);
}

.btn-outline:hover {
  box-shadow: inset 0 0 0 2px var(--gold);
  background: rgba(212, 175, 55, .07);
}

.btn-danger {
  background: var(--red);
  color: var(--fg);
}

.btn-danger:hover {
  background: #A50000;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 17px 34px;
  font-size: 17px;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--bg), inset 0 0 0 5px var(--gold);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 32px;
  padding: 0;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--gray);
  opacity: .6;
}

.breadcrumb-item a {
  color: var(--gray);
  transition: color .2s ease;
}

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

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

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-md);
}

.col-4,
.col-6,
.col-8 {
  grid-column: span 12;
}

@media (min-width: 641px) {
  .col-6 {
    grid-column: span 6;
  }

  .col-4 {
    grid-column: span 4;
  }

  .col-8 {
    grid-column: span 8;
  }
}

.panel {
  background: var(--bg-soft);
  border: 1px solid rgba(212, 175, 55, .12);
  padding: var(--space-md);
}

.panel-cut {
  --cut: 14px;
  background:
    linear-gradient(var(--bg-soft), var(--bg-soft)) padding-box,
    linear-gradient(135deg, rgba(212, 175, 55, .45), rgba(212, 175, 55, .06)) border-box;
  border: 1px solid transparent;
  clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.panel-dark {
  background: var(--bg-deep);
}

.panel-highlight {
  border-color: rgba(212, 175, 55, .38);
}

.card {
  display: block;
  background: var(--bg-soft);
  border-top: 2px solid var(--gold);
  padding: var(--space-md);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
}

.card-title {
  font-size: 20px;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-weight: 800;
}

.card-text {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.7;
}

.media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 22% 18%, rgba(212, 175, 55, .25), transparent 55%),
    linear-gradient(135deg, #241D15, #12100B);
  border: 1px solid rgba(212, 175, 55, .22);
  overflow: hidden;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212, 175, 55, .16);
  background:
    linear-gradient(135deg, transparent 8px, rgba(212, 175, 55, .14) 0) top left,
    linear-gradient(-135deg, transparent 8px, rgba(212, 175, 55, .14) 0) top right;
  background-size: 50% 50%;
  background-repeat: no-repeat;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(212, 175, 55, .1);
  border: 1px solid rgba(212, 175, 55, .25);
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.tag-red {
  color: #FF9B9B;
  border-color: rgba(139, 0, 0, .5);
  background: rgba(139, 0, 0, .2);
}

.tag-green {
  color: var(--green);
  border-color: rgba(46, 204, 113, .4);
  background: rgba(46, 204, 113, .1);
}

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

.status-dot[data-state="online"] {
  background: var(--green);
  box-shadow: 0 0 8px rgba(46, 204, 113, .6);
}

.status-dot[data-state="attention"] {
  background: var(--gold);
}

.status-dot[data-state="offline"] {
  background: var(--red);
}

.scroll-x {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, .4) transparent;
}

.scroll-x > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.checker {
  --cell: 14px;
  background-image:
    linear-gradient(45deg, rgba(212, 175, 55, .08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(212, 175, 55, .08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(212, 175, 55, .08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(212, 175, 55, .08) 75%);
  background-size: calc(var(--cell) * 2) calc(var(--cell) * 2);
  background-position: 0 0, 0 var(--cell), var(--cell) calc(-1 * var(--cell)), calc(-1 * var(--cell)) 0;
}

.divider {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, .25), transparent);
  margin: var(--space-lg) 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.site-footer {
  position: relative;
  background:
    repeating-conic-gradient(rgba(212, 175, 55, .022) 0% 25%, transparent 0% 50%) 0 0 / 32px 32px,
    var(--bg-deep);
  border-top: 1px solid rgba(212, 175, 55, .22);
  margin-top: auto;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 4vw, 48px) 24px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(240px, 50%);
  height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 32px;
  max-width: var(--container-max);
  margin-inline: auto;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .35), transparent 50%),
    linear-gradient(135deg, #E5C558, var(--gold-deep));
  color: var(--bg);
  font-family: var(--serif);
  font-weight: 800;
  font-size: 22px;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}

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

.footer-brand-copy strong {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: .04em;
  color: var(--fg);
}

.footer-brand-copy span {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-top: 2px;
}

.footer-trust {
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray);
  border-left: 2px solid rgba(212, 175, 55, .4);
  padding-left: 12px;
}

.footer-heading {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, .15);
}

.footer-nav-col ul,
.footer-legal-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-col a,
.footer-legal-col a {
  color: var(--gray);
  font-size: 14px;
  transition: color .2s ease, padding-left .2s ease;
}

.footer-nav-col a:hover,
.footer-legal-col a:hover {
  color: var(--gold);
  padding-left: 6px;
}

.footer-contact-col {
  font-size: 14px;
  color: var(--gray);
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.6;
}

.footer-phone {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
}

.footer-email {
  font-family: var(--mono);
  color: var(--gold);
}

.footer-address {
  font-size: 13px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--container-max);
  margin-inline: auto;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid rgba(212, 175, 55, .12);
  font-size: 13px;
  color: var(--gray);
}

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

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

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

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

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

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