/* ==========================================================================
   X-TENDS — Website Revamp
   Design tokens taken from the supplied Figma "color tokens" collection.
   ========================================================================== */

:root {
  /* Brand / Primary */
  --primary: #001f6f;
  --primary-dark: #00164e;
  --primary-light: #6679a9;

  /* Brand / Secondary */
  --accent: #58c5a2;
  --accent-hover: #75d5b7;
  --accent-pressed: #4eb996;
  --accent-gray: #ecf1f3;

  /* Surface */
  --surface-page: #f3f4f8;
  --surface-card: #ffffff;
  --surface-elevated: #fffff7;
  --surface-selected: #ccd2e2;
  --surface-hover: #ecf1f3;
  --surface-disabled: #f7f8fb;

  /* Text */
  --text-primary: #00164e;
  --text-secondary: #6679a9;
  --text-tertiary: #b3bcd4;
  --text-inverse: #ffffff;

  /* Borders */
  --border-default: #6679a9;
  --border-subtle: #ccd2e2;
  --border-strong: #001c64;
  --border-focus: #1a357d;
  --border-disabled: #e7eaf2;

  /* Status */
  --success: #3fa56b;
  --success-light: #ddf5e8;
  --info: #3d7cc4;
  --info-light: #dceaf9;
  --warning: #e9a23b;
  --warning-light: #fcf1d9;
  --danger: #ca4a4a;
  --danger-light: #fbeaea;

  /* Dark-section derived surfaces */
  --dark-card: rgba(102, 121, 169, 0.22);
  --dark-card-2: rgba(102, 121, 169, 0.16);
  --dark-border: rgba(179, 188, 212, 0.18);
  --dark-text: rgba(255, 255, 255, 0.72);

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --nav-h: 92px;

  --shadow-sm: 0 1px 2px rgba(0, 22, 78, .06), 0 1px 3px rgba(0, 22, 78, .05);
  --shadow: 0 4px 16px rgba(0, 22, 78, .07);
  --shadow-lg: 0 18px 46px rgba(0, 22, 78, .10);

  --font-head: "Figtree", "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: inherit;
  margin: 0;
}

p { margin: 0; }

::selection { background: var(--accent); color: #04204a; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ----------------------------------------------------------- utilities -- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: 96px 0; position: relative; }
.section--tight { padding: 72px 0; }

/* Dark band: navy with a soft teal glow + faint blueprint grid */
.section--dark {
  background-color: var(--primary-dark);
  background-image:
    linear-gradient(rgba(179, 188, 212, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(179, 188, 212, .055) 1px, transparent 1px),
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(60, 150, 155, .30), transparent 70%);
  background-size: 80px 80px, 80px 80px, 100% 100%;
  color: #fff;
}

/* Light band: page grey with a subtle green wash */
.section--light {
  background-color: var(--accent-gray);
  background-image: radial-gradient(ellipse 60% 55% at 50% 40%, rgba(88, 197, 162, .10), transparent 70%);
}

.section--white { background: var(--surface-card); }

.kicker {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
  text-align: center;
}
.kicker--left { text-align: left; }

.section-head { text-align: center; max-width: 900px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 40px); }
.section-head p {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: clamp(15px, 1.3vw, 17px);
}
.section--dark .section-head p { color: var(--dark-text); }

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

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid--phase { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.grid--sdk { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); }

/* ------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--green { background: var(--accent); color: #04204a; }
.btn--green:hover { background: var(--accent-hover); }
.btn--green:active { background: var(--accent-pressed); }

.btn--outline-green { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn--outline-green:hover { background: rgba(88, 197, 162, .12); }

.btn--white { background: #fff; color: var(--primary-dark); }
.btn--white:hover { background: var(--surface-hover); }

.btn--navy { background: var(--primary-dark); color: #fff; }
.btn--navy:hover { background: var(--primary); }

.btn--outline-navy { border-color: var(--primary-dark); color: var(--primary-dark); }
.btn--outline-navy:hover { background: var(--surface-hover); }

.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-row--center { justify-content: center; }

/* -------------------------------------------------------------- header -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(4, 25, 80, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(179, 188, 212, .12);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: #fdfdfd;
  display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.brand__mark svg { width: 26px; height: 26px; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 21px;
  color: #fff;
  letter-spacing: -.01em;
}
.brand--dark .brand__name { color: var(--primary-dark); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-inline: auto;
}
.nav__links .btn { display: none; }
.nav__links a:not(.btn) {
  font-size: 15px;
  color: rgba(255, 255, 255, .88);
  padding: 6px 0;
  position: relative;
  transition: color .18s ease;
}
.nav__links a:not(.btn):hover { color: #fff; }
.nav__links a.is-active { color: var(--accent); }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav__cta { flex-shrink: 0; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav__toggle span {
  display: block;
  width: 20px; height: 2px;
  background: #fff;
  border-radius: 2px;
  position: relative;
  transition: background .2s ease;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .22s ease, top .22s ease;
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--primary-dark);
  background-image:
    linear-gradient(rgba(179, 188, 212, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(179, 188, 212, .05) 1px, transparent 1px),
    radial-gradient(ellipse 60% 70% at 62% 50%, rgba(53, 140, 150, .34), transparent 68%);
  background-size: 80px 80px, 80px 80px, 100% 100%;
  color: #fff;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
  padding: 84px 0 64px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}
.hero__lead {
  margin-top: 24px;
  max-width: 520px;
  color: rgba(255, 255, 255, .78);
  font-size: 16px;
}
.hero .btn-row { margin-top: 34px; }

/* Centred hero variant (inner pages) */
.hero--center { text-align: center; }
.hero--center .hero__inner { display: block; padding: 92px 0 76px; }
.hero--center h1 { font-size: clamp(30px, 4.6vw, 52px); max-width: 1000px; margin-inline: auto; }
.hero--center .hero__lead { margin-inline: auto; max-width: 780px; text-align: center; }
.hero--center .btn-row { justify-content: center; }

/* Orbiting phone visual */
.hero__visual { position: relative; display: grid; place-items: center; min-height: 540px; }
.hero__orbit {
  position: absolute;
  inset: 6% 4%;
  border: 1px dashed rgba(179, 188, 212, .22);
  border-radius: 50%;
  pointer-events: none;
}
.hero__orbit--inner { inset: 18% 16%; border-color: rgba(88, 197, 162, .16); }
.hero__phone {
  position: relative;
  z-index: 2;
  width: min(232px, 34%);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, .42));
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--radius);
  background: rgba(102, 121, 169, .28);
  border: 1px solid rgba(179, 188, 212, .16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 22px rgba(0, 10, 40, .28);
  text-align: left;
}
.chip__icon {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .12);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: #fff;
}
.chip__icon svg { width: 16px; height: 16px; }
.chip__title { display: block; font-family: var(--font-head); font-weight: 700; font-size: 13.5px; color: #fff; line-height: 1.25; }
.chip__sub { display: block; font-size: 11px; color: rgba(255, 255, 255, .62); line-height: 1.3; }

.hero__chips { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero__chips .chip { position: absolute; max-width: 205px; }
.hero__chips .chip--tl { top: 22%; left: -6%; }
.hero__chips .chip--tc { top: 0; left: 50%; transform: translateX(-50%); }
.hero__chips .chip--tr { top: 22%; right: -6%; }
.hero__chips .chip--bl { top: 62%; left: -6%; }
.hero__chips .chip--br { top: 62%; right: -6%; }

/* Hero carousel: every slide shares one grid cell so the section keeps the
   height of the tallest slide and the crossfade never shifts the page. */
.hero__slides { display: grid; }
.hero-slide { grid-area: 1 / 1; min-width: 0; }
.hero-slide:not(:first-child) { display: none; }          /* no-JS fallback */

/* The outgoing slide fades; the incoming one appears at once and lets its own
   parts animate in, so the two never cross-dissolve into a muddy overlap. */
.js .hero-slide {
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.js .hero-slide.is-current {
  opacity: 1;
  visibility: visible;
  transition: opacity 0s, visibility 0s;
}

/* Staggered entrance. These use the standalone `translate` / `scale`
   properties rather than `transform`, so they never clobber the centring
   transform on .chip--tc or the lift on .btn:hover. */
@keyframes heroInLeft {
  from { opacity: 0; translate: -40px 0; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes heroInRight {
  from { opacity: 0; translate: 44px 0; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes heroInPop {
  from { opacity: 0; translate: 0 14px; scale: .94; }
  to   { opacity: 1; translate: 0 0; scale: 1; }
}

/* Order: heading, description, buttons, phone, then the cards. Kept under ~1s
   end to end so the hero is never blank for long on first paint. */
.js .hero-slide.is-current h1,
.js .hero-slide.is-current .hero__lead,
.js .hero-slide.is-current .btn-row {
  animation: heroInLeft .5s cubic-bezier(.22, .61, .36, 1) both;
}
.js .hero-slide.is-current h1 { animation-delay: .04s; }
.js .hero-slide.is-current .hero__lead { animation-delay: .14s; }
.js .hero-slide.is-current .btn-row { animation-delay: .24s; }

.js .hero-slide.is-current .hero__phone {
  animation: heroInRight .6s cubic-bezier(.22, .61, .36, 1) both;
  animation-delay: .3s;
}
.js .hero-slide.is-current .hero__orbit {
  animation: heroInPop .7s ease both;
  animation-delay: .26s;
}
/* Idle float: the cards keep drifting the whole time they are on screen, not
   only as they arrive. It animates `translate`, so it never fights the
   `transform: translateX(-50%)` that centres .chip--tc. */
@keyframes chipFloat {
  0%   { translate: 0 0; }
  30%  { translate: 2px -8px; }
  60%  { translate: -2px -3px; }
  100% { translate: 0 0; }
}

/* Durations differ per card so the five never drift in lockstep. */
.hero__chips .chip:nth-child(1) { --float: 5.4s; }
.hero__chips .chip:nth-child(2) { --float: 6.2s; }
.hero__chips .chip:nth-child(3) { --float: 5.8s; }
.hero__chips .chip:nth-child(4) { --float: 6.6s; }
.hero__chips .chip:nth-child(5) { --float: 6s; }

/* Static hero (NOOR page): float straight away. */
.js .hero__chips .chip { animation: chipFloat var(--float, 6s) ease-in-out infinite; }

/* Carousel hero: pop in, then hand over to the float. The float carries no
   fill mode, so during its delay the entrance's filled value still applies. */
.js .hero-slide.is-current .chip {
  animation: heroInPop .42s cubic-bezier(.22, .61, .36, 1) both,
             chipFloat var(--float, 6s) ease-in-out infinite;
}
.js .hero-slide.is-current .chip:nth-child(1) { animation-delay: .40s, .84s; }
.js .hero-slide.is-current .chip:nth-child(2) { animation-delay: .46s, .90s; }
.js .hero-slide.is-current .chip:nth-child(3) { animation-delay: .52s, .96s; }
.js .hero-slide.is-current .chip:nth-child(4) { animation-delay: .58s, 1.02s; }
.js .hero-slide.is-current .chip:nth-child(5) { animation-delay: .64s, 1.08s; }

/* Slide controls */
.hero__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-bottom: 26px;
}
.hero__arrow {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: grid; place-items: center;
  padding: 0;
  border: 1px solid rgba(179, 188, 212, .3);
  border-radius: 999px;
  background: rgba(102, 121, 169, .22);
  color: #fff;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.hero__arrow svg { width: 18px; height: 18px; }
.hero__arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #04204a;
}

.hero__dots { display: flex; gap: 8px; justify-content: center; }
.hero__dot {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
  cursor: pointer;
  transition: width .3s ease, background .3s ease;
}
.hero__dot:hover { background: rgba(255, 255, 255, .5); }
.hero__dot.is-on { width: 26px; background: var(--accent); }

/* Trust strip under hero */
.trust-strip {
  background: rgba(102, 121, 169, .18);
  border-top: 1px solid rgba(179, 188, 212, .12);
  border-bottom: 1px solid rgba(179, 188, 212, .12);
}
.trust-strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 48px;
  padding: 18px 0;
}
.trust-strip li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: rgba(255, 255, 255, .86);
}
.trust-strip svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

/* Light surfaces keep dark text even when they sit on a dark band */
.card, .role-panel, .ev-panel, .risk-matrix, .mapping__col, .stack-card,
.compare-bars, .form-card, .dstage, .tab, .acc:not(.acc--dark), .ubil-map__systems .ubil-node--light {
  color: var(--text-primary);
}
.cta-card { color: var(--primary-dark); }
.roadmap { color: #fff; }

/* --------------------------------------------------------------- cards -- */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-secondary); font-size: 14.5px; }

/* Card on a dark band */
.dcard {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #fff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.dcard h3 { font-size: 18px; margin-bottom: 10px; color: #fff; }
.dcard p { color: rgba(255, 255, 255, .68); font-size: 14px; }

.icon-box {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .1);
  display: grid; place-items: center;
  color: var(--accent);
  margin-bottom: 18px;
}
.icon-box svg { width: 20px; height: 20px; }
.icon-box--light {
  background: var(--success-light);
  color: var(--primary-dark);
}
.icon-box--grey { background: var(--accent-gray); color: var(--primary-dark); }

/* Pills / tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  background: var(--surface-card);
}
.section--dark .tag,
.dcard .tag {
  border-color: rgba(179, 188, 212, .24);
  color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .06);
}

.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.badge--danger { background: var(--danger-light); color: var(--danger); }
.badge--warning { background: var(--warning-light); color: #a06a11; }
.badge--success { background: var(--success-light); color: #227a4c; }
.badge--info { background: var(--info-light); color: var(--info); }
.badge--muted { background: var(--surface-hover); color: var(--text-secondary); }

/* Option cards ("Wait / Replace / Add Intelligence") */
.option-card { display: flex; flex-direction: column; height: 100%; }
.option-card .badge { align-self: flex-start; margin-bottom: 18px; }
.option-card h3 { font-size: 24px; margin-bottom: 14px; }
.option-card__note {
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  border: 1px solid transparent;
}
.option-card__note--bad { background: var(--danger-light); color: #9c3737; border-color: rgba(202, 74, 74, .2); }
.option-card__note--worse { background: var(--warning-light); color: #8f5f10; border-color: rgba(233, 162, 59, .25); }
.option-card__note--good { background: var(--success-light); color: #1f7048; border-color: rgba(63, 165, 107, .28); }
.option-card--recommended { position: relative; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(88, 197, 162, .14), var(--shadow); }

/* Cards lift on hover. `translate` is used rather than `transform` because the
   scroll-reveal owns `transform` — the two would otherwise cancel each other. */
.option-card { transition: translate .28s ease, box-shadow .28s ease, border-color .28s ease; }
.option-card:hover { translate: 0 -6px; box-shadow: var(--shadow-lg); }
.option-card--recommended:hover { box-shadow: 0 0 0 3px rgba(88, 197, 162, .26), var(--shadow-lg); }
.option-card:hover .badge { scale: 1.04; }
.option-card .badge { transition: scale .28s ease; transform-origin: left center; }

/* The three cards arrive one after another. Per-property delays keep the
   entrance staggered while leaving the hover lift instant. */
.js .option-card.reveal {
  transition-property: opacity, transform, translate, box-shadow, border-color;
  transition-duration: .55s, .55s, .28s, .28s, .28s;
  transition-timing-function: ease, cubic-bezier(.22, .61, .36, 1), ease, ease, ease;
  transition-delay: 0s, 0s, 0s, 0s, 0s;
}
.js .option-card.reveal:nth-child(2) { transition-delay: .13s, .13s, 0s, 0s, 0s; }
.js .option-card.reveal:nth-child(3) { transition-delay: .26s, .26s, 0s, 0s, 0s; }

/* A twice-repeating ring draws the eye to the recommended option. */
.option-card--recommended::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
}
.js .option-card--recommended.is-in::after {
  animation: recommendRing 1.5s ease-out .6s 2;
}
@keyframes recommendRing {
  from { opacity: .5; box-shadow: 0 0 0 0 rgba(88, 197, 162, .5); }
  to   { opacity: 0; box-shadow: 0 0 0 18px rgba(88, 197, 162, 0); }
}

/* --------------------------------------------------- orchestration flow -- */
.flow { display: grid; justify-items: center; gap: 0; }
.flow__node {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: rgba(102, 121, 169, .3);
  border: 1px solid rgba(179, 188, 212, .16);
  min-width: 200px;
}
.flow__node .chip__icon { background: rgba(255, 255, 255, .14); }
.flow__node--wide { min-width: 320px; }
.flow__node--main {
  background: rgba(88, 197, 162, .1);
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 30px rgba(88, 197, 162, .2);
  padding: 14px 24px;
}
.flow__node--main .chip__icon { background: var(--accent); color: #04204a; }
.flow__node--main .chip__title { font-size: 16px; letter-spacing: .04em; }
.flow__node--main .chip__sub { color: var(--accent); font-weight: 600; letter-spacing: .09em; font-size: 10.5px; text-transform: uppercase; }
.flow__link { width: 2px; height: 34px; background: repeating-linear-gradient(to bottom, rgba(88,197,162,.55) 0 6px, transparent 6px 12px); }
/* A fixed tile lets the dashes scroll seamlessly (see flowDash). */
.flow__link,
.flow__branch::before,
.flow__branch .flow__node::before { background-size: 2px 12px; transform-origin: top; }
.flow__branch {
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding-top: 6px;
  border-top: 2px dashed rgba(88, 197, 162, .3);
  margin-top: 28px;
  position: relative;
}
.flow__branch::before {
  content: "";
  position: absolute;
  top: -34px; left: 50%;
  width: 2px; height: 34px;
  background: repeating-linear-gradient(to bottom, rgba(88,197,162,.55) 0 6px, transparent 6px 12px);
}
.flow__branch .flow__node { min-width: 0; margin-top: 26px; }
.flow__branch .flow__node::before {
  content: "";
  position: absolute;
  top: -26px; left: 50%;
  width: 2px; height: 26px;
  background: repeating-linear-gradient(to bottom, rgba(88,197,162,.55) 0 6px, transparent 6px 12px);
}
.flow__branch .flow__node { position: relative; }

/* Flow chart: the diagram assembles itself top-to-bottom when it scrolls in,
   then the connectors keep a slow dash-flow to read as live traffic. */
@keyframes flowNodeIn {
  from { opacity: 0; translate: 0 16px; scale: .96; }
  to   { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes flowLinkIn {
  from { opacity: 0; scale: 1 0; }
  to   { opacity: 1; scale: 1 1; }
}
@keyframes flowDash {
  to { background-position: 0 12px; }
}
@keyframes flowRuleIn {
  from { border-top-color: transparent; }
  to   { border-top-color: rgba(88, 197, 162, .3); }
}
@keyframes flowPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(88, 197, 162, .2); }
  50%      { box-shadow: 0 0 48px rgba(88, 197, 162, .42); }
}

/* The container only carries the scroll trigger; its parts do the moving. */
.js .flow.reveal { opacity: 1; transform: none; transition: none; }
.js .flow.reveal .flow__node,
.js .flow.reveal .flow__link { opacity: 0; }
.js .flow.reveal .flow__branch { border-top-color: transparent; }
.js .flow.reveal .flow__branch::before,
.js .flow.reveal .flow__branch .flow__node::before { opacity: 0; }

.js .flow.is-in > .flow__node { animation: flowNodeIn .5s cubic-bezier(.22, .61, .36, 1) both; }
.js .flow.is-in > .flow__link { animation: flowLinkIn .35s ease both, flowDash 1.1s linear .55s infinite; }

.js .flow.is-in > .flow__node:nth-child(1) { animation-delay: .04s; }
.js .flow.is-in > .flow__link:nth-child(2) { animation-delay: .16s, .5s; }
.js .flow.is-in > .flow__node:nth-child(3) { animation-delay: .26s; }
.js .flow.is-in > .flow__link:nth-child(4) { animation-delay: .38s, .6s; }
.js .flow.is-in > .flow__node:nth-child(5) { animation-delay: .48s; }

.js .flow.is-in .flow__node--main {
  animation: flowNodeIn .5s cubic-bezier(.22, .61, .36, 1) .48s both,
             flowPulse 2.8s ease-in-out 1.1s infinite;
}

.js .flow.is-in .flow__branch { animation: flowRuleIn .5s ease .7s both; }
.js .flow.is-in .flow__branch::before {
  animation: flowLinkIn .3s ease .64s both, flowDash 1.1s linear 1s infinite;
}
.js .flow.is-in .flow__branch .flow__node {
  animation: flowNodeIn .45s cubic-bezier(.22, .61, .36, 1) both;
}
.js .flow.is-in .flow__branch .flow__node::before {
  animation: flowLinkIn .3s ease both, flowDash 1.1s linear 1.3s infinite;
}
.js .flow.is-in .flow__branch .flow__node:nth-child(1) { animation-delay: .82s; }
.js .flow.is-in .flow__branch .flow__node:nth-child(2) { animation-delay: .89s; }
.js .flow.is-in .flow__branch .flow__node:nth-child(3) { animation-delay: .96s; }
.js .flow.is-in .flow__branch .flow__node:nth-child(4) { animation-delay: 1.03s; }
.js .flow.is-in .flow__branch .flow__node:nth-child(1)::before { animation-delay: .78s, 1.3s; }
.js .flow.is-in .flow__branch .flow__node:nth-child(2)::before { animation-delay: .85s, 1.3s; }
.js .flow.is-in .flow__branch .flow__node:nth-child(3)::before { animation-delay: .92s, 1.3s; }
.js .flow.is-in .flow__branch .flow__node:nth-child(4)::before { animation-delay: .99s, 1.3s; }

/* ------------------------------------------------------ portfolio cards -- */
.portfolio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  background: rgba(102, 121, 169, .22);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 24px;
}
.portfolio-hero h3 { font-size: 40px; margin: 6px 0 16px; letter-spacing: -.02em; }
.portfolio-hero p { color: rgba(255, 255, 255, .72); font-size: 15px; }
.portfolio-hero__shot { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }

.portfolio-card { display: flex; flex-direction: column; }
.portfolio-card__top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.portfolio-card__top .icon-box { margin: 0; }
.portfolio-card__kicker {
  font-family: var(--font-head); font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.portfolio-card h3 { font-size: 22px; margin: 2px 0 0; }
.portfolio-card .btn { margin-top: 22px; align-self: flex-start; }

/* ----------------------------------------------------------- flagship  -- */
.feature-card { text-align: center; padding: 26px 20px; }
.feature-card .icon-box { margin-inline: auto; }
.feature-card h3 { font-size: 16px; }
.feature-card p { font-size: 13px; }

/* -------------------------------------------------------------- tabs   -- */
.tabs { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 28px; }
.tab {
  flex: 1 1 150px;
  max-width: 240px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--surface-card);
  color: var(--primary-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
  box-shadow: var(--shadow-sm);
}
.tab:hover { background: var(--surface-hover); }
.tab.is-active { background: var(--accent); color: #04204a; }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.tab-panel.is-active.is-anim { animation: fade .28s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.role-panel { background: #fff; border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow-lg); }
.role-panel__head { display: flex; gap: 16px; align-items: flex-start; }
.role-panel__head h3 { font-size: 26px; }
.role-panel__body { color: var(--text-secondary); margin: 12px 0 0; font-size: 15px; }
.role-panel hr { border: 0; border-top: 1px solid var(--border-subtle); margin: 28px 0; }
.check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 7px 0;
  color: var(--primary-dark);
  font-size: 14.5px;
  font-weight: 500;
}
.check-list svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.dcard .check-list li,
.check-list--invert li { color: rgba(255, 255, 255, .82); font-weight: 400; }

/* --------------------------------------------------------------- stats -- */
.mega-stat { text-align: center; }
.mega-stat__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(56px, 9vw, 104px);
  line-height: 1;
  color: #eef6f1;
  letter-spacing: -.03em;
}
.mega-stat h2 { font-size: clamp(20px, 2.6vw, 28px); margin-top: 18px; }
.mega-stat p { max-width: 700px; margin: 14px auto 0; color: rgba(255, 255, 255, .7); font-size: 15px; }

.partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 44px; margin: 34px 0 46px; }
.partners span {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .55);
  font-size: 15px;
}

.stat-card {
  text-align: center;
  padding: 26px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--dark-border);
  background: rgba(102, 121, 169, .12);
}
.stat-card b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 32px);
  color: var(--accent);
  line-height: 1.1;
}
.stat-card span { font-size: 13px; color: rgba(255, 255, 255, .72); }

.stat-card--light { background: #fff; border-color: var(--border-subtle); box-shadow: var(--shadow-sm); }
.stat-card--light b { color: var(--primary); font-size: clamp(28px, 3.4vw, 38px); }
.stat-card--light span { color: var(--text-secondary); }

/* -------------------------------------------------------------- footer -- */
.site-footer { background: var(--accent-gray); padding: 64px 0 32px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
.footer__col h4 {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.footer__col li { margin-bottom: 12px; }
.footer__col a { color: var(--text-secondary); font-size: 14.5px; transition: color .18s ease; }
.footer__col a:hover { color: var(--primary); }
.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-secondary);
  font-size: 13.5px;
}

/* ------------------------------------------------------------- CTA band -- */
.cta-band { text-align: center; padding: 84px 0; }
.cta-band h2 { font-size: clamp(26px, 3.8vw, 42px); }
.cta-band p { max-width: 660px; margin: 18px auto 30px; color: rgba(255, 255, 255, .74); }

/* ============================================================ NOOR page == */
.compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
.compare__arrow { color: var(--text-tertiary); }
.compare__arrow svg { width: 30px; height: 30px; }
.compare-card h3 { font-size: 21px; margin: 16px 0 20px; }
.compare-card li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 14.5px; color: var(--text-secondary); }
.compare-card li svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; }
.compare-card--bad li svg { color: var(--danger); }
.compare-card--good { border-color: var(--accent); }
.compare-card--good li svg { color: var(--accent); }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.pill-row .tag { background: var(--info-light); border-color: transparent; color: var(--primary); font-weight: 600; }

/* Accordion */
.accordion { display: grid; gap: 12px; }
.acc {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.acc__btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  background: none; border: 0; cursor: pointer;
  text-align: left;
  font-family: var(--font-head); font-weight: 700; font-size: 15.5px;
  color: var(--primary-dark);
}
.acc__btn svg { width: 18px; height: 18px; color: var(--accent); transition: transform .24s ease; flex-shrink: 0; }
.acc.is-open .acc__btn svg { transform: rotate(180deg); }
.acc__panel { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc__panel > div { padding: 0 22px 20px; color: var(--text-secondary); font-size: 14.5px; }

/* Dark accordion (UBIL security) */
.acc--dark { background: transparent; border: 0; border-bottom: 1px solid rgba(179, 188, 212, .16); border-radius: 0; box-shadow: none; }
.acc--dark .acc__btn { color: rgba(255, 255, 255, .55); padding: 22px 4px; font-size: 19px; gap: 20px; }
.acc--dark.is-open .acc__btn { color: #fff; }
.acc--dark .acc__num { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .1em; width: 26px; flex-shrink: 0; }
.acc--dark .acc__panel > div { padding: 0 4px 22px 30px; color: rgba(255, 255, 255, .72); }
.acc--dark .dot-list li { display: flex; gap: 10px; padding: 4px 0; }
.acc--dark .dot-list li::before { content: "•"; color: var(--accent); }

/* Architecture layer stepper */
.stepper {
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.step {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: none; border: 0; cursor: pointer;
  min-width: 96px;
  padding: 4px;
  color: rgba(255, 255, 255, .6);
  font-size: 12.5px;
  font-family: var(--font-head);
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}
.step__icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: rgba(102, 121, 169, .3);
  display: grid; place-items: center;
  transition: background .2s ease, color .2s ease;
  color: #fff;
}
.step__icon svg { width: 22px; height: 22px; }
.step.is-active { color: var(--accent); }
.step.is-active .step__icon { background: var(--accent); color: #04204a; }
.step-arrow { color: rgba(179, 188, 212, .4); align-self: center; margin-top: -22px; flex-shrink: 0; }
.step-arrow svg { width: 22px; height: 22px; }

.layer-panel {
  background: rgba(102, 121, 169, .26);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-xl);
  padding: 34px 36px;
  margin-top: 34px;
}
.layer-panel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.layer-panel h3 { font-size: 22px; }
.layer-panel__idx { color: var(--accent); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.layer-panel p { color: rgba(255, 255, 255, .74); margin-top: 16px; font-size: 15px; }
.round-btn {
  width: 42px; height: 42px; border-radius: 999px;
  border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  transition: background .2s ease, color .2s ease;
}
.round-btn:hover { background: rgba(255, 255, 255, .28); }
.round-btn--light { background: #fff; color: var(--accent); }
.round-btn svg { width: 18px; height: 18px; }
.dots { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.dots i { width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .28); }
.dots i.is-on { width: 24px; background: var(--accent); }

/* Deployment steps */
.deploy-step { text-align: center; padding: 0 12px; }
.deploy-step__num {
  width: 52px; height: 52px; border-radius: 999px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 15px;
  margin: 0 auto 18px;
}
.deploy-step h3 { font-size: 17px; margin-bottom: 10px; }
.deploy-step p { color: var(--text-secondary); font-size: 14px; }

/* ==================================================== Delivery (DBD) page = */
.timeline-band {
  background: rgba(102, 121, 169, .28);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-xl);
  padding: 30px 34px;
  margin-top: 46px;
}
.timeline-band__head {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: var(--font-head); font-size: 12px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 26px;
}
.timeline-band__head span:last-child { color: var(--accent); }
.timeline-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 6px; overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .28) transparent;
}
.tl-step { text-align: center; min-width: 108px; }
.tl-step__icon {
  width: 54px; height: 54px; border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .1);
  display: grid; place-items: center; margin: 0 auto 12px;
  color: #fff;
}
.tl-step__icon svg { width: 20px; height: 20px; }
.tl-step b { display: block; font-family: var(--font-head); font-size: 14.5px; }
.tl-step span { font-size: 12.5px; color: rgba(255, 255, 255, .62); }
.tl-arrow { color: rgba(179, 188, 212, .5); margin-top: 16px; flex-shrink: 0; }

/* Risk matrix */
.risk-matrix {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  box-shadow: var(--shadow);
}
.risk-cell { padding: 34px 38px; border-right: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.risk-cell:nth-child(2n) { border-right: 0; }
.risk-cell:nth-last-child(-n+2) { border-bottom: 0; }
.risk-cell__top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.risk-cell__top em { font-style: italic; color: var(--text-secondary); font-size: 14px; }
.risk-cell h3 { font-size: 19px; line-height: 1.35; margin-bottom: 12px; }
.risk-cell p { color: var(--text-secondary); font-size: 14px; }

/* Discipline cards (numbered) */
.disc-card { position: relative; overflow: hidden; }
.disc-card__num {
  position: absolute; top: 18px; right: 24px;
  font-family: var(--font-head); font-weight: 800; font-size: 42px;
  color: rgba(255, 255, 255, .07);
  line-height: 1;
}

/* Evidence list + panel */
.evidence { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 40px; align-items: start; }
.ev-list { display: grid; gap: 4px; }
.ev-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 16px;
  background: none; border: 0; border-left: 3px solid transparent;
  cursor: pointer; text-align: left; width: 100%;
  transition: border-color .2s ease;
}
.ev-item span { font-size: 12px; color: var(--text-tertiary); font-weight: 700; padding-top: 3px; }
.ev-item b { font-family: var(--font-head); font-size: 16px; color: var(--text-secondary); display: block; }
.ev-item small { color: var(--text-secondary); font-size: 13px; display: none; }
.ev-item.is-active { border-left-color: var(--accent); }
.ev-item.is-active b { color: var(--primary-dark); }
.ev-item.is-active small { display: block; }

/* Horizontal icon variant used by the seven-phase methodology stepper */
.ev-item--icon {
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-left: 0;
  width: auto;
  min-width: 108px;
  padding: 4px;
}
.ev-item--icon .icon-box { margin: 0; width: 54px; height: 54px; border-radius: 14px; transition: background .2s ease, color .2s ease; }
.ev-item--icon b { font-size: 14px; text-align: center; }
.ev-item--icon.is-active .icon-box { background: var(--primary-dark); color: #fff; }

.ev-panel { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: 36px 40px; box-shadow: var(--shadow); position: relative; }
.ev-panel__num { position: absolute; top: 26px; right: 34px; font-family: var(--font-head); font-weight: 800; font-size: 54px; color: var(--surface-hover); line-height: 1; }
.ev-panel h3 { font-size: 28px; }
.ev-panel > p { color: var(--text-secondary); font-size: 14.5px; margin-top: 4px; }
.ev-panel hr { border: 0; border-top: 1px solid var(--border-subtle); margin: 24px 0; }

/* Engagement models */
.model { display: flex; gap: 18px; align-items: flex-start; }
.model__num {
  width: 46px; height: 46px; border-radius: 999px; flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 14px;
  background: rgba(102, 121, 169, .3); color: rgba(255, 255, 255, .7);
}
.model.is-lead .model__num { background: #fff; color: var(--primary-dark); }
.model h3 { font-size: 20px; }
.model__sub { color: var(--accent); font-size: 13.5px; font-weight: 600; margin-top: 4px; }
.model__body { color: rgba(255, 255, 255, .72); font-size: 14.5px; margin-top: 14px; }
.model__quote {
  border-left: 2px solid var(--accent);
  padding-left: 12px;
  margin-top: 16px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .82);
}

/* ============================================================= UBIL page = */
.ubil-map {
  background: rgba(102, 121, 169, .26);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-xl);
  padding: 34px;
  margin-top: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.35fr);
  gap: 28px;
  align-items: center;
}
.ubil-map__label {
  font-family: var(--font-head); font-size: 11.5px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 16px;
  display: block;
}
.ubil-map__label--accent { color: var(--accent); text-align: center; }
.ubil-map__label--right { text-align: right; }
.ubil-node {
  padding: 14px 20px;
  border-radius: var(--radius);
  background: rgba(102, 121, 169, .45);
  border: 1px solid rgba(179, 188, 212, .14);
  font-size: 15px;
  margin-bottom: 12px;
}
.ubil-map__core { text-align: center; }
.ubil-map__pipe { width: 1px; height: 60px; background: rgba(179, 188, 212, .3); margin: 0 auto; }
.ubil-badge {
  display: inline-grid; place-items: center;
  padding: 14px 22px; border-radius: 999px;
  background: var(--accent); color: #04204a;
  font-family: var(--font-head); font-weight: 800; font-size: 14px;
  box-shadow: 0 0 26px rgba(88, 197, 162, .4);
}
.ubil-map__systems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ubil-map__systems .ubil-node { margin: 0; }

.stack-arrow {
  display: flex;
  justify-content: center;
  padding: 8px 0;
  color: rgba(179, 188, 212, .6);
}
.stack-arrow svg { width: 22px; height: 22px; }

/* Numbered feature rows */
.num-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.num-row:first-child { border-top: 1px solid var(--border-subtle); }
.num-row__n { font-family: var(--font-head); font-weight: 800; font-size: 32px; color: var(--text-tertiary); }
.num-row h3 { font-size: 17px; }
.num-row p { color: var(--text-secondary); font-size: 14.5px; }

/* Mapping (dialects) */
.mapping { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; align-items: center; }
.mapping__col { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.mapping__label { font-family: var(--font-head); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 18px; display: block; }
.mapping__label--accent { color: var(--accent); }
.mapping__row { padding: 13px 18px; border-radius: 10px; font-size: 14px; margin-bottom: 10px; }
.mapping__row--raw { border: 1px dashed var(--border-subtle); color: var(--text-secondary); }
.mapping__row--out { background: var(--surface-hover); color: var(--primary-dark); font-weight: 600; }

.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mini-grid > div { padding: 0 26px; border-right: 1px solid var(--border-subtle); }
.mini-grid > div:last-child { border-right: 0; }
.mini-grid h4 { font-family: var(--font-head); font-size: 15.5px; margin-bottom: 6px; }
.mini-grid p { color: var(--text-secondary); font-size: 13.5px; }

/* Connector coverage */
.legend { display: flex; justify-content: center; gap: 26px; margin-bottom: 26px; font-size: 13.5px; color: rgba(255, 255, 255, .78); flex-wrap: wrap; }
.legend i { width: 8px; height: 8px; border-radius: 999px; display: inline-block; margin-right: 8px; }
.conn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.conn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 18px; border-radius: 999px;
  background: rgba(102, 121, 169, .22);
  border: 1px solid rgba(179, 188, 212, .16);
  font-size: 14px;
  color: rgba(255, 255, 255, .88);
}
.conn i { width: 7px; height: 7px; border-radius: 999px; }

/* Deployment timeline */
.dtimeline { position: relative; padding-left: 34px; display: grid; gap: 20px; }
.dtimeline::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, rgba(88,197,162,.6) 0 6px, transparent 6px 12px);
}
.dstage { position: relative; background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 24px 28px; box-shadow: var(--shadow-sm); }
.dstage::before {
  content: ""; position: absolute; left: -34px; top: 34px;
  width: 12px; height: 12px; border-radius: 999px;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(88, 197, 162, .18);
}
.dstage__grid { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 24px; align-items: start; }
.dstage__label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-tertiary); }
.dstage__day { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--primary-dark); }
.dstage__title { display: flex; align-items: center; gap: 12px; }
.dstage__title h3 { font-size: 17px; }
.dstage p { color: var(--text-secondary); font-size: 14px; margin-top: 12px; }
.dstage__elim { text-align: right; }
.dstage__elim span { display: flex; align-items: center; gap: 6px; color: var(--danger); font-size: 13.5px; justify-content: flex-end; margin-top: 4px; }
.dstage__elim svg { width: 14px; height: 14px; }

.compare-bars { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 26px 30px; margin-top: 28px; box-shadow: var(--shadow-sm); }
.compare-bars__head { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 20px; }
.compare-bars__head b { color: var(--primary-dark); letter-spacing: 0; text-transform: none; font-size: 13.5px; }
.bar-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) 60px; gap: 16px; align-items: center; margin-bottom: 10px; font-size: 13.5px; }
.bar-track { display: block; height: 14px; border-radius: 999px; background: var(--surface-hover); overflow: hidden; }
.bar-fill { display: block; height: 100%; min-width: 6px; border-radius: 999px; }

/* Roadmap card */
.roadmap { background: var(--primary-dark); color: #fff; border-radius: var(--radius-lg); padding: 32px 34px; }
.roadmap__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.roadmap h3 { font-size: 24px; margin-bottom: 22px; }
.roadmap__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.roadmap__col h4 { font-family: var(--font-head); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.roadmap__col h4 i { width: 7px; height: 7px; border-radius: 999px; }
.roadmap__col li { color: rgba(255, 255, 255, .78); font-size: 13.5px; padding: 4px 0; }
.roadmap__col li::before { content: "· "; color: var(--accent); }

.cta-card { background: var(--accent); color: var(--primary-dark); border-radius: var(--radius-lg); padding: 32px; text-align: center; display: grid; place-content: center; }
.cta-card h3 { font-size: 21px; margin-bottom: 10px; }
.cta-card p { font-size: 14px; margin-bottom: 20px; color: rgba(0, 22, 78, .8); }

.ref-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.ref-card__ref { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--text-secondary); }

/* ========================================================= Super App page = */
.stack-card { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.stack-card__label { font-family: var(--font-head); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--primary-dark); margin-bottom: 18px; display: block; }
.stack-layer { padding: 15px 20px; border-radius: 10px; font-size: 14.5px; font-weight: 600; margin-bottom: 10px; }
.stack-layer--noor { background: var(--primary); color: #fff; }
.stack-layer--super { background: var(--accent); color: #04204a; }
.stack-layer--delivery { background: var(--surface-hover); color: var(--primary-dark); }
.stack-card small { display: block; text-align: center; color: var(--text-secondary); font-size: 12.5px; margin-top: 14px; }

.module-card { background: rgba(102, 121, 169, .2); border: 1px solid var(--dark-border); border-radius: var(--radius-xl); padding: 26px 22px; }
.module-card__label { font-family: var(--font-head); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.module-card h3 { font-size: 24px; margin: 6px 0 20px; }
.module-card img { border-radius: 14px; box-shadow: 0 14px 34px rgba(0, 8, 30, .34); }

/* Flywheel */
.flywheel { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.flywheel__hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 118px; height: 118px; border-radius: 999px;
  background: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 30px rgba(0, 22, 78, .14);
  z-index: 2;
}
.flywheel__hub div {
  width: 84px; height: 84px; border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 10.5px;
  letter-spacing: .08em; text-align: center; line-height: 1.25;
  border: 2px solid rgba(88, 197, 162, .5);
  outline: 2px dashed rgba(88, 197, 162, .45);
  outline-offset: 8px;
}
.lever { position: relative; overflow: hidden; padding: 34px 36px; min-height: 250px; }
.lever__label { font-family: var(--font-head); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary); border-left: 3px solid var(--accent); padding-left: 10px; }
.lever h3 { font-size: 26px; margin: 14px 0 12px; }
.lever p { color: var(--text-secondary); font-size: 14.5px; max-width: 420px; }
.lever__stat { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.lever__stat b { font-family: var(--font-head); font-weight: 800; font-size: 28px; color: var(--accent); }
.lever__stat span { font-size: 12px; }
.lever__stat span b { display: block; font-size: 12.5px; color: var(--primary-dark); letter-spacing: .04em; text-transform: uppercase; }

/* ============================================================ Contact === */
.form-card { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: 44px; box-shadow: var(--shadow-lg); max-width: 1020px; margin-inline: auto; }
.form-step { font-family: var(--font-head); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.form-card h2 { font-size: 26px; margin: 6px 0 24px; }

.intent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.intent {
  position: relative;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  background: var(--surface-disabled);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
  display: block;
}
.intent input { position: absolute; opacity: 0; pointer-events: none; }
.intent b { display: block; font-family: var(--font-head); font-size: 15px; color: var(--primary-dark); }
.intent span { font-size: 13px; color: var(--text-secondary); }
.intent__tick { position: absolute; top: 18px; right: 18px; color: var(--accent); opacity: 0; transition: opacity .18s ease; }
.intent__tick svg { width: 20px; height: 20px; }
.intent:hover { background: var(--surface-hover); }
.intent:has(input:checked) { border-color: var(--accent); background: var(--success-light); }
.intent:has(input:checked) .intent__tick { opacity: 1; }
.intent:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }

.form-card hr { border: 0; border-top: 1px solid var(--border-subtle); margin: 38px 0; }

.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 22px; }
.field { display: block; }
.field > span { display: block; font-size: 13.5px; font-weight: 600; color: var(--primary-dark); margin-bottom: 8px; }
.field > span i { color: var(--danger); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: #fff;
  font-size: 14.5px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-tertiary); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(26, 53, 125, .12);
}
.field--full { grid-column: 1 / -1; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; font-size: 13.5px; color: var(--text-secondary); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.consent a { color: var(--primary); text-decoration: underline; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 28px; }

.form-status {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--success-light);
  color: #1f7048;
  font-size: 14px;
  display: none;
}
.form-status.is-visible { display: block; }

/* ======================================================= long-form pages == */
.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  border-left: 2px solid var(--border-subtle);
  padding-left: 20px;
}
.legal-toc h2 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.legal-toc li { margin-bottom: 11px; }
.legal-toc a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color .18s ease;
}
.legal-toc a:hover { color: var(--primary); }

.legal { max-width: 760px; }
.legal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-bottom: 22px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13.5px;
  color: var(--text-secondary);
}
.legal__meta b { color: var(--primary-dark); font-weight: 600; }

.legal section { scroll-margin-top: calc(var(--nav-h) + 20px); }
.legal section + section { margin-top: 44px; }
.legal h2 { font-size: 24px; margin-bottom: 14px; }
.legal h3 { font-size: 17px; margin: 26px 0 10px; }
.legal p { color: var(--text-secondary); font-size: 15px; margin-bottom: 14px; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 0; }
.legal li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
  color: var(--text-secondary);
  font-size: 15px;
}
.legal ul > li::before {
  content: "";
  position: absolute;
  left: 4px; top: 10px;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
}
.legal ol { counter-reset: legal; }
.legal ol > li { counter-increment: legal; }
.legal ol > li::before {
  content: counter(legal) ".";
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}
.legal a:not(.btn) { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--primary-dark); font-weight: 600; }

.legal-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 14px; }
.legal-table th, .legal-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}
.legal-table th {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--accent-gray);
  font-size: 13px;
}
.legal-table td { color: var(--text-secondary); }
.legal-table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; margin-bottom: 18px; }

/* Draft notice — remove once the page has been through legal review. */
.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--warning-light);
  border: 1px solid rgba(233, 162, 59, .35);
  margin-bottom: 32px;
}
.notice svg { width: 20px; height: 20px; color: #a06a11; flex-shrink: 0; margin-top: 1px; }
.notice p { color: #8f5f10; font-size: 14px; margin: 0; }
.notice b { color: #6f4a0c; }

/* Simple value / principle tiles used on About and Partners */
.value-card .icon-box { margin-bottom: 16px; }
.value-card h3 { font-size: 17px; }

.lead-text {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-secondary);
  max-width: 760px;
}
.section--dark .lead-text { color: var(--dark-text); }

.timeline-list { border-left: 2px solid var(--border-subtle); padding-left: 28px; }
.timeline-list li { position: relative; padding-bottom: 30px; }
.timeline-list li:last-child { padding-bottom: 0; }
.timeline-list li::before {
  content: "";
  position: absolute;
  left: -35px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(88, 197, 162, .16);
}
.timeline-list b {
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.timeline-list span { color: var(--text-secondary); font-size: 14.5px; }

@media (max-width: 980px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; border-left: 0; border-top: 1px solid var(--border-subtle); padding: 20px 0 0; }
  .legal-toc ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
  .legal-toc li { margin: 0; }
}

/* --------------------------------------------------------- scroll reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================== responsive == */
@media (max-width: 1240px) {
  .nav__links { gap: 18px; }
  .nav__links a:not(.btn) { font-size: 14px; }
  .hero__chips .chip--tl, .hero__chips .chip--bl { left: -8%; }
  .hero__chips .chip--tr, .hero__chips .chip--br { right: -10%; }
}

@media (max-width: 1080px) {
  :root { --nav-h: 76px; }

  .nav__toggle { display: grid; margin-left: auto; }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: var(--primary-dark);
    border-bottom: 1px solid rgba(179, 188, 212, .16);
    padding: 8px 24px 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a:not(.btn) { display: block; padding: 14px 2px; border-bottom: 1px solid rgba(179, 188, 212, .12); font-size: 16px; }
  .nav__links a.is-active::after { display: none; }
  .nav__links .btn { display: inline-flex; margin-top: 18px; width: 100%; }

  .hero__inner { grid-template-columns: 1fr; padding: 56px 0 44px; gap: 40px; }
  .hero__lead { max-width: none; }
  .hero__visual { min-height: 0; }
  .hero__chips { display: none; }
  .hero__orbit { display: none; }
  .hero__phone { width: min(260px, 62%); }

  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .portfolio-hero { grid-template-columns: 1fr; padding: 30px; }
  .portfolio-hero h3 { font-size: 32px; }

  .compare { grid-template-columns: 1fr; }
  .compare__arrow { justify-self: center; transform: rotate(90deg); }

  .evidence { grid-template-columns: 1fr; gap: 24px; }
  .grid--phase, .grid--sdk { grid-template-columns: 1fr; }
  .ubil-map { grid-template-columns: 1fr; }
  .ubil-map__pipe { display: none; }
  .ubil-map__core { display: flex; align-items: center; justify-content: center; gap: 16px; }
  .ubil-map__label--accent { display: none; }
  .ubil-map__label--right { text-align: left; }

  .mapping { grid-template-columns: 1fr; }
  .mapping__arrow { justify-self: center; transform: rotate(90deg); }

  .num-row { grid-template-columns: 60px minmax(0, 1fr); row-gap: 8px; }
  .num-row p { grid-column: 2; }

  /* The 2x2 flywheel reads clockwise (01 02 / 04 03); restore 01-04 order when it stacks */
  .flywheel { grid-template-columns: 1fr; }
  .flywheel > :nth-child(4) { order: 2; }
  .flywheel > :nth-child(5) { order: 1; }
  .flywheel__hub { display: none; }

  .field-grid, .intent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roadmap__cols { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section--tight { padding: 52px 0; }
  .section-head { margin-bottom: 36px; }

  .grid-5, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }

  .risk-matrix { grid-template-columns: 1fr; }
  .risk-cell { border-right: 0; padding: 26px 24px; }
  .risk-cell:last-child { border-bottom: 0; }

  .mini-grid { grid-template-columns: 1fr; gap: 22px; }
  .mini-grid > div { border-right: 0; padding: 0; }

  .dstage__grid { grid-template-columns: 1fr; gap: 12px; }
  .dstage__elim { text-align: left; }
  .dstage__elim span { justify-content: flex-start; }

  .ubil-map__systems { grid-template-columns: 1fr; }
  .role-panel, .form-card { padding: 26px 22px; }
  .ev-panel { padding: 26px 24px; }
  .ev-panel__num { font-size: 38px; top: 20px; right: 22px; }

  .field-grid, .intent-grid { grid-template-columns: 1fr; }
  .form-actions { justify-content: stretch; }
  .form-actions .btn { width: 100%; }

  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .tabs { gap: 8px; }
  .tab { flex: 1 1 100%; max-width: none; }

  /* Home hero is centred on mobile, as in the design */
  .hero__inner { text-align: center; }
  .hero .btn-row { justify-content: center; }
  .hero__lead { margin-inline: auto; }

  /* Stat tiles stay 2-up rather than dropping to a single column */
  .grid.stats-2up { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .stats-2up .stat-card { padding: 20px 12px; }
  .stats-2up > :last-child:nth-child(odd) { grid-column: 1 / -1; }

  /* Flagship features become icon-left rows */
  .feature-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
    text-align: left;
    padding: 20px;
  }
  .feature-card .icon-box { margin: 0; grid-row: 1 / span 2; }
  .feature-card h3 { font-size: 15.5px; margin-bottom: 5px; }

  /* Role tabs wrap as pills instead of stacking full width */
  .tabs { justify-content: flex-start; gap: 10px; }
  .tab { flex: 0 1 auto; max-width: none; padding: 11px 18px; font-size: 14px; }

  /* Orchestration flow: uniform stacked nodes, no horizontal branch rule */
  .flow { width: 100%; }
  .flow__node, .flow__node--wide { width: 100%; min-width: 0; }
  .flow__branch { width: 100%; border-top: 0; margin-top: 0; padding-top: 0; gap: 0; }
  .flow__branch::before { display: none; }
  .flow__branch .flow__node { margin-top: 34px; }
  .flow__branch .flow__node::before { top: -34px; height: 34px; }

  /* Programme timeline + phase/layer steppers wrap instead of scrolling */
  .timeline-row, .stepper { flex-wrap: wrap; justify-content: center; overflow-x: visible; gap: 20px 12px; }
  .tl-arrow, .step-arrow { display: none; }
  .tl-step, .step { min-width: 44%; }
  .ev-item--icon { min-width: 28%; }

  /* Role panel: icon above the copy so the paragraph gets full width */
  .role-panel__head { flex-direction: column; gap: 12px; }

  /* Deployment comparison bars */
  .bar-row { grid-template-columns: 74px minmax(0, 1fr) 48px; gap: 10px; font-size: 12.5px; }
  .compare-bars { padding: 20px; }
  .compare-bars__head { flex-direction: column; gap: 4px; }

  /* Numbered rows sit tighter */
  .num-row { grid-template-columns: 46px minmax(0, 1fr); gap: 6px 14px; padding: 20px 0; }
  .num-row__n { font-size: 26px; }

  /* Phase panel side card */
  .grid--phase, .grid--sdk { gap: 20px; }

  /* comfortable touch target for the slide controls */
  .hero__arrow { width: 44px; height: 44px; }

  .lever { padding: 26px 24px; min-height: 0; }
  .lever h3 { font-size: 22px; }
  .portfolio-hero { padding: 24px; }
  .portfolio-hero h3 { font-size: 28px; }
  .layer-panel { padding: 24px; }
  .timeline-band { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    /* Without this the looping dash-flow and pulse would still spin forever. */
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .js .reveal { opacity: 1; transform: none; }
  /* The flow parts are hidden until their animation runs; show them outright. */
  .js .flow.reveal .flow__node,
  .js .flow.reveal .flow__link,
  .js .flow.reveal .flow__branch::before,
  .js .flow.reveal .flow__branch .flow__node::before { opacity: 1; }
  .js .flow.reveal .flow__branch { border-top-color: rgba(88, 197, 162, .3); }
}
