:root {
  --primary: #44C2F1;   /* TailTech light blue */
  --primary-deep: #0B1B2B;
  --text: #0B1220;      /* dark navy for readability */
  --muted: #475569;
  --bg: #ffffff;        /* white background */
  --bg-alt: #F8FAFC;    /* light gray-blue surface */
  --card: #ffffff;
  --border: #E5EEF5;
}

/* Base */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1120px; margin: 0 auto; padding: 24px; }

/* Nav */
.nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--primary);
}
.brand img { height: 32px; }
.nav .links a {
  margin: 0 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.nav .links a.active { color: var(--primary); }

/* Hero */
.hero {
  padding: 72px 24px 40px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 400px at 10% -10%, rgba(68,194,241,.15), transparent),
    radial-gradient(700px 300px at 110% 0%, rgba(11,27,43,.05), transparent);
}
.hero h1 {
  font-size: 40px;
  line-height: 1.12;
  margin: 0 0 12px;
  letter-spacing: -.02em;
}
.hero p { color: var(--muted); max-width: 780px; margin: 0 0 20px; }

/* Layout */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card {
  grid-column: span 12;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(11,27,43,.04);
}
.card h3 { margin-top: 0; }
@media (min-width: 720px) {
  .card.span-6 { grid-column: span 6; }
  .card.span-4 { grid-column: span 4; }
}

.kicker {
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #6b7280;
  font-size: 12px;
  margin-bottom: 6px;
}

.footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  color: #64748b;
  padding: 24px;
  text-align: center;
}

.list-plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: #0f172a;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}
.hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid #bfeeff;
  box-shadow: 0 6px 24px rgba(68,194,241,.18);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(68,194,241,.28); }
.btn.secondary {
  background: var(--bg-alt);
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}

/* Normalize buttons to match <a class="btn"> */
.btn {
  font-family: inherit;     /* use the site font */
  font-size: 1rem;          /* keep sizes consistent */
  line-height: 1;           /* avoids vertical wobble */
  font-weight: 600;         /* optional: match visual weight */
  cursor: pointer;          /* hand cursor on hover */
  -webkit-appearance: none; /* remove OS-specific button styles */
  -moz-appearance: none;
  appearance: none;
}

/* Optional: ensure <button> doesn’t fight styles */
button.btn {
  background: var(--primary);
  border: 1px solid #bfeeff;
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(68,194,241,.18);
}

/* Your existing variant still applies */
.btn.secondary {
  background: var(--bg-alt);
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}


/* Forms */
.input, textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px;
  border-radius: 10px;
}
.row { display: grid; gap: 14px; }
@media (min-width: 720px) {
  .row.two { grid-template-columns: 1fr 1fr; }
}

/* ===== HERO QUOTE (first-screen) ===== */
.hero-quote {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.hero-quote-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-quote-inner {
    grid-template-columns: 1.1fr 1fr; /* quote left (slightly wider), bubbles right */
  }
}

/* Left: quote */
.quote-side {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px 24px 24px;
  box-shadow: 0 8px 24px rgba(11,27,43,.04);
}
.quote-mark {
  position: absolute;
  top: -16px;
  left: -6px;
  font-size: 88px;
  line-height: 1;
  color: rgba(68,194,241,.25);
  font-weight: 800;
  pointer-events: none;
}
.quote-text {
  margin: 0 0 10px 0;
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.25;
  color: var(--text);
  font-weight: 600;
}
.quote-author {
  color: var(--muted);
  font-size: 14px;
}

/* Right: thought-bubble cloud stack */
.bubble-side {
  display: grid;
  place-items: center;
}
.bubble-stack {
  position: relative;
  width: min(560px, 90%);
  height: 360px;
}
@media (max-width: 420px) {
  .bubble-stack { height: 300px; }
}

/* Generic bubble style (irregular rounded shape + outline) */
.bubble {
  position: absolute;
  border-radius: 50% 60% 40% 60% / 50% 60% 40% 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  box-shadow: 0 0 0 6px rgba(68,194,241,.12), 0 12px 28px rgba(11,27,43,.08);
  overflow: hidden;
}

/* Three sizes + placement */
.bubble-sm {
  width: 160px; height: 140px;
  top: 12%; left: 8%;
  transform: rotate(-6deg);
  opacity: .95;
}
.bubble-lg {
  width: 320px; height: 260px;
  top: 22%; left: 34%;
  transform: rotate(4deg);
}
.bubble-md {
  width: 200px; height: 170px;
  top: 56%; left: 10%;
  transform: rotate(8deg);
  opacity: .98;
}

/* Image inside the main bubble */
.bubble-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* fill the bubble nicely */
  display: block;
}

/* Optional subtle floating animation */
@media (prefers-reduced-motion: no-preference) {
  .bubble-sm { animation: floaty 12s ease-in-out infinite; }
  .bubble-md { animation: floaty 14s ease-in-out infinite reverse; }
  .bubble-lg { animation: floaty 16s ease-in-out infinite; }
  @keyframes floaty {
    0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
    50%      { transform: translateY(-8px) rotate(calc(var(--rot, 0deg) + 2deg)); }
  }
}

/* === Team cards === */
.team-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--border);
  object-fit: cover;
  background: var(--bg-alt);
}

.team-body h3 {
  margin: 0 0 4px 0;
}
.role {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 10px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: #0f172a;
}

/* ========== Sections ========== */
.section { padding: 56px 0; border-bottom: 1px solid var(--border); }
.section:last-of-type { border-bottom: 0; }
.section-alt { background: var(--bg-alt); }

/* Section header */
.section-head { text-align: left; margin-bottom: 18px; }
.section-head h2 {
  margin: 0 0 6px 0;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.02em;
}
.section-head p { color: var(--muted); max-width: 760px; margin: 0; }

/* Mission layout */
.mission-panel {
  display: grid; gap: 18px; margin-top: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .mission-panel { grid-template-columns: 1.2fr 1fr; }
}
.mission-copy p { margin: 0 0 10px 0; }
.values { list-style: none; padding: 0; margin: 12px 0 0 0; display: grid; gap: 8px; }
.mission-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(11,27,43,.04);
}

/* Stats */
.stats {
  display: grid; gap: 16px; margin-top: 16px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; }
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(11,27,43,.03);
}
.stat-num { font-size: 28px; font-weight: 700; color: var(--primary-deep); }
.stat-label { color: var(--muted); font-size: 14px; }
.stat-footnote { color: #6b7280; font-size: 12px; margin-top: 10px; }

/* Approach pillars */
.approach {
  display: grid; gap: 16px; margin-top: 16px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 960px) {
  .approach { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .approach { grid-template-columns: 1fr; }
}
.pillar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(11,27,43,.03);
}
.pillar-ico { font-size: 22px; margin-bottom: 6px; }

/* Teaser */
.teaser {
  display: grid; gap: 18px; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .teaser { grid-template-columns: 1.2fr 1fr; }
}
.teaser-copy .kicker { color: #6b7280; text-transform: uppercase; letter-spacing: .18em; font-size: 12px; }
.teaser-copy h3 { margin: 8px 0; }
.teaser-art { display: flex; align-items: center; gap: 12px; }

/* CTA */
.cta { text-align: center; }
.cta h2 { margin: 0 0 10px 0; }
.cta-actions { display: inline-flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* === Reusable bubbles with optional images === */
.bubble { 
  position: absolute;
  border-radius: 50% 60% 40% 60% / 50% 60% 40% 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  box-shadow: 0 0 0 6px rgba(68,194,241,.12), 0 12px 28px rgba(11,27,43,.08);
  overflow: hidden;
  transform: rotate(var(--rot, 0deg));
}
.bubble-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Sizes */
.bubble-xs { width: 90px;  height: 75px; }
.bubble-sm { width: 160px; height: 140px; }
.bubble-md { width: 200px; height: 170px; }
.bubble-lg { width: 320px; height: 260px; }
.bubble-xl { width: 360px; height: 300px; }

/* Mission side art container */
.mission-art {
  position: relative;
  min-height: 360px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(11,27,43,.04);
}

/* Decorative bubbles anchoring a section */
.section .section-bubbles {
  position: relative;
  min-height: 0; /* purely decorative */
}
.section .section-bubbles .bubble { position: absolute; }

/* Bubble gallery row */
.bubble-gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.bubble-gallery .bubble {
  position: relative;  /* inside grid cell */
  width: 100%;
  padding-top: 75%;    /* maintain aspect ratio */
  height: 0;
  box-shadow: 0 8px 24px rgba(11,27,43,.05);
}
.bubble-gallery .bubble img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
@media (max-width: 960px) {
  .bubble-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .bubble-gallery { grid-template-columns: 1fr; }
}

/* CTA bubble strip (subtle decorative row) */
.bubble-strip {
  position: relative;
  margin-top: 16px;
  height: 110px;
}
.bubble-strip .bubble { position: absolute; }
.bubble-strip .bubble:nth-child(1) { top: 12px; left: 10px; }
.bubble-strip .bubble:nth-child(2) { top: 0; left: 120px; transform: rotate(-5deg); }
.bubble-strip .bubble:nth-child(3) { top: 10px; left: 260px; transform: rotate(3deg); }
.bubble-strip .bubble:nth-child(4) { top: 24px; left: 420px; }

/* Motion (gentle float) */
@media (prefers-reduced-motion: no-preference) {
  .bubble-xs { animation: floaty 11s ease-in-out infinite; }
  .bubble-sm { animation: floaty 12s ease-in-out infinite; }
  .bubble-md { animation: floaty 14s ease-in-out infinite reverse; }
  .bubble-lg { animation: floaty 16s ease-in-out infinite; }
  .bubble-xl { animation: floaty 18s ease-in-out infinite reverse; }
  @keyframes floaty {
    0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
    50%      { transform: translateY(-8px) rotate(calc(var(--rot, 0deg) + 2deg)); }
  }
}

/* Keep text above decorative art */
.layer-top { position: relative; z-index: 2; }

/* Contain bubbles to their side/box and keep them behind text */
.decor-safe {
  position: relative;
  overflow: hidden;     /* prevents bubbles from escaping the box */
  z-index: 1;           /* sits under .layer-top */
}

/* Full-width, no-clip wrapper for between-section bubbles */
.decor-free {
  position: relative;
  width: 100%;
  height: 0;           /* sits in the gap between sections */
  z-index: 1;          /* below .layer-top text */
  /* no overflow hidden on purpose */
}

/* Optional: hide side bubbles on small screens to reduce clutter */
@media (max-width: 640px) {
  .decor-free { display: none; }
}

/* Collapsible details section */
.details-collapsible {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
  border-top: 1px solid var(--border);
}
.details-collapsible.open {
  /* big enough to fit contents; adjust if you add more */
  max-height: 2000px;
}

/* --- Roomier cards & typography --- */
.card {
  padding: 28px;                 /* was ~20px */
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(11,27,43,.05);
}
.card h3 { margin: 6px 0 10px 0; }
.kicker { margin-bottom: 10px; }

.grid { gap: 22px; }             /* a bit more spacing between cards */

.card p {                        /* more breathable body copy */
  margin: 10px 0 12px 0;
  line-height: 1.75;
}

/* --- Split layout with subtle vertical divider for Problem/Solution --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  position: relative;
}
.split .col { position: relative; }

/* Faded divider (disables on small screens) */
.split::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  transform: translateX(-0.5px);
  background: linear-gradient(
    to bottom,
    rgba(148,163,184,0) 0%,
    rgba(148,163,184,.35) 12%,
    rgba(148,163,184,.35) 88%,
    rgba(148,163,184,0) 100%
  );
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split::before { display: none; }
  .split .col + .col { border-top: 1px dashed var(--border); padding-top: 16px; }
}

/* --- Image boxes you can drop anywhere --- */
.img-box {
  position: relative;
  width: 100%;
  padding-top: 58%;              /* 16:9-ish ratio; tweak as needed */
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-alt);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(11,27,43,.04);
  margin-top: 10px;              /* give the image a breath below text */
}
.img-box img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.img-caption {
  font-size: 12px; color: #64748b;
  margin-top: 6px;
}

/* Optional: give details section a bit more breathing room */
.details-collapsible.open { max-height: 3000px; }

/* Testimonial layout: media left, story right */
.testimonial-card .testimonial-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 260px 1fr; /* left column wide enough for bubbles */
  align-items: start;
}
@media (max-width: 900px) {
  .testimonial-card .testimonial-grid { grid-template-columns: 1fr; }
}

/* Left column: stacked bubbles */
.testi-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Inline bubble frames (contained, not absolutely positioned) */
.bubble-inline {
  border-radius: 50% 60% 40% 60% / 50% 60% 40% 50%;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(11,27,43,.06), 0 0 0 6px rgba(68,194,241,.10);
}

/* Two sizes for the stacked look */
.bi-lg { aspect-ratio: 4 / 3; }     /* ~wider, sits on top */
.bi-md { aspect-ratio: 4 / 3; transform: translateX(16px) rotate(2.5deg); }

.bubble-inline img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Mozart intro layout ===== */
.mozart-hero .hero-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 280px 1fr;  /* images left, text right */
  align-items: center;
}
@media (max-width: 900px) {
  .mozart-hero .hero-grid { grid-template-columns: 1fr; }
}

/* stacked bubbles on the left */
.mozart-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bubble-inline {
  border-radius: 50% 60% 40% 60% / 50% 60% 40% 50%;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(11,27,43,.06), 0 0 0 6px rgba(68,194,241,.10);
}
.bubble-inline img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* sizes + subtle offsets for depth */
.bi-lg { aspect-ratio: 4 / 3; }
.bi-md { aspect-ratio: 4 / 3; transform: translateX(14px) rotate(2deg); }

/* big message on the right */
.mozart-headline h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* short context card */
.mozart-context p {
  margin: 8px 0;
  line-height: 1.75;
}
.mozart-context strong { font-weight: 700; }

.story-card {
  max-width: 500px;          /* narrower than full container */
  margin: 40px auto;         /* centered with space around */
  padding: 40px 30px;        /* more vertical padding */
  background: var(--bg-alt); /* subtle background instead of border */
  border-radius: 12px;       /* rounded edges */
  text-align: center;        /* center justify the text */
  line-height: 1.6;          /* looser line spacing for readability */
  box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* soft shadow, optional */
}
.story-card strong {
  display: block;
  margin-top: 20px;
  font-weight: 600;
  color: var(--primary);
}

/* Two-column layout: story text left, bubble image right */
.story-row {
  display: grid;
  grid-template-columns: 1fr 280px; /* match mozart-hero media width */
  gap: 20px;
  align-items: center;              /* vertically align both sides */
  margin: 40px 0;                   /* space above/below the row */
}

/* Make the story card align left instead of centered */
.story-card.story-left {
  max-width: none;        /* cancel 500px limit */
  margin: 0;              /* cancel auto-centering */
  text-align: left;       /* left-align text */
}

/* Right-side bubble container */
.story-bubble {
  display: flex;
  justify-content: center;
}

/* Responsive: stack on small screens */
@media (max-width: 900px) {
  .story-row {
    grid-template-columns: 1fr;
  }
  .story-bubble {
    order: -1;            /* optional: show image above text on mobile */
    margin-bottom: 12px;
  }
}

/* Findings card layout */
.findings-card {
  padding: 40px 30px;
}

.findings-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center; /* was start */
}

@media (max-width: 900px) {
  .findings-grid { grid-template-columns: 1fr; }
}

/* Headline on left */
.findings-head h2 {
  font-size: clamp(28px, 4vw, 40px); /* nice big responsive text */
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
  margin: 0;
}

.findings-head {
  display: flex;
  align-items: center;   /* vertical centering inside this column */
  height: 100%;          /* stretch to full card height */
}


/* Findings body on right */
.findings-body ul {
  margin: 0;
  padding: 0;
  list-style: disc inside;
}
.findings-body li {
  margin-bottom: 20px;      /* spacing between points */
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Borderless, oversized headline card used as a spacer */
.headline-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: clamp(28px, 6vw, 72px) 8px 8px; /* roomy top padding, subtle bottom */
  text-align: center;
  grid-column: span 12;
  margin-top: 8px;
  margin-bottom: 4px;
}
.headline-card .kicker {
  color: #64748b;
  font-weight: 600;
  letter-spacing: .22em;
  margin-bottom: 10px;
}
.headline-card h2 {
  margin: 0;
  font-size: clamp(36px, 6.5vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ====== Contact page: tidy bubble collage (minimal overlap) ====== */
.collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 across on desktop */
  gap: 14px;                              /* base gap */
  position: relative;
  margin-top: 8px;
}

/* Collage items are "inline" bubbles so they don't escape the column */
.collage .bubble-inline {
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  border-radius: 50% 60% 40% 60% / 50% 60% 40% 50%;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(11,27,43,.06), 0 0 0 6px rgba(68,194,241,.10);
  position: relative;
}

/* Very gentle overlap pattern (tiny nudges), still readable */
.collage .bubble-inline:nth-child(3n+1) { transform: translateY(6px) rotate(-2deg); }
.collage .bubble-inline:nth-child(3n+2) { transform: translateY(-6px) rotate(1.5deg); }
.collage .bubble-inline:nth-child(3n)   { transform: translateX(-6px) rotate(2deg); }

/* Reduce the overlap on small screens (or remove transforms entirely) */
@media (max-width: 960px) {
  .collage { grid-template-columns: repeat(2, 1fr); }
  .collage .bubble-inline { transform: none; }
}
@media (max-width: 520px) {
  .collage { grid-template-columns: 1fr; }
}

/* Images inside the inline bubbles */
.collage .bubble-inline img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ====== Decorative bands with controlled spacing (no heavy overlap) ====== */
.bubble-band {
  position: relative;
  width: 100%;
  height: 180px;               /* adjust as you like */
  overflow: visible;
  z-index: 1;                  /* sits below .layer-top content */
}

/* Use data-columns to distribute bubbles; keeps them from colliding */
.bubble-band .bubble {
  --rot: 0deg;
  position: absolute;
}
.bubble-band[data-columns="5"] .bubble:nth-child(1) { left: 6%;  top: 28px;  }
.bubble-band[data-columns="5"] .bubble:nth-child(2) { left: 26%; top: 60px;  }
.bubble-band[data-columns="5"] .bubble:nth-child(3) { left: 46%; top: 20px;  }
.bubble-band[data-columns="5"] .bubble:nth-child(4) { left: 66%; top: 68px;  }
.bubble-band[data-columns="5"] .bubble:nth-child(5) { left: 84%; top: 36px;  }

/* Slight size variety, still tidy */
.bubble-band .bubble-sm { width: 150px; height: 130px; }
.bubble-band .bubble-md { width: 190px; height: 160px; }
.bubble-band .bubble-lg { width: 260px; height: 210px; }

.bubble-band .bubble-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Tone down motion a touch for bands */
@media (prefers-reduced-motion: no-preference) {
  .bubble-band .bubble-sm { animation: floaty 13s ease-in-out infinite; }
  .bubble-band .bubble-md { animation: floaty 15s ease-in-out infinite reverse; }
  .bubble-band .bubble-lg { animation: floaty 17s ease-in-out infinite; }
}

/* Bulletproof the collage: even if .decor-free sneaks on, force real height */
.bubble-collage {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 1120px;         /* match your .container width */
  margin: 28px auto !important;
  height: 680px !important;  /* give it space */
  overflow: visible !important;
  z-index: 1;                /* stays behind .layer-top form */
}

/* ensure children are absolutely placed against this wrapper */
.bubble-collage .bubble { position: absolute !important; }

/* images always fill bubbles */
.bubble-collage .bubble-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;}

  /* Make the collage occupy 6/12 columns next to the form */
.bubble-collage { grid-column: span 6; }
@media (max-width: 720px) { .bubble-collage { grid-column: span 12; } }

/* Already good, but reiterating the positioning */
.bubble-collage { position: relative; height: 680px; width: 100%; margin-top: 0; }
.bubble-collage .bubble { position: absolute; }

