/* ============================================
   TONGAI ZINAKA — DATA ANALYST PORTFOLIO
   Design system: dark / technical / data-viz
   ============================================ */

:root {
  /* Color tokens */
  --ink: #030509;
  --ink-soft: #060911;
  --panel: #0c121d;
  --panel-border: #1c2438;
  --slate: #8b95a7;
  --slate-dim: #5b6478;
  --white: #f5f7fa;
  --signal: #f2b705;
  --signal-dim: #7a5f0a;
  --teal: #2dd4bf;
  --teal-dim: #103330;

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --max-width: 1120px;
  --radius: 10px;
  --nav-height: 76px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle ambient grid backdrop */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(242, 183, 5, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 183, 5, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 75%);
}

a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--signal); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.mono { font-family: var(--font-mono); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--signal);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(242, 183, 5, 0.15);
}

.section-heading {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
}

.lead {
  color: var(--slate);
  font-size: 18px;
  max-width: 620px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--signal);
  color: #1a1400;
}
.btn-primary:hover {
  color: #1a1400;
  box-shadow: 0 10px 30px -8px rgba(242, 183, 5, 0.5);
}
.btn-ghost {
  background: transparent;
  border-color: var(--panel-border);
  color: var(--white);
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ============ Navigation ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), height 0.4s var(--ease);
}
.navbar.scrolled {
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
  height: 64px;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand::before {
  content: '>';
  color: var(--signal);
}
.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 14px;
  color: var(--slate);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--signal);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--signal); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--signal); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    left: 0;
    flex-direction: column;
    background: rgba(11, 17, 32, 0.98);
    backdrop-filter: blur(10px);
    padding: 24px 28px;
    gap: 20px;
    border-bottom: 1px solid var(--panel-border);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ============ Hero ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--signal); }
.hero-query {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--teal);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 26px;
  display: inline-block;
  min-height: 24px;
}
.hero-query .cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--teal);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Signature: chart that draws itself */
.chart-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 26px;
  position: relative;
}
.viz-stage {
  height: 220px;
  position: relative;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.viz-stage svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.viz-bar {
  fill: var(--teal);
  transition: height 0.9s var(--ease), y 0.9s var(--ease);
}
.viz-bar.highlight { fill: var(--signal); }
.viz-axis-label {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--slate-dim);
}
.viz-donut-seg {
  fill: none;
  stroke-width: 26;
  transition: stroke-dashoffset 1s var(--ease);
}
.viz-legend-dot { transition: opacity 0.5s ease; }
.viz-line-path { transition: stroke-dashoffset 1.4s var(--ease); }
.viz-line-area { transition: opacity 0.8s ease; }
.viz-line-dot { transition: opacity 0.5s ease, transform 0.5s var(--ease); transform-origin: center; }
.viz-scatter-dot { transition: opacity 0.6s ease, transform 0.6s var(--ease); transform-origin: center; }

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--slate-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-cue span:first-child {
  animation: textpulse 2.2s ease-in-out infinite;
}
.scroll-cue .arrow {
  width: 14px;
  height: 14px;
  border-right: 1px solid var(--slate-dim);
  border-bottom: 1px solid var(--slate-dim);
  transform: rotate(45deg);
  animation: arrowbounce 1.8s ease-in-out infinite;
}
@keyframes textpulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
@keyframes arrowbounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.3; }
  50% { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

/* ============ Sections ============ */
.section {
  padding: 120px 0;
  position: relative;
}
.section-alt { background: var(--ink-soft); }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.skill-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  color: var(--slate);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.skill-tag:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

.about-figure {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 30px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
  line-height: 1.9;
}
.about-figure .k { color: var(--teal); }
.about-figure .v { color: var(--signal); }

/* ============ Stats ============ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr; gap: 50px; }
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 64px);
  color: var(--signal);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  color: var(--white);
  font-weight: 600;
  margin-top: 6px;
}
.stat-desc {
  color: var(--slate);
  font-size: 14px;
  margin-top: 8px;
}

/* ============ Projects ============ */
.projects-grid {
  display: grid;
  gap: 28px;
}
.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.project-card:hover {
  border-color: var(--panel-border);
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.5);
}
@media (max-width: 860px) {
  .project-card { grid-template-columns: 1fr; }
}
.project-media {
  overflow: hidden;
  position: relative;
  min-height: 220px;
  background: linear-gradient(135deg, var(--ink-soft), var(--panel));
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.project-card:hover .project-media img { transform: scale(1.06); }
.project-body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-dim);
  margin-bottom: 10px;
}
.project-body h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.project-body p {
  color: var(--slate);
  font-size: 15px;
  margin-bottom: 20px;
}
.project-link {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.project-link:hover { gap: 10px; color: var(--signal); }

/* ============ CTA ============ */
.cta-panel {
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 70px 40px;
  position: relative;
  overflow: hidden;
}
.cta-panel::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(242,183,5,0.12), transparent 70%);
  top: -150px; left: 50%;
  transform: translateX(-50%);
}
.cta-panel h2 { margin-bottom: 16px; }
.cta-panel .lead { margin: 0 auto 30px; }

/* ============ Footer ============ */
footer {
  border-top: 1px solid var(--panel-border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0; margin: 0;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--slate);
  font-size: 14px;
  transition: color 0.25s var(--ease);
}
.footer-links a:hover { color: var(--signal); }
.copyright {
  color: var(--slate-dim);
  font-size: 13px;
  font-family: var(--font-mono);
}

/* ============ Back to top ============ */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--signal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
  z-index: 90;
}
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { border-color: var(--signal); }

/* ============ Page intro (sub-pages) ============ */
.page-intro {
  padding: calc(var(--nav-height) + 80px) 0 60px;
}
.page-intro .eyebrow { margin-bottom: 18px; }

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.contact-link:hover {
  border-color: var(--teal);
  transform: translateX(6px);
}
.contact-link .icon {
  width: 20px; height: 20px;
  color: var(--signal);
  flex-shrink: 0;
}
.contact-link .label {
  font-size: 12px;
  color: var(--slate-dim);
  font-family: var(--font-mono);
  display: block;
}
.contact-link .value {
  font-weight: 600;
  font-size: 15px;
}

.form-group { margin-bottom: 20px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}
label {
  display: block;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--slate);
  margin-bottom: 8px;
}
input, textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}
textarea { resize: vertical; min-height: 130px; }

/* ============ Analytics app page ============ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-media { order: -1; }
}
.feature-row.reverse .feature-media { order: 2; }
.feature-media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
}
.feature-media img { width: 100%; display: block; }

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
  margin-top: 20px;
}

/* Resume placeholder */
.resume-empty {
  text-align: center;
  padding: 100px 0;
}
.resume-empty .icon-box {
  width: 70px; height: 70px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--signal);
}

/* ============ Resume page (real embed) ============ */
.resume-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 28px 0 40px;
  flex-wrap: wrap;
}
.resume-embed {
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
}
.resume-embed embed {
  display: block;
  width: 100%;
  height: 82vh;
  min-height: 500px;
}

/* ============ Hero rotating tagline ============ */
.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2.4vw, 22px);
  color: var(--teal);
  min-height: 1.6em;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
}
.hero-tagline .cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--teal);
  margin-left: 3px;
  animation: blink 1s step-end infinite;
}

/* ============ Core competency cards ============ */
.competency-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 960px) {
  .competency-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .competency-grid { grid-template-columns: 1fr; }
}
.competency-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 28px 22px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.competency-card:hover {
  transform: translateY(-6px);
  border-color: var(--teal);
}
.competency-card .icon {
  width: 40px;
  height: 40px;
  color: var(--signal);
  margin-bottom: 16px;
}
.competency-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}
.competency-card p {
  color: var(--slate);
  font-size: 14px;
  margin: 0;
}

/* ============ Project showcase carousel ============ */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .showcase-grid { grid-template-columns: 1fr; gap: 34px; }
}
.showcase-carousel {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  aspect-ratio: 4 / 3;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s var(--ease);
}
.carousel-slide {
  min-width: 100%;
  height: 100%;
  cursor: zoom-in;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(11, 17, 32, 0.75);
  border: 1px solid var(--panel-border);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
  z-index: 2;
}
.carousel-arrow:hover { border-color: var(--signal); color: var(--signal); }
.carousel-arrow.prev { left: 14px; }
.carousel-arrow.next { right: 14px; }
.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.carousel-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(245, 247, 250, 0.35);
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.carousel-dots .dot.active {
  background: var(--signal);
  transform: scale(1.3);
}
.showcase-caption {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--white);
  background: rgba(11, 17, 32, 0.75);
  border: 1px solid var(--panel-border);
  padding: 5px 10px;
  border-radius: 20px;
  z-index: 2;
}

/* ============ Lightbox ============ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 18, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  padding: 40px;
}
.lightbox-overlay.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  transform: scale(0.96);
  transition: transform 0.3s var(--ease);
}
.lightbox-overlay.open img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 26px;
  right: 30px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.lightbox-close:hover { border-color: var(--signal); color: var(--signal); }
.gif-frame {
  cursor: zoom-in;
  position: relative;
}
.gif-frame::after {
  content: '⤢ tap to enlarge';
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--white);
  background: rgba(11, 17, 32, 0.75);
  border: 1px solid var(--panel-border);
  padding: 4px 10px;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.gif-frame:hover::after { opacity: 1; }
