/* ==========================================================================
   KENT MIDDLE EAST — "Precision" Corporate Design System
   Bespoke theme layered over Bootstrap 5. Light corporate: navy on white
   with cyan precision accents, engineered rules and measured whitespace.

   0.  Design tokens
   1.  Base & typography
   2.  Layout primitives (section, eyebrow, section head, index numerals)
   3.  Buttons & links
   4.  Image placeholders (swap for real photography)
   5.  Header / navigation
   6.  Hero
   7.  Trust strip
   8.  Cards (service, why, project)
   9.  Bands (sustainability, CTA)
   10. Footer
   11. Forms
   12. Motion & reveal
   13. Responsive
   ========================================================================== */

/* ==========================================================================
   0. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Brand — sampled from the Kent Middle East logo */
  --ke-navy:          #1B2379;
  --ke-navy-deep:     #0E1450;
  --ke-navy-ink:      #0A0F3A;
  --ke-cyan:          #00A3E0;
  --ke-cyan-deep:     #0086BC;
  --ke-cyan-soft:     #E6F6FD;

  /* Neutrals */
  --ke-white:         #FFFFFF;
  --ke-paper:         #F7F9FC;
  --ke-paper-2:       #EFF3F9;
  --ke-line:          #E1E7F0;
  --ke-line-soft:     #EDF1F7;
  --ke-body:          #4A5568;
  --ke-muted:         #7A879B;

  /* Type */
  --ke-font-display: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --ke-font-body:    'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Rhythm */
  --ke-section-y:    clamp(4.5rem, 8vw, 8rem);
  --ke-radius:       3px;
  --ke-radius-lg:    5px;

  /* Elevation — deliberately restrained, corporate not consumer */
  --ke-shadow-sm:    0 1px 2px rgba(14, 20, 80, .05);
  --ke-shadow:       0 12px 32px -14px rgba(14, 20, 80, .18);
  --ke-shadow-lg:    0 28px 60px -28px rgba(14, 20, 80, .3);

  /* Motion */
  --ke-ease:         cubic-bezier(.22, .61, .36, 1);
  --ke-ease-out:     cubic-bezier(.16, 1, .3, 1);

  /* Sticky offsets — measured live by main.js so nothing is ever hard-coded.
     The fallbacks below match the un-scrolled desktop header (42px topbar +
     86px navbar) and are only used for the first paint before JS runs. */
  --ke-header-h:     128px;
  --ke-subnav-h:     0px;
  --ke-sticky-top:   calc(var(--ke-header-h) + var(--ke-subnav-h) + 1.5rem);

  /* Bootstrap overrides */
  --bs-primary:      #1B2379;
  --bs-body-color:   #4A5568;
  --bs-body-font-family: var(--ke-font-body);
}

/* ==========================================================================
   1. BASE & TYPOGRAPHY
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

/* Anchor targets clear both the header and (where present) the sticky sub-nav. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--ke-header-h) + var(--ke-subnav-h) + 1.25rem);
}

body {
  font-family: var(--ke-font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ke-body);
  background: var(--ke-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Horizontal overflow guard
   `clip` is used in preference to `hidden` because `hidden` turns the element
   into a scroll container, which breaks `position: sticky` on the header and
   the Solutions sub-nav. Applied to BOTH html and body: body alone is
   unreliable on iOS Safari and several Android browsers.
   -------------------------------------------------------------------------- */
html, body { max-width: 100%; overflow-x: clip; }

@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}

/* Long unbroken tokens (email addresses, licence numbers, URLs) must not
   push the layout wider than the screen. */
body, p, li, td, dd, h1, h2, h3, h4, h5, h6, .ke-lead {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1, h2, h3, h4, h5, h6, .ke-display {
  font-family: var(--ke-font-display);
  color: var(--ke-navy-ink);
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.12;
  margin: 0 0 .6em;
}

h1, .ke-h1 { font-size: clamp(2.35rem, 4.6vw, 4rem); font-weight: 800; }
h2, .ke-h2 { font-size: clamp(1.85rem, 3.1vw, 2.85rem); }
h3, .ke-h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); }
h4, .ke-h4 { font-size: 1.125rem; letter-spacing: -.01em; }

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

.ke-lead {
  font-size: clamp(1.03rem, 1.35vw, 1.19rem);
  line-height: 1.75;
  color: var(--ke-body);
}

/* Uniform paragraph size for multi-paragraph body blocks (Home "Who We Are",
   About "Our Story"). Prevents the first paragraph rendering larger than the
   rest, which read as an inconsistency rather than deliberate hierarchy. */
.ke-body-copy {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--ke-body);
}

.ke-text-sm  { font-size: .875rem; }
.ke-text-xs  { font-size: .78rem; }
.ke-muted    { color: var(--ke-muted); }
.ke-navy     { color: var(--ke-navy); }
.ke-cyan     { color: var(--ke-cyan); }
.ke-ink      { color: var(--ke-navy-ink); }

a { color: var(--ke-navy); text-decoration: none; transition: color .25s var(--ke-ease); }
a:hover { color: var(--ke-cyan); }

::selection { background: var(--ke-navy); color: #fff; }

/* Accessible focus ring */
:focus-visible {
  outline: 2px solid var(--ke-cyan);
  outline-offset: 3px;
}

.ke-skip {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--ke-navy); color: #fff; padding: .75rem 1.25rem; font-weight: 600;
}
.ke-skip:focus { left: 0; color: #fff; }

/* Inline SVG icon base */
.ke-icon { width: 24px; height: 24px; flex: 0 0 auto; }
.ke-icon-sm { width: 18px; height: 18px; }
.ke-icon-lg { width: 32px; height: 32px; stroke-width: 1.35; }
.ke-icon-xl { width: 40px; height: 40px; stroke-width: 1.25; }

/* ==========================================================================
   2. LAYOUT PRIMITIVES
   ========================================================================== */
.ke-section { padding: var(--ke-section-y) 0; position: relative; }
.ke-section--tight { padding: clamp(3rem, 5vw, 4.75rem) 0; }
.ke-section--paper { background: var(--ke-paper); }
.ke-section--paper-2 { background: var(--ke-paper-2); }

/* Faint engineered grid — the signature background texture */
.ke-grid-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(27, 35, 121, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 35, 121, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 25%, transparent 78%);
  pointer-events: none;
}
.ke-section > .container,
.ke-section > .container-fluid { position: relative; z-index: 2; }

/* Eyebrow label — short cyan rule + tracked-out caps */
.ke-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--ke-font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--ke-cyan-deep);
  margin-bottom: 1.15rem;
}
.ke-eyebrow::before {
  content: '';
  width: 30px; height: 2px;
  background: var(--ke-cyan);
  flex: 0 0 auto;
}
.ke-eyebrow--light { color: rgba(255, 255, 255, .8); }
.ke-eyebrow--center { justify-content: center; }

/* Section heading block */
.ke-head { max-width: 780px; margin-bottom: clamp(2.5rem, 4vw, 3.75rem); }
.ke-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.ke-head h2 { margin-bottom: 1rem; }
.ke-head .ke-lead { color: var(--ke-body); }

/* Accent word inside headings */
.ke-accent { color: var(--ke-navy); position: relative; white-space: nowrap; }
/* Establishes its own stacking context so the ::after sits behind the glyphs
   but still above the section background. */
.ke-accent-underline { position: relative; z-index: 0; }
.ke-accent-underline::after {
  content: '';
  position: absolute; left: -.04em; right: -.04em; bottom: .04em;
  height: .26em;
  background: linear-gradient(90deg, rgba(0, 163, 224, .55) 0%, rgba(0, 163, 224, .14) 100%);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
  animation: ke-underline .9s .35s var(--ke-ease-out) forwards;
}
@keyframes ke-underline { to { transform: scaleX(1); } }

/* Large outlined index numeral used to mark sections */
.ke-index {
  font-family: var(--ke-font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--ke-line);
  position: absolute;
  top: -.28em; right: 0;
  pointer-events: none;
  user-select: none;
}

/* Hairline divider */
.ke-rule { height: 1px; background: var(--ke-line); border: 0; margin: 0; }
.ke-rule--cyan { height: 2px; width: 46px; background: var(--ke-cyan); }

/* Vertical accent bar used beside pull quotes / statements */
.ke-bar-quote {
  border-left: 3px solid var(--ke-cyan);
  padding-left: 1.5rem;
}

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */
.ke-btn {
  --ke-btn-bg:     var(--ke-navy);
  --ke-btn-fg:     #fff;
  --ke-btn-bd:     var(--ke-navy);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .95rem 1.7rem;
  font-family: var(--ke-font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ke-btn-fg);
  background: var(--ke-btn-bg);
  border: 1px solid var(--ke-btn-bd);
  border-radius: var(--ke-radius);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s var(--ke-ease), border-color .35s var(--ke-ease), transform .35s var(--ke-ease);
}
/* Cyan wipe that sweeps in from the left on hover */
.ke-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--ke-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s var(--ke-ease-out);
  z-index: -1;
}
.ke-btn:hover { color: #fff; border-color: var(--ke-cyan); transform: translateY(-2px); }
.ke-btn:hover::before { transform: scaleX(1); }
.ke-btn:active { transform: translateY(0); }
.ke-btn .ke-icon { width: 17px; height: 17px; transition: transform .35s var(--ke-ease); }
.ke-btn:hover .ke-icon { transform: translateX(4px); }

.ke-btn--outline {
  --ke-btn-bg: transparent;
  --ke-btn-fg: var(--ke-navy);
  --ke-btn-bd: var(--ke-line);
}
.ke-btn--outline:hover { color: #fff; }

.ke-btn--ghost-light {
  --ke-btn-bg: transparent;
  --ke-btn-fg: #fff;
  --ke-btn-bd: rgba(255, 255, 255, .35);
}
.ke-btn--white {
  --ke-btn-bg: #fff;
  --ke-btn-fg: var(--ke-navy);
  --ke-btn-bd: #fff;
}
.ke-btn--cyan {
  --ke-btn-bg: var(--ke-cyan);
  --ke-btn-fg: #fff;
  --ke-btn-bd: var(--ke-cyan);
}
.ke-btn--cyan::before { background: var(--ke-navy); }
.ke-btn--sm { padding: .68rem 1.2rem; font-size: .74rem; }
.ke-btn--lg { padding:1.1rem 2.1rem; font-size: .86rem; }
.ke-btn--block { width: 100%; justify-content: center; }

/* Text link with an animated cyan rule */
.ke-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--ke-font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ke-navy);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--ke-cyan), var(--ke-cyan));
  background-size: 0% 2px;
  background-position: left bottom;
  background-repeat: no-repeat;
  transition: background-size .4s var(--ke-ease-out), color .3s var(--ke-ease);
}
.ke-link:hover { color: var(--ke-cyan-deep); background-size: 100% 2px; }
.ke-link .ke-icon { width: 15px; height: 15px; transition: transform .35s var(--ke-ease); }
.ke-link:hover .ke-icon { transform: translateX(4px); }

/* ==========================================================================
   4. IMAGE PLACEHOLDERS
   --------------------------------------------------------------------------
   Every placeholder states the exact pixel size required. Drop the real
   photograph in and replace the <div class="ke-ph"> with an <img>.
   ========================================================================== */
.ke-ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  background-color: var(--ke-paper-2);
  background-image:
    repeating-linear-gradient(
      -45deg,
      rgba(27, 35, 121, .05) 0 1px,
      transparent 1px 11px
    );
  border: 1px solid var(--ke-line);
  border-radius: var(--ke-radius);
  color: var(--ke-muted);
}
.ke-ph::after {
  content: attr(data-size);
  font-family: var(--ke-font-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(27, 35, 121, .38);
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--ke-line);
  padding: .4rem .8rem;
  border-radius: 2px;
  white-space: nowrap;
}
.ke-ph--dark {
  background-color: var(--ke-navy-deep);
  background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 1px, transparent 1px 11px);
  border-color: rgba(255, 255, 255, .12);
}
.ke-ph--dark::after { color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }

/* Aspect ratio helpers */
.ke-ratio-16x9  { aspect-ratio: 16 / 9; }
.ke-ratio-4x3   { aspect-ratio: 4 / 3; }
.ke-ratio-3x2   { aspect-ratio: 3 / 2; }
.ke-ratio-1x1   { aspect-ratio: 1 / 1; }
.ke-ratio-5x7   { aspect-ratio: 5 / 7; }
.ke-ratio-hero  { aspect-ratio: 16 / 10; }

/* Real images inherit the same framing */
.ke-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Media frame with the signature cyan corner bracket */
.ke-frame { position: relative; }
.ke-frame::before,
.ke-frame::after {
  content: '';
  position: absolute;
  width: 56px; height: 56px;
  border: 2px solid var(--ke-cyan);
  pointer-events: none;
  z-index: 3;
}
.ke-frame::before { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.ke-frame::after  { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }

/* Navy statistic tile that overlaps an image */
.ke-stat-tile {
  position: absolute;
  right: -14px; bottom: -14px;
  z-index: 4;
  background: var(--ke-navy);
  color: #fff;
  padding: 1.5rem 1.75rem;
  border-radius: var(--ke-radius);
  box-shadow: var(--ke-shadow-lg);
  min-width: 178px;
}
.ke-stat-tile__num {
  font-family: var(--ke-font-display);
  font-size: 2.4rem; font-weight: 800; line-height: 1;
  letter-spacing: -.03em; color: #fff;
}
.ke-stat-tile__num span { color: var(--ke-cyan); }
.ke-stat-tile__lbl {
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.7); margin-top: .5rem; line-height: 1.5;
}

/* ==========================================================================
   5. HEADER / NAVIGATION
   ========================================================================== */
.ke-topbar {
  background: var(--ke-navy-deep);
  color: rgba(255, 255, 255, .75);
  font-size: .8rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.ke-topbar a { color: rgba(255, 255, 255, .78); }
.ke-topbar a:hover { color: var(--ke-cyan); }
.ke-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 42px; }
.ke-topbar__list { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.ke-topbar__list li { display: flex; align-items: center; gap: .5rem; }
.ke-topbar .ke-icon { width: 15px; height: 15px; color: var(--ke-cyan); }

/* Region switcher */
.ke-region { position: relative; }
.ke-region__btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.85);
  font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: .32rem .7rem; border-radius: 2px; cursor: pointer;
  transition: border-color .25s var(--ke-ease), color .25s var(--ke-ease);
}
.ke-region__btn:hover { border-color: var(--ke-cyan); color: #fff; }
.ke-region__btn .ke-icon { width: 13px; height: 13px; transition: transform .3s var(--ke-ease); }
.ke-region.is-open .ke-region__btn .ke-icon { transform: rotate(180deg); }
.ke-region__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 216px; background: #fff; border: 1px solid var(--ke-line);
  border-radius: var(--ke-radius); box-shadow: var(--ke-shadow);
  padding: .4rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .28s var(--ke-ease), transform .28s var(--ke-ease), visibility .28s;
}
.ke-region.is-open .ke-region__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ke-region__menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem .8rem; font-size: .84rem; font-weight: 500; color: var(--ke-navy-ink);
  border-radius: 2px;
}
.ke-region__menu a:hover { background: var(--ke-paper); color: var(--ke-navy); }
.ke-region__menu .is-current { color: var(--ke-cyan-deep); font-weight: 600; }
.ke-region__flag { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ke-muted); }

/* Main bar */
.ke-header { position: sticky; top: 0; z-index: 1030; }
.ke-navbar {
  background: #fff;
  border-bottom: 1px solid var(--ke-line);
  transition: box-shadow .35s var(--ke-ease), padding .35s var(--ke-ease);
}
.ke-navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 94px; transition: min-height .35s var(--ke-ease); }
.ke-header.is-stuck .ke-navbar { box-shadow: 0 8px 24px -16px rgba(14,20,80,.4); }
.ke-header.is-stuck .ke-navbar__inner { min-height: 70px; }

.ke-logo { display: inline-flex; align-items: center; }
.ke-logo img { height: 62px; width: auto; display: block; transition: height .35s var(--ke-ease); }
.ke-header.is-stuck .ke-logo img { height: 50px; }
/* IMAGE SIZE: logo 900 x 240 px transparent PNG (or SVG) — assets/img/logo.png */

.ke-nav { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.ke-nav__link {
  position: relative;
  display: block;
  padding: .7rem .95rem;
  font-family: var(--ke-font-display);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .015em;
  color: var(--ke-navy-ink);
  white-space: nowrap;
}
.ke-nav__link::after {
  content: '';
  position: absolute; left: .95rem; right: .95rem; bottom: .25rem;
  height: 2px; background: var(--ke-cyan);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .38s var(--ke-ease-out);
}
.ke-nav__link:hover { color: var(--ke-navy); }
.ke-nav__link:hover::after,
.ke-nav__link.is-active::after { transform: scaleX(1); }
.ke-nav__link.is-active { color: var(--ke-navy); }

.ke-navbar__cta { display: flex; align-items: center; gap: 1.1rem; }
.ke-navbar__phone {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--ke-font-display); font-weight: 700; font-size: .92rem;
  color: var(--ke-navy-ink); letter-spacing: -.01em;
}
.ke-navbar__phone .ke-icon { color: var(--ke-cyan); width: 19px; height: 19px; }

/* Mobile toggle */
.ke-burger {
  display: none;
  width: 46px; height: 46px;
  background: transparent; border: 1px solid var(--ke-line); border-radius: var(--ke-radius);
  position: relative; cursor: pointer; padding: 0;
}
.ke-burger span {
  position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ke-navy);
  transition: transform .35s var(--ke-ease), opacity .25s var(--ke-ease), top .35s var(--ke-ease);
}
.ke-burger span:nth-child(1) { top: 16px; }
.ke-burger span:nth-child(2) { top: 22px; }
.ke-burger span:nth-child(3) { top: 28px; }
.ke-burger.is-open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.ke-burger.is-open span:nth-child(2) { opacity: 0; }
.ke-burger.is-open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* Off-canvas mobile drawer */
.ke-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(420px, 88vw);
  background: #fff; z-index: 1080;
  transform: translateX(100%);
  transition: transform .45s var(--ke-ease-out);
  display: flex; flex-direction: column;
  box-shadow: -20px 0 60px -30px rgba(14,20,80,.5);
  overflow-y: auto;
}
.ke-drawer.is-open { transform: translateX(0); }
.ke-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--ke-line); }
.ke-drawer__close { background: transparent; border: 0; font-size: 1.6rem; line-height: 1; color: var(--ke-navy); cursor: pointer; padding: .25rem .5rem; }
.ke-drawer__nav { list-style: none; margin: 0; padding: .75rem 0; flex: 1; }
.ke-drawer__nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  font-family: var(--ke-font-display); font-weight: 600; font-size: 1rem;
  color: var(--ke-navy-ink);
  border-bottom: 1px solid var(--ke-line-soft);
  border-left: 3px solid transparent;
  transition: border-color .25s var(--ke-ease), background .25s var(--ke-ease), padding-left .25s var(--ke-ease);
}
.ke-drawer__nav a:hover,
.ke-drawer__nav a.is-active { border-left-color: var(--ke-cyan); background: var(--ke-paper); padding-left: 1.75rem; }
.ke-drawer__foot { padding: 1.5rem; background: var(--ke-paper); border-top: 1px solid var(--ke-line); }
.ke-backdrop {
  position: fixed; inset: 0; background: rgba(10, 15, 58, .55);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; z-index: 1070;
  transition: opacity .4s var(--ke-ease), visibility .4s;
}
.ke-backdrop.is-open { opacity: 1; visibility: visible; }

/* ==========================================================================
   6. HERO
   ========================================================================== */
.ke-hero {
  position: relative;
  background: var(--ke-white);
  overflow: hidden;
  border-bottom: 1px solid var(--ke-line);
}
/* Soft navy wash behind the media column */
.ke-hero::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 42%;
  background: linear-gradient(160deg, var(--ke-paper) 0%, var(--ke-cyan-soft) 100%);
  z-index: 0;
}
.ke-hero__inner { position: relative; z-index: 2; padding: clamp(3.5rem, 6vw, 6.5rem) 0 clamp(3.5rem, 6vw, 6rem); }

.ke-hero__slides { position: relative; }
.ke-hero__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  pointer-events: none;
  transition: opacity .7s var(--ke-ease);
}
.ke-hero__slide.is-active { position: relative; opacity: 1; visibility: visible; pointer-events: auto; }

.ke-hero__title { margin-bottom: 1.35rem; }
.ke-hero__text { max-width: 44ch; margin-bottom: 2.15rem; }
.ke-hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Media column with the signature notched corner */
.ke-hero__media {
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 68px);
}
.ke-hero__media::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 68px; height: 68px;
  background: var(--ke-cyan);
  z-index: 5;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* Slider controls */
.ke-hero__controls { display: flex; align-items: center; gap: 1.5rem; margin-top: 2.75rem; }
.ke-hero__dots { display: flex; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.ke-hero__dot {
  width: 34px; height: 3px; background: var(--ke-line); border: 0; padding: 0; cursor: pointer;
  position: relative; overflow: hidden; border-radius: 2px;
}
.ke-hero__dot::after {
  content: ''; position: absolute; inset: 0; background: var(--ke-cyan);
  transform: scaleX(0); transform-origin: left center;
}
.ke-hero__dot.is-active::after { animation: ke-progress 7s linear forwards; }
@keyframes ke-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.ke-hero__arrows { display: flex; gap: .4rem; }
.ke-hero__arrow {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--ke-line); border-radius: var(--ke-radius);
  color: var(--ke-navy); cursor: pointer;
  transition: background .3s var(--ke-ease), color .3s var(--ke-ease), border-color .3s var(--ke-ease);
}
.ke-hero__arrow:hover { background: var(--ke-navy); border-color: var(--ke-navy); color: #fff; }
.ke-hero__count {
  font-family: var(--ke-font-display); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; color: var(--ke-muted);
}
.ke-hero__count b { color: var(--ke-navy); }

/* Page banner (inner pages) */
.ke-banner {
  position: relative;
  background: var(--ke-navy-deep);
  color: #fff;
  padding: clamp(3.5rem, 6vw, 6rem) 0 clamp(3rem, 5vw, 4.5rem);
  overflow: hidden;
}
.ke-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(105deg, #000 0%, transparent 65%);
          mask-image: linear-gradient(105deg, #000 0%, transparent 65%);
}
.ke-banner h1 { color: #fff; }
.ke-banner .ke-lead { color: rgba(255,255,255,.72); max-width: 60ch; }
.ke-banner > .container { position: relative; z-index: 2; }

.ke-crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.75rem 0 0; padding: 0; font-size: .82rem; }
.ke-crumbs li { color: rgba(255,255,255,.55); }
.ke-crumbs li + li::before { content: '/'; margin-right: .6rem; color: rgba(255,255,255,.3); }
.ke-crumbs a { color: rgba(255,255,255,.75); }
.ke-crumbs a:hover { color: var(--ke-cyan); }

/* ==========================================================================
   7. TRUST STRIP
   ========================================================================== */
.ke-trust {
  background: var(--ke-navy);
  color: #fff;
  position: relative;
}
.ke-trust::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--ke-cyan) 0%, var(--ke-cyan) 22%, transparent 22%);
}
.ke-trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.ke-trust__item {
  padding: clamp(2rem, 3.5vw, 3rem) clamp(1rem, 2vw, 2rem);
  border-right: 1px solid rgba(255,255,255,.1);
  text-align: center;
}
.ke-trust__item:last-child { border-right: 0; }
.ke-trust__num {
  font-family: var(--ke-font-display);
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  font-weight: 800; line-height: 1; letter-spacing: -.035em; color: #fff;
  margin-bottom: .65rem;
}
.ke-trust__num span { color: var(--ke-cyan); }
.ke-trust__lbl {
  font-size: .77rem; letter-spacing: .13em; text-transform: uppercase;
  color: rgba(255,255,255,.62); line-height: 1.6;
}

/* ==========================================================================
   8. CARDS
   ========================================================================== */

/* --- Service card --- */
.ke-card {
  position: relative;
  display: flex; flex-direction: column;
  height: 100%;
  padding: 2.35rem 2rem 2.1rem;
  background: #fff;
  border: 1px solid var(--ke-line);
  border-radius: var(--ke-radius);
  overflow: hidden;
  transition: border-color .4s var(--ke-ease), transform .4s var(--ke-ease), box-shadow .4s var(--ke-ease);
}
/* Cyan rule that draws across the top on hover */
.ke-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--ke-cyan);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .5s var(--ke-ease-out);
}
.ke-card:hover { border-color: #D3DCEA; transform: translateY(-6px); box-shadow: var(--ke-shadow); }
.ke-card:hover::before { transform: scaleX(1); }

.ke-card__icon {
  width: 60px; height: 60px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ke-cyan-soft);
  color: var(--ke-navy);
  border-radius: var(--ke-radius);
  margin-bottom: 1.5rem;
  transition: background .4s var(--ke-ease), color .4s var(--ke-ease);
}
.ke-card:hover .ke-card__icon { background: var(--ke-navy); color: #fff; }
.ke-card h3 { font-size: 1.16rem; margin-bottom: .7rem; }
.ke-card p { font-size: .945rem; color: var(--ke-body); margin-bottom: 1.4rem; }
.ke-card__foot { margin-top: auto; }
/* The whole card is the hover target, so drive the inner link from it. */
.ke-card:hover .ke-link { color: var(--ke-cyan-deep); background-size: 100% 2px; }
.ke-card:hover .ke-link .ke-icon { transform: translateX(4px); }

.ke-card__no {
  position: absolute; top: 1.5rem; right: 1.65rem;
  font-family: var(--ke-font-display); font-weight: 800; font-size: 2.1rem;
  color: var(--ke-paper-2); line-height: 1; letter-spacing: -.04em;
  transition: color .4s var(--ke-ease);
}
.ke-card:hover .ke-card__no { color: var(--ke-cyan-soft); }

/* --- Why-Kent row card (horizontal, rule-separated) --- */
.ke-why {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 1.75rem;
  height: 100%;
  border-left: 1px solid var(--ke-line);
  transition: background .4s var(--ke-ease);
}
.ke-why:hover { background: #fff; }
.ke-why__icon {
  color: var(--ke-cyan);
  flex: 0 0 auto;
  transition: transform .4s var(--ke-ease);
}
.ke-why:hover .ke-why__icon { transform: translateY(-3px); }
.ke-why__no {
  font-family: var(--ke-font-display); font-weight: 800; font-size: .78rem;
  letter-spacing: .12em; color: var(--ke-cyan-deep); display: block; margin-bottom: .6rem;
}
.ke-why h3 { font-size: 1.06rem; margin-bottom: .6rem; }
.ke-why p { font-size: .92rem; margin: 0; }

/* --- Project card --- */
.ke-project {
  position: relative;
  display: block;
  height: 100%;
  background: #fff;
  border: 1px solid var(--ke-line);
  border-radius: var(--ke-radius);
  overflow: hidden;
  transition: transform .45s var(--ke-ease), box-shadow .45s var(--ke-ease), border-color .45s var(--ke-ease);
}
.ke-project:hover { transform: translateY(-6px); box-shadow: var(--ke-shadow); border-color: #D3DCEA; }
.ke-project__media { position: relative; overflow: hidden; }
.ke-project__media .ke-ph,
.ke-project__media .ke-img { border: 0; border-radius: 0; transition: transform .8s var(--ke-ease-out); }
.ke-project:hover .ke-project__media .ke-ph,
.ke-project:hover .ke-project__media .ke-img { transform: scale(1.05); }
.ke-project__tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 3;
  background: var(--ke-navy); color: #fff;
  font-family: var(--ke-font-display); font-size: .68rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  padding: .38rem .75rem; border-radius: 2px;
}
.ke-project__body { padding: 1.6rem 1.6rem 1.75rem; }
.ke-project__place {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .76rem; letter-spacing: .11em; text-transform: uppercase;
  color: var(--ke-muted); margin-bottom: .7rem;
}
.ke-project__place .ke-icon { width: 14px; height: 14px; color: var(--ke-cyan); }
.ke-project h3 { font-size: 1.08rem; margin-bottom: .55rem; line-height: 1.35; }
.ke-project__scope { font-size: .9rem; color: var(--ke-body); margin: 0; }
.ke-project__bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--ke-cyan); transform: scaleX(0); transform-origin: left center;
  transition: transform .5s var(--ke-ease-out);
}
.ke-project:hover .ke-project__bar { transform: scaleX(1); }

/* Horizontal scroll rail for the project carousel */
.ke-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: 1.75rem;

  /* overflow-y MUST be stated explicitly. Per spec, when one axis is `auto`
     and the other is `visible`, the visible axis computes to `auto` as well —
     so the 4px horizontal scrollbar shortens the content box and the cards
     immediately overflow vertically, producing a stray vertical scrollbar. */
  overflow-x: auto;
  overflow-y: hidden;

  /* Room for the -6px hover lift and its shadow, so clipping the Y axis
     doesn't shave the top of a raised card. Overflow clips at the padding
     box, so this padding is what buys the headroom. */
  padding-top: .85rem;
  padding-bottom: 1.25rem;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;   /* don't trigger browser back-swipe */
  scrollbar-width: thin;
  scrollbar-color: var(--ke-line) transparent;
}
.ke-rail > * { scroll-snap-align: start; }
.ke-rail::-webkit-scrollbar { height: 4px; }
.ke-rail::-webkit-scrollbar-track { background: var(--ke-line-soft); }
.ke-rail::-webkit-scrollbar-thumb { background: var(--ke-navy); border-radius: 2px; }

.ke-rail-nav { display: flex; gap: .45rem; }
.ke-rail-nav button {
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--ke-line); border-radius: var(--ke-radius);
  color: var(--ke-navy); cursor: pointer;
  transition: background .3s var(--ke-ease), color .3s var(--ke-ease), border-color .3s var(--ke-ease);
}
.ke-rail-nav button:hover { background: var(--ke-navy); border-color: var(--ke-navy); color: #fff; }

/* Feature list with cyan ticks */
.ke-ticks { list-style: none; margin: 0; padding: 0; }
.ke-ticks li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: .8rem;
  font-size: .96rem;
}
.ke-ticks li::before {
  content: '';
  position: absolute; left: 0; top: .5em;
  width: 11px; height: 11px;
  border: 2px solid var(--ke-cyan);
  border-radius: 50%;
}
.ke-ticks--tight li { margin-bottom: .5rem; font-size: .92rem; }

/* Chip / pill */
.ke-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--ke-cyan-soft); color: var(--ke-navy);
  font-family: var(--ke-font-display); font-size: .74rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .42rem .85rem; border-radius: 2px;
}
.ke-chip--outline { background: transparent; border: 1px solid var(--ke-line); color: var(--ke-muted); }

/* ==========================================================================
   9. BANDS
   ========================================================================== */
.ke-band-sustain {
  position: relative;
  background: linear-gradient(135deg, var(--ke-navy-deep) 0%, var(--ke-navy) 58%, #26309B 100%);
  color: #fff;
  overflow: hidden;
}
.ke-band-sustain::before {
  content: '';
  position: absolute; top: -30%; right: -8%;
  width: 620px; height: 620px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
}
.ke-band-sustain::after {
  content: '';
  position: absolute; top: -12%; right: 6%;
  width: 380px; height: 380px;
  border: 1px solid rgba(0,163,224,.28);
  border-radius: 50%;
}
.ke-band-sustain h2, .ke-band-sustain h3 { color: #fff; }
.ke-band-sustain p { color: rgba(255,255,255,.72); }
.ke-band-sustain > .container { position: relative; z-index: 3; }

.ke-sustain-item { display: flex; gap: 1.1rem; }
.ke-sustain-item .ke-icon { color: var(--ke-cyan); flex: 0 0 auto; }
.ke-sustain-item h3 { font-size: 1.02rem; margin-bottom: .45rem; }
.ke-sustain-item p { font-size: .92rem; margin: 0; }

/* CTA band */
.ke-cta {
  position: relative;
  background: var(--ke-paper);
  border-top: 1px solid var(--ke-line);
  overflow: hidden;
}
.ke-cta::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: linear-gradient(180deg, var(--ke-cyan) 0%, var(--ke-navy) 100%);
}
.ke-cta h2 { margin-bottom: .85rem; }
.ke-cta__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.ke-footer { background: var(--ke-navy-ink); color: rgba(255,255,255,.62); font-size: .93rem; }
.ke-footer a { color: rgba(255,255,255,.68); }
.ke-footer a:hover { color: var(--ke-cyan); }
.ke-footer__main { padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(2.5rem, 4vw, 3.5rem); }
/* The supplied logo is a PNG with a solid WHITE background, not transparent.
   Inverting it on the dark footer turned the whole file into a white block
   with the mark invisible inside it. Instead the logo sits on its own white
   panel, so the file's background reads as intentional.
   If a transparent PNG/SVG is supplied later, this panel can be removed. */
.ke-footer__logo {
  display: inline-block;
  background: #fff;
  padding: .8rem 1.15rem;
  border-radius: var(--ke-radius);
  margin-bottom: 1.5rem;
  line-height: 0;
}
.ke-footer__logo img { height: 56px; width: auto; display: block; }
.ke-footer__blurb { max-width: 34ch; line-height: 1.8; margin-bottom: 1.75rem; }

.ke-footer__title {
  font-family: var(--ke-font-display); font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: #fff;
  margin-bottom: 1.5rem; padding-bottom: .85rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  position: relative;
}
.ke-footer__title::after {
  content: ''; position: absolute; left: 0; bottom: -1px; width: 34px; height: 1px; background: var(--ke-cyan);
}
.ke-footer__list { list-style: none; margin: 0; padding: 0; }
.ke-footer__list li { margin-bottom: .75rem; }
.ke-footer__list a { display: inline-flex; align-items: center; gap: .55rem; transition: transform .3s var(--ke-ease), color .3s var(--ke-ease); }
.ke-footer__list a::before { content: ''; width: 0; height: 1px; background: var(--ke-cyan); transition: width .3s var(--ke-ease); }
.ke-footer__list a:hover::before { width: 12px; }

.ke-footer__contact { list-style: none; margin: 0; padding: 0; }
.ke-footer__contact li { display: flex; gap: .85rem; margin-bottom: 1.1rem; line-height: 1.65; }
.ke-footer__contact .ke-icon { color: var(--ke-cyan); width: 18px; height: 18px; flex: 0 0 auto; margin-top: .22rem; }

.ke-footer__legal {
  margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.09);
  font-size: .8rem; color: rgba(255,255,255,.45); line-height: 1.9;
}

.ke-social { display: flex; gap: .55rem; }
.ke-social a {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--ke-radius);
  transition: background .3s var(--ke-ease), border-color .3s var(--ke-ease), transform .3s var(--ke-ease);
}
.ke-social a:hover { background: var(--ke-cyan); border-color: var(--ke-cyan); color: #fff; transform: translateY(-3px); }
.ke-social svg { width: 17px; height: 17px; }

.ke-footer__bar {
  border-top: 1px solid rgba(255,255,255,.09);
  padding: 1.35rem 0;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}
.ke-footer__bar a { color: rgba(255,255,255,.6); }

/* Back to top */
.ke-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ke-navy); color: #fff; border: 0; border-radius: var(--ke-radius);
  cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px);
  box-shadow: var(--ke-shadow);
  transition: opacity .35s var(--ke-ease), transform .35s var(--ke-ease), visibility .35s, background .3s var(--ke-ease);
}
.ke-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.ke-top:hover { background: var(--ke-cyan); }
.ke-top .ke-icon { transform: rotate(-90deg); }

/* ==========================================================================
   11. FORMS
   ========================================================================== */
.ke-form-card {
  background: #fff;
  border: 1px solid var(--ke-line);
  border-radius: var(--ke-radius-lg);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  box-shadow: var(--ke-shadow-sm);
}
.ke-field { margin-bottom: 1.35rem; }
.ke-label {
  display: block;
  font-family: var(--ke-font-display);
  font-size: .76rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--ke-navy-ink); margin-bottom: .55rem;
}
.ke-label .req { color: var(--ke-cyan-deep); }
.ke-input,
.ke-select,
.ke-textarea {
  width: 100%;
  padding: .85rem 1rem;
  font-family: var(--ke-font-body);
  font-size: .95rem;
  color: var(--ke-navy-ink);
  background: var(--ke-paper);
  border: 1px solid var(--ke-line);
  border-radius: var(--ke-radius);
  transition: border-color .3s var(--ke-ease), background .3s var(--ke-ease), box-shadow .3s var(--ke-ease);
}
.ke-input::placeholder, .ke-textarea::placeholder { color: #A3AEC0; }
.ke-input:focus,
.ke-select:focus,
.ke-textarea:focus {
  outline: 0;
  background: #fff;
  border-color: var(--ke-cyan);
  box-shadow: 0 0 0 3px rgba(0, 163, 224, .12);
}
.ke-textarea { min-height: 148px; resize: vertical; }
.ke-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A879B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m5.5 9 6.5 6.5L18.5 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.75rem;
}
.ke-input.is-invalid,
.ke-select.is-invalid,
.ke-textarea.is-invalid { border-color: #D93A5B; background: #FEF4F6; }
.ke-error { display: block; font-size: .8rem; color: #D93A5B; margin-top: .4rem; }

/* Honeypot — visually and programmatically hidden from humans */
.ke-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ke-consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .88rem; }
.ke-consent input { margin-top: .3rem; accent-color: var(--ke-cyan); width: 17px; height: 17px; flex: 0 0 auto; }

.ke-alert {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: var(--ke-radius);
  font-size: .93rem;
  margin-bottom: 1.5rem;
}
.ke-alert--ok   { background: #E9F8F0; border: 1px solid #B9E6CE; color: #17694A; }
.ke-alert--err  { background: #FDF0F3; border: 1px solid #F4C4CF; color: #A32340; }
.ke-alert .ke-icon { flex: 0 0 auto; margin-top: .15rem; }

/* Button loading state */
.ke-btn.is-loading { pointer-events: none; opacity: .72; }
.ke-btn.is-loading .ke-btn__label { visibility: hidden; }
.ke-btn.is-loading::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 17px; height: 17px; margin: -9px 0 0 -9px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ke-spin .7s linear infinite;
}
@keyframes ke-spin { to { transform: rotate(360deg); } }

/* Contact info tile */
.ke-info-tile {
  display: flex; gap: 1.1rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--ke-line);
  border-radius: var(--ke-radius);
  height: 100%;
  transition: border-color .35s var(--ke-ease), transform .35s var(--ke-ease);
}
.ke-info-tile:hover { border-color: var(--ke-cyan); transform: translateY(-3px); }
.ke-info-tile .ke-icon { color: var(--ke-cyan); flex: 0 0 auto; margin-top: .15rem; }
.ke-info-tile h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ke-muted); margin-bottom: .4rem; font-weight: 700; }
.ke-info-tile p { font-size: .96rem; color: var(--ke-navy-ink); margin: 0; line-height: 1.6; }

/* ==========================================================================
   12. MOTION & REVEAL
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ke-ease-out), transform .8s var(--ke-ease-out);
  transition-delay: var(--ke-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="fade"]  { transform: none; }
[data-reveal="scale"] { transform: scale(.965); }
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* Line that draws itself in */
[data-reveal-line] { transform: scaleX(0); transform-origin: left center; transition: transform 1s var(--ke-ease-out); }
[data-reveal-line].is-revealed { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   13. RESPONSIVE
   ========================================================================== */
@media (max-width: 1199.98px) {
  .ke-nav__link { padding: .7rem .7rem; font-size: .8rem; }
  .ke-navbar__phone { display: none; }
}

@media (max-width: 991.98px) {
  .ke-nav, .ke-navbar__cta .ke-btn { display: none; }
  .ke-burger { display: block; }
  .ke-topbar { display: none; }
  .ke-hero::after { display: none; }
  .ke-hero__media { clip-path: none; margin-top: 2.5rem; }
  .ke-hero__media::before { display: none; }
  .ke-trust__grid { grid-template-columns: repeat(2, 1fr); }
  .ke-trust__item:nth-child(2) { border-right: 0; }
  .ke-trust__item:nth-child(1), .ke-trust__item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .ke-why { border-left: 0; border-top: 1px solid var(--ke-line); padding: 1.75rem 0; }
  .ke-index { font-size: 3.5rem; }
  /* Smaller brackets, and pulled closer in so they stay inside the column
     padding at tablet widths where the container has little side slack. */
  .ke-frame::before, .ke-frame::after { width: 38px; height: 38px; }
  .ke-frame::before { top: -6px; left: -6px; }
  .ke-frame::after  { bottom: -6px; right: -6px; }
  /* Was right:-14px, which poked past the container on narrow tablets. */
  .ke-stat-tile { right: 0; bottom: -10px; }
}

/* --------------------------------------------------------------------------
   Bootstrap gutter overflow — the real cause of the mobile side-scroll.

   `.container` pads 12px per side (half of its own 1.5rem gutter), but a row
   carrying `.g-5` sets --bs-gutter-x to 3rem, giving it -24px margins. Below
   576px the container is full-width with no slack, so each `.g-5` row bled
   12px past the viewport on both sides.

   Normalising the horizontal gutter to 1.5rem on small screens makes the
   -12px row margin exactly cancel the 12px container padding. --bs-gutter-y
   is untouched, so vertical spacing between stacked columns stays generous.
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .row.g-5,  .row.gx-5  { --bs-gutter-x: 1.5rem; }
  .row.g-xl-5, .row.gx-xl-5,
  .row.g-lg-5, .row.gx-lg-5,
  .row.g-md-5, .row.gx-md-5 { --bs-gutter-x: 1.5rem; }
}

@media (max-width: 767.98px) {
  :root { --ke-section-y: 3.75rem; }

  /* Decorative corner brackets sat 10px outside their frame; pull them in so
     they cannot contribute to document width on a full-bleed container. */
  .ke-frame::before { top: -5px; left: -5px; }
  .ke-frame::after  { bottom: -5px; right: -5px; }

  /* Give the horizontal rails a smaller minimum so a card fits a 320px screen
     without the rail itself forcing a wider layout. */
  .ke-rail { grid-auto-columns: minmax(255px, 1fr); gap: 1rem; }
  .ke-trust__grid { grid-template-columns: 1fr; }
  .ke-trust__item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .ke-trust__item:last-child { border-bottom: 0; }
  .ke-stat-tile { position: static; margin-top: 1rem; width: 100%; }
  .ke-hero__actions .ke-btn { width: 100%; justify-content: center; }
  .ke-cta__actions .ke-btn { width: 100%; justify-content: center; }
  .ke-index { display: none; }
  .ke-ph::after { font-size: .6rem; padding: .3rem .55rem; }
}

/* ==========================================================================
   14. INNER-PAGE COMPONENTS
   14.1 Milestone timeline        14.6 Vacancy rows
   14.2 Sticky sub-navigation     14.7 Split content rows
   14.3 Filter bar                14.8 Value pills / footprint list
   14.4 Leadership cards          14.9 Accordion
   14.5 Project modal
   ========================================================================== */

/* --- 14.1 Milestone timeline ---------------------------------------------- */
.ke-timeline { position: relative; padding-left: 2.5rem; }
.ke-timeline::before {
  content: '';
  position: absolute; left: 7px; top: .6rem; bottom: .6rem;
  width: 1px; background: var(--ke-line);
}
.ke-timeline__item { position: relative; padding-bottom: 2.15rem; }
.ke-timeline__item:last-child { padding-bottom: 0; }
.ke-timeline__item::before {
  content: '';
  position: absolute; left: -2.5rem; top: .5rem;
  width: 15px; height: 15px;
  background: #fff;
  border: 2px solid var(--ke-line);
  border-radius: 50%;
  transition: border-color .4s var(--ke-ease), background .4s var(--ke-ease), transform .4s var(--ke-ease);
}
.ke-timeline__item:hover::before { border-color: var(--ke-cyan); transform: scale(1.18); }
.ke-timeline__item.is-current::before { border-color: var(--ke-cyan); background: var(--ke-cyan); box-shadow: 0 0 0 5px rgba(0,163,224,.16); }
.ke-timeline__year {
  display: block;
  font-family: var(--ke-font-display);
  font-size: 1.05rem; font-weight: 800; letter-spacing: .02em;
  color: var(--ke-navy); margin-bottom: .3rem;
}
.ke-timeline__item.is-current .ke-timeline__year { color: var(--ke-cyan-deep); }
.ke-timeline__text { font-size: .96rem; margin: 0; }

/* --- 14.2 Sticky sub-navigation ------------------------------------------- */
/* Sits directly beneath the sticky header. --ke-header-h is measured in JS,
   so this stays correct as the header shrinks on scroll and across breakpoints
   (the top bar is hidden below 992px). */
.ke-subnav {
  position: sticky;
  top: var(--ke-header-h);
  z-index: 1020;                 /* below the header (1030), above page content */
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--ke-line);
  /* No transition on `top`: a ResizeObserver updates --ke-header-h every frame
     while the header animates its height, so an easing here would make the
     sub-nav lag ~350ms behind and visibly detach. */
}
.ke-subnav__list {
  display: flex; align-items: center; gap: .35rem;
  list-style: none; margin: 0; padding: 0;
  /* Same rule as .ke-rail: pin overflow-y so it cannot compute to `auto`
     and introduce a vertical scrollbar on the chip row. */
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.ke-subnav__list::-webkit-scrollbar { display: none; }
.ke-subnav__list a {
  display: block; position: relative;
  padding: 1.15rem .95rem;
  font-family: var(--ke-font-display);
  font-size: .82rem; font-weight: 600; white-space: nowrap;
  color: var(--ke-muted);
  transition: color .3s var(--ke-ease);
}
.ke-subnav__list a::after {
  content: '';
  position: absolute; left: .95rem; right: .95rem; bottom: 0; height: 2px;
  background: var(--ke-cyan);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .38s var(--ke-ease-out);
}
.ke-subnav__list a:hover { color: var(--ke-navy-ink); }
.ke-subnav__list a.is-active { color: var(--ke-navy); }
.ke-subnav__list a.is-active::after,
.ke-subnav__list a:hover::after { transform: scaleX(1); }

/* --- 14.3 Filter bar ------------------------------------------------------ */
.ke-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.ke-filter {
  position: relative;
  background: #fff;
  border: 1px solid var(--ke-line);
  border-radius: var(--ke-radius);
  padding: .62rem 1.1rem;
  font-family: var(--ke-font-display);
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  color: var(--ke-body);
  cursor: pointer;
  transition: color .3s var(--ke-ease), border-color .3s var(--ke-ease), background .3s var(--ke-ease);
}
.ke-filter:hover { border-color: #C6D2E4; color: var(--ke-navy-ink); }
.ke-filter.is-active { background: var(--ke-navy); border-color: var(--ke-navy); color: #fff; }
.ke-filter__count {
  display: inline-block; margin-left: .45rem;
  font-size: .68rem; color: var(--ke-muted);
}
.ke-filter.is-active .ke-filter__count { color: rgba(255,255,255,.62); }

.ke-filter-label {
  font-family: var(--ke-font-display);
  font-size: .7rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ke-muted);
  margin-bottom: .8rem; display: block;
}

/* Grid item hide/show with a soft transition */
.ke-grid-item { transition: opacity .35s var(--ke-ease), transform .35s var(--ke-ease); }
.ke-grid-item.is-hidden { display: none; }

.ke-empty-state {
  padding: 3.5rem 1.5rem; text-align: center;
  border: 1px dashed var(--ke-line); border-radius: var(--ke-radius);
  color: var(--ke-muted);
}

/* --- 14.4 Leadership cards ------------------------------------------------ */
.ke-person {
  position: relative;
  background: #fff;
  border: 1px solid var(--ke-line);
  border-radius: var(--ke-radius);
  overflow: hidden;
  height: 100%;
  transition: transform .45s var(--ke-ease), box-shadow .45s var(--ke-ease), border-color .45s var(--ke-ease);
}
.ke-person:hover { transform: translateY(-6px); box-shadow: var(--ke-shadow); border-color: #D3DCEA; }
.ke-person__media { position: relative; overflow: hidden; background: var(--ke-paper-2); }
.ke-person__media .ke-ph,
.ke-person__media .ke-img { border: 0; border-radius: 0; transition: transform .8s var(--ke-ease-out); }
.ke-person:hover .ke-person__media .ke-img { transform: scale(1.04); }
.ke-person__body { padding: 1.35rem 1.4rem 1.5rem; border-top: 3px solid transparent; transition: border-color .4s var(--ke-ease); }
.ke-person:hover .ke-person__body { border-top-color: var(--ke-cyan); }
.ke-person__name { font-size: 1.02rem; margin-bottom: .25rem; line-height: 1.35; }
.ke-person__role {
  font-family: var(--ke-font-display);
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ke-cyan-deep);
}

/* --- 14.5 Project modal --------------------------------------------------- */
.ke-modal {
  position: fixed; inset: 0; z-index: 1090;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ke-ease), visibility .35s;
}
.ke-modal.is-open { opacity: 1; visibility: visible; }
.ke-modal__backdrop { position: absolute; inset: 0; background: rgba(10,15,58,.62); backdrop-filter: blur(3px); }
.ke-modal__dialog {
  position: relative;
  width: min(940px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--ke-radius-lg);
  box-shadow: var(--ke-shadow-lg);
  transform: translateY(24px) scale(.98);
  transition: transform .45s var(--ke-ease-out);
}
.ke-modal.is-open .ke-modal__dialog { transform: translateY(0) scale(1); }
.ke-modal__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 5;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--ke-line); border-radius: var(--ke-radius);
  font-size: 1.4rem; line-height: 1; color: var(--ke-navy); cursor: pointer;
  transition: background .3s var(--ke-ease), color .3s var(--ke-ease);
}
.ke-modal__close:hover { background: var(--ke-navy); color: #fff; border-color: var(--ke-navy); }
/* Modal hero image — reuses the project card photo, cropped to a wider frame.
   height:auto (not the 100% that .ke-img uses) so aspect-ratio governs it. */
.ke-modal__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 940 / 520;
  object-fit: cover;
  border-radius: var(--ke-radius-lg) var(--ke-radius-lg) 0 0;
}
.ke-modal__img[hidden] { display: none; }
.ke-modal__media .ke-ph[hidden] { display: none; }

.ke-modal__body { padding: clamp(1.5rem, 3vw, 2.5rem); }
.ke-modal__meta { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.ke-modal__meta li {
  display: flex; gap: 1rem; padding: .8rem 0;
  border-bottom: 1px solid var(--ke-line-soft);
  font-size: .93rem;
}
.ke-modal__meta dt, .ke-modal__meta .k {
  flex: 0 0 38%;
  font-family: var(--ke-font-display);
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ke-muted);
}
.ke-modal__meta .v { color: var(--ke-navy-ink); }

/* --- 14.6 Vacancy rows ---------------------------------------------------- */
.ke-vacancy {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: #fff;
  border: 1px solid var(--ke-line);
  border-radius: var(--ke-radius);
  border-left: 3px solid transparent;
  margin-bottom: .85rem;
  transition: border-color .35s var(--ke-ease), transform .35s var(--ke-ease), box-shadow .35s var(--ke-ease);
}
.ke-vacancy:hover { border-left-color: var(--ke-cyan); transform: translateX(4px); box-shadow: var(--ke-shadow-sm); }
.ke-vacancy__main { flex: 1 1 260px; }
.ke-vacancy__title { font-size: 1.05rem; margin-bottom: .4rem; }
.ke-vacancy__meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .84rem; color: var(--ke-muted); }
.ke-vacancy__meta span { display: inline-flex; align-items: center; gap: .4rem; }
.ke-vacancy__meta .ke-icon { width: 14px; height: 14px; color: var(--ke-cyan); }

/* --- 14.7 Split content rows ---------------------------------------------- */
.ke-split { padding: clamp(3rem, 5vw, 4.5rem) 0; border-bottom: 1px solid var(--ke-line); }
.ke-split:last-child { border-bottom: 0; }
.ke-split__eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--ke-font-display); font-size: .7rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ke-cyan-deep);
  margin-bottom: 1rem;
}
.ke-split__icon {
  width: 54px; height: 54px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ke-cyan-soft); color: var(--ke-navy);
  border-radius: var(--ke-radius); margin-bottom: 1.35rem;
}

/* --- 14.8 Value pills & footprint list ------------------------------------ */
.ke-pills { display: flex; flex-wrap: wrap; gap: .55rem; }
.ke-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.15rem;
  background: #fff;
  border: 1px solid var(--ke-line);
  border-radius: 100px;
  font-family: var(--ke-font-display);
  font-size: .82rem; font-weight: 600; color: var(--ke-navy-ink);
  transition: border-color .35s var(--ke-ease), transform .35s var(--ke-ease);
}
.ke-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ke-cyan); }
.ke-pill:hover { border-color: var(--ke-cyan); transform: translateY(-2px); }

.ke-footprint { list-style: none; margin: 0; padding: 0; }
.ke-footprint li {
  display: flex; align-items: baseline; gap: 1rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--ke-line);
}
.ke-footprint li:last-child { border-bottom: 0; }
.ke-footprint__country {
  flex: 0 0 auto;
  font-family: var(--ke-font-display); font-weight: 700; font-size: .98rem;
  color: var(--ke-navy-ink);
}
.ke-footprint__note { font-size: .87rem; color: var(--ke-muted); margin-left: auto; text-align: right; }
.ke-footprint li.is-current .ke-footprint__country { color: var(--ke-cyan-deep); }
.ke-footprint li.is-current .ke-footprint__note { color: var(--ke-navy); }

/* --- 14.9 Accordion ------------------------------------------------------- */
.ke-acc { border-top: 1px solid var(--ke-line); }
.ke-acc__item { border-bottom: 1px solid var(--ke-line); }
.ke-acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0;
  background: transparent; border: 0; text-align: left; cursor: pointer;
  font-family: var(--ke-font-display); font-size: 1.02rem; font-weight: 700;
  color: var(--ke-navy-ink);
  transition: color .3s var(--ke-ease);
}
.ke-acc__btn:hover { color: var(--ke-cyan-deep); }
.ke-acc__btn .ke-icon { flex: 0 0 auto; color: var(--ke-cyan); transition: transform .35s var(--ke-ease); }
.ke-acc__btn[aria-expanded="true"] .ke-icon { transform: rotate(180deg); }
.ke-acc__panel { overflow: hidden; height: 0; transition: height .4s var(--ke-ease-out); }
.ke-acc__inner { padding-bottom: 1.5rem; }

/* --- Quote / statement band ------------------------------------------------ */
.ke-statement {
  position: relative;
  padding: clamp(2.25rem, 4vw, 3.25rem);
  background: #fff;
  border: 1px solid var(--ke-line);
  border-left: 4px solid var(--ke-cyan);
  border-radius: var(--ke-radius);
}
.ke-statement .ke-icon { color: var(--ke-cyan-soft); position: absolute; top: 1.5rem; right: 1.75rem; width: 46px; height: 46px; }
.ke-statement p {
  font-family: var(--ke-font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.65; font-weight: 500; color: var(--ke-navy-ink);
  position: relative; z-index: 2;
}

@media (max-width: 991.98px) {
  /* --ke-header-h already tracks the shorter mobile header; no override needed. */
  .ke-subnav__list a { padding: 1rem .8rem; font-size: .78rem; }
  .ke-footprint li { flex-wrap: wrap; gap: .35rem; }
  .ke-footprint__note { margin-left: 0; text-align: left; flex: 1 1 100%; }
  .ke-modal__meta li { flex-direction: column; gap: .3rem; }
  .ke-modal__meta .k { flex: 1 1 auto; }
}

/* --- Print ---------------------------------------------------------------- */
@media print {
  .ke-header, .ke-footer, .ke-top, .ke-cta, .ke-hero__controls { display: none !important; }
  body { color: #000; }
}
