/* ==========================================================================
   The Retrofit Lab — styles
   Palette pulled from the logo (leaf greens, teal sky, warm sun) and the
   golden-hour hero video.
   ========================================================================== */

:root {
  --leaf-50: #f1f8ee;
  --leaf-100: #e1f1da;
  --leaf-200: #c3e3b3;
  --leaf-400: #6fb84f;
  --leaf-500: #4c9f38;
  --leaf-600: #3b8a2c;
  --leaf-700: #2c6e22;
  --forest-800: #163f2d;
  --forest-900: #0d2a1e;
  --forest-950: #081c14;
  --teal-300: #9fdcd5;
  --teal-400: #6cc6bc;
  --teal-500: #3fa9a0;
  --sun-300: #ffd27a;
  --sun-400: #f8b84a;
  --sun-500: #ef9a22;
  --heat: #e2522b;

  --bg: #fbfcf8;
  --surface: #ffffff;
  --ink: #10261c;
  --ink-soft: #3e5449;
  --ink-mute: #6b7d73;
  --line: rgba(16, 38, 28, 0.1);

  --path-a: #f08a24;
  --path-b: #3f86d1;
  --path-c: #e0312b;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 8px rgba(13, 42, 30, 0.06);
  --shadow: 0 18px 50px -18px rgba(13, 42, 30, 0.25);
  --shadow-lg: 0 40px 90px -30px rgba(13, 42, 30, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 112px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--leaf-400); color: #fff; }
:focus-visible { outline: 3px solid var(--sun-400); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: 10px 16px; border-radius: 10px; background: var(--forest-900); color: #fff;
  transform: translateY(-160%); transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 999;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #ffffff, var(--leaf-50));
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.loader__inner { display: grid; justify-items: center; gap: 22px; }
.loader img { width: 170px; height: auto; animation: loaderFloat 2.4s var(--ease) infinite; }
.loader__bar { width: 160px; height: 4px; border-radius: 4px; background: var(--leaf-100); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 40%; border-radius: inherit; background: linear-gradient(90deg, var(--leaf-500), var(--teal-400)); animation: loaderBar 1.2s ease-in-out infinite; }
.is-loaded .loader { opacity: 0; visibility: hidden; }
@keyframes loaderFloat { 50% { transform: translateY(-8px); } }
@keyframes loaderBar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }

.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 200; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--leaf-500), var(--teal-400), var(--sun-400)); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--leaf-600);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow--light { color: var(--sun-300); }
.hero__eyebrow::before { display: none; }

.h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.55rem, 1.1rem + 1.6vw, 2.35rem);
  line-height: 1.22; letter-spacing: -0.015em; color: var(--ink);
  margin-bottom: 24px;
}
.h2--xl { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4rem); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
.h2--light { color: #fff; }
.h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); letter-spacing: -0.02em; line-height: 1.2; }
.body-lg { font-size: clamp(1rem, 0.95rem + 0.25vw, 1.12rem); color: var(--ink-soft); line-height: 1.8; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--leaf-500);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; letter-spacing: 0.01em; white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s, color 0.35s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.35), transparent 60%);
  opacity: 0; transition: opacity 0.35s;
}
.btn:hover::before { opacity: 1; }
.btn--primary { background: linear-gradient(135deg, var(--leaf-500), var(--leaf-700)); color: #fff; box-shadow: 0 12px 28px -10px rgba(59, 138, 44, 0.65), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn--primary:hover { box-shadow: 0 18px 38px -12px rgba(59, 138, 44, 0.8), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn--sun { background: linear-gradient(135deg, var(--sun-300), var(--sun-500)); color: var(--forest-950); box-shadow: 0 12px 28px -10px rgba(239, 154, 34, 0.7); }
.btn--glass { background: rgba(8,28,20,0.35); color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.btn--glass:hover { background: rgba(255,255,255,0.22); }
.btn--sm { padding: 10px 20px; font-size: 0.9rem; }
.btn--lg { padding: 17px 32px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 100; }
.topbar {
  background: rgba(8, 28, 20, 0.72);
  color: rgba(255,255,255,0.85); font-size: 0.85rem; font-weight: 500;
  transition: margin-top 0.45s var(--ease);
}
.topbar__inner { display: flex; justify-content: flex-end; gap: 28px; height: 38px; align-items: center; }
.topbar__link { display: inline-flex; align-items: center; gap: 8px; transition: color 0.25s; }
.topbar__link:hover { color: var(--sun-300); }
.topbar__link svg { width: 15px; height: 15px; fill: var(--sun-300); }

.nav { transition: background-color 0.4s, box-shadow 0.4s, backdrop-filter 0.4s; }
.nav__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); transition: height 0.4s var(--ease); }
.nav__brand { flex-shrink: 0; margin-right: auto; display: block; }
.nav__brand img { height: 84px; width: auto; filter: drop-shadow(0 4px 14px rgba(0,0,0,0.25)); transition: height 0.4s var(--ease), filter 0.4s; }
.nav__links { display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(8,28,20,0.4); border: 1px solid rgba(255,255,255,0.18); transition: background-color 0.4s, border-color 0.4s; }
.nav__link {
  position: relative; display: block; padding: 9px 16px; border-radius: 999px;
  font-weight: 600; font-size: 0.92rem; color: #fff; transition: color 0.3s, background-color 0.3s;
}
.nav__link:hover { background: rgba(255,255,255,0.14); }
.nav__link.is-active { background: #fff; color: var(--forest-900); box-shadow: var(--shadow-sm); }
.nav__mobile-contact { display: none; }
.nav__toggle { display: none; }

.header.is-scrolled .topbar { margin-top: -38px; }
.header.is-scrolled .nav { background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px -20px rgba(13,42,30,0.4); }
.header.is-scrolled .nav__inner { height: 80px; }
.header.is-scrolled .nav__brand img { height: 66px; filter: none; }
.header.is-scrolled .nav__links { background: var(--leaf-50); border-color: var(--line); }
.header.is-scrolled .nav__link { color: var(--ink-soft); }
.header.is-scrolled .nav__link:hover { background: #fff; color: var(--ink); }
.header.is-scrolled .nav__link.is-active { background: var(--forest-900); color: #fff; }
.header.is-hidden { transform: translateY(-100%); }
.header { transition: transform 0.45s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 80px) 0 120px;
  color: #fff; overflow: hidden; isolation: isolate;
  background: #1d2a22 url("../assets/video-poster.jpg") center / cover no-repeat;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); will-change: transform; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(8,28,20,0.88) 0%, rgba(8,28,20,0.55) 45%, rgba(8,28,20,0.1) 100%),
    linear-gradient(0deg, rgba(8,28,20,0.75) 0%, transparent 40%);
}
.hero__particles { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero__content { position: relative; max-width: 1240px; }
.hero__content > * { max-width: 760px; }
.hero__eyebrow {
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(8,28,20,0.4); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; letter-spacing: 0.12em; margin-bottom: 28px;
}
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf-400); }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--leaf-400); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }

.hero__title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.6rem, 1rem + 7.4vw, 7.2rem);
  line-height: 0.92; letter-spacing: -0.035em;
  margin-bottom: 30px;
  perspective: 800px;
}
.hero__title-line { display: block; }
.hero__title-line--accent {
  background: linear-gradient(95deg, var(--leaf-200) 0%, var(--sun-300) 55%, var(--sun-400) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__title .char { display: inline-block; transform-origin: 50% 100%; }
.hero__title-line--accent .char { background: inherit; -webkit-background-clip: text; background-clip: text; }
.hero__lead { font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem); line-height: 1.75; color: rgba(255,255,255,0.86); margin-bottom: 38px; max-width: 640px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__badges { position: absolute; right: var(--gutter); bottom: 120px; display: grid; gap: 12px; }
.glass-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 12px; border-radius: 16px;
  background: rgba(8,28,20,0.5); border: 1px solid rgba(255,255,255,0.25);
  font-weight: 700; font-family: var(--font-display); letter-spacing: 0.02em;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
  animation: chipFloat 6s ease-in-out infinite;
}
.glass-chip:nth-child(2) { animation-delay: -3s; margin-left: 34px; }
.glass-chip__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: linear-gradient(135deg, var(--leaf-400), var(--leaf-600)); font-size: 0.9rem; }
@keyframes chipFloat { 50% { transform: translateY(-10px); } }

.hero__scroll { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); padding: 8px; }
.hero__scroll-mouse { display: block; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.6); border-radius: 14px; position: relative; }
.hero__scroll-mouse span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

.hero__video-toggle {
  position: absolute; right: var(--gutter); bottom: 34px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(8,28,20,0.45); border: 1px solid rgba(255,255,255,0.25);
  transition: background-color 0.3s;
}
.hero__video-toggle:hover { background: rgba(255,255,255,0.25); }
.hero__video-toggle svg { width: 16px; height: 16px; fill: #fff; }
.hero__video-toggle .i-play, .hero__video-toggle[aria-pressed="true"] .i-pause { display: none; }
.hero__video-toggle[aria-pressed="true"] .i-play { display: block; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 10vw, 150px) 0; overflow: hidden; }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head__sub { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); color: var(--ink-soft); font-weight: 500; }

.blob { position: absolute; z-index: -1; border-radius: 50%; opacity: 0.7; pointer-events: none; }
.blob--a { width: 520px; height: 520px; right: -120px; top: 10%; background: radial-gradient(circle, var(--teal-300), transparent 70%); }
.blob--b { width: 600px; height: 600px; left: -200px; top: 20%; background: radial-gradient(circle, var(--leaf-200), transparent 70%); }

/* ---------- About ---------- */
.about { isolation: isolate; }
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about__copy .body-lg { margin-bottom: 34px; }

.house3d {
  position: relative; aspect-ratio: 1 / 1; width: 100%;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 35%, #ffffff 0%, rgba(255,255,255,0) 60%),
    linear-gradient(160deg, #dff3ef 0%, #eaf6e3 55%, #fdf3df 100%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,0.8);
  overflow: hidden; cursor: grab; touch-action: pan-y;
}
.house3d:active { cursor: grabbing; }
.house3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s var(--ease); }
.house3d.is-ready .house3d__canvas { opacity: 1; }
.house3d__fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 14%; transition: opacity 0.6s; }
.house3d.is-ready .house3d__fallback { opacity: 0; pointer-events: none; }
.house3d__ring { position: absolute; left: 50%; bottom: 10%; width: 70%; aspect-ratio: 4/1; transform: translateX(-50%); border-radius: 50%; border: 1px dashed rgba(59,138,44,0.3); pointer-events: none; animation: spin 30s linear infinite; }
@keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }
.house3d__hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,0.92);
  font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); white-space: nowrap;
  box-shadow: var(--shadow-sm); pointer-events: none; transition: opacity 0.5s;
}
.house3d__hint svg { width: 14px; height: 14px; fill: var(--leaf-600); }
.house3d.is-touched .house3d__hint { opacity: 0; }

/* ---------- Statement ---------- */
.statement { position: relative; padding: 0 0 clamp(80px, 10vw, 140px); overflow: hidden; }
.marquee { overflow: hidden; padding: 18px 0; margin-bottom: clamp(50px, 7vw, 90px); border-block: 1px solid var(--line); background: var(--leaf-50); transform: rotate(-1.5deg) scale(1.03); }
.marquee__track { display: flex; width: max-content; gap: 36px; align-items: center; animation: marquee 32s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 1rem + 1.4vw, 2.2rem); letter-spacing: -0.02em; color: var(--forest-800); white-space: nowrap; }
.marquee__track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.2px var(--leaf-600); }
.marquee__track i { font-style: normal; color: var(--sun-500); font-size: 1.3rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

.statement__card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(36px, 6vw, 80px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--forest-900) 0%, var(--forest-800) 55%, #1f5a3b 100%);
  color: #fff; box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
}
.statement__card::after { /* subtle grid */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.12;
  background-image: linear-gradient(rgba(255,255,255,0.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 65%);
}
.statement__glow { position: absolute; z-index: -1; width: 480px; height: 480px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(248,184,74,0.55), transparent 65%); animation: glow 8s ease-in-out infinite; }
@keyframes glow { 50% { transform: translate(-60px, 40px) scale(1.15); } }
.statement__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 1.1rem + 3vw, 3.6rem); line-height: 1.08; letter-spacing: -0.03em; max-width: 900px; margin-bottom: 28px; }
.statement__title em { font-style: normal; color: var(--sun-300); }
.statement__text { max-width: 760px; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); line-height: 1.8; color: rgba(255,255,255,0.8); margin-bottom: 36px; }

/* ---------- Assessor ---------- */
.assessor { isolation: isolate; background: linear-gradient(180deg, var(--bg), #f3f9f1); }
.assessor__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 70px); align-items: start; }

.accordion { display: grid; gap: 16px; }
.accordion > .btn { justify-self: start; margin-top: 12px; }
.accordion__item {
  border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), border-color 0.4s;
}
.accordion__item.is-open { box-shadow: var(--shadow); border-color: rgba(76,159,56,0.35); }
.accordion__item h3 { margin: 0; }
.accordion__trigger { width: 100%; display: flex; align-items: center; gap: 18px; padding: 22px 24px; text-align: left; }
.accordion__num { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--leaf-600); padding: 6px 10px; border-radius: 10px; background: var(--leaf-50); }
.accordion__label { flex: 1; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem); letter-spacing: -0.01em; line-height: 1.3; }
.accordion__icon { position: relative; flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--leaf-50); transition: background-color 0.3s, transform 0.5s var(--ease); }
.accordion__icon::before, .accordion__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: var(--leaf-700); transition: transform 0.4s var(--ease), background-color 0.3s; }
.accordion__icon::after { transform: rotate(90deg); }
.is-open .accordion__icon { background: var(--leaf-500); transform: rotate(180deg); }
.is-open .accordion__icon::before, .is-open .accordion__icon::after { background: #fff; }
.is-open .accordion__icon::after { transform: rotate(0); }
.accordion__panel { overflow: hidden; }
.accordion__body { padding: 0 24px 26px 24px; color: var(--ink-soft); line-height: 1.8; }
@media (min-width: 600px) { .accordion__body { padding-left: 82px; } }

/* Flowchart */
.flow {
  margin: 0; padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.flow__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.flow__title { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase; }
.flow__filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 999px; background: var(--leaf-50); }
.flow__filter { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); transition: background-color 0.3s, color 0.3s, box-shadow 0.3s; }
.flow__filter:hover { color: var(--ink); }
.flow__filter.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot--a { background: var(--path-a); } .dot--b { background: var(--path-b); } .dot--c { background: var(--path-c); }

.flow__scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: -4px; padding: 4px; }
.flow__stage { position: relative; width: 100%; min-width: 500px; aspect-ratio: 600 / 560; container-type: inline-size; }
.flow__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ln { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; color: var(--forest-900); stroke: currentColor; transition: opacity 0.4s, stroke-width 0.4s; vector-effect: non-scaling-stroke; }
.ln--thin { stroke-width: 1.5; color: var(--ink-mute); }
.ln--a { color: var(--path-a); stroke-width: 3.5; }
.ln--b { color: var(--path-b); stroke-width: 3.5; }
.ln--c { color: var(--path-c); stroke-width: 3.5; }

.node {
  position: absolute;
  left: calc(var(--x) / 600 * 100%); top: calc(var(--y) / 560 * 100%);
  width: calc(var(--w) / 600 * 100%); height: calc(var(--h) / 560 * 100%);
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 1.5cqw; text-align: center; line-height: 1.15;
  border-radius: 1.6cqw; background: #fff; border: 2px solid var(--forest-900);
  font-family: var(--font-display); font-weight: 600; font-size: 2.45cqw; color: var(--ink);
  box-shadow: 0 6px 16px -10px rgba(13,42,30,0.5);
  transition: opacity 0.4s, transform 0.4s var(--ease), box-shadow 0.4s, background-color 0.4s;
}
.node small { display: block; margin-top: 0.5cqw; font-family: var(--font-body); font-weight: 600; font-style: italic; font-size: 1.75cqw; color: var(--ink-mute); }
.node--start { border-radius: 50%; padding: 0 1cqw; font-size: 2cqw; background: var(--leaf-50); }
.node--key { background: var(--forest-900); color: #fff; }
.node--key small { color: var(--leaf-200); }
.node--side { border-style: solid; border-color: var(--ink-mute); }
.node--diamond { border: 0; background: none; box-shadow: none; z-index: 1; padding: 0 4cqw; font-size: 2.15cqw; }
.node--diamond::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--forest-900); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.node--diamond::after { content: ""; position: absolute; inset: 3px; z-index: -1; background: var(--sun-300); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.node--diamond small { color: var(--ink-soft); }
.node--a { border-color: var(--path-a); }
.node--b { border-color: var(--path-b); }
.node--c { border-color: var(--path-c); }
.flow__tag {
  position: absolute; left: calc(var(--x) / 600 * 100%); top: calc(var(--y) / 560 * 100%);
  transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 800; font-size: 2.6cqw;
  transition: opacity 0.4s;
}
.flow__tag--a { color: var(--path-a); } .flow__tag--b { color: var(--path-b); } .flow__tag--c { color: var(--path-c); }

.flow__stage:not([data-active="all"]) .ln--a,
.flow__stage:not([data-active="all"]) .ln--b,
.flow__stage:not([data-active="all"]) .ln--c,
.flow__stage:not([data-active="all"]) .node--path,
.flow__stage:not([data-active="all"]) .flow__tag { opacity: 0.15; }
.flow__stage[data-active="a"] :is(.ln--a, .node--a, .flow__tag--a),
.flow__stage[data-active="b"] :is(.ln--b, .node--b, .flow__tag--b),
.flow__stage[data-active="c"] :is(.ln--c, .node--c, .flow__tag--c) { opacity: 1; }
.flow__stage[data-active="a"] .node--a,
.flow__stage[data-active="b"] .node--b,
.flow__stage[data-active="c"] .node--c { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 14px 30px -12px currentColor; }
.flow__stage[data-active="a"] .node--a { background: #fff4e8; color: #8a4508; }
.flow__stage[data-active="b"] .node--b { background: #eaf3fc; color: #1d4f85; }
.flow__stage[data-active="c"] .node--c { background: #fdecea; color: #8a1814; }
.flow__stage[data-active="a"] .ln--a,
.flow__stage[data-active="b"] .ln--b,
.flow__stage[data-active="c"] .ln--c { stroke-dasharray: 8 6; animation: dash 0.8s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -14; } }

/* line draw-in (driven by JS adding .is-drawn) */
.flow .ln { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.flow.is-drawn .ln { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease), opacity 0.4s; }
.flow.is-drawn .flow__stage:not([data-active="all"]) .ln:is(.ln--a,.ln--b,.ln--c) { stroke-dasharray: 8 6; }
.no-js .flow .ln, .reduced-motion .flow .ln { stroke-dasharray: none; stroke-dashoffset: 0; }

.flow__open { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 0.88rem; font-weight: 700; color: var(--leaf-700); padding: 8px 4px; transition: color 0.25s, gap 0.3s var(--ease); }
.flow__open:hover { color: var(--leaf-500); gap: 12px; }
.flow__open svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Coordinator ---------- */
.coordinator { background: #f3f9f1; }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; perspective: 1200px; }
.role {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 38px 32px 36px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: box-shadow 0.4s var(--ease);
}
.role::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(108,198,188,0.22), transparent 60%);
  transition: opacity 0.4s;
}
.role:hover { box-shadow: var(--shadow-lg); }
.role:hover::before { opacity: 1; }
.role__index { position: absolute; top: 26px; right: 30px; font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px rgba(16,38,28,0.12); transform: translateZ(30px); }
.role__icon { position: relative; width: 84px; height: 84px; margin-bottom: 28px; transform: translateZ(50px); }
.role__icon svg { position: absolute; inset: 0; margin: auto; width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; z-index: 2; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.cube { position: absolute; inset: 12px; transform-style: preserve-3d; transform: rotateX(-22deg) rotateY(38deg); animation: cubeSpin 14s linear infinite; }
.role:nth-child(2) .cube { animation-delay: -4s; }
.role:nth-child(3) .cube { animation-delay: -8s; }
.cube span { position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(135deg, var(--leaf-400), var(--leaf-700)); border: 1px solid rgba(255,255,255,0.35); }
.cube span:nth-child(1) { transform: translateZ(30px); }
.cube span:nth-child(2) { transform: rotateY(180deg) translateZ(30px); }
.cube span:nth-child(3) { transform: rotateY(90deg) translateZ(30px); background: linear-gradient(135deg, var(--teal-400), var(--teal-500)); }
.cube span:nth-child(4) { transform: rotateY(-90deg) translateZ(30px); background: linear-gradient(135deg, var(--teal-400), var(--teal-500)); }
.cube span:nth-child(5) { transform: rotateX(90deg) translateZ(30px); background: linear-gradient(135deg, var(--sun-300), var(--sun-500)); }
.cube span:nth-child(6) { transform: rotateX(-90deg) translateZ(30px); }
@keyframes cubeSpin { to { transform: rotateX(-22deg) rotateY(398deg); } }
.role__title { font-family: var(--font-display); font-weight: 700; font-size: 1.65rem; letter-spacing: -0.02em; margin-bottom: 12px; transform: translateZ(40px); }
.role p { color: var(--ink-soft); transform: translateZ(20px); }

.coord-detail { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 4vw, 56px); align-items: center; margin-top: clamp(60px, 8vw, 110px); }
.coord-detail__text .body-lg { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem); color: var(--ink); }
.callout {
  position: relative; overflow: hidden;
  padding: 36px; border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #ffffff, var(--leaf-50));
  border: 1px solid rgba(76,159,56,0.25); box-shadow: var(--shadow-lg);
}
.callout p { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.45; letter-spacing: -0.01em; margin: 22px 0 26px; }
.callout__badge { display: inline-grid; justify-items: center; padding: 12px 16px; border-radius: 18px; background: var(--forest-900); color: #fff; line-height: 1; box-shadow: 0 16px 30px -14px rgba(13,42,30,0.7); }
.callout__badge span { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; color: var(--leaf-200); }
.callout__badge strong { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; margin: 4px 0; color: var(--sun-300); }

.steps { position: relative; margin-top: clamp(70px, 9vw, 120px); }
.steps__title { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.steps__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 28px; counter-reset: s; }
.step {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 26px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(76,159,56,0.35); }
.step__num {
  flex-shrink: 0; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px;
  font-family: var(--font-display); font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--leaf-500), var(--teal-500));
  box-shadow: 0 10px 20px -10px rgba(59,138,44,0.8);
}
.step p { padding-top: 10px; color: var(--ink-soft); font-weight: 500; }
.steps__line { display: none; }

/* ---------- Contact ---------- */
.contact {
  color: #fff; isolation: isolate;
  background:
    radial-gradient(circle at 10% 10%, rgba(108,198,188,0.25), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(248,184,74,0.18), transparent 45%),
    linear-gradient(160deg, var(--forest-900), var(--forest-950));
}
.contact__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.contact__lead { color: rgba(255,255,255,0.75); font-size: 1.1rem; margin-bottom: 36px; max-width: 420px; }
.contact__cards { display: grid; gap: 14px; }
.contact-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: var(--radius);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  font-weight: 700; font-size: 1.05rem; word-break: break-word;
  transition: background-color 0.3s, transform 0.4s var(--ease), border-color 0.3s;
}
.contact-card:hover { background: rgba(255,255,255,0.1); border-color: rgba(248,184,74,0.5); transform: translateX(6px); }
.contact-card small { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.contact-card__icon { flex-shrink: 0; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(135deg, var(--sun-300), var(--sun-500)); }
.contact-card__icon svg { width: 22px; height: 22px; fill: var(--forest-950); }

.form {
  position: relative; display: grid; gap: 18px;
  padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.97); color: var(--ink);
  box-shadow: 0 50px 100px -40px rgba(0,0,0,0.6);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 24px 18px 10px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #f7faf6;
  font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 150px; }
.field label {
  position: absolute; left: 19px; top: 17px; pointer-events: none;
  color: var(--ink-mute); font-weight: 500;
  transform-origin: 0 0; transition: transform 0.25s var(--ease), color 0.25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--leaf-500); background: #fff; box-shadow: 0 0 0 4px rgba(76,159,56,0.15); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(0.76); color: var(--leaf-700); font-weight: 700; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--heat); background: #fff7f5; }
.field__error { display: block; min-height: 0; font-size: 0.82rem; font-weight: 600; color: var(--heat); margin-top: 4px; }
.field__error:empty { display: none; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { margin-top: 4px; }
.form__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,0.4); border-top-color: #fff; animation: spinS 0.8s linear infinite; }
.form.is-sending .form__spinner { display: block; }
.form.is-sending .form__submit svg { display: none; }
.form.is-sending .form__submit { pointer-events: none; opacity: 0.85; }
@keyframes spinS { to { transform: rotate(360deg); } }
.form__status { font-weight: 600; font-size: 0.95rem; text-align: center; }
.form__status:empty { display: none; }
.form__legal { font-size: 0.75rem; line-height: 1.5; color: var(--ink-mute); text-align: center; }
.form__legal a { color: var(--leaf-700); text-decoration: underline; text-underline-offset: 2px; }
/* The floating reCAPTCHA badge would sit on top of the WhatsApp button; Google allows
   hiding it when the notice above is shown with the form. */
.grecaptcha-badge { visibility: hidden !important; }
.form__status.is-success { color: var(--leaf-700); padding: 14px; border-radius: 12px; background: var(--leaf-50); }
.form__status.is-error { color: #a42c12; padding: 14px; border-radius: 12px; background: #fff1ec; }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--forest-950); color: rgba(255,255,255,0.72); padding-top: 70px; }
.footer__wave { position: absolute; left: 0; right: 0; top: -1px; height: 50px; transform: rotate(180deg); }
.footer__wave svg { width: 100%; height: 100%; fill: var(--forest-950); }
.footer__wave { display: none; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer__brand img { width: 150px; height: auto; margin-bottom: 20px; background: #fff; border-radius: 20px; padding: 10px 14px; }
.footer__brand p { max-width: 420px; font-size: 0.95rem; }
.footer__col h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #fff; margin-bottom: 18px; }
.footer__col li + li { margin-top: 10px; }
.footer__col a:not(.btn) { position: relative; transition: color 0.25s; word-break: break-word; }
.footer__col a:not(.btn):hover { color: var(--sun-300); }
.footer__cta { margin-top: 22px; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-block: 24px; font-size: 0.88rem; }
.footer__top { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; }
.footer__top svg { width: 16px; height: 16px; fill: currentColor; transition: transform 0.3s var(--ease); }
.footer__top:hover svg { transform: translateY(-3px); }

/* ---------- Floating UI ---------- */
.dots { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 90; display: grid; gap: 14px; }
.dots a { position: relative; display: block; width: 10px; height: 10px; border-radius: 50%; background: rgba(120,140,130,0.45); border: 2px solid transparent; transition: background-color 0.3s, transform 0.3s var(--ease), border-color 0.3s; }
.dots a::after { content: attr(aria-label); position: absolute; right: 22px; top: 50%; transform: translate(8px, -50%); opacity: 0; pointer-events: none; padding: 4px 10px; border-radius: 8px; background: var(--forest-900); color: #fff; font-size: 0.75rem; font-weight: 600; white-space: nowrap; transition: opacity 0.25s, transform 0.25s var(--ease); }
.dots a:hover::after { opacity: 1; transform: translate(0, -50%); }
.dots a.is-active { background: var(--leaf-500); transform: scale(1.35); border-color: #fff; box-shadow: 0 0 0 3px rgba(76,159,56,0.25); }

/* WhatsApp floating button */
.wa-float {
  --wa: #25d366;
  position: fixed; right: 22px; bottom: 22px; z-index: 95;
  display: flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 16px; border-radius: 999px;
  background: var(--wa); color: #fff;
  box-shadow: 0 14px 30px -10px rgba(37,211,102,0.7);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; flex-shrink: 0; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa); animation: waPulse 2.4s ease-out infinite; pointer-events: none; }
.wa-float__label { font-weight: 700; font-size: 0.95rem; white-space: nowrap; max-width: 0; overflow: hidden; opacity: 0; transition: max-width 0.45s var(--ease), opacity 0.3s; }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -12px rgba(37,211,102,0.85); }
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { max-width: 140px; opacity: 1; }
@keyframes waPulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.35); opacity: 0; } }

.topbar__link[data-wa] svg { fill: #25d366; width: 16px; height: 16px; }
.nav__wa { display: inline-flex; align-items: center; gap: 8px; color: #1da851; }
.nav__wa svg { width: 20px; height: 20px; fill: currentColor; }
.contact-card--wa .contact-card__icon { background: #25d366; }
.contact-card--wa .contact-card__icon svg { fill: #fff; width: 26px; height: 26px; }
.contact-card--wa:hover { border-color: rgba(37,211,102,0.6); }

.to-top {
  position: fixed; right: 26px; bottom: 94px; z-index: 90;
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: var(--forest-900); color: #fff; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity 0.4s, transform 0.4s var(--ease), visibility 0.4s, background-color 0.3s;
}
.to-top svg { width: 20px; height: 20px; fill: currentColor; }
.to-top:hover { background: var(--leaf-600); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

.lightbox { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 24px; background: rgba(8,28,20,0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fadeIn 0.3s var(--ease); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(960px, 100%); max-height: 86vh; width: auto; height: auto; border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 1.8rem; line-height: 1; }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- Reveal (initial states set only when JS + motion are on) ---------- */
.js-anim [data-reveal] { opacity: 0; transform: translateY(40px); }
.js-anim [data-hero] { opacity: 0; transform: translateY(30px); }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Desktop: one Contact Us only — the CTA button; the link lives in the mobile menu */
@media (min-width: 961px) {
  .nav__item--contact { display: none; }
}

@media (max-width: 1100px) {
  .nav__inner { gap: 16px; }
  .nav__link { padding: 9px 11px; font-size: 0.86rem; }
  .nav__cta { padding: 10px 16px; }
  .hero__badges { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 92px; }
  .topbar { display: none; }
  .header.is-scrolled .topbar { margin-top: 0; }
  .nav__cta { display: none; }
  /* No backdrop-filter here: it turns the nav into the containing block for the
     fixed full-screen menu, squashing the open menu into the 80px bar. */
  .header.is-scrolled .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,0.97); }
  .nav__brand img { height: 70px; }
  .header.is-scrolled .nav__brand img { height: 62px; }
  .nav__toggle {
    position: relative; z-index: 2;
    display: grid; place-content: center; gap: 5px;
    width: 48px; height: 48px; border-radius: 14px;
    background: rgba(8,28,20,0.4); border: 1px solid rgba(255,255,255,0.25);
  }
  .nav__toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: #fff; transition: transform 0.4s var(--ease), opacity 0.3s, background-color 0.3s; }
  .header.is-scrolled .nav__toggle, .nav-open .nav__toggle { background: var(--leaf-50); border-color: var(--line); }
  .header.is-scrolled .nav__toggle span, .nav-open .nav__toggle span { background: var(--forest-900); }
  .nav-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__links {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: stretch; justify-content: center; gap: 6px;
    padding: 100px 28px 40px; border-radius: 0; border: 0;
    background: #fbfcf8;
    clip-path: circle(0 at calc(100% - 44px) 46px);
    transition: clip-path 0.7s var(--ease);
    overflow-y: auto;
  }
  .header.is-scrolled .nav__links { background: rgba(251,252,248,0.97); }
  .nav-open .nav__links { clip-path: circle(150% at calc(100% - 44px) 46px); }
  .nav__links li { opacity: 0; transform: translateY(20px); transition: opacity 0.4s, transform 0.5s var(--ease); }
  .nav-open .nav__links li { opacity: 1; transform: none; }
  .nav-open .nav__links li:nth-child(1) { transition-delay: 0.12s; }
  .nav-open .nav__links li:nth-child(2) { transition-delay: 0.17s; }
  .nav-open .nav__links li:nth-child(3) { transition-delay: 0.22s; }
  .nav-open .nav__links li:nth-child(4) { transition-delay: 0.27s; }
  .nav-open .nav__links li:nth-child(5) { transition-delay: 0.32s; }
  .nav-open .nav__links li:nth-child(6) { transition-delay: 0.37s; }
  .nav__link, .header.is-scrolled .nav__link { padding: 14px 18px; border-radius: 16px; font-family: var(--font-display); font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 700; color: var(--ink); }
  .nav__link.is-active, .header.is-scrolled .nav__link.is-active { background: var(--forest-900); color: #fff; }
  .nav__mobile-contact { display: grid; gap: 6px; margin-top: 24px; padding: 20px 18px 0; border-top: 1px solid var(--line); font-weight: 600; color: var(--leaf-700); }
  .nav-open .nav__brand { position: relative; z-index: 2; }
  .nav-open .nav__brand img { filter: none; }

  /* minmax(0,1fr): stop wide children (the scrollable flowchart) stretching the column */
  .about__grid, .assessor__grid, .coord-detail, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .about__visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .roles { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .dots { display: none; }
}

@media (min-width: 640px) and (max-width: 960px) {
  .roles { grid-template-columns: repeat(2, 1fr); max-width: none; }
  .roles .role:last-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .steps__list { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero { padding-bottom: 110px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__video-toggle { bottom: 30px; }
  .step { padding: 20px; gap: 16px; }
  .callout { padding: 26px; }
  .accordion__trigger { padding: 18px; gap: 12px; }
  .accordion__body { padding: 0 18px 22px; }
}

@media (max-width: 480px) {
  .hero__eyebrow { font-size: 0.66rem; letter-spacing: 0.07em; padding: 7px 12px 7px 10px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { justify-content: center; text-align: center; }
  .wa-float { right: 16px; bottom: 16px; height: 54px; padding: 0 13px; }
  .to-top { right: 20px; bottom: 82px; width: 46px; height: 46px; }
  .role { padding: 30px 24px; }
  .flow { padding: 16px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto !important; }
  .hero__video { transform: none; }
}
