/* ===========================================================
   Corofy — Header, footer and page sections
   =========================================================== */

/* ================= TOP BAR ================= */

.topbar {
  position: relative;
  background: var(--ink-950);
  color: var(--on-dark-faint);
  /* body face — this is descriptive text, same role as content paragraphs */
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(24,48,208,0.55), rgba(152,88,200,0.45), transparent);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: var(--topbar-h);
}
.topbar__contacts { display: flex; align-items: center; gap: var(--s-5); }
.topbar a {
  color: var(--on-dark-faint);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  transition: color var(--dur) var(--ease-out);
}
.topbar a:hover { color: #fff; }
.topbar a:hover svg { color: var(--accent-400); opacity: 1; }
.topbar svg { width: 13px; height: 13px; opacity: 0.6; transition: color var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out); }
.topbar__divider { width: 1px; height: 13px; background: rgba(255,255,255,0.14); }
.topbar__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--on-dark-faint);
}
.topbar__tag svg { width: 13px; height: 13px; color: var(--accent-400); opacity: 0.9; }
@media (max-width: 860px) { .topbar { display: none; } }

/* ================= HEADER ================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}

/* Transparent over the dark hero until scrolled */
.site-header--overlay {
  position: fixed;
  left: 0; right: 0;
  top: var(--topbar-h);
  background: transparent;
  border-color: transparent;
}
@media (max-width: 860px) { .site-header--overlay { top: 0; } }

.site-header--overlay.is-stuck {
  top: 0;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-color: transparent;
  box-shadow: 0 1px 0 rgba(226, 231, 242, 0.9), 0 8px 28px -14px rgba(12, 22, 87, 0.22);
}

/* hairline of brand color under the stuck header */
.site-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-600), var(--accent-500), transparent);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}
.site-header.is-stuck::after { opacity: 0.5; }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: var(--header-h);
}

/* the nav sits in a subtle pill so it reads as one group */
.nav {
  padding: 0.25rem;
  border-radius: var(--r-full);
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
  border: 1px solid transparent;
}
.site-header.is-stuck .nav { background: var(--surface); border-color: var(--line); }
.site-header--overlay:not(.is-stuck) .nav {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 68px; width: auto; transition: filter var(--dur) var(--ease-out); }
.site-header--overlay:not(.is-stuck) .brand img { filter: brightness(0) invert(1); }
@media (max-width: 1080px) { .brand img { height: 58px; } }
@media (max-width: 520px) { .brand img { height: 46px; } }

/* ---- Primary nav ---- */

.nav { display: flex; align-items: center; gap: var(--s-1); }
@media (max-width: 1080px) { .nav { display: none; } }

.nav__item { position: relative; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.9rem;
  /* display face — navigation labels share the heading voice */
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--text);
  transition: color var(--dur) var(--ease-out);
}
.nav__link svg { width: 10px; height: 10px; opacity: 0.5; transition: transform var(--dur) var(--ease-out); }

/* Gradient underline indicator, drawn from the left */
.nav__link::after {
  content: '';
  position: absolute;
  left: 0.9rem; right: 0.9rem;
  bottom: 0.16rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-600), var(--accent-500));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease-out);
}
.nav__link:hover { color: var(--brand-600); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current='page'] { color: var(--brand-600); font-weight: 600; }
.nav__link[aria-current='page']::after { transform: scaleX(1); }

.site-header--overlay:not(.is-stuck) .nav__link { color: rgba(255,255,255,0.88); }
.site-header--overlay:not(.is-stuck) .nav__link:hover { color: #fff; }
.site-header--overlay:not(.is-stuck) .nav__link[aria-current='page'] { color: #fff; }
.site-header--overlay:not(.is-stuck) .nav__link::after {
  background: linear-gradient(90deg, #fff, var(--accent-300));
}

.nav__item:hover .nav__link svg,
.nav__item:focus-within .nav__link svg { transform: rotate(180deg); }

/* Dropdown panel */
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: -0.4rem;
  min-width: 292px;
  padding: var(--s-3);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow:
    0 2px 4px rgba(12, 22, 87, 0.05),
    0 12px 26px -8px rgba(12, 22, 87, 0.14),
    0 34px 60px -22px rgba(24, 48, 208, 0.26);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.985);
  transform-origin: top left;
  transition: opacity var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out),
              visibility var(--dur);
}
.nav__item:hover .dropdown,
.nav__item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

/* hover bridge so the panel survives the gap */
.dropdown::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }

/* little pointer notch */
.dropdown::after {
  content: '';
  position: absolute;
  top: -5px; left: 1.6rem;
  width: 9px; height: 9px;
  background: var(--paper);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}

.dropdown a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 0.62rem 0.75rem;
  border-radius: var(--r-xs);
  /* display face — same role as the nav labels above it */
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--text);
  transition: background-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out);
}
.dropdown a::after {
  content: '';
  width: 5px; height: 5px;
  flex: none;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg) translateX(-3px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.dropdown a:hover { background: var(--brand-50); color: var(--brand-700); }
.dropdown a:hover::after { opacity: 0.85; transform: rotate(45deg) translateX(0); }

.header__actions { display: flex; align-items: center; gap: var(--s-3); flex: none; }
@media (max-width: 1080px) { .header__actions .btn { display: none; } }

/* ---- Mobile menu ---- */

.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--heading);
}
.site-header--overlay:not(.is-stuck) .burger { color: #fff; border-color: rgba(255,255,255,0.28); }
@media (max-width: 1080px) { .burger { display: inline-flex; } }
.burger span { position: relative; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: background-color var(--dur) var(--ease-out); }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform var(--dur) var(--ease-out), top var(--dur) var(--ease-out);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .burger span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink-950);
  padding: calc(var(--header-h) + var(--s-6)) var(--gutter) var(--s-8);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: translateY(0); }
body.menu-open { overflow: hidden; }

.mobile-menu__group { border-bottom: 1px solid rgba(255,255,255,0.09); }
.mobile-menu__link {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 1.05rem 0;
  background: none; border: 0;
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 600;
  color: #fff; text-align: left; cursor: pointer;
  letter-spacing: -0.015em;
}
.mobile-menu__link svg { width: 14px; height: 14px; opacity: 0.6; transition: transform var(--dur) var(--ease-out); }
.mobile-menu__group.is-open .mobile-menu__link svg { transform: rotate(180deg); }
.mobile-menu__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 380ms var(--ease-out); }
/* min-height:0 — grid items default to min-height:auto and refuse to collapse below content */
.mobile-menu__sub > div { overflow: hidden; min-height: 0; }
.mobile-menu__group.is-open .mobile-menu__sub { grid-template-rows: 1fr; }
.mobile-menu__sub a {
  display: block;
  padding: 0.6rem 0 0.6rem var(--s-4);
  color: var(--on-dark-muted);
  /* display face — matches the desktop dropdown items */
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: -0.012em;
  border-left: 1px solid rgba(255,255,255,0.14);
  margin-left: 2px;
}
.mobile-menu__sub a:hover { color: #fff; }
/* Spacing lives on the last link, not the wrapper: a border-box wrapper cannot
   collapse below its own padding, which left a sliver visible when closed. */
.mobile-menu__sub a:last-child { margin-bottom: var(--s-4); }
.mobile-menu__cta { margin-top: var(--s-7); display: grid; gap: var(--s-3); }
.mobile-menu__contact { margin-top: var(--s-7); display: grid; gap: var(--s-3); color: var(--on-dark-faint); font-size: var(--fs-sm); }
.mobile-menu__contact a { color: var(--on-dark-muted); display: inline-flex; align-items: center; gap: var(--s-3); }

/* ================= HERO ================= */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + var(--topbar-h) + var(--s-9));
  padding-bottom: calc(var(--s-12) + var(--s-6));
  background: var(--ink-950);
  isolation: isolate;
  overflow: hidden;
}
@media (max-width: 860px) { .hero { min-height: 92vh; padding-top: calc(var(--header-h) + var(--s-8)); } }

.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(6,10,29,0.96) 0%, rgba(6,10,29,0.86) 38%, rgba(6,10,29,0.42) 72%, rgba(6,10,29,0.55) 100%),
    linear-gradient(to top, rgba(6,10,29,0.92) 0%, rgba(6,10,29,0) 45%);
}

/* subtle engineering grid + brand glow */
.hero__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 90% 70% at 22% 45%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 22% 45%, #000 0%, transparent 72%);
}
.hero__glow {
  position: absolute;
  width: 620px; height: 620px;
  left: -180px; top: 8%;
  z-index: -1;
  background: radial-gradient(circle, rgba(24,48,208,0.42) 0%, rgba(24,48,208,0) 68%);
  filter: blur(24px);
  pointer-events: none;
}
.hero__glow--accent {
  left: auto; right: -140px; top: auto; bottom: -140px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(152,88,200,0.34) 0%, rgba(152,88,200,0) 68%);
}

.hero__content { max-width: 780px; }
.hero h1 { color: #fff; font-size: var(--fs-display); margin-bottom: var(--s-5); }
.hero__lead { color: var(--on-dark-muted); font-size: var(--fs-lead); max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-7); }

.hero__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-8); }
.hero__tags span {
  font-size: var(--fs-xs);
  color: var(--on-dark-faint);
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--r-full);
}

/* ================= HERO SLIDER ================= */

.hero--slider { padding-block: 0; display: block; }

/* All slides share one grid cell, so the TALLEST defines the section height and
   no slide can clip. Absolute positioning would size the hero to slide 1 only. */
.hero__slides { display: grid; }

.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + var(--topbar-h) + var(--s-9));
  padding-bottom: calc(var(--s-12) + var(--s-11));
  opacity: 0;
  visibility: hidden;
  transition: opacity 900ms var(--ease-out), visibility 900ms;
  pointer-events: none;
}
.hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }

@media (max-width: 860px) {
  .hero-slide { padding-top: calc(var(--header-h) + var(--s-8)); }
}

/* headline on slides 2+ mirrors the h1 exactly */
.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: #fff;
  margin-bottom: var(--s-5);
  text-wrap: balance;
}
.hero-slide h1 { margin-bottom: var(--s-5); }

/* content lifts in as each slide becomes active */
.hero-slide .hero__content > * {
  opacity: 0;
  transform: translateY(18px);
}
.hero-slide.is-active .hero__content > * {
  opacity: 1;
  transform: none;
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
}
.hero-slide.is-active .hero__content > *:nth-child(1) { transition-delay: 120ms; }
.hero-slide.is-active .hero__content > *:nth-child(2) { transition-delay: 200ms; }
.hero-slide.is-active .hero__content > *:nth-child(3) { transition-delay: 280ms; }
.hero-slide.is-active .hero__content > *:nth-child(4) { transition-delay: 360ms; }
.hero-slide.is-active .hero__content > *:nth-child(5) { transition-delay: 440ms; }

.hero-slide .hero-scene { opacity: 0; transform: translateY(26px) scale(0.97); }
.hero-slide.is-active .hero-scene {
  opacity: 1;
  transform: none;
  transition: opacity 760ms var(--ease-out) 220ms, transform 760ms var(--ease-out) 220ms;
}

/* ---- controls: arrows on the side edges, dots centred at the bottom ---- */

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--on-dark-line);
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}
.hero-arrow--prev { left: clamp(0.75rem, 0.25rem + 1.6vw, 2rem); transform: translateY(-50%); }
.hero-arrow--next { right: clamp(0.75rem, 0.25rem + 1.6vw, 2rem); transform: translateY(-50%); }
.hero-arrow:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.38); }
.hero-arrow--prev:hover { transform: translateY(-50%) translateX(-3px); }
.hero-arrow--next:hover { transform: translateY(-50%) translateX(3px); }

.hero-dots {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(var(--s-12) + var(--s-3));
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
}
.hero-dot {
  width: 30px; height: 22px;
  display: grid; place-items: center;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.hero-dot span {
  display: block;
  width: 22px; height: 3px;
  border-radius: 3px;
  background: rgba(255,255,255,0.28);
  transition: background-color var(--dur) var(--ease-out), width var(--dur) var(--ease-out);
}
.hero-dot:hover span { background: rgba(255,255,255,0.55); }
.hero-dot.is-active span { width: 34px; background: linear-gradient(90deg, var(--brand-400), var(--accent-400)); }

@media (max-width: 860px) {
  .hero-dots { bottom: calc(var(--s-12) + var(--s-5)); }
  .hero-arrow { width: 40px; height: 40px; }
  /* keep the side arrows clear of the headline on narrow screens */
  .hero-arrow--prev { left: 0.5rem; }
  .hero-arrow--next { right: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide .hero__content > *, .hero-slide .hero-scene { opacity: 1; transform: none; transition: none; }
}

/* Stats bar overlapping the hero's bottom edge */
.stat-bar {
  position: relative;
  z-index: 2;
  margin-top: calc(var(--s-12) * -1);
  margin-bottom: var(--s-2);
}
.stat-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  padding: var(--s-7) var(--s-8);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
}
.stat-bar .stat { position: relative; }
.stat-bar .stat + .stat { padding-left: var(--s-6); }
.stat-bar .stat + .stat::before {
  content: '';
  position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 1px; background: var(--line);
}
@media (max-width: 900px) {
  .stat-bar__inner { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); padding: var(--s-6); }
  .stat-bar .stat + .stat { padding-left: 0; }
  .stat-bar .stat + .stat::before { display: none; }
  .stat-bar .stat:nth-child(n+3) { padding-top: var(--s-5); border-top: 1px solid var(--line); }
}
@media (max-width: 480px) { .stat-bar__inner { grid-template-columns: 1fr 1fr; } }

/* ================= SPLIT (media + copy) ================= */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 1rem + 5vw, 5.5rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: var(--s-8); }
  .split--reverse .split__media { order: 0; }
}

.split__media { position: relative; }
.split__media img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.split__media--wide img { aspect-ratio: 5 / 4; }

/* decorative frame offset behind the image */
.split__media::before {
  content: '';
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--brand-200);
  border-radius: var(--r-lg);
  z-index: -1;
}
.split--reverse .split__media::before { inset: 22px 22px -22px -22px; }
@media (max-width: 620px) { .split__media::before { display: none; } }

/* floating badge on media */
.media-badge {
  position: absolute;
  right: -18px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  max-width: 240px;
}
.media-badge .icon-box { width: 40px; height: 40px; border-radius: var(--r-sm); }
.media-badge .icon-box svg { width: 19px; height: 19px; }
.media-badge strong { display: block; font-family: var(--font-display); font-size: var(--fs-sm); color: var(--heading); line-height: 1.3; }
.media-badge span { font-size: var(--fs-xs); color: var(--text-muted); }
@media (max-width: 620px) { .media-badge { right: 12px; bottom: 12px; max-width: 200px; padding: var(--s-3) var(--s-4); } }

/* Supply list inside split copy */
.supply-list { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.supply-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4);
  align-items: start;
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.supply-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.supply-list .tick {
  width: 24px; height: 24px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-600);
  margin-top: 2px;
}
.supply-list .tick svg { width: 12px; height: 12px; }
.supply-list strong { display: block; font-family: var(--font-display); font-size: var(--fs-body); color: var(--heading); margin-bottom: 2px; }
.supply-list p { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.6; }

/* ================= INDUSTRIES GRID ================= */

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
}
@media (max-width: 1080px) { .industries-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .industries-grid { grid-template-columns: 1fr; } }

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-6);
  max-width: none;
  margin-bottom: var(--s-9);
}
.section-head--split > div { max-width: 640px; }
@media (max-width: 760px) {
  .section-head--split { flex-direction: column; align-items: flex-start; }
}

/* ================= DARK STATEMENT BAND ================= */

.statement {
  position: relative;
  background: var(--ink-900);
  overflow: hidden;
  isolation: isolate;
}
.statement::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse 80% 80% at 78% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 78% 30%, #000 0%, transparent 70%);
}
.statement__glow {
  position: absolute;
  right: -10%; top: -30%;
  width: 640px; height: 640px;
  z-index: -1;
  background: radial-gradient(circle, rgba(24,48,208,0.34) 0%, rgba(24,48,208,0) 70%);
  filter: blur(20px);
}
.statement__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 1rem + 5vw, 5rem); align-items: start; }
@media (max-width: 900px) { .statement__inner { grid-template-columns: 1fr; } }

.statement h2 { font-size: clamp(1.9rem, 1.3rem + 2.3vw, 2.9rem); }
.statement__cols { display: grid; gap: var(--s-5); }

.value-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-7); }
.value-row .chip--glass { padding: 0.5rem 1rem; }

/* ================= FAQ layout ================= */

.faq-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem, 1rem + 5vw, 5rem); align-items: start; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } }
.faq-layout__aside { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
@media (max-width: 900px) { .faq-layout__aside { position: static; } }

/* ================= BLOG GRID ================= */

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

/* ================= CTA BAND ================= */

.cta-band { position: relative; overflow: hidden; }
.cta-band__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-8);
  padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) clamp(1.75rem, 1rem + 3.5vw, 4rem);
  border-radius: var(--r-xl);
  background: linear-gradient(115deg, var(--brand-800) 0%, var(--brand-600) 48%, var(--accent-500) 118%);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-xl);
}
.cta-band__inner::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 100% at 85% 50%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 85% 50%, #000 0%, transparent 72%);
}
.cta-band h2 { color: #fff; margin-bottom: var(--s-3); }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); flex: none; }
@media (max-width: 860px) { .cta-band__inner { flex-direction: column; align-items: flex-start; } }

/* ================= FOOTER ================= */

.site-footer {
  position: relative;
  background: var(--ink-950);
  color: var(--on-dark-faint);
  padding-top: var(--s-11);
  overflow: hidden;
  isolation: isolate;
}

/* brand hairline across the very top edge */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(24,48,208,0.7), rgba(152,88,200,0.55), transparent);
}

/* faint engineering grid, matching the dark sections above */
.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 90% at 18% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 18% 0%, #000 0%, transparent 72%);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: clamp(2rem, 1rem + 3vw, 4.5rem);
  padding-bottom: var(--s-9);
}
@media (max-width: 980px) { .footer__grid { grid-template-columns: 1fr 1fr; row-gap: var(--s-8); } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand img { height: 36px; width: auto; filter: brightness(0) invert(1); margin-bottom: var(--s-5); }
/* body face — descriptive copy, same role as content paragraphs */
.footer__brand p {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--on-dark-faint);
  line-height: 1.75;
  max-width: 36ch;
}

/* Column headings use the exact eyebrow metrics from the content sections */
.site-footer h5 {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--s-5);
}
.site-footer h5::before {
  content: '';
  width: 18px;
  height: 1.5px;
  flex: none;
  background: linear-gradient(90deg, var(--brand-500), var(--accent-500));
}

/* display face — navigation labels, same voice as the header nav */
.footer__links { display: grid; gap: var(--s-2); }
.footer__links a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--on-dark-faint);
  padding-block: 0.15rem;
  transition: color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.footer__links a:hover { color: #fff; transform: translateX(4px); }

/* body face — contact details are descriptive content */
.footer__contact { display: grid; gap: var(--s-4); font-family: var(--font-body); }
.footer__contact li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3);
  font-size: var(--fs-sm);
  line-height: 1.65;
  align-items: start;
}
.footer__contact .ico {
  width: 30px; height: 30px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--accent-400);
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.footer__contact li:hover .ico { background: rgba(24,48,208,0.28); border-color: rgba(110,125,234,0.5); }
.footer__contact svg { width: 15px; height: 15px; }
.footer__contact a, .footer__contact span { color: var(--on-dark-faint); }
.footer__contact a:hover { color: #fff; }

.footer__socials { display: flex; gap: var(--s-3); margin-top: var(--s-6); }
.footer__socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--on-dark-line);
  border-radius: 50%;
  color: var(--on-dark-muted);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.footer__socials a:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 22px -10px rgba(24,48,208,0.7);
}
.footer__socials svg { width: 16px; height: 16px; }

/* ISO badge in the brand column */
.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-6);
  padding: 0.6rem 1rem;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.11);
}
.footer__badge svg { width: 16px; height: 16px; color: var(--accent-400); flex: none; }
.footer__badge span {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: rgba(255,255,255,0.8);
}

.footer__bar {
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
}
.footer__bar nav { display: flex; gap: var(--s-5); }
.footer__bar a { color: var(--on-dark-faint); transition: color var(--dur) var(--ease-out); }
.footer__bar a:hover { color: #fff; }
@media (max-width: 620px) { .footer__bar { flex-direction: column; text-align: center; } }

/* ================= FLOATING WHATSAPP ================= */

.wa-fab {
  position: fixed;
  right: clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
  bottom: clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
  z-index: 90;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.6);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.wa-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 18px 34px -8px rgba(37, 211, 102, 0.7); }
.wa-fab svg { width: 27px; height: 27px; }

/* ================= SCROLL REVEAL ================= */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay='1'] { transition-delay: 90ms; }
.reveal[data-delay='2'] { transition-delay: 180ms; }
.reveal[data-delay='3'] { transition-delay: 270ms; }
.reveal[data-delay='4'] { transition-delay: 360ms; }

@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;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .industry-card p { max-height: 7rem; opacity: 1; }
}
