:root {
  --bg-0: #fffafa;
  --bg-1: #f7fcf8;
  --bg-2: #edf7ef;
  --ink: #123524;
  --muted: #4f7660;
  --line: rgba(63, 118, 87, 0.2);
  --primary: #1f7a4f;
  --primary-glow: #2f9a63;
  --accent: #68b684;
  --card: rgba(255, 255, 255, 0.88);
  --glass: rgba(245, 252, 248, 0.8);
  --radius: 18px;
  --shadow: 0 16px 35px rgba(27, 73, 48, 0.12);
  --space-xs: 0.5rem;
  --space-sm: 0.85rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.2rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(1200px 800px at 85% 5%, rgba(78, 170, 113, 0.15), transparent 60%),
    radial-gradient(900px 700px at 10% 12%, rgba(127, 187, 147, 0.16), transparent 60%),
    linear-gradient(170deg, var(--bg-1) 0%, var(--bg-0) 45%, #f2faf4 100%);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: radial-gradient(circle at 1px 1px, #8ac2a2 1px, transparent 0);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
  z-index: -1;
}

body.page-ready {
  animation: pageFade 0.7s ease;
}

body.page-out {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.bg-wave {
  position: fixed;
  left: -10vw;
  width: 120vw;
  height: 220px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.22;
  filter: blur(2px);
  background: radial-gradient(120% 100% at 50% 120%, rgba(104, 182, 132, 0.25), rgba(104, 182, 132, 0) 72%);
  animation: waveDrift 16s ease-in-out infinite alternate;
}

.bg-wave.wave-1 {
  top: 8vh;
  animation-duration: 18s;
}

.bg-wave.wave-2 {
  top: 42vh;
  opacity: 0.18;
  animation-duration: 22s;
  animation-delay: -4s;
}

.bg-wave.wave-3 {
  top: 74vh;
  opacity: 0.15;
  animation-duration: 26s;
  animation-delay: -9s;
}

.bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(141, 214, 168, 0.55), rgba(78, 151, 109, 0.08));
  box-shadow: 0 0 14px rgba(104, 182, 132, 0.15);
  animation: particleFloat 14s ease-in-out infinite alternate;
}

.particle.p-1 {
  width: 8px;
  height: 8px;
  left: 8%;
  top: 18%;
  animation-duration: 12s;
}

.particle.p-2 {
  width: 6px;
  height: 6px;
  left: 16%;
  top: 42%;
  animation-duration: 16s;
  animation-delay: -3s;
}

.particle.p-3 {
  width: 10px;
  height: 10px;
  left: 24%;
  top: 72%;
  animation-duration: 18s;
  animation-delay: -7s;
}

.particle.p-4 {
  width: 7px;
  height: 7px;
  left: 34%;
  top: 26%;
  animation-duration: 14s;
  animation-delay: -5s;
}

.particle.p-5 {
  width: 9px;
  height: 9px;
  left: 43%;
  top: 58%;
  animation-duration: 20s;
  animation-delay: -2s;
}

.particle.p-6 {
  width: 6px;
  height: 6px;
  left: 52%;
  top: 14%;
  animation-duration: 13s;
  animation-delay: -8s;
}

.particle.p-7 {
  width: 11px;
  height: 11px;
  left: 61%;
  top: 36%;
  animation-duration: 22s;
  animation-delay: -6s;
}

.particle.p-8 {
  width: 7px;
  height: 7px;
  left: 68%;
  top: 68%;
  animation-duration: 17s;
  animation-delay: -11s;
}

.particle.p-9 {
  width: 8px;
  height: 8px;
  left: 77%;
  top: 22%;
  animation-duration: 15s;
  animation-delay: -4s;
}

.particle.p-10 {
  width: 10px;
  height: 10px;
  left: 85%;
  top: 49%;
  animation-duration: 19s;
  animation-delay: -10s;
}

.particle.p-11 {
  width: 6px;
  height: 6px;
  left: 92%;
  top: 74%;
  animation-duration: 21s;
  animation-delay: -1s;
}

.particle.p-12 {
  width: 9px;
  height: 9px;
  left: 95%;
  top: 12%;
  animation-duration: 16s;
  animation-delay: -9s;
}

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

@keyframes waveDrift {
  0% {
    transform: translateX(-2vw) translateY(0) scaleX(1);
  }
  50% {
    transform: translateX(1vw) translateY(-10px) scaleX(1.03);
  }
  100% {
    transform: translateX(3vw) translateY(6px) scaleX(1.06);
  }
}

@keyframes particleFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(0.95);
    opacity: 0.3;
  }
  50% {
    transform: translate3d(6px, -12px, 0) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate3d(-5px, 10px, 0) scale(1.08);
    opacity: 0.38;
  }
}

.cursor-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 14px rgba(104, 182, 132, 0.6);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(75, 140, 105, 0.55);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

.cursor-ring.active {
  width: 52px;
  height: 52px;
  border-color: rgba(31, 122, 79, 0.7);
}

.site-shell {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.top-nav {
  position: sticky;
  top: 1rem;
  z-index: 100;
  margin: 1rem auto 0;
  width: min(1240px, calc(100% - 2rem));
  border: 1px solid rgba(106, 161, 127, 0.25);
  background: rgba(245, 252, 248, 0.72);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(37, 92, 62, 0.12);
}

.top-nav .inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.2rem;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.top-nav .brand {
  margin-left: 0.65rem;
}

.brand .brand-accent {
  color: var(--accent);
}

.brand-animated {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 1.6em;
  line-height: 1.1;
}

.brand-full {
  display: inline-block;
  transition: opacity 0.22s ease;
}

.brand-compact {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  line-height: 1;
  transition: opacity 0.22s ease;
}

.top-nav.compact .brand-full {
  opacity: 0;
  visibility: hidden;
}

.top-nav.compact .brand-compact {
  opacity: 1;
  transform: translateY(-50%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-cta {
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(130deg, #2d8a5b, var(--accent));
  padding: 0.62rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.hero {
  padding: 5.4rem 0 2.8rem;
  position: relative;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  pointer-events: none;
  transition: transform 0.2s ease-out;
}

.hero-orb.orb-1 {
  width: 300px;
  height: 300px;
  right: -70px;
  top: 20px;
  background: radial-gradient(circle at 35% 35%, rgba(133, 211, 160, 0.45), rgba(63, 128, 92, 0.07));
}

.hero-orb.orb-2 {
  width: 220px;
  height: 220px;
  left: 35%;
  top: -40px;
  background: radial-gradient(circle at 50% 50%, rgba(126, 197, 151, 0.35), rgba(69, 117, 85, 0.06));
}

.hero-orb.orb-3 {
  width: 170px;
  height: 170px;
  left: 8%;
  top: 130px;
  background: radial-gradient(circle at 45% 45%, rgba(148, 214, 171, 0.28), rgba(74, 126, 92, 0.05));
}

.hero-orb.orb-4 {
  width: 140px;
  height: 140px;
  right: 24%;
  top: 210px;
  background: radial-gradient(circle at 50% 50%, rgba(112, 191, 141, 0.24), rgba(60, 116, 82, 0.04));
}

.hero-orb.orb-5 {
  width: 190px;
  height: 190px;
  left: -30px;
  top: 50px;
  background: radial-gradient(circle at 40% 40%, rgba(133, 211, 160, 0.35), rgba(63, 128, 92, 0.05));
}

.hero-orb.orb-6 {
  width: 130px;
  height: 130px;
  left: 18%;
  top: 260px;
  background: radial-gradient(circle at 60% 60%, rgba(148, 214, 171, 0.25), rgba(74, 126, 92, 0.04));
}

.eyebrow {
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.7rem;
  margin-bottom: var(--space-sm);
}

.headline {
  margin: 0.6rem 0 1.1rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 6.3vw, 4.7rem);
  line-height: 1.02;
  max-width: 17ch;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.headline .rotating {
  color: #2a8858;
  width: auto;
}

.rotating {
  white-space: nowrap;
  display: inline-block;
  overflow: visible;
  vertical-align: baseline;
}

.hero-copy {
  max-width: 64ch;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.45vw, 1.08rem);
  line-height: 1.72;
}

.hero-actions {
  margin-top: 1.9rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Home hero — centered, calm, trustworthy (scoped) */
.home-page .hero--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5.4rem 0 3.2rem;
}

.home-page .hero-welcome {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(79, 118, 96, 0.88);
}

.home-page .headline--home {
  margin: 0 0 1.35rem;
  max-width: 22ch;
  white-space: normal;
  line-height: 1.08;
  font-size: clamp(2.1rem, 5.2vw, 3.35rem);
  font-weight: 600;
  color: var(--ink);
}

.home-page .hero-copy--home {
  max-width: min(52ch, 100%);
  margin: 0;
  text-align: center;
  color: rgba(79, 118, 96, 0.95);
  line-height: 1.82;
  font-size: clamp(1rem, 1.35vw, 1.1rem);
}

.home-page .hero--centered .hero-actions {
  justify-content: center;
  margin-top: 2.1rem;
}

.home-page .editorial-rail--center {
  margin: 2rem auto 0;
  width: min(200px, 42%);
}

/* Home — partner logo marquee */
.home-partners {
  text-align: center;
}

.home-partners__title {
  margin-left: auto;
  margin-right: auto;
}

.home-partners__intro {
  margin: 0.75rem auto 0;
  max-width: 56ch;
}

.qv-partner-marquee {
  position: relative;
  margin-top: 1.75rem;
  /* Full-bleed: break out of .site-shell for a wider strip */
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  padding: clamp(1.85rem, 3.2vw, 2.65rem) 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  background: linear-gradient(180deg, rgba(245, 252, 248, 0.62), rgba(233, 246, 238, 0.42));
  border-top: 1px solid rgba(112, 168, 132, 0.22);
  border-bottom: 1px solid rgba(112, 168, 132, 0.22);
  overflow: hidden;
}

.qv-partner-marquee__viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.qv-partner-marquee__edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(160px, 14vw);
  z-index: 2;
  pointer-events: none;
}

.qv-partner-marquee__edge--left {
  left: 0;
  background: linear-gradient(90deg, rgba(247, 252, 248, 0.98), rgba(247, 252, 248, 0));
}

.qv-partner-marquee__edge--right {
  right: 0;
  background: linear-gradient(270deg, rgba(247, 252, 248, 0.98), rgba(247, 252, 248, 0));
}

.qv-partner-marquee__track {
  display: flex;
  width: max-content;
  animation: qvPartnerMarquee 52s linear infinite;
  will-change: transform;
}

.qv-partner-marquee:hover .qv-partner-marquee__track {
  animation-play-state: paused;
}

.qv-partner-marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
}

.qv-partner-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: clamp(3.25rem, 5.5vw, 4.25rem);
  padding: 0 0.5rem;
}

.qv-partner-logo img {
  display: block;
  height: clamp(44px, 5.5vw, 62px);
  width: auto;
  max-width: min(220px, 28vw);
  object-fit: contain;
  object-position: center;
  opacity: 0.94;
  transition: opacity 0.2s ease;
}

.qv-partner-marquee:hover .qv-partner-logo img {
  opacity: 1;
}

@keyframes qvPartnerMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .qv-partner-marquee__track {
    animation: none;
    transform: none;
  }
}

@media (max-width: 640px) {
  .qv-partner-marquee {
    padding: clamp(1.45rem, 4vw, 1.95rem) 0;
  }

  .qv-partner-marquee__edge {
    width: min(72px, 16vw);
  }

  .qv-partner-marquee__group {
    gap: clamp(1.25rem, 4vw, 1.75rem);
    padding: 0 clamp(0.65rem, 3vw, 1rem);
  }

  .qv-partner-logo {
    min-height: 2.85rem;
  }

  .qv-partner-logo img {
    height: clamp(36px, 10vw, 48px);
    max-width: min(160px, 42vw);
  }
}

/* Home — Carousel Section */
.home-carousel {
  padding-bottom: 5rem;
  overflow: hidden;
}

.home-carousel__title {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  perspective: 1200px;
  user-select: none;
}

.carousel-container {
  position: relative;
  height: 480px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  touch-action: pan-y;
  cursor: grab;
}

.carousel-container:active {
  cursor: grabbing;
}

.carousel-card {
  position: absolute;
  left: 50%;
  width: 340px;
  height: 420px;
  border: 1px solid rgba(138, 194, 162, 0.25);
  border-radius: 20px;
  padding: 2rem;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease, z-index 0s 0.3s;
  will-change: transform, opacity;
  box-shadow: 0 15px 35px rgba(27, 73, 48, 0.12);
  text-align: center;
  pointer-events: none;
}

.carousel-card.card-1 {
  background: linear-gradient(145deg, #eff7f2, #dcedea);
}
.carousel-card.card-2 {
  background: linear-gradient(145deg, #f5fbf7, #e8f5e9);
}
.carousel-card.card-3 {
  background: linear-gradient(145deg, #f0fdf4, #dcfce7);
}

/* Make active cards interactable if needed, otherwise no pointer events to prevent dragging issues */
.carousel-container[class*="active-"] .carousel-card {
  z-index: 1;
  opacity: 0;
  transform: translateX(-50%) scale(0.7) translateZ(-150px);
}

/* active-0 */
.carousel-container.active-0 [data-index="0"] {
  z-index: 3;
  opacity: 1;
  transform: translateX(-50%) scale(1) translateZ(0);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
  pointer-events: auto;
}
.carousel-container.active-0 [data-index="1"] {
  z-index: 2;
  opacity: 0.5;
  transform: translateX(15%) scale(0.85) translateZ(-80px);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
}
.carousel-container.active-0 [data-index="2"] {
  z-index: 2;
  opacity: 0.5;
  transform: translateX(-115%) scale(0.85) translateZ(-80px);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
}

/* active-1 */
.carousel-container.active-1 [data-index="0"] {
  z-index: 2;
  opacity: 0.5;
  transform: translateX(-115%) scale(0.85) translateZ(-80px);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
}
.carousel-container.active-1 [data-index="1"] {
  z-index: 3;
  opacity: 1;
  transform: translateX(-50%) scale(1) translateZ(0);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
  pointer-events: auto;
}
.carousel-container.active-1 [data-index="2"] {
  z-index: 2;
  opacity: 0.5;
  transform: translateX(15%) scale(0.85) translateZ(-80px);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
}

/* active-2 */
.carousel-container.active-2 [data-index="0"] {
  z-index: 2;
  opacity: 0.5;
  transform: translateX(15%) scale(0.85) translateZ(-80px);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
}
.carousel-container.active-2 [data-index="1"] {
  z-index: 2;
  opacity: 0.5;
  transform: translateX(-115%) scale(0.85) translateZ(-80px);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
}
.carousel-container.active-2 [data-index="2"] {
  z-index: 3;
  opacity: 1;
  transform: translateX(-50%) scale(1) translateZ(0);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
  pointer-events: auto;
}

/* The active card gets a brighter border */
.carousel-container.active-0 [data-index="0"],
.carousel-container.active-1 [data-index="1"],
.carousel-container.active-2 [data-index="2"] {
  border-color: rgba(143, 212, 168, 0.6);
  box-shadow: 0 30px 60px rgba(6, 36, 24, 0.7);
}

.carousel-card-title {
  margin-top: 1.5rem;
  font-size: 1.6rem;
  font-family: "Playfair Display", serif;
  color: var(--ink);
  margin-bottom: 0.8rem;
}

.carousel-card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Card Visuals (Subtle Data Elements) */
.card-visual {
  height: 120px;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

/* Track visual: Line graph */
.viz-line-graph {
  width: 140px;
  height: 80px;
  position: relative;
}

.viz-line {
  position: absolute;
  top: 40px;
  left: 0;
  width: 150px;
  height: 2px;
  background: #278052;
  transform: rotate(-15deg);
  transform-origin: left center;
}

.viz-point {
  width: 10px;
  height: 10px;
  background: #1f7a4f;
  border-radius: 50%;
  position: absolute;
  box-shadow: 0 0 8px rgba(31,122,79,0.3);
}

.viz-point.p1 { left: 10px; top: 37.5px; }
.viz-point.p2 { left: 70px; top: 21.5px; }
.viz-point.p3 { left: 130px; top: 5.5px; }

/* Analyze visual: Bar chart */
.viz-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 80px;
}

.viz-bar {
  width: 16px;
  background: #1f7a4f;
  border-radius: 4px 4px 0 0;
}

.viz-bar.b1 { height: 30px; }
.viz-bar.b2 { height: 50px; }
.viz-bar.b3 { height: 40px; }
.viz-bar.b4 { height: 75px; }

/* Adapt visual: Trend arrow */
.viz-trend {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.viz-arrow {
  color: #1f7a4f;
  animation: bounce 2s infinite ease-in-out;
}

.viz-percent {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 8px;
  letter-spacing: 1px;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Nav & Indicators */
.carousel-nav {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.carousel-nav-btn {
  background: rgba(245, 252, 248, 0.8);
  border: 1px solid rgba(160, 225, 185, 0.4);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #123524;
  transition: all 0.2s ease;
}

.carousel-nav-btn:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 36, 24, 0.1);
}

.carousel-indicators {
  display: flex;
  gap: 10px;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(18, 53, 36, 0.2);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #1f7a4f;
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .carousel-card {
    width: 280px;
    height: 380px;
    padding: 1.5rem;
  }
  
  .carousel-container.active-0 [data-index="1"],
  .carousel-container.active-1 [data-index="2"],
  .carousel-container.active-2 [data-index="0"] {
    transform: translateX(35%) scale(0.85) translateZ(-80px);
  }
  
  .carousel-container.active-0 [data-index="2"],
  .carousel-container.active-1 [data-index="0"],
  .carousel-container.active-2 [data-index="1"] {
    transform: translateX(-135%) scale(0.85) translateZ(-80px);
  }
}

/* Home — basket preview (links to strategy.html anchors) */
.home-baskets-preview__title,
.home-baskets-preview__intro {
  text-align: left;
}

.home-baskets-preview__intro {
  margin-top: 0.65rem;
  max-width: 62ch;
}

.home-baskets-preview__cards {
  margin-top: 1.65rem;
}

a.home-basket-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(152deg, #cef2db 0%, #9dddb2 100%);
  border: 1px solid rgba(135, 204, 150, 0.6);
  color: var(--ink);
  box-shadow: 0 14px 36px rgba(109, 163, 118, 0.15);
}

a.home-basket-card h3 {
  color: var(--ink);
}

a.home-basket-card .card-tag {
  background: rgba(18, 53, 36, 0.08);
  border-color: rgba(18, 53, 36, 0.2);
  color: #1a5231;
}

a.home-basket-card:focus-visible {
  outline: 2px solid #8fd4a8;
  outline-offset: 3px;
}

a.home-basket-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(109, 163, 118, 0.25);
  border-color: rgba(135, 204, 150, 0.8);
}

a.home-basket-card:active {
  transform: translateY(-3px);
}

.home-basket-card__cta {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 0.85rem;
}

.home-basket-card__cta span {
  font-size: 0.86rem;
  font-weight: 700;
  color: #1f7a4f;
  letter-spacing: 0.03em;
}

a.home-basket-card:hover .home-basket-card__cta span {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  color: #124d31;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.72rem 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(120deg, #278052, var(--accent));
  box-shadow: 0 10px 20px rgba(39, 128, 82, 0.22);
}

.btn-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(233, 246, 238, 0.7);
}

.section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section + .section {
  border-top: 1px solid rgba(101, 154, 122, 0.2);
}

.section-title {
  margin: 0 0 1.1rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.55rem, 2.55vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -0.005em;
}

.section-intro {
  color: var(--muted);
  max-width: 68ch;
  line-height: 1.78;
  font-size: 0.98rem;
}

.split {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.stat-card {
  background: linear-gradient(165deg, rgba(241, 251, 245, 0.95), rgba(233, 247, 238, 0.94));
  border: 1px solid rgba(116, 171, 136, 0.24);
  border-radius: var(--radius);
  padding: 1rem;
}

.stat-number {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
  color: #1f6f47;
  margin-bottom: 0.28rem;
}

.stat-label {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.55;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Baskets page (scoped) */
.baskets-page .hero .headline {
  white-space: normal;
  max-width: 24ch;
}

.baskets-page .hero .headline .headline-accent {
  background: linear-gradient(120deg, #2d8a5b, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 28px rgba(47, 154, 99, 0.18);
}

.baskets-page .hero .hero-copy {
  max-width: 74ch;
}

.baskets-page .baskets-cards {
  grid-template-columns: 1fr;
  max-width: 920px;
}

.baskets-page .baskets-cards .basket-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, rgba(236, 250, 242, 0.94), rgba(221, 245, 232, 0.9));
  border: 1px solid rgba(45, 138, 91, 0.26);
  box-shadow: 0 18px 42px rgba(18, 53, 36, 0.12);
  transition: none;
  scroll-margin-top: 5.5rem;
}

.baskets-page .basket-media {
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  border: 1px solid rgba(45, 138, 91, 0.18);
  background: rgba(237, 247, 239, 0.85);
  margin-bottom: 0.7rem;
  height: 92px;
  position: relative;
}

.baskets-page .basket-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 85% at 30% 20%, rgba(45, 138, 91, 0.16), transparent 58%),
    linear-gradient(180deg, rgba(18, 53, 36, 0) 35%, rgba(18, 53, 36, 0.12));
  pointer-events: none;
}

.baskets-page .basket-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) contrast(1.02);
  transform: scale(1.01);
}

@media (max-width: 640px) {
  .baskets-page .basket-media {
    height: 78px;
  }
}

.baskets-page .baskets-cards .basket-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 2px);
  padding: 1px;
  background: radial-gradient(
    120% 120% at 12% 8%,
    rgba(45, 138, 91, 0.55),
    rgba(104, 182, 132, 0.18) 42%,
    rgba(237, 247, 239, 0) 72%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.42;
  pointer-events: none;
}

.baskets-page .baskets-cards .basket-card::after {
  content: "";
  position: absolute;
  inset: -40% -25%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 38%,
    rgba(255, 255, 255, 0.45) 48%,
    rgba(255, 255, 255, 0) 58%
  );
  transform: translateX(-55%) rotate(6deg);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.baskets-page .baskets-cards .basket-card:hover::after {
  animation: basketMirrorSweep 1200ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.baskets-page .baskets-cards .basket-card {
  -webkit-box-reflect: below 12px
    linear-gradient(transparent 40%, rgba(18, 53, 36, 0.08) 70%, transparent);
}

.baskets-page .basket-lead {
  margin-bottom: 0.75rem;
  color: rgba(18, 53, 36, 0.86);
  font-size: 0.98rem;
}

.baskets-page .basket-hint {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.baskets-page .basket-more {
  opacity: 0;
  transform: translateY(10px);
  max-height: 0;
  overflow: hidden;
}

.baskets-page .basket-more p {
  margin: 0 0 0.75rem;
}

.baskets-page .basket-card:hover .basket-more {
  animation: basketMoreIn 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.baskets-page .basket-card:not(:hover) .basket-more {
  animation: basketMoreOut 280ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.baskets-page .basket-card:hover {
  animation: basketCardHover 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes basketMirrorSweep {
  0% {
    opacity: 0;
    transform: translateX(-55%) rotate(6deg);
  }
  30% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translateX(55%) rotate(6deg);
  }
}

@keyframes basketMoreIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
    max-height: 0;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    max-height: 800px;
  }
}

@keyframes basketMoreOut {
  0% {
    opacity: 1;
    transform: translateY(0);
    max-height: 800px;
  }
  100% {
    opacity: 0;
    transform: translateY(10px);
    max-height: 0;
  }
}

@keyframes basketCardHover {
  0% {
    transform: translateY(0);
    box-shadow: 0 18px 42px rgba(18, 53, 36, 0.12);
    border-color: rgba(45, 138, 91, 0.26);
  }
  100% {
    transform: translateY(-4px);
    box-shadow: 0 26px 56px rgba(18, 53, 36, 0.16);
    border-color: rgba(45, 138, 91, 0.52);
  }
}

.card {
  border-radius: var(--radius);
  border: 1px solid rgba(118, 174, 138, 0.25);
  background: var(--card);
  padding: 1.1rem 1.05rem 1.15rem;
  min-height: 205px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 24px rgba(54, 124, 84, 0.15);
  border-color: rgba(78, 149, 110, 0.4);
}

.card-tag {
  display: inline-block;
  background: rgba(79, 156, 108, 0.13);
  border: 1px solid rgba(79, 156, 108, 0.32);
  color: #306f4d;
  border-radius: 999px;
  font-size: 0.68rem;
  padding: 0.28rem 0.66rem;
  margin-bottom: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card h3 {
  margin: 0.24rem 0 0.58rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.3;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.67;
  font-size: 0.94rem;
}

.filters {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 0.9rem 0 1.8rem;
}

.filter-btn {
  border: 1px solid rgba(109, 163, 129, 0.35);
  color: #2f6f4d;
  background: rgba(238, 250, 243, 0.9);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.filter-btn.active {
  border-color: transparent;
  background: linear-gradient(135deg, #2a8658, #1f6e46);
  color: #f5fff8;
}

/* Blogs (Perspective) page */
.blog-page .hero--blogs .headline--blogs {
  white-space: normal;
  max-width: 100%;
  line-height: 1.12;
}

.blog-tagline {
  margin: 0 0 0.75rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.blog-tagline .accent {
  color: #2a8858;
}

.section--blogs {
  padding-top: 0.5rem;
}

.blog-cards {
  align-items: stretch;
}

.blog-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  min-height: 0;
}

.blog-card__thumb {
  aspect-ratio: 16 / 10;
  width: 100%;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.blog-card__thumb--1 {
  background-image: linear-gradient(145deg, rgba(31, 111, 71, 0.92) 0%, rgba(104, 182, 132, 0.55) 55%, rgba(237, 247, 239, 0.35) 100%);
}

.blog-card__thumb--2 {
  background-image: linear-gradient(155deg, rgba(45, 90, 74, 0.9) 0%, rgba(138, 194, 162, 0.5) 50%, rgba(255, 250, 250, 0.3) 100%);
}

.blog-card__thumb--3 {
  background-image: linear-gradient(135deg, rgba(52, 128, 84, 0.85) 0%, rgba(127, 187, 147, 0.45) 60%, rgba(245, 252, 248, 0.4) 100%);
}

.blog-card__thumb--4 {
  background-image: linear-gradient(160deg, rgba(23, 60, 42, 0.88) 0%, rgba(79, 156, 108, 0.48) 45%, rgba(255, 255, 255, 0.25) 100%);
}

.blog-card__thumb--5 {
  background-image: linear-gradient(140deg, rgba(42, 134, 88, 0.9) 0%, rgba(168, 214, 186, 0.5) 55%, rgba(237, 247, 239, 0.35) 100%);
}

.blog-card__thumb--6 {
  background-image: linear-gradient(145deg, rgba(29, 95, 62, 0.88) 0%, rgba(104, 182, 132, 0.42) 50%, rgba(255, 250, 250, 0.3) 100%);
}

.blog-card__body {
  padding: 1.05rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.blog-card .card-tag {
  margin-bottom: 0;
}

.card-tag--soft {
  background: rgba(79, 156, 108, 0.08);
  border-color: rgba(79, 156, 108, 0.22);
  color: #3d7f5a;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.65rem;
  font-weight: 600;
}

.blog-card h3 {
  margin: 0 0 0.5rem;
}

.blog-card p {
  margin-top: auto;
}

.blog-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.blog-card__link:hover h3 {
  color: #1f6f47;
}

.blog-card__thumb--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.blog-list-loading {
  grid-column: 1 / -1;
  margin: 0;
}

/* Single post */
.post-back {
  margin: 1.25rem 0 0.5rem;
}

.post-back__link {
  text-decoration: none;
  color: #3d7f5a;
  font-size: 0.92rem;
  font-weight: 600;
}

.post-back__link:hover {
  color: var(--ink);
}

.post-article {
  max-width: 720px;
  margin: 0 auto 3rem;
}

.post-hero {
  margin-bottom: 2rem;
}

.post-hero__media {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid rgba(118, 174, 138, 0.28);
  margin-bottom: 1.25rem;
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
}

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

.post-hero__media--gradient {
  background: linear-gradient(145deg, rgba(31, 111, 71, 0.92) 0%, rgba(104, 182, 132, 0.45) 55%, rgba(237, 247, 239, 0.35) 100%);
}

.post-hero__text .eyebrow {
  margin-bottom: 0.45rem;
}

.post-date {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.post-title {
  margin: 0 0 0.75rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.post-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.post-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

.post-hero__tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(31, 111, 71, 0.14);
  color: #1f5c3d;
  border: 1px solid rgba(118, 174, 138, 0.35);
}

.post-body {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.85;
}

.post-body p {
  margin: 0 0 1.1rem;
}

.post-body p:last-child {
  margin-bottom: 0;
}

.post-body h2,
.post-body h3,
.post-body h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  margin: 1.65rem 0 0.75rem;
  color: var(--ink);
}

.post-body h2 {
  font-size: 1.55rem;
}

.post-body h3 {
  font-size: 1.25rem;
}

.post-body h4 {
  font-size: 1.08rem;
}

.post-body ul,
.post-body ol {
  margin: 0 0 1.1rem;
  padding-left: 1.35rem;
}

.post-body li {
  margin-bottom: 0.35rem;
}

.post-body strong {
  font-weight: 700;
  color: var(--ink);
}

.post-body a {
  color: #1f6f47;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-body a:hover {
  color: #165a38;
}

.post-body hr {
  border: none;
  border-top: 1px solid rgba(118, 174, 138, 0.35);
  margin: 1.5rem 0;
}

.post-body blockquote {
  margin: 0 0 1.1rem;
  padding: 0.65rem 1rem;
  border-left: 3px solid rgba(31, 111, 71, 0.45);
  background: rgba(237, 247, 239, 0.5);
  color: var(--muted);
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 2px);
  margin: 0.75rem 0 1.25rem;
  border: 1px solid rgba(118, 174, 138, 0.28);
}

.post-body code {
  font-size: 0.9em;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  background: rgba(31, 111, 71, 0.08);
}

.post-body pre {
  margin: 0 0 1.1rem;
  padding: 1rem;
  overflow-x: auto;
  border-radius: calc(var(--radius) - 2px);
  background: rgba(26, 40, 32, 0.06);
  font-size: 0.88rem;
}

.post-body pre code {
  padding: 0;
  background: none;
}

/* Admin */
.admin-page .top-nav .inner {
  justify-content: space-between;
}

.admin-main {
  padding-bottom: 3rem;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-table-wrap {
  overflow-x: auto;
  padding: 0;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(118, 174, 138, 0.22);
  vertical-align: top;
}

.admin-table th {
  color: #2d6e4c;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-row-actions {
  white-space: nowrap;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.admin-form-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.admin-msg {
  margin-left: 0.35rem;
}

.admin-login {
  max-width: 420px;
}

.admin-editor-form .tool-grid {
  margin-top: 0.5rem;
}

.admin-tags-label {
  display: block;
  font-size: 0.85rem;
  color: #2d6e4c;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.admin-tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.admin-tag-option {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: #173c2a;
  cursor: pointer;
  margin: 0;
}

.admin-tag-option input {
  width: auto;
  margin: 0;
}

.admin-hint {
  font-size: 0.82rem;
  margin-top: 0.45rem;
  margin-bottom: 0;
}

.admin-page .EasyMDE,
.admin-page .CodeMirror {
  border-radius: 12px;
}

.admin-page .EasyMDE {
  border: 1px solid rgba(114, 170, 134, 0.35);
}

.admin-page .editor-toolbar {
  border-radius: 12px 12px 0 0;
}

.tool-panel {
  margin-top: 1.2rem;
  background: linear-gradient(170deg, rgba(243, 252, 246, 0.95), rgba(233, 246, 238, 0.95));
  border: 1px solid rgba(112, 168, 132, 0.25);
  border-radius: calc(var(--radius) + 6px);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

/* Invest Now form (scoped) */
#invest-form .field-error {
  display: block;
  min-height: 1.05em;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #b0261e;
}

#invest-form input[aria-invalid="true"],
#invest-form textarea[aria-invalid="true"] {
  border-color: rgba(176, 38, 30, 0.6);
}

#invest-form .invest-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 0.35rem;
  justify-content: flex-start;
}

#invest-form .invest-radio {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.25;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(114, 170, 134, 0.34);
  background: rgba(245, 252, 248, 0.78);
  box-shadow: 0 10px 22px rgba(27, 73, 48, 0.05);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  user-select: none;
  justify-content: flex-start;
  text-align: left;
}

#invest-form .invest-radio input[type="radio"] {
  margin: 0;
  width: auto !important;
  flex: 0 0 auto;
  padding: 0 !important;
  border-radius: 0;
  background: transparent;
}

#invest-form .invest-radio:hover {
  transform: translateY(-1px);
  border-color: rgba(78, 149, 110, 0.5);
}

/* Selected card */
#invest-form .invest-radio:has(input[type="radio"]:checked) {
  border-color: rgba(31, 111, 71, 0.55);
  box-shadow: 0 16px 30px rgba(27, 73, 48, 0.08);
  background: rgba(237, 247, 239, 0.92);
}

#invest-form .invest-radio-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.35rem;
}

#invest-form #investment-value-display {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.01em;
}

@media (max-width: 640px) {
  #invest-form .invest-radio-group {
    gap: 0.6rem;
  }
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

label {
  display: block;
  font-size: 0.85rem;
  color: #2d6e4c;
  margin-bottom: 0.42rem;
}

input,
select,
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(114, 170, 134, 0.28);
  border-radius: 12px;
  color: #173c2a;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.74rem 0.82rem;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.inline-signup {
  margin-top: 1.9rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
  max-width: 640px;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
}

.reveal.visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.footer {
  margin-top: 4.8rem;
  border-top: 1px solid rgba(106, 161, 127, 0.26);
  padding: 2.2rem 0 2.8rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.socials {
  display: flex;
  gap: 0.75rem;
}

.socials a {
  color: #3d7f5a;
  text-decoration: none;
  font-size: 0.9rem;
}

.muted {
  color: var(--muted);
}

.philosophy-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 1.4rem;
  align-items: stretch;
  margin-top: 1.2rem;
}

/* Qurve Way: Principles + Timeline (scoped) */
.qv-way {
  position: relative;
}

#qv-principles .section-title {
  margin-bottom: 0.65rem;
}

#qv-principles .section-intro {
  margin-top: 0;
}

.qv-principle-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 980px) {
  .qv-principle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .qv-principle-grid {
    grid-template-columns: 1fr;
  }
}

.qv-principle-card:nth-child(1) {
  grid-column: 1 / 3;
}

.qv-principle-card:nth-child(2) {
  grid-column: 3 / 5;
}

.qv-principle-card:nth-child(3) {
  grid-column: 5 / 7;
}

/* Tucked between cards 1 & 2 */
.qv-principle-card:nth-child(4) {
  grid-column: 2 / 4;
}

/* Tucked between cards 2 & 3 */
.qv-principle-card:nth-child(5) {
  grid-column: 4 / 6;
}

@media (max-width: 980px) {
  .qv-principle-card:nth-child(1),
  .qv-principle-card:nth-child(2),
  .qv-principle-card:nth-child(3),
  .qv-principle-card:nth-child(4),
  .qv-principle-card:nth-child(5) {
    grid-column: auto;
  }
}

.qv-principle-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, rgba(232, 250, 241, 0.92), rgba(220, 245, 232, 0.88));
  border: 1px solid rgba(112, 168, 132, 0.32);
  box-shadow: 0 16px 35px rgba(27, 73, 48, 0.1);
  backdrop-filter: blur(10px);
  transform: translateY(18px);
  opacity: 0;
  will-change: transform, opacity;
  transition: none;
}

.qv-principle-card {
  -webkit-box-reflect: below 10px linear-gradient(transparent 35%, rgba(18, 53, 36, 0.08) 70%, transparent);
}

.qv-principle-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 2px);
  padding: 1px;
  transform-origin: 50% 50%;
  background: radial-gradient(
    120% 120% at 15% 10%,
    rgba(104, 182, 132, 0.55),
    rgba(31, 111, 71, 0.12) 45%,
    rgba(237, 247, 239, 0) 72%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.38;
  pointer-events: none;
}

.qv-principle-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 300px at 30% 20%, rgba(104, 182, 132, 0.18), transparent 60%);
  opacity: 0;
  pointer-events: none;
}

.qv-principle-card .qv-principle-inner::after {
  content: "";
  position: absolute;
  inset: -40% -30%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.35) 48%,
    rgba(255, 255, 255, 0) 56%
  );
  transform: translateX(-35%) rotate(6deg);
  opacity: 0.6;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.qv-principle-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.qv-principle-title {
  margin: 0 0 0.5rem;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-size: 1.25rem;
  color: var(--ink);
}

.qv-principle-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.98rem;
  overflow: visible;
}

.qv-principle-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(237, 247, 239, 0.7);
  border: 1px solid rgba(118, 174, 138, 0.28);
  box-shadow: 0 10px 22px rgba(27, 73, 48, 0.08);
}

.qv-icon {
  width: 28px;
  height: 28px;
  stroke: rgba(31, 111, 71, 0.9);
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qv-principle-card .qv-icon path {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
}

.qv-principle-card.is-in {
  animation: qvCardIn 780ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--qv-stagger, 0ms);
}

.qv-principle-card.is-in::after {
  animation: qvEntryGlow 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--qv-stagger, 0ms) + 40ms);
}

.qv-principle-card.is-in::before {
  animation: qvBorderPulse 980ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--qv-stagger, 0ms) + 30ms);
}

.qv-principle-card.is-in .qv-icon path {
  animation: qvLineDraw 860ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--qv-stagger, 0ms) + 140ms);
}

.qv-principle-inner {
  position: relative;
  will-change: transform;
}

.qv-principle-card:hover {
  transform: translateY(0);
  box-shadow: 0 18px 40px rgba(27, 73, 48, 0.12);
  border-color: rgba(78, 149, 110, 0.42);
}

.qv-principle-card.is-in .qv-principle-inner::after {
  animation: qvMirrorSweep 1050ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--qv-stagger, 0ms) + 120ms);
}

.qv-principle-card:hover .qv-principle-inner::after {
  animation: qvMirrorIdle 2600ms cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes qvCardIn {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes qvEntryGlow {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes qvBorderPulse {
  0% {
    opacity: 0.18;
    filter: blur(0px);
  }
  55% {
    opacity: 0.7;
    filter: blur(0.4px);
  }
  100% {
    opacity: 0.38;
    filter: blur(0px);
  }
}

@keyframes qvLineDraw {
  from {
    stroke-dashoffset: 120;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes qvBreath {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes qvMirrorSweep {
  0% {
    opacity: 0;
    transform: translateX(-55%) rotate(6deg);
  }
  35% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translateX(55%) rotate(6deg);
  }
}

@keyframes qvMirrorIdle {
  0% {
    opacity: 0.12;
    transform: translateX(-35%) rotate(6deg);
  }
  50% {
    opacity: 0.35;
    transform: translateX(10%) rotate(6deg);
  }
  100% {
    opacity: 0.12;
    transform: translateX(-35%) rotate(6deg);
  }
}

/* Timeline */
.qv-timeline {
  position: relative;
  margin-top: 1.2rem;
  padding: 1rem 0.25rem;
  --qv-progress: 0;
}

#qv-how-it-works {
  position: relative;
  overflow: hidden;
}

#qv-how-it-works .qv-timeline {
  position: relative;
  z-index: 2;
}

#qv-how-it-works .qv-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(7px);
  pointer-events: none;
  transition: transform 0.22s ease-out;
  z-index: 1;
  opacity: 0.78;
}

#qv-how-it-works .qv-orb.orb-a {
  width: 260px;
  height: 260px;
  left: -80px;
  top: 90px;
  background: radial-gradient(circle at 35% 35%, rgba(133, 211, 160, 0.26), rgba(63, 128, 92, 0.05));
}

#qv-how-it-works .qv-orb.orb-b {
  width: 210px;
  height: 210px;
  right: 8%;
  top: 40px;
  background: radial-gradient(circle at 55% 55%, rgba(126, 197, 151, 0.22), rgba(69, 117, 85, 0.045));
}

#qv-how-it-works .qv-orb.orb-c {
  width: 170px;
  height: 170px;
  left: 62%;
  bottom: 40px;
  background: radial-gradient(circle at 45% 45%, rgba(148, 214, 171, 0.18), rgba(74, 126, 92, 0.04));
}

#qv-how-it-works .qv-orb.orb-d {
  width: 140px;
  height: 140px;
  left: 18%;
  bottom: 120px;
  background: radial-gradient(circle at 50% 50%, rgba(112, 191, 141, 0.16), rgba(60, 116, 82, 0.035));
}

.qv-timeline__line {
  position: absolute;
  left: 50%;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 4px;
  transform: translateX(-50%);
  background: rgba(63, 118, 87, 0.18);
  border-radius: 999px;
  overflow: hidden;
}

.qv-timeline__line-fill {
  position: absolute;
  inset: 0;
  transform-origin: top;
  transform: scaleY(var(--qv-progress));
  background: linear-gradient(
    180deg,
    rgba(31, 111, 71, 0) 0%,
    rgba(31, 111, 71, 0.75) 40%,
    rgba(104, 182, 132, 0.55) 100%
  );
}

.qv-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  align-items: center;
  padding: 1.05rem 0;
}

.qv-step__node {
  grid-column: 2;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(245, 252, 248, 0.95);
  border: 1px solid rgba(118, 174, 138, 0.38);
  box-shadow: 0 12px 24px rgba(27, 73, 48, 0.08);
  position: relative;
  justify-self: center;
  opacity: 0;
  transform: scale(0.8);
  will-change: transform, opacity;
}

.qv-step__node::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 999px;
  border: 2px solid rgba(104, 182, 132, 0.52);
  opacity: 0;
  transform: scale(0.6);
}

.qv-step__content {
  max-width: 600px;
  opacity: 0;
  will-change: transform, opacity;
}

.qv-step[data-side="left"] .qv-step__content {
  grid-column: 1;
  justify-self: end;
  text-align: right;
  transform: translateX(-26px);
}

.qv-step[data-side="right"] .qv-step__content {
  grid-column: 3;
  justify-self: start;
  text-align: left;
  transform: translateX(26px);
}

.qv-step__copy {
  margin: 0.55rem 0 0;
  color: rgba(18, 53, 36, 0.78);
  line-height: 1.75;
  font-size: 1.06rem;
}

#qv-how-it-works .card-tag {
  font-size: 0.75rem;
  padding: 0.32rem 0.72rem;
  margin-bottom: 0.5rem;
}

.qv-step.is-in .qv-step__content {
  animation: qvStepIn 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.qv-step.is-in .qv-step__node {
  animation: qvNodePop 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.qv-step.is-in .qv-step__node::after {
  animation: qvPing 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes qvStepIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes qvNodePop {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  60% {
    opacity: 1;
    transform: scale(1.18);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes qvPing {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  20% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

@media (max-width: 900px) {
  .qv-step {
    grid-template-columns: 34px 1fr;
    gap: 0.9rem;
  }
  .qv-timeline__line {
    left: 14px;
    transform: none;
  }
  .qv-step__node {
    grid-column: 1;
    justify-self: start;
  }
  .qv-step__content {
    grid-column: 2 !important;
    justify-self: start !important;
    text-align: left !important;
    transform: translateX(0) !important;
  }
}

.quote-block {
  border-left: 2px solid rgba(52, 128, 84, 0.55);
  padding: 1.1rem 0 1.1rem 1rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  line-height: 1.3;
}

.full-typography {
  min-height: 52vh;
  display: grid;
  align-content: center;
}

.full-typography .mega {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.95rem, 6.8vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.full-typography .mega em {
  color: #2e8659;
  font-style: normal;
}

.kpi-strip {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.kpi {
  border: 1px solid rgba(112, 168, 132, 0.25);
  border-radius: 14px;
  background: rgba(244, 252, 247, 0.95);
  padding: 0.75rem 0.8rem;
}

.kpi strong {
  display: block;
  font-size: 1.1rem;
  color: #246f49;
}

.kpi span {
  font-size: 0.82rem;
}

.editorial-rail {
  margin: 1.3rem 0 2rem;
  height: 1px;
  width: min(360px, 62%);
  background: linear-gradient(90deg, rgba(54, 132, 87, 0.8), rgba(105, 177, 132, 0.1));
}

.section-note {
  margin-top: 0.5rem;
  color: #4c7d61;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hidden {
  display: none !important;
}

/* Mobile Menu Styling */
.nav-links .nav-cta-clone {
  display: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 2px;
}

.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 960px) {
  .split,
  .cards,
  .philosophy-layout,
  .tool-grid,
  .kpi-strip {
    grid-template-columns: 1fr;
  }

  .top-nav .inner {
    padding: 0.7rem 1rem;
  }

  .section {
    padding: 2.2rem 0;
  }

  .menu-toggle {
    display: flex;
  }

  .top-nav > .inner > .nav-cta {
    display: none; /* Hide primary CTA from header on mobile */
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(245, 252, 248, 0.98);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
    z-index: -1; /* Place below the top nav bar elements */
  }

  .top-nav.nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 100;
  }

  .nav-links a {
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--ink);
  }

  .nav-links .nav-cta-clone {
    display: inline-block;
    margin-top: 1rem;
    font-size: 1.1rem;
    padding: 0.8rem 1.6rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 4.6rem;
  }

  .inline-signup {
    grid-template-columns: 1fr;
  }

  .headline {
    max-width: 100%;
    line-height: 1.08;
    white-space: normal;
  }
}
