/* ============================================================
   CRAWL MEDIA — styles
   Design tokens live in :root. Change brand colors here only.
   ============================================================ */
:root {
  --paper: #f6f4ee;
  --paper-2: #edeae1;
  --panel: #fffdf9;
  --line: #d9d4c8;
  --line-strong: #b9b3a3;
  --ink: #15140f;
  --ink-2: #2c2a22;
  --muted: #5d594f;
  --faint: #8b877b;
  --accent: #b9480c;
  --accent-hot: #d4561a;
  --accent-deep: #8c3608;
  --accent-soft: #f4e0d0;
  --accent-line: #e6c4a8;
  --footer: #15140f;
  --footer-ink: #f0ede5;
  --footer-muted: #a19d91;
  --footer-line: #2b2921;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(21, 20, 15, .05), 0 10px 28px rgba(21, 20, 15, .06);
  --display: "Archivo", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1120px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; /* footer pins to the window bottom on short pages */
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wdth" 90;
  line-height: 1.02;
  letter-spacing: -.005em;
  text-transform: uppercase;
}
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.mono { font-family: var(--mono); }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 8px 12px; border-radius: var(--radius); text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius);
  font-weight: 600; font-size: 14.5px; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--panel); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-1px); }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 238, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; flex: none; position: relative;
  background: var(--ink); border-radius: 5px;
}
.brand-mark::before {
  content: ""; position: absolute; left: 7px; top: 8px;
  width: 10px; height: 4px; background: var(--accent-hot);
}
.brand-mark::after {
  content: ""; position: absolute; left: 7px; right: 7px; bottom: 8px;
  height: 4px; background: var(--paper);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--display); font-weight: 900;
  font-variation-settings: "wdth" 112;
  text-transform: uppercase; font-size: 20px; letter-spacing: .02em;
  color: var(--ink); white-space: nowrap;
}
.brand-name b { font-weight: inherit; color: var(--accent); }
.brand-sub {
  margin-top: 5px; font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: 14.5px;
  padding: 8px 12px; border-radius: var(--radius); color: var(--ink-2);
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent-deep); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav .btn { margin-left: 10px; padding: 9px 14px; color: var(--paper); }
.nav .btn:hover { background: var(--accent-deep); color: #fff; }

/* ---------- hero ---------- */
.hero { padding: 76px 0 60px; position: relative; overflow: hidden; }
.hero .wrap { position: relative; }
.corners { position: absolute; inset: -26px -30px; pointer-events: none; }
.corners span { position: absolute; width: 22px; height: 22px; border: 2px solid var(--line-strong); }
.corners span:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.corners span:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.corners span:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.corners span:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.eyebrow {
  display: inline-flex; align-items: flex-start; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow .dot {
  flex: none; margin-top: 6px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-hot); box-shadow: 0 0 0 3px var(--accent-soft);
}
.hero h1 {
  margin-top: 18px;
  font-size: clamp(56px, 8.6vw, 128px);
  font-weight: 900; font-variation-settings: "wdth" 112;
  line-height: .9; letter-spacing: -.01em;
}
.hero h1 span { color: var(--accent); }
.hero .tagline {
  margin-top: 16px;
  font-family: var(--display); font-weight: 600; font-variation-settings: "wdth" 84;
  font-size: clamp(19px, 2.5vw, 28px); letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted);
}
.lede {
  margin-top: 28px; max-width: 780px;
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; color: var(--ink-2);
}
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* lower-third callout (the sourcing line) */
.lower-third {
  display: inline-flex; align-items: stretch; max-width: 100%;
  margin-top: 28px;
  background: var(--panel); border: 1px solid var(--line); border-left: 0;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.lower-third .tag {
  display: flex; align-items: center; white-space: nowrap;
  background: var(--accent); color: #fff;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; padding: 12px 14px;
}
.lower-third .txt {
  display: flex; align-items: center; padding: 12px 20px;
  font-family: var(--display); font-weight: 600; font-variation-settings: "wdth" 92;
  font-size: 17px; letter-spacing: .005em; line-height: 1.3;
}

/* ---------- crawl ticker ---------- */
.crawl {
  display: flex; align-items: stretch; overflow: hidden;
  background: var(--ink); color: var(--paper);
  border-top: 3px solid var(--accent);
}
.crawl .label {
  flex: none; display: flex; align-items: center; position: relative; z-index: 2;
  background: var(--accent); color: #fff; padding: 0 18px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.crawl .viewport {
  flex: 1; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.crawl .track { display: flex; width: max-content; animation: crawl 60s linear infinite; will-change: transform; }
.crawl:hover .track { animation-play-state: paused; }
.crawl ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; height: 50px; }
.crawl li {
  display: flex; align-items: center; gap: 22px; padding: 0 22px; white-space: nowrap;
  font-family: var(--display); font-weight: 600; font-variation-settings: "wdth" 90;
  font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
}
.crawl li em {
  font-style: normal; font-family: var(--mono); font-weight: 400;
  font-size: 11.5px; letter-spacing: .08em; color: var(--footer-muted); text-transform: none;
}
.crawl li::after { content: ""; width: 6px; height: 6px; background: var(--accent-hot); transform: rotate(45deg); }
@keyframes crawl { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .crawl .track { animation: none; width: auto; }
  .crawl ul { flex-wrap: wrap; height: auto; padding: 8px 0; }
  .crawl ul[aria-hidden] { display: none; }
}

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section + .section { padding-top: 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px 48px; flex-wrap: wrap; margin-bottom: 28px;
}
.section h2 { font-size: clamp(28px, 3.6vw, 40px); }
.kicker {
  display: block; margin-bottom: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-deep);
}
.sub { color: var(--muted); max-width: 560px; }

/* fact tiles */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fact {
  background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius); padding: 22px 20px 18px; box-shadow: var(--shadow);
}
.fact .num {
  font-family: var(--display); font-weight: 900; font-variation-settings: "wdth" 100;
  font-size: 42px; line-height: 1; letter-spacing: -.01em;
}
.fact .lab { margin-top: 10px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* licensed titles */
.titles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.title-group {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px 6px; box-shadow: var(--shadow);
}
.title-group h3 {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; letter-spacing: .12em; font-variation-settings: "wdth" 100;
  color: var(--accent-deep); padding-bottom: 12px; border-bottom: 2px solid var(--ink);
}
.title-group h3 span { font-family: var(--mono); font-weight: 400; letter-spacing: .06em; color: var(--faint); }
.title-group ul { list-style: none; margin: 0; padding: 0; }
.title-group li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.title-group li:last-child { border-bottom: 0; }
.title-group .t { font-weight: 600; font-size: 15px; line-height: 1.35; }
.title-group .m { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* CTA band */
.band { background: var(--accent-soft); border-top: 1px solid var(--accent-line); border-bottom: 1px solid var(--accent-line); }
.band .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px 40px; flex-wrap: wrap; padding: 40px 0;
}
.band h2 { font-size: clamp(24px, 3vw, 32px); }
.band p { color: var(--muted); margin-top: 6px; max-width: 560px; }

/* ---------- sub-page head ---------- */
.page-head { padding: 60px 0 32px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(40px, 6vw, 76px); font-variation-settings: "wdth" 100; font-weight: 900; }
.page-head .sub { margin-top: 14px; font-size: 17px; max-width: 640px; }

/* ---------- catalog table ---------- */
.table-wrap {
  overflow-x: auto; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; min-width: 920px; font-size: 14.5px; }
thead th {
  text-align: left; padding: 14px 16px;
  font-family: var(--mono); font-weight: 500; font-size: 11.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  background: var(--paper-2); border-bottom: 2px solid var(--ink);
}
tbody td { padding: 15px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { cursor: pointer; transition: background .12s ease; }
tbody tr:hover { background: var(--accent-soft); }
td.id { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
td.id a { text-decoration: none; color: var(--accent-deep); font-weight: 500; }
td.title a { text-decoration: none; font-weight: 600; color: var(--ink); }
td.title a:hover { text-decoration: underline; }
.kind {
  display: inline-block; margin-top: 5px; padding: 1px 6px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-strong); border-radius: 3px;
}
td.src, td.rh { color: var(--ink-2); }
td.dur { font-family: var(--mono); white-space: nowrap; }
td.date { white-space: nowrap; color: var(--muted); }
.table-foot {
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  margin-top: 16px; font-size: 13.5px; color: var(--muted);
}
.table-foot a { color: var(--accent-deep); }

/* ---------- prose / statements ---------- */
.prose { max-width: 800px; }
.statement {
  font-family: var(--display); font-weight: 600; font-variation-settings: "wdth" 92;
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.28; letter-spacing: 0;
}
.statement + .statement { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.prose .lower-third { margin-top: 32px; }

.record { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 48px; }
.rec-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 24px 24px;
}
.rec-card h3 {
  font-size: 12.5px; letter-spacing: .12em; font-variation-settings: "wdth" 100;
  color: var(--accent-deep); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--ink);
}
dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; font-size: 14.5px; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 500; }
dd a { color: var(--accent-deep); }

/* terms */
.terms { counter-reset: term; list-style: none; margin: 0; padding: 0; max-width: 840px; }
.terms li {
  display: grid; grid-template-columns: 76px 1fr; gap: 20px;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.terms li:first-child { padding-top: 8px; }
.terms li::before {
  counter-increment: term; content: "0" counter(term);
  font-family: var(--display); font-weight: 900; font-variation-settings: "wdth" 100;
  font-size: 36px; line-height: 1; color: var(--accent); letter-spacing: -.01em;
}
.terms h3 {
  font-size: 12.5px; letter-spacing: .12em; font-variation-settings: "wdth" 100;
  color: var(--muted); margin-bottom: 10px;
}
.terms p { font-size: 18px; line-height: 1.5; font-weight: 500; }
.note { margin-top: 24px; font-size: 13.5px; color: var(--muted); }
.note a { color: var(--accent-deep); }

/* ---------- footer ---------- */
.slate {
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--ink) 0 12px, var(--paper) 12px 24px);
}
footer { background: var(--footer); color: var(--footer-ink); padding: 48px 0 28px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer .brand-name { color: var(--footer-ink); }
footer .brand-name b { color: var(--accent-hot); }
footer .brand-sub { color: var(--footer-muted); }
footer .brand-mark { background: var(--paper); }
footer .brand-mark::after { background: var(--ink); }
footer .desc { margin-top: 16px; max-width: 380px; font-size: 14px; line-height: 1.6; color: var(--footer-muted); }
footer h4 {
  margin: 0 0 14px; font-family: var(--mono); font-weight: 500; font-size: 11.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--footer-muted);
}
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
footer a { color: var(--footer-ink); text-decoration: none; }
footer a:hover { color: var(--accent-hot); }
footer .legal {
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--footer-line);
  font-size: 13px; color: var(--footer-muted);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .facts, .titles { grid-template-columns: repeat(2, 1fr); }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .record { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 36px); }
  .topbar .wrap { min-height: 58px; gap: 10px; width: calc(100% - 28px); }
  .brand { gap: 9px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-mark::before { left: 6px; top: 6px; width: 8px; height: 3px; }
  .brand-mark::after { left: 6px; right: 6px; bottom: 6px; height: 3px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 15px; }
  .nav { gap: 0; }
  .nav a { padding: 8px 5px; font-size: 13px; }
  .nav .btn { display: none; }
  .hero { padding: 48px 0 44px; }
  .corners { display: none; }
  .lower-third { flex-direction: column; }
  .lower-third .tag { padding: 8px 14px; }
  .lower-third .txt { padding: 12px 14px; font-size: 16px; }
  .crawl .label { padding: 0 12px; font-size: 11px; }
  .section { padding: 48px 0; }
  .facts, .titles { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr; }
  .terms li { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  dl { grid-template-columns: 1fr; gap: 4px 0; }
  dt { margin-top: 8px; }
}
@media (max-width: 360px) {
  .topbar .brand-mark { display: none; }
}

/* ============================================================
   v2 additions: catalog filters/recent/lightbox, news, about, terms
   ============================================================ */

/* mobile topbar: nav drops to a second row (5 links + wordmark don't fit one row) */
@media (max-width: 720px) {
  .topbar .wrap { flex-wrap: wrap; min-height: 0; padding: 10px 0 6px; row-gap: 2px; }
  .nav { width: 100%; gap: 2px; margin-left: -6px; }
}

/* ---------- catalog: recent acquisitions ---------- */
.recent { margin-bottom: 28px; }
.recent-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.recent-head .kicker { margin-bottom: 0; }
.recent-note { font-size: 13px; color: var(--muted); }
.recent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.recent-card {
  display: flex; gap: 12px; align-items: center; text-align: left; font: inherit; color: inherit;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; box-shadow: var(--shadow); cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}
.recent-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.recent-thumb {
  width: 84px; height: 56px; flex: none; border-radius: 4px; position: relative; overflow: hidden;
  background: var(--ink) center / cover no-repeat; display: flex; align-items: center; justify-content: center;
  color: var(--paper); font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
}
.recent-thumb .play { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-hot); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.recent-thumb .play::after { content: ""; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.recent-card .t { font-weight: 600; font-size: 14px; line-height: 1.3; }
.recent-card .m { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.recent-card .new { display: inline-block; margin-left: 6px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--accent); border-radius: 3px; padding: 1px 5px; vertical-align: middle; }

/* ---------- catalog: filter bar ---------- */
.filters {
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.filters label { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.filters label.grow { flex: 1; min-width: 200px; }
.filters select, .filters input {
  font: 500 14px var(--body); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 4px; padding: 9px 10px; min-width: 160px;
}
.filters input { width: 100%; min-width: 0; }
.filters select:focus, .filters input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.filters .count { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); padding-bottom: 10px; white-space: nowrap; }
.filters .reset { font: 500 13px var(--body); color: var(--accent-deep); background: none; border: 0; cursor: pointer; padding: 10px 4px; text-decoration: underline; }
.empty { padding: 28px; text-align: center; color: var(--muted); background: var(--panel); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty .reset { color: var(--accent-deep); background: none; border: 0; cursor: pointer; text-decoration: underline; font: inherit; }

/* ---------- catalog: wide table ---------- */
table.wide { min-width: 1180px; }
td.cat, td.shot { white-space: nowrap; color: var(--ink-2); }
.tag { display: inline-block; font-size: 11.5px; color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--line-strong); border-radius: 3px; padding: 1px 7px; margin: 2px 4px 2px 0; white-space: nowrap; }
td.title .row-title { display: inline-flex; align-items: center; gap: 7px; }
.play-dot { width: 15px; height: 15px; border-radius: 50%; background: var(--accent); flex: none; position: relative; }
.play-dot::after { content: ""; position: absolute; left: 5.5px; top: 4px; border-left: 5px solid #fff; border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent; }

@media (max-width: 900px) and (min-width: 701px) { .recent-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .recent-grid { grid-template-columns: 1fr 1fr; }
  .filters .count { margin-left: 0; }
  .table-wrap { overflow: visible; background: none; border: 0; box-shadow: none; }
  table.wide { min-width: 0; display: block; }
  table.wide thead { display: none; }
  table.wide tbody, table.wide tr, table.wide td { display: block; }
  table.wide tr { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; padding: 6px 0; }
  table.wide tbody tr:hover { background: var(--panel); }
  table.wide td { display: grid; grid-template-columns: 104px 1fr; gap: 10px; padding: 8px 14px; border: 0; font-size: 14px; white-space: normal; }
  table.wide td::before { content: attr(data-label); font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
  table.wide td.title { font-size: 16px; }
}
@media (max-width: 420px) { .recent-grid { grid-template-columns: 1fr; } }

/* ---------- lightbox (stays dark in any theme) ---------- */
.lb { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lb[hidden] { display: none; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(8, 8, 10, .86); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.lb-panel {
  position: relative; width: min(1040px, 100%); max-height: calc(100vh - 48px); overflow: auto;
  background: #121214; color: #f4f2ee; border: 1px solid #2a2a2f; border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6); display: grid; grid-template-columns: 1.5fr 1fr;
}
.lb-media { background: #000; display: flex; align-items: center; justify-content: center; min-height: 340px; }
.lb-media video { width: 100%; max-height: calc(100vh - 48px); object-fit: contain; background: #000; display: block; }
.lb-nomedia { padding: 32px; text-align: center; color: #a09da5; }
.lb-nomedia .glyph { font-family: var(--display); font-weight: 900; font-size: 64px; line-height: 1; color: #2a2a2f; letter-spacing: -.02em; }
.lb-nomedia p { margin: 12px auto 0; font-size: 14px; max-width: 320px; line-height: 1.55; }
.lb-body { padding: 26px 26px 28px; }
.lb-id { font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; color: var(--accent-hot); }
.lb-body h2 { margin-top: 8px; font-size: 26px; color: #fff; text-transform: none; letter-spacing: 0; font-variation-settings: "wdth" 96; }
.lb-desc { margin-top: 12px; font-size: 14.5px; line-height: 1.6; color: #c9c5bd; }
.lb-meta { margin: 18px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; font-size: 13.5px; }
.lb-meta dt { color: #8f8b93; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; padding-top: 2px; }
.lb-meta dd { margin: 0; color: #f0ede5; }
.lb-tags { margin-top: 14px; }
.lb-tags .tag { background: #1c1c20; border-color: #2e2e34; color: #d9d5cc; }
.lb-actions { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.lb-hint { font-size: 12px; color: #8f8b93; }
.lb-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #3a3a40; background: #1a1a1e; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.lb-close:hover { background: var(--accent); border-color: var(--accent); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid #3a3a40; background: #1a1a1e; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; z-index: 2; }
.lb-nav.prev { left: 10px; }
.lb-nav.next { right: 10px; }
.lb-nav:hover { background: var(--accent); border-color: var(--accent); }
body.lb-open { overflow: hidden; }
@media (max-width: 860px) {
  .lb { padding: 0; }
  .lb-panel { grid-template-columns: 1fr; width: 100%; height: 100%; max-height: 100vh; border-radius: 0; }
  .lb-media { min-height: 220px; }
  .lb-nav { top: auto; bottom: 14px; transform: none; }
}

/* ---------- news ---------- */
.news { list-style: none; margin: 0; padding: 0; max-width: 900px; }
.news-item { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.news-item:first-child { padding-top: 8px; }
.news-date { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.news-date time { font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: .06em; }
.news-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 3px; padding: 2px 7px; }
.news-item h3 { font-size: 22px; text-transform: none; letter-spacing: 0; font-variation-settings: "wdth" 92; line-height: 1.2; }
.news-item p { margin-top: 10px; color: var(--ink-2); max-width: 640px; }
.news-item a { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--accent-deep); font-size: 14px; }
@media (max-width: 640px) {
  .news-item { grid-template-columns: 1fr; gap: 10px; }
  .news-date { flex-direction: row; align-items: center; gap: 12px; }
}

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; }
.about-grid h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.about-copy { color: var(--ink-2); font-size: 16.5px; line-height: 1.65; }
.steps { margin: 18px 0 0; padding: 0 0 0 20px; display: grid; gap: 10px; color: var(--ink-2); }
.steps b { color: var(--ink); }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.team-card { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 22px 22px 24px; box-shadow: var(--shadow); }
.role-num { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; color: var(--accent); font-variation-settings: "wdth" 100; }
.team-card h3 { margin-top: 10px; font-size: 17px; letter-spacing: .01em; font-variation-settings: "wdth" 96; }
.team-card p { margin-top: 10px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .team { grid-template-columns: 1fr; } }

/* ---------- terms document ---------- */
.doc { max-width: 860px; }
.doc-meta { display: flex; gap: 12px 28px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; padding-bottom: 18px; border-bottom: 2px solid var(--ink); margin-bottom: 8px; }
.doc section { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.doc section .n { font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1.1; color: var(--accent); font-variation-settings: "wdth" 100; }
.doc h3 { font-size: 13px; letter-spacing: .1em; font-variation-settings: "wdth" 100; color: var(--ink); margin-bottom: 8px; }
.doc p { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.doc p + p, .doc ul + p, .doc .credit + p { margin-top: 10px; }
.doc p.key { font-weight: 600; color: var(--ink); }
.doc ul { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; display: grid; gap: 6px; }
.doc .credit { font-family: var(--mono); font-size: 13px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; margin-top: 10px; color: var(--ink); }
@media (max-width: 640px) { .doc section { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- catalog: tags wrapper (keeps chips in the value column on mobile cards) ---------- */
.tags { display: inline; }
@media (max-width: 700px) {
  table.wide td .tags { display: flex; flex-wrap: wrap; gap: 5px; align-content: flex-start; padding-top: 1px; }
  table.wide td .tags .tag { margin: 0; }
}

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea {
  font: 500 14.5px var(--body); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 4px; padding: 10px 11px; width: 100%; min-width: 0;
}
.form textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form .hint { font-family: var(--body); font-size: 12.5px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.form .actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form button.btn { cursor: pointer; }
.form .fine { font-size: 13px; color: var(--muted); }
.form .fine a { color: var(--accent-deep); }
.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin-bottom: 18px; padding: 14px 16px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--accent); color: var(--ink); font-size: 14.5px; }
.notice[hidden] { display: none; }
.contact-side .rec-card + .rec-card { margin-top: 16px; }
.side-copy { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.side-copy a { color: var(--accent-deep); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } .form-card { padding: 18px; } }
