/* Terra Solutions — site styles
   Brand: Direction C · Woven. Tokens and rules are documented in DESIGN.md.
   Layout uses logical properties (inline/block) so the same file works for
   right-to-left Arabic pages: set <html lang="ar" dir="rtl">. */

/* ---------- Fonts (self-hosted, SIL OFL 1.1, see assets/fonts/) ---------- */
/* Bricolage Grotesque — latin-ext */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/bricolage-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Bricolage Grotesque — latin */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/bricolage-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Figtree — latin-ext */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Figtree — latin */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --cotton: #FBF7F0;
  --cotton-2: #F3ECE0;
  --paper: #FFFFFF;
  --indigo: #2E2F6E;
  --indigo-900: #1F2050;
  --saffron: #E3A33B;
  --saffron-600: #C98A22;
  --saffron-text: #9A6410; /* saffron for text on light grounds (4.6:1 on cotton) */
  --saffron-tint: #F6E3BD;
  --ink: #1C1B2E;
  --muted: #55536B;
  --line: #E8DFCF;
  --on-indigo: #FBF7F0;
  --on-indigo-muted: #C9C8E0;

  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.125rem, 1.07rem + 0.25vw, 1.25rem);
  --step-2: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --step-3: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-4: clamp(2rem, 1.55rem + 2vw, 3rem);
  --step-5: clamp(2.5rem, 1.75rem + 3.4vw, 4.25rem);

  --space-xs: 0.5rem;
  --space-s: 0.75rem;
  --space-m: 1rem;
  --space-l: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --section: clamp(3.5rem, 2.5rem + 4.5vw, 7rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --max: 75rem;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow: 0 1px 2px rgb(28 27 46 / 0.05), 0 10px 30px rgb(28 27 46 / 0.08);
  --header-h: 72px;
}

/* Arabic: swap in Arabic typefaces and drop letter-spacing, which breaks joined script. */
:lang(ar) {
  --font-display: "Noto Kufi Arabic", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-block-start: calc(var(--header-h) + 1rem);
}

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

body {
  margin: 0;
  background: var(--cotton);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--indigo);
  text-wrap: balance;
}

h1 {
  font-size: var(--step-5);
  letter-spacing: -0.03em;
  line-height: 1.04;
}

h2 {
  font-size: var(--step-4);
}

h3 {
  font-size: var(--step-2);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

:lang(ar) :is(h1, h2, h3) {
  letter-spacing: 0;
  line-height: 1.4;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: var(--indigo);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--indigo-900);
}

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

.on-dark :focus-visible {
  outline-color: var(--saffron);
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  background: var(--indigo);
  color: var(--on-indigo);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  inset-block-start: 1rem;
  color: var(--on-indigo);
}

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

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

[dir="rtl"] .icon-arrow {
  transform: scaleX(-1);
}

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

.section {
  padding-block: var(--section);
}

.section--alt {
  background: var(--cotton-2);
}

/* Indigo section, used for the product showcase on the home page. */
.section--dark {
  background: var(--indigo);
  color: var(--on-indigo);
}

.section--dark h2,
.section--dark h3 {
  color: var(--on-indigo);
}

.section--dark .lead {
  color: var(--on-indigo-muted);
}

.section--dark .label,
.section--dark .section-link a {
  color: var(--on-indigo);
}

address {
  font-style: normal;
}

.section--tight {
  padding-block-start: 0;
}

/* The closing call-to-action keeps a steady gap whatever section comes before it. */
.section--cta {
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--section);
}

.section-head {
  display: grid;
  gap: var(--space-m);
  max-width: 46rem;
  margin-block-end: var(--space-xl);
}

.split {
  display: grid;
  gap: var(--space-xl);
}

.split > .section-head {
  margin-block-end: 0;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
  }
}

.grid {
  display: grid;
  gap: var(--space-m);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: var(--space-l);
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
}

/* ---------- Type helpers ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--indigo);
}

/* A short saffron thread before every label. */
.label::before {
  content: "";
  width: 18px;
  height: 6px;
  border-radius: 3px;
  background: var(--saffron);
}

:lang(ar) .label {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.9375rem;
}

.pill {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--saffron-tint);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.lead {
  max-width: 40em;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--muted);
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn .icon {
  width: 20px;
  height: 20px;
}

.btn--primary {
  background: var(--indigo);
  color: var(--on-indigo);
}

.btn--primary:hover {
  background: var(--indigo-900);
  color: var(--on-indigo);
}

.btn--accent {
  background: var(--saffron);
  color: var(--ink);
  font-weight: 700;
}

.btn--accent:hover {
  background: var(--saffron-600);
  color: var(--ink);
}

.btn--outline {
  border-color: var(--indigo);
  background: transparent;
  color: var(--indigo);
}

.btn--outline:hover {
  background: var(--indigo);
  color: var(--on-indigo);
}

.btn--light {
  border-color: var(--on-indigo);
  background: transparent;
  color: var(--on-indigo);
}

.btn--light:hover {
  background: var(--on-indigo);
  color: var(--indigo);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: rgb(251 247 240 / 0.95);
  border-block-end: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  backdrop-filter: saturate(1.2) blur(8px);
}

.site-header__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s) var(--space-m);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding-block: 0.5rem;
  border-radius: var(--r-sm);
}

.brand img {
  width: auto;
  height: 34px;
}

.nav {
  width: 100%;
  order: 3;
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding-block-end: var(--space-s);
  list-style: none;
}

.nav__link {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: var(--r-sm);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.nav__link:hover {
  background: var(--saffron-tint);
  color: var(--ink);
}

.nav__link[aria-current] {
  color: var(--indigo);
  font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--saffron);
}

.nav__cta {
  margin-block-start: var(--space-s);
}

.header-cta,
.menu-toggle {
  display: none;
}

.menu-toggle {
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--indigo);
  cursor: pointer;
}

.menu-toggle .icon {
  width: 24px;
  height: 24px;
}

.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

@media (max-width: 999.98px) {
  /* Without JavaScript the nav simply wraps below the logo. With it, it becomes a panel. */
  html.js .menu-toggle {
    display: inline-flex;
  }

  .header-cta {
    margin-inline-start: auto;
  }

  html.js .nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    width: auto;
    inset-block-start: 100%;
    padding: var(--space-s) var(--gutter) var(--space-l);
    background: var(--cotton);
    border-block-end: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  html.js .site-header[data-open] .nav {
    display: block;
  }

  html.js .nav__list {
    flex-direction: column;
    padding-block-end: 0;
  }

  html.js .nav__link {
    padding: 0.85rem 0.75rem;
    font-size: 1.125rem;
  }

  html.js .nav__cta {
    width: 100%;
  }

  html:not(.js) .nav__cta {
    display: none;
  }
}

/* From tablet width the WhatsApp button sits in the header; below it, the bottom bar carries it. */
@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
  }

  .nav__cta {
    display: none;
  }
}

@media (min-width: 1000px) {
  .site-header__inner {
    flex-wrap: nowrap;
  }

  .nav {
    width: auto;
    order: 0;
    margin-inline-start: auto;
  }

  .nav__list {
    flex-wrap: nowrap;
    padding-block-end: 0;
  }
}

/* ---------- Weave patterns ---------- */
.weave {
  background-color: var(--cotton);
  background-image:
    repeating-linear-gradient(90deg, rgb(46 47 110 / 0.92) 0 18px, transparent 18px 30px),
    repeating-linear-gradient(0deg, var(--saffron) 0 18px, var(--cotton) 18px 30px);
}

.weave--dark {
  background-color: var(--indigo);
  background-image:
    repeating-linear-gradient(90deg, rgb(251 247 240 / 0.9) 0 14px, transparent 14px 24px),
    repeating-linear-gradient(0deg, var(--saffron) 0 14px, var(--indigo) 14px 24px);
}

/* Thin thread stripe used as a divider. */
.thread-rule {
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--saffron) 0 28px,
    var(--indigo) 28px 34px,
    var(--on-indigo) 34px 62px,
    var(--indigo) 62px 68px
  );
}

/* ---------- Home hero ---------- */
.hero {
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem) var(--section);
}

.hero__grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 4vw, 4.5rem);
  }
}

.hero__copy {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
}

.hero h1 {
  max-width: 13em;
}

.hero .btn-row {
  margin-block-start: var(--space-xs);
}

.hero__note {
  font-size: var(--step--1);
  color: var(--muted);
}

.where {
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--indigo);
  color: var(--on-indigo);
}

.where__weave {
  height: clamp(110px, 12vw, 160px);
}

.where__body {
  display: grid;
  gap: 0.25rem;
  padding: var(--space-l) clamp(1.5rem, 3vw, 2.25rem) clamp(1.75rem, 3vw, 2.5rem);
}

.where__label {
  margin-block-end: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saffron);
}

.where__regions {
  list-style: none;
}

.where__regions li {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--on-indigo);
}

.where__note {
  margin-block-start: var(--space-s);
  color: var(--on-indigo-muted);
}

/* ---------- Inner page hero ---------- */
.page-hero {
  padding-block: clamp(2rem, 1.5rem + 3vw, 4.5rem) clamp(2.5rem, 2rem + 3vw, 5rem);
  border-block-end: 1px solid var(--line);
}

.page-hero__inner {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
  max-width: 54rem;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);
}

.page-hero .card__icon {
  width: 56px;
  height: 56px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  font-size: var(--step--1);
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-inline-end: 0.4rem;
  color: #8D89A0;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb [aria-current] {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card p {
  color: var(--muted);
}

.card--lg {
  gap: var(--space-m);
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--saffron-tint);
  color: var(--indigo);
}

.card__icon .icon {
  width: 24px;
  height: 24px;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-block-start: auto;
  padding-block-start: var(--space-xs);
  font-weight: 600;
  text-decoration: none;
}

/* The whole card is clickable through its one link. */
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card:has(.card__link:hover) {
  border-color: var(--indigo);
  box-shadow: var(--shadow);
}

.card:has(.card__link:focus-visible) {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
}

.card__link:focus-visible {
  outline: none;
}

/* Cards on indigo. */
.card--dark {
  background: #26275E;
  border-color: rgb(251 247 240 / 0.14);
}

.card--dark p {
  color: var(--on-indigo-muted);
}

.card--dark .card__link {
  color: var(--on-indigo);
}

.card--dark:has(.card__link:hover) {
  border-color: var(--saffron);
  box-shadow: none;
}

.card--dark:has(.card__link:focus-visible) {
  outline-color: var(--saffron);
}

/* Product lifecycle stage, e.g. "01 Feasibility". */
.stage {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saffron-text);
}

.card--dark .stage {
  color: var(--saffron);
}

.stage span {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0;
}

/* Callout linking a service to our own products. */
.callout {
  display: grid;
  gap: var(--space-l);
  align-items: center;
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  border-radius: var(--r-lg);
  background: var(--saffron-tint);
}

@media (min-width: 900px) {
  .callout {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-xl);
  }
}

.callout h2 {
  font-size: var(--step-3);
}

.callout .grid {
  gap: var(--space-s);
}

/* Key figures, e.g. UVEC Group at a glance. */
.facts__title {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: var(--space-l) var(--space-m);
  margin: 0;
}

.facts div {
  padding-block-start: var(--space-m);
  border-block-start: 4px solid var(--indigo);
}

.facts div:nth-child(even) {
  border-block-start-color: var(--saffron);
}

.facts dt {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--indigo);
}

.facts dd {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.section-link {
  margin-block-start: var(--space-xl);
}

/* Leadership list on the About page. */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--space-m);
  list-style: none;
}

.person {
  display: grid;
  gap: 0.25rem;
  padding: var(--space-l);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.person__name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--indigo);
}

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

.section-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

/* ---------- Lists ---------- */
.checklist {
  display: grid;
  gap: 0.6rem;
  list-style: none;
}

.checklist li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
}

.checklist li::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-block-start: 0.18em;
  border-radius: 6px;
  background: var(--saffron-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E2F6E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--space-xl) var(--space-l);
  list-style: none;
  counter-reset: step;
}

.step {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding-block-start: 1.25rem;
  border-block-start: 4px solid var(--indigo);
  counter-increment: step;
}

.step:nth-child(even) {
  border-block-start-color: var(--saffron);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--muted);
}

.step p {
  color: var(--muted);
}

/* Long-form steps on the How we work page. */
.phase {
  display: grid;
  gap: var(--space-l);
  padding-block: var(--space-xl);
  border-block-start: 1px solid var(--line);
}

.phase:first-child {
  border-block-start: 0;
  padding-block-start: 0;
}

@media (min-width: 900px) {
  .phase {
    grid-template-columns: 7rem minmax(0, 1.3fr) minmax(0, 1fr);
    gap: var(--space-xl);
  }
}

.phase__num {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 2rem + 3vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--saffron-text);
}

.phase__body {
  display: grid;
  gap: var(--space-m);
}

.phase__body p {
  color: var(--muted);
}

.phase__get {
  display: grid;
  gap: var(--space-s);
  align-content: start;
  padding: var(--space-l);
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
}

.phase__get h3 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Features (icon + text, no card) ---------- */
.feature {
  display: grid;
  align-content: start;
  gap: var(--space-s);
  padding-block-start: var(--space-l);
  border-block-start: 1px solid var(--line);
}

.feature p {
  color: var(--muted);
}

/* ---------- Service rows (services overview) ---------- */
.service-row {
  display: grid;
  gap: var(--space-l);
  padding-block: var(--space-xl);
  border-block-start: 1px solid var(--line);
}

.service-row:first-child {
  border-block-start: 0;
  padding-block-start: 0;
}

@media (min-width: 900px) {
  .service-row {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 5rem);
  }
}

.service-row__intro {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: var(--space-m);
}

.service-row__intro p {
  color: var(--muted);
}

.service-row .phase__get {
  align-self: start;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: var(--space-s);
  max-width: 52rem;
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  padding: 1.1rem 1.25rem;
  border-radius: var(--r-md);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--indigo);
}

.faq details[open] summary::after {
  content: "–";
}

.faq__body {
  padding: 0 1.25rem 1.25rem;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact-card {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: var(--space-s);
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.contact-card p {
  color: var(--muted);
}

.contact-card__value {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--indigo);
  overflow-wrap: anywhere;
}

.contact-card--primary {
  background: var(--indigo);
  border-color: var(--indigo);
  color: var(--on-indigo);
}

.contact-card--primary h2,
.contact-card--primary .contact-card__value {
  color: var(--on-indigo);
}

.contact-card--primary p {
  color: var(--on-indigo-muted);
}

.contact-card--primary .card__icon {
  background: var(--saffron);
  color: var(--ink);
}

.contact-card h2 {
  font-size: var(--step-2);
}

[dir="ltr"] .ltr-number,
.ltr-number {
  direction: ltr;
  unicode-bidi: isolate;
}

/* ---------- CTA band ---------- */
.cta-band {
  display: grid;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--indigo);
  color: var(--on-indigo);
}

@media (min-width: 900px) {
  .cta-band {
    grid-template-columns: minmax(0, 1fr) clamp(160px, 18vw, 240px);
  }
}

.cta-band__body {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
  padding: clamp(2rem, 1.5rem + 3vw, 4rem);
}

.cta-band h2 {
  color: var(--on-indigo);
}

.cta-band p {
  max-width: 36em;
  color: var(--on-indigo-muted);
}

.cta-band__weave {
  min-height: 96px;
}

/* ---------- Prose ---------- */
.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-block: var(--space-xl) var(--space-s);
  font-size: var(--step-3);
}

.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-block-start: var(--space-m);
}

.prose ul {
  display: grid;
  gap: 0.4rem;
  padding-inline-start: 1.25rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--indigo);
  color: var(--on-indigo-muted);
}

.site-footer__inner {
  display: grid;
  gap: var(--space-xl);
  padding-block: var(--space-2xl) var(--space-xl);
}

@media (min-width: 700px) {
  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  }
}

.site-footer__brand {
  display: grid;
  gap: var(--space-m);
  align-content: start;
}

.site-footer__brand img {
  width: auto;
  height: 34px;
}

.site-footer h2 {
  margin-block-end: var(--space-m);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saffron);
}

.site-footer ul {
  display: grid;
  gap: 0.55rem;
  list-style: none;
}

.site-footer a {
  color: var(--on-indigo);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--on-indigo);
  text-decoration: underline;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-l);
  padding-block: var(--space-l);
  border-block-start: 1px solid rgb(251 247 240 / 0.16);
  font-size: var(--step--1);
}

.site-footer__legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-l);
}

/* ---------- Mobile quick-contact bar ---------- */
.mobile-cta {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs);
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgb(251 247 240 / 0.97);
  border-block-start: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.mobile-cta .btn {
  padding-inline: 0.75rem;
}

@media (max-width: 639.98px) {
  body {
    padding-block-end: calc(70px + env(safe-area-inset-bottom));
  }
}

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

/* ---------- 404 ---------- */
.not-found {
  display: grid;
  justify-items: start;
  gap: var(--space-l);
  padding-block: clamp(4rem, 3rem + 6vw, 9rem);
}

.not-found .weave {
  width: 120px;
  height: 120px;
  border-radius: var(--r-lg);
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .mobile-cta,
  .cta-band,
  .menu-toggle {
    display: none !important;
  }

  body {
    background: #fff;
    padding: 0;
  }
}
