/* =========================================================
   eCloud Experts — Multi-Entity Xero Bookkeeping
   Design tokens
   ========================================================= */
:root{
  /* Colour */
  --ink:          #10241E;   /* ledger cover — near-black forest */
  --ink-soft:     #1B342C;
  --ink-softer:   #203D33;
  --emerald:      #1F5C4C;   /* primary brand */
  --emerald-deep: #123B30;
  --emerald-tint: color-mix(in srgb, var(--emerald) 14%, white);
  --brass:        #B08D4F;   /* reconciliation / stamp accent */
  --brass-light:  #D9BC85;
  --brass-tint:   color-mix(in srgb, var(--brass) 20%, white);
  --brass-text:   color-mix(in srgb, var(--brass) 62%, black);
  --paper:        #EEF0E6;   /* page background */
  --paper-raised: #F7F8F2;   /* card surfaces */
  --line:         #D9D7C6;
  --text:         #1C2622;
  --text-muted:   #57655D;
  --text-on-ink:  #EDEFE6;
  --text-on-ink-muted: #A9B8AF;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  /* Scale */
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 22px;
  --radius-xl: 28px;
  --shadow-card: 0 1px 2px rgba(16,36,30,0.06), 0 12px 28px -18px rgba(16,36,30,0.35);
  --shadow-lift: 0 20px 45px -20px rgba(16,36,30,0.45);
  --shadow-deep: 0 30px 70px -30px rgba(16,36,30,0.55);
  --max-width: 1180px;
  --section-pad: clamp(4rem, 8vw, 7.5rem);
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
body{
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd{ margin: 0; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, select, textarea{ font: inherit; }
svg{ display: block; }

:focus-visible{
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--text-on-ink);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus{ left: 0; }

.wrap{
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
}

/* =========================================================
   Type helpers
   ========================================================= */
h1, h2, h3{ font-family: var(--font-display); font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
h1{ font-size: clamp(2.6rem, 5vw, 4.1rem); line-height: 1.04; }
h1 em{ font-style: italic; color: var(--emerald); }
h2{ font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.12; }
h3{ font-size: 1.25rem; line-height: 1.3; }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
  margin: 0 0 0.9rem;
}
.section-lead{
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 46ch;
  margin-top: 1rem;
}
.section-head{ max-width: 70ch; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }

/* =========================================================
   Icon badges (shared visual language across sections)
   ========================================================= */
.icon-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-m);
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}
.icon-badge svg{
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Elementor's icon picker renders font-icon <i> tags (Font Awesome / eicons)
   rather than raw <svg> — size and center those the same way. */
.icon-badge i{ font-size: 20px; line-height: 1; }
.icon-badge svg:not([viewBox]){ width: 20px; height: 20px; } /* Elementor SVG-library icons */
.icon-badge--emerald{ background: var(--emerald-tint); color: var(--emerald); }
.icon-badge--brass{ background: var(--brass-tint); color: var(--brass-text); }
.icon-badge--on-ink{ background: rgba(237,239,230,0.14); color: var(--brass-light); }
.icon-badge--outline{
  background: rgba(237,239,230,0.08);
  color: var(--brass-light);
  border: 1px solid rgba(237,239,230,0.18);
}
.icon-badge--sm{ width: 40px; height: 40px; margin-bottom: 0.8rem; }
.icon-badge--sm svg{ width: 20px; height: 20px; }
.icon-badge--sm i{ font-size: 17px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--brass);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover{ background: var(--brass-light); transform: translateY(-1px); }
.btn-ghost{
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover{ border-color: var(--emerald); color: var(--emerald); }
.btn-block{ width: 100%; }

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(238,240,230,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.site-header.is-scrolled{
  border-bottom-color: var(--line);
  background: rgba(238,240,230,0.97);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.05rem;
}
.brand{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
}
.brand-mark{ color: var(--emerald); display: inline-flex; }
.brand-text{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.main-nav ul{ display: flex; gap: 2rem; }
.main-nav a{
  font-size: 0.94rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.main-nav a:hover{ color: var(--ink); }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}
.nav-toggle span{
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position: relative;
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.hero-backdrop{
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(600px 420px at 82% 8%, rgba(31,92,76,0.14), transparent 60%),
    radial-gradient(520px 420px at 8% 90%, rgba(176,141,79,0.16), transparent 60%),
    radial-gradient(circle, rgba(28,38,34,0.05) 1px, transparent 1.3px);
  background-size: auto, auto, 26px 26px;
}
.hero-inner{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
.hero-lead{
  margin-top: 1.4rem;
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 52ch;
}
.hero-actions{ display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.1rem; }

.hero-stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.hero-stats dt{
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--emerald);
  font-size: 1.35rem;
}
.hero-stats dd{
  margin-top: 0.35rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ---- Ledger reconciliation visual (signature element) ---- */
.hero-visual{ position: relative; }
.ledger-board{
  position: relative;
  min-height: 380px;
}
.ledger-card{
  position: absolute;
  width: 208px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  padding: 0.9rem 1rem 1.05rem;
  opacity: 0;
  transform: translateY(14px);
  animation: cardIn 0.7s ease forwards;
}
.ledger-card[data-entity="A"]{ top: 0; left: 0; animation-delay: 0.05s; }
.ledger-card[data-entity="B"]{ bottom: 0; left: 6%; animation-delay: 0.2s; }
.ledger-card[data-entity="C"]{ top: 8%; right: 0; animation-delay: 0.35s; }

.ledger-card-head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 0.55rem;
  margin-bottom: 0.55rem;
  border-bottom: 1px dashed var(--line);
}
.ledger-card-head span{ color: var(--brass); }
.ledger-rows li{
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.76rem;
  padding-block: 0.28rem;
  color: var(--text-muted);
}
.ledger-rows b{
  font-family: var(--font-mono);
  color: var(--ink);
  font-weight: 500;
}

.ledger-links{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ledger-links .link{
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.4;
  stroke-dasharray: 4 6;
  opacity: 0.55;
  stroke-dashoffset: 240;
  animation: drawLink 1.6s ease forwards;
  animation-delay: 0.6s;
}

.ledger-stamp{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--emerald);
  opacity: 0;
  animation: stampIn 0.5s ease forwards;
  animation-delay: 1.9s;
}
.stamp-ring{ width: 78px; height: 78px; display: block; }
.stamp-ring svg{ width: 100%; height: 100%; }
.stamp-ring circle{
  fill: none;
  stroke: var(--emerald);
  stroke-width: 3;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: ringDraw 0.6s ease forwards;
  animation-delay: 1.9s;
}
.stamp-check{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  width: 30px; height: 30px;
}
.stamp-label{
  position: absolute;
  top: calc(50% + 46px);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--emerald);
}

@keyframes cardIn{ to{ opacity: 1; transform: translateY(0); } }
@keyframes drawLink{ to{ stroke-dashoffset: 0; } }
@keyframes stampIn{ to{ opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes ringDraw{ to{ stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce){
  .ledger-card, .ledger-links .link, .ledger-stamp, .stamp-ring circle{
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
  .ledger-stamp{ transform: translate(-50%, -50%) !important; }
}

/* =========================================================
   Trust strip
   ========================================================= */
.trust-strip{
  background: var(--ink);
  color: var(--text-on-ink-muted);
  overflow: hidden;
}
.trust-strip-inner{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
  padding-block: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.trust-strip-inner span:first-child{ color: var(--brass-light); }

/* =========================================================
   Sections — shared
   ========================================================= */
.section{ padding-block: var(--section-pad); position: relative; border-top: 1px solid var(--line); }
/* Elementor wraps every widget in its own container, so consecutive
   sections are no longer direct DOM siblings — each section carries its
   own top hairline instead of relying on a `+` adjacent-sibling selector. */
.ec-first-section.section{ border-top: none; }

/* Intro ("What Are Multi-Entity Xero Bookkeeping Services?") */
.intro{ background: var(--paper); }
.intro-body{
  max-width: 68ch;
  display: grid;
  gap: 1.1rem;
}
.intro-body p{ color: var(--text-muted); font-size: 1.02rem; }

/* Why Xero (reuses .outsource-grid / .check-list / .outsource-card) */
.xero-benefits{ background: var(--paper-raised); }
.xero-benefits .outsource-card p{ color: var(--text-muted); font-size: 0.95rem; }

/* Common Challenges (reuses .industry-grid / .industry-card) */
.challenges{ background: var(--paper); }

/* Related Services */
.related-services{ background: var(--paper-raised); }
.related-services-list a{
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  background: var(--paper);
  color: var(--text);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.related-services-list a:hover{ border-color: var(--emerald); color: var(--emerald); }
.related-services-note{
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 60ch;
}

/* Problems / discrepancy sheet */
.problems{ background: var(--paper-raised); }
.discrepancy-sheet{
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}
.discrepancy-row.head{
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 1.4rem;
  background: var(--ink);
  color: var(--text-on-ink-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.discrepancy-list li{
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
  transition: background-color 0.15s ease;
}
.discrepancy-list li:hover{ background: var(--brass-tint); }
.discrepancy-list li:first-child{ border-top: none; }
.discrepancy-list .flag{
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brass-tint);
  color: var(--brass-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.discrepancy-list .flag svg{
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.discrepancy-list em{
  margin-left: auto;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
}

/* Services */
.services{ background: var(--paper); }
.service-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-card{
  position: relative;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.8rem 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.service-card::before{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--emerald);
}
.service-card:nth-of-type(2n)::before{ background: var(--brass); }
.service-card--accent::before{ background: var(--brass-light); }
.service-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.service-card--accent{
  background: var(--ink);
  border-color: var(--ink);
}
.service-card--accent h3, .service-card--accent .service-code{ color: var(--text-on-ink); }
.service-card--accent p{ color: var(--text-on-ink-muted); }
.service-code{
  font-family: var(--font-mono);
  color: var(--brass);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.service-card--accent .service-code{ color: var(--brass-light); }
.service-card h3{ margin-bottom: 0.55rem; }
.service-card p{ color: var(--text-muted); font-size: 0.95rem; }
.service-items{
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem 0.75rem;
}
.service-card--accent .service-items{ border-top-color: rgba(237,239,230,0.18); }
.service-items li{
  position: relative;
  padding-left: 0.9rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.service-card--accent .service-items li{ color: var(--text-on-ink-muted); }
.service-items li::before{
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

/* Benefits */
.benefits{ background: var(--ink); color: var(--text-on-ink); overflow: hidden; }
.benefits h2, .benefits .eyebrow{ color: var(--text-on-ink); }
.benefits .eyebrow{ color: var(--brass-light); }
.benefits .section-lead{ color: var(--text-on-ink-muted); }
.benefits-decor{
  position: absolute;
  right: -40px;
  top: 40px;
  width: 220px;
  height: 220px;
  color: rgba(237,239,230,0.08);
  pointer-events: none;
}
.benefits-grid{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
}
.benefit-list{ display: grid; gap: 1.6rem; }
.benefit-item{
  display: flex;
  gap: 1.1rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(237,239,230,0.14);
}
.benefit-item .icon-badge{ margin-bottom: 0; }
.benefit-item:last-child{ border-bottom: none; padding-bottom: 0; }
.benefit-item h3{ color: var(--text-on-ink); margin-bottom: 0.45rem; }
.benefit-item p{ color: var(--text-on-ink-muted); font-size: 0.96rem; max-width: 60ch; }

/* Industries */
.industries{ background: var(--paper-raised); }
.industry-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.industry-card{
  padding: 1.6rem;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.industry-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.industry-card h3{ margin-bottom: 0.5rem; font-size: 1.1rem; }
.industry-card p{ color: var(--text-muted); font-size: 0.93rem; }

/* Integrations */
.integrations{ background: var(--paper); }
.integration-columns{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
}
.integration-col{
  padding: 1.4rem;
  border-radius: var(--radius-m);
  background: var(--paper-raised);
  border: 1px solid var(--line);
}
.integration-col h3{
  font-size: 0.95rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--emerald);
  margin-bottom: 0.9rem;
}
.integration-col-desc{
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  margin-top: -0.4rem;
}
.tag-row{ display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-row span{
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  background: var(--paper);
  color: var(--text);
}

/* Process timeline */
.process{ background: var(--paper-raised); }
.timeline{ display: grid; gap: 0; border-top: 1px solid var(--line); position: relative; }
.timeline::before{
  content: "";
  position: absolute;
  left: 44px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.timeline li{
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  padding-block: 1.9rem;
  border-bottom: 1px solid var(--line);
}
.timeline-index{
  position: relative;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--brass);
  letter-spacing: 0.06em;
}
.timeline-index::after{
  content: "";
  position: absolute;
  left: 44px;
  top: 0.4em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brass);
  transform: translateX(-50%);
}
.timeline h3{ margin-bottom: 0.4rem; }
.timeline p{ color: var(--text-muted); max-width: 62ch; }

/* Outsource / different */
.outsource{ background: var(--paper); }
.outsource-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.check-list{ margin-top: 1.6rem; display: grid; gap: 0.9rem; }
.check-list li{
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--text);
  font-size: 1rem;
}
.check-list li span{
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--emerald-tint);
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1em;
}
.check-list li svg{
  width: 12px; height: 12px;
  fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.outsource-card{
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}
.outsource-card h3{ margin-bottom: 1.3rem; }
.feature-dl{ display: grid; gap: 1.1rem; }
.feature-dl dt{
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
}
.feature-dl dd{
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

/* Case studies */
.cases{ background: var(--paper-raised); }
.case-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.case-card{
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.8rem;
  background: var(--paper);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.case-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.case-tag{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.case-tag--emerald{ background: var(--emerald-tint); color: var(--emerald); }
.case-tag--brass{ background: var(--brass-tint); color: var(--brass-text); }
.case-card h3{ margin-bottom: 0.7rem; font-size: 1.1rem; }
.case-card p{ color: var(--text-muted); font-size: 0.92rem; }
.case-result{
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line);
  color: var(--emerald) !important;
  font-weight: 500;
}
.case-result svg{
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 0.1em;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* FAQ accordion */
.faq{ background: var(--paper); }
.accordion{ border-top: 1px solid var(--line); }
.accordion-item{ border-bottom: 1px solid var(--line); }
.accordion-trigger{
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}
.accordion-trigger::after{
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--brass);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.accordion-trigger[aria-expanded="true"]::after{ transform: rotate(45deg); }
.accordion-panel{
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}
.accordion-panel > p{
  overflow: hidden;
  color: var(--text-muted);
  padding-bottom: 0;
  min-height: 0;
}
.accordion-item.is-open .accordion-panel{ grid-template-rows: 1fr; }
.accordion-item.is-open .accordion-panel > p{ padding-bottom: 1.3rem; }

/* =========================================================
   Contact — a distinct, elevated island, NOT the footer
   ========================================================= */
.contact{
  background: var(--paper);
  padding-block: var(--section-pad);
}
.contact-card{
  background: var(--ink);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  box-shadow: var(--shadow-deep);
}
.contact-copy{
  padding: clamp(2rem, 4vw, 3.25rem);
  color: var(--text-on-ink);
  position: relative;
  background:
    radial-gradient(360px 240px at 100% 0%, rgba(176,141,79,0.22), transparent 65%);
}
.contact-copy .eyebrow{ color: var(--brass-light); }
.contact-copy h2{ color: var(--text-on-ink); }
.contact-copy .section-lead{ color: var(--text-on-ink-muted); max-width: 42ch; }
.contact-points{ margin-top: 1.8rem; display: grid; gap: 0.8rem; }
.contact-points li{
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: var(--text-on-ink-muted);
}
.contact-points li span{
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(217,188,133,0.18);
  color: var(--brass-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1em;
}
.contact-points li svg{
  width: 11px; height: 11px;
  fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.contact-form{
  background: var(--paper-raised);
  padding: clamp(1.75rem, 3.5vw, 3.25rem);
  display: grid;
  gap: 1.1rem;
  align-content: start;
}
.form-row{ display: grid; gap: 0.4rem; }
.form-row label{
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.form-row input, .form-row select, .form-row textarea{
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 0.75rem 0.9rem;
  background: var(--paper);
  color: var(--text);
  resize: vertical;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{
  border-color: var(--emerald);
}
.form-note{
  min-height: 1.2em;
  font-size: 0.88rem;
  color: var(--emerald);
  font-weight: 600;
}

/* Reveal-on-scroll */
[data-reveal]{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible{ opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){
  [data-reveal]{ opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Footer — visually distinct from the contact card above it
   ========================================================= */
.site-footer{
  background: var(--emerald-deep);
  color: var(--text-on-ink-muted);
  border-top: 3px solid var(--brass);
}
.footer-inner{
  padding-block: clamp(2.75rem, 6vw, 3.75rem) 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand .brand-text{ color: var(--text-on-ink); }
.footer-brand .brand-mark{ color: var(--brass-light); }
.footer-brand p{ margin-top: 0.9rem; font-size: 0.86rem; max-width: 32ch; line-height: 1.55; }
.footer-col h4{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 1rem;
}
.footer-col ul{ display: grid; gap: 0.65rem; }
.footer-col a{ font-size: 0.9rem; transition: color 0.15s ease; }
.footer-col a:hover{ color: var(--text-on-ink); }
.footer-bottom{
  border-top: 1px solid rgba(237,239,230,0.12);
  padding-block: 1.4rem;
}
.footer-copy{ font-size: 0.82rem; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  .main-nav, .header-cta{ display: none; }
  .nav-toggle{ display: flex; }

  .site-header.nav-open .main-nav{
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper-raised);
    border-bottom: 1px solid var(--line);
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
  }
  .site-header.nav-open .main-nav ul{ flex-direction: column; gap: 1.1rem; }
  .site-header.nav-open .header-cta{
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    transform: translateY(100%);
    padding: 0 clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
    background: var(--paper-raised);
  }

  .hero-inner{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; }
  .ledger-board{ min-height: 320px; }

  .benefits-grid, .outsource-grid{ grid-template-columns: 1fr; }
  .benefits-decor{ display: none; }
  .service-grid, .industry-grid, .case-grid{ grid-template-columns: repeat(2, 1fr); }
  .integration-columns{ grid-template-columns: repeat(2, 1fr); }
  .contact-card{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px){
  .hero-stats{ grid-template-columns: 1fr; gap: 1rem; }
  .service-grid, .industry-grid, .case-grid, .integration-columns{ grid-template-columns: 1fr; }
  .timeline li{ grid-template-columns: 50px 1fr; gap: 1rem; }
  .timeline::before{ left: 24px; }
  .timeline-index::after{ left: 24px; }
  .discrepancy-list li{ flex-wrap: wrap; }
  .discrepancy-list em{ margin-left: 2.4rem; text-align: left; }
  .ledger-card{ width: 74%; position: static; margin-bottom: 0.9rem; animation: none; opacity: 1; transform: none; }
  .ledger-board{ min-height: auto; }
  .ledger-links, .ledger-stamp{ display: none; }
  .trust-strip-inner{ font-size: 0.7rem; }
  .footer-inner{ grid-template-columns: 1fr; }
}
