/* =============================================================
   Estular Cabine de Estudo — small bio
   Paleta verde EstuLar (#1F6537 / #14432A / #4A9E5E)
   ============================================================= */

:root {
  --brand-primary:    #1F6537;
  --brand-dark:       #14432A;
  --brand-accent:     #4A9E5E;
  --brand-gold:       #C79A2D;
  --brand-gold-soft:  #E6C875;

  --ink:              #1A1A1A;
  --ink-soft:         #4B5B4F;
  --ink-muted:        #7C8B80;

  --surface:          #F7F5EF;
  --surface-warm:     #EFEBE0;
  --surface-glass:    rgba(255, 255, 255, 0.68);
  --surface-glass-strong: rgba(255, 255, 255, 0.86);
  --border-soft:      rgba(20, 67, 42, 0.08);
  --border-medium:    rgba(20, 67, 42, 0.16);

  --shadow-sm:        0 2px 8px rgba(20, 67, 42, 0.06);
  --shadow-md:        0 8px 24px rgba(20, 67, 42, 0.10);
  --shadow-lg:        0 24px 60px rgba(20, 67, 42, 0.14);

  --radius-sm:        10px;
  --radius-md:        16px;
  --radius-lg:        22px;
  --radius-xl:        28px;

  --font-body:        'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display:     'Poppins', 'Inter', system-ui, sans-serif;

  --page-max:         520px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Fundo animado ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 90% 5%, rgba(31, 101, 55, 0.28), transparent 60%),
    radial-gradient(1000px 800px at 5% 95%, rgba(74, 158, 94, 0.22), transparent 55%),
    linear-gradient(180deg, #E8EFE4 0%, #DAE5D4 55%, #C8D8BF 100%);
}
.bg__blob {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  animation: float 22s ease-in-out infinite;
}
.bg__blob--a { background: var(--brand-accent); top: -100px; left: -80px; }
.bg__blob--b { background: var(--brand-primary); bottom: -100px; right: -80px; animation-delay: -8s; }
.bg__blob--c { background: var(--brand-dark); top: 45%; left: 55%; opacity: .28; animation-delay: -14s; }

/* Padrão de bolinhas — assinatura visual dos banners Estular */
.dots {
  position: absolute;
  width: 96px; height: 96px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.85) 1.6px, transparent 2px);
  background-size: 14px 14px;
  opacity: 0.4;
  pointer-events: none;
}

@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(30px,-40px) scale(1.08); }
}

/* ---------- Container ---------- */

.app {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 24px 18px 120px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ---------- Marca ---------- */

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}
.brand__plate {
  position: relative;
  width: 100%;
  max-width: 320px;
  padding: 30px 34px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255,255,255,0.98), rgba(255,255,255,0.85));
  border: 2px solid rgba(31, 101, 55, 0.18);
  box-shadow:
    0 0 0 6px rgba(31, 101, 55, 0.06),
    0 12px 32px rgba(20, 67, 42, 0.18);
}
.brand__plate::before {
  content: "";
  position: absolute; inset: -18px;
  background: radial-gradient(closest-side, rgba(199,154,45,0.32), transparent 70%);
  z-index: -1;
  border-radius: inherit;
}
.brand__plate img {
  width: 100%; height: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}
.brand__caption {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-dark);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(31, 101, 55, 0.15);
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 32px 24px 30px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(140% 100% at 100% 0%, rgba(74, 158, 94, 0.28), transparent 55%),
    linear-gradient(160deg, var(--brand-dark) 0%, var(--brand-primary) 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 14px; right: 14px;
  width: 90px; height: 120px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.6) 1.6px, transparent 2px);
  background-size: 14px 14px;
  opacity: 0.55;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -8px; left: 20%;
  width: 60%; height: 6px;
  background: var(--brand-accent);
  border-radius: 3px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 6vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
  position: relative;
  z-index: 1;
}
.hero__title-accent {
  color: var(--brand-gold-soft);
  display: inline;
}

.hero__director {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px 6px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  position: relative;
  z-index: 1;
}
.hero__director-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-warm);
  border: 2px solid var(--brand-gold-soft);
}
.hero__director-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.hero__director-info { text-align: left; line-height: 1.2; }
.hero__director-info strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-dark);
}
.hero__director-info small {
  display: block;
  font-size: 11.5px;
  color: var(--brand-primary);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__tagline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 5.2vw, 26px);
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 4px 0 0;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* ---------- Blocos genéricos ---------- */

.block {
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(31, 101, 55, 0.14);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.block__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--brand-dark);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 10px;
}
.block__title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 48px; height: 4px;
  background: var(--brand-primary);
  border-radius: 2px;
}
.block__subtitle {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 8px 0 18px;
}

/* ---------- Galeria ---------- */

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 1;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  background: var(--surface-warm);
  cursor: zoom-in;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery__item:hover img { transform: scale(1.05); }
.promo { cursor: pointer; }

/* ---------- Vídeo ---------- */

.video {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-md);
  margin-top: 6px;
}
.video--yt {
  aspect-ratio: 16 / 9;
}
.video--yt iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Lite YouTube embed */
.lite-yt {
  cursor: pointer;
  display: block;
  position: relative;
  overflow: hidden;
  background: #000;
}
.lite-yt__thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s ease, opacity .3s ease;
}
.lite-yt__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform .18s ease, filter .18s ease;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
}
.lite-yt:hover .lite-yt__thumb { transform: scale(1.03); opacity: 0.9; }
.lite-yt:hover .lite-yt__play  { transform: translate(-50%, -50%) scale(1.08); }
.lite-yt.is-playing iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.lite-yt.is-playing .lite-yt__thumb,
.lite-yt.is-playing .lite-yt__play { display: none; }
.video--ig {
  background: transparent;
  box-shadow: none;
  display: flex;
  justify-content: center;
}
.video--ig .instagram-media {
  margin: 0 auto !important;
  box-shadow: var(--shadow-md) !important;
  border-radius: var(--radius-md) !important;
}
.video__hint {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-dark);
  margin: 14px 0 18px;
  padding: 10px 14px;
  background: rgba(31, 101, 55, 0.10);
  border-radius: 12px;
}
.video__links {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.video__extra {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(31, 101, 55, 0.10);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
  transition: background .2s ease, transform .18s ease;
  border: 1px solid rgba(31, 101, 55, 0.16);
}
.video__extra:hover { background: rgba(31, 101, 55, 0.18); transform: translateY(-1px); }
.video__extra--yt {
  background: #FF0000;
  color: #fff;
  border-color: transparent;
}
.video__extra--yt:hover { background: #CC0000; }

/* ---------- Contatos ---------- */

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(31, 101, 55, 0.16);
  border-left: 4px solid var(--brand-primary);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.action:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); border-left-color: var(--brand-accent); }
.action:active { transform: translateY(0); }
.action--wa { border-left-color: #25D366; }

.action__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-primary);
  color: #fff;
  display: grid;
  place-items: center;
}
.action--wa .action__icon { background: #25D366; }

.action__label {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.action__label strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--brand-dark);
}
.action__label small {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}
.action__arrow {
  color: var(--brand-primary);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  opacity: 0.6;
}

/* ---------- Planos ---------- */

/* Chips de navegação (menu de planos) — sticky no topo enquanto rola a seção */
.plans-nav {
  position: sticky;
  top: 8px;
  z-index: 20;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 8px;
  margin: 4px 0 22px;
  padding: 10px 12px;
  background: var(--brand-dark);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 6px 20px rgba(20, 67, 42, 0.22);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.plans-nav::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  transition: background .18s ease, color .18s ease, transform .12s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.chip:hover {
  background: #fff;
  color: var(--brand-dark);
  transform: translateY(-1px);
}
.chip--gold {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-soft));
  color: var(--brand-dark);
  border-color: transparent;
}
.chip--gold:hover {
  filter: brightness(1.05);
}
.chip.is-active {
  background: var(--brand-accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

/* Grid de planos */
.plans {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.plan {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(31, 101, 55, 0.14);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
  scroll-margin-top: 78px;
  display: flex;
  flex-direction: column;
}
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.plan:target {
  outline: 3px solid var(--brand-accent);
  outline-offset: 2px;
  animation: plan-highlight 1.4s ease-out;
}
@keyframes plan-highlight {
  0%   { box-shadow: 0 0 0 0 rgba(74, 158, 94, 0.55); }
  100% { box-shadow: 0 0 0 16px rgba(74, 158, 94, 0); }
}

.plan__banner {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--brand-dark);
  cursor: zoom-in;
  position: relative;
}
.plan__banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.plan__banner::after {
  content: "";
  position: absolute;
  right: 10px; bottom: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='none' stroke='%231F6537' stroke-width='2.4' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M21 21l-4.35-4.35'/><path d='M11 8v6M8 11h6'/></svg>") center/16px 16px no-repeat;
  opacity: 0;
  transition: opacity .18s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.24);
}
.plan__banner:hover::after { opacity: 1; }
.plan:hover .plan__banner img { transform: scale(1.03); }

.plan__body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.plan__badge {
  align-self: flex-start;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--brand-accent);
  color: #fff;
}
.plan__badge--gold {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-soft));
  color: var(--brand-dark);
}
.plan__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--brand-dark);
  margin: 0;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.plan__name-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(31, 101, 55, 0.12);
  color: var(--brand-primary);
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  color: var(--brand-primary);
}
.plan__currency { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.plan__value    { font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: -0.02em; line-height: 1; }
.plan__cycle    { font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--ink-muted); }
.plan__desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.45;
}
.plan__tiers {
  list-style: none;
  padding: 12px 14px;
  margin: 4px 0 0;
  background: var(--surface-warm);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.plan__tiers li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
  font-size: 13px;
  color: var(--ink-soft);
}
.plan__tiers strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-dark);
  text-align: right;
}
.plan__cta {
  margin-top: auto;
  display: block;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--brand-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-align: center;
  transition: background .18s ease, transform .18s ease;
}
.plan__cta:hover { background: var(--brand-dark); transform: translateY(-1px); }

.plan--featured {
  border: 2px solid var(--brand-accent);
  box-shadow: 0 10px 30px rgba(74, 158, 94, 0.22);
}
.plan--vip {
  border: 2px solid var(--brand-gold);
}
.plan--vip .plan__price { color: var(--brand-gold); }
.plan--vip .plan__cta {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-soft));
  color: var(--brand-dark);
}
.plan--vip .plan__cta:hover { filter: brightness(1.05); }

/* ---------- Banners promocionais ---------- */

.promo {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.promo:last-child { margin-bottom: 0; }
.promo:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.promo img { width: 100%; height: auto; display: block; }

/* Banners ficam dentro de um .block (sem padding extra visual) */
.block:has(> .promo) {
  padding: 12px;
  gap: 0;
}

/* ---------- Mapa e endereço ---------- */

.address {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.map {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-warm);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
}
.map iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  filter: saturate(0.9);
}

/* ---------- Footer ---------- */

.foot {
  margin-top: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}
.foot__logo {
  width: 100px;
  opacity: 0.6;
}
.foot p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}
.foot__small { font-size: 11.5px; opacity: 0.7; }

/* ---------- WhatsApp flutuante ---------- */

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 20px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  z-index: 100;
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float::before {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Desktop: card flutuante ---------- */

@media (min-width: 720px) {
  body { padding: 40px 20px; }
  .app {
    padding: 32px 26px 140px;
    background: var(--surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin: 40px auto;
  }
  .brand__plate { max-width: 360px; }
  .hero__title { font-size: 34px; }
  .wa-float { right: calc(50% - min(320px, 50vw) - 78px); }
}

@media (min-width: 1100px) {
  .wa-float { right: 40px; }
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 15, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: lightbox-fade .2s ease-out;
}
.lightbox.is-open {
  display: flex;
}
@keyframes lightbox-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: lightbox-scale .25s ease-out;
}
@keyframes lightbox-scale {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.lightbox__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background .18s ease, transform .18s ease;
}
.lightbox__close:hover { background: rgba(255,255,255,0.28); transform: rotate(90deg); }

/* ---------- Motion safe ---------- */

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
