:root {
  --lake-blue: #0E2A47;
  --silver-white: #F4F7FB;
  --heat-orange: #FF5A36;
  --night-blue: #071B2E;
  --ice-blue: #B8CDE0;
  --snow-gray: #E1E8F0;
  --cloud-white: #FFFFFF;
  --signal-yellow: #F5B820;
  --status-green: #1DBB7A;
  --font-display: 'Barlow Condensed', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'DIN Alternate', 'Roboto Mono', 'SFMono-Regular', monospace;
  --content-width: 1320px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-header: 0 8px 24px rgba(7, 27, 46, .18);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--silver-white);
  color: var(--night-blue);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0 0 .5em;
  color: var(--night-blue);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .02em;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: 1.125rem;
}

p {
  margin-top: 0;
}

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

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

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

button {
  font: inherit;
  cursor: pointer;
}

address {
  font-style: normal;
}

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

.visually-hidden {
  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: 8px;
  left: 8px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--heat-orange);
  color: var(--cloud-white);
  border-radius: 4px;
  transform: translateY(-300%);
  transition: transform .2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  text-decoration: none;
  outline-color: var(--cloud-white);
}

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

.container-narrow {
  width: min(100% - 32px, 880px);
  margin-inline: auto;
}

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(150px, .34fr) minmax(0, 1.66fr);
  gap: clamp(16px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.section-kicker {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  color: var(--heat-orange);
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: .95;
}

.section-lead {
  grid-column: 2;
  max-width: 62ch;
  margin: 16px 0 0;
  color: var(--lake-blue);
}

.grid-asym {
  display: grid;
  grid-template-columns: minmax(200px, .4fr) minmax(0, 1.6fr);
  gap: clamp(24px, 6vw, 96px);
  align-items: start;
}

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

.grid-split > * {
  grid-column: span 6;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
  line-height: 1;
  text-decoration: none;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: var(--heat-orange);
  border-color: var(--heat-orange);
  color: var(--cloud-white);
}

.btn-primary:hover {
  background: #E64A28;
  border-color: #E64A28;
  color: var(--cloud-white);
}

.btn-ghost {
  border-color: var(--lake-blue);
  color: var(--lake-blue);
}

.btn-ghost:hover {
  background: var(--lake-blue);
  color: var(--cloud-white);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

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

.breadcrumb li + li::before {
  content: "/";
  margin: 0 10px;
  color: var(--ice-blue);
}

.breadcrumb__link {
  color: var(--lake-blue);
}

.breadcrumb__current {
  color: var(--heat-orange);
  font-weight: 500;
}

.card {
  position: relative;
  background: var(--cloud-white);
  padding: clamp(20px, 3vw, 28px);
  border-left: 3px solid var(--ice-blue);
  box-shadow: 0 12px 30px rgba(7, 27, 46, .06);
  transition: border-color .2s var(--ease);
}

.card:hover {
  border-left-color: var(--heat-orange);
}

.card-meta {
  display: block;
  margin-bottom: 8px;
  color: var(--lake-blue);
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.card-copy {
  margin: 0;
  color: var(--lake-blue);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--night-blue);
  font-size: .875rem;
}

.legend__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ice-blue);
}

.legend__dot--live {
  background: var(--heat-orange);
}

.legend__dot--done {
  background: var(--status-green);
}

.legend__dot--wait {
  background: var(--signal-yellow);
}

.coord-index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--lake-blue);
}

.coord-index__item {
  position: relative;
  padding: 18px 0 18px 48px;
  border-bottom: 1px solid var(--snow-gray);
}

.coord-index__item::before {
  content: attr(data-index);
  position: absolute;
  left: 0;
  top: 18px;
  color: var(--heat-orange);
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .04em;
}

.print-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--lake-blue);
  border-radius: 2px;
  background: var(--silver-white);
  color: var(--lake-blue);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--snow-gray);
  border: 1px solid rgba(184, 205, 224, .7);
}

.media-frame::before {
  content: "";
  display: block;
  padding-bottom: 56.25%;
}

.media-frame--portrait::before {
  padding-bottom: 120%;
}

.media-frame--wide::before {
  padding-bottom: 42%;
}

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

.media-frame__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--snow-gray), var(--ice-blue));
  color: var(--lake-blue);
  font-family: var(--font-mono);
  font-size: .875rem;
  letter-spacing: .08em;
  text-align: center;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  color: var(--cloud-white);
  background: linear-gradient(180deg, rgba(7, 27, 46, .72) 0%, rgba(7, 27, 46, .28) 100%);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}

body:not(.home) .site-header,
.site-header.is-scrolled {
  background: rgba(7, 27, 46, .97);
  box-shadow: var(--shadow-header);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 32px, var(--content-width));
  min-height: var(--header-h);
  margin-inline: auto;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cloud-white);
}

.brand:hover {
  color: var(--cloud-white);
  text-decoration: none;
}

.brand__mark {
  position: relative;
  width: 36px;
  height: 36px;
  border: 2px solid var(--heat-orange);
  border-radius: 50%;
  transform: rotate(-12deg);
  flex: 0 0 36px;
}

.brand__mark-track {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  transform: rotate(24deg);
}

.brand__mark-track::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  right: -4px;
  height: 2px;
  background: var(--ice-blue);
  transform: rotate(-24deg);
}

.brand__mark-ball {
  position: absolute;
  top: 2px;
  right: 4px;
  width: 6px;
  height: 6px;
  background: var(--heat-orange);
  border-radius: 50%;
}

.brand__text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.2;
  white-space: nowrap;
}

.primary-nav {
  flex: 0 0 auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  margin: 0;
}

.nav-link {
  position: relative;
  display: block;
  padding: 10px 12px;
  border-radius: 4px;
  color: rgba(255, 255, 255, .88);
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s var(--ease), background .2s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--heat-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s var(--ease);
}

.nav-link:hover {
  color: var(--cloud-white);
  text-decoration: none;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

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

.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(184, 205, 224, .18);
  overflow: hidden;
}

.read-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--heat-orange) 0%, #FF8C65 100%);
  transition: width .2s var(--ease);
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 10;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  background: rgba(7, 27, 46, .32);
  color: var(--cloud-white);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

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

.nav-toggle__box {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
}

.nav-toggle__bar,
.nav-toggle__box::before,
.nav-toggle__box::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .2s var(--ease), top .25s var(--ease), bottom .25s var(--ease);
}

.nav-toggle__bar {
  top: 7px;
}

.nav-toggle__box::before {
  top: 0;
}

.nav-toggle__box::after {
  bottom: 0;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__box::after {
  bottom: 7px;
  transform: rotate(-45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
  opacity: 0;
}

.site-footer {
  background: var(--night-blue);
  color: var(--ice-blue);
}

.footer-route {
  position: relative;
  height: 84px;
  overflow: hidden;
  background: var(--night-blue);
}

.footer-route__line {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--ice-blue) 0%, var(--heat-orange) 60%, var(--heat-orange) 100%);
  transform: skewY(-1.5deg);
}

.footer-route__marker {
  position: absolute;
  top: calc(50% - 7px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--heat-orange);
  box-shadow: 0 0 0 6px rgba(255, 90, 54, .14);
}

.footer-route__marker--start {
  left: 8%;
}

.footer-route__marker--end {
  right: 8%;
  background: var(--cloud-white);
  box-shadow: 0 0 0 6px rgba(184, 205, 224, .16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .8fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  padding: 72px 0 56px;
}

.footer-brand__logo {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.footer-brand__link {
  color: var(--cloud-white);
}

.footer-brand__link:hover {
  color: var(--heat-orange);
  text-decoration: none;
}

.footer-brand__desc {
  max-width: 48ch;
  margin: 0 0 22px;
  color: var(--ice-blue);
  font-size: .9375rem;
}

.footer-brand__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(29, 187, 122, .4);
  border-radius: 999px;
  color: var(--status-green);
  font-family: var(--font-mono);
  font-size: .8125rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-green);
  box-shadow: 0 0 0 4px rgba(29, 187, 122, .14);
}

.footer-links__title,
.footer-contact__title {
  margin: 0 0 20px;
  color: var(--cloud-white);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-links__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.footer-link {
  color: rgba(244, 247, 251, .78);
  font-size: .925rem;
  transition: color .2s var(--ease);
}

.footer-link:hover {
  color: var(--heat-orange);
  text-decoration: none;
}

.footer-contact__item {
  margin: 0 0 10px;
  color: rgba(244, 247, 251, .82);
  font-size: .9375rem;
  line-height: 1.6;
}

.footer-contact__note {
  margin-top: 16px;
  padding-left: 12px;
  border-left: 2px solid var(--heat-orange);
  color: var(--ice-blue);
  font-size: .8125rem;
}

.footer-meta {
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(0, 0, 0, .18);
}

.footer-meta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0;
  color: var(--ice-blue);
  font-size: .875rem;
}

.footer-meta__copyright {
  margin: 0;
}

.footer-meta__icp {
  margin: 0;
}

.footer-meta__icp a {
  color: var(--ice-blue);
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.footer-meta__icp a:hover {
  color: var(--heat-orange);
  border-color: currentColor;
  text-decoration: none;
}

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

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

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

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

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    width: min(80vw, 360px);
    height: 100vh;
    height: 100dvh;
    padding: 104px 28px 32px;
    overflow-y: auto;
    background: var(--night-blue);
    border-left: 1px solid rgba(255, 255, 255, .08);
    transform: translateX(102%);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease);
  }

  .primary-nav[data-open] {
    transform: translateX(0);
    box-shadow: -14px 0 36px rgba(7, 27, 46, .35);
  }

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

  .nav-link {
    padding: 14px 8px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .nav-link::after {
    left: 8px;
    right: 8px;
    bottom: 2px;
  }
}

@media (max-width: 760px) {
  .grid-asym {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .grid-split > * {
    grid-column: 1 / -1;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .section-head .section-kicker {
    grid-column: 1;
    grid-row: auto;
  }

  .section-head .section-title {
    grid-column: 1;
    grid-row: auto;
  }

  .section-head .section-lead {
    grid-column: 1;
  }
}

@media (max-width: 620px) {
  .site-header__inner {
    width: calc(100% - 20px);
    min-height: 64px;
    padding: 10px 0;
  }

  .brand__text {
    font-size: 1rem;
  }

  .brand__mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding-top: 48px;
    padding-bottom: 40px;
  }

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

  .footer-meta__inner {
    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;
  }

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