/* ==========================================================================
   DIGITIZE — Company Profile
   Shared by en.html and ar.html. Layout is written with logical properties,
   so the Arabic page mirrors itself; [dir="rtl"] only swaps type settings
   and the direction helpers below.
   ========================================================================== */

/* ---------- Tokens ---------- */

:root {
  /* Brand gradient, sampled from the DIGITIZE wordmark */
  --brand-blue: #015de6;
  --brand-sky: #00c4ff;

  /* Neutrals, tinted toward the brand hue */
  --paper: oklch(0.977 0.005 250);
  --paper-2: oklch(0.952 0.011 250);
  --ink: oklch(0.215 0.05 262);
  --text: oklch(0.34 0.034 260);
  --muted: oklch(0.5 0.03 258);
  --rule: oklch(0.885 0.014 255);
  --rule-strong: oklch(0.8 0.02 255);
  --accent-ink: oklch(0.49 0.2 262);

  --night: oklch(0.205 0.055 262);
  --night-2: oklch(0.26 0.062 262);
  --on-night: oklch(0.965 0.008 250);
  --on-night-muted: oklch(0.79 0.03 252);
  --night-rule: oklch(0.37 0.05 260);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-latin: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --stretch-display: 118%;
  --stretch-heading: 112%;
  --stretch-ui: 106%;
  --tracking-label: 0.14em;

  /* Reading-direction helpers */
  --flow: to right;
  --dir: 1;
  --origin-start: left;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --gutter: clamp(1.25rem, 4.6vw, 4.5rem);
  --maxw: 84rem;
  --col-gap: clamp(1rem, 2.4vw, 2.5rem);
  --section-y: clamp(5rem, 10vw, 9rem);
  --header-h: 4.5rem;

  color-scheme: light;
}

/* Archivo leads the Arabic display stack on purpose: it only carries Latin
   glyphs, so headline digits and Latin terms match the English edition while
   every Arabic glyph falls through to Noto Kufi. Running text keeps IBM Plex
   Arabic first, whose Latin is drawn to sit with its Arabic. */
:root[dir="rtl"] {
  --font-display: "Archivo", "Noto Kufi Arabic", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Archivo", Tahoma, sans-serif;
  --stretch-display: 100%;
  --stretch-heading: 100%;
  --stretch-ui: 100%;
  --tracking-label: 0;
  --flow: to left;
  --dir: -1;
  --origin-start: right;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[dir="rtl"] body {
  font-size: 1.2rem;
  line-height: 1.85;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button {
  font: inherit;
  color: inherit;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  text-wrap: balance;
}

[hidden] {
  display: none !important;
}

::selection {
  background: color-mix(in oklch, var(--brand-sky) 30%, transparent);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Type ---------- */

h1 {
  font-size: clamp(2.75rem, 1.5rem + 4.4vw, 5.6rem);
  font-weight: 760;
  font-stretch: var(--stretch-display);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem);
  font-weight: 720;
  font-stretch: var(--stretch-heading);
  line-height: 1.03;
  letter-spacing: -0.022em;
}

h3 {
  font-size: clamp(1.2rem, 1.08rem + 0.45vw, 1.5rem);
  font-weight: 650;
  font-stretch: var(--stretch-ui);
  line-height: 1.22;
  letter-spacing: -0.008em;
}

[dir="rtl"] :is(h1, h2, h3) {
  letter-spacing: 0;
}

[dir="rtl"] h1 {
  font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.35;
}

[dir="rtl"] h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.85rem);
  font-weight: 750;
  line-height: 1.42;
}

[dir="rtl"] h3 {
  font-weight: 700;
  line-height: 1.55;
}

.lead {
  max-width: 38rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  color: var(--text);
}

[dir="rtl"] .lead {
  font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.42rem);
  line-height: 1.9;
}

.accent {
  color: var(--brand-blue);
}

.latin {
  font-family: var(--font-latin);
}

/* Section label: the logo's speed-line dashes, a number and a name */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 650;
  font-stretch: 110%;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--accent-ink);
}

[dir="rtl"] .kicker {
  font-size: 1.1rem;
  font-weight: 600;
}

.kicker .num {
  font-family: var(--font-latin);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.glyph {
  flex: none;
  inline-size: 2.4rem;
  block-size: auto;
}

[dir="rtl"] .glyph {
  scale: -1 1;
}

.label {
  font-size: 0.75rem;
  font-weight: 650;
  font-stretch: 110%;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted);
}

[dir="rtl"] .label {
  font-size: 1.04rem;
  font-weight: 600;
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-block-size: 3rem;
  padding: 0.75rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 0.9375rem/1.1 var(--font-body);
  font-stretch: var(--stretch-ui);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.3s var(--ease-out),
    color 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}

[dir="rtl"] .btn {
  font-size: 1.05rem;
}

.btn--primary {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
}

.btn--primary:hover {
  --btn-bg: var(--brand-blue);
}

.btn--ghost {
  box-shadow: inset 0 0 0 1px var(--rule-strong);
}

.btn--ghost:hover {
  box-shadow: inset 0 0 0 1px var(--ink);
}

.btn--quiet {
  padding-inline: 0.6rem;
  color: var(--muted);
}

.btn--quiet:hover {
  color: var(--ink);
}

.icon {
  flex: none;
  inline-size: 1.1em;
  block-size: 1.1em;
}

.icon--arrow {
  transition: translate 0.35s var(--ease-out);
}

.btn:hover .icon--arrow {
  translate: calc(3px * var(--dir)) 0;
}

[dir="rtl"] :is(.icon--arrow, .icon--ext) {
  scale: -1 1;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklch, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-block-end: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.is-scrolled {
  border-block-end-color: var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.75rem);
  block-size: var(--header-h);
}

.brand {
  display: inline-flex;
  flex: none;
  margin-inline-end: auto;
  border-radius: 4px;
}

.brand .logo {
  inline-size: auto;
  block-size: 1.3rem;
}

.nav {
  display: flex;
  gap: clamp(0.9rem, 1.8vw, 1.9rem);
}

.nav a {
  position: relative;
  padding-block: 0.4rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  font-stretch: var(--stretch-ui);
  text-decoration: none;
  transition: color 0.2s ease;
}

[dir="rtl"] .nav a {
  font-size: 1.05rem;
}

.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  block-size: 2px;
  border-radius: 2px;
  background: var(--brand-blue);
  scale: 0 1;
  transform-origin: var(--origin-start);
  transition: scale 0.4s var(--ease-out);
}

.nav a:hover,
.nav a[aria-current] {
  color: var(--ink);
}

.nav a:hover::after,
.nav a[aria-current]::after {
  scale: 1 1;
}

.lang-switch {
  flex: none;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--rule-strong);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow 0.25s ease;
}

.lang-switch:hover {
  box-shadow: inset 0 0 0 1px var(--ink);
}

/* Arabic words on the English page (language links) */
:root[lang="en"] :lang(ar) {
  font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif;
  font-weight: 500;
}

.lang-switch:lang(ar) {
  font-size: 0.95rem;
}

.lang-switch:lang(en) {
  font-family: var(--font-latin);
  font-stretch: 106%;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-block-size: 2.6rem;
  padding: 0.45rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.menu-toggle__bars {
  position: relative;
  inline-size: 1rem;
  block-size: 10px;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  block-size: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    translate 0.3s var(--ease-out),
    rotate 0.3s var(--ease-out),
    inline-size 0.3s var(--ease-out);
}

.menu-toggle__bars::before {
  top: 0;
  inline-size: 100%;
}

.menu-toggle__bars::after {
  bottom: 0;
  inline-size: 62%;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
  translate: 0 4px;
  rotate: 45deg;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
  inline-size: 100%;
  translate: 0 -4px;
  rotate: -45deg;
}

.progress {
  position: absolute;
  inset-inline: 0;
  inset-block-end: -1px;
  block-size: 2px;
  pointer-events: none;
}

.progress span {
  display: block;
  block-size: 100%;
  background: linear-gradient(var(--flow), var(--brand-blue), var(--brand-sky));
  scale: var(--p, 0) 1;
  transform-origin: var(--origin-start);
}

/* ---------- Reveal on scroll (only when JS is running) ---------- */

.js .reveal {
  transition:
    opacity 1s var(--ease-out),
    translate 1.2s var(--ease-expo);
  transition-delay: calc(var(--rd, 0) * 110ms);
}

.js .reveal:not(.is-in) {
  opacity: 0;
  translate: 0 48px;
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section-y);
}

.band {
  background: var(--paper-2);
}

.section--ruled {
  padding-block-start: 0;
}

.section--ruled > .wrap::before {
  content: "";
  display: block;
  margin-block-end: var(--section-y);
  border-block-start: 1px solid var(--rule);
}

.section-head {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
  margin-block-end: clamp(2.5rem, 5vw, 4.5rem);
}

.section-head h2 {
  max-width: 22ch;
}

[dir="rtl"] .section-head h2 {
  max-width: 26ch;
}

.section-head--split {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: end;
}

.section-head--split > :first-child {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
  grid-column: 1 / span 7;
}

.section-head--split > .lead {
  grid-column: 9 / -1;
}

/* ---------- Hero (full-bleed photograph, night palette) ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  padding-block: clamp(4rem, 9vw, 7.5rem) 0;
  background: var(--night);
  color: var(--on-night-muted);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  inline-size: 100%;
  block-size: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 72% 40%;
}

/* Scrim: dense behind the copy, opening up toward the fiber */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(var(--flow),
      color-mix(in oklch, var(--night) 97%, transparent) 0%,
      color-mix(in oklch, var(--night) 90%, transparent) 36%,
      color-mix(in oklch, var(--night) 55%, transparent) 66%,
      color-mix(in oklch, var(--night) 30%, transparent) 100%),
    linear-gradient(to top, color-mix(in oklch, var(--night) 92%, transparent) 0%, transparent 34%);
}

.hero :is(h1, .ledger dd) {
  color: var(--on-night);
}

.hero .accent {
  color: var(--brand-sky);
}

.hero .kicker {
  color: var(--brand-sky);
}

.hero .lead {
  color: var(--on-night-muted);
}

.hero .btn--primary {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
}

.hero .btn--primary:hover {
  --btn-bg: var(--brand-sky);
}

.hero .btn--ghost {
  --btn-fg: var(--on-night);
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--on-night) 38%, transparent);
}

.hero .btn--ghost:hover {
  box-shadow: inset 0 0 0 1px var(--on-night);
}

.hero .btn--quiet {
  color: var(--on-night-muted);
}

.hero .btn--quiet:hover {
  color: var(--on-night);
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 3rem;
  align-items: center;
}

.hero__copy {
  grid-column: 1 / span 7;
  display: grid;
  gap: clamp(1.25rem, 2.2vw, 1.85rem);
  justify-items: start;
}

.hero h1 {
  max-width: 13ch;
}

[dir="rtl"] .hero h1 {
  max-width: none;
}

.hero__lead {
  max-width: 36rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-block-start: 0.5rem;
}

.hero__art {
  grid-column: 8 / -1;
  justify-self: end;
  inline-size: 100%;
  max-inline-size: 36rem;
}

.hero-mark {
  inline-size: 100%;
  block-size: auto;
  overflow: visible;
}

.art-guides {
  fill: none;
  stroke: color-mix(in oklch, var(--on-night) 32%, transparent);
}

.art-pulses {
  display: none;
  stroke: #fff;
}

@media (prefers-reduced-motion: no-preference) {
  .art-guides {
    animation: art-fade 1.6s var(--ease-out) both;
  }

  .art-lanes path {
    stroke-dasharray: 1 1.1;
    animation: lane-draw 1.6s var(--ease-expo) both;
    animation-delay: calc(0.25s + var(--i, 0) * 0.09s);
  }

  .art-pulses {
    display: inline;
  }

  .art-pulses path {
    stroke-dasharray: 7 193;
    animation: pulse-run var(--t, 4.5s) cubic-bezier(0.45, 0, 0.3, 1) var(--d, 2s) infinite both;
  }
}

@keyframes art-fade {
  from {
    opacity: 0;
  }
}

@keyframes lane-draw {
  from {
    stroke-dashoffset: 1.05;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* A short bright core travels the lane, like light down a fiber, then rests */
@keyframes pulse-run {
  0% {
    stroke-dashoffset: 7;
    opacity: 0;
  }
  5% {
    opacity: 0.9;
  }
  52% {
    stroke-dashoffset: -100;
    opacity: 0.9;
  }
  53%,
  100% {
    stroke-dashoffset: -100;
    opacity: 0;
  }
}

.ledger {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-block-start: clamp(3.5rem, 8vw, 6rem);
  border-block-start: 1px solid color-mix(in oklch, var(--on-night) 22%, transparent);
}

.ledger > div {
  padding: 1.15rem 1.25rem 1.6rem;
  border-inline-start: 1px solid color-mix(in oklch, var(--on-night) 16%, transparent);
}

.ledger > div:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.ledger dt {
  color: var(--on-night-muted);
  font-size: 0.72rem;
  font-weight: 650;
  font-stretch: 110%;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

[dir="rtl"] .ledger dt {
  font-size: 0.98rem;
  font-weight: 500;
}

.ledger dd {
  margin-block-start: 0.35rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem);
  font-weight: 650;
  font-stretch: var(--stretch-heading);
}

/* ---------- Partners strip ---------- */

.partners-strip {
  padding-block: clamp(1.75rem, 3.2vw, 2.5rem);
  border-block-end: 1px solid var(--rule);
}

.partners-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem clamp(2rem, 5vw, 4.5rem);
}

.logos {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem clamp(1.75rem, 4vw, 3.5rem);
}

/* Logos arrive in very different shapes; each gets its own optical height (--h) */
.logos img {
  inline-size: auto;
  block-size: var(--h, 2.6rem);
  max-inline-size: 13rem;
  object-fit: contain;
  filter: grayscale(1) contrast(1.15);
  opacity: 0.82;
  transition:
    filter 0.35s ease,
    opacity 0.35s ease;
}

.logos li:hover img {
  filter: none;
  opacity: 1;
}

/* ---------- Photography (shared) ---------- */

:is(.about__media, .service__media, .sol__media, .sector__media, .pillar__media, .upi__media, .careers__media, .journey__media) {
  margin: 0;
  overflow: hidden;
  overflow: clip;
  border-radius: 6px;
  background: var(--paper-2);
}

:is(.about__media, .service__media, .sol__media, .sector__media, .pillar__media, .upi__media, .careers__media, .journey__media) img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

/* ---------- Motion ---------- */

/* Photos unveil upward as they arrive, settling from a slight zoom */
@media (prefers-reduced-motion: no-preference) {
  .js :is(.about__media, .service__media, .sol__media, .sector__media, .pillar__media, .upi__media, .careers__media, .journey__media) {
    clip-path: inset(0 0 0 0 round 6px);
    transition: clip-path 1.3s var(--ease-expo);
    transition-delay: calc(var(--rd, 0) * 110ms + 100ms);
  }

  /* Only frames *inside* a reveal block are clipped: a fully clipped element
     never registers as visible, so it could never trigger its own reveal */
  .js .reveal:not(.is-in) :is(.about__media, .service__media, .sol__media, .sector__media, .pillar__media, .upi__media, .careers__media, .journey__media) {
    clip-path: inset(100% 0 0 0 round 6px);
  }

  .js :is(.about__media, .service__media, .sol__media, .sector__media, .pillar__media, .upi__media, .careers__media, .journey__media) img {
    scale: calc(var(--zoom, 1) * var(--hover, 1));
    transition: scale 1.8s var(--ease-expo);
  }

  .js .reveal:not(.is-in) img {
    --zoom: 1.3;
  }
}

/* Depth: photos drift against the scroll where scroll-linked animation exists */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js :is(.about__media, .service__media, .sol__media, .sector__media, .pillar__media, .upi__media, .careers__media) img {
      --zoom: 1.14;
      animation: drift linear both;
      animation-timeline: view();
      animation-range: cover;
    }

    .hero__media img {
      animation: hero-drift linear both;
      animation-timeline: view();
      animation-range: exit;
    }

    .hero__inner {
      animation: hero-lift linear both;
      animation-timeline: view();
      animation-range: exit 5% exit 85%;
    }

    .contact__hero > img {
      scale: 1.16;
      animation: drift-wide linear both;
      animation-timeline: view();
      animation-range: cover;
    }
  }
}

@keyframes drift {
  from {
    translate: 0 -6%;
  }
  to {
    translate: 0 6%;
  }
}

@keyframes drift-wide {
  from {
    translate: 0 -7%;
  }
  to {
    translate: 0 7%;
  }
}

@keyframes hero-drift {
  to {
    translate: 0 30%;
  }
}

@keyframes hero-lift {
  to {
    translate: 0 -10%;
    opacity: 0.15;
  }
}

/* ---------- 01 About ---------- */

.about__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: clamp(3rem, 6vw, 5rem);
}

.about__media {
  grid-column: 1 / span 5;
  align-self: start;
  aspect-ratio: 4 / 5;
}

.about__media img {
  object-position: 55% 50%;
}

.about__content {
  grid-column: 7 / -1;
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  align-content: start;
}

.statement {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.1rem + 1.15vw, 2.1rem);
  font-weight: 500;
  font-stretch: 104%;
  line-height: 1.2;
  letter-spacing: -0.012em;
}

[dir="rtl"] .statement {
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: 0;
}

.statement em {
  font-style: normal;
  color: var(--brand-blue);
}

.about__body {
  display: grid;
  gap: 1.2rem;
  align-content: start;
}

.mission {
  display: grid;
  gap: 0.6rem;
  padding-block-start: 1.25rem;
  border-block-start: 2px solid var(--ink);
}

.mission__text {
  color: var(--ink);
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem);
  font-weight: 500;
  line-height: 1.5;
}

[dir="rtl"] .mission__text {
  line-height: 1.85;
}

.facts-wrap {
  grid-column: 1 / -1;
  display: grid;
  gap: 1rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--col-gap);
  border-block-start: 1px solid var(--ink);
}

.facts > div {
  padding-block: 1.1rem 1.3rem;
  border-block-end: 1px solid var(--rule);
}

.facts dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

[dir="rtl"] .facts dt {
  font-size: 0.98rem;
}

.facts dd {
  margin-block-start: 0.3rem;
  color: var(--ink);
  font-weight: 500;
}

/* ---------- 02 Values ---------- */

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--col-gap);
}

.values li {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding-block: 1.75rem 2.5rem;
  border-block-start: 1px solid var(--rule-strong);
}

.values__num {
  margin-block-end: 0.75rem;
  color: var(--brand-blue);
  font-family: var(--font-latin);
  font-size: clamp(2.4rem, 1.8rem + 2vw, 3.6rem);
  font-weight: 250;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -0.02em;
}

.values p {
  max-width: 32ch;
}

/* ---------- 03 Services ---------- */

.lifecycle {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-block-end: clamp(3rem, 6vw, 4.5rem);
}

.lifecycle::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0.5rem;
  block-size: 6px;
  border-radius: 6px;
  background: linear-gradient(var(--flow), var(--brand-blue), var(--brand-sky));
}

.lifecycle li {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.15rem;
  padding-block-start: 2.1rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.2rem);
  font-weight: 650;
  font-stretch: var(--stretch-heading);
}

/* Each stop is a gap in the lane with a small marker, like a splice point */
.lifecycle li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  inline-size: 1.65rem;
  block-size: 1.65rem;
  border: 5px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
}

.lifecycle .num {
  color: var(--accent-ink);
  font-family: var(--font-latin);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* ---------- 03 Journey: the six delivery phases ---------- */

.journey {
  margin-block-end: clamp(3.5rem, 7vw, 6rem);
}

.journey .lifecycle {
  margin-block-end: clamp(2.5rem, 5vw, 3.5rem);
}

/* Default (no script, reduced motion, small screens): a grid of phase cards */
.journey__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.25rem, 4vw, 3.25rem) var(--col-gap);
}

.journey__step {
  display: grid;
  gap: 1.1rem;
  align-content: start;
}

.journey__media {
  aspect-ratio: 16 / 10;
}

.journey__copy {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.journey__num {
  color: var(--accent-ink);
  font-family: var(--font-latin);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.journey__copy p:last-child {
  max-width: 34rem;
}

/* Pinned (wide screens with motion): the section holds still while the
   scroll advances phase by phase, and the line fills with progress */
.journey.is-pinned {
  block-size: calc(var(--steps, 6) * 60vh + 100vh);
  margin-block-end: clamp(2rem, 4vw, 3rem);
}

.journey.is-pinned .journey__sticky {
  position: sticky;
  top: var(--header-h);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: center;
  row-gap: clamp(2rem, 5vh, 3.5rem);
  block-size: calc(100vh - var(--header-h));
  padding-block: clamp(1.5rem, 5vh, 3rem);
}

.journey.is-pinned .lifecycle {
  margin-block-end: 0;
}

.journey.is-pinned .lifecycle::before {
  background: var(--rule);
}

.journey.is-pinned .lifecycle::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0.5rem;
  block-size: 6px;
  border-radius: 6px;
  background: linear-gradient(var(--flow), var(--brand-blue), var(--brand-sky));
  scale: var(--p, 0) 1;
  transform-origin: var(--origin-start);
}

.journey.is-pinned .lifecycle li {
  color: var(--muted);
  transition: color 0.4s ease;
}

.journey.is-pinned .lifecycle li::before {
  background: var(--rule-strong);
  transition:
    background-color 0.4s ease,
    box-shadow 0.4s ease;
}

.journey.is-pinned .lifecycle li.is-reached {
  color: var(--ink);
}

.journey.is-pinned .lifecycle li.is-reached::before {
  background: var(--brand-blue);
}

.journey.is-pinned .lifecycle li.is-active::before {
  box-shadow: 0 0 0 5px color-mix(in oklch, var(--brand-blue) 22%, transparent);
}

.journey.is-pinned .journey__steps {
  grid-template-columns: minmax(0, 1fr);
  min-block-size: 0;
}

/* Phases share one cell; later phases stack above earlier ones */
.journey.is-pinned .journey__step {
  grid-area: 1 / 1;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-block-size: 0;
  z-index: var(--i, 1);
}

.journey.is-pinned .journey__media {
  order: 2;
  aspect-ratio: auto;
  block-size: min(56vh, 34rem);
  clip-path: inset(100% 0 0 0 round 6px);
  transition: clip-path 1s var(--ease-expo);
}

.journey.is-pinned .journey__step.is-reached .journey__media {
  clip-path: inset(0 0 0 0 round 6px);
}

.journey.is-pinned .journey__media img {
  scale: 1.15;
  transition: scale 1.6s var(--ease-expo);
}

.journey.is-pinned .journey__step.is-active .journey__media img {
  scale: 1;
}

.journey.is-pinned .journey__copy {
  gap: 0.9rem;
  opacity: 0;
  translate: 0 2.5rem;
  transition:
    opacity 0.45s var(--ease-out),
    translate 0.8s var(--ease-expo);
}

.journey.is-pinned .journey__step.is-reached .journey__copy {
  translate: 0 -2.5rem;
}

.journey.is-pinned .journey__step.is-active .journey__copy {
  opacity: 1;
  translate: 0 0;
  transition-delay: 0.12s;
}

.journey.is-pinned .journey__num {
  color: var(--brand-blue);
  font-size: clamp(4.5rem, 2.5rem + 5vw, 8rem);
  font-weight: 200;
  font-stretch: 125%;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.journey.is-pinned .journey__copy h3 {
  font-size: clamp(2rem, 1.3rem + 2.2vw, 3.4rem);
  font-weight: 720;
  font-stretch: var(--stretch-display);
  line-height: 1;
  letter-spacing: -0.025em;
}

[dir="rtl"] .journey.is-pinned .journey__copy h3 {
  line-height: 1.4;
  letter-spacing: 0;
}

.journey.is-pinned .journey__copy p:last-child {
  max-width: 30rem;
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.3rem);
}

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block-start: 1px solid var(--ink);
}

.service,
.service__body {
  display: grid;
  gap: 1rem;
  align-content: start;
  justify-items: start;
}

.service {
  padding-block: clamp(1.75rem, 3vw, 2.75rem) clamp(2rem, 3.5vw, 3rem);
  padding-inline: clamp(1.25rem, 2.6vw, 2.5rem);
  border-block-end: 1px solid var(--rule);
}

.service:first-child {
  padding-inline-start: 0;
}

.service:nth-child(3) {
  padding-inline-end: 0;
}

.service:nth-child(-n + 2) {
  border-inline-end: 1px solid var(--rule);
}

/* Managed services gets the full row: the 24/7/365 promise is the point */
.service--feature {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  column-gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding-inline: 0;
}

.service p {
  max-width: 36rem;
}

.service__media {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 10;
}

.service__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, color-mix(in oklch, var(--night) 88%, transparent) 0%, transparent 58%);
}

.service__big {
  position: absolute;
  inset-inline-start: clamp(1.1rem, 2.4vw, 1.75rem);
  inset-block-end: clamp(0.9rem, 2vw, 1.4rem);
  z-index: 1;
  color: var(--on-night);
  font-family: var(--font-latin);
  font-size: clamp(2.4rem, 1.7rem + 2.6vw, 4.2rem);
  font-weight: 280;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -0.02em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tags li {
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
}

.band .tags li {
  background: var(--paper);
}

[dir="rtl"] .tags li {
  font-size: 0.94rem;
}

/* ---------- 04 Solutions (photo grid) ---------- */

.sol-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2.25rem, 4vw, 3.5rem) var(--col-gap);
}

.sol {
  grid-column: span 4;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1.15rem;
  align-content: start;
}

.sol--lead {
  grid-column: span 7;
}

.sol--second {
  grid-column: span 5;
}

.sol--half {
  grid-column: span 6;
}

.sol__media {
  aspect-ratio: 3 / 2;
}

/* The lead pair shares one height so the first row reads as a single band */
.sol--lead .sol__media,
.sol--second .sol__media {
  aspect-ratio: auto;
  block-size: clamp(15rem, 27vw, 24rem);
}

.sol--half .sol__media {
  aspect-ratio: 16 / 8;
}

.sol:hover .sol__media img {
  --hover: 1.05;
}

.sol__body {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  justify-items: start;
}

.sol__num {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent-ink);
  font-family: var(--font-latin);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.sol__name {
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem);
}

.sol--lead .sol__name {
  font-size: clamp(1.45rem, 1.15rem + 0.9vw, 2rem);
}

.sol__body > p:not(.sol__num) {
  max-width: 40rem;
}

.index__flag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  font-stretch: 108%;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

[dir="rtl"] .index__flag {
  font-size: 0.8rem;
}

/* ---------- 05 Industries ---------- */

.sectors__list {
  display: none;
}

.sector {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding-block: 1.75rem 2.1rem;
  border-block-start: 1px solid var(--rule);
}

.sector__num {
  color: var(--accent-ink);
  font-family: var(--font-latin);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.sector > p {
  max-width: 40rem;
}

.sector__caps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1.75rem;
  margin-block-start: 0.4rem;
}

.sector__caps li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 500;
}

.sector__caps li::before {
  content: "";
  flex: none;
  inline-size: 1.1rem;
  block-size: 4px;
  border-radius: 4px;
  background: linear-gradient(var(--flow), var(--brand-blue), var(--brand-sky));
}

/* Wide screens with JS: a vertical tab list beside one open panel */
.sectors.is-tabbed {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(2rem, 5vw, 5rem);
  align-items: stretch;
}

.sectors.is-tabbed .sectors__list {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  align-self: start;
  display: flex;
  flex-direction: column;
  border-block-start: 1px solid var(--ink);
}

.sector-tab {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  inline-size: 100%;
  padding-block: 1.2rem;
  padding-inline: 0;
  border: 0;
  border-block-end: 1px solid var(--rule);
  background: none;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 0.95rem + 0.7vw, 1.55rem);
  font-weight: 650;
  font-stretch: var(--stretch-heading);
  text-align: start;
  cursor: pointer;
  transition: color 0.25s ease;
}

.sector-tab .n {
  min-inline-size: 2rem;
  font-family: var(--font-latin);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.sector-tab::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -2px;
  block-size: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--flow), var(--brand-blue), var(--brand-sky));
  scale: 0 1;
  transform-origin: var(--origin-start);
  transition: scale 0.55s var(--ease-out);
}

.sector-tab:hover,
.sector-tab[aria-selected="true"] {
  color: var(--ink);
}

.sector-tab[aria-selected="true"]::after {
  scale: 1 1;
}

.sector__media {
  aspect-ratio: 16 / 9;
  margin-block-end: 0.35rem;
}

.sectors.is-tabbed .sector {
  position: relative;
  overflow: hidden;
  overflow: clip;
  min-block-size: 100%;
  padding: 0 0 clamp(1.75rem, 3vw, 2.5rem);
  border: 0;
  border-radius: 6px;
  background: var(--paper-2);
  animation: panel-in 0.6s var(--ease-out);
}

.sectors.is-tabbed .sector > :not(.sector__media) {
  margin-inline: clamp(1.5rem, 3vw, 2.5rem);
}

.sectors.is-tabbed .sector__media {
  aspect-ratio: 2 / 1;
  margin-block-end: clamp(0.6rem, 1.2vw, 1rem);
  border-radius: 0;
}

.sectors.is-tabbed .sector h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  font-stretch: var(--stretch-heading);
}

@keyframes panel-in {
  from {
    opacity: 0;
    translate: 0 10px;
  }
}

/* ---------- 06 Infrastructure (night) ---------- */

.infra {
  position: relative;
  overflow: hidden;
  overflow: clip;
  background: var(--night);
  color: var(--on-night-muted);
  padding-block-start: 0;
}

.infra :is(h2, h3) {
  color: var(--on-night);
}

.infra .kicker {
  color: var(--brand-sky);
}

.infra .lead {
  color: var(--on-night-muted);
}

/* Fiber strands across the top of the section; pulses run in reading order */
.fiber {
  position: relative;
  block-size: clamp(5.5rem, 10vw, 8rem);
  margin-block-end: clamp(3rem, 6vw, 5rem);
}

.fiber span {
  position: absolute;
  inset-inline: 0;
  inset-block-start: var(--y);
  overflow: hidden;
  overflow: clip;
  block-size: 2px;
  border-radius: 2px;
  background: color-mix(in oklch, var(--on-night) 9%, transparent);
}

.fiber span::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inline-size: 22%;
  border-radius: inherit;
  background: linear-gradient(var(--flow), transparent, var(--brand-sky));
  translate: calc(-100% * var(--dir)) 0;
}

@media (prefers-reduced-motion: no-preference) {
  .fiber span::after {
    animation: fiber-run var(--t, 8s) linear var(--d, 0s) infinite;
  }
}

@keyframes fiber-run {
  from {
    translate: calc(-100% * var(--dir)) 0;
  }
  to {
    translate: calc(460% * var(--dir)) 0;
  }
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block-start: 1px solid var(--night-rule);
}

.pillar {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  padding-block: 1.9rem 2.25rem;
  padding-inline: clamp(1rem, 2.6vw, 2.5rem);
}

.pillar:first-child {
  padding-inline-start: 0;
}

.pillar:last-child {
  padding-inline-end: 0;
}

.pillar + .pillar {
  border-inline-start: 1px solid var(--night-rule);
}

/* Fixed height, not a ratio: the middle column is narrower than its neighbours */
.pillar__media {
  block-size: clamp(13rem, 20vw, 17rem);
  margin-block-end: 0.6rem;
  background: var(--night-2);
}

.pillar h3::before {
  content: "";
  display: block;
  inline-size: 2.25rem;
  block-size: 6px;
  margin-block-end: 1.1rem;
  border-radius: 6px;
  background: linear-gradient(var(--flow), var(--brand-blue), var(--brand-sky));
}

.product-line {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1.5rem, 3vw, 2.5rem) var(--col-gap);
  align-items: start;
  margin-block-start: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border-radius: 6px;
  background: var(--night-2);
}

.product-line__intro {
  display: grid;
  gap: 0.6rem;
}

.product-line__title {
  color: var(--on-night);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.6rem);
  font-weight: 650;
  font-stretch: var(--stretch-heading);
  line-height: 1.2;
}

.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.product {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  padding-inline-start: 1rem;
  border-inline-start: 1px solid var(--night-rule);
}

.product__name {
  color: var(--on-night);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 650;
  font-stretch: var(--stretch-ui);
}

.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 2rem;
  margin-block-start: clamp(2rem, 4vw, 3rem);
}

.partners .label {
  color: var(--on-night-muted);
}

.partners strong {
  color: var(--on-night);
  font-weight: 600;
}

/* ---------- 07 Milestones ---------- */

.tl-year {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  column-gap: var(--col-gap);
}

.tl-year__label {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  align-self: start;
  padding-block: 1.4rem;
  color: var(--ink);
  font-family: var(--font-latin);
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 4rem);
  font-weight: 280;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -0.02em;
}

.tl-events {
  padding-block: 1.6rem 0.5rem;
  border-inline-start: 2px solid var(--rule);
}

.tl-events li {
  position: relative;
  display: grid;
  gap: 0.4rem;
  max-width: 48rem;
  padding-block-end: 1.9rem;
  padding-inline-start: clamp(1.75rem, 3.2vw, 2.75rem);
}

/* Node: a short lane crossing the line */
.tl-events li::before {
  content: "";
  position: absolute;
  inset-inline-start: calc(-0.7rem - 1px);
  inset-block-start: 0.62rem;
  inline-size: 1.4rem;
  block-size: 6px;
  border-radius: 6px;
  background: linear-gradient(var(--flow), var(--brand-blue), var(--brand-sky));
}

[dir="rtl"] .tl-events li::before {
  inset-block-start: 0.85rem;
}

.timeline > li:last-child .tl-events {
  border-image: linear-gradient(to bottom, var(--rule) 60%, transparent) 1;
}

/* Live timeline (script + motion): the line fills and milestones light up on arrival */
.timeline.is-live .tl-events {
  position: relative;
}

.timeline.is-live .tl-events::after {
  content: "";
  position: absolute;
  inset-inline-start: -2px;
  inset-block: 0;
  inline-size: 2px;
  background: linear-gradient(to bottom, var(--brand-blue), var(--brand-sky));
  scale: 1 var(--fill, 0);
  transform-origin: top;
}

.timeline.is-live .tl-year__label {
  color: color-mix(in oklch, var(--ink) 28%, var(--paper));
  transition: color 0.6s ease;
}

.timeline.is-live .tl-year.is-reached .tl-year__label {
  color: var(--ink);
}

.timeline.is-live .tl-events li > * {
  opacity: 0.32;
  translate: calc(1rem * var(--dir)) 0;
  transition:
    opacity 0.6s ease,
    translate 0.9s var(--ease-expo);
}

.timeline.is-live .tl-events li.is-reached > * {
  opacity: 1;
  translate: 0 0;
}

.timeline.is-live .tl-events li::before {
  background: var(--rule-strong);
}

.timeline.is-live .tl-events li.is-reached::before {
  background: linear-gradient(var(--flow), var(--brand-blue), var(--brand-sky));
}

/* ---------- 08 People ---------- */

.people {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: clamp(1.5rem, 4vw, 4rem);
  row-gap: 2.5rem;
  align-items: start;
}

.upi {
  position: relative;
  overflow: hidden;
  overflow: clip;
  display: grid;
  gap: 1.1rem;
  align-content: start;
  justify-items: start;
  padding-block-end: clamp(2rem, 4.2vw, 3.5rem);
  border-radius: 6px;
  background: var(--paper-2);
}

.upi > :not(.upi__media) {
  margin-inline: clamp(1.5rem, 4.2vw, 3.5rem);
}

.upi__media {
  justify-self: stretch;
  aspect-ratio: 16 / 9;
  margin-block-end: 0.75rem;
  border-radius: 0;
}

.careers__media {
  justify-self: stretch;
  aspect-ratio: 3 / 2;
  margin-block-end: 0.5rem;
}

.upi__title,
.careers__title {
  max-width: 20ch;
  font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.25rem);
  font-weight: 700;
  font-stretch: var(--stretch-heading);
  line-height: 1.12;
}

[dir="rtl"] :is(.upi__title, .careers__title) {
  line-height: 1.5;
}

.upi p {
  max-width: 36rem;
}

.upi__partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-block-start: 0.5rem;
}

.upi__partners li {
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
}

[dir="rtl"] .upi__partners li {
  font-size: 0.94rem;
}

.careers {
  display: grid;
  gap: 1.1rem;
  align-content: start;
  justify-items: start;
}

.perks {
  inline-size: 100%;
  margin-block: 0.5rem 0.75rem;
  border-block-start: 1px solid var(--ink);
}

.perks li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
  border-block-end: 1px solid var(--rule);
  color: var(--ink);
  font-weight: 500;
}

.perks li span {
  color: var(--muted);
  font-family: var(--font-latin);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ---------- 09 Contact ---------- */

.contact__hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  display: grid;
  align-items: end;
  min-block-size: clamp(22rem, 40vw, 32rem);
  margin-block-end: clamp(2.25rem, 4vw, 3.25rem);
  padding: clamp(1.75rem, 4.5vw, 3.75rem);
  border-radius: 6px;
  background: var(--night);
}

.contact__hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  inline-size: 100%;
  block-size: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 45%;
}

.contact__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top,
    color-mix(in oklch, var(--night) 94%, transparent) 0%,
    color-mix(in oklch, var(--night) 62%, transparent) 48%,
    color-mix(in oklch, var(--night) 18%, transparent) 100%);
}

.contact__hero-copy {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}

.contact__hero .kicker {
  color: var(--brand-sky);
}

.contact__hero :is(h2, .lead) {
  color: var(--on-night);
}

.contact__hero .lead {
  color: var(--on-night-muted);
}

.contact__title {
  font-size: clamp(2.6rem, 1.5rem + 4.4vw, 5.6rem);
  font-stretch: var(--stretch-display);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

[dir="rtl"] .contact__title {
  font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.5rem);
  line-height: 1.35;
  letter-spacing: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block-start: 1px solid var(--ink);
}

.contact-grid > div {
  padding-block: 1.3rem 1.6rem;
  padding-inline-end: 1.25rem;
}

.contact-grid > div + div {
  padding-inline-start: 1.25rem;
  border-inline-start: 1px solid var(--rule-strong);
}

.contact-grid dd {
  margin-block-start: 0.45rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
}

[dir="rtl"] .contact-grid dd {
  font-size: 1.12rem;
}

.contact-grid a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-grid a:hover {
  color: var(--brand-blue);
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-block-start: clamp(2rem, 4vw, 2.75rem);
}

.contact__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2.5rem;
  margin-block-start: clamp(2.5rem, 5vw, 3.5rem);
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--rule-strong);
}

.contact__meta p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.4rem;
}

.contact__meta a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact__meta a:hover {
  color: var(--brand-blue);
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  background: var(--night);
  color: var(--on-night-muted);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding-block-end: 2.25rem;
  border-block-end: 1px solid var(--night-rule);
}

.footer__logo {
  display: inline-flex;
  border-radius: 4px;
  color: var(--on-night);
}

.footer__logo .logo {
  inline-size: auto;
  block-size: 1.9rem;
}

.footer__tagline {
  color: var(--on-night);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.7rem);
  font-weight: 500;
  font-stretch: var(--stretch-ui);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  padding-block: 1.75rem;
  border-block-end: 1px solid var(--night-rule);
}

.footer__nav a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__nav a:hover {
  color: var(--on-night);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block-start: 1.5rem;
  font-size: 0.85rem;
}

[dir="rtl"] .footer__bottom {
  font-size: 0.95rem;
}

/* ---------- Responsive ---------- */

@media screen and (max-width: 74.99em) {
  .nav {
    gap: 1.1rem;
  }
}

@media screen and (max-width: 61.99em) {
  .js .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
  }

  .js .nav {
    position: absolute;
    inset-inline: 0;
    inset-block-start: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.25rem var(--gutter) 1.25rem;
    border-block-end: 1px solid var(--rule);
    background: var(--paper);
    box-shadow: 0 24px 40px -28px oklch(0.2 0.05 262 / 0.35);
    visibility: hidden;
    opacity: 0;
    translate: 0 -6px;
    transition:
      opacity 0.25s ease,
      translate 0.35s var(--ease-out),
      visibility 0s 0.35s;
  }

  .js .nav-open .nav {
    visibility: visible;
    opacity: 1;
    translate: 0 0;
    transition:
      opacity 0.25s ease,
      translate 0.35s var(--ease-out),
      visibility 0s;
  }

  .js .nav a {
    padding-block: 0.9rem;
    border-block-end: 1px solid var(--rule);
    font-size: 1.05rem;
  }

  .js .nav a::after {
    display: none;
  }

  .hero__copy,
  .hero__art {
    grid-column: 1 / -1;
  }

  .hero__art {
    justify-self: center;
    max-inline-size: 24rem;
  }

  .hero::before {
    background: linear-gradient(to bottom,
      color-mix(in oklch, var(--night) 94%, transparent) 0%,
      color-mix(in oklch, var(--night) 84%, transparent) 55%,
      color-mix(in oklch, var(--night) 70%, transparent) 100%);
  }

  .ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--col-gap);
  }

  .ledger > div,
  .ledger > div:first-child {
    padding-inline: 0;
    border-inline-start: 0;
    border-block-end: 1px solid color-mix(in oklch, var(--on-night) 16%, transparent);
  }

  .section-head--split > :first-child,
  .section-head--split > .lead {
    grid-column: 1 / -1;
  }

  .about__media,
  .about__content {
    grid-column: 1 / -1;
  }

  .about__media {
    position: static;
    aspect-ratio: 16 / 10;
  }

  .sol,
  .sol--second,
  .sol--half {
    grid-column: span 6;
  }

  .journey__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sol--lead {
    grid-column: 1 / -1;
  }

  .statement {
    max-width: 30ch;
  }

  .services {
    grid-template-columns: minmax(0, 1fr);
  }

  .service,
  .service:first-child,
  .service:nth-child(3) {
    padding-inline: 0;
  }

  .service:nth-child(-n + 2) {
    border-inline-end: 0;
  }

  .service--feature {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.25rem;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillars {
    grid-template-columns: minmax(0, 1fr);
  }

  .pillar,
  .pillar:first-child,
  .pillar:last-child {
    padding-inline: 0;
  }

  .pillar + .pillar {
    border-inline-start: 0;
    border-block-start: 1px solid var(--night-rule);
  }

  .product-line {
    grid-template-columns: minmax(0, 1fr);
  }

  .people {
    grid-template-columns: minmax(0, 1fr);
  }

  .careers {
    padding-block-start: 0;
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid > div,
  .contact-grid > div + div {
    padding-inline: 0 1rem;
    border-inline-start: 0;
    border-block-end: 1px solid var(--rule-strong);
  }
}

@media screen and (max-width: 47.99em) {
  :root {
    --header-h: 4rem;
  }

  .partners-strip__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .logos {
    justify-content: center;
    gap: 1.4rem 2.25rem;
  }

  .logos img {
    block-size: calc(var(--h, 2.6rem) * 0.88);
  }

  .brand .logo {
    block-size: 1.15rem;
  }

  .journey .lifecycle {
    display: none;
  }

  .journey__steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .sol,
  .sol--lead,
  .sol--second,
  .sol--half {
    grid-column: 1 / -1;
  }

  .sol--lead .sol__media,
  .sol--second .sol__media,
  .sol--half .sol__media {
    aspect-ratio: 16 / 10;
    block-size: auto;
  }

  .products {
    grid-template-columns: minmax(0, 1fr);
  }

  .tl-year {
    grid-template-columns: minmax(0, 1fr);
  }

  .tl-year__label {
    position: static;
    padding-block: 1.75rem 0.75rem;
  }

  .tl-events {
    padding-block-start: 0.5rem;
  }
}

@media screen and (max-width: 35.99em) {
  .hero__actions .btn--primary,
  .hero__actions .btn--ghost {
    flex: 1 1 100%;
  }

  .facts,
  .values,
  .contact-grid,
  .sector__caps {
    grid-template-columns: minmax(0, 1fr);
  }

  .values li {
    padding-block: 1.4rem 1.75rem;
  }

  .values__num {
    margin-block-end: 0.25rem;
    font-size: 2.2rem;
  }

  .contact__actions .btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal:not(.is-in) {
    opacity: 1;
    translate: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Print / Save as PDF ---------- */

@media print {
  @page {
    size: A4;
    margin: 14mm 13mm 15mm;
  }

  /* The cover runs to the paper edge */
  @page :first {
    margin: 0;
  }

  :root {
    --section-y: 0;
  }

  html {
    font-size: 10pt;
  }

  body {
    background: #fff;
  }

  .wrap {
    padding-inline: 0;
  }

  .skip-link,
  .site-header,
  .hero__actions,
  .contact__actions,
  .progress,
  .fiber,
  .art-pulses,
  .sectors__list,
  .footer__nav {
    display: none !important;
  }

  .js .reveal:not(.is-in) {
    opacity: 1;
    translate: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .section,
  .band {
    background: none;
  }

  .section {
    break-before: page;
    padding-block: 0;
  }

  .section--ruled > .wrap::before {
    display: none;
  }

  /* Cover fills the first sheet, ledger anchored to the bottom */
  .hero {
    display: flex;
    min-block-size: 296mm;
    padding: 26mm 15mm 8mm;
  }

  .hero,
  .hero::before,
  .service__media,
  .contact__hero {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .hero > .wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  /* Partner logos open page two, together with About */
  .partners-strip {
    break-before: page;
    padding-block: 0 5mm;
    margin-block-end: 8mm;
  }

  .partners-strip__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 4mm;
  }

  .logos {
    flex-wrap: nowrap;
  }

  #about {
    break-before: avoid;
  }

  .about__media {
    position: static;
    aspect-ratio: 4 / 3;
  }

  .about__body {
    gap: 0.8rem;
    font-size: 0.95rem;
  }

  .mission__text {
    font-size: 1.05rem;
  }

  /* Print: the fact sheet sits under the photo, beside the long copy */
  .about__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas:
      "media content"
      "facts content";
    column-gap: 8mm;
    row-gap: 6mm;
    align-items: start;
  }

  .about__media {
    grid-area: media;
  }

  .about__content {
    grid-area: content;
  }

  .facts-wrap {
    grid-area: facts;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 4mm;
  }

  .facts > div {
    padding-block: 0.6rem 0.75rem;
  }

  .about__content {
    gap: 1.1rem;
  }

  .statement {
    font-size: 1.45rem;
  }

  [dir="rtl"] .statement {
    font-size: 1.3rem;
  }

  .hero__grid {
    flex: 1;
    align-content: center;
  }

  .ledger {
    margin-block-start: auto;
  }

  /* Compact rhythm so each chapter holds to one sheet */
  .section-head {
    margin-block-end: 7mm;
  }

  h2 {
    font-size: 2.2rem;
  }

  [dir="rtl"] h2 {
    font-size: 1.95rem;
  }

  .values li {
    padding-block: 1rem 1.4rem;
  }

  .service {
    padding-block: 1.2rem 1.5rem;
  }

  /* Solutions print as a three-column photo catalogue */
  .sol-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6mm 5mm;
  }

  .sol,
  .sol--second,
  .sol--half {
    grid-column: span 1;
    gap: 0.6rem;
  }

  .sol--lead {
    grid-column: span 2;
  }

  .sol__media,
  .sol--lead .sol__media,
  .sol--second .sol__media,
  .sol--half .sol__media {
    aspect-ratio: 2.3 / 1;
    block-size: auto;
  }

  .sol--lead .sol__media,
  .sol--second .sol__media {
    aspect-ratio: auto;
    block-size: 30mm;
  }

  .sol .tags {
    display: none;
  }

  .sol__body > p:not(.sol__num),
  .sector > p {
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .sol__name,
  .sol--lead .sol__name {
    font-size: 1.12rem;
  }

  .sol__body {
    gap: 0.45rem;
  }

  .sol .tags li {
    padding: 0.15rem 0.5rem;
    font-size: 0.72rem;
  }

  [dir="rtl"] body {
    font-size: 1.1rem;
    line-height: 1.75;
  }

  [dir="rtl"] .lead {
    font-size: 1.15rem;
    line-height: 1.8;
  }

  .sectors__panels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 1.5rem;
  }

  .sector__caps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.3rem;
  }

  .pillar {
    padding-block: 1.2rem 1.4rem;
  }

  .tl-year {
    grid-template-columns: minmax(0, 2fr) minmax(0, 10fr);
  }

  .tl-year__label {
    padding-block: 0.9rem;
    font-size: 2.2rem;
  }

  .tl-events {
    padding-block: 1rem 0;
  }

  .tl-events li {
    padding-block-end: 1.1rem;
  }

  .sector[hidden] {
    display: grid !important;
  }

  .sectors.is-tabbed {
    display: block;
  }

  .sectors.is-tabbed .sector,
  .sector {
    min-block-size: 0;
    padding: 0.9rem 0 1rem;
    border-block-start: 1px solid var(--rule);
    border-radius: 0;
    background: none;
  }

  .sectors.is-tabbed .sector > :not(.sector__media) {
    margin-inline: 0;
  }

  .sectors.is-tabbed .sector__media,
  .sector__media {
    aspect-ratio: 2.4 / 1;
    border-radius: 6px;
  }

  .sector__caps li {
    font-size: 0.82rem;
  }

  .sectors.is-tabbed .sector__num {
    position: static;
    color: var(--accent-ink);
    font-size: 0.85rem;
    font-weight: 600;
    font-stretch: 100%;
  }

  .sectors.is-tabbed .sector h3 {
    font-size: 1.35rem;
  }

  .infra {
    background: none;
    color: var(--text);
  }

  .infra :is(h2, h3),
  .product__name,
  .product-line__title,
  .partners strong {
    color: var(--ink);
  }

  .infra .kicker {
    color: var(--accent-ink);
  }

  .infra .lead,
  .partners .label {
    color: var(--text);
  }

  .pillars,
  .pillar + .pillar,
  .product {
    border-color: var(--rule);
  }

  .product-line {
    background: var(--paper-2);
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .tl-year__label {
    position: static;
  }

  .sol,
  .service,
  .values li,
  .tl-events li,
  .pillar,
  .sector,
  .facts > div,
  .upi,
  .careers {
    break-inside: avoid;
  }

  h2,
  h3,
  .tl-year__label {
    break-after: avoid;
  }

  a {
    text-decoration: none;
  }

  .site-footer {
    padding-block: 10mm 0;
    background: none;
    color: var(--muted);
    break-inside: avoid;
  }

  .footer__logo,
  .footer__tagline {
    color: var(--ink);
  }

  .footer__top {
    border-color: var(--rule);
  }

  .upi,
  .tags li,
  .upi__partners li {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  /* Screen-only motion: the journey prints as the plain life-cycle bar */
  .journey,
  .journey.is-pinned {
    block-size: auto;
    margin-block-end: 0;
  }

  .journey .lifecycle,
  .journey.is-pinned .lifecycle {
    margin-block-end: clamp(3rem, 6vw, 4.5rem);
  }

  .journey.is-pinned .journey__sticky {
    position: static;
    display: block;
    block-size: auto;
    padding: 0;
  }

  .journey__steps {
    display: none !important;
  }

  .journey.is-pinned .lifecycle::before {
    background: linear-gradient(var(--flow), var(--brand-blue), var(--brand-sky));
  }

  .journey.is-pinned .lifecycle::after,
  .timeline.is-live .tl-events::after {
    display: none;
  }

  .journey.is-pinned .lifecycle li,
  .timeline.is-live .tl-year__label {
    color: var(--ink);
  }

  .journey.is-pinned .lifecycle li::before {
    background: var(--ink);
    box-shadow: none;
  }

  .timeline.is-live .tl-events li > * {
    opacity: 1;
    translate: none;
  }

  .timeline.is-live .tl-events li::before {
    background: linear-gradient(var(--flow), var(--brand-blue), var(--brand-sky));
  }

  :is(.about__media, .service__media, .sol__media, .sector__media, .pillar__media, .upi__media, .careers__media, .journey__media) {
    clip-path: none !important;
  }

  img {
    scale: none !important;
    translate: none !important;
  }
}
