/* ===== Northstar Synapse — light theme ===== */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-elevated: #ffffff;
  --ink: #0b0f17;
  --ink-2: #364152;
  --muted: #6b7280;
  --line: #e7ebf1;
  --brand: #1850c5;
  --brand-2: #2f74e0;
  --brand-soft: #e9effb;
  --accent: #2f9fe0;
  --grad: linear-gradient(135deg, #1850c5 0%, #2f74e0 55%, #2f9fe0 120%);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, .08);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, .12);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1140px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: "Space Grotesk", "Inter", sans-serif; line-height: 1.12; letter-spacing: -.02em; margin: 0; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px rgba(24, 80, 197, .30);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(24, 80, 197, .42); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: #cdd3df; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  color: var(--brand);
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-logo { width: 34px; height: 34px; object-fit: contain; display: block; }
.brand-name { font-family: "Space Grotesk", sans-serif; font-size: 1.1rem; letter-spacing: -.01em; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: .95rem; position: relative; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); transition: width .25s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: 4px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.mobile-menu { display: none; flex-direction: column; gap: 8px; padding: 12px 24px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.mobile-menu a { padding: 10px 4px; font-weight: 500; color: var(--ink-2); }
.mobile-menu .btn { justify-content: center; margin-top: 6px; }
.mobile-menu .btn-primary { color: #fff; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 88px 0 64px; }
.hero-glow {
  position: absolute; inset: -20% 0 auto 0; height: 620px;
  background:
    radial-gradient(60% 60% at 70% 10%, rgba(47, 116, 224, .16), transparent 60%),
    radial-gradient(50% 50% at 20% 0%, rgba(47, 159, 224, .12), transparent 60%),
    radial-gradient(45% 60% at 50% -10%, rgba(24, 80, 197, .14), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 880px; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; }
.hero-sub { margin-top: 22px; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-2); max-width: 660px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-metrics {
  list-style: none; padding: 0; margin: 56px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.hero-metrics li { padding: 18px 20px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.hero-metrics strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 1.6rem; color: var(--ink); }
.hero-metrics span { font-size: .85rem; color: var(--muted); }

/* ===== Tech strip ===== */
.tech-strip { padding: 28px 0 8px; }
.tech-label { text-align: center; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.tech-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tech-pill {
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: .95rem;
  color: var(--ink-2); padding: 9px 18px; border: 1px solid var(--line);
  border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm);
}

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-lead { margin-top: 16px; color: var(--ink-2); font-size: 1.08rem; }

/* ===== Cards grid (services) ===== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #d7dbe6; }
.card-icon {
  width: 54px; height: 54px; display: grid; place-items: center;
  border-radius: 14px; margin-bottom: 18px;
  background: var(--brand-soft); color: var(--brand);
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.card-icon svg { width: 28px; height: 28px; }
.card:hover .card-icon { transform: translateY(-3px) rotate(-5deg); background: var(--grad); color: #fff; }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: .98rem; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 54px; align-items: center; }
.about-media { position: relative; }
.about-avatar {
  width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius);
  object-fit: cover; object-position: center top;
  background: var(--grad); box-shadow: var(--shadow-lg);
}
.about-badge {
  position: absolute; left: 18px; bottom: -18px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 18px; box-shadow: var(--shadow-md);
}
.about-badge strong { display: block; font-family: "Space Grotesk", sans-serif; }
.about-badge span { font-size: .82rem; color: var(--muted); }
.about-copy h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 18px; }
.about-copy p { color: var(--ink-2); margin-bottom: 16px; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; color: var(--ink-2); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}

/* ===== Automations ===== */
.auto-cluster { margin-bottom: 44px; }
.cluster-title {
  font-size: 1.05rem; font-weight: 600; color: var(--ink);
  margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.cluster-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.auto-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.auto-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.auto-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.auto-card h4 { font-size: 1rem; margin-bottom: 8px; }
.auto-card p { font-size: .88rem; color: var(--muted); }
.workflow-preview {
  display: flex; align-items: center; gap: 0; margin-bottom: 16px;
  padding: 14px; border-radius: 10px; background: var(--bg-soft);
}
.workflow-preview .node {
  width: 16px; height: 16px; border-radius: 5px;
  background: var(--brand); box-shadow: 0 0 0 4px rgba(24, 80, 197, .14);
  flex-shrink: 0;
}
.workflow-preview .node-end { background: var(--accent); box-shadow: 0 0 0 4px rgba(47, 159, 224, .16); }
.workflow-preview .wire { flex: 1; height: 2px; background: linear-gradient(90deg, var(--brand), var(--accent)); opacity: .5; }

.screenshot-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.shot-slot {
  aspect-ratio: 16 / 10; border-radius: var(--radius-sm);
  border: 2px dashed #d3d9e4; background: var(--bg-soft);
  display: grid; place-items: center; overflow: hidden;
}
.shot-slot img { width: 100%; height: 100%; object-fit: cover; }
.shot-hint { font-size: .82rem; color: var(--muted); }

/* Workflow screenshot cards */
.wf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wf-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.wf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.wf-card-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: top left;
  display: block; border-bottom: 1px solid var(--line);
  transition: transform .5s var(--ease);
}
.wf-card:hover .wf-card-img { transform: scale(1.03); }
.wf-card-body { padding: 14px 16px; }
.wf-card-body h4 { font-size: .95rem; font-weight: 700; color: var(--ink); margin: 0 0 5px; }
.wf-card-body p { font-size: .82rem; color: var(--muted); margin: 0; line-height: 1.5; }


/* ===== Case study ===== */
.case-study {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-md);
}
.case-body { padding: 40px; }
.case-quote { font-size: 1.18rem; color: var(--ink); margin: 14px 0 18px; line-height: 1.5; }
.case-meta { color: var(--ink-2); margin-bottom: 22px; }
.case-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.case-tags li { font-size: .82rem; font-weight: 500; color: var(--brand); background: var(--brand-soft); padding: 6px 14px; border-radius: 999px; }
.case-aside { background: var(--grad); padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 26px; color: #fff; }
.stat-block strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 2.4rem; line-height: 1; }
.stat-block span { font-size: .9rem; opacity: .9; }
.stars { color: #f5a623; font-size: 1.1rem; letter-spacing: 2px; }

/* ===== Work / testimonials ===== */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 40px; }
.work-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); margin: 0;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.work-shot { display: block; background: #14181f; aspect-ratio: 16 / 8; overflow: hidden; }
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s var(--ease); }
.work-shot:hover img { transform: scale(1.03); }
.work-card figcaption { padding: 22px 24px; }
.work-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.work-card p { color: var(--ink-2); font-size: .95rem; }
.work-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; font-size: .92rem; color: var(--brand); }
.work-link:hover .arrow { transform: translate(2px, -2px); }
.work-link .arrow { transition: transform .25s var(--ease); }
.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.testimonial {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; margin: 0; box-shadow: var(--shadow-sm);
}
.testimonial p { font-style: italic; color: var(--ink); margin: 14px 0 20px; font-size: 1.02rem; }
.testimonial footer strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 1.05rem; }
.testimonial footer span { display: block; color: var(--brand); font-weight: 500; font-size: .92rem; }
.testimonial footer em { display: block; color: var(--muted); font-size: .85rem; margin-top: 6px; }

/* ===== Process ===== */
.process-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.process-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); position: relative; }
.step-num { font-family: "Space Grotesk", sans-serif; font-size: 1.4rem; font-weight: 700; color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.process-step h3 { font-size: 1.2rem; margin: 10px 0 8px; }
.process-step p { color: var(--ink-2); font-size: .94rem; }

/* ===== Final CTA ===== */
.cta-final { padding: 96px 0; }
.cta-inner {
  text-align: center; max-width: 760px; margin: 0 auto;
  background: var(--grad); border-radius: 28px; padding: 56px 40px;
  color: #fff; box-shadow: var(--shadow-lg);
}
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; }
.cta-inner p { margin: 18px auto 0; font-size: 1.1rem; opacity: .94; max-width: 560px; }

.cal-embed-card {
  max-width: 940px; margin: -28px auto 0; position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 18px; box-shadow: var(--shadow-lg);
}
#cal-inline { border-radius: 16px; }
.cal-fallback {
  display: block; text-align: center; margin-top: 12px;
  font-size: .9rem; font-weight: 500; color: var(--muted);
}
.cal-fallback:hover { color: var(--brand); }
.cal-fallback .arrow { transition: transform .25s var(--ease); display: inline-block; }
.cal-fallback:hover .arrow { transform: translate(2px, -2px); }

/* ===== Footer ===== */
.site-footer { background: #0b0f17; color: #c7ccd6; padding: 48px 0 28px; }
.footer-inner { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .08); text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 12px; color: #fff; }
.footer-brand .brand-mark { color: #fff; }
.footer-brand .brand-logo { width: 56px; height: 56px; }
.footer-brand .brand-name { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.15rem; }
.footer-tag { color: #8b93a3; font-size: .95rem; }
.site-footer .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .2); }
.site-footer .btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.footer-bottom { display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 10px; padding-top: 22px; font-size: .85rem; color: #6b7280; text-align: center; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .auto-grid { grid-template-columns: repeat(2, 1fr); }
  .wf-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-avatar { max-width: 280px; }
  .case-study { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .cards-grid, .auto-grid, .wf-grid, .work-grid, .testimonials, .process-grid, .screenshot-gallery { grid-template-columns: 1fr; }
  .case-body, .case-aside { padding: 30px; }
  .cta-inner { padding: 48px 26px; }
  .footer-inner { flex-direction: column; align-items: center; }
}

/* ===== Motion & micro-interactions ===== */
body { overflow-x: hidden; }
.hero, .section, .cta-final, [id] { scroll-margin-top: 86px; }

.brand-logo { transition: transform .6s var(--ease); }
.brand .brand-logo { width: 48px; height: 48px; }
.brand:hover .brand-logo { transform: rotate(180deg) scale(1.05); }

.nav-toggle span { transform-origin: center; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.tech-pill { transition: transform .25s var(--ease), color .25s, border-color .25s, box-shadow .25s; }
.tech-pill:hover { transform: translateY(-3px); color: var(--brand); border-color: var(--brand); box-shadow: var(--shadow-md); }

@keyframes floatGlow {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(0, 26px, 0) scale(1.06); }
}
.hero-glow { animation: floatGlow 16s ease-in-out infinite alternate; }

@keyframes pulseNode {
  0%, 100% { box-shadow: 0 0 0 4px rgba(47, 159, 224, .16); }
  50% { box-shadow: 0 0 0 8px rgba(47, 159, 224, .04); }
}
.workflow-preview .node-end { animation: pulseNode 2.6s ease-in-out infinite; }

@keyframes floatBadge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.about-badge { animation: floatBadge 5.5s ease-in-out infinite; }

@keyframes gradShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.cta-inner, .case-aside { background-size: 200% 200%; animation: gradShift 11s ease infinite; }
.btn-primary { background-size: 170% 170%; }
.btn-primary:hover { animation: gradShift 3s ease infinite; }

.stat-block { transition: transform .3s var(--ease); }
.case-aside:hover .stat-block { transform: translateX(5px); }

.metric-anim { font-variant-numeric: tabular-nums; }

/* ===== Mobile polish ===== */
@media (max-width: 600px) {
  .hero { padding: 54px 0 36px; }
  .nav { height: 62px; }
  .brand .brand-logo { width: 40px; height: 40px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 40px; }
  .hero-metrics li { padding: 14px 16px; }
  .hero-metrics strong { font-size: 1.35rem; }
  .section-head { margin-bottom: 36px; }
  .case-quote { font-size: 1.06rem; }
  .cal-embed-card { padding: 10px; margin-top: -16px; }
  .testimonial, .card { padding: 24px 22px; }
}

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

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 15, 23, 0.95);
  padding: 80px 40px 40px 40px; /* space for the fixed close button */
  align-items: flex-start; /* Important for scrolling to top when overflowed */
  justify-content: center;
  overflow: auto; /* Allow scrolling */
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  display: flex;
  opacity: 1;
}
.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), max-height 0.3s ease, max-width 0.3s ease;
  margin: auto; /* Vertically and horizontally center when smaller */
  cursor: zoom-in;
}
.lightbox.active .lightbox-img {
  transform: scale(1);
}
.lightbox-img.zoomed {
  max-width: none;
  max-height: none; /* Let it grow to its native size */
  margin: 0 auto; /* Switch to top alignment when zoomed so top doesn't get clipped by flexbox */
  cursor: zoom-out;
}
.close-lightbox {
  position: fixed; /* Keep it visible while scrolling */
  top: 20px;
  right: 30px;
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s;
  z-index: 10000;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.close-lightbox:hover {
  background-color: var(--brand);
  border-color: var(--brand);
  transform: scale(1.1);
}
.wf-card-img {
  cursor: pointer;
}




