/* Metal Ghost Shell — private preview styles (v2, 2D art re-skin) */
:root {
  --bg: #070a10;
  --bg-alt: #0b111a;
  --panel: rgba(15, 23, 34, 0.86);
  --ink: #e2ebf2;
  --ink-dim: #9db0c0;
  --accent: #4fd8e8;
  --accent-dim: #2a8fa0;
  --hot: #ff4d5e;
  --violet: #a77bff;
  --line: rgba(79, 216, 232, 0.18);
  --focus: #ffd166;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; }
h2 { color: var(--accent); font-size: clamp(1.3rem, 2.6vw, 1.75rem); margin: 0 0 1rem; text-shadow: 0 0 18px rgba(79,216,232,.25); }
h3 { font-size: 1.05rem; margin: 0.9rem 0 0.4rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent); }
a:hover { color: #9ff3ff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; position: relative; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #041014; padding: .5rem 1rem; z-index: 20; }
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 10, 16, 0.88); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px);
}
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-block: .7rem; gap: .4rem 1.25rem; }
.brand-mark { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .9rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-list { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; color: var(--ink-dim); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.nav-list a:hover { color: var(--accent); }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: min(88vh, 820px); display: flex; align-items: stretch; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url('../img/web/hero-bg.webp') center 30% / cover no-repeat;
  filter: brightness(.7) saturate(1.15);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(79,216,232,.18), transparent 60%),
    linear-gradient(90deg, rgba(7,10,16,.97) 0%, rgba(7,10,16,.82) 42%, rgba(7,10,16,.12) 72%),
    linear-gradient(to top, var(--bg) 0%, transparent 30%);
}
.hero-grid { display: grid; grid-template-columns: .8fr 1.25fr; align-items: end; gap: 1rem; width: min(1180px, 100% - 2.5rem); }
.hero-content { padding: 5rem 0 4.5rem; align-self: center; }
.hero-content h1 {
  font-size: clamp(2.3rem, 6vw, 4.4rem); margin: .3rem 0 .6rem; letter-spacing: .06em;
  background: linear-gradient(180deg, #ffffff, #b9d8e6); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(79,216,232,.35));
}
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; margin: 0; }
.tagline { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: var(--ink); max-width: 30ch; }
.hero-squad { position: relative; width: 100%; aspect-ratio: 820 / 720; max-height: 760px; align-self: end; margin-top: 2rem; }
.hero-squad::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 22%; z-index: 4; background: linear-gradient(to top, var(--bg), transparent); pointer-events: none; }
.hero-squad .op {
  position: absolute; bottom: 0; height: auto; width: auto;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.6)) drop-shadow(0 0 22px rgba(79,216,232,.18));
}
.op-katy { left: 50%; transform: translateX(-50%); height: 100% !important; z-index: 1; }
.op-aiko { left: 0; height: 88% !important; z-index: 2; }
.op-mina { right: 0; height: 86% !important; z-index: 3; }
.art-label {
  position: absolute; right: .5rem; bottom: .75rem; z-index: 5;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim);
  background: rgba(7,10,16,.7); border: 1px solid var(--line); padding: .15rem .5rem; border-radius: 2px;
}

/* Buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn {
  display: inline-block; font: inherit; font-size: .88rem; letter-spacing: .07em; text-transform: uppercase;
  text-decoration: none; padding: .75rem 1.4rem; border: 1px solid var(--accent-dim); border-radius: 3px; cursor: pointer;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: #041014; font-weight: 700; box-shadow: 0 0 24px rgba(79,216,232,.35); }
.btn-primary:hover { background: #9ff3ff; color: #041014; }
.btn-secondary { background: transparent; color: var(--accent); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-ghost { background: rgba(7,10,16,.5); color: var(--ink-dim); border-color: rgba(157,176,192,.3); }
.btn-ghost:disabled { cursor: not-allowed; opacity: .6; }

/* Sections */
.section { position: relative; padding: 5rem 0; isolation: isolate; overflow: hidden; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-intro { color: var(--ink-dim); max-width: 60ch; margin-bottom: 2rem; }
.section-bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: .22; filter: blur(2px) saturate(1.1); }
.section-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(7,10,16,.4) 35%, rgba(7,10,16,.4) 65%, var(--bg) 100%); }

.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.lede { font-size: 1.18rem; color: var(--ink); }
.teaser { color: var(--accent); border-left: 3px solid var(--accent-dim); padding-left: 1rem; font-style: italic; }
.art-frame { margin: 0; }
.art-frame img { border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.55), 0 0 40px rgba(79,216,232,.12); }
figcaption { color: var(--ink-dim); font-size: .8rem; margin-top: .55rem; }
figcaption span, .art-note { color: var(--accent-dim); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; }
.art-note { display: block; margin-top: .4rem; }

/* Operatives */
.section-operatives .section-bg { background-position: center 20%; opacity: .25; }
.op-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.75rem; }
.op-card { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.op-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.5), 0 0 30px rgba(79,216,232,.18); }
.op-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 15%; }
.op-card figcaption { display: flex; justify-content: space-between; align-items: baseline; padding: .8rem 1rem; margin: 0; }
.op-card strong { color: var(--ink); text-transform: uppercase; letter-spacing: .12em; font-size: .95rem; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 0 0 1.2rem; overflow: hidden; }
.feature-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 1px solid var(--line); }
.feature-card img.tall { object-position: center 35%; }
.feature-card h3, .feature-card p { padding-inline: 1.15rem; }
.feature-card h3 span { display: block; color: var(--violet); font-size: .75rem; letter-spacing: .16em; margin-top: .25rem; }
.feature-card p { color: var(--ink-dim); font-size: .95rem; margin: 0; }
.how-it-plays { margin-top: 2.25rem; color: var(--ink-dim); max-width: 64ch; }

/* Enemies */
.section-enemies { padding-block: 6rem; }
.enemies-bg { background-image: url('../img/web/enemy-hunter-bg.webp'); background-position: center 35%; opacity: .5; filter: saturate(1.15); }
.section-enemies h2 { color: #ff8a95; text-shadow: 0 0 18px rgba(255,77,94,.35); }
.enemy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.enemy-card { margin: 0; background: var(--panel); border: 1px solid rgba(255,77,94,.25); border-radius: 6px; overflow: hidden; }
.enemy-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.enemy-card figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding: .8rem 1rem; margin: 0; color: var(--ink); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-grid figure { margin: 0; }
.gallery-grid img { width: 100%; border: 1px solid var(--line); border-radius: 6px; aspect-ratio: 1 / 1; object-fit: cover; }

/* Devlog */
.status-line { margin-top: 1.75rem; color: var(--ink-dim); font-size: .9rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0; background: var(--bg); }
.footer-inner { text-align: center; }
.footer-tagline { color: var(--ink); letter-spacing: .06em; }
.footer-inner .cta-row { justify-content: center; }
.footer-note { margin-top: 1.75rem; color: var(--accent-dim); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.footer-legal { color: var(--ink-dim); font-size: .85rem; margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 3rem 0 1rem; order: 2; }
  .hero-squad { order: 1; max-width: 640px; margin: 1.5rem auto 0; }
  .hero::before { background: radial-gradient(ellipse at 50% 30%, rgba(79,216,232,.16), transparent 60%), linear-gradient(to top, var(--bg) 25%, rgba(7,10,16,.35) 70%); }
  .two-col, .feature-grid, .op-grid, .enemy-grid { grid-template-columns: 1fr; }
  .op-grid { grid-template-columns: repeat(3, 1fr); gap: .75rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .wrap, .hero-grid { width: calc(100% - 2rem); }
  .site-header { position: static; }
  .header-inner { justify-content: center; padding-block: .55rem; row-gap: .25rem; }
  .brand-mark { width: 100%; text-align: center; font-size: .82rem; }
  .nav-list { justify-content: center; flex-wrap: nowrap; gap: .45rem; }
  .nav-list a { font-size: .62rem; letter-spacing: .03em; }
  .hero-squad { width: calc(100% + 1rem); margin-inline: -.5rem; }
  .op-grid { grid-template-columns: 1fr; }
  .op-card img { aspect-ratio: 4 / 3; object-position: center 20%; }
  .enemy-card img { aspect-ratio: 4 / 3; }
  .section { padding: 3.25rem 0; }
  .cta-row .btn { width: 100%; text-align: center; }
}
figcaption span { white-space: nowrap; }
/* v2.1: bosses, wide gallery item */
.enemy-card img.cutout { object-fit: contain; object-position: center bottom; background: radial-gradient(ellipse at 50% 60%, rgba(167,123,255,.28), rgba(7,10,16,.9) 70%); padding-top: .75rem; }
.boss-card { border-color: rgba(255,77,94,.55); box-shadow: 0 0 30px rgba(255,77,94,.15); }
.boss-card figcaption span { color: #ff8a95; }
.gallery-grid { grid-template-columns: repeat(3, 1fr); }
.gallery-grid figure.wide { grid-column: span 3; }
.gallery-grid figure.wide img { aspect-ratio: 1447 / 1087; max-height: 720px; object-fit: cover; object-position: center top; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .gallery-grid figure.wide { grid-column: span 2; } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } .gallery-grid figure.wide { grid-column: auto; } }
/* Gameplay section */
.section-gameplay { background: linear-gradient(180deg, var(--bg) 0%, #0a1420 50%, var(--bg) 100%); border-block: 1px solid var(--line); }
.gp-lead { margin: 0 0 1.5rem; }
.gp-lead img, .gp-shot img { width: 100%; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 18px 44px rgba(0,0,0,.55), 0 0 30px rgba(79,216,232,.1); image-rendering: auto; }
.gp-lead figcaption { font-size: .95rem; color: var(--ink); margin-top: .7rem; }
.gp-grid { column-count: 3; column-gap: 1.25rem; }
.gp-shot { break-inside: avoid; margin: 0 0 1.25rem; display: inline-block; width: 100%; }
.gp-shot figcaption { margin-top: .45rem; }
@media (max-width: 900px) { .gp-grid { column-count: 2; } }
@media (max-width: 480px) { .gp-grid { column-count: 1; } }

/* ============ Pass 1: alive layer ============ */

/* 1. Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* 2. HUD corner brackets + animated border glow */
.op-card, .feature-card, .enemy-card, .devlog-panel { position: relative; animation: hudGlow 4s ease-in-out infinite; }
.op-card::before, .feature-card::before, .enemy-card::before, .devlog-panel::before {
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(rgba(79,216,232,.85), rgba(79,216,232,.85)) top left / 14px 2px no-repeat,
    linear-gradient(rgba(79,216,232,.85), rgba(79,216,232,.85)) top left / 2px 14px no-repeat,
    linear-gradient(rgba(79,216,232,.85), rgba(79,216,232,.85)) top right / 14px 2px no-repeat,
    linear-gradient(rgba(79,216,232,.85), rgba(79,216,232,.85)) top right / 2px 14px no-repeat,
    linear-gradient(rgba(79,216,232,.85), rgba(79,216,232,.85)) bottom left / 14px 2px no-repeat,
    linear-gradient(rgba(79,216,232,.85), rgba(79,216,232,.85)) bottom left / 2px 14px no-repeat,
    linear-gradient(rgba(79,216,232,.85), rgba(79,216,232,.85)) bottom right / 14px 2px no-repeat,
    linear-gradient(rgba(79,216,232,.85), rgba(79,216,232,.85)) bottom right / 2px 14px no-repeat;
}
@keyframes hudGlow {
  0%, 100% { border-color: var(--line); box-shadow: 0 0 0 rgba(79,216,232,0); }
  50% { border-color: rgba(79,216,232,.55); box-shadow: 0 0 22px rgba(79,216,232,.22); }
}

/* keep the existing operative-card hover lift after reveal */
.js .op-card.reveal.is-visible:hover { transform: translateY(-4px); }

/* 3. Cyan glow on hover + focus-visible */
.btn:not(:disabled):hover, .btn:not(:disabled):focus-visible { box-shadow: 0 0 18px rgba(79,216,232,.55); }
.nav-list a:hover, .nav-list a:focus-visible { text-shadow: 0 0 12px rgba(79,216,232,.75); }

/* 4a. Faint circuit background behind section h2 */
.section h2 { position: relative; }
.section h2::before {
  content: ""; position: absolute; inset: -.4em -.8em; z-index: -1; pointer-events: none; opacity: .12;
  background:
    repeating-linear-gradient(90deg, var(--accent) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(0deg, var(--accent) 0 1px, transparent 1px 18px);
  animation: circuitDrift 20s linear infinite;
}
@keyframes circuitDrift { from { background-position: 0 0; } to { background-position: 260px 180px; } }

/* 4b. Hero scanlines */
.hero-scanlines {
  position: absolute; inset: -20% 0 0 0; z-index: 3; pointer-events: none; opacity: .08;
  background: repeating-linear-gradient(0deg, var(--accent) 0 1px, transparent 1px 3px);
  animation: scanDrift 8s linear infinite;
}
@keyframes scanDrift { from { transform: translateY(0); } to { transform: translateY(24px); } }

/* 4c. Occasional glitch on selected headings */
.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: none; -webkit-background-clip: initial; background-clip: initial;
}
.glitch::before { color: var(--accent); animation: glitchA 7s linear infinite; }
.glitch::after { color: var(--hot); animation: glitchB 7s linear infinite; }
@keyframes glitchA {
  0%, 91%, 100% { opacity: 0; }
  92% { opacity: .8; clip-path: inset(12% 0 58% 0); transform: translate(-4px, -2px); }
  94% { opacity: .8; clip-path: inset(62% 0 8% 0); transform: translate(3px, 1px); }
  96% { opacity: 0; }
}
@keyframes glitchB {
  0%, 91%, 100% { opacity: 0; }
  93% { opacity: .8; clip-path: inset(38% 0 34% 0); transform: translate(4px, 2px); }
  95% { opacity: .8; clip-path: inset(4% 0 78% 0); transform: translate(-3px, -1px); }
  97% { opacity: 0; }
}

/* 5. Kobe & Xero brought forward: framed HUD panel at front-left, trio shifted right */
.hero-squad .op-aiko { left: 16%; }
.hero-squad .op-katy { left: 58%; }
.hero-squad .op-kobe-xero {
  left: -3%; bottom: 7%; width: 47%; height: auto !important; z-index: 5;
  aspect-ratio: 4 / 3; object-fit: cover;
  border: 1px solid rgba(79,216,232,.55); border-radius: 6px;
  filter: brightness(1.25) saturate(1.1) drop-shadow(0 18px 30px rgba(0,0,0,.65));
  box-shadow: 0 0 28px rgba(79,216,232,.25);
}
.art-label-kx { right: auto; left: .5rem; bottom: .75rem; }

/* 6. Devlog transmission panel */
.section-transmission { border-block: 1px solid var(--line); }
.devlog-panel {
  display: grid; grid-template-columns: 38% 1fr; gap: 1.75rem; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1.5rem;
}
.devlog-thumb { display: block; }
.devlog-thumb img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border: 1px solid var(--line); border-radius: 4px; display: block;
}
.devlog-body h2 { margin: .4rem 0 .3rem; }
.devlog-date { color: var(--ink-dim); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .6rem; }
.devlog-extract { color: var(--ink-dim); }
.transmission-label {
  display: flex; align-items: center; gap: .5rem; margin: 0 0 .25rem;
  font-family: ui-monospace, Consolas, monospace; font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
}
.transmission-label::after {
  content: ""; width: .55em; height: 1em; background: var(--accent); opacity: .8;
  animation: caretBlink 1.1s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* 7. System-status indicators (decorative) */
.sys-status {
  display: flex; align-items: center; gap: .4rem; margin-left: auto;
  font-family: ui-monospace, Consolas, monospace; font-size: .62rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-dim); white-space: nowrap;
}
.sys-status-inline { margin: -1rem 0 1.5rem; margin-left: 0; }
.sys-dot {
  width: .5em; height: .5em; border-radius: 50%; background: #59f0c0;
  box-shadow: 0 0 8px rgba(89,240,192,.9); animation: dotBlink 2.4s ease-in-out infinite;
}
@keyframes dotBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.sys-bar {
  display: inline-block; width: 46px; height: 4px; margin-left: .4rem;
  background: rgba(79,216,232,.15); border-radius: 2px; overflow: hidden; position: relative;
}
.sys-bar::after {
  content: ""; position: absolute; inset: 0; width: 40%; background: var(--accent);
  animation: barScan 2.8s ease-in-out infinite;
}
@keyframes barScan { 0%, 100% { transform: translateX(-100%); } 50% { transform: translateX(250%); } }

/* Mobile adjustments */
@media (max-width: 900px) {
  .hero-squad .op-kobe-xero { left: 0; bottom: 9%; width: 44%; }
  .art-label-ops { bottom: auto; top: .5rem; }
  .art-label { font-size: .6rem; letter-spacing: .1em; }
  .section h2::before { animation: none; }
  .op-card, .feature-card, .enemy-card, .devlog-panel { animation: none; border-color: rgba(79,216,232,.3); }
  .devlog-panel { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 480px) {
  .sys-status:not(.sys-status-inline) { display: none; }
}

/* Motion safety */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal.is-visible { opacity: 1 !important; transform: none !important; }
  .hero-scanlines, .glitch::before, .glitch::after { display: none; }
}

/* ============ WEB-004: readable shots + lightbox ============ */

/* (b) Text-heavy shots: larger, never cropped */
.gp-readable { display: flex; flex-direction: column; gap: 2rem; margin-top: 1.5rem; column-count: auto; }
#gameplay .gp-readable > .gp-text { display: block; width: 100%; max-width: none; margin: 0; break-inside: avoid; column-span: none; }
.gp-readable .gp-shot { margin: 0; min-width: 0; }
.gp-text--wide { display: block; }
#gameplay .gp-readable > .gp-text--tall { display: flex; flex-direction: column; align-items: center; }
.gp-text--tall .zoom-trigger, .gp-text--tall > img, .gp-text--tall .transcript, .gp-text--tall figcaption { width: 100%; max-width: 642px; }
.gp-text img { width: 100%; height: auto; object-fit: contain; }
.gp-text--tall figcaption { font-size: 1.05rem; color: var(--ink); margin-top: .6rem; text-align: left; }

/* (c) Zoom trigger + enlarge hint */
.zoom-trigger {
  display: block; position: relative; width: 100%; padding: 0; border: 0;
  background: none; color: inherit; font: inherit; cursor: zoom-in; text-align: inherit;
}
.zoom-trigger:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 3px;
  box-shadow: 0 0 18px rgba(79,216,232,.55);
}
.enlarge-hint {
  position: absolute; right: .5rem; bottom: .5rem;
  font-family: ui-monospace, Consolas, monospace; font-size: .65rem;
  text-transform: uppercase; letter-spacing: .12em; color: var(--accent);
  background: rgba(7,10,16,.8); border: 1px solid var(--line);
  padding: .15rem .45rem; border-radius: 2px; pointer-events: none; opacity: .75;
}
.zoom-trigger:hover .enlarge-hint,
.zoom-trigger:focus-visible .enlarge-hint { opacity: 1; }
.enlarge-hint .hint-coarse { display: none; }

/* (a) Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(3,6,10,.9);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.lightbox-figure {
  position: relative; z-index: 1; margin: 0;
  display: flex; flex-direction: column; overflow: auto;
  max-width: min(1400px, calc(100% - 2rem)); max-height: calc(100vh - 2rem);
}
.lightbox-bar { display: flex; justify-content: flex-end; gap: .5rem; margin-bottom: .5rem; }
.lightbox-zoom, .lightbox-close {
  min-width: 44px; min-height: 44px; padding: .45rem .9rem;
  font: inherit; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent); background: rgba(7,10,16,.8);
  border: 1px solid var(--accent-dim); border-radius: 3px; cursor: pointer;
}
.lightbox-close { font-size: 1.35rem; line-height: 1; }
.lightbox-zoom:focus-visible, .lightbox-close:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 3px;
  box-shadow: 0 0 18px rgba(79,216,232,.55);
}
.lightbox-stage { flex: 1 1 auto; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.lightbox-img {
  width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 9rem);
  object-fit: contain; border: 1px solid var(--line);
}
.lightbox.has-transcript .lightbox-stage { flex: 0 0 auto; overflow: visible; }
.lightbox.has-transcript .lightbox-img { max-height: max(220px, calc(100vh - 25rem)); }
.lightbox-bar, .lightbox-transcript, .lightbox-caption { flex-shrink: 0; }
.lightbox-transcript { margin-top: .75rem; }
.lightbox.is-actual .lightbox-stage { display: block; overflow: auto; }
.lightbox.is-actual .lightbox-img { max-width: none; max-height: none; margin: 0 auto; }
.lightbox.is-actual.has-transcript .lightbox-img { max-height: none; }
.lightbox-caption { color: var(--ink); font-size: .95rem; padding: .75rem 0; margin: 0; }

/* Open animation: fade + scale .98 -> 1 */
.lightbox.is-open .lightbox-backdrop { animation: lbFade .2s ease; }
.lightbox.is-open .lightbox-figure { animation: lbOpen .2s ease; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbOpen { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 900px) {
  .gp-text--tall > img,
  .gp-text--tall .zoom-trigger { min-width: 0; max-width: 642px; margin-inline: auto; }
}

.transcript { margin-top: .75rem; background: #04080d; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 4px; padding: .85rem 1.1rem; }
.transcript-label { margin: 0 0 .45rem; font: 700 .72rem/1.2 ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.transcript-body p { margin: 0 0 .3rem; font-family: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace; font-size: 1.05rem; line-height: 1.55; color: #eef7fb; overflow-wrap: anywhere; }
.transcript-body .tx-speaker { color: var(--accent); font-weight: 700; margin-top: .2rem; }

@media (max-width: 480px) {
  .transcript-body p { font-size: 1rem; }
}

@media (hover: none), (pointer: coarse) {
  .enlarge-hint .hint-fine { display: none; }
  .enlarge-hint .hint-coarse { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox.is-open .lightbox-backdrop,
  .lightbox.is-open .lightbox-figure { animation: none; }
}
