/* =========================================================
   Vertex Import & Export — stylesheet
   Palette: deep navy base, steel grays, single blue accent
   ========================================================= */

/* ---------- 1. Tokens ---------- */
/* Light is the default theme. Dark is opted into via [data-theme="dark"],
   which script.js sets from the visitor's saved choice. */
:root {
  /* surfaces */
  --bg:            #ffffff;
  --bg-alt:        #f4f7fb;
  --surface:       #ffffff;
  --surface-2:     #eef3fa;
  --line:          #dfe6f1;
  --line-soft:     #e9eef6;
  --line-hover:    #bfcfe6;

  /* text */
  --text:          #0b1220;
  --text-muted:    #4b5b74;
  --text-dim:      #6c7c95;

  /* accent — darker blue so it carries contrast on white */
  --accent:        #1d4ed8;
  --accent-bright: #2563eb;
  --accent-deep:   #1e3a8a;
  --accent-soft:   rgba(29, 78, 216, 0.08);
  --accent-ring:   rgba(29, 78, 216, 0.30);
  --on-accent:     #ffffff;

  --danger:        #dc2626;
  --success:       #059669;

  /* component fills */
  --header-bg:      rgba(255, 255, 255, 0.78);
  --header-bg-on:   rgba(255, 255, 255, 0.94);
  --header-shadow:  0 10px 30px -24px rgba(15, 32, 66, 0.55);
  --raise:          linear-gradient(180deg, rgba(15, 32, 66, 0.030), rgba(15, 32, 66, 0.012));
  --raise-flat:     rgba(15, 32, 66, 0.022);
  --wash:           rgba(15, 32, 66, 0.045);
  --panel:          linear-gradient(170deg, #ffffff, #f4f7fb);
  --input-bg:       #ffffff;
  --input-bg-on:    #ffffff;
  --placeholder:    #94a3b8;
  --caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%234b5b74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  /* hero treatment */
  --hero-scrim:
    linear-gradient(100deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.93) 34%,
      rgba(255, 255, 255, 0.70) 62%,
      rgba(255, 255, 255, 0.52) 100%),
    linear-gradient(to bottom,
      rgba(255, 255, 255, 0.78) 0%,
      rgba(255, 255, 255, 0.18) 35%,
      rgba(255, 255, 255, 0.72) 82%,
      var(--bg) 100%);
  --photo-filter:      saturate(0.68) contrast(1.02) brightness(1.04);
  --photo-filter-tile: saturate(0.78) contrast(1.02) brightness(0.92);
  --photo-filter-hover: saturate(1) contrast(1.03) brightness(1);
  --orb-1: radial-gradient(circle, rgba(37, 99, 235, 0.16), transparent 68%);
  --orb-2: radial-gradient(circle, rgba(29, 78, 216, 0.12), transparent 70%);
  --orb-opacity: 0.85;
  --grid-line: rgba(30, 60, 110, 0.075);
  --grad: linear-gradient(100deg, #2563eb 0%, #1d4ed8 48%, #3b6fd4 100%);
  --logo-inner: #7fa9f2;

  /* type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  /* Amharic pages add Noto Sans Ethiopic ahead of the Latin stack */
  --font-ethiopic: "Noto Sans Ethiopic", "Abyssinica SIL", var(--font);

  /* layout */
  --max:      1180px;
  --gutter:   24px;
  --header-h: 72px;
  --radius:   16px;
  --radius-sm: 10px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  0.45s;

  --shadow:    0 18px 44px -22px rgba(15, 32, 66, 0.28);
  --shadow-lg: 0 32px 72px -32px rgba(15, 32, 66, 0.34);
}

/* ---------- 1b. Dark theme ---------- */
:root[data-theme="dark"] {
  --bg:            #0b1220;
  --bg-alt:        #0e1729;
  --surface:       #121c31;
  --surface-2:     #16213a;
  --line:          #1e2b45;
  --line-soft:     #19253c;
  --line-hover:    #2b3e62;

  --text:          #e8edf7;
  --text-muted:    #9aa8c0;
  --text-dim:      #6f7f99;

  --accent:        #3b82f6;
  --accent-bright: #60a5fa;
  --accent-deep:   #1d4ed8;
  --accent-soft:   rgba(59, 130, 246, 0.12);
  --accent-ring:   rgba(59, 130, 246, 0.38);
  --on-accent:     #ffffff;

  --danger:        #f87171;
  --success:       #34d399;

  --header-bg:     rgba(11, 18, 32, 0.72);
  --header-bg-on:  rgba(11, 18, 32, 0.92);
  --header-shadow: 0 10px 34px -22px rgba(0, 0, 0, 0.85);
  --raise:         linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.008));
  --raise-flat:    rgba(255, 255, 255, 0.022);
  --wash:          rgba(255, 255, 255, 0.045);
  --panel:         linear-gradient(170deg, var(--surface), var(--bg-alt));
  --input-bg:      rgba(8, 13, 24, 0.6);
  --input-bg-on:   rgba(8, 13, 24, 0.9);
  --placeholder:   #5b6b85;
  --caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%239aa8c0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  --hero-scrim:
    linear-gradient(100deg,
      rgba(11, 18, 32, 0.97) 0%,
      rgba(11, 18, 32, 0.93) 34%,
      rgba(11, 18, 32, 0.70) 62%,
      rgba(11, 18, 32, 0.55) 100%),
    linear-gradient(to bottom,
      rgba(11, 18, 32, 0.80) 0%,
      rgba(11, 18, 32, 0.20) 35%,
      rgba(11, 18, 32, 0.75) 82%,
      var(--bg) 100%);
  --photo-filter:       saturate(0.62) contrast(1.06) brightness(0.72);
  --photo-filter-tile:  saturate(0.72) contrast(1.04) brightness(0.86);
  --photo-filter-hover: saturate(0.95) contrast(1.05) brightness(0.95);
  --orb-1: radial-gradient(circle, rgba(59, 130, 246, 0.42), transparent 68%);
  --orb-2: radial-gradient(circle, rgba(29, 78, 216, 0.30), transparent 70%);
  --orb-opacity: 0.4;
  --grid-line: rgba(148, 170, 205, 0.055);
  --grad: linear-gradient(100deg, #60a5fa 0%, #a5c8ff 45%, #7f9fd4 100%);
  --logo-inner: #93c5fd;

  --shadow:    0 18px 48px -18px rgba(2, 6, 18, 0.9);
  --shadow-lg: 0 32px 80px -28px rgba(2, 6, 18, 0.95);
}

/* colour changes should not animate every element on theme switch */
:root.theme-switching *,
:root.theme-switching *::before,
:root.theme-switching *::after {
  transition: none !important;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* keeps anchored sections clear of the sticky header */
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.022em; font-weight: 700; }

::selection { background: var(--accent); color: var(--on-accent); }

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

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

.container.narrow { max-width: 820px; }

.section { padding: clamp(72px, 10vw, 128px) 0; }

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line-soft);
}

.section-head {
  max-width: 660px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-tag {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent-bright);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  margin-bottom: 18px;
}

.section-lead {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  max-width: 60ch;
}

/* ---------- 4. Buttons & links ---------- */
.btn {
  --btn-pad: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: var(--btn-pad);
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), background-color 0.22s,
              border-color 0.22s, box-shadow 0.22s, color 0.22s;
}

.btn-lg { --btn-pad: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-icon {
  width: 17px;
  height: 17px;
  flex: none;
  transition: transform 0.25s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 28px -12px var(--accent-ring);
}
.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -12px var(--accent-ring);
}
.btn-primary:hover .btn-icon { transform: translateX(4px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: var(--raise-flat);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  color: var(--accent-bright);
  font-weight: 600;
  font-size: 0.95rem;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  background: var(--header-bg-on);
  border-bottom-color: var(--line-soft);
  box-shadow: var(--header-shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  overflow: visible;
  transition: transform 0.4s var(--ease);
}
.brand-mark .bm-outer { stroke: var(--accent);        transition: stroke 0.3s; }
.brand-mark .bm-inner { stroke: var(--logo-inner);    transition: stroke 0.3s, opacity 0.3s; opacity: 0.95; }
.brand:hover .brand-mark { transform: translateY(-2px) scale(1.04); }
.brand:hover .bm-outer { stroke: var(--accent-bright); }
.brand:hover .bm-inner { opacity: 1; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-size: 1.07rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}
.brand-text em {
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* nav */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list a {
  position: relative;
  display: block;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.91rem;
  font-weight: 500;
  transition: color 0.2s, background-color 0.2s;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-list a:hover { color: var(--text); background: var(--wash); }
.nav-list a.active { color: var(--text); }
.nav-list a.active::after { transform: scaleX(1); }

/* hamburger */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raise-flat);
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* header controls: language + theme */
.head-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--raise-flat);
}
.lang-switch a {
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  transition: color 0.2s, background-color 0.2s;
}
.lang-switch a:hover { color: var(--text); background: var(--wash); }
.lang-switch a[aria-current="true"] {
  color: var(--on-accent);
  background: var(--accent);
  cursor: default;
}
.lang-switch .am { font-family: var(--font-ethiopic); letter-spacing: 0; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--raise-flat);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s, transform 0.25s var(--ease);
}
.theme-toggle:hover {
  color: var(--accent-bright);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.theme-toggle svg { width: 18px; height: 18px; }
/* one icon per theme: the sun shows in dark mode, the moon in light */
.theme-toggle .i-sun  { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun  { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* scroll progress bar */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-bright));
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding: clamp(84px, 13vw, 160px) 0 clamp(64px, 9vw, 104px);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* full-bleed photograph of a working container terminal */
.hero-photo,
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-photo img {
  object-fit: cover;
  object-position: 50% 42%;
  /* desaturate and cool the photo so it sits inside the navy palette
     instead of fighting it */
  filter: var(--photo-filter);
}

/* scrim: keeps the headline at full contrast over the photograph */
.hero-scrim {
  position: absolute;
  inset: 0;
  background: var(--hero-scrim);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--orb-opacity);
}
.orb-1 {
  top: -220px;
  right: -140px;
  width: 620px;
  height: 620px;
  background: var(--orb-1);
}
.orb-2 {
  bottom: -300px;
  left: -200px;
  width: 560px;
  height: 560px;
  background: var(--orb-2);
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.6;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 32%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 32%, #000 35%, transparent 100%);
}

.hero-inner { max-width: var(--max); }

.hero-title { max-width: 18ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 7px 16px 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--raise-flat);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.pulse {
  position: relative;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--success);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--success);
  animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(3.4); opacity: 0; }
  100% { transform: scale(3.4); opacity: 0; }
}

.hero-title {
  font-size: clamp(2.3rem, 6.2vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 62ch;
  color: var(--text-muted);
  font-size: clamp(1.02rem, 1.7vw, 1.19rem);
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: clamp(52px, 8vw, 84px);
}

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--line-soft);
  overflow: hidden;
}

.stat {
  padding: 24px 22px;
  background: var(--raise);
  transition: background-color 0.3s;
}
.stat:hover { background: var(--accent-soft); }

.stat dt {
  color: var(--text-dim);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.stat dd {
  font-size: clamp(1.6rem, 3vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat .unit { color: var(--accent-bright); }

/* ---------- 6b. Mode band (photographs of the operation) ---------- */
.modes {
  padding: clamp(40px, 6vw, 68px) 0 clamp(16px, 3vw, 28px);
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mode {
  position: relative;
  aspect-ratio: 4 / 4.7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.mode:hover {
  transform: translateY(-5px);
  border-color: var(--line-hover);
  box-shadow: var(--shadow);
}

.mode picture { position: absolute; inset: 0; }

.mode img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--photo-filter-tile);
  transition: transform 0.7s var(--ease), filter 0.4s;
}
.mode:hover img { transform: scale(1.06); filter: var(--photo-filter-hover); }

/* readability scrim under the caption */
.mode::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(8, 13, 24, 0.97) 0%,
    rgba(8, 13, 24, 0.90) 22%,
    rgba(8, 13, 24, 0.55) 46%,
    rgba(8, 13, 24, 0.14) 70%,
    rgba(8, 13, 24, 0.34) 100%);
}

.mode-body {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 20px 20px 19px;
}

.mode-label {
  /* always light: it sits on the photo's dark scrim in both themes */
  color: #f3f7fd;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.mode-label::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

.mode-note {
  color: #b7c4da;
  font-size: 0.83rem;
  line-height: 1.45;
}

/* ---------- 12b. About figure ---------- */
.about-side { display: grid; gap: 20px; }

.about-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-figure img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: var(--photo-filter-tile);
  transition: transform 0.7s var(--ease), filter 0.4s;
}
.about-figure:hover img { transform: scale(1.04); filter: var(--photo-filter-hover); }

/* ---------- 7. Trust strip ---------- */
.trust {
  padding: 34px 0;
  border-block: 1px solid var(--line-soft);
  background: var(--bg-alt);
}
.trust-label {
  text-align: center;
  margin-bottom: 18px;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
}
.trust-list li {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.75;
  transition: opacity 0.25s, color 0.25s;
}
.trust-list li:hover { opacity: 1; color: var(--text); }

/* ---------- 8. Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  padding: 30px 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-ring), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-hover);
  box-shadow: var(--shadow);
}
.card:hover::before { opacity: 1; }

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  transition: background-color 0.3s, color 0.3s, transform 0.35s var(--ease);
}
.card-icon svg { width: 23px; height: 23px; }
.card:hover .card-icon {
  background: var(--accent);
  color: var(--on-accent);
  transform: scale(1.06) rotate(-3deg);
}

.card h3 {
  font-size: 1.19rem;
  margin-bottom: 11px;
}
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.card-list { display: grid; gap: 9px; }
.card-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-dim);
  font-size: 0.875rem;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-left: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent);
  transform: rotate(-45deg) translateY(-1px);
  border-radius: 1px;
}

/* ---------- 9. Sectors ---------- */
.sectors-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.sector-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}
.sector-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 20px 20px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.45;
  transition: background-color 0.28s, color 0.28s;
}
.sector-list li span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.sector-list li:hover { background: var(--surface-2); }

/* ---------- 10. Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 24px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  transition: transform 0.35s var(--ease), border-color 0.3s, background-color 0.3s;
}
.step::after {
  /* connector line between steps on wide screens */
  content: "";
  position: absolute;
  top: 48px;
  right: -12px;
  width: 12px;
  height: 1px;
  background: var(--line);
}
.step:last-child::after { display: none; }
.step:hover {
  transform: translateY(-4px);
  border-color: var(--line-hover);
  background: var(--surface);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  color: var(--accent-bright);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.step h3 { font-size: 1.08rem; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- 11. Why Vertex ---------- */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}

.why-quote {
  margin-top: 34px;
  padding: 26px 26px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 6px var(--radius) var(--radius) 6px;
  background: var(--surface);
}
.why-quote blockquote {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.why-quote cite { display: flex; flex-direction: column; font-style: normal; }
.why-quote cite strong { font-size: 0.9rem; }
.why-quote cite span { color: var(--text-dim); font-size: 0.84rem; }

.why-list { display: grid; gap: 14px; }
.why-list li {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.why-list li:hover { transform: translateX(5px); border-color: var(--line-hover); }

.why-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-bright);
}
.why-icon svg { width: 21px; height: 21px; }

.why-list h3 { font-size: 1.03rem; margin-bottom: 6px; }
.why-list p { color: var(--text-muted); font-size: 0.91rem; }

/* ---------- 12. About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}
.about-copy p {
  color: var(--text-muted);
  margin-bottom: 18px;
  max-width: 62ch;
}

.about-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.about-pillars div { display: flex; flex-direction: column; }
.about-pillars strong {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent-bright);
}
.about-pillars span {
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-panel {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.about-panel h3 {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.about-panel ul { display: grid; gap: 16px; }
.about-panel li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.91rem;
}
.about-panel li span {
  color: var(--text-dim);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- 13. FAQ ---------- */
.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  list-style: none;
  transition: background-color 0.22s, color 0.22s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--surface-2); color: var(--accent-bright); }

.chev {
  position: relative;
  width: 11px;
  height: 11px;
  flex: none;
  transition: transform 0.3s var(--ease);
}
.chev::before, .chev::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 11px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform 0.3s var(--ease);
}
.chev::before { transform: translateY(-50%) rotate(90deg); }
.faq details[open] .chev::before { transform: translateY(-50%) rotate(0deg); }

.faq details p {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.94rem;
  max-width: 72ch;
}
.faq details[open] p { animation: faqIn 0.3s var(--ease); }
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 14. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 24px;
  margin-top: 38px;
}
.contact-details li { display: flex; gap: 16px; }
.contact-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-bright);
}
.contact-icon svg { width: 20px; height: 20px; }

.contact-details h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.contact-details a, .contact-details p {
  color: var(--text);
  font-size: 0.95rem;
  transition: color 0.2s;
}
/* a block so several contact numbers stack rather than running together */
.contact-details a { display: block; width: fit-content; }
.contact-details a + a { margin-top: 2px; }
.contact-details a:hover { color: var(--accent-bright); }

/* form */
.contact-form {
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}
.field label span { color: var(--accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.22s, box-shadow 0.22s, background-color 0.22s;
}
.field textarea { resize: vertical; min-height: 120px; }

.field input::placeholder,
.field textarea::placeholder { color: var(--placeholder); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--input-bg-on);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: var(--caret);
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 17px;
  padding-right: 40px;
  cursor: pointer;
}
.field select option { background: var(--surface); color: var(--text); }

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--danger); }

.error {
  display: block;
  min-height: 1.1em;
  margin-top: 6px;
  color: var(--danger);
  font-size: 0.8rem;
}

/* honeypot — visually gone, still reachable by bots */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-note {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 0.82rem;
  text-align: center;
}

/* status panel: loading / success / error all share one box so the
   form never changes height unexpectedly under the button */
.form-status {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  animation: statusIn 0.32s var(--ease);
}
.form-status[hidden] { display: none; }

@keyframes statusIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: none; }
}

/* leading icon, drawn in CSS so there is no markup to localise */
.form-status::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.form-status.is-loading {
  border-color: var(--accent-ring);
  background: var(--accent-soft);
  color: var(--accent-bright);
}
.form-status.is-loading::before {
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  background: none;
  animation: spin 0.7s linear infinite;
}

.form-status.is-success {
  border-color: color-mix(in srgb, var(--success) 45%, transparent);
  background: color-mix(in srgb, var(--success) 12%, transparent);
  color: var(--success);
}
.form-status.is-success::before {
  background-color: var(--success);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.form-status.is-error {
  border-color: color-mix(in srgb, var(--danger) 45%, transparent);
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
}
.form-status.is-error::before {
  background-color: var(--danger);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7v6M12 16.5v.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

.form-status a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* button loading state */
.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  flex: none;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading { cursor: progress; }
.btn.is-loading .btn-spinner { display: block; }
.btn.is-loading .btn-icon { display: none; }
.btn:disabled { opacity: 0.75; }
.btn:disabled:hover { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .btn-spinner,
  .form-status.is-loading::before { animation-duration: 1.6s; }
  .form-status { animation: none; }
}

/* ---------- 15. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-alt);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(36px, 6vw, 72px);
  padding-block: clamp(48px, 7vw, 72px);
}

.footer-brand p {
  max-width: 38ch;
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 0.91rem;
}

.social { display: flex; gap: 10px; margin-top: 22px; }
.social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text-muted);
  transition: color 0.22s, border-color 0.22s, background-color 0.22s, transform 0.25s var(--ease);
}
.social a:hover {
  color: var(--on-accent);
  border-color: var(--accent);
  background: var(--accent);
  transform: translateY(-3px);
}
.social svg { width: 18px; height: 18px; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-nav h3 {
  margin-bottom: 16px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}
.footer-nav ul { display: grid; gap: 11px; }
.footer-nav a, .footer-nav span {
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--accent-bright); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-bottom a { transition: color 0.2s; }
.footer-bottom a:hover { color: var(--accent-bright); }

/* ---------- 16. Scroll reveal ---------- */
/* only hide content when JS is running, so no-JS users see everything */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* stagger children of a revealed grid */
.js .cards .reveal:nth-child(2),
.js .why-list .reveal:nth-child(2),
.js .steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .cards .reveal:nth-child(3),
.js .steps .reveal:nth-child(3) { transition-delay: 0.16s; }
.js .cards .reveal:nth-child(4),
.js .steps .reveal:nth-child(4) { transition-delay: 0.24s; }
.js .cards .reveal:nth-child(5) { transition-delay: 0.32s; }
.js .cards .reveal:nth-child(6) { transition-delay: 0.4s; }

/* ---------- 17. Responsive ---------- */
@media (max-width: 1024px) {
  .sectors-grid,
  .why-grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .mode-grid { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px var(--gutter) 28px;
    background: var(--header-bg-on);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
                visibility 0.28s;
  }
  .nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a {
    padding: 14px 14px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }
  .nav-list a::after { display: none; }
  .nav-list a.active { background: var(--accent-soft); color: var(--accent-bright); }

  .nav-cta { margin-top: 14px; width: 100%; }

  /* the tools sit beside the burger on small screens */
  .head-tools { margin-left: auto; margin-right: 6px; }
  .lang-switch a { padding: 6px 10px; font-size: 0.74rem; }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; }

  .brand-text em { display: none; }
  .theme-toggle { width: 34px; height: 34px; }

  .hero-actions .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr; }
  .mode-grid { grid-template-columns: 1fr; gap: 12px; }
  .mode { aspect-ratio: 16 / 10; }
  .sector-list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 28px; }
  .about-pillars { gap: 26px; }
  .trust-list { gap: 10px 22px; }
  .trust-list li { font-size: 0.86rem; }
  .why-list li { flex-direction: column; gap: 14px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 17b. Amharic typography ----------
   Ethiopic glyphs are taller and denser than Latin, and they take
   no benefit from the tight tracking the Latin headings use. */
html[lang="am"] body {
  font-family: var(--font-ethiopic);
  line-height: 1.78;
}

html[lang="am"] h1,
html[lang="am"] h2,
html[lang="am"] h3 {
  letter-spacing: 0;
  line-height: 1.45;
}

html[lang="am"] .hero-title { line-height: 1.38; }

/* loosen the all-caps Latin tracking, which looks wrong on Ethiopic */
html[lang="am"] .section-tag,
html[lang="am"] .stat dt,
html[lang="am"] .trust-label,
html[lang="am"] .about-pillars span,
html[lang="am"] .about-panel h3,
html[lang="am"] .about-panel li span,
html[lang="am"] .contact-details h3,
html[lang="am"] .footer-nav h3,
html[lang="am"] .brand-text em {
  letter-spacing: 0.02em;
  text-transform: none;
}

/* numerals and the Latin wordmark keep Inter */
html[lang="am"] .brand-text strong,
html[lang="am"] .stat dd,
html[lang="am"] .step-num,
html[lang="am"] .about-pillars strong,
html[lang="am"] .sector-list li span {
  font-family: var(--font);
}

/* Amharic runs longer than English — give the wrapping copy more room */
html[lang="am"] .hero-sub,
html[lang="am"] .section-lead { max-width: 56ch; }
html[lang="am"] .mode-note { font-size: 0.8rem; line-height: 1.55; }
html[lang="am"] .nav-list a { font-size: 0.88rem; }

/* ---------- 18. Accessibility & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .mode:hover img, .about-figure:hover img { transform: none; }
}

@media print {
  .site-header, .nav, .hero-bg, .social, .contact-form, .modes { display: none; }
  body { background: #fff; color: #000; }
  .section { padding: 24px 0; }
  a { text-decoration: underline; }
}
