:root {
  --flame: #E8491D;
  --flame-deep: #B32E0E;
  --flame-light: #F2764A;
  --ink: #1A1A1A;
  --ink-deep: #0E0E0E;
  --gold: #C9A227;
  --gold-deep: #A8861F;
  --archive: #2F3E4E;
  --archive-mid: #3D5063;
  --mist: #A9BBCB;
  --mist-light: #C7D3DC;
  --paper: #F4F1EC;
  --sand: #D8D2C8;
  --white: #FFFFFF;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --maxw: 1320px;
  --gutter: 24px;
  --header-h: 104px;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

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

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

button {
  border: 0;
  background: none;
  color: inherit;
}

::selection {
  background: var(--flame);
  color: var(--white);
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 180ms var(--ease-out);
}

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

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 236, 0.88);
  border-bottom: 1px solid rgba(26, 26, 26, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--flame));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.header-inner {
  position: relative;
  width: min(calc(100% - 48px), var(--maxw));
  min-height: var(--header-h);
  margin-inline: auto;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--ink);
}

.brand-mark {
  position: relative;
  width: 36px;
  height: 48px;
  flex: 0 0 auto;
  background: linear-gradient(150deg, var(--flame-light), var(--flame) 45%, var(--flame-deep));
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px 9px 12px;
  background: rgba(255, 255, 255, 0.22);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 55% 100%, 0 100%);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.brand-name {
  writing-mode: vertical-rl;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.12em;
}

.brand-domain {
  color: rgba(26, 26, 26, 0.55);
  font-size: 9px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-current {
  display: none;
  align-items: center;
  max-width: 160px;
  min-height: 34px;
  padding: 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.08);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(26, 26, 26, 0.22);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

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

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

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 12px;
}

.nav-toggle-box::before,
.nav-toggle-box::after,
.nav-toggle-box > span {
  content: "";
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-toggle-box > span {
  width: 70%;
  align-self: flex-end;
}

.nav-toggle-label {
  font-size: 12px;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.9);
  box-shadow: 0 10px 30px rgba(14, 14, 14, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  color: rgba(244, 241, 236, 0.76);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 120ms ease, color 120ms ease;
}

.nav-list a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.nav-list a[aria-current="page"] {
  background: var(--gold);
  color: var(--ink-deep);
  font-weight: 700;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--flame);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background-color 120ms ease;
}

.nav-cta:hover {
  background: var(--flame-deep);
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: var(--gutter);
  width: min(calc(100% - 48px), var(--maxw));
  margin-inline: auto;
  padding-block: 40px 80px;
}

.rail {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  min-width: 0;
}

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

.section {
  padding-block: clamp(40px, 6vw, 80px);
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-heading .section-title {
  max-width: 18ch;
}

.display-title {
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: 0.04em;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.eyebrow,
.index-label {
  color: var(--flame);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow--gold {
  color: var(--gold);
}

.lead {
  color: rgba(26, 26, 26, 0.78);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.7;
}

.body-text {
  font-size: 16px;
  line-height: 1.75;
}

.body-text + .body-text {
  margin-top: 1em;
}

.prose {
  max-width: 72ch;
}

.prose > * + * {
  margin-top: 1em;
}

.prose h2 {
  margin-top: 1.6em;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.prose h3 {
  margin-top: 1.4em;
  font-size: 1.1rem;
  font-weight: 900;
}

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

.prose ul {
  list-style: square;
}

.prose ol {
  list-style: decimal;
}

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

.prose a {
  color: var(--flame-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose code {
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(26, 26, 26, 0.06);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.section--archive {
  background: var(--archive);
  color: var(--mist);
}

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

.section--flame {
  background: var(--flame);
  color: var(--white);
}

.section--archive .section-title,
.section--ink .section-title {
  color: var(--white);
}

.section--archive .lead,
.section--archive .body-text,
.section--ink .lead,
.section--ink .body-text {
  color: var(--mist);
}

.section--archive .eyebrow,
.section--ink .eyebrow {
  color: var(--gold);
}

.section--flame .section-title {
  color: var(--white);
}

.section--flame .lead,
.section--flame .body-text {
  color: rgba(255, 255, 255, 0.82);
}

.section--flame .eyebrow {
  color: var(--ink-deep);
}

.diagonal-cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
}

.diagonal-cut--reverse {
  clip-path: polygon(0 0, 100% 40px, 100% 100%, 0 100%);
}

.glass {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.glass-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.glass-card--light {
  border-color: rgba(26, 26, 26, 0.12);
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

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

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

.button--primary {
  background: var(--flame);
  color: var(--white);
}

.button--primary:hover {
  background: var(--flame-deep);
}

.button--ghost {
  border-color: rgba(26, 26, 26, 0.3);
  background: transparent;
  color: var(--ink);
}

.button--ghost:hover {
  background: rgba(26, 26, 26, 0.06);
}

.button--gold {
  background: var(--gold);
  color: var(--ink-deep);
}

.button--gold:hover {
  background: var(--gold-deep);
}

.button--quiet {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.button--quiet:hover {
  background: rgba(255, 255, 255, 0.16);
}

.section--archive .button--ghost {
  border-color: rgba(199, 211, 220, 0.35);
  color: var(--mist-light);
}

.section--archive .button--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(26, 26, 26, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.chip[aria-pressed="true"],
.chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.section--archive .chip {
  border-color: rgba(199, 211, 220, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: var(--mist-light);
}

.section--archive .chip[aria-pressed="true"],
.section--archive .chip.is-active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink-deep);
}

.stripe {
  display: flex;
  overflow-x: auto;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.stripe::-webkit-scrollbar {
  height: 6px;
}

.stripe::-webkit-scrollbar-thumb {
  background: rgba(201, 162, 39, 0.6);
  border-radius: 999px;
}

.stripe-item {
  display: flex;
  flex: 0 0 min(220px, 72vw);
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 18px 20px;
  border-right: 1px solid rgba(244, 241, 236, 0.16);
  scroll-snap-align: start;
}

.stripe-value {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stripe-label {
  color: var(--mist);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stat-label {
  color: rgba(26, 26, 26, 0.55);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.section--archive .stat-value {
  color: var(--white);
}

.section--archive .stat-label {
  color: var(--mist);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(26, 26, 26, 0.14);
  border-bottom: 1px solid rgba(26, 26, 26, 0.14);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(26, 26, 26, 0.7);
  font-size: 12px;
}

.legend-key {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--flame);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.legend-key--gold {
  background: var(--gold);
}

.legend-key--archive {
  background: var(--archive);
}

.section--archive .map-legend {
  border-color: rgba(199, 211, 220, 0.2);
}

.section--archive .legend-item {
  color: var(--mist);
}

.index-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(26, 26, 26, 0.18);
}

.index-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.12);
}

.index-num {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.index-title {
  font-weight: 700;
}

.index-meta {
  color: rgba(26, 26, 26, 0.55);
  font-size: 12px;
}

.section--archive .index-list {
  border-color: rgba(199, 211, 220, 0.2);
}

.section--archive .index-item {
  border-color: rgba(199, 211, 220, 0.16);
}

.section--archive .index-title {
  color: var(--white);
}

.section--archive .index-meta {
  color: rgba(199, 211, 220, 0.65);
}

.anchor-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 16px;
  border-left: 2px solid rgba(26, 26, 26, 0.12);
}

.anchor-link {
  color: rgba(26, 26, 26, 0.6);
  font-size: 13px;
  transition: color 120ms ease;
}

.anchor-link:hover {
  color: var(--flame);
}

.anchor-link[aria-current="true"],
.anchor-link[aria-current="location"] {
  color: var(--flame);
  font-weight: 700;
}

.section--archive .anchor-nav {
  border-color: rgba(199, 211, 220, 0.2);
}

.section--archive .anchor-link {
  color: var(--mist);
}

.section--archive .anchor-link[aria-current="true"],
.section--archive .anchor-link[aria-current="location"] {
  color: var(--gold);
}

.card {
  padding: 24px;
  border: 1px solid rgba(26, 26, 26, 0.1);
  border-radius: 4px;
  background: var(--white);
}

.card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.card-body {
  color: rgba(26, 26, 26, 0.72);
  font-size: 15px;
}

.section--archive .card {
  border-color: rgba(199, 211, 220, 0.16);
  background: var(--archive-mid);
  color: var(--mist);
}

.section--archive .card-body {
  color: var(--mist);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(232, 73, 29, 0.12);
  color: var(--flame-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.section--archive .tag {
  background: rgba(201, 162, 39, 0.18);
  color: var(--gold);
}

.rule {
  height: 1px;
  margin: 24px 0;
  border: 0;
  background: rgba(26, 26, 26, 0.14);
}

.section--archive .rule {
  background: rgba(199, 211, 220, 0.2);
}

.image-frame {
  position: relative;
  min-height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(232, 73, 29, 0.24), rgba(47, 62, 78, 0.28));
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(232, 73, 29, 0.18), transparent 46%, rgba(47, 62, 78, 0.24));
  mix-blend-mode: multiply;
  pointer-events: none;
}

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

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

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

.image-frame--wide img,
.image-frame--tall img,
.image-frame--square img {
  position: absolute;
  inset: 0;
}

.image-caption {
  margin-top: 8px;
  color: rgba(26, 26, 26, 0.55);
  font-size: 12px;
}

.section--archive .image-caption {
  color: var(--mist);
}

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 24px;
  background:
    repeating-linear-gradient(135deg, rgba(26, 26, 26, 0.06) 0 1px, transparent 1px 12px),
    linear-gradient(135deg, rgba(232, 73, 29, 0.16), rgba(47, 62, 78, 0.14));
  color: rgba(26, 26, 26, 0.55);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
}

.breadcrumb {
  margin-bottom: 24px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(26, 26, 26, 0.55);
  font-size: 12px;
}

.breadcrumb-list li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(26, 26, 26, 0.25);
}

.breadcrumb-list a {
  color: var(--flame-deep);
}

.fold {
  border-top: 1px solid rgba(26, 26, 26, 0.14);
}

.fold summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  list-style: none;
  font-weight: 700;
  cursor: pointer;
}

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

.fold summary::after {
  content: "+";
  color: var(--flame);
  font-family: var(--font-mono);
}

.fold[open] summary::after {
  content: "−";
}

.fold-content {
  padding-bottom: 16px;
  color: rgba(26, 26, 26, 0.7);
  font-size: 15px;
}

.site-footer {
  position: relative;
  margin-top: 64px;
  padding: 0 24px 28px;
  background: var(--archive);
  color: var(--mist);
}

.footer-cut {
  height: 32px;
  margin: 0 -24px;
  background: linear-gradient(90deg, var(--flame-deep), var(--flame) 55%, var(--flame-light));
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 100%);
}

.footer-inner {
  width: min(100%, var(--maxw));
  margin-inline: auto;
  padding-top: 48px;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(199, 211, 220, 0.18);
}

.footer-brand-link {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.footer-brand-note {
  color: var(--mist);
  font-size: 14px;
}

.footer-meta {
  margin-left: auto;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.08em;
}

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

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

.footer-title {
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-list a {
  color: var(--mist-light);
  transition: color 120ms ease;
}

.footer-list a:hover {
  color: var(--white);
}

.footer-list--plain li {
  color: var(--mist);
}

.footer-contact-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.footer-label {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(199, 211, 220, 0.18);
  color: var(--mist);
  font-size: 12px;
}

.footer-note {
  color: rgba(199, 211, 220, 0.7);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

@media (min-width: 1025px) {
  .site-header.is-compact .nav-list {
    display: none;
  }

  .site-header.is-compact .nav-toggle {
    display: inline-flex;
  }

  .site-header.is-compact .nav-current {
    display: inline-flex;
    margin-left: auto;
  }

  .site-header.is-compact .nav-cta {
    display: none;
  }

  .site-header.is-compact .site-nav {
    padding: 0;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header.is-compact .site-nav[data-open] {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    display: flex;
    padding: 10px;
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background: rgba(26, 26, 26, 0.96);
    box-shadow: 0 18px 40px rgba(14, 14, 14, 0.24);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .site-header.is-compact .site-nav[data-open] .nav-list {
    display: flex;
  }

  .site-header.is-compact .site-nav[data-open] .nav-cta {
    display: inline-flex;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-h: 72px;
  }

  .header-inner {
    width: min(calc(100% - 32px), var(--maxw));
    min-height: 64px;
    gap: 10px;
    padding: 8px 0;
  }

  .brand-lockup {
    gap: 8px;
  }

  .brand-mark {
    width: 28px;
    height: 36px;
  }

  .brand-name {
    writing-mode: horizontal-tb;
    font-size: 16px;
    letter-spacing: 0.04em;
  }

  .brand-domain {
    display: none;
  }

  .nav-current {
    display: inline-flex;
    margin-left: auto;
  }

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

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 60;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    max-height: calc(100vh - 96px);
    margin: 0;
    padding: 12px;
    overflow: auto;
    border-radius: 20px;
    background: rgba(26, 26, 26, 0.97);
    box-shadow: 0 18px 40px rgba(14, 14, 14, 0.24);
  }

  .site-nav[data-open] {
    display: flex;
  }

  .nav-list {
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .nav-list li {
    flex: 0 0 auto;
  }

  .nav-list a {
    min-height: 38px;
    scroll-snap-align: start;
  }

  .nav-cta {
    width: 100%;
    min-height: 42px;
  }

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

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

  .rail {
    position: static;
    top: auto;
  }

  .rail .anchor-nav {
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    padding-top: 12px;
    padding-left: 0;
    border-top: 2px solid rgba(26, 26, 26, 0.12);
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .container,
  .page-grid {
    width: min(calc(100% - 32px), var(--maxw));
  }

  .header-inner {
    gap: 8px;
  }

  .nav-current {
    max-width: 108px;
    padding: 0 10px;
    font-size: 10px;
  }

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

  .page-grid {
    padding-block: 24px 56px;
  }

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

  .display-title {
    font-size: clamp(2.8rem, 12vw, 4.2rem);
  }

  .index-item {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .index-meta {
    grid-column: 2;
  }

  .stripe-item {
    flex-basis: min(180px, 80vw);
  }

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

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

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

  .footer-bottom {
    flex-direction: column;
  }
}

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

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

  .button:hover {
    transform: none;
  }

  .skip-link {
    transition: none;
  }
}
