/* ==========================================================================
   Cybear404 — shared site stylesheet
   Header, footer, layout, and components used by every page.
   Page-specific tweaks live in a small <style> block on the page itself.
   ========================================================================== */

:root {
  --bg: #0b0b0c;
  --surface: #141416;
  --surface-2: #1c1c20;
  --border: #2a2a2f;
  --text: #ededf0;
  --muted: #a6a6ad;
  --faint: #73737b;
  --orange: #ff6f00;
  --orange-2: #ff8a2a;
  --green: #39ff14;
  --radius: 12px;
  --container: 1120px;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--orange); }
a:hover { color: var(--orange-2); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.text-center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 12, 0.97);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 92px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.brand img { width: 72px; height: 72px; border-radius: 50%; flex: none; }
.brand-name {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.75rem;
  letter-spacing: 0.08em; color: var(--orange); line-height: 1.1;
}
.brand-tag { display: block; font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; margin-top: 2px; }

.site-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.site-nav > a:first-child { margin-left: auto; }
.site-nav a {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 8px; white-space: nowrap;
}
.site-nav a:hover, .site-nav a:focus-visible { background: var(--surface-2); color: var(--orange-2); outline: none; }
.site-nav a[aria-current="page"] { color: var(--orange); }
.site-nav .btn { margin-left: auto; padding: 9px 16px; background: var(--orange); color: #111; border-radius: 10px; }
.site-nav .btn:hover, .site-nav .btn:focus-visible { background: var(--orange-2); color: #111; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label {
  display: none; cursor: pointer; font-weight: 700; color: var(--text);
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; user-select: none;
}
@media (max-width: 1080px) {
  .brand img { width: 60px; height: 60px; }
  .brand-name { font-size: 1.35rem; }
  .brand-tag { font-size: 0.85rem; }
  .nav-toggle-label { display: inline-block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 12px 20px 18px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }
  .site-nav a { padding: 12px 10px; font-size: 1.05rem; }
  .site-nav .btn { margin: 10px 0 0; justify-content: center; }
  .site-nav > a:first-child { margin-left: 0; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-toggle:checked ~ .nav-toggle-label { border-color: var(--orange); color: var(--orange); }
}
@media (max-width: 520px) {
  .site-header .container { min-height: 72px; }
  .brand img { width: 48px; height: 48px; }
  .brand-name { font-size: 1.1rem; }
  .brand-tag { font-size: 0.72rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  background: var(--orange); color: #111; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 2px solid var(--orange);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover, .btn:focus-visible { background: var(--orange-2); border-color: var(--orange-2); color: #111; outline: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--orange); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: rgba(255, 111, 0, 0.1); color: var(--orange-2); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Typography blocks ---------- */
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green); margin-bottom: 12px;
}
h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.1rem); color: var(--orange); margin: 0 0 16px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; margin: 0 0 24px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--green); color: var(--green);
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.tagline { font-style: italic; color: var(--green); }

/* ---------- Hero (home) ---------- */
.hero { padding: 32px 0 36px; }
.hero .container { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(100%, 330px); border-radius: 50%; box-shadow: 0 0 70px rgba(255, 111, 0, 0.22); }
@media (max-width: 900px) {
  .hero { padding: 36px 0 28px; }
  .hero .container { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { order: -1; }
  .hero-art img { width: min(60%, 240px); }
}

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: 48px 0 28px; border-bottom: 1px solid var(--border); }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 10px; }
.page-head .lead { margin-bottom: 14px; }
.page-head .pill { margin-top: 4px; }

/* ---------- Sections & cards ---------- */
.section { padding: 48px 0; }
.section.tight { padding-top: 0; }
.section-head { max-width: 760px; margin: 0 0 28px; }
.section-head h2 { font-family: var(--font-display); font-size: 1.55rem; color: var(--text); margin: 0 0 8px; }
.section-head p { color: var(--muted); margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--text); }
.card p { margin: 0 0 10px; color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 42px; height: 42px; border-radius: 10px; margin-bottom: 14px;
  background: rgba(255, 111, 0, 0.12); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
}
.card-accent { border-left: 4px solid var(--orange); }
.card .btn { margin-top: 14px; }
.card ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--muted); }
.card ul.plain li strong { color: var(--text); }

.proof { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); padding: 22px 0; }
.proof .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 32px; }
.fact-label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.fact-value { display: block; color: var(--text); font-weight: 600; font-size: 0.95rem; line-height: 1.4; }
@media (max-width: 900px) { .proof .container { grid-template-columns: 1fr; gap: 14px; } }

.band {
  background: linear-gradient(135deg, rgba(255, 111, 0, 0.16), rgba(57, 255, 20, 0.05));
  border: 1px solid rgba(255, 111, 0, 0.35); border-radius: 16px; padding: 32px;
  display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 24px; align-items: center;
}
.band h2 { font-family: var(--font-display); color: var(--orange); margin: 0 0 8px; font-size: 1.5rem; }
.band p { margin: 0; color: var(--muted); }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 900px) { .band { grid-template-columns: 1fr; padding: 24px; } .band-actions { justify-content: flex-start; } }

.callout { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.callout h3 { margin: 0 0 6px; font-family: var(--font-display); color: var(--orange); font-size: 1.05rem; }
.callout p { margin: 0; color: var(--muted); }

/* ---------- Prose ---------- */
.prose { max-width: 780px; color: #d4d4d9; font-size: 1.05rem; }
.prose p { margin: 0 0 1.1em; }
.prose strong { color: var(--text); }
.prose h2 { font-family: var(--font-display); font-size: 1.3rem; color: var(--orange); margin: 2.2em 0 0.6em; }
.prose h3 { font-size: 1.1rem; color: var(--text); margin: 1.8em 0 0.5em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.35em; }

/* ---------- Lists ---------- */
.list-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list-cards li {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--green);
  border-radius: 10px; padding: 14px 18px; color: var(--muted);
}
.list-cards li strong { color: var(--text); }
.list-cards.orange li { border-left-color: var(--orange); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li {
  counter-increment: s; position: relative; padding: 14px 18px 14px 64px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--muted);
}
.steps li::before {
  content: counter(s); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--orange); color: #111; font-family: var(--font-display); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps li strong { display: block; color: var(--text); }

/* ---------- Updates feed ---------- */
.updates { display: grid; gap: 16px; max-width: 820px; }
.update { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--orange); border-radius: 10px; padding: 20px 22px; }
.update h2 { font-family: var(--font-display); color: var(--text); font-size: 1.15rem; margin: 0 0 4px; }
.update small { color: var(--faint); font-weight: 600; }
.update p { color: var(--muted); margin: 10px 0; }
.update a { color: var(--green); font-weight: 700; text-decoration: none; }
.update a:hover, .update a:focus-visible { color: var(--orange-2); text-decoration: underline; }
.update-img { display: block; max-width: 100%; margin: 10px 0 15px; border-radius: 8px; border: 1px solid var(--border); }
.update-date { color: var(--faint); font-weight: 600; font-size: 0.9rem; margin: 0 0 4px; }

/* ---------- Demo galleries ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin: 1.5rem 0 2rem; }
.gallery img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); padding: 6px; cursor: zoom-in; transition: transform 0.2s;
}
.gallery img:hover { transform: scale(1.02); }
.gallery--stack { display: flex; flex-direction: column; gap: 2rem; max-width: 760px; }
.gallery--stack img { aspect-ratio: auto; cursor: default; }
.gallery--stack img:hover { transform: none; }
.caption { text-align: center; font-size: 0.9rem; color: var(--muted); margin-top: 8px; }
.gallery-desktop { display: flex; flex-direction: column; gap: 1.5rem; margin: 1.5rem 0 2rem; max-width: 800px; }
.gallery-mobile { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 1.5rem 0 2rem; max-width: 800px; }
.gallery-desktop img, .gallery-mobile img { width: 100%; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.custom-note { color: var(--green); font-style: italic; margin: 1rem 0; }
.safety-note { background: rgba(255, 111, 0, 0.08); border-left: 4px solid var(--orange); padding: 1rem 1.2rem; border-radius: 8px; margin: 1.5rem 0; line-height: 1.6; }
.safety-note strong { color: var(--orange); }
.safety-note ul { margin: 0.6rem 0 0.6rem 1.2rem; }
.phase { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.modal { display: none; position: fixed; z-index: 100; inset: 0; padding-top: 60px; overflow: auto; background: rgba(0, 0, 0, 0.92); animation: fadeIn 0.25s ease forwards; }
.modal-content { margin: auto; display: block; max-width: 90%; max-height: 85vh; }
.close { position: absolute; top: 24px; right: 36px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; line-height: 1; }
.close:hover { color: var(--orange); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid .card a { font-size: 1.05rem; font-weight: 700; text-decoration: none; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 64px; border-top: 1px solid var(--border); background: var(--surface); padding: 40px 0 24px; color: var(--muted); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; }
.site-footer h4 { margin: 0 0 10px; color: var(--text); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--orange-2); }
.site-footer p { margin: 0 0 10px; }
.footer-bottom {
  margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: 0.85rem; color: var(--faint);
}

/* ---------- BidClaw showcase: video hero ---------- */
.hero-video { position: relative; min-height: 86vh; display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--border); background: #0f172a; }
.hero-video-media { position: absolute; inset: 0; }
.hero-video-el { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transform: translateZ(0); backface-visibility: hidden; }
.hero-video-poster { display: none; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.hero-video-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 12, 0.25) 0%, rgba(11, 11, 12, 0.55) 45%, rgba(11, 11, 12, 0.96) 100%); }
.hero-video-content { position: relative; padding-top: 140px; padding-bottom: 56px; }
.hero-video-content h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: 12px; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6); }
.hero-video-content .lead { max-width: 56ch; color: #d9d9de; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7); }
.hero-video-content .pill { margin-top: 18px; background: rgba(11, 11, 12, 0.55); }
.scroll-hint { position: absolute; right: 24px; bottom: 22px; color: var(--muted); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }
.scroll-hint::after { content: "\2193"; margin-left: 6px; }
.scroll-hint:hover { color: var(--orange-2); }
@media (max-width: 900px) {
  .hero-video { min-height: 72vh; }
  .hero-video-content { padding-top: 90px; padding-bottom: 44px; }
  .scroll-hint { display: none; }
}
@media (max-width: 600px) {
  .hero-video-el { display: none; }
  .hero-video-poster { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video-el { display: none; }
  .hero-video-poster { display: block; }
}

/* ---------- BidClaw showcase: scroll to explore ---------- */
.explore { padding: 56px 0 24px; scroll-margin-top: 90px; }
.explore-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.explore-steps { display: grid; }
.explore-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; opacity: 0.5; transition: opacity 0.35s; border-top: 1px solid var(--border); }
.explore-step:first-child { border-top: 0; }
.explore-step.is-active { opacity: 1; }
.explore-num { display: inline-block; font-family: var(--font-display); font-weight: 700; color: var(--orange); font-size: 0.9rem; letter-spacing: 0.12em; margin-bottom: 10px; }
.explore-step h3 { margin: 0 0 10px; font-size: 1.45rem; color: var(--text); line-height: 1.25; }
.explore-step p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.explore-media { position: sticky; top: 110px; }
.explore-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #0f172a; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55); }
.explore-frame > img, .explore-frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; opacity: 0; transition: opacity 0.45s ease; }
.explore-frame > .is-active { opacity: 1; }
.explore-dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.explore-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--border); cursor: pointer; padding: 0; transition: background 0.2s, transform 0.2s; }
.explore-dots button.is-active { background: var(--orange); transform: scale(1.25); }
.explore-dots button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@media (max-width: 900px) {
  .explore { padding-top: 36px; }
  .explore-grid { grid-template-columns: 1fr; gap: 18px; }
  .explore-media { order: -1; top: 80px; z-index: 2; background: var(--bg); padding-bottom: 8px; }
  .explore-frame { border-radius: 10px; }
  .explore-step { min-height: 46vh; opacity: 0.6; }
  .explore-step h3 { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .explore-step { opacity: 1; transition: none; }
  .explore-frame > img, .explore-frame > video { transition: none; }
}

.fineprint { font-size: 0.85rem; color: var(--faint); max-width: 62ch; margin: 14px 0 0; line-height: 1.5; }

/* ---------- BidClaw showcase v2: pipeline strip ---------- */
.pipeline-strip { border-bottom: 1px solid var(--border); background: var(--surface); padding: 16px 0; }
.pipeline-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; }
.pipeline-strip .stage { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 0.9rem; }
.pipeline-strip .stage b { font-family: var(--font-display); color: var(--orange); font-size: 0.75rem; }
.pipeline-strip .arrow { color: var(--faint); }
@media (max-width: 600px) { .pipeline-strip .arrow { display: none; } .pipeline-strip .stage { font-size: 0.82rem; padding: 6px 10px; } }

/* ---------- BidClaw showcase v2: video chapters in the pinned frame ---------- */
.explore-frame > video { background: #0f172a; }

/* ---------- BidClaw showcase v2: full-bleed feature band ---------- */
.feature-video { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; background: #0f172a; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 24px; }
.feature-video-media { position: absolute; inset: 0; }
.feature-video-el { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transform: translateZ(0); backface-visibility: hidden; }
.feature-video-poster { display: none; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.feature-video-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 11, 12, 0.94) 0%, rgba(11, 11, 12, 0.82) 42%, rgba(11, 11, 12, 0.35) 100%); }
.feature-video-content { position: relative; width: 100%; max-width: var(--container); margin: 0 auto; padding: 72px 20px; }
.feature-video-content .inner { max-width: 560px; }
.feature-video-content h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: var(--orange); margin: 0 0 14px; line-height: 1.15; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6); }
.feature-video-content p { color: #d9d9de; font-size: 1.1rem; margin: 0 0 14px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7); }
.feature-video-content .actions { margin-top: 22px; }
@media (max-width: 900px) {
  .feature-video { min-height: 0; }
  .feature-video-shade { background: linear-gradient(180deg, rgba(11, 11, 12, 0.55) 0%, rgba(11, 11, 12, 0.95) 70%); }
  .feature-video-content { padding: 48px 20px; }
}
@media (max-width: 600px) { .feature-video-el { display: none; } .feature-video-poster { display: block; } }
@media (prefers-reduced-motion: reduce) { .feature-video-el { display: none; } .feature-video-poster { display: block; } }

/* ---------- BidClaw showcase v2: screen gallery + lightbox caption ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-grid a { display: block; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #0f172a; }
.gallery-grid img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; transition: transform 0.3s; }
.gallery-grid a:hover img, .gallery-grid a:focus-visible img { transform: scale(1.03); }
.gallery-grid .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; font-size: 0.85rem; font-weight: 600; color: var(--text); background: linear-gradient(180deg, rgba(11, 11, 12, 0), rgba(11, 11, 12, 0.9)); }
.modal-caption { color: var(--muted); text-align: center; margin: 12px auto 0; font-size: 0.95rem; max-width: 90%; }

/* ---------- Big displays: a wider page column and slightly larger type ---------- */
@media (min-width: 1800px) {
  html { font-size: 18px; }
  :root { --container: 1320px; }
}

/* ---------- BidClaw chapters: full-width clips, text above ---------- */
.chapters { padding: 56px 0 8px; scroll-margin-top: 90px; }
.chapters .container.wide { max-width: min(1920px, 94vw); }
.chapters .section-head { max-width: 820px; }
.chapter { padding: 36px 0 44px; border-top: 1px solid var(--border); }
.chapter:first-of-type { border-top: 0; padding-top: 8px; }
.chapter-text { display: grid; grid-template-columns: minmax(240px, 0.9fr) 1.6fr; gap: 12px 48px; align-items: start; margin-bottom: 20px; }
.chapter-text h3 { margin: 6px 0 0; font-size: clamp(1.4rem, 2.1vw, 1.9rem); color: var(--text); line-height: 1.2; }
.chapter-text p { margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 72ch; }
.chapter-media { position: relative; margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #0f172a; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5); }
.chapter-media video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0f172a; cursor: zoom-in; }
.chapter-media video:fullscreen { object-fit: contain; background: #000; cursor: default; }
.chapter-media .expand {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(11, 11, 12, 0.72); color: var(--text);
  font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; cursor: pointer;
}
.chapter-media .expand:hover, .chapter-media .expand:focus-visible { background: var(--orange); color: #111; border-color: var(--orange); outline: none; }
.chapter-media figcaption { padding: 10px 14px; font-size: 0.82rem; color: var(--faint); background: var(--surface); border-top: 1px solid var(--border); }
@media (max-width: 900px) {
  .chapters { padding-top: 36px; }
  .chapter { padding: 28px 0 32px; }
  .chapter-text { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Status tags (live / in development) ---------- */
.status-tag { display: inline-block; vertical-align: middle; padding: 3px 9px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.status-tag.live { color: var(--green); border: 1px solid rgba(57, 255, 20, 0.5); }
.status-tag.dev { color: var(--orange-2); border: 1px solid rgba(255, 138, 42, 0.6); }
.chapter-text .status-tag { margin-left: 6px; }
.list-cards li .status-tag { margin: 0 6px 0 2px; }
