:root {
  --bg: #0f0c0b;
  --panel: #1a1513;
  --line: #2e2522;
  --text: #ece4dc;
  --muted: #a99c92;
  --brick: #c8402f;
  --gold: #d9a85b;
  --radius: 10px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--gold); }

.top {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  padding: 12px 24px;
  background: rgba(15, 12, 11, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.02em; }
#tabs { display: flex; gap: 4px; flex-wrap: wrap; }
#tabs a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 999px; }
#tabs a:hover { color: var(--text); background: var(--panel); }
#tabs a.active { color: var(--text); background: var(--panel); box-shadow: inset 0 -2px 0 var(--brick); }

main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 32px 24px 48px; }
h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.1; margin: 0 0 16px; }
h2 { font-size: 28px; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 24px; max-width: 65ch; }
.note { color: var(--muted); font-size: 14px; border-left: 3px solid var(--gold); padding: 4px 12px; }

.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.hero-img { aspect-ratio: 16 / 10; border-radius: var(--radius); background: center / cover no-repeat; border: 1px solid var(--line); }
.hero-text p { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; color: var(--brick) !important; margin: 0 0 8px; font-weight: 700; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.btn:hover { border-color: var(--gold); }
.btn.primary { background: var(--brick); border-color: var(--brick); }
.btn.primary:hover { filter: brightness(1.1); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.card:hover { border-color: var(--gold); transform: translateY(-2px); }
.card-img { aspect-ratio: 16 / 9; background: #000 center / cover no-repeat; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 6px; font-size: 20px; }
.card p { color: var(--muted); margin: 0 0 14px; flex: 1; }
.badge { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; padding: 1px 8px; vertical-align: middle; }
.card p.aka { flex: 0; margin: 0 0 8px; font-size: 13px; font-style: italic; }
.open { color: var(--gold); font-weight: 600; }
#gpu-note { margin-top: 24px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.gallery figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #000; }
.gallery figcaption { padding: 12px 14px; color: var(--muted); font-size: 14px; }
.gallery figcaption b { color: var(--text); }

.prose { max-width: 68ch; }
.prose p { color: var(--muted); }
.prose b { color: var(--text); }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 20px; border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .top { padding: 10px 16px; }
  main { padding: 24px 16px 40px; }
  .hero { grid-template-columns: 1fr; gap: 20px; }
  .cards, .gallery { grid-template-columns: 1fr; }
}

.gallery figure[data-full] { cursor: zoom-in; transition: border-color 0.15s; }
.gallery figure[data-full]:hover, .gallery figure[data-full]:focus-visible { border-color: var(--gold); outline: none; }

.viewer { position: fixed; inset: 0; z-index: 10; background: rgba(8, 6, 5, 0.94); display: flex; align-items: center; justify-content: center; padding: 56px 72px 24px; }
.viewer figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; }
.viewer img { display: block; max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 6px; background: #000; }
.viewer figcaption { color: var(--muted); font-size: 14px; margin-top: 12px; text-align: center; max-width: 70ch; }
.viewer figcaption b { color: var(--text); }
.viewer button { position: absolute; background: rgba(26, 21, 19, 0.85); color: var(--text); border: 1px solid var(--line); border-radius: 999px; width: 44px; height: 44px; font-size: 26px; line-height: 1; cursor: pointer; }
.viewer button:hover { border-color: var(--gold); }
.v-close { top: 12px; right: 16px; }
.v-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.v-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 760px) {
  .viewer { padding: 56px 8px 16px; }
  .v-prev, .v-next { top: auto; bottom: 16px; transform: none; }
}
.hero-share { display: block; width: 100%; height: auto; margin-top: 24px; border-radius: var(--radius); border: 1px solid var(--line); }
