/* Thudune — dune sand + deep teal */

:root {
  --sand: #D8C3A0;
  --sand-soft: #EFE5D2;
  --sand-tint: #F4ECDC;
  --teal: #1F4E4A;
  --teal-deep: #153835;
  --teal-hover: #2a625d;
  --ink: #1D2624;
  --ink-soft: #55615E;
  --cream: #FAF7F0;
  --white: #ffffff;
  --line: rgba(29, 38, 36, .12);
  --line-strong: rgba(29, 38, 36, .22);

  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 72px;
  --sp-7: 104px;

  --r-1: 10px;
  --r-2: 16px;
  --r-3: 26px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(29, 38, 36, .05), 0 2px 6px rgba(29, 38, 36, .04);
  --shadow-2: 0 4px 10px rgba(29, 38, 36, .05), 0 12px 28px rgba(29, 38, 36, .07);
  --shadow-3: 0 10px 20px rgba(29, 38, 36, .07), 0 28px 60px rgba(31, 78, 74, .14);

  --max: 1180px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --font-head: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--sand); color: var(--teal-deep); }

a { color: inherit; text-decoration: none; }
img, video, svg { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { font-family: var(--font-head); color: inherit; margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; top: var(--sp-1); left: var(--sp-1); z-index: 100;
  background: var(--teal); color: var(--cream);
  padding: 10px 18px; border-radius: var(--r-pill); font-weight: 600; font-size: 14px;
  transform: translateY(-160%);
  transition: transform .25s var(--ease);
}
.skip:focus { transform: translateY(0); outline-color: var(--sand); }

/* ---------- Layout ---------- */

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--sp-4);
  padding-right: var(--sp-4);
}

/* Full-bleed background bands on the same element as .shell */
.chart-section, .voices-section, .cta-section {
  position: relative;
}
.chart-section {
  background: var(--sand-tint);
  box-shadow: 0 0 0 100vmax var(--sand-tint);
  clip-path: inset(0 -100vmax);
}
.voices-section {
  background: var(--sand-tint);
  box-shadow: 0 0 0 100vmax var(--sand-tint);
  clip-path: inset(0 -100vmax);
}
.cta-section {
  background: var(--teal-deep);
  box-shadow: 0 0 0 100vmax var(--teal-deep);
  clip-path: inset(0 -100vmax);
  color: var(--cream);
}

.hero { padding-top: var(--sp-6); padding-bottom: var(--sp-7); }
.chart-section, .trust-section, .voices-section { padding-top: var(--sp-7); padding-bottom: var(--sp-7); }
.cta-section { padding-top: var(--sp-7); padding-bottom: var(--sp-7); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: 76px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(var(--sp-4), calc((100vw - var(--max)) / 2 + var(--sp-4)));
  background: rgba(250, 247, 240, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 800; font-size: 17px;
  letter-spacing: .06em; color: var(--teal);
}
.wordmark-muted { color: var(--sand); font-weight: 600; margin: 0 -2px; }

.mark { display: flex; align-items: flex-end; gap: 3px; width: 22px; height: 22px; }
.mark i { display: block; width: 5px; border-radius: 2px; background: var(--teal); height: 13px; }
.mark i:nth-child(2) { height: 22px; background: var(--sand); }
.mark i:nth-child(3) { height: 9px; }

.site-nav { display: flex; align-items: center; gap: var(--sp-4); font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.site-nav a { transition: color .2s var(--ease); }
.site-nav a:hover { color: var(--teal); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: var(--cream) !important;
  padding: 10px 20px; border-radius: var(--r-pill); font-weight: 600;
  box-shadow: var(--shadow-1);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.nav-cta:hover { background: var(--teal-hover); transform: translateY(-2px); box-shadow: var(--shadow-2); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong);
  border-radius: var(--r-1); padding: 12px 11px; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--teal); border-radius: 2px; }
.nav-toggle span + span { margin-top: 4px; }

/* ---------- Type helpers ---------- */

.eyebrow, .micro-label, .section-kicker {
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--sand-soft); border: 1px solid rgba(216, 195, 160, .8);
  padding: 7px 14px; border-radius: var(--r-pill);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 4px rgba(31, 78, 74, .15);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(31, 78, 74, 0); } }

.micro-label { margin: 0 0 var(--sp-1); color: var(--ink-soft); }

.section-kicker { display: flex; align-items: center; gap: var(--sp-2); color: var(--teal); }
.section-kicker .rule { height: 1.5px; width: 48px; background: var(--sand); }
.section-kicker span:last-child { color: var(--ink-soft); }

h1 em, h2 em { font-style: normal; color: var(--teal); background: linear-gradient(transparent 68%, rgba(216, 195, 160, .75) 68%); padding: 0 .05em; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.button:hover { transform: translateY(-2px); }
.button:disabled { opacity: .6; cursor: progress; transform: none; }
.button-light { background: var(--teal); color: var(--cream); box-shadow: var(--shadow-2); }
.button-light:hover { background: var(--teal-hover); box-shadow: var(--shadow-3); }

.text-link { font-weight: 600; font-size: 15px; color: var(--teal); transition: color .2s var(--ease); }
.text-link span { display: inline-block; margin-left: 6px; transition: transform .25s var(--ease); }
.text-link:hover span { transform: translateY(3px); }

/* ---------- Hero ---------- */

.hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: var(--sp-6); align-items: center; padding-top: var(--sp-4); }

.hero h1 {
  font-size: clamp(46px, 7vw, 92px); line-height: 1; letter-spacing: -.045em; font-weight: 800;
}
.hero-intro { color: var(--ink-soft); font-size: 19px; max-width: 520px; margin: var(--sp-3) 0 var(--sp-4); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3); }

.hero-aside {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-3);
  padding: var(--sp-4); box-shadow: var(--shadow-2);
}
.aside-line { height: 4px; width: 44px; border-radius: 4px; background: var(--sand); margin-bottom: var(--sp-3); }
.aside-statement { font-family: var(--font-head); font-weight: 700; font-size: clamp(28px, 3vw, 36px); line-height: 1.1; letter-spacing: -.03em; margin: 0; color: var(--teal-deep); }
.aside-statement span { color: var(--teal); background: linear-gradient(transparent 68%, rgba(216, 195, 160, .8) 68%); }
.aside-note { color: var(--ink-soft); font-size: 15px; margin: var(--sp-2) 0 0; }

.stat-strip {
  margin-top: var(--sp-6);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2);
}
.stat {
  display: flex; gap: var(--sp-2); align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-2);
  padding: var(--sp-3); box-shadow: var(--shadow-1);
  font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.stat strong { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--sand); -webkit-text-stroke: 0; line-height: 1; filter: brightness(.82); }
.stat-end { background: var(--teal); color: var(--cream); border-color: var(--teal); }
.stat-end .tiny-arrow { color: var(--sand); font-size: 22px; line-height: 1; }

/* ---------- Section headings ---------- */

.section-heading, .voices-heading {
  display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-5);
  padding: var(--sp-3) 0 var(--sp-5);
}
.section-heading h2, .trust-layout h2, .voices-heading h2, .cta-copy h2 {
  font-size: clamp(34px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -.04em; font-weight: 700;
}
.section-heading p, .voices-heading p { max-width: 340px; color: var(--ink-soft); font-size: 16px; margin: 0 0 6px; }

/* ---------- Look panel ---------- */

.chart-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-3);
  padding: var(--sp-4); box-shadow: var(--shadow-2);
}
.chart-top h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.look-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-top: var(--sp-3); }
.look-grid > div { border-top: 1px solid var(--line); padding-top: var(--sp-2); }
.look-bar { display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--teal); margin-bottom: var(--sp-2); }
.look-grid h4 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 var(--sp-1); }
.look-grid p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ---------- Cards ---------- */

.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-top: var(--sp-5); }
.pain-grid article {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-2);
  padding: var(--sp-4); box-shadow: var(--shadow-1);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pain-grid article:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.card-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-1);
  background: var(--sand-soft); color: var(--teal); font-family: var(--font-head); font-weight: 700; font-size: 15px;
}
.pain-grid h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: var(--sp-3) 0 var(--sp-1); }
.pain-grid p { font-size: 16px; color: var(--ink-soft); margin: 0; }

/* ---------- Trust / services ---------- */

.trust-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: var(--sp-6); align-items: start; padding: var(--sp-3) 0 var(--sp-6); }
.trust-lead { color: var(--ink-soft); font-size: 18px; max-width: 440px; margin: var(--sp-3) 0 0; }

.service-list { display: grid; gap: var(--sp-2); }
.service {
  display: grid; grid-template-columns: 48px 1fr 24px; gap: var(--sp-2); align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-2);
  padding: var(--sp-3); box-shadow: var(--shadow-1);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.service > span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-1); background: var(--teal); color: var(--sand);
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
}
.service h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 6px; }
.service p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.service b { color: var(--teal); font-weight: 600; font-size: 20px; }

.trust-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-3);
  background: var(--sand-soft); border: 1px solid rgba(216, 195, 160, .9); border-radius: var(--r-pill);
  padding: var(--sp-2) var(--sp-4);
  font-size: 14px; font-weight: 600; color: var(--teal-deep);
}
.trust-label { color: var(--ink-soft); font-weight: 500; }
.trust-bar i { color: var(--teal); font-style: normal; margin: 0 4px; }

/* ---------- Testimonials ---------- */

.testimonial-carousel-wrap { position: relative; }
.testimonial-carousel {
  display: flex; gap: var(--sp-3); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: var(--sp-1) 4px var(--sp-3); margin: 0 -4px;
  scrollbar-width: thin; scrollbar-color: var(--teal) rgba(29, 38, 36, .1);
}
.testimonial-card {
  flex: 0 0 min(820px, calc(100% - 56px)); min-width: 0; scroll-snap-align: start;
  display: grid; grid-template-columns: minmax(260px, .95fr) 1fr;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-3);
  overflow: hidden; box-shadow: var(--shadow-2);
  transition: box-shadow .3s var(--ease);
}
.testimonial-card:hover { box-shadow: var(--shadow-3); }

.testimonial-media {
  display: flex; min-height: 320px;
  background:
    radial-gradient(circle at 30% 20%, rgba(216, 195, 160, .18), transparent 60%),
    linear-gradient(160deg, var(--teal) 0%, var(--teal-deep) 100%);
}
.testimonial-media video { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; background: transparent; }

.testimonial-body { padding: var(--sp-4); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.client-logo {
  display: block; height: 40px; width: auto; max-width: 160px; object-fit: contain;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-1);
  padding: 4px 10px; margin-bottom: var(--sp-3);
}
.review-label { color: var(--teal); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 var(--sp-2); }
.testimonial-quote { font-family: var(--font-head); font-size: 22px; line-height: 1.35; letter-spacing: -.015em; font-weight: 600; margin: 0; color: var(--ink); }
.testimonial-name { margin: var(--sp-3) 0 0; font-weight: 700; font-size: 15px; color: var(--teal); }
.testimonial-name span { color: var(--ink-soft); font-weight: 500; }

.carousel-control {
  position: absolute; top: 46%; z-index: 2; width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--white); color: var(--teal); font-size: 20px; line-height: 1;
  box-shadow: var(--shadow-2); cursor: pointer; transform: translateY(-50%);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.carousel-control:hover { background: var(--teal); color: var(--cream); transform: translateY(-50%) scale(1.06); }
.carousel-prev { left: -24px; }
.carousel-next { right: -24px; }

.carousel-status { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-1); color: var(--ink-soft); font-size: 14px; }
.carousel-count { font-family: var(--font-head); font-weight: 700; color: var(--teal); font-size: 18px; }
.carousel-status-line { width: 48px; height: 1.5px; background: var(--sand); }

/* ---------- CTA / form (dark) ---------- */

.cta-frame {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: start;
}
.cta-section .eyebrow { background: rgba(250, 247, 240, .08); border-color: rgba(216, 195, 160, .35); color: var(--sand); }
.cta-section .pulse { background: var(--sand); box-shadow: 0 0 0 4px rgba(216, 195, 160, .2); }
.cta-copy h2 { margin-top: var(--sp-3); color: var(--cream); }
.cta-copy h2 em { color: var(--sand); background: none; padding: 0; }
.cta-copy p { max-width: 440px; color: rgba(250, 247, 240, .78); font-size: 18px; margin: var(--sp-3) 0 0; }
.cta-copy .performance-note { color: var(--sand); font-family: var(--font-head); font-weight: 700; font-size: 20px; margin-top: var(--sp-3); }

.contact-form {
  display: flex; flex-direction: column;
  background: var(--cream); color: var(--ink); border-radius: var(--r-3);
  padding: var(--sp-4); box-shadow: var(--shadow-3);
}
.contact-form label { font-size: 14px; font-weight: 600; margin: var(--sp-2) 0 6px; }
.contact-form label:first-child { margin-top: 0; }
.contact-form input, .contact-form textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line-strong); border-radius: var(--r-1);
  padding: 12px 14px; resize: vertical;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.contact-form input:hover, .contact-form textarea:hover { border-color: rgba(31, 78, 74, .5); }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(31, 78, 74, .18);
}
.contact-form textarea::placeholder { color: #8a948f; }
.contact-form .button { align-self: flex-start; margin-top: var(--sp-3); }
.contact-form small { margin-top: var(--sp-2); font-size: 14px; color: var(--ink-soft); }
.contact-form small a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.form-status { margin: var(--sp-2) 0 0; font-size: 15px; font-weight: 500; color: var(--teal); }
.form-status:empty { display: none; }
.cta-frame > .form-status, .cta-section > .form-status { color: var(--sand); }

/* ---------- Footer ---------- */

.site-footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-2);
  padding-top: var(--sp-4); padding-bottom: var(--sp-4);
  border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14px;
}

/* ---------- Tablet ---------- */

@media (max-width: 960px) {
  .hero { padding-top: var(--sp-5); }
  .hero-grid, .trust-layout, .cta-frame { grid-template-columns: 1fr; gap: var(--sp-5); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .section-heading, .voices-heading { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
  .pain-grid { grid-template-columns: 1fr; }
  .testimonial-card { grid-template-columns: 1fr; flex-basis: calc(100% - 8px); }
  .testimonial-media, .testimonial-media video { min-height: 240px; max-height: 340px; }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
  .carousel-control { top: 150px; }
  .trust-bar { border-radius: var(--r-2); }
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  .shell { padding-left: var(--sp-3); padding-right: var(--sp-3); }
  .chart-section, .trust-section, .voices-section, .cta-section { padding-top: var(--sp-6); padding-bottom: var(--sp-6); }
  .hero { padding-bottom: var(--sp-6); }

  .site-header { height: 68px; padding: 0 var(--sp-3); }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(250, 247, 240, .98); border-bottom: 1px solid var(--line);
    padding: var(--sp-2) var(--sp-3) var(--sp-3); box-shadow: var(--shadow-2);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { justify-content: center; margin-top: var(--sp-2); border-bottom: 0; padding: 14px 20px; }

  .hero-intro { font-size: 17px; }
  .hero-aside, .chart-card, .contact-form { padding: var(--sp-3); }
  .stat-strip { grid-template-columns: 1fr; margin-top: var(--sp-5); }
  .look-grid { grid-template-columns: 1fr; }
  .trust-bar { padding: var(--sp-2) var(--sp-3); justify-content: flex-start; }
  .testimonial-body { padding: var(--sp-3); }
  .testimonial-quote { font-size: 19px; }
  .carousel-control { width: 42px; height: 42px; top: 120px; }
  .carousel-prev { left: 6px; }
  .carousel-next { right: 6px; }
  .contact-form .button { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
