/* =====================================================================
   DEREC CONSULTING — Landing page
   Design system: Engineering navy · DEREC blue · Energy cyan
   Type: Barlow Condensed (display) + Inter (UI)
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* brand */
  --navy-950: #0A1F3C;   /* deepest — hero/footer */
  --navy-900: #0F2A52;   /* engineering navy */
  --navy-800: #143563;
  --blue-700: #045189;   /* DEREC blue */
  --blue-600: #2462A9;   /* technical blue */
  --cyan-500: #29ABC2;   /* energy cyan */
  --sky-400:  #45B4E8;   /* bright accent glow */
  --ice-050:  #F3F6FA;   /* light background */
  --ice-100:  #ECF1F8;
  --ice-200:  #E1E9F3;   /* borders */
  --ink:      #142D4F;   /* main text */
  --steel:    #66758A;   /* secondary text */
  --white:    #FFFFFF;

  /* semantic */
  --bg: var(--white);
  --text: var(--ink);
  --muted: var(--steel);
  --line: var(--ice-200);

  /* type */
  --display: "Barlow Condensed", "Roboto Condensed", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* rhythm */
  --radius: 6px;
  --radius-sm: 4px;
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(72px, 9vw, 132px);

  /* fx */
  --shadow-sm: 0 1px 2px rgba(15,42,82,.05), 0 6px 20px rgba(15,42,82,.06);
  --shadow-md: 0 12px 40px rgba(15,42,82,.12);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: clamp(16px, 1.05vw, 18px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan-500); outline-offset: 3px; border-radius: 3px; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-y); }
.section--ice { background: var(--ice-050); }
.section--navy { background: var(--navy-950); color: #fff; overflow: hidden; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(12px, .95vw, 14px);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cyan-500);
  margin-bottom: 18px;
}
.eyebrow--line { display: inline-flex; align-items: center; gap: 14px; }
.eyebrow--line::before {
  content: ""; width: 34px; height: 2px; background: var(--cyan-500); display: inline-block;
}
.section--navy .eyebrow { color: var(--sky-400); }

.section__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__head--split {
  max-width: none; display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(24px, 4vw, 60px); align-items: end;
}
.section__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section--navy .section__title { color: #fff; }
.section__lead {
  margin-top: 20px; color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); max-width: 62ch;
}
.section--navy .section__lead { color: #B9C7DC; }
.section--navy .section__lead strong { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue-700);
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--display); font-weight: 600; letter-spacing: .04em;
  font-size: 15px; text-transform: uppercase;
  padding: 13px 26px; border-radius: var(--radius);
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  will-change: transform;
}
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--primary {
  background: var(--blue-700); color: #fff;
  box-shadow: 0 8px 22px rgba(4,81,137,.28);
}
.btn--primary:hover { background: var(--cyan-500); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(41,171,194,.35); }
.btn--ghost {
  border: 1.5px solid rgba(255,255,255,.28); color: #fff; background: transparent;
}
.section:not(.section--navy) .btn--ghost, .hero .btn--ghost { color: #fff; }
.btn--ghost:hover { border-color: var(--cyan-500); color: var(--cyan-500); transform: translateY(-2px); }
/* ghost on light surfaces */
.section--ice .btn--ghost, .section:not(.section--navy):not(.hero) .btn--ghost { color: var(--ink); border-color: var(--line); }
.section--ice .btn--ghost:hover { color: var(--blue-700); border-color: var(--blue-700); }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
  padding-block: 20px;
}
.nav__inner { display: flex; align-items: center; gap: 24px; }
.nav__brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.nav__mark { color: #fff; display: grid; place-items: center; transition: color .3s var(--ease); }
.nav__mark svg { transition: transform .6s var(--ease); }
.nav__brand:hover .nav__mark svg { transform: rotate(58deg); }
/* whole logo mark (circle + arrow) is white on dark backgrounds (hero header + footer) */
.nav__mark .nav__arrow { fill: #fff; }
.nav__word { display: grid; line-height: 1; }
.nav__word-main { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .06em; }
.nav__word-sub { font-family: var(--display); font-weight: 400; font-size: 12px; letter-spacing: .34em; text-transform: uppercase; opacity: .8; margin-top: 2px; }

.nav__links { display: flex; gap: clamp(14px, 2vw, 30px); margin-left: auto; }
.nav__links a {
  font-family: var(--display); font-weight: 500; font-size: 16px; letter-spacing: .03em;
  color: rgba(255,255,255,.85); position: relative; padding: 4px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--cyan-500); transition: width .3s var(--ease);
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: 0; }

/* scrolled state */
.nav.is-scrolled {
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(15,42,82,.08);
  padding-block: 12px;
}
.nav.is-scrolled .nav__brand,
.nav.is-scrolled .nav__links a { color: var(--ink); }
.nav.is-scrolled .nav__mark { color: var(--blue-700); }
.nav.is-scrolled .nav__mark .nav__arrow { fill: var(--blue-700); }
.nav.is-scrolled .nav__links a:hover { color: var(--blue-700); }
.nav.is-scrolled .nav__burger span { background: var(--ink); }

.nav__burger { display: none; width: 44px; height: 44px; margin-left: auto; flex-direction: column; gap: 6px; align-items: center; justify-content: center; }
.nav__burger span { width: 24px; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav__mobile { display: none; }

/* language switch */
.nav__lang {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .08em;
}
.nav__lang button {
  color: rgba(255,255,255,.55); padding: 6px 7px; min-width: 34px; min-height: 38px;
  border-radius: var(--radius-sm); line-height: 1; transition: color .25s var(--ease), background .25s var(--ease);
}
.nav__lang button.is-active { color: #fff; }
.nav__lang button:hover { color: var(--cyan-500); }
.nav__lang span { color: rgba(255,255,255,.3); }
.nav.is-scrolled .nav__lang button { color: var(--steel); }
.nav.is-scrolled .nav__lang button.is-active { color: var(--ink); }
.nav.is-scrolled .nav__lang button:hover { color: var(--blue-700); }
.nav.is-scrolled .nav__lang span { color: var(--line); }

/* =====================================================================
   Backgrounds — signature rings + scanline grid
   ===================================================================== */
.hero__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero__bg--soft { opacity: .5; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 1px, transparent 1px 6px);
  mask-image: radial-gradient(120% 90% at 70% 0%, #000 40%, transparent 90%);
}
.ring {
  position: absolute; border-radius: 50%; border: 1.5px solid rgba(69,180,232,.16);
}
.ring--a { width: 620px; height: 620px; top: -220px; right: -160px; border-width: 2px; }
.ring--b { width: 320px; height: 320px; top: 40px; left: -120px; border-color: rgba(69,180,232,.22); }
.ring--c { width: 480px; height: 480px; bottom: -260px; right: 8%; border-color: rgba(41,171,194,.14); }
.ring--d { width: 560px; height: 560px; top: -180px; left: -160px; }
.ring--e { width: 500px; height: 500px; bottom: -240px; right: -120px; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  background: radial-gradient(120% 120% at 78% -10%, #163a6b 0%, var(--navy-900) 42%, var(--navy-950) 100%);
  color: #fff;
  padding-top: clamp(120px, 16vw, 180px);
  padding-bottom: clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 72px);
  align-items: center;
  min-height: min(72vh, 640px);
}
.hero__title {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .98; letter-spacing: -0.015em; margin-top: 10px;
  max-width: 15ch;
}
.hero__title em { font-style: normal; font-weight: 600; color: var(--cyan-500); }
.hero__lead { margin-top: 26px; color: #C4D2E6; font-size: clamp(16px, 1.4vw, 19px); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(3, auto); gap: clamp(20px, 4vw, 48px);
  margin-top: clamp(40px, 5vw, 56px); padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.stat__num {
  font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1; color: #fff; letter-spacing: -.01em;
}
.stat__label { font-size: 13.5px; color: #93A6C4; margin-top: 8px; letter-spacing: .02em; }

/* hero orbit visual */
.hero__visual { position: relative; display: grid; place-items: center; }
.orbit { width: min(100%, 460px); overflow: visible; }
.orbit__guide { fill: none; stroke: rgba(255,255,255,.10); stroke-width: 1; }
.orbit__ring { fill: none; stroke: rgba(255,255,255,.9); stroke-width: 6; stroke-linecap: round; }
.orbit__pulse {
  fill: none; stroke: var(--cyan-500); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 40 777; transform-origin: 210px 210px;
  animation: orbit-pulse 4.5s linear infinite;
  filter: drop-shadow(0 0 6px rgba(41,171,194,.8));
}
@keyframes orbit-pulse { to { stroke-dashoffset: -817; } }
.orbit__spokes line { stroke: rgba(69,180,232,.4); stroke-width: 1.5; stroke-dasharray: 4 5; animation: dash-move 1s linear infinite; }
@keyframes dash-move { to { stroke-dashoffset: -18; } }
.orbit__hub { fill: rgba(41,171,194,.14); stroke: var(--cyan-500); stroke-width: 1.5; }
.orbit__hub-label { font-family: var(--display); font-weight: 600; font-size: 16px; fill: #fff; letter-spacing: .1em; }
.orbit__node circle {
  fill: #10305c; stroke: rgba(69,180,232,.6); stroke-width: 1.5;
  animation: node-float 4s ease-in-out infinite; animation-delay: var(--d);
  transform-box: fill-box; transform-origin: center;
}
.orbit__node text { font-family: var(--display); font-weight: 600; font-size: 15px; fill: #DCE9F7; letter-spacing: .04em; }
@keyframes node-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.3); border-radius: 14px;
  display: grid; justify-items: center; padding-top: 7px;
}
.hero__scroll span { width: 3px; height: 8px; background: var(--cyan-500); border-radius: 2px; animation: scroll-dot 1.8s var(--ease) infinite; }
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(-2px); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translateY(12px); } }

/* DEREC acronym strip */
.acronym {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: space-between;
  margin-top: clamp(30px, 5vw, 50px); padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-family: var(--display); font-weight: 400; letter-spacing: .18em; text-transform: uppercase;
  color: #8FA4C4; font-size: clamp(15px, 1.4vw, 19px);
  text-align: center; width: 100%;
}
.acronym b { color: var(--cyan-500); font-weight: 700; }

/* =====================================================================
   EXPERTISE — pillars
   ===================================================================== */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.pillar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.pillar:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(41,171,194,.5); }
.pillar__media { position: relative; aspect-ratio: 16/11; overflow: hidden; background: var(--ice-100); }
.pillar__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pillar:hover .pillar__media img { transform: scale(1.05); }
.pillar__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,31,60,.28)); }
.pillar__body { padding: 26px 26px 30px; position: relative; }
.pillar__index { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .2em; color: var(--cyan-500); }
.pillar__title { font-family: var(--display); font-weight: 600; font-size: clamp(23px, 2.2vw, 28px); margin: 4px 0 12px; color: var(--ink); }
.pillar__body p { color: var(--muted); font-size: 15.5px; }

/* =====================================================================
   SERVICES
   ===================================================================== */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service {
  background: #fff; padding: clamp(24px, 3vw, 36px); position: relative;
  transition: background .3s var(--ease);
}
.service::before { content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 0; background: var(--cyan-500); transition: height .35s var(--ease); }
.service:hover { background: var(--ice-050); }
.service:hover::before { height: 100%; }
.service__no { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .18em; color: var(--blue-600); opacity: .55; }
.service h3 { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 1.8vw, 25px); color: var(--ink); margin: 8px 0 8px; }
.service p { color: var(--muted); font-size: 15px; }

/* =====================================================================
   HYBRID DIAGRAM
   ===================================================================== */
.diagram { display: grid; justify-items: center; gap: 0; }
.diagram__row { display: flex; gap: clamp(12px, 2vw, 22px); justify-content: center; flex-wrap: wrap; }
.node {
  font-family: var(--display); font-weight: 500; letter-spacing: .02em;
  font-size: clamp(14px, 1.3vw, 17px);
  color: #DCE9F7; background: rgba(255,255,255,.04);
  border: 1px solid rgba(122,160,208,.35);
  border-radius: var(--radius-sm); padding: 14px 22px; text-align: center;
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
  min-width: 120px;
}
.node:hover { border-color: var(--cyan-500); background: rgba(41,171,194,.12); color: #fff; transform: translateY(-2px); }
.node--src { border-color: rgba(69,180,232,.5); }
.node--bus { min-width: min(560px, 84vw); background: linear-gradient(90deg, rgba(4,81,137,.35), rgba(41,171,194,.25)); border-color: var(--cyan-500); color: #fff; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.node--load { border-color: rgba(41,171,194,.5); background: rgba(41,171,194,.08); }
.node--ems { background: rgba(255,255,255,.06); border-style: dashed; border-color: rgba(122,160,208,.5); }

.flow { display: block; width: 2px; height: clamp(26px, 4vw, 40px); position: relative; background: rgba(122,160,208,.28); }
.flow::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, var(--cyan-500), transparent);
  background-size: 100% 220%;
  animation: flow-down 1.6s linear infinite;
}
@keyframes flow-down { 0% { background-position: 0 -120%; } 100% { background-position: 0 120%; } }
.diagram__branch { display: flex; gap: clamp(120px, 26vw, 220px); }
.diagram__branch .flow { height: clamp(22px, 3vw, 34px); }

/* =====================================================================
   POWER QUALITY
   ===================================================================== */
.pq { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.pq__card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 3.4vw, 44px);
  background: #fff; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pq__card::before { content:""; position:absolute; inset:0 auto auto 0; width:100%; height:3px; background: linear-gradient(90deg, var(--blue-700), var(--cyan-500)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.pq__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pq__card:hover::before { transform: scaleX(1); }
.pq__num { font-family: var(--display); font-weight: 700; font-size: clamp(52px, 7vw, 82px); line-height: 1; color: var(--blue-700); letter-spacing: -.02em; }
.pq__card h3 { font-family: var(--display); font-weight: 600; font-size: clamp(19px, 1.7vw, 23px); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin: 14px 0 8px; }
.pq__card p { color: var(--muted); font-size: 15px; }
.pq__disclaimer { margin-top: 26px; font-size: 13.5px; color: var(--muted); font-style: italic; max-width: 70ch; }

/* =====================================================================
   TRACKS (capacity bars)
   ===================================================================== */
.tracks { display: grid; gap: clamp(20px, 2.6vw, 30px); }
.track { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-sm); }
.track__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.track__head h3 { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2vw, 28px); color: var(--ink); }
.track__range { font-family: var(--display); font-weight: 600; font-size: clamp(18px, 1.8vw, 24px); color: var(--blue-700); letter-spacing: .01em; }
.track__bar { height: 12px; border-radius: 20px; background: var(--ice-100); overflow: hidden; margin: 18px 0 16px; }
.track__fill {
  display: block; height: 100%; width: 0; border-radius: 20px;
  background: linear-gradient(90deg, var(--blue-700), var(--cyan-500));
  transition: width 1.4s var(--ease);
}
.track.is-in .track__fill { width: var(--pct); }
.track__refs { display: flex; flex-wrap: wrap; gap: 8px; }
.track__refs li {
  font-family: var(--display); font-weight: 500; font-size: 14px; letter-spacing: .02em;
  color: var(--ink); background: var(--ice-050); border: 1px solid var(--line);
  border-radius: 40px; padding: 5px 14px;
}
.track__refs li:last-child { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }

/* =====================================================================
   PROJECTS
   ===================================================================== */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.project {
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 3vw, 40px);
  background: #fff; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.project::after { content:""; position:absolute; right:-40px; bottom:-40px; width:160px; height:160px; border-radius:50%; border:1.5px solid rgba(41,171,194,.14); transition: transform .5s var(--ease); }
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(41,171,194,.4); }
.project:hover::after { transform: scale(1.15); }
.project__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.project__tags span { font-family: var(--display); font-weight: 600; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 40px; background: var(--ice-050); color: var(--blue-700); border: 1px solid var(--line); }
.project__tags span:first-child { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.project h3 { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.4vw, 32px); color: var(--ink); line-height: 1.05; margin-bottom: 12px; }
.project > p { color: var(--muted); font-size: 15.5px; position: relative; z-index: 1; }
.project__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); position: relative; z-index: 1; }
.project__meta dt { font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan-500); }
.project__meta dd { font-size: 14.5px; color: var(--ink); margin-top: 4px; }

/* =====================================================================
   WHY
   ===================================================================== */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.2vw, 26px); }
.why__item { padding: clamp(24px, 2.6vw, 32px) 0 0; border-top: 2px solid rgba(255,255,255,.14); position: relative; transition: border-color .35s var(--ease); }
.why__item:hover { border-color: var(--cyan-500); }
.why__no { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3vw, 40px); color: var(--sky-400); display: block; margin-bottom: 12px; }
.why__item h3 { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 1.9vw, 25px); color: #fff; margin-bottom: 10px; }
.why__item p { color: #AFC0D9; font-size: 15px; }
/* titles-only variant — centered and larger */
.why--titles .why__item { text-align: center; display: flex; flex-direction: column; align-items: center; padding-top: clamp(28px, 3vw, 40px); }
.why--titles .why__no { margin-bottom: 10px; }
.why--titles .why__item h3 { font-size: clamp(24px, 2.8vw, 36px); margin-bottom: 0; white-space: nowrap; }

/* Expertise — single-system capacities band */
.capbar__title { font-family: var(--display); font-weight: 500; font-size: clamp(19px, 1.9vw, 24px); color: var(--ink); margin-top: clamp(28px, 3.2vw, 40px); }
.capbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); margin-top: 18px; list-style: none; }
.capbar__item { display: flex; flex-direction: column; gap: 4px; padding: clamp(16px, 1.8vw, 22px) clamp(18px, 2vw, 24px); background: var(--ice-050); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.capbar__item:hover { border-color: var(--cyan-500); transform: translateY(-3px); }
.capbar__num { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); color: var(--blue-700); letter-spacing: .01em; }
.capbar__label { color: var(--muted); font-size: 15px; }
@media (max-width: 640px) { .capbar { grid-template-columns: 1fr; } }

/* =====================================================================
   ENGINEERING
   ===================================================================== */
.eng { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.eng__media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); position: relative; }
.eng__media::before { content:""; position:absolute; left:0; top:0; width:52px; height:52px; border-left:2px solid var(--cyan-500); border-top:2px solid var(--cyan-500); z-index:2; }
.eng__media::after { content:""; position:absolute; right:0; bottom:0; width:52px; height:52px; border-right:2px solid var(--cyan-500); border-bottom:2px solid var(--cyan-500); z-index:2; }
.eng__media img { width: 100%; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: .02em;
  padding: 9px 16px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); color: var(--ink);
  transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.chips li:hover { border-color: var(--cyan-500); color: var(--blue-700); transform: translateY(-2px); }
.toolchain { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.toolchain__label { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan-500); margin-bottom: 16px; }
.toolchain__list { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.toolchain__list li { font-family: var(--display); font-weight: 600; font-size: clamp(16px, 1.6vw, 20px); color: var(--steel); letter-spacing: .02em; transition: color .25s var(--ease); }
.toolchain__list li:hover { color: var(--ink); }

/* =====================================================================
   GROUP + MAP
   ===================================================================== */
.group { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.group__map { background: var(--navy-950); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); position: relative; overflow: hidden; }
.worldmap { width: 100%; height: auto; }
.worldmap__dots circle { fill: rgba(122,160,208,.35); }
.worldmap__link { stroke: var(--cyan-500); stroke-width: 11; stroke-dasharray: 34 28; opacity: .6; }
.pin__dot { fill: var(--cyan-500); }
.pin__pulse { fill: var(--cyan-500); transform-box: fill-box; transform-origin: center; animation: pin-pulse 3.8s ease-out infinite; }
@keyframes pin-pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(2.8); opacity: 0; } }
.worldmap__pin text { font-family: var(--display); font-weight: 600; font-size: 116px; fill: #fff; letter-spacing: .05em; paint-order: stroke; stroke: rgba(10,31,60,.65); stroke-width: 8px; }

.group__hubs { display: grid; gap: 18px; }
.hub { padding: clamp(22px, 2.6vw, 30px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; border-left: 3px solid var(--cyan-500); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.hub:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.hub__city { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan-500); }
.hub__co { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.4vw, 30px); color: var(--ink); margin: 6px 0 10px; }
.hub p:last-child { color: var(--muted); font-size: 15px; }

/* Partners */
.partners { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(40px, 5vw, 60px); border-top: 1px solid var(--line); text-align: center; }
.partners__title { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 3vw, 40px); color: var(--ink); }
.partners__text { color: var(--muted); max-width: 60ch; margin: 14px auto 30px; }
.partners__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.partners__grid li {
  font-family: var(--display); font-weight: 500; font-size: clamp(15px, 1.5vw, 18px);
  padding: 12px 22px; border: 1px solid var(--line); border-radius: 40px; color: var(--ink); background: var(--ice-050);
  transition: border-color .25s var(--ease), transform .25s var(--ease), color .25s var(--ease);
}
.partners__grid li:hover { border-color: var(--cyan-500); color: var(--blue-700); transform: translateY(-3px); }

/* =====================================================================
   FINAL CTA
   ===================================================================== */
.cta { position: relative; padding-block: clamp(80px, 10vw, 140px); background: radial-gradient(120% 120% at 50% 0%, #163a6b 0%, var(--navy-900) 45%, var(--navy-950) 100%); color: #fff; overflow: hidden; text-align: center; }
.cta__inner { position: relative; z-index: 1; max-width: 820px; }
.cta .eyebrow { justify-content: center; }
.cta__title { font-family: var(--display); font-weight: 300; font-size: clamp(34px, 5.5vw, 66px); line-height: 1.0; letter-spacing: -.015em; }
.cta__lead { margin: 22px auto 0; color: #C4D2E6; font-size: clamp(16px, 1.4vw, 19px); max-width: 52ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }
.cta__contact { margin-top: 30px; display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; color: #93A6C4; font-family: var(--display); font-size: clamp(16px, 1.6vw, 19px); letter-spacing: .04em; }
.cta__contact a { color: var(--cyan-500); }
.cta__contact a:hover { color: #fff; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: #071731; color: #B9C7DC; padding-block: clamp(48px, 6vw, 72px) 28px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: clamp(28px, 4vw, 60px); align-items: start; }
.footer__brand { display: flex; gap: 14px; align-items: center; }
.footer__brand .nav__mark { color: #fff; }
.footer__word { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .06em; color: #fff; }
.footer__word span { font-weight: 400; opacity: .7; }
.footer__tag { font-size: 14px; margin-top: 2px; color: #8399B8; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__nav a { font-family: var(--display); font-weight: 500; font-size: 16px; color: #B9C7DC; transition: color .25s var(--ease); }
.footer__nav a:hover { color: var(--cyan-500); }
.footer__contact { text-align: right; }
.footer__contact a { font-family: var(--display); font-weight: 600; font-size: 20px; color: #fff; }
.footer__contact a:hover { color: var(--cyan-500); }
.footer__contact p { font-size: 14px; margin-top: 6px; color: #8399B8; }
.footer__legal { margin-top: clamp(36px, 5vw, 56px); padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #7389AB; }

/* =====================================================================
   Scroll reveal
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
/* stagger children within a group */
.pillars .reveal.is-in { transition-delay: calc(var(--i, 0) * 90ms); }
.services .reveal.is-in { transition-delay: calc(var(--i, 0) * 55ms); }
.pq .reveal.is-in, .why .reveal.is-in, .projects .reveal.is-in { transition-delay: calc(var(--i, 0) * 90ms); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 360px; margin-inline: auto; }
  .section__head--split { grid-template-columns: 1fr; align-items: start; }
  .why { grid-template-columns: repeat(2, 1fr); }
  .eng, .group { grid-template-columns: 1fr; }
  .eng__side { order: -1; }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile { display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(8,22,45,.97); backdrop-filter: blur(14px); padding: 18px var(--gutter) 28px;
    display: grid; gap: 6px; box-shadow: 0 20px 40px rgba(0,0,0,.3);
    clip-path: inset(0 0 100% 0); transition: clip-path .35s var(--ease); }
  .nav__mobile:not([hidden]) { clip-path: inset(0 0 0 0); }
  .nav__mobile a { padding: 12px 4px; color: #fff; font-family: var(--display); font-weight: 500; font-size: 19px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav__mobile .btn { margin-top: 14px; justify-content: center; border-bottom: 0; }
  .nav.is-scrolled .nav__burger span { background: var(--ink); }

  .pillars, .services, .pq, .projects { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr; gap: 20px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__contact { text-align: left; }
  .diagram__branch { gap: clamp(60px, 20vw, 120px); }
}
@media (max-width: 560px) {
  .why { grid-template-columns: 1fr; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; justify-content: center; }
  .project__meta { grid-template-columns: 1fr; }
  .node--bus { min-width: 90vw; }
  .diagram__row--sources, .diagram__row--loads { flex-direction: row; }
}

/* =====================================================================
   Reduced motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .track__fill { transition: none; }
}

/* =====================================================================
   RESPONSIVE FINE-TUNING  (layered on top of the base breakpoints)
   ===================================================================== */
html { scroll-padding-top: 88px; }
:where(h1,h2,h3,p,li,a,dd,dt) { overflow-wrap: break-word; }
/* keep in-page anchors clear of the fixed nav for keyboard + no-JS */
[id] { scroll-margin-top: 84px; }
/* belt-and-braces against horizontal scroll from decorative rings */
html, body { max-width: 100%; overflow-x: hidden; }

/* Language switch sits at the far right next to the burger on mobile */
@media (max-width: 860px) {
  .nav__lang { margin-left: auto; }
  .nav__inner { gap: 12px; }
}

/* Wide desktops: hold a comfortable measure, don't let it sprawl */
@media (min-width: 1500px) {
  :root { --container: 1300px; }
}

/* Laptop / small desktop: ease nav crowding before the burger kicks in */
@media (max-width: 1024px) {
  .nav__links { gap: 16px; }
  .nav__links a { font-size: 15px; }
  .hero__visual { max-width: 400px; }
}

/* Tablet */
@media (max-width: 860px) {
  .services { grid-template-columns: 1fr; }
  .pillars  { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}

/* Large phone */
@media (max-width: 640px) {
  .section__head { margin-bottom: 34px; }
  .track__head { gap: 8px; }
  .track__range { font-size: 20px; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; justify-content: center; }
  .cta__contact { flex-direction: column; gap: 6px; }
  .cta__contact span[aria-hidden] { display: none; }
  .footer__legal { flex-direction: column; gap: 8px; }
}

/* Small phone — relax rigid min-widths so nothing clips */
@media (max-width: 440px) {
  :root { --gutter: 20px; }
  .node { min-width: 0; padding: 12px 16px; }
  .node--bus { min-width: 88vw; }
  .diagram__branch { gap: clamp(40px, 16vw, 90px); }
  .pillar__body, .project, .pq__card, .track { padding-left: 22px; padding-right: 22px; }
  .hero__stats .stat__num { font-size: 34px; }
  .partners__grid li { font-size: 14px; padding: 10px 16px; }
}

/* Very small — protect the nav bar */
@media (max-width: 380px) {
  .nav__word-sub { display: none; }
  .nav__lang button { min-width: 30px; padding: 6px 5px; }
  .hero__title { font-size: 38px; }
  .btn { padding: 12px 20px; font-size: 14px; }
}

/* Short landscape (phones held sideways) — don't force a tall hero */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { padding-top: 96px; }
  .hero__inner { min-height: auto; }
  .hero__scroll { display: none; }
  .hero__stats { margin-top: 28px; padding-top: 20px; }
}

/* Fine-grained pointer (mouse) gets richer hovers; coarse (touch) skips lift
   states that can feel sticky on tap */
@media (hover: none) {
  .pillar:hover, .project:hover, .pq__card:hover, .hub:hover { transform: none; }
}

/* =====================================================================
   SINGLE-LINE DIAGRAM (.sld) — responsive, grid-aligned, animated
   ===================================================================== */
.sld { --sld-gap: clamp(10px, 1.8vw, 20px); position: relative; max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.sld__flow { display: flex; flex-direction: column; align-items: stretch; position: relative; z-index: 1; }
.sld__aside { position: relative; z-index: 1; display: flex; justify-content: center; }
.sld__links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: 0; transition: opacity .6s var(--ease); }
.sld__links.is-ready { opacity: 1; }
.sld__links line { stroke: rgba(122,160,208,.5); stroke-width: 1.4; stroke-dasharray: 4 6; }
.sld__aside .sld-node--ems { width: auto; min-width: min(280px, 82vw); min-height: 64px; font-weight: 600; letter-spacing: .06em; }
@media (min-width: 781px) {
  .sld { grid-template-columns: minmax(0, 1fr) auto; gap: clamp(48px, 8vw, 120px); }
}
.sld__level { display: flex; justify-content: center; }
.sld__level--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sld-gap); }
.sld-node {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  font-family: var(--display); font-weight: 500; letter-spacing: .02em; font-size: clamp(14px, 1.25vw, 17px);
  color: #DCE9F7; background: rgba(255,255,255,.04); border: 1px solid rgba(122,160,208,.35);
  border-radius: var(--radius-sm); padding: 14px 20px; min-height: 52px; width: 100%;
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.sld-node:hover { border-color: var(--cyan-500); background: rgba(41,171,194,.12); color: #fff; transform: translateY(-2px); }
.sld__level:not(.sld__level--3) .sld-node { width: auto; min-width: min(420px, 82vw); }
.sld-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky-400); box-shadow: 0 0 8px rgba(69,180,232,.9); flex: none; }
.sld-node--src { border-color: rgba(69,180,232,.5); }
.sld-node--bus {
  min-width: min(560px, 84vw); background: linear-gradient(90deg, rgba(4,81,137,.4), rgba(41,171,194,.28));
  border-color: var(--cyan-500); color: #fff; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.sld-node--load { border-color: rgba(41,171,194,.5); background: rgba(41,171,194,.08); }
.sld-node--ems { background: rgba(255,255,255,.06); border-style: dashed; border-color: rgba(122,160,208,.55); }

.sld__wire, .sld__drop { width: 2px; margin: 0 auto; position: relative; background: rgba(122,160,208,.26); overflow: hidden; }
.sld__wire { height: clamp(22px, 3.4vw, 34px); }
.sld__drop { height: clamp(18px, 2.8vw, 28px); }
.sld__fan { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sld-gap); }
.sld__pulse { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, var(--cyan-500), transparent); background-size: 100% 240%; animation: flow-down 1.7s linear infinite; }
.sld__fan .sld__drop:nth-child(2) .sld__pulse { animation-delay: .35s; }
.sld__fan .sld__drop:nth-child(3) .sld__pulse { animation-delay: .7s; }
@media (max-width: 560px) {
  .sld__level--3 { grid-template-columns: 1fr; }
  .sld__fan { grid-template-columns: 1fr; }
  .sld__fan .sld__drop:nth-child(n+2) { display: none; }
  .sld__loads { gap: 10px; }
}

/* =====================================================================
   CONTACT SECTION + FORM
   ===================================================================== */
.contact { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.contact__intro .eyebrow { color: var(--sky-400); }
.contact__intro .cta__title { text-align: left; }
.contact__intro .cta__lead { margin-left: 0; margin-right: 0; text-align: left; }
.contact__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: 26px; font-family: var(--display); font-size: clamp(16px, 1.5vw, 19px); letter-spacing: .04em; color: #93A6C4; }
.contact__meta a { color: var(--cyan-500); }
.contact__meta a:hover { color: #fff; }

.contact__form { display: grid; gap: 16px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--display); font-weight: 600; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: #9fb2cf; }
.field input, .field textarea {
  width: 100%; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-sm); padding: 12px 14px; color: #fff; font: inherit; font-size: 15px;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 108px; }
.field input::placeholder, .field textarea::placeholder { color: #6f83a3; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan-500); background: rgba(41,171,194,.08); }
.contact__form .btn { width: 100%; justify-content: center; margin-top: 4px; }
.contact__form .btn[disabled] { opacity: .6; pointer-events: none; }
.contact__status { min-height: 0; font-size: 14px; margin: 2px 0 0; }
.contact__status.is-ok { color: #7fe0c0; }
.contact__status.is-err { color: #ff9d9d; }
.contact__consent { font-size: 12.5px; color: #7789a5; margin: 0; }

/* =====================================================================
   CHATBOT WIDGET
   ===================================================================== */
.chatbot { position: fixed; right: clamp(14px, 3vw, 26px); bottom: clamp(14px, 3vw, 26px); z-index: 130; }
.chatbot__toggle {
  width: 60px; height: 60px; border-radius: 50%; background: var(--blue-700); color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(4,81,137,.45);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.chatbot__toggle:hover { transform: translateY(-2px) scale(1.04); background: var(--cyan-500); }
.chatbot__icon-close { display: none; }
.chatbot.is-open .chatbot__icon-open { display: none; }
.chatbot.is-open .chatbot__icon-close { display: block; }

.chatbot__panel {
  position: absolute; right: 0; bottom: 74px; width: min(384px, 92vw); height: min(560px, 74vh);
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 24px 64px rgba(10,31,60,.4);
  transform-origin: bottom right; animation: chat-in .28s var(--ease);
}
@keyframes chat-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.chatbot__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; color: #fff;
  background: radial-gradient(140% 140% at 0% 0%, #163a6b, var(--navy-900) 70%); }
.chatbot__avatar { color: var(--cyan-500); display: grid; place-items: center; flex: none; }
.chatbot__title { display: grid; line-height: 1.2; }
.chatbot__title b { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .02em; }
.chatbot__title i { font-style: normal; font-size: 12px; color: #9fb6d6; }
.chatbot__min { margin-left: auto; color: #cdd9ec; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; }
.chatbot__min:hover { background: rgba(255,255,255,.12); color: #fff; }
.chatbot__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--ice-050); scroll-behavior: smooth; }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.msg--user { align-self: flex-end; background: var(--blue-700); color: #fff; border-bottom-right-radius: 4px; }
.msg--typing { display: inline-flex; gap: 4px; align-items: center; }
.msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--steel); opacity: .5; animation: typing 1.2s infinite ease-in-out; }
.msg--typing span:nth-child(2) { animation-delay: .2s; }
.msg--typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.chatbot__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chatbot__form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 40px; padding: 11px 16px; font: inherit; font-size: 14.5px; color: var(--ink); }
.chatbot__form input:focus { outline: none; border-color: var(--cyan-500); }
.chatbot__form button { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--blue-700); color: #fff; display: grid; place-items: center; transition: background .2s var(--ease); }
.chatbot__form button:hover { background: var(--cyan-500); }
.chatbot__foot { text-align: center; font-size: 11px; color: var(--steel); padding: 0 12px 10px; background: #fff; margin: 0; }

.footer__admin { color: #6f84a6; }
.footer__admin:hover { color: var(--cyan-500); }

@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .chatbot__panel { height: min(70vh, 520px); bottom: 72px; right: -4px; }
}

/* Ensure the hidden attribute wins over the flex/absolute panel styles */
.chatbot[hidden], .chatbot__panel[hidden] { display: none !important; }

/* --- Chat: live agent hand-off + system notices --- */
.msg--agent { align-self: flex-start; background: #e8f5f9; border: 1px solid rgba(41,171,194,.45); color: var(--ink); border-bottom-left-radius: 4px; }
.msg--system { align-self: center; background: rgba(20,45,79,.06); color: var(--steel); font-size: 12px; text-align: center; padding: 5px 12px; border-radius: 20px; max-width: 92%; }
.chatbot__title i { display: inline-flex; align-items: center; gap: 6px; min-height: 15px; }
.chatbot.is-agent .chatbot__avatar { color: #43d18a; }
.chatbot.is-agent .chatbot__title i { color: #b9f0d3; }
.chatbot.is-agent .chatbot__title i::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #43d18a; animation: online-pulse 2s infinite; }
@keyframes online-pulse { 0% { box-shadow: 0 0 0 0 rgba(67,209,138,.55); } 70% { box-shadow: 0 0 0 6px rgba(67,209,138,0); } 100% { box-shadow: 0 0 0 0 rgba(67,209,138,0); } }

/* --- Cookie consent banner --- */
.consent { position: fixed; left: 50%; bottom: clamp(14px, 3vw, 24px); transform: translateX(-50%); z-index: 140; width: min(680px, calc(100vw - 28px)); }
.consent__inner { background: rgba(10,31,60,.97); color: #eaf1fb; border: 1px solid rgba(41,171,194,.35); border-radius: 14px; padding: 15px 18px; box-shadow: 0 20px 50px rgba(10,31,60,.45); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; animation: chat-in .3s var(--ease); }
.consent__text { font-size: 13px; line-height: 1.5; margin: 0; flex: 1 1 320px; color: #cdd9ec; }
.consent__actions { display: flex; gap: 10px; margin-left: auto; }
.consent__btn { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; padding: 9px 18px; border-radius: 8px; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.consent__btn--solid { background: var(--cyan-500); color: #06263b; }
.consent__btn--solid:hover { background: #4fc3d8; }
.consent__btn--ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.28); color: #cdd9ec; }
.consent__btn--ghost:hover { border-color: #fff; color: #fff; }
.consent[hidden] { display: none !important; }
@media (max-width: 560px) { .consent { bottom: 88px; } .consent__actions { width: 100%; } .consent__btn { flex: 1; text-align: center; justify-content: center; } }

/* =====================================================================
   OUR PARTNERS — logo grids
   ===================================================================== */
.logos { margin-top: clamp(30px, 4vw, 48px); }
.logos + .logos { margin-top: clamp(40px, 5vw, 64px); }
.logos__title { font-family: var(--display); font-weight: 500; font-size: clamp(18px, 1.9vw, 23px); color: var(--ink); text-align: center; margin-bottom: clamp(20px, 2.4vw, 30px); }
.logos__grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: clamp(14px, 1.8vw, 22px); align-items: center; }
.logos__grid--rnd { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); max-width: 900px; margin: 0 auto; }
.logos__grid li { display: grid; place-items: center; padding: clamp(16px, 1.8vw, 24px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); min-height: 104px; transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.logos__grid li:hover { border-color: var(--cyan-500); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15,42,82,.08); }
.logos__grid img { max-width: 100%; max-height: 60px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 560px) { .logos__grid, .logos__grid--rnd { grid-template-columns: repeat(2, 1fr); } }

/* =====================================================================
   NEWS — list + detail (timeline)
   ===================================================================== */
.news { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 40px); align-items: start; margin-top: clamp(28px, 3.4vw, 44px); }
.news__list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.news__item { position: relative; width: 100%; display: flex; align-items: center; gap: 16px; text-align: left; padding: 12px; border-radius: var(--radius); border: 1px solid rgba(122,160,208,.22); background: rgba(255,255,255,.03); cursor: pointer; transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease); }
.news__item:hover { border-color: rgba(41,171,194,.55); background: rgba(41,171,194,.08); transform: translateX(3px); }
.news__item.is-active { border-color: var(--cyan-500); background: rgba(41,171,194,.12); }
.news__item.is-active::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--cyan-500); }
.news__thumb { width: 88px; height: 66px; flex: none; object-fit: cover; border-radius: var(--radius-sm); background: #0b2444; }
.news__meta { display: grid; gap: 4px; min-width: 0; }
.news__item-title { font-family: var(--display); font-weight: 600; font-size: clamp(15px, 1.4vw, 18px); color: #fff; line-height: 1.25; }
.news__badge { justify-self: start; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #06263b; background: var(--sky-400); padding: 2px 9px; border-radius: 20px; }
.news__date { color: #9fb3d1; font-size: 13px; font-style: italic; }
.news__detail { position: relative; }
.news__panel { display: none; }
.news__panel.is-active { display: block; animation: chat-in .35s var(--ease); }
.news__hero { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius); border: 1px solid rgba(122,160,208,.22); margin-bottom: clamp(16px, 2vw, 22px); }
.news__panel h3 { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); color: #fff; margin-bottom: 8px; }
.news__panel .news__date { font-size: 15px; margin-bottom: 14px; color: var(--sky-400); }
.news__panel p:last-child { color: #C3D2E8; font-size: 16px; line-height: 1.65; }
@media (max-width: 780px) { .news { grid-template-columns: 1fr; } .news__hero { max-height: 240px; } }

/* =====================================================================
   ABOUT US — prose
   ===================================================================== */
.about { max-width: 860px; margin: clamp(26px, 3.2vw, 40px) auto 0; }
.about p { color: var(--muted); font-size: clamp(16px, 1.35vw, 18px); line-height: 1.75; }
.about p + p { margin-top: 18px; }
.about__lead { color: var(--ink) !important; font-weight: 500; }
.about__quote { margin: clamp(24px, 3vw, 34px) 0; padding: clamp(18px, 2.2vw, 26px) clamp(22px, 2.6vw, 30px); border-left: 3px solid var(--cyan-500); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: 0 12px 30px rgba(15,42,82,.06); }
.about__quote { font-family: var(--display); font-weight: 500; font-size: clamp(19px, 2vw, 25px); line-height: 1.4; color: var(--ink); font-style: italic; }

/* Contact form — Zoho integration helpers */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
