:root {
  --color-navy: #0A1F44;
  --color-navy-deep: #060F24;
  --color-steel: #1E3A5F;
  --color-orange: #FF6B35;
  --color-green: #39FF14;
  --color-ice: #7EC8E3;
  --color-off: #F2F5F8;
  --color-gray: #9AA7B0;
  --color-gold: #FFC300;
  --color-danger: #E63946;
  --font-impact: Impact, 'Roboto Condensed', 'Archivo Narrow', sans-serif;
  --font-solid: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'Roboto Mono', 'SFMono-Regular', Consolas, monospace;
  --rail-width: 88px;
  --header-h: 64px;
  --container: 1200px;
  --radius: 6px;
  --ease: 220ms;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-solid);
  font-size: 16px;
  line-height: 1.7;
  background: var(--color-navy);
  color: var(--color-off);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5em;
  font-family: var(--font-impact), var(--font-solid);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.4em;
}

a {
  color: var(--color-ice);
  text-decoration: none;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--color-green);
  outline-offset: 3px;
}

::selection {
  background: var(--color-orange);
  color: var(--color-navy);
}

#main-content {
  display: block;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 3000;
  padding: 12px 18px;
  background: var(--color-off);
  color: var(--color-navy);
  font-weight: 700;
  border-radius: 4px;
  transform: translateY(-240%);
  transition: transform 180ms ease;
}

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

@media (min-width: 769px) {
  body {
    padding-left: var(--rail-width);
  }
}

@media (max-width: 768px) {
  body {
    padding-top: var(--header-h);
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-width);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background-color: var(--color-navy);
  background-image:
    linear-gradient(rgba(126, 200, 227, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 200, 227, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  border-right: 3px solid var(--color-orange);
  transition: width var(--ease) ease;
  overflow: hidden;
}

.site-header__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 16px 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-off);
  text-decoration: none;
  padding: 8px 4px;
  min-height: 64px;
  border-bottom: 1px solid rgba(126, 200, 227, 0.18);
  margin-bottom: 18px;
}

.brand__mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-orange), var(--color-gold));
  color: var(--color-navy);
  font-family: var(--font-impact);
  font-size: 22px;
  transform: skewX(-8deg);
  box-shadow: 4px 4px 0 var(--color-green);
}

.brand__text {
  width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 180ms ease, width var(--ease) ease;
}

.brand__name {
  display: block;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.2;
}

.brand__note {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--color-ice);
  line-height: 1.4;
}

.brand__slogan {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-gray);
  white-space: normal;
}

.site-header:hover .brand__text,
.site-header:focus-within .brand__text {
  width: 180px;
  opacity: 1;
}

.site-nav {
  width: 100%;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-nav__item {
  margin: 0;
  padding: 0;
}

.site-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  font-family: var(--font-solid);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-ice);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-nav__index {
  flex: 0 0 24px;
  width: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: right;
  color: var(--color-green);
}

.site-nav__label {
  flex: 0 0 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: flex-basis var(--ease) ease, opacity 180ms ease;
}

.site-header:hover .site-nav__label,
.site-header:focus-within .site-nav__label {
  flex-basis: auto;
  opacity: 1;
}

.site-nav__link:hover {
  color: var(--color-off);
  background: rgba(126, 200, 227, 0.1);
  box-shadow: inset 0 0 0 1px rgba(57, 255, 20, 0.45);
}

.site-nav__link[aria-current="page"] {
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-green) 100%);
  color: var(--color-navy);
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.25);
}

.site-nav__link[aria-current="page"] .site-nav__index {
  color: var(--color-navy);
}

.nav-toggle {
  display: none;
}

.nav-toggle__icon,
.nav-toggle__text {
  vertical-align: middle;
}

.site-nav__overlay {
  display: none;
}

.site-footer {
  position: relative;
  background: var(--color-navy-deep);
  border-top: 3px solid var(--color-orange);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 32%;
  height: 3px;
  background: var(--color-green);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 72px) clamp(16px, 4vw, 48px) 32px;
}

.site-footer__mast {
  grid-column: span 4;
}

.site-footer__links {
  grid-column: span 2;
}

.site-footer__legal {
  grid-column: span 3;
}

.site-footer__contact {
  grid-column: span 3;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--color-off);
  text-decoration: none;
}

.footer-brand__mark {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-orange), var(--color-gold));
  color: var(--color-navy);
  font-family: var(--font-impact);
  font-size: 24px;
  transform: skewX(-8deg);
  box-shadow: 4px 4px 0 var(--color-green);
}

.footer-brand__name {
  display: block;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
}

.footer-brand__note {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--color-green);
}

.footer-brand__slogan {
  color: var(--color-gray);
  font-size: 14px;
  max-width: 30ch;
  margin: 18px 0 0;
  line-height: 1.7;
}

.site-footer__heading {
  font-family: var(--font-solid);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-gold);
  border-bottom: 1px solid rgba(126, 200, 227, 0.2);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.site-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-footer__menu a {
  color: var(--color-ice);
  font-size: 14px;
  transition: color 180ms ease, padding-left 180ms ease;
}

.site-footer__menu a:hover {
  color: var(--color-green);
  padding-left: 4px;
}

.site-footer__note,
.site-footer__line,
.site-footer__trust {
  color: var(--color-gray);
  font-size: 13px;
  line-height: 1.7;
}

.site-footer__line {
  margin-bottom: 0.4em;
}

.site-footer__trust {
  margin-top: 16px;
}

.site-footer__icp {
  display: inline-block;
  margin-top: 12px;
  color: var(--color-gold);
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px solid rgba(255, 195, 0, 0.5);
  padding: 4px 8px;
  border-radius: 4px;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 48px) 32px;
  border-top: 1px solid rgba(126, 200, 227, 0.16);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-gray);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--font-solid);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  background: transparent;
  color: var(--color-off);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-orange);
  color: var(--color-navy);
  box-shadow: 4px 4px 0 var(--color-green);
}

.btn--primary:hover {
  background: var(--color-gold);
  color: var(--color-navy);
  box-shadow: 4px 6px 0 var(--color-green);
}

.btn--outline {
  border-color: rgba(126, 200, 227, 0.6);
  color: var(--color-ice);
}

.btn--outline:hover {
  background: rgba(126, 200, 227, 0.1);
  color: var(--color-off);
  box-shadow: 4px 4px 0 var(--color-green);
}

.breadcrumbs {
  padding: 24px 0 8px;
}

.breadcrumbs__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-gray);
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  margin-right: 8px;
  color: var(--color-gray);
}

.breadcrumbs__link {
  color: var(--color-ice);
  text-decoration: none;
}

.breadcrumbs__link[aria-current="page"] {
  color: var(--color-green);
}

.section {
  padding: clamp(48px, 8vw, 96px) 0;
}

.section--alt {
  background: var(--color-steel);
}

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

.section-heading__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-green);
}

.section-heading__title {
  font-family: var(--font-impact), var(--font-solid);
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1;
  margin-top: 8px;
}

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(12, 1fr);
}

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

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

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

.card {
  background: var(--color-steel);
  border: 1px solid rgba(126, 200, 227, 0.2);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--color-green);
  box-shadow: 4px 4px 0 rgba(57, 255, 20, 0.35);
}

.card__title {
  font-family: var(--font-solid);
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 8px;
}

.card__text {
  color: var(--color-gray);
  font-size: 14px;
  margin: 0;
}

.data-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid rgba(57, 255, 20, 0.5);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-green);
}

.tag {
  display: inline-block;
  background: rgba(255, 107, 53, 0.18);
  border: 1px solid rgba(255, 107, 53, 0.5);
  color: var(--color-orange);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--color-steel);
  border: 1px solid rgba(126, 200, 227, 0.16);
  border-radius: var(--radius);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, rgba(10, 31, 68, 0.7) 0%, rgba(10, 31, 68, 0) 48%, rgba(57, 255, 20, 0.12) 100%);
  pointer-events: none;
}

.media-frame--16x9 {
  aspect-ratio: 16 / 9;
}

.media-frame--4x3 {
  aspect-ratio: 4 / 3;
}

.media-frame > img,
.media-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame__data {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

[data-reveal] {
  transition: opacity 260ms ease, transform 260ms ease;
}

.is-reveal-pending {
  opacity: 0;
  transform: translateY(20px);
}

.is-revealed {
  opacity: 1;
  transform: none;
}

@media (max-width: 1024px) {
  .site-footer__mast {
    grid-column: span 6;
  }

  .site-footer__links {
    grid-column: span 3;
  }

  .site-footer__legal {
    grid-column: span 3;
  }

  .site-footer__contact {
    grid-column: span 12;
  }

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

@media (max-width: 768px) {
  .site-header {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: var(--header-h);
    flex-direction: row;
    align-items: center;
    background-image: none;
    border-right: 0;
    border-bottom: 3px solid var(--color-orange);
    overflow: visible;
    transition: none;
  }

  .site-header__inner {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 0 4px;
  }

  .brand {
    border-bottom: 0;
    margin-bottom: 0;
    padding: 0 8px 0 0;
    min-height: 0;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 18px;
    box-shadow: 3px 3px 0 var(--color-green);
  }

  .brand__name {
    font-size: 16px;
  }

  .brand__note {
    font-size: 10px;
  }

  .brand__slogan {
    display: none;
  }

  .site-header .brand__text {
    width: auto;
    overflow: visible;
    opacity: 1;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 10px 12px;
    background: var(--color-steel);
    border: 1px solid rgba(255, 107, 53, 0.55);
    border-radius: var(--radius);
    color: var(--color-off);
    font-weight: 700;
  }

  .nav-toggle__icon {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--color-off);
    position: relative;
    transition: background 180ms ease;
  }

  .nav-toggle__icon::before,
  .nav-toggle__icon::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 2px;
    background: var(--color-off);
    transition: transform 180ms ease, top 180ms ease;
  }

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

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

  .nav-toggle[aria-expanded="true"] .nav-toggle__icon {
    background: transparent;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .nav-toggle__text {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    width: min(84%, 360px);
    z-index: 1002;
    padding: 32px 24px;
    background: var(--color-navy);
    border-right: 3px solid var(--color-orange);
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.45);
    transform: translateX(-100%);
    transition: transform 240ms ease;
    overflow: auto;
  }

  .site-nav[data-open="true"] {
    transform: translateX(0);
  }

  .site-nav__list {
    gap: 6px;
  }

  .site-nav__link {
    padding: 14px 16px;
    font-size: 18px;
  }

  .site-nav__label {
    flex-basis: auto;
    width: auto;
    overflow: visible;
    opacity: 1;
  }

  .site-nav__index {
    flex-basis: 28px;
    width: 28px;
  }

  .site-nav__overlay {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 1001;
    background: rgba(4, 10, 25, 0.62);
    opacity: 0;
    visibility: hidden;
    transition: opacity 240ms ease, visibility 0s 240ms;
  }

  .site-nav[data-open="true"] ~ .site-nav__overlay {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer__mast,
  .site-footer__links,
  .site-footer__legal,
  .site-footer__contact {
    grid-column: span 1;
  }

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

@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;
  }

  .is-reveal-pending {
    opacity: 1 !important;
    transform: none !important;
  }

  .site-header,
  .site-nav {
    transition: none;
  }
}
