/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Page body: white/off-white dominant */
  --bg: #F5F5F0;
  --bg-raised: #ECECE3;
  --bg-raised-2: #E1E1D6;
  --surface: #FFFFFF;

  /* Structural dark (header, footer, headings, body text) */
  --text: #1F2523;
  --text-muted: #565F5A;
  --border: rgba(31, 37, 35, 0.12);

  /* Text/borders sitting on the dark header & footer bars */
  --on-dark: #F5F5F0;
  --on-dark-muted: rgba(245, 245, 240, 0.72);
  --border-on-dark: rgba(245, 245, 240, 0.14);

  /* Accent */
  --accent: #0F8A62;
  --accent-light: #2FB183;
  --accent-strong: #0B6E4E;

  --serif: "Cormorant Garamond", "Garamond", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 96px;
  --container: 1180px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--bg); }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--text); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 1rem;
}

.section {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-lede {
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 42rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  transition: transform .35s var(--ease-out), background .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.btn-primary {
  background: var(--accent);
  color: #08140F;
  box-shadow: 0 8px 24px -8px rgba(15, 138, 98, .55);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(15, 138, 98, .65);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}
.btn-sm { padding: .65rem 1.15rem; font-size: .875rem; }

/* =============================================================
   5. Header / nav
   ============================================================= */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(245, 245, 240, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: #F5F5F0; }
}
.site-header.is-scrolled {
  background: rgba(245, 245, 240, 0.98);
  border-bottom-color: var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; }
.brand img, .brand svg { height: 64px; width: auto; }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-links a { transition: color .25s var(--ease-out); }
.nav-links a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-actions .btn-primary { display: none; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .header-actions .btn-primary { display: inline-flex; }
}

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(3rem, 9vw, 6rem));
  padding-bottom: clamp(4rem, 10vw, 7rem);
  overflow: clip;
}
.hero-nodes {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .5;
  pointer-events: none;
}
.hero-nodes svg { width: 100%; height: 100%; }
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 68rem;
}
.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-wrap: pretty;
  max-width: 30ch;
}
.hero-title-pill {
  display: inline;
  background: var(--accent);
  color: #FFFFFF;
  padding: 0.14em 0.35em 0.22em;
  border-radius: 0.9em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero-sub {
  margin-top: 1.5rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: var(--text-muted);
  max-width: 40rem;
}
.hero-note {
  margin-top: 1.25rem;
  font-size: .9375rem;
  color: var(--accent-strong);
  font-weight: 600;
}
.hero-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* =============================================================
   7. Problem section
   ============================================================= */
.problem-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .problem-grid { grid-template-columns: repeat(3, 1fr); }
}
.problem-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem;
  transition: transform .4s var(--ease-out), border-color .4s var(--ease-out);
}
.problem-card:hover { transform: translateY(-4px); border-color: rgba(15,138,98,.4); }
.problem-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(15, 138, 98, .14);
  color: var(--accent-strong);
  margin-bottom: 1.25rem;
}
.problem-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: .6rem;
}
.problem-card p {
  color: var(--text-muted);
  font-size: .9375rem;
}

/* =============================================================
   8. Method section
   ============================================================= */
.method-steps {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 720px) {
  .method-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}
.method-step { position: relative; padding-top: .5rem; }
.method-step::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 70%);
}
@media (min-width: 720px) {
  .method-step:not(:first-child)::before { display: block; }
}
.method-number {
  font-family: var(--serif);
  font-size: 2.75rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}
.method-step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: .6rem;
}
.method-step p {
  color: var(--text-muted);
  font-size: .9375rem;
}

.transparency {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  padding-top: clamp(2.5rem, 6vw, 3.5rem);
  border-top: 1px solid var(--border);
}
.transparency-head {
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  text-align: center;
}
.transparency-head .eyebrow { margin-bottom: .75rem; }
.transparency-title {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.transparency-lede {
  margin-top: .85rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
}
.transparency-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .transparency-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .transparency-grid { grid-template-columns: repeat(4, 1fr); }
}
.transparency-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
}
.transparency-number {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .75rem;
}
.transparency-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.transparency-card p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.transparency-card code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .875em;
  background: var(--surface);
  padding: .1em .4em;
  border-radius: 5px;
}

/* =============================================================
   9. Case study
   ============================================================= */
.case {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(1.75rem, 5vw, 3.25rem);
}
.case-badge {
  display: inline-flex;
  align-items: center;
  padding: .85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 1.75rem;
}
.case-badge img { height: 42px; width: auto; }
.case-kicker {
  color: var(--accent-strong);
  font-weight: 600;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.case-heading {
  margin-top: .6rem;
  font-size: clamp(1.4rem, 3vw, 1.875rem);
  font-weight: 700;
  max-width: 34ch;
}
.case-columns {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .case-columns { grid-template-columns: repeat(3, 1fr); }
}
.case-col h4 {
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--accent-strong);
  margin-bottom: .75rem;
}
.case-col p {
  color: var(--text-muted);
  font-size: .9375rem;
}

/* =============================================================
   10. Contact
   ============================================================= */
.contact-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
}
.contact-copy .section-title { margin-bottom: 1rem; }
.contact-email {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  color: var(--accent-strong);
  font-size: 1rem;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease-out);
}
.contact-email:hover { border-color: currentColor; }

.form-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) {
  .form-row.two-col { grid-template-columns: 1fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: .45rem; margin-top: 1.1rem; }
.form-row.two-col .field { margin-top: 0; }
.field:first-child { margin-top: 0; }
.field label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-muted);
}
.field input, .field textarea {
  width: 100%;
  padding: .8rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: .9375rem;
  transition: border-color .25s var(--ease-out);
}
.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.form-submit { margin-top: 1.5rem; width: 100%; }
.form-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-status {
  margin-top: .9rem;
  font-size: .875rem;
  color: var(--text-muted);
}
.form-status[data-state="ok"] { color: var(--accent-strong); }
.form-status[data-state="error"] { color: #E7A98C; }

/* =============================================================
   11. FAQ
   ============================================================= */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-weight: 600;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex: none;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-strong);
  transition: transform .3s var(--ease-out);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  padding: 0 1.35rem 1.35rem;
  color: var(--text-muted);
  font-size: .9375rem;
}

/* =============================================================
   13. Footer
   ============================================================= */
.site-footer {
  background: #1F2523;
  color: var(--on-dark);
  border-top: 1px solid var(--border-on-dark);
  padding-block: 2.5rem;
  padding-bottom: calc(2.5rem + 64px);
}
@media (min-width: 720px) {
  .site-footer { padding-bottom: 2.5rem; }
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}
@media (min-width: 720px) {
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-brand { display: flex; align-items: center; gap: .75rem; }
.footer-brand img { height: 24px; width: auto; }
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent-light);
  font-size: 1rem;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  font-size: .875rem;
  color: var(--on-dark-muted);
}
.footer-meta a:hover { color: var(--on-dark); }

/* =============================================================
   14. Mobile sticky CTA bar
   ============================================================= */
.mobile-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 90;
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(24, 29, 27, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-on-dark);
}
.mobile-cta .btn { width: 100%; }
@media (min-width: 720px) {
  .mobile-cta { display: none; }
}

/* =============================================================
   15. Responsive extras
   ============================================================= */
@media (min-width: 1280px) {
  .hero-title { max-width: 34ch; }
}
