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

:root {
  --c-space-950: #0B1B3A;
  --c-space-800: #132B54;
  --c-space-600: #1F4172;
  --c-cyan: #24D1E5;
  --c-orange: #FF7A2F;
  --c-gold: #FFC24B;
  --c-offwhite: #F4F6FB;
  --c-gray: #D9E1EC;
  --c-ink: #0E1726;
  --c-slate: #3A4A60;
  --c-violet: #7B5CF0;
  --c-green: #31D67A;

  --font-display: 'Noto Serif SC', 'Songti SC', 'STSong', Georgia, 'Times New Roman', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'HarmonicOS Sans SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  --font-data: 'SFMono-Regular', 'Cascadia Mono', 'Space Mono', Consolas, 'Liberation Mono', monospace;

  --fs-display: clamp(2.25rem, 4.5vw, 3rem);
  --fs-h1: clamp(1.6rem, 3vw, 2rem);
  --fs-h2: clamp(1.3rem, 2.2vw, 1.5rem);
  --fs-h3: 1.25rem;
  --fs-body: 1rem;
  --fs-small: 0.8125rem;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --shadow-1: 4px 4px 0 0 rgba(11, 27, 58, 0.14);
  --shadow-2: 6px 6px 0 0 rgba(11, 27, 58, 0.18);
}

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  background: var(--c-offwhite);
  color: var(--c-ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main { display: block; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--c-ink);
  text-wrap: balance;
}

p { text-wrap: pretty; }

a {
  color: var(--c-ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--c-cyan);
}

a:hover {
  color: var(--c-orange);
  text-decoration-color: var(--c-orange);
}

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

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

::selection { background: var(--c-cyan); color: var(--c-space-950); }

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

.container {
  width: min(100% - clamp(24px, 5vw, 80px), 1320px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 400;
  padding: 0.55em 1em;
  background: var(--c-space-950);
  color: var(--c-offwhite);
  border: 2px solid var(--c-cyan);
  transform: translateY(-300%);
  transition: transform 0.2s var(--ease);
  text-decoration: none;
  font-weight: 700;
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 210;
  width: 100%;
  height: 3px;
  background: var(--c-cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-space-950);
  border-bottom: 3px solid var(--c-space-600);
  box-shadow: 0 2px 0 0 rgba(36, 209, 229, 0.35), 0 8px 24px rgba(11, 27, 58, 0.5);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  width: 92px;
  height: 3px;
  background: var(--c-orange);
  z-index: 1;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 72px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-link:hover { text-decoration: none; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.125rem;
  line-height: 1;
  color: var(--c-space-950);
  background: linear-gradient(135deg, var(--c-cyan) 0%, var(--c-violet) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

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

.brand-text strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  color: var(--c-offwhite);
}

.brand-text small {
  font-family: var(--font-data);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--c-cyan);
}

.brand-link:hover .brand-text strong { color: var(--c-gold); }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  counter-reset: navcount;
}

.site-nav li { counter-increment: navcount; }

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  padding: 0.55em 0.6em;
  color: var(--c-offwhite);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--c-cyan);
  text-decoration: none;
}

.site-nav a::before {
  content: counter(navcount, decimal-leading-zero);
  font-family: var(--font-data);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--c-cyan);
  opacity: 0.75;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0.6em;
  right: 0.6em;
  bottom: 0.25em;
  height: 3px;
  background: var(--c-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after { transform: scaleX(1); }

.site-nav a[aria-current="page"] { color: var(--c-cyan); }

.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--c-orange);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  --btn-shadow: rgba(36, 209, 229, 0.45);
}

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  border-left: 2px solid var(--c-space-600);
  font-family: var(--font-data);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-gray);
  white-space: nowrap;
}

.status-count {
  color: var(--c-gold);
  font-weight: 700;
  font-family: var(--font-data);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 0 rgba(49, 214, 122, 0.55);
  animation: status-pulse 2.2s ease-out infinite;
}

@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(49, 214, 122, 0.55); }
  75% { box-shadow: 0 0 0 9px rgba(49, 214, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(49, 214, 122, 0); }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid var(--c-space-600);
  background: transparent;
  margin-left: auto;
}

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

[data-nav-toggle][aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
[data-nav-toggle][aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
[data-nav-toggle][aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.btn {
  --btn-shadow: var(--c-space-950);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.6em 1.15em;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-ink);
  background: transparent;
  border: 2px solid currentColor;
  text-decoration: none;
  box-shadow: 3px 3px 0 0 var(--btn-shadow);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 0 var(--btn-shadow);
  text-decoration: none;
}

.btn:active {
  transform: translate(0, 0);
  box-shadow: 1px 1px 0 0 var(--btn-shadow);
}

.btn--primary {
  background: var(--c-orange);
  border-color: var(--c-space-950);
  color: var(--c-space-950);
}

.btn--primary:hover { background: #ff8d49; }

.btn--ghost {
  background: transparent;
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  box-shadow: 3px 3px 0 0 rgba(36, 209, 229, 0.4);
}

.btn--ghost:hover {
  background: var(--c-cyan);
  color: var(--c-space-950);
}

.btn--outline {
  background: transparent;
  border-color: var(--c-ink);
  color: var(--c-ink);
}

.btn--outline:hover {
  background: var(--c-ink);
  color: var(--c-offwhite);
}

.site-footer {
  position: relative;
  background: var(--c-space-950);
  color: var(--c-gray);
  border-top: 3px solid var(--c-space-600);
  box-shadow: 0 -2px 0 0 rgba(36, 209, 229, 0.3);
}

.site-footer::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  width: 120px;
  height: 3px;
  background: var(--c-gold);
}

.site-footer a {
  color: var(--c-gray);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--c-cyan);
  text-decoration: none;
}

.footer-inner {
  padding-block: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 40px);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.footer-brand .brand-link { margin-bottom: 16px; }

.footer-tagline {
  margin: 14px 0 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--c-offwhite);
}

.footer-trust {
  max-width: 44ch;
  font-size: var(--fs-small);
  line-height: 1.8;
  color: var(--c-gray);
  opacity: 0.8;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
}

.footer-col h3 {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-space-600);
  font-family: var(--font-data);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-cyan);
}

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

.footer-col li + li { margin-top: 0.5rem; }

.footer-col a {
  color: var(--c-gray);
  text-decoration: none;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--c-cyan);
  text-decoration: none;
  padding-left: 4px;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 40px;
  padding: 16px 0;
  border-top: 1px solid var(--c-space-600);
  border-bottom: 1px solid var(--c-space-600);
  font-family: var(--font-data);
  font-size: 0.8125rem;
  color: var(--c-gray);
}

.footer-contact span {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.footer-contact span + span::before {
  content: "·";
  color: var(--c-orange);
  font-weight: 700;
  margin-right: 1.2rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  padding-top: 20px;
  font-family: var(--font-data);
  font-size: 0.8125rem;
  color: var(--c-gray);
  opacity: 0.85;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 130;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--c-space-950);
  border: 2px solid var(--c-cyan);
  color: var(--c-cyan);
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 3px 3px 0 0 rgba(36, 209, 229, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
}

.back-to-top:hover {
  background: var(--c-cyan);
  color: var(--c-space-950);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

#main-content {
  display: block;
  min-height: 60vh;
  scroll-margin-top: 88px;
}

.section {
  position: relative;
  padding-block: clamp(48px, 7vw, 88px);
}

.section--tight { padding-block: clamp(32px, 4vw, 48px); }

.section--dark {
  background: var(--c-space-950);
  color: var(--c-gray);
  border-block: 3px solid var(--c-space-600);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--c-offwhite); }

.section--alt {
  background: var(--c-space-800);
  color: var(--c-gray);
}

.section--alt h1,
.section--alt h2,
.section--alt h3 { color: var(--c-offwhite); }

.section--dark a:not(.btn) {
  color: var(--c-offwhite);
  text-decoration-color: var(--c-cyan);
}

.section--dark a:not(.btn):hover {
  color: var(--c-gold);
  text-decoration-color: var(--c-gold);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.75rem;
  font-family: var(--font-data);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-orange);
}

.eyebrow::before {
  content: "//";
  color: var(--c-cyan);
}

.section-title {
  font-size: var(--fs-h1);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.section-desc {
  max-width: 65ch;
  color: var(--c-slate);
}

.section--dark .section-desc,
.section--alt .section-desc { color: var(--c-gray); }

.rule {
  height: 3px;
  margin: 0;
  border: 0;
  background: linear-gradient(90deg, var(--c-cyan) 0%, var(--c-violet) 70%, transparent 100%);
}

.rule--orange {
  background: linear-gradient(90deg, var(--c-orange) 0%, var(--c-gold) 70%, transparent 100%);
}

.grid {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
  min-width: 0;
}

.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

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

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

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

.grid--side { grid-column: span 3; }

.grid--rail { grid-column: span 1; }

.card {
  position: relative;
  padding: clamp(20px, 2.6vw, 28px);
  background: var(--c-offwhite);
  border: 2px solid var(--c-ink);
  box-shadow: var(--shadow-1);
}

.card--dark {
  background: var(--c-space-800);
  border-color: var(--c-space-600);
  color: var(--c-gray);
  box-shadow: none;
}

.card--dark .card-title { color: var(--c-offwhite); }

.card--accent { border-top: 6px solid var(--c-cyan); }

.card-corner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, transparent 0 50%, var(--c-orange) 50% 100%);
}

.card-title {
  margin-bottom: 0.5rem;
  font-size: var(--fs-h3);
}

.card-meta {
  font-family: var(--font-data);
  font-size: var(--fs-small);
  color: var(--c-slate);
}

.card--dark .card-meta { color: var(--c-gray); }

.card p { margin-top: 0.6rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3em 0.65em;
  border: 2px solid currentColor;
  background: transparent;
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  white-space: nowrap;
}

.badge--cyan { color: var(--c-cyan); }
.badge--orange { color: var(--c-orange); }
.badge--gold { color: var(--c-gold); }
.badge--green { color: var(--c-green); }
.badge--violet { color: var(--c-violet); }

.badge--fill {
  background: var(--c-orange);
  border-color: var(--c-orange);
  color: var(--c-space-950);
}

.collapsible {
  border: 2px solid var(--c-ink);
  background: var(--c-offwhite);
  box-shadow: var(--shadow-1);
}

.collapsible + .collapsible { margin-top: 12px; }

.collapsible summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--c-ink);
  transition: background-color 0.2s var(--ease);
}

.collapsible summary::-webkit-details-marker { display: none; }

.collapsible summary:hover { background: var(--c-gray); }

.collapsible summary::before {
  content: "+";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 2px solid var(--c-orange);
  color: var(--c-orange);
  font-family: var(--font-data);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.25s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.collapsible[open] {
  border-color: var(--c-cyan);
  box-shadow: var(--shadow-2), 0 0 0 1px rgba(36, 209, 229, 0.2);
}

.collapsible[open] summary::before {
  content: "−";
  background: var(--c-orange);
  color: var(--c-space-950);
}

.collapsible-body {
  padding: 0 1.2rem 1.25rem 3.2rem;
  color: var(--c-slate);
}

.collapsible[open] .collapsible-body {
  animation: reveal-soft 0.3s var(--ease);
}

@keyframes reveal-soft {
  from { opacity: 0.5; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.prose { max-width: 72ch; }

.prose p { margin-block: 0.9em; }

.prose h2 {
  margin-top: 2.2em;
  margin-bottom: 0.6em;
  font-size: var(--fs-h2);
}

.prose h3 {
  margin-top: 1.8em;
  margin-bottom: 0.5em;
  font-size: var(--fs-h3);
}

.prose ul,
.prose ol {
  margin-block: 1em;
  padding-left: 1.4em;
}

.prose ul { list-style: square; }

.prose li + li { margin-top: 0.35em; }

.prose a {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose code,
.prose .mono {
  font-family: var(--font-data);
  font-size: 0.9em;
  background: var(--c-gray);
  color: var(--c-ink);
  padding: 0.15em 0.45em;
  border: 1px solid transparent;
}

.prose blockquote {
  margin: 1.5em 0;
  padding: 0.75em 1.25em;
  background: rgba(255, 122, 47, 0.08);
  border-left: 4px solid var(--c-orange);
  color: var(--c-slate);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5em;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  font-family: var(--font-data);
  font-size: 0.8125rem;
}

.breadcrumb li {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--c-orange);
}

.breadcrumb a { color: var(--c-slate); }
.breadcrumb a:hover { color: var(--c-cyan); }
.breadcrumb [aria-current="page"] { color: var(--c-ink); font-weight: 700; }

.table-wrap {
  overflow-x: auto;
  border: 2px solid var(--c-ink);
  background: var(--c-offwhite);
  box-shadow: var(--shadow-1);
}

.table-wrap table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.table-wrap th,
.table-wrap td {
  padding: 0.75em 1em;
  border-bottom: 1px solid var(--c-gray);
  text-align: left;
  vertical-align: top;
}

.table-wrap thead th {
  background: var(--c-space-950);
  color: var(--c-offwhite);
  font-family: var(--font-data);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.table-wrap tbody tr:nth-child(even) { background: rgba(217, 225, 236, 0.4); }
.table-wrap tbody tr:last-child th,
.table-wrap tbody tr:last-child td { border-bottom: 0; }

.table-wrap td:first-child {
  font-family: var(--font-data);
  font-size: 0.875rem;
}

.img-frame {
  position: relative;
  display: block;
  background: var(--c-space-800);
  border: 2px solid var(--c-ink);
  box-shadow: var(--shadow-1);
  min-height: 120px;
  overflow: hidden;
}

.img-frame::before {
  content: "IMG / 占位";
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--c-cyan);
  background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(36, 209, 229, 0.07) 14px 28px);
}

.img-frame > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame--16-9 { aspect-ratio: 16 / 9; }
.img-frame--4-3 { aspect-ratio: 4 / 3; }
.img-frame--square { aspect-ratio: 1 / 1; }

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

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

@media (max-width: 1200px) {
  .grid--rail { display: none; }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .nav-status { display: none; }
}

@media (max-width: 900px) {
  .header-inner { min-height: 56px; }
  .brand-mark { width: 32px; height: 32px; font-size: 1rem; }
  .brand-text strong { font-size: 1.1rem; }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 105;
    display: block;
    margin: 0;
    background: var(--c-space-950);
    border-bottom: 3px solid var(--c-orange);
    box-shadow: 0 16px 24px rgba(11, 27, 58, 0.6);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: max-height 0.35s var(--ease), opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.35s;
  }

  .site-nav[data-open] {
    max-height: 80vh;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: max-height 0.35s var(--ease), opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }

  .site-nav ul {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: 6px 12px;
  }

  .site-nav li { width: 100%; }

  .site-nav a {
    display: flex;
    align-items: center;
    padding: 0.8em 0.5em;
    border-bottom: 1px solid var(--c-space-600);
  }

  .site-nav a::after { display: none; }

  .site-nav a[aria-current="page"] { background: rgba(36, 209, 229, 0.08); }

  .nav-actions {
    flex-wrap: wrap;
    padding: 12px 12px 20px;
    border-top: 1px solid var(--c-space-600);
  }

  .footer-top { grid-template-columns: 1fr; }
  .grid--main,
  .grid--side,
  .grid--rail { grid-column: span 12; }
  .grid--2col,
  .grid--3col { grid-template-columns: 1fr; }
  .section { padding-block: 56px 48px; }
  .back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
  .collapsible-body { padding-left: 1.2rem; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 24px); }
  .header-inner { gap: 8px; }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-status {
    justify-content: center;
    border-left: 0;
    border-top: 1px solid var(--c-space-600);
    padding: 10px 0 0;
  }
  .btn { width: 100%; }
  .footer-contact { flex-direction: column; }
  .footer-contact span + span::before { display: none; }
  .footer-bottom { justify-content: flex-start; }
}

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

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