/* ==========================================================================
   Ximhakani Group — main stylesheet
   ========================================================================== */
:root {
  --orange: #E5652E;
  --orange-d: #CC5320;
  --yellow: #F2B705;
  --teal: #2A8BAA;
  --navy: #0E2A47;
  --navy-d: #0A1F35;
  --ink: #14202E;
  --muted: #5B6B7B;
  --line: #E3E8EE;
  --soft: #F3F6F9;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(14, 42, 71, .08);
  --shadow-lg: 0 24px 60px rgba(14, 42, 71, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; color: var(--muted); }
button { font: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.ic { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.6em; border-radius: 6px; border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; line-height: 1;
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn .ic { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(4px); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(229, 101, 46, .3); }
.btn-orange::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-orange:hover { background: var(--orange-d); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(229, 101, 46, .38); }
.btn-orange:hover::after { transform: translateX(120%); }
.btn-ghost-light { border-color: rgba(255,255,255,.85); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--navy); transform: translateY(-2px); }
.btn-outline { border-color: var(--navy); color: var(--navy); padding: .8em 1.3em; font-size: .88rem; }
.btn-outline:hover { background: var(--navy); color: #fff; }

.eyebrow {
  font-size: .78rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .9em; display: flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--orange); border-radius: 2px; }
.eyebrow.light { color: #fff; }
.sec-head.center .eyebrow { justify-content: center; }

/* ---------- preloader (animated logo blocks) ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999; background: #fff;
  display: grid; place-content: center; justify-items: center; gap: 22px;
  transition: opacity .6s ease, visibility .6s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.loader-mark { position: relative; width: 92px; height: 110px; }
.loader-mark i {
  position: absolute; display: block; transform: skewY(-25deg); opacity: 0;
  animation: blockIn .55s var(--ease) forwards;
}
.loader-mark .b1 { left: 8px;  top: 6px;  width: 20px; height: 20px; background: var(--orange); animation-delay: .05s; }
.loader-mark .b2 { left: 0;    top: 30px; width: 28px; height: 60px; background: var(--orange); animation-delay: .15s; }
.loader-mark .b3 { left: 30px; top: 18px; width: 20px; height: 20px; background: #F6CB22; animation-delay: .25s; }
.loader-mark .b4 { left: 22px; top: 44px; width: 28px; height: 60px; background: #F6CB22; animation-delay: .35s; }
.loader-mark .b5 { left: 52px; top: 30px; width: 20px; height: 20px; background: var(--teal); animation-delay: .45s; }
.loader-mark .b6 { left: 44px; top: 56px; width: 28px; height: 60px; background: var(--teal); animation-delay: .55s; }
@keyframes blockIn { from { opacity: 0; translate: 0 -40px; } to { opacity: 1; translate: 0 0; } }
.loader-word { font-weight: 800; letter-spacing: .12em; color: var(--teal); font-size: 1.3rem; text-align: center; opacity: 0; animation: fadeUp .6s .7s var(--ease) forwards; }
.loader-word span { display: block; color: var(--orange); font-size: .7rem; letter-spacing: .6em; margin-top: 2px; padding-left: .6em; }

/* ---------- scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 1001; background: linear-gradient(90deg, var(--orange), var(--yellow), var(--teal)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000; background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px); transition: box-shadow .3s, height .3s; height: var(--header-h);
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(14,42,71,.1); --header-h: 70px; }
.header-inner { display: flex; align-items: center; height: 100%; gap: 24px; }
.brand img { height: 56px; width: auto; transition: height .3s; }
.site-header.scrolled .brand img { height: 46px; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a[data-nav] {
  display: block; padding: 10px 14px; font-weight: 600; font-size: .92rem; color: var(--ink); position: relative;
  transition: color .25s;
}
.main-nav a[data-nav]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.main-nav a[data-nav]:hover { color: var(--orange); }
.main-nav a[data-nav]:hover::after, .main-nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.main-nav a.is-current { color: var(--navy); }
.header-cta { padding: .85em 1.3em; }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; margin-left: auto; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- entrance animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes lineUp { from { transform: translateY(110%); } to { transform: none; } }
.anim-up { opacity: 0; }
.ready .anim-up { animation: fadeUp .9s var(--ease) forwards; }
.d1 { animation-delay: .15s !important; } .d2 { animation-delay: .3s !important; }
.d3 { animation-delay: .45s !important; } .d4 { animation-delay: .6s !important; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }
.reveal.zoom { transform: scale(.94); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100vh, 860px); display: flex; align-items: center; color: #fff; overflow: hidden; padding: calc(var(--header-h) + 60px) 0 120px; background: var(--navy); }
.hero-slides, .hero-slide, .hero-overlay { position: absolute; inset: 0; }
.hero-slides { z-index: 0; overflow: hidden; }
.hero-overlay { z-index: 1; }
.hero-wipe { z-index: 2 !important; }
.hero-content { z-index: 3 !important; }
.hero-slide { background-size: cover; background-position: center; opacity: 0; transform: scale(1.12); transition: transform 7s linear, filter 1.2s ease; }
.hero-slide.is-active { opacity: 1; transform: scale(1); z-index: 1; }
/* cross-slide transition: old slide pushes away and darkens, new slide is revealed on a diagonal edge */
.hero-slide.is-leaving { opacity: 1; z-index: 0; transform: scale(1.06) translateX(-6%); filter: brightness(.45); transition: transform 1.3s cubic-bezier(.77,0,.18,1), filter 1.3s ease; }
.hero.dir-prev .hero-slide.is-leaving { transform: scale(1.06) translateX(6%); }
.hero-slide.is-entering { animation: crossIn 1.2s cubic-bezier(.77,0,.18,1) .05s both; }
.hero.dir-prev .hero-slide.is-entering { animation-name: crossInPrev; }
@keyframes crossIn { from { clip-path: polygon(160% 0, 200% 0, 200% 100%, 140% 100%); } to { clip-path: polygon(-10% 0, 200% 0, 200% 100%, -30% 100%); } }
@keyframes crossInPrev { from { clip-path: polygon(-100% 0, -45% 0, -65% 100%, -100% 100%); } to { clip-path: polygon(-100% 0, 125% 0, 105% 100%, -100% 100%); } }
.hero-wipe { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-wipe i { position: absolute; top: -10%; bottom: -10%; left: 0; width: 13vw; transform: translateX(120vw) skewX(-19deg); }
.hero-wipe i:nth-child(1) { background: var(--orange); }
.hero-wipe i:nth-child(2) { background: #F6CB22; margin-left: 13vw; }
.hero-wipe i:nth-child(3) { background: var(--teal); margin-left: 26vw; }
.hero.wiping .hero-wipe i { animation: wipeBar 1.2s cubic-bezier(.77,0,.18,1) both; }
.hero.wiping .hero-wipe i:nth-child(2) { animation-delay: .05s; }
.hero.wiping .hero-wipe i:nth-child(3) { animation-delay: .1s; }
.hero.wiping.dir-prev .hero-wipe i { animation-name: wipeBarPrev; }
.hero.wiping.dir-prev .hero-wipe i:nth-child(1) { animation-delay: .1s; }
.hero.wiping.dir-prev .hero-wipe i:nth-child(3) { animation-delay: 0s; }
@keyframes wipeBar { from { transform: translateX(110vw) skewX(-19deg); } to { transform: translateX(-60vw) skewX(-19deg); } }
@keyframes wipeBarPrev { from { transform: translateX(-60vw) skewX(-19deg); } to { transform: translateX(110vw) skewX(-19deg); } }
.hero-count { margin-left: auto; margin-right: 24px; font-weight: 800; display: flex; align-items: baseline; gap: 8px; }
.hero-count b { font-size: 2.4rem; line-height: 1; display: inline-block; }
.hero-count b.flip { animation: countFlip .7s var(--ease); }
.hero-count span { color: rgba(255,255,255,.6); font-size: .95rem; letter-spacing: .1em; }
@keyframes countFlip { from { opacity: 0; transform: translateY(60%); } to { opacity: 1; transform: none; } }
.hero-overlay { background: linear-gradient(90deg, rgba(10,31,53,.9) 0%, rgba(10,31,53,.6) 42%, rgba(10,31,53,.05) 75%), linear-gradient(0deg, rgba(10,31,53,.55), transparent 35%); }
.hero-content { position: relative; z-index: 2; max-width: 1200px; }
.hero-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(229,101,46,.7); animation: ping 2s infinite; }
.hero-label::before { display: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 12px rgba(229,101,46,0); } 100% { box-shadow: 0 0 0 0 rgba(229,101,46,0); } }
.hero-label-text { transition: opacity .4s; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); margin-bottom: .4em; max-width: 14em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .anim-line { display: inline-block; transform: translateY(110%); }
.ready .hero h1 .anim-line { animation: lineUp 1s var(--ease) forwards; }
.hero h1 .accent { color: var(--orange); }
.hero .lead { color: rgba(255,255,255,.88); font-size: 1.12rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-controls { position: absolute; z-index: 3; left: 0; right: 0; bottom: 36px; display: flex; justify-content: space-between; align-items: center; }
.hero-dots { display: flex; gap: 10px; }
.hero-dots button { width: 46px; height: 4px; padding: 0; border: 0; background: rgba(255,255,255,.3); border-radius: 2px; overflow: hidden; }
.hero-dots button span { display: block; height: 100%; width: 0; background: var(--orange); }
.hero-dots button.is-active span { animation: fill var(--slide-ms, 6500ms) linear forwards; }
.hero.paused .hero-dots button.is-active span { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.hero-arrows { display: flex; gap: 10px; }
.hero-arrows button, .carousel-nav button {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(255,255,255,.5); background: rgba(255,255,255,.06); color: #fff; transition: background .3s, transform .3s, border-color .3s;
}
.hero-arrows button:hover { background: var(--orange); border-color: var(--orange); transform: scale(1.06); }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 30px; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; translate: -50% 0; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* floating logo blocks used as decoration */
.hero-blocks { position: absolute; z-index: 1; right: 6%; bottom: 18%; width: 160px; height: 200px; pointer-events: none; opacity: .9; }
.hero-blocks i { position: absolute; display: block; width: 46px; height: 120px; transform: skewY(-25deg); animation: float 6s ease-in-out infinite; mix-blend-mode: screen; }
.hero-blocks i:nth-child(1) { left: 0; top: 20px; background: rgba(229,101,46,.75); }
.hero-blocks i:nth-child(2) { left: 52px; top: 50px; background: rgba(246,203,34,.75); animation-delay: -2s; }
.hero-blocks i:nth-child(3) { left: 104px; top: 80px; background: rgba(42,139,170,.8); animation-delay: -4s; }
.hero-blocks.big { right: 8%; bottom: 22%; transform: scale(1.3); opacity: .35; }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -18px; } }

/* ---------- features strip ---------- */
.features { background: var(--soft); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature { display: flex; gap: 16px; align-items: center; padding: 30px 24px; position: relative; }
.feature + .feature::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: var(--line); }
.feature-ic { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 12px; color: var(--teal); background: #fff; box-shadow: var(--shadow); transition: transform .4s var(--ease), background .3s, color .3s; }
.feature-ic .ic { width: 28px; height: 28px; }
.feature:nth-child(2) .feature-ic { color: var(--orange); }
.feature:nth-child(3) .feature-ic { color: #D9A300; }
.feature:hover .feature-ic { transform: rotate(-8deg) scale(1.08); background: var(--navy); color: #fff; }
.feature h3 { margin: 0 0 2px; font-size: 1rem; }
.feature p { margin: 0; font-size: .85rem; }

/* ---------- sections ---------- */
.section { padding: clamp(70px, 9vw, 110px) 0; position: relative; }
.section.soft { background: var(--soft); }
.section.navy { background: var(--navy); color: #fff; }
.section.navy h2 { color: #fff; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 44px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
.sec-head.center { justify-content: center; text-align: center; }
.sec-sub { max-width: 30em; margin: 0; }
.sec-sub.light { color: rgba(255,255,255,.75); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split.flip > :first-child { order: 2; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.ticks .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(229,101,46,.12); color: var(--orange); stroke-width: 3; margin-top: 1px; }
.ticks.small li { font-weight: 500; font-size: .93rem; color: var(--muted); }
.ticks.two-col { grid-template-columns: 1fr 1fr; gap: 10px 20px; }

/* story card */
.story-card { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16/10.5; background: var(--navy); }
.story-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.story-card:hover img { transform: scale(1.05); }
.story-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; padding-bottom: 28px; color: #fff; font-weight: 700; background: linear-gradient(0deg, rgba(10,31,53,.75), transparent 55%); }
.play-btn { position: relative; width: 72px; height: 72px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); display: grid; place-items: center; transition: transform .3s var(--ease), background .3s, color .3s; }
.play-btn .ic { width: 26px; height: 26px; margin-left: 4px; }
.play-btn:hover { transform: scale(1.1); background: var(--orange); color: #fff; }
.play-btn .pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff; animation: pulse 2s infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.8); opacity: 0; } }

/* ---------- division cards carousel ---------- */
.carousel-nav { display: flex; gap: 10px; align-items: center; }
.carousel-nav button { border-color: var(--line); color: var(--navy); background: #fff; }
.carousel-nav button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.carousel { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 10px 0 30px; cursor: grab; }
.carousel::-webkit-scrollbar { display: none; }
.carousel.dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel.dragging a { pointer-events: none; }
.carousel-track { display: flex; gap: 20px; padding-inline: max(20px, calc((100vw - 1200px) / 2)); width: max-content; }
.div-card { width: 270px; scroll-snap-align: start; }
.div-card-link { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; transition: transform .45s var(--ease), box-shadow .45s; }
.div-card-img { aspect-ratio: 16/11; overflow: hidden; }
.div-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.div-badge { position: absolute; left: 18px; top: calc(270px * 11 / 16 - 30px); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; border: 4px solid #fff; transition: transform .5s var(--ease); }
.div-badge .ic { width: 24px; height: 24px; }
.div-card-body { padding: 40px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.div-card-body h3 { margin-bottom: 6px; }
.div-card-body p { font-size: .88rem; flex: 1; }
.arrow-box { width: 32px; height: 32px; border: 1.5px solid var(--navy); border-radius: 5px; display: grid; place-items: center; color: var(--navy); transition: background .3s, color .3s, border-color .3s; }
.arrow-box .ic { width: 16px; height: 16px; }
.div-card-link:hover .arrow-box { background: var(--c); border-color: var(--c); color: #fff; }

/* ---------- stats band ---------- */
.stats-band { background: linear-gradient(rgba(14,42,71,.94), rgba(14,42,71,.94)), url(../images/photos/hero-joburg.webp) center/cover fixed; color: #fff; padding: 46px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; align-items: center; gap: 18px; padding: 10px 26px; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.15); }
.stat > .ic { width: 46px; height: 46px; stroke-width: 1.4; color: #fff; }
.stat strong { display: block; font-size: 1.9rem; line-height: 1.1; font-weight: 800; }
.stat div > span { color: rgba(255,255,255,.8); font-size: .92rem; }

/* ---------- commitment ---------- */
.commitment { position: relative; overflow: hidden; padding: clamp(90px, 12vw, 150px) 0; color: #fff; background: var(--navy); }
.commitment-bg { position: absolute; inset: -15% 0; background-size: cover; background-position: center left; }
.commitment::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,31,53,.1) 0%, rgba(10,31,53,.55) 40%, rgba(10,31,53,.95) 65%); }
.commitment-inner { position: relative; z-index: 2; display: flex; justify-content: flex-end; }
.commitment-text { max-width: 520px; }
.commitment h2 { color: #fff; }
.commitment p { color: rgba(255,255,255,.85); font-size: 1.05rem; }

/* ---------- synergy ---------- */
.synergy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.synergy { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; position: relative; overflow: hidden; }
.synergy::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--orange), var(--yellow), var(--teal)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.synergy:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.synergy:hover::before { transform: scaleX(1); }
.syn-icons { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.syn-icons span { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--c); }
.syn-icons b { color: var(--muted); font-size: 1.3rem; }
.synergy p { font-size: .9rem; margin: 0; }

/* ---------- marquee ---------- */
.marquee { background: var(--orange); color: #fff; overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 30s linear infinite; }
.marquee span { font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.marquee i { width: 14px; height: 24px; background: #fff; transform: skewY(-25deg); opacity: .8; }
.marquee i:nth-of-type(3n+2) { background: var(--yellow); }
.marquee i:nth-of-type(3n) { background: var(--navy); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- brand mosaic ---------- */
.brand-mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 18px; }
.brand-mosaic a { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.brand-mosaic .m-tall { grid-row: span 2; }
.brand-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.brand-mosaic img.contain { object-fit: contain; padding: 10px; }
.brand-mosaic a:hover img { transform: scale(1.07); }
.m-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px; color: #fff; font-weight: 700; display: flex; gap: 8px; align-items: center; background: linear-gradient(0deg, rgba(10,31,53,.85), transparent); transform: translateY(100%); transition: transform .45s var(--ease); }
.brand-mosaic a:hover .m-cap, .brand-mosaic a:focus-visible .m-cap { transform: none; }

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s, opacity .4s; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-card > a { display: block; height: 100%; }
.news-img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.news-card:hover .news-img img { transform: scale(1.08); }
.chip { display: inline-block; background: var(--orange); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; }
.news-img .chip { position: absolute; left: 16px; top: 16px; }
.news-body { padding: 22px 22px 26px; }
.news-body p { font-size: .9rem; }
.link { color: var(--orange); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; }
.link .ic { transition: transform .3s; width: 1em; }
.news-card:hover .link .ic { transform: translateX(4px); }
.news-feature { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--navy); border-radius: 14px; overflow: hidden; margin-bottom: 50px; color: #fff; }
.nf-img img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.nf-body { padding: clamp(28px, 4vw, 50px); align-self: center; }
.nf-body h2 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 16px; }
.nf-body p { color: rgba(255,255,255,.8); }
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input { flex: 1 1 220px; }

/* ---------- page hero ---------- */
.page-hero { position: relative; overflow: hidden; color: #fff; padding: calc(var(--header-h) + 90px) 0 90px; background: var(--navy); }
.page-hero-bg { position: absolute; inset: -20% 0; background-size: cover; background-position: center; animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { from { scale: 1; } to { scale: 1.1; } }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,31,53,.95), rgba(10,31,53,.6) 60%, rgba(10,31,53,.3)); }
.page-hero-inner { position: relative; z-index: 2; max-width: 1200px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); max-width: 15em; }
.page-hero .lead { color: rgba(255,255,255,.85); max-width: 36em; font-size: 1.08rem; }
.crumbs { display: flex; gap: 10px; font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 20px; }
.crumbs a:hover { color: var(--orange); }
.page-hero .hero-blocks { z-index: 2; right: 7%; bottom: 20%; opacity: .55; }

/* ---------- about ---------- */
.sector-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.sector-pills span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; transition: background .3s, color .3s, transform .3s; }
.sector-pills .ic { color: var(--c); width: 18px; height: 18px; transition: color .3s; }
.sector-pills span:hover { background: var(--c); color: #fff; transform: translateY(-3px); }
.sector-pills span:hover .ic { color: #fff; }
.img-stack { position: relative; padding: 0 0 60px 60px; }
.img-stack .s1 { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow-lg); }
.img-stack .s2 { position: absolute; left: 0; bottom: 0; width: 48%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; border: 8px solid #fff; box-shadow: var(--shadow-lg); animation: float 7s ease-in-out infinite; }
.stack-badge { position: absolute; right: -14px; bottom: 30px; background: var(--orange); color: #fff; border-radius: 12px; padding: 16px 22px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg); }
.stack-badge strong { font-size: 2.6rem; line-height: 1; }
.stack-badge span { font-weight: 700; font-size: .85rem; line-height: 1.3; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.vm-card { background: #fff; border-radius: 14px; padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); }
.vm-ic, .value > span, .role > span, .c-card > span { width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--orange)) 13%, transparent); color: var(--c, var(--orange)); margin-bottom: 18px; transition: transform .4s var(--ease), background .3s, color .3s; }
.vm-ic .ic, .value .ic, .role > span .ic, .c-card .ic { width: 28px; height: 28px; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.value:hover > span { background: var(--orange); color: #fff; transform: rotate(-8deg); }
.value p { font-size: .9rem; margin: 0; }
.value:last-child { grid-column: span 1; }

.org { display: flex; flex-direction: column; align-items: center; }
.org-root { display: flex; align-items: center; gap: 16px; background: #fff; color: var(--ink); padding: 18px 30px; border-radius: 12px; box-shadow: var(--shadow-lg); }
.org-root img { width: 44px; }
.org-root strong { display: block; font-size: 1.1rem; }
.org-root span { color: var(--orange); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.org-line { width: 2px; height: 50px; background: linear-gradient(var(--orange), var(--teal)); transform-origin: top; }
.org-line.reveal { transform: scaleY(0); }
.org-line.reveal.in { transform: scaleY(1); }
.org-children { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; padding-top: 24px; border-top: 2px solid rgba(255,255,255,.2); }
.org-node { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 20px; transition: background .3s, transform .4s var(--ease), border-color .3s; position: relative; }
.org-node:hover { background: rgba(255,255,255,.12); border-color: var(--c); transform: translateY(-5px); }
.org-node span { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--c); margin-bottom: 12px; }
.org-node strong { display: block; font-size: .95rem; margin-bottom: 4px; }
.org-node em { font-style: normal; font-size: .78rem; color: rgba(255,255,255,.65); }

.model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.model-card { border-radius: 14px; padding: clamp(28px, 4vw, 40px); background: var(--soft); border-top: 5px solid var(--orange); }
.model-card.alt { border-top-color: var(--teal); }
.model-card h3 { display: flex; gap: 10px; align-items: center; font-size: 1.2rem; margin-bottom: 20px; }
.model-card h3 .ic { color: var(--orange); }
.model-card.alt h3 .ic { color: var(--teal); }
.quality-card { background: var(--navy); color: #fff; padding: clamp(28px, 4vw, 44px); border-radius: 14px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.quality-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--orange), var(--yellow), var(--teal)); }
.quality-card h3 { font-size: 1.4rem; }
.quality-card p, .quality-card .ticks.small li { color: rgba(255,255,255,.8); }

.journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.step { position: relative; padding: 34px 20px; text-align: center; background: var(--c); color: #fff; clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%, 12% 50%); transition: transform .4s var(--ease); }
.step:first-child { clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%); }
.step:hover { transform: translateY(-6px); }
.step h3 { margin: 0; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; }
.step-n { display: block; font-size: .8rem; font-weight: 700; opacity: .75; margin-bottom: 4px; }
.center-note { text-align: center; max-width: 44em; margin: 34px auto 0; }

.brand-pair { display: grid; grid-template-columns: 1fr; gap: 16px; }
.brand-pair a { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.brand-pair img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 1s var(--ease); }
.brand-pair a:hover img { transform: scale(1.05); }
.brand-pair a:nth-child(2) { margin-left: 18%; margin-top: -18%; border: 6px solid #fff; }
.promise { position: relative; margin: 10px 0 0; padding: 26px 28px 22px 72px; background: #fff; border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0; box-shadow: var(--shadow); }
.promise .ic { position: absolute; left: 22px; top: 24px; width: 34px; height: 34px; color: var(--orange); opacity: .4; }
.promise p { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin: 0 0 6px; }
.promise cite { font-style: normal; color: var(--muted); font-size: .85rem; }

/* ---------- divisions page ---------- */
.div-tabs { position: sticky; top: var(--header-h); z-index: 50; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 4px 16px rgba(14,42,71,.04); transition: top .3s; }
.is-scrolled .div-tabs { top: 70px; }
.div-tabs-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.div-tabs-inner::-webkit-scrollbar { display: none; }
.div-tabs a { display: flex; align-items: center; gap: 7px; padding: 16px 10px; white-space: nowrap; font-weight: 600; font-size: .84rem; border-bottom: 3px solid transparent; color: var(--muted); transition: color .3s, border-color .3s; }
.div-tabs a .ic { color: var(--c); width: 18px; height: 18px; }
.div-tabs a:hover, .div-tabs a.is-current { color: var(--ink); border-bottom-color: var(--c); }
.div-media { position: relative; }
.div-main { display: block; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
.div-main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 1.2s var(--ease); }
.div-main:hover img { transform: scale(1.06); }
.div-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.div-thumbs a { border-radius: 10px; overflow: hidden; }
.div-thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .8s var(--ease), filter .4s; filter: saturate(.85); }
.div-thumbs a:hover img { transform: scale(1.1); filter: none; }
.div-num { position: absolute; z-index: 2; top: -52px; right: 0; font-size: 5.5rem; font-weight: 800; line-height: 1; color: var(--c); opacity: .15; pointer-events: none; }
.div-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 10px 24px color-mix(in srgb, var(--c) 40%, transparent); }
.div-icon .ic { width: 28px; height: 28px; }
.division .eyebrow::before { background: var(--c); }
.division .ticks .ic { background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.list-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--navy); margin: 22px 0 14px; }
.div-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.div-logo { width: 190px; height: 90px; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: transform .3s; }
.div-logo:hover { transform: scale(1.05); }
.div-logo img { width: 100%; height: 100%; object-fit: cover; }
.div-logo img[src*="agrifarm"] { object-fit: contain; padding: 8px; }

/* ---------- projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter { border: 1.5px solid var(--line); background: #fff; color: var(--ink); padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .88rem; transition: background .3s, color .3s, border-color .3s; }
.filter:hover { border-color: var(--orange); color: var(--orange); }
.filter.is-active { background: var(--orange); border-color: var(--orange); color: #fff; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project:hover img { transform: scale(1.1); }
.project-info { position: absolute; inset: auto 0 0; padding: 50px 22px 20px; color: #fff; background: linear-gradient(0deg, rgba(10,31,53,.92), transparent); }
.project-info h3 { margin: 10px 0 2px; }
.project-info p { color: rgba(255,255,255,.8); margin: 0; font-size: .88rem; max-height: 0; opacity: 0; transition: max-height .5s var(--ease), opacity .4s; }
.project:hover .project-info p { max-height: 3em; opacity: 1; }
.is-hidden { display: none !important; }
.filtering-in { animation: popIn .5s var(--ease) both; }
@keyframes popIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.fine-print { font-size: .8rem; margin-top: 18px; }
.strategy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.strat { padding: 30px 26px; border-radius: var(--radius); background: var(--soft); position: relative; overflow: hidden; transition: background .4s, color .4s, transform .4s var(--ease); }
.strat-n { font-size: 2.6rem; font-weight: 800; color: var(--orange); line-height: 1; display: block; margin-bottom: 14px; transition: color .4s; }
.strat:hover { background: var(--navy); transform: translateY(-6px); }
.strat:hover h3 { color: #fff; }
.strat:hover p { color: rgba(255,255,255,.75); }
.strat:hover .strat-n { color: var(--yellow); }
.strat p { margin: 0; font-size: .92rem; }

/* ---------- careers ---------- */
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.perk { display: flex; gap: 14px; }
.perk > .ic { width: 44px; height: 44px; padding: 10px; border-radius: 10px; background: rgba(42,139,170,.12); color: var(--teal); }
.perk h3 { margin: 0 0 2px; font-size: 1rem; }
.perk p { margin: 0; font-size: .85rem; }
.roles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.role { background: #fff; border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s; display: flex; flex-direction: column; }
.role:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.role:hover > span { background: var(--c); color: #fff; }
.role p { font-size: .82rem; flex: 1; }
.role a { color: var(--c); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; }
.role a .ic { width: 1em; transition: transform .3s; }
.role a:hover .ic { transform: translateX(4px); }

/* ---------- forms ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.contact .form-wrap, body[data-page="contact"] .form-wrap { grid-template-columns: 1.2fr 1fr; align-items: stretch; }
.form-intro img { border-radius: 14px; margin-top: 24px; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-form { background: #fff; border-radius: 14px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); }
.card-form h2 { font-size: 1.6rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--soft); border: 1.5px solid transparent; border-radius: 8px; padding: 13px 14px;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(229,101,46,.12); }
.invalid { border-color: #D7443E !important; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.form-msg { margin: 14px 0 0; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: #2E8B57; }
.form-msg.err { color: #D7443E; }

/* ---------- contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -150px; position: relative; z-index: 5; }
.c-card { background: #fff; border-radius: 12px; padding: 28px 24px; box-shadow: var(--shadow-lg); text-align: center; transition: transform .4s var(--ease); }
.c-card > span { margin-inline: auto; }
.c-card:hover { transform: translateY(-6px); }
.c-card:hover > span { background: var(--orange); color: #fff; }
.c-card p { margin: 0; font-size: .92rem; }
.c-card a:hover { color: var(--orange); }
body[data-page="contact"] .page-hero { padding-bottom: 200px; }
.map-card { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); min-height: 420px; background: var(--line); }
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.3); }
.map-badge { position: absolute; left: 18px; bottom: 18px; right: 18px; display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 10px; padding: 14px 18px; box-shadow: var(--shadow); }
.map-badge img { width: 34px; }
.map-badge strong { display: block; font-size: .95rem; }
.map-badge span { font-size: .82rem; color: var(--muted); }

/* ---------- CTA band + footer ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, #12385E 100%); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.cta-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 0; max-width: 22em; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-blocks { position: relative; width: 74px; height: 90px; }
.cta-blocks i { position: absolute; width: 20px; height: 62px; transform: skewY(-25deg); animation: float 5s ease-in-out infinite; }
.cta-blocks i:nth-child(1) { left: 0; top: 6px; background: var(--orange); }
.cta-blocks i:nth-child(2) { left: 26px; top: 18px; background: #F6CB22; animation-delay: -1.6s; }
.cta-blocks i:nth-child(3) { left: 52px; top: 30px; background: var(--teal); animation-delay: -3.2s; }
.site-footer { background: var(--navy-d); color: rgba(255,255,255,.75); padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer-brand img { width: 200px; margin-bottom: 18px; }
.site-footer p { color: rgba(255,255,255,.65); font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; position: relative; padding-bottom: 12px; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; background: var(--orange); border-radius: 2px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .92rem; }
.site-footer ul a { transition: color .25s, padding .25s; }
.site-footer ul a:hover { color: var(--orange); padding-left: 4px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .ic { color: var(--orange); margin-top: 3px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background .3s, transform .3s; }
.socials a:hover { background: var(--orange); color: #fff; transform: translateY(-3px); }
.socials .ic { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: .85rem; }
.footer-bottom .tagline { color: var(--yellow); font-weight: 600; }

.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--orange); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(229,101,46,.4); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s, background .3s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--navy); }

/* ---------- lightbox + story modal ---------- */
.lightbox, .story-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(6,18,31,.94); display: grid; place-items: center; padding: 60px 70px; opacity: 0; transition: opacity .35s; }
.lightbox.open, .story-modal.open { opacity: 1; }
.lightbox[hidden], .story-modal[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: min(1200px, 100%); max-height: 78vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: popIn .45s var(--ease); }
.lightbox figcaption { color: #fff; margin-top: 14px; font-weight: 600; }
.lightbox button, .story-close { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; transition: background .3s; }
.lightbox button:hover, .story-close:hover { background: var(--orange); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; translate: 0 -50%; }
.lb-next { right: 14px; top: 50%; translate: 0 -50%; }
.story-stage { position: relative; width: min(1100px, 100%); aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.story-close { top: 14px; right: 14px; z-index: 5; background: rgba(0,0,0,.35); }
.story-frame { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s ease; }
.story-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 5s linear; }
.story-frame.is-active { opacity: 1; }
.story-frame.is-active img { transform: scale(1); }
.story-frame figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 80px 36px 40px; color: #fff; background: linear-gradient(0deg, rgba(10,31,53,.9), transparent); }
.story-frame figcaption strong { display: block; font-size: clamp(1.4rem, 3vw, 2.4rem); color: var(--orange); }
.story-frame figcaption span { font-size: clamp(.95rem, 1.5vw, 1.2rem); opacity: 0; transform: translateY(16px); display: block; transition: opacity .8s .4s, transform .8s .4s; }
.story-frame.is-active figcaption span { opacity: 1; transform: none; }
.story-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.15); z-index: 3; }
.story-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--yellow), var(--teal)); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .main-nav a[data-nav] { padding: 10px 9px; font-size: .88rem; }
  .synergy-grid, .values-grid, .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .org-children { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-blocks { display: none; }
}
@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .site-header { backdrop-filter: none; background: #fff; }
  .brand img { height: 46px; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 auto; width: min(340px, 86vw); background: #fff; padding: 24px;
    transform: translateX(100%); transition: transform .45s var(--ease); box-shadow: -20px 0 40px rgba(0,0,0,.12); overflow-y: auto;
  }
  .nav-open .main-nav { transform: none; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a[data-nav] { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .main-nav a[data-nav]::after { left: 4px; right: auto; width: 40px; bottom: -1px; }
  .nav-cta-mobile { display: inline-flex; margin-top: 22px; }
  .nav-open .main-nav li { animation: fadeUp .5s var(--ease) both; }
  .nav-open .main-nav li:nth-child(2) { animation-delay: .05s; } .nav-open .main-nav li:nth-child(3) { animation-delay: .1s; }
  .nav-open .main-nav li:nth-child(4) { animation-delay: .15s; } .nav-open .main-nav li:nth-child(5) { animation-delay: .2s; }
  .nav-open .main-nav li:nth-child(6) { animation-delay: .25s; } .nav-open .main-nav li:nth-child(7) { animation-delay: .3s; }
  .features-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .feature + .feature::before { display: none; }
  .stat + .stat { border-left: 0; }
  .stat { padding: 16px 10px; }
  .split, .split.flip, .vm-grid, .model-grid, .newsletter, .form-wrap, body[data-page="contact"] .form-wrap, .news-feature { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .news-grid, .project-grid, .strategy-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .brand-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 180px 180px; }
  .brand-mosaic .m-tall { grid-column: span 2; grid-row: auto; }
  .journey { grid-template-columns: 1fr; gap: 8px; }
  .step, .step:first-child { clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%); padding: 24px 20px 34px; }
  .commitment::after { background: linear-gradient(0deg, rgba(10,31,53,.95) 30%, rgba(10,31,53,.5)); }
  .hero-blocks { display: none; }
  .stats-band { background-attachment: scroll; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .hero { min-height: 640px; padding-bottom: 110px; }
  .hero-slide { background-position: 78% center; }
  .hero-overlay { background: linear-gradient(0deg, rgba(10,31,53,.92) 10%, rgba(10,31,53,.55) 60%, rgba(10,31,53,.35)); }
  .hero-controls .hero-arrows { display: none; }
  .hero-count { margin-right: 0; }
  .hero-count b { font-size: 1.8rem; }
  .scroll-cue { display: none; }
  .features-grid, .stats-grid, .synergy-grid, .values-grid, .roles-grid, .org-children, .news-grid, .project-grid, .strategy-grid, .contact-cards, .footer-grid, .perks { grid-template-columns: 1fr; }
  .feature { padding: 18px 4px; }
  .ticks.two-col, .field-row { grid-template-columns: 1fr; }
  .carousel-nav button { display: none; }
  .div-card { width: 250px; }
  .div-badge { top: calc(250px * 11 / 16 - 30px); }
  .brand-mosaic { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 220px; }
  .brand-mosaic .m-tall { grid-column: auto; }
  .m-cap { transform: none; }
  .img-stack { padding: 0 0 40px 30px; }
  .stack-badge { right: 0; }
  .brand-pair a:nth-child(2) { margin-left: 10%; }
  .lightbox, .story-modal { padding: 60px 12px; }
  .lb-prev, .lb-next { top: auto !important; bottom: 14px; translate: none !important; }
  .div-num { font-size: 4rem; right: 0; }
  .contact-cards { margin-top: -120px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .anim-up { opacity: 1; transform: none; }
  .hero h1 .anim-line { transform: none; }
}

/* ==========================================================================
   Light home hero: white left side, photo fading in from the right,
   orange diagonal streaks and an overlapping feature card
   ========================================================================== */
.d5 { animation-delay: .75s !important; }
.hero-light { background: #fff; color: var(--navy); min-height: min(100vh, 880px); padding: calc(var(--header-h) + 40px) 0 230px; }
.hero-light .hero-slide { background-position: 88% center; }
.hero-light .hero-slides,
.hero-light .hero-wipe { left: 30%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%); mask-image: linear-gradient(90deg, transparent 0%, #000 34%); }
.hero-light .hero-overlay { background: linear-gradient(90deg, #fff 28%, rgba(255,255,255,.55) 44%, rgba(255,255,255,0) 60%), linear-gradient(0deg, rgba(255,255,255,.95) 0, rgba(255,255,255,0) 16%); }
.hero-light h1 { color: var(--navy); font-size: clamp(2.3rem, 4.6vw, 4.1rem); line-height: 1.05; letter-spacing: -.035em; max-width: none; }
.hero-light h1 .accent { color: var(--orange); }
.hero-light .lead { color: #3D4B5C; font-size: 1.15rem; max-width: 31em; }
.hero-label { display: flex; align-items: center; gap: 14px; margin: 0 0 1.4em; font-size: .85rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--navy); }
.btn-lg { padding: 1.15em 2.2em; font-size: 1.05rem; border-radius: 8px; }
.btn-outline-dark { border-color: var(--navy); color: var(--navy); background: rgba(255,255,255,.7); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

.hero-streaks { position: absolute; z-index: 2; left: 38%; top: 34%; bottom: 0; width: 20%; pointer-events: none; }
.hero-streaks i { position: absolute; bottom: 0; transform-origin: bottom; background: linear-gradient(to top, #E5652E 0%, rgba(240,120,50,.85) 45%, rgba(229,101,46,0) 100%); opacity: 0; transform: skewX(-32deg) scaleY(0); }
.hero-streaks i:nth-child(1) { left: 40%; width: 64px; height: 70%; }
.hero-streaks i:nth-child(2) { left: 62%; width: 20px; height: 92%; }
.hero-streaks i:nth-child(3) { left: 22%; width: 10px; height: 58%; }
.ready .hero-streaks i { animation: streakIn 1.3s var(--ease) .5s forwards, streakGlow 4s ease-in-out 2s infinite; }
.ready .hero-streaks i:nth-child(2) { animation-delay: .65s, 2.4s; }
.ready .hero-streaks i:nth-child(3) { animation-delay: .8s, 2.8s; }
@keyframes streakIn { to { opacity: 1; transform: skewX(-32deg) scaleY(1); } }
@keyframes streakGlow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.25) saturate(1.2); } }
.hero-streaks i:nth-child(2) { --o: .6; }
.hero-streaks i:nth-child(3) { --o: .45; }

.hero-light .hero-controls { bottom: 148px; justify-content: flex-start; gap: 18px; }
.hero-light .hero-arrows { display: none; }
.hero-light .hero-count { margin: 0; order: -1; color: var(--navy); }
.hero-light .hero-count b { font-size: 1.5rem; }
.hero-light .hero-count span { color: var(--muted); font-size: .85rem; }
.hero-light .hero-dots button { background: rgba(14,42,71,.15); width: 38px; }

.features-card-wrap { background: transparent; border: 0; margin-top: -120px; padding-bottom: 10px; z-index: 5; }
.features-card { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(14,42,71,.13); padding: 26px 18px; margin-inline: 5%; }
.features-card .feature { padding: 10px 24px; justify-content: center; }
.features-card .feature-ic { width: 76px; height: 76px; border-radius: 50%; background: #FDF1EB; color: var(--orange) !important; box-shadow: none; }
.features-card .feature-ic .ic { width: 34px; height: 34px; stroke-width: 1.6; }
.features-card .feature:hover .feature-ic { background: var(--orange); color: #fff !important; transform: rotate(-8deg) scale(1.06); }
.features-card h3 { margin: 0; font-size: 1.12rem; font-weight: 600; line-height: 1.3; color: var(--navy); }

@media (max-width: 960px) {
  /* phones/tablets: same light look as desktop, photo fading in from the right behind the text */
  .hero-light { min-height: 720px; padding: calc(var(--header-h) + 44px) 0 170px; }
  .hero-light .hero-slides,
  .hero-light .hero-wipe { left: 18%; top: 0; bottom: 0; height: auto; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
  .hero-light .hero-slide { background-position: 78% center; }
  .hero-light .hero-overlay { background: linear-gradient(90deg, #fff 25%, rgba(255,255,255,.88) 52%, rgba(255,255,255,.45) 80%, rgba(255,255,255,.15) 100%), linear-gradient(0deg, rgba(255,255,255,.95) 0, rgba(255,255,255,0) 18%); }
  .hero-streaks { left: 46%; top: 46%; width: 40%; opacity: .75; }
  .hero-light .hero-controls { bottom: 108px; }
  .features-card-wrap { margin-top: -80px; }
  .features-card { grid-template-columns: repeat(2, 1fr); margin-inline: 0; gap: 10px 0; }
  .features-card .feature:nth-child(3)::before { display: none; }
}
@media (max-width: 640px) {
  .hero-light { min-height: 0; padding-bottom: 160px; }
  .hero-light .lead { font-size: 1.05rem; }
  .btn-lg { padding: 1em 1.5em; font-size: .98rem; }
  .features-card { padding: 18px 8px; }
  .features-card .feature { flex-direction: column; text-align: center; gap: 10px; padding: 12px 6px; }
  .features-card .feature-ic { width: 60px; height: 60px; }
  .features-card .feature-ic .ic { width: 28px; height: 28px; }
  .features-card h3 { font-size: 1rem; }
}

/* hero text swaps with each slide: old text slides up and fades, new text rises in */
.hero-content .anim-line, .hero-content .hero-lead, .hero-content .hero-acts { transition: transform .35s cubic-bezier(.6,0,.4,1), opacity .3s ease; }
.hero-content.text-out .anim-line { transform: translateY(-110%) !important; animation: none !important; }
.hero-content.text-out .hero-lead, .hero-content.text-out .hero-acts { opacity: 0 !important; transform: translateY(-12px); animation: none !important; }

/* drawings (e.g. floor plans) shown whole instead of cropped */
.project img.contain { object-fit: contain; background: #fff; padding: 8px; }

/* division cards: lift/zoom only for real mouse hover, so taps and swipes on phones don't make cards jump */
@media (hover: hover) and (pointer: fine) {
  .div-card-link:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
  .div-card-link:hover .div-card-img img { transform: scale(1.1); }
  .div-card-link:hover .div-badge { transform: rotate(360deg); }
}

/* division motto line, e.g. Construction: "We Deliver Quality And Value." */
.div-motto { font-weight: 700; font-style: italic; color: var(--c, var(--orange)) !important; font-size: 1.05rem; margin: -6px 0 14px; }

/* WhatsApp: floating chat button, contact link and button */
.wa-float { position: fixed; left: 22px; bottom: 22px; z-index: 900; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px; border-radius: 999px; background: #25D366; color: #fff; font-weight: 700; font-size: .95rem; box-shadow: 0 10px 26px rgba(37,211,102,.45); transition: transform .3s var(--ease), box-shadow .3s; animation: waPop .6s 2s var(--ease) both; }
.wa-float .ic { width: 26px; height: 26px; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 30px rgba(37,211,102,.55); }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25D366; animation: pulse 2.4s 3s infinite; pointer-events: none; }
@keyframes waPop { from { opacity: 0; transform: translateY(20px) scale(.8); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .wa-float { width: 54px; padding: 0; justify-content: center; } .wa-float span { display: none; } }
.wa-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: #1DA851; font-weight: 700; }
.wa-link .ic { width: 18px; height: 18px; }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1DA851; transform: translateY(-2px); }
.socials .ic { width: 17px; height: 17px; }
.footer-contact a:hover { color: var(--orange); }

/* contact page: Find Us panel replaces the embedded map */
.find-us { background: linear-gradient(rgba(14,42,71,.88), rgba(14,42,71,.94)), url(../images/photos/hero-joburg.webp) center/cover; color: #fff; display: flex; flex-direction: column; }
.find-us-inner { padding: clamp(28px, 4vw, 44px); flex: 1; }
.find-us h2 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.find-us p { color: rgba(255,255,255,.82); }
.find-pin { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; margin-bottom: 18px; box-shadow: 0 0 0 0 rgba(229,101,46,.6); animation: ping 2s infinite; }
.find-pin .ic { width: 30px; height: 30px; }
.find-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.find-us .map-badge { position: static; margin: 0 18px 18px; }
.find-us .find-us-inner { display: flex; flex-direction: column; justify-content: center; }
.find-us .map-badge { color: var(--ink); }
.find-us .map-badge span { color: var(--muted); }

/* Temporarily hidden on the owner's request (Careers page link, Healthcare & Medical division).
   To show them again, delete this rule (and remove "hidden disabled" from the medical <option> in contact.html). */
.hide-for-now { display: none !important; }

/* forms: spam honeypot field (kept off-screen) and sending state */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.btn.is-sending { opacity: .75; cursor: progress; }
.form-msg a { color: inherit; text-decoration: underline; }
