/* LBM Engineering Solutions
   Tokens, base, components, sections, pages, motion, print.
   Shape rule: buttons, chips and pills are full-pill; cards, images and panels use --radius (14px); inputs use --radius-sm (10px).
   Z-index scale: 1 content, 40 back-to-top, 50 header, 60 progress, 70 consent, 80 toast, 90 skip link. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@view-transition { navigation: auto; }

:root {
  --green: #3fb43a;
  --green-hover: #4cc447;
  --green-ink: #1d741a;
  --green-soft: #e3f2e1;
  --bg: #f4f5f3;
  --surface: #fcfdfc;
  --surface-2: #e9ece8;
  --ink: #111412;
  --ink-2: #4b524e;
  --line: #d6dbd5;
  --dark: #0e1210;
  --dark-2: #161b18;
  --on-dark: #eff2ee;
  --on-dark-2: #a6aea9;
  --focus: #1d741a;
  --shadow: 0 1px 2px rgb(17 24 19 / 0.05), 0 10px 28px -12px rgb(17 24 19 / 0.16);
  --shadow-lg: 0 2px 4px rgb(17 24 19 / 0.05), 0 28px 56px -20px rgb(17 24 19 / 0.28);
  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --wrap: 1280px;
  --header-h: 72px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --green-ink: #6fd56a;
  --green-soft: #15291a;
  --bg: #0c0f0d;
  --surface: #141916;
  --surface-2: #101411;
  --ink: #edf0ec;
  --ink-2: #a3aca6;
  --line: #27302b;
  --dark: #070a08;
  --dark-2: #111613;
  --focus: #6fd56a;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 28px -12px rgb(0 0 0 / 0.6);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.4), 0 28px 56px -20px rgb(0 0 0 / 0.75);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --green-ink: #6fd56a;
    --green-soft: #15291a;
    --bg: #0c0f0d;
    --surface: #141916;
    --surface-2: #101411;
    --ink: #edf0ec;
    --ink-2: #a3aca6;
    --line: #27302b;
    --dark: #070a08;
    --dark-2: #111613;
    --focus: #6fd56a;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 28px -12px rgb(0 0 0 / 0.6);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.4), 0 28px 56px -20px rgb(0 0 0 / 0.75);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
/* Smooth scrolling is applied only to in-page link jumps (site.js), never to focus moves or find-in-page */
body {
  margin: 0;
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.no-scroll { overflow: hidden; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 0.5em; font-weight: 640; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--green-ink); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--green); color: #0b1a0b; }
code { font-size: 0.9em; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 5px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.2em; height: 1.2em; flex: none; fill: currentColor; }
.sentinel { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }
.sentinel--top { top: 0; }
.sentinel--far { top: 120vh; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 90; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; transition: top 0.2s var(--ease); }
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0.7em 1.4em;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 0.97rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.25s var(--ease), color 0.2s;
  user-select: none;
}
.btn .ic { transition: transform 0.3s var(--ease); }
.btn:active { transform: translateY(1px) scale(0.98); transition-duration: 0.08s; }
.btn--sm { min-height: 42px; padding: 0.55em 1.1em; font-size: 0.92rem; }
.btn--primary { background: var(--green); color: #0a1a0a; box-shadow: 0 8px 20px -10px rgb(63 180 58 / 0.8); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--glass { border-color: rgb(255 255 255 / 0.55); color: #fff; background: rgb(14 18 16 / 0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn:hover .ic { transform: translateX(3px); }
  .btn--primary:hover { background: var(--green-hover); box-shadow: 0 14px 28px -12px rgb(63 180 58 / 0.85); }
  .btn--ghost:hover { border-color: var(--ink-2); }
  .btn--glass:hover { background: rgb(14 18 16 / 0.55); border-color: #fff; }
}

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s;
}
.icon-btn:active { transform: scale(0.92); }
.icon-btn--glass { background: rgb(14 18 16 / 0.4); border-color: rgb(255 255 255 / 0.35); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@media (hover: hover) { .icon-btn:hover { border-color: var(--ink-2); } .icon-btn--glass:hover { background: rgb(14 18 16 / 0.6); border-color: #fff; } }

.link-btn { background: none; border: 0; padding: 0; color: var(--green-ink); text-decoration: underline; text-underline-offset: 3px; font: inherit; }
.text-link { display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--green-ink); }
.text-link .ic { transition: transform 0.3s var(--ease); }
@media (hover: hover) { .text-link:hover .ic { transform: translateX(4px); } }

.eyebrow { display: inline-flex; align-items: center; gap: 0.6em; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; color: #cfe9cc; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--green); border-radius: 2px; }
.eyebrow--green { color: var(--green-ink); }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-ink); background: var(--green-soft); padding: 0.25em 0.7em; border-radius: 999px; }
.note { font-size: 0.85rem; color: var(--ink-2); margin-top: 1.5rem; }

/* ---------- Scroll progress (CSS scroll timeline only) & back to top ---------- */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  .progress { display: block; position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
  .progress span { display: block; height: 100%; background: var(--green); transform-origin: 0 50%; animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
.to-top {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 999px; border: 0;
  background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transform: translateY(12px) scale(0.9); transition: opacity 0.3s, transform 0.35s var(--ease);
}
.to-top.is-on { opacity: 1; pointer-events: auto; transform: none; }
.to-top[hidden] { display: none; }
body.consent-open .to-top { bottom: calc(max(16px, env(safe-area-inset-bottom)) + var(--consent-h, 0px)); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--dark); color: var(--on-dark-2); font-size: 0.85rem; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__tag { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; flex: none; }
.topbar a { display: inline-flex; align-items: center; gap: 0.45em; color: var(--on-dark); text-decoration: none; min-height: 40px; }
.topbar .ic { color: var(--green); }
@media (max-width: 720px) { .topbar__tag { display: none; } .topbar__in { justify-content: center; } .hide-sm { display: none; } }

.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s;
  padding-top: env(safe-area-inset-top);
}
.header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgb(17 24 19 / 0.4); }
.header__in { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: block; flex: none; margin-right: auto; border-radius: 6px; }
.brand__logo { width: 140px; height: auto; }
.brand__logo--light { display: none; }
:root[data-theme="dark"] .brand__logo--dark { display: none; }
:root[data-theme="dark"] .brand__logo--light { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand__logo--dark { display: none; }
  :root:not([data-theme="light"]) .brand__logo--light { display: block; }
}
.header__actions { display: flex; align-items: center; gap: 10px; }

.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--ink); text-decoration: none; font-weight: 520; font-size: 0.97rem; white-space: nowrap; }
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease);
}
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { font-weight: 640; }
@media (hover: hover) { .nav__link:hover::after { transform: scaleX(1); transform-origin: left; } }
.nav__mobile-extra { display: none; }

.theme-toggle .ic--sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic--sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ic--moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ic--sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .ic--moon { display: none; }
}
.menu-toggle { display: none; }
.menu-toggle .ic--close { display: none; }
.menu-toggle[aria-expanded="true"] .ic--open { display: none; }
.menu-toggle[aria-expanded="true"] .ic--close { display: block; }

@media (max-width: 1020px) {
  .hide-md { display: none; }
  .menu-toggle { display: inline-grid; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    padding: calc(var(--header-h) + env(safe-area-inset-top) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
    display: flex; flex-direction: column; gap: 32px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.35s var(--ease), visibility 0s 0.35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__link { width: 100%; min-height: 60px; padding: 0; font-size: 1.35rem; font-weight: 600; }
  .nav__link::after { left: 0; right: auto; width: 32px; bottom: 12px; }
  .nav.is-open .nav__list li { animation: rise 0.5s var(--ease) both; }
  .nav.is-open .nav__list li:nth-child(2) { animation-delay: 0.04s; }
  .nav.is-open .nav__list li:nth-child(3) { animation-delay: 0.08s; }
  .nav.is-open .nav__list li:nth-child(4) { animation-delay: 0.12s; }
  .nav.is-open .nav__list li:nth-child(5) { animation-delay: 0.16s; }
  .nav__mobile-extra { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
  .nav__phone { display: inline-flex; align-items: center; gap: 0.5em; color: var(--ink); text-decoration: none; font-weight: 600; min-height: 44px; }
  .header:has(.nav.is-open) { background: var(--bg); }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Hero slider ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--dark); min-height: clamp(540px, calc(100dvh - 112px), 860px); display: grid; overflow: hidden; }
.hero__slides { display: grid; }
.slide { grid-area: 1 / 1; position: relative; display: grid; align-items: center; visibility: hidden; opacity: 0; transition: opacity 0.9s var(--ease), visibility 0s 0.9s; }
.slide.is-active { visibility: visible; opacity: 1; transition-delay: 0s; z-index: 1; }
.slide__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.slide__media picture { position: absolute; inset: -6% 0; }
.slide__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; transform: scale(1.06); transition: transform 7s linear; }
.slide.is-active .slide__media img { transform: scale(1); }
.slide__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(10 13 11 / 0.84) 0%, rgb(10 13 11 / 0.55) 48%, rgb(10 13 11 / 0.12) 100%), linear-gradient(0deg, rgb(10 13 11 / 0.6), transparent 42%); }
.slide__content { padding-block: 64px 152px; }
.slide__content > * { max-width: 680px; }
.slide__title { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.75rem); color: #fff; margin-bottom: 0.45em; }
.slide__text { font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.18rem); color: rgb(255 255 255 / 0.86); max-width: 520px; margin-bottom: 1.8em; }
.slide__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.slide.is-active .slide__content > * { animation: rise 0.8s var(--ease) both; }
.slide.is-active .slide__content > :nth-child(2) { animation-delay: 0.08s; }
.slide.is-active .slide__content > :nth-child(3) { animation-delay: 0.16s; }
.slide.is-active .slide__content > :nth-child(4) { animation-delay: 0.24s; }
/* Gentle parallax driven by the browser's scroll timeline, no JS scroll listener */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .slide__media picture { animation: parallax linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    @keyframes parallax { to { transform: translateY(10%); } }
  }
}

.hero__controls { position: absolute; inset: auto 0 96px; z-index: 3; }
.hero__controls-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero__dots { display: flex; gap: 8px; }
.dot { width: 44px; height: 44px; padding: 0; border: 0; background: none; display: grid; align-items: center; }
.dot span { display: block; height: 3px; border-radius: 3px; background: rgb(255 255 255 / 0.3); overflow: hidden; position: relative; }
.dot span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.dot[aria-current="true"] span::after { transform: scaleX(1); }
.hero.is-playing .dot[aria-current="true"] span::after { animation: fill var(--slide-ms, 7000ms) linear both; }
.hero.is-paused-hover .dot[aria-current="true"] span::after { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__btns { display: flex; gap: 8px; }
[data-slide="pause"] .ic--play { display: none; }
[data-slide="pause"][aria-pressed="true"] .ic--play { display: block; }
[data-slide="pause"][aria-pressed="true"] .ic--pause { display: none; }
@media (max-width: 600px) {
  .slide__content { padding-block: 48px 150px; align-self: end; }
  .slide__media::after { background: linear-gradient(0deg, rgb(10 13 11 / 0.9) 15%, rgb(10 13 11 / 0.35) 70%, rgb(10 13 11 / 0.2)); }
  .hero__controls { bottom: 80px; }
  .dot { width: 32px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 100svh; }
  .slide__content { padding-block: 32px 96px; }
  .slide__text { display: none; }
  .hero__controls { bottom: 56px; }
}

/* ---------- Welcome card (overlaps the hero) ---------- */
.welcome { position: relative; z-index: 4; margin-top: -64px; }
.welcome__card {
  max-width: 920px; background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-lg); border-top: 4px solid var(--green);
}
.welcome__card h2 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.25rem); margin-bottom: 0.6em; }
.welcome__card p { color: var(--ink-2); max-width: 65ch; margin-bottom: 0.5em; }
@media (max-width: 800px) { .welcome { margin-top: -48px; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--alt { background: var(--surface-2); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head h2 { margin: 0; max-width: 20ch; }

/* The single dark colour block on the home page */
.band { background: var(--dark); color: var(--on-dark); padding-block: clamp(64px, 8vw, 104px); margin-top: clamp(64px, 8vw, 104px); position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60vmax; height: 60vmax; background: radial-gradient(closest-side, rgb(63 180 58 / 0.14), transparent); pointer-events: none; }
.band h2 { color: #fff; }
.band p { color: var(--on-dark-2); max-width: 44ch; }
.band__in { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: center; position: relative; }
.band__in > * { min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; background: rgb(255 255 255 / 0.1); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--dark-2); padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column-reverse; }
.stat dt { color: var(--on-dark-2); font-size: 0.92rem; }
.stat dd { margin: 0; font-size: clamp(2.4rem, 1.8rem + 2.6vw, 3.8rem); font-weight: 640; letter-spacing: -0.04em; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.05; }
.stat:nth-child(odd) dd { color: var(--green); }
@media (max-width: 860px) { .band__in { grid-template-columns: 1fr; } }

/* Divisions bento: 4 items, 4 cells */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, clamp(220px, 22vw, 300px)); gap: 16px; }
.tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); color: #fff; text-decoration: none; background: var(--dark); isolation: isolate; }
.tile--lg { grid-column: span 2; grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile picture { position: absolute; inset: 0; z-index: -1; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(10 13 11 / 0.86) 0%, rgb(10 13 11 / 0.35) 55%, rgb(10 13 11 / 0.05) 100%); }
.tile__body { position: absolute; inset: auto 0 0; display: grid; gap: 4px; padding: clamp(18px, 2.4vw, 28px); }
.tile__body .ic { width: 28px; height: 28px; color: var(--green); margin-bottom: 8px; }
.tile__title { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.45rem); font-weight: 640; letter-spacing: -0.02em; }
.tile--lg .tile__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.tile__text { color: rgb(255 255 255 / 0.82); font-size: 0.95rem; max-width: 38ch; }
@media (hover: hover) and (pointer: fine) { .tile:hover img { transform: scale(1.05); } }
@media (max-width: 1020px) { .bento { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; grid-auto-rows: 240px; } .tile--lg { grid-row: span 2; grid-column: span 2; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; grid-auto-rows: 260px; } .tile--lg, .tile--wide { grid-column: auto; grid-row: auto; } }

/* Track record: portrait image + client grid */
.track { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.track > * { min-width: 0; }
.track__media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface); }
.track__media picture, .track__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.track__body h2 { max-width: 18ch; }
.clients { list-style: none; margin: 28px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.clients li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.clients .ic { width: 26px; height: 26px; color: var(--green-ink); }
.clients span { display: grid; font-size: 0.85rem; color: var(--ink-2); }
.clients strong { font-size: 1rem; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
@media (max-width: 860px) { .track { grid-template-columns: 1fr; } .track__media { aspect-ratio: 16 / 10; } }
@media (max-width: 520px) { .clients { grid-template-columns: 1fr; } }

/* Vision & mission statement + values */
.statement { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); margin-bottom: clamp(48px, 6vw, 80px); }
.statement__item { border-top: 3px solid var(--green); padding-top: 24px; }
.statement__item h3 { font-size: 0.95rem; font-weight: 600; color: var(--green-ink); letter-spacing: 0; margin-bottom: 0.8em; }
.statement__item p { font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.85rem); line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); margin: 0; font-weight: 500; }
@media (max-width: 760px) { .statement { grid-template-columns: 1fr; } }
.section--tight .statement { margin-bottom: 0; }
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.values li { border-top: 1px solid var(--line); padding-top: 24px; }
.values .ic { width: 30px; height: 30px; color: var(--green-ink); margin-bottom: 16px; transition: transform 0.4s var(--ease); }
.values h3 { margin-bottom: 0.35em; }
.values p { color: var(--ink-2); margin: 0; font-size: 0.95rem; }
@media (hover: hover) { .values li:hover .ic { transform: translateY(-3px) rotate(-6deg); } }
@media (max-width: 1020px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .values { grid-template-columns: 1fr; gap: 24px; } }

/* Registrations strip */
.accred { border-block: 1px solid var(--line); background: var(--surface); }
.accred__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 28px; }
.accred p { display: inline-flex; align-items: center; gap: 0.6em; margin: 0; font-weight: 600; }
.accred .ic { color: var(--green-ink); }

/* CTA card */
.cta { padding-block: clamp(56px, 7vw, 96px); }
.cta__card { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta__card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--green); }
.cta__card h2 { margin-bottom: 0.25em; }
.cta__card p { margin: 0; max-width: 56ch; color: var(--ink-2); }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--on-dark-2); padding-top: clamp(56px, 7vw, 88px); padding-bottom: env(safe-area-inset-bottom); font-size: 0.95rem; }
.footer a { color: var(--on-dark); text-decoration: none; }
@media (hover: hover) { .footer a:hover { color: var(--green); } }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1.2fr 0.8fr 1fr; gap: 40px; }
.footer__brand img { width: 170px; margin-bottom: 20px; }
.footer__h { font-size: 0.95rem; letter-spacing: -0.01em; color: #fff; margin-bottom: 1em; font-weight: 600; }
.footer address { font-style: normal; }
.footer address p { display: flex; gap: 12px; }
.footer address .ic { color: var(--green); margin-top: 0.2em; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer__links a { display: inline-flex; min-height: 36px; align-items: center; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-block: 24px; border-top: 1px solid rgb(255 255 255 / 0.1); font-size: 0.86rem; }
.footer__base p { margin: 0; }
.footer__legal { display: flex; gap: 20px; align-items: center; }
.footer .link-btn { color: var(--on-dark); text-decoration: none; min-height: 36px; }
@media (hover: hover) { .footer .link-btn:hover { color: var(--green); } }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Inner page header (light, same theme as the page) ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 72px); }
.page-hero__in { position: relative; }
.page-hero__title { max-width: 18ch; animation: rise 0.8s var(--ease) both; }
.page-hero__lead { max-width: 60ch; color: var(--ink-2); font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.22rem); margin: 0; animation: rise 0.8s 0.08s var(--ease) both; }
.page-hero__media { margin: clamp(32px, 5vw, 56px) 0 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 8; background: var(--surface-2); }
.page-hero__media picture, .page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .page-hero__media { aspect-ratio: 4 / 3; } }
.page-hero--center { text-align: center; }
.page-hero--center .page-hero__title, .page-hero--center .page-hero__lead { margin-inline: auto; }
.page-hero--center .btn { margin-top: 28px; }
.crumbs { display: flex; gap: 10px; font-size: 0.88rem; margin-bottom: 20px; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
@media (hover: hover) { .crumbs a:hover { color: var(--green-ink); } }
.pills { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills a { display: inline-flex; align-items: center; gap: 0.5em; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 560; transition: border-color 0.2s, transform 0.2s var(--ease); }
.pills .ic { color: var(--green-ink); }
.pills a:active { transform: scale(0.97); }
@media (hover: hover) { .pills a:hover { border-color: var(--ink-2); } }

/* ---------- About ---------- */
.story { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.story > * { min-width: 0; }
.story__media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; position: sticky; top: calc(var(--header-h) + 24px); }
.story__media picture, .story__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.story__inset { margin: 32px 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.story__inset picture, .story__inset img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story__media { position: static; aspect-ratio: 16 / 10; } }
.prose h2 { margin-top: 0; max-width: 20ch; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.facts div { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.facts div:last-child { grid-column: span 2; }
.facts dt { font-size: 0.85rem; color: var(--ink-2); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts div:last-child { grid-column: auto; } }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.timeline li { position: relative; padding-top: 32px; }
.timeline li::before { content: ""; position: absolute; top: 8px; left: 0; right: -16px; height: 2px; background: var(--line); }
.timeline li::after { content: ""; position: absolute; top: 3px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); }
.timeline li:last-child::before { right: 0; }
.timeline h3 { margin: 0 0 6px; }
.timeline p { color: var(--ink-2); margin: 0; font-size: 0.95rem; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline li { padding: 0 0 28px 36px; }
  .timeline li::before { top: 14px; bottom: -6px; left: 5px; right: auto; width: 2px; height: auto; }
  .timeline li::after { top: 8px; }
}

/* ---------- Services: split sections alternate with full-width features ---------- */
.service { padding-block: clamp(56px, 7vw, 96px); }
.service__in { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.service__in > * { min-width: 0; }
.service--flip .service__media { order: 2; }
.service__media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 11; background: var(--surface-2); }
.service__media picture, .service__media img { width: 100%; height: 100%; object-fit: cover; }
.service__body h2, .feature__panel h2 { margin-bottom: 0.4em; max-width: 18ch; }
.service__body > p, .feature__panel p { color: var(--ink-2); font-size: 1.05rem; max-width: 52ch; }
.ticks { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft); }
.ticks li::after {
  content: ""; position: absolute; left: 4px; top: calc(0.2em + 4px); width: 12px; height: 12px; background: var(--green-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ticks--cols { margin: 0; align-content: center; }
@media (max-width: 860px) { .service__in { grid-template-columns: 1fr; } .service--flip .service__media { order: 0; } }

.feature { padding-block: clamp(48px, 6vw, 80px); background: var(--surface-2); }
.feature .wrap { position: relative; }
.feature__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; background: var(--dark); }
.feature__media picture, .feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__panel {
  position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  width: min(1040px, 92%); margin: clamp(-140px, -10vw, -64px) auto 0; padding: clamp(24px, 4vw, 48px);
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.feature__inset { position: absolute; top: -32px; right: calc(var(--gutter) + 32px); width: 26%; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 6px solid var(--surface-2); box-shadow: var(--shadow-lg); }
.feature__inset picture, .feature__inset img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .feature__media { aspect-ratio: 16 / 10; }
  .feature__panel { grid-template-columns: 1fr; width: auto; margin: -48px 12px 0; }
  .feature__inset { display: none; }
}

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 560; transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease); }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
@media (hover: hover) { .chip:hover { border-color: var(--ink-2); } }
.projects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project {
  position: relative; display: flex; flex-direction: column; gap: 20px; padding: 28px; min-height: 230px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
.project h2 { font-size: 1.3rem; margin: 10px 0 4px; }
.project p { margin: 0; color: var(--ink-2); }
.project__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--green-soft); color: var(--green-ink); }
.project__icon .ic { width: 24px; height: 24px; }
.project__proof { display: inline-flex; align-items: center; gap: 0.5em; margin-top: auto !important; font-size: 0.88rem; font-weight: 560; }
.project[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .project:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--green) 40%, var(--line)); } }
@media (max-width: 1020px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .projects { grid-template-columns: 1fr; } }

.gallery { padding-bottom: clamp(64px, 9vw, 120px); }
.gallery__title { margin-bottom: 32px; }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(170px, 20vw, 280px); gap: 16px; grid-template-areas: "a a b" "c d b" "e f g"; }
.gallery__grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.gallery__grid picture, .gallery__grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery__grid img { transition: transform 0.9s var(--ease); }
.g1 { grid-area: a; } .g2 { grid-area: b; } .g3 { grid-area: c; } .g4 { grid-area: d; } .g5 { grid-area: e; } .g6 { grid-area: f; } .g7 { grid-area: g; }
.g2 img { object-position: center 20%; }
@media (hover: hover) { .gallery__grid figure:hover img { transform: scale(1.04); } }
@media (max-width: 700px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; grid-template-areas: "a a" "b c" "b d" "e f" "g g"; }
}

/* ---------- Contact ---------- */
.contact { padding-top: 0; }
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact__grid > * { min-width: 0; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } .contact__info { order: 2; } }
.contact__list { list-style: none; margin: 0 0 32px; padding: 0; }
.contact__list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact__list li > .ic { color: var(--green-ink); margin-top: 0.2em; width: 22px; height: 22px; }
.contact__list div { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; min-width: 0; }
.contact__list .label { flex-basis: 100%; font-size: 0.85rem; color: var(--ink-2); }
.contact__list a { color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.copy { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-2); transition: background-color 0.2s, color 0.2s, transform 0.15s; }
.copy:active { transform: scale(0.9); }
.copy.is-done { color: var(--green-ink); }
@media (hover: hover) { .copy:hover { background: var(--surface-2); color: var(--ink); } }
.contact__reg { padding: 24px; border-radius: var(--radius); background: var(--surface-2); }
.contact__reg p { color: var(--ink-2); margin: 0; font-size: 0.95rem; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); }
.form-card__intro { color: var(--ink-2); font-size: 0.92rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { position: relative; margin-bottom: 18px; }
.field label { display: block; font-weight: 560; margin-bottom: 6px; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 44px 12px 14px; font-size: 16px; /* 16px stops iOS zoom */
  border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field select { padding-right: 14px; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-ink); box-shadow: 0 0 0 4px rgb(63 180 58 / 0.2); background: var(--surface); }
.field__ok { position: absolute; right: 14px; top: 44px; color: var(--green-ink); opacity: 0; transform: scale(0.5); transition: opacity 0.25s, transform 0.35s var(--ease); pointer-events: none; }
.field.is-valid .field__ok { opacity: 1; transform: none; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #c2412d; }
.field__error { color: #b3361f; font-size: 0.88rem; margin: 6px 0 0; }
:root[data-theme="dark"] .field__error { color: #ff8a73; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field__error { color: #ff8a73; } }
.field.is-invalid .field__error { animation: shake 0.35s var(--ease); }
.field__error:empty { display: none; }
.field__hint { color: var(--ink-2); font-size: 0.86rem; margin: 6px 0 0; display: flex; justify-content: space-between; gap: 12px; }
.counter { font-variant-numeric: tabular-nums; flex: none; }
.form-legal { font-size: 0.88rem; color: var(--ink-2); }
.form-alert { padding: 14px 16px; border-radius: var(--radius-sm); background: #fbe9e5; color: #8a2b19; margin-bottom: 20px; }
.form-alert:focus { outline: none; }
:root[data-theme="dark"] .form-alert { background: #3a1812; color: #ffb4a5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-alert { background: #3a1812; color: #ffb4a5; } }
.btn--submit { width: 100%; }
.draft-note { font-size: 0.85rem; color: var(--ink-2); text-align: center; margin: 12px 0 0; }
.form-success { text-align: center; padding: 24px 0; }
.form-success:focus { outline: none; }
.form-success p { color: var(--ink-2); }
.tick { width: 72px; height: 72px; margin: 0 auto 20px; }
.tick circle { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 0.6s var(--ease) forwards; }
.tick path { fill: none; stroke: var(--green); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw 0.4s 0.45s var(--ease) forwards; }
.tick--static circle, .tick--static path { stroke-dashoffset: 0; animation: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ---------- Privacy ---------- */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.legal > * { min-width: 0; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 0.92rem; }
.legal__toc-h { font-weight: 600; margin-bottom: 0.6em; }
.legal__toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.legal__toc a { color: var(--ink-2); text-decoration: none; }
@media (hover: hover) { .legal__toc a:hover { color: var(--green-ink); } }
.legal__body { max-width: 760px; }
.legal__body h2 { font-size: 1.45rem; margin-top: 2.2em; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal__body h2:first-child { margin-top: 0; }
.legal__body ul { padding-left: 1.2em; }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .legal__toc { position: static; padding: 20px; border-radius: var(--radius); background: var(--surface-2); } }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1em; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 0 0 1em; }
.table-scroll .table { margin: 0; min-width: 640px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.table th { color: var(--ink); background: var(--surface-2); font-weight: 600; }
@media (max-width: 600px) {
  .legal__body > .table thead { display: none; }
  .legal__body > .table tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .legal__body > .table td { display: block; border: 0; padding: 4px 0; }
  .legal__body > .table td:first-child { color: var(--ink); font-weight: 600; }
}

/* 404 */
.notfound__code { font-size: clamp(5rem, 3rem + 10vw, 10rem); font-weight: 700; letter-spacing: -0.06em; line-height: 1; margin: 0 0 0.1em; color: transparent; -webkit-text-stroke: 2px var(--green); }
.notfound__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.notfound__links .btn { margin-top: 28px; }

/* ---------- Consent banner & dialog ---------- */
.consent {
  position: fixed; z-index: 70; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  width: min(960px, calc(100% - 2 * var(--gutter)));
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 20px 28px;
  padding: 20px 24px; border-radius: var(--radius);
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  animation: consent-in 0.5s var(--ease) both;
}
.consent[hidden] { display: none; }
.consent h2 { display: flex; align-items: center; gap: 0.5em; font-size: 1.05rem; margin-bottom: 0.35em; }
.consent h2 .ic { color: var(--green-ink); }
.consent p { margin: 0; font-size: 0.9rem; color: var(--ink-2); }
.consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; flex: none; }
.consent__actions .btn { min-width: 120px; }
.consent__actions .link-btn { min-height: 44px; padding: 0 8px; }
@keyframes consent-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 760px) {
  .consent { flex-direction: column; align-items: stretch; padding: 18px; max-height: calc(100svh - 32px); overflow-y: auto; }
  .consent__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .consent__actions .btn { min-width: 0; }
  .consent__actions .link-btn { grid-column: span 2; }
}

.prefs {
  width: min(560px, calc(100% - 2 * var(--gutter))); max-height: min(720px, calc(100svh - 32px));
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
.prefs::backdrop { background: rgb(7 10 8 / 0.55); backdrop-filter: blur(3px); }
.prefs[open] { animation: pop 0.35s var(--ease) both; }
.prefs[open]::backdrop { animation: fade 0.3s both; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.prefs__form { padding: clamp(20px, 4vw, 32px); }
.prefs__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.prefs__head h2 { font-size: 1.3rem; margin: 0; }
.prefs__form > p { color: var(--ink-2); font-size: 0.92rem; }
.pref { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.pref h3 { font-size: 1rem; margin: 0 0 2px; }
.pref p { margin: 0; color: var(--ink-2); font-size: 0.88rem; }
.prefs__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 480px) { .prefs__actions { display: grid; grid-template-columns: 1fr 1fr; } .prefs__actions .btn--primary { grid-column: span 2; } }

.switch { position: relative; flex: none; width: 52px; height: 30px; cursor: pointer; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background-color 0.25s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fdfdfd; box-shadow: 0 1px 3px rgb(0 0 0 / 0.3); transition: transform 0.3s var(--ease); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.switch--locked { cursor: not-allowed; opacity: 0.7; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 80;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 560; font-size: 0.92rem; box-shadow: var(--shadow-lg);
  transition: opacity 0.3s, transform 0.35s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast:empty { padding: 0; }

/* ---------- Scroll reveal (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .unveil { clip-path: inset(0 0 100% 0 round var(--radius)); transform: none; opacity: 1; transition: clip-path 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.js .unveil img { transform: scale(1.1); transition: transform 1.4s var(--ease); }
.js .unveil.is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
.js .unveil.is-in img { transform: scale(1); }
@media (hover: hover) { .js .gallery__grid figure.unveil.is-in:hover img { transform: scale(1.04); } }

/* ---------- Page transitions ---------- */
::view-transition-old(root) { animation: vt-out 0.22s ease both; }
::view-transition-new(root) { animation: vt-in 0.38s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Reduced motion & transparency ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .unveil, .js .unveil img { opacity: 1; transform: none; clip-path: none; }
  .slide__media img { transform: none !important; }
  @view-transition { navigation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .header { background: var(--bg); backdrop-filter: none; }
  .btn--glass, .icon-btn--glass { background: rgb(14 18 16 / 0.85); backdrop-filter: none; }
}

/* ---------- Large screens ---------- */
@media (min-width: 1800px) { :root { --wrap: 1440px; } body { font-size: 1.06rem; } }
@media (min-width: 2600px) { html { font-size: 125%; } }

/* ---------- Print ---------- */
@media print {
  .topbar, .header__actions, .nav, .hero__controls, .consent, .prefs, .to-top, .toast, .progress, .cta, .copy, .filters, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .header { position: static; backdrop-filter: none; }
  .hero, .band, .footer { background: #fff !important; color: #000 !important; }
  .hero { min-height: 0; }
  .slide { visibility: visible !important; opacity: 1 !important; position: relative; }
  .slide:not(.is-active), .slide__media { display: none; }
  .slide__title, .band h2, .stat dd, .slide__text, .footer a { color: #000 !important; }
  .js .reveal, .js .unveil { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .section, .service, .feature { padding-block: 16pt; break-inside: avoid; }
}

/* ---------- Profile content additions ---------- */
.footer__reg { font-size: 0.86rem; color: var(--on-dark-2); }
.section--flush { padding-top: 0; }
.lead { color: var(--ink-2); font-size: 1.08rem; max-width: 60ch; margin-bottom: 32px; }

/* Client quotes: three real excerpts, attribution by organisation */
.quotes h2 { margin-bottom: clamp(28px, 4vw, 48px); max-width: 20ch; }
.quotes__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.quote { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.quote:first-child { background: var(--green-soft); border-color: transparent; }
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0; font-size: clamp(1.08rem, 1rem + 0.35vw, 1.3rem); line-height: 1.4; letter-spacing: -0.015em; color: var(--ink); font-weight: 500; }
.quote figcaption { display: grid; font-size: 0.88rem; color: var(--ink-2); }
.quote figcaption strong { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .quotes__grid { grid-template-columns: 1fr; } }

.values--5 { grid-template-columns: repeat(5, 1fr); gap: 24px; }
@media (max-width: 1100px) { .values--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .values--5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .values--5 { grid-template-columns: 1fr; } }

/* About: why choose us */
.why { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.why > * { min-width: 0; }
.why__body > p { color: var(--ink-2); font-size: 1.05rem; max-width: 58ch; }
.why__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
.why__list li { display: flex; gap: 14px; }
.why__list .ic { width: 28px; height: 28px; color: var(--green-ink); }
.why__list span { display: grid; color: var(--ink-2); font-size: 0.95rem; }
.why__list strong { color: var(--ink); font-weight: 600; }
.why__media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; }
.why__media picture, .why__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } .why__media { aspect-ratio: 16 / 10; order: -1; } }
@media (max-width: 520px) { .why__list { grid-template-columns: 1fr; } }

/* Services: extras */
.extras { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.extras li { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.extras .ic { width: 28px; height: 28px; color: var(--green-ink); margin-bottom: 16px; }
.extras h3 { margin-bottom: 0.35em; }
.extras p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 1020px) { .extras { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .extras { grid-template-columns: 1fr; } }

/* Projects: richer cards */
.project { gap: 10px; }
.project__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.project__year { font-size: 0.88rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.project__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project h2 { font-size: 1.2rem; margin: 6px 0 0; }
.project__loc { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.9rem; }
.project__loc .ic { color: var(--green-ink); width: 1em; height: 1em; }
.project__scope { font-size: 0.95rem; margin-bottom: 8px !important; }
.project__proof { padding-top: 14px; border-top: 1px solid var(--line); width: 100%; color: var(--ink) !important; }
.project__proof .ic { color: var(--green-ink); }

/* =====================================================================
   Microinteractions (transform/opacity only; all off under reduced motion)
   ===================================================================== */
:root { --spring: cubic-bezier(0.34, 1.56, 0.64, 1); }

/* Focus ring eases in instead of snapping */
:focus-visible { transition: outline-offset 0.15s var(--ease); }
:focus:not(:focus-visible) { outline: none; }

/* Theme toggle: icon turns as the theme changes */
.theme-toggle.is-spinning .ic { animation: turn 0.5s var(--ease); }
@keyframes turn { from { transform: rotate(-90deg) scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* Menu toggle: icons swap with a quarter turn */
.menu-toggle .ic { transition: transform 0.35s var(--ease); }
.menu-toggle[aria-expanded="true"] .ic--close { animation: turn 0.35s var(--ease); }

/* Text links in prose, footer and legal pages: underline grows from the left */
.prose a, .legal__body a, .form-legal a, .consent p a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.35s var(--ease);
}
@media (hover: hover) {
  .prose a:hover, .legal__body a:hover, .form-legal a:hover, .consent p a:hover { background-size: 0 1px; background-position: 100% 100%; }
  .footer__links a, .footer address a { background: linear-gradient(var(--green), var(--green)) 0 calc(100% - 6px) / 0 1px no-repeat; transition: background-size 0.35s var(--ease), color 0.2s; }
  .footer__links a:hover, .footer address a:hover { background-size: 100% 1px; }
}

/* Division tiles: arrow slides in, body lifts */
.tile__go {
  position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  background: rgb(255 255 255 / 0.92); color: #0e1210; opacity: 0; transform: translate(-6px, 6px) scale(0.85);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.tile__body { transition: transform 0.5s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile__go, .tile:focus-visible .tile__go { opacity: 1; transform: none; }
  .tile:hover .tile__body { transform: translateY(-4px); }
}
@media (hover: none) { .tile__go { opacity: 1; transform: none; width: 40px; height: 40px; } }
.tile:active { transform: scale(0.99); transition: transform 0.1s; }

/* Cards: a gentle press on touch, lift on hover */
.project:active, .quote:active, .extras li:active, .clients li:active { transform: scale(0.99); transition-duration: 0.1s; }
.quote, .extras li, .clients li { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s; }
@media (hover: hover) and (pointer: fine) {
  .quote:hover, .extras li:hover, .clients li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
  .extras li:hover .ic, .clients li:hover .ic { transform: translateY(-2px) rotate(-6deg); }
}
.extras .ic, .clients .ic { transition: transform 0.4s var(--spring); }

/* Stats: a short accent rule draws in once counted */
.stat { position: relative; }
.stat::after { content: ""; position: absolute; left: clamp(20px, 3vw, 36px); top: clamp(20px, 3vw, 36px); width: 28px; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 0.8s 0.5s var(--ease); }
.stat.is-in::after { transform: scaleX(1); }
html:not(.js) .stat::after { transform: scaleX(1); }

/* Switches: thumb overshoots slightly, like a physical toggle */
.switch span::after { transition: transform 0.4s var(--spring), width 0.2s var(--ease); }
.switch:active span::after { width: 28px; }
.switch input:checked + span::after { transform: translateX(22px); }
.switch:active input:checked + span::after { transform: translateX(18px); }

/* Copy buttons: icon swaps to a tick */
.copy .ic--done { display: none; }
.copy.is-done .ic--copy { display: none; }
.copy.is-done .ic--done { display: block; animation: pop-in 0.35s var(--spring); }
@keyframes pop-in { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* Form: label tints while its field is active */
.field label { transition: color 0.2s; }
.field:focus-within label { color: var(--green-ink); }

/* Chips: pressed state settles with a small spring */
.chip[aria-pressed="true"] { animation: pop-in 0.3s var(--spring); }

/* Consent banner and dialog: soft exit, cookie icon nods on arrival */
.consent.is-leaving { animation: consent-out 0.26s var(--ease) forwards; }
@keyframes consent-out { to { opacity: 0; transform: translate(-50%, 16px); } }
.consent__icon { animation: nod 0.9s 0.5s var(--ease) both; transform-origin: 50% 60%; }
@keyframes nod { 0% { transform: rotate(0); } 30% { transform: rotate(-14deg); } 60% { transform: rotate(8deg); } 100% { transform: rotate(0); } }
.prefs.is-closing { animation: pop-out 0.2s var(--ease) forwards; }
.prefs.is-closing::backdrop { animation: fade 0.2s reverse forwards; }
@keyframes pop-out { to { opacity: 0; transform: translateY(8px) scale(0.98); } }
.prefs__status { font-size: 0.88rem; color: var(--ink-2); padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-2); }
.prefs__gpc { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--ink); padding: 10px 14px; border-radius: var(--radius-sm); background: var(--green-soft); }
.prefs__gpc .ic { color: var(--green-ink); margin-top: 0.15em; }
.pref { align-items: flex-start; }
.pref .switch { margin-top: 2px; }
.pref__more { margin-top: 8px; font-size: 0.85rem; color: var(--ink-2); }
.pref__more summary { cursor: pointer; color: var(--green-ink); font-weight: 560; min-height: 32px; display: inline-flex; align-items: center; list-style: none; }
.pref__more summary::-webkit-details-marker { display: none; }
.pref__more summary::after { content: ""; width: 7px; height: 7px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.3s var(--ease); }
.pref__more[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.pref__more ul { margin: 6px 0 0; padding-left: 1.1em; }
.pref__more[open] ul { animation: rise 0.35s var(--ease); }

/* Toast arrives with a slight spring */
.toast { transition: opacity 0.3s, transform 0.45s var(--spring); }

/* =====================================================================
   Device fit: every form factor
   ===================================================================== */

/* Touch screens: comfortable 44px targets everywhere */
@media (pointer: coarse) {
  .footer__links a, .footer .link-btn, .legal__toc a, .crumbs a, .text-link, .link-btn { min-height: 44px; display: inline-flex; align-items: center; }
  .legal__toc ol { gap: 0; }
  .copy { width: 44px; height: 44px; }
}

/* Filter chips and service pills become a swipeable row on small screens */
@media (max-width: 640px) {
  .filters, .pills {
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter);
    scrollbar-width: none; -webkit-mask: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 28px), transparent);
    mask: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 28px), transparent);
  }
  .filters::-webkit-scrollbar, .pills::-webkit-scrollbar { display: none; }
  .filters > *, .pills > li { flex: none; scroll-snap-align: start; }
  .pills a, .chip { white-space: nowrap; }
}

/* Narrow phones (iPhone SE, 320px) and fold covers (280px) */
@media (max-width: 400px) {
  .brand__logo { width: 116px; }
  .header__in { gap: 12px; }
  .header__actions { gap: 6px; }
  .slide__ctas .btn { flex: 1 1 100%; }
  .welcome__card, .form-card, .cta__card { padding: 22px 18px; }
  .hero__btns { gap: 4px; }
  .project, .quote { padding: 22px 18px; }
}
@media (max-width: 300px) {
  .topbar { display: none; }
  .brand__logo { width: 100px; }
  .icon-btn { width: 40px; height: 40px; }
  h1, .slide__title { font-size: 1.85rem; }
  .hero__dots { display: none; }
}

/* Tablets in portrait: two-column rhythm, larger tap areas */
@media (min-width: 700px) and (max-width: 1020px) and (orientation: portrait) {
  .hero { min-height: min(72svh, 900px); }
  .story__media, .why__media { aspect-ratio: 16 / 9; }
}

/* Short landscape screens (phones turned sideways): keep header compact */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --header-h: 60px; }
  .topbar { display: none; }
  .nav { padding-top: calc(var(--header-h) + 12px); }
  .nav__link { min-height: 48px; font-size: 1.15rem; }
  .consent { max-height: calc(100svh - 24px); }
  .prefs { max-height: calc(100svh - 16px); }
}

/* Big screens and TVs: cap line length, scale type gently */
@media (min-width: 1800px) {
  .slide__content > * { max-width: 760px; }
  .section__head h2 { max-width: 24ch; }
}

/* Data-saver and reduced-motion visitors get static imagery */
@media (prefers-reduced-motion: reduce) {
  .tile__go { opacity: 1; transform: none; }
  .stat::after { transform: scaleX(1); }
}
@media (pointer: coarse) {
  .contact__list a, .footer address a, .topbar a, .nav__phone { min-height: 44px; display: inline-flex; align-items: center; }
}
section[tabindex="-1"]:focus { outline: none; }
.crumbs { flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 0; }
.toast { max-width: calc(100% - 2 * var(--gutter)); width: max-content; text-align: center; border-radius: 18px; }

/* =====================================================================
   Micro-animations, round 2. Compositor-friendly (transform, opacity, clip-path),
   CSS-first, and all disabled by the reduced-motion block below.
   ===================================================================== */

/* Hero headline: words rise in sequence each time a slide becomes active */
.slide__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.slide__title .w > span { display: inline-block; transform: translateY(105%); }
.slide.is-active .slide__title .w > span { animation: word-up 0.8s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 80ms); }
@keyframes word-up { to { transform: none; } }
.slide.is-active .slide__content > .slide__title { animation: none; }

/* Theme switch: new theme spreads out from the toggle as a circle */
.vt-theme::view-transition-old(root) { animation: none; }
.vt-theme::view-transition-new(root) { animation: theme-reveal 0.6s var(--ease) both; }
@keyframes theme-reveal { from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 0)); } to { clip-path: circle(150vmax at var(--vt-x, 50%) var(--vt-y, 0)); } }

/* Primary buttons: a soft light sweep on hover, plus a gentle magnetic pull */
.btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
}
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover::before { transform: translateX(120%); transition: transform 0.7s var(--ease); }
  [data-magnet] { transform: translate(var(--mx, 0px), var(--my, 0px)); transition: transform 0.35s var(--ease), background-color 0.2s, box-shadow 0.25s var(--ease); }
  [data-magnet]:hover { transform: translate(var(--mx, 0px), calc(var(--my, 0px) - 2px)); transition-duration: 0.12s, 0.2s, 0.25s; }
  [data-magnet]:active { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(0.97); }
}

/* Inner-page header images and feature photos settle into place as they scroll in (CSS view timeline) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .page-hero__media img, .feature__media img { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }
  }
}

/* Process timeline: connector lines draw from left to right as each step appears */
.timeline li::before { transform-origin: left; transition: transform 0.9s var(--ease); transition-delay: calc(var(--d, 0ms) + 200ms); }
.js .timeline li.reveal::before { transform: scaleX(0); }
.js .timeline li.reveal.is-in::before { transform: scaleX(1); }
@media (max-width: 900px) {
  .timeline li::before { transform-origin: top; }
  .js .timeline li.reveal::before { transform: scaleY(0); }
  .js .timeline li.reveal.is-in::before { transform: scaleY(1); }
}

/* Vision and mission: the green rule draws in above each statement */
.statement__item { border-top: 0; position: relative; }
.statement__item::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--green); transform-origin: left; transition: transform 1s 0.15s var(--ease); }
.js .statement__item.reveal::before { transform: scaleX(0); }
.js .statement__item.reveal.is-in::before { transform: scaleX(1); }

/* Back to top: ring fills with reading progress */
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.to-top__ring circle { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-dasharray: 100; stroke-dashoffset: 100; }
@supports (animation-timeline: scroll()) {
  .to-top__ring circle { animation: ring linear both; animation-timeline: scroll(root); }
  @keyframes ring { to { stroke-dashoffset: 0; } }
}
@supports not (animation-timeline: scroll()) { .to-top__ring { display: none; } }
.to-top .ic { position: relative; transition: transform 0.3s var(--ease); }
@media (hover: hover) { .to-top:hover .ic { transform: translateY(-3px); } }

/* Header logo eases down slightly once the page scrolls */
.brand__logo { transition: transform 0.4s var(--ease); transform-origin: left center; }
.header.is-stuck .brand__logo { transform: scale(0.9); }

/* Projects: live count ticks when the filter changes */
.filters__count { font-size: 0.92rem; color: var(--ink-2); margin: -12px 0 20px; }
.filters__count [data-filter-num] { display: inline-block; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.filters__count .is-ticking { animation: tick 0.4s var(--spring); }
@keyframes tick { from { transform: translateY(-60%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Form: character counter warns near the limit */
.counter { transition: color 0.2s; }
.counter.is-near { color: #b3361f; font-weight: 600; }

/* Project icons and quote cards: small hover acknowledgements */
.project__icon { transition: transform 0.4s var(--spring); }
@media (hover: hover) and (pointer: fine) { .project:hover .project__icon { transform: rotate(-8deg) scale(1.06); } }

@media (prefers-reduced-motion: reduce) {
  .slide__title .w > span { transform: none !important; animation: none !important; }
  .js .timeline li.reveal::before, .js .statement__item.reveal::before { transform: none; }
  [data-magnet] { transform: none !important; }
  .header.is-stuck .brand__logo { transform: none; }
}

/* Contact: mailto success panel with fallbacks */
.form-success h2 { margin-bottom: 0.4em; }
.mail-fallback { margin-top: 24px; padding: 20px; border-radius: var(--radius-sm); background: var(--surface-2); text-align: left; }
.mail-fallback p { margin: 0 0 14px; font-size: 0.95rem; }
.mail-fallback__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mail-fallback__actions .link-btn { min-height: 44px; padding: 0 6px; }
@media (max-width: 480px) { .mail-fallback__actions .btn { flex: 1 1 100%; } }
