@import url('../assets/fonts/stylesheet.css');

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Hero entrance (plays on load, not scroll) ---------- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}
.hero-anim {
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-anim-photo {
  opacity: 0;
  animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-anim, .hero-anim-photo {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
  .hero-photos .photo img, .project-thumb-img {
    transform: none !important;
  }
}

/* ---------- Scroll parallax (images) ---------- */
.hero-photos .photo img {
  transform: scale(1.06) translateY(var(--hero-parallax-y, 0px));
  will-change: transform;
}
.project-thumb-img {
  transform: scale(1.12) translateY(var(--parallax-y, 0px));
  will-change: transform;
}

:root {
  --bg: #ffffff;
  --surface: #eceef2;
  --surface-2: #f5f6f8;
  --text: #0b0b0f;
  --text-muted: #6b7280;
  --ink: #0b1220;
  --border: #e2e4e9;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1160px;
  --gap: clamp(1rem, 2vw, 2rem);
  font-family: 'Neue Montreal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 0vw, 2rem);
}

section { padding-top: clamp(1rem, 6vw, 1.5rem); }
main > section:last-of-type { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.italic-lead {
  font-style: italic;
  font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: #1c2440; }

.btn-outline {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}
.btn-outline:hover { background: var(--text); color: #fff; }

.btn-ghost {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.1);
}

.btn svg { width: 16px; height: 16px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--border); }

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
}
.logo img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  padding-block: 0.25rem;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--text);
  transition: right 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }
.nav-links a.active { font-weight: 700; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(1rem, 4vw, 2rem);
}

.hero-card {
  background: linear-gradient(180deg, var(--surface) 0%, #dfe2e8 100%);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
  overflow: hidden;
}

.hero-copy .eyebrow-text {
  color: #4b5060;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 34ch;
  margin-bottom: 1.5rem;
}

.hero-heading {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.35;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-photos {
  position: relative;
  min-height: 520px;
}
.hero-photos .photo {
  position: absolute;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(11, 18, 32, 0.18);
  background: #232733;
}
.hero-photos .photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photos .photo-main {
  width: 65%;
  aspect-ratio: 4/5;
  top: 10px;
  right: 0;
}
.hero-photos .photo-secondary {
  width: 70%;
  aspect-ratio: 9/9;
  bottom: 0;
  left: 0;
}

/* ---------- Why me ---------- */
.whyme-heading {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 400;
  margin-block: 0.75rem 0.1rem;
}
.whyme-sub {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  max-width: 44ch;
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.stats-row {
  display: flex;
  gap: clamp(2.5rem, 8vw, 6rem);
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.stat-label { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Work section ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  flex-wrap: wrap;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  white-space: nowrap;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.work-grid .card-featured { grid-column: 1 / -1; }

.other-works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 55px;
}
.section-block + .section-block { margin-top: clamp(3rem, 6vw, 5rem); }

.project-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(16, 24, 40, 0.1);
}

.project-thumb {
  aspect-ratio: 16/10;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}
.card-featured .project-thumb { aspect-ratio: 21/9; }

.project-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-thumb .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
}
.project-thumb .blob-a { width: 60%; aspect-ratio: 1; top: -20%; left: -10%; background: rgba(255,255,255,0.35); }
.project-thumb .blob-b { width: 45%; aspect-ratio: 1; bottom: -15%; right: -5%; background: rgba(0,0,0,0.25); }

.mock-window {
  position: relative;
  z-index: 1;
  width: 78%;
  background: rgba(255,255,255,0.95);
  border-radius: 10px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
  overflow: hidden;
}
.mock-window .mock-bar {
  height: 20px;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-inline: 8px;
}
.mock-window .mock-bar span { width: 6px; height: 6px; border-radius: 50%; background: #c7cad1; }
.mock-window .mock-body { padding: 14px; display: grid; gap: 8px; }
.mock-window .mock-line { height: 8px; border-radius: 4px; background: #e5e7eb; }
.mock-window .mock-line.w-60 { width: 60%; }
.mock-window .mock-line.w-40 { width: 40%; }
.mock-window .mock-chart {
  height: 44px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(0,0,0,0.06), transparent);
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 4px;
}
.mock-window .mock-chart i { flex: 1; background: currentColor; opacity: 0.5; border-radius: 2px 2px 0 0; }

.thumb-teal   { background: linear-gradient(135deg, #0d9488, #0f766e 60%, #064e47); }
.thumb-navy   { background: linear-gradient(135deg, #1e293b, #0b1220 70%); }
.thumb-green  { background: linear-gradient(135deg, #14532d, #052e16 70%); }
.thumb-gold   { background: linear-gradient(135deg, #292524, #78350f 70%, #1c1917); }
.thumb-purple { background: linear-gradient(135deg, #581c87, #2e1065 70%); }
.thumb-blue   { background: linear-gradient(135deg, #1d4ed8, #0b2447 70%); }
.thumb-red    { background: linear-gradient(135deg, #7f1d1d, #450a0a 70%); }
.thumb-orange { background: linear-gradient(135deg, #c2410c, #7c2d12 70%); }
.thumb-maroon { background: linear-gradient(135deg, #4c0519, #1c0510 70%); }

.project-thumb .badge-word {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  opacity: 0.9;
  z-index: 1;
}

.project-body { padding: clamp(1.25rem, 2vw, 1.75rem); display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.project-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.project-title { font-size: 28px; font-weight: 800; }
.project-year { color: #9ca3af; font-weight: 500; font-size: 0.95rem; }
.project-desc { color: var(--text-muted); font-size: 17px; flex: 1; }
.project-tags { color: #9ca3af; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }

.status-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.view-more-wrap { display: flex; justify-content: center; margin-top: clamp(2rem, 4vw, 3rem); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #111;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.about-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; margin-bottom: 1.25rem; }
.about-copy p { color: var(--text); margin-bottom: 1.1rem; }
.about-copy p:last-child { margin-bottom: 0; }

/* ---------- Contact / Footer ---------- */
.contact-cta {
  background: linear-gradient(180deg, var(--surface) 0%, #dfe2e8 100%);
  border-radius: var(--radius-lg);
  text-align: center;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.5rem, 5vw, 3rem);
}
.contact-cta .italic-lead {
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  display: block;
  margin-bottom: 1rem;
}
.contact-cta h3 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 700; margin-bottom: 1.75rem; }

.contact-icons { display: flex; justify-content: center; gap: 1.25rem; }
.contact-icons a {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16,24,40,0.06), 0 1px 3px rgba(16,24,40,0.1);
  transition: transform 0.2s ease;
}
.contact-icons a:hover { transform: translateY(-3px); }
.contact-icons svg { width: 22px; height: 22px; }

.site-footer {
  padding-block: 2.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Project detail pages ---------- */
.project-hero {
  padding-top: clamp(2rem, 6vw, 4rem);
}
.project-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--text-muted);
}
.back-link:hover { color: var(--text); }
.back-link svg { width: 16px; height: 16px; }

.project-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.project-hero .project-sub { color: var(--text-muted); font-size: 1.15rem; max-width: 60ch; margin-bottom: 1.5rem; }

.meta-row { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.meta-item .meta-label { text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 700; margin-bottom: 0.25rem; }
.meta-item .meta-value { font-weight: 700; }

.hero-banner {
  border-radius: var(--radius-lg);
  aspect-ratio: 16/7;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.detail-copy {
  max-width: 70ch;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.detail-copy p { margin-bottom: 1.1rem; color: var(--text); }
.detail-copy p:last-child { margin-bottom: 0; }

/* ---------- Case study: platform badges, role, info cards ---------- */
.platform-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
}
.platform-badge svg { width: 16px; height: 16px; color: var(--text-muted); }

.case-sub {
  color: var(--text-muted);
  font-size: 20px;
  max-width: 150ch;
  margin-bottom: 1.75rem;
}

.role-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.9rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.role-row .role-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  width: 100%;
  margin-bottom: 0.25rem;
}
.role-tags { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; }
.role-tags span { font-weight: 700; }
.role-tags span:not(:last-child)::after { content: "|"; margin-left: 0.9rem; color: var(--border); font-weight: 400; }

.phone-banner {
  border-radius: var(--radius-lg);
  aspect-ratio: 16/7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  overflow: hidden;
  position: relative;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.phone-mock {
  position: relative;
  z-index: 1;
  width: clamp(70px, 12vw, 120px);
  aspect-ratio: 9/19;
  background: rgba(255,255,255,0.97);
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phone-mock .mline { height: 5px; border-radius: 3px; background: #e5e7eb; }
.phone-mock .mline.w-60 { width: 60%; }
.phone-mock .mblock { flex: 1; border-radius: 6px; background: #eef0f3; }

.info-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2rem);
}
.info-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.75rem; }
.info-card p { color: var(--text-muted); }

.case-section { margin-bottom: clamp(2rem, 5vw, 3rem); }
.case-section-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.case-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.case-screen {
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.case-section-pair .case-screen { aspect-ratio: 4/3; }

.case-screen-neutral {
  background: var(--surface-2);
  color: var(--text);
}
.case-section-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.case-section-trio .case-screen { aspect-ratio: 4/3; }

.info-card-full {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}
.info-card-full h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.75rem; }
.info-card-full p { color: var(--text-muted); }

.screen-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.screen-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.screen-card .project-thumb { aspect-ratio: 4/3; }
.screen-caption { padding: 1rem 1.25rem; font-weight: 600; font-size: 0.95rem; background: #fff; }

.next-project {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.next-project .label { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.next-project .name { font-size: 1.5rem; font-weight: 800; }

/* ---------- Work index page ---------- */
.page-heading {
  padding-block: clamp(2rem, 6vw, 3.5rem) clamp(1rem, 3vw, 2rem);
}
.page-heading h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: 0.75rem; }
.page-heading p { color: var(--text-muted); font-size: 1.1rem; max-width: 55ch; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-card { grid-template-columns: 1fr; }
  .hero-photos { min-height: 0; aspect-ratio: 4/5; order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; margin-inline: auto; }
  .other-works-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 72px 1rem auto 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: 0 20px 40px rgba(16,24,40,0.15);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle { display: flex; }

  .work-grid, .screen-gallery, .other-works-grid, .info-cards, .case-section-pair, .case-section-trio { grid-template-columns: 1fr; }
  .stats-row { gap: 2.5rem; }
  .section-desc { white-space: normal; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .meta-row { gap: 1.5rem; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  background: rgba(11, 11, 15, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  transition: background 0.2s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-close svg { width: 20px; height: 20px; }
