/* ==========================================================================
   LIIQUIID — The Partnership Collective for Real Brand Impact
   Design system: "Direction A — Ivory & Sage" palette, DM Serif Display + DM Sans
   ========================================================================== */

:root {
  /* Palette — Ivory & Sage */
  --ivory: #f7f3e8;
  --ivory-soft: #ece5d2;
  --sage: #c9d8c1;
  --sage-deep: #a7bd9c;
  --herb: #6e8b62;
  --herb-bright: #8fae82;
  --gold: #c89a3c;
  --gold-bright: #e0b65a;
  --forest: #1c2b21;
  --forest-deep: #10201a;
  --forest-soft: #2a3d30;

  /* Aliases (keep old token names working across the file) */
  --emerald: var(--herb);
  --emerald-bright: var(--herb-bright);
  --amber: var(--gold);
  --amber-bright: var(--gold-bright);
  --cream: var(--ivory);
  --cream-soft: var(--ivory-soft);
  --charcoal: var(--forest);
  --charcoal-soft: var(--forest-soft);

  /* Semantic */
  --bg: var(--ivory);
  --ink: var(--forest);
  --ink-soft: rgba(28, 43, 33, 0.68);
  --accent: var(--herb);
  --accent-2: var(--gold);

  /* Type */
  --font-head: 'DM Serif Display', 'Georgia', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Motion */
  --ease-liquid: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--emerald);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: currentColor;
  display: inline-block;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }

/* ---------------- Custom liquid cursor ---------------- */
.cursor-blob {
  position: fixed;
  top: 0; left: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--emerald);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-out-soft), height 0.35s var(--ease-out-soft), background 0.35s;
  will-change: transform;
}
.cursor-blob.hovered {
  width: 64px; height: 64px;
  background: var(--amber);
}
@media (hover: none), (pointer: coarse) {
  .cursor-blob { display: none; }
  body { cursor: auto; }
}

/* ---------------- Grain / noise overlay ---------------- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------- Progress bar ---------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--emerald), var(--amber));
  z-index: 1001;
  transition: width 0.1s linear;
}

/* ---------------- Nav ---------------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 22px 0;
  transition: padding 0.4s var(--ease-liquid), background 0.4s var(--ease-liquid), box-shadow 0.4s;
}
.site-nav.scrolled {
  padding: 14px 0;
  background: rgba(247, 243, 232, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(28,43,33,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 2px;
}
.logo .drop {
  color: var(--emerald);
  font-style: italic;
}
.logo-img {
  display: block;
  height: 32px;
  width: auto;
}
.logo-img-dark { display: none; }
.site-nav.scrolled .logo-img-light { display: none; }
.site-nav.scrolled .logo-img-dark { display: block; }
.footer-top .logo-img { height: 30px; }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--emerald);
  transition: width 0.35s var(--ease-liquid);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--charcoal);
  color: var(--cream);
  padding: 11px 26px;
  border-radius: 40px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.3s, transform 0.3s var(--ease-out-soft);
  display: inline-block;
}
.nav-cta:hover { background: var(--emerald); transform: translateY(-2px); }
.nav-toggle { display: none; }

/* ---------------- Liquid blob backgrounds (SVG filter) ---------------- */
.liquid-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.blob {
  position: absolute;
  filter: blur(0px);
  will-change: transform;
}

/* ---------------- Hero ---------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--charcoal);
  color: var(--cream);
  overflow: hidden;
  padding-top: 90px;
}
.hero .liquid-field svg { width: 100%; height: 100%; }

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-bottom: 60px;
}
.hero-eyebrow {
  color: var(--amber-bright);
}
.hero-eyebrow::before { background: var(--amber-bright); }

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 6.2rem);
  color: var(--cream);
  margin-top: 22px;
  max-width: 16ch;
}
.hero h1 .accent-word {
  font-style: italic;
  color: var(--emerald-bright);
  position: relative;
  display: inline-block;
}
.hero-sub {
  margin-top: 28px;
  max-width: 46ch;
  font-size: 1.15rem;
  color: rgba(247,243,232,0.78);
  font-weight: 400;
}
.hero-actions {
  margin-top: 44px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 36px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease-out-soft), color 0.4s;
}
.btn-primary {
  background: var(--emerald);
  color: var(--charcoal);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--amber);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-liquid);
  z-index: -1;
  border-radius: inherit;
}
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary:hover { transform: translateY(-3px); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(247,243,232,0.35);
}
.btn-ghost:hover {
  border-color: var(--cream);
  transform: translateY(-3px);
}

.hero-scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247,243,232,0.55);
  z-index: 3;
}
.scroll-line {
  width: 1px;
  height: 46px;
  background: rgba(247,243,232,0.3);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--amber-bright);
  animation: scrollDrip 2.2s var(--ease-liquid) infinite;
}
@keyframes scrollDrip {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

.hero-stats {
  position: absolute;
  right: 32px;
  bottom: 40px;
  display: flex;
  gap: 44px;
  z-index: 3;
}
.hero-stats div { text-align: left; }
.hero-stats strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 2.1rem;
  color: var(--emerald-bright);
}
.hero-stats span {
  font-size: 0.75rem;
  color: rgba(247,243,232,0.55);
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .hero-stats { display: none; }
}

/* ---------------- Section wave divider ---------------- */
.wave-divider {
  display: block;
  width: 100%;
  line-height: 0;
  position: relative;
  z-index: 2;
}
.wave-divider svg { width: 100%; height: auto; display: block; }

/* ---------------- Marquee strip ---------------- */
.marquee-strip {
  background: var(--emerald);
  color: var(--forest-deep);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.marquee-track {
  display: inline-flex;
  gap: 40px;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 40px;
}
.marquee-track span::after { content: '◆'; font-size: 0.7rem; opacity: 0.6; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------- Section generic ---------------- */
.section {
  padding: 140px 0;
  position: relative;
}
.section-tight { padding: 100px 0; }
.section-head {
  max-width: 720px;
  margin-bottom: 72px;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-top: 18px;
}
.section-head p {
  margin-top: 22px;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 60ch;
}
.text-center { text-align: center; margin-left: auto; margin-right: auto; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.9s var(--ease-out-soft), transform 0.9s var(--ease-out-soft);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------------- Problem / statement section ---------------- */
.problem-section {
  background: var(--cream);
}
.problem-statement {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.6vw, 3.1rem);
  line-height: 1.28;
  max-width: 1000px;
  font-weight: 400;
}
.problem-statement .fade-word {
  color: rgba(28,43,33,0.28);
}
.problem-statement .pop-word {
  color: var(--emerald);
  font-style: italic;
}
.problem-cards {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.problem-card {
  background: var(--charcoal);
  color: var(--cream);
  padding: 36px 30px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
}
.problem-card .num {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 2.6rem;
  color: var(--amber);
  opacity: 0.8;
}
.problem-card h3 {
  font-size: 1.3rem;
  margin-top: 14px;
  color: var(--cream);
}
.problem-card p {
  margin-top: 12px;
  font-size: 0.95rem;
  color: rgba(247,243,232,0.65);
}

/* ---------------- Philosophy / Liquidity Principle ---------------- */
.philosophy-section {
  background: var(--forest);
  color: var(--cream);
}
.philosophy-section .eyebrow { color: var(--amber-bright); }
.philosophy-section .eyebrow::before { background: var(--amber-bright); }
.philosophy-section .section-head h2 { color: var(--cream); }
.philosophy-section .section-head p { color: rgba(247,243,232,0.7); }

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(247,243,232,0.12);
  border-radius: 28px;
  overflow: hidden;
}
.principle-card {
  background: var(--forest);
  padding: 56px 40px;
  position: relative;
  transition: background 0.5s var(--ease-liquid);
}
.principle-card:hover { background: var(--forest-deep); }
.principle-icon {
  width: 56px; height: 56px;
  margin-bottom: 28px;
}
.principle-card h3 {
  font-size: 1.9rem;
  color: var(--emerald-bright);
  font-style: italic;
}
.principle-card p {
  margin-top: 16px;
  color: rgba(247,243,232,0.72);
  font-size: 1rem;
}
.principle-tag {
  position: absolute;
  top: 32px; right: 36px;
  font-family: var(--font-head);
  font-size: 3.4rem;
  color: rgba(247,243,232,0.06);
  font-weight: 400;
}

/* ---------------- Who we partner with ---------------- */
.partner-section { background: var(--cream); }
.partner-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(28,43,33,0.12);
}
.partner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 38px 8px;
  border-bottom: 1px solid rgba(28,43,33,0.12);
  transition: padding 0.4s var(--ease-liquid);
  cursor: pointer;
}
.partner-row:hover {
  padding-left: 24px;
  background: linear-gradient(90deg, rgba(110,139,98,0.06), transparent);
}
.partner-row h3 {
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 500;
  transition: color 0.3s, transform 0.4s var(--ease-liquid);
}
.partner-row:hover h3 { color: var(--emerald); transform: translateX(6px); }
.partner-row .arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(28,43,33,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s var(--ease-liquid);
}
.partner-row:hover .arrow {
  background: var(--emerald);
  border-color: var(--emerald);
  transform: rotate(45deg);
}
.partner-row:hover .arrow svg path { stroke: var(--cream); }

/* ---------------- What we do ---------------- */
.services-section { background: var(--charcoal); color: var(--cream); }
.services-section .section-head h2 { color: var(--cream); }
.services-section .section-head p { color: rgba(247,243,232,0.68); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--charcoal-soft);
  border-radius: 24px;
  padding: 44px;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease-liquid);
  border: 1px solid rgba(247,243,232,0.06);
}
.service-card:hover { transform: translateY(-8px); }
.service-card .blob-glow {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  top: -80px; right: -80px;
  transition: opacity 0.5s;
  z-index: 0;
}
.service-card:hover .blob-glow { opacity: 0.55; }
.service-card * { position: relative; z-index: 1; }
.service-index {
  font-family: var(--font-head);
  font-style: italic;
  color: var(--amber-bright);
  font-size: 1.1rem;
}
.service-card h3 {
  font-size: 1.7rem;
  margin-top: 16px;
  color: var(--cream);
}
.service-card p {
  margin-top: 14px;
  color: rgba(247,243,232,0.65);
  font-size: 0.98rem;
}

/* ---------------- Why us ---------------- */
.whyus-section { background: var(--cream); }
.whyus-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}
.whyus-quote {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.32;
  font-weight: 400;
}
.whyus-quote em {
  color: var(--emerald);
  font-style: italic;
}
.whyus-quote .strike {
  text-decoration: line-through;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  color: rgba(28,43,33,0.4);
}
.whyus-visual {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mantra-ring {
  position: absolute;
  inset: 0;
  animation: spin 24s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.mantra-center {
  width: 62%;
  height: 62%;
  border-radius: 50%;
  background: var(--forest);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--cream);
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(28,43,33,0.4);
}
.mantra-center strong {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--emerald-bright);
}

/* ---------------- CTA / Contact ---------------- */
.contact-section {
  background: var(--forest-deep);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.contact-section .eyebrow { color: var(--amber-bright); }
.contact-section .eyebrow::before { background: var(--amber-bright); }
.contact-heading {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  margin-top: 18px;
  color: var(--cream);
}
.contact-heading .accent-word { color: var(--emerald-bright); font-style: italic; }
.contact-lead {
  margin-top: 24px;
  color: rgba(247,243,232,0.7);
  font-size: 1.08rem;
  max-width: 42ch;
}
.contact-details {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-details a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  position: relative;
}
.contact-details a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  height: 1.5px; width: 0;
  background: var(--emerald-bright);
  transition: width 0.4s var(--ease-liquid);
}
.contact-details a:hover::after { width: 100%; }

.form-card {
  background: rgba(247,243,232,0.04);
  border: 1px solid rgba(247,243,232,0.12);
  border-radius: 26px;
  padding: 44px;
  backdrop-filter: blur(6px);
}
.field {
  position: relative;
  margin-bottom: 26px;
}
.field label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247,243,232,0.55);
  margin-bottom: 10px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(247,243,232,0.25);
  padding: 10px 2px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cream);
  transition: border-color 0.35s;
  resize: none;
}
.field select option { color: var(--charcoal); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--emerald-bright);
}
.field textarea { min-height: 100px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

.form-submit {
  width: 100%;
  margin-top: 8px;
  background: var(--emerald);
  color: var(--forest-deep);
  border: none;
  padding: 18px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out-soft);
}
.form-submit:hover { transform: translateY(-2px); }
.form-submit:disabled { opacity: 0.6; cursor: wait; }

.form-msg {
  margin-top: 18px;
  font-size: 0.92rem;
  padding: 14px 16px;
  border-radius: 12px;
  display: none;
}
.form-msg.show { display: block; }
.form-msg.success { background: rgba(110,139,98,0.16); color: var(--emerald-bright); }
.form-msg.error { background: rgba(217,53,53,0.14); color: #ff8b8b; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(247,243,232,0.5);
  padding: 56px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(247,243,232,0.1);
  flex-wrap: wrap;
  gap: 24px;
}
.footer-top .logo { color: var(--cream); }
.footer-tagline {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.3rem;
  color: rgba(247,243,232,0.75);
  max-width: 360px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 26px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-socials { display: flex; gap: 20px; }
.footer-socials a:hover { color: var(--emerald-bright); }

/* ---------------- Liquidity sandbox ---------------- */
.sandbox-section { background: var(--ivory); }
.sandbox-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}
.sandbox-copy p {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 46ch;
}
.sandbox-copy p strong { color: var(--ink); }
.sandbox-controls {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.sandbox-btn { padding: 14px 26px; font-size: 0.88rem; }
.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(28,43,33,0.25);
}
.btn-ghost-dark:hover { border-color: var(--ink); transform: translateY(-3px); }
.sandbox-btn.is-active { box-shadow: 0 0 0 2px var(--forest) inset; }
.sandbox-reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.3s, gap 0.3s;
}
.sandbox-reset:hover { color: var(--herb); gap: 11px; }

/* Card wrapper: soft glow + visible border so the module reads as a
   deliberate, framed object rather than a bare canvas floating on the page. */
.sandbox-canvas-wrap { position: relative; }
.sandbox-canvas-wrap::before {
  content: '';
  position: absolute;
  inset: -18px;
  background: radial-gradient(circle at 30% 20%, rgba(200,154,60,0.18), transparent 60%),
              radial-gradient(circle at 80% 85%, rgba(110,139,98,0.22), transparent 55%);
  filter: blur(6px);
  z-index: 0;
  border-radius: 40px;
  pointer-events: none;
}
.sandbox-canvas-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(155deg, var(--forest) 0%, var(--forest-deep) 100%);
  border: 1px solid rgba(201,216,193,0.16);
  border-radius: 26px;
  padding: 20px;
  box-shadow: 0 40px 90px -36px rgba(16,32,26,0.55), inset 0 1px 0 rgba(247,243,232,0.06);
}
.sandbox-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 0 6px;
}
.sandbox-badge {
  position: relative;
  z-index: 2;
  background: rgba(143,174,130,0.18);
  color: var(--emerald-bright);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid rgba(143,174,130,0.3);
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.sandbox-badge.is-rigid {
  background: rgba(224,90,90,0.16);
  color: #e8938a;
  border-color: rgba(224,90,90,0.35);
}
.sandbox-legend {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(247,243,232,0.4);
}
.sandbox-legend .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--herb-bright);
  display: inline-block;
}
#sandboxCanvas {
  display: block;
  width: 100%;
  height: 400px;
  border-radius: 18px;
  cursor: crosshair;
}
.sandbox-counter {
  position: absolute;
  bottom: 30px; right: 30px;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(247,243,232,0.5);
  font-weight: 600;
  letter-spacing: 0.03em;
  background: rgba(16,32,26,0.55);
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid rgba(247,243,232,0.1);
}

/* ---------------- Service illustrations ---------------- */
.service-illustration {
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

/* ---------------- Build Your Legacy wizard ---------------- */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.wizard-step-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247,243,232,0.5);
  font-weight: 600;
}
.wizard-dots { display: flex; gap: 8px; }
.wizard-dot {
  width: 26px; height: 4px;
  border-radius: 4px;
  background: rgba(247,243,232,0.18);
  cursor: pointer;
  transition: background 0.35s;
}
.wizard-dot.done { background: var(--emerald); }
.wizard-dot.active { background: var(--emerald-bright); }

.wizard-panel { display: none; }
.wizard-panel.active { display: block; animation: wizardFade 0.45s var(--ease-out-soft); }
@keyframes wizardFade {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}
.wizard-panel-title {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--cream);
  margin-bottom: 22px;
}

.wizard-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}
.wizard-back {
  background: none;
  border: none;
  color: rgba(247,243,232,0.6);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 12px 6px;
  transition: color 0.3s;
}
.wizard-back:hover { color: var(--cream); }
.wizard-next, .wizard-submit { flex: 1; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .principle-grid, .services-grid, .problem-cards { grid-template-columns: 1fr; }
  .whyus-inner, .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .whyus-visual { max-width: 320px; margin: 0 auto; }
  .sandbox-grid { grid-template-columns: 1fr; gap: 40px; }
  #sandboxCanvas { height: 320px; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .section { padding: 90px 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-stats { position: static; margin-top: 50px; }
  .form-card { padding: 28px; }
  .sandbox-controls { flex-direction: column; align-items: stretch; }
  .sandbox-canvas-wrap::before { inset: -10px; }
  .sandbox-canvas-card { padding: 12px; border-radius: 20px; }
  .sandbox-card-head { padding: 0 2px; margin-bottom: 10px; }
  .sandbox-badge { font-size: 0.64rem; padding: 6px 11px; }
  .sandbox-legend { display: none; }
  .sandbox-counter { bottom: 16px; right: 16px; font-size: 0.64rem; padding: 5px 10px; }
  #sandboxCanvas { height: 260px; border-radius: 14px; }
  .wizard-nav { flex-direction: column-reverse; align-items: stretch; }
  .wizard-back { text-align: center; }
}
