/* ---------- Base / tokens ---------- */
*,
*::before,
*::after {
  box-sizing: border-box
}

:root {
  --brand: #2b68b8;
  --brand-light: #3c7dd4;
  --accent: #ffd970;
  --text: #0f172a;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(15, 23, 42, .25);
  --radius: 18px;
}

html,
body,
.snap-container {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color: var(--text)
}

a {
  color: inherit;
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

/* === snap sections (fixed) === */
.snap-container {
  /* make this the scroller */
  height: 100dvh;
  /* dynamic viewport height (mobile-safe) */
  overflow-y: auto;
  scroll-snap-type: none;
  /* OFF on load */
}

/* turn snapping ON after first interaction */
.snap-container.snap-ready {
  scroll-snap-type: y mandatory;
}

/* sections that snap (hero is section 1) */
.hero,
.snap-section {
  /* unify height; keep only this, delete any duplicate min-height in .hero later */
  min-height: 100vh;
  /* fallback */
  min-height: 100dvh;
  /* preferred: avoids half-jumps on mobile */
  scroll-snap-align: start;
  scroll-snap-stop: always;
  margin: 0;
  /* avoid margin-collapsing offsets */
}

/* smooth anchor jumps */
html {
  scroll-behavior: smooth;
}

.site-logo {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(4rem, 8vw, 8rem);
  color: #2d73b9;
  font-weight: 700;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, .2);
  margin: 0;
  position: relative;
  top: 3rem;
  text-shadow:
    -3px -3px 8px rgba(255, 255, 255, 0.9),
    /* bright glow from top-left */
    0;
  /* soft shadow bottom-right */
}

/* ---------- Navigation (desktop default) ---------- */
.menu {
  position: absolute;
  top: clamp(5rem, 5vh, 3rem) !important;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 3;
}

.menu-toggle {
  display: none
}

.menu-dropdown {
  display: none
}

/* ---------- Name / Icons / CTA ---------- */
.name-icons-section {
  position: relative;
  top: 5rem;
  z-index: 1;
  width: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  margin-block: 6vh 3vh;
}

#band-name {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 .25rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.icon-menu {
  position: relative;
  display: flex;
  top: 5rem;
  gap: .75rem;
  list-style: none;
  margin: 1.5rem 0 1rem;
  padding: 0;
  /* includes the gap you added */
}

.icon-menu a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
}

.icon-menu img {
  width: 22px;
  height: 22px
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .9rem 1.4rem;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: var(--shadow);
  color: #fff;
  font-weight: 800;
  letter-spacing: .5px;
}

.cta:hover {
  background: var(--brand-light);
  text-decoration: none
}

/* music player */
/* --- Player spacing knobs --- */
:root {
  --video-min: 560px;
  --video-max: 720px;
  --player-offset: 40rem;
  /* how far down the whole card sits */
  --card-pad: clamp(14px, 1.8vw, 22px);
  /* white padding inside the card */
  --video-shrink: 70%;
  /* iframe width inside the card */
}

/* Card */
.music-player-section.is-video {
  margin: var(--player-offset) auto auto;
  /* move it down */
  width: min(100vw - 24px, clamp(var(--video-min), 56vw, var(--video-max)));
  background: #fff;
  color: var(--text);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: var(--card-pad);
  /* more white around content */
}

/* Show white around the video by shrinking it a bit */
.music-player-section.is-video .video-frame {
  position: relative;
  width: var(--video-shrink);
  /* <— smaller than the card */
  margin-inline: auto;
  /* center it */
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.music-player-section.is-video .video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Optionally, let the video use the full width on very small phones */
@media (max-width: 420px) {
  :root {
    --video-shrink: 98%;
    --player-offset: 2.5rem;
  }
}


.image-container {
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.song-info h3 {
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  margin: .25rem 0
}

.song-info .album {
  opacity: .9;
  margin: .15rem 0 .5rem
}

.song-info p {
  opacity: .95;
  margin: 0 0 .9rem
}

.song-buttons {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #1f2937;
  font-weight: 800;
  padding: .7rem 1.2rem;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.05)
}

.song-buttons .btn:first-child {
  background-color: #3498db;
  /* pick your blue */
  color: white;
  /* ensure text is visible */
}

.ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .75)
}

.linklike {
  background: transparent;
  border: 0;
  color: #fff;
  text-decoration: underline;
  cursor: pointer
}

.song-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .75rem
}

.song-bar .time {
  opacity: .85;
  font-variant-numeric: tabular-nums
}

.bar {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, .28);
  border-radius: 999px;
  overflow: hidden
}

.fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--accent);
  width: 0
}

.thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35)
}

.song-bar .bar .fill {
  background-color: #3498db;
  /* same blue as Play button */
}

/* ===== DESKTOP/TABLET NAV (horizontal like your mockup) ===== */
@media (min-width:701px) {
  .menu {
    position: absolute;
    top: .75rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  .menu-toggle {
    display: none !important
  }

  .menu-dropdown {
    display: block !important;
    position: static;
    background: transparent;
    padding: 0;
    margin: 0;
    box-shadow: none;
  }

  .nav-menu {
    display: flex;
    gap: 2.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav-menu li {
    list-style: none
  }

  .nav-menu a {
    background: transparent;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 700;
    font-size: .9rem;
    padding: .25rem 0;
    text-decoration: none;
  }

  .nav-menu a::after {
    content: "";
    display: block;
    height: 2px;
    width: 0;
    background: rgba(255, 255, 255, .9);
    transition: width .22s ease;
  }

  .nav-menu a:hover::after {
    width: 100%
  }
}

/* --- Full-screen mobile menu (<= 700px) --- */
@media (max-width:700px) {
  .menu {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;
    padding: 12px 12px 0 12px;
    z-index: 1400;
  }

  .menu-toggle {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    right: 20px;
    gap: 6px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 12px;
    background: rgba(0, 0, 0, .45);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
    color: #fff;
    cursor: pointer;
    background-clip: padding-box;
    position: relative;
    z-index: 1500;
  }

  .menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 2px
  }

  .menu-toggle::after {
    content: none !important
  }

  .menu-dropdown {
    display: none;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100svh !important;
    left: 0 !important;
    right: 0 !important;
    max-width: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: rgba(0, 0, 0, .90);
    backdrop-filter: blur(8px);
    z-index: 1300;
    padding: calc(12px + 48px + 12px) 16px 24px;
  }

  .menu.is-open .menu-dropdown {
    display: flex !important
  }

  .nav-menu {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .nav-menu li {
    list-style: none
  }

  .nav-menu a {
    display: block;
    width: 100%;
    padding: 16px 18px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    text-decoration: none;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
  }
}

/*  BIOGRAPHY */

/* ===== BIO — Blue & Bright, no photo needed ===== */
#bio{
  position: relative;
  min-height: 100vh;
  color: #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-family: 'Merriweather', serif; /* body font */
}

/* Layered background:
   - warm "sun" glow top-left
   - soft highlight blob to the right
   - bright blue gradient base */
#bio::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 12% 10%,
      rgba(255,245,160,1) 0%,
      rgba(255,220,90,.85) 12%,
      rgba(255,180,50,.45) 26%,
      rgba(255,180,50,.15) 40%,
      transparent 52%),
    radial-gradient(60% 70% at 78% 55%, rgba(255,255,255,.18), transparent 70%),
    linear-gradient(135deg, #7ec8ff 0%, #5fb5ff 28%, #2b68b8 100%);
  filter: saturate(115%);
  z-index:0;
}

/* Gentle animated sheen for liveliness */
#bio::after {
  content:"";
  position:absolute;
  inset:-20% -10%;
  background: linear-gradient(
    100deg,
    rgba(255,255,255,0) 35%,
    rgba(255,255,255,0.28) 50%,   /* brighter white */
    rgba(255,255,255,0) 65%
  );
  transform: translateX(-35%);
  animation: bioSheen 6s ease-in-out infinite; /* faster pass */
  pointer-events:none;
  z-index:1;
}

@keyframes bioSheen {
  0%, 20%   { transform: translateX(-35%); opacity:.65; }
  50%       { transform: translateX(35%);  opacity:.35; }
  100%      { transform: translateX(-35%); opacity:.65; }
}

/* Content wrapper */
.bio-content {
  position: relative;
  z-index: 2; /* above background */
  width: min(1100px, 92vw);
  margin-inline: auto;
  padding: clamp(18px, 3.6vw, 36px);

  display: flex;
  flex-direction: column;
  align-items: center;   /* horizontal center */
  justify-content: center; /* vertical center */
  min-height: 100vh;     /* take full section height */
  text-align: center;
}

.bio-text {
  max-width: 800px;
}

/* Typography — headings in Playfair, body in Merriweather */
.bio-title{
  font-family:'Playfair Display', serif;
  font-size: clamp(2.4rem, 8vw, 5rem);
  font-weight:700;
  letter-spacing:.06em;
  line-height:1.1;
  margin: 0 0 .5rem;
}

.bio-subtitle{
  font-family:'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  font-weight:700;
  margin: 0 0 .35rem;
}

.bio-role{
  font-size: clamp(.95rem, 2.5vw, 1.15rem);
  font-style: italic;
  letter-spacing:.03em;
  opacity:.95;
  margin: 0 0 1.6rem;
}

.bio-text p{
  font-size: clamp(.95rem, 2.4vw, 1.05rem);
  line-height: 1.75;
  margin: 0 0 1rem;
  text-shadow: 0 1px 2px rgba(14,30,70,.25); /* lift on bright background */
}

/* Divider with white note */
.bio-divider{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.9rem;
  margin: 1.8rem 0 1.6rem;
}

.bio-divider .line{
  flex:1;
  max-width: 140px;
  height:1px;
  background:linear-gradient(to right, transparent, rgba(255,255,255,.55), transparent);
}

.bio-divider .note{
  width: clamp(18px, 2.8vw, 28px);
  height:auto;
  flex-shrink:0;
  filter: drop-shadow(0 0 4px rgba(255,255,255,.45));
}

/* Mobile tweaks: tighten padding, center text */
@media (max-width: 768px){
  .bio-content{ place-items: center; text-align:center; }
  .bio-text{ max-width: 640px; }
}

#gallery, #bio { overflow: hidden; }
.gallery-backdrop, .bio::before, .bio::after {
  position: absolute; inset: 0; border-radius: 0;
}

/* ===== GALLERY ===== */
.gallery-title {
  text-align: center;                     /* center it */
  font-family: 'Playfair Display', serif; /* same as Biography for consistency */
  font-size: clamp(2rem, 6vw, 3rem);      /* responsive scaling */
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
  color: #fff;                            /* white against blue backdrop */
  position: relative;
}

/* Optional: decorative underline */
.gallery-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: rgba(255, 255, 255, 0.6);
  margin: 0.75rem auto 0;  /* space below text, centered */
  border-radius: 2px;
}

/* Make sure the section layers correctly */
#gallery {
  position: relative;
  color: #fff;
  isolation: isolate; /* keeps backdrop effects behind content */
}

/* Background: bright blue gradient + subtle warm glow (like BIO) */
.gallery-backdrop{
  position: absolute;
  inset: 0;
  z-index: 0;
  /* base gradient */
  background:
    radial-gradient(60% 70% at 78% 55%, rgba(255,255,255,.18), transparent 70%),
    linear-gradient(135deg, #7ec8ff 0%, #5fb5ff 28%, #2b68b8 100%);
  filter: saturate(115%);
  overflow: hidden; /* contain the pseudo-element sweep */
}

/* Optional small sun/glow — keep subtle */
.gallery-backdrop::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 12% 10%,
      rgba(255,245,160,1) 0%,
      rgba(255,220,90,.75) 12%,
      rgba(255,180,50,.28) 32%,
      transparent 50%);
  pointer-events:none;
}


/* Keep your inner wrapper above the backdrop */
.gallery-wrap { position: relative; z-index: 1; }


/* Masonry container (columns, not grid) */
.masonry{
  column-width: 320px;           /* ← target card width; browser picks # of columns */
  column-gap: 12px;              /* gutter between columns */
  width: min(1200px, 94vw);
  margin: 0 auto;
}

/* Each card */
.masonry figure{
  break-inside: avoid;           /* critical: prevent column breaks inside items */
  margin: 0 0 12px;              /* vertical gutter */
  border-radius: 12px;
  overflow: hidden;
  background: #0b0b0b;
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
  transition: transform .2s ease, box-shadow .2s ease;
}

/* Images fill card width, keep aspect ratio */
.masonry img{
  display: block;
  width: 100%;
  height: auto;
}

/* Optional hover glow, tight + tasteful */
.masonry figure:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.85),
    0 0 28px rgba(173, 216, 255, 0.6),
    0 0 48px rgba(80, 160, 255, 0.4);
}




/* Responsive: increase “density” by reducing target width */
@media (max-width: 1100px){ .masonry{ column-width: 280px; } }
@media (max-width: 900px){  .masonry{ column-width: 240px; } }
@media (max-width: 700px){  .masonry{ column-width: 200px; } }
@media (max-width: 520px){  .masonry{ column-width: 170px; column-gap: 10px; } }





/* ---- Desktop nav: prevent overflow, keep centered ---- */
@media (min-width:701px) {
  .menu {
    padding-inline: 16px;
    /* some breathing room */
  }

  .menu .nav-menu {
    display: flex;
    flex-wrap: wrap;
    /* <-- allow wrapping instead of overflowing */
    gap: clamp(12px, 2vw, 28px);
    /* responsive gap (smaller on narrow screens) */
    justify-content: center;
    max-width: min(1200px, 96vw);
    /* never wider than the viewport */
    margin: 0 auto;
    /* center the whole list */
  }
}

/* HERO — height is always 100% of the viewport */
/* HERO — ALWAYS full viewport height, image centered */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  /* full screen height */
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("assets/gallery/4.jpg") center/cover no-repeat;
  filter: blur(20px);
  transform: scale(1.1);
  /* prevents edge cutoff after blur */
  z-index: -1;
  /* keep it behind the content */
}

.hero .content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-photo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* hard-center the image */
}

/* Image fills the hero's HEIGHT exactly; width auto to preserve ratio */
.hero-photo>img.hero-bg {
  height: 100%;
  /* key: always full hero height */
  width: auto;
  max-width: none;
  /* allow wider than viewport */
  display: block;
  border-radius: 20px;
  /* adjust px as you like */
  overflow: hidden;
}

/* safety: avoid any accidental horizontal scroll */
html,
body,
.snap-container {
  overflow-x: hidden;
}


/* PHONE: force the hero image to be exactly the viewport height */
@media (max-width: 700px) {
  .hero {
    height: 100svh;
    /* section equals the screen height */
    min-height: 100svh;
    background: #fff;
    overflow: hidden;
  }

  .hero-photo {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    /* center the image */
  }

  .hero-photo>img.hero-bg {
    position: static !important;
    width: auto !important;
    /* keep aspect ratio */
    height: 100svh !important;
    /* <-- FULL image height on phone */
    max-height: 100svh !important;
    max-width: none !important;
    /* allow white bars left/right */
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
  }
}

/* NEWS */
/* === NEWS — simple/compact ==================================== */
.news {
  position: relative;
  isolation: isolate;
  color: var(--text);
}

.news-backdrop {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, rgba(80, 130, 200, 0.65), rgba(30, 60, 120, 0.9)),
    radial-gradient(circle at 50% 20%, #b3d4ff, #204080);
  background-size: cover;
  background-position: center;
  filter: blur(12px) saturate(120%);
  transform: scale(1.03);
  z-index: 0;
}

.news-backdrop::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    75deg,
    rgba(255,255,255,0.15) 0%,
    rgba(255,255,255,0.05) 20%,
    rgba(255,255,255,0.15) 40%
  );
}

.news-wrap {
  position: relative;
  z-index: 1;
  width: min(1200px, 94vw);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 26px);
}

.news-header {
  text-align: center;
  color: #fff;
  margin-bottom: clamp(10px, 2vw, 18px);
}

.news-header h2 {
  margin: 0 0 .25rem;
  font-size: clamp(1.9rem, 4.6vw, 2.4rem);
}

.news-header p {
  margin: 0;
  opacity: .95;
}

/* Grid: smaller cards; 3-up desktop, 2-up tablet, 1-up phone. 
   Tweak the 300px to allow more/less columns (e.g. 260px = up to 4 across). */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(10px, 2vw, 16px);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Card */
.news-card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.8),
    0 8px 22px rgba(0, 0, 0, 0.3);
}

.news-media {
  margin: 0;
  background: rgba(0, 0, 0, .06);
}

.news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Compact type & spacing */
.news-body {
  padding: clamp(10px, 1.6vw, 14px);
}

.news-date {
  display: inline-block;
  font-size: .8rem;
  opacity: .75;
  background: rgba(15, 23, 42, .06);
  padding: .18rem .5rem;
  border-radius: 999px;
  margin-bottom: .35rem;
}

.news-title {
  margin: .1rem 0 .3rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}

.news-excerpt {
  margin: 0;
  line-height: 1.55;
}

.news-actions {
  margin-top: .6rem;
}

.news-actions .btn {
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: .45rem .8rem;
  font-weight: 700;
  text-decoration: none;
}

.news-actions .btn:hover {
  background: var(--brand-light);
  text-decoration: none;
}


/* =========================
   CONTACT
   ========================= */

/* Make the section truly full-screen and anchor-friendly */
#contact.snap-section{
  position: relative;
  /* ↓ this line is the knob that makes the section smaller */
  min-height: clamp(700px, 92svh, 1200px);
  height: auto;                /* let content define the final height */
  overflow: hidden;
  isolation: isolate;
  scroll-margin-top: 80px;     /* adjust if your header size differs */
}
@supports (height: 100svh){
  #contact.snap-section{ min-height: 100svh; height: 100svh; }
}

/* Bright animated backdrop (does not block clicks) */
.contact-backdrop{
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 78% 55%, rgba(255,255,255,.16), transparent 70%),
    linear-gradient(135deg, #7ec8ff 0%, #5fb5ff 28%, #2b68b8 100%);
  filter: saturate(115%);
}
.contact-backdrop::after{
  content:""; position:absolute; inset:-20% -10%; pointer-events:none;
  background: linear-gradient(100deg,
    rgba(255,255,255,0) 35%,
    rgba(255,255,255,.18) 50%,
    rgba(255,255,255,0) 65%);
  animation: contactSheen 10s ease-in-out infinite;
}
@keyframes contactSheen{
  0%,20%{ transform: translateX(-35%); opacity:.6; }
  50%   { transform: translateX(35%);  opacity:.35; }
  100%  { transform: translateX(-35%); opacity:.6; }
}

/* Center the panel vertically within the section */
.contact-wrap{
  position: relative; z-index: 1;
  min-height: 100%;
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 28px);
  display: grid;
  place-items: center;
}

/* Main "business card" */
.contact-panel{
  position: relative; z-index: 1;
  width: 100%;
  max-width: 900px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(15,23,42,.22);
  backdrop-filter: blur(6px);
  padding: clamp(18px, 3vw, 26px);
}

/* Header & title */
.contact-header{
  text-align: center;
  color: #0b1e3a;
  margin-bottom: clamp(12px, 2vw, 18px);
}
.contact-header h2{
  margin: 0 0 .35rem;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.1rem, 5.8vw, 2.7rem);
  letter-spacing: .04em;
}
.contact-header p{ margin: 0; opacity: .9; }

/* Social row under intro text */
.contact-social-inline{
  list-style: none; margin: 12px 0 2px; padding: 0;
  display: flex; justify-content: center; gap: 12px;
}
.contact-social-inline a{
  display:inline-flex; align-items:center; justify-content:center;
  width: 44px; height: 44px; border-radius: 999px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 8px 18px rgba(15,23,42,.18);
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.contact-social-inline a:hover{
  transform: translateY(-2px);
  box-shadow:
    0 0 12px rgba(255,255,255,.85),
    0 8px 22px rgba(0,0,0,.28);
}
.contact-social-inline img{ width:22px; height:22px; display:block; }

/* Form card */
.contact-form{
  background: #fff;
  border: 1px solid #e8edf6;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
  padding: clamp(14px, 2vw, 18px);
  width: min(740px, 100%);
  margin: 6px auto 0;
  overflow: hidden; /* prevents children from spilling */
}

/* Grid container for fields */
.contact-form .fields{
  display: grid;
  gap: 12px;
  min-width: 0; /* allow grid to shrink without overflow */
}

/* CRITICAL: prevent grid children from forcing the card to overflow */
.contact-form label,
.contact-form .grid-2 > *{
  min-width: 0;     /* <— fixes the horizontal overflow you saw */
}

/* Two-up row */
.contact-form .grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px){
  .contact-form .grid-2{ grid-template-columns: 1fr; }
}

/* Inputs */
.contact-form label span{
  display:block;
  font-size: .92rem;
  margin-bottom: .25rem;
  color: #334155;
}
.contact-form input,
.contact-form select,
.contact-form textarea{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box; /* be explicit */
  border: 1px solid #dbe0ea;
  border-radius: 12px;
  padding: .75rem .9rem;
  font: inherit;
  outline: none;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
  border-color: #2b68b8;
  box-shadow: 0 0 0 3px rgba(43,104,184,.15);
}

/* Textarea can only grow vertically, and never outside the form */
.contact-form textarea{
  resize: vertical;         /* no horizontal resize */
  min-height: 140px;
  max-height: 45vh;         /* keep it inside the panel */
  overflow: auto;
}

/* Actions */
.actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: .5rem;
}
.btn.primary{
  background: #2b68b8;
  color: #fff;
  border-radius: 999px;
  padding: .65rem 1.1rem;
  font-weight: 800;
}
.btn.primary:hover{ background: #3c7dd4; }
.btn.ghost{
  background: transparent;
  border: 2px solid rgba(15,23,42,.2);
  color: #0f172a;
  border-radius: 999px;
  padding: .6rem 1rem;
}
.contact-form .tiny-note{
  margin: .6rem 0 0;
  font-size: .85rem;
  opacity: .8;
}

/* Seam guard to avoid 1px gaps between full-height sections on mobile */
.snap-section + .snap-section{ margin-top: -1px; }

/* Seam guard between stacked full-height snap sections */
.snap-section + .snap-section { margin-top: -1px; }

/* Contact: ensure we cover any rounding seam at the very top */
#contact.snap-section {
  min-height: 100svh;           /* full height on mobile too */
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  padding-top: 1px;             /* cover seam */
  margin-top: -1px;             /* pull up by the same amount */
}

/* Backdrop must not intercept clicks and must fill the section */
#contact .contact-backdrop {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* If you use a fixed header, keep scroll offset only on small screens */
@media (max-width: 700px){
  #contact { scroll-margin-top: 64px; }  /* adjust to your mobile header */
}
@media (min-width: 701px){
  #contact { scroll-margin-top: 0; }     /* no offset on desktop snap */
}

/* Inside your .contact-form textarea rules */
.contact-form textarea {
  height: 160px;     /* fixed comfortable height */
  max-height: 220px; /* hard cap just in case */
  resize: none;      /* disable manual resize */
  overflow: auto;    /* scroll inside the box instead */
}

.snap-section + .snap-section { margin-top: -2px; }


/* Only for the last page */
#contact.snap-section{
  scroll-snap-align: end;   /* <- instead of start */
  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

/* keep backdrop full + click-through */
#contact .contact-backdrop{ position:absolute; inset:0; pointer-events:none; }