/* ============================================================
   CSS CUSTOM PROPERTIES — WEACT CIVIC THEME
   Navy-blue action palette, civic and purposeful
============================================================ */
:root {
  --bg:             #EEF2F8;
  --bg-secondary:   #DDE6F3;
  --surface:        rgba(255, 255, 255, 0.76);
  --surface-solid:  #FFFFFF;
  --border:         rgba(60, 100, 170, 0.20);
  --border-solid:   #B5CCDF;
  --border-hi:      rgba(255, 255, 255, 0.68);
  --text-primary:   #0A1929;
  --text-secondary: #2D4A72;
  --text-muted:     #3D5C8A;
  --accent-text:    #0D3B82;
  --accent:         #1A57C0;
  --accent-btn-bg:  #0D3B82;
  --accent-light:   rgba(26, 87, 192, 0.12);
  --accent-lighter: rgba(26, 87, 192, 0.06);
  --shadow-sm:  0 2px 8px rgba(10, 40, 100, 0.08);
  --shadow-md:  0 8px 28px rgba(10, 40, 100, 0.12);
  --shadow-lg:  0 24px 56px rgba(10, 40, 100, 0.18);
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --radius-sm:  10px;
  --radius-md:  20px;
  --radius-lg:  28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus-color: #0D3B82;
}

/* ---- Dark mode ---- */
[data-theme="dark"] {
  --bg:             #080E1A;
  --bg-secondary:   #0D1525;
  --surface:        rgba(14, 24, 48, 0.88);
  --surface-solid:  #111D36;
  --border:         rgba(60, 100, 180, 0.22);
  --border-solid:   rgba(80, 130, 210, 0.30);
  --border-hi:      rgba(255, 255, 255, 0.08);
  --text-primary:   #E8F0FC;
  --text-secondary: #9DBBE8;
  --text-muted:     #6A96CC;
  --accent-text:    #7AAEE0;
  --accent:         #4A84D0;
  --accent-btn-bg:  #3A74C0;
  --accent-light:   rgba(60, 130, 220, 0.18);
  --accent-lighter: rgba(60, 130, 220, 0.09);
  --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.28);
  --shadow-md:  0 8px 28px rgba(0, 0, 0, 0.32);
  --shadow-lg:  0 24px 56px rgba(0, 0, 0, 0.44);
}

/* ---- High contrast ---- */
[data-contrast="high"] {
  --bg:             #FFFFFF;
  --bg-secondary:   #F0F4FF;
  --surface:        rgba(255, 255, 255, 0.98);
  --surface-solid:  #FFFFFF;
  --border:         #000066;
  --border-solid:   #000066;
  --text-primary:   #000000;
  --text-secondary: #000000;
  --text-muted:     #111111;
  --accent-text:    #000066;
  --accent:         #000066;
  --accent-btn-bg:  #000033;
  --accent-light:   #E0E8FF;
  --accent-lighter: #EEF2FF;
  --focus-color:    #000000;
}

[data-theme="dark"][data-contrast="high"] {
  --bg:             #000000;
  --bg-secondary:   #000A14;
  --surface:        rgba(0, 0, 0, 0.98);
  --surface-solid:  #000000;
  --border:         #FFFFFF;
  --border-solid:   #FFFFFF;
  --text-primary:   #FFFFFF;
  --text-secondary: #EEEEEE;
  --text-muted:     #DDDDDD;
  --accent-text:    #AACCFF;
  --accent:         #AACCFF;
  --accent-btn-bg:  #AACCFF;
  --accent-light:   #001A33;
  --accent-lighter: #000D1A;
  --focus-color:    #FFFFFF;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ============================================================
   FOCUS STATES — WCAG 2.4.11
============================================================ */
:focus { outline: none; }
:focus-visible {
  outline: 2px dashed var(--focus-color);
  outline-offset: 4px;
  border-radius: 3px;
}
.card:focus-visible,
.bento-card:focus-visible {
  outline: 2px dashed var(--focus-color);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}
a:focus-visible,
button:focus-visible {
  outline: 2px dashed var(--focus-color);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ============================================================
   SKIP LINK
============================================================ */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  padding: 8px 16px;
  background: var(--text-primary); color: var(--bg);
  font-size: 14px; font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 9999; text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ============================================================
   KEYFRAME ANIMATIONS
============================================================ */
@keyframes blobFloat1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(30px,-20px) scale(1.05); }
  66%      { transform: translate(-15px,15px) scale(0.97); }
}
@keyframes blobFloat2 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(-25px,20px) scale(1.03); }
  66%      { transform: translate(20px,-10px) scale(0.95); }
}
@keyframes fadeIn    { from { opacity:0 } to { opacity:1 } }
@keyframes slideLeft { from { opacity:0; transform:translateX(-20px) } to { opacity:1; transform:translateX(0) } }

/* ============================================================
   CUSTOM CURSOR
============================================================ */
/* Custom cursor — structure / behaviour / label-pill morph come from style.css
   (single source, zero-lag). Only the page accent colour is themed here. */
.cursor-dot { background: var(--accent); }
.cursor-ring { border-color: rgba(26, 87, 192, 0.38); }
.cursor-ring.hovering { border-color: var(--accent); }

/* ---- Reduced motion ---- */
[data-motion="reduced"] *,
[data-motion="reduced"] *::before,
[data-motion="reduced"] *::after {
  animation: none !important;
  scroll-behavior: auto !important;
}
[data-motion="reduced"] .hero-liquid-bg,
[data-motion="reduced"] .hero-glass-sheen,
[data-motion="reduced"] .case-hero { opacity: 1 !important; transform: none !important; }

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: var(--surface-solid);
  background: var(--surface);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
  padding: 28px 44px; width: 100%;
  transition: background 0.3s ease;
}
.footer-links {
  display: flex; gap: 32px; align-items: center; flex-wrap: wrap; justify-content: center;
}
.footer-links a {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none; color: var(--text-secondary);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-links a svg { width: 17px; height: 17px; transition: transform 0.2s ease; }
.footer-links a:hover svg { transform: translateY(-1px); }
.footer-bottom {
  position: relative; display: flex; align-items: center; width: 100%;
}
.footer-copyright {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 13px; color: var(--text-muted); white-space: nowrap;
}
.footer-top-btn {
  display: flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0;
  font-size: 13px; color: var(--text-muted);
  transition: color 0.2s ease; margin-left: auto;
}
.footer-top-btn:hover { color: var(--text-primary); }

/* ============================================================
   DIVIDER
============================================================ */
.divider {
  width: 200px; height: 1px;
  background: var(--border-solid); border: none; margin: 0;
}

/* ============================================================
   HOMEPAGE — MAIN
============================================================ */
main {
  display: flex; flex-direction: column; align-items: center;
  gap: 64px; padding: 88px 44px;
}

/* ============================================================
   HOMEPAGE — HERO
============================================================ */
.hero-wrapper {
  position: relative; width: 100%; max-width: 1212px;
  display: flex; justify-content: center;
}

.hero-liquid-bg,
.hero-glass-sheen {
  opacity: 0;
  will-change: transform, opacity;
}

.hero-liquid-bg {
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  z-index: 0; pointer-events: none;
}
.liquid-canvas {
  width: 100%; height: 100%;
  display: block;
}

.hero-glass-sheen {
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%,
      rgba(255,255,255,0.40) 0%,
      rgba(255,255,255,0.10) 45%,
      transparent 70%),
    linear-gradient(148deg, rgba(255,255,255,0.18) 0%, transparent 38%),
    linear-gradient(328deg, rgba(255,255,255,0.08) 0%, transparent 35%);
  box-shadow:
    inset 0   1.5px 0 rgba(255,255,255,0.88),
    inset 1.5px 0   0 rgba(255,255,255,0.50),
    inset -1.5px 0  0 rgba(255,255,255,0.35),
    inset 0  -1px   0 rgba(255,255,255,0.18);
}

.hero-wrapper::before, .hero-wrapper::after {
  content: ''; position: absolute; border-radius: 50%;
  z-index: 0; pointer-events: none;
}
.hero-wrapper::before {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(26,87,192,0.08) 0%, transparent 70%);
  top: -70px; left: -90px;
  animation: blobFloat1 12s ease-in-out infinite;
}
.hero-wrapper::after {
  width: 270px; height: 270px;
  background: radial-gradient(circle, rgba(100,160,240,0.14) 0%, transparent 70%);
  bottom: -50px; right: -50px;
  animation: blobFloat2 10s ease-in-out infinite;
}
.hero {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  padding: 72px 80px; width: 100%;
  background: var(--surface-solid);
  background: var(--surface);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 var(--border-hi), var(--shadow-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: background 0.3s ease, border-color 0.3s ease;
}
@supports not (backdrop-filter: blur(1px)) {
  .hero { background: var(--surface-solid); }
}
.hero-eyebrow {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2.8px; color: var(--accent-text);
  padding: 6px 18px;
  border: 1px solid var(--border-solid);
  border-radius: 9999px; background: var(--accent-lighter);
  animation: fadeIn 0.6s ease both;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: 66px; font-weight: 800; line-height: 1.1;
  text-align: center; color: var(--text-primary);
  letter-spacing: -1.5px; max-width: 880px;
}
.hero h1 .highlight { color: var(--accent-text); }
.underline-draw {
  display: block; width: 0%;
  height: 4px; margin-top: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
}
.hero-subtitle {
  font-size: 19px; line-height: 1.7;
  text-align: center; color: var(--text-secondary);
  max-width: 760px;
}

/* ============================================================
   HOMEPAGE — SECTION HEADINGS
============================================================ */
.section-heading {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--text-muted); text-align: center;
}

/* ============================================================
   HOMEPAGE — PROJECTS
============================================================ */
.projects-section {
  display: flex; flex-direction: column; align-items: center;
  gap: 40px; width: 100%; max-width: 1212px;
}
.cards {
  display: flex; gap: 28px; justify-content: center; width: 100%;
}
.card {
  display: flex; flex-direction: column;
  flex: 1 1 0; min-width: 0; max-width: 388px;
  border-radius: var(--radius-md);
  background: var(--surface-solid);
  background: var(--surface);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 var(--border-hi), var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
}
@supports not (backdrop-filter: blur(1px)) {
  .card { background: var(--surface-solid); }
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: inset 0 1px 0 var(--border-hi), var(--shadow-lg);
  border-color: var(--accent);
}
.card-image {
  position: relative; width: 100%;
  aspect-ratio: 4 / 3; overflow: hidden;
}
.card-image img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: top center;
  transition: transform 0.55s var(--ease), filter 0.55s ease;
}
.card--weact .card-image { background: var(--surface-solid); }
.card--weact .card-image img { object-fit: contain; object-position: center; }
.card:hover .card-image img {
  transform: scale(1.08);
  filter: blur(3px) brightness(0.48);
}
.card-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 22px;
  background: linear-gradient(to top,
    rgba(8,20,55,0.90) 0%,
    rgba(8,20,55,0.10) 60%,
    transparent 100%);
  opacity: 0; transition: opacity 0.4s ease;
}
.card:hover .card-overlay { opacity: 1; }
.card-overlay-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.card-overlay-tag {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.7px;
  color: #E8F0FC;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border-radius: 4px; padding: 4px 10px;
}
.card-overlay-impact { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.92); }
.card-overlay-impact strong { color: #fff; font-weight: 600; }
.card-text {
  display: flex; flex-direction: column;
  gap: 10px; padding: 24px 22px 22px; flex-grow: 1;
}
.card-text h3 {
  font-family: var(--font-heading);
  font-size: 21px; font-weight: 700;
  line-height: 1.25; letter-spacing: -0.3px;
  color: var(--text-primary);
}
.card-text p {
  font-size: 14px; line-height: 1.65;
  color: var(--text-secondary); flex-grow: 1;
}
.btn-magnetic { display: block; position: relative; margin-top: 10px; }
.btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 20px;
  background: var(--accent-light);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  color: var(--text-primary); text-decoration: none;
  cursor: pointer; width: 100%;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--accent-btn-bg); border-color: var(--accent-btn-bg); color: #fff; }
.btn svg { width: 13px; height: 13px; transition: transform 0.2s ease, filter 0.2s ease; }
.btn:hover svg { transform: translateX(3px); filter: brightness(10); }

/* ============================================================
   HOMEPAGE — BENTO GRID
============================================================ */
.bento-section {
  display: flex; flex-direction: column; align-items: center;
  gap: 36px; width: 100%; max-width: 1212px;
}
.bento-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; width: 100%;
}
.bento-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 38px 34px;
  background: var(--surface-solid);
  background: var(--surface);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-hi);
  box-shadow: inset 0 1px 0 var(--border-hi), var(--shadow-sm);
  border-radius: var(--radius-md);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              border-color 0.3s ease, background 0.3s ease;
}
@supports not (backdrop-filter: blur(1px)) {
  .bento-card { background: var(--surface-solid); border-color: var(--border-solid); }
}
.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 1px 0 var(--border-hi), var(--shadow-md);
  border-color: var(--accent);
}
.bento-header { display: flex; align-items: baseline; gap: 8px; }
.bento-number {
  font-family: var(--font-heading); font-size: 12px; font-weight: 700;
  color: var(--accent-text); letter-spacing: 1px;
}
.bento-sep { color: var(--text-muted); font-size: 12px; }
.bento-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2.2px; color: var(--text-muted);
}
.bento-card h3 {
  font-family: var(--font-heading); font-size: 22px; font-weight: 700;
  line-height: 1.25; letter-spacing: -0.3px; color: var(--text-primary);
}
.bento-logo-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--accent-lighter);
  border: 1px solid var(--border-solid);
  border-radius: 8px; width: fit-content;
}
.bento-logo { height: 26px; width: auto; object-fit: contain; }
.bento-logo-text { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.bento-card p { font-size: 14.5px; line-height: 1.75; color: var(--text-secondary); }

/* ============================================================
   CASE STUDY — MAIN LAYOUT
============================================================ */
.case-main {
  display: flex; flex-direction: column;
  align-items: center; width: 100%;
  padding: 0 !important; gap: 0 !important;
}

/* Hero */
.case-hero {
  width: 100%; max-width: 1212px;
  padding: 140px 64px 60px;
  display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 20px;
}
.case-eyebrow {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent); margin: 0;
}
.case-hero h1 {
  font-family: var(--font-heading);
  font-size: 88px; font-weight: 800;
  line-height: 1; letter-spacing: -3px;
  color: var(--text-primary);
}
.case-tagline {
  font-family: var(--font-heading);
  font-size: 28px; font-weight: 600; font-style: italic;
  color: var(--text-secondary); letter-spacing: -0.5px;
}
.case-hero .subtitle {
  font-size: 18px; line-height: 1.6;
  color: var(--text-secondary);
  max-width: 600px; letter-spacing: -0.12px;
}

/* CTA Button — solid civic action style */
.case-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 36px; margin-top: 8px;
  background: var(--accent);
  border: 1.5px solid var(--accent-btn-bg);
  border-radius: 10px;
  font-family: var(--font-body); font-size: 15px; font-weight: 700;
  color: #ffffff; text-decoration: none;
  cursor: pointer; width: fit-content;
  letter-spacing: -0.1px;
  box-shadow: 0 4px 16px rgba(13, 59, 130, 0.28);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.3s var(--ease), box-shadow 0.2s ease;
}
.case-btn:hover {
  background: var(--accent-btn-bg);
  border-color: var(--accent-btn-bg);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 59, 130, 0.38);
}
.case-btn svg {
  width: 14px; height: 14px;
  stroke: rgba(255, 255, 255, 0.9);
  transition: transform 0.2s ease;
}
.case-btn:hover svg { transform: translate(3px, -3px); }

/* Glass hero wrapper */
.hero-wrapper .case-hero {
  position: relative; z-index: 1;
  background: rgba(240, 246, 255, 0.10);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border: 1px solid rgba(200, 220, 255, 0.45);
  border-radius: var(--radius-lg);
  box-shadow:
    0 6px 48px rgba(10, 40, 120, 0.22),
    0 2px 12px rgba(10, 40, 120, 0.12),
    0 1px 0   rgba(255, 255, 255, 0.80);
  transition: background 0.3s ease, border-color 0.3s ease;
  padding: 56px;
  opacity: 0; will-change: transform, opacity;
}
[data-theme="dark"] .hero-wrapper .case-hero {
  background: rgba(8, 18, 55, 0.58);
  border-color: rgba(60, 120, 220, 0.18);
  box-shadow:
    0 6px 48px rgba(0, 5, 20, 0.55),
    0 2px 12px rgba(0, 5, 20, 0.35),
    0 1px 0   rgba(80, 150, 255, 0.10);
}
@media (max-width: 1023px) { .hero-wrapper .case-hero { padding: 44px; } }
@media (max-width: 799px)  { .hero-wrapper .case-hero { padding: 32px; } }

.hero-text-backdrop {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  padding: 40px 48px;
  border-radius: 18px;
  width: 100%; box-sizing: border-box;
  background: rgba(240, 246, 255, 0.42);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  position: relative; z-index: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72), 0 2px 16px rgba(10,40,120,0.10);
  will-change: transform, opacity;
}
[data-theme="dark"] .hero-text-backdrop {
  background: rgba(6, 14, 44, 0.62);
  box-shadow: inset 0 1px 0 rgba(80,150,255,0.12), 0 2px 16px rgba(0,0,0,0.28);
}
.hero-wrapper .case-hero .hero-text-backdrop { padding: 40px; }
.hero-wrapper .hero-text-backdrop .case-eyebrow,
.hero-wrapper .hero-text-backdrop h1,
.hero-wrapper .hero-text-backdrop .case-tagline,
.hero-wrapper .hero-text-backdrop .subtitle {
  text-shadow: 0 0 20px rgba(255,255,255,0.5), 0 1px 4px rgba(255,255,255,0.4);
}

/* Project Meta */
.case-meta {
  display: flex; justify-content: center; gap: 0;
  width: 100%; max-width: 1212px;
  padding: 0 64px 48px;
}
.meta-item {
  flex: 1; text-align: center;
  padding: 20px 24px;
  border-left: 1px solid var(--border);
}
.meta-item:first-child { border-left: none; }
.meta-label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 8px;
}
.meta-value {
  font-family: var(--font-heading);
  font-size: 16px; font-weight: 700;
  color: var(--text-primary); letter-spacing: -0.2px;
}

/* Phone mockups + logo */
.case-showcase {
  display: flex; align-items: center; justify-content: center;
  gap: 67px; padding: 48px 64px 0;
  width: 100%; max-width: 1212px;
}
.phone-pair { display: flex; align-items: center; position: relative; }
.phone-pair img { height: 500px; width: auto; object-fit: cover; border-radius: 28px; }
.phone-pair img:nth-child(2) { margin-left: -14px; transform: rotate(-2.5deg); }
.case-logo-img { max-width: 405px; height: auto; object-fit: contain; }

/* Overview Band */
.case-band {
  width: 100%;
  background: var(--bg-secondary);
  padding: 80px 0;
  margin-top: 64px;
  display: flex; justify-content: center;
}
.case-band-inner {
  width: 100%; max-width: 1212px;
  padding: 0 64px;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
.overview-card {
  padding: 40px;
  background: var(--surface);
  /* No backdrop-filter: these cards sit over the flat page bg (+ faint grain),
     not the hero orbs, so the live blur did nothing visible while costing a
     per-frame composite during scroll/reveal. */
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.overview-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.overview-card h3 {
  font-family: var(--font-heading);
  font-size: 24px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 16px;
  letter-spacing: -0.4px;
}
.overview-card p, .overview-card li {
  font-size: 16px; line-height: 1.65;
  color: var(--text-secondary); letter-spacing: -0.09px;
}
.overview-card ul { list-style: disc; padding-left: 20px; }
.overview-card li { margin-bottom: 4px; }
.overview-card .role-columns { display: flex; gap: 24px; }
.overview-card .role-columns ul { flex: 1; }

/* Stat Cards — civic badge style with accent top stripe */
.case-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 32px 16px;
  background: var(--surface);
  /* No backdrop-filter — inert over the flat bg; see .overview-card note. */
  border: 1px solid var(--border-hi);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 48px; font-weight: 800;
  color: var(--accent-btn-bg);
  letter-spacing: -1.5px; line-height: 1;
}
.stat-label {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  color: var(--text-muted); letter-spacing: -0.08px;
}

/* Case Divider */
.case-divider {
  width: 120px; border: none;
  border-top: 1.5px solid var(--border);
  margin: 20px 0;
}

/* Section Eyebrow */
.case-section {
  width: 100%;
  display: flex; flex-direction: column;
  align-items: center;
}
.section-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent);
  padding: 48px 64px 0;
  width: 100%; max-width: 1212px;
}
.section-num {
  font-family: var(--font-heading);
  font-size: 13px; font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: 6px;
}

/* Marquee */
.marquee-wrap {
  width: 100%; max-width: 1212px;
  overflow: hidden; padding: 20px 0 0;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.marquee-track {
  display: flex; align-items: center; gap: 32px;
  width: max-content; will-change: transform;
}
.marquee-name {
  font-family: var(--font-heading);
  font-size: 20px; font-weight: 700;
  color: var(--text-primary); letter-spacing: -0.3px;
  white-space: nowrap; flex-shrink: 0;
}
.marquee-sep {
  font-family: var(--font-heading);
  font-size: 20px; font-weight: 700;
  color: var(--accent); flex-shrink: 0;
}

/* Process pipeline */
.process-pipeline {
  display: flex; align-items: center; justify-content: center;
  padding: 20px 64px 40px; width: 100%; max-width: 1212px;
}
.process-pipeline-card {
  background: var(--surface);
  /* No backdrop-filter — inert over the flat bg; see .overview-card note. */
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  padding: 48px 48px; width: 100%;
  display: flex; align-items: flex-start; justify-content: center; gap: 8px;
}
.process-step { display: flex; flex-direction: column; align-items: center; gap: 15px; text-align: center; flex-shrink: 0; width: 90px; }
.process-icon {
  width: 52px; height: 52px; background: var(--accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease), background 0.2s ease;
}
.process-icon:hover { transform: translateY(-3px); background: var(--accent-btn-bg); }
.process-icon img { width: 24px; height: 24px; filter: brightness(10); }
.process-icon svg { width: 24px; height: 24px; }
.process-label { font-size: 14px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.08px; }
/* Arrow: align-self + margin-top centers it with the 52px icon (26 - 9 = 17px) */
.process-arrow {
  color: var(--text-muted); flex-shrink: 0;
  align-self: flex-start;
  margin-top: 17px;
  display: flex; align-items: center;
}
.process-arrow svg { width: 28px; height: 18px; stroke: var(--text-muted); }

/* Content rows */
.content-row {
  display: flex; gap: 64px; align-items: center; justify-content: center;
  padding: 48px 64px 40px; width: 100%; max-width: 1212px;
}
.content-row.reverse { flex-direction: row-reverse; }
.content-row .text-col { flex: 1; display: flex; flex-direction: column; gap: 24px; }
.content-row .image-col { flex: 1; display: flex; align-items: center; justify-content: center; }
.content-row h2 {
  font-family: var(--font-heading);
  font-size: 32px; font-weight: 700;
  line-height: 1.2; letter-spacing: -0.72px; color: var(--text-primary);
}
.content-row p, .content-row li { font-size: 16px; line-height: 1.65; color: var(--text-secondary); letter-spacing: -0.09px; }
.content-row p strong, .content-row p em { color: var(--text-primary); }
.content-row ul, .content-row ol { padding-left: 24px; }
.content-row ul { list-style: disc; }
.content-row ol { list-style: decimal; }
.content-row li { margin-bottom: 6px; }
.content-row img {
  max-width: 100%; height: auto;
  border-radius: var(--radius-sm);
}

.content-full { padding: 48px 64px 24px; width: 100%; max-width: 1212px; }
.case-section:last-child .content-full { padding-bottom: 96px; }
.content-full h2 {
  font-family: var(--font-heading);
  font-size: 32px; font-weight: 700;
  line-height: 1.2; letter-spacing: -0.72px; color: var(--text-primary); margin-bottom: 24px;
}
.content-full > p { font-size: 16px; line-height: 1.65; color: var(--text-secondary); margin-bottom: 24px; }
.content-full ul, .content-full ol { padding-left: 24px; margin-bottom: 8px; }
.content-full ul { list-style: disc; }
.content-full ol { list-style: decimal; }
.content-full li { font-size: 16px; line-height: 1.65; color: var(--text-secondary); letter-spacing: -0.09px; margin-bottom: 6px; }
.content-full li strong { color: var(--text-primary); }

/* Prototyping comparison */
.proto-compare {
  display: flex; align-items: center; justify-content: center;
  padding: 24px 64px 40px; width: 100%; max-width: 1212px;
}
.proto-compare img { max-height: 520px; width: auto; object-fit: contain; border-radius: var(--radius-sm); }
.proto-brace {
  font-family: var(--font-heading); font-size: 240px; line-height: 1;
  color: var(--accent); padding: 0 4px; user-select: none;
}
.deliverables-img { max-width: 945px; width: 100%; margin: 0 auto; display: block; border-radius: var(--radius-sm); }
.outcomes-img { max-width: 709px; width: 100%; border-radius: var(--radius-sm); }

/* Persona carousel */
.persona-carousel {
  position: relative; max-width: 540px; width: 100%;
  overflow: hidden; border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.persona-track { display: flex; transition: transform 0.5s var(--ease); }
.persona-track img { width: 100%; height: auto; flex-shrink: 0; border-radius: 0; box-shadow: none; }
.carousel-btns {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 100%; display: flex; justify-content: space-between;
  padding: 0 8px; pointer-events: none;
}
.carousel-btn {
  pointer-events: auto; background: var(--accent-light);
  border: none; border-radius: 6px; padding: 6px 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.carousel-btn:hover { background: var(--accent); }
.carousel-btn svg { width: 20px; height: 20px; stroke: var(--text-primary); }
.carousel-btn:hover svg { stroke: #fff; }

/* Reflection — Glass Cards */
.reflection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; padding-top: 32px;
}
.reflection-card {
  padding: 36px;
  background: var(--surface);
  /* No backdrop-filter — inert over the flat bg; see .overview-card note. */
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.reflection-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.reflection-card--wide {
  grid-column: 1 / -1;
}
.reflection-card h3 {
  font-family: var(--font-heading); font-size: 22px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 20px; letter-spacing: -0.12px;
}
.reflection-card p, .reflection-card li { font-size: 16px; line-height: 1.65; color: var(--text-secondary); letter-spacing: -0.09px; }
.reflection-card ul { list-style: disc; padding-left: 24px; }
.reflection-card li { margin-bottom: 10px; }
.reflection-card li strong { color: var(--text-primary); }
.skill-detail { margin-left: 20px; padding-left: 0; list-style: disc; margin-top: 2px; }
.skill-detail li { color: var(--text-secondary); font-weight: 400; margin-bottom: 4px; }

/* ============================================================
   REDUCED TRANSPARENCY
============================================================ */
@media (prefers-reduced-transparency: reduce) {
  .hero, .card, .bento-card, .process-pipeline-card {
    background: rgba(215, 230, 252, 0.96) !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  .overview-card, .reflection-card, .stat-card {
    background: rgba(225, 235, 252, 0.94) !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  [data-theme="dark"] .hero,
  [data-theme="dark"] .card,
  [data-theme="dark"] .bento-card,
  [data-theme="dark"] .process-pipeline-card,
  [data-theme="dark"] .overview-card,
  [data-theme="dark"] .stat-card,
  [data-theme="dark"] .reflection-card {
    background: rgba(8, 18, 52, 0.97) !important;
  }
}

/* ============================================================
   RESPONSIVE — TABLET  800–1279px
============================================================ */
@media (max-width: 1279px) {
  main { padding: 60px 28px; gap: 52px; }
  .hero { padding: 52px 44px; }
  .hero h1 { font-size: 48px; letter-spacing: -0.8px; }
  .hero-subtitle { font-size: 17px; }
  .cards { gap: 20px; }
  .card-text h3 { font-size: 18px; }
  .card-text p { font-size: 13px; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card:nth-child(3) { grid-column: span 2; }
  .bento-card h3 { font-size: 19px; }
  .bento-card { padding: 30px 26px; }
  .case-hero { padding: 100px 28px 48px; }
  .case-hero h1 { font-size: 64px; letter-spacing: -2px; }
  .case-tagline { font-size: 22px; }
  .case-meta { padding: 0 28px 40px; }
  .meta-item { padding: 16px 16px; }
  .case-showcase { flex-direction: column; gap: 40px; padding: 32px 28px 0; }
  .phone-pair img { height: 400px; }
  .case-logo-img { max-width: 300px; }
  .case-band { padding: 60px 0; margin-top: 48px; }
  .case-band-inner { padding: 0 28px; }
  .overview-grid { gap: 20px; margin-bottom: 32px; }
  .overview-card { padding: 32px; }
  .case-stats { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .stat-card { padding: 24px 12px; }
  .stat-number { font-size: 36px; }
  .process-pipeline { padding: 20px 28px 32px; }
  .process-pipeline-card { padding: 32px 16px; gap: 4px; }
  .process-step { gap: 10px; }
  .section-eyebrow { padding: 40px 28px 0; }
  .content-row { padding: 36px 28px 28px; gap: 40px; }
  .content-full { padding: 36px 28px 24px; }
  .proto-compare { padding: 20px 28px 40px; }
  .proto-compare img { max-height: 400px; }
  .reflection-grid { grid-template-columns: 1fr 1fr; }
  .reflection-card { padding: 28px; }
  footer { padding: 16px 28px; }
}

/* ============================================================
   RESPONSIVE — MOBILE  1–799px
============================================================ */
@media (max-width: 799px) {
  main { padding: 40px 18px; gap: 36px; }
  .hero-wrapper::before, .hero-wrapper::after { display: none; }
  .hero { padding: 40px 22px; gap: 20px; }
  .hero h1 { font-size: 34px; letter-spacing: -0.5px; }
  .hero-subtitle { font-size: 15px; }
  .cards { flex-direction: column; align-items: stretch; gap: 18px; }
  .card { flex: 0 0 auto; max-width: 100%; opacity: 1 !important; transform: none !important; }
  .card:hover { transform: none; box-shadow: var(--shadow-sm); }
  .card-text { padding: 20px 18px 18px; }
  .card-text h3 { font-size: 19px; }
  .card-text p { font-size: 14px; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card:nth-child(3) { grid-column: span 1; }
  .bento-card { padding: 26px 20px; gap: 12px; opacity: 1 !important; transform: none !important; }
  .bento-card h3 { font-size: 18px; }
  footer { padding: 16px 20px; }
  .footer-links { gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .case-hero { padding: 60px 18px 32px; gap: 16px; }
  .case-hero h1 { font-size: 48px; letter-spacing: -1.5px; }
  .case-tagline { font-size: 20px; }
  .case-hero .subtitle { font-size: 15px; }
  .case-btn { padding: 12px 28px; font-size: 14px; }
  .case-meta { flex-wrap: wrap; padding: 0 18px 32px; }
  .meta-item { flex: 1 1 40%; padding: 14px 12px; }
  .meta-item:nth-child(3) { border-left: none; }
  .marquee-name { font-size: 16px; }
  .marquee-sep { font-size: 16px; }
  .case-showcase { padding: 24px 18px 0; gap: 28px; }
  .phone-pair { flex-direction: column; }
  .phone-pair img { height: 340px; }
  .phone-pair img:nth-child(2) { margin-left: 0; margin-top: -20px; transform: rotate(-1deg); }
  .case-logo-img { max-width: 220px; }
  .case-band { padding: 48px 0; margin-top: 36px; }
  .case-band-inner { padding: 0 18px; }
  .overview-grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 24px; }
  .overview-card { padding: 28px; }
  .overview-card .role-columns { flex-direction: column; gap: 8px; }
  .case-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 24px 12px; }
  .stat-number { font-size: 36px; }
  .case-divider { width: 80px; }
  .section-eyebrow { padding: 32px 18px 0; font-size: 12px; }
  .process-pipeline { padding: 10px 18px 24px; }
  .process-pipeline-card {
    padding: 24px 20px;
    gap: 4px;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .process-pipeline-card::-webkit-scrollbar { display: none; }
  .process-step { gap: 8px; width: 76px; flex-shrink: 0; }
  .process-icon { width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0; }
  .process-icon img { width: 18px; height: 18px; }
  .process-label { font-size: 11px; }
  .process-arrow { margin-top: 11px; } /* (40px icon / 2) - (18px arrow / 2) = 11px */
  .process-arrow svg { width: 20px; height: 14px; }
  .content-row { flex-direction: column !important; padding: 28px 18px 20px; gap: 28px; }
  .content-row h2 { font-size: 26px; }
  .content-full { padding: 28px 18px 16px; }
  .content-full h2 { font-size: 26px; }
  .proto-compare { flex-direction: column; padding: 16px 18px 32px; gap: 0; }
  .proto-compare img { max-height: 320px; }
  .proto-brace { font-size: 80px; transform: rotate(90deg); }
  .reflection-grid { grid-template-columns: 1fr; gap: 12px; }
  .reflection-card { padding: 24px; }
}

/* ============================================================
   REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-wrapper::before, .hero-wrapper::after { animation: none; }
}

/* ============================================================
   PAGE TRANSITIONS — cross-document View Transitions API
   Chrome 126+; graceful no-op in other browsers.
============================================================ */
@view-transition {
  navigation: auto;
}

@keyframes vt-blur-out {
  to {
    opacity: 0;
    filter: blur(14px) saturate(1.5);
    transform: scale(1.03);
  }
}
@keyframes vt-blur-in {
  from {
    opacity: 0;
    filter: blur(14px) saturate(1.5);
    transform: scale(0.98);
  }
}

::view-transition-old(root) {
  animation: 350ms cubic-bezier(0.4, 0, 1, 1) vt-blur-out both;
}
::view-transition-new(root) {
  animation: 450ms cubic-bezier(0, 0, 0.2, 1) vt-blur-in both;
}

/* ============================================================
   WEACT — HERO TITLE GRADIENT
   Deep navy → civic blue, reads "We Act" in one sweep.
============================================================ */
.case-hero h1 {
  background: linear-gradient(135deg, #061E50 10%, #1A57C0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.case-tagline { color: var(--accent-text); font-style: italic; }

[data-theme="dark"] .case-hero h1 {
  background: linear-gradient(135deg, #7AAEE0 10%, #C2DCFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"] .case-tagline { color: rgba(154, 198, 252, 0.92); }
[data-theme="dark"] .case-hero .subtitle { color: rgba(157, 187, 232, 0.90); }
[data-theme="dark"] .case-eyebrow { color: rgba(122, 174, 224, 0.85); }

/* Dark mode CTA — use accent-btn-bg (#3A74C0) for 4.73:1 white text contrast */
[data-theme="dark"] .case-btn {
  background: var(--accent-btn-bg);
  border-color: var(--accent-btn-bg);
  box-shadow: 0 4px 16px rgba(0, 10, 40, 0.44);
}
[data-theme="dark"] .case-btn:hover {
  background: #5A94E0;
  border-color: #5A94E0;
  box-shadow: 0 8px 24px rgba(0, 10, 40, 0.55);
}
/* Dark+HC CTA — invert to outlined so #AACCFF text reads on dark bg (12.98:1) */
[data-theme="dark"][data-contrast="high"] .case-btn {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
}
[data-theme="dark"][data-contrast="high"] .case-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  box-shadow: none;
}

/* ============================================================
   WEACT — CIVIC STRUCTURAL TREATMENTS
============================================================ */

/* Section number → filled navy badge (civic tag/stamp) */
.section-num {
  background: var(--accent-btn-bg);
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 0.5px;
}
[data-theme="dark"] .section-num {
  background: var(--accent);
  color: #ffffff;
}

/* Section eyebrow — thin civic divider line beneath the label row */
.section-eyebrow {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

/* Overview band — defined top/bottom border for visual weight */
.case-band {
  border-top: 1px solid rgba(60, 100, 170, 0.18);
  border-bottom: 1px solid rgba(60, 100, 170, 0.18);
}
[data-theme="dark"] .case-band {
  border-top-color: rgba(60, 100, 180, 0.22);
  border-bottom-color: rgba(60, 100, 180, 0.22);
}

/* Process pipeline — subtle civic blue ambient gradient on the card */
.process-pipeline-card {
  background: linear-gradient(158deg,
    rgba(26, 87, 192, 0.07) 0%,
    var(--surface) 55%,
    rgba(26, 87, 192, 0.04) 100%);
  border-color: rgba(60, 100, 170, 0.22);
}
[data-theme="dark"] .process-pipeline-card {
  background: linear-gradient(158deg,
    rgba(60, 130, 220, 0.10) 0%,
    var(--surface) 55%,
    rgba(60, 130, 220, 0.06) 100%);
}

/* Overview cards — left accent stripe on hover (civic document feel) */
.overview-card {
  border-left: 3px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-left-color 0.25s ease;
}
.overview-card:hover {
  border-left-color: var(--accent);
}

/* Reflection cards — persistent left stripe on the wide skills card */
.reflection-card--wide {
  border-left: 3px solid var(--accent);
}
[data-theme="dark"] .reflection-card--wide {
  border-left-color: var(--accent);
}

/* Content h2 — compact accent underline draw beneath section headings */
.content-row h2,
.content-full h2 {
  position: relative;
  padding-bottom: 14px;
}
.content-row h2::after,
.content-full h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 36px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* Stat number — use full accent color for civic impact */
.stat-number {
  color: var(--accent-btn-bg);
}
[data-theme="dark"] .stat-number {
  color: var(--accent-text);
}


/* ============================================================
   LIGHTBOX
============================================================ */
img.zoomable {
  cursor: zoom-in;
  transition: transform 0.55s cubic-bezier(.34, 1.56, .64, 1), box-shadow 0.35s ease;
}
img.zoomable:hover {
  transform: translateY(-6px) scale(1.035);
  box-shadow: 0 20px 44px rgba(80,120,180,0.26), 0 6px 14px rgba(80,120,180,0.14);
}
[data-theme="dark"] img.zoomable:hover {
  box-shadow: 0 20px 50px rgba(2,8,30,0.60), 0 6px 16px rgba(2,8,30,0.38);
}
/* Hero phone pair: preserve the -2.5deg rotation on the second image while hovering */
.phone-pair img:nth-child(2).zoomable:hover {
  transform: translateY(-6px) scale(1.035) rotate(-2.5deg);
}
@media (prefers-reduced-motion: reduce) {
  img.zoomable { transition: none; }
}

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 12, 32, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 60px 16px 16px;
  box-sizing: border-box;
}
#lightbox.active { display: flex; }

#lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: lb-in 0.2s ease;
}
@keyframes lb-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
#lightbox-close:hover { background: rgba(255,255,255,0.24); }
