:root {
  --ink: #0B0E13;
  --peacock: #0E3B4A;
  --peacock-high: #1F6F78;
  --garnet: #C63A4A;
  --amber: #D9A441;
  --tourmaline: #2FA37C;
  --paper: #F4EFE6;
  --mist: #A8B3B8;
  --card: #16232B;
  --glint: #F2C76E;
  --line: rgba(168, 179, 184, 0.18);
  --line-strong: rgba(31, 111, 120, 0.48);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --cut: 10px;
  --max: 1440px;
  --gutter: clamp(18px, 4vw, 56px);
  --font-display: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", "Courier New", monospace;
}

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

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

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 12% -8%, rgba(31, 111, 120, 0.26), transparent 36rem),
    linear-gradient(90deg, rgba(244, 239, 230, 0.025) 1px, transparent 1px) 0 0 / 88px 100%,
    var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

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

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

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

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

[hidden] {
  display: none !important;
}

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

:focus-visible {
  outline: 2px solid var(--glint);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 9px 14px;
  background: var(--glint);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 19, 0.97);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 rgba(242, 199, 110, 0.08), 0 18px 50px rgba(0, 0, 0, 0.28);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 0 67.8%, rgba(31, 111, 120, 0.12) 68%, transparent 68.2%);
}

.header-frame {
  position: relative;
  width: min(var(--max), calc(100% - var(--gutter) - var(--gutter)));
  margin-inline: auto;
  border-inline: 1px solid rgba(31, 111, 120, 0.28);
}

.masthead {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 78px;
  padding: 12px 20px;
}

.masthead__brand {
  flex: 1 1 auto;
  min-width: 0;
}

.masthead__meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}

.brand__mark {
  display: inline-block;
  flex: 0 0 26px;
  width: 26px;
  height: 30px;
  background: conic-gradient(from 210deg, var(--garnet), var(--glint), var(--tourmaline), var(--peacock-high), var(--garnet));
  clip-path: polygon(50% 0, 100% 34%, 82% 100%, 18% 100%, 0 34%);
  box-shadow: 0 0 18px rgba(242, 199, 110, 0.2);
}

.brand__mark::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 48%, rgba(11, 14, 19, 0.78) 49% 51%, transparent 52%);
}

.brand__text {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}

.brand__note {
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.version-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid rgba(217, 164, 65, 0.48);
  background: rgba(217, 164, 65, 0.08);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.version-tag__key {
  color: var(--mist);
}

.version-tag__val {
  color: var(--amber);
  font-weight: 700;
}

.catalogue-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(31, 111, 120, 0.72);
  background: linear-gradient(135deg, rgba(31, 111, 120, 0.2), rgba(14, 59, 74, 0.36));
  color: var(--paper);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.catalogue-trigger:hover,
.catalogue-trigger[aria-expanded="true"] {
  border-color: var(--amber);
  background: rgba(217, 164, 65, 0.16);
  color: var(--glint);
}

.catalogue-trigger__icon {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1px solid var(--amber);
  transform: rotate(45deg);
}

.catalogue-trigger__icon::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--amber);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid rgba(217, 164, 65, 0.44);
  background: rgba(22, 35, 43, 0.65);
  color: var(--paper);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.nav-toggle__lines {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 12px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}

.nav-toggle__lines::before,
.nav-toggle__lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: top 160ms ease, bottom 160ms ease, transform 160ms ease;
}

.nav-toggle__lines::before {
  top: 1px;
}

.nav-toggle__lines::after {
  bottom: 1px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__lines {
  background-size: 0 1px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__lines::before {
  top: 5px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__lines::after {
  bottom: 6px;
  transform: rotate(-45deg);
}

.primary-nav {
  background: linear-gradient(90deg, rgba(14, 59, 74, 0.98), rgba(14, 59, 74, 0.9));
  border-top: 1px solid rgba(31, 111, 120, 0.42);
}

.primary-nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 58px;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.primary-nav__kicker {
  flex: 0 0 auto;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

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

.nav-item {
  flex: 0 0 auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid transparent;
  color: rgba(244, 239, 230, 0.86);
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav-link::before {
  content: attr(data-index);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.72;
}

.nav-link:hover {
  border-color: rgba(31, 111, 120, 0.6);
  background: rgba(244, 239, 230, 0.06);
  color: var(--paper);
}

.nav-link[aria-current="page"] {
  border-color: transparent;
  background: linear-gradient(135deg, var(--amber), var(--glint));
  color: var(--ink);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  font-weight: 600;
}

.nav-link[aria-current="page"]::before {
  color: var(--ink);
  opacity: 0.68;
}

.nav-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--glint), 0 0 0 4px var(--ink);
}

.catalogue-panel {
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  left: 0;
  z-index: 110;
  max-height: min(72vh, 640px);
  overflow: auto;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(22, 35, 43, 0.99), rgba(14, 59, 74, 0.98)),
    var(--card);
  box-shadow: var(--shadow);
}

.catalogue-panel__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: clamp(18px, 3vw, 30px);
}

.catalogue-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.catalogue-panel__eyebrow {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.catalogue-panel__title {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.catalogue-panel__close {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid rgba(244, 239, 230, 0.22);
  background: transparent;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
}

.catalogue-panel__close:hover {
  border-color: var(--garnet);
  color: var(--paper);
}

.catalogue-panel__search {
  display: grid;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.catalogue-panel__label {
  color: var(--mist);
  font-size: 12px;
}

.catalogue-panel__input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(31, 111, 120, 0.62);
  background: rgba(11, 14, 19, 0.62);
  color: var(--paper);
  font-size: 15px;
  line-height: 1.4;
}

.catalogue-panel__input::placeholder {
  color: rgba(168, 179, 184, 0.74);
}

.catalogue-panel__input:focus-visible {
  border-color: var(--glint);
  outline: none;
  box-shadow: 0 0 0 2px rgba(242, 199, 110, 0.22);
}

.catalogue-panel__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}

.catalogue-panel__item {
  min-width: 0;
}

.catalogue-panel__link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(31, 111, 120, 0.34);
  background: rgba(11, 14, 19, 0.26);
  color: var(--paper);
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.catalogue-panel__link:hover {
  border-color: rgba(217, 164, 65, 0.68);
  background: rgba(217, 164, 65, 0.08);
  color: var(--glint);
}

.catalogue-panel__index {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.catalogue-panel__empty {
  padding: 12px;
  border: 1px solid rgba(198, 58, 74, 0.45);
  color: var(--paper);
  font-size: 13px;
}

.catalogue-panel__hint {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: 12px;
}

/* Footer */
.site-footer {
  position: relative;
  margin-top: 0;
  border-top: 1px solid rgba(31, 111, 120, 0.55);
  background: linear-gradient(180deg, var(--peacock), var(--ink) 58%);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--garnet) 0 18%, var(--amber) 18% 34%, var(--tourmaline) 34% 52%, var(--peacock-high) 52% 100%);
}

.footer-frame {
  width: min(var(--max), calc(100% - var(--gutter) - var(--gutter)));
  margin-inline: auto;
  padding: clamp(38px, 5vw, 68px) 20px 20px;
  border-inline: 1px solid rgba(31, 111, 120, 0.28);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 0.7fr)) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
}

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

.footer-mark {
  width: 36px;
  height: 40px;
  margin-bottom: 14px;
  background: conic-gradient(from 210deg, var(--garnet), var(--glint), var(--tourmaline), var(--peacock-high), var(--garnet));
  clip-path: polygon(50% 0, 100% 34%, 82% 100%, 18% 100%, 0 34%);
  box-shadow: 0 0 22px rgba(242, 199, 110, 0.2);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.footer-brand__line {
  max-width: 22ch;
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.5;
}

.footer-brand__note {
  max-width: 36ch;
  margin-top: 10px;
  color: var(--mist);
  font-size: 13px;
  line-height: 1.8;
}

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

.footer-col__title {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(31, 111, 120, 0.42);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.footer-links {
  display: grid;
  gap: 7px;
}

.footer-links a {
  display: inline-flex;
  width: fit-content;
  border-bottom: 1px solid transparent;
  color: rgba(244, 239, 230, 0.82);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
}

.footer-links a:hover {
  border-bottom-color: rgba(242, 199, 110, 0.55);
  color: var(--glint);
}

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

.footer-contact__row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.footer-contact__label {
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.footer-contact__value {
  color: var(--paper);
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
}

.footer-contact__note {
  padding-top: 4px;
  color: var(--mist);
  font-size: 12px;
  line-height: 1.7;
}

.footer-contact__route {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(217, 164, 65, 0.5);
  color: var(--amber);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  font-size: 12px;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.footer-contact__route:hover {
  border-color: var(--glint);
  background: rgba(217, 164, 65, 0.13);
  color: var(--glint);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.footer-bottom__legal {
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.footer-bottom__meta {
  color: var(--mist);
  font-size: 12px;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tourmaline);
  box-shadow: 0 0 0 3px rgba(47, 163, 124, 0.15);
}

/* Shared content primitives */
.content-shell {
  width: min(var(--max), calc(100% - var(--gutter) - var(--gutter)));
  margin-inline: auto;
  padding-block: clamp(28px, 5vw, 64px);
}

.section-block {
  padding-block: clamp(32px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

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

.section-heading__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

.display-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 112px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.96;
  text-wrap: balance;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.lede {
  max-width: 68ch;
  color: var(--mist);
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.8;
}

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

.layout-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
}

.layout-grid__aside {
  grid-column: span 3;
  min-width: 0;
}

.layout-grid__main {
  grid-column: span 8;
  min-width: 0;
}

.layout-grid__note {
  grid-column: span 1;
  min-width: 0;
}

.surface-card {
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, rgba(22, 35, 43, 0.96), rgba(14, 59, 74, 0.55));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid rgba(217, 164, 65, 0.55);
  background: transparent;
  color: var(--paper);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover {
  border-color: var(--glint);
  color: var(--glint);
  transform: translateY(-1px);
}

.button--solid {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--ink);
}

.button--solid:hover {
  border-color: var(--glint);
  background: var(--glint);
  color: var(--ink);
}

.button--ghost {
  border-color: rgba(31, 111, 120, 0.72);
  background: rgba(31, 111, 120, 0.12);
  color: var(--paper);
}

.button--ghost:hover {
  border-color: var(--peacock-high);
  background: rgba(31, 111, 120, 0.22);
  color: var(--glint);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid rgba(168, 179, 184, 0.35);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.tag--amber {
  border-color: rgba(217, 164, 65, 0.55);
  background: rgba(217, 164, 65, 0.1);
  color: var(--amber);
}

.tag--garnet {
  border-color: rgba(198, 58, 74, 0.55);
  background: rgba(198, 58, 74, 0.1);
  color: #ee8994;
}

.tag--green {
  border-color: rgba(47, 163, 124, 0.55);
  background: rgba(47, 163, 124, 0.1);
  color: #76d4b4;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tourmaline);
  box-shadow: 0 0 0 3px rgba(47, 163, 124, 0.15);
}

.breadcrumbs {
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

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

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

.breadcrumb-separator {
  color: rgba(217, 164, 65, 0.65);
}

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

.filter-button {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid rgba(31, 111, 120, 0.55);
  background: transparent;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.filter-button:hover {
  border-color: var(--peacock-high);
  color: var(--paper);
}

.filter-button[aria-pressed="true"] {
  border-color: var(--tourmaline);
  background: var(--tourmaline);
  color: var(--ink);
  font-weight: 600;
}

.filter-count {
  margin-left: auto;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(31, 111, 120, 0.48);
  background:
    linear-gradient(135deg, rgba(14, 59, 74, 0.92), rgba(16, 24, 31, 0.86)),
    repeating-linear-gradient(115deg, transparent 0 12px, rgba(242, 199, 110, 0.1) 12px 13px);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

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

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

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

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

.media-frame__placeholder {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 24px;
  color: rgba(244, 239, 230, 0.62);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: center;
}

.media-frame__caption {
  margin-top: 8px;
  color: var(--mist);
  font-size: 12px;
  line-height: 1.6;
}

.is-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

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

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

@media (max-width: 980px) {
  .header-frame {
    width: calc(100% - 24px);
  }

  .masthead {
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 10px 14px;
  }

  .masthead__brand {
    flex: 1 1 calc(100% - 110px);
  }

  .masthead__meta {
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
    margin-left: auto;
  }

  .primary-nav {
    display: none;
  }

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

  .primary-nav__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px 18px;
    overflow: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-left: 0;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(168, 179, 184, 0.12);
  }

  .nav-link[aria-current="page"] {
    border-bottom-color: transparent;
    clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  }

  .catalogue-panel {
    position: absolute;
    max-height: 70vh;
  }

  .layout-grid__aside,
  .layout-grid__main,
  .layout-grid__note {
    grid-column: span 12;
  }
}

@media (max-width: 720px) {
  .footer-frame {
    width: calc(100% - 28px);
    padding-inline: 14px;
  }

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

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

  .footer-bottom {
    justify-content: flex-start;
  }

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

  .catalogue-panel__head {
    align-items: flex-start;
  }

  .section-heading {
    display: block;
  }

  .filter-count {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .brand__note {
    display: none;
  }

  .version-tag__key {
    display: none;
  }

  .masthead__meta {
    gap: 8px;
  }

  .catalogue-trigger {
    padding-inline: 10px;
  }

  .catalogue-panel__inner {
    padding: 16px;
  }

  .footer-contact__row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .footer-brand__line {
    max-width: none;
  }
}

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

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

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