/* ============================================================
   ClearPath Partnership — brand system, layout, responsive.
   Static site, no build step. Motion respects reduced-motion.
   ============================================================ */

:root {
  --primary: #084466;
  --primary-deep: #052e46;
  --accent: #74cfea;
  --meta: #4796b4;
  --bg: #f9f7ef;
  --card: #ffffff;
  --ink: #084466;
  --ink-soft: #2d5f7e;
  --line: rgba(8, 68, 102, 0.12);
  --line-light: rgba(249, 247, 239, 0.18);
  --content: 1200px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(8, 68, 102, 0.10);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: futura-pt, "Century Gothic", "Trebuchet MS", sans-serif;
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a { color: var(--meta); text-decoration: none; }
a:hover { color: var(--primary); }

.highlight { color: var(--accent); }

.wrap { max-width: var(--content); margin: 0 auto; padding: 0 24px; }

.kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--meta);
  margin-bottom: 0.9rem;
}

.section { padding: 5.5rem 0; }
.section--tint { background: var(--card); }
.section--dark { background: var(--primary); color: var(--bg); }
.section--dark .kicker { color: var(--accent); }
.section--dark a { color: var(--accent); }

.btn {
  display: inline-block;
  padding: 0.65rem 1.8rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(116, 207, 234, 0.45); color: var(--primary); }
.btn--ghost { background: transparent; color: var(--bg); border-color: rgba(249, 247, 239, 0.5); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }

/* Filled buttons keep dark text even where section/nav link colours apply. */
.section--dark a.btn, .nav__links a.btn { color: var(--primary); }
.section--dark a.btn:hover, .nav__links a.btn:hover { color: var(--primary); }
.section--dark a.btn--ghost { color: var(--bg); }
.section--dark a.btn--ghost:hover { color: var(--accent); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(8, 68, 102, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled { background: rgba(5, 46, 70, 0.95); border-color: var(--line-light); box-shadow: 0 6px 24px rgba(5, 46, 70, 0.35); }

.nav__inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0.9rem 24px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand img { height: 42px; display: block; }

.nav__links { display: flex; gap: 1.7rem; margin-left: auto; align-items: center; }
.nav__links a {
  position: relative;
  color: var(--bg);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.3rem 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--accent); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__links a.active { color: var(--accent); }
.nav__links .btn { padding: 0.4rem 1.2rem; font-size: 1rem; }
.nav__links .btn::after { display: none; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav__toggle span { width: 26px; height: 2px; background: var(--bg); border-radius: 2px; transition: 0.3s; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--primary-deep) 0%, var(--primary) 55%, #0a5c85 100%);
  color: var(--bg);
  padding: 7rem 0 5rem;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__content { position: relative; z-index: 2; max-width: 700px; }
.hero__content p.lead { font-size: 1.35rem; color: var(--accent); margin: 0 0 2rem; }
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero--page { min-height: 46vh; padding: 8rem 0 3.5rem; }

.scroll-hint {
  position: absolute;
  left: 50%; bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 2px solid rgba(249, 247, 239, 0.5);
  border-radius: 999px;
}
.scroll-hint::before {
  content: "";
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent);
  animation: scrollHint 2s infinite var(--ease);
}
@keyframes scrollHint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Cards / grids ---------- */

.grid { display: grid; gap: 1.6rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(8, 68, 102, 0.16); }
.card h3 { color: var(--primary); }
.card p { font-size: 0.98rem; color: var(--ink-soft); margin: 0; }

.card__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(116, 207, 234, 0.18);
  color: var(--meta);
  margin-bottom: 1rem;
}
.card__icon svg { width: 26px; height: 26px; }

/* ---------- Stats band ---------- */

.stats { background: var(--primary-deep); color: var(--bg); padding: 3.2rem 0; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
.stat__num { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; color: var(--accent); }
.stat__label { font-size: 0.95rem; opacity: 0.85; }

/* ---------- About split ---------- */

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.who-canvas {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #0d3352, #155177);
}

/* ---------- Services ---------- */

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.service { display: flex; flex-direction: column; }
.service p { flex: 1; margin-bottom: 1rem; }
a.service .product__link { color: var(--meta); font-weight: 700; }
a.service:hover .product__link { color: var(--primary); }
a.service:hover .product__link .arrow { transform: translateX(5px); }

/* ---------- Products (new) ---------- */

.products { position: relative; overflow: hidden; }
.products::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(116, 207, 234, 0.14), transparent 70%),
    radial-gradient(500px 320px at 10% 90%, rgba(116, 207, 234, 0.10), transparent 70%);
  pointer-events: none;
}
.products .wrap { position: relative; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; margin-bottom: 1.6rem; }
.product-grid--3 { grid-template-columns: repeat(3, 1fr); }

.product {
  display: flex;
  flex-direction: column;
  background: rgba(249, 247, 239, 0.04);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.product:hover { transform: translateY(-4px); border-color: rgba(116, 207, 234, 0.55); background: rgba(249, 247, 239, 0.07); }
.product h3 { font-size: 1.4rem; color: var(--bg); }
.product p { color: rgba(249, 247, 239, 0.85); font-size: 0.98rem; flex: 1; }

.product__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(116, 207, 234, 0.5);
  color: var(--accent);
  margin-bottom: 1rem;
}
.product__link { font-weight: 700; color: var(--accent); }
.product__link:hover { color: var(--bg); }
.product__link .arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.product:hover .product__link .arrow { transform: translateX(5px); }

.product p.product__tagline { flex: 0 0 auto; font-size: 0.95rem; font-weight: 600; margin: -0.4rem 0 0.8rem; }

/* Apex Vantage tile — the apexvantage.ai brand system */
.product--apex {
  background:
    radial-gradient(320px 200px at 85% 0%, rgba(120, 70, 220, 0.30), transparent 65%),
    radial-gradient(280px 220px at 5% 100%, rgba(70, 60, 180, 0.24), transparent 65%),
    linear-gradient(180deg, #0e1230, #0b0e26);
  border: 1px solid rgba(150, 130, 255, 0.28);
}
.product--apex:hover {
  border-color: rgba(224, 91, 224, 0.55);
  background:
    radial-gradient(320px 200px at 85% 0%, rgba(120, 70, 220, 0.38), transparent 65%),
    radial-gradient(280px 220px at 5% 100%, rgba(70, 60, 180, 0.30), transparent 65%),
    linear-gradient(180deg, #0e1230, #0b0e26);
  box-shadow: 0 0 40px rgba(140, 90, 230, 0.35);
}
.product--apex h3 {
  font-family: 'Space Grotesk', futura-pt, sans-serif;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, #6d4aff, #a24bd6 55%, #e05be0);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.product--apex .product__tagline { color: #eef0ff; font-family: 'Space Grotesk', futura-pt, sans-serif; }
.product--apex p { color: #a9adcf; font-family: 'Inter', futura-pt, sans-serif; }
.product--apex .product__tag { border-color: rgba(224, 91, 224, 0.5); color: #e05be0; }
.product--apex .product__link { color: #56e1e6; }
.product--apex .product__link:hover { color: #eef0ff; }

/* Tessara tile (codename CP82) — the Tessara brand system: near-black, lime tessera grid */
.product--tessara {
  background: linear-gradient(180deg, #161616, #101010 60%, #0c0d0c);
  border: 1px solid rgba(233, 233, 229, 0.14);
}
.product--tessara:hover {
  border-color: rgba(168, 255, 100, 0.55);
  background: linear-gradient(180deg, #1b1b1b, #101010 60%, #0c0d0c);
  box-shadow: 0 14px 40px rgba(168, 255, 100, 0.12);
}
.product--tessara h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Manrope', futura-pt, sans-serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f1f1ef;
}
.tessara-mark {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}
.tessara-mark span { background: rgba(241, 241, 239, 0.85); border-radius: 1px; }
.tessara-mark span.lime { background: #a8ff64; }
.product--tessara .product__tagline { color: #f1f1ef; font-family: 'Manrope', futura-pt, sans-serif; font-weight: 700; }
.product--tessara p { color: #9a9a94; font-family: 'Inter', futura-pt, sans-serif; }
.product--tessara .product__tag {
  border-color: rgba(168, 255, 100, 0.4);
  color: #a8ff64;
  font-family: 'DM Mono', monospace;
  text-transform: none;
  letter-spacing: 0.04em;
}
.product--tessara .product__link { color: #a8ff64; }
.product--tessara .product__link:hover { color: #f1f1ef; }

/* Airlock tile — secure-transfer brand system: deep slate, cyan accent */
.product--airlock {
  background: linear-gradient(180deg, #10202b, #0c1a24 60%, #0a151d);
  border: 1px solid rgba(88, 200, 224, 0.22);
}
.product--airlock:hover {
  border-color: rgba(88, 200, 224, 0.6);
  background: linear-gradient(180deg, #14283440, #0c1a24 60%, #0a151d), linear-gradient(180deg, #14283b, #0c1a24 60%, #0a151d);
  box-shadow: 0 14px 40px rgba(88, 200, 224, 0.14);
}
.product--airlock h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Space Grotesk', futura-pt, sans-serif;
  letter-spacing: 0.01em;
  color: #eaf6fb;
}
.airlock-mark {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}
.airlock-mark span { display: block; border-radius: 1px; }
.airlock-mark .in { width: 6px; height: 12px; background: #58c8e0; }
.airlock-mark .gate { width: 4px; height: 20px; background: rgba(234, 246, 251, 0.85); }
.airlock-mark .out { width: 6px; height: 12px; border: 1.5px solid rgba(234, 246, 251, 0.45); background: transparent; }
.product--airlock .product__tagline { color: #eaf6fb; font-family: 'Space Grotesk', futura-pt, sans-serif; }
.product--airlock p { color: #9fb4bf; font-family: 'Inter', futura-pt, sans-serif; }
.product--airlock .product__tag {
  border-color: rgba(88, 200, 224, 0.4);
  color: #58c8e0;
  font-family: 'DM Mono', monospace;
  text-transform: none;
  letter-spacing: 0.04em;
}
.product--airlock .product__link { color: #58c8e0; }
.product--airlock .product__link:hover { color: #eaf6fb; }

.product-dev {
  border: 1px dashed rgba(116, 207, 234, 0.45);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.product-dev p { margin: 0; flex: 1 1 420px; color: rgba(249, 247, 239, 0.9); }
.product-dev strong { color: var(--accent); }

/* ---------- Clients ---------- */

.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem 2.4rem;
  align-items: center;
}
.clients-grid img {
  max-height: 105px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  display: block;
}
.clients-grid img.logo-dxc { max-height: none; max-width: 154px; }
.clients-grid img:nth-child(11) { grid-column: 2; }
.clients-grid img:nth-child(12) { grid-column: 3; }
.clients-grid img:nth-child(13) { grid-column: 4; }

/* ---------- Values / reasons ---------- */

.value-num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.8rem;
}

/* ---------- Timeline (the Drawn Path) ---------- */

.timeline { position: relative; margin-top: 3rem; padding: 1rem 0; }
.tl-track, .tl-fill {
  position: absolute;
  left: 50%; top: 0;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 3px;
}
.tl-track { bottom: 0; background: var(--line); }
.tl-fill {
  height: 0;
  background: linear-gradient(var(--meta), var(--accent));
  box-shadow: 0 0 12px rgba(116, 207, 234, 0.55);
  transition: height 0.15s linear;
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: center;
  margin-bottom: 2.4rem;
}
.tl-medal {
  grid-column: 2;
  justify-self: center;
  width: 86px; height: 86px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 3px var(--accent), var(--shadow);
  background: var(--card);
  position: relative;
  z-index: 1;
}
.tl-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow);
}
.tl-item:nth-child(odd) .tl-card { grid-column: 1; grid-row: 1; text-align: right; }
.tl-item:nth-child(even) .tl-card { grid-column: 3; grid-row: 1; }
.tl-item .date { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--meta); }
.tl-card h3 { margin: 0.15rem 0 0.3rem; font-size: 1.1rem; }
.tl-card p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Leadership ---------- */

.leader { text-align: center; }
.leader img {
  width: 180px; height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--accent);
  margin-bottom: 1.2rem;
  background: var(--card);
}
.leader h3 { margin-bottom: 0.15rem; }
.leader .role { color: var(--meta); font-weight: 700; font-size: 0.92rem; margin-bottom: 0.8rem; }
.leader p { font-size: 1.05rem; color: var(--ink-soft); text-align: left; }
.section--dark .leader p { font-size: 1.12rem; color: rgba(249, 247, 239, 0.88); }

/* ---------- Case studies ---------- */

.hl-card .sector { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--meta); }
.hl-card ul, .case ul { margin: 0.6rem 0 0; padding-left: 1.2rem; }
.hl-card li, .case li { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0.4rem; }

.case { margin-bottom: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.case summary {
  cursor: pointer;
  list-style: none;
  padding: 1.4rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}
.case summary::-webkit-details-marker { display: none; }
.case summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.6rem;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
  line-height: 1;
}
.case[open] summary::after { transform: rotate(45deg); }
.case__body { padding: 0 1.8rem 1.8rem; }
.case__meta { font-size: 0.9rem; color: var(--meta); margin-bottom: 1rem; }
.case__meta strong { color: var(--primary); }
.case h4 { margin: 1.2rem 0 0.4rem; color: var(--primary); }
.case p { font-size: 0.98rem; color: var(--ink-soft); }

/* ---------- White papers ---------- */

.wp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.wp-card { display: flex; flex-direction: column; }
.wp-card .sector { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--meta); margin-bottom: 0.5rem; }
.wp-card h3 { min-height: 2.6em; }
.wp-card p { flex: 1; margin-bottom: 1rem; }
.wp-card .product__link { color: var(--meta); font-weight: 700; }
.wp-card:hover .product__link { color: var(--primary); }
.wp-card:hover .product__link .arrow { transform: translateX(5px); }

.paper { padding: 3.5rem 0 5rem; }
.paper article { max-width: 780px; margin: 0 auto; }
.paper h2 { font-size: 1.5rem; margin-top: 2.4rem; }
.paper h3 { font-size: 1.1rem; margin-top: 1.8rem; color: var(--primary); }
.paper p, .paper li { color: var(--ink-soft); font-size: 1.02rem; }
.paper ul { padding-left: 1.3rem; }
.paper li { margin-bottom: 0.5rem; }
.paper .lead-in { font-size: 1.15rem; color: var(--primary); }
.paper-meta { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--accent); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.keypoints {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.8rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}
.keypoints h3 { margin-top: 0; }
.keypoints li { margin-bottom: 0.5rem; }

.paper-voices { margin-top: 3rem; }
.paper-voices h3 { color: var(--primary); }
.voice { display: flex; gap: 1.2rem; align-items: flex-start; margin-top: 1.5rem; }
.voice img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent);
  flex: 0 0 auto;
  background: var(--card);
}
.voice__quote { font-style: italic; color: var(--ink); margin-bottom: 0.4rem; }
.voice__who { font-size: 0.9rem; color: var(--meta); margin: 0; }

.paper-cta {
  margin-top: 3rem;
  background: var(--primary);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.paper-cta p { flex: 1 1 380px; margin: 0; color: rgba(249, 247, 239, 0.9); }
.paper-cta strong { color: var(--accent); }
.paper-back { display: inline-block; margin-bottom: 1.5rem; font-weight: 700; }

/* ---------- CTA / contact ---------- */

.cta { text-align: center; }
.cta h2 { margin-bottom: 0.8rem; }
.cta p { max-width: 620px; margin: 0 auto 2rem; opacity: 0.9; }
.cta-form { max-width: 620px; margin: 0 auto; text-align: left; }
.cta-form label { display: block; font-size: 0.9rem; font-weight: 700; color: var(--accent); margin-bottom: 1.1rem; }
.cta-form input, .cta-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: rgba(249, 247, 239, 0.06);
  color: var(--bg);
  font: inherit;
  font-size: 1rem;
}
.cta-form input:focus, .cta-form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.cta-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.cta-form .btn { display: block; margin: 0.4rem auto 0; }
.cta-form .hp-field { position: absolute; left: -9999px; margin: 0; }
@media (max-width: 700px) {
  .cta-form__row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Footer ---------- */

.footer { background: var(--primary-deep); color: var(--bg); padding: 2.2rem 0 1.8rem; }
.footer__inner { display: flex; gap: 1.8rem; align-items: center; flex-wrap: wrap; }
.footer__inner .brand img { height: 40px; display: block; }
.footer__tagline { flex: 1; text-align: center; font-size: 0.9rem; opacity: 0.7; margin: 0; }
.footer__social { display: flex; gap: 0.9rem; }
.footer__social a { color: var(--bg); opacity: 0.85; }
.footer__social a:hover { color: var(--accent); opacity: 1; }
.footer__social svg { width: 24px; height: 24px; }
.footer__legal { text-align: center; font-size: 0.8rem; opacity: 0.55; margin-top: 1.6rem; border-top: 1px solid var(--line-light); padding-top: 1.4rem; line-height: 1.6; }
.footer__copy { text-align: center; font-size: 0.85rem; opacity: 0.6; margin-top: 0.8rem; }

/* ---------- Reveal-on-scroll ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .grid--3, .services-grid, .wp-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(5, 1fr); }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .stats__grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .section { padding: 3.8rem 0; }
  .grid--3, .grid--2, .services-grid, .product-grid, .wp-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; }
  .clients-grid img { max-height: 70px; }
  .clients-grid img:last-child { grid-column: 1 / -1; }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(5, 46, 70, 0.98);
    padding: 0.6rem 24px 1.2rem;
    border-bottom: 1px solid var(--line-light);
  }
  .nav.open .nav__links { display: flex; align-items: stretch; }
  .nav.open .nav__links a { padding: 0.9rem 0; border-top: 1px solid rgba(249, 247, 239, 0.08); }
  .nav.open .nav__links a:first-child { border-top: 0; }
  .nav.open .nav__links .btn { margin-top: 0.8rem; text-align: center; }
  .nav__toggle { display: flex; margin-left: auto; }

  .tl-track, .tl-fill { left: 32px; }
  .tl-item { grid-template-columns: 64px 1fr; margin-bottom: 1.8rem; }
  .tl-medal { grid-column: 1; width: 60px; height: 60px; }
  .tl-item:nth-child(odd) .tl-card, .tl-item:nth-child(even) .tl-card { grid-column: 2; grid-row: 1; text-align: left; }
}

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