/* /assets/site.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

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

button {
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

table {
  width: 100%;
  border-collapse: collapse;
}

[hidden] {
  display: none !important;
}

::selection {
  background: #ff6a13;
  color: #06101f;
}

:root {
  --deep: #0b1b33;
  --night: #06101f;
  --cream: #f4efe6;
  --stone: #2b333d;
  --clay: #c07a54;
  --moss: #6e8b5a;
  --orange: #ff6a13;
  --cyan: #35d6e0;
  --green: #3be08a;
  --charcoal: #12161b;
  --line-dark: rgba(244, 239, 230, 0.18);
  --line-light: rgba(18, 22, 27, 0.16);
  --rail-expanded: 248px;
  --rail-collapsed: 76px;
  --rail-current: var(--rail-expanded);
  --header-mobile: 68px;
  --container: 1240px;
  --font-sans: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

body {
  min-height: 100vh;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

@media (min-width: 960px) {
  body {
    padding-left: var(--rail-current);
    transition: padding-left 0.18s var(--ease);
  }

  body:has(.site-header[data-collapsed="true"]) {
    --rail-current: var(--rail-collapsed);
  }
}

@media (max-width: 959px) {
  body {
    padding-top: var(--header-mobile);
  }

  body:has(.site-header[data-open="true"]) {
    overflow: hidden;
  }
}

h1,
h2,
h3,
h4 {
  color: inherit;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

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

#main-content:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

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

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  transform: translateY(-160%);
  padding: 10px 14px;
  border: 2px solid var(--cream);
  background: var(--orange);
  color: var(--night);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.16s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-color: var(--cream);
}

.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: var(--rail-expanded);
  padding: 18px 14px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-right: 1px solid var(--line-dark);
  background:
    radial-gradient(circle at 80% 0%, rgba(53, 214, 224, 0.12), transparent 32%),
    linear-gradient(180deg, var(--deep), var(--night) 58%, var(--deep));
  color: var(--cream);
  transition: width 0.18s var(--ease), transform 0.18s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 239, 230, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 230, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 82%);
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 9px;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 9px,
    rgba(53, 214, 224, 0.35) 9px 10px,
    transparent 10px 20px
  );
}

.rail-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}

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

.brand-mark {
  position: relative;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(244, 239, 230, 0.55);
  background: linear-gradient(135deg, transparent 0 48%, rgba(255, 106, 19, 0.9) 49% 58%, transparent 59%);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
}

.brand-mark::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}

.brand-mark::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
}

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

.brand-name {
  font-size: 1.06rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-version {
  color: var(--cyan);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.rail-toggle {
  position: relative;
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  border: 1px solid var(--line-dark);
  color: var(--cream);
}

.rail-toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.rail-toggle__line,
.rail-toggle__line::before,
.rail-toggle__line::after {
  display: block;
  width: 14px;
  height: 1px;
  background: currentColor;
  content: "";
}

.rail-toggle__line {
  position: relative;
}

.rail-toggle__line::before {
  position: absolute;
  top: -4px;
  left: 0;
}

.rail-toggle__line::after {
  position: absolute;
  top: 4px;
  left: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-left: auto;
  padding: 0 10px;
  border: 1px solid var(--line-dark);
  background: rgba(6, 16, 31, 0.5);
  color: var(--cream);
}

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

.nav-toggle__box {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__box span {
  display: block;
  height: 2px;
  background: var(--orange);
  transition: transform 0.16s var(--ease), opacity 0.16s var(--ease);
}

.nav-toggle__text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.rail-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line-dark);
  color: rgba(244, 239, 230, 0.66);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.status-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(59, 224, 138, 0.12);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(59, 224, 138, 0.45);
  border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.8);
  }

  50% {
    opacity: 0.9;
    transform: scale(1);
  }
}

.rail-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.notes-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  color: rgba(244, 239, 230, 0.78);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
}

.notes-toggle:hover {
  background: rgba(53, 214, 224, 0.06);
  color: var(--cream);
}

.notes-toggle__icon {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  transition: transform 0.16s var(--ease);
}

.notes-toggle[aria-expanded="true"] .notes-toggle__icon {
  transform: rotate(45deg);
}

.section-notes {
  position: absolute;
  top: 52px;
  right: 0;
  left: 0;
  z-index: 10;
  max-height: min(60vh, 440px);
  overflow-y: auto;
  padding: 14px;
  border: 1px solid var(--line-dark);
  background: var(--night);
  box-shadow: 0 18px 36px rgba(6, 16, 31, 0.38);
}

.section-notes__title {
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.section-notes__list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-notes__list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 2px 8px;
  font-size: 12px;
  line-height: 1.5;
}

.section-notes__list .mono {
  grid-row: span 2;
  color: var(--orange);
  font-size: 10px;
}

.section-notes__list strong {
  color: var(--cream);
  font-size: 12px;
}

.section-notes__desc {
  grid-column: 2;
  color: rgba(244, 239, 230, 0.6);
}

.site-nav {
  position: relative;
  margin-top: 14px;
}

.nav-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 10px;
  gap: 6px;
  align-items: center;
  min-height: 46px;
  padding: 10px 8px 10px 10px;
  border-left: 2px solid transparent;
  color: rgba(244, 239, 230, 0.68);
  text-decoration: none;
  transition: color 0.16s var(--ease), background 0.16s var(--ease), border-color 0.16s var(--ease);
}

.nav-link::before {
  content: "";
  position: absolute;
  inset: 4px 0;
  background: linear-gradient(90deg, rgba(53, 214, 224, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.16s var(--ease);
}

.nav-link:hover {
  background: rgba(244, 239, 230, 0.05);
  color: var(--cream);
}

.nav-link:hover::before {
  opacity: 1;
}

.nav-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.nav-link[aria-current="page"] {
  border-left-color: var(--orange);
  background: rgba(255, 106, 19, 0.08);
  color: var(--cream);
}

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

.nav-index {
  position: relative;
  z-index: 1;
  color: rgba(244, 239, 230, 0.42);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.nav-label {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-tick {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 2px;
  background: rgba(244, 239, 230, 0.22);
  transition: width 0.16s var(--ease), background 0.16s var(--ease);
}

.nav-link:hover .nav-tick {
  width: 14px;
  background: var(--cyan);
}

.nav-link[aria-current="page"] .nav-tick {
  width: 16px;
  background: var(--orange);
}

.rail-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-dark);
  color: rgba(244, 239, 230, 0.42);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.nav-scrim {
  display: none;
}

.scroll-progress {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 200;
  height: 3px;
  pointer-events: none;
  background: rgba(244, 239, 230, 0.12);
}

.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--green) 55%, var(--orange));
  transition: transform 0.08s linear;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 190;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--orange);
  background: var(--deep);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  box-shadow: 0 8px 24px rgba(6, 16, 31, 0.25);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), visibility 0.16s;
}

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--orange);
  color: var(--night);
}

@media (min-width: 960px) {
  .site-header[data-collapsed="true"] {
    width: var(--rail-collapsed);
    padding-right: 10px;
    padding-left: 10px;
  }

  .site-header[data-collapsed="true"] .rail-top {
    flex-direction: column;
    gap: 10px;
  }

  .site-header[data-collapsed="true"] .brand {
    justify-content: center;
  }

  .site-header[data-collapsed="true"] .brand-copy,
  .site-header[data-collapsed="true"] .rail-meta span:not(.status-dot),
  .site-header[data-collapsed="true"] .notes-toggle__label,
  .site-header[data-collapsed="true"] .rail-foot {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .site-header[data-collapsed="true"] .rail-toggle {
    margin-left: 0;
  }

  .site-header[data-collapsed="true"] .rail-meta {
    justify-content: center;
    padding: 10px 6px;
  }

  .site-header[data-collapsed="true"] .notes-toggle {
    justify-content: center;
  }

  .site-header[data-collapsed="true"] .nav-link {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 12px 4px;
  }

  .site-header[data-collapsed="true"] .nav-label,
  .site-header[data-collapsed="true"] .nav-tick {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .site-header[data-collapsed="true"] .nav-index {
    font-size: 11px;
  }

  .site-header[data-collapsed="true"] .section-notes {
    right: auto;
    left: calc(100% + 8px);
    width: 280px;
  }
}

@media (max-width: 959px) {
  .site-header {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: var(--header-mobile);
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .site-header::after {
    top: 0;
    right: 0;
    bottom: 0;
    width: 9px;
    height: auto;
  }

  .rail-top {
    flex: 1;
    gap: 10px;
    min-height: 0;
  }

  .brand-mark {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .brand-version {
    font-size: 9px;
  }

  .rail-toggle {
    display: none;
  }

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

  .rail-meta {
    display: none;
  }

  .rail-body {
    position: fixed;
    top: var(--header-mobile);
    bottom: 0;
    left: 0;
    z-index: 2;
    width: min(86vw, 340px);
    padding: 16px 16px 24px;
    overflow-y: auto;
    border-right: 1px solid var(--line-dark);
    background: linear-gradient(180deg, var(--deep), var(--night));
    box-shadow: 20px 0 50px rgba(6, 16, 31, 0.35);
    visibility: hidden;
    transform: translateX(-102%);
    transition: transform 0.2s var(--ease), visibility 0.2s var(--ease);
  }

  .site-header[data-open="true"] .rail-body {
    visibility: visible;
    transform: translateX(0);
  }

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

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

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

  .site-nav {
    margin-top: 12px;
  }

  .nav-link {
    grid-template-columns: 30px minmax(0, 1fr) 14px;
    min-height: 52px;
    padding: 12px 10px;
  }

  .nav-label {
    font-size: 16px;
  }

  .section-notes {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    max-height: none;
    margin-top: 8px;
  }

  .rail-foot {
    display: block;
    margin-top: 24px;
  }

  .nav-scrim {
    position: fixed;
    inset: var(--header-mobile) 0 0;
    z-index: 1;
    display: none;
    background: rgba(6, 16, 31, 0.62);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

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

  .to-top {
    right: 14px;
    bottom: 14px;
  }
}

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

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }
}

.page-main {
  display: block;
  min-height: 60vh;
}

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

.section--cream {
  background: var(--cream);
  color: var(--charcoal);
}

.section--deep {
  background: var(--deep);
  color: var(--cream);
}

.section--night {
  background: var(--night);
  color: var(--cream);
}

.section--band {
  background: var(--stone);
  color: var(--cream);
  padding-block: clamp(28px, 4vw, 44px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.section-head__aside {
  max-width: 34ch;
  color: rgba(18, 22, 27, 0.66);
  font-size: 14px;
}

.section--deep .section-head__aside,
.section--night .section-head__aside,
.section--band .section-head__aside {
  color: rgba(244, 239, 230, 0.64);
}

.display-xl {
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.display-lg {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.display-md {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.08;
}

.section-title {
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.subsection-title {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
}

.lede {
  max-width: 44em;
  color: rgba(18, 22, 27, 0.74);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.8;
}

.section--deep .lede,
.section--night .lede,
.section--band .lede {
  color: rgba(244, 239, 230, 0.76);
}

.prose {
  max-width: 46em;
  font-size: 1rem;
  line-height: 1.8;
}

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

.prose h2 {
  margin-top: 1.8em;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
}

.prose h3 {
  margin-top: 1.5em;
}

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

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

.prose strong {
  font-weight: 800;
}

.prose a {
  color: var(--deep);
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 2px;
}

.section--deep .prose a,
.section--night .prose a,
.section--band .prose a {
  color: var(--cyan);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--clay);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--clay);
}

.section--deep .eyebrow,
.section--night .eyebrow,
.section--band .eyebrow {
  color: var(--cyan);
}

.section--deep .eyebrow::before,
.section--night .eyebrow::before,
.section--band .eyebrow::before {
  background: var(--cyan);
}

.annotation {
  color: var(--clay);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.annotation--vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.18em;
}

.grid {
  display: grid;
  gap: clamp(18px, 2.6vw, 32px);
}

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

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

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

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

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

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

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

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

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

.divider {
  height: 1px;
  margin-block: clamp(24px, 4vw, 40px);
  border: 0;
  background: var(--line-light);
}

.section--deep .divider,
.section--night .divider,
.section--band .divider {
  background: var(--line-dark);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(18, 22, 27, 0.56);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.section--deep .breadcrumb,
.section--night .breadcrumb,
.section--band .breadcrumb {
  color: rgba(244, 239, 230, 0.55);
}

.breadcrumb a {
  color: var(--deep);
  text-decoration: none;
}

.section--deep .breadcrumb a,
.section--night .breadcrumb a,
.section--band .breadcrumb a {
  color: var(--cyan);
}

.breadcrumb a:hover {
  color: var(--orange);
}

.breadcrumb__sep {
  color: var(--clay);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease), transform 0.16s var(--ease);
}

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

.btn--primary {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--night);
}

.btn--primary:hover {
  border-color: #ff833d;
  background: #ff833d;
}

.btn--ghost {
  border-color: rgba(244, 239, 230, 0.36);
  background: transparent;
  color: var(--cream);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn--quiet {
  border-color: rgba(18, 22, 27, 0.24);
  background: transparent;
  color: var(--deep);
}

.btn--quiet:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn--sm {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--stone);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.tag--orange {
  background: var(--orange);
  color: var(--night);
}

.tag--cyan {
  border: 1px solid rgba(53, 214, 224, 0.5);
  background: transparent;
  color: var(--cyan);
}

.tag--green {
  border: 1px solid rgba(59, 224, 138, 0.45);
  background: transparent;
  color: var(--green);
}

.tag--moss {
  background: var(--moss);
  color: var(--cream);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.status--muted {
  color: rgba(244, 239, 230, 0.55);
}

.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line-light);
  background: rgba(244, 239, 230, 0.7);
}

.panel--deep {
  border-color: var(--line-dark);
  background: rgba(6, 16, 31, 0.5);
  color: var(--cream);
}

.panel--organic {
  border-radius: 20px 4px 24px 6px;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel__body {
  min-width: 0;
}

.frame {
  position: relative;
  padding: clamp(22px, 3.6vw, 44px);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  background-image:
    linear-gradient(rgba(18, 22, 27, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 22, 27, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, rgba(192, 122, 84, 0.65) 0 1px, transparent 1px 16px);
}

.frame::before {
  top: -1px;
}

.frame::after {
  bottom: -1px;
}

.frame--deep {
  border-color: var(--line-dark);
  background-image:
    linear-gradient(rgba(244, 239, 230, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 230, 0.045) 1px, transparent 1px);
  color: var(--cream);
}

.frame--deep::before,
.frame--deep::after {
  background: repeating-linear-gradient(90deg, rgba(53, 214, 224, 0.65) 0 1px, transparent 1px 16px);
}

.frame__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--orange);
  border-style: solid;
  pointer-events: none;
}

.frame__corner--tl {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.frame__corner--tr {
  top: -1px;
  right: -1px;
  border-width: 2px 2px 0 0;
}

.frame__corner--bl {
  bottom: -1px;
  left: -1px;
  border-width: 0 0 2px 2px;
}

.frame__corner--br {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

.index-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-light);
  list-style: none;
}

.index-list__item {
  border-bottom: 1px solid var(--line-light);
}

.index-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 4px;
  color: var(--charcoal);
  text-decoration: none;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.index-link:hover {
  background: rgba(255, 106, 19, 0.06);
  color: var(--deep);
}

.index-num {
  color: var(--clay);
  font-family: var(--font-mono);
  font-size: 11px;
}

.index-title {
  font-size: 1.02rem;
  font-weight: 800;
}

.index-desc {
  color: rgba(18, 22, 27, 0.64);
  font-size: 14px;
}

.index-arrow {
  color: var(--orange);
  font-family: var(--font-mono);
}

.section--deep .index-list,
.section--deep .index-list__item,
.section--night .index-list,
.section--night .index-list__item {
  border-color: var(--line-dark);
}

.section--deep .index-link,
.section--night .index-link {
  color: var(--cream);
}

.section--deep .index-desc,
.section--night .index-desc {
  color: rgba(244, 239, 230, 0.62);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  font-size: 14px;
}

.data-table th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-light);
  color: var(--clay);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line-light);
  vertical-align: top;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(43, 51, 61, 0.05);
}

.data-table--deep th,
.data-table--deep td {
  border-color: var(--line-dark);
}

.data-table--deep th {
  color: var(--cyan);
}

.data-table--deep tbody tr:nth-child(even) {
  background: rgba(244, 239, 230, 0.04);
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-light);
  background: linear-gradient(135deg, var(--stone), var(--deep));
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(53, 214, 224, 0.18), transparent 45%, rgba(255, 106, 19, 0.18));
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 1;
  border: 1px solid rgba(244, 239, 230, 0.18);
  pointer-events: none;
}

.media-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.05);
}

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

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

.media-frame__caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 8px;
  background: rgba(6, 16, 31, 0.72);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.theme-band {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.theme-band__label {
  color: var(--clay);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.theme-band__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid rgba(18, 22, 27, 0.18);
  background: transparent;
  color: var(--charcoal);
  font-size: 12px;
  text-decoration: none;
}

.theme-band__item:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.theme-band__item[aria-current="true"] {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--night);
}

.section--deep .theme-band,
.section--night .theme-band {
  border-color: var(--line-dark);
}

.section--deep .theme-band__item,
.section--night .theme-band__item {
  border-color: var(--line-dark);
  color: var(--cream);
}

.slant {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%);
}

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

  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8 {
    grid-column: span 6;
  }

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

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

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

  .index-link {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
  }
}

.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  overflow: hidden;
  padding: clamp(40px, 6vw, 72px) 0 24px;
  background: linear-gradient(180deg, var(--deep), var(--night));
  color: var(--cream);
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 10px 0 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 239, 230, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 230, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
}

.footer-ruler {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 12px, transparent 12px 24px);
  opacity: 0.65;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 0.9fr 1.7fr;
  gap: clamp(24px, 4vw, 56px);
}

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

.footer-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--cream);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.footer-logo span {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.footer-logo:hover {
  color: var(--orange);
}

.footer-tagline {
  max-width: 26em;
  margin-top: 10px;
  color: rgba(244, 239, 230, 0.72);
  font-size: 14px;
}

.footer-version {
  margin-top: 14px;
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 0.1em;
}

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

.footer-heading {
  margin: 3px 0 14px;
  color: var(--clay);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

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

.footer-links a {
  color: rgba(244, 239, 230, 0.72);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

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

.footer-links a:focus-visible {
  outline-color: var(--cyan);
}

.footer-contact {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  list-style: none;
}

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

.footer-contact span:last-child {
  overflow-wrap: anywhere;
}

.footer-label {
  padding-top: 2px;
  color: rgba(244, 239, 230, 0.46);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  color: rgba(244, 239, 230, 0.55);
  font-size: 12px;
}

.footer-bottom p {
  max-width: none;
}

.footer-note {
  color: rgba(244, 239, 230, 0.45);
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .footer-col--contact {
    grid-column: span 2;
  }
}

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

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

  .footer-col--contact {
    grid-column: 1 / -1;
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .status-dot::after {
    animation: none;
  }
}
