/* =========================================
   Viell Advisory – Stylesheet
   ========================================= */

/* Custom Properties */
:root {
  --bg-dark:       #0a0f1e;
  --bg-dark-alt:   #0f172a;
  --bg-dark-card:  #1e293b;
  --primary:       #3b82f6;
  --primary-dark:  #2563eb;
  --secondary:     #8b5cf6;
  --gradient:      linear-gradient(135deg, #3b82f6, #8b5cf6);
  --text-dark:     #f1f5f9;
  --text-muted-dark: #94a3b8;
  --bg-light:      #ffffff;
  --bg-light-alt:  #f8fafc;
  --text-light:    #1e293b;
  --text-muted:    #64748b;
  --border:        #e2e8f0;
  --border-dark:   #334155;
  --success:       #22c55e;
  --error:         #ef4444;
  --max-w:         1100px;
  --radius:        10px;
  --radius-lg:     16px;
  --shadow:        0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg:     0 20px 25px -5px rgba(0,0,0,0.10), 0 8px 10px -6px rgba(0,0,0,0.05);
  --transition:    0.25s ease;
  --nav-h:         70px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-light);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; }

/* Typography */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--text-muted); line-height: 1.75; }

/* Layout */
.container  { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section--dark    { background: var(--bg-dark); color: var(--text-dark); }
.section--dark p  { color: var(--text-muted-dark); }
.section--alt     { background: var(--bg-light-alt); }

.section__header  { text-align: center; margin-bottom: 3.5rem; }
.section__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(59,130,246,0.08);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.section--dark .section__tag { color: #93c5fd; background: rgba(59,130,246,0.12); }
.section__header h2 { margin-bottom: 0.75rem; }
.section__header p  { max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* Gradient Text */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--gradient);
  color: #fff;
}
.btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(59,130,246,0.35);
}
.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}


/* =====================
   Navigation
   ===================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: all var(--transition);
}
.nav.scrolled {
  background: rgba(10,15,30,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dark);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}
.nav__logo-name  { white-space: nowrap; }
.nav__logo-claim {
  font-weight: 400;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}
@media (max-width: 900px) {
  .nav__logo-claim { display: none; }
}
.nav__logo-badge {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__link {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav__link:hover,
.nav__link.active { color: #fff; }
.nav__link:hover::after,
.nav__link.active::after { transform: scaleX(1); }
.nav__cta { margin-left: 0.75rem; }

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--bg-dark-alt);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    border-bottom: 1px solid var(--border-dark);
  }
  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__link { color: var(--text-dark); font-size: 1.05rem; }
  .nav__cta { margin-left: 0; }
}


/* =====================
   Hero
   ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  overflow: hidden;
}
/* Grid pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
/* Ambient glow */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 55%, rgba(59,130,246,0.2) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(139,92,246,0.13) 0%, transparent 50%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding-top: var(--nav-h);
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 1.75rem;
}
.hero__tag::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
  flex-shrink: 0;
}
.hero h1 { color: #fff; margin-bottom: 1.5rem; }
.hero__sub {
  font-size: 1.1rem;
  color: var(--text-muted-dark);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}
.hero__trust span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.25);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1;
}
.hero__scroll-line {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, rgba(59,130,246,0.7), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.4; transform: scaleY(0.6); }
}


/* =====================
   Services
   ===================== */
.services { background: var(--bg-light-alt); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.service-card__icon--blue   { background: rgba(59,130,246,0.1);  color: var(--primary); }
.service-card__icon--green  { background: rgba(22,163,74,0.1);   color: #16a34a; }
.service-card__icon--purple { background: rgba(139,92,246,0.1);  color: var(--secondary); }
.service-card h3    { color: var(--text-light); margin-bottom: 0.65rem; }
.service-card > p   { font-size: 0.9rem; margin-bottom: 1.25rem; }
.service-card ul    { display: flex; flex-direction: column; gap: 0.45rem; }
.service-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.service-card li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
  margin-top: 0.45em;
}


/* =====================
   Expertise
   ===================== */
.expertise { background: var(--bg-dark); }
.expertise__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 4rem;
}
.stat {
  background: var(--bg-dark-alt);
  padding: 2rem 1.25rem;
  text-align: center;
  border-right: 1px solid var(--border-dark);
}
.stat:last-child { border-right: none; }
.stat__number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat__label { font-size: 0.85rem; color: var(--text-muted-dark); }

.expertise__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.expertise__text h2  { color: var(--text-dark); margin-bottom: 1rem; }
.expertise__text p   { margin-bottom: 1.1rem; }
.expertise__quals    { display: flex; flex-direction: column; gap: 1rem; }
.qual {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color var(--transition);
}
.qual:hover { border-color: rgba(59,130,246,0.4); }
.qual__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.qual__title { font-size: 0.9rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.2rem; }
.qual__sub   { font-size: 0.8rem; color: var(--text-muted-dark); line-height: 1.4; }

.expertise__badges {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.expertise__badges-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #93c5fd;
  background: rgba(59,130,246,0.12);
  padding: 0.25rem 0.8rem;
  border-radius: 100px;
  width: fit-content;
}
.expertise__badges-row {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.expertise__badge-link {
  display: inline-block;
  border-radius: 50%;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.expertise__badge-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.expertise__badge-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  display: block;
  opacity: 0.92;
  transition: opacity 0.25s ease;
}
.expertise__badge-link:hover .expertise__badge-img { opacity: 1; }
.expertise__badges-sub {
  font-size: 0.8rem;
  color: var(--text-muted-dark);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .expertise__stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1),
  .stat:nth-child(2) { border-bottom: 1px solid var(--border-dark); }
  .expertise__content { grid-template-columns: 1fr; gap: 2rem; }
}


/* =====================
   Why / USP
   ===================== */
.why { background: var(--bg-light); }
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.why-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-light-alt);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.why-card__num {
  font-size: 2.25rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}
.why-card h3 { color: var(--text-light); margin-bottom: 0.5rem; }
.why-card p  { font-size: 0.9rem; }


/* =====================
   Contact
   ===================== */
.contact { background: var(--bg-light-alt); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 4rem;
  align-items: start;
}
.contact__info .section__tag { display: inline-block; margin-bottom: 1rem; }
.contact__info h2 { margin-bottom: 1rem; }
.contact__info > p { margin-bottom: 2rem; }
.contact__details { display: flex; flex-direction: column; gap: 0.9rem; }
.contact__detail {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.contact__detail-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(59,130,246,0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact__detail a:hover { color: var(--primary); text-decoration: underline; }

/* Form */
.form {
  background: #fff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.form__row     { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__group   { margin-bottom: 1.2rem; }
.form__group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}
.form__group .req { color: var(--primary); margin-left: 2px; }
.form__group input,
.form__group textarea,
.form__group select {
  width: 100%;
  padding: 0.72rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-light);
  background: var(--bg-light);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form__group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form__group input:focus,
.form__group textarea:focus,
.form__group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.form__group textarea { resize: vertical; min-height: 130px; }

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.form__check input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--primary);
}
.form__check label { font-size: 0.82rem; color: var(--text-muted); cursor: pointer; line-height: 1.5; }
.form__check a { color: var(--primary); text-decoration: underline; }

.form__honeypot { display: none !important; }

.form__hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: -0.25rem 0 1rem;
}

.form__submit {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border: none;
}
.form__submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

.form__message {
  display: none;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.form__message.success {
  display: block;
  background: rgba(34,197,94,0.08);
  color: #15803d;
  border: 1px solid rgba(34,197,94,0.25);
}
.form__message.error {
  display: block;
  background: rgba(239,68,68,0.07);
  color: #b91c1c;
  border: 1px solid rgba(239,68,68,0.18);
}

@media (max-width: 860px) {
  .contact__inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
  .form      { padding: 1.5rem; }
}


/* =====================
   Footer
   ===================== */
.footer {
  background: var(--bg-dark);
  padding: 2.25rem 0;
  border-top: 1px solid var(--border-dark);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__copy  { font-size: 0.83rem; color: var(--text-muted-dark); }
.footer__badges {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.footer__badge-link {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  opacity: 0.75;
}
.footer__badge-link:hover { opacity: 1; transform: translateY(-1px); }
.footer__badge-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}
.footer__links { display: flex; gap: 1.5rem; }
.footer__link  {
  font-size: 0.83rem;
  color: var(--text-muted-dark);
  transition: color var(--transition);
}
.footer__link:hover { color: var(--text-dark); }


/* =====================
   Inner Pages (Impressum, Datenschutz)
   ===================== */
.page-hero {
  background: var(--bg-dark);
  padding: calc(var(--nav-h) + 3.5rem) 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero h1 { position: relative; z-index: 1; color: #fff; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.page-hero p  { position: relative; z-index: 1; color: var(--text-muted-dark); margin-top: 0.75rem; }

.page-content         { padding: 4rem 0 5rem; max-width: 760px; margin: 0 auto; }
.page-content h2      { font-size: 1.3rem; margin: 2.5rem 0 0.65rem; color: var(--text-light); padding-top: 1rem; border-top: 1px solid var(--border); }
.page-content h2:first-child { border-top: none; margin-top: 0; }
.page-content h3      { font-size: 1rem; margin: 1.5rem 0 0.4rem; color: var(--text-light); }
.page-content p       { font-size: 0.95rem; margin-bottom: 0.85rem; }
.page-content ul      { margin: 0.5rem 0 1rem 1.5rem; }
.page-content ul li   { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0.35rem; list-style: disc; }
.page-content a       { color: var(--primary); text-decoration: underline; }
.page-content address { font-style: normal; }


/* =====================
   Fade-in Animation
   ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in--d1 { transition-delay: 0.1s; }
.fade-in--d2 { transition-delay: 0.2s; }
.fade-in--d3 { transition-delay: 0.3s; }


/* =====================
   Misc responsive
   ===================== */
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; justify-content: center; }
  .expertise__stats { grid-template-columns: 1fr 1fr; }
  .stat { border-right: none; }
  .stat:nth-child(1),
  .stat:nth-child(2) { border-bottom: 1px solid var(--border-dark); }
}


/* =====================
   Lightbox
   ===================== */
.expertise__badge-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.lightbox__inner {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 820px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightboxIn 0.2s ease;
}

@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  color: var(--text-dark);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.lightbox__close:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
