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

:root {
  /* Primary palette */
  --teal: #0d9488;
  --teal-light: #14b8a6;
  --teal-pale: #ccfbf1;
  --emerald: #059669;
  --emerald-pale: #d1fae5;

  /* Card accent colors */
  --violet: #7c3aed;
  --violet-pale: #ede9fe;
  --amber: #d97706;
  --amber-pale: #fef3c7;
  --rose: #e11d48;
  --rose-pale: #ffe4e6;
  --cyan: #0891b2;
  --cyan-pale: #cffafe;
  --indigo: #4f46e5;
  --indigo-pale: #e0e7ff;
  --fuchsia: #c026d3;
  --fuchsia-pale: #fae8ff;

  /* Warm accents */
  --coral: #fb7185;
  --lavender: #a78bfa;

  /* Surfaces & text */
  --bg: #FAFBFE;
  --bg-alt: #F1F5F9;
  --bg-warm: #FFF8F3;
  --surface: #FFFFFF;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  /* Typography */
  --font: 'Montserrat', sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== SITE BANNER ===== */
.site-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background: var(--teal-pale);
  text-align: center;
  padding: 10px 24px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.01em;
  line-height: 1.5;
}

/* ===== SKIP NAV ===== */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 1000;
  padding: 8px 16px;
  background: var(--teal);
  color: white;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-nav:focus {
  top: 0;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 38px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.4s var(--ease-out);
}

.nav--scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 24px;
  width: auto;
  transition: opacity 0.2s;
}
.nav__logo:hover .nav__logo-img {
  opacity: 0.7;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}
.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav__links a:hover {
  color: var(--teal);
}

.nav__resume {
  padding: 8px 20px !important;
  border: 2px solid var(--teal) !important;
  border-radius: 8px;
  color: var(--teal) !important;
  transition: all 0.2s !important;
}
.nav__resume:hover {
  background: var(--teal) !important;
  color: white !important;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  animation: blobFloat 20s ease-in-out infinite;
}
.hero__blob--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--teal-pale), transparent 70%);
  top: -15%;
  right: -8%;
  animation-delay: 0s;
}
.hero__blob--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #FFE4E6, transparent 70%);
  bottom: -10%;
  left: -8%;
  animation-delay: -7s;
}
.hero__blob--3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #EDE9FE, transparent 70%);
  top: 35%;
  left: 50%;
  opacity: 0.35;
  animation-delay: -14s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(30px, 40px) scale(1.02); }
}

.hero__content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  padding: 150px 32px 0;
  max-width: 1200px;
  width: 100%;
}

.hero__text {
  text-align: left;
}

.hero__label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--teal);
  margin-bottom: 20px;
  line-height: 1.5;
}

.hero__name {
  font-family: var(--font);
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero__tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: #334155;
  line-height: 1.5;
  font-weight: 500;
  margin-bottom: 20px;
  max-width: 540px;
}

.hero__bio {
  font-size: 1rem;
  color: #475569;
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 36px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero__photo {
  flex-shrink: 0;
}

.hero__photo-img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  border: 5px solid var(--surface);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10), 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  border: none;
}
.btn--primary {
  background: linear-gradient(135deg, var(--teal), var(--emerald));
  color: white;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 148, 136, 0.35);
}
.btn--outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}
.btn--outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

@media (max-height: 700px) {
  .hero__scroll { display: none; }
}

.hero__scroll span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ===== METRICS ===== */
.metrics {
  position: relative;
  padding: 72px 0;
  background: linear-gradient(135deg, var(--teal), var(--emerald));
  color: white;
}

.metrics__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.metric {
  text-align: center;
  flex: 1;
  min-width: 140px;
}

.metric__icon {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  opacity: 0.7;
}

.metric__number {
  font-family: var(--font);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: white;
  display: block;
  line-height: 1.1;
}

.metric__label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 8px;
  letter-spacing: 0.01em;
  font-weight: 500;
  display: block;
  line-height: 1.4;
}

/* ===== PRESS STRIP ===== */
.press {
  padding: 48px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}

.press__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.press__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.press__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.press__logo {
  font-family: var(--font);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dim);
  opacity: 0.45;
  letter-spacing: -0.01em;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.press__logo:hover {
  opacity: 0.7;
}

/* ===== SECTION COMMON ===== */
.section-header {
  text-align: left;
  margin-bottom: 64px;
}

.section-title {
  font-family: var(--font);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
}

/* ===== WORK ===== */
.work {
  padding: 100px 0;
  background: var(--bg);
}

.work__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* ===== CARDS ===== */
.card {
  position: relative;
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.4s var(--ease-out);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);
  border-color: var(--card-accent, var(--teal));
}

/* Card image area */
.card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--card-pale, var(--teal-pale));
}
.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.card:hover .card__image img {
  transform: scale(1.03);
}

/* Card video embed (YouTube) */
.card__video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  overflow: hidden;
  background: #000;
}
.card__video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Card image mosaic (2x2 grid) */
.card__mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--card-pale, var(--teal-pale));
}
.card__mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.card:hover .card__mosaic img {
  transform: scale(1.03);
}

.card__body {
  padding: 32px;
}

/* Card color variants */
.card--teal    { --card-accent: var(--teal);    --card-pale: var(--teal-pale); }
.card--emerald { --card-accent: var(--emerald); --card-pale: var(--emerald-pale); }
.card--violet  { --card-accent: var(--violet);  --card-pale: var(--violet-pale); }
.card--amber   { --card-accent: var(--amber);   --card-pale: var(--amber-pale); }
.card--rose    { --card-accent: var(--rose);    --card-pale: var(--rose-pale); }
.card--cyan    { --card-accent: var(--cyan);    --card-pale: var(--cyan-pale); }
.card--indigo  { --card-accent: var(--indigo);  --card-pale: var(--indigo-pale); }
.card--fuchsia { --card-accent: var(--fuchsia); --card-pale: var(--fuchsia-pale); }

/* Top accent stripe */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--card-accent, var(--teal)), transparent 80%);
  z-index: 1;
}

.card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--card-accent, var(--teal));
  margin-bottom: 12px;
}

.card__title {
  font-family: var(--font);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text);
}

.card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.card__stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.card__stat {
  text-align: center;
}
.card__stat--wide {
  flex: 1;
  text-align: left;
}

.card__stat-number {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  line-height: 1.2;
}
.card__stat-number--sm {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.card__stat-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
  font-weight: 600;
}

.card__result {
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--card-accent, var(--teal));
  font-style: italic;
}

/* Press logos inside a card */
.card__press-logos {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.card__press-logo {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  opacity: 0.35;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.card:hover .card__press-logo {
  opacity: 0.55;
}

.card__link {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--card-accent, var(--teal));
  transition: all 0.2s;
}
.card__link:hover {
  letter-spacing: 0.02em;
}

/* ===== ADDITIONAL WORK ===== */
.additional-work {
  padding: 0 0 100px;
  background: var(--bg);
}

.additional-work .work__inner {
  border-top: 1px solid var(--border-light);
  padding-top: 80px;
}

.additional-work .section-header {
  margin-bottom: 48px;
}

.additional-work .section-subtitle {
  font-size: 0.98rem;
}

/* ===== ABOUT ===== */
.about {
  padding: 100px 0;
  background: var(--bg-warm);
}

.about__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}

.about__text .section-title {
  text-align: left;
}

.about__bio {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 18px;
}
.about__bio strong {
  color: var(--text);
  font-weight: 600;
}

.skill-group {
  margin-bottom: 32px;
}

.skill-group__title {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s;
}
.skill-tag:hover {
  background: var(--teal-pale);
  color: var(--teal);
  border-color: var(--teal-light);
}

/* Awards */
.awards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.award {
  display: flex;
  align-items: center;
  gap: 14px;
}

.award__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--teal);
}

.award__title {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.award__org {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== CONTACT ===== */
.contact {
  padding: 100px 0;
  background: var(--bg);
}

.contact__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 0 60px;
  align-items: start;
}

.contact__inner .section-title {
  grid-column: 1 / -1;
  margin-bottom: 24px;
}

.contact__text {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0;
  max-width: 560px;
}

.contact__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  padding: 8px 0;
}
.contact__link:hover {
  color: var(--teal);
}

.contact__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ===== FOOTER ===== */
.footer {
  padding: 32px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
  border-top: 1px solid var(--border-light);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }
.reveal:nth-child(7) { transition-delay: 0.48s; }
.reveal:nth-child(8) { transition-delay: 0.56s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr;
    gap: 40px;
    justify-items: start;
  }
  .hero__photo {
    order: -1;
    justify-self: start;
  }
  .hero__photo-img {
    width: 200px;
    height: 200px;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact__text {
    margin-bottom: 36px;
  }
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px 40px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    border-left: 1px solid var(--border-light);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.08);
  }
  .nav__links.open {
    transform: translateX(0);
  }
  .nav__links a {
    font-size: 1.1rem;
  }

  .hero__content {
    padding: 100px 24px 0;
  }
  .hero__name {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }
  .hero__photo-img {
    width: 160px;
    height: 160px;
  }

  .hero__scroll {
    display: none;
  }

  .metrics__inner {
    flex-direction: column;
    gap: 28px;
    align-items: center;
  }
  .metric {
    min-width: auto;
  }

  .work__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card__body {
    padding: 24px;
  }

  .reveal:nth-child(n) {
    transition-delay: 0s;
  }
}

@media (max-width: 480px) {
  .hero__content {
    padding: 90px 20px 0;
  }
  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .card__stats {
    gap: 16px;
  }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 60px 24px 40px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__content {
  background: var(--surface);
  border-radius: 24px;
  max-width: 920px;
  width: 100%;
  padding: 48px;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s var(--ease-out);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.lightbox.active .lightbox__content {
  transform: translateY(0) scale(1);
}

.lightbox__close {
  position: fixed;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 210;
  transition: all 0.2s;
}

.lightbox__close:hover {
  transform: scale(1.1);
  color: var(--text);
}

.lightbox__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.lightbox__title {
  font-family: var(--font);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.lightbox__desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 680px;
}

.lightbox__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.lightbox__gallery img {
  width: 100%;
  border-radius: 12px;
  transition: transform 0.3s var(--ease-out);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.lightbox__gallery img:hover {
  transform: scale(1.03);
}

/* Slide cards with hover labels */
.lightbox__slide {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
  break-inside: avoid;
}

.lightbox__slide img {
  width: 100%;
  display: block;
  border-radius: 10px;
  transition: transform 0.3s var(--ease-out);
}

.lightbox__slide-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 14px 12px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.75), transparent);
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
  border-radius: 0 0 10px 10px;
}

.lightbox__slide:hover .lightbox__slide-label {
  opacity: 1;
}

.lightbox__slide:hover img {
  transform: scale(1.02);
}

/* Masonry layout for mixed aspect ratios */
.lightbox__gallery--masonry {
  display: block;
  columns: 3;
  column-gap: 12px;
}

.lightbox__gallery--masonry img {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 10px;
  width: 100%;
}

/* Press link cards inside lightbox */
.lightbox__links {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lightbox__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s var(--ease-out);
}

.lightbox__link:hover {
  border-color: var(--teal);
  background: var(--teal-pale);
  transform: translateX(4px);
}

.lightbox__link-text {
  flex: 1;
  min-width: 0;
}

.lightbox__link-pub {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 4px;
}

.lightbox__link-headline {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.lightbox__link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-dim);
  opacity: 0;
  transition: all 0.2s;
}

.lightbox__link:hover svg {
  opacity: 1;
  color: var(--teal);
}

/* Document cards inside lightbox */
.lightbox__docs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.lightbox__doc {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.25s var(--ease-out);
}

.lightbox__doc:hover {
  border-color: var(--teal);
  background: var(--teal-pale);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.12);
}

.lightbox__doc svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--text-dim);
  transition: color 0.2s;
}

.lightbox__doc:hover svg {
  color: var(--teal);
}

.lightbox__doc-title {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.lightbox__doc-action {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
}

.lightbox__doc:hover .lightbox__doc-action {
  opacity: 1;
}

@media (max-width: 768px) {
  .lightbox {
    padding: 40px 16px 24px;
  }
  .lightbox__content {
    padding: 28px;
    border-radius: 16px;
  }
  .lightbox__gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .lightbox__docs {
    grid-template-columns: 1fr;
  }
  .lightbox__gallery--masonry {
    columns: 2;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
