/* ===== Design tokens ===== */
:root {
  --ink: #0c3125;     /* deep forest green (Figuro #094C35 family) */
  --ink-2: #082018;
  --body: #4c5a53;
  --muted: #7a857e;
  --line: #dde6e3;
  --line-2: #e6ecea;
  --bg: #f1f5f4;      /* pale cool background */
  --white: #ffffff;
  --warm: #e9f0f1;    /* Figuro light for alt sections */

  --accent: #094c35;  /* Figuro dominant green */
  --accent-dark: #063a29;
  --accent-soft: #e6f0ea;
  --accent-line: #cde0d5;

  /* category tints derived from the Figuro palette */
  --sage: #e4efe8;  --sage-ink: #0f5f42;   /* green   */
  --peach: #f2e9df; --peach-ink: #8a5f3f;  /* camel   */
  --sky: #e1edf2;   --sky-ink: #2f7c96;    /* blue    */
  --sand: #ece2d9;  --sand-ink: #7c5943;   /* taupe   */
  --lav: #e7eceb;   --lav-ink: #55686a;    /* grey    */

  --font-head: "Sora", "Inter", system-ui, sans-serif;

  --radius-2xl: 30px;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 9px;
  --shadow-sm: 0 2px 8px rgba(18, 38, 28, 0.06);
  --shadow: 0 18px 44px rgba(18, 38, 28, 0.10);
  --shadow-lg: 0 34px 80px rgba(18, 38, 28, 0.16);

  --max: 1180px;
  --pad: 24px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.028em; font-weight: 700; color: var(--ink); }

/* ===== Layout ===== */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 92px 0; }
.section-white { background: var(--white); }
.section-warm { background: var(--warm); }
.section-dark { background: var(--ink); color: rgba(255, 255, 255, 0.82); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.narrow { max-width: 780px; margin-inline: auto; }

.eyebrow {
  display: inline-block; text-transform: uppercase;
  letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 700; color: var(--accent-dark); margin-bottom: 16px;
}
.section-dark .eyebrow { color: #7fe0b6; }

.section-head { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head h2 { font-size: clamp(2.3rem, 4.8vw, 3.3rem); }
.lead { color: var(--muted); font-size: 1.1rem; margin-top: 14px; }
.section-dark .lead { color: rgba(255, 255, 255, 0.72); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 0.97rem; padding: 13px 24px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(9, 76, 53, 0.2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(12, 49, 37, 0.2); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-dark); font-weight: 600; font-size: 0.95rem; }
.link-arrow:hover { gap: 10px; }
.section-dark .link-arrow { color: #7fe0b6; }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(12, 49, 37, 0.06); }

/* fixed header needs top spacing on normal pages; the home hero sits under it */
body { padding-top: 74px; }
body.has-hero { padding-top: 0; }

/* transparent header over the dark hero until scrolled */
.has-hero .site-header:not(.scrolled) { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.has-hero .site-header:not(.scrolled) .logo { color: #fff; }
.has-hero .site-header:not(.scrolled) .nav-link { color: rgba(255, 255, 255, 0.85); }
.has-hero .site-header:not(.scrolled) .nav-link:hover,
.has-hero .site-header:not(.scrolled) .nav-link.active { color: #fff; }
.has-hero .site-header:not(.scrolled) .nav-toggle span { background: #fff; }
.has-hero .site-header:not(.scrolled) .nav-cta { background: #fff; color: var(--ink); }
.has-hero .site-header:not(.scrolled) .nav-cta:hover { background: var(--accent); color: #fff; }
/* when the mobile menu is open over the hero, the panel is white — force dark links so they're visible */
.has-hero .site-header:not(.scrolled) .nav.open .nav-link { color: var(--muted); }
.has-hero .site-header:not(.scrolled) .nav.open .nav-link:hover,
.has-hero .site-header:not(.scrolled) .nav.open .nav-link.active { color: var(--ink); }
.has-hero .site-header:not(.scrolled) .nav.open .nav-cta { background: var(--ink); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.logo-mark {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: var(--accent); color: #fff; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em;
}
.nav { display: flex; align-items: center; gap: 2px; }
.nav-link { padding: 9px 15px; border-radius: 8px; font-weight: 500; font-size: 0.95rem; color: var(--muted); transition: color 0.15s ease; }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-cta { background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 999px; margin-left: 8px; }
.nav-cta:hover { background: var(--ink-2); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Home hero ===== */
.hero { padding: 76px 0 96px; }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 60px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); color: var(--accent-dark);
  font-size: 0.78rem; font-weight: 600; margin-bottom: 24px; box-shadow: var(--shadow-sm);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero-content h1 { font-size: clamp(2.5rem, 6vw, 4.7rem); margin-bottom: 22px; letter-spacing: -0.038em; }
.hero-content h1 .accent {
  background: linear-gradient(120deg, #16c088, var(--accent) 55%, var(--accent-dark));
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { from { background-position: 220% center; } to { background-position: 0% center; } }
.hero-sub { color: var(--muted); font-size: 1.18rem; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }
.hero-trust { display: flex; align-items: center; gap: 14px; }
.avatars { display: flex; }
.avatars span { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--bg); margin-left: -12px; background-size: cover; background-position: center; }
.avatars span:first-child { margin-left: 0; }
.hero-trust .t-text { font-size: 0.9rem; color: var(--muted); }
.hero-trust .t-text strong { color: var(--ink); }
.hero-trust .stars { color: #e0a12a; letter-spacing: 1px; }

/* ===== Hero full-background variant ===== */
.hero-bg { position: relative; overflow: hidden; padding: 0; }
.hero-bg .hero-bg-media { position: absolute; inset: 0; z-index: 0; }
.hero-bg .hero-bg-media img { width: 100%; height: 100%; object-fit: cover; object-position: 12% center; }
.hero-bg::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(8,26,19,0.9) 0%, rgba(8,26,19,0.6) 46%, rgba(8,26,19,0.15) 100%); }
.hero-bg .hero-bg-inner { position: relative; z-index: 2; max-width: none; min-height: 100vh; min-height: 100svh; padding: 110px clamp(24px, 5vw, 88px) 120px; display: flex; align-items: center; justify-content: flex-start; }
.hero-bg .hero-content { max-width: 620px; margin-right: auto; text-align: left; }
/* trust marquee pinned to hero bottom */
.hero-bg .trust-strip { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; background: rgba(8,26,19,0.5); border-top-color: rgba(255,255,255,0.14); border-bottom: 0; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-bg .trust-track span { color: rgba(255,255,255,0.9); }
.trust-track .tbul { color: #7fe0b6; margin-right: 10px; font-size: 0.85rem; line-height: 0; vertical-align: middle; }
.hero-bg h1 { color: #fff; }
.hero-bg .hero-content h1 .accent { background: linear-gradient(120deg, #9df3ce, #34d399 60%, #6ee7b7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-bg .hero-sub { color: rgba(255,255,255,0.86); }
.hero-bg .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.5); background: transparent; }
.hero-bg .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero-bg .avatars span { border-color: rgba(255,255,255,0.3); }
.hero-bg .hero-trust .t-text { color: rgba(255,255,255,0.82); }
.hero-bg .hero-trust .t-text strong { color: #fff; }
@media (max-width: 640px) {
  .hero-bg .hero-bg-inner { min-height: 100vh; min-height: 100svh; padding: 100px 22px 96px; align-items: center; justify-content: flex-end; }
  /* narrow crop: show the people, not the brick wall behind the desktop text */
  .hero-bg .hero-bg-media img { object-position: 65% center; }
  /* dark at top (heading) and bottom (buttons), lighter through the middle so faces show */
  .hero-bg::after { background: linear-gradient(180deg, rgba(8,26,19,0.78) 0%, rgba(8,26,19,0.4) 42%, rgba(8,26,19,0.82) 100%); }
  /* heading spans full width above the people; paragraph + buttons stay on the right */
  .hero-bg .hero-content { max-width: none; width: 100%; text-align: right; }
  .hero-bg .hero-content h1 { font-size: clamp(2rem, 9vw, 2.95rem); margin-bottom: 18px; }
  .hero-bg .hero-sub { display: block; max-width: 80%; margin-left: auto; margin-bottom: 26px; font-size: 0.98rem; }
  .hero-bg .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; max-width: 80%; margin-left: auto; }
  .hero-bg .hero-actions .btn { width: 100%; justify-content: center; padding: 14px 18px; font-size: 0.95rem; }
  /* the bottom marquee already carries the trust line — drop the badge to avoid clutter */
  .hero-bg .hero-trust { display: none; }
}

/* ===== Hero bento grid ===== */
.hero-bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 12px; aspect-ratio: 1 / 1.02; }
.b-tile { overflow: hidden; border-radius: 22px; position: relative; }
.b-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.b-tile:hover img { transform: scale(1.06); }
.b-main   { grid-column: 1 / 3; grid-row: 1 / 3; }
.b-street { grid-column: 3 / 4; grid-row: 1 / 2; }
.b-bridge { grid-column: 3 / 4; grid-row: 2 / 4; }
.b-charts { grid-column: 1 / 2; grid-row: 3 / 4; }
.b-accent {
  grid-column: 2 / 3; grid-row: 3 / 4; border-radius: 22px;
  background: linear-gradient(150deg, #0d6b46, var(--accent)); color: #fff;
  display: flex; flex-direction: column; justify-content: center; padding: 16px 18px;
}
.b-accent strong { font-family: var(--font-head); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1; }
.b-accent span { font-size: 0.8rem; opacity: 0.85; margin-top: 5px; }
@media (max-width: 560px) { .hero-bento { gap: 9px; } .b-accent { padding: 12px 14px; } }

/* hero figure with floating chips */
.hero-figure { position: relative; }
.hero-figure > img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 4 / 4.3; object-fit: cover; border-radius: var(--radius-2xl); }
.hero-figure .chip { z-index: 3; }
/* orbiting dotted rings behind the hero image */
.hero-rings { position: absolute; inset: -12%; z-index: 0; display: grid; place-items: center; pointer-events: none; }
.hero-ring { position: absolute; border-radius: 50%; border: 1.5px dashed var(--accent-line); }
.hero-ring.r1 { width: 88%; height: 88%; animation: spin 30s linear infinite; }
.hero-ring.r2 { width: 108%; height: 108%; animation: spin 46s linear infinite reverse; border-color: var(--line); }
.hero-ring .rdot { position: absolute; top: -7px; left: 50%; margin-left: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.hero-ring.r2 .rdot { background: var(--sky-ink); box-shadow: 0 0 0 5px var(--sky); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .hero-rings { display: none; } }
.chip {
  position: absolute; display: flex; align-items: center; gap: 11px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px 15px; font-size: 0.84rem; z-index: 2;
}
.chip .chip-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; }
.chip strong { display: block; color: var(--ink); font-size: 0.95rem; }
.chip span { color: var(--muted); }
.chip-tl { top: 26px; left: -20px; }
.chip-bl { bottom: 96px; left: -26px; }
.chip-br { bottom: 30px; right: -18px; }

/* gentle float */
.float { animation: floaty 6s ease-in-out infinite; }
.float-2 { animation: floaty 5s ease-in-out infinite; }
.float-3 { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }

/* decorative floating chips in section gutters (large screens only) */
.has-deco { position: relative; overflow: hidden; }
.has-deco > .container { position: relative; z-index: 1; }
.deco-chip { position: absolute; z-index: 0; }
@media (max-width: 1200px) { .deco-chip { display: none; } }

/* ===== Trust strip (marquee) ===== */
.trust-strip { padding: 22px 0; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.trust-track { display: flex; align-items: center; width: max-content; animation: marquee 34s linear infinite; }
.trust-strip:hover .trust-track { animation-play-state: paused; }
.trust-track span { color: var(--muted); font-weight: 600; font-size: 0.95rem; display: inline-flex; align-items: center; padding: 0 15px; white-space: nowrap; }
.trust-track svg { color: var(--accent); flex: 0 0 auto; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Page hero (inner pages) ===== */
.page-hero { padding: 66px 0 54px; background: var(--white); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); }
.page-hero-inner { display: grid; grid-template-columns: 1fr; gap: 16px; }
.page-hero-lead { color: var(--muted); font-size: 1.12rem; max-width: 640px; }
@media (min-width: 880px) {
  .page-hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: start; }
  /* offset the lead down past the small eyebrow so it lines up with the main heading */
  .page-hero-lead { padding-top: 45px; }
}

/* ===== Split (image + text) ===== */
.split { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
.split .split-media { position: relative; }
.split img { width: 100%; height: auto; object-fit: cover; border-radius: var(--radius-2xl); aspect-ratio: 5 / 4; }
.split h2 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); margin-bottom: 18px; }
.split p { color: var(--muted); margin-bottom: 16px; }
.split em { color: var(--ink); font-style: italic; }

/* ===== Cards grid ===== */
.grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: 1fr; }
.cols-3 { grid-template-columns: 1fr; }
.cols-4 { grid-template-columns: 1fr; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--accent-line); }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent-dark); margin-bottom: 18px; }
.card-icon svg { width: 25px; height: 25px; }
.card h3 { font-size: 1.18rem; margin-bottom: 9px; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card .link-arrow { margin-top: 16px; }

/* tinted cards */
.card.tint-sage { background: var(--sage); border-color: transparent; }
.card.tint-sage .card-icon { background: rgba(47,107,79,0.12); color: var(--sage-ink); }
.card.tint-peach { background: var(--peach); border-color: transparent; }
.card.tint-peach .card-icon { background: rgba(176,106,60,0.13); color: var(--peach-ink); }
.card.tint-sky { background: var(--sky); border-color: transparent; }
.card.tint-sky .card-icon { background: rgba(63,101,145,0.12); color: var(--sky-ink); }
.card.tint-sand { background: var(--sand); border-color: transparent; }
.card.tint-sand .card-icon { background: rgba(138,119,72,0.14); color: var(--sand-ink); }
.card.tint-lav { background: var(--lav); border-color: transparent; }
.card.tint-lav .card-icon { background: rgba(106,90,156,0.13); color: var(--lav-ink); }
.card.tint-accent { background: var(--accent-soft); border-color: transparent; }

/* ===== Service detail rows ===== */
.service-row { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 46px 0; border-top: 1px solid var(--line); }
.service-row:first-child { border-top: 0; padding-top: 0; }
.service-row h3 { font-size: 1.45rem; margin-bottom: 14px; }
.service-row p { color: var(--muted); margin-bottom: 14px; }

/* ===== Checklist ===== */
.checklist { display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 26px; color: var(--body); }
.checklist li::before {
  content: "\2726"; position: absolute; left: 1px; top: 0.02em;
  color: var(--accent); font-size: 0.82em; line-height: 1.6;
}
.section-dark .checklist li { color: rgba(255, 255, 255, 0.82); }
.section-dark .checklist li::before { color: #7fe0b6; }

/* ===== Metrics (dark band) ===== */
.metrics { display: grid; grid-template-columns: 1fr; gap: 30px; }
.metric strong { display: block; font-size: clamp(2.3rem, 5vw, 3.1rem); color: #fff; letter-spacing: -0.03em; }
.metric span { color: rgba(255, 255, 255, 0.72); font-size: 0.98rem; }
.metric p { color: rgba(255, 255, 255, 0.55); font-size: 0.9rem; margin-top: 6px; }

/* ===== Process steps ===== */
.steps { display: grid; gap: 22px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.step-num { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; border: 1px solid var(--accent-line); }
.step h3 { font-size: 1.08rem; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 0.96rem; }

/* ===== Process list with scroll-drawn connector line ===== */
.process-list { position: relative; display: grid; gap: 34px; max-width: 640px; margin: 0 auto; padding-left: 66px; isolation: isolate; list-style: none; }
.process-list::before { content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px; background: var(--line); z-index: 0; }
.process-list::after { content: ""; position: absolute; left: 23px; top: 8px; width: 2px; height: calc((100% - 16px) * var(--draw, 0)); background: var(--accent); border-radius: 2px; transition: height 0.12s linear; z-index: 1; }
.p-step { position: relative; z-index: 2; }
.p-step .p-dot {
  position: absolute; left: -66px; top: -4px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); border: 2px solid var(--line);
  color: var(--muted); font-weight: 700; font-family: var(--font-head);
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease, transform 0.3s ease; z-index: 2;
}
.p-step.active .p-dot { border-color: var(--accent); background: var(--accent); color: #fff; transform: scale(1.06); }
.p-step h3 { font-size: 1.15rem; margin-bottom: 5px; }
.p-step p { color: var(--muted); }

/* ===== 3D testimonial carousel ===== */
.tcarousel { overflow: hidden; padding: 30px 0; perspective: 1600px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.tcarousel-track { display: flex; gap: 24px; width: max-content; transform-style: preserve-3d; animation: tscroll 46s linear infinite; }
.tcarousel:hover .tcarousel-track { animation-play-state: paused; }
.tcard { width: 372px; flex: 0 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; transform: rotateY(-7deg); box-shadow: var(--shadow); transition: transform 0.3s ease; }
.tcard:hover { transform: rotateY(0deg) scale(1.02); }
.tcard .stars { color: #e0a12a; letter-spacing: 2px; font-size: 0.9rem; }
.tcard p { font-size: 1.05rem; color: var(--ink); margin: 14px 0; }
.tcard figcaption { font-size: 0.88rem; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.tcard figcaption .qava { width: 42px; height: 42px; border-radius: 50%; background-size: cover; background-position: center; flex: 0 0 auto; }
.tcard figcaption strong { display: block; color: var(--ink); }
@keyframes tscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Testimonials ===== */
.quotes { display: grid; grid-template-columns: 1fr; gap: 22px; }
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.quote .stars { color: #e0a12a; letter-spacing: 2px; font-size: 0.9rem; }
.quote p { font-size: 1.06rem; color: var(--ink); margin: 14px 0; }
.quote figcaption { font-size: 0.88rem; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.quote figcaption .qava { width: 42px; height: 42px; border-radius: 50%; background-size: cover; background-position: center; flex: 0 0 auto; }
.quote figcaption strong { display: block; color: var(--ink); }

/* ===== Pricing ===== */
.tiers { display: grid; grid-template-columns: 1fr; gap: 22px; }
.tier { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; }
.tier.featured { background: var(--ink); color: rgba(255, 255, 255, 0.8); border-color: var(--ink); }
.tier.featured .tier-name, .tier.featured .tier-price { color: #fff; }
.tier.featured .tier-desc { color: rgba(255, 255, 255, 0.65); }
.tier.featured .checklist li { color: rgba(255, 255, 255, 0.82); }
.tier.featured .checklist li::before { color: #7fe0b6; }
.tier-name { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.tier-price { font-size: 2.2rem; font-weight: 700; color: var(--ink); margin: 12px 0 4px; letter-spacing: -0.02em; }
.tier-price span { font-size: 0.94rem; font-weight: 500; color: var(--muted); }
.tier.featured .tier-price span { color: rgba(255, 255, 255, 0.6); }
.tier-desc { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }
.tier .checklist { margin-bottom: 26px; }
.tier .btn { margin-top: auto; }
.tier-tag { align-self: flex-start; background: var(--accent-soft); color: var(--accent-dark); border: 1px solid var(--accent-line); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 11px; border-radius: 999px; margin-bottom: 16px; }
.tier.featured .tier-tag { background: rgba(127,224,182,0.16); color: #7fe0b6; border-color: rgba(127,224,182,0.35); }

/* ===== FAQ accordion ===== */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item.open { border-color: var(--accent-line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; background: none; border: 0; cursor: pointer; padding: 20px 22px; font: inherit; font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.faq-icon { flex: 0 0 auto; width: 22px; height: 22px; position: relative; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--accent-dark); top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 2px; transition: opacity 0.25s ease; }
.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after { width: 2px; height: 12px; }
.faq-item.open .faq-icon::after { opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 22px 22px; color: var(--muted); }

/* ===== Blog ===== */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.post-card h3 { font-size: 1.16rem; margin-bottom: 9px; }
.post-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.post-card .link-arrow { margin-top: auto; }

/* ===== Featured post + tags ===== */
.post-featured { display: grid; grid-template-columns: 1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 44px; transition: box-shadow 0.2s ease; }
.post-featured:hover { box-shadow: var(--shadow); }
.post-featured img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 16 / 10; }
.post-featured .post-body { padding: 38px; display: flex; flex-direction: column; justify-content: center; }
.post-featured h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 12px; }
.post-featured p { color: var(--muted); margin-bottom: 18px; }
@media (min-width: 860px) { .post-featured { grid-template-columns: 1.15fr 1fr; } .post-featured img { height: 100%; aspect-ratio: auto; } }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-dark); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 4px 11px; border-radius: 999px; }
.post-card .tag { align-self: flex-start; margin-bottom: 12px; }

/* ===== Blog filtering + hover highlight ===== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.filter-btn { border: 1px solid var(--line); background: var(--white); color: var(--muted); font: inherit; font-weight: 600; font-size: 0.9rem; padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.filter-btn:hover { color: var(--ink); border-color: var(--ink); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.blog-grid:hover .post-card { opacity: 0.5; transition: opacity 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.blog-grid .post-card:hover { opacity: 1; }
.post-card.hide { display: none; }

/* ===== Article ===== */
.article-hero { max-width: 820px; margin: 0 auto 8px; text-align: center; }
.article-hero .tag { margin-bottom: 16px; }
.article-hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 14px; }
.article-hero .post-meta { margin: 0; }
.article-author { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; text-align: left; }
.article-author .qava { width: 46px; height: 46px; border-radius: 50%; background-size: cover; background-position: center; flex: 0 0 auto; }
.article-author strong { display: block; color: var(--ink); font-size: 0.95rem; }
.article-author span { font-size: 0.85rem; color: var(--muted); }
.article-figure { margin: 34px auto; max-width: 960px; }
.article-figure img { width: 100%; height: auto; display: block; border-radius: var(--radius-xl); aspect-ratio: 16 / 9; object-fit: cover; }
.article-figure figcaption { text-align: center; font-size: 0.85rem; color: var(--muted); padding-top: 12px; }
.pullquote { border-left: 4px solid var(--accent); padding: 4px 0 4px 26px; margin: 30px 0; font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; line-height: 1.4; color: var(--ink); letter-spacing: -0.01em; }

.article { max-width: 740px; margin: 0 auto; }
.article .post-meta { margin-bottom: 14px; }
.article h1 { font-size: clamp(1.9rem, 4.2vw, 2.6rem); margin-bottom: 18px; }
.article-body { font-size: 1.06rem; color: var(--body); }
.article-body h2 { font-size: 1.45rem; margin: 36px 0 12px; }
.article-body h3 { font-size: 1.18rem; margin: 28px 0 10px; }
.article-body p { margin-bottom: 18px; }
.article-body ul { margin: 0 0 18px; display: grid; gap: 8px; }
.article-body ul li { position: relative; padding-left: 22px; }
.article-body ul li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.article-body a { color: var(--accent-dark); text-decoration: underline; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: start; }
.contact-list { display: grid; gap: 18px; margin-top: 26px; }
.contact-list li { display: flex; flex-direction: column; gap: 3px; }
.contact-list span { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); }
.contact-list a { font-weight: 600; color: var(--accent-dark); width: fit-content; }
.contact-list a:hover { text-decoration: underline; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: grid; gap: 16px; box-shadow: var(--shadow-sm); }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); padding: 13px 15px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px rgba(15, 157, 110, 0.14); }
.field textarea { resize: vertical; }
.form-status { font-size: 0.9rem; font-weight: 500; min-height: 1.2em; }
.form-status.ok { color: var(--accent-dark); }
.form-status.err { color: #d6443b; }
.form-success { display: none; align-items: center; gap: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--radius-sm); padding: 16px 18px; color: var(--accent-dark); font-weight: 500; }
.form-success.show { display: flex; }
.form-success .check { flex: 0 0 auto; width: 26px; height: 26px; display: grid; place-items: center; background: var(--accent); color: #fff; border-radius: 50%; font-size: 0.82rem; }

/* ===== CTA band ===== */
.cta-band { background: var(--ink); border-radius: var(--radius-2xl); padding: 70px 32px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 2.6rem); margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, 0.72); margin: 0 auto 26px; max-width: 540px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); background: var(--white); padding: 62px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 34px; }
.footer-brand p { color: var(--muted); font-size: 0.93rem; margin-top: 14px; max-width: 300px; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; color: var(--body); font-size: 0.95rem; padding: 4px 0; }
.footer-col a:hover { color: var(--accent-dark); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; color: var(--muted); font-size: 0.86rem; }

/* ===== Scroll-scrubbed motion ===== */
[data-scrub='zoom'] { will-change: transform; transform: scale(1.16); }
.feature-media { overflow: hidden; border-radius: var(--radius-2xl); border: 1px solid var(--line); }
.feature-media img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.lift-wrap { perspective: 1200px; }
[data-scrub='lift'] { will-change: transform, opacity; transform-origin: center bottom; transform: perspective(1200px) rotateX(34deg) translateY(46px); opacity: 0.4; border-radius: var(--radius-2xl); box-shadow: var(--shadow-lg); display: block; width: 100%; max-width: 940px; max-height: 52vh; margin-inline: auto; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 640px) { .feature-media img, [data-scrub='lift'] { aspect-ratio: 4 / 3; } }

/* Sankey income/expense diagram */
.sankey-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-2xl); padding: 26px 26px 16px; box-shadow: var(--shadow); margin: 0 auto; }
.sankey-scroll { width: 100%; }
.sankey-card svg { width: 100%; height: auto; display: block; }
.sankey-cap { text-align: center; color: var(--muted); font-size: 0.82rem; margin-top: 12px; }

/* Vertical Sankey for portrait / small screens — same €80k story, no side-scroll */
.sankey-mobile { display: none; }
.sm-svg { width: 100%; height: auto; display: block; }
.sm-ribbon { fill-opacity: 0.55; transform-box: fill-box; transform-origin: top center; transform: scaleY(0); transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
.sankey-card.chart-draw .sm-ribbon { transform: scaleY(1); }
.sm-legend { margin-top: 18px; display: grid; gap: 11px; }
.sm-legend li { display: flex; align-items: center; gap: 11px; font-size: 0.98rem; color: var(--body); }
.sm-legend li i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.sm-legend li b { margin-left: auto; color: var(--ink); font-weight: 700; }

@media (max-width: 720px) {
  .sankey-card { padding: 22px 18px 18px; }
  .sankey-scroll { display: none; }
  .sankey-mobile { display: block; }
}
.sankey-ribbon { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); opacity: 0; transition: transform 1.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.1s ease; }
.sankey-card.chart-draw .sankey-ribbon { transform: scaleX(1); opacity: 0.52; }
.sankey-card.chart-draw:hover .sankey-ribbon { opacity: 0.74; }
.sankey-bar { transform-box: fill-box; transform-origin: center bottom; transform: scaleY(0); transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1); }
.sankey-card.chart-draw .sankey-bar { transform: scaleY(1); }

/* word-by-word highlight statement */
.statement-section { padding: 96px 0; text-align: center; }
.statement { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.55rem, 3.4vw, 2.6rem); line-height: 1.32; letter-spacing: -0.02em; max-width: 940px; margin: 0 auto; text-align: center; }
.statement .eyebrow { display: flex; justify-content: center; margin-bottom: 26px; }
.hl span { color: var(--muted); opacity: 0.32; transition: color 0.25s ease, opacity 0.25s ease; }
.hl span.lit { color: var(--ink); opacity: 1; }
.section-dark .hl span { color: rgba(255,255,255,0.34); }
.section-dark .hl span.lit { color: #fff; }

/* ===== Animated word highlights (draw in on scroll) ===== */
/* marker underline */
.hl-underline { position: relative; white-space: nowrap; }
.hl-underline::after {
  content: ""; position: absolute; left: -0.12em; right: -0.12em; bottom: -0.05em; height: 0.34em;
  background: #1a7d5a;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 32' preserveAspectRatio='none'%3E%3Cpath d='M3 19 C42 11 92 22 142 15 C196 8 250 20 298 13 C272 25 220 21 150 26 C96 30 46 24 3 27 Z' fill='black'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 32' preserveAspectRatio='none'%3E%3Cpath d='M3 19 C42 11 92 22 142 15 C196 8 250 20 298 13 C272 25 220 21 150 26 C96 30 46 24 3 27 Z' fill='black'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform: scaleX(0); transform-origin: left center;
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hl-underline.drawn::after { transform: scaleX(1); }
.section-dark .hl-underline::after { background: #7fe0b6; }

/* highlighter swipe */
.hl-marker { position: relative; white-space: nowrap; }
.hl-marker::before {
  content: ""; position: absolute; left: -0.12em; right: -0.12em; top: 0.1em; bottom: 0.08em; z-index: -1;
  background: #9fe6c6; border-radius: 6px;
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.hl-marker.drawn::before { transform: scaleX(1); }

/* hand-drawn circle */
.hl-circle { position: relative; display: inline-block; white-space: nowrap; }
.hl-circle > svg { position: absolute; left: -10%; top: -22%; width: 120%; height: 150%; overflow: visible; pointer-events: none; }
.hl-circle > svg ellipse {
  fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linecap: round;
  stroke-dasharray: 300; stroke-dashoffset: 300;
}
.hl-circle.drawn > svg ellipse { animation: drawCircle 0.9s ease forwards; }
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
.section-dark .hl-circle > svg ellipse { stroke: #7fe0b6; }

/* feature (image + text) */
.feature { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
.feature h2 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); margin-bottom: 18px; }
.feature p { color: var(--muted); margin-bottom: 16px; }

/* ===== Pricing comparison table ===== */
.compare { margin-top: 64px; overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { text-align: center; vertical-align: middle; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; width: 40%; }
.compare th:not(:first-child), .compare td:not(:first-child) { width: 20%; }
.compare thead th { font-family: var(--font-head); font-size: 1rem; color: var(--ink); }
.compare thead th span { display: block; font-family: "Inter", sans-serif; font-weight: 400; font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.compare tbody th { font-weight: 500; color: var(--ink); }
.compare td { color: var(--muted); }
.compare .yes { color: var(--accent-dark); font-weight: 700; }
.compare .no { color: var(--line); }
.compare tbody tr:hover { background: var(--warm); }
.billing-toggle { display: inline-flex; gap: 4px; padding: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; margin: 0 auto 8px; }
.billing-toggle button { border: 0; background: none; cursor: pointer; font: inherit; font-weight: 600; font-size: 0.9rem; color: var(--muted); padding: 8px 18px; border-radius: 999px; transition: background 0.15s ease, color 0.15s ease; }
.billing-toggle button.active { background: var(--ink); color: #fff; }
.price-note { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

/* ===== Fade-in on scroll ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .chip { transform: scale(0.9); }
  .chip-tl { left: 4px; }
  .chip-bl { display: none; }
  .chip-br { right: 4px; }
}
@media (max-width: 820px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 16px var(--pad) 22px;
    transform: translateY(-140%); transition: transform 0.28s ease; box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav-link { padding: 12px 14px; }
  .nav-cta { text-align: center; margin: 8px 0 0; }
  .nav-toggle { display: flex; }
}

@media (min-width: 640px) {
  .cols-2 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: repeat(3, 1fr); }
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 920px) {
  .section { padding: 112px 0; }
  .hero-inner { grid-template-columns: 1.02fr 0.98fr; gap: 64px; }
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cols-4 { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.reverse .split-media { order: 2; }
  .service-row { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .metrics { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .float, .float-2, .float-3 { animation: none !important; }
}
