:root {
  --ink: #071A14;
  --ink-2: #0E2B22;
  --chalk: #F2F5EC;
  --orange: #FF6A2A;
  --blue: #2F7CFF;
  --wine: #7A1F3D;
  --indigo: #3B2A6B;
  --sand: #D8C7A3;
  --yellow: #FFC857;
  --sage: #8FA69A;
  --black: #050A08;
  --line: rgba(242, 245, 236, 0.14);
  --line-strong: rgba(242, 245, 236, 0.26);
  --font-display: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page-max: 1440px;
  --radius-pill: 999px;
  --radius-panel: 2px 24px 2px 2px;
  --shadow-header: 0 18px 60px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(242, 245, 236, 0.07);
  --focus: 0 0 0 3px rgba(255, 200, 87, 0.42);
}

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

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

#main-content {
  scroll-margin-top: 118px;
}

#main-content:focus {
  outline: none;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--chalk);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 88% -8%, rgba(59, 42, 107, 0.48), transparent 62%),
    radial-gradient(900px 540px at 0% 22%, rgba(47, 124, 255, 0.1), transparent 56%),
    radial-gradient(700px 420px at 76% 80%, rgba(122, 31, 61, 0.14), transparent 60%),
    linear-gradient(180deg, #071A14 0%, #061610 58%, #050A08 100%);
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.65em;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.04;
  color: var(--chalk);
  text-wrap: balance;
}

h1 {
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.06;
}

h3 {
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.12;
}

h4 {
  font-size: 20px;
  letter-spacing: -0.03em;
}

p {
  margin: 0 0 1.25em;
  color: rgba(242, 245, 236, 0.8);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
}

strong,
b {
  font-weight: 700;
  color: var(--chalk);
}

small {
  font-size: 0.78em;
}

ul,
ol {
  margin: 0 0 1.25em;
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.35em;
}

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

img {
  height: auto;
}

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

button {
  border: 0;
}

::selection {
  color: var(--ink);
  background: var(--yellow);
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
  box-shadow: var(--focus);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 3000;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(5, 10, 8, 0.2);
  border-radius: var(--radius-pill);
  color: var(--ink);
  background: var(--yellow);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: clamp(10px, 1.6vw, 18px) clamp(12px, 2vw, 28px) 0;
}

.header-shell {
  width: min(var(--page-max), 100%);
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  padding: 10px 14px 10px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background:
    linear-gradient(115deg, rgba(7, 26, 20, 0.96), rgba(14, 43, 34, 0.91) 54%, rgba(59, 42, 107, 0.44)),
    radial-gradient(circle at 10% 0%, rgba(255, 106, 42, 0.15), transparent 28%);
  box-shadow: var(--shadow-header);
  backdrop-filter: blur(18px) saturate(1.2);
  transition:
    min-height 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    border-radius 220ms ease,
    box-shadow 220ms ease;
}

.site-header[data-scrolled="true"] .header-shell {
  min-height: 58px;
  border-color: rgba(255, 200, 87, 0.34);
  background:
    linear-gradient(115deg, rgba(5, 10, 8, 0.97), rgba(14, 43, 34, 0.95) 58%, rgba(59, 42, 107, 0.5)),
    radial-gradient(circle at 10% 0%, rgba(255, 106, 42, 0.12), transparent 30%);
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  text-decoration: none;
  color: var(--chalk);
  border-radius: var(--radius-pill);
}

.brand-mark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 28px;
  height: 30px;
  transform: skewX(-14deg);
}

.brand-mark span {
  display: block;
  width: 5px;
  border-radius: 1px;
  transition: height 220ms ease;
}

.brand-mark span:nth-child(1) {
  height: 100%;
  background: var(--orange);
}

.brand-mark span:nth-child(2) {
  height: 74%;
  background: var(--chalk);
}

.brand-mark span:nth-child(3) {
  height: 88%;
  background: var(--blue);
}

.brand:hover .brand-mark span:nth-child(1) {
  height: 78%;
}

.brand:hover .brand-mark span:nth-child(3) {
  height: 100%;
}

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

.brand-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--sage);
}

.primary-nav {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list li {
  margin: 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: rgba(242, 245, 236, 0.78);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.nav-link:hover {
  color: var(--chalk);
  background: rgba(242, 245, 236, 0.07);
  border-color: rgba(242, 245, 236, 0.12);
}

.nav-link[aria-current="page"] {
  color: var(--yellow);
  background: rgba(255, 106, 42, 0.14);
  border-color: rgba(255, 106, 42, 0.56);
  box-shadow: inset 0 -2px 0 var(--orange);
}

.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: var(--ink);
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 8px 24px rgba(255, 106, 42, 0.24);
}

.btn-primary:hover {
  background: #FF7D47;
  border-color: #FF7D47;
  box-shadow: 0 10px 30px rgba(255, 106, 42, 0.34);
}

.btn-secondary {
  color: var(--chalk);
  background: rgba(242, 245, 236, 0.04);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  color: #FFFFFF;
  background: rgba(47, 124, 255, 0.16);
  border-color: var(--blue);
}

.btn-header {
  min-height: 42px;
  padding: 0 16px;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 48px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--chalk);
  background: rgba(242, 245, 236, 0.05);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.nav-toggle:hover {
  border-color: rgba(255, 106, 42, 0.62);
  background: rgba(255, 106, 42, 0.12);
}

.nav-toggle[aria-expanded="true"] {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
}

.nav-toggle-label {
  line-height: 1;
}

.nav-toggle-glyph {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
  height: 14px;
  justify-content: center;
}

.nav-toggle-glyph span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header[data-open="true"] .nav-toggle-glyph span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle-glyph span:nth-child(2) {
  opacity: 0;
}

.site-header[data-open="true"] .nav-toggle-glyph span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.header-progress {
  width: min(var(--page-max), calc(100% - 24px));
  height: 2px;
  margin: 6px auto 0;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(242, 245, 236, 0.08);
}

.header-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--yellow) 55%, var(--blue));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 100ms linear;
}

.page-shell {
  width: min(var(--page-max), calc(100% - clamp(24px, 5vw, 64px)));
  margin-inline: auto;
}

.content-container {
  width: min(100%, 74ch);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.panel {
  position: relative;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(140deg, rgba(14, 43, 34, 0.88), rgba(7, 26, 20, 0.94)),
    repeating-linear-gradient(115deg, transparent 0 38px, rgba(242, 245, 236, 0.035) 38px 39px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.paper-panel {
  position: relative;
  padding: clamp(22px, 4vw, 48px);
  color: var(--ink-2);
  background:
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(5, 10, 8, 0.045) 28px 29px),
    var(--sand);
  border: 1px solid rgba(5, 10, 8, 0.28);
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 20px 60px rgba(0, 0, 0, 0.28);
}

.paper-panel::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 24px;
  width: 64px;
  height: 20px;
  background: rgba(242, 245, 236, 0.32);
  border: 1px solid rgba(5, 10, 8, 0.12);
  transform: rotate(1.5deg);
}

.paper-panel h2,
.paper-panel h3,
.paper-panel h4,
.paper-panel strong {
  color: var(--ink);
}

.paper-panel p,
.paper-panel li {
  color: rgba(7, 26, 20, 0.82);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--orange);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 106, 42, 0.48);
  border-radius: var(--radius-pill);
  color: var(--yellow);
  background: rgba(255, 106, 42, 0.1);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.index-number {
  display: inline-block;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: var(--sage);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  color: rgba(143, 166, 154, 0.65);
}

.breadcrumbs a {
  color: rgba(242, 245, 236, 0.72);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.breadcrumbs a:hover {
  color: var(--chalk);
  border-color: var(--orange);
}

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

.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line-strong);
  border-radius: 2px 28px 2px 2px;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 106, 42, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(47, 124, 255, 0.14), transparent 52%),
    var(--ink-2);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(115deg, transparent 0 38px, rgba(242, 245, 236, 0.055) 38px 39px),
    repeating-linear-gradient(0deg, transparent 0 52px, rgba(242, 245, 236, 0.035) 52px 53px),
    linear-gradient(90deg, transparent 0 18%, rgba(255, 200, 87, 0.12) 18% 18.4%, transparent 18.4% 100%);
  pointer-events: none;
}

.media-frame::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-right: 1px solid rgba(255, 200, 87, 0.72);
  border-bottom: 1px solid rgba(255, 200, 87, 0.72);
  pointer-events: none;
}

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

.media-frame picture {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}

.media-frame picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

.media-frame--square {
  aspect-ratio: 1 / 1;
}

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

.media-frame--banner {
  aspect-ratio: 3 / 1;
}

.media-caption {
  display: block;
  margin-top: 8px;
  color: var(--sage);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(64px, 10vw, 140px);
  color: var(--chalk);
  background:
    radial-gradient(1000px 540px at 84% 4%, rgba(59, 42, 107, 0.36), transparent 62%),
    radial-gradient(800px 420px at 8% 100%, rgba(122, 31, 61, 0.2), transparent 62%),
    linear-gradient(180deg, #071A14 0%, #050A08 100%);
  border-top: 1px solid rgba(255, 106, 42, 0.26);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, transparent 0 54px, rgba(242, 245, 236, 0.025) 54px 55px),
    linear-gradient(90deg, transparent 0 19.8%, rgba(255, 106, 42, 0.28) 19.8% 20%, transparent 20% 100%);
  pointer-events: none;
}

.site-footer::after {
  content: "196";
  position: absolute;
  right: -0.04em;
  bottom: -0.18em;
  z-index: 0;
  color: rgba(242, 245, 236, 0.025);
  font-family: var(--font-display);
  font-size: clamp(180px, 30vw, 420px);
  font-weight: 900;
  letter-spacing: -0.1em;
  line-height: 0.7;
  pointer-events: none;
  -webkit-text-stroke: 1px rgba(242, 245, 236, 0.06);
}

.footer-shell {
  position: relative;
  z-index: 1;
  width: min(var(--page-max), calc(100% - clamp(24px, 5vw, 64px)));
  margin-inline: auto;
  padding: clamp(48px, 7vw, 96px) 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(0, 1.9fr);
  gap: clamp(32px, 6vw, 96px);
  padding-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  max-width: 440px;
}

.footer-brandlink {
  display: inline-block;
  color: var(--chalk);
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.95;
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-brandlink:hover {
  color: var(--yellow);
}

.footer-summary {
  margin: 18px 0 0;
  color: rgba(242, 245, 236, 0.7);
  font-size: 17px;
  line-height: 1.7;
}

.footer-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 0;
  color: var(--sage);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 106, 42, 0.15);
  animation: signal 2.4s ease-in-out infinite;
}

@keyframes signal {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(255, 106, 42, 0.14);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 106, 42, 0.03);
  }
}

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

.footer-column {
  min-width: 0;
}

.footer-heading {
  margin: 0 0 18px;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

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

.footer-links li {
  margin: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: rgba(242, 245, 236, 0.7);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.footer-links a:hover {
  color: var(--chalk);
  border-color: var(--orange);
}

.footer-links a[aria-current="page"] {
  color: var(--yellow);
}

.footer-contact-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 28px;
  padding: clamp(24px, 3vw, 32px) 0;
  border-bottom: 1px solid var(--line);
}

.footer-contact-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.footer-contact-wide {
  grid-column: span 1;
}

.contact-label {
  color: var(--sage);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.contact-value {
  color: var(--chalk);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.footer-note {
  grid-column: 1 / -1;
  max-width: 980px;
  margin: 0;
  padding-left: 12px;
  border-left: 2px solid var(--orange);
  color: rgba(242, 245, 236, 0.5);
  font-size: 12.5px;
  line-height: 1.75;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  color: rgba(242, 245, 236, 0.52);
  font-size: 12px;
}

.footer-copy {
  margin: 0;
  color: rgba(242, 245, 236, 0.52);
  font-size: 12px;
}

.footer-legal {
  margin: 0;
  color: var(--sage);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.footer-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-quick a {
  color: var(--sage);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.footer-quick a:hover {
  color: var(--yellow);
  border-color: var(--orange);
}

.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 650ms ease,
    transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.js-ready [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
}

@media (max-width: 1180px) {
  .nav-link {
    padding: 0 9px;
    font-size: 12px;
  }

  .header-shell {
    gap: 10px;
  }

  .brand-mark {
    width: 24px;
    height: 27px;
  }
}

@media (max-width: 1040px) {
  .site-header {
    padding: 10px 12px 0;
  }

  .header-shell {
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 10px 12px 10px 16px;
    border-radius: 24px;
  }

  .site-header[data-open="true"] .header-shell {
    border-radius: 22px;
  }

  .brand {
    flex: 1 1 auto;
  }

  .header-actions {
    flex: 0 0 auto;
  }

  .primary-nav {
    display: none;
    flex: 0 0 100%;
    width: 100%;
    order: 5;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .site-header[data-open="true"] .primary-nav {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    counter-reset: navitem;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 10px;
    background: rgba(242, 245, 236, 0.035);
    font-size: 14px;
  }

  .nav-link::before {
    counter-increment: navitem;
    content: "0" counter(navitem);
    color: var(--sage);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
  }

  .nav-link[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--orange);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-progress {
    width: calc(100% - 24px);
  }

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

  .footer-brand {
    max-width: 620px;
  }

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

@media (max-width: 900px) {
  .split-layout {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: clamp(40px, 12vw, 52px);
  }

  h2 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .page-shell,
  .footer-shell {
    width: calc(100% - 28px);
  }

  .header-shell {
    padding-left: 13px;
  }

  .brand-title {
    font-size: 16px;
  }

  .brand-sub {
    font-size: 8px;
  }

  .btn-header {
    padding: 0 12px;
    font-size: 11px;
  }

  .nav-toggle {
    padding: 0 11px;
  }

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

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

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

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-quick {
    gap: 12px;
  }

  .paper-panel::before {
    right: 16px;
    width: 48px;
  }
}

@media (max-width: 520px) {
  .brand-sub {
    display: none;
  }

  .nav-toggle-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .nav-toggle {
    min-width: 44px;
    padding: 0 12px;
  }

  .btn-header {
    max-width: 100px;
    white-space: normal;
    line-height: 1.15;
    text-align: center;
  }

  .footer-columns {
    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;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .header-progress-bar {
    transition: none;
  }
}
