:root {
  color-scheme: dark;
  --bg: #081A15;
  --bg-2: #0E2A22;
  --panel: #143B31;
  --accent: #00F0C8;
  --accent-soft: #7CFBE1;
  --warm: #FF9A3C;
  --text: #F4F8F5;
  --muted: #A9C0B7;
  --line: #2C5A4C;
  --warn: #FFD166;
  --header-h: 78px;
  --gutter: clamp(16px, 4vw, 64px);
  --max: 1440px;
  --font-display: "Barlow Condensed", "Arial Narrow", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-data: "JetBrains Mono", "SFMono-Regular", "Roboto Mono", Consolas, "Liberation Mono", monospace;
  --shadow-hard: 8px 8px 0 rgba(0, 0, 0, 0.26);
  --stack-gap: 1rem;
}

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

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 82% 4%, rgba(0, 240, 200, 0.075), transparent 28rem),
    radial-gradient(circle at 8% 36%, rgba(255, 154, 60, 0.035), transparent 22rem);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

main {
  display: block;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

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

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

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

button {
  border-radius: 0;
  font: inherit;
}

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

button,
[role="button"] {
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 4px;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  color: var(--bg);
  background: var(--accent);
  border: 2px solid var(--accent-soft);
  font-weight: 800;
  transform: translateY(calc(-100% - 24px));
  transition: transform 0.18s ease;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  color: var(--text);
  background: linear-gradient(180deg, rgba(8, 26, 21, 0.88) 0%, rgba(8, 26, 21, 0.52) 58%, rgba(8, 26, 21, 0) 100%);
  border-bottom: 1px solid transparent;
  transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.site-header::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 200, 0.55), transparent);
  opacity: 0.55;
}

.site-header.is-scrolled,
.site-header[data-open] {
  background: rgba(8, 26, 21, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.header-shell {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2.5vw, 34px);
  width: min(calc(100% - var(--gutter) * 2), var(--max));
  min-height: var(--header-h);
  margin-inline: auto;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--bg);
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  box-shadow: 4px 4px 0 rgba(0, 240, 200, 0.16);
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.brand-note {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-panel {
  justify-self: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.3vw, 22px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 3px;
  color: rgba(244, 248, 245, 0.78);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color 0.18s ease;
}

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

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

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

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

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(20, 59, 49, 0.28);
  border: 1px solid var(--line);
  font-family: var(--font-data);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.quick-link:hover,
.quick-link:focus-visible {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.quick-link--warm {
  color: var(--warm);
  border-color: rgba(255, 154, 60, 0.55);
}

.quick-link--warm:hover,
.quick-link--warm:focus-visible {
  color: var(--bg);
  background: var(--warm);
  border-color: var(--warm);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.26);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  color: var(--bg);
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
  transform: translate(-1px, -1px);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 48px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(20, 59, 49, 0.38);
  border: 1px solid var(--line);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

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

.nav-toggle-label {
  font-family: var(--font-data);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.08em;
}

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 20px;
}

.nav-toggle-bars span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header[data-open] .nav-toggle {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

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

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

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

.nav-shortcuts {
  display: none;
}

.nav-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(20, 59, 49, 0.32);
  border: 1px solid var(--line);
  font-family: var(--font-data);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.05em;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nav-shortcut:hover,
.nav-shortcut:focus-visible {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.nav-shortcut--warm {
  color: var(--warm);
  border-color: rgba(255, 154, 60, 0.55);
}

.nav-shortcut--warm:hover,
.nav-shortcut--warm:focus-visible {
  color: var(--bg);
  background: var(--warm);
  border-color: var(--warm);
}

.nav-shortcut--primary {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}

.nav-shortcut--primary:hover,
.nav-shortcut--primary:focus-visible {
  color: var(--bg);
  background: var(--accent-soft);
  border-color: var(--accent-soft);
}

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px) var(--gutter) 22px;
  color: var(--text);
  background-color: var(--bg-2);
  background-image:
    radial-gradient(circle at 84% 12%, rgba(0, 240, 200, 0.09), transparent 24rem),
    radial-gradient(circle at 12% 96%, rgba(255, 154, 60, 0.045), transparent 22rem);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--warm), var(--accent) 28%, transparent 68%);
  opacity: 0.8;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.65fr);
  gap: clamp(28px, 5vw, 72px);
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

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

.site-footer .brand-mark {
  width: 40px;
  height: 40px;
  box-shadow: none;
}

.site-footer .brand-name {
  font-size: 1.05rem;
}

.footer-summary {
  max-width: 34ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 48px);
}

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

.footer-heading {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-list {
  display: grid;
  gap: 9px;
}

.footer-link {
  display: inline-flex;
  width: fit-content;
  padding-bottom: 2px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  font-size: 14px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--accent-soft);
  border-bottom-color: var(--accent-soft);
}

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

.footer-contact {
  display: grid;
  gap: 12px;
}

.footer-contact-line {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.footer-contact-label {
  display: block;
  margin-bottom: 2px;
  color: var(--warm);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-top: 20px;
}

.footer-legal {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 11px;
  line-height: 1.6;
}

.footer-note {
  max-width: 56ch;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: right;
}

.footer-watermark {
  position: absolute;
  right: -0.08em;
  bottom: -0.22em;
  z-index: 0;
  margin: 0;
  color: rgba(0, 240, 200, 0.04);
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 16rem);
  line-height: 0.72;
  letter-spacing: -0.06em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.container {
  width: min(calc(100% - var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.page-shell {
  width: min(calc(100% - var(--gutter) * 2), var(--max));
  margin-inline: auto;
  padding-top: calc(var(--header-h) + clamp(28px, 6vw, 76px));
  padding-bottom: clamp(48px, 8vw, 100px);
}

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

.stack > * + * {
  margin-top: var(--stack-gap);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cluster-gap, 0.75rem);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 30px);
}

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

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-6 {
  grid-column: span 6;
}

.span-7 {
  grid-column: span 7;
}

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

.span-9 {
  grid-column: span 9;
}

.span-12 {
  grid-column: span 12;
}

.display-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 26px;
  height: 2px;
  background: var(--accent);
}

.data-value {
  color: var(--accent);
  font-family: var(--font-data);
  font-size: clamp(1.4rem, 3vw, 3.4rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.06em;
}

.data-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  color: var(--muted);
  background: rgba(20, 59, 49, 0.55);
  border: 1px solid var(--line);
  font-family: var(--font-data);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.data-chip--warm {
  color: var(--warm);
  border-color: rgba(255, 154, 60, 0.55);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  color: var(--text);
  background: rgba(20, 59, 49, 0.34);
  border: 2px solid var(--line);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.24);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  color: var(--accent-soft);
  border-color: var(--accent-soft);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.28);
  transform: translate(-1px, -1px);
}

.btn:active {
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.24);
  transform: translate(2px, 2px);
}

.btn--primary {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.btn--primary:hover {
  color: var(--bg);
  background: var(--accent-soft);
  border-color: var(--accent-soft);
}

.btn--ghost {
  background: transparent;
}

.btn--warm {
  color: var(--warm);
  background: transparent;
  border-color: rgba(255, 154, 60, 0.65);
}

.btn--warm:hover {
  color: var(--bg);
  background: var(--warm);
  border-color: var(--warm);
}

.surface-card {
  position: relative;
  padding: clamp(18px, 3vw, 30px);
  background: linear-gradient(145deg, rgba(20, 59, 49, 0.92), rgba(14, 42, 34, 0.96));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-hard);
}

.surface-card:hover {
  border-color: var(--accent-soft);
}

.edge-card {
  border-left: 4px solid var(--accent);
}

.edge-card--warm {
  border-left-color: var(--warm);
}

.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 70% 20%, rgba(0, 240, 200, 0.17), transparent 45%),
    linear-gradient(145deg, var(--panel), var(--bg) 65%);
  border: 1px solid var(--line);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 7px, rgba(0, 240, 200, 0.04) 7px 8px);
}

.media-frame::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 10px;
  height: 10px;
  pointer-events: none;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

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

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

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

.breadcrumb {
  margin-bottom: clamp(18px, 3vw, 28px);
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 11px;
  line-height: 1.4;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list li:not(:last-child)::after {
  content: "/";
  color: var(--line);
}

.breadcrumb-link {
  color: var(--muted);
  transition: color 0.18s ease;
}

.breadcrumb-link:hover,
.breadcrumb-link:focus-visible {
  color: var(--accent-soft);
}

.breadcrumb-list [aria-current="page"] {
  color: var(--text);
}

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: 3px;
  pointer-events: none;
  background: rgba(244, 248, 245, 0.05);
}

.reading-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft) 58%, var(--warm));
  transform: scaleX(0);
  transform-origin: left center;
}

.reveal-pending {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-pending.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1180px) {
  :root {
    --header-h: 68px;
  }

  .header-shell {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

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

  .header-actions .quick-link,
  .header-actions .header-cta {
    display: none;
  }

  .nav-panel {
    position: fixed;
    top: calc(var(--header-h) + 10px);
    right: var(--gutter);
    left: var(--gutter);
    z-index: 130;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    max-height: calc(100vh - var(--header-h) - 24px);
    max-height: calc(100dvh - var(--header-h) - 24px);
    padding: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(160deg, rgba(14, 42, 34, 0.99), rgba(8, 26, 21, 0.99));
    border: 2px solid var(--line);
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.35);
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .site-header[data-open] .nav-panel {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav-list li + li {
    border-top: 1px solid rgba(44, 90, 76, 0.6);
  }

  .nav-link {
    justify-content: flex-start;
    min-height: 52px;
    padding: 0 8px;
    color: rgba(244, 248, 245, 0.82);
    font-size: 16px;
  }

  .nav-link::after {
    right: auto;
    bottom: 12px;
    width: 24px;
  }

  .nav-shortcuts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  .nav-shortcut--primary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .grid-12 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .span-3,
  .span-4 {
    grid-column: span 3;
  }

  .span-5,
  .span-6,
  .span-7,
  .span-8,
  .span-9,
  .span-12 {
    grid-column: span 6;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 66px;
  }

  body {
    font-size: 15px;
  }

  .header-shell {
    gap: 10px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 1.02rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-note {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .nav-panel {
    top: calc(var(--header-h) + 6px);
    padding: 12px;
  }

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

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

  .footer-note {
    text-align: left;
  }
}

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

  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8,
  .span-9,
  .span-12 {
    grid-column: 1 / -1;
  }
}

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

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

  .nav-toggle-label {
    display: none;
  }

  .nav-shortcuts {
    grid-template-columns: 1fr;
  }

  .nav-shortcut--primary {
    grid-column: auto;
  }

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

  .footer-watermark {
    font-size: 7rem;
  }
}

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

  .reveal-pending {
    opacity: 1;
    transform: none;
  }
}
