:root {
  /* Professional Color Palette (from reference) */
  --primary: #E54D42;
  --primary-hover: #dc2626;
  --accent: #FFD54F;
  --green: #22c55e;
  
  /* Background Colors */
  --bg: #F9FAFB;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.9);
  --mobile-menu: rgba(255, 255, 255, 0.95);
  
  /* Text Colors */
  --text: #0f172a;
  --muted: #64748b;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Sharp Professional Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* Refined Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Fonts */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

:root.dark {
  --bg: #111827;
  --surface: #1e293b;
  --surface-glass: rgba(17, 24, 39, 0.9);
  --mobile-menu: rgba(17, 24, 39, 0.95);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --primary: #f87171;
  --slate-200: #334155;
  --slate-700: #cbd5e1;
  --slate-800: #e2e8f0;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.2s ease, color 0.2s ease;
}


/* Custom Cursor */
.custom-cursor {
  width: 20px;
  height: 20px;
  background: var(--yellow);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
  transition: transform 0.1s ease;
  opacity: 0.3;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin-top: 0;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* Navigation - Professional Sticky Top */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  transition: all 0.2s ease;
}

.dark .site-header {
  border-bottom-color: var(--slate-200);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .header-inner { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .header-inner { padding: 0 2rem; }
}

.site-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.main-nav {
  display: none;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
  }
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--primary);
}

/* Buttons - Professional Styling */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--slate-200);
  background: var(--surface);
  color: var(--text);
}

.btn:hover {
  background: var(--bg);
  border-color: var(--slate-400);
}

.btn.cta {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: none;
}

.btn.cta:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

/* Cards & Layouts - Professional Style */
.section {
  padding: 6rem 10px;
  position: relative;
}

.card {
  background: var(--surface) !important;
  border-radius: var(--radius-sm);
  padding: 1.5rem !important;
  position: relative !important;
  transition: all 0.3s ease;
  overflow: hidden;
  margin-right: 15px;
  border: 1px solid transparent;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dark .card {
  border-color: var(--slate-200);
  background: var(--surface) !important;
}

.card:hover {
  border-color: var(--slate--800);
  box-shadow:
      0 10px 15px -6px color-mix(in srgb, var(--slate-700), transparent 70%),
      0 4px 16px -4px color-mix(in srgb, var(--slate-700), transparent 50%);
  
    transform: translateY(-4px);
    /* Adds to the 'depth' feel */
}

/* Ensure the main content sits below the sticky header */
.site-main {
  padding-top: 0; /* Sticky header doesn't need padding offset */
}

/* MOBILE NAV: show inventive mobile menu and hamburger without changing desktop */
.mobile-menu-toggle {
  display: none; /* shown only on small screens */
  -webkit-tap-highlight-color: transparent;
  border: none;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.35s ease,
    opacity 0.25s ease;
}

/* menu panel */
.mobile-menu {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background-color: var(--mobile-menu);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(-120%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1050;
  padding: 3.5rem 1.5rem 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  pointer-events: none;
}

.mobile-menu.open {
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 420px;
}

.mobile-nav-link {
  text-decoration: none;
  color: var(--text);
  padding: 0.85rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  display: inline-block;
  background: linear-gradient(
    90deg,
    rgba(227, 59, 46, 0.06),
    rgba(13, 110, 253, 0.02)
  );
  transition:
    transform 0.22s ease,
    box-shadow 0.18s ease;
}

.mobile-nav-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.mobile-cta .btn {
  width: 100%;
  font-size: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
}

/* A playful backdrop to make it scream innovation */
.mobile-menu::before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(227, 59, 46, 0.06),
      transparent 20%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(10, 132, 255, 0.04),
      transparent 18%
    );
  pointer-events: none;
  z-index: -1;
}

/* Morph hamburger into X */
.mobile-menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Preserve desktop nav; show mobile only below breakpoint */
@media (max-width: 900px) {
  .brand-row {
    margin-left: 20px;
    gap: 0.5rem !important;
  }
  .site-title {
    font-size: 1.2rem;
  }
}

/* SECTION VARIATIONS */
.section--muted {
  background-color: var(--bg);
}

.section--alt {
  background-color: rgba(248, 250, 252, 1);
}

.dark .section--alt {
  background-color: rgba(15, 23, 42, 0.5);
}

/* CONDITIONS SECTION STYLES */
.conditions-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
}

.condition-category {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.category-header h4 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text);
}

.condition-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card-small {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.card-small:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.card-small h5 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}

.card-small p.small {
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
}

.badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(227, 59, 46, 0.1);
  color: var(--accent);
  letter-spacing: 0.5px;
}

@media (max-width: 1024px) {
  .conditions-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* SERVICE CARD IMAGE ENHANCEMENTS */
.service-card {
  background: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.card-visual {
  height: 192px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
  background: rgba(255, 213, 79, 0.15);
}

/* Alternating tints for visual variety */
.service-card:nth-child(even) .card-visual {
  background: rgba(229, 77, 66, 0.08);
}

.card-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .card-visual img {
  transform: scale(1.05);
}

.dark .card-visual {
  background: rgba(255, 213, 79, 0.1);
}

.dark .service-card:nth-child(even) .card-visual {
  background: rgba(229, 77, 66, 0.1);
}

/* Footer styles - Professional Dark */
.site-footer {
  background: var(--slate-900);
  padding: 6rem 0 3rem;
  color: var(--slate-400);
}

.dark .site-footer {
  background: #0f172a;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  align-items: start;
}

.footer-section h4 {
  margin: 0 0 1.5rem 0;
  color: white;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: var(--slate-400);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-brand {
  color: white;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-brand .material-symbols-outlined {
  color: var(--primary);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--slate-800);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  transition: background 0.2s;
}

.footer-social a:hover {
  background: var(--primary);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--slate-500);
  font-size: 0.75rem;
}

.footer-bottom a {
  color: var(--slate-500);
}

@media (max-width: 720px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    text-align: center;
  }
}

/* Small tweak for smaller screens (optional) */
@media (max-width: 640px) {
  .site-header .glass-nav {
    margin-top: 0.5rem;
    width: 96%;
  }
  #hero{
    padding: 0 0 0px 20px !important;
  }
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
  animation: float 7s ease-in-out infinite 1s;
}

/* Scroll Trigger Base Classes */
.reveal-on-scroll {
  opacity: 0;
  clip-path: inset(10% 0 10% 0);
  transform: translateY(40px) scale(0.95);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.visible {
  opacity: 1;
  clip-path: inset(0% 0 0% 0);
  transform: translateY(0) scale(1);
}

/* Utils - Section Labels */
.inline-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(229, 77, 66, 0.1);
  border: 1px solid rgba(229, 77, 66, 0.2);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--text) 30%, var(--muted));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.play-btn {
  background: var(--surface);
  color: var(--accent);
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.play-btn:hover {
  transform: scale(0.8) rotate(-10deg);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

/* --- RESTORED LAYOUT STYLES --- */

/* Hero Layout */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
}

.hero-visual-card {
  position: relative;
  min-height: 400px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title .text-primary {
  color: var(--primary);
}

.hero-subtext {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-visual-card .visual-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* About Section */
.split {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
}

.about-visual .canvas-wrap {
  min-height: 300px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
}

/* Services Grid */
/* .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
} */

/* Testimonials */
.testimonial-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.hero-testimonial {
  background: var(--yellow);
  padding: 3rem;
  border-radius: var(--radius-lg);
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  color: var(--text);
  position: relative;
  margin: 4rem 0;
  z-index: -1;
}
.quote-icon {
  position: absolute;
  top: -2rem;
  left: 2rem;
  font-size: 8rem;
  opacity: 0.2;
}

/* FAQ Layout */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 3rem;
  align-items: start;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-question {
  font-size: 15px;
}

.faq-card .accordion-btn {
  width: 100%;
  text-align: left;
  padding: 1.2rem;
  background: var(--surface);
  border: none;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.faq-card .accordion-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.faq-card .accordion-panel {
  padding: 1rem 1.2rem;
  line-height: 1.6;
  color: var(--muted);
}

.faq-cta {
  margin-top: 1.2rem;
}

.faq-illustration img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Contact Layout */
.contact.section {
  background: linear-gradient(180deg, var(--bg) 0%, #332e2e 100%);
  padding-bottom: 8rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: start;
}

.contact-form .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form-wrap {
  background: var(--surface);
  padding: 3rem;
  border-radius: var(--radius-lg); /* 32px */
  border: 2px dashed rgba(227, 59, 46, 0.15); /* The "Stitch" border */
  box-shadow: var(--shadow-md);
  position: relative;
}

.contact-form-wrap::before {
  content: "Connect";
  position: absolute;
  top: -15px;
  right: 30px;
  background: var(--yellow);
  color: var(--text);
  padding: 5px 15px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 99px;
  letter-spacing: 1px;
}

.contact-form h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.form-row {
  margin-bottom: 1.5rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 1.2rem;
  border-radius: 16px;
  border: 2px solid #f0f0f0;
  background: #fdfdfd;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent); /* Brand Red */
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(227, 59, 46, 0.05);
  transform: translateY(-2px);
}

/* Contact Sidebar */
.map-card {
  height: 280px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(0.2) contrast(1.1); /* Subtle "Clinical" map look */
}

.map-pin {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 16px;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card {
  display: flex;
  align-items: center;
  margin-top: 20px;
  gap: 1.2rem;
  padding: 1.2rem;
  background: #ffffff;
  border-radius: 20px;
  border: 2px dashed rgba(227, 59, 46, 0.15);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateX(10px);
  border-color: var(--yellow);
  box-shadow: 6px 6px 0px rgba(255, 210, 63, 0.1);
}

.info-card .icon {
  width: 45px;
  height: 45px;
  background: var(--bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.info-card p {
  margin: 0;
}

.info-card .strong {
  font-weight: 800;
  color: var(--text);
}

/* 5. Submit Button Customization */
.form-actions .btn.cta {
  width: 100%;
  justify-content: center;
  padding: 1.2rem;
  font-size: 1.1rem;
  box-shadow: 0 10px 20px rgba(227, 59, 46, 0.2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6 columns */
  grid-auto-rows: 180px;
  gap: 1.5rem;
}

/* Make Object Naming and Breathing take more space */
.service-card:nth-child(1) {
  grid-column: span 3;
  grid-row: span 2;
}
.service-card:nth-child(2) {
  grid-column: span 3;
  grid-row: span 2;
}
/* The rest take smaller squares */
.service-card:nth-child(n + 3) {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 900px) {
  .services-grid {
    display: flex;
    flex-direction: column;
  }
}

/* Container Basics */
.visual-container {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* 1. Object Naming Animation */
.naming-box {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.playing .naming-box {
  opacity: 1;
  transform: scale(1.2);
}
.typing-text {
  font-weight: 800;
  color: var(--accent);
  margin-top: 10px;
  letter-spacing: 2px;
}

/* 2. Breathing Animation (The "Expansion") */
.breath-ball {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform 3s ease-in-out;
}
.breath-ring {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  opacity: 0;
}
.playing .breath-ball {
  transform: scale(3);
}
.playing .breath-ring {
  animation: pulse-ring 3s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* 3. Tongue Twister (The Jumble) */
.jumble {
  display: inline-block;
  transition: all 0.4s;
  filter: blur(5px);
  transform: translateY(10px);
}
.playing .jumble {
  filter: blur(0);
  transform: translateY(0);
  color: var(--accent);
}
.playing .jumble:nth-child(2) {
  transition-delay: 0.2s;
}
.playing .jumble:nth-child(3) {
  transition-delay: 0.4s;
}

/* 4. Tongue Exercises (Soundwave) */
.sound-wave {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 40px;
}
.bar {
  width: 6px;
  height: 10px;
  background: var(--accent);
  border-radius: 3px;
}
.playing .bar {
  animation: wave 0.6s infinite ease-in-out alternate;
}
.playing .bar:nth-child(2) {
  animation-delay: 0.1s;
}
.playing .bar:nth-child(3) {
  animation-delay: 0.2s;
}
.playing .bar:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes wave {
  from {
    height: 10px;
    opacity: 0.5;
  }
  to {
    height: 40px;
    opacity: 1;
  }
}

@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card:nth-child(1),
  .service-card:nth-child(4) {
    grid-column: span 1;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    order: -1; /* Map and Info come first on mobile */
  }

  .contact-form-wrap {
    padding: 2rem;
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 0 !important; /* Visual takes top half */
  border-style: solid; /* Solid for the container */
  border-width: 1px;
  border-color: rgba(0, 0, 0, 0.05);
}

.service-card .card-visual {
  background: radial-gradient(
    circle at center,
    rgba(255, 210, 63, 0.1),
    transparent
  );
  border-bottom: 2px dashed rgba(227, 59, 46, 0.1); /* Stitching between visual and text */
}

.fallback-blob {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(8px);
  animation: blob-pulse 2s infinite ease-in-out;
}

@keyframes blob-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.6;
  }
}

.btn.cta {
  position: relative;
  border: 2px dashed rgba(255, 255, 255, 0.4); /* The "Stitch" look */
}

.card-visual {
  background:
    radial-gradient(circle at top right, var(--yellow), transparent),
    radial-gradient(circle at bottom left, rgba(227, 59, 46, 0.1), transparent) !important;
  overflow: hidden;
}

/* Responsive Media Queries */
@media (max-width: 960px) {
  .hero-inner,
  .split,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual-card {
    min-height: 300px;
    order: -1;
  }

  /* Visual on top on mobile */
  .header-inner {
    flex-wrap: wrap;
    padding: 8px;
  }

  .header-actions {
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .main-nav {
    display: none;
  }

  /* Hide nav on small screens for simplicty or add hamburger later */
  .contact-form .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

/* --- 2025 Liquid Gooey Filter --- */
.gooey-filter {
  position: absolute;
  width: 0;
  height: 0;
  visibility: hidden;
}

/* Updated Card Styles for Bento Grid feel */
.service-card {
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card.playing {
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(227, 59, 46, 0.1);
  transform: scale(1.02);
}

/* --- Improved Liquid Animations --- */

/* 1. Guided Breathing Ball */
.breath-ball {
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  filter: url("#goo"); /* Applying the liquid filter */
  position: relative;
  transition: all 4s ease-in-out;
}

.playing .breath-ball {
  transform: scale(2.5);
  background: var(--yellow);
}

/* 2. Phonetic Soundwave */
.sound-wave {
  display: flex;
  gap: 8px;
  filter: url("#goo");
}

.bar {
  width: 12px;
  height: 20px;
  background: var(--accent);
  border-radius: 20px;
  transition: height 0.3s ease;
}

.playing .bar {
  animation: pro-wave 0.8s infinite ease-in-out alternate;
}

@keyframes pro-wave {
  0% {
    height: 15px;
    transform: scaleY(1);
  }
  100% {
    height: 60px;
    transform: scaleY(1.2);
    background: var(--yellow);
  }
}

/* --- Insight Tooltip (The 'Insight' Part) --- */
.insight-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1e;
  font-weight: bold;
  padding: 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-left: 4px solid var(--accent);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s ease;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.playing .insight-overlay {
  opacity: 1;
  transform: translateY(0);
}
