:root {
  --paper: #F5F1E8;
  --ink: #161E2E;
  --blue: #0A5CFF;
  --orange: #FF5A1F;
  --glass: rgba(255, 255, 255, 0.72);
  --line: #D9D2C5;
  --green: #00A878;
  --gold: #FFC94D;
  --night: #0E1A33;
  --font-base: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Barlow Condensed", "DIN Alternate", "Noto Sans SC", sans-serif;
  --container: 1240px;
  --gutter: clamp(1.25rem, 3vw, 3rem);
  --section-gap: clamp(4rem, 8vw, 7rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: 1.75;
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 1079.98px) {
  body {
    padding-bottom: 3.75rem;
  }
}

h1, h2, h3, p {
  margin-top: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

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

::selection {
  background: var(--blue);
  color: #fff;
}

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

#main-content {
  outline: none;
  scroll-margin-top: 5.5rem;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--section-gap) var(--gutter);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--blue);
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 2.25rem;
  height: 2px;
  background: var(--orange);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.display-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2000;
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  transition: top 120ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 232, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-rail {
  display: flex;
  height: 6px;
  background: var(--ink);
}

.rail-cell {
  display: block;
  height: 100%;
}

.rail-cell--blue {
  width: 42%;
  background: var(--blue);
}

.rail-cell--orange {
  width: 18%;
  background: var(--orange);
}

.rail-cell--ink {
  width: 40%;
  background: var(--ink);
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--orange) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  z-index: 6;
}

.header-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding: 0.7rem var(--gutter);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-lockup:hover .brand-mark {
  background: var(--blue);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  clip-path: polygon(0 0, 90% 0, 100% 18%, 100% 100%, 0 100%);
  transition: background 120ms ease;
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-suffix {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  padding: 0.6rem 0.85rem;
  background: var(--glass);
  border: 1px solid var(--line);
}

.nav-toggle-box {
  position: relative;
  display: block;
  width: 1.25rem;
  height: 1rem;
}

.nav-toggle-box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 140ms ease, top 140ms ease;
}

.nav-toggle-box span:nth-child(1) {
  top: 0;
}

.nav-toggle-box span:nth-child(2) {
  top: 0.4375rem;
}

.nav-toggle-box span:nth-child(3) {
  top: 0.875rem;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) {
  top: 0.4375rem;
  transform: rotate(45deg);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) {
  top: 0.4375rem;
  transform: rotate(-45deg);
}

.nav-toggle-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.site-nav {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  display: none;
  margin: 0;
  padding: 0.75rem var(--gutter) 1.5rem;
  background: rgba(245, 241, 232, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px rgba(22, 30, 46, 0.08);
}

.site-nav[data-open] {
  display: block;
  max-height: calc(100vh - 4.5rem);
  overflow: auto;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.8rem 0.6rem;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
}

.nav-index {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.nav-link:hover {
  color: var(--blue);
}

.nav-link[aria-current="page"] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-align: center;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.button:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.button-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.button-primary:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.button-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.button-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.button-quick {
  display: none;
}

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  background: var(--night);
  color: var(--paper);
  border-top: 2px solid var(--blue);
}

.mobile-bar-link {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.55rem 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(245, 241, 232, 0.78);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-bar-link:last-child {
  border-right: 0;
}

.mobile-bar-link::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--blue);
}

.mobile-bar-link[data-accent]::before {
  background: var(--orange);
}

.mobile-bar-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

@media (min-width: 1080px) {
  .header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 2rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: block;
    padding: 0;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
  }

  .nav-list {
    flex-direction: row;
    justify-content: center;
    gap: 0.35rem;
  }

  .nav-link {
    position: relative;
    padding: 0.55rem 0.8rem;
    border-bottom: 0;
  }

  .nav-link::after {
    content: "";
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 140ms ease;
  }

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

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

  .button-quick {
    display: inline-flex;
  }

  .mobile-bar {
    display: none;
  }
}

.site-footer {
  margin-top: var(--section-gap);
  background: var(--night);
  color: var(--paper);
}

.footer-rail {
  display: flex;
  height: 6px;
  background: var(--paper);
}

.footer-rail span {
  display: block;
  height: 100%;
}

.footer-rail span:first-child {
  width: 14%;
  background: var(--blue);
}

.footer-rail span:last-child {
  width: 7%;
  background: var(--orange);
}

.footer-inner {
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding: 3.5rem var(--gutter) 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

.footer-logo:hover {
  color: var(--blue);
}

.footer-about {
  max-width: 34em;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(245, 241, 232, 0.72);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--green);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.footer-title {
  margin-bottom: 0.9rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: rgba(245, 241, 232, 0.5);
  text-transform: uppercase;
}

.footer-list li + li {
  margin-top: 0.55rem;
}

.footer-list a {
  color: rgba(245, 241, 232, 0.82);
  border-bottom: 1px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}

.footer-list a:hover {
  color: #fff;
  border-bottom-color: var(--orange);
}

.footer-note {
  margin-top: 1rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--orange);
  font-size: 0.8rem;
  color: rgba(245, 241, 232, 0.55);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.75rem;
  color: rgba(245, 241, 232, 0.5);
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 4rem;
  }
}

.breadcrumb {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.25rem var(--gutter) 0;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.breadcrumb-link {
  color: var(--blue);
  font-weight: 700;
}

.breadcrumb-link:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 800;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.tag--blue {
  background: var(--blue);
  color: #fff;
}

.tag--orange {
  background: var(--orange);
  color: #fff;
}

.tag--green {
  background: var(--green);
  color: #fff;
}

.media-frame {
  position: relative;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--ink) 0%, #22304d 60%, var(--night) 100%);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(-45deg, transparent 0 10px, rgba(255, 255, 255, 0.05) 10px 11px),
    linear-gradient(115deg, transparent 20%, rgba(10, 92, 255, 0.35) 100%);
}

.media-frame::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 38%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--orange) 100%);
  clip-path: polygon(0 48%, 100% 0, 100% 100%, 0 100%);
}

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

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

.media-slant {
  position: absolute;
  width: 34%;
  height: 130%;
  top: -15%;
  right: 12%;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transform: skewX(-16deg);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  .scroll-progress {
    transition: none;
  }
}
