/* =========================================================
   ELITEO GROUP -- Design tokens
   Same system as Eliteo Terra, re-tuned to the Group's navy.
   Color discipline: the ice-blue metal is a rare signature
   accent (hero headline only). Everyday chrome -- dividers,
   icon strokes, hover states -- runs on a quiet cool silver.
   ========================================================= */

/* Web fonts are requested from the page <head> rather than via @import,
   so the browser fetches them in parallel with this file. */

:root {
  /* The design is dark by intent. Declaring it stops Chrome for Android and
     Samsung Internet from auto-darkening the page and repainting its colours. */
  color-scheme: dark;
  --ink: #060C22;
  --panel: #10162B;
  --panel-2: #101631;

  /* Quiet cool silver -- the everyday UI color (dividers, icons, hover) */
  --silver-line: #B9BED3;
  --line: rgba(185, 190, 211, 0.14);
  --line-strong: rgba(185, 190, 211, 0.28);

  --silver-100: #E8EDF8;
  --silver-300: #B9BED3;
  --silver-500: #8FA0C8;
  --silver-700: #3A4472;

  /* Ice-blue metal -- reserved for the hero headline and a small number
     of signature moments only. Not a general accent color. */
  --metal-a: #E8EDF8;
  --metal-b: #6EC1E4;

  /* Everyday interactive accent (links, active states, focus) */
  --accent: #6EC1E4;

  /* Brand navy, sampled from the Eliteo Group logo */
  --brand-blue-1: #0A0E86;
  --brand-blue-2: #00025A;

  /* Consistent motion language */
  --ease: cubic-bezier(0.22, 0.61, 0.28, 0.99);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  /* Background variants -- same near-black navy family, used to separate
     sections without hairlines. */
  --bg-v1: #080A1A;
  --bg-v2: #050713;
  --bg-v3: #0A0624;
  --bg-v4: #10162B;
  --bg-v5: #101631;
  --bg-v6: #01071F;

  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font-body: 'Cinzel', 'Times New Roman', serif;
  --font-serif: 'Cormorant Garamond', 'Cinzel', 'Times New Roman', serif;

  --container: 1240px;
  --gutter: clamp(24px, 5vw, 64px);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@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;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--silver-100);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Continuous backdrop that bleeds behind every section -- the shared
   visual language used across all Eliteo Group platforms. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 60% 45% at 82% 6%, rgba(110,193,228,0.12), transparent 70%),
    radial-gradient(ellipse 50% 40% at 6% 92%, rgba(110,193,228,0.08), transparent 70%),
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(28,35,73,0.45), transparent 80%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--silver-700); color: var(--silver-100); }

:focus-visible {
  outline: 1px solid var(--silver-100);
  outline-offset: 4px;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--silver-500);
  font-weight: 400;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0;
  color: var(--silver-100);
}

p { color: var(--silver-300); font-weight: 400; }

.hairline {
  height: 1px;
  width: 100%;
  background: var(--line);
  border: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 1px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), opacity 0.4s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-blue-2);
  color: #ffffff;
  border: 1px solid var(--brand-blue-2);
}
.btn-primary:hover { background: var(--brand-blue-1); border-color: var(--brand-blue-1); }

.btn-outline {
  background: transparent;
  color: var(--silver-100);
  border: 1px solid var(--line-strong);
}
.btn-outline:hover { border-color: var(--silver-line); color: var(--silver-100); background: rgba(255,255,255,0.03); }

/* ---------- Arrow link: the quiet, confident secondary action ---------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--silver-100);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
  transition: gap 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.link-arrow::after { content: '\2192'; transition: transform 0.4s var(--ease); }
.link-arrow:hover { gap: 13px; border-color: var(--silver-line); color: var(--silver-100); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(6, 12, 34, 0.88);
  backdrop-filter: blur(8px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
/* Matches Terra's bar on desktop: 99px, shrinking to 83px on scroll. */
@media (min-width: 981px) {
  .site-header .wrap { min-height: 54px; }
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { height: 32px; width: auto; flex-shrink: 0; display: block; }
.brand-word {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.18em;
  color: var(--silver-100);
  font-weight: 500;
}

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver-300);
  position: relative;
  padding-bottom: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.4s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--silver-100); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--silver-line);
  opacity: 0.6;
}

.nav-cta { display: flex; align-items: center; gap: 28px; }

/* 44x44 touch area around the same 32x22 icon. */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin: -11px -6px;
  position: relative;
  background: none; border: none;
}
.nav-toggle span {
  position: absolute; left: 6px; right: 6px; height: 1px;
  background: var(--silver-100);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), top 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 11px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 31px; }
.nav-toggle.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Nav dropdown (Platforms > the seven companies) ---------- */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 200px;
  padding: 10px 0;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 11.5px;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { color: var(--accent); }

/* Mobile nav panel */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6,12,34,0.97);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: calc(var(--header-h, 72px) + 16px) 24px 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}
/* Auto margins centre the list when it fits, and let it scroll from the top
   when it does not (short phones, landscape) instead of clipping links. */
.mobile-nav > :first-child { margin-top: auto; }
.mobile-nav > :last-child { margin-bottom: auto; }
.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.4s var(--ease);
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-100);
  padding: 6px 16px;
}
.mobile-nav-sub { font-size: 15px !important; opacity: 0.75; margin-top: -20px; padding-block: 10px !important; }
@media (max-height: 620px) {
  .mobile-nav { gap: 6px; }
  .mobile-nav a { font-size: 18px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: -6% -6%;
  /* Art-directed still (Higgsfield): only the matching file is downloaded. */
  background-image: url('assets/hero/hero-group-16x9-1920.webp');
  background-repeat: no-repeat;
  background-position: 70% 40%;
  background-size: cover;
  z-index: 0;
  will-change: transform;
}
@media (min-width: 1600px), (min-width: 1100px) and (min-resolution: 1.5dppx) {
  .hero-bg { background-image: url('assets/hero/hero-group-16x9-3840.webp'); }
}
@media (orientation: portrait) {
  .hero-bg { background-image: url('assets/hero/hero-group-9x16-828.webp'); background-position: center 30%; }
}
@media (orientation: portrait) and (min-width: 500px), (orientation: portrait) and (min-resolution: 2dppx) {
  .hero-bg { background-image: url('assets/hero/hero-group-9x16-1520.webp'); }
}

/* Silent hero loop (ambient-video.js): fades in over the still once playing. */
.ambient-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: inherit;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  pointer-events: none;
}
.hero-bg .ambient-video { object-position: 70% 40%; }
@media (orientation: portrait) {
  .hero-bg .ambient-video { object-position: center 30%; }
}
.ambient-video.is-playing { opacity: 1; }

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(180deg,
      rgba(6,12,34,0.55) 0%,
      rgba(6,12,34,0.12) 22%,
      rgba(6,12,34,0.3) 55%,
      rgba(6,12,34,0.92) 92%,
      rgba(6,12,34,1) 100%),
    linear-gradient(90deg, rgba(6,12,34,0.8) 0%, rgba(6,12,34,0.15) 40%, rgba(6,12,34,0) 62%, rgba(6,12,34,0.35) 100%);
}

.hero-glow {
  position: absolute;
  top: -10%;
  right: 8%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110,193,228,0.22) 0%, rgba(110,193,228,0.08) 45%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-topline {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 140px;
  padding-bottom: 24px;
}
.hero-badge-mark { height: 22px; width: auto; }
.hero-badge-word {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-100);
}
.hero-badge-word-dim { color: var(--silver-500); }
.hero-badge-dot { color: var(--silver-500); }

.hero-wrap {
  position: relative;
  z-index: 2;
  display: block;
  padding-bottom: 120px;
}

.hero-copy {
  text-align: left;
  max-width: 880px;
}

.hero-headline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}
.hero-headline-row {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 56px);
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--silver-100);
  font-weight: 500;
}
.hero-headline-accent {
  background: linear-gradient(100deg, var(--metal-a) 20%, var(--metal-b) 55%, var(--metal-a) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p.lede {
  margin-top: 30px;
  max-width: 480px;
  margin-left: 4px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--silver-300);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 46px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 56px;
  opacity: 0.7;
}
.hero-badges span {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver-500);
  padding: 0 16px;
  border-left: 1px solid var(--line-strong);
}
.hero-badges span:first-child { border-left: none; padding-left: 0; }

.scroll-cue {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--silver-500);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  z-index: 3;
}
.scroll-cue::after {
  content: '';
  width: 1px; height: 34px;
  background: linear-gradient(var(--silver-500), transparent);
  animation: cue-drop 2.2s var(--ease) infinite;
}
@keyframes cue-drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.1% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Film grain overlay (tactile, not flat-vector) ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Marquee ticker ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 16px 0;
  background: var(--bg-v6);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
}
.marquee-track span {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(143, 160, 200, 0.6);
  white-space: nowrap;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.marquee-track span::after {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--silver-700);
}
@keyframes marquee-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Section shell ---------- */
section { position: relative; }
.section { padding: 128px 0; }
.section-tight { padding: 96px 0; }
.section-head { max-width: 680px; margin: 0 auto 64px; text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); text-transform: uppercase; }
.section-head p { margin-top: 20px; font-size: 18px; font-family: var(--font-serif); font-style: italic; font-weight: 500; }

.bg-v1 { background: rgba(8, 10, 26, 0.94); }
.bg-v2 { background: rgba(5, 7, 19, 0.94); }
.bg-v3 { background: rgba(10, 6, 36, 0.92); }
.bg-v4 { background: rgba(16, 22, 43, 0.92); }
.bg-v5 { background: rgba(16, 22, 49, 0.9); }
.bg-v6 { background: rgba(1, 7, 31, 0.9); }

/* ---------- About: text overlaid directly on the photo ---------- */
.about-hero-section {
  position: relative;
  overflow: hidden;
  padding: 140px 0;
}
.about-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/bg-network.webp');
  background-repeat: no-repeat;
  background-position: center 55%;
  background-size: cover;
  filter: brightness(0.9) saturate(1.05);
  z-index: 0;
}
.about-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(180deg,
      rgba(6,12,34,0.55) 0%,
      rgba(6,12,34,0.25) 25%,
      rgba(6,12,34,0.5) 60%,
      rgba(6,12,34,0.9) 100%),
    linear-gradient(90deg, rgba(6,12,34,0.6) 0%, rgba(6,12,34,0) 60%);
}
.about-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.about-hero-content .eyebrow { display: block; margin-bottom: 18px; }
.about-hero-content h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}
.about-hero-content .split-lede { margin-bottom: 22px; }
.about-hero-content p { margin-bottom: 16px; font-size: 15.5px; line-height: 1.75; }

/* =========================================================
   SPLIT SECTION -- real HTML copy beside the photography.
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: stretch;
  gap: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 6vw, 104px) clamp(28px, 5vw, 88px);
  max-width: 720px;
  margin-left: auto;
  width: 100%;
}
.split-photo { position: relative; overflow: hidden; min-height: 420px; }
.split-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.split-copy .eyebrow { display: block; margin-bottom: 18px; }
.split-copy h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
.split-lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--silver-300);
  margin-bottom: 26px;
}
.split-copy p { font-size: 15.5px; line-height: 1.75; margin-bottom: 16px; }
.split-copy .btn, .split-copy .link-arrow { margin-top: 22px; align-self: flex-start; }

/* Reverse the column order where the composition reads better
   with the photograph on the left. */
.split-reverse .split-copy { order: 2; margin-left: 0; margin-right: auto; }
.split-reverse .split-photo { order: 1; }

/* Emblem panel: the silver mark lit on navy, instead of a photograph. */
.split-photo-emblem {
  background:
    radial-gradient(ellipse 55% 50% at 50% 46%, rgba(110,193,228,0.22), transparent 70%),
    linear-gradient(160deg, #101631 0%, #060C22 75%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.split-photo-emblem img {
  position: relative;
  inset: auto;
  width: min(62%, 440px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.55));
}

/* Team portraits are black & white studio shots; a navy wash ties
   them into the palette without recolouring the faces. */
.split-photo-portrait img { object-position: center 30%; filter: grayscale(1) contrast(1.05) brightness(0.92); }
.split-photo-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,35,73,0.25), rgba(6,12,34,0.35));
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Small factual rows -- real text, not baked into an image. */
.split-facts {
  margin: 30px 0 0;
  border-top: 1px solid var(--line);
}
.split-fact {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.split-fact dt {
  color: var(--silver-500);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
  padding-top: 2px;
}
.split-fact dd { color: var(--silver-100); margin: 0; line-height: 1.6; }

.split-links { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 8px; }
.split-links .link-arrow { margin-top: 22px; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .split-photo img { position: relative; }
  .split-photo-emblem img { position: relative; }
  .split-copy { max-width: none; margin: 0; padding: 56px clamp(24px, 6vw, 40px); }
  .split-reverse .split-copy { order: 2; }
  .split-reverse .split-photo { order: 1; }
  .split-fact { grid-template-columns: 1fr; gap: 3px; padding: 12px 0; }
}

/* ---------- Routes (the four reasons inside "Why Eliteo Group") ---------- */
.route {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.route:first-of-type { margin-top: 12px; }
.route:last-of-type { border-bottom: 1px solid var(--line); }
.route h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--silver-100);
  margin-bottom: 8px;
}
.route p { font-size: 14.5px; margin: 0; }

/* ---------- Our Approach: the step flow ---------- */
.approach-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 32px;
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.approach-steps li {
  position: relative;
  padding: 30px 0;
}
/* The rule sits centred in the gutter rather than on the cell edge. */
.approach-steps li::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -16px;
  width: 1px;
  background: var(--line);
}
.approach-steps li:last-child::after { content: none; }
.approach-n {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--silver-700);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.approach-steps h3 {
  font-size: 14.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--silver-100);
  margin-bottom: 10px;
}
.approach-steps p { font-size: 14px; line-height: 1.65; color: var(--silver-300); margin: 0; max-width: 260px; }

.approach-promise {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(19px, 2.2vw, 26px);
  color: var(--silver-100);
  margin: 64px 0 0;
}

.approach-terms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 56px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.approach-terms > div { padding-right: 24px; }
.approach-terms dt {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver-500);
  margin-bottom: 6px;
}
.approach-terms dd { font-size: 14.5px; color: var(--silver-100); margin: 0; }

@media (max-width: 900px) {
  .approach-steps { grid-template-columns: repeat(2, 1fr); column-gap: 24px; margin-top: 44px; }
  .approach-steps li { border-bottom: 1px solid var(--line); padding: 24px 0; }
  .approach-steps li::after { right: -12px; }
  .approach-steps li:nth-child(2n)::after { content: none; }
  .approach-terms { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .approach-promise { margin-top: 44px; }
}
@media (max-width: 520px) {
  .approach-steps { grid-template-columns: 1fr; }
  .approach-steps li::after { content: none; }
}

/* =========================================================
   PLATFORMS -- the seven companies, one card each.
   The logo tiles share the brand navy, so they sit flush
   inside the card instead of reading as pasted images.
   ========================================================= */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.platform-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-v3);
  transition: background 0.4s var(--ease);
}
.platform-card:hover { background: var(--panel-2); }
.platform-logo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #1C2349;
}
.platform-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
  filter: brightness(0.92);
}
.platform-card:hover .platform-logo img { transform: scale(1.07); filter: brightness(1.04); }
.platform-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 24px 28px;
  flex: 1;
}
.platform-sector {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-500);
}
.platform-name {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver-100);
}
.platform-tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 16.5px;
  line-height: 1.4;
  color: var(--silver-300);
  margin: 2px 0 18px;
}
.platform-card .link-arrow { margin-top: auto; align-self: flex-start; font-size: 12px; }
.platform-card:hover .link-arrow { gap: 13px; border-color: var(--silver-line); }

/* The eighth cell closes the grid with an invitation instead of a gap. */
.platform-card-cta {
  justify-content: center;
  align-items: flex-start;
  padding: 40px 32px;
  background:
    radial-gradient(ellipse 80% 60% at 30% 20%, rgba(110,193,228,0.12), transparent 70%),
    var(--bg-v4);
}
.platform-card-cta h3 {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin: 14px 0 14px;
}
.platform-card-cta p { font-size: 14.5px; margin: 0 0 28px; }
.platform-card-cta .link-arrow { margin-top: 0; }

@media (max-width: 1080px) {
  .platforms-grid { grid-template-columns: repeat(3, 1fr); }
  .platform-card-cta { grid-column: span 2; }
}
@media (max-width: 760px) {
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
  /* 7 + 1 fills four full rows of two. */
  .platform-card-cta { grid-column: auto; padding: 28px 18px; }
  .platform-card-cta h3 { font-size: 16px; }
  .platform-copy { padding: 18px 16px 22px; }
  .platform-name { font-size: 14px; letter-spacing: 0.06em; }
  .platform-tag { font-size: 15px; }
}

/* ---------- Team ---------- */
.team-head { padding: 112px 0 64px; }
.team-head .section-head { margin-bottom: 0; }
#team-miguel, #team-nicola { padding: 0; }
.team-role {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-500);
  margin: -6px 0 18px;
}

/* =========================================================
   CLOSING SECTION -- contact merged into the brand statement,
   on the same skyline the site opens with: the bookend.
   ========================================================= */
.closing-section {
  position: relative;
  overflow: hidden;
  padding: 150px 0 110px;
}
.closing-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero/hero-group-16x9-1920.webp');
  background-repeat: no-repeat;
  background-position: 70% 38%;
  background-size: cover;
  z-index: 0;
}
@media (orientation: portrait) {
  .closing-bg { background-image: url('assets/hero/hero-group-9x16-828.webp'); background-position: center 30%; }
}
.closing-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(180deg,
    rgba(6,12,34,0.4) 0%,
    rgba(6,12,34,0.58) 26%,
    rgba(6,12,34,0.86) 52%,
    rgba(6,12,34,0.96) 100%);
}
.closing-content { position: relative; z-index: 2; }

.closing-tagline {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 96px;
}
.closing-tagline h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
.closing-tagline p {
  font-size: 17px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--silver-300);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
}
.contact-info .eyebrow { display: block; margin-bottom: 20px; }
.contact-info h2 { font-size: clamp(26px, 3vw, 36px); text-transform: uppercase; margin: 6px 0 22px; }
.contact-info p { font-size: 16px; margin-bottom: 32px; max-width: 420px; }
.contact-detail { margin-bottom: 22px; }
.contact-detail span.label {
  display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--silver-500); margin-bottom: 6px;
}
.contact-detail .value { font-size: 15px; color: var(--silver-100); transition: color 0.3s var(--ease); }
.contact-detail a.value:hover { color: var(--metal-b); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 22px; }
.field label {
  display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--silver-500); margin-bottom: 10px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--silver-100);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  padding: 14px 16px;
  border-radius: 1px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23B9BED3' stroke-width='1.3' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--silver-300);
  background-color: #101631;
  outline: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--silver-700); }
.form-status { font-size: 13px; margin-top: 16px; min-height: 18px; color: var(--silver-300); }
.form-gotcha { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form button[type="submit"]:disabled { opacity: 0.6; cursor: progress; }

@media (max-width: 720px) {
  .closing-section { padding: 120px 0 80px; }
  .closing-tagline { margin-bottom: 64px; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 120px 0 44px; border-top: 1px solid var(--line); }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px; flex-wrap: wrap; margin-bottom: 88px;
}
.footer-brand { display: flex; flex-direction: column; gap: 18px; max-width: 320px; }
.footer-brand-row { display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-mark { height: 34px; width: auto; }
.footer-brand-row span {
  font-family: var(--font-display); letter-spacing: 0.14em; font-size: 19px;
}
.footer-brand p {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  color: var(--silver-500);
}
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--silver-500); margin-bottom: 20px; font-family: var(--font-body); font-weight: 500;
}
.footer-col a {
  display: block; font-size: 14px; color: var(--silver-300);
  margin-bottom: 13px; transition: color 0.3s var(--ease);
}
.footer-col a:hover { color: var(--silver-100); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding-top: 32px;
  font-size: 11px; letter-spacing: 0.04em; color: var(--silver-500);
}

/* ---------- Reveal on scroll ---------- */
/* Only hidden once script.js has run and tagged <html class="js">: if
   JavaScript never arrives, every section stays visible. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Anchor-jump offset clears the fixed header ---------- */
#home, #about, #why, #approach, #platforms, #team, #contact {
  scroll-margin-top: var(--header-h, 84px);
}

/* ---------- Nav: progressively tighten before the mobile breakpoint ---------- */
@media (max-width: 1180px) {
  .main-nav { gap: 24px; }
  .main-nav a { font-size: 12px; }
}
@media (max-width: 1060px) {
  .main-nav { gap: 16px; }
  .main-nav a { font-size: 11.5px; letter-spacing: 0.06em; }
  .brand-word { font-size: 15px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }

  .hero-topline { padding-top: 100px; }
  .hero-wrap { padding-bottom: 70px; }

  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero { min-height: 88vh; min-height: 88svh; }
  .hero-bg { background-position: 78% 40%; }
  .hero-topline { flex-wrap: wrap; row-gap: 6px; padding-top: 90px; }
  .hero-badge-word-dim, .hero-badge-dot { display: none; }
  .hero-wrap { padding-bottom: 56px; }
  .scroll-cue { display: none; }
  .team-head { padding: 88px 0 48px; }
}

@media (max-width: 640px) {
  .footer-cols { gap: 40px; }
  .about-hero-section { padding: 110px 0; }
}

/* ---------- Touch screens and narrow phones ---------- */
@media (pointer: coarse) {
  .link-arrow { position: relative; }
  .link-arrow::before,
  .main-nav a::before { content: ""; position: absolute; inset: -11px -6px; }
  .nav-dropdown-menu a { padding-block: 13px; }
  .footer-col a { padding-block: 11px; margin-bottom: 0; }
  .brand, .contact-detail a.value { position: relative; }
  .brand::before,
  .contact-detail a.value::before { content: ""; position: absolute; inset: -12px -6px; }
}

@media (max-width: 720px), (pointer: coarse) and (max-height: 500px) {
  /* 12px is the floor for uppercase micro-labels on phones. */
  .hero-badges span,
  .split-fact dt,
  .approach-terms dt,
  .platform-sector,
  .team-role,
  .contact-detail span.label,
  .field label,
  .footer-col h4,
  .footer-bottom { font-size: 12px; }

  /* iOS Safari zooms into any field under 16px on focus. */
  .field input, .field textarea, .field select { font-size: 16px; }
}

@media (max-width: 720px) {
  .hero-topline { padding-top: 92px; padding-bottom: 16px; }
  .hero-copy p.lede { font-size: 19px; margin-top: 16px; }
  .hero-actions { margin-top: 24px; gap: 12px; }
  .hero-wrap { padding-bottom: 28px; }
  .hero-badges { gap: 8px 20px; margin-top: 28px; }
  .hero-badges span,
  .hero-badges span:first-child { border-left: none; padding: 0; white-space: nowrap; }
}
