:root {
  --ink-950: #080C0B;
  --ink-900: #051A15;
  --ink-800: #0A2A22;
  --ink-700: #103D32;
  --cyan-500: #26F0C0;
  --cyan-300: #8DFFE5;
  --orange-500: #FF8A3D;
  --orange-200: #FFD2AF;
  --paper: #F3F7F2;
  --mist: #9FB2A9;
  --black: #080C0B;
  --white: #FFFFFF;
  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "Roboto Mono", monospace;
  --maxw: 1220px;
  --line: rgba(243, 247, 242, 0.16);
  --shadow-hard: 6px 6px 0 var(--black);
  --radius: 12px;
}

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

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

body {
  min-height: 100vh;
  margin: 0;
  padding-top: 104px;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(circle at 84% -8%, rgba(38, 240, 192, 0.12), transparent 34%),
    radial-gradient(circle at 8% 18%, rgba(255, 138, 61, 0.06), transparent 24%),
    linear-gradient(180deg, #051A15 0%, #051A15 64%, #0A2A22 100%);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

body.is-nav-open {
  overflow: hidden;
}

@media (min-width: 1021px) {
  body.is-nav-open {
    overflow: auto;
  }
}

#main-content {
  display: block;
  scroll-margin-top: 124px;
}

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

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

button {
  cursor: pointer;
}

a {
  color: var(--cyan-300);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--cyan-500);
}

p {
  margin: 0 0 1em;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.55em;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.75rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

ul,
ol {
  margin-top: 0;
}

::selection {
  background: var(--cyan-500);
  color: var(--ink-900);
}

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

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 3000;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 2px solid var(--black);
  border-radius: 8px;
  background: var(--cyan-500);
  color: var(--ink-900);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--black);
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 16px;
  color: var(--ink-900);
}

.site-header {
  position: fixed;
  top: 18px;
  right: 16px;
  left: 16px;
  z-index: 1200;
  pointer-events: none;
  transition: top 180ms ease;
}

.site-header.is-condensed {
  top: 9px;
}

.nav-shell {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 18px;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: rgba(10, 42, 34, 0.94);
  box-shadow:
    0 8px 0 rgba(8, 12, 11, 0.56),
    inset 0 0 0 1px rgba(38, 240, 192, 0.18);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  pointer-events: auto;
  transition: box-shadow 180ms ease, padding 180ms ease, border-radius 180ms ease;
}

.site-header.is-condensed .nav-shell {
  padding-top: 7px;
  padding-bottom: 7px;
  box-shadow:
    0 5px 0 rgba(8, 12, 11, 0.6),
    inset 0 0 0 1px rgba(38, 240, 192, 0.24);
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--paper);
  text-decoration: none;
}

.brand:hover {
  color: var(--paper);
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 2px solid var(--black);
  border-radius: 10px;
  background: var(--cyan-500);
  color: var(--ink-900);
  box-shadow: 3px 3px 0 var(--black);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  transform: rotate(-3deg);
  transition: transform 180ms ease, background 180ms ease;
}

.brand:hover .brand-mark {
  background: var(--orange-500);
  transform: rotate(2deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.08;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-tagline {
  display: block;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

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

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

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  border: 2px solid transparent;
  border-radius: 999px;
  color: var(--mist);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.nav-link:hover {
  background: rgba(38, 240, 192, 0.09);
  color: var(--paper);
}

.nav-link[aria-current="page"] {
  border-color: var(--black);
  background: var(--cyan-500);
  color: var(--ink-900);
  box-shadow: 2px 2px 0 var(--black);
  font-weight: 800;
}

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

.header-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 10px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.header-entry--signal {
  border-color: rgba(255, 138, 61, 0.52);
  background: rgba(255, 138, 61, 0.09);
  color: var(--orange-200);
}

.header-entry--signal:hover {
  border-color: var(--orange-500);
  background: var(--orange-500);
  color: var(--ink-900);
}

.header-entry--soft {
  border-color: rgba(38, 240, 192, 0.34);
  background: rgba(38, 240, 192, 0.06);
  color: var(--cyan-300);
}

.header-entry--soft:hover {
  border-color: var(--cyan-500);
  background: var(--cyan-500);
  color: var(--ink-900);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 10px;
  border: 2px solid var(--black);
  border-radius: 10px;
  background: var(--cyan-500);
  color: var(--ink-900);
  box-shadow: 3px 3px 0 var(--black);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}

.nav-toggle:hover {
  background: var(--cyan-300);
}

.nav-toggle[aria-expanded="true"] {
  background: var(--orange-500);
}

.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 17px;
}

.nav-toggle__bars span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.site-footer {
  position: relative;
  margin-top: clamp(64px, 10vw, 140px);
  overflow: hidden;
  border-top: 3px solid var(--black);
  background: var(--ink-800);
  box-shadow: inset 0 1px 0 var(--cyan-500);
  color: var(--paper);
}

.footer-field {
  height: 8px;
  border-bottom: 1px solid rgba(38, 240, 192, 0.28);
  background: repeating-linear-gradient(
    90deg,
    transparent 0 20px,
    rgba(38, 240, 192, 0.42) 20px 22px,
    transparent 22px 46px
  );
  opacity: 0.72;
}

.footer-inner {
  width: min(calc(100% - 40px), var(--maxw));
  margin: 0 auto;
  padding: clamp(42px, 6vw, 82px) 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.footer-identity {
  display: grid;
  gap: 20px;
  align-content: start;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  color: var(--paper);
  text-decoration: none;
}

.footer-brand:hover {
  color: var(--paper);
}

.footer-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--black);
  border-radius: 12px;
  background: var(--cyan-500);
  color: var(--ink-900);
  box-shadow: 4px 4px 0 var(--black);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  transform: rotate(-3deg);
}

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

.footer-brand-text strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.footer-brand-text span {
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.footer-intro {
  max-width: 42ch;
  margin: 0;
  color: rgba(243, 247, 242, 0.8);
  font-size: 15px;
  line-height: 1.8;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  padding: 11px 18px;
  border: 2px solid var(--black);
  border-radius: 8px;
  background: var(--orange-500);
  color: var(--ink-900);
  box-shadow: 4px 4px 0 var(--black);
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.footer-cta:hover {
  background: var(--orange-200);
  color: var(--ink-900);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--black);
}

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

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

.footer-contact {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.footer-heading {
  margin: 0 0 14px;
  color: var(--cyan-500);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

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

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--paper);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.footer-link:hover {
  color: var(--cyan-300);
  border-bottom-color: var(--cyan-500);
}

.contact-item {
  display: grid;
  gap: 2px;
}

.contact-label {
  color: var(--orange-200);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.contact-value {
  color: rgba(243, 247, 242, 0.86);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: clamp(32px, 5vw, 58px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

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

.footer-legal a {
  color: var(--mist);
  font-size: 13px;
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--cyan-300);
}

.footer-icp,
.footer-copy {
  margin: 0;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.site-main {
  display: block;
}

.page-shell {
  width: min(calc(100% - 40px), var(--maxw));
  margin-inline: auto;
}

.section {
  padding-block: clamp(48px, 8vw, 96px);
}

.section--tight {
  padding-block: clamp(28px, 5vw, 56px);
}

.section-band {
  position: relative;
  border-block: 2px solid var(--black);
  background: var(--ink-800);
  box-shadow: inset 0 1px 0 rgba(38, 240, 192, 0.12);
}

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(24px, 4vw, 42px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: 0;
  color: var(--cyan-300);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--orange-500);
}

.display-title {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.75rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.section-title {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.98;
  text-wrap: balance;
}

.lede {
  max-width: 68ch;
  margin: 0;
  color: rgba(243, 247, 242, 0.86);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.8;
}

.body-copy,
.prose {
  max-width: 68ch;
  color: rgba(243, 247, 242, 0.84);
}

.prose {
  line-height: 1.9;
}

.prose p:last-child,
.body-copy p:last-child {
  margin-bottom: 0;
}

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

.breadcrumbs a {
  color: var(--cyan-300);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.breadcrumbs a:hover {
  border-bottom-color: var(--cyan-500);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 18px;
  border: 2px solid var(--black);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink-900);
  box-shadow: 4px 4px 0 var(--black);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  color: var(--ink-900);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--black);
}

.button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--black);
}

.button--primary {
  background: var(--cyan-500);
  color: var(--ink-900);
}

.button--primary:hover {
  background: var(--cyan-300);
  color: var(--ink-900);
}

.button--ghost {
  border-color: var(--paper);
  background: transparent;
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--ink-700);
}

.button--ghost:hover {
  border-color: var(--cyan-500);
  background: rgba(38, 240, 192, 0.08);
  color: var(--cyan-300);
  box-shadow: 6px 6px 0 var(--ink-700);
}

.tag-row,
.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  white-space: nowrap;
}

.tag--cyan {
  border-color: rgba(38, 240, 192, 0.58);
  background: rgba(38, 240, 192, 0.08);
  color: var(--cyan-300);
}

.tag--orange {
  border-color: rgba(255, 138, 61, 0.58);
  background: rgba(255, 138, 61, 0.08);
  color: var(--orange-200);
}

.tag--muted {
  border-color: var(--line);
  background: rgba(159, 178, 169, 0.06);
  color: var(--mist);
}

.stack {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}

.archive-card {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 32px);
  border: 2px solid var(--black);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--ink-800), var(--ink-700));
  color: var(--paper);
  box-shadow: var(--shadow-hard);
}

.archive-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan-500), transparent 72%);
}

.archive-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.archive-card__meta {
  color: var(--orange-200);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.archive-card__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.015em;
}

.archive-card__body {
  max-width: 62ch;
  margin: 0;
  color: rgba(243, 247, 242, 0.82);
  font-size: 15px;
  line-height: 1.75;
}

.image-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 18%, rgba(38, 240, 192, 0.24), transparent 34%),
    radial-gradient(circle at 78% 82%, rgba(255, 138, 61, 0.16), transparent 32%),
    linear-gradient(135deg, var(--ink-800), var(--ink-900));
  box-shadow: var(--shadow-hard);
  aspect-ratio: 16 / 9;
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 52%, rgba(8, 12, 11, 0.48));
  pointer-events: none;
}

.image-frame img,
.image-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame picture {
  display: block;
  width: 100%;
  height: 100%;
}

.image-frame--wide {
  aspect-ratio: 16 / 9;
}

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

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

.content-grid {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
}

.content-grid--split {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 10px;
  width: 2px;
  background: linear-gradient(var(--cyan-500), var(--ink-700));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 16px;
}

.timeline-item__marker {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin-top: 5px;
  border: 2px solid var(--cyan-500);
  border-radius: 50%;
  background: var(--ink-900);
  box-shadow: 0 0 0 4px rgba(38, 240, 192, 0.1);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.timeline-item:hover .timeline-item__marker {
  background: var(--cyan-500);
  box-shadow: 0 0 0 7px rgba(38, 240, 192, 0.14);
}

.timeline-item__meta {
  margin-bottom: 4px;
  color: var(--orange-200);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.timeline-item__body {
  min-width: 0;
  padding-bottom: 10px;
}

.index-rail {
  display: grid;
  gap: 12px;
  padding-left: clamp(16px, 2vw, 24px);
  border-left: 3px solid var(--cyan-500);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.index-rail a {
  color: var(--mist);
  text-decoration: none;
}

.index-rail a:hover {
  color: var(--cyan-300);
}

.data-mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

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

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

@media (max-width: 1020px) {
  body {
    padding-top: 88px;
  }

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

  .site-header {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .site-header.is-condensed {
    top: 6px;
  }

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

  .site-header.is-condensed .nav-shell {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .brand {
    flex: 1 1 auto;
  }

  .brand-mark {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 11px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-tagline {
    display: none;
  }

  .header-actions {
    margin-left: auto;
    gap: 6px;
  }

  .header-entry {
    min-height: 31px;
    padding: 7px 8px;
    font-size: 9px;
    letter-spacing: 0.03em;
  }

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

  .primary-nav {
    order: 10;
    flex: 1 0 100%;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
    transition:
      max-height 280ms ease,
      opacity 200ms ease,
      visibility 200ms ease,
      padding 200ms ease,
      border-color 200ms ease;
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 4px;
    padding: 0;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
  }

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

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

  .site-header[data-open="true"] .primary-nav {
    max-height: 70vh;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding-top: 8px;
    border-top: 2px solid var(--ink-700);
  }

  .site-header[data-open="true"] .nav-toggle {
    background: var(--orange-500);
  }

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

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

@media (max-width: 760px) {
  .page-shell,
  .footer-inner {
    width: min(calc(100% - 28px), var(--maxw));
  }

  .content-grid--split {
    grid-template-columns: 1fr;
  }

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

  .footer-contact {
    grid-column: 1 / -1;
    padding-top: 18px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

@media (max-width: 520px) {
  body {
    font-size: 16px;
    padding-top: 82px;
  }

  .site-header {
    top: 8px;
    right: 8px;
    left: 8px;
  }

  .nav-shell {
    padding: 7px 8px;
    border-radius: 21px;
  }

  .brand {
    gap: 8px;
  }

  .brand-name {
    font-size: 15px;
  }

  .header-entry {
    min-height: 30px;
    padding: 6px 7px;
    font-size: 9px;
  }

  .nav-toggle {
    min-height: 34px;
    padding: 7px 8px;
  }

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

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

  .footer-contact {
    grid-column: auto;
  }

  .footer-legal {
    flex-direction: column;
    gap: 6px;
  }
}

@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;
    scroll-behavior: auto !important;
  }

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