/* ─────────────────────────────────────────────────────────────
   SMARTIZ — styles
   Modern dark-navy / electric-blue design system.
   Every selector here mirrors exactly what app.js renders.
   ───────────────────────────────────────────────────────────── */

/* ── Design Tokens ──────────────────────────────────────── */
:root {
  --bg:           #020717;
  --surface:      #121a31;
  --surface-2:    #0a1b49;
  --border:       rgba(99, 162, 255, 0.12);

  --text:         #c7f0ff;
  --text-muted:   #8decff;
  --text-subtle:  #2f4882;

  --accent:       #3b82f6;
  --accent-light: #9dbee7;
  --accent-dim:   #1f4bc2;
  --accent-2:     #22d3ee;
  --accent-3:     #5a64c3;

  /* Work identity card (lightbox) accent colors — edit freely */
  --identity-sky:  #288a91;
  --identity-glow: #22d3ee;
  --identity-gray: #82a6a9;

  --grad-main:    linear-gradient(135deg, #3b82f6 0%, #818cf8 100%);
  --grad-text:    linear-gradient(125deg, #60a5fa 0%, #a5b4fc 45%, #22d3ee 100%);

  --ease:         cubic-bezier(.25, .46, .45, .94);
  --spring:       cubic-bezier(.34, 1.56, .64, 1);

  --font-body: 'Peyda', system-ui, sans-serif;
  --font-head: 'Peyda', system-ui, sans-serif;
  
  --radius:       16px;
  --glow:         0 0 0 1px rgba(99, 162, 255, .22), 0 18px 44px rgba(2, 6, 18, .5);
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.67rem;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* subtle dot-grid texture behind everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(99, 162, 255, 0.055) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
::selection { background: rgba(59, 130, 246, .45); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, .28);
  border-radius: 99px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(59, 130, 246, .45); }

/* ── Icon sizing (the fix) ──────────────────────────────── */
/* Every icon is an inline SVG with no intrinsic dimensions —
   give all SVGs a sane default, then fine-tune per component. */
svg { width: 18px; height: 18px; flex: none; }

/* ── Page-in transition (restarted by route() in app.js) ── */
#app {
  position: relative;
  z-index: 1;
  animation: pageIn .55s var(--ease) both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ── Scroll reveal (JS adds .visible) ───────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }

/* ── Ambient Background Blobs ───────────────────────────── */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.bg-blob.one {
  width: 560px; height: 560px;
  top: -160px; left: -140px;
  background: radial-gradient(circle, rgba(59, 130, 246, .20) 0%, rgba(29, 78, 216, .08) 60%, transparent 100%);
  animation: floatBlob 14s ease-in-out infinite;
}
.bg-blob.two {
  width: 480px; height: 480px;
  bottom: -120px; right: -100px;
  background: radial-gradient(circle, rgba(129, 140, 248, .18) 0%, rgba(34, 211, 238, .07) 60%, transparent 100%);
  animation: floatBlob 18s ease-in-out infinite reverse;
}
.bg-blob.three {
  width: 320px; height: 320px;
  top: 45%; left: 55%;
  background: radial-gradient(circle, rgba(34, 211, 238, .12) 0%, rgba(59, 130, 246, .05) 60%, transparent 100%);
  animation: floatBlob 22s ease-in-out infinite 4s;
}
@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(50px, -70px) scale(1.12); }
  66%      { transform: translate(-30px, 40px) scale(.94); }
}

/* ── Shared layout: .page sections ──────────────────────── */
.page {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 24px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  background: rgba(59, 130, 246, .12);
  border: 1px solid rgba(99, 162, 255, .25);
  color: var(--accent-light);
  margin-bottom: 20px;
}
.kicker::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: pulseDot 2s ease infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.5); opacity: .6; }
}

/* ── Navbar (header.nav, JS toggles .scrolled) ──────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 9, 26, .55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(4, 9, 26, .88);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 34px rgba(2, 6, 18, .55);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand img {
  height: 38px;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(59, 130, 246, .3);
}
.brand-name {
  font-family: var(--font-head);
  font-size: 1.27rem;
  font-weight: 700;
  letter-spacing: -.4px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  place-items: center;
  transition: background .2s, border-color .2s;
}
.nav-toggle:hover { background: rgba(99, 162, 255, .1); border-color: rgba(99, 162, 255, .3); }
.nav-toggle svg { width: 20px; height: 20px; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease), box-shadow .2s;
}
.nav-link svg { width: 15px; height: 15px; opacity: .85; }
.nav-link:hover { color: var(--accent-light); background: rgba(59, 130, 246, .1); }
.nav-link.active {
  color: #fff;
  background: var(--grad-main);
  box-shadow: 0 2px 16px rgba(59, 130, 246, .38);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 76px 24px 48px;
  text-align: center;
}
.hero-logo {
  height: clamp(110px, 20vw, 150px);
  width: auto;
  margin: 0 auto 20px;
  border-radius: 18px;
  filter: drop-shadow(0 14px 44px rgba(59, 130, 246, .38));
  animation: floatLogo 6s ease-in-out infinite;
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
.studio-name {
  font-family: var(--font-head);
  font-size: clamp(3.9rem, 3.9vw, 10.9rem);
  font-weight: 800;
  letter-spacing: -.03em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(34, 211, 238, .08);
  border: 1px solid rgba(34, 211, 238, .25);
  margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
  max-width: 820px;
  margin: 0 auto;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p.sub {
  max-width: 580px;
  margin: 18px auto 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}
.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 12px;
  font-size: .88rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: transform .25s var(--spring), box-shadow .3s, background .25s, border-color .25s;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, .35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, .5);
}
.btn-ghost {
  background: rgba(99, 162, 255, .08);
  color: var(--accent-light);
  border: 1px solid rgba(99, 162, 255, .25);
}
.btn-ghost:hover {
  background: rgba(99, 162, 255, .15);
  border-color: rgba(99, 162, 255, .45);
  transform: translateY(-2px);
}

/* animated scroll hint (mouse shape) */
.scroll-hint {
  width: 26px; height: 42px;
  margin: 46px auto 0;
  border: 2px solid rgba(99, 162, 255, .4);
  border-radius: 999px;
  position: relative;
}
.scroll-hint::before {
  content: '';
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 9px;
  margin-left: -2px;
  border-radius: 99px;
  background: var(--accent-light);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(15px); }
}

/* ── About band ──────────────────────────────────────────── */
.about-band {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 44px 40px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(8, 15, 36, .92), rgba(12, 23, 54, .55));
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(2, 6, 18, .45);
}
.about-band .kicker { margin-bottom: 16px; }
.about-band h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 12px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-band p { color: var(--text-muted); font-size: .95rem; max-width: 580px; margin: 0 auto; }

/* ── Section heads ───────────────────────────────────────── */
.section-head { text-align: center; margin-bottom: 42px; }
.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  display: inline-block;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-head h2::after {
  content: '';
  display: block;
  width: 46px; height: 3px;
  margin: 10px auto 0;
  border-radius: 99px;
  background: var(--grad-main);
}
.section-head p { margin-top: 12px; color: var(--text-muted); font-size: .95rem; }

/* ── Services ────────────────────────────────────────────── */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-card {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .35s var(--spring), border-color .3s, background .3s, box-shadow .35s;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-main);
  opacity: 0;
  transition: opacity .3s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 162, 255, .35);
  background: var(--surface-2);
  box-shadow: var(--glow);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--grad-main);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(59, 130, 246, .3);
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 {
  font-family: var(--font-head);
  font-size: .98rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.service-card p { font-size: .84rem; color: var(--text-muted); line-height: 1.65; }

/* ── Stats ──────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 30px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(59, 130, 246, .09), rgba(129, 140, 248, .06));
  border: 1px solid var(--border);
}
.stat { text-align: center; padding: 12px 8px; border-radius: 14px; }
.stat .num {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat .lbl { margin-top: 8px; font-size: .78rem; color: var(--text-muted); }

/* ── Work grid (home) ───────────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.work-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .4s var(--spring), box-shadow .4s, border-color .3s;
}
.work-card img,
.work-card video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 162, 255, .4);
  box-shadow: var(--glow), 0 0 34px rgba(59, 130, 246, .12);
}
.work-card:hover img,
.work-card:hover video { transform: scale(1.05); }
.overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(to top, rgba(4, 9, 26, .92) 0%, rgba(4, 9, 26, .25) 55%, transparent 100%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.work-card:hover .overlay { opacity: 1; }
.overlay h3 {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.overlay span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent-light);
}
.overlay span svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.work-card:hover .overlay span svg { transform: translateX(4px); }

/* touch devices have no hover — keep the overlay visible */
@media (hover: none) {
  .work-card .overlay { opacity: 1; }
}

/* ── Gallery hero ────────────────────────────────────────── */
.gallery-hero {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 60px 24px 20px;
  text-align: center;
}
.gallery-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.03em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gallery-hero p {
  max-width: 560px;
  margin: 14px auto 0;
  color: var(--text-muted);
  font-size: .96rem;
}

/* ── Gallery grid ────────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.g-item {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: zoom-in;
  outline: none;
  transition: transform .35s var(--spring), box-shadow .35s, border-color .3s;
}
.g-item img,
.g-item video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}
.g-item:hover,
.g-item:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(99, 162, 255, .4);
  box-shadow: var(--glow);
}
.g-item:hover img,
.g-item:hover video { transform: scale(1.06); }
.zoom-badge {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(4, 9, 26, .65);
  border: 1px solid rgba(99, 162, 255, .35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  color: #fff;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .3s, transform .3s var(--spring);
}
.g-item:hover .zoom-badge,
.g-item:focus-visible .zoom-badge { opacity: 1; transform: scale(1); }
.zoom-badge svg { width: 14px; height: 14px; }
@media (hover: none) {
  .g-item .zoom-badge { opacity: .9; transform: scale(1); }
}

.gallery-empty {
  max-width: 560px;
  margin: 24px auto;
  padding: 52px 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: .95rem;
  border: 1px dashed rgba(99, 162, 255, .3);
  border-radius: var(--radius);
  background: rgba(8, 15, 36, .5);
}

/* ── Contact ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .35s var(--spring), border-color .3s, background .3s, box-shadow .35s;
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 162, 255, .35);
  background: var(--surface-2);
  box-shadow: var(--glow);
}
.contact-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  flex: none;
  display: grid;
  place-items: center;
  background: rgba(59, 130, 246, .14);
  border: 1px solid rgba(99, 162, 255, .25);
  color: var(--accent-light);
  transition: background .3s, color .3s, box-shadow .3s;
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-card:hover .contact-icon {
  background: var(--grad-main);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(59, 130, 246, .35);
}
.contact-card .label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-card .value {
  font-size: .94rem;
  font-weight: 500;
  color: var(--text);
  margin-top: 2px;
  word-break: break-word;
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  border-top: 1px solid var(--border);
  background: rgba(4, 9, 26, .6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 24px 36px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
}
.footer-brand .name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.4px;
  margin-bottom: 10px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-brand p { font-size: .85rem; color: var(--text-muted); max-width: 300px; }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .6px;
  margin-bottom: 14px;
  color: var(--text);
}
.footer-col a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  font-size: .85rem;
  color: var(--text-muted);
  transition: color .2s, transform .2s var(--ease);
}
.footer-col a svg { width: 15px; height: 15px; color: var(--accent); opacity: .9; }
.footer-col a:hover { color: var(--accent-light); transform: translateX(3px); }
.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: .78rem;
  color: var(--text-subtle);
}

/* ── Lightbox (JS toggles .show) ─────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(2, 6, 18, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.show { opacity: 1; visibility: visible; }
.lightbox-content {
  max-width: min(1080px, 94vw);
  max-height: 88vh;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(99, 162, 255, .2);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
  transform: scale(.95);
  transition: transform .4s var(--spring);
}
.lightbox.show .lightbox-content { transform: scale(1); }
.identity-media img,
.identity-media video {
  max-width: 100%;
  max-height: 52vh;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  background: #000;
}

/* ── Work identity card (inside the lightbox) ─────────────────── */
.identity-card {
  display: grid;
  grid-template-columns: minmax(220px, 38%) 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "media tag"
    "media desc";
  gap: 6px 28px;
  padding: 28px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
}
.identity-media {
  grid-area: media;
  display: flex;
  flex-direction: column;
}
.identity-title {
  margin-top: 14px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--identity-sky);
}
.identity-tag {
  grid-area: tag;
  justify-self: end;
  align-self: start;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--identity-glow);
  text-shadow: 0 0 14px rgba(34, 211, 238, .65);
  white-space: nowrap;
}
.identity-desc {
  grid-area: desc;
  margin-top: 6px;
  color: var(--identity-gray);
  font-size: .95rem;
  line-height: 1.75;
}
@media (max-width: 760px) {
  .identity-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas: "media" "tag" "desc";
    gap: 10px;
    padding: 20px;
  }
  .identity-tag { justify-self: start; }
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background .25s, transform .25s var(--spring);
}
.lightbox-close svg,
.lightbox-nav svg { width: 18px; height: 18px; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-nav.prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover { background: rgba(255, 255, 255, .22); transform: scale(1.06); }
.lightbox-nav.prev:hover { background: rgba(255, 255, 255, .22); transform: translateY(-50%) scale(1.06); }
.lightbox-nav.next:hover { background: rgba(255, 255, 255, .22); transform: translateY(-50%) scale(1.06); }

/* ── Back-to-top (JS toggles .show) ─────────────────────── */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--grad-main);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(59, 130, 246, .38);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .3s, transform .3s var(--spring), box-shadow .3s;
  padding: 0;
}
.to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.to-top:hover {
  box-shadow: 0 12px 32px rgba(59, 130, 246, .55);
  transform: translateY(-3px);
}
.to-top svg { width: 18px; height: 18px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px 16px 18px;
    background: rgba(4, 9, 26, .97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 44px rgba(2, 6, 18, .6);
    display: none;
  }
  .nav-links.open { display: flex; animation: menuIn .25s var(--ease); }
  .nav-link { padding: 12px 14px; border-radius: 10px; font-size: .9rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; padding: 40px 24px 28px; }
  .about-band { padding: 34px 24px; }
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  .page { padding: 44px 18px; }
  .hero { padding: 56px 18px 40px; }
  .hero-ctas .btn { padding: 11px 20px; }
  .services { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stats { padding: 22px 16px; }
  .lightbox-nav { display: none; }
  .to-top { width: 40px; height: 40px; right: 16px; bottom: 16px; }
  .brand-name { font-size: .92rem; }
}

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
