/* ============================================================
   TEN TIMES BETTER — Design System
   Brand carried forward: sage / forest / cream,
   Cormorant Garamond (display) + DM Sans (UI/body).
   Refresh: editorial rhythm, generous whitespace,
   hairline detailing, restrained motion.
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Color — forest */
  --forest-900: #0D130C;
  --forest-800: #141A13;
  --forest-700: #1C271A;

  /* Color — sage */
  --sage-700:   #3C5532;
  --sage-600:   #4D6B42;
  --sage-500:   #8FA882;
  --sage-300:   #C4D6BB;
  --sage-100:   #EDF2E9;

  /* Color — neutral / paper */
  --cream:      #FAFCF9;
  --cream-2:    #F2F5EF;
  --line:       #E4EAE2;
  --line-soft:  #EDF0EB;
  --ink:        #1A221A;
  --muted:      #6B7269;

  /* Type */
  --display: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  /* Radii */
  --r-pill: 999px;
  --r-card: 4px;

  /* Rhythm */
  --pad-x: clamp(24px, 6vw, 88px);
  --section-y: clamp(96px, 13vw, 168px);
  --maxw: 1240px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--sage-500); color: var(--cream); }

/* ---------- TYPE PRIMITIVES ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-600);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--sage-500);
  flex-shrink: 0;
}
.eyebrow.is-centered { justify-content: center; }
.eyebrow.is-centered::before { display: none; }

.display {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.display em { font-style: italic; color: var(--sage-600); }

h1, h2, h3 { font-weight: 600; }

.section-title {
  font-family: var(--display);
  font-size: clamp(34px, 4.8vw, 60px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-title em { font-style: italic; color: var(--sage-600); }

.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.75;
  color: var(--muted);
  font-weight: 400;
}

.measure { max-width: 60ch; }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
section { position: relative; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--r-pill);
  padding: 16px 32px;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease),
              box-shadow .3s var(--ease);
}
.btn-primary {
  background: var(--sage-600);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--sage-700);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(60,85,50,0.55);
}
.btn-primary .btn-arrow { transition: transform .3s var(--ease); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--sage-500); color: var(--sage-700); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 500;
  color: var(--sage-700);
  text-decoration: none;
  position: relative;
}
.link-arrow .btn-arrow { transition: transform .3s var(--ease); }
.link-arrow:hover .btn-arrow { transform: translateX(5px); }
.link-arrow::after {
  content: '';
  position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: var(--sage-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.link-arrow:hover::after { transform: scaleX(1); }

/* On dark backgrounds */
.on-dark .btn-ghost { color: var(--cream); border-color: rgba(255,255,255,0.22); }
.on-dark .btn-ghost:hover { border-color: var(--sage-300); color: var(--sage-300); }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad-x);
  transition: background .4s var(--ease), border-color .4s var(--ease),
              padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(250,252,249,0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav-logo {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
  transition: color .4s var(--ease);
}
.nav-logo em { font-style: normal; color: var(--sage-300); transition: color .4s var(--ease); }
.nav.is-solid .nav-logo { color: var(--ink); }
.nav.is-solid .nav-logo em { color: var(--sage-600); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  color: rgba(255,255,255,0.78);
  position: relative;
  transition: color .3s var(--ease);
}
.nav-links a:not(.nav-cta) {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav.is-solid .nav-links a { color: var(--muted); }
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width .35s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-links a:not(.nav-cta):hover { color: var(--cream); }
.nav.is-solid .nav-links a:not(.nav-cta):hover { color: var(--ink); }
.nav-links a:not(.nav-cta).active { color: var(--sage-300); }
.nav-links a:not(.nav-cta).active::after { width: 100%; }
.nav.is-solid .nav-links a:not(.nav-cta).active { color: var(--sage-600); }

.nav-cta {
  padding: 10px 22px;
  border-radius: var(--r-pill);
  background: var(--sage-500);
  color: var(--cream) !important;
  font-weight: 500;
  white-space: nowrap;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--sage-600); transform: translateY(-1px); }
.nav.is-solid .nav-cta { background: var(--sage-600); }
.nav.is-solid .nav-cta:hover { background: var(--sage-700); }

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 210;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease), background .4s var(--ease);
}
.nav.is-solid .nav-burger span { background: var(--ink); }
.nav-burger.open span { background: var(--ink); }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--forest-800);
}
.hero-photo {
  position: absolute;
  inset: -3%;
  will-change: transform;
}
.hero-photo-zoom {
  position: absolute;
  inset: 0;
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center 42%;
  transform: scale(1.04);
  animation: kenburns 42s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.04) translate3d(0,0,0); }
  to   { transform: scale(1.10) translate3d(-1.1%, -1.3%, 0); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(13,19,12,0.88) 0%,
      rgba(13,19,12,0.64) 38%,
      rgba(13,19,12,0.30) 68%,
      rgba(13,19,12,0.46) 100%),
    linear-gradient(to top,
      rgba(13,19,12,0.62) 0%,
      transparent 34%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 3;
  padding-top: 120px;
  padding-bottom: 96px;
}
.hero-inner { max-width: 820px; }
.hero-inner .eyebrow { color: var(--sage-300); }
.hero-inner .eyebrow::before { background: var(--sage-300); }

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(42px, 5.4vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin: 26px 0 0;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--sage-300); }

.hero-sub {
  margin-top: 32px;
  max-width: 510px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  font-weight: 400;
}
.hero-actions { margin-top: 40px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.hero-meta {
  margin-top: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--display);
  font-style: italic;
  font-size: 17px;
  color: rgba(255,255,255,0.68);
}
.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--sage-300); flex-shrink: 0; }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: var(--pad-x);
  bottom: 38px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.scroll-cue-line {
  width: 46px; height: 1px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--sage-300);
  animation: cue 2.6s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(280%); }
}

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-photo { animation: none; }
  .scroll-cue-line::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- DS DEMO PAGE ONLY ---------- */
.ds-wrap { max-width: 1100px; margin: 0 auto; padding: 80px var(--pad-x) 120px; }
.ds-h { font-family: var(--display); font-size: 40px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
.ds-sub { color: var(--muted); margin-bottom: 56px; }
.ds-block { margin-bottom: 72px; }
.ds-label { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage-600); margin-bottom: 24px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.swatch { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.swatch-chip { height: 84px; }
.swatch-meta { padding: 12px 14px; font-size: 13px; }
.swatch-meta strong { display: block; font-weight: 600; }
.swatch-meta span { color: var(--muted); font-variant-numeric: tabular-nums; }
.type-row { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.type-row small { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.btn-demo { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

/* ============================================================
   SECTION COMPONENTS
   ============================================================ */

/* ---------- SECTION HEADER ---------- */
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-head { max-width: 760px; }
.section-head .section-title { margin-top: 22px; }
.section-head .lead { margin-top: 22px; }
.section-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.is-center .eyebrow { justify-content: center; }
.section-head.is-center .eyebrow::before { display: none; }

/* ---------- WHAT I DO / PILLARS ---------- */
.pillars {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.pillar {
  padding: 44px 40px 48px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background .4s var(--ease);
}
.pillar:last-child { border-right: none; }
.pillar:hover { background: var(--cream-2); }
.pillar-num {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: 17px;
  color: var(--sage-600);
  margin-bottom: 24px;
}
.pillar-icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sage-100);
  color: var(--sage-700);
  font-size: 23px;
  margin-bottom: 26px;
}
.pillar h3 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.pillar p { color: var(--muted); font-size: 15.5px; line-height: 1.7; }

/* ---------- ABOUT ---------- */
.about { background: linear-gradient(rgba(20,26,19,0.86), rgba(13,19,12,0.92)), url('aboutbg.jpg') center / cover no-repeat; color: var(--cream); overflow: hidden; }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.about-photo-wrap {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
}
.about-photo-wrap img { display: block; width: 100%; object-fit: cover; aspect-ratio: 4/5; }
.about-photo-frame {
  position: absolute; inset: 14px;
  border: 1px solid rgba(196,214,187,0.35);
  border-radius: 3px;
  pointer-events: none;
}
.about .eyebrow { color: var(--sage-300); }
.about .eyebrow::before { background: var(--sage-300); }
.about h2 {
  font-family: var(--display);
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 22px 0 28px;
}
.about h2 em { font-style: italic; color: var(--sage-300); }
.about-body p {
  color: rgba(255,255,255,0.82);
  font-size: 16.5px;
  line-height: 1.8;
  margin-bottom: 18px;
  max-width: 56ch;
}
.about-body p:first-of-type { margin-top: 26px; }
.about-body p.about-sig {
  font-family: var(--display);
  font-style: italic;
  font-size: 21px;
  color: var(--sage-300);
}
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.about-tag {
  font-size: 12.5px;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border: 1px solid rgba(196,214,187,0.3);
  border-radius: var(--r-pill);
  color: var(--sage-300);
}

/* ---------- HOW IT WORKS ---------- */


/* ---------- SERVICES & PRICING ---------- */
.services { background: var(--cream-2); }
.svc-cards {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.svc-cards-3 { grid-template-columns: repeat(3, 1fr); }
.svc-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -30px rgba(28,39,26,0.4);
  border-color: var(--sage-300);
}
.svc-card-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
  color: var(--sage-600);
}
.svc-card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--sage-100);
  color: var(--sage-700);
  font-size: 25px;
  margin: 18px 0 22px;
}
.svc-card h3 { font-family: var(--display); font-size: 30px; font-weight: 600; margin-bottom: 12px; }
.svc-card > p { color: var(--muted); font-size: 15.5px; line-height: 1.7; flex: 1; }
.svc-card-price {
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px; font-weight: 500; color: var(--ink);
}
.svc-card-price strong { color: var(--sage-700); }

/* What can AI do — capability panels */
.capabilities { background: var(--cream-2); }
.cap-grid {
  margin-top: clamp(36px, 5vw, 60px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.cap-card {
  flex: 0 1 calc(25% - 15px);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.cap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -30px rgba(28,39,26,0.4);
  border-color: var(--sage-300);
}
.cap-icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--sage-100);
  color: var(--sage-700);
  font-size: 22px;
  margin-bottom: 18px;
}
.cap-card h3 { font-family: var(--display); font-size: 24px; font-weight: 600; margin-bottom: 14px; }
.cap-list { list-style: none; margin: 0 0 16px; padding: 0; flex: 1; }
.cap-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 9px;
}
.cap-list li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--sage-500);
}
.cap-more {
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  color: var(--sage-600);
  margin-top: auto;
  padding-top: 2px;
}

/* audit includes strip */
.audit-includes {
  margin-top: 24px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 36px 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: start;
}
.audit-includes h4 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sage-600);
}
.includes-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 36px;
}
.includes-list li {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 15px; color: var(--ink);
}
.includes-list li i { color: var(--sage-600); font-size: 17px; margin-top: 2px; flex-shrink: 0; }

/* tiers */
.tiers-head { margin-top: clamp(56px, 8vw, 96px); }
.tiers {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.tier {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
}
.tier-featured {
  background: var(--sage-100);
  border-color: var(--sage-300);
  box-shadow: 0 6px 24px rgba(60,85,50,0.06);
  position: relative;
}
.tier-flag {
  position: absolute; top: -11px; left: 32px;
  background: var(--sage-500); color: var(--cream);
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 14px; border-radius: var(--r-pill);
}
.tier h3 { font-family: var(--display); font-size: 26px; font-weight: 600; }
.tier-price { font-family: var(--display); font-size: 42px; font-weight: 600; letter-spacing: -0.02em; margin: 6px 0 4px; }
.tier-featured .tier-price { color: var(--ink); }
.tier-tagline { font-size: 14.5px; color: var(--muted); line-height: 1.6; min-height: 62px; }
.tier-featured .tier-tagline { color: var(--muted); }
.tier-list {
  list-style: none;
  margin: 24px 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.tier-featured .tier-list { border-top-color: var(--sage-300); }
.tier-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.55; }
.tier-list li i { color: var(--sage-600); font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.tier-featured .tier-list li i { color: var(--sage-600); }
.tier .btn { width: 100%; justify-content: center; }
.tier-note {
  margin-top: 32px; text-align: center;
}
.tier-note p {
  font-family: var(--display); font-style: italic; font-size: 19px;
  color: var(--muted); max-width: 60ch; margin: 0 auto;
}

/* ---------- FAQ ---------- */
.faq-grid {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 4px;
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: left;
  transition: color .3s var(--ease);
}
.faq-q:hover { color: var(--sage-700); }
.faq-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  position: relative;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .4s var(--ease);
}
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute;
  background: var(--sage-700);
  transition: opacity .3s var(--ease), background .3s var(--ease);
}
.faq-icon::before { width: 12px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 12px; }
.faq-item.open .faq-icon { background: var(--sage-600); border-color: var(--sage-600); transform: rotate(180deg); }
.faq-item.open .faq-icon::before { background: var(--cream); }
.faq-item.open .faq-icon::after { opacity: 0; }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .5s var(--ease); }
.faq-a-inner { padding: 0 4px 28px; }
.faq-a p { color: var(--muted); font-size: 16px; line-height: 1.75; margin-bottom: 14px; max-width: 60ch; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a strong { color: var(--ink); font-weight: 600; }

/* ---------- CONTACT ---------- */
.contact { background: var(--forest-900); color: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.contact .eyebrow { color: var(--sage-300); }
.contact .eyebrow::before { background: var(--sage-300); }
.contact h2 {
  font-family: var(--display);
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 22px 0 22px;
}
.contact h2 em { font-style: italic; color: var(--sage-300); display: block; }
.contact-sub { color: rgba(255,255,255,0.78); font-size: 17px; line-height: 1.75; max-width: 46ch; }
.contact-note {
  margin-top: 32px;
  font-family: var(--display); font-style: italic; font-size: 17px;
  color: rgba(255,255,255,0.6); line-height: 1.7;
}
.contact-note span { color: var(--sage-500); margin: 0 6px; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-status {
  background: rgba(143,168,130,0.15);
  border: 1px solid rgba(143,168,130,0.4);
  border-radius: 6px;
  padding: 15px 18px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--sage-300);
}
.form-status-error {
  background: rgba(200,80,80,0.12);
  border-color: rgba(200,80,80,0.4);
  color: #f0a0a0;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 5px;
  padding: 16px 16px 16px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--cream);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: transparent; }
.field label {
  position: absolute; left: 16px; top: 16px;
  font-size: 15px; color: rgba(255,255,255,0.5);
  pointer-events: none;
  transition: transform .25s var(--ease), font-size .25s var(--ease), color .25s var(--ease);
  background: var(--forest-900);
  padding: 0 6px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sage-500); background: rgba(255,255,255,0.07); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-26px); font-size: 12px; color: var(--sage-300);
}
.form-submit {
  align-self: flex-start;
  margin-top: 4px;
  background: var(--sage-500);
  color: var(--cream);
  border: none;
  border-radius: var(--r-pill);
  padding: 16px 38px;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  cursor: pointer;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.form-submit:hover { background: var(--sage-600); transform: translateY(-2px); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--forest-900);
  color: rgba(255,255,255,0.6);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 44px var(--pad-x);
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo { font-family: var(--display); font-size: 21px; font-weight: 600; color: var(--cream); }
.footer-logo em { font-style: normal; color: var(--sage-300); }
.footer-links { display: flex; gap: 26px; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 14px; text-decoration: none; color: rgba(255,255,255,0.6); transition: color .3s var(--ease); }
.footer-links a:hover { color: var(--cream); }
.footer-copy { font-size: 13px; }

/* ---------- BACK TO TOP ---------- */
.back-top {
  position: fixed; right: 28px; bottom: 28px; z-index: 150;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--sage-600); color: var(--cream);
  border: none; cursor: pointer;
  display: grid; place-items: center;
  font-size: 18px;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s var(--ease);
}
.back-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { background: var(--sage-700); }

/* ---------- MOBILE MENU PANEL ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 205;
  background: var(--forest-900);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad-x);
  gap: 8px;
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 600;
  color: var(--cream);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu a em { font-style: italic; color: var(--sage-300); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: none; }
  .svc-cards { grid-template-columns: 1fr; }
  .svc-cards-3 { grid-template-columns: 1fr; }
  .cap-card { flex-basis: 100%; }
  .tiers { grid-template-columns: 1fr; }
  .audit-includes { grid-template-columns: 1fr; gap: 22px; }
  .includes-list { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 620px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { max-width: 360px; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .hero-meta { flex-wrap: wrap; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}


/* SECTION BACKGROUND SYSTEM — paper grain + topographic signature */
.capabilities, #work, #services, #faq, .contact { position: relative; isolation: isolate; }
.capabilities > .container, #work > .container, #services > .container,
#faq > .container, .contact > .container { position: relative; z-index: 2; }
.capabilities::before, #work::before, #services::before, #faq::before {
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); opacity:0.07; mix-blend-mode:multiply;
}
.capabilities::after, #work::after, #services::after, #faq::after, .contact::after {
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background-repeat:no-repeat;
}
.capabilities::after { background-image:url("contours.svg"); background-position:right center; background-size:62% auto; opacity:0.85; }
#work::after        { background-image:url("contours.svg"); background-position:right center; background-size:58% auto; opacity:0.55; transform:scaleX(-1); }
#services::after    { background-image:url("contours.svg"); background-position:right top;    background-size:46% auto; opacity:0.40; }
#faq::after         { background-image:url("contours.svg"); background-position:right bottom; background-size:52% auto; opacity:0.50; transform:scaleX(-1); }
.contact::after     { background-image:url("contours.svg"); background-position:right center; background-size:55% auto; opacity:0.45; }
