/* 2Impact website, shared styles */
:root {
  --green-deep: #00614A;
  --green: #04936D;
  --green-mid: #05AE81;
  --green-bright: #0BC776;
  --green-pale: #E6F7F1;
  --ink: #0F1F1A;
  --ink-soft: #3E4B46;
  --muted: #6B7772;
  --line: #E1E7E4;
  --bg: #FFFFFF;
  --bg-soft: #F3F6F4;
  --bg-dark: #0B1F19;
  --radius: 14px;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  /* Critically damped feel for CSS-driven state changes (no overshoot) */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --press: .08s;
  --release: .28s;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; touch-action: manipulation; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Montserrat', system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  font-optical-sizing: auto;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
/* Tracking and leading tighten as type grows; each size sets its own below */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.arrow { display: inline-block; transition: transform var(--release) var(--ease-out); }
@media (hover: hover) { a:hover .arrow { transform: translate(2px, -2px); } }

:focus-visible { outline: 2px solid var(--green-bright); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
/* Feedback lands on press, not on release */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 .9375rem/1 'Montserrat', sans-serif; letter-spacing: .005em; text-decoration: none;
  padding: 14px 22px; border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform var(--release) var(--ease-out);
}
.btn:active { transform: scale(.97); transition-duration: .2s, .2s, .2s, var(--press); }
.btn-primary { background: var(--green-bright); color: #052A1F; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.btn-dark { background: var(--ink); color: #fff; }
@media (hover: hover) {
  .btn-primary:hover { background: #0ad883; }
  .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
  .btn-dark:hover { background: var(--green-deep); }
}
.link { font-weight: 600; font-size: .9375rem; text-decoration: none; color: var(--green-deep); border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 14px; left: 14px; right: 14px; z-index: 50;
  display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none;
}
.nav > * { pointer-events: auto; }
/* Translucent material: content scrolls underneath, a bright top edge catches the light */
.nav-main {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.74);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 12px; padding: 7px 8px 7px 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 0 0 1px rgba(15,31,26,.05), 0 8px 28px rgba(0,0,0,.08);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; margin-right: 14px; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand span { font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  font-size: .9375rem; font-weight: 500; text-decoration: none; color: var(--ink-soft);
  padding: 8px 12px; border-radius: 7px; transition: background .15s, color .15s;
}
.nav-links a:active { background: var(--line); }
.nav-links a[aria-current="page"] { background: rgba(15,31,26,.06); color: var(--ink); }
@media (hover: hover) { .nav-links a:hover { background: rgba(15,31,26,.06); color: var(--ink); } }
.nav-cta { padding: 12px 18px; font-size: .875rem; box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.nav-cta-mobile { display: none; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 10px 8px; cursor: pointer; margin-left: 4px; border-radius: 7px;
}
.nav-toggle:active { background: var(--line); }
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px;
  transition: transform var(--release) var(--ease-out);
}

/* ---------- Hero: light and compact, so the results show on the first screen ---------- */
.hero { padding: clamp(150px, 15vw, 210px) 0 clamp(40px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.hero h1 { font-size: clamp(2.875rem, 6.6vw, 6.25rem); line-height: .96; letter-spacing: -0.045em; max-width: 11ch; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero-side { padding-bottom: 10px; }
.hero-side p { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--ink-soft); line-height: 1.5; margin-bottom: 28px; max-width: 420px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-quiet { color: var(--ink); border-color: var(--line); background: #fff; }
@media (hover: hover) { .btn-quiet:hover { border-color: var(--ink); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.section-head h2, .how h2 { font-size: clamp(2.375rem, 5vw, 4.25rem); line-height: 1.02; letter-spacing: -0.032em; }
.section-head p { color: var(--ink-soft); max-width: 460px; justify-self: end; }
.statement { font-size: clamp(1.625rem, 3.2vw, 2.625rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.022em; max-width: 1000px; margin-bottom: 64px; text-wrap: balance; }
.statement em { font-style: normal; color: var(--green); }

/* ---------- Carousels ---------- */
[data-carousel] { overflow-x: clip; }
.carousel-controls { display: flex; gap: 8px; justify-self: end; }
.c-btn {
  width: 46px; height: 46px; border-radius: 8px; border: 1px solid var(--line); background: #fff;
  cursor: pointer; display: grid; place-items: center;
  transition: background .2s, border-color .2s, opacity .2s, transform var(--release) var(--ease-out);
}
.c-btn:active { transform: scale(.94); transition-duration: .2s, .2s, .2s, var(--press); }
.c-btn svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 2; transition: stroke .2s; }
@media (hover: hover) {
  .c-btn:hover { background: var(--ink); border-color: var(--ink); }
  .c-btn:hover svg { stroke: #fff; }
}
.c-btn:disabled { opacity: .35; cursor: default; }
.track, .team-strip { position: relative; }
.track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 6px; scrollbar-width: none; overscroll-behavior-x: contain;
  scroll-padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.track::-webkit-scrollbar { display: none; }
.track::before, .track::after { content: ""; flex: 0 0 max(0px, calc((100vw - var(--wrap)) / 2)); }
/* While a drag or spring drives the position, the browser must not snap against it */
.is-driven { scroll-snap-type: none !important; }
.has-mouse [data-track] { cursor: grab; }
.is-dragging, .is-dragging * { cursor: grabbing !important; user-select: none; }

/* Case cards: name and result only, the whole card opens the case */
.case {
  position: relative; flex: 0 0 min(400px, 78vw); min-height: clamp(340px, 30vw, 400px);
  display: flex; flex-direction: column; padding: 28px 28px 26px;
  border-radius: var(--radius); scroll-snap-align: start;
  color: #fff; text-decoration: none; background: var(--green-deep);
  transition: background .25s, transform var(--release) var(--ease-out);
}
.case:nth-child(2n) { background: #0B4D3C; }
.case:active { transform: scale(.985); transition-duration: .25s, var(--press); }
.is-dragging .case:active { transform: none; }
@media (hover: hover) { .case:hover { background: #04936D; } }
.case .case-tag { color: rgba(255,255,255,.7); }
.case-name { font-size: clamp(1.5rem, 2.2vw, 1.875rem); line-height: 1.12; letter-spacing: -0.022em; max-width: 14ch; }
.case-foot { margin-top: auto; padding-top: 32px; }
.case .case-num { color: #fff; }
.case .case-num.tbc { color: rgba(255,255,255,.35); }
.case .case-metric { color: rgba(255,255,255,.85); font-weight: 500; margin: 8px 0 18px; max-width: 26ch; }
.case .case-more { color: var(--green-bright); }
.case-tag { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.case-num { font-size: clamp(3rem, 5vw, 4.25rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; color: var(--green-deep); font-variant-numeric: lining-nums; }
.case-num.tbc { color: #B5C0BB; font-weight: 600; letter-spacing: -0.03em; }
.case-metric { font-weight: 600; font-size: 1rem; margin: 8px 0 10px; line-height: 1.35; letter-spacing: -0.005em; }
.case-more { font-size: .875rem; font-weight: 600; color: var(--green-deep); letter-spacing: .005em; }
.carousel-progress { max-width: var(--wrap); margin: 28px auto 0; padding: 0 var(--gutter); }
.carousel-progress div { height: 2px; background: var(--line); position: relative; overflow: hidden; border-radius: 2px; }
/* Follows the scroll position 1:1, so no transition of its own */
.carousel-progress span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); width: 20%; will-change: transform; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  background: var(--bg-soft); border-radius: var(--radius); padding: 34px 30px 30px;
  display: flex; flex-direction: column; text-decoration: none; min-height: 330px;
  transition: background .25s, color .25s, transform var(--release) var(--ease-out);
}
.section-soft .service { background: #fff; }
.service:active { transform: scale(.985); transition-duration: .25s, .25s, var(--press); }
@media (hover: hover) {
  .service:hover, .section-soft .service:hover { background: var(--green-deep); color: #fff; }
  .service:hover p, .service:hover .service-for { color: rgba(255,255,255,.82); }
  .service:hover .link { color: #fff; }
}
.service-for { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.service h3 { font-size: 1.75rem; line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 14px; }
.service p { color: var(--ink-soft); font-size: .96875rem; margin-bottom: 28px; }
.service .link { margin-top: auto; align-self: flex-start; }

/* ---------- How we work ---------- */
.how { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; }
.how-intro { color: var(--ink-soft); margin-top: 20px; max-width: 380px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding: 30px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-n { font-size: .875rem; font-weight: 600; color: var(--green); padding-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.steps h3 { font-size: 1.625rem; line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 8px; }
.steps p { color: var(--ink-soft); max-width: 520px; }

/* ---------- Team ---------- */
.team { background: #EFEBE4; border-radius: var(--radius); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: center; overflow: hidden; }
.team h2 { font-size: clamp(2.25rem, 4.4vw, 3.75rem); line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 20px; }
.team p { color: var(--ink-soft); margin-bottom: 28px; max-width: 420px; }
.team-strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; margin-right: calc(-1 * clamp(32px, 5vw, 64px)); padding-right: 40px; }
.team-strip::-webkit-scrollbar { display: none; }
.team-strip img { flex: 0 0 auto; width: clamp(150px, 16vw, 210px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; scroll-snap-align: start; background: #ddd; -webkit-user-drag: none; }
.team-controls { display: flex; gap: 8px; }

/* ---------- Closing CTA ---------- */
.cta { padding: clamp(90px, 12vw, 170px) 0; }
.cta h2 { font-size: clamp(2.75rem, 7vw, 6.5rem); line-height: .98; letter-spacing: -0.04em; max-width: 13ch; margin-bottom: 28px; }
.cta p { color: var(--ink-soft); font-size: 1.1875rem; margin-bottom: 36px; max-width: 520px; }
.cta p a { color: var(--green-deep); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-dark); color: #fff; padding: 72px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-tag { font-size: clamp(1.625rem, 3vw, 2.375rem); font-weight: 500; letter-spacing: -0.022em; line-height: 1.2; margin-top: 26px; max-width: 14ch; }
.footer-tag em { font-style: normal; color: var(--green-bright); }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 32px; align-content: start; }
.footer-nav a { font-size: clamp(1.375rem, 2.2vw, 1.875rem); font-weight: 500; letter-spacing: -0.015em; text-decoration: none; padding: 4px 0; color: #fff; transition: color .15s; }
.footer-nav a:active { color: var(--green-bright); }
@media (hover: hover) { .footer-nav a:hover { color: var(--green-bright); } }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: .875rem; letter-spacing: .005em; color: rgba(255,255,255,.62); }
.footer-bottom a { color: rgba(255,255,255,.85); text-decoration: none; }
@media (hover: hover) { .footer-bottom a:hover { color: #fff; } }
.footer .brand span { color: #fff; }

/* ---------- Reveal (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Homepage blocks ---------- */
.results { padding-top: clamp(8px, 2vw, 24px); }
.results-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.results-head h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 6px; }
.results-head p { color: var(--ink-soft); }
.case-pending { display: block; width: fit-content; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: rgba(255,255,255,.75); border: 1px dashed rgba(255,255,255,.4); border-radius: 6px; padding: 6px 10px; margin-bottom: 18px; }
.what { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.what h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1.02; letter-spacing: -0.032em; margin-bottom: 20px; }
.what-intro { color: var(--ink-soft); font-size: 1.125rem; line-height: 1.5; max-width: 380px; margin-bottom: 26px; }
.svc-list { border-top: 1px solid rgba(15,31,26,.12); }
.svc {
  display: grid; grid-template-columns: 48px 1fr 44px; gap: 18px; align-items: center;
  padding: 26px 8px 26px 4px; border-bottom: 1px solid rgba(15,31,26,.12); text-decoration: none; color: var(--ink);
  border-radius: 10px; transition: background .2s, transform var(--release) var(--ease-out);
}
.svc:active { transform: scale(.99); transition-duration: .2s, var(--press); }
.svc-n { font-size: .875rem; font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums; padding-left: 4px; }
.svc-name { display: block; font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.022em; margin-bottom: 6px; }
.svc-desc { display: block; color: var(--ink-soft); font-size: .96875rem; line-height: 1.5; max-width: 48ch; }
.svc-go { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(15,31,26,.15); display: grid; place-items: center; background: #fff; transition: background .2s, border-color .2s; }
.svc-go svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--release) var(--ease-out), stroke .2s; }
@media (hover: hover) {
  .svc:hover { background: rgba(255,255,255,.7); }
  .svc:hover .svc-go { background: var(--ink); border-color: var(--ink); }
  .svc:hover .svc-go svg { stroke: #fff; transform: translate(1px, -1px); }
}
.cta-band {
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
  background: var(--green-deep); color: #fff; border-radius: var(--radius); padding: clamp(32px, 5vw, 64px);
}
.cta-band h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 16ch; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.82); }
.cta-band p a { color: #fff; font-weight: 600; }
@media (max-width: 960px) { .hero-grid, .what { grid-template-columns: 1fr; } .hero-grid { gap: 28px; } }
@media (max-width: 760px) {
  .results-head .carousel-controls { display: none; }
  .svc { grid-template-columns: 34px 1fr 36px; gap: 12px; }
  .svc-go { width: 36px; height: 36px; }
  .cta-band .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .svc:active { transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section-head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .section-head p { justify-self: start; }
  .services { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .how { grid-template-columns: 1fr; gap: 24px; }
  .team { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .nav { top: 10px; left: 10px; right: 10px; }
  .nav-main { flex-wrap: wrap; width: 100%; justify-content: space-between; }
  .nav-toggle { display: block; }
  /* Opened, the bar becomes a large surface, so it turns near-solid to stay legible over the photo */
  .nav-main { transition: background .3s var(--ease-out), box-shadow .3s var(--ease-out); }
  .nav.open .nav-main { background: rgba(255,255,255,.96); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(15,31,26,.06), 0 18px 50px rgba(0,0,0,.28); }
  /* Menu grows down out of the bar and folds back the same way */
  .nav-links {
    flex-direction: column; width: 100%; padding: 0; overflow: hidden;
    max-height: 0; opacity: 0; visibility: hidden;
    transition: max-height .3s var(--ease-out), opacity .18s, padding .3s var(--ease-out), visibility 0s .3s;
  }
  .nav.open .nav-links {
    max-height: 420px; opacity: 1; visibility: visible; padding: 8px 0 4px;
    transition: max-height .38s var(--ease-out), opacity .24s .04s, padding .38s var(--ease-out), visibility 0s;
  }
  .nav.open .nav-toggle span:first-child { transform: translateY(3px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .nav-links { order: 3; }
  .nav-links a { font-size: 1.125rem; padding: 12px 10px; }
  .nav-links a.nav-cta-mobile { color: #052A1F; font-weight: 600; padding: 15px 22px; }
  .nav-cta { display: none; }
  .nav-cta-mobile { display: inline-flex; margin: 4px 0 8px; width: 100%; justify-content: center; }
  .case { flex-basis: 80vw; min-height: 320px; padding: 24px 22px 22px; }
  .carousel-controls { display: none; }
  .steps li { grid-template-columns: 44px 1fr; }
  .footer-nav { grid-template-columns: 1fr; }
}

/* ---------- Accessibility preferences ---------- */
/* Reduced motion keeps the feedback, drops the travel: fades instead of slides, no scale */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity .3s ease; }
  .btn:active, .c-btn:active, .case:active, .service:active { transform: none; }
  .arrow { transition: none; }
  .nav-links, .nav.open .nav-links { transition: opacity .2s, visibility 0s; }
}
/* Reduced transparency: solid surfaces, no blur */
@media (prefers-reduced-transparency: reduce) {
  .nav-main { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
/* More contrast: near-solid surfaces with defined borders */
@media (prefers-contrast: more) {
  .nav-main { background: #fff; border: 1px solid var(--ink); }
  .c-btn { border-color: var(--ink); }
  .case-tag, .service-for, .section-head p, .steps p { color: var(--ink); }
}

/* =====================================================================
   Subpages
   ===================================================================== */

/* ---------- Page header: answers "where am I" first ---------- */
.page-head { padding: clamp(150px, 17vw, 220px) 0 clamp(48px, 6vw, 84px); }
.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 22px; }
.page-head h1 { font-size: clamp(2.75rem, 6.4vw, 6rem); line-height: .98; letter-spacing: -0.04em; max-width: 14ch; }
.page-head h1 em { font-style: normal; color: var(--green); }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.375rem); color: var(--ink-soft); max-width: 640px; margin-top: 28px; line-height: 1.5; }

/* ---------- Sticky sub navigation: translucent layer, sliding indicator ---------- */
.subnav { position: sticky; top: 78px; z-index: 40; padding: 0 0 8px; pointer-events: none; }
.subnav .wrap { display: flex; }
.subnav-inner {
  position: relative; display: inline-flex; gap: 2px; padding: 5px; border-radius: 12px; pointer-events: auto;
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
  background: rgba(255,255,255,.74);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 0 0 1px rgba(15,31,26,.06), 0 6px 22px rgba(0,0,0,.06);
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a {
  position: relative; z-index: 1; flex: 0 0 auto; font-size: .875rem; font-weight: 600; letter-spacing: .005em;
  text-decoration: none; color: var(--ink-soft); padding: 9px 14px; border-radius: 8px; transition: color .2s;
}
.subnav a.is-active { color: #fff; }
.subnav a:active { color: var(--ink); }
.subnav a.is-active:active { color: #fff; }
/* Colour sits on a solid layer under the translucent bar */
.subnav-ind { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 8px; background: var(--ink); opacity: 0; will-change: transform, width; }
@media (hover: hover) { .subnav a:not(.is-active):hover { color: var(--ink); } }

/* ---------- Detail blocks (services, cases) ---------- */
.detail { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 6vw, 88px); padding: clamp(64px, 8vw, 112px) 0; border-top: 1px solid var(--line); scroll-margin-top: 150px; }
.detail:first-child { border-top: 0; }
.detail h2 { font-size: clamp(2.25rem, 4.4vw, 3.75rem); line-height: 1.02; letter-spacing: -0.032em; }
.detail-aside p { color: var(--ink-soft); margin-top: 20px; max-width: 420px; }
.detail-body > p { color: var(--ink-soft); margin-bottom: 18px; max-width: 640px; }
.detail-body > p:first-child { color: var(--ink); font-size: 1.1875rem; line-height: 1.5; font-weight: 500; letter-spacing: -0.005em; }
.detail-body h3 { font-size: 1.125rem; letter-spacing: -0.01em; margin: 34px 0 14px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300614A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 34px; }
.facts div { background: var(--bg); padding: 18px 20px; }
.section-soft .facts div { background: var(--bg-soft); }
.facts dt { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; font-weight: 600; line-height: 1.35; }

/* ---------- Card grid ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--bg-soft); border-radius: var(--radius); padding: 28px 26px; }
.section-soft .card { background: #fff; }
.card .case-tag { margin-bottom: 12px; }
.card h3 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: .9375rem; line-height: 1.55; }
.block-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 44px; }
.block-head h2 { font-size: clamp(2.25rem, 4.4vw, 3.75rem); line-height: 1.02; letter-spacing: -0.032em; }
.block-head p { color: var(--ink-soft); max-width: 460px; justify-self: end; }

/* ---------- Road to results ---------- */
.road { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: road; }
.road li { background: #fff; border-radius: 12px; padding: 20px 18px; counter-increment: road; }
.road li::before { content: "Step " counter(road); display: block; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.road strong { display: block; font-size: 1.0625rem; letter-spacing: -0.01em; margin-bottom: 4px; }
.road span { font-size: .875rem; color: var(--muted); }
.note { margin-top: 22px; color: var(--ink-soft); font-size: .9375rem; }

/* ---------- Case list: names first, a case opens in place ---------- */
.case-list > .case-item:first-child { border-top: 1px solid var(--line); }
.case-item { border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.case-item h2 { font: inherit; letter-spacing: normal; }
.case-toggle {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer;
  display: grid; grid-template-columns: 1fr auto 46px; gap: clamp(16px, 3vw, 40px); align-items: center;
  padding: clamp(24px, 3vw, 36px) 0;
}
.case-toggle:focus-visible { outline: 2px solid var(--green-bright); outline-offset: 4px; border-radius: 8px; }
.ci-tag { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.ci-name { display: block; font-size: clamp(1.5rem, 3.2vw, 2.625rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; color: var(--ink); transition: color .2s; text-wrap: balance; }
.ci-num { font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; color: var(--green-deep); }
.ci-num.tbc { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; color: #B5C0BB; }
.ci-icon {
  position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  transition: background .2s, border-color .2s, transform var(--release) var(--ease-out);
}
.ci-icon::before, .ci-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px;
  background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease-out), background .2s;
}
.ci-icon::after { transform: rotate(90deg); }
.case-toggle:active .ci-icon { transform: scale(.92); transition-duration: .2s, .2s, var(--press); }
.case-item.open .ci-icon { background: var(--ink); border-color: var(--ink); }
.case-item.open .ci-icon::before, .case-item.open .ci-icon::after { background: #fff; }
.case-item.open .ci-icon::after { transform: rotate(0deg); }
@media (hover: hover) {
  .case-toggle:hover .ci-name { color: var(--green-deep); }
  .case-toggle:hover .ci-icon { border-color: var(--ink); }
}
/* Height follows the content; a CSS transition reverses from wherever it is if clicked again mid-way */
.case-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.case-item.open .case-panel { grid-template-rows: 1fr; }
.case-panel-inner { overflow: hidden; min-height: 0; }
.case-panel-body { padding: 0 0 clamp(36px, 4vw, 52px); opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .45s var(--ease-out); }
.case-item.open .case-panel-body { opacity: 1; transform: none; transition: opacity .35s .08s, transform .45s var(--ease-out); }
.ci-summary { font-size: 1.1875rem; font-weight: 500; margin-bottom: 28px; max-width: 640px; }
.ci-summary strong { color: var(--green-deep); }
.story { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); padding-right: 86px; }
.story h3 { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.story p { color: var(--ink-soft); }

/* ---------- Pull quote ---------- */
.quote { font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.024em; max-width: 22ch; text-wrap: balance; }
.quote-by { margin-top: 22px; color: var(--muted); font-size: .9375rem; }

/* ---------- About ---------- */
.prose-2 { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 6vw, 88px); }
.prose-2 h2 { font-size: clamp(2.25rem, 4.4vw, 3.75rem); line-height: 1.02; letter-spacing: -0.032em; }
.prose-2 .detail-body > p { font-size: 1.0625rem; }
.team-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.team-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; background: #ddd; }
.ext-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip-link {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: .9375rem;
  padding: 10px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--line);
  transition: border-color .2s, transform var(--release) var(--ease-out);
}
.chip-link:active { transform: scale(.97); transition-duration: .2s, var(--press); }
@media (hover: hover) { .chip-link:hover { border-color: var(--ink); } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.next-steps { list-style: none; margin: 34px 0 0; padding: 0; }
.next-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 20px 0; border-top: 1px solid var(--line); }
.next-steps li:last-child { border-bottom: 1px solid var(--line); }
.next-steps strong { display: block; letter-spacing: -0.01em; margin-bottom: 2px; }
.next-steps p { color: var(--ink-soft); font-size: .9375rem; }
.direct { margin-top: 34px; display: grid; gap: 6px; color: var(--ink-soft); font-size: .9375rem; }
.direct a { color: var(--green-deep); font-weight: 600; text-decoration: none; }
.form-card { background: var(--bg-soft); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); position: relative; }
.form-card h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.08; letter-spacing: -0.025em; margin-bottom: 8px; }
.form-card > p { color: var(--ink-soft); margin-bottom: 28px; }
.field { display: grid; gap: 7px; margin-bottom: 18px; align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field label, .field legend { font-size: .875rem; font-weight: 600; letter-spacing: .005em; padding: 0; }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  font: 500 1rem/1.4 'Montserrat', sans-serif; color: var(--ink); width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 13px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(11,199,118,.22); }
.field [aria-invalid="true"] { border-color: #8A5A00; box-shadow: 0 0 0 3px rgba(138,90,0,.14); }
.field-msg { font-size: .8125rem; color: #8A5A00; min-height: 0; }
.field-msg:empty { display: none; }
fieldset.field { border: 0; margin: 0 0 18px; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 3px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: block; font-size: .9375rem; font-weight: 600; padding: 10px 14px; border-radius: 9px;
  background: #fff; border: 1px solid var(--line); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform var(--release) var(--ease-out);
}
.choice input:active + span { transform: scale(.97); transition-duration: .15s, .15s, .15s, var(--press); }
.choice input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--green-bright); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .875rem; color: var(--ink-soft); margin: 6px 0 22px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green-deep); }
.form-card .btn { width: 100%; justify-content: center; padding: 16px 22px; font-size: 1rem; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.form-status { margin-top: 14px; font-size: .9375rem; }
.form-status.error { color: #8A5A00; }
.form-done { display: none; text-align: left; }
.form-done .done-mark { width: 52px; height: 52px; border-radius: 50%; background: var(--green-bright); display: grid; place-items: center; margin-bottom: 22px; }
.form-done .done-mark svg { width: 26px; height: 26px; stroke: #052A1F; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form-card.is-done form, .form-card.is-done > h2, .form-card.is-done > p { display: none; }
.form-card.is-done .form-done { display: block; animation: materialize .5s var(--ease-out) both; }
@keyframes materialize { from { opacity: 0; transform: scale(.97); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.booking-slot {
  border: 1px dashed #B5C0BB; border-radius: var(--radius); padding: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.booking-slot h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1.08; letter-spacing: -0.025em; margin-bottom: 8px; }
.booking-slot p { color: var(--ink-soft); }
.tbd { font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px dashed #B5C0BB; border-radius: 6px; padding: 5px 9px; white-space: nowrap; }

/* ---------- Subpage responsive ---------- */
@media (max-width: 1100px) { .road { grid-template-columns: repeat(3, 1fr); } .team-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 960px) {
  .detail, .prose-2, .contact, .block-head { grid-template-columns: 1fr; }
  .story { padding-right: 0; }
  .block-head p { justify-self: start; }
  .cards, .story { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .subnav { top: 74px; }
  .road { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .booking-slot { grid-template-columns: 1fr; }
  .case-toggle { grid-template-columns: 1fr 40px; row-gap: 14px; }
  .ci-num { grid-column: 1; grid-row: 2; }
  .ci-icon { grid-column: 2; grid-row: 1; width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .form-card.is-done .form-done { animation: fade .3s ease both; }
  .choice input:active + span, .chip-link:active, .case-toggle:active .ci-icon { transform: none; }
  .case-panel, .case-panel-body, .case-item.open .case-panel-body { transition: opacity .2s; transform: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-transparency: reduce) { .subnav-inner { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (prefers-contrast: more) { .subnav-inner { background: #fff; border: 1px solid var(--ink); } .field input, .field textarea, .choice span { border-color: var(--ink); } }

/* =====================================================================
   Modern minimal layer: white space, hairlines, green only as accent
   ===================================================================== */
:root { --line: #E6EAE8; --radius: 18px; }
body { background: #fff; }
h1, h2, .page-head h1, .hero h1, .section-head h2, .block-head h2, .detail h2, .what h2, .prose-2 h2, .cta-band h2, .results-head h2 { font-weight: 500; }
.hero h1, .page-head h1 { letter-spacing: -0.05em; }

/* Small label with a status dot */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); letter-spacing: .1em; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 4px rgba(11,199,118,.15); }

/* Pill buttons */
.btn { border-radius: 999px; padding: 13px 22px; }
.btn-primary { background: var(--ink); color: #fff; }
@media (hover: hover) { .btn-primary:hover { background: var(--green-deep); } }
.btn-quiet { background: transparent; }
.c-btn { border-radius: 50%; width: 44px; height: 44px; }

/* One slim bar: brand, links, action */
.nav { justify-content: center; }
.nav-main {
  width: 100%; max-width: 1180px; border-radius: 999px; padding: 7px 7px 7px 16px; gap: 8px;
  background: rgba(255,255,255,.78); box-shadow: 0 0 0 1px rgba(15,31,26,.07), 0 8px 30px rgba(0,0,0,.05);
}
.brand { margin-right: 0; }
.brand img { width: 28px; height: 28px; }
.nav-links { flex: 1; justify-content: center; }
.nav-links a { border-radius: 999px; padding: 8px 14px; }
.nav-cta { padding: 10px 18px; font-size: .875rem; box-shadow: none; }

/* Result cards: white, hairline border, the number carries the colour */
.case {
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  min-height: clamp(320px, 27vw, 370px);
  transition: border-color .2s, box-shadow .3s var(--ease-out), transform var(--release) var(--ease-out);
}
.case:nth-child(2n) { background: #fff; }
@media (hover: hover) { .case:hover { background: #fff; border-color: rgba(15,31,26,.18); box-shadow: 0 18px 40px rgba(15,31,26,.07); } }
.case .case-tag { color: var(--muted); }
.case-name { font-weight: 600; }
.case .case-num { color: var(--green-deep); font-weight: 600; letter-spacing: -0.05em; }
.case .case-metric { color: var(--ink-soft); }
.case .case-more { color: var(--ink); }
.case-pending { color: var(--muted); border-color: #C9D2CE; font-weight: 500; }
.results-head { border-top: 0; padding-top: 0; }
.carousel-progress div { height: 1px; }

/* Services rows sit on white; the section is separated by space, not colour */
#services.section-soft { background: #fff; }
.results { padding-bottom: clamp(48px, 6vw, 80px); }
#services { padding-top: clamp(48px, 6vw, 80px); }
.cta-wrap { padding-top: 0; }
.section-soft + .cta-wrap { padding-top: clamp(64px, 8vw, 112px); }
.svc-list, .svc { border-color: var(--line); }
.svc-go { border-color: var(--line); }
@media (hover: hover) { .svc:hover { background: var(--bg-soft); } }

/* Closing band: pale mint instead of a heavy block */
.cta-band { background: var(--green-pale); color: var(--ink); }
.cta-band p { color: var(--ink-soft); }
.cta-band p a { color: var(--green-deep); }

/* Light footer */
.footer { background: #fff; color: var(--ink); border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer .brand span, .footer-nav a { color: var(--ink); }
.footer-tag { font-weight: 500; }
.footer-tag em { color: var(--green); }
.footer-top { border-bottom-color: var(--line); padding-bottom: 40px; }
.footer-nav a { font-size: clamp(1.125rem, 1.6vw, 1.375rem); }
@media (hover: hover) { .footer-nav a:hover { color: var(--green); } .footer-bottom a:hover { color: var(--ink); } }
.footer-nav a:active { color: var(--green); }
.footer-bottom { color: var(--muted); }
.footer-bottom a { color: var(--ink-soft); }

/* Subpage surfaces follow the same rule */
.card, .section-soft .card { background: #fff; border: 1px solid var(--line); }
.road li { border: 1px solid var(--line); }
.form-card { background: #fff; border: 1px solid var(--line); }
.choice input:checked + span { background: var(--ink); }
.chip-link { border-radius: 999px; }
.subnav-inner, .subnav a, .subnav-ind { border-radius: 999px; }
.ci-num { font-weight: 600; }

@media (max-width: 760px) {
  .nav-main { border-radius: 22px; padding: 7px 7px 7px 14px; }
  .nav-links { flex: none; justify-content: flex-start; }
}
@media (prefers-reduced-transparency: reduce) { .nav-main { background: #fff; } }
@media (prefers-contrast: more) { .case, .card { border-color: var(--ink); } }

/* =====================================================================
   2Impact brand layer (vault HTML Style Guide): green-tinted page,
   dark green headings, emerald pill buttons, soft-shadow white cards,
   brand gradient bands
   ===================================================================== */
:root {
  --primary: #05AE81;
  --primary-dark: #00614A;
  --primary-light: #6BD8B6;
  --sage: #55A38B;
  --gradient: linear-gradient(135deg, #00614A, #55A38B);
  --ink: #1A1A1A;
  --ink-soft: #555;
  --muted: #6B7772;
  --bg: #F8FAF9;
  --bg-soft: #EEF5F1;
  --line: #E0E7E3;
  --shadow: 0 4px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,40,30,.12);
  --radius: 20px;
}
body { background: var(--bg); color: var(--ink); }
h1, h2, .page-head h1, .hero h1, .section-head h2, .block-head h2, .detail h2, .what h2, .prose-2 h2, .results-head h2, .form-card h2, .booking-slot h2 { font-weight: 700; color: var(--primary-dark); }
.hero h1, .page-head h1 { letter-spacing: -0.045em; }
.hero h1 em, .page-head h1 em, .statement em { color: var(--primary); }
h3 { color: var(--ink); }

/* Hero: a soft mint glow behind the headline */
.hero, .page-head { position: relative; isolation: isolate; }
.hero::before, .page-head::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto 0; height: 100%; pointer-events: none;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(107,216,182,.28), transparent 70%),
    radial-gradient(45% 55% at 5% 0%, rgba(5,174,129,.10), transparent 70%);
}

/* Label: emerald, uppercase, with a live dot */
.eyebrow { color: var(--primary); }
.eyebrow::before { background: var(--primary); box-shadow: 0 0 0 4px rgba(5,174,129,.16); }

/* Buttons: emerald pill, deep green on hover with a green glow */
.btn-primary, .btn-dark { background: var(--primary); color: #fff; }
@media (hover: hover) {
  .btn-primary:hover, .btn-dark:hover { background: var(--primary-dark); box-shadow: 0 6px 20px rgba(5,174,129,.35); }
}
.btn-quiet { color: var(--primary-dark); border: 2px solid var(--primary-dark); background: transparent; padding: 11px 20px; }
@media (hover: hover) { .btn-quiet:hover { background: var(--primary-dark); color: #fff; border-color: var(--primary-dark); } }
.link { color: var(--primary-dark); border-bottom-color: rgba(5,174,129,.5); }
:focus-visible { outline-color: var(--primary); }

/* Navigation */
.nav-main { background: rgba(255,255,255,.88); box-shadow: 0 0 0 1px rgba(0,97,74,.07), 0 8px 30px rgba(0,40,30,.07); }
.brand span { color: var(--primary-dark); }
.nav-links a { color: #3A4A44; }
.nav-links a[aria-current="page"] { background: rgba(5,174,129,.12); color: var(--primary-dark); }
@media (hover: hover) { .nav-links a:hover { background: rgba(5,174,129,.10); color: var(--primary-dark); } }
.nav-links a.nav-cta-mobile { color: #fff; }

/* Result cards: white, soft shadow, lift on hover */
.case {
  border: 0; box-shadow: var(--shadow); border-radius: var(--radius);
  transition: box-shadow .3s var(--ease-out), transform .35s var(--ease-out);
}
@media (hover: hover) { .case:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); } }
.case .case-tag { color: var(--primary); }
.case-name { color: var(--primary-dark); font-weight: 700; }
.case .case-num { color: var(--primary); font-weight: 800; }
.case .case-more { color: var(--primary-dark); }
.carousel-progress span { background: var(--primary); }
.c-btn { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.c-btn svg { stroke: var(--primary-dark); }
@media (hover: hover) { .c-btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); } }

/* Services rows */
#services.section-soft { background: var(--bg); }
.svc-list { background: #fff; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 14px; }
.svc { border-color: var(--line); }
.svc:last-child { border-bottom: 0; }
.svc-n { color: var(--primary); }
.svc-name { color: var(--primary-dark); font-weight: 700; }
.svc-go svg { stroke: var(--primary-dark); }
@media (hover: hover) {
  .svc:hover { background: var(--bg); }
  .svc:hover .svc-go { background: var(--primary); border-color: var(--primary); }
}

/* Closing band: the brand gradient, white text */
.cta-band { background: var(--gradient); color: #fff; box-shadow: 0 8px 60px rgba(107,216,182,.3); position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(107,216,182,.35), transparent 65%); pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-weight: 700; }
.cta-band p { color: rgba(255,255,255,.86); }
.cta-band p a { color: #fff; }
.cta-band .btn-primary { background: #fff; color: var(--primary-dark); }
@media (hover: hover) { .cta-band .btn-primary:hover { background: var(--primary-light); color: var(--primary-dark); box-shadow: 0 6px 20px rgba(0,0,0,.18); } }

/* Footer: deep brand green */
.footer { background: var(--primary-dark); color: #fff; border-top: 0; }
.footer .brand span, .footer-nav a { color: #fff; }
.footer-tag em { color: var(--primary-light); }
.footer-top { border-bottom-color: rgba(255,255,255,.16); }
.footer-bottom { color: rgba(255,255,255,.7); }
.footer-bottom a { color: #fff; }
@media (hover: hover) { .footer-nav a:hover, .footer-bottom a:hover { color: var(--primary-light); } }
.footer-nav a:active { color: var(--primary-light); }

/* Subpages */
.section-soft { background: var(--bg-soft); }
.card, .section-soft .card { background: #fff; border: 0; box-shadow: var(--shadow); border-radius: var(--radius); transition: box-shadow .3s var(--ease-out), transform .35s var(--ease-out); }
@media (hover: hover) { .card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); } }
.card h3 { color: var(--primary-dark); }
.card .case-tag { color: var(--primary); }
.road li { border: 0; box-shadow: var(--shadow); }
.road li::before, .step-n, .story h3 { color: var(--primary); }
.road strong { color: var(--primary-dark); }
.form-card { border: 0; box-shadow: var(--shadow); }
.facts { border-color: var(--line); background: var(--line); }
.facts div { background: #fff; }
.facts dd { color: var(--primary-dark); }
.checklist li::before { background-color: rgba(5,174,129,.14); }
.subnav-ind { background: var(--primary-dark); }
.choice input:checked + span { background: var(--primary-dark); border-color: var(--primary-dark); }
.field input:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(5,174,129,.2); }
.consent input { accent-color: var(--primary); }
.form-done .done-mark { background: var(--primary); }
.form-done .done-mark svg { stroke: #fff; }
.chip-link { color: var(--primary-dark); }
@media (hover: hover) { .chip-link:hover { border-color: var(--primary); } }
.quote { color: var(--primary-dark); border-left: 4px solid var(--primary); padding-left: clamp(18px, 3vw, 32px); }
.direct a { color: var(--primary-dark); }

/* Case list on the cases page */
.ci-name { color: var(--primary-dark); font-weight: 700; }
.ci-tag { color: var(--primary); }
.ci-num { color: var(--primary); font-weight: 800; }
.case-item.open .ci-icon { background: var(--primary-dark); border-color: var(--primary-dark); }
@media (hover: hover) { .case-toggle:hover .ci-name { color: var(--primary); } .case-toggle:hover .ci-icon { border-color: var(--primary); } }
.ci-summary strong { color: var(--primary); }

@media (prefers-contrast: more) { .case, .card, .svc-list, .form-card { box-shadow: none; border: 1px solid var(--ink); } }
@media (prefers-reduced-motion: reduce) { .case:hover, .card:hover { transform: none; } }

/* ---------- Results with figures ---------- */
.case-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.case-top .case-tag { margin-bottom: 14px; }
.case-badge { flex: none; font-size: .6875rem; font-weight: 600; letter-spacing: .02em; color: var(--primary-dark); background: rgba(5,174,129,.12); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.case-metric-plain { font-size: 1.0625rem; color: var(--ink-soft); margin: 0 0 18px; }
.case .case-metric { font-size: .9375rem; line-height: 1.45; max-width: 30ch; }

.ci-summary { font-size: 1.125rem; line-height: 1.55; color: var(--ink); max-width: 760px; }
.ci-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 86px 36px 0; }
.ci-stats div { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 22px 22px 20px; border-top: 3px solid var(--primary); }
.ci-stats strong { display: block; font-size: clamp(1.75rem, 2.8vw, 2.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--primary-dark); margin-bottom: 10px; font-variant-numeric: lining-nums; }
.ci-stats span { display: block; font-size: .875rem; line-height: 1.45; color: var(--ink-soft); }
.story .checklist { gap: 10px; }
.story .checklist li { font-size: .9375rem; line-height: 1.5; }
.ci-proj { margin: 26px 86px 0 0; font-size: .8125rem; color: var(--muted); }
.case-panel-body .facts { margin: 28px 86px 0 0; }
.ci-num.tbc { color: var(--muted); font-size: 1rem; font-weight: 600; background: rgba(5,174,129,.1); border-radius: 999px; padding: 6px 12px; }
@media (max-width: 960px) {
  .ci-stats { grid-template-columns: 1fr; margin-right: 0; }
  .ci-proj, .case-panel-body .facts { margin-right: 0; }
}
.case-panel-body .facts { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .case-panel-body .facts { grid-template-columns: 1fr; } }

/* ---------- Team: two slow rows drifting in opposite directions ---------- */
.team-marquee { display: grid; gap: 14px; margin-inline: calc(-1 * var(--gutter)); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tm-track { display: flex; width: max-content; animation: tm-drift 60s linear infinite; }
.tm-rev .tm-track { animation-direction: reverse; animation-duration: 54s; }
.tm-set { display: flex; gap: 14px; padding-right: 14px; }
.tm-set img {
  width: clamp(150px, 15vw, 210px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; background: #dfe7e3;
  box-shadow: var(--shadow); transition: transform .4s var(--ease-out), box-shadow .3s var(--ease-out);
}
@media (hover: hover) {
  .team-marquee:hover .tm-track { animation-play-state: paused; }
  .tm-set img:hover { transform: translateY(-6px) scale(1.03); box-shadow: var(--shadow-lg); }
}
@keyframes tm-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* No drift when motion is reduced: one still, wrapping grid */
@media (prefers-reduced-motion: reduce) {
  .team-marquee { margin-inline: 0; -webkit-mask-image: none; mask-image: none; display: flex; flex-wrap: wrap; gap: 12px; }
  .tm-row, .tm-track, .tm-set { display: contents; animation: none; }
  .tm-set[aria-hidden] { display: none; }
  .tm-set img { width: calc((100% - 5 * 12px) / 6); }
}
.team-marquee { margin-inline: calc(50% - 50vw); }
.team-marquee.reveal { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .team-marquee { margin-inline: 0; } }
html, body { overflow-x: clip; }

/* ---------- Calmer headings: plain wording, a step smaller ---------- */
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.75rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 14ch; }
.page-head h1 { font-size: clamp(2.375rem, 4.8vw, 4.25rem); line-height: 1.05; letter-spacing: -0.035em; max-width: 20ch; }
.block-head h2, .detail h2, .prose-2 h2, .what h2 { font-size: clamp(1.875rem, 3.4vw, 2.875rem); letter-spacing: -0.025em; line-height: 1.1; }
.cta-band h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.025em; }
.hero h1 { max-width: 17ch; }
.ci-stats { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- Video hero (About): faded team footage under a deep green shade ---------- */
.video-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; text-align: center;
  min-height: min(88vh, 760px); display: grid; place-items: center;
  padding: clamp(130px, 14vw, 180px) 0 clamp(110px, 12vw, 170px);
  background: #0B2A22;
  clip-path: ellipse(140% 100% at 50% 0%);
}
.vh-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; filter: saturate(.8); }
.vh-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(0,40,30,.35), transparent 75%),
    linear-gradient(180deg, rgba(4,30,24,.78), rgba(0,60,46,.72) 55%, rgba(4,30,24,.9));
}
.vh-content { display: grid; justify-items: center; }
.vh-kicker {
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 22px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--primary-light);
}
.vh-kicker::before, .vh-kicker::after { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; opacity: .8; }
.video-hero h1 { color: #fff; font-weight: 800; font-size: clamp(2.75rem, 6.4vw, 5.5rem); line-height: 1.02; letter-spacing: -0.035em; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.video-hero h1 em { font-style: normal; color: var(--primary-light); }
.vh-tags { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.vh-tags li { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.9); padding: 2px 16px; }
.vh-tags li + li { border-left: 1px solid var(--primary); }
.vh-lede { margin-top: 30px; max-width: 620px; font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 1.65; color: rgba(255,255,255,.82); }
.vh-toggle {
  position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(70px, 8vw, 110px); width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); cursor: pointer; display: grid; place-items: center;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, transform var(--release) var(--ease-out);
}
.vh-toggle:active { transform: scale(.92); transition-duration: .2s, var(--press); }
@media (hover: hover) { .vh-toggle:hover { background: rgba(255,255,255,.2); } }
.vh-toggle svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.vh-toggle .i-play { display: none; fill: #fff; stroke: none; }
.vh-toggle.is-paused .i-pause { display: none; }
.vh-toggle.is-paused .i-play { display: block; }
@media (max-width: 760px) {
  .video-hero { min-height: 0; clip-path: ellipse(190% 100% at 50% 0%); }
  .vh-tags li { padding: 2px 10px; font-size: .6875rem; }
}
@media (prefers-reduced-transparency: reduce) { .vh-video { opacity: .3; } }
.vh-video { opacity: .9; filter: saturate(.75); }
.vh-shade {
  background:
    radial-gradient(60% 55% at 50% 48%, rgba(0,35,27,.55), transparent 80%),
    linear-gradient(180deg, rgba(4,30,24,.62), rgba(0,70,52,.5) 50%, rgba(4,30,24,.8));
}
@media (max-width: 760px) {
  .video-hero { padding-bottom: 130px; }
  .vh-tags { gap: 6px 0; }
  .vh-tags li + li { border-left: 0; }
  .vh-tags li:not(:last-child)::after { content: "·"; margin-left: 10px; color: var(--primary); }
  .vh-toggle { bottom: 64px; width: 36px; height: 36px; }
}

/* Homepage video hero */
.video-hero-home { min-height: min(92vh, 820px); }
.vh-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.btn-light { color: #fff; border: 2px solid rgba(255,255,255,.7); background: rgba(255,255,255,.06); padding: 11px 20px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (hover: hover) { .btn-light:hover { background: #fff; color: var(--primary-dark); border-color: #fff; } }
.video-hero + .results { padding-top: clamp(40px, 5vw, 72px); }
@media (max-width: 760px) { .vh-actions .btn { flex: 1 1 100%; justify-content: center; } }

/* ---------- Results carousel: inside the page margins, three cards across, numbers on one line ---------- */
.results .track {
  margin-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  padding: 14px 0 26px; margin-block: -14px -26px; scroll-padding-left: 0; gap: 20px;
}
.results .track::before, .results .track::after { display: none; }
.results .case { flex: 0 0 calc((100% - 40px) / 3); min-height: 0; }
.case-foot { display: grid; grid-template-rows: auto 4.4em; }
.case .case-metric { margin: 10px 0 0; align-self: start; }
.case-foot .case-metric-plain { grid-row: 2; }
@media (max-width: 1100px) { .results .case { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 760px) { .results .case { flex-basis: 86%; } }

/* ---------- Result cards with a photo behind them ---------- */
.case { position: relative; overflow: hidden; isolation: isolate; color: #fff; min-height: clamp(340px, 30vw, 400px); }
.case-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease-out); }
.case::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,40,30,.72) 0%, rgba(0,50,38,.35) 42%, rgba(0,40,30,.92) 100%);
  transition: background .4s var(--ease-out);
}
@media (hover: hover) {
  .case:hover .case-img { transform: scale(1.06); }
  .case:hover::before { background: linear-gradient(180deg, rgba(0,40,30,.6) 0%, rgba(0,60,45,.3) 42%, rgba(0,40,30,.9) 100%); }
}
.case .case-name { color: #fff; text-shadow: 0 1px 18px rgba(0,0,0,.25); }
.case .case-num { color: var(--primary-light); }
.case .case-metric, .case .case-metric-plain { color: rgba(255,255,255,.88); }
.case-foot { margin-top: auto; }

/* Cases overview: the same cards in a grid */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case-grid .case { min-height: clamp(320px, 32vw, 440px); }
.case-grid .case:first-child { grid-column: 1 / -1; min-height: clamp(340px, 34vw, 460px); }
.case-grid .case:first-child .case-name { font-size: clamp(1.75rem, 3vw, 2.5rem); max-width: 18ch; }
@media (max-width: 760px) { .case-grid { grid-template-columns: 1fr; } }

/* ---------- Case page hero: the case photo under a deep green shade ---------- */
.case-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #0B2A22;
  padding: clamp(140px, 15vw, 200px) 0 clamp(110px, 12vw, 160px); min-height: min(80vh, 680px); display: flex; align-items: flex-end;
  clip-path: ellipse(140% 100% at 50% 0%);
}
.ch-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: ch-zoom 18s ease-out both; }
@keyframes ch-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.ch-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4,30,24,.9), rgba(0,60,46,.62) 55%, rgba(4,30,24,.45)), linear-gradient(0deg, rgba(4,30,24,.6), transparent 50%); }
.ch-content { width: 100%; }
.ch-back { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; font-size: .875rem; margin-bottom: 28px; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s; }
.ch-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .ch-back:hover { background: rgba(255,255,255,.2); color: #fff; } }
.case-hero .vh-kicker { margin-bottom: 18px; }
.case-hero .vh-kicker::before { display: none; }
.case-hero h1 { color: #fff; font-weight: 800; font-size: clamp(2.5rem, 5.6vw, 4.75rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 16ch; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.ch-stat { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.25); max-width: 720px; }
.ch-stat strong { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--primary-light); }
.ch-stat span { color: rgba(255,255,255,.85); max-width: 34ch; line-height: 1.45; }

.case-body .wrap > * + * { margin-top: clamp(32px, 4vw, 48px); }
.ch-lede { font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.45; font-weight: 500; color: var(--primary-dark); max-width: 30ch; letter-spacing: -0.01em; }
@media (min-width: 961px) { .ch-lede { max-width: 46ch; } }
.case-body .ci-stats, .case-body .story, .case-body .ci-proj, .case-body .facts { margin-right: 0; padding-right: 0; }
.case-body .story h3 { margin-bottom: 14px; }
.case-body .story p { font-size: 1.0625rem; }

/* Next case */
.next-case-wrap { padding-top: 0; }
.next-case { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 220px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); color: #fff; text-decoration: none; }
.next-case img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease-out); }
.nc-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4,30,24,.9), rgba(0,60,46,.55)); }
.nc-label { display: block; font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--primary-light); margin-bottom: 10px; }
.nc-name { display: block; font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.nc-go { flex: none; width: 56px; height: 56px; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: transform var(--release) var(--ease-out); }
.nc-go svg { width: 22px; height: 22px; fill: none; stroke: var(--primary-dark); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .next-case:hover img { transform: scale(1.05); } .next-case:hover .nc-go { transform: translateX(4px); } }
.next-case + * { margin-top: 0; }
@media (max-width: 760px) { .case-hero { clip-path: ellipse(190% 100% at 50% 0%); min-height: 0; } .nc-go { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .ch-img { animation: none; } }
.ch-back { display: flex; width: fit-content; }
.case-hero .vh-kicker::after { display: none; }

/* ---------- Team: one row of large portrait cards, always drifting ---------- */
.team-marquee.team-big { display: block; -webkit-mask-image: none; mask-image: none; margin-top: 8px; }
.team-big .tm-track { animation: tm-drift 90s linear infinite; }
.team-big .tm-set { gap: 10px; padding-right: 10px; }
.team-big .tm-set img { width: clamp(230px, 26vw, 380px); aspect-ratio: 3 / 4; border-radius: 28px; box-shadow: none; }
@media (hover: hover) { .team-big .tm-set img:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); } }
@media (prefers-reduced-motion: reduce) {
  .team-marquee.team-big { display: block; margin-inline: calc(50% - 50vw); }
  .team-big .tm-row, .team-big .tm-track, .team-big .tm-set { display: flex; }
  .team-big .tm-track { animation: tm-drift 90s linear infinite; }
  .team-big .tm-set[aria-hidden] { display: flex; }
  .team-big .tm-set img { width: clamp(230px, 26vw, 380px); }
}
.team-big .tm-track { width: max-content !important; }
.team-big .tm-set { flex: none; }
.team-big .tm-set img { flex: none; }

/* Screen-fit pass: phones and small laptops */
.sn-short { display: none; }
@media (max-width: 520px) {
  .sn-long { display: none; }
  .sn-short { display: inline; }
  .subnav-inner { gap: 0; padding: 4px; }
  .subnav a { padding: 9px clamp(5px, 1.6vw, 10px); font-size: clamp(.75rem, 3.4vw, .8125rem); }
}
@media (max-width: 760px) {
  /* A lone last fact or step fills its row instead of leaving an empty cell */
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .road li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* Larger tap targets for footer and small text links */
  .footer-nav a { display: inline-block; padding: 8px 0; }
  .footer-bottom a { display: inline-block; padding: 10px 0; }
  .brand { padding: 8px 0; }
  .link { display: inline-block; padding: 10px 0 2px; }
}

/* ---------- Case screenshots and video ---------- */
.ci-stats.ci-stats-4 { grid-template-columns: repeat(2, 1fr); }
.case-media { margin: 44px 86px 0 0; display: grid; gap: 18px; }
.case-media.two { grid-template-columns: 1.15fr 1fr; align-items: start; }
.case-media figure { margin: 0; }
.case-media img, .case-media video { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); background: #dfe7e3; }
.case-media figcaption { margin-top: 10px; font-size: .8125rem; line-height: 1.45; color: var(--muted); }
.case-method { margin: 40px 86px 0 0; padding: 22px 26px; border-left: 3px solid var(--green); background: var(--green-pale); border-radius: 0 14px 14px 0; color: var(--ink); font-size: 1.0625rem; line-height: 1.55; }
.case-links { margin: 28px 86px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; }
.case-links a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) {
  .case-media, .case-method, .case-links { margin-right: 0; }
  .case-media.two, .ci-stats.ci-stats-4 { grid-template-columns: 1fr; }
}
@media (min-width: 961px) { .case-media.two { grid-template-columns: 1fr 1fr; } }
.case-media.two img, .case-media.two video { aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Case quote ---------- */
.case-quote { margin: 48px 86px 0 0; padding: clamp(28px, 4vw, 44px) clamp(24px, 5vw, 64px); border-radius: 20px; text-align: center;
  background: linear-gradient(135deg, var(--green-deep), #3E9A80); box-shadow: var(--shadow); }
.case-quote blockquote { margin: 0 auto; max-width: 34ch; color: #fff; font-style: italic; font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.5; }
.case-quote figcaption { margin-top: 16px; color: #7FE0BF; font-weight: 700; font-size: .875rem; letter-spacing: .01em; }
@media (max-width: 960px) { .case-quote { margin-right: 0; } }

/* ---------- Cookie banner (consent.js), a copy of the 2marketing.ai banner ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: #fff; border-top: 1px solid #e5e7eb;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 24px;
  -webkit-font-smoothing: antialiased;
  transition: transform .3s ease-out, opacity .3s ease-out;
}
.cookie-banner.is-out { transform: translateY(100px); opacity: 0; }
.cookie-banner[hidden] { display: none; }
.cookie-inner { max-width: 1280px; margin: 0 auto; padding: 16px; }
.cookie-row { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cookie-text { flex: 1; min-width: 0; }
.cookie-banner .cookie-title { margin: 0 0 8px; font-size: 18px; line-height: 28px; font-weight: 600; color: #364153; letter-spacing: normal; }
.cookie-banner .cookie-body { margin: 0; font-size: 14px; line-height: 24px; color: #4a5565; text-wrap: balance; }
.cookie-banner .cookie-more { display: inline-block; margin-top: 4px; font-size: 14px; line-height: 20px; font-weight: 400; color: #00a650; text-decoration: underline; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex-shrink: 0; width: 100%; max-width: 384px; }
.cookie-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 8px 24px;
  border-radius: 8.4px; border: 1px solid transparent; font: inherit; font-size: 14px; line-height: 20px; font-weight: 500;
  white-space: nowrap; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.05);
  transition: background-color .15s, color .15s;
}
.cookie-btn:focus-visible { outline: 2px solid #4aa359; outline-offset: 2px; }
.cookie-reject { background: #fff; color: #364153; border-color: #d1d5dc; }
.cookie-accept { background: #4aa359; color: #fff; }
@media (hover: hover) {
  .cookie-banner .cookie-more:hover { color: #008a3e; }
  .cookie-reject:hover { background: #f9fafb; }
  .cookie-accept:hover { background: #3a8a47; }
}
@media (min-width: 640px) {
  .cookie-inner { padding: 16px 24px; }
  .cookie-row { flex-direction: row; align-items: center; }
}
@media (min-width: 1024px) { .cookie-inner { padding: 16px 32px; } }
@media (prefers-reduced-motion: reduce) { .cookie-banner { transition: none; } }
/* Footer "Cookie settings" is a button styled as a link */
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-soft); cursor: pointer; }
.footer-bottom .link-button { color: #fff; }
@media (hover: hover) { .footer-bottom .link-button:hover { color: var(--primary-light); } }
@media (max-width: 760px) { .footer-bottom .link-button { display: inline-block; padding: 10px 0; } }

/* Cookie policy page */
.policy table { width: 100%; border-collapse: collapse; font-size: .9375rem; margin: 6px 0 22px; }
.policy th, .policy td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.policy th { font-weight: 600; color: var(--ink); font-size: .8125rem; letter-spacing: .02em; }
.policy td { color: var(--ink-soft); }
.policy td code { font-size: .8125rem; color: var(--ink); }
.policy .table-scroll { overflow-x: auto; max-width: 640px; }
.policy .detail-body ul { color: var(--ink-soft); padding-left: 20px; margin: 0 0 18px; max-width: 640px; }
.policy .detail-body li { margin-bottom: 6px; }
