:root {
  --red: #D8202A;
  --red-deep: #7A1A1F;
  --ink: #17181C;
  --paper: #F7F2E8;
  --glove: #FFFFFF;
  --yellow: #F2B705;
  --blue: #2F8FD8;
  --grid: #D9D2C3;
  --muted: #5F6F7A;
  --rail-width: 17.5rem;
  --content-max: 76rem;
  --font-display: "Arial Rounded MT Bold", "Arial Black", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(23, 24, 28, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 24, 28, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

main {
  display: block;
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 0.8em;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.55rem, 7vw, 5.2rem);
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
}

h4 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 1em;
}

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

figure {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

strong {
  font-weight: 900;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 9999;
  padding: 0.7rem 1rem;
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease-out);
}

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

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

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

.section {
  position: relative;
  padding-block: clamp(2.7rem, 6vw, 5.8rem);
}

.section--tight {
  padding-block: clamp(1.6rem, 4vw, 3rem);
}

.section--ink {
  background: var(--ink);
  color: var(--paper);
}

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

.section--ink p,
.section--ink .lede {
  color: var(--grid);
}

.section--ink .kicker {
  color: var(--yellow);
}

.section--ink .kicker::before {
  background: var(--red);
  border-color: var(--yellow);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.8rem;
  color: var(--red);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 1.6rem;
  height: 3px;
  border: 1px solid var(--ink);
  background: var(--yellow);
}

.section-heading {
  max-width: 20ch;
}

.lede {
  max-width: 60ch;
  color: #33353B;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.85;
}

.prose {
  max-width: 68ch;
}

.prose p {
  margin-block: 0 1.15em;
  line-height: 1.95;
}

.prose ul,
.prose ol {
  margin-block: 0 1.2em;
  padding-left: 1.4em;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-block: 0.35em;
}

.prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-left: 5px solid var(--red);
  background: var(--glove);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.05rem;
  border: 2px solid var(--ink);
  background: var(--glove);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 0.93rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), background-color 0.18s var(--ease-out), color 0.18s var(--ease-out);
}

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

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

.btn--primary {
  background: var(--red);
  color: var(--glove);
  box-shadow: 4px 4px 0 var(--yellow);
}

.btn--primary:hover {
  box-shadow: 6px 6px 0 var(--yellow);
}

.btn--ghost {
  background: transparent;
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--yellow);
  transform: translate(0, -2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.btn--small {
  min-height: 2.3rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn__arrow {
  display: inline-block;
  transition: transform 0.18s var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.breadcrumb {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: center;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--red);
  font-weight: 900;
}

.breadcrumb__link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--grid);
  text-underline-offset: 0.2em;
}

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

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

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

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

.panel {
  padding: clamp(1rem, 2.5vw, 1.6rem);
  border: 1px solid var(--ink);
  background: var(--glove);
  box-shadow: 5px 5px 0 var(--grid);
}

.panel--paper {
  background: var(--paper);
}

.panel--ink {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 5px 5px 0 var(--red);
}

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

.panel--ink p {
  color: var(--grid);
}

.panel--ink .kicker {
  color: var(--yellow);
}

.media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--glove);
  box-shadow: 6px 6px 0 var(--grid);
}

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

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

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

.media-frame__tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.media-caption {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}

.rail-accent {
  display: none;
}

.header-frame {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding: 0.7rem 1rem;
}

.brand-block {
  flex: 1;
  min-width: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.5rem;
  height: 2.1rem;
  border: 2px solid var(--ink);
  background: var(--red);
  color: var(--glove);
  box-shadow: 3px 3px 0 var(--yellow);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}

.brand-link:hover .brand-mark {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--yellow);
}

.brand-mark__letter {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-1px);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.brand-kicker {
  overflow: hidden;
  color: var(--red);
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-title {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-line {
  display: none;
}

.nav-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 2px solid var(--ink);
  background: var(--glove);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  transition: background-color 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}

.nav-toggle:active {
  transform: translate(1px, 1px);
}

.nav-toggle__label {
  font-size: 0.78rem;
}

.nav-toggle__lines {
  display: grid;
  gap: 3px;
  width: 1.25rem;
}

.nav-toggle__lines span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
}

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

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

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

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

.site-nav {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: none;
  max-height: calc(100dvh - 4.3rem);
  overflow: auto;
  padding: 1rem 1rem 1.2rem;
  border-bottom: 5px solid var(--red);
  background: var(--ink);
  color: var(--paper);
}

.site-header[data-open="true"] .site-nav {
  display: flex;
  flex-direction: column;
}

.nav-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(247, 242, 232, 0.2);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.nav-legend__label {
  color: var(--yellow);
}

.nav-legend__count {
  color: var(--paper);
}

.nav-list {
  display: grid;
  margin: 0.7rem 0 1rem;
  border-top: 1px solid rgba(247, 242, 232, 0.18);
}

.nav-item {
  border-bottom: 1px solid rgba(247, 242, 232, 0.18);
}

.nav-link {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.72rem 0.2rem;
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  transition: color 0.18s var(--ease-out), background-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}

.nav-link::after {
  content: "↗";
  color: var(--grid);
  font-size: 0.75rem;
  opacity: 0.6;
  transition: transform 0.18s var(--ease-out), color 0.18s var(--ease-out), opacity 0.18s var(--ease-out);
}

.nav-link:hover {
  color: var(--yellow);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link:hover::after {
  transform: translate(2px, -2px);
  color: var(--yellow);
  opacity: 1;
}

.nav-link[aria-current="page"] {
  background: var(--red);
  color: var(--glove);
  box-shadow: inset 4px 0 0 var(--yellow);
}

.nav-link[aria-current="page"] .nav-index,
.nav-link[aria-current="page"]::after {
  color: var(--glove);
  opacity: 1;
}

.nav-link[aria-current="page"]:hover {
  background: var(--red-deep);
  color: var(--glove);
}

.nav-index {
  color: var(--yellow);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.nav-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 0.8rem;
}

.nav-stamp {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.45rem;
  border: 1px solid var(--paper);
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.rail-action {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.62rem 0.75rem;
  border: 1px solid var(--paper);
  background: transparent;
  color: var(--paper);
  box-shadow: 3px 3px 0 var(--red);
  font-size: 0.82rem;
  font-weight: 900;
  transition: background-color 0.18s var(--ease-out), transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}

.rail-action:hover {
  background: var(--red);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--yellow);
}

.rail-action__arrow {
  transition: transform 0.18s var(--ease-out);
}

.rail-action:hover .rail-action__arrow {
  transform: translateX(4px);
}

.rail-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  height: 3px;
  overflow: hidden;
  background: rgba(23, 24, 28, 0.12);
}

.rail-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--red);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  transition: transform 0.1s linear;
}

.site-footer {
  position: relative;
  margin-top: clamp(2rem, 6vw, 5rem);
  padding: clamp(2rem, 5vw, 4rem) 1rem 1.2rem;
  border-top: 7px solid var(--red);
  background: var(--ink);
  color: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: min(100% - 2rem, var(--content-max));
  margin-inline: auto;
}

.footer-brand {
  padding-top: 1.1rem;
  border-top: 4px solid var(--yellow);
}

.footer-mark {
  display: inline-grid;
  place-items: center;
  width: 2.7rem;
  height: 2.3rem;
  margin-bottom: 1rem;
  border: 2px solid var(--paper);
  background: var(--red);
  color: var(--glove);
  box-shadow: 4px 4px 0 var(--yellow);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
}

.footer-brand__title {
  margin: 0 0 0.25rem;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.footer-brand__line {
  margin: 0 0 1rem;
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.footer-summary {
  max-width: 34ch;
  margin: 0;
  color: var(--grid);
  font-size: 0.9rem;
  line-height: 1.85;
}

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

.footer-heading {
  margin: 0 0 0.8rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(247, 242, 232, 0.25);
  color: var(--yellow);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.footer-list {
  display: grid;
  gap: 0.45rem;
}

.footer-list a {
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.15rem 0;
  color: var(--paper);
  font-size: 0.86rem;
  font-weight: 600;
  transition: color 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}

.footer-list a::before {
  content: "→";
  color: var(--red);
  font-weight: 900;
  transition: transform 0.18s var(--ease-out), color 0.18s var(--ease-out);
}

.footer-list a:hover {
  color: var(--yellow);
  transform: translateX(2px);
}

.footer-list a:hover::before {
  color: var(--yellow);
  transform: translateX(2px);
}

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

.footer-contact__note {
  margin: 0 0 1rem;
  color: var(--grid);
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-contact__line {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: baseline;
  margin: 0;
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(247, 242, 232, 0.2);
  font-size: 0.8rem;
}

.footer-contact__label {
  color: #9AA7AE;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.footer-contact__value {
  overflow-wrap: anywhere;
  color: var(--paper);
}

.footer-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.65rem 0.8rem;
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--red);
  font-size: 0.85rem;
  font-weight: 900;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}

.footer-action:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--red);
}

.footer-ledger {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.2rem;
  align-items: center;
  width: min(100% - 2rem, var(--content-max));
  margin: 2.2rem auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(247, 242, 232, 0.25);
  color: #AEB7BC;
  font-size: 0.7rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 0;
}

.footer-legal__link {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-underline-offset: 0.22em;
  transition: color 0.18s var(--ease-out);
}

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

.footer-icp,
.footer-area,
.footer-copy {
  margin: 0;
}

.footer-copy {
  margin-left: auto;
}

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

html.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

@media (max-width: 1023px) {
  body.nav-open {
    overflow: hidden;
  }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-item:nth-child(odd) {
    border-right: 1px solid rgba(247, 242, 232, 0.18);
  }

  .nav-item:nth-child(odd) .nav-link {
    padding-right: 0.7rem;
  }

  .nav-item:nth-child(even) .nav-link {
    padding-left: 0.7rem;
  }
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  body {
    padding-left: var(--rail-width);
  }

  html {
    scroll-padding-top: 2rem;
  }

  .site-header {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail-width);
    border-right: 4px solid var(--red);
    border-bottom: 0;
    background: var(--ink);
    color: var(--paper);
  }

  .rail-accent {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 8px;
    background: linear-gradient(to bottom, var(--red) 0 28%, var(--yellow) 28% 33%, var(--blue) 33% 37%, transparent 37% 100%);
  }

  .header-frame {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 1.5rem 1.3rem 1.2rem 1.55rem;
    overflow-y: auto;
  }

  .brand-block {
    flex: 0 0 auto;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid rgba(247, 242, 232, 0.22);
  }

  .brand-link {
    align-items: center;
  }

  .brand-mark {
    width: 3rem;
    height: 2.55rem;
    border-color: var(--paper);
    box-shadow: 3px 3px 0 var(--yellow);
  }

  .brand-kicker {
    color: var(--yellow);
  }

  .brand-title {
    color: var(--paper);
    font-size: 1.1rem;
  }

  .brand-line {
    display: block;
    margin: 0.8rem 0 0;
    color: var(--grid);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex: 1;
    flex-direction: column;
    max-height: none;
    overflow: visible;
    padding: 1.15rem 0 0;
    border: 0;
    background: transparent;
    color: var(--paper);
  }

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

  .nav-list {
    margin: 0.65rem 0 0.8rem;
  }

  .nav-link {
    padding: 0.74rem 0.2rem;
    font-size: 0.9rem;
  }

  .nav-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-top: auto;
    padding-top: 1rem;
  }

  .nav-stamp {
    align-self: flex-start;
  }

  .rail-action {
    justify-content: space-between;
    background: transparent;
  }

  .rail-progress {
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 4px;
    height: auto;
    background: rgba(247, 242, 232, 0.12);
  }

  .rail-progress__bar {
    width: 100%;
    height: 100%;
    transform: scaleY(var(--scroll-progress, 0));
    transform-origin: top center;
  }

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

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

  .footer-copy {
    margin-left: auto;
  }
}

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

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

  .footer-copy {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.4rem, var(--content-max));
  }

  .header-frame {
    padding-inline: 0.75rem;
  }

  .brand-kicker {
    display: none;
  }

  .brand-title {
    font-size: 0.98rem;
  }

  .brand-mark {
    width: 2.25rem;
    height: 1.95rem;
  }

  .nav-toggle {
    padding: 0.48rem 0.55rem;
  }

  .nav-toggle__label {
    font-size: 0.72rem;
  }

  .footer-grid,
  .footer-ledger {
    width: min(100% - 1.4rem, var(--content-max));
  }
}

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

  .reveal,
  html.reveal-ready .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .rail-progress__bar {
    transition: none;
  }
}
