/* ─── Logo size token ─────────────────────────────────────────────────────── */
:root { --logo-size: min(320px, 80vw); }

/* Touch screens get a slightly smaller circle */
@media (hover: none) and (pointer: coarse) {
  :root { --logo-size: min(270px, 80vw); }
}

/* ─── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  min-height: 100%;
  background: #fbf1e2;
}

/* ─── Background layer ────────────────────────────────────────────────────── */
.bg-layer {
  position: fixed;
  inset: 0;
  background: #fbf1e2;
  overflow: hidden;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image:         linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* ─── Scrolling blob track ────────────────────────────────────────────────── */
.blob-track {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  will-change: transform;
  animation: blob-scroll 50s linear infinite;
}

@keyframes blob-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(var(--scroll-dist, -3680px)); }
}

/* ─── Blob cells ──────────────────────────────────────────────────────────── */
.blob-cell { position: absolute; overflow: hidden; }
.blob-cell img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ─── Cookie accents ──────────────────────────────────────────────────────── */
.cookie-accent { display: none; }

/* ─── Foreground layer ────────────────────────────────────────────────────── */
.fg-layer {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;   /* fallback */
  min-height: 100dvh;  /* dvh = dynamic viewport height: already excludes iOS browser chrome */
  padding: 20px;
}

/* ─── Wrapper ─────────────────────────────────────────────────────────────── */
.fg-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 540px;
}

/* ─── Logo circle ─────────────────────────────────────────────────────────── */
.logo-circle {
  width: var(--logo-size);
  height: var(--logo-size);
  border-radius: 50%;
  background: #030fb9;
  box-shadow: 0px 8px 30px 0px rgba(3, 15, 185, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.logo-svg { width: 82%; height: auto; display: block; }

/* ─── Glass card ──────────────────────────────────────────────────────────── */
.glass-card {
  position: relative;
  z-index: 1;
  width: 100%;
  /* Overlap = half the logo circle height */
  margin-top: calc(var(--logo-size) / -2);
  padding: calc(var(--logo-size) / 2 + 20px) 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.50);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter:         blur(20px) saturate(160%);
  border-radius: 30px;
  box-shadow: 0px 8px 40px 0px rgba(3, 15, 185, 0.12);
}

/* ─── Card text ───────────────────────────────────────────────────────────── */
.subtitle {
  font-family: 'Dela Gothic One', sans-serif;
  font-size: clamp(1.45rem, 5vw, 2rem);
  line-height: 1.10;
  color: #030fb9;
  max-width: 380px;
}

.tagline {
  font-family: 'Cal Sans', sans-serif;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #030fb9;
  text-wrap: pretty;
}

/* ─── Email button ────────────────────────────────────────────────────────── */
.btn-email {
  display: block;
  width: 100%;
  background: #030fb9;
  color: #fbf1e2;
  font-family: 'Dela Gothic One', sans-serif;
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  padding: 26px 20px;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(3, 15, 185, 0.22);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-email:hover {
  opacity: 0.92;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(3, 15, 185, 0.38);
}

/* ─── Instagram follow link ───────────────────────────────────────────────── */
.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #030fb9;
  font-family: 'Dela Gothic One', sans-serif;
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  line-height: 1;
  text-decoration: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  padding-bottom: 6px;
}
.btn-instagram:hover { opacity: 0.72; transform: translateY(-2px); }
.btn-instagram svg { flex-shrink: 0; }

/* ─── Gallery link — mobile only (shown below 768px) ─────────────────────── */
.btn-gallery {
  display: inline-block; /* visible by default; hidden on desktop above */
  -webkit-appearance: none;
  appearance: none;
  font-family: 'Cal Sans', sans-serif;
  font-size: 1rem;
  line-height: 1;
  color: #030fb9;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-align: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-top: 10px;
  transition: opacity 0.18s ease;
}
.btn-gallery:hover { opacity: 0.62; }

/* ─── Desktop restore ─────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .btn-gallery { display: none; }
  .tagline     { font-size: clamp(0.95rem, 3vw, 1.15rem); }
  .glass-card  { gap: 20px; padding-left: clamp(20px, 6vw, 46px); padding-right: clamp(20px, 6vw, 46px); }
}

/* ─── Lightbox ────────────────────────────────────────────────────────────── */
.lightbox { display: none; }

.lightbox.is-open {
  display: flex;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: rgba(3, 15, 185, 0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.lb-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92vw;
  max-height: 72vh;
}
.lb-img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 14px;
  display: block;
}

.lb-close, .lb-prev, .lb-next {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  cursor: pointer;
}

.lb-close {
  position: absolute;
  top: 18px; right: 22px;
  background: none;
  color: #fbf1e2;
  font-size: 2.2rem;
  line-height: 1;
  padding: 6px 10px;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.lb-close:hover { opacity: 1; }

.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(251, 241, 226, 0.12);
  color: #fbf1e2;
  font-size: 2.8rem;
  line-height: 1;
  padding: 10px 16px;
  border-radius: 8px;
  transition: background 0.15s;
  user-select: none;
  -webkit-user-select: none;
}
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-prev:hover, .lb-next:hover { background: rgba(251, 241, 226, 0.26); }

.lb-counter {
  font-family: 'Cal Sans', sans-serif;
  font-size: 0.9rem;
  color: #fbf1e2;
  opacity: 0.65;
  letter-spacing: 0.04em;
}
