/*
Theme Name: Floatingly Grounded
Theme URI: https://floatinglygrounded.com
Author: Floatingly Grounded Practice
Author URI: https://floatinglygrounded.com
Description: An interactive, editorial therapy practice WordPress theme featuring an animated hot air balloon, 5 expressive art therapy cats with paw-reach and pop mechanics, hanging ballast weights, and custom inquiry workflows. Fully responsive across desktop, laptop, tablet, and mobile.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: floatingly-grounded
Tags: therapy, expressive-arts, interactive, animation, custom-colors, full-width-template
*/
/* ============================================================
   FLOATINGLY GROUNDED - EDITORIAL PAPER & INK STYLES
   ============================================================ */

/* 1. Root & Rich Burgundy Velvet Canvas (#6B1E2E) */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
}

body {
  background-color: #6B1E2E;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  color: #FAF8F3;
}

#sky-canvas-container {
  background: transparent;
}

/* Subtle Ambient Velvet Clouds */
.cloud {
  position: absolute;
  background: radial-gradient(ellipse at center, rgba(142, 45, 68, 0.45) 0%, rgba(107, 30, 46, 0) 70%);
  border-radius: 50%;
  filter: blur(36px);
  pointer-events: none;
}

.cloud-1 {
  width: 500px;
  height: 240px;
  top: 6%;
  left: -10%;
  animation: cloudDriftSlow 70s linear infinite;
}

.cloud-2 {
  width: 420px;
  height: 200px;
  top: 32%;
  right: -8%;
  animation: cloudDriftReverse 80s linear infinite;
}

.cloud-3 {
  width: 550px;
  height: 260px;
  bottom: 10%;
  left: 12%;
  animation: cloudDriftSlow 90s linear infinite;
}

@keyframes cloudDriftSlow {
  0% { transform: translateX(0); }
  50% { transform: translateX(60px); }
  100% { transform: translateX(0); }
}

@keyframes cloudDriftReverse {
  0% { transform: translateX(0); }
  50% { transform: translateX(-50px); }
  100% { transform: translateX(0); }
}

/* 2. Refined Editorial Cards — Glassmorphism Float */
.editorial-card {
  background-color: rgba(252, 250, 246, 0.75);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-bottom-color: rgba(30, 35, 55, 0.10);
  border-right-color: rgba(30, 35, 55, 0.08);
  border-radius: 24px;
  /* Double-layer diffused shadow for weightless float */
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.06),
    0 20px 48px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.70);
  color: #1E2337;
  /* will-change tells the GPU to composite this layer */
  will-change: transform;
  transition: box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.3s ease;
}
.editorial-card:hover {
  border-color: rgba(255, 255, 255, 0.80);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.08),
    0 32px 64px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.80);
}

/* Static Contact Form — Disable any hover movement/tilt */
#view-contact .editorial-card,
#view-contact #contact-form {
  transform: none !important;
  will-change: auto !important;
  perspective: none !important;
}
#view-contact .editorial-card:hover {
  transform: none !important;
}

.editorial-pill {
  border: 1px solid rgba(250, 248, 243, 0.28);
  border-radius: 9999px;
  background-color: rgba(250, 248, 243, 0.12);
  color: #FAF8F3;
  transition: all 0.25s ease;
}
.editorial-pill:hover {
  border-color: rgba(250, 248, 243, 0.55);
  background-color: rgba(250, 248, 243, 0.20);
}

/* ============================================================ */
/* ANTIGRAVITY DESIGN SYSTEM — Spatial Depth & Motion           */
/* ============================================================ */

/* Perspective container for 3D card tilt (set on grid wrappers) */
.agy-perspective {
  perspective: 900px;
  perspective-origin: 50% 50%;
}

/* Scroll-reveal initial hidden state — GSAP animates to final */
.agy-scroll-reveal {
  opacity: 0;
  transform: translateY(38px);
  will-change: transform, opacity;
}

/* Hero text reveal — individual lines stagger in on load */
.agy-hero-kicker,
.agy-hero-title,
.agy-hero-sub,
.agy-hero-guidance {
  opacity: 0;
  transform: translateY(22px);
  will-change: transform, opacity;
}

/* Glassmorphism modal overlay enhancement — ONLY when active */
#modality-modal.modal-open,
#cohort-modal.modal-open {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Deeper glass for modal cards */
#modal-card,
#cohort-modal-card {
  background: rgba(252, 250, 246, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.70);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.08),
    0 32px 72px rgba(30, 35, 55, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.80);
}

/* Nav scroll-enhancement class (added by GSAP on scroll) */
header.agy-scrolled {
  background-color: rgba(107, 30, 46, 0.88) !important;
  border-bottom-color: rgba(250, 248, 243, 0.22) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Reduced-motion: ensure no invisible elements stay hidden */
@media (prefers-reduced-motion: reduce) {
  .agy-scroll-reveal,
  .agy-hero-kicker,
  .agy-hero-title,
  .agy-hero-sub,
  .agy-hero-guidance {
    opacity: 1 !important;
    transform: none !important;
  }
}


.editorial-btn-primary {
  background-color: #FAF8F3;
  color: #6B1E2E;
  border-radius: 9999px;
  border: 1px solid #FAF8F3;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.editorial-btn-primary:hover {
  background-color: #FFFFFF;
  color: #521623;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.editorial-btn-secondary {
  background-color: rgba(250, 248, 243, 0.12);
  color: #FAF8F3;
  border: 1px solid rgba(250, 248, 243, 0.25);
  border-radius: 9999px;
  transition: all 0.25s ease;
}
.editorial-btn-secondary:hover {
  border-color: #FAF8F3;
  background-color: rgba(250, 248, 243, 0.2);
}

/* 3. Hot Air Balloon Floating Physics */
.balloon-float-idle {
  animation: balloonGentleFloat 7s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes balloonGentleFloat {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  35% {
    transform: translateY(-12px) rotate(0.6deg);
  }
  70% {
    transform: translateY(6px) rotate(-0.5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* Burner Flame Flicker */
.burner-flame {
  animation: flameFlicker 1.8s ease-in-out infinite alternate;
  transform-origin: center top;
}

@keyframes flameFlicker {
  0% {
    transform: scale(0.94) translateY(0);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.12) translateY(-2px);
    opacity: 1;
  }
  100% {
    transform: scale(0.98) translateY(1px);
    opacity: 0.9;
  }
}

/* 4. The 5 Modality Cats: Crisp Monoline Ink & Natural Float */
.modality-cat-wrapper {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.modality-cat-wrapper:hover {
  transform: translateY(-6px) scale(1.05);
}

.cat-img-box {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.modality-cat-img {
  /* Crisp line art with cream body on rich burgundy canvas */
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.modality-cat-wrapper:hover .modality-cat-img {
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 14px rgba(229, 193, 120, 0.45));
}

#cat-art {
  animation: catFloat1 5.4s ease-in-out infinite;
}
#cat-dance {
  animation: catFloat2 5.9s ease-in-out infinite;
}
#cat-movement {
  animation: catFloat3 6.2s ease-in-out infinite;
}
#cat-drama {
  animation: catFloat4 5.6s ease-in-out infinite;
}
#cat-talk {
  animation: catFloat5 6.5s ease-in-out infinite;
}

@keyframes catFloat1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(4px, -8px) rotate(1deg); }
}

@keyframes catFloat2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-4px, -10px) rotate(-1deg); }
}

@keyframes catFloat3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(5px, -6px) rotate(0.8deg); }
}

@keyframes catFloat4 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-5px, -8px) rotate(-0.8deg); }
}

@keyframes catFloat5 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(4px, -5px) rotate(0.6deg); }
}

/* ============================================================ */
/* CAT HOVER REACH & BURST LEAP ANIMATIONS                     */
/* Hover: Reaches paws towards balloon                          */
/* Click: Reaches further & bursts balloon                      */
/* ============================================================ */

.cat-reach-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center center;
  will-change: transform;
}

/* Hover: Pause idle float and elevate z-index */
@media (hover: hover) and (pointer: fine) {
  .modality-cat-wrapper:hover {
    z-index: 38 !important;
    animation-play-state: paused !important;
  }

  /* 1. ART CAT (Top Left): Reaches paws down and right toward balloon envelope */
  #cat-art:hover .cat-reach-inner {
    transform: translate(26px, 18px) rotate(14deg) scale(1.12);
  }

  /* 2. DANCE CAT (Top Right): Reaches paws down and left toward balloon envelope */
  #cat-dance:hover .cat-reach-inner {
    transform: translate(-26px, 18px) rotate(-14deg) scale(1.12);
  }

  /* 3. MOVEMENT CAT (Mid Left): Stretches front paws forward & right directly at balloon */
  #cat-movement:hover .cat-reach-inner {
    transform: translate(32px, -6px) rotate(10deg) scale(1.14);
  }

  /* 4. DRAMA CAT (Upper-Mid Right): Theatrical upside-down paws reach down & left */
  #cat-drama:hover .cat-reach-inner {
    transform: translate(-30px, 8px) rotate(-15deg) scale(1.14);
  }

  /* 5. TALK CAT (Lower Right): Leans up & left reaching paws toward lower balloon */
  #cat-talk:hover .cat-reach-inner {
    transform: translate(-28px, -20px) rotate(-11deg) scale(1.14);
  }
}

/* ============================================================ */
/* CLICKED: REACHES FURTHER DIRECTLY INTO BALLOON & BURSTS IT   */
/* ============================================================ */

.cat-pouncing {
  z-index: 50 !important;
}

#cat-art.cat-pouncing {
  animation: catArtBurstReach 0.65s cubic-bezier(0.18, 0.89, 0.32, 1.25) forwards !important;
}

#cat-dance.cat-pouncing {
  animation: catDanceBurstReach 0.65s cubic-bezier(0.18, 0.89, 0.32, 1.25) forwards !important;
}

#cat-movement.cat-pouncing {
  animation: catMovementBurstReach 0.65s cubic-bezier(0.18, 0.89, 0.32, 1.25) forwards !important;
}

#cat-drama.cat-pouncing {
  animation: catDramaBurstReach 0.65s cubic-bezier(0.18, 0.89, 0.32, 1.25) forwards !important;
}

#cat-talk.cat-pouncing {
  animation: catTalkBurstReach 0.65s cubic-bezier(0.18, 0.89, 0.32, 1.25) forwards !important;
}

/* Keyframes: Cat 1 (Art) reaches further down-right into balloon */
@keyframes catArtBurstReach {
  0% { transform: scale(1.12) translate(26px, 18px) rotate(14deg); }
  32% { transform: scale(1.32) translate(118px, 62px) rotate(24deg); }
  52% { transform: scale(1.22) translate(80px, 40px) rotate(14deg); }
  75% { transform: scale(1.1) translate(28px, 14px) rotate(6deg); }
  100% { transform: scale(1) translate(0, 0) rotate(0deg); }
}

/* Keyframes: Cat 2 (Dance) reaches further down-left into balloon */
@keyframes catDanceBurstReach {
  0% { transform: scale(1.12) translate(-26px, 18px) rotate(-14deg); }
  32% { transform: scale(1.32) translate(-118px, 62px) rotate(-24deg); }
  52% { transform: scale(1.22) translate(-80px, 40px) rotate(-14deg); }
  75% { transform: scale(1.1) translate(-28px, 14px) rotate(-6deg); }
  100% { transform: scale(1) translate(0, 0) rotate(0deg); }
}

/* Keyframes: Cat 3 (Movement) reaches further forward-right deep into balloon */
@keyframes catMovementBurstReach {
  0% { transform: scale(1.14) translate(32px, -6px) rotate(10deg); }
  32% { transform: scale(1.35) translate(135px, -15px) rotate(16deg); }
  52% { transform: scale(1.22) translate(88px, -10px) rotate(8deg); }
  75% { transform: scale(1.1) translate(30px, -4px) rotate(4deg); }
  100% { transform: scale(1) translate(0, 0) rotate(0deg); }
}

/* Keyframes: Cat 4 (Drama) reaches further down-left deep into balloon */
@keyframes catDramaBurstReach {
  0% { transform: scale(1.14) translate(-30px, 8px) rotate(-15deg); }
  32% { transform: scale(1.35) translate(-135px, 20px) rotate(-28deg); }
  52% { transform: scale(1.22) translate(-88px, 12px) rotate(-15deg); }
  75% { transform: scale(1.1) translate(-30px, 6px) rotate(-6deg); }
  100% { transform: scale(1) translate(0, 0) rotate(0deg); }
}

/* Keyframes: Cat 5 (Talk) reaches further up-left deep into balloon */
@keyframes catTalkBurstReach {
  0% { transform: scale(1.14) translate(-28px, -20px) rotate(-11deg); }
  32% { transform: scale(1.32) translate(-120px, -85px) rotate(-18deg); }
  52% { transform: scale(1.22) translate(-80px, -50px) rotate(-10deg); }
  75% { transform: scale(1.1) translate(-28px, -18px) rotate(-4deg); }
  100% { transform: scale(1) translate(0, 0) rotate(0deg); }
}

/* 5. Balloon Burst & Re-inflation Animations */
.balloon-burst-active {
  animation: balloonPopExplosion 0.5s cubic-bezier(0.1, 0.8, 0.2, 1) forwards !important;
  pointer-events: none;
}

@keyframes balloonPopExplosion {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  20% {
    transform: scale(1.1) rotate(1.5deg);
  }
  45% {
    transform: scale(0.6) rotate(-4deg);
    opacity: 0.75;
  }
  100% {
    transform: scale(0.1) translateY(35px);
    opacity: 0;
  }
}

.balloon-reinflate {
  animation: balloonInflateGentle 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

@keyframes balloonInflateGentle {
  0% {
    transform: scale(0.2) translateY(25px);
    opacity: 0;
  }
  65% {
    transform: scale(1.04) translateY(-6px);
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* 6. Hanging Cohort Sandbags & Ropes Sway */
.rope-sway {
  animation: pendulumSway 4.8s ease-in-out infinite alternate;
  transform-origin: top center;
}

@keyframes pendulumSway {
  0% { transform: rotate(-2.5deg); }
  100% { transform: rotate(2.5deg); }
}

.hanging-sandbag:hover .sandbag-body {
  transform: translateY(-3px) scale(1.06);
}

.hanging-sandbag .sandbag-body {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 7. Page Transitions & Active Navigation */
.page-view {
  animation: pageFadeIn 0.3s ease-out forwards;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-link {
  color: rgba(250, 248, 243, 0.85);
  font-family: 'Newsreader', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #FAF8F3;
}

.nav-link.active {
  color: #6B1E2E !important;
  background-color: #FAF8F3 !important;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12) !important;
}

/* 8. Pop-up Modals */
#modality-modal.modal-open,
#cohort-modal.modal-open {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  display: flex !important;
}

#modality-modal.modal-open #modal-card,
#cohort-modal.modal-open #cohort-modal-card {
  transform: scale(1) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#modal-card::-webkit-scrollbar,
#cohort-modal-card::-webkit-scrollbar {
  width: 6px;
}

#modal-card::-webkit-scrollbar-thumb,
#cohort-modal-card::-webkit-scrollbar-thumb {
  background: #D9D4C7;
  border-radius: 9999px;
}

/* Responsive adjustments & Touch device enhancements */
@media (max-width: 640px) {
  /* Ensure smooth touch scrolling on mobile */
  .editorial-card {
    border-radius: 18px;
  }
}

/* ============================================================ */
/* BALLAST WEIGHT RIGGING: STRICTLY ISOLATED HOVER ANIMATION     */
/* Only the single option currently hovered is highlighted      */
/* ============================================================ */

.ballast-weight {
  cursor: pointer;
  outline: none;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.ballast-weight .ballast-line {
  stroke: #FAF8F3;
  stroke-width: 2.2px;
  stroke-linecap: round;
  transition: stroke 0.22s ease, stroke-width 0.22s ease;
}

.ballast-weight .ballast-body {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ballast-weight .ballast-ring,
.ballast-weight .ballast-neck,
.ballast-weight .ballast-tie {
  fill: #FAF8F3;
  stroke: #1E2337;
  stroke-width: 1.8px;
  transition: fill 0.22s ease, stroke 0.22s ease;
}

.ballast-weight .ballast-bag {
  fill: #DBD5C8;
  stroke: #1E2337;
  stroke-width: 2.2px;
  stroke-linecap: round;
  transition: fill 0.22s ease, stroke 0.22s ease;
}

.ballast-weight .ballast-text {
  fill: #FAF8F3;
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: fill 0.22s ease;
}

/* Desktop Hover: Isolated highlight on active weight only */
@media (hover: hover) and (pointer: fine) {
  .ballast-weight:hover .ballast-line {
    stroke: #E5C178 !important;
    stroke-width: 2.8px;
  }
  .ballast-weight:hover .ballast-body {
    transform: scale(1.12);
  }
  .ballast-weight:hover .ballast-ring,
  .ballast-weight:hover .ballast-neck,
  .ballast-weight:hover .ballast-tie {
    fill: #FFF8EB;
  }
  .ballast-weight:hover .ballast-bag {
    fill: #EAE5DA;
    stroke: #6B1E2E;
  }
  .ballast-weight:hover .ballast-text {
    fill: #E5C178 !important;
  }
}

/* Focus and Active states for accessible keyboard & touch tap feedback */
.ballast-weight:focus .ballast-line,
.ballast-weight:active .ballast-line {
  stroke: #E5C178 !important;
  stroke-width: 2.8px;
}
.ballast-weight:focus .ballast-body,
.ballast-weight:active .ballast-body {
  transform: scale(1.12);
}
.ballast-weight:focus .ballast-ring,
.ballast-weight:focus .ballast-neck,
.ballast-weight:focus .ballast-tie,
.ballast-weight:active .ballast-ring,
.ballast-weight:active .ballast-neck,
.ballast-weight:active .ballast-tie {
  fill: #FFF8EB;
}
.ballast-weight:focus .ballast-bag,
.ballast-weight:active .ballast-bag {
  fill: #EAE5DA;
  stroke: #6B1E2E;
}
.ballast-weight:focus .ballast-text,
.ballast-weight:active .ballast-text {
  fill: #E5C178 !important;
}

/* ============================================================ */
/* MOBILE LAYOUT: Cat-Balloon Grid & Cohort Buttons             */
/* Applies only below 640px — desktop layout untouched          */
/* ============================================================ */

/* Desktop: grid wrapper passes through parent dimensions and
   centres the balloon (the only non-absolute child) via flex */
#balloon-stage-grid {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 639px) {
  /* 1. View & Stage: remove fixed heights & overflow clips (kills nested scrollbar) */
  #view-home {
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
    padding-bottom: 2rem !important;
  }

  #balloon-stage {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    padding: 0.5rem 0.25rem !important;
  }

  /* 2. Grid layout for cats + balloon — 4 rows, 2 columns */
  #balloon-stage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "cat-art     cat-dance"
      "balloon     balloon"
      "cat-move    cat-drama"
      "cat-talk    cat-talk";
    gap: 0.35rem 0;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    justify-items: center;
    align-items: center;
    height: auto;
  }

  /* 3. Balloon sits in its own centred row */
  #balloon-container {
    grid-area: balloon;
    justify-self: center;
    align-self: center;
    margin: -0.25rem 0 -2.5rem 0; /* Cancels bottom empty space from hidden ballast */
  }

  /* Scale balloon down for breathing room */
  #balloon-envelope svg {
    width: 180px !important;
    max-width: none !important;
  }

  /* 4. Cats become grid items — override absolute positioning */
  .modality-cat-wrapper {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    -webkit-tap-highlight-color: transparent;
    padding: 0.25rem;
  }

  #cat-art       { grid-area: cat-art; }
  #cat-dance     { grid-area: cat-dance; }
  #cat-movement  { grid-area: cat-move; }
  #cat-drama     { grid-area: cat-drama; }
  #cat-talk      { grid-area: cat-talk; }

  /* Equalise cat image sizes on mobile */
  .modality-cat-img {
    width: 4.5rem !important;
    height: 5.5rem !important;
  }

  /* 5. Hide SVG ballast weights (replaced by mobile cohort row) */
  .ballast-weight {
    display: none !important;
  }
}

/* --- Mobile-only cohort buttons row --- */
.mobile-cohort-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 0.5rem;
  width: 100%;
}

.mobile-cohort-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem; /* 44px tap target */
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(250, 248, 243, 0.28);
  border-radius: 9999px;
  background-color: rgba(250, 248, 243, 0.12);
  color: #FAF8F3;
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.mobile-cohort-btn:hover,
.mobile-cohort-btn:active {
  border-color: #E5C178;
  background-color: rgba(229, 193, 120, 0.18);
  color: #E5C178;
  transform: translateY(-1px);
}

