/* Layout: one route runs through the page. Ink ground, the S-symbol becomes the delivery map,
   a single Sand band for the team model, mono labels as station signage. */
:root {
  --ink: #0A1F2C;
  --ink-2: #0D2635;
  --ink-3: #12354A;
  --teal: #0F8F84;
  --signal: #19C3B1;
  --sun: #FFB02E;
  --sand: #F4EFE6;
  --mist: #DCE5E4;
  --fg: #F4EFE6;
  --fg-muted: #9DB2B6;
  --fg-faint: #6A8790;
  --line: rgba(220, 229, 228, 0.11);
  --line-strong: rgba(220, 229, 228, 0.22);
  --ink-muted: #4B5F67;
  --ink-line: rgba(10, 31, 44, 0.12);

  --f-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --f-body: "Outfit", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --f-ar: "Tajawal", "Segoe UI", Tahoma, sans-serif;

  --t-display: clamp(3.1rem, 7.4vw, 6.6rem);
  --t-h2: clamp(2.3rem, 4.6vw, 3.9rem);
  --t-h3: clamp(1.35rem, 1.9vw, 1.6rem);
  --t-lead: clamp(1.1rem, 1.35vw, 1.25rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-label: 0.75rem;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(88px, 11vw, 152px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink);
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.label {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.label .sun { color: var(--sun); }
h1, h2, h3 { font-family: var(--f-display); margin: 0; text-wrap: balance; }
h2 { font-size: var(--t-h2); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; }
h3 { font-size: var(--t-h3); font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0; }
.lead { font-size: var(--t-lead); line-height: 1.55; color: var(--fg-muted); max-width: 34em; text-wrap: pretty; }
.accent { color: var(--signal); }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; gap: 12px;
  height: var(--h); padding-block: 0; padding-inline: 24px 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 1rem; letter-spacing: -0.005em;
  cursor: pointer; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--signal); color: var(--ink); }
.btn-primary:hover { background: var(--sand); }
.btn-ghost { border-color: var(--line-strong); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-sm { --h: 42px; padding-inline: 18px 16px; font-size: .9375rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(10, 31, 44, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(10, 31, 44, 0.88); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-word { font-family: var(--f-display); font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1; }
.brand-word b { font-weight: 600; }
.brand-word span { font-weight: 300; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  font-size: .9375rem; color: var(--fg-muted); transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--fg); background: rgba(220,229,228,.06); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 16px; height: 1.5px; background: var(--fg); position: relative; transition: transform .3s var(--ease), background .2s;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-5px) rotate(-45deg); }
.mobile-menu {
  display: none; border-top: 1px solid var(--line);
  padding-block: 12px 24px;
}
.mobile-menu a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-size: 1.5rem; letter-spacing: -0.02em;
}
.mobile-menu a .label { font-size: .6875rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -2;
  width: 900px; height: 900px; inset-inline-end: -260px; top: -380px;
  background: radial-gradient(closest-side, rgba(25, 195, 177, 0.13), rgba(18, 53, 74, 0.35) 45%, transparent 75%);
  pointer-events: none;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; width: 100%; height: 100%; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 112px);
}
.hero-copy { min-width: 0; display: grid; gap: 30px; justify-items: start; }
.status {
  display: inline-flex; align-items: center; gap: 12px;
  padding-block: 7px; padding-inline: 10px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(13, 38, 53, .6);
}
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); position: relative; }
.status .dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--sun); opacity: 0; animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(1.8); opacity: 0; } }
.status .label { color: var(--fg); letter-spacing: .14em; }
.status .ar { font-family: var(--f-ar); font-weight: 500; font-size: .875rem; color: var(--fg-muted); padding-inline-start: 12px; border-inline-start: 1px solid var(--line-strong); line-height: 1; }
.hero h1 {
  font-size: var(--t-display); font-weight: 600; line-height: .94; letter-spacing: -0.045em;
}
.hero h1 .line { display: block; }
.hero h1 .accent { position: relative; }
.hero-sub { font-size: var(--t-lead); color: var(--fg-muted); max-width: 31em; line-height: 1.55; }
.hero-sub strong { color: var(--fg); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 26px; margin-top: 6px;
  border-top: 1px solid var(--line); width: 100%;
}
.hero-meta li { list-style: none; display: inline-flex; align-items: center; gap: 10px; }
.hero-meta ul { display: contents; }
.hero-meta i { width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--signal); display: inline-block; }

.route-card { position: relative; min-width: 0; }
.route-card svg { display: block; width: 100%; height: auto; overflow: visible; }
.route-caption {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 8px; padding-top: 14px; border-top: 1px dashed var(--line-strong);
}
.route-caption .label { font-size: .6875rem; }
.route-caption #route-status { color: var(--signal); }

/* route svg parts */
.r-ghost { fill: none; stroke: var(--ink-3); stroke-width: 56; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.r-track { fill: none; stroke: var(--teal); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; opacity: .9; }
.r-progress { fill: none; stroke: var(--signal); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.r-arrow { fill: none; stroke: var(--signal); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; opacity: .25; transition: opacity .5s var(--ease); }
.r-arrow.on { opacity: 1; }
.station circle.node { fill: var(--ink); stroke: var(--teal); stroke-width: 2.5; transition: fill .4s var(--ease), stroke .4s var(--ease); }
.station circle.halo { fill: var(--signal); opacity: 0; transition: opacity .4s var(--ease); }
.station text.num { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; fill: var(--fg-faint); transition: fill .4s var(--ease); }
.station text.name { font-family: var(--f-display); font-size: 21px; font-weight: 500; letter-spacing: -.01em; fill: var(--fg-muted); transition: fill .4s var(--ease); }
.station text.desc { font-family: var(--f-body); font-size: 13px; fill: var(--fg-faint); }
.station.on circle.node { fill: var(--signal); stroke: var(--signal); }
.station.on circle.halo { opacity: .16; }
.station.on text.num { fill: var(--sun); }
.station.on text.name { fill: var(--fg); }
.traveller { fill: var(--sun); }
.traveller-glow { fill: var(--sun); opacity: .18; }

/* ---------- Discipline strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--ink-2); }
.strip-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.strip-row a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 22px 24px; border-inline-start: 1px solid var(--line);
  font-family: var(--f-display); font-size: 1.125rem; letter-spacing: -0.01em; color: var(--fg-muted);
  transition: color .25s, background .25s;
}
.strip-row a:last-child { border-inline-end: 1px solid var(--line); }
.strip-row a:hover { color: var(--fg); background: rgba(25,195,177,.05); }
.strip-row a .label { font-size: .6875rem; color: var(--fg-faint); }
.strip-row a:hover .label { color: var(--signal); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section-head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 64px;
  align-items: end; margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head .eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.section-head .eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--signal); }
.section-head .lead { justify-self: end; }

/* ---------- Services ---------- */
.services { border-top: 1px solid var(--line); }
.svc {
  display: grid; grid-template-columns: 56px minmax(0, 4.2fr) minmax(0, 5fr) 44px;
  gap: 20px 40px; align-items: start;
  padding-block: 36px; border-bottom: 1px solid var(--line);
  position: relative;
}
.svc::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: linear-gradient(90deg, var(--signal), transparent 70%);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.svc:hover::before { transform: scaleX(1); }
.svc-icon {
  width: 56px; height: 56px; border-radius: 14px; border: 1px solid var(--line-strong);
  display: grid; place-items: center; color: var(--signal);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s;
}
.svc-icon svg { width: 26px; height: 26px; }
.svc:hover .svc-icon { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.svc h3 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.svc h3 + .label { margin-top: 12px; display: block; color: var(--fg-faint); }
.svc-body { display: grid; gap: 20px; min-width: 0; }
.svc-body p { color: var(--fg-muted); max-width: 36em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li {
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .02em;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg-muted);
  background: rgba(13,38,53,.5);
}
.svc-arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; color: var(--fg-muted); transition: all .3s var(--ease);
}
.svc-arrow svg { width: 18px; height: 18px; transform: rotate(-45deg); transition: transform .3s var(--ease); }
.svc:hover .svc-arrow { border-color: var(--sun); color: var(--ink); background: var(--sun); }
.svc:hover .svc-arrow svg { transform: rotate(0); }

/* ---------- Process (the route) ---------- */
.process { background: var(--ink-2); border-block: 1px solid var(--line); overflow: hidden; }
.process::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(220,229,228,.07) 1px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.process .wrap { position: relative; z-index: 1; }
.stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.stops::before {
  content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--teal) 0 3px, transparent 3px 12px);
}
.stops::after {
  content: ""; position: absolute; left: 0; top: 23px; height: 2px; width: 100%;
  background: var(--signal); transform-origin: left; transform: scaleX(var(--p, 1));
}
.stop { position: relative; padding-inline-end: 28px; display: grid; gap: 14px; align-content: start; }
.stop-node {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink-2); border: 2px solid var(--signal); position: relative; z-index: 1;
  font-family: var(--f-mono); font-size: .8125rem; font-weight: 500; color: var(--signal);
}
.stop:last-child .stop-node { background: var(--signal); color: var(--ink); }
.stop:last-child .stop-node::after {
  content: ""; position: absolute; inset-inline-end: -6px; top: -6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--sun); border: 3px solid var(--ink-2);
}
.stop .label { margin-top: 18px; color: var(--sun); }
.stop h3 { font-size: 1.5rem; }
.stop p { color: var(--fg-muted); font-size: var(--t-small); max-width: 22em; }
.stop-out {
  margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--line-strong);
  display: flex; gap: 10px; align-items: baseline; font-size: .875rem; color: var(--fg);
}
.stop-out .label { margin: 0; color: var(--fg-faint); font-size: .6875rem; flex: none; }

/* ---------- Team model (sand band) ---------- */
.team { background: var(--sand); color: var(--ink); }
.team .label { color: var(--ink-muted); }
.team .lead { color: var(--ink-muted); }
.team .section-head .eyebrow::before { background: var(--teal); }
.team .accent { color: var(--teal); }
.team-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--ink-line); }
.principles li { padding: 24px 0; border-bottom: 1px solid var(--ink-line); display: grid; gap: 6px; }
.principles h3 { font-size: 1.375rem; }
.principles p { color: var(--ink-muted); font-size: var(--t-small); max-width: 30em; }

.planner {
  background: #FBF8F2; border: 1px solid var(--ink-line); border-radius: 22px;
  padding: clamp(20px, 3vw, 32px); min-width: 0;
  box-shadow: 0 1px 0 rgba(10,31,44,.04), 0 30px 60px -40px rgba(10,31,44,.35);
}
.planner-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.planner-top .label { font-size: .6875rem; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(10,31,44,.06); }
.seg button {
  border: 0; background: transparent; cursor: pointer; padding: 8px 14px; border-radius: 999px;
  font-size: .875rem; color: var(--ink-muted); transition: background .25s var(--ease), color .25s;
}
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--sand); }
.seg button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.org { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px clamp(28px, 5vw, 64px); align-items: center; min-height: 340px; }
.org svg.links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.org svg.links path { fill: none; stroke: var(--ink-line); stroke-width: 1.5; transition: stroke .35s var(--ease); }
.org svg.links path.on { stroke: var(--teal); stroke-width: 2; }
.org-col { display: grid; gap: 10px; position: relative; z-index: 1; min-width: 0; }
.node {
  border: 1px solid var(--ink-line); background: var(--sand); border-radius: 14px;
  padding: 12px 14px; display: grid; gap: 2px; transition: all .35s var(--ease);
}
.node .label { font-size: .625rem; letter-spacing: .14em; }
.node strong { font-weight: 500; font-size: .98rem; letter-spacing: -0.01em; }
.node.you { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.node.you .label { color: var(--signal); }
.node.lead-node { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(15,143,132,.1); }
.node.lead-node .label { color: var(--teal); }
.spec { padding: 10px 12px; display: flex; align-items: center; gap: 10px; opacity: .45; }
.spec i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink-muted); flex: none; transition: all .35s var(--ease); }
.spec strong { font-size: .9rem; }
.spec.on { opacity: 1; border-color: var(--teal); background: #fff; }
.spec.on i { background: var(--teal); border-color: var(--teal); }
.planner-foot {
  margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--ink-line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .875rem; color: var(--ink-muted);
}
.planner-foot b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Join ---------- */
.join-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.join-copy { display: grid; gap: 26px; justify-items: start; position: sticky; top: 120px; }
.join-copy h2 .accent { color: var(--sun); }
.roles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.role {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: baseline;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.role h3 { font-size: 1.375rem; }
.role p { grid-column: 1 / -1; color: var(--fg-muted); font-size: var(--t-small); max-width: 34em; }
.role .label { color: var(--signal); font-size: .6875rem; }
.copyline {
  display: inline-flex; align-items: center; gap: 4px; padding-block: 6px; padding-inline: 18px 6px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(13,38,53,.6); max-width: 100%;
}
.copyline code { font-family: var(--f-mono); font-size: .9rem; user-select: all; overflow-wrap: anywhere; }
.copy-btn {
  border: 0; cursor: pointer; border-radius: 999px; padding: 8px 14px; background: rgba(220,229,228,.08);
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg); transition: background .2s;
  flex: none;
}
.copy-btn:hover { background: rgba(220,229,228,.16); }
.copy-btn.done { background: var(--signal); color: var(--ink); }

/* ---------- Contact ---------- */
.contact { padding-top: 0; }
.contact-panel {
  border: 1px solid var(--line); border-radius: 28px; overflow: hidden; position: relative; isolation: isolate;
  background: linear-gradient(160deg, var(--ink-3) 0%, var(--ink-2) 45%, var(--ink) 100%);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px);
  padding: clamp(28px, 5vw, 72px);
}
.contact-panel > svg.bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.contact-copy { display: grid; gap: 24px; align-content: start; }
.contact-direct { display: grid; gap: 14px; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-direct div { display: grid; gap: 4px; }
.contact-direct .label { font-size: .6875rem; color: var(--fg-faint); }
.contact-direct span { font-size: 1.0625rem; }
.contact-direct .ar { font-family: var(--f-ar); font-weight: 500; }

form { display: grid; gap: 18px; min-width: 0; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field legend { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
input[type="text"], input[type="email"], textarea {
  width: 100%; background: rgba(10,31,44,.55); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 14px 16px; font-size: 1rem; color: var(--fg); transition: border-color .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: var(--fg-faint); }
input:focus, textarea:focus { outline: none; border-color: var(--signal); background: rgba(10,31,44,.8); }
textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: .9rem; color: var(--fg-muted); transition: all .2s var(--ease);
}
.chip span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; transition: all .2s; }
.chip input:checked + span { border-color: var(--signal); color: var(--fg); background: rgba(25,195,177,.1); }
.chip input:checked + span::before { background: var(--signal); border-color: var(--signal); }
.chip input:focus-visible + span { outline: 2px solid var(--sun); outline-offset: 2px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form-foot small { color: var(--fg-faint); font-size: .8125rem; max-width: 26em; }
.form-error { color: var(--sun); font-size: .875rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.sent { display: grid; gap: 16px; align-content: center; justify-items: start; min-height: 100%; }
.sent-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--signal); color: var(--ink); display: grid; place-items: center; }
.sent-mark svg { width: 26px; height: 26px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 72px 36px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px; }
.footer-brand { display: grid; gap: 18px; align-content: start; }
.footer-brand p { color: var(--fg-muted); max-width: 22em; font-size: var(--t-small); }
.footer-brand .ar { font-family: var(--f-ar); font-weight: 500; color: var(--fg-faint); direction: rtl; text-align: left; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col .label { margin-bottom: 8px; color: var(--fg-faint); font-size: .6875rem; }
.footer-col a, .footer-col span { color: var(--fg-muted); font-size: var(--t-small); transition: color .2s; width: fit-content; }
.footer-col a:hover { color: var(--fg); }
.footer-mark {
  margin-top: 64px; font-family: var(--f-display); font-weight: 600; letter-spacing: -0.06em; line-height: 1;
  font-size: clamp(3rem, 12.6vw, 11.5rem); padding-bottom: .06em;
  background: linear-gradient(180deg, var(--ink-3) 0%, rgba(18,53,74,.15) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none; white-space: nowrap; overflow: hidden;
}
.footer-mark .dot { -webkit-text-fill-color: var(--sun); color: var(--sun); }
.footer-bottom {
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer-bottom .label { font-size: .6875rem; color: var(--fg-faint); }

/* ---------- Load sequence (from a visible resting state) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
  @keyframes rise { from { transform: translateY(18px); opacity: .001; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .svc { grid-template-columns: 56px minmax(0, 1fr) 44px; }
  .svc-body { grid-column: 2 / 3; }
  .svc-arrow { grid-column: 3; grid-row: 1; }
  .team-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
  .nav-links, .nav-right .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .menu-open .mobile-menu { display: block; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .route-card { max-width: 560px; width: 100%; justify-self: center; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .section-head .lead { justify-self: start; }
  .strip-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip-row a { border-bottom: 1px solid var(--line); }
  .strip-row a:nth-child(2n) { border-inline-end: 1px solid var(--line); }
  .stops { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .stops::before, .stops::after { inset-inline-start: 23px; inset-inline-end: auto; top: 0; bottom: 0; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--teal) 0 3px, transparent 3px 12px); }
  .stops::after { background: var(--signal); transform-origin: top; transform: scaleY(var(--p, 1)); }
  .stop { grid-template-columns: 48px minmax(0, 1fr); column-gap: 20px; padding-inline-end: 0; }
  .stop > :not(.stop-node) { grid-column: 2; }
  .stop-node { grid-row: 1 / span 4; }
  .stop .label { margin-top: 12px; }
  .join-grid, .contact-panel { grid-template-columns: minmax(0, 1fr); }
  .join-copy { position: static; }
}
@media (max-width: 640px) {
  .org { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .org svg.links { display: none; }
  .org-col.specs { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .svc { grid-template-columns: minmax(0, 1fr) 44px; }
  .svc-icon { display: none; }
  .svc-body { grid-column: 1 / -1; }
  .svc-arrow { grid-column: 2; }
  .status .ar { display: none; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .strip-row { grid-template-columns: minmax(0, 1fr); }
  .strip-row a { border-inline-end: 1px solid var(--line); }
  .org-col.specs { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Language switch ---------- */
.lang {
  display: inline-flex; align-items: center; height: 42px; padding-inline: 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: .9375rem; color: var(--fg-muted);
  transition: color .2s, border-color .2s;
}
.lang:hover { color: var(--fg); border-color: var(--fg); }
.lang[lang="ar"] { font-family: var(--f-ar); font-weight: 500; font-size: 1rem; }
.lang[lang="en"] { font-family: var(--f-body); }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* =========================================================
   Arabic / right-to-left
   Tajawal for display, IBM Plex Sans Arabic for text.
   Arabic is never letter-spaced or uppercased: it breaks the joins.
   ========================================================= */
[dir="rtl"] {
  --f-display: "Tajawal", "Outfit", "Segoe UI", Tahoma, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Outfit", "Segoe UI", Tahoma, sans-serif;
  --f-label: "IBM Plex Sans Arabic", "IBM Plex Mono", Tahoma, sans-serif;
}
[dir="rtl"] body { line-height: 1.75; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] .svc h3, [dir="rtl"] .brand-word, [dir="rtl"] .strip-row a, [dir="rtl"] .mobile-menu a { letter-spacing: 0; }
[dir="rtl"] h1, [dir="rtl"] h2 { font-weight: 800; }
[dir="rtl"] .hero h1 { line-height: 1.12; font-size: clamp(3rem, 7vw, 6.2rem); }
[dir="rtl"] h2 { line-height: 1.2; }
[dir="rtl"] h3 { font-weight: 700; line-height: 1.35; }
[dir="rtl"] .svc h3 { font-weight: 700; line-height: 1.3; }
[dir="rtl"] .label,
[dir="rtl"] .field label, [dir="rtl"] .field legend,
[dir="rtl"] .copy-btn {
  font-family: var(--f-label); letter-spacing: 0; text-transform: none; font-size: .8125rem; font-weight: 500;
}
[dir="rtl"] .tags li { font-family: var(--f-label); letter-spacing: 0; font-size: .8125rem; }
[dir="rtl"] .stop-node, [dir="rtl"] .label.num { font-family: var(--f-mono); }
[dir="rtl"] .brand-word { font-family: var(--f-ar); font-weight: 700; font-size: 1.5rem; }
[dir="rtl"] .status .ar { font-family: var(--f-body); font-size: .8125rem; }
[dir="rtl"] .btn { font-weight: 500; }

/* arrows point the reading direction */
[dir="rtl"] .btn svg { transform: scaleX(-1); }
[dir="rtl"] .btn:hover svg { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .svc-arrow svg { transform: scaleX(-1) rotate(-45deg); }
[dir="rtl"] .svc:hover .svc-arrow svg { transform: scaleX(-1); }

/* progress lines grow from the right */
[dir="rtl"] .svc::before { background: linear-gradient(270deg, var(--signal), transparent 70%); transform-origin: right; }
[dir="rtl"] .stops::after { transform-origin: right; }
@media (max-width: 920px) { [dir="rtl"] .stops::after { transform-origin: top; } }

/* decorative route backgrounds mirror; the logo and route map do not */
[dir="rtl"] .hero-bg, [dir="rtl"] .contact-panel > svg.bg { transform: scaleX(-1); }
[dir="rtl"] #route { direction: ltr; }
[dir="rtl"] .station text.name { font-family: var(--f-display); font-weight: 700; font-size: 22px; }
[dir="rtl"] .footer-mark { direction: ltr; text-align: right; }
[dir="rtl"] .footer-brand .en { color: var(--fg-faint); font-family: "Outfit", sans-serif; }
[dir="rtl"] input[type="email"] { direction: ltr; text-align: right; }
[dir="rtl"] input[type="email"]::placeholder { text-align: right; }

.mobile-menu a[lang="ar"] { font-family: var(--f-ar); font-weight: 700; }
.mobile-menu a[lang="en"] { font-family: "Outfit", sans-serif; }
.footer-mark { font-family: "Outfit", "Segoe UI", system-ui, sans-serif; }
[dir="rtl"] .station text.num { font-family: var(--f-mono); }

/* WhatsApp brief */
.sent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.wa-link { width: fit-content; font-size: 1.0625rem; border-bottom: 1px solid var(--line-strong); transition: border-color .2s, color .2s; }
.wa-link:hover { color: var(--signal); border-color: var(--signal); }
.btn svg.wa-icon, .btn:hover svg.wa-icon, [dir="rtl"] .btn svg.wa-icon, [dir="rtl"] .btn:hover svg.wa-icon { transform: none; }
