/* ==========================================================================
   澳门电子娱乐 · 共享样式 /assets/site.css
   框架：左侧竖排索引 + 顶部阅读进度 + 右上玻璃设置锚点
   ========================================================================== */

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

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

html[data-font="sm"] { font-size: 14.5px; }
html[data-font="md"] { font-size: 16px; }
html[data-font="lg"] { font-size: 18.5px; }

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

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }

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

::selection {
  background: var(--neon-cyan);
  color: #04202b;
}

/* ---------- tokens ---------- */
:root {
  --ink-night: #061A2E;
  --archive-blue: #0B2740;
  --neon-cyan: #2FE3D0;
  --cyan-mist: #A8F5EC;
  --index-cream: #F3E9D6;
  --ink-brown: #1A1512;
  --warm-gold: #E8B64C;
  --coral: #FF6B5A;
  --mist-slate: #7C93A8;
  --glass: rgba(10, 36, 58, 0.55);

  --line-cyan: rgba(47, 227, 208, 0.28);
  --line-cream: rgba(26, 21, 18, 0.16);
  --line-slate: rgba(124, 147, 168, 0.22);

  --text-main: #DCE8F1;
  --text-dim: #9DB2C4;

  --frame-w: 108px;
  --radius: 6px;

  --font-display: "Saira Condensed", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-contrast="high"] {
  --mist-slate: #C3D5E2;
  --cyan-mist: #D6FFFA;
  --text-dim: #C6D7E4;
  --line-cyan: rgba(47, 227, 208, 0.6);
  --line-slate: rgba(195, 213, 226, 0.4);
}

/* ---------- base ---------- */
body {
  position: relative;
  min-height: 100vh;
  background-color: var(--ink-night);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(47, 227, 208, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 227, 208, 0.045) 1px, transparent 1px),
    radial-gradient(120% 80% at 78% -10%, rgba(47, 227, 208, 0.10), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(255, 107, 90, 0.07), transparent 62%);
  background-size: 64px 64px, 64px 64px, 100% 100%, 100% 100%;
  opacity: 0.85;
}

main,
.site-footer { position: relative; z-index: 1; }

/* ---------- utilities ---------- */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 56px);
}

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

.mono {
  font-family: var(--font-mono);
  font-size: 0.78em;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--warm-gold);
}

/* ---------- header frame ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--neon-cyan);
  color: #04202b;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  border-radius: 4px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 2px;
}

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 90;
  pointer-events: none;
  background: rgba(47, 227, 208, 0.12);
}

.read-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan) 0%, var(--cyan-mist) 60%, var(--warm-gold) 100%);
  box-shadow: 0 0 14px rgba(47, 227, 208, 0.65);
  transition: width 0.08s linear;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px 10px;
  padding: 10px clamp(12px, 3vw, 20px);
  background: var(--archive-blue);
  border-bottom: 1px solid var(--line-cyan);
  box-shadow: 0 12px 28px rgba(2, 10, 18, 0.45);
}

.header-brand {
  min-width: 0;
  overflow: hidden;
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-mark__zh {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--index-cream);
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}

.brand-mark:hover .brand-mark__zh { color: var(--neon-cyan); }

.brand-mark__line {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--mist-slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* mobile menu button */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line-cyan);
  border-radius: 4px;
  background: rgba(47, 227, 208, 0.06);
  color: var(--cyan-mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-toggle:hover { background: rgba(47, 227, 208, 0.14); }

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 15px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-toggle__text { line-height: 1; }

/* settings anchor */
.settings {
  position: relative;
  z-index: 80;
}

.settings__toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 107, 90, 0.55);
  border-radius: 4px;
  background: var(--glass);
  color: #FFD9D3;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.settings__toggle:hover { border-color: var(--coral); }

.settings__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 8px var(--coral);
  animation: settingsBreathe 6s ease-in-out infinite;
}

@keyframes settingsBreathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.settings__text { line-height: 1; }

.settings__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 232px;
  max-width: calc(100vw - 28px);
  padding: 14px;
  background: var(--glass);
  border: 1px solid rgba(255, 107, 90, 0.42);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
  z-index: 80;
}

.settings__panel[hidden] { display: none; }

.settings__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--warm-gold);
  margin-bottom: 7px;
}

.settings__label:not(:first-child) { margin-top: 14px; }

.settings__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 5px 10px;
  border: 1px solid rgba(168, 245, 236, 0.26);
  border-radius: 3px;
  background: rgba(11, 39, 64, 0.65);
  color: var(--cyan-mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.chip:hover { border-color: var(--neon-cyan); }

.chip[aria-pressed="true"] {
  background: var(--coral);
  border-color: var(--coral);
  color: #26100C;
  font-weight: 700;
}

/* navigation */
.site-nav {
  grid-column: 1 / -1;
  display: none;
  padding-top: 6px;
  border-top: 1px solid var(--line-cyan);
}

.site-nav[data-open] {
  display: block;
  animation: navDrop 0.24s var(--ease);
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.site-nav__item { display: block; }

.site-nav__link {
  position: relative;
  display: block;
  padding: 12px 12px 12px 14px;
  border-bottom: 1px solid var(--line-slate);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--text-main);
  transition: color 0.18s var(--ease), background 0.18s var(--ease), padding-left 0.18s var(--ease);
}

.site-nav__link:hover {
  color: var(--neon-cyan);
  background: rgba(47, 227, 208, 0.07);
  padding-left: 18px;
}

.site-nav__link[aria-current="page"] {
  color: var(--neon-cyan);
  background: rgba(47, 227, 208, 0.10);
}

.site-nav__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: var(--neon-cyan);
}

.site-nav__note {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--mist-slate);
}

/* ---------- desktop frame ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--frame-w); }

  .read-progress { left: var(--frame-w); }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--frame-w);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 30px 6px 26px;
    background:
      linear-gradient(180deg, rgba(47, 227, 208, 0.10) 0%, rgba(47, 227, 208, 0) 26%),
      var(--archive-blue);
    border-bottom: 0;
    border-right: 1px solid var(--line-cyan);
    box-shadow: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(47, 227, 208, 0.35) transparent;
  }

  .site-header::-webkit-scrollbar { width: 4px; }
  .site-header::-webkit-scrollbar-thumb {
    background: rgba(47, 227, 208, 0.35);
    border-radius: 4px;
  }

  .header-brand {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: visible;
  }

  .brand-mark {
    align-items: center;
    gap: 10px;
  }

  .brand-mark__zh {
    writing-mode: vertical-rl;
    font-size: 15px;
    letter-spacing: 0.2em;
    line-height: 1.15;
    white-space: normal;
  }

  .brand-mark__line { display: none; }

  .nav-toggle { display: none; }

  .settings {
    position: fixed;
    top: 20px;
    right: 22px;
    z-index: 80;
  }

  .settings__panel {
    right: 0;
  }

  .site-nav {
    grid-column: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-top: 0;
    border-top: 0;
    margin-top: 4px;
  }

  .site-nav__list {
    align-items: center;
    gap: 4px;
  }

  .site-nav__link {
    writing-mode: vertical-rl;
    padding: 9px 7px;
    border-bottom: 0;
    border-radius: 4px;
    font-size: 13px;
    letter-spacing: 0.2em;
    line-height: 1.2;
    color: var(--text-dim);
  }

  .site-nav__link:hover {
    padding-left: 7px;
    color: var(--neon-cyan);
    background: rgba(47, 227, 208, 0.09);
  }

  .site-nav__link[aria-current="page"] {
    color: var(--neon-cyan);
    background: rgba(47, 227, 208, 0.12);
    box-shadow: inset 0 0 0 1px rgba(47, 227, 208, 0.35);
  }

  .site-nav__link[aria-current="page"]::before {
    left: 2px;
    top: 2px;
    bottom: 2px;
    width: 2px;
  }

  .site-nav__note {
    writing-mode: vertical-rl;
    margin-top: 18px;
    font-size: 9px;
    letter-spacing: 0.3em;
    opacity: 0.75;
  }
}

@media (min-width: 1024px) and (max-height: 780px) {
  .site-header { gap: 14px; padding-top: 20px; padding-bottom: 16px; }
  .site-nav__list { gap: 0; }
  .site-nav__link { font-size: 12px; padding: 7px 6px; }
  .brand-mark__zh { font-size: 13.5px; }
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  background: linear-gradient(180deg, #04121F 0%, #051524 45%, #061A2E 100%);
  border-top: 1px solid var(--neon-cyan);
  color: #C9D8E4;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding: clamp(36px, 6vw, 60px) clamp(16px, 4vw, 56px) 32px;
}

.site-footer__brand { min-width: 0; }

.site-footer__name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--index-cream);
  margin-bottom: 8px;
}

.site-footer__line {
  font-size: 13.5px;
  color: var(--text-dim);
  max-width: 22em;
}

.site-footer__stamp {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--mist-slate);
}

.site-footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--warm-gold);
}

.footer-col__title::before {
  content: "";
  display: block;
  width: 14px;
  height: 1px;
  background: var(--neon-cyan);
  flex: none;
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-link {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: #C9D8E4;
  padding-bottom: 2px;
  transition: color 0.18s var(--ease);
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--neon-cyan);
  transition: width 0.2s var(--ease);
}

.footer-link:hover { color: var(--neon-cyan); }
.footer-link:hover::after { width: 100%; }

.site-footer__contact { min-width: 0; }

.contact-list {
  display: grid;
  gap: 11px;
}

.contact-list__item {
  display: grid;
  gap: 1px;
}

.contact-list__key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--mist-slate);
}

.contact-list__value {
  font-size: 13.5px;
  color: #DCE8F1;
  overflow-wrap: anywhere;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding: 18px clamp(16px, 4vw, 56px) 26px;
  border-top: 1px solid var(--line-slate);
}

.site-footer__copy,
.site-footer__icp {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist-slate);
}

@media (min-width: 560px) {
  .site-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__cols { grid-column: 1 / -1; order: 3; }
  .site-footer__contact { order: 2; }
}

@media (min-width: 1024px) {
  .site-footer__inner {
    grid-template-columns: 1.35fr 2fr 1.25fr;
    align-items: start;
    gap: 40px;
  }
  .site-footer__cols {
    grid-column: auto;
    order: 0;
  }
  .site-footer__contact { order: 0; }
}

/* ---------- shared content components ---------- */
.panel {
  background: var(--archive-blue);
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 30px);
  color: var(--text-main);
}

.panel--paper {
  background: var(--index-cream);
  border-color: var(--line-cream);
  color: var(--ink-brown);
  background-image: repeating-linear-gradient(0deg, rgba(26, 21, 18, 0.045) 0 1px, transparent 1px 26px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
  background: var(--archive-blue);
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--neon-cyan);
  box-shadow: 0 16px 32px rgba(2, 10, 18, 0.45);
}

.card__index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--warm-gold);
}

.card__tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  padding: 3px 8px;
  border: 1px solid rgba(47, 227, 208, 0.4);
  border-radius: 3px;
  color: var(--cyan-mist);
}

.card__title {
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.card__note {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-dim);
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  padding: 3px 9px;
  border: 1px solid var(--line-cyan);
  border-radius: 3px;
  color: var(--cyan-mist);
  background: rgba(47, 227, 208, 0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--neon-cyan);
  border-radius: 4px;
  background: var(--neon-cyan);
  color: #04202b;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.08s var(--ease);
}

.btn:hover { background: var(--cyan-mist); }
.btn:active { transform: scale(0.98); }

.btn--ghost {
  background: transparent;
  color: var(--cyan-mist);
  border-color: var(--line-cyan);
}

.btn--ghost:hover {
  background: rgba(47, 227, 208, 0.12);
  color: var(--neon-cyan);
}

.btn--coral {
  background: var(--coral);
  border-color: var(--coral);
  color: #26100C;
}

.btn--coral:hover { background: #FF8A7C; }

.btn--gold {
  background: var(--warm-gold);
  border-color: var(--warm-gold);
  color: #241A05;
}

.btn--gold:hover { background: #F2C96E; }

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

.breadcrumb__link {
  color: var(--cyan-mist);
  transition: color 0.18s var(--ease);
}

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

.breadcrumb__sep { color: rgba(124, 147, 168, 0.7); }

.breadcrumb__current { color: var(--warm-gold); }

.section-mark {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.section-mark__line {
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 10px;
  background: var(--neon-cyan);
  flex: none;
}

.section-mark__label {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--mist-slate);
}

.data-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--neon-cyan);
  padding-bottom: 14px;
  margin: 20px 0 28px;
  background: var(--line-slate);
}

.data-strip__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--archive-blue);
}

.data-strip__num {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--warm-gold);
  line-height: 1.1;
}

.data-strip__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--mist-slate);
}

/* reusable media container for page-stage imagery */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius);
  background:
    linear-gradient(140deg, rgba(47, 227, 208, 0.16) 0%, rgba(11, 39, 64, 0.92) 58%),
    var(--archive-blue);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(168, 245, 236, 0.075) 0 1px, transparent 1px 24px);
}

.media-frame > img,
.media-frame > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame--paper {
  background:
    repeating-linear-gradient(0deg, rgba(26, 21, 18, 0.05) 0 1px, transparent 1px 22px),
    var(--index-cream);
  border-color: var(--line-cream);
}

.media-frame--paper::after { display: none; }

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

.media-frame__caption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--cyan-mist);
  background: rgba(6, 26, 46, 0.72);
  padding: 3px 8px;
  border-radius: 3px;
}

/* reveal */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.38s var(--ease), transform 0.38s var(--ease);
}

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

/* reduced motion */
html[data-motion="reduced"] .settings__dot,
html[data-motion="reduced"] .js-reveal [data-reveal] {
  animation: none !important;
}

html[data-motion="reduced"] .js-reveal [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

html[data-motion="reduced"] .card:hover { transform: none; }

html[data-motion="reduced"] * {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

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

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

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

/* high contrast pass */
html[data-contrast="high"] body { color: #F2F8FC; }
html[data-contrast="high"] .site-nav__link { color: #D9E6F0; }
html[data-contrast="high"] .site-nav__link:hover,
html[data-contrast="high"] .site-nav__link[aria-current="page"] { color: var(--cyan-mist); }
html[data-contrast="high"] .card__note,
html[data-contrast="high"] .site-footer__line,
html[data-contrast="high"] .footer-link { color: #DCE9F2; }
