:root {
  --c-navy: #0A1F44;
  --c-night: #06132E;
  --c-gold: #FFD700;
  --c-gold-light: #FFEB7A;
  --c-red: #E63946;
  --c-white: #FFFFFF;
  --c-mist: #E9EEF5;
  --c-slate: #B8C4D6;
  --c-blue: #3E6AD8;
  --font-heading: 'DIN Condensed', 'Arial Narrow', 'Impact', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', 'Consolas', monospace;
  --header-h: 84px;
  --wrap: 1280px;
  --space-section: clamp(68px, 8vw, 124px);
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--c-navy);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.08;
  color: var(--c-white);
  letter-spacing: .03em;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0;
  padding: 0;
}

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

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

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

button {
  cursor: pointer;
}

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

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

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

.main-content {
  display: block;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 300;
  background: var(--c-gold);
  color: var(--c-night);
  padding: 12px 20px;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  box-shadow: 6px 6px 0 rgba(6, 19, 46, .25);
  transition: top .2s ease;
}

.skip-link:focus {
  top: 0;
  color: var(--c-night);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 19, 46, 0);
  border-bottom: 1px solid rgba(255, 215, 0, 0);
  color: var(--c-white);
  transition: background-color .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.site-header.is-scrolled {
  background: rgba(6, 19, 46, .96);
  border-bottom-color: rgba(255, 215, 0, .58);
  box-shadow: 0 14px 40px rgba(4, 12, 32, .55);
}

.site-header__inner {
  display: flex;
  align-items: stretch;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-white);
  position: relative;
  z-index: 2;
}

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

.brand__mark {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-night);
  border: 2px solid var(--c-gold);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.brand__flare {
  position: absolute;
  inset: 4px;
  pointer-events: none;
  border-left: 1px solid var(--c-gold);
  background: linear-gradient(135deg, var(--c-gold) 0 2px, transparent 2px 100%);
  opacity: .45;
}

.brand__initial {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
  color: var(--c-gold);
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-heading);
  font-size: 1.42rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .06em;
  color: var(--c-white);
  white-space: nowrap;
}

.brand__meta {
  font-family: var(--font-mono);
  font-size: .68rem;
  line-height: 1.2;
  letter-spacing: .08em;
  color: var(--c-slate);
  white-space: nowrap;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: stretch;
}

.nav__list {
  display: flex;
  gap: 6px;
  align-items: stretch;
}

.nav__item {
  display: flex;
  align-items: center;
}

.nav__link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .84);
  white-space: nowrap;
  transition: color .2s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--c-gold);
  transition: width .2s ease;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--c-gold);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  width: calc(100% - 28px);
}

.nav__link--cta {
  height: 48px;
  margin-left: 10px;
  padding: 0 20px;
  background: var(--c-red);
  color: var(--c-white);
  border-radius: 0 10px 0 10px;
  box-shadow: 5px 5px 0 rgba(255, 215, 0, .32);
}

.nav__link--cta:hover {
  background: #D22F3D;
  color: var(--c-white);
}

.nav__link--cta::after,
.nav__link--cta:hover::after {
  display: none;
}

.nav__toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  background: rgba(6, 19, 46, .72);
  border: 1px solid rgba(255, 215, 0, .55);
  color: var(--c-white);
  padding: 8px 12px;
  border-radius: 0 6px 0 6px;
}

.nav__toggle-box {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}

.nav__toggle-line {
  height: 2px;
  background: var(--c-gold);
  border-radius: 2px;
  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__toggle-text {
  font-size: .8rem;
  letter-spacing: .08em;
}

.site-header__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--c-gold), var(--c-gold-light));
  box-shadow: 0 0 14px rgba(255, 215, 0, .55);
}

.site-footer {
  background: var(--c-night);
  border-top: 1px solid rgba(255, 215, 0, .4);
  position: relative;
}

.site-footer__beam {
  height: 6px;
  background: linear-gradient(90deg, var(--c-night), var(--c-gold) 38%, var(--c-red) 74%, var(--c-night));
  opacity: .92;
}

.site-footer__inner {
  padding: 58px 0 30px;
}

.footer__upper {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(0, 1.8fr);
  gap: 54px;
  align-items: start;
}

.footer__brand {
  position: relative;
}

.footer__title {
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: .95;
  color: var(--c-gold);
  letter-spacing: .04em;
}

.footer__subtitle {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-slate);
}

.footer__note {
  max-width: 34em;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, .64);
  font-size: .92rem;
  line-height: 1.6;
}

.footer__coordinate {
  margin: 0;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--c-slate);
  border-left: 2px solid var(--c-gold);
  padding-left: 10px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer__heading {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-gold);
  padding-left: 12px;
  border-left: 3px solid var(--c-red);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__link {
  color: rgba(255, 255, 255, .72);
  font-size: .92rem;
  line-height: 1.5;
  transition: color .2s ease, padding-left .2s ease;
}

.footer__link:hover {
  color: var(--c-gold-light);
  padding-left: 4px;
}

.footer__contact-line {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, .68);
  font-size: .9rem;
  line-height: 1.6;
  word-break: break-word;
}

.footer__lower {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: baseline;
  justify-content: space-between;
}

.footer__icp {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--c-slate);
}

.footer__trust {
  margin: 0;
  max-width: 60em;
  font-size: .76rem;
  line-height: 1.7;
  color: var(--c-slate);
}

.section {
  padding: var(--space-section) 0;
  position: relative;
}

.section--dark {
  background: var(--c-navy);
  color: var(--c-white);
}

.section--night {
  background: var(--c-night);
  color: var(--c-white);
}

.section--light {
  background: var(--c-mist);
  color: var(--c-navy);
}

.section--light h1,
.section--light h2,
.section--light h3,
.section--light h4 {
  color: var(--c-navy);
}

.section__heading {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: .95;
  color: var(--c-gold);
  letter-spacing: .02em;
}

.section--light .section__heading {
  color: var(--c-navy);
}

.section__subtitle {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-slate);
}

.section--light .section__subtitle {
  color: var(--c-blue);
}

.prose {
  max-width: 72ch;
}

.prose h2,
.prose h3 {
  color: var(--c-gold);
}

.prose p {
  color: rgba(255, 255, 255, .78);
}

.prose a {
  color: var(--c-gold-light);
  text-decoration: underline;
  text-decoration-color: rgba(255, 215, 0, .5);
}

.section--light .prose p {
  color: var(--c-navy);
}

.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(680px, 86vh);
  padding: calc(var(--header-h) + 48px) 0 56px;
  background:
    linear-gradient(135deg, rgba(62, 106, 216, .18), transparent 42%),
    linear-gradient(160deg, var(--c-night) 0%, var(--c-navy) 60%, #16325F 100%);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 30%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 215, 0, .22), rgba(230, 57, 70, .18), transparent);
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--c-slate);
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--c-slate);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border: 0;
  background: var(--c-gold);
  color: var(--c-navy);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .08em;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}

.button:hover {
  background: var(--c-gold-light);
  color: var(--c-navy);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
}

.button--red {
  background: var(--c-red);
  color: var(--c-white);
}

.button--red:hover {
  background: #D22F3D;
  color: var(--c-white);
}

.button--ghost {
  background: transparent;
  color: var(--c-gold);
  border: 2px solid var(--c-gold);
  clip-path: none;
  border-radius: 2px;
}

.button--ghost:hover {
  background: rgba(255, 215, 0, .08);
  color: var(--c-gold-light);
  box-shadow: none;
}

.card {
  background: var(--c-white);
  color: var(--c-navy);
  border: 2px solid var(--c-navy);
  box-shadow: 8px 8px 0 rgba(6, 19, 46, .18);
  padding: 24px;
}

.card h1,
.card h2,
.card h3,
.card h4 {
  color: var(--c-navy);
}

.card a {
  color: var(--c-blue);
}

.card a:hover {
  color: var(--c-red);
}

.card--dark {
  background: rgba(255, 255, 255, .06);
  color: var(--c-white);
  border-color: rgba(255, 215, 0, .5);
  box-shadow: 8px 8px 0 rgba(255, 215, 0, .12);
}

.card--dark h1,
.card--dark h2,
.card--dark h3,
.card--dark h4 {
  color: var(--c-white);
}

.card--dark a {
  color: var(--c-gold);
}

.grid {
  display: grid;
  gap: 28px;
}

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

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

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--c-gold);
  border-radius: 999px;
  color: var(--c-gold);
  background: rgba(255, 215, 0, .08);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tag--red {
  border-color: var(--c-red);
  color: var(--c-red);
  background: rgba(230, 57, 70, .08);
}

.section--light .tag {
  color: var(--c-red);
  border-color: var(--c-red);
  background: rgba(230, 57, 70, .08);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--c-gold);
}

.section--light .eyebrow {
  color: var(--c-navy);
}

.section--light .eyebrow::before {
  background: var(--c-red);
}

.index-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
}

.index-list__item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, .16);
  font-family: var(--font-mono);
  font-size: .86rem;
  color: rgba(255, 255, 255, .74);
}

.section--light .index-list__item {
  color: var(--c-navy);
  border-bottom-color: rgba(10, 31, 68, .2);
}

.index-list__num {
  min-width: 2.2em;
  color: var(--c-gold);
  font-weight: 700;
}

.index-list__label {
  color: inherit;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--c-slate);
}

.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.route-marker {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid var(--c-gold);
  background: transparent;
  transform: rotate(45deg);
}

.route-marker--red {
  border-color: var(--c-red);
  background: rgba(230, 57, 70, .35);
}

.media-frame {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, .5);
  background:
    linear-gradient(135deg, rgba(255, 215, 0, .16) 0%, transparent 38%),
    linear-gradient(160deg, var(--c-navy), var(--c-night));
  box-shadow: 8px 8px 0 rgba(255, 215, 0, .1);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(255, 215, 0, .3);
}

.media-frame::after {
  content: "ARS-IMG";
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 2px 8px;
  background: rgba(6, 19, 46, .78);
  border: 1px solid rgba(255, 215, 0, .35);
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  color: var(--c-slate);
}

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

.media-frame--wide {
  aspect-ratio: 16 / 7;
  min-height: 0;
}

.media-frame--tall {
  aspect-ratio: 3 / 4;
  min-height: 0;
}

.media-frame--short {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}

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

@media (max-width: 1100px) {
  .footer__upper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__note {
    max-width: 48em;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 70px;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 12px;
    right: 12px;
    z-index: 120;
    display: block;
    margin-left: 0;
    padding: 12px;
    max-height: calc(100vh - var(--header-h) - 16px);
    overflow-y: auto;
    background: rgba(6, 19, 46, .98);
    border: 1px solid rgba(255, 215, 0, .58);
    box-shadow: 8px 8px 0 rgba(255, 215, 0, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  .nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__item {
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .nav__item:last-child {
    border-bottom: 0;
  }

  .nav__link {
    width: 100%;
    padding: 14px 16px;
    color: rgba(255, 255, 255, .88);
    white-space: normal;
  }

  .nav__link::after {
    display: none;
  }

  .nav__link[aria-current="page"] {
    color: var(--c-gold);
    background: rgba(255, 215, 0, .1);
    border-left: 3px solid var(--c-gold);
  }

  .nav__link--cta {
    height: auto;
    margin: 10px 0 0;
    padding: 12px 16px;
    background: var(--c-red);
    color: var(--c-white);
    border-radius: 0 8px 0 8px;
    box-shadow: 4px 4px 0 rgba(255, 215, 0, .22);
  }
}

@media (max-width: 820px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }
}

@media (max-width: 720px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-hero {
    min-height: min(560px, 80vh);
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 24px), var(--wrap));
  }

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

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

  .brand__meta {
    white-space: normal;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
  }

  .nav__toggle-text {
    display: none;
  }
}

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

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

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