/* ==========================================================================
   MCITY Support Services - Main Style Sheet
   ========================================================================== */
/* --------------------------------------------------------------------------
   1. Design System & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  --paper: #f7f5ed;
  --forest: #103f31;
  --forest-2: #092d23;
  --mint: #b9d7c5;
  --leaf: #93b692;
  --lime: #d9e5bd;
  --line: rgba(16, 63, 49, 0.22);
  --pad: clamp(20px, 4vw, 68px);
  --nav-height: 84px;
}
:root:has(.nav.is-scrolled) {
  --nav-height: 84px;
}
/* --------------------------------------------------------------------------
   2. Global Rules & Reset
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--forest);
  font-family: Manrope, Arial, sans-serif;
  overflow-x: hidden;
  cursor: none; /* Custom interactive cursor handles pointer-events */
}
a,
button {
  color: inherit;
  touch-action: manipulation;
}
button {
  font: inherit;
  touch-action: manipulation;
}
.mono,
.eyebrow {
  font: 500 10px/1.3 "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
/* --------------------------------------------------------------------------
   3. Custom Interactive Cursor
   -------------------------------------------------------------------------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--leaf);
}
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid var(--forest);
  transition: background 0.25s, border-color 0.25s;
}
.cursor-ring.is-cta {
  background: var(--lime);
  border-color: var(--lime);
  mix-blend-mode: multiply;
}
.cursor-ring.is-active {
  border-color: var(--leaf);
}
.cursor-ring.is-grab {
  width: 52px;
  height: 52px;
  border-color: var(--forest);
  background: rgba(6, 79, 60, 0.08);
}
.cursor-ring.is-grabbing {
  width: 42px;
  height: 42px;
  border-color: var(--forest);
  background: rgba(6, 79, 60, 0.22);
}
/* --------------------------------------------------------------------------
   4. Header & Navigation Bar
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  z-index: 1010;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(16, 63, 49, 0.05);
  background: rgba(247, 245, 237, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-bottom-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav.is-scrolled,
.nav.menu-is-open {
  background: var(--paper);
  border-bottom-color: rgba(16, 63, 49, 0.12);
  box-shadow: 0 10px 40px rgba(16, 63, 49, 0.04);
}
.brand {
  font: 800 24px/1 Manrope, sans-serif;
  text-decoration: none;
  letter-spacing: -0.05em;
  color: var(--forest);
  transition: opacity 0.3s ease;
}
.brand:hover {
  opacity: 0.8;
}
.brand span {
  font: 500 10px "DM Mono";
  display: block;
  letter-spacing: 0.12em;
  margin-top: 4px;
  color: var(--leaf);
}
.nav-links {
  display: flex;
  gap: 16px; /* balanced spacing for padded capsule links */
  align-items: center;
}
.nav-links a {
  font: 500 13px/1 "DM Mono", monospace;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.08em;
  color: var(--forest);
  padding: 10px 20px;
  border-radius: 99px;
  background-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.nav-links a:hover {
  background-color: rgba(16, 63, 49, 0.04);
  color: var(--forest-2);
}
.nav-cta {
  justify-self: end;
  background: var(--forest);
  color: var(--paper);
  border: 1px solid var(--forest);
  border-radius: 99px;
  padding: 14px 28px;
  text-decoration: none;
  font: 600 13px "DM Mono";
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-cta:hover {
  background: var(--forest-2);
  border-color: var(--forest-2);
  box-shadow: 0 6px 20px rgba(16, 63, 49, 0.15);
  transform: translateY(-2px);
}
.nav-toggle,
.mobile-menu {
  display: none;
}
/* Scroll Progress Indicator Styling */
.header-scroll-progress {
  position: fixed;
  top: calc(var(--nav-height) - 3px); /* Sticking to the bottom edge of the dynamic navbar */
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(16, 63, 49, 0.04);
  z-index: 1020; /* Layered on top of the navbar (1010) so it's always visible */
  overflow: hidden;
  pointer-events: none;
  transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.header-scroll-progress-bar {
  width: 100%;
  height: 100%;
  background: var(--forest);
  box-shadow: 0 0 8px rgba(16, 63, 49, 0.2);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s ease-out;
}
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: scroll())) {
    @keyframes grow-progress {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }
    
    .header-scroll-progress-bar {
      animation: grow-progress auto linear;
      animation-timeline: scroll(root);
      transition: none;
    }
  }
}
/* --------------------------------------------------------------------------
   5. Hero Section & Intro Animating Canvas
   -------------------------------------------------------------------------- */
.hero {
  height: 100svh;
  min-height: 720px;
  position: relative;
  background: var(--paper);
  color: var(--forest);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  width: 42vw;
  max-width: 650px;
  aspect-ratio: 1;
  border: 1px solid rgba(16, 63, 49, 0.12);
  border-radius: 50%;
  right: 4vw;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 112px var(--pad) 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.hero-label {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 11px;
}
.hero h1 {
  width: min(68vw, 1050px);
  margin: 0;
  text-transform: uppercase;
  font: 800 clamp(64px, 10.6vw, 156px)/0.86 Manrope, sans-serif;
  letter-spacing: -0.075em;
}
.hero h1 span {
  display: block;
}
.hero h1 .indent {
  padding-left: 12vw;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--forest);
}
.hero h1 span:last-child {
  padding-left: 24vw;
}
.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pad);
  align-items: end;
}
.hero-bottom p {
  max-width: 520px;
  margin: 0 0 0 auto;
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.6;
  background: rgba(247, 245, 237, 0.74);
  backdrop-filter: blur(8px);
  padding: 16px;
  border-radius: 14px;
}
.hero-action {
  pointer-events: auto;
  justify-self: start;
  display: inline-flex;
  gap: 24px;
  align-items: center;
  text-decoration: none;
  border-bottom: 2px solid var(--forest);
  padding: 0 0 9px;
  font: 500 11px "DM Mono";
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.scroll-mark {
  position: absolute;
  z-index: 3;
  right: var(--pad);
  bottom: 25px;
  writing-mode: vertical-rl;
  font: 10px "DM Mono";
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
/* --------------------------------------------------------------------------
   6. Dot Ribbon (Value Marquee ticker)
   -------------------------------------------------------------------------- */
.dot-ribbon {
  height: 52px;
  overflow: hidden;
  border-block: 1px solid var(--line);
  display: flex;
  align-items: center;
  background: var(--lime);
}
.dot-ribbon-track {
  display: flex;
  width: max-content;
  animation: ribbon 32s linear infinite;
}
.dot-ribbon span {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font: 500 10px "DM Mono";
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dot-ribbon span::after {
  content: "";
  width: 56px;
  height: 8px;
  margin: 0 34px;
  background: radial-gradient(circle, var(--forest) 1.5px, transparent 1.8px) 0 0/9px 8px;
}
@keyframes ribbon {
  to {
    transform: translateX(-50%);
  }
}
/* --------------------------------------------------------------------------
   7. Impact Statistics & Metrics
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--forest);
  background: var(--paper);
}
.stat {
  min-height: 190px;
  padding: 26px 18px;
  border-right: 1px solid var(--forest);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.stat:last-child {
  border-right: 0;
}
.stat::before {
  content: "";
  width: 28px;
  height: 18px;
  background: radial-gradient(circle, var(--leaf) 2px, transparent 2.4px) 0 0/9px 9px;
}
.stat strong {
  font: 700 clamp(34px, 4.4vw, 66px)/0.85 Manrope;
  letter-spacing: -0.065em;
}
.stat p {
  margin: 0;
  font: 500 9px/1.45 "DM Mono";
  text-transform: uppercase;
  letter-spacing: 0.06em;
  max-width: 135px;
}
/* --------------------------------------------------------------------------
   8. About Section & Care Principles
   -------------------------------------------------------------------------- */
.about {
  min-height: 100vh;
  padding: 13vh var(--pad);
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 6vw;
  position: relative;
  border-bottom: 1px solid var(--forest);
}
.about-side {
  align-self: start;
  position: sticky;
  top: 110px;
}
.about-main {
  max-width: 1080px;
}
.about-title {
  margin: 0;
  font: 700 clamp(40px, 6vw, 92px)/0.96 Manrope;
  text-transform: uppercase;
  letter-spacing: -0.065em;
}
.about-title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.about-title .word span {
  display: inline-block;
  transform: translateY(110%);
}
.about-copy {
  margin: 8vh 0 0 24%;
  font-size: clamp(18px, 1.8vw, 27px);
  line-height: 1.52;
  max-width: 720px;
}
.principles {
  margin-top: 10vh;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--forest);
}
.principle {
  padding: 24px 18px 36px 0;
  border-right: 1px solid var(--forest);
  min-height: 225px;
}
.principle + .principle {
  padding-left: 18px;
}
.principle:last-child {
  border: 0;
}
.principle b {
  display: block;
  font: 700 31px Manrope;
  color: var(--leaf);
}
.principle h3 {
  text-transform: uppercase;
  font: 700 16px Manrope;
}
.principle p {
  font-size: 14px;
  line-height: 1.6;
  color: #39574d;
}
/* --------------------------------------------------------------------------
   9. Service Modules & Horizontal Scrolling
   -------------------------------------------------------------------------- */
.services {
  background: var(--forest-2);
  color: var(--paper);
  overflow: hidden;
  position: relative;
}
.service-viewport {
  height: 100vh;
  min-height: 700px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 5vh;
}
.services-head {
  position: absolute;
  z-index: 5;
  left: var(--pad);
  right: var(--pad);
  top: var(--nav-height);
  padding: clamp(20px, 4vh, 50px) 0 22px;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 380px);
  gap: 4vw;
  align-items: end;
  border-bottom: 1px solid rgba(247, 245, 237, 0.25);
  pointer-events: none;
  transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.services-head h2 {
  margin: 10px 0 0;
  font: 700 clamp(42px, 6vw, 84px)/0.9 Manrope;
  text-transform: uppercase;
  letter-spacing: -0.065em;
}
.services-head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #d4e0d8;
}
.service-track {
  display: flex;
  gap: 16px;
  padding: 0 var(--pad);
  width: max-content;
}
.service-track::before {
  content: "";
  display: block;
  width: 31vw;
  max-width: 450px;
  flex: none;
}
.service-track::after {
  content: "";
  display: block;
  width: 220px;
  flex: none;
}
.service-card {
  width: min(43vw, 490px);
  height: 58vh;
  min-height: 420px;
  max-height: 570px;
  border: 1px solid rgba(247, 245, 237, 0.3);
  padding: 25px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #10392d;
  transition: color 0.35s, border-color 0.35s, background 0.35s;
  flex: none;
}
.service-card:nth-child(even) {
  background: #154436;
}
.service-card::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 82px;
  right: 20px;
  top: 18px;
  background: radial-gradient(circle, var(--mint) 1.5px, transparent 1.9px) 0 0/10px 10px;
  opacity: 0.35;
  transition: transform 0.5s, opacity 0.5s;
}
.service-card:hover {
  color: var(--forest-2);
  border-color: var(--lime);
  background: var(--lime);
}
.service-card:hover::before {
  transform: translateX(-12px);
  opacity: 0.7;
}
.service-no {
  font: 10px "DM Mono";
  position: relative;
}
.service-body {
  margin-top: auto;
  position: relative;
}
.service-card h3 {
  margin: 0 0 16px;
  font: 700 clamp(30px, 3.3vw, 48px)/1 Manrope;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  max-width: 430px;
}
.service-card p {
  max-width: 390px;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.service-arrow {
  font-size: 32px;
  align-self: flex-end;
  position: relative;
  margin-top: 18px;
}
.scroll-progress {
  position: absolute;
  z-index: 6;
  left: var(--pad);
  right: calc(var(--pad) + 220px);
  bottom: 2.2vh;
  height: 2px;
  background: rgba(247, 245, 237, 0.18);
}
.scroll-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--lime);
}
/* --------------------------------------------------------------------------
   10. Living Connected Care Network
   -------------------------------------------------------------------------- */
.network {
  min-height: 100vh;
  position: relative;
  padding: 11vh var(--pad) 9vh;
  background: var(--paper);
  color: var(--forest);
  border-bottom: 1px solid var(--forest);
  overflow: hidden;
}
.network::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(185, 215, 197, 0.58), transparent 45%);
  pointer-events: none;
}
.network-intro {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6vw;
  align-items: end;
}
.network h2 {
  font: 700 clamp(42px, 6.6vw, 94px)/0.92 Manrope;
  letter-spacing: -0.065em;
  text-transform: uppercase;
  margin: 14px 0 0;
}
.network-intro p {
  max-width: 650px;
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 8px;
}
.care-map {
  position: relative;
  z-index: 2;
  height: 620px;
  max-width: 1180px;
  margin: 5vh auto 0;
}
.care-wheel-container {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.care-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

/* Dynamic SVG line styles */
.connection {
  transition: opacity 0.4s ease;
}
.line-base {
  fill: none;
  stroke: var(--forest);
  stroke-width: 1.2px;
  stroke-dasharray: 4 6;
  opacity: 0.3;
  transition: stroke 0.3s, stroke-width 0.3s, opacity 0.3s;
}
.line-glow {
  fill: none;
  stroke: var(--leaf);
  stroke-width: 6px;
  opacity: 0;
  filter: blur(4px);
  transition: opacity 0.4s ease;
}
.line-active {
  fill: none;
  stroke: var(--leaf);
  stroke-width: 2px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.line-pulse-particle {
  fill: var(--leaf);
  opacity: 0.45;
  filter: drop-shadow(0 0 2px var(--leaf));
  transition: fill 0.3s, opacity 0.3s, r 0.3s;
}

/* Core center node */
.care-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 190px;
  height: 190px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid var(--forest);
  background: rgba(247, 245, 237, 0.94);
  backdrop-filter: blur(8px);
  color: var(--forest);
  box-shadow: 0 18px 70px rgba(16, 63, 49, 0.12);
  z-index: 3;
}
.care-core::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px dotted var(--leaf);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.care-core strong {
  font: 700 25px/1.05 Manrope;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}
.care-core small {
  display: block;
  margin-top: 8px;
  font: 500 9px "DM Mono";
  letter-spacing: 0.1em;
}

/* Outer node cards (Desktop) */
.care-node {
  position: absolute;
  width: 215px;
  min-height: 104px;
  padding: 16px 17px;
  border-radius: 14px;
  text-align: left;
  border: 1px solid var(--forest);
  background: rgba(247, 245, 237, 0.94);
  backdrop-filter: blur(8px);
  color: var(--forest);
  cursor: pointer;
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s ease,
              box-shadow 0.4s ease;
  z-index: 3;
}
.care-node b {
  display: block;
  font-size: 14px;
  margin-bottom: 7px;
}
.care-node span {
  display: block;
  font-size: 11px;
  line-height: 1.45;
  opacity: 0.75;
}

/* Hover and Focus States */
.care-node:hover,
.care-node:focus-visible {
  transform: translateY(-6px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s ease,
              box-shadow 0.4s ease;
  background: var(--forest);
  color: var(--paper);
  border-color: var(--forest);
  box-shadow: 0 12px 30px rgba(16, 63, 49, 0.18);
  outline: 0;
}

/* CSS positioning for desktop nodes */
.n1 { left: 2%; top: 8%; }
.n2 { left: 40%; top: 0; }
.n3 { right: 1%; top: 12%; }
.n4 { right: 0; bottom: 11%; }
.n5 { left: 39%; bottom: 0; }
.n6 { left: 1%; bottom: 12%; }
.n7 { left: 9%; top: 44%; }
.n8 { right: 8%; top: 44%; }

/* Map hover-state dims all other paths/nodes */
.care-map.has-hovered-node .care-node {
  transition: opacity 0.4s ease,
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}
.care-map.has-hovered-node .care-node:not(.is-active) {
  opacity: 0.35;
  transform: scale(0.96);
}
.care-map.has-hovered-node .connection:not(.is-active) {
  opacity: 0.15;
}
.care-map.has-hovered-node .connection.is-active .line-glow {
  opacity: 0.65;
}
.care-map.has-hovered-node .connection.is-active .line-active {
  opacity: 1;
}
.care-map.has-hovered-node .connection.is-active .line-pulse-particle {
  opacity: 1;
  fill: var(--forest);
  r: 5.5px;
}

/* Hide controls/details on desktop */
.network-controls {
  display: none;
}
.care-details {
  display: none;
}
/* --------------------------------------------------------------------------
   11. Testimonials (Quotes)
   -------------------------------------------------------------------------- */
.testimonials {
  padding: 11vh var(--pad) 13vh;
  background: var(--lime);
  color: var(--forest);
  position: relative;
  overflow: hidden;
}
.testimonials-head {
  margin-bottom: clamp(54px, 8vh, 96px);
}
.testimonials h2 {
  font: 700 clamp(44px, 7vw, 100px)/0.9 Manrope;
  text-transform: uppercase;
  letter-spacing: -0.065em;
  margin: 8px 0 0;
}
.testimonial-carousel {
  display: grid;
  grid-template-columns: minmax(170px, 0.34fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 112px);
  align-items: stretch;
}
.testimonial-meta {
  min-height: 100%;
  padding: 4px 0 52px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.testimonial-prompt {
  max-width: 280px;
  margin: 0;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.6;
}
.testimonial-status {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  font-family: "DM Mono", monospace;
  line-height: 1;
}
.testimonial-current {
  font-size: clamp(46px, 5vw, 72px);
  letter-spacing: -0.1em;
}
.testimonial-divider,
.testimonial-total {
  font-size: 12px;
  opacity: 0.58;
}
.testimonial-controls {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.testimonial-arrow {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--forest);
  border-radius: 0;
  background: transparent;
  color: var(--forest);
  cursor: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.testimonial-arrow svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.testimonial-arrow:hover,
.testimonial-arrow:focus-visible {
  background: var(--forest);
  color: var(--paper);
  transform: translateY(-2px);
  outline: none;
}
.testimonial-arrow:focus-visible,
.quote-stack:focus-visible {
  box-shadow: 0 0 0 3px var(--lime), 0 0 0 5px var(--forest);
}
.testimonial-hint {
  margin-top: 20px;
  opacity: 0.62;
}
.testimonial-stage {
  min-width: 0;
  padding: 0 clamp(32px, 4vw, 58px) clamp(32px, 4vw, 58px) 0;
}
.quote-stack {
  position: relative;
  min-height: clamp(390px, 34vw, 510px);
  touch-action: pan-y;
  cursor: grab;
  outline: none;
  perspective: 1200px;
}
.quote-stack.is-dragging {
  cursor: grabbing;
}
.testimonial-card {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(28px, 4vw, 58px);
  border: 1px solid var(--forest);
  border-radius: 0;
  background: var(--paper);
  box-shadow: 0 20px 48px rgba(16, 63, 49, 0.08);
  transform-origin: 50% 100%;
  will-change: transform, opacity;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.testimonial-card.is-dragging {
  transition: none !important;
  z-index: 10 !important;
}
.testimonial-card:nth-child(2) {
  background: #edf1da;
}
.testimonial-card:nth-child(3) {
  background: var(--mint);
}
.testimonial-card[data-position="active"] {
  z-index: 3;
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  pointer-events: auto;
}
.testimonial-card[data-position="next"] {
  z-index: 2;
  opacity: 1;
  transform: translate3d(clamp(16px, 2.2vw, 28px), clamp(16px, 2.2vw, 28px), 0) rotate(0.7deg) scale(0.985);
}
.testimonial-card[data-position="far"] {
  z-index: 1;
  opacity: 1;
  transform: translate3d(clamp(30px, 4.2vw, 54px), clamp(30px, 4.2vw, 54px), 0) rotate(1.25deg) scale(0.97);
}
.testimonial-card[data-position="hidden"] {
  z-index: 0;
  opacity: 0;
  transform: translate3d(clamp(42px, 5vw, 66px), clamp(42px, 5vw, 66px), 0) scale(0.95);
  pointer-events: none;
}
.testimonial-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.testimonial-card-top .mono {
  text-align: right;
}
.quote-pattern {
  flex: 0 0 auto;
  width: 46px;
  height: 20px;
  background: radial-gradient(circle, var(--forest) 1.6px, transparent 2px) 0 0/10px 9px;
}
.testimonial-card blockquote {
  max-width: 1000px;
  margin: clamp(36px, 6vh, 70px) 0;
  font-size: clamp(23px, 2.55vw, 40px);
  line-height: 1.32;
  letter-spacing: -0.035em;
}
.testimonial-card-footer {
  display: grid;
  grid-template-columns: minmax(48px, 0.2fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.testimonial-card-footer > span {
  height: 1px;
  margin-top: 7px;
  background: var(--forest);
  opacity: 0.5;
}
.testimonial-card cite {
  font: 10px/1.55 "DM Mono", monospace;
  text-transform: uppercase;
  font-style: normal;
}
/* --------------------------------------------------------------------------
   12. FAQ Section
   -------------------------------------------------------------------------- */
.faq {
  padding: 11vh var(--pad);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8vw;
  border-bottom: 1px solid var(--forest);
}
.faq h2 {
  font: 700 clamp(43px, 6vw, 85px)/0.9 Manrope;
  text-transform: uppercase;
  letter-spacing: -0.06em;
  margin: 0;
  position: sticky;
  top: 110px;
  align-self: start;
}
.faq-list {
  border-top: 1px solid var(--forest);
}
.faq-item {
  border-bottom: 1px solid var(--forest);
}
.faq-q {
  width: 100%;
  border: 0;
  background: none;
  padding: 27px 0;
  display: grid;
  grid-template-columns: 40px 1fr 30px;
  gap: 12px;
  text-align: left;
  cursor: none;
  font-weight: 600;
}
.faq-q .plus {
  font: 25px/1 "DM Mono";
  transition: transform 0.3s;
}
.faq-item.open .plus {
  transform: rotate(45deg);
}
.faq-a {
  height: 0;
  overflow: hidden;
}
.faq-a p {
  margin: 0;
  padding: 0 35px 30px 52px;
  line-height: 1.7;
  color: #39574d;
  max-width: 750px;
}
/* --------------------------------------------------------------------------
   13. Call-To-Action (Final Banner)
   -------------------------------------------------------------------------- */
.final-cta-section {
  background: var(--paper);
  padding: 80px var(--pad) 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.cta-card {
  width: 100%;
  max-width: 1440px;
  background: var(--forest-2);
  color: var(--paper);
  border-radius: 0;
  padding: clamp(40px, 5vw, 68px) clamp(30px, 4.5vw, 60px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(247, 245, 237, 0.15);
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 4vw, 50px);
}
.cta-card-header {
  position: relative;
  z-index: 1;
}
.card-eyebrow {
  color: var(--lime);
  display: block;
  margin-bottom: 12px;
}
.cta-card-header h2 {
  font: 700 clamp(38px, 5.5vw, 80px)/1.02 Manrope;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin: 0;
  color: var(--paper);
}
.cta-card-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(40px, 5vw, 68px);
  border-top: 1px solid rgba(247, 245, 237, 0.15);
  padding-top: clamp(30px, 4vw, 50px);
}
.cta-card-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
}
.cta-card-left p {
  max-width: 600px;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
  color: rgba(247, 245, 237, 0.85);
  margin: 0;
}
.cta-editorial-note {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--lime);
  font-size: 11px;
  opacity: 0.8;
}
.cta-card-right {
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(247, 245, 237, 0.15);
  padding-left: clamp(30px, 4.5vw, 60px);
}
.cta-contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-label {
  color: var(--lime);
  font-size: 10px;
  opacity: 0.8;
}
.cta-phone-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--paper);
}
.phone-number-display {
  font: 700 clamp(22px, 2.4vw, 34px)/1.1 Manrope;
  letter-spacing: -0.03em;
  transition: color 0.3s ease;
}
.phone-availability {
  font-size: 10px;
  color: rgba(247, 245, 237, 0.6);
  margin-top: 6px;
  letter-spacing: 0.02em;
}
.cta-phone-link:hover .phone-number-display {
  color: var(--lime);
}
/* cta button elements removed */
/* --------------------------------------------------------------------------
   14. Footer Section
   -------------------------------------------------------------------------- */
body > footer {
  background: var(--forest-2);
  color: var(--paper);
  border-top: 1px solid rgba(247, 245, 237, 0.2);
  padding: 7vh var(--pad) 25px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 5vw;
}
.footer-logo {
  font: 800 clamp(40px, 5vw, 72px)/0.8 Manrope;
  letter-spacing: -0.06em;
}
.footer-col h4 {
  font: 10px "DM Mono";
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 20px;
}
.footer-col a,
.footer-col p {
  display: block;
  color: var(--paper);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.9;
  margin: 0;
}
.legal {
  border-top: 1px solid rgba(247, 245, 237, 0.2);
  margin-top: 7vh;
  padding-top: 20px;
  padding-right: 240px;
  display: flex;
  justify-content: space-between;
  font: 9px "DM Mono";
  text-transform: uppercase;
  color: #adc0b7;
}
/* --------------------------------------------------------------------------
   15. Responsive Styling (Media Queries)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  body {
    cursor: auto;
  }
  
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
  
  :root {
    --nav-height: 76px;
  }
  
  :root:has(.nav.is-scrolled) {
    --nav-height: 76px;
  }
  .nav {
    grid-template-columns: 1fr auto;
  }
  
  .nav-links {
    display: none;
  }
  .nav-cta {
    display: none;
  }
  /* Hamburger Toggle button */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1010; /* sits above mobile-menu overlay */
    outline: none;
    padding: 0;
    transition: transform 0.3s ease;
  }
  .nav-toggle .line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--forest);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease,
                background-color 0.3s ease;
    transform-origin: center;
  }
  /* Active states turning hamburger to an 'X' */
  .nav-toggle.is-active .line-1 {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.is-active .line-2 {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav-toggle.is-active .line-3 {
    transform: translateY(-7px) rotate(-45deg);
  }
  /* Mobile Dropdown Menu */
  .mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: var(--pad);
    width: calc(100% - 2 * var(--pad));
    height: auto;
    background: rgba(247, 245, 237, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(16, 63, 49, 0.12);
    border-radius: 0;
    box-shadow: 0 16px 40px rgba(16, 63, 49, 0.12);
    z-index: 1005; /* sits between navbar (1010) and backdrop (999) */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 32px 24px;
    transform: translateY(-120%);
    opacity: 0;
    /* Snappy exit transition when closing */
    transition: transform 0.22s cubic-bezier(0.3, 0, 0.8, 0.15),
                opacity 0.18s ease-in;
    pointer-events: none;
  }
  .mobile-menu.is-active {
    transform: translateY(12px); /* Floats nicely below navbar */
    opacity: 1;
    pointer-events: all;
    /* Slightly longer, springy enter transition when opening */
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease-out;
  }
  .mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
  }
  .mobile-menu-links a {
    font: 600 20px "DM Mono", monospace;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.08em;
    color: var(--forest);
    transition: color 0.3s ease, transform 0.3s ease;
  }
  .mobile-menu-links a:hover,
  .mobile-menu-links a:focus-visible {
    color: var(--leaf);
    transform: scale(1.05);
  }
  .mobile-menu-cta {
    border: 1px solid var(--forest);
    border-radius: 0;
    padding: 12px 24px;
    text-decoration: none;
    font: 600 12px "DM Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--forest);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    width: 100%;
    max-width: 240px;
  }
  .mobile-menu-cta:hover {
    background: var(--forest);
    color: var(--paper);
    border-color: var(--forest);
    box-shadow: 0 4px 16px rgba(16, 63, 49, 0.15);
    transform: translateY(-2px);
  }
  
  /* Mobile Menu Backdrop Overlay */
  .mobile-menu-backdrop {
    display: none;
  }
  @media (max-width: 900px) {
    .mobile-menu-backdrop {
      display: block;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(16, 63, 49, 0.15);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      z-index: 999;
      opacity: 0;
      pointer-events: none;
      /* Snappy fade-out transition when closing */
      transition: opacity 0.22s ease-in;
    }
    .mobile-menu-backdrop.is-active {
      opacity: 1;
      pointer-events: auto;
      /* Smooth fade-in transition when opening */
      transition: opacity 0.3s ease-out;
    }
  }
  
  .hero {
    min-height: 780px;
  }
  
  .hero::after {
    width: 80vw;
    right: -26vw;
  }
  
  .hero-copy {
    padding-top: 100px;
  }
  
  .hero h1 {
    font-size: 13.4vw;
    width: 100%;
    letter-spacing: -0.065em;
  }
  
  .hero h1 span {
    text-shadow: 
      0 0 8px var(--paper),
      0 0 4px var(--paper);
  }
  
  .hero h1 span:first-child {
    text-shadow: 
      0 0 20px var(--paper),
      0 0 10px var(--paper),
      0 0 4px var(--paper);
  }
  
  .hero-bottom {
    grid-template-columns: 1fr;
  }
  
  .hero-bottom p {
    margin: 0;
    max-width: 78vw;
  }
  
  .scroll-mark {
    display: none;
  }
  
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat:nth-child(2n) {
    border-right: 0;
  }
  
  .about {
    grid-template-columns: 1fr;
    padding-top: 10vh;
  }
  
  .about-side {
    position: static;
  }
  
  .about-copy {
    margin-left: 0;
  }
  
  .principles {
    grid-template-columns: 1fr;
  }
  
  .principle {
    border-right: 0;
    border-bottom: 1px solid;
  }
  
  .principle + .principle {
    padding-left: 0;
  }
  
  .service-viewport {
    height: 100vh;
    height: 100dvh;
    min-height: 520px;
    padding-bottom: 8vh;
    display: flex;
    align-items: flex-end;
  }
  
  .services-head {
    top: var(--nav-height);
    padding: clamp(10px, 3vh, 30px) 0 15px;
    grid-template-columns: 1fr;
    transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .service-track {
    display: flex;
    gap: 16px;
    padding: 0 var(--pad);
    width: max-content;
    overflow: visible;
  }
  
  .service-track::before {
    display: block;
    width: 15vw;
    max-width: none;
  }
  
  .service-card {
    scroll-snap-align: none;
    width: 78vw;
    height: 50vh;
    min-height: 360px;
    max-height: 450px;
  }
  
  .scroll-progress {
    display: block;
    bottom: 3.5vh;
  }
  
  .network {
    padding-top: calc(var(--nav-height) + 5vh);
    padding-bottom: 7vh;
    display: flex;
    flex-direction: column;
  }
  
  .network-intro {
    grid-template-columns: 1fr;
    order: 1;
  }
  
  .care-map {
    width: 90vw;
    max-width: 350px;
    height: 90vw;
    max-height: 350px;
    margin: 6vh auto 0;
    position: relative;
    counter-reset: care-counter;
    overflow: visible;
    order: 2;
  }
  .care-wheel-container {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 50%;
    transform-origin: center center;
  }
  .care-map .care-svg {
    display: block;
    width: 100%;
    height: 100%;
  }
  .care-core {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-align: center;
    box-shadow: 0 10px 40px rgba(16, 63, 49, 0.1);
    z-index: 3;
    pointer-events: none; /* Let clicks pass through to wheel items if overlapping */
  }
  .care-core::before {
    inset: 7px;
  }
  .care-core strong {
    font-size: 13px;
    line-height: 1.05;
  }
  .care-core small {
    display: block;
    margin-top: 4px;
    font-size: 7px;
    letter-spacing: 0.05em;
  }
  
  .care-node {
    position: absolute;
    width: 48px;
    height: 48px;
    min-height: 0; /* Clear desktop min-height */
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(247, 245, 237, 0.94);
    border: 1px solid var(--forest);
    transition: background 0.3s, 
                color 0.3s, 
                box-shadow 0.3s;
    cursor: pointer;
    z-index: 3;
    transform: translate(-50%, -50%);
  }
  .care-node::before {
    counter-increment: care-counter;
    content: counter(care-counter, decimal-leading-zero);
    font: 700 13px "DM Mono", monospace;
    color: inherit;
  }
  .care-node b,
  .care-node span {
    display: none;
  }
  .care-node:hover,
  .care-node.is-active {
    transform: translate(-50%, -50%) scale(1.18);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.3s,
                color 0.3s,
                box-shadow 0.3s;
    background: var(--forest);
    color: var(--paper);
    box-shadow: 0 0 20px rgba(16, 63, 49, 0.3);
  }
  
  /* Responsive circular percentage coordinates for mobile wheel */
  .care-node.n1 { left: 50%; top: 15%; }
  .care-node.n2 { left: 74.75%; top: 25.25%; }
  .care-node.n3 { left: 85%; top: 50%; }
  .care-node.n4 { left: 74.75%; top: 74.75%; }
  .care-node.n5 { left: 50%; top: 85%; }
  .care-node.n6 { left: 25.25%; top: 74.75%; }
  .care-node.n7 { left: 15%; top: 50%; }
  .care-node.n8 { left: 25.25%; top: 25.25%; }

  /* Mobile Controls Bar */
  .network-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-top: 25px;
    order: 4;
  }
  .network-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--forest);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--forest);
    transition: background 0.3s, color 0.3s, transform 0.2s;
  }
  .network-arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2px;
  }
  .network-arrow:hover,
  .network-arrow:focus-visible {
    background: var(--forest);
    color: var(--paper);
    outline: 0;
  }
  .network-arrow:active {
    transform: scale(0.95);
  }
  .network-indicator {
    font: 600 13px/1 "DM Mono", monospace;
    letter-spacing: 0.1em;
    color: var(--forest);
    display: flex;
    align-items: center;
    gap: 4px;
  }

  /* Mobile Details Card */
  .care-details {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(247, 245, 237, 0.94);
    border: 1px solid var(--forest);
    border-radius: 14px;
    padding: 24px 20px;
    margin-top: 35px;
    min-height: 128px;
    box-shadow: 0 10px 40px rgba(16, 63, 49, 0.05);
    position: relative;
    z-index: 5;
    order: 3;
  }
  .care-details-no {
    font: 700 24px "DM Mono", monospace;
    color: var(--leaf);
    line-height: 1;
    margin-top: 2px;
  }
  .care-details-content {
    flex: 1;
  }
  .care-details-title {
    font: 700 18px Manrope, sans-serif;
    color: var(--forest);
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: -0.02em;
  }
  .care-details-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--forest);
    opacity: 0.85;
    margin: 0;
  }
  
  .testimonial-carousel {
    grid-template-columns: minmax(145px, 0.3fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 52px);
  }
  .testimonial-arrow {
    cursor: pointer;
  }
  .quote-stack {
    min-height: 450px;
  }
  .testimonial-card blockquote {
    font-size: clamp(21px, 3.1vw, 30px);
  }
  
  .faq {
    grid-template-columns: 1fr;
  }
  
  .faq h2 {
    position: static;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-logo {
    grid-column: 1 / -1;
  }
  
  .cta-card {
    padding: 40px 24px;
    gap: 32px;
  }
  
  .cta-card-body {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 32px;
  }
  
  .cta-card-right {
    border-left: 0;
    border-top: 1px solid rgba(247, 245, 237, 0.15);
    padding-left: 0;
    padding-top: 32px;
  }
}
@media (max-width: 700px) {
  .testimonial-carousel {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .testimonial-stage {
    order: 1;
  }
  .testimonial-meta {
    order: 2;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 18px 20px;
    padding: 0;
  }
  .testimonial-status {
    grid-column: 1;
    grid-row: 1;
    margin-top: 0;
  }
  .testimonial-controls {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
  }
  .testimonial-prompt {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .testimonial-hint {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}
@media (max-width: 560px) {
  .hero h1 span,
  .hero h1 .indent,
  .hero h1 span:last-child {
    padding-left: 0;
  }

  .hero-label span:last-child {
    display: none;
  }
  
  .services-head h2 {
    font-size: 42px;
  }
  
  .service-card h3 {
    font-size: 31px;
  }
  .testimonials {
    padding-top: 72px;
    padding-bottom: 96px;
  }
  .testimonials-head {
    margin-bottom: 30px;
  }
  .testimonials h2 {
    font-size: clamp(43px, 16vw, 67px);
    line-height: 0.91;
  }
  .testimonial-carousel {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .testimonial-stage {
    order: 1;
    padding-right: 24px;
    padding-bottom: 27px;
  }
  .quote-stack {
    min-height: 420px;
  }
  .testimonial-card {
    padding: 25px 22px;
    border-radius: 0;
  }
  .testimonial-card[data-position="next"] {
    transform: translate3d(11px, 13px, 0) rotate(0.7deg) scale(0.987);
  }
  .testimonial-card[data-position="far"] {
    transform: translate3d(22px, 26px, 0) rotate(1.2deg) scale(0.974);
  }
  .testimonial-card-top {
    gap: 12px;
  }
  .quote-pattern {
    width: 38px;
    height: 18px;
  }
  .testimonial-card blockquote {
    margin: 28px 0;
    font-size: clamp(19px, 5.35vw, 23px);
    line-height: 1.38;
  }
  .testimonial-card-footer {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 13px;
  }
  .testimonial-card cite {
    font-size: 9px;
  }
  .testimonial-meta {
    order: 2;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 0;
  }
  .testimonial-prompt {
    max-width: 260px;
    font-size: 13px;
    order: 3;
  }
  .testimonial-status {
    margin-top: 0;
    order: 1;
  }
  .testimonial-current {
    font-size: 44px;
  }
  .testimonial-controls {
    margin-top: 0;
    order: 2;
    display: flex;
    gap: 10px;
  }
  .testimonial-arrow {
    width: 50px;
    height: 50px;
  }
  .testimonial-hint {
    margin-top: 0;
    order: 4;
  }
  
  .legal {
    display: block;
    padding-right: 0;
  }
  
  .legal span {
    display: block;
    margin-top: 8px;
  }
  
  .cta-card-right {
    justify-content: center;
    text-align: center;
  }
}
/* --------------------------------------------------------------------------
   16. Accessibility & Motion Settings
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .dot-ribbon-track,
  .care-pulse,
  .care-core::before,
  .feature-icon {
    animation-play-state: paused;
  }
  .testimonial-arrow {
    transition: none;
  }
}

/* ==========================================================================
   17. Bespoke AI Chatbot Widget Styles
   ========================================================================== */
/* Blurred Chat Backdrop Overlay */
.mcity-chat-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(16, 63, 49, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9980; /* Sits just below chatbot panel (9990) but above site */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0.4s;
  visibility: hidden;
}
.mcity-chat-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}

.mcity-chatbot-container {
  /* Positioned under cursor (10000) but above everything else */
  position: relative;
  z-index: 9990;
}

/* Floating Launcher Badge */
.mcity-chat-launcher {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--paper);
  color: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 0; /* Sharp editorial corners */
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 210px;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(16, 63, 49, 0.08);
  transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mcity-chat-launcher:hover {
  background: var(--forest);
  color: var(--paper);
  transform: translateY(-2px);
}
.mcity-chat-launcher.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.95);
}

/* Status Indicator Pulse Dot */
.chat-status-dot-pulse {
  width: 6px;
  height: 6px;
  background: var(--leaf);
  border-radius: 50%;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}
.chat-status-dot-pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--leaf);
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.chat-launcher-text {
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.chat-launcher-arrow {
  width: 12px;
  height: 12px;
  stroke-width: 2.5;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mcity-chat-launcher:hover .chat-launcher-arrow {
  transform: translate(2px, -2px);
}

/* Chat Modal Panel Layout */
.mcity-chat-panel {
  position: fixed;
  bottom: 95px;
  right: 30px;
  width: 620px;
  height: 540px;
  background: var(--paper);
  border: 1px solid var(--forest);
  border-radius: 0; /* Sharp editorial aesthetic */
  box-shadow: 0 24px 80px rgba(16, 63, 49, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  overscroll-behavior: contain;
  
  /* Signature Design Moment: Clip path horizontal wipe + translation + opacity */
  clip-path: inset(0 0 0 100%);
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: clip-path 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s 0.5s;
}
.mcity-chat-panel.is-active {
  pointer-events: auto;
  visibility: visible;
  clip-path: inset(0 0 0 0%);
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: clip-path 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s;
}

/* Signature Entrance vertical connection line */
.chat-wipe-line {
  position: absolute;
  top: 0;
  right: 0;
  width: 1.5px;
  height: 0%;
  background: var(--forest);
  z-index: 10;
  transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mcity-chat-panel.is-active .chat-wipe-line {
  height: 100%;
  transition: height 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Panel content container */
.chat-panel-content {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Desktop Left Sidebar: Suggested Inquiries */
.chat-sidebar {
  width: 210px;
  background: rgba(16, 63, 49, 0.02);
  border-right: 1px solid var(--line);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}
.sidebar-header {
  font-size: 12px;
  color: var(--leaf);
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 4px;
}
.suggested-questions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex-grow: 1;
  overscroll-behavior: contain;
}
.suggested-q-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--forest);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.3s ease;
}
.suggested-q-btn:hover,
.suggested-q-btn:focus-visible {
  border-color: var(--forest);
  background: rgba(16, 63, 49, 0.04);
  outline: none;
}

/* Main Conversation panel */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0; /* Prevents flex children from breaking layouts */
}

/* Chat Header */
.chat-header {
  height: 64px;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
}
.chat-header-brand {
  display: flex;
  align-items: baseline;
}
.brand-text {
  font-family: Manrope, Arial, sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.04em;
  color: var(--forest);
}
.brand-sub {
  font-size: 11px;
  color: var(--leaf);
  margin-left: 6px;
  letter-spacing: 0.08em;
}

.chat-close-btn {
  background: transparent;
  border: 0;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--forest);
  cursor: pointer;
  padding: 6px 10px;
  transition: opacity 0.2s ease;
}
.chat-close-btn:hover {
  opacity: 0.7;
}

/* Scrollable message viewport */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(247, 245, 237, 0.4);
  overscroll-behavior: contain;
}
.chat-messages:focus-visible {
  outline: 1px dotted var(--forest);
  outline-offset: -2px;
}

/* Scrollbar custom styles for larger viewports */
@media (min-width: 768px) {
  .chat-messages,
  .suggested-questions-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(16, 63, 49, 0.25) rgba(16, 63, 49, 0.03);
  }
  .chat-messages::-webkit-scrollbar,
  .suggested-questions-list::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  .chat-messages::-webkit-scrollbar-track,
  .suggested-questions-list::-webkit-scrollbar-track {
    background: rgba(16, 63, 49, 0.03);
  }
  .chat-messages::-webkit-scrollbar-thumb,
  .suggested-questions-list::-webkit-scrollbar-thumb {
    background: rgba(16, 63, 49, 0.25);
    border-radius: 0;
  }
  .chat-messages::-webkit-scrollbar-thumb:hover,
  .suggested-questions-list::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 63, 49, 0.5);
  }
}

/* Message block styling */
.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  animation: message-appear 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes message-appear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-meta {
  font-size: 11px;
  color: var(--leaf);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.msg-bubble {
  font-size: 14.5px;
  line-height: 1.5;
  padding: 12px 16px;
  border-radius: 0;
  word-wrap: break-word;
}

.msg-coordinator {
  align-self: flex-start;
}
.msg-coordinator .msg-bubble {
  background: rgba(185, 215, 197, 0.14); /* Soft mint tint */
  border: 1px solid rgba(16, 63, 49, 0.16);
  color: var(--forest);
}

.msg-user {
  align-self: flex-end;
  text-align: right;
}
.msg-user .msg-meta {
  align-self: flex-end;
}
.msg-user .msg-bubble {
  background: var(--forest);
  color: var(--paper);
  border: 1px solid var(--forest);
}

/* Micro-interaction: Typing state indicator */
.chat-typing-indicator .msg-bubble {
  display: flex;
  gap: 4px;
  padding: 14px 18px;
  align-items: center;
}
.typing-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--forest);
  animation: typing-bounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
}

/* Mobile Suggestions list overlay (hides on desktop) */
.chat-mobile-suggestions {
  display: none;
  padding: 10px 20px;
  border-top: 1px solid var(--line);
  background: rgba(16, 63, 49, 0.01);
}
.mobile-sugg-title {
  display: block;
  font-size: 11px;
  color: var(--leaf);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.mobile-sugg-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none; /* Firefox */
  overscroll-behavior: contain;
}
.mobile-sugg-track::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}
.mobile-sugg-track .suggested-q-btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 8px 12px;
  font-size: 12.5px;
}

/* Input Area styling */
.chat-input-area {
  border-top: 1px solid var(--line);
  padding: 16px 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--paper);
}
.input-wrapper {
  position: relative;
  flex: 1;
}
.chat-input {
  width: 100%;
  border: 0;
  border-bottom: 1px dashed var(--line);
  background: transparent;
  padding: 10px 0;
  font-size: 15px;
  font-family: inherit;
  color: var(--forest);
  outline: none;
  transition: border-bottom-color 0.3s ease;
}
.chat-input::placeholder {
  color: rgba(16, 63, 49, 0.45);
}
.chat-input:focus {
  border-bottom-color: transparent; /* Switch visual focus to line helper */
}

/* Signature Design Moment: Dotted transition path in border bottom */
.input-focus-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--forest);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.chat-input:focus ~ .input-focus-line {
  width: 100%;
}

.chat-send-btn {
  background: var(--forest);
  color: var(--paper);
  border: 1px solid var(--forest);
  border-radius: 99px; /* Capsule buttons */
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.chat-send-btn:hover {
  background: var(--forest-2);
  border-color: var(--forest-2);
  transform: translateY(-1px);
}
.chat-send-btn span {
  font-size: 12px;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.chat-send-arrow {
  width: 11px;
  height: 11px;
  stroke-width: 2.5;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.chat-send-btn:hover .chat-send-arrow {
  transform: translate(1.5px, -1.5px);
}

/* ==========================================================================
   18. Chatbot Viewport Responsiveness
   ========================================================================== */
/* Tablet viewport adjustment */
@media (max-width: 1199px) {
  .mcity-chat-panel {
    width: 390px;
    height: 510px;
    bottom: 95px;
    right: 24px;
  }
  .mcity-chat-launcher {
    bottom: 24px;
    right: 24px;
  }
  .chat-sidebar {
    display: none; /* Hide wide sidebar, switch to horizontal suggestions */
  }
  .chat-mobile-suggestions {
    display: block;
  }
}

/* Mobile viewport adjustment */
@media (max-width: 767px) {
  .mcity-chat-launcher {
    bottom: 20px;
    right: 20px;
    padding: 11px 16px;
  }
  .mcity-chat-launcher.is-hidden {
    display: none; /* Fully clear to free up touch area */
  }
  .mcity-chat-panel {
    bottom: 20px;
    left: 20px;
    right: 20px;
    width: calc(100vw - 40px);
    height: 60svh; /* Floating bottom sheet, nearly half viewport */
    border: 1px solid var(--forest);
    box-shadow: 0 16px 50px rgba(16, 63, 49, 0.22);
    clip-path: none; /* Disable clip-path on mobile for clean sheet slide */
    transform: translateY(100svh);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s 0.5s;
  }
  .mcity-chat-panel.is-active {
    clip-path: none;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s;
  }
  .chat-wipe-line {
    width: 100%;
    height: 2px;
    bottom: unset;
    top: 0;
    right: unset;
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .mcity-chat-panel.is-active .chat-wipe-line {
    transform: scaleX(1);
    height: 2px;
  }
  .chat-header {
    height: 56px;
    padding: 0 16px;
  }
  .chat-messages {
    padding: 16px;
  }
  .chat-input-area {
    padding: 12px 16px;
  }
  .chat-input {
    font-size: 16px;
  }
  html.mcity-chatbot-open,
  body.mcity-chatbot-open {
    overflow: hidden !important;
    height: 100% !important;
  }
}

/* ==========================================================================
   19. Reduced Motion settings for Chatbot
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .mcity-chat-panel {
    clip-path: none !important;
    transform: none !important;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0s 0.2s !important;
  }
  .mcity-chat-panel.is-active {
    transform: none !important;
    opacity: 1;
    transition: opacity 0.2s ease, visibility 0s !important;
  }
  .chat-wipe-line,
  .chat-status-dot-pulse::after,
  .typing-dot,
  .mcity-chat-launcher {
    animation: none !important;
    transition: none !important;
  }
  .chat-msg {
    animation: none !important;
  }
}

