/* ==========================================================================
   LCG — LIVON Consulting Group · website
   Identity: LCG greens + cream, Segoe UI / Arial (as on lcg.group). Logo used unmodified.
   ========================================================================== */

:root {
  --green-deep: #0f3d2e;
  --green-mid: #175943;
  --green-logo: #1d7351;
  --green-pale: #a9c2b6;
  --green-pale2: #c7d8cf;
  --cream: #efece5;
  --cream-2: #f6f4ef;
  --white: #ffffff;
  --ink: #0c2a20;
  --ink-soft: #3c5a4e;
  --ink-mute: #6c8379;
  --line: rgba(12, 42, 32, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);

  /* soft gradient system: layered, low-contrast greens that are easy on the eyes */
  --mint: #9fd6bc;
  --grad-night:
    radial-gradient(90% 70% at 12% 8%, rgba(88, 150, 122, 0.38) 0%, rgba(88, 150, 122, 0) 60%),
    radial-gradient(80% 80% at 95% 95%, rgba(64, 128, 104, 0.32) 0%, rgba(64, 128, 104, 0) 60%),
    linear-gradient(165deg, #173f33 0%, #1d4d3e 48%, #24594a 100%);
  --grad-forest:
    radial-gradient(80% 90% at 85% 0%, rgba(140, 190, 165, 0.30) 0%, rgba(140, 190, 165, 0) 60%),
    linear-gradient(140deg, #22594a 0%, #2c6a57 50%, #3a7a66 100%);
  --grad-sage: linear-gradient(140deg, #3a7a64 0%, #4f8c76 55%, #6aa08a 100%);
  --grad-btn: linear-gradient(135deg, #2a6b55 0%, #3c8268 100%);
  --grad-btn-hover: linear-gradient(135deg, #22594a 0%, #2f735c 100%);
  --grad-cream: linear-gradient(180deg, #f5f3ee 0%, #eef1ec 60%, #e7eee8 100%);
  --night-rgb: 23, 63, 51;

  --font: 'Segoe UI', Arial, Helvetica, sans-serif;
  --radius: 22px;
  --radius-lg: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: min(1320px, 100% - 64px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background-image: linear-gradient(180deg, #f3f1eb 0%, #eef0eb 50%, #f1efe9 100%);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
body.loading { overflow: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--green-mid); color: var(--white); }

.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: 8px; top: -80px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip:focus { top: 8px; }

/* ---------- typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green-mid); margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.eyebrow-light { color: var(--green-pale); }
.h-xl { font-size: clamp(44px, 7vw, 108px); font-weight: 900; line-height: 0.95; letter-spacing: -0.035em; }
.h-lg { font-size: clamp(32px, 4.2vw, 60px); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 26px; }
.section-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; margin-bottom: 72px; }
.section-lead { font-size: 19px; color: var(--ink-soft); max-width: 46ch; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
  white-space: nowrap; will-change: transform;
}
.btn-lg { padding: 18px 30px; font-size: 16px; }
.btn-solid { background: var(--grad-btn); color: var(--white); box-shadow: 0 10px 30px rgba(42, 107, 85, 0.25); }
.btn-solid:hover { background: var(--grad-btn-hover); }
.btn-ghost-dark { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost-dark:hover { border-color: var(--green-mid); color: var(--green-mid); }
.btn-glass { color: var(--white); border: 1.5px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: var(--white); color: var(--green-deep); border-color: var(--white); }
.link-arrow { display: inline-flex; gap: 10px; font-weight: 700; color: var(--green-mid); border-bottom: 2px solid currentColor; padding-bottom: 4px; }
.link-arrow span { transition: transform 0.35s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }

/* ---------- preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--cream);
  display: grid; place-items: center;
}
.loader-inner { width: min(320px, 70vw); display: grid; justify-items: center; gap: 22px; }
.loader-logo { width: 150px; height: auto; }
.loader-bar { width: 100%; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.loader-bar span { display: block; height: 100%; width: 0; background: var(--green-mid); }
.loader-count { font-weight: 800; font-size: 13px; letter-spacing: 0.2em; color: var(--green-mid); }

/* ---------- progress + cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none; mix-blend-mode: difference; }
.cursor span { display: block; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease); }
.cursor.is-hover span { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
.cursor.is-view span { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
.cursor.is-view::after { content: 'View'; position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font: 800 13px/1 var(--font); letter-spacing: 0.08em; color: #000; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- header: floating glass bar, always visible, compacts on scroll ---------- */
.header {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 100;
  width: min(1360px, 100% - 32px);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 10px 10px 10px 18px; border-radius: 22px; overflow: hidden;
  background: rgba(248, 247, 243, 0.82); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: 0 10px 40px rgba(12, 42, 32, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: width 0.7s var(--ease), padding 0.6s var(--ease), top 0.6s var(--ease), box-shadow 0.6s var(--ease), border-radius 0.6s var(--ease);
}
.header.is-compact { top: 10px; width: min(1180px, 100% - 24px); padding: 6px 6px 6px 16px; box-shadow: 0 16px 50px rgba(12, 42, 32, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img, .brand-full { height: 42px; width: auto; transition: height 0.6s var(--ease); }
.is-compact .brand img { height: 36px; }
.brand-text { display: flex; align-items: center; height: 30px; padding-left: 12px; border-left: 1px solid var(--line); }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: 0.04em; line-height: 1; color: var(--green-logo); white-space: nowrap; }
.is-compact .brand-name { font-size: 14px; }

.nav { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 16px; background: rgba(12, 42, 32, 0.04); }
.nav a { position: relative; z-index: 1; white-space: nowrap; padding: 9px 15px; border-radius: 12px; font-weight: 650; font-size: 14.5px; color: var(--ink-soft); transition: color 0.35s var(--ease); }
.nav a.is-hot { color: #fff; }
.nav-pill { position: absolute; z-index: 0; top: 4px; left: 0; height: calc(100% - 8px); width: 0; border-radius: 12px; background: var(--grad-btn); box-shadow: 0 8px 20px rgba(29, 115, 81, 0.3); opacity: 0; transition: transform 0.55s cubic-bezier(.34, 1.3, .64, 1), width 0.55s cubic-bezier(.34, 1.3, .64, 1), opacity 0.3s; }
.roll { display: inline-flex; flex-direction: column; height: 1.25em; line-height: 1.25em; overflow: hidden; vertical-align: top; }
.roll span { transition: transform 0.45s var(--ease); }
.nav a:hover .roll span, .nav a:focus-visible .roll span { transform: translateY(-100%); }

.header-cta { display: flex; gap: 8px; flex: none; }
.header-cta .btn { padding: 11px 18px; font-size: 14px; border-radius: 14px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fb37a; box-shadow: 0 0 0 0 rgba(47, 179, 122, 0.6); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(47, 179, 122, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(47, 179, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 179, 122, 0); } }
.header-progress { position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; border-radius: 2px; overflow: hidden; }
.header-progress i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--green-pale), var(--green-logo)); transform-origin: left; transform: scaleX(0); }

.menu-toggle { display: none; align-items: center; justify-content: center; gap: 0; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 14px; background: var(--green-logo); color: #fff; cursor: pointer; font: 700 13px/1 var(--font); box-shadow: 0 8px 20px rgba(29, 115, 81, 0.3); }
.mt-label { display: inline-flex; flex-direction: column; height: 14px; overflow: hidden; }
.mt-label span { line-height: 14px; transition: transform 0.5s var(--ease); }
.menu-open .mt-label span { transform: translateY(-100%); }
.mt-icon { position: relative; width: 28px; height: 28px; background: none; }
.mt-icon i { position: absolute; left: 8px; right: 8px; height: 2px; border-radius: 2px; background: #fff; transition: transform 0.5s var(--ease), opacity 0.3s, top 0.5s var(--ease); }
.mt-icon i { left: 5px; right: 5px; }
.mt-icon i:nth-child(1) { top: 8px; } .mt-icon i:nth-child(2) { top: 13px; } .mt-icon i:nth-child(3) { top: 18px; }
.menu-open .mt-icon i:nth-child(1) { top: 13px; transform: rotate(45deg); }
.menu-open .mt-icon i:nth-child(2) { opacity: 0; transform: translateX(6px); }
.menu-open .mt-icon i:nth-child(3) { top: 13px; transform: rotate(-45deg); }

/* mobile menu: fast fade + slide (GPU-only properties), short stagger */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--grad-night); padding: 92px 22px 28px;
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0s; }
.mm-glow { display: none; }
.mm-links { list-style: none; margin: 0; padding: 0; }
.mm-links li { overflow: hidden; border-bottom: 1px solid var(--line-light); }
.mm-links a { display: flex; align-items: center; gap: 14px; padding: 13px 2px; color: var(--cream); opacity: 0; transform: translateY(10px); transition: opacity 0.25s ease, transform 0.3s var(--ease); }
.menu-open .mm-links a { opacity: 1; transform: none; transition-delay: calc(0.04s + var(--i) * 0.03s); }
.mm-no { font-size: 12px; font-weight: 800; color: var(--mint); width: 24px; }
.mm-t { flex: 1; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.mm-arrow { font-size: 17px; color: var(--mint); transition: transform 0.4s var(--ease); }
.mm-links a:active .mm-arrow, .mm-links a:hover .mm-arrow { transform: translateX(6px); }
.mm-foot { margin-top: auto; padding-top: 28px; display: grid; gap: 16px; opacity: 0; transition: opacity 0.3s ease; }
.menu-open .mm-foot { opacity: 1; transition-delay: 0.15s; }
.mm-foot .btn { justify-self: start; }
.mm-social { display: flex; gap: 22px; } .mm-social a { color: var(--green-pale2); font-weight: 700; }
.mm-tag { color: var(--green-pale); font-weight: 800; letter-spacing: 0.02em; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: var(--white); background: var(--green-deep); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero-shade { position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 15% 85%, rgba(15, 61, 46, 0.92) 0%, rgba(15, 61, 46, 0.55) 45%, rgba(15, 61, 46, 0.25) 100%),
  linear-gradient(180deg, rgba(12, 42, 32, 0.35) 0%, rgba(12, 42, 32, 0) 30%, rgba(12, 42, 32, 0.7) 100%); }
.hero-grain { position: absolute; inset: -50%; opacity: 0.07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite; }
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(-5%, 3%); } 60% { transform: translate(4%, -4%); } }
.hero-content { position: relative; z-index: 2; padding: 140px 0 170px; }
.hero-eyebrow { color: var(--green-pale2); }
.hero-eyebrow::before { display: none; }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 6px rgba(159, 214, 188, 0.18); }
.hero-title { font-size: clamp(48px, 8.4vw, 140px); font-weight: 900; line-height: 0.9; letter-spacing: -0.045em; margin-bottom: 32px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.14em; }
.hero-title .split { display: inline-block; }
.hero-title em { font-style: normal; color: transparent; -webkit-text-stroke: 2px var(--green-pale2); }
.hero-sub { font-size: clamp(18px, 1.6vw, 22px); max-width: 40ch; color: rgba(255, 255, 255, 0.86); margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue { position: absolute; right: 40px; bottom: 120px; z-index: 2; width: 26px; height: 44px; border: 2px solid rgba(255, 255, 255, 0.55); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.hero-marquee { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; border-top: 1px solid var(--line-light); background: rgba(12, 42, 32, 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); overflow: hidden; }
.marquee-track { display: flex; width: max-content; gap: 34px; padding: 22px 0; animation: marquee 42s linear infinite; font-weight: 700; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-pale2); }
.marquee-track i { font-style: normal; color: var(--mint); }
@keyframes marquee { to { transform: translateX(-50%); } }


/* ---------- LCG Open product tour ---------- */
.tour-steps { list-style: none; margin: 34px 0 38px; padding: 0; display: grid; gap: 10px; }
.tour-step { width: 100%; text-align: left; display: grid; grid-template-columns: 40px 1fr; gap: 6px 14px; position: relative; overflow: hidden; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line-light); background: rgba(255, 255, 255, 0.04); color: var(--white); font: inherit; cursor: pointer; transition: background 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.5s var(--ease); }
.tour-step:hover { background: rgba(255, 255, 255, 0.08); }
.tour-step.is-on { background: rgba(255, 255, 255, 0.12); border-color: rgba(159, 214, 188, 0.45); transform: translateX(6px); }
.tour-no { font-weight: 900; font-size: 15px; color: var(--mint); padding-top: 2px; }
.tour-txt b { display: block; font-size: 19px; letter-spacing: -0.01em; }
.tour-txt span { display: block; max-height: 0; overflow: hidden; opacity: 0; color: rgba(255, 255, 255, 0.75); font-size: 15px; line-height: 1.5; transition: max-height 0.6s var(--ease), opacity 0.5s, margin 0.5s; }
.tour-step.is-on .tour-txt span { max-height: 90px; opacity: 1; margin-top: 6px; }
.tour-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, 0.08); }
.tour-bar i { position: absolute; inset: 0; background: var(--mint); transform-origin: left; transform: scaleX(0); }
.open-grid { grid-template-columns: 0.72fr 1.45fr !important; gap: 56px !important; }
@media (min-width: 1101px) { .open-visual { margin-right: -5vw; } }
.open-visual { position: relative; perspective: 1800px; }
.device { position: relative; z-index: 1; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 50px 120px rgba(6, 26, 19, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12); transform: rotateY(-7deg) rotateX(4deg); transform-style: preserve-3d; transition: transform 0.9s var(--ease); will-change: transform; }
.device-bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: #f1f3f1; border-bottom: 1px solid #e4e8e5; font-size: 12px; color: #61746b; }
.device-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d3dad6; }
.device-bar i:nth-child(1) { background: #ec6a5e; } .device-bar i:nth-child(2) { background: #f4bf4f; } .device-bar i:nth-child(3) { background: #61c554; }
.device-bar span { margin: 0 auto; padding: 4px 40px; border-radius: 8px; background: #fff; border: 1px solid #e4e8e5; }
.device-bar .lock { color: #1d7351; font-size: 8px; margin-right: 6px; vertical-align: 2px; }
.device-screen { position: relative; aspect-ratio: 16 / 10; background: #f5f4ef; overflow: hidden; }
.tour-screen { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.04) translateY(14px); clip-path: inset(0 0 100% 0); transition: opacity 0.7s var(--ease), transform 1.1s var(--ease), clip-path 0.9s var(--ease); }
.tour-screen.is-on { opacity: 1; transform: none; clip-path: inset(0 0 0 0); z-index: 1; }
.tour-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.hotspot { position: absolute; z-index: 2; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px; opacity: 0; transition: opacity 0.6s var(--ease) 0.6s; }
.tour-screen.is-on .hotspot { opacity: 1; }
.hotspot i { position: relative; width: 16px; height: 16px; border-radius: 50%; background: #1d7351; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9); }
.hotspot i::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid #1d7351; animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.hotspot em { font-style: normal; white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: #0f3d2e; color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }
.hs-left { flex-direction: row-reverse; transform: translate(-100%, -50%) translateX(8px); }
.device-glow { position: absolute; inset: 10% -6% -10% 8%; z-index: 0; border-radius: 40px; background: radial-gradient(60% 60% at 50% 50%, rgba(159, 214, 188, 0.45), transparent 70%); filter: blur(40px); }

/* ---------- hover image reveal (Who we serve) ---------- */
.serve-grid { position: relative; }
.serve-list li { cursor: default; transition: padding 0.5s var(--ease); }
.serve-list li:hover { padding-left: 14px; }
.serve-list li:hover h3 { color: var(--mint); }
.hover-reveal { position: fixed; left: 0; top: 0; z-index: 60; width: 320px; height: 220px; border-radius: 18px; overflow: hidden; pointer-events: none; opacity: 0; transform: scale(0.85); transition: opacity 0.35s var(--ease), transform 0.5s var(--ease); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.hover-reveal.is-on { opacity: 1; transform: scale(1); }
.hover-reveal img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- kinetic type band ---------- */
.kinetic { padding: 40px 0 30px; overflow: hidden; background: var(--cream); }
.kin-row { overflow: hidden; padding: 4px 0; }
.kin-track { display: flex; width: max-content; gap: 34px; align-items: center; font-size: clamp(56px, 9vw, 150px); font-weight: 900; letter-spacing: -0.045em; line-height: 1.05; color: var(--green-deep); will-change: transform; }
.kin-track .o { color: transparent; -webkit-text-stroke: 1.5px rgba(29, 115, 81, 0.55); }
.kin-track i { font-style: normal; font-size: 0.4em; color: var(--green-pale); }

/* ==========================================================================
   3D EXPERIENCE (WebGL hero + scroll story)
   ========================================================================== */
.experience { position: relative; background: var(--grad-night); color: var(--white); }
.exp-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; z-index: 0; }
.gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s var(--ease); }
.gl-ready .gl { opacity: 1; }
.exp-fallback { position: absolute; inset: 0; opacity: 0; }
.no-gl .exp-fallback { background: url('../img/hero-poster.jpg') center / cover; opacity: 0.45; } /* only downloaded when WebGL is unavailable */
.exp-vignette { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(70% 90% at 0% 60%, rgba(var(--night-rgb), 0.85), rgba(var(--night-rgb), 0) 70%),
  radial-gradient(120% 80% at 50% 120%, rgba(var(--night-rgb), 0.9), rgba(var(--night-rgb), 0) 60%); }
.exp-panels { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; pointer-events: none; }
.exp-panel { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.exp-panel a, .exp-panel button, .chapter-card { pointer-events: auto; }
.hero-panel { position: relative; flex-direction: column; justify-content: center; align-items: flex-start; padding: 130px 0 160px; }
.hero-title { text-transform: uppercase; }
.grad { background: linear-gradient(100deg, var(--mint) 0%, #c7d8cf 55%, #ffffff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title .grad { display: inline-block; }
.hero-hint { position: absolute; left: 0; bottom: 104px; display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-pale); }
.mouse { width: 22px; height: 34px; border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 12px; position: relative; }
.mouse span { position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
.experience .hero-marquee { position: absolute; top: calc(100vh - 66px); top: calc(100svh - 66px); bottom: auto; z-index: 3; }

/* Chapters: one normal-scroll panel; cards side by side (desktop) or a swipe carousel (phone) */
.chapters-panel { flex-direction: column; justify-content: flex-end; align-items: stretch; padding: 120px 0 90px; min-height: 100vh; min-height: 100svh; }
.ch-head { margin-bottom: 30px; max-width: 700px; }
.ch-title { font-size: clamp(30px, 3.4vw, 50px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.ch-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; pointer-events: auto; }
.chapter-card { position: relative; overflow: hidden; padding: 30px 28px 34px; border-radius: 24px; cursor: pointer; background: rgba(var(--night-rgb), 0.5); border: 1px solid rgba(199, 216, 207, 0.16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform 0.6s var(--ease), background 0.6s var(--ease), border-color 0.6s var(--ease), box-shadow 0.6s var(--ease); outline: none; }
.chapter-card:hover, .chapter-card:focus-visible { border-color: rgba(159, 214, 188, 0.4); }
.chapter-card.is-on { transform: translateY(-10px); background: rgba(var(--night-rgb), 0.78); border-color: rgba(159, 214, 188, 0.55); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.chapter-card h3 { font-size: clamp(22px, 1.9vw, 30px); font-weight: 900; line-height: 1.08; letter-spacing: -0.02em; margin: 6px 0 12px; }
.chapter-card p { color: rgba(255, 255, 255, 0.74); font-size: 15.5px; }
.ch-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.06); }
.ch-bar i { position: absolute; inset: 0; background: var(--mint); transform-origin: left; transform: scaleX(0); }
.ch-dots { display: none; justify-content: center; gap: 8px; margin-top: 18px; }
.ch-dots i { width: 8px; height: 8px; border-radius: 999px; background: rgba(199, 216, 207, 0.35); transition: width 0.4s var(--ease), background 0.4s; }
.ch-dots i.is-on { width: 26px; background: var(--mint); }
.chapter-no { display: block; font-size: 13px; font-weight: 800; letter-spacing: 0.22em; color: var(--mint); margin-bottom: 18px; }
.chapter-card h2 { font-size: clamp(32px, 3.6vw, 54px); font-weight: 900; line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 18px; }
.chapter-card p { color: rgba(255, 255, 255, 0.78); font-size: 17px; }
.chapter-tags { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chapter-tags li { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(199, 216, 207, 0.3); font-size: 13px; font-weight: 700; color: var(--green-pale2); }

.exp-rail { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); z-index: 3; display: grid; gap: 22px; justify-items: end; }
.rail-line { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 1px; background: rgba(199, 216, 207, 0.2); }
.rail-line i { position: absolute; inset: 0; background: var(--mint); transform-origin: top; transform: scaleY(0); }
.rail-dot { position: relative; padding-right: 22px; min-height: 12px; font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(199, 216, 207, 0.45); transition: color 0.4s; }
.rail-dot::after { content: ''; position: absolute; right: 0; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: #1d4d3e; border: 1.5px solid rgba(199, 216, 207, 0.5); transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease); }
.rail-dot:not(.is-on) { color: transparent; }
.exp-rail:hover .rail-dot { color: rgba(199, 216, 207, 0.6); }
.rail-dot.is-on, .exp-rail:hover .rail-dot.is-on { color: #fff; }
.rail-dot.is-on::after { background: var(--mint); border-color: var(--mint); transform: scale(1.35); }


/* ---------- intro statement ---------- */
.intro { padding: 160px 0 110px; }
.statement { font-size: clamp(30px, 4vw, 58px); font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; max-width: 30ch; }
.statement .w { color: rgba(12, 42, 32, 0.16); transition: color 0.2s; }
.statement .w.on { color: var(--ink); }
.intro-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.intro-foot p { font-size: 19px; color: var(--ink-soft); max-width: 48ch; }

/* ---------- stats ---------- */
.stats { padding: 0 0 120px; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 44px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font-size: clamp(42px, 5vw, 76px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; color: var(--green-deep); }
.stat-num sup { font-size: 0.45em; color: var(--green-logo); top: -0.9em; margin-left: 2px; }
.stat-label { margin-top: 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }

/* ---------- impact board (stats) ---------- */
.impact { padding: 40px 0 130px; }
.impact-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 40px; }
.impact-head .h-lg { margin-bottom: 0; }
.impact-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.kpi { position: relative; overflow: hidden; border-radius: 26px; padding: 28px 30px 30px; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.6s; }
.kpi:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(12, 42, 32, 0.12); border-color: rgba(29, 115, 81, 0.3); }
.kpi-years { grid-row: span 2; background: var(--grad-night); color: var(--white); border-color: transparent; }
.kpi-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.kpi-label { font-size: 15px; font-weight: 700; color: var(--ink-mute); }
.kpi-years .kpi-label { color: var(--green-pale2); }
.kpi-chip { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(159, 214, 188, 0.18); color: var(--mint); }
.kpi-num { font-size: clamp(54px, 5.6vw, 92px); font-weight: 900; letter-spacing: -0.05em; line-height: 1; margin: 18px 0 10px; color: var(--green-deep); font-variant-numeric: tabular-nums; }
.kpi-years .kpi-num { font-size: clamp(110px, 12vw, 190px); color: var(--white); margin-top: auto; }
.kpi-num sup { font-size: 0.42em; color: var(--green-logo); top: -0.95em; margin-left: 2px; }
.kpi-years .kpi-num sup { color: var(--mint); }
.kpi-text { color: rgba(255, 255, 255, 0.78); font-size: 17px; max-width: 34ch; }
.kpi-small { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 12px; }
/* timeline */
.viz-timeline { position: relative; height: 70px; margin: 40px 10px 6px 6px; }
.tl-line { position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: rgba(199, 216, 207, 0.22); }
.tl-line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--green-pale), var(--mint)); transform-origin: left; transform: scaleX(0); transition: transform 2.2s var(--ease) 0.3s; }
.tl-pt { position: absolute; top: 4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #24594a; border: 2px solid var(--mint); opacity: 0; transition: opacity 0.6s var(--ease); }
.tl-pt b { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12.5px; font-weight: 700; color: var(--green-pale2); }
.tl-pt:first-of-type b { left: 0; transform: none; } .tl-now b { left: auto; right: 0; transform: none; color: #fff; }
.tl-now { background: var(--mint); box-shadow: 0 0 0 6px rgba(159, 214, 188, 0.2); }
.is-live .tl-line i { transform: scaleX(1); }
.is-live .tl-pt { opacity: 1; } .is-live .tl-pt:nth-of-type(2) { transition-delay: 0.6s; } .is-live .tl-pt:nth-of-type(3) { transition-delay: 1.3s; } .is-live .tl-pt:nth-of-type(4) { transition-delay: 2.2s; }
/* dots */
.viz-dots { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; margin-top: auto; }
.viz-dots i { aspect-ratio: 1; border-radius: 50%; background: #e3ebe6; transition: background 0.4s, transform 0.4s var(--ease); }
.viz-dots i.on { background: var(--green-logo); }
.kpi-brands:hover .viz-dots i.on { background: #3a8a68; }
/* bars */
.viz-bars { display: flex; align-items: flex-end; gap: 6px; height: 88px; margin-top: auto; }
.viz-bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #5fa585, #1d7351); transform-origin: bottom; transform: scaleY(0); transition: transform 0.9s var(--ease) var(--d), filter 0.3s; }
.is-live .viz-bars i { transform: scaleY(1); }
.viz-bars i:hover { filter: brightness(1.2); }
/* ring */
.kpi-ring { position: relative; width: min(190px, 100%); aspect-ratio: 1; margin: 10px auto 0; display: grid; place-items: center; }
.kpi-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #e3ebe6; stroke-width: 9; }
.ring-fg { fill: none; stroke: #1d7351; stroke-width: 9; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 2s var(--ease) 0.2s; }
.is-live .ring-fg { stroke-dashoffset: 40; }
.kpi-ring .kpi-num { margin: 0; font-size: clamp(40px, 3.6vw, 58px); }
/* map */
.viz-map { position: relative; flex: 1; min-height: 120px; border-radius: 16px; background-color: #f2f6f3; background-image: radial-gradient(#cfdcd4 1.2px, transparent 1.3px); background-size: 12px 12px; }
.viz-map i { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--green-logo); box-shadow: 0 0 0 4px rgba(29, 115, 81, 0.18); transform: scale(0); transition: transform 0.6s cubic-bezier(.34, 1.56, .64, 1) var(--d); }
.is-live .viz-map i { transform: scale(1); }
.viz-map em { position: absolute; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }

/* ---------- departments (bento) ---------- */
.departments { position: relative; padding: 120px 0 140px; background: var(--grad-cream); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dept {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 34px 30px 32px;
  background: var(--white); border: 1px solid var(--line); min-height: 300px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.dept-wide { grid-column: span 2; }
.dept-wide .dept-thumb { height: 220px; }
.dept-image { grid-column: span 2; grid-row: span 2; padding: 0; min-height: 760px; border: 0; }
.dept:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(12, 42, 32, 0.12); border-color: rgba(23, 89, 67, 0.3); }
.spot::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(159, 214, 188, 0.18), transparent 60%); }
.spot:hover::before { opacity: 1; }
.dept-no { position: absolute; top: 26px; right: 30px; font-weight: 800; font-size: 14px; color: var(--green-pale); letter-spacing: 0.1em; }
.dept-icon { width: 58px; height: 58px; object-fit: contain; margin-bottom: auto; padding: 12px; border-radius: 16px; background: var(--grad-forest); transition: transform 0.6s var(--ease), background 0.6s var(--ease); }
.dept:hover .dept-icon { background: var(--grad-sage); }
.dept:hover .dept-icon { transform: rotate(-8deg) scale(1.08); }
.dept h3 { font-size: 23px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; margin: 34px 0 10px; max-width: 18ch; }
.dept p { color: var(--ink-soft); font-size: 16px; max-width: 44ch; }
.dept-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.dept-image:hover .dept-photo { transform: scale(1.05); }
.dept-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(12, 42, 32, 0.8)); }
.dept-photo-caption { position: relative; z-index: 1; margin: auto 30px 30px; color: #fff; font-weight: 800; font-size: 22px; max-width: 22ch; }

/* department cards with photography */
.dept-thumb { display: block; width: calc(100% + 60px); max-width: none; height: 190px; margin: -34px -30px 0; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; transition: transform 1s var(--ease), filter 0.8s var(--ease); filter: saturate(0.85); }
.dept:has(.dept-thumb) { justify-content: flex-start; }
.dept:has(.dept-thumb) .dept-icon { position: relative; z-index: 1; margin: -30px 0 0; box-shadow: 0 10px 24px rgba(12, 42, 32, 0.25); border: 3px solid var(--white); width: 62px; height: 62px; }
.dept:has(.dept-thumb) h3 { margin-top: 20px; }
.dept:has(.dept-thumb) .dept-no { z-index: 2; color: #fff; background: rgba(23, 63, 51, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 5px 10px; border-radius: 999px; top: 18px; right: 18px; }
.dept:hover .dept-thumb { filter: saturate(1.05); }

/* graded photography: brand-green tone, true colour on hover */
.grade { position: relative; }
.grade::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(160deg, #4f8c76, #2c6a57); mix-blend-mode: color; opacity: 0.5; transition: opacity 0.9s var(--ease); z-index: 1; border-radius: inherit; }
.grade:hover::after { opacity: 0; }

.dept-image .dept-photo-caption { z-index: 2; }
.dept-cta { background: var(--grad-forest); color: var(--white); border-color: transparent; }
.dept-cta h3 { color: var(--white); }
.dept-cta p { color: rgba(255, 255, 255, 0.75); margin-bottom: 22px; }
.dept-cta .dept-no { color: var(--mint); font-size: 22px; }
.dept-cta .link-arrow { color: var(--mint); align-self: flex-start; }
.dept-cta:hover { filter: brightness(1.06); }

@media (min-width: 1101px) {
  .departments.is-h { height: 100vh; min-height: 760px; padding: 100px 0 0; overflow: hidden; }
  .departments.is-h .section-head { margin-bottom: 44px; }
  .departments.is-h .bento { display: flex; gap: 18px; width: max-content; padding-right: 8vw; will-change: transform; }
  .departments.is-h .dept { flex: none; width: 380px; min-height: 470px; }
  .departments.is-h .dept-wide { width: 470px; }
  .departments.is-h .dept-image { width: 620px; min-height: 470px; }
  .departments.is-h .h-progress { display: block; }
}
.h-progress { display: none; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); }
.h-progress i { position: absolute; inset: 0; background: var(--green-logo); transform-origin: left; transform: scaleX(0); }

/* ---------- who we serve ---------- */
.serve { background: var(--grad-night); color: var(--white); padding: 140px 0 90px; }
.serve-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; }
.serve-list { list-style: none; margin: 0; padding: 0; }
.serve-list li { display: flex; gap: 26px; padding: 32px 0; border-top: 1px solid var(--line-light); }
.serve-list li:last-child { border-bottom: 1px solid var(--line-light); }
.serve-no { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--green-pale); color: var(--green-pale); font-weight: 800; }
.serve-list h3 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.serve-list p { color: rgba(255, 255, 255, 0.72); }
.regions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 32px; margin-top: 90px; font-size: clamp(24px, 2.75vw, 42px); font-weight: 900; letter-spacing: -0.03em; color: var(--green-pale2); }
.regions .sep { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--mint); }

/* ---------- process ---------- */
.process { padding: 140px 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.step { position: sticky; top: calc(110px + var(--i) * 26px); display: grid; grid-template-columns: 1fr 1.1fr; min-height: 380px; border-radius: 30px; overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(12, 42, 32, 0.12); transform-origin: 50% 0; will-change: transform; }
.step:nth-child(2) { background: #f3f7f4; } .step:nth-child(3) { background: var(--grad-forest); color: var(--white); } .step:nth-child(4) { background: var(--grad-night); color: var(--white); }
.step:nth-child(n+3) p { color: #fff; opacity: 0.88; } .step:nth-child(n+3) .step-no { color: var(--mint); }
.step-body { padding: 48px 48px 44px; display: flex; flex-direction: column; }
.step-no { font-size: 80px; font-weight: 900; letter-spacing: -0.05em; color: var(--green-pale); line-height: 1; }
.step h3 { font-size: clamp(38px, 3.8vw, 56px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; margin: auto 0 16px; }
.step p { color: var(--ink); opacity: 0.82; font-size: 20px; line-height: 1.55; max-width: 38ch; }
.step-img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }

/* ---------- LCG Open ---------- */
.open { position: relative; overflow: hidden; padding-bottom: 190px !important; background: var(--grad-night); color: var(--white); padding: 150px 0; border-radius: var(--radius-lg); margin: 0 16px; }
.open-glow { position: absolute; width: 900px; height: 900px; right: -250px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(159, 214, 188, 0.22), transparent 62%); filter: blur(10px); }
.open-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.badge-new { background: var(--mint); color: var(--green-deep); border-radius: 999px; padding: 3px 10px; font-size: 11px; letter-spacing: 0.1em; }
.open .eyebrow::before { display: none; }
.hl { white-space: nowrap; background: linear-gradient(90deg, var(--mint), var(--green-pale2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.open-lead { font-size: 20px; color: rgba(255, 255, 255, 0.82); margin: 26px 0 32px; max-width: 46ch; }
.open-features { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 14px; }
.open-features li { display: grid; gap: 2px; padding: 16px 18px 16px 50px; position: relative; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-light); }
.open-features li::before { content: '✓'; position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; background: var(--mint); color: var(--green-deep); }
.open-features b { font-size: 17px; }
.open-features span { color: rgba(255, 255, 255, 0.7); font-size: 15px; }
.open-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.open-visual { position: relative; }
.mock { border-radius: 20px; overflow: hidden; background: #f7f8fb; color: #0b1220; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45); transform: perspective(1400px) rotateY(-10deg) rotateX(4deg); transition: transform 0.8s var(--ease); }
.open-visual:hover .mock { transform: perspective(1400px) rotateY(0) rotateX(0); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #e9edf3; font-size: 12px; color: #697586; }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; }
.mock-bar span { margin-left: 12px; padding: 4px 12px; border-radius: 8px; background: #fff; }
.mock-body { display: grid; grid-template-columns: 150px 1fr; min-height: 360px; }
.mock-side { background: #0b1020; color: #94a3b8; padding: 18px 14px; display: grid; align-content: start; gap: 6px; font-size: 12.5px; }
.mock-side b { color: #fff; margin-bottom: 10px; }
.mock-side span { padding: 7px 10px; border-radius: 8px; }
.mock-side .on { background: rgba(255, 255, 255, 0.1); color: #fff; }
.mock-main { padding: 18px; display: grid; gap: 14px; align-content: start; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpis div { background: #fff; border: 1px solid #e3e8ef; border-radius: 12px; padding: 10px 12px; }
.mock-kpis small { display: block; color: #697586; font-size: 11px; }
.mock-kpis strong { font-size: 22px; }
.mock-flow { display: grid; gap: 8px; }
.mf { background: #fff; border: 1px solid #e3e8ef; border-radius: 10px; padding: 9px 12px 9px 36px; font-size: 13px; font-weight: 600; position: relative; color: #697586; }
.mf::before { content: ''; position: absolute; left: 12px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 2px solid #cbd5e1; }
.mf.done { color: #0b1220; } .mf.done::before { background: #10b981; border-color: #10b981; }
.mf.run { color: #1d4ed8; } .mf.run::before { border-color: #3b82f6; border-top-color: transparent; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.shot { margin: 0; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 40px 100px rgba(8, 30, 22, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.shot img { display: block; width: 100%; height: auto; }
.shot-main { position: relative; z-index: 1; transform: perspective(1600px) rotateY(-9deg) rotateX(3deg); transition: transform 0.8s var(--ease); }
.open-visual:hover .shot-main { transform: perspective(1600px) rotateY(0) rotateX(0); }
.shot-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #eef1ee; font-size: 12px; color: #5d7067; }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9d3cd; }
.shot-bar span { margin-left: 10px; padding: 3px 12px; border-radius: 8px; background: #fff; }
.shot-side { position: absolute; width: 58%; right: -6%; bottom: -16%; z-index: 2; border: 4px solid rgba(255, 255, 255, 0.9); transform: perspective(1600px) rotateY(-9deg); }
.float-chip { position: absolute; padding: 12px 16px; border-radius: 14px; font-weight: 700; font-size: 14px; background: var(--white); color: var(--green-deep); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); }
.chip-a { left: -26px; bottom: 30px; z-index: 3; }
.chip-b { right: -18px; top: -22px; z-index: 3; background: var(--mint); }

/* ---------- about / story ---------- */
.about { padding: 160px 0 120px; }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; margin-bottom: 160px; }
.clip { margin: 0; overflow: hidden; border-radius: var(--radius-lg); }
.clip img { width: 100%; height: 115%; object-fit: cover; }
.about-media { height: 640px; }
.about-copy p { font-size: 18px; color: var(--ink-soft); margin-bottom: 18px; }
.about-copy blockquote { margin: 34px 0 0; padding: 26px 30px; border-left: 4px solid var(--green-logo); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; font-size: 21px; font-weight: 700; color: var(--green-deep); }
.story { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 72px; align-items: start; }
.story-text p { font-size: 18px; color: var(--ink-soft); margin-bottom: 18px; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.timeline div { padding: 22px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.timeline b { display: block; font-size: 26px; font-weight: 900; color: var(--green-mid); margin-bottom: 6px; }
.timeline span { color: var(--ink-soft); font-size: 15px; }

.story-side { position: sticky; top: 120px; display: grid; gap: 22px; }
.founder-card { display: flex; align-items: center; gap: 18px; padding: 18px 22px 18px 18px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(12, 42, 32, 0.08); }
.founder-avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px var(--white), 0 0 0 5px rgba(79, 140, 118, 0.45); }
.founder-name { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.founder-role { font-size: 14.5px; font-weight: 600; letter-spacing: 0; color: var(--ink-mute); margin-top: 3px; }
.founder-quote { font-size: 16px; color: var(--ink-soft); padding: 0 4px; }
.story-photo { height: 440px; }

/* ---------- mission / vision ---------- */
.mv { background: var(--grad-sage); color: var(--white); padding: 120px 0; border-radius: var(--radius-lg); margin: 0 16px; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 48px; }
.mv-card { padding: 44px 40px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line-light); }
.mv-text { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.mv-media { height: 480px; margin-inline: auto; }

/* ---------- values ---------- */
.values { padding: 150px 0; }
.livon { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.lv { position: relative; padding: 30px 28px 32px; min-height: 290px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; transition: background 0.6s var(--ease), color 0.6s var(--ease), transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.lv-letter { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: var(--grad-forest); color: #fff; font-size: 30px; font-weight: 800; letter-spacing: 0; line-height: 1; box-shadow: 0 10px 24px rgba(29, 115, 81, 0.25); transition: transform 0.6s var(--ease), background 0.6s var(--ease); }
.lv-name { margin: auto 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; color: var(--ink); transition: color 0.6s; }
.lv-sub { font-size: 16px; font-weight: 500; color: var(--ink-soft); transition: color 0.6s; }
.lv::after { content: ''; position: absolute; left: 28px; right: 28px; bottom: 0; height: 3px; background: var(--green-logo); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.lv:hover { background: var(--grad-forest); transform: translateY(-8px); box-shadow: 0 30px 60px rgba(12, 42, 32, 0.15); }
.lv:hover .lv-letter { background: #fff; color: var(--green-logo); transform: scale(1.06); }
.lv:hover .lv-name { color: #fff; }
.lv:hover .lv-sub { color: var(--green-pale2); }
.lv:hover::after { transform: scaleX(1); background: var(--mint); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; color: var(--white); padding: 170px 0; margin: 0 16px; border-radius: var(--radius-lg); background: var(--grad-forest); }
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; filter: grayscale(0.4); }
.cta-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 80% at 50% 40%, rgba(44, 106, 87, 0.35), rgba(34, 89, 74, 0.92)); }
.cta-inner { position: relative; text-align: center; display: grid; justify-items: center; }
.cta .eyebrow::before { display: none; }
.cta-title { font-size: clamp(44px, 7.5vw, 116px); font-weight: 900; line-height: 0.95; letter-spacing: -0.04em; margin-bottom: 28px; }
.cta-sub { font-size: 20px; color: rgba(255, 255, 255, 0.82); max-width: 54ch; margin-bottom: 40px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- footer ---------- */
.footer { position: relative; overflow: hidden; padding: 110px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; padding-bottom: 60px; border-bottom: 1px solid var(--line); }
.footer-logo { display: inline-block; margin-bottom: 22px; }
.footer-logo img { height: 64px; width: auto; }
.footer-brand p { font-weight: 800; letter-spacing: 0.18em; font-size: 12px; color: var(--green-deep); }
.footer-brand .footer-tag { margin-top: 6px; font-size: clamp(22px, 2.1vw, 30px); font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; text-transform: none; color: var(--green-deep); white-space: nowrap; }
.footer-tag span { display: inline; }
.footer-tag .ft-grad { background: linear-gradient(90deg, #1d7351 0%, #3a8a68 45%, #7fc7a4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-cols h4 { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 16px; }
.footer-cols a { display: block; padding: 5px 0; font-weight: 600; color: var(--ink-soft); transition: color 0.3s, transform 0.3s; }
.footer-cols a:hover { color: var(--green-mid); transform: translateX(4px); }
.footer-legal { padding-top: 30px; display: grid; gap: 16px; font-size: 13.5px; color: var(--ink-mute); }
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-legal nav a:hover { color: var(--green-mid); }
.eoe { max-width: 110ch; line-height: 1.55; margin-inline: auto; }
.footer-giant { font-size: clamp(90px, 22vw, 360px); font-weight: 900; letter-spacing: -0.06em; line-height: 0.8; text-align: center; color: transparent; -webkit-text-stroke: 1.5px rgba(23, 89, 67, 0.22); margin-top: 60px; user-select: none; }


/* ---------- hero canvas (interactive particle field) ---------- */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: 0.85; }
.hero-tags { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-pale); margin: -18px 0 36px; max-width: 60ch; }

/* ---------- FAQ ---------- */
.faq { padding: 140px 0; background: var(--grad-cream); }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; }
.faq-head { position: sticky; top: 120px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { font-size: clamp(19px, 1.7vw, 24px); font-weight: 800; letter-spacing: -0.01em; transition: color 0.3s; }
.faq-item summary:hover h3 { color: var(--green-mid); }
.faq-icon { flex: none; position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); transition: background 0.4s var(--ease), border-color 0.4s, transform 0.5s var(--ease); }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--green-deep); transition: transform 0.5s var(--ease), background 0.3s; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--grad-btn); border-color: transparent; transform: rotate(180deg); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: #fff; }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-item p { padding: 0 64px 30px 0; font-size: 17px; color: var(--ink-soft); max-width: 70ch; }

/* ---------- 3D tilt ---------- */
.tilt-ready { transform-style: preserve-3d; transition: transform 0.6s var(--ease); }
.lv { transform-style: preserve-3d; }

/* ---------- reveal base (JS enhances; content stays visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); }
.js .clip img { will-change: transform; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .section-head, .serve-grid, .open-grid, .about-grid, .story, .footer-top { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .dept-image { grid-row: auto; min-height: 420px; }
  .livon { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .story-side { position: static; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .kpi-years { grid-column: span 2; grid-row: auto; }
  .story-photo { height: 380px; }
  .exp-rail { display: none; }
  .exp-vignette { background: linear-gradient(180deg, rgba(10,34,25,0) 30%, rgba(10,34,25,0.92) 85%); }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-head { position: static; }
  .device { transform: none; }
  .open-grid { grid-template-columns: 1fr !important; }
  .step { grid-template-columns: 1fr; }
  .step-img { max-height: 240px; }
  .hover-reveal { display: none; }
}
@media (max-width: 680px) {
  :root { --wrap: min(1320px, 100% - 32px); }
  body { font-size: 16px; }
  .brand-text { display: none; }
  .header { top: 10px; width: calc(100% - 20px); padding: 7px 7px 7px 14px; }
  .header.is-compact { width: calc(100% - 20px); }
  .hero-content { padding: 120px 0 150px; }
  .hero-title { font-size: 14vw; }
  .hero-title .grad { display: block; font-size: 0.66em; }
  .hero-panel { justify-content: flex-end; padding-bottom: 150px; }
  .hero-hint { display: none; }
  .chapters-panel { padding: 90px 0 40px; }
  .ch-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 14px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ch-track::-webkit-scrollbar { display: none; }
  .chapter-card { flex: 0 0 84%; scroll-snap-align: center; padding: 24px 22px 28px; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(var(--night-rgb), 0.82); }
  .chapter-card.is-on { transform: none; }
  .ch-dots { display: flex; }
  .reel-frame { height: 70vh; }
  .reel-toggle { width: 104px; height: 104px; margin: -52px 0 0 -52px; }
  .mv-media { height: 260px; }
  .scroll-cue { display: none; }
  .bento, .mv-grid, .timeline, .footer-cols { grid-template-columns: 1fr; }
  .step-body { padding: 30px 26px; }
  .impact-grid { grid-template-columns: 1fr; }
  .kpi-years { grid-column: auto; }
  .impact-head { display: block; }
  .step-no { font-size: 56px; }
  .step { position: relative; top: auto; transform: none !important; }
  .step h3 { font-size: 36px; } .step p { font-size: 18px; }
  .hotspot em { display: none; }
  .tour-step.is-on { transform: none; }
  .dept-wide, .dept-image { grid-column: auto; }
  /* values: compact rows with a letter tile, no orphan card */
  .livon { grid-template-columns: 1fr; gap: 10px; }
  .lv { min-height: 0; display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 14px 18px 14px 14px; border-radius: 20px; }
  .lv-letter { grid-row: span 2; width: 56px; height: 56px; font-size: 26px; border-radius: 15px; }
  .lv-name { margin: 0; font-size: 19px; align-self: end; } .lv-sub { align-self: start; font-size: 15px; }
  .lv:hover { transform: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); }
  .intro-foot { flex-direction: column; align-items: flex-start; }
  .open, .mv, .cta { margin: 0 8px; }
  .open { padding: 100px 0; }
  .about-media { height: 420px; }
  .chip-a { left: 8px; } .chip-b { right: 8px; }
  .mock-body { grid-template-columns: 1fr; } .mock-side { display: none; }
  .faq { padding: 100px 0; }
  .faq-item p { padding-right: 0; }
  .hero-tags { letter-spacing: 0.08em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ==========================================================================
   OUR WORK page (clients + case studies)
   ========================================================================== */
.work-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: var(--white); background: var(--grad-night); }
.wall { position: absolute; inset: -10% -10% -10% 30%; perspective: 1400px; pointer-events: none; }
.wall-plane { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; transform: rotateX(18deg) rotateY(-24deg) rotateZ(6deg) translateZ(-60px); transform-style: preserve-3d; transition: transform 1.2s var(--ease); will-change: transform; }
.wall-col { display: flex; flex-direction: column; gap: 18px; animation: wallUp 60s linear infinite; }
.wall-col:nth-child(2) { animation-duration: 75s; animation-direction: reverse; }
.wall-col:nth-child(3) { animation-duration: 66s; }
.wall-col:nth-child(4) { animation-duration: 82s; animation-direction: reverse; }
.wall-col img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
@keyframes wallUp { to { transform: translateY(-50%); } }
.work-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--night-rgb), 0.97) 0%, rgba(var(--night-rgb), 0.86) 38%, rgba(var(--night-rgb), 0.25) 75%, rgba(var(--night-rgb), 0.55) 100%), linear-gradient(0deg, rgba(var(--night-rgb), 0.9), transparent 40%); }
.work-hero-inner { position: relative; z-index: 2; padding: 140px 0 90px; }
.work-title { font-size: clamp(54px, 8.6vw, 140px); }
.work-hero .hero-sub { max-width: 46ch; }
.work-stats { display: flex; gap: 48px; margin: 56px 0 0; flex-wrap: wrap; }
.work-stats dt { font-size: clamp(34px, 3.4vw, 52px); font-weight: 900; letter-spacing: -0.04em; color: var(--white); }
.work-stats dd { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-pale); }

.client-band { overflow: hidden; background: var(--white); border-bottom: 1px solid var(--line); padding: 18px 0; }
.client-track { display: flex; width: max-content; gap: 10px; animation: marquee 70s linear infinite; }
.client-track img { height: 64px; width: auto; }
.client-band:hover .client-track { animation-play-state: paused; }

.clients { padding: 130px 0 120px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip { border: 1px solid var(--line); background: var(--white); color: var(--ink-soft); font: 700 14px/1 var(--font); padding: 12px 16px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: background 0.35s var(--ease), color 0.35s, border-color 0.35s, transform 0.35s var(--ease); }
.chip span { font-size: 12px; color: var(--ink-mute); transition: color 0.35s; }
.chip:hover { transform: translateY(-2px); border-color: rgba(29, 115, 81, 0.4); }
.chip.is-on { background: var(--grad-btn); color: #fff; border-color: transparent; }
.chip.is-on span { color: var(--mint); }
.chips-dark .chip { background: rgba(255, 255, 255, 0.06); border-color: var(--line-light); color: rgba(255, 255, 255, 0.82); }
.chips-dark .chip.is-on { background: var(--mint); color: var(--green-deep); }
.logo-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.logo-tile { position: relative; border-radius: 18px; background: var(--white); border: 1px solid var(--line); aspect-ratio: 13 / 7; display: grid; place-items: center; overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), opacity 0.45s var(--ease), border-color 0.4s; }
.logo-tile img { width: 86%; height: auto; transition: transform 0.6s var(--ease); }
.logo-tile:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(12, 42, 32, 0.12); border-color: rgba(29, 115, 81, 0.3); }
.logo-tile:hover img { transform: scale(1.06); }
.logo-wall.is-waiting .logo-tile { opacity: 0; transform: translateY(24px); }
.logo-wall.is-in .logo-tile { animation: tileIn 0.7s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes tileIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.logo-tile.is-dim { opacity: 0.12; transform: scale(0.94); animation: none !important; }
.logo-tile.is-dim:hover { transform: scale(0.94); box-shadow: none; }

.cases { padding: 130px 0 140px; background: var(--grad-night); color: var(--white); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.cases .section-lead { color: rgba(255, 255, 255, 0.72); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case { position: relative; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-light); cursor: pointer; outline: none; transition: transform 0.6s var(--ease), border-color 0.5s, box-shadow 0.6s var(--ease), opacity 0.45s var(--ease); }
.case-xl { grid-column: span 2; }
.case:hover, .case:focus-visible { transform: translateY(-8px); border-color: rgba(159, 214, 188, 0.45); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35); }
.case.is-hidden { display: none; }
.case-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #0f2f25; }
.case-xl .case-media { aspect-ratio: 21 / 9; }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.case:hover .case-media img { transform: scale(1.07); }
.case-count { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(10, 30, 23, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 12px; font-weight: 700; color: #fff; }
.case-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.case-client { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint); margin-bottom: 8px; }
.case h3 { font-size: clamp(21px, 1.7vw, 27px); font-weight: 800; line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 10px; }
.case-xl h3 { font-size: clamp(26px, 2.3vw, 36px); }
.case-text { color: rgba(255, 255, 255, 0.72); font-size: 15.5px; margin-bottom: 16px; }
.case-tags { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.case-tags li { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(199, 216, 207, 0.28); font-size: 12.5px; font-weight: 700; color: var(--green-pale2); }
.case-open { margin-top: auto; display: inline-flex; gap: 10px; align-items: center; font-weight: 800; color: #fff; }
.case-open i { font-style: normal; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--mint); color: var(--green-deep); transition: transform 0.5s var(--ease); }
.case:hover .case-open i { transform: translateX(6px) rotate(-45deg); }
.work-cta { margin-top: -1px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* case viewer */
.viewer { position: fixed; inset: 0; z-index: 140; display: grid; grid-template-columns: 1fr 400px; background: rgba(8, 24, 18, 0.96); color: #fff; opacity: 0; transition: opacity 0.35s ease; }
.viewer.is-open { opacity: 1; }
.viewer[hidden] { display: none; }
.viewer-stage { position: relative; display: grid; place-items: center; padding: 70px 70px 60px; overflow: hidden; }
.viewer-frame { width: 100%; height: 100%; display: grid; place-items: center; }
.viewer-frame img { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5); transition: opacity 0.35s ease, transform 0.6s var(--ease); cursor: zoom-in; }
.viewer-frame img.is-swap { opacity: 0; transform: scale(0.97); }
.viewer-frame.is-zoom { overflow: auto; place-items: start; }
.viewer-frame.is-zoom img { max-width: none; max-height: none; width: 180%; cursor: zoom-out; }
.viewer-nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 20px; cursor: pointer; transition: background 0.3s, transform 0.3s var(--ease); }
.viewer-nav:hover { background: var(--mint); color: var(--green-deep); transform: scale(1.06); }
.viewer-nav.prev { left: 14px; } .viewer-nav.next { right: 14px; }
.viewer-nav[disabled] { opacity: 0.25; pointer-events: none; }
.viewer-dots { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.viewer-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.3); cursor: pointer; transition: width 0.4s var(--ease), background 0.3s; }
.viewer-dots button.is-on { width: 28px; background: var(--mint); }
.viewer-info { padding: 90px 40px 40px; background: var(--grad-night); border-left: 1px solid var(--line-light); display: flex; flex-direction: column; overflow-y: auto; }
.viewer-info h2 { font-size: 30px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 16px; }
.viewer-text { color: rgba(255, 255, 255, 0.78); font-size: 16.5px; margin-bottom: 22px; }
.viewer-steps { margin-top: auto; display: flex; justify-content: space-between; gap: 10px; padding-top: 30px; }
.viewer-steps button { flex: 1; padding: 14px 12px; border-radius: 14px; border: 1px solid var(--line-light); background: rgba(255, 255, 255, 0.05); color: #fff; font: 700 14px/1 var(--font); cursor: pointer; transition: background 0.3s; }
.viewer-steps button:hover { background: rgba(255, 255, 255, 0.12); }
.viewer-close { position: absolute; z-index: 3; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--green-deep); font-size: 18px; font-weight: 900; cursor: pointer; transition: transform 0.4s var(--ease); }
.viewer-close:hover { transform: rotate(90deg); }
body.viewer-lock { overflow: hidden; }

@media (max-width: 1100px) {
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .viewer { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .viewer-stage { padding: 64px 12px 44px; }
  .viewer-info { padding: 24px 22px 26px; max-height: 42vh; border-left: 0; border-top: 1px solid var(--line-light); }
  .viewer-info h2 { font-size: 22px; }
  .wall { inset: -20% -40% -20% 10%; opacity: 0.55; }
}
@media (max-width: 680px) {
  .logo-wall { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .logo-tile { border-radius: 12px; }
  .logo-tile img { filter: none; opacity: 1; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 22px; padding: 0 16px 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .case-grid { grid-template-columns: 1fr; }
  .case-xl { grid-column: auto; }
  .case-xl .case-media { aspect-ratio: 16 / 9; }
  .work-stats { gap: 26px; }
  .viewer-nav { width: 42px; height: 42px; margin-top: -21px; font-size: 16px; }
  .viewer-nav.prev { left: 6px; } .viewer-nav.next { right: 6px; }
  .viewer-steps button { font-size: 13px; padding: 12px 8px; }
  .client-track img { height: 52px; }
  .clients, .cases { padding: 90px 0 100px; }
}
@media (prefers-reduced-motion: reduce) { .wall-col { animation: none; } }

/* footer legal block centred */
.footer-legal { justify-items: center; text-align: center; }
.footer-legal nav { justify-content: center; }

@media (max-width: 680px) { .brand img, .brand-full { height: 34px; } .is-compact .brand img { height: 32px; } .regions { gap: 8px 16px; } .regions .sep { width: 9px; height: 9px; } }

/* WhatsApp button */
.btn-wa { background: #25d366; color: #0b3d24; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3); }
.btn-wa:hover { background: #1ebe5b; color: #fff; }
.wa-ico { width: 22px; height: 22px; flex: none; }

/* ---------- Values: the L·I·V·Ó·N wordmark (thin rounded letters, as in the brand sheet) ---------- */
.livon-word { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; margin-top: 20px; }
.lv2 { cursor: default; }
.lv-glyph { display: block; height: clamp(90px, 9vw, 150px); width: auto; margin-bottom: 26px; overflow: visible; }
.lv-glyph path, .lv-glyph rect { fill: none; stroke: #c3c8c5; stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.5s var(--ease); }
.lv2:hover .lv-glyph path, .lv2:hover .lv-glyph rect { stroke: var(--green-logo); }
.js .livon-word .lv-glyph path, .js .livon-word .lv-glyph rect { stroke-dasharray: 1; stroke-dashoffset: 1; }
.livon-word.is-drawn .lv-glyph path, .livon-word.is-drawn .lv-glyph rect { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease) var(--d, 0s), stroke 0.5s var(--ease); }
.lv2-name, .lv2-sub { margin: 0; font-size: clamp(17px, 1.45vw, 22px); font-weight: 800; line-height: 1.05; letter-spacing: 0.01em; text-transform: uppercase; color: var(--ink); }
.lv2-with { display: block; font-size: 12.5px; font-weight: 800; line-height: 1.1; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); margin: 2px 0 1px; }
.lv2:hover .lv2-name, .lv2:hover .lv2-sub { color: var(--green-logo); }
@media (max-width: 680px) {
  .livon-word { grid-template-columns: 1fr; gap: 22px; }
  .lv2 { display: grid; grid-template-columns: 74px 1fr; column-gap: 18px; align-items: center; }
  .lv-glyph { grid-row: span 3; height: 64px; margin: 0; justify-self: center; }
  .lv2-name { align-self: end; font-size: 18px; } .lv2-sub { align-self: start; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .js .livon-word .lv-glyph path, .js .livon-word .lv-glyph rect { stroke-dashoffset: 0; } }

/* LCG Open logo inside the "Meet LCG Open" title */



/* footer tagline: small, plain */
.footer-brand .footer-tag.footer-sign { font-family: var(--font); font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none; white-space: nowrap; color: var(--ink-soft); transform: none; margin: 12px 0 0; }
/* the brand block is as wide as the logo; the tagline is scaled (in main.js) to exactly that width */
.footer-brand { display: inline-flex; flex-direction: column; align-items: flex-start; }

/* "Meet" + LCG Open logo: the logo's letters match the cap height of "Meet",
   and it never exceeds the column (scales down proportionally instead of clipping) */
.open-title .line:last-child .li { display: block !important; }
.open-logo { display: block; width: min(100%, 4.4em); height: auto; margin: 0.26em 0 0; }
/* the title is sized so "Meet" and the full-size logo fit the column together */
.h-xl.open-title { font-size: clamp(44px, 5.05vw, 74px); }
/* divisions: the closing call-to-action spans the full row in the grid layouts */
.bento .dept-cta { grid-column: 1 / -1; min-height: 240px; }
.regions .sep.is-edge { display: none; }

/* ---------- Arabic typeface (self-hosted, IBM Plex Sans Arabic, OFL); only Arabic pages use it ---------- */
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans-arabic-arabic-400.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans-arabic-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-sans-arabic-arabic-600.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-sans-arabic-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/ibm-plex-sans-arabic-arabic-700.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/ibm-plex-sans-arabic-latin-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- language switcher ---------- */
.lang-switch { display: flex; align-items: center; gap: 2px; flex: none; padding: 4px; margin-inline-start: 6px; border-radius: 14px; background: rgba(23, 63, 51, 0.06); border: 1px solid var(--line); }
.lang-switch a { min-width: 30px; height: 28px; padding: 0 7px; display: grid; place-items: center; border-radius: 10px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.04em; color: var(--ink-soft); transition: background 0.3s var(--ease), color 0.3s; }
.lang-switch a[lang="ar"] { font-size: 13px; font-weight: 700; letter-spacing: 0; padding: 0 9px; }
.lang-switch a:hover { color: var(--green-deep); background: rgba(23, 63, 51, 0.08); }
.lang-switch a[aria-current="true"] { background: var(--grad-btn); color: #fff; }

/* ---------- Arabic: typography ---------- */
html[lang="ar"] { --font: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif; }
html[lang="ar"] body { line-height: 1.85; }
html[lang="ar"] *, html[lang="ar"] *::before, html[lang="ar"] *::after { letter-spacing: 0 !important; }
html[lang="ar"] .h-xl, html[lang="ar"] .cta-title { line-height: 1.22; }
html[lang="ar"] .hero-title { line-height: 1.18; }
html[lang="ar"] .hero-title .line { padding-bottom: 0.32em; margin-bottom: -0.2em; }
html[lang="ar"] .h-lg, html[lang="ar"] .ch-title, html[lang="ar"] .chapter-card h2, html[lang="ar"] .step h3 { line-height: 1.3; }
html[lang="ar"] .chapter-card h3, html[lang="ar"] .dept h3, html[lang="ar"] .lv2-name, html[lang="ar"] .lv2-sub { line-height: 1.35; }
html[lang="ar"] .reveal-lines .line { padding-bottom: 0.32em; margin-bottom: -0.22em; }
html[lang="ar"] .eyebrow, html[lang="ar"] .marquee-track { text-transform: none; }
html[lang="ar"] .cursor.is-view::after { content: 'عرض'; }
html[lang="fr"] .cursor.is-view::after { content: 'Voir'; }

/* ---------- Arabic: right-to-left mirroring ---------- */
[dir="rtl"] .brand-text { padding-left: 0; padding-right: 12px; border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .scroll-cue { right: auto; left: 40px; }
[dir="rtl"] .tour-step { text-align: right; }
[dir="rtl"] .tour-bar i, [dir="rtl"] .ch-bar i, [dir="rtl"] .h-progress i, [dir="rtl"] .header-progress i, [dir="rtl"] .lv::after { transform-origin: right; }
@media (min-width: 1101px) { [dir="rtl"] .open-visual { margin-right: 0; margin-left: -5vw; } }
[dir="rtl"] .device-bar .lock { margin-right: 0; margin-left: 6px; }
[dir="rtl"] .serve-list li:hover { padding-left: 0; padding-right: 14px; }
[dir="rtl"] .hero-hint { left: auto; right: 0; }
[dir="rtl"] .exp-rail { right: auto; left: 28px; justify-items: start; }
[dir="rtl"] .rail-line { right: auto; left: 4px; }
[dir="rtl"] .rail-dot { padding-right: 0; padding-left: 22px; }
[dir="rtl"] .rail-dot::after { right: auto; left: 0; }
[dir="rtl"] .stat { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .stat:first-child { border-right: 0; padding-left: 24px; padding-right: 0; }
[dir="rtl"] .stat-num sup, [dir="rtl"] .kpi-num sup { margin-left: 0; margin-right: 2px; }
[dir="rtl"] .timeline, [dir="rtl"] .tl, [dir="rtl"] .kpi-num, [dir="rtl"] .stat-num { direction: ltr; }
[dir="rtl"] .dept-no { right: auto; left: 30px; }
[dir="rtl"] .dept:has(.dept-thumb) .dept-no { right: auto; left: 18px; }
[dir="rtl"] .open-features li { padding: 16px 50px 16px 18px; }
[dir="rtl"] .open-features li::before { left: auto; right: 16px; }
[dir="rtl"] .mf::before { left: auto; right: 12px; }
[dir="rtl"] .about-copy blockquote { border-left: 0; border-right: 4px solid var(--green-logo); border-radius: var(--radius) 0 0 var(--radius); }
[dir="rtl"] .case-count { left: auto; right: 14px; }
[dir="rtl"] .viewer-nav.prev { left: auto; right: 14px; } [dir="rtl"] .viewer-nav.next { right: auto; left: 14px; }
[dir="rtl"] .viewer-info { border-left: 0; border-right: 1px solid var(--line-light); }
[dir="rtl"] .viewer-close { right: auto; left: 18px; }
/* moving bands and the pinned horizontal gallery keep their left-to-right motion */
[dir="rtl"] .marquee-track, [dir="rtl"] .kin-track, [dir="rtl"] .client-track { direction: ltr; }
[dir="rtl"] .departments.is-h .bento { padding-right: 0; padding-left: 8vw; }
[dir="rtl"] .mm-arrow, [dir="rtl"] .link-arrow > span { display: inline-block; }
@media (max-width: 1100px) {
  [dir="rtl"] .stat:nth-child(4) { border-right: 0; padding-right: 0; }
  [dir="rtl"] .viewer-nav.prev { right: 6px; } [dir="rtl"] .viewer-nav.next { left: 6px; }
}
@media (max-width: 680px) {
  [dir="rtl"] .stat { border-right: 0 !important; padding-right: 0 !important; }
  [dir="rtl"] .viewer-info { border-right: 0; }
  [dir="rtl"] .faq-item p { padding-left: 0; }
}
[dir="rtl"] .header { padding: 10px 18px 10px 10px; }
[dir="rtl"] .header.is-compact { padding: 6px 16px 6px 6px; }
/* the L·I·V·Ó·N wordmark always reads left to right; its Arabic labels stay right-to-left */
[dir="rtl"] .livon-word { direction: ltr; }
[dir="rtl"] .livon-word .lv2 { direction: rtl; }

/* ---------- audit fixes: French and Arabic only ---------- */
/* French headlines run longer: slightly smaller display sizes keep them to two or three lines */
html[lang="fr"] .h-xl { font-size: clamp(38px, 5.9vw, 92px); }
html[lang="fr"] .departments .h-xl { font-size: clamp(36px, 4.9vw, 76px); }
html[lang="fr"] .hero-title { font-size: clamp(40px, 7.2vw, 120px); }
html[lang="fr"] .work-title { font-size: clamp(30px, 7vw, 116px); }
html[lang="fr"] .cta-title { font-size: clamp(38px, 6.2vw, 100px); }
html[lang="fr"] .dept h3, html[lang="ar"] .dept h3 { font-size: 21px; }
@media (min-width: 1101px) {
  html[lang="fr"] .departments.is-h .dept, html[lang="ar"] .departments.is-h .dept { width: 400px; }
  html[lang="fr"] .departments.is-h .dept-wide, html[lang="ar"] .departments.is-h .dept-wide { width: 480px; }
  html[lang="fr"] .departments.is-h .section-head, html[lang="ar"] .departments.is-h .section-head { margin-bottom: 32px; }
}
/* Arabic: taller line-height needs a slightly smaller hero so the intro and buttons stay above the fold */
html[lang="ar"] .hero-title { font-size: clamp(44px, 6.8vw, 112px); }
html[lang="ar"] .work-title { font-size: clamp(44px, 7.4vw, 120px); }
html[lang="ar"] .h-xl { font-size: clamp(40px, 6.2vw, 96px); }
html[lang="ar"] .departments .h-xl { font-size: clamp(38px, 5.2vw, 80px); }
/* Arabic Our work hero: image wall and its shading mirrored so the title sits on the dark side */
[dir="rtl"] .wall { inset: -10% 30% -10% -10%; }
[dir="rtl"] .wall-plane { transform: rotateX(18deg) rotateY(24deg) rotateZ(-6deg) translateZ(-60px); }
[dir="rtl"] .work-hero-shade { transform: scaleX(-1); }
@media (max-width: 1100px) { [dir="rtl"] .wall { inset: -20% 10% -20% -40%; } }
/* short laptop screens (e.g. 1280×720): keep the pinned departments and the Arabic hero fully in view */
@media (min-width: 1101px) and (max-height: 820px) {
  html[lang="fr"] .departments.is-h, html[lang="ar"] .departments.is-h { padding-top: 84px; min-height: 640px; }
  html[lang="fr"] .departments.is-h .h-xl, html[lang="ar"] .departments.is-h .h-xl { font-size: clamp(34px, 4vw, 58px); }
  html[lang="fr"] .departments.is-h .section-head, html[lang="ar"] .departments.is-h .section-head { margin-bottom: 22px; }
  html[lang="fr"] .departments.is-h .dept, html[lang="ar"] .departments.is-h .dept { min-height: 400px; }
  html[lang="fr"] .departments.is-h .dept-thumb, html[lang="ar"] .departments.is-h .dept-thumb { height: 150px; }
  html[lang="ar"] .hero-title { font-size: clamp(40px, 5.4vw, 82px); }
}


/* language switcher in the footer */
.footer-lang { width: fit-content; margin: 0 auto 22px; }
.footer-lang a { min-width: 40px; height: 32px; font-size: 13px; }
.footer-lang a[lang="ar"] { font-size: 14px; padding: 0 12px; }

/* phones: smaller footer logo; mission & vision without the empty band above its cards */
@media (max-width: 680px) {
  .footer-logo img { height: 44px; }
  .footer-logo { margin-bottom: 16px; }
  .mv { padding: 64px 0; margin: 0 10px; }
  .mv-grid { margin-bottom: 28px; }
}

/* =====================================================================
   TECHNOLOGY PAGE
   ===================================================================== */
.tech-hero { position: relative; overflow: hidden; color: var(--white); background: var(--grad-night); min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.tech-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(159, 214, 188, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(159, 214, 188, 0.07) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 45%, #000 0%, transparent 72%); -webkit-mask-image: radial-gradient(ellipse at 70% 45%, #000 0%, transparent 72%); animation: gridDrift 30s linear infinite; }
@keyframes gridDrift { to { background-position: 56px 56px, 56px 56px; } }
.tech-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding: 140px 0 90px; }
.tech-title { font-size: clamp(42px, 5.3vw, 88px); }
.tech-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 0; padding: 0; }
.tech-pills li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-light); background: rgba(255, 255, 255, 0.05); font-size: 13px; font-weight: 700; color: var(--green-pale2); }

/* system map */
.sysmap { position: relative; width: min(100%, 560px); aspect-ratio: 1; justify-self: center; }
.sysmap-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sysmap .orbit { fill: none; stroke: rgba(159, 214, 188, 0.22); stroke-width: 1.2; stroke-dasharray: 3 7; transform-origin: 300px 300px; animation: spin 60s linear infinite; }
.sysmap .orbit-in { stroke: rgba(159, 214, 188, 0.16); animation-duration: 40s; animation-direction: reverse; }
.sysmap .link { stroke: rgba(159, 214, 188, 0.35); stroke-width: 1.5; fill: none; stroke-dasharray: 6 10; animation: flow 2.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -32; } }
@keyframes spin { to { transform: rotate(360deg); } }
.sys-core { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle at 35% 30%, #3c8268, #1d4d3e 70%); box-shadow: 0 0 0 10px rgba(159, 214, 188, 0.08), 0 0 80px rgba(0, 236, 117, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.sys-core::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid rgba(0, 236, 117, 0.45); animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(0.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.sys-core span { font-size: clamp(26px, 3vw, 40px); font-weight: 900; letter-spacing: -0.03em; }
.sys-core small { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint); }
.sys-node { position: absolute; transform: translate(-50%, -50%); min-width: 116px; padding: 12px 14px; border-radius: 16px; text-align: center; background: rgba(248, 247, 243, 0.96); color: var(--green-deep); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28); animation: bob 6s ease-in-out infinite; }
.sys-node b { display: block; font-size: 16px; font-weight: 900; }
.sys-node i { display: block; font-style: normal; font-size: 11px; font-weight: 700; color: var(--ink-soft); margin-top: 2px; }
.sys-node.n1 { left: 50%; top: 15%; } .sys-node.n2 { left: 80.3%; top: 32.5%; animation-delay: -1s; } .sys-node.n3 { left: 80.3%; top: 67.5%; animation-delay: -2s; background: var(--mint); }
.sys-node.n4 { left: 50%; top: 85%; animation-delay: -3s; } .sys-node.n5 { left: 19.7%; top: 67.5%; animation-delay: -4s; } .sys-node.n6 { left: 19.7%; top: 32.5%; animation-delay: -5s; }
@keyframes bob { 0%, 100% { margin-top: 0; } 50% { margin-top: -8px; } }
.sys-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; color: #fff; background: rgba(15, 61, 46, 0.86); border: 1px solid var(--line-light); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; animation: chipIn 9s var(--ease) infinite; }
.sys-chip.c1 { left: -4%; top: 4%; } .sys-chip.c2 { right: -6%; top: 50%; animation-delay: 3s; } .sys-chip.c3 { left: 2%; bottom: 3%; animation-delay: 6s; }
@keyframes chipIn { 0%, 4% { opacity: 0; transform: translateY(10px); } 10%, 36% { opacity: 1; transform: none; } 44%, 100% { opacity: 0; transform: translateY(-8px); } }

/* solutions */
.tech-solutions { padding: 120px 0; background: var(--grad-cream); }
.tech-filter { margin-bottom: 34px; }
.sol-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sol { position: relative; display: flex; flex-direction: column; padding: 26px 24px 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s, opacity 0.35s; }
.sol::before { content: ''; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(159, 214, 188, 0.28), transparent 45%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.sol:hover { transform: translateY(-6px); box-shadow: 0 28px 60px rgba(12, 42, 32, 0.12); border-color: rgba(29, 115, 81, 0.3); }
.sol:hover::before { opacity: 1; }
.sol-ico { position: relative; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--grad-forest); margin-bottom: 20px; transition: transform 0.5s var(--ease); }
.sol:hover .sol-ico { transform: rotate(-6deg) scale(1.06); }
.sol-ico svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sol h3 { position: relative; font-size: 19px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 10px; }
.sol p { position: relative; font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 18px; }
.sol-tags { position: relative; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 0; }
.sol-tags li { font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: #eef3ef; color: var(--green-deep); }
.sol-hot { background: var(--grad-night); border-color: transparent; color: #fff; }
.sol-hot p { color: rgba(255, 255, 255, 0.78); }
.sol-hot .sol-ico { background: var(--mint); } .sol-hot .sol-ico svg { stroke: var(--green-deep); }
.sol-hot .sol-tags li { background: rgba(255, 255, 255, 0.1); color: var(--mint); }
.sol-hot::after { content: 'AI'; position: absolute; top: 18px; inset-inline-end: 18px; font-size: 11px; font-weight: 900; letter-spacing: 0.08em; padding: 5px 9px; border-radius: 999px; background: rgba(0, 236, 117, 0.16); color: #7cf0b3; }
.sol.is-hidden { display: none; }

/* AI spotlight */
.tech-ai { position: relative; padding: 130px 0; color: #fff; background: var(--grad-night); overflow: hidden; }
.tech-ai::before { content: ''; position: absolute; width: 900px; height: 900px; inset-inline-end: -300px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(159, 214, 188, 0.2), transparent 62%); }
.tech-ai-grid { position: relative; display: grid; grid-template-columns: 1fr 0.9fr; gap: 64px; align-items: center; }
.tech-ai .section-lead { color: rgba(255, 255, 255, 0.78); margin: 26px 0 30px; }
.agent-flow { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 10px; counter-reset: none; }
.agent-flow li { position: relative; display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line-light); background: rgba(255, 255, 255, 0.04); font-weight: 700; transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease); }
.agent-flow li b { font-size: 12px; color: var(--mint); letter-spacing: 0.08em; }
.agent-flow li.is-on { background: rgba(159, 214, 188, 0.14); border-color: rgba(159, 214, 188, 0.5); transform: translateX(6px); }
[dir="rtl"] .agent-flow li.is-on { transform: translateX(-6px); }
.agent-flow li.is-on::after { content: '✓'; margin-inline-start: auto; color: #7cf0b3; font-weight: 900; }
.ai-proof { font-size: 15px; color: rgba(255, 255, 255, 0.7); max-width: 52ch; }
.ai-proof a { color: var(--mint); font-weight: 800; border-bottom: 1px solid rgba(159, 214, 188, 0.5); }
.chat { border-radius: 26px; background: #f8f7f3; color: var(--ink); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.4); overflow: hidden; }
.chat-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.chat-top b { display: block; font-size: 15px; }
.chat-top small { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); }
.chat-av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-forest); color: #fff; font-weight: 900; font-size: 14px; }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 18px; min-height: 360px; }
.msg { max-width: 82%; margin: 0; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; opacity: 0; transform: translateY(10px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.msg.is-in { opacity: 1; transform: none; }
.msg.me { align-self: flex-end; background: var(--grad-btn); color: #fff; border-end-end-radius: 4px; }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-end-start-radius: 4px; }
.msg.sys { align-self: center; max-width: 100%; font-size: 12px; font-weight: 800; color: var(--green-logo); background: #e7f3ec; border-radius: 999px; }
.msg.typing { align-self: flex-start; background: #fff; border: 1px solid var(--line); opacity: 1; transform: none; display: inline-flex; gap: 4px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-pale); animation: dot 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: 0.15s; } .msg.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 100% { opacity: 0.3; transform: none; } 50% { opacity: 1; transform: translateY(-3px); } }
.chat-input { display: flex; justify-content: space-between; align-items: center; margin: 0 14px 14px; padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--ink-mute); }
.chat-input i { font-style: normal; color: var(--green-logo); }
[dir="rtl"] .chat-input i { transform: scaleX(-1); }

/* delivery process */
.tech-process { padding: 120px 0; background: var(--cream); }
.deliver { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.deliver::before { content: ''; position: absolute; top: 34px; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, var(--green-pale), var(--green-logo)); opacity: 0.4; }
.deliver li { position: relative; padding: 0 6px; }
.d-no { position: relative; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--white); border: 2px solid var(--green-logo); color: var(--green-logo); font-weight: 900; font-size: 20px; margin-bottom: 22px; box-shadow: 0 0 0 8px var(--cream); }
.deliver li:hover .d-no { background: var(--green-logo); color: #fff; }
.deliver h3 { font-size: 21px; font-weight: 800; margin: 0 0 8px; }
.deliver p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* stack marquee */
.tech-stack { padding: 60px 0 70px; background: var(--white); border-block: 1px solid var(--line); overflow: hidden; }
.tech-stack-title { text-align: center; justify-content: center; margin-bottom: 26px; }
.stack-row { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.stack-track { display: flex; width: max-content; gap: 12px; animation: marquee 48s linear infinite; direction: ltr; }
.stack-track span { padding: 12px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--cream); font-weight: 800; font-size: 16px; color: var(--green-deep); white-space: nowrap; }
.tech-stack:hover .stack-track { animation-play-state: paused; }

/* why */
.tech-why { padding: 120px 0 130px; background: var(--grad-cream); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why { padding: 30px 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.why:hover { transform: translateY(-5px); box-shadow: 0 24px 50px rgba(12, 42, 32, 0.1); }
.why-k { display: inline-block; font-size: 13px; font-weight: 900; letter-spacing: 0.1em; color: var(--green-logo); padding: 6px 10px; border-radius: 999px; background: #e7f3ec; margin-bottom: 18px; }
.why h3 { font-size: 21px; font-weight: 800; margin: 0 0 8px; }
.why p { font-size: 15.5px; color: var(--ink-soft); margin: 0; }

/* responsive */
@media (max-width: 1100px) {
  .tech-hero-grid { grid-template-columns: 1fr; padding: 130px 0 70px; }
  .sysmap { width: min(100%, 520px); }
  .sol-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-ai-grid { grid-template-columns: 1fr; gap: 48px; }
  .deliver { grid-template-columns: 1fr; gap: 0; }
  .deliver::before { top: 0; bottom: 0; left: 33px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--green-pale), var(--green-logo)); }
  [dir="rtl"] .deliver::before { left: auto; right: 33px; }
  .deliver li { display: grid; grid-template-columns: 68px 1fr; column-gap: 20px; padding: 0 0 28px; }
  .deliver .d-no { grid-row: span 2; margin: 0; }
  .deliver h3 { align-self: end; margin-top: 8px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .tech-solutions, .tech-process, .tech-why { padding: 80px 0; }
  .tech-ai { padding: 90px 0; }
  .sol-grid, .why-grid { grid-template-columns: 1fr; }
  .tech-filter { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .tech-filter::-webkit-scrollbar { display: none; }
  .tech-filter .chip { flex: none; }
  .sys-node { min-width: 0; padding: 9px 10px; border-radius: 12px; }
  .sys-node b { font-size: 13px; } .sys-node i { font-size: 9.5px; }
  .sys-chip { font-size: 10.5px; padding: 6px 10px; }
  .sys-chip.c2 { right: 0; }
  .chat-body { min-height: 330px; }
}
@media (prefers-reduced-motion: reduce) {
  .tech-grid-bg, .sysmap .orbit, .sysmap .link, .sys-core::after, .sys-node, .stack-track { animation: none; }
  .sys-chip { animation: none; opacity: 1; }
  .msg { opacity: 1; transform: none; }
}
/* tech page: section titles sized for two lines; larger system map */
.page-tech .h-xl { font-size: clamp(38px, 4.6vw, 74px); line-height: 1; }
@media (min-width: 1101px) { .page-tech .section-head { grid-template-columns: 1.3fr 1fr; } }
.page-tech .sysmap { width: min(100%, 620px); }
@media (min-width: 1101px) { .page-tech .sys-node { min-width: 132px; padding: 14px 16px; } .page-tech .sys-node b { font-size: 18px; } .page-tech .sys-node i { font-size: 12px; } }
.page-tech .chat-body { min-height: 300px; }
html[lang="ar"] .page-tech .h-xl { line-height: 1.25; }
/* seven menu items: French labels are longer, Arabic needs a tighter line-height in the menu */
html[lang="fr"] .nav a { padding: 9px 9px; font-size: 13.5px; }
html[lang="fr"] .header.is-compact, html[lang="ar"] .header.is-compact { width: min(1320px, 100% - 24px); }
@media (min-width: 1101px) and (max-width: 1500px) { html[lang="fr"] .header-cta .btn-ghost-dark { display: none; } }
html[lang="ar"] .nav a, html[lang="ar"] .header-cta .btn { line-height: 1.25; }
html[lang="fr"] .tech-title { font-size: clamp(36px, 4.3vw, 70px); }
html[lang="fr"] .page-tech .h-xl { font-size: clamp(34px, 4vw, 64px); }

/* NEXUS product family */
.nexus { position: relative; padding: 120px 0; color: #fff; background: linear-gradient(160deg, #0c2a20 0%, #143a2e 55%, #1d4d3e 100%); overflow: hidden; }
.nexus::before { content: ''; position: absolute; inset: 0; background: radial-gradient(800px 400px at 85% 0%, rgba(0, 236, 117, 0.12), transparent 60%); }
.nexus .wrap { position: relative; }
.nexus .section-lead { color: rgba(255, 255, 255, 0.76); }
.nx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.nx { position: relative; padding: 30px 26px 34px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-light); overflow: hidden; transition: transform 0.5s var(--ease), background 0.5s, border-color 0.5s; }
.nx:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.09); border-color: rgba(159, 214, 188, 0.5); }
.nx-mark { display: inline-block; font-size: 12px; font-weight: 900; letter-spacing: 0.22em; color: var(--mint); padding: 6px 10px; border: 1px solid rgba(159, 214, 188, 0.4); border-radius: 8px; margin-bottom: 26px; }
.nx h3 { font-size: clamp(30px, 2.6vw, 40px); font-weight: 900; letter-spacing: -0.02em; line-height: 1; margin: 0 0 8px; }
.nx-role { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: #7cf0b3; margin: 0 0 16px; }
.nx p:not(.nx-role) { font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.75); margin: 0; }
.nx-ln { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--mint), #00ec75); transform: scaleX(0.18); transform-origin: left; transition: transform 0.7s var(--ease); }
.nx:hover .nx-ln { transform: scaleX(1); }
[dir="rtl"] .nx-ln { transform-origin: right; }
html[lang="ar"] .nx-mark, html[lang="ar"] .nx-role { letter-spacing: 0; }

/* LCG LAB */
.lab { padding: 120px 0; background: var(--cream); }
.lab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.lab .section-lead { margin-top: 24px; }
.grad-d { background: linear-gradient(90deg, #1d7351, #3a8a68); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lab-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lab-steps li { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; padding: 22px 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: transform 0.5s var(--ease), box-shadow 0.5s; }
.lab-steps li:hover { transform: translateX(6px); box-shadow: 0 20px 44px rgba(12, 42, 32, 0.1); }
[dir="rtl"] .lab-steps li:hover { transform: translateX(-6px); }
.lab-n { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; font-size: 22px; font-weight: 900; color: #fff; background: var(--grad-forest); }
.lab-steps h3 { font-size: 22px; font-weight: 900; margin: 0 0 4px; }
.lab-steps p { font-size: 15px; color: var(--ink-soft); margin: 0; }
@media (max-width: 1100px) { .nx-grid { grid-template-columns: repeat(2, 1fr); } .lab-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 680px) { .nexus, .lab { padding: 80px 0; } .nx-grid { grid-template-columns: 1fr; } .lab-steps li { grid-template-columns: 56px 1fr; padding: 18px; } .lab-n { width: 56px; height: 56px; font-size: 18px; border-radius: 16px; } }

/* =====================================================================
   TRAINING & DEVELOPMENT PAGE
   ===================================================================== */
.tr-hero { position: relative; overflow: hidden; color: var(--white); background: var(--grad-night); min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.tr-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 140px 0 90px; }
.tr-collage { position: relative; width: min(100%, 600px); aspect-ratio: 1 / 0.92; justify-self: center; }
.tc { position: absolute; margin: 0; width: 52%; border-radius: 20px; overflow: hidden; border: 4px solid rgba(255, 255, 255, 0.92); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); animation: bob 7s ease-in-out infinite; }
.tc img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.tc1 { left: 0; top: 4%; transform: rotate(-4deg); }
.tc2 { right: 0; top: 0; transform: rotate(3deg); animation-delay: -2s; }
.tc3 { left: 6%; bottom: 0; transform: rotate(2deg); animation-delay: -4s; }
.tc4 { right: 3%; bottom: 6%; transform: rotate(-3deg); animation-delay: -5.5s; z-index: 2; }
.tr-badge { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; color: var(--green-deep); background: #f8f7f3; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3); }
.tr-badge.b1 { left: 30%; top: -3%; } .tr-badge.b2 { left: -4%; top: 52%; background: var(--mint); } .tr-badge.b3 { right: 2%; bottom: -3%; color: #fff; background: var(--grad-btn); letter-spacing: 0.06em; }

/* formats */
.tr-formats { padding: 120px 0; color: #fff; background: linear-gradient(160deg, #0c2a20 0%, #143a2e 55%, #1d4d3e 100%); }
.tr-formats .section-lead { color: rgba(255, 255, 255, 0.76); }
.fmt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fmt { padding: 30px 28px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-light); transition: transform 0.5s var(--ease), background 0.5s, border-color 0.5s; }
.fmt:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.09); border-color: rgba(159, 214, 188, 0.5); }
.fmt-n { display: inline-block; font-size: 13px; font-weight: 900; color: var(--green-deep); background: var(--mint); padding: 6px 10px; border-radius: 999px; margin-bottom: 20px; }
.fmt h3 { font-size: 21px; font-weight: 800; margin: 0 0 8px; }
.fmt p { font-size: 15px; color: rgba(255, 255, 255, 0.75); margin: 0; }

/* academy */
.tr-academy { padding: 120px 0; background: var(--cream); }
.tr-academy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.acad-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.acad-photos figure { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 44px rgba(12, 42, 32, 0.14); }
.acad-photos figure:nth-child(2), .acad-photos figure:nth-child(4) { transform: translateY(28px); }
.acad-photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--ease); }
.acad-photos figure:hover img { transform: scale(1.06); }
.acad-copy .section-lead { margin: 24px 0 26px; }
.acad-themes { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 10px; }
.acad-themes li { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); font-weight: 800; color: var(--green-deep); }
.acad-themes li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--green-logo); box-shadow: 0 0 0 5px rgba(29, 115, 81, 0.15); flex: none; }

@media (max-width: 1100px) {
  .tr-hero-grid { grid-template-columns: 1fr; padding: 130px 0 80px; }
  .tr-collage { width: min(100%, 520px); }
  .fmt-grid { grid-template-columns: repeat(2, 1fr); }
  .tr-academy-grid { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 680px) {
  .tr-formats, .tr-academy { padding: 80px 0; }
  .fmt-grid { grid-template-columns: 1fr; }
  .tr-badge { font-size: 11px; padding: 7px 11px; }
  .tr-badge.b2 { left: 0; }
}
@media (prefers-reduced-motion: reduce) { .tc { animation: none; } }
.page-training .tech-title { font-size: clamp(38px, 4.5vw, 74px); }
.page-training .tr-academy .h-xl { font-size: clamp(32px, 3.4vw, 54px); }
.acad-photos img { height: auto; }
html[lang="fr"] .page-training .tech-title { font-size: clamp(34px, 3.9vw, 64px); }
html[lang="fr"] .page-training .tr-academy .h-xl { font-size: clamp(30px, 3vw, 46px); }
