/* Virtual CFO — site styles
   Fonts are loaded from each page's <head> (Archivo with width axis, IBM Plex Sans Arabic). */

:root {
  --ink: #0f2740;
  --text: #23384d;
  --graphite: #55616d;
  --blue: #0072bd;
  --blue-deep: #005a96;
  --cyan: #00adef;
  --cyan-wash: #dcf0fa;
  --paper: #f1f4f6;
  --line: #d4dce2;
  --white: #fff;

  --font: "Amp", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Archivo", Tahoma, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --radius: 3px;
  --slant: 9%;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* The V mark, simplified for small sizes (list markers) */
  --v-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 100'%3E%3Cpath d='M2 26h17l19 39 9-17h-5L90 0 37 100z'/%3E%3C/svg%3E");
}

/* Archivo's ampersand reads like an "ɛ" at text sizes ("MɛA"), so "&" alone
   comes from a conventional system sans. Falls back to Archivo if none exist. */
@font-face {
  font-family: "Amp";
  src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Helvetica"), local("Liberation Sans"), local("DejaVu Sans");
  font-weight: 100 549;
  unicode-range: U+0026;
}

@font-face {
  font-family: "Amp";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), local("Liberation Sans Bold"), local("DejaVu Sans Bold");
  font-weight: 550 900;
  unicode-range: U+0026;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-stretch: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.375rem, 1.5rem + 3.2vw, 4rem);
  font-stretch: 118%;
  letter-spacing: -.022em;
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.625rem);
  font-stretch: 112%;
  letter-spacing: -.015em;
}

h3 {
  font-size: 1.3125rem;
  line-height: 1.25;
  letter-spacing: -.005em;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
}

::selection {
  color: var(--ink);
  background: var(--cyan-wash);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Layout ---------- */

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section {
  padding-block: clamp(64px, 8vw, 120px);
}

.section--paper {
  background: var(--paper);
}

.section--tight {
  padding-block: clamp(48px, 6vw, 80px);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}



.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.split--top {
  align-items: start;
}

.lead {
  font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3125rem);
  line-height: 1.5;
  color: var(--text);
}

.muted {
  color: var(--graphite);
}

.measure {
  max-width: 66ch;
}

.block-title {
  margin-bottom: 24px;
}

.after-list {
  margin: 28px 0 0;
}

.actions--spaced {
  margin-top: 28px;
}

/* ---------- Links & buttons ---------- */

.link {
  padding-bottom: 2px;
  color: var(--blue);
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-position: 0 100%, 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px, 0 2px;
  font-weight: 500;
  text-decoration: none;
  transition: background-size .35s var(--ease), color .2s;
}

.link:hover {
  color: var(--blue-deep);
  background-size: 100% 1px, 100% 2px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  font-stretch: 106%;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s var(--ease);
}

.btn:active {
  transform: translateY(1px) scale(.99);
}

.btn.is-busy {
  cursor: progress;
  opacity: .75;
}

.btn--primary {
  color: var(--white);
  background: var(--blue);
}

.btn--primary:hover {
  background: var(--blue-deep);
}

.btn--outline {
  color: var(--ink);
  border-color: var(--ink);
}

.btn--outline:hover {
  color: var(--white);
  background: var(--ink);
}

.btn--light {
  color: var(--ink);
  background: var(--white);
}

.btn--light:hover {
  background: var(--cyan-wash);
}

.btn--small {
  min-height: 42px;
  padding: 9px 16px;
  font-size: .9375rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.actions__note {
  color: var(--graphite);
  font-size: .9375rem;
}

.actions__note a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: .22em;
  white-space: nowrap;
}

.actions__note a:hover {
  text-decoration-color: currentColor;
}

/* ---------- Header ---------- */

/* The header is injected into this wrapper, so the wrapper is what sticks */
[data-site-header] {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  transition: transform .35s var(--ease);
}

[data-site-header].is-hidden {
  transform: translateY(-100%);
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  height: var(--header-h);
  align-items: center;
  gap: 24px;
}

.brand {
  display: block;
  flex: none;
  margin-right: auto;
}

.brand img {
  width: 148px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__item {
  position: relative;
}

.nav__link,
.nav__trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: var(--radius);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nav__link:hover,
.nav__trigger:hover,
.nav__item.is-open > .nav__trigger {
  color: var(--blue);
}

.nav__link[aria-current="page"],
.nav__trigger.is-current {
  color: var(--blue);
}

@media (min-width: 961px) {
  .nav__link,
  .nav__trigger {
    position: relative;
    transition: color .2s;
  }

  .nav__link::after,
  .nav__trigger::after {
    position: absolute;
    right: 12px;
    bottom: 3px;
    left: 12px;
    height: 2px;
    content: "";
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
  }

  .nav__link:hover::after,
  .nav__trigger:hover::after,
  .nav__item.is-open > .nav__trigger::after,
  .nav__link[aria-current="page"]::after,
  .nav__trigger.is-current::after {
    transform: scaleX(1);
  }

  .nav__item.is-open > .nav__panel a {
    animation: rise .35s var(--ease) backwards;
    animation-delay: calc(var(--i, 0) * 25ms + 40ms);
  }
}

.nav__trigger svg {
  width: 10px;
  height: 10px;
  transition: transform .2s var(--ease);
}

.nav__item.is-open > .nav__trigger svg {
  transform: rotate(180deg);
}

.nav__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: -8px;
  display: none;
  min-width: 300px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 18px 40px -18px rgba(15, 39, 64, .35);
}

.nav__panel--wide {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 620px;
}

.nav__item.is-open > .nav__panel {
  display: block;
  animation: panel-in .16s var(--ease);
}

.nav__item.is-open > .nav__panel--wide {
  display: grid;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.nav__panel a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius);
  text-decoration: none;
}

.nav__panel a:hover,
.nav__panel a:focus-visible {
  background: var(--paper);
}

.nav__panel a[aria-current="page"] {
  background: var(--cyan-wash);
}

.nav__panel strong {
  display: block;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
}

.nav__panel small {
  display: block;
  margin-top: 2px;
  color: var(--graphite);
  font-size: .8125rem;
  line-height: 1.4;
}

.nav__cta {
  flex: none;
  margin-left: 8px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-right: -10px;
  padding: 0;
  background: none;
  border: 0;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  content: "";
  background: var(--ink);
  transition: transform .2s var(--ease), background-color .2s;
}

.menu-toggle span::before {
  transform: translateY(-7px);
}

.menu-toggle span::after {
  transform: translateY(5px);
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  transform: translateY(-2px) rotate(-45deg);
}

/* ---------- Slanted photo frame (the signature) ---------- */

.frame {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: 0 0 6% 5%;
}

.frame::before {
  position: absolute;
  inset: 14% 10% 0 0;
  z-index: -1;
  content: "";
  background: var(--cyan-wash);
  clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
}

.frame img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
}

.frame--portrait img {
  aspect-ratio: 4 / 5;
  object-position: center top;
}

.frame--narrow {
  max-width: 440px;
}

.frame--right {
  padding: 0 5% 6% 0;
}

.frame--right::before {
  inset: 14% 0 0 10%;
}

.frame figcaption {
  margin-top: 14px;
  padding-left: var(--slant);
  color: var(--graphite);
  font-size: .875rem;
  line-height: 1.45;
}

/* ---------- Home hero ---------- */

.hero {
  padding-block: clamp(32px, 5vw, 72px) clamp(56px, 7vw, 104px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.hero h1 {
  max-width: 14ch;
  margin-bottom: 28px;
}

.hero__lead {
  max-width: 36em;
  margin-bottom: 36px;
  color: var(--text);
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  line-height: 1.55;
}

/* Page-load entrance: header copy rises, the photo opens with a slanted wipe,
   then the cyan plane slides in behind it. */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > *,
  .page-head__grid > div > * {
    animation: rise .7s var(--ease) backwards;
  }

  .hero__copy > :nth-child(2),
  .page-head__grid > div > :nth-child(2) {
    animation-delay: .08s;
  }

  .hero__copy > :nth-child(3),
  .page-head__grid > div > :nth-child(3) {
    animation-delay: .16s;
  }

  .page-head__grid > div > :nth-child(4) {
    animation-delay: .24s;
  }

  :is(.hero, .page-head) .frame img {
    animation: wipe 1.1s var(--ease) .15s backwards;
  }

  :is(.hero, .page-head) .frame::before {
    animation: plane-in 1s var(--ease) .5s backwards;
  }

  .page-head .facts > div {
    animation: rise .6s var(--ease) backwards;
  }

  .page-head .facts > div:nth-child(2) { animation-delay: .06s; }
  .page-head .facts > div:nth-child(3) { animation-delay: .12s; }
  .page-head .facts > div:nth-child(4) { animation-delay: .18s; }
  .page-head .facts > div:nth-child(5) { animation-delay: .24s; }
  .page-head .facts > div:nth-child(6) { animation-delay: .3s; }
  .page-head .facts > div:nth-child(7) { animation-delay: .36s; }
}

@keyframes wipe {
  from {
    clip-path: polygon(var(--slant) 0, var(--slant) 0, 0 100%, 0 100%);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes plane-in {
  from {
    opacity: 0;
    transform: translate(-28px, 18px);
  }
}

/* ---------- Client strip ---------- */

.clients {
  padding-block: 28px;
  border-block: 1px solid var(--line);
}

.clients__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 48px;
  align-items: center;
}

.clients__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clients__logos img {
  width: auto;
  height: var(--h, 32px);
}

/* ---------- Text columns ---------- */

.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px clamp(32px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.columns > * {
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.columns h3 {
  margin-bottom: 12px;
}

.columns p {
  margin: 0;
  color: var(--text);
}

.columns p + p {
  margin-top: 1em;
}

/* ---------- Situation → service index ---------- */

.routes {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.routes__head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  padding: 0 0 12px;
  color: var(--graphite);
  font-size: .875rem;
}

.route {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 8px 32px;
  align-items: baseline;
  padding: 22px 0;
  color: inherit;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--paper), var(--paper)) no-repeat 0 0 / 0 100%;
  text-decoration: none;
  transition: padding .3s var(--ease), background-size .45s var(--ease);
}

.route__situation {
  color: var(--ink);
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.4;
}

.route__service {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--blue);
  font-weight: 600;
}

.route__service::before {
  flex: none;
  width: .82em;
  height: .9em;
  content: "";
  background: var(--cyan);
  -webkit-mask: var(--v-mark) center / contain no-repeat;
  mask: var(--v-mark) center / contain no-repeat;
  transform: translateY(.1em);
  transition: transform .3s var(--ease);
}

.route:hover .route__service,
.route:focus-visible .route__service {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
}

@media (hover: hover) {
  .route:hover {
    padding-left: 16px;
    background-size: 100% 100%;
  }

  .route:hover .route__service::before {
    transform: translate(4px, .1em);
  }
}

/* ---------- V checklist ---------- */

.checklist {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist--2 {
  display: block;
  columns: 2;
  column-gap: 56px;
}

.checklist--2 li {
  margin-bottom: 16px;
  break-inside: avoid;
}

.checklist li {
  position: relative;
  padding-left: 30px;
}

.checklist li::before {
  position: absolute;
  top: .38em;
  left: 0;
  width: 14px;
  height: 15px;
  content: "";
  background: var(--blue);
  -webkit-mask: var(--v-mark) center / contain no-repeat;
  mask: var(--v-mark) center / contain no-repeat;
}

.checklist strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Founder / quote ---------- */

.founder__meta {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.founder__name {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.founder__role {
  color: var(--graphite);
  font-size: .9375rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 8vw, 112px);
  color: rgba(255, 255, 255, .82);
  background: var(--ink);
}

.cta-band::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(28vw, 360px);
  content: "";
  background: var(--blue);
  clip-path: polygon(52% 0, 100% 0, 100% 100%, 0 100%);
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  max-width: 18ch;
  margin-bottom: 20px;
  color: var(--white);
}

.cta-band p {
  max-width: 52ch;
  margin-bottom: 36px;
}

.cta-band .actions__note {
  color: rgba(255, 255, 255, .75);
}

.cta-band .actions__note a {
  color: var(--white);
  text-decoration-color: rgba(255, 255, 255, .4);
}

/* ---------- Inner page header ---------- */

.page-head {
  padding-block: clamp(36px, 5vw, 72px) clamp(48px, 6vw, 88px);
}

.page-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.page-head h1 {
  max-width: 17ch;
  margin-bottom: 24px;
}

.page-head .lead {
  max-width: 40em;
  margin-bottom: 0;
}

.page-head .actions {
  margin-top: 32px;
}

.page-head--plain .page-head__grid {
  grid-template-columns: minmax(0, 1fr);
}

.page-head--plain h1 {
  max-width: 20ch;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  color: var(--graphite);
  font-size: .9375rem;
  list-style: none;
}

.crumbs li + li::before {
  margin-right: 8px;
  content: "/";
  color: var(--line);
}

.crumbs a {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: .22em;
}

.crumbs a:hover {
  color: var(--blue);
  text-decoration-color: currentColor;
}

/* ---------- Article layout (services, long pages) ---------- */

.article {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  font-size: .9375rem;
}

.toc__title {
  margin: 0 0 12px;
  color: var(--graphite);
  font-size: .875rem;
}

.toc ol {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.toc ol a {
  display: block;
  margin-left: -1px;
  padding: 6px 0 6px 16px;
  color: var(--text);
  border-left: 2px solid transparent;
  text-decoration: none;
  line-height: 1.35;
  transition: color .2s, border-color .3s var(--ease), padding .3s var(--ease);
}

.toc ol a:hover {
  padding-left: 20px;
}

.toc ol a:hover {
  color: var(--blue);
}

.toc ol a.is-active {
  color: var(--ink);
  border-left-color: var(--blue);
  font-weight: 600;
}

.prose {
  max-width: 68ch;
}

.prose > .lead {
  margin-bottom: 1.5em;
  color: var(--ink);
}

.prose section + section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.prose h2 {
  margin-bottom: 18px;
  font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem);
  font-stretch: 110%;
}

.prose .checklist {
  margin-top: 8px;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ---------- Related services ---------- */

.related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.related--single {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 32px;
}

.related a {
  display: grid;
  gap: 2px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--sweep, var(--paper)), var(--sweep, var(--paper))) no-repeat 0 0 / 0 100%;
  text-decoration: none;
  transition: padding .3s var(--ease), background-size .45s var(--ease);
}

.section--paper .related a {
  --sweep: var(--white);
}

@media (hover: hover) {
  .related a:hover {
    padding-left: 14px;
    background-size: 100% 100%;
  }
}

.related strong {
  color: var(--ink);
  font-weight: 600;
}

.related span {
  color: var(--graphite);
  font-size: .9375rem;
}

.related a:hover strong {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: .22em;
}

/* ---------- Definition list (features, values) ---------- */

.defs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 72px);
  margin: 0;
}

.defs > div {
  padding: 24px 0 26px;
  border-top: 1px solid var(--line);
}

.defs dt {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.defs dd {
  margin: 0;
  color: var(--text);
}

.defs--compact dd {
  font-size: .9875rem;
}

/* ---------- Numbered steps (true sequences only) ---------- */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0 20px;
  padding-bottom: 32px;
  counter-increment: step;
}

.steps > li::before {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  content: counter(step);
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--blue);
  border-radius: 50%;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.steps > li::after {
  position: absolute;
  top: 44px;
  bottom: 4px;
  left: 19.5px;
  width: 1px;
  content: "";
  background: var(--line);
}

.steps > li:last-child {
  padding-bottom: 0;
}

.steps > li:last-child::after {
  display: none;
}

.steps h3 {
  margin: 7px 0 8px;
  font-size: 1.1875rem;
}

.steps p {
  margin: 0;
}

.steps--compact > li {
  padding-bottom: 20px;
}

.steps--compact h3 {
  margin-bottom: 2px;
  font-size: 1rem;
}

.steps--compact p {
  color: var(--graphite);
  font-size: .9375rem;
}

/* ---------- Aside panel ---------- */

.aside {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  padding: 28px;
  background: var(--paper);
  border-top: 3px solid var(--blue);
}

.aside h2,
.aside h3 {
  margin-bottom: 12px;
  font-size: 1.3125rem;
  font-stretch: 105%;
}

.aside p {
  color: var(--text);
  font-size: .9875rem;
}

.aside .btn {
  width: 100%;
  margin-top: 8px;
}

/* ---------- About: facts table ---------- */

.facts {
  margin: 0;
  border-top: 1px solid var(--ink);
}

.facts > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  color: var(--graphite);
}

.facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ---------- About: letter ---------- */

.letter {
  max-width: 64ch;
}

.letter p {
  color: var(--text);
}

.letter__sign {
  margin-top: 32px;
}

.letter__sign p {
  margin: 0;
}

.letter__sign .founder__name {
  margin-top: 16px;
}

.statement {
  max-width: 24ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  font-stretch: 112%;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
  text-wrap: balance;
}

/* ---------- Team ---------- */

.team {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.person img {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 18px;
  object-fit: cover;
  object-position: center 20%;
  background: var(--paper);
}

.person h3 {
  font-size: 1.125rem;
}

.person__role {
  display: block;
  margin: 4px 0 10px;
  color: var(--blue);
  font-size: .9375rem;
  font-weight: 500;
}

.person p {
  margin: 0;
  color: var(--graphite);
  font-size: .9375rem;
  line-height: 1.55;
}

.wide-photo {
  margin: 0;
}

.wide-photo img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center 40%;
}

.wide-photo figcaption {
  margin-top: 14px;
  color: var(--graphite);
  font-size: .875rem;
}

/* ---------- Customers ---------- */

.customers {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.sector-index {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.sector-index ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.sector-index a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-left: -1px;
  padding: 5px 0 5px 14px;
  color: var(--text);
  border-left: 2px solid transparent;
  font-size: .9375rem;
  text-decoration: none;
  transition: color .2s, border-color .3s var(--ease), background-color .2s;
}

.sector-index a span {
  color: var(--graphite);
  font-variant-numeric: tabular-nums;
}

.sector-index a:hover {
  color: var(--blue);
}

.sector-index a.is-active {
  color: var(--ink);
  border-left-color: var(--blue);
  font-weight: 600;
}

.sector + .sector {
  margin-top: 56px;
}

.sector h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 1.375rem;
  font-stretch: 108%;
}

.sector h2 span {
  color: var(--graphite);
  font-size: .9375rem;
  font-stretch: 100%;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.logo-grid li {
  display: grid;
  aspect-ratio: 3 / 2;
  place-items: center;
  padding: 14px;
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.logo-grid li:hover {
  background-color: var(--paper);
}

.logo-grid li:hover img {
  transform: scale(1.06);
}

.logo-grid img {
  transition: transform .35s var(--ease);
  width: auto;
  height: calc(var(--h, 40px) * 1.1);
  max-width: 82%;
  object-fit: contain;
}

/* ---------- Video (click-to-load) ---------- */

.videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.videos--3 {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 40px 24px;
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
}

.video iframe,
.video__poster,
.video__poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video__poster {
  display: block;
}

.video__poster img {
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.video__play {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
}

.video__play svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.video__poster:hover img {
  transform: scale(1.04);
}

.video__play,
.video__play svg {
  transition: color .2s, background-color .2s;
}

.video__poster:hover .video__play {
  color: var(--white);
  background: var(--blue);
}

.video__poster:hover .video__play svg {
  color: var(--white);
}

.video-meta {
  margin-top: 14px;
}

.video-meta h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
}

.video-meta p {
  margin: 4px 0 0;
  color: var(--graphite);
  font-size: .9375rem;
}

.year-group + .year-group {
  margin-top: 64px;
}

.year-group > h2 {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
}

.year-group > h2::after {
  flex: 1;
  height: 1px;
  content: "";
  background: var(--line);
}

/* ---------- Gallery & lightbox ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery a {
  display: block;
  overflow: hidden;
  background: var(--paper);
}

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .4s var(--ease);
}

.gallery a:hover img {
  transform: scale(1.03);
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  color: var(--white);
  background: rgba(8, 20, 33, .94);
  border: 0;
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  animation: fade .2s ease;
}

.lightbox::backdrop {
  background: transparent;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(12px, 3vw, 28px);
  font-size: .9375rem;
  font-variant-numeric: tabular-nums;
}

.lightbox__stage {
  display: grid;
  min-height: 0;
  place-items: center;
  padding: 0 clamp(8px, 6vw, 96px);
}

.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity .25s ease, transform .35s var(--ease);
}

.lightbox__stage img.is-loading {
  opacity: 0;
  transform: scale(.98);
}

.lightbox.is-closing {
  opacity: 0;
  transition: opacity .18s ease;
}

.lightbox__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px;
}

.lightbox button {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--white);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius);
}

.lightbox button:hover {
  background: rgba(255, 255, 255, .16);
}

.lightbox button svg {
  width: 18px;
  height: 18px;
}

/* ---------- Press release ---------- */

.press {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.press__summary {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.press__summary h2 {
  margin-bottom: 12px;
}

.press__summary p {
  margin: 0;
  color: var(--graphite);
}

[lang="ar"] {
  font-family: var(--font-ar);
  font-stretch: 100%;
  letter-spacing: 0;
  line-height: 1.85;
}

[lang="ar"] h2,
[lang="ar"] h3 {
  font-family: var(--font-ar);
  font-stretch: 100%;
  letter-spacing: 0;
  line-height: 1.45;
}

.press__ar h3 {
  margin-bottom: 12px;
  font-size: 1.375rem;
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
}

.field {
  display: grid;
  gap: 8px;
  align-content: start;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
}

.field label small {
  color: var(--graphite);
  font-size: .875rem;
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #b9c6d0;
  border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}

.field select {
  appearance: none;
  padding-right: 40px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230f2740' stroke-width='1.6'/%3E%3C/svg%3E") right 14px center / 12px no-repeat;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--graphite);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 114, 189, .18);
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #b3261e;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.form__foot p {
  margin: 0;
  color: var(--graphite);
  font-size: .875rem;
}

.channels {
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.channels li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.channels span {
  display: block;
  color: var(--graphite);
  font-size: .875rem;
}

.channels a:not(.link) {
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
}

.channels a:not(.link):hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: .22em;
}

.channels address {
  margin-bottom: 6px;
  color: var(--ink);
  font-style: normal;
}

.contact h2 {
  margin-bottom: 20px;
  font-size: 1.3125rem;
  font-stretch: 105%;
}

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

.site-footer {
  padding-top: clamp(56px, 7vw, 88px);
  color: var(--text);
  background: var(--paper);
  font-size: .9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px 48px;
  padding-bottom: 56px;
}

.footer-brand img {
  width: 150px;
  margin-bottom: 20px;
}

.footer-brand p {
  max-width: 34ch;
  margin-bottom: 20px;
  color: var(--graphite);
}

.footer-contact {
  display: grid;
  gap: 4px;
  margin: 0 0 20px;
  font-style: normal;
}

.footer-contact a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.footer-col h2 {
  margin-bottom: 14px;
  font-size: .9375rem;
  font-stretch: 100%;
  font-weight: 600;
  letter-spacing: 0;
}

.footer-col ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  color: var(--graphite);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.footer-col h2 + ul + h2 {
  margin-top: 28px;
}

.social {
  display: flex;
  gap: 4px;
  margin: 0 0 0 -10px;
  padding: 0;
  list-style: none;
}

.social a {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--graphite);
  border-radius: var(--radius);
}

.social a:hover {
  color: var(--blue);
  background: var(--white);
}

.social svg {
  width: 19px;
  height: 19px;
}

.group {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px 40px;
  align-items: center;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}

.group p {
  margin: 0;
  color: var(--graphite);
}

.group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.group a,
.group__soon {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--graphite);
  font-size: .8125rem;
  text-decoration: none;
}

.group img {
  width: auto;
  height: 40px;
}

.group a:hover {
  color: var(--blue);
}

.group__soon img {
  opacity: .6;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px 28px;
  color: var(--graphite);
  border-top: 1px solid var(--line);
  font-size: .8125rem;
}

/* ---------- WhatsApp ---------- */

.whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--white);
  background: #1fa855;
  border-radius: 50%;
  box-shadow: 0 6px 18px -6px rgba(15, 39, 64, .5);
  transition: background-color .15s;
}

.whatsapp:hover {
  background: #178a45;
}

.whatsapp svg {
  width: 26px;
  height: 26px;
}

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

@media (max-width: 1120px) {
  .nav__link,
  .nav__trigger {
    padding-inline: 9px;
  }

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

  .clients__logos {
    justify-content: flex-start;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 64px;
  }

  .brand img {
    width: 128px;
  }

  .menu-toggle {
    display: grid;
  }

  .nav__cta {
    display: none;
  }

  .nav__menu {
    position: fixed;
    inset: var(--header-h) 0 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 40px;
    overflow-y: auto;
    background: var(--white);
    border-top: 1px solid var(--line);
  }

  .nav__menu.is-open {
    display: flex;
    animation: fade .18s ease;
  }

  .nav__item {
    border-bottom: 1px solid var(--line);
  }

  .nav__link,
  .nav__trigger {
    width: 100%;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 1.0625rem;
  }

  .nav__link[aria-current="page"] {
    text-decoration: none;
  }

  .nav__panel,
  .nav__panel--wide {
    position: static;
    width: auto;
    min-width: 0;
    margin: -4px 0 12px;
    padding: 0;
    border: 0;
    box-shadow: none;
    grid-template-columns: minmax(0, 1fr);
  }

  .nav__item.is-open > .nav__panel {
    animation: none;
  }

  .nav__panel a {
    padding: 10px 12px;
  }

  .nav__mobile-cta {
    display: block;
    padding-top: 24px;
    border: 0;
  }

  .nav__mobile-cta .btn {
    width: 100%;
  }

  .hero__grid,
  .page-head__grid,
  .split,
  .press,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero .frame,
  .page-head .frame {
    max-width: 640px;
  }

  .section-intro {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .article,
  .customers {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc,
  .aside,
  .sector-index {
    position: static;
  }

  .toc {
    display: none;
  }

  .sector-index ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border: 0;
  }

  .sector-index a {
    margin: 0;
    padding: 6px 10px;
    background: var(--paper);
    border: 0;
    border-radius: var(--radius);
  }

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .cta-band::after {
    width: 30vw;
  }
}

@media (min-width: 961px) {
  .nav__mobile-cta {
    display: none;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 1rem;
  }

  .clients__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .clients__logos img {
    height: calc(var(--h, 32px) * .8);
  }

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

  .routes__head {
    display: none;
  }

  .route {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px 0;
  }

  .checklist--2 {
    columns: 1;
  }

  .defs,
  .related,
  .videos,
  .videos--3,
  .columns--2 {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .form {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

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

  .group {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-band::after {
    display: none;
  }

  .whatsapp {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 460px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .team {
    grid-template-columns: minmax(0, 1fr);
  }

  .person {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0 16px;
    align-items: start;
  }

  .person img {
    margin: 0;
  }

  .actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header,
  .whatsapp,
  .cta-band,
  .toc {
    display: none !important;
  }
}

.section--rule {
  border-top: 1px solid var(--line);
}

.toc .btn {
  width: 100%;
}

.page-head__grid--top {
  align-items: start;
}

.page-head__grid--top .facts {
  margin-top: 8px;
}

.sticky-media {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.founder__role {
  display: block;
}

@media (max-width: 960px) {
  .sticky-media {
    position: relative;
    top: auto;
  }
}

.with-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.with-aside > div > h2 {
  margin-bottom: 32px;
}

.contact-side h2 + .steps,
.contact-side h2 + .channels {
  margin-top: 0;
}

.contact-side > * + h2 {
  margin-top: 48px;
}

.form__hint {
  margin: -2px 0 0;
  color: var(--graphite);
  font-size: .875rem;
}

.honey {
  display: none;
}

.person-inline {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 28px;
}

.person-inline img {
  width: 96px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 20%;
  background: var(--white);
}

.person-inline p {
  margin: 0;
  color: var(--graphite);
  font-size: .9375rem;
}

.person-inline strong {
  display: block;
  color: var(--ink);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-weight: 600;
}

.pill-row li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-row li::before {
  width: 12px;
  height: 13px;
  content: "";
  background: var(--blue);
  -webkit-mask: var(--v-mark) center / contain no-repeat;
  mask: var(--v-mark) center / contain no-repeat;
}

@media (max-width: 960px) {
  .with-aside {
    grid-template-columns: minmax(0, 1fr);
  }
}

.videos--1 {
  grid-template-columns: minmax(0, 1fr);
}

/* ==========================================================================
   Motion
   `js-motion` is set in each page's <head> only when the visitor allows motion,
   and removed again if main.js never runs, so content can't stay hidden.
   ========================================================================== */

/* Signature hover: the cyan plane shifts behind the photo */
.frame::before {
  transition: transform .6s var(--ease), opacity .6s var(--ease);
}

:root .frame:hover::before,
html.js-motion .frame.is-in:hover::before {
  transform: translate(-8px, 8px);
}

/* Scroll reveals: content rises in as it enters view; list items stagger */
html.js-motion :is(
  .section-intro, .split > div, .prose > .lead, .prose > section, .wide-photo, .press > div,
  .after-list, .sector > h2, .year-group > h2, .contact > .form, .contact-side > *,
  .with-aside > div > h2, .aside, .cta-band .container > *,
  .columns > *, .routes > *, .checklist > *, .team > *, .logo-grid > *, .steps > *, .defs > *,
  .related > *, .videos > *, .gallery > *, .facts > *, .channels > *, .clients__logos > *
):not(.hero *, .page-head *) {
  --d: calc(var(--i, 0) * 60ms);
  transition: opacity .7s var(--ease) var(--d), transform .7s var(--ease) var(--d), background-color .2s;
}

html.js-motion :is(
  .section-intro, .split > div, .prose > .lead, .prose > section, .wide-photo, .press > div,
  .after-list, .sector > h2, .year-group > h2, .contact > .form, .contact-side > *,
  .with-aside > div > h2, .aside, .cta-band .container > *,
  .columns > *, .routes > *, .checklist > *, .team > *, .logo-grid > *, .steps > *, .defs > *,
  .related > *, .videos > *, .gallery > *, .facts > *, .channels > *, .clients__logos > *
):not(.hero *, .page-head *):not(.is-in) {
  opacity: 0;
  transform: translateY(20px);
}

/* Photos outside the page header open with a slanted wipe along the V angle */
html.js-motion .frame:not(.hero *, .page-head *) img {
  clip-path: polygon(var(--slant) 0, var(--slant) 0, 0 100%, 0 100%);
  transition: clip-path 1.1s var(--ease);
}

html.js-motion .frame:not(.hero *, .page-head *)::before {
  opacity: 0;
  transform: translate(-28px, 18px);
  transition: transform .9s var(--ease) .35s, opacity .9s var(--ease) .35s;
}

html.js-motion .frame.is-in img {
  clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
}

html.js-motion .frame.is-in::before {
  opacity: 1;
  transform: none;
}

html.js-motion .frame.is-settled::before {
  transition-delay: 0s;
}

/* Process steps: the number pops, then the connecting line draws down */
html.js-motion .steps > li::before {
  transform: scale(.5);
  transition: transform .5s cubic-bezier(.3, 1.6, .5, 1) calc(var(--i, 0) * 60ms + .1s);
}

html.js-motion .steps > li::after {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .9s var(--ease) calc(var(--i, 0) * 60ms + .3s);
}

html.js-motion .steps > li.is-in::before,
html.js-motion .steps > li.is-in::after {
  transform: none;
}

/* Checklist V marks pop in after their line of text */
html.js-motion .checklist > li::before {
  transform: scale(0);
  transition: transform .45s cubic-bezier(.3, 1.6, .5, 1) calc(var(--i, 0) * 60ms + .2s);
}

html.js-motion .checklist > li.is-in::before {
  transform: none;
}

/* CTA band: the blue plane slides in from the right */
html.js-motion .cta-band::after {
  opacity: 0;
  transform: translateX(35%);
  transition: transform 1.1s var(--ease), opacity 1.1s var(--ease);
}

html.js-motion .cta-band.is-in::after {
  opacity: 1;
  transform: none;
}

/* Mobile menu items cascade in */
@media (max-width: 960px) and (prefers-reduced-motion: no-preference) {
  .nav__menu.is-open > li {
    animation: rise .45s var(--ease) backwards;
    animation-delay: calc(var(--i, 0) * 45ms + 40ms);
  }
}

/* Cross-fade between pages (browsers with cross-document View Transitions) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  [data-site-header] {
    view-transition-name: site-header;
  }

  .whatsapp {
    view-transition-name: whatsapp;
  }

  ::view-transition-old(root) {
    animation: vt-out .2s ease both;
  }

  ::view-transition-new(root) {
    animation: vt-in .4s var(--ease) both;
  }
}

@keyframes vt-out {
  to {
    opacity: 0;
  }
}

@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media print {
  html.js-motion * {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}

/* Contact form result states */
.form__foot .form__error {
  flex-basis: 100%;
  padding: 12px 14px;
  color: #8c1d18;
  background: #fbeceb;
  border-left: 3px solid #b3261e;
  font-size: .9375rem;
}

.form-done {
  padding: 32px;
  background: var(--paper);
  border-top: 3px solid var(--blue);
  outline: none;
}

.form-done h2 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem);
  font-stretch: 110%;
}

.form-done p:last-child {
  margin: 0;
  color: var(--graphite);
}

.form-done a {
  color: var(--ink);
  font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
  .form-done {
    animation: rise .5s var(--ease) backwards;
  }
}
