/* TransLogix website. Hand-written; reads only the generated tokens in brand/tokens.css (--tl-*)
   and the type classes in brand/typography.css. No raw colour values: change the brand in
   design_TL/source/brand.config.mjs and rebuild.
   Rules: flat fills, no gradients or glows, cards are a 1px border (no shadow), 4px controls,
   6px cards, square markers. Signal orange marks one load per view. */

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--tl-bg);
  color: var(--tl-ink);
  font-family: var(--tl-font-sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--tl-brand); text-underline-offset: 3px; }
a:hover { color: var(--tl-brand-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; }
[id] { scroll-margin-top: 80px; }

:focus-visible { outline: 2px solid var(--tl-focus); outline-offset: 2px; }
.band--dark :focus-visible { outline-color: var(--tl-sky-300); }
.band--dark .ui-card :focus-visible { outline-color: var(--tl-focus); }

.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;
}
.skip-link {
  position: absolute; left: var(--tl-space-4); top: -100px; z-index: 100;
  padding: var(--tl-space-2) var(--tl-space-4); border-radius: var(--tl-radius-sm);
  background: var(--tl-brand); color: var(--tl-on-brand); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--tl-space-3); color: var(--tl-on-brand); }

.container { width: min(100% - 32px, 1200px); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(100% - 48px, 1200px); } }

.mono { font-family: var(--tl-font-mono); font-weight: 500; font-size: 0.92em; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }
.cur { color: var(--tl-ink-muted); font-weight: 500; }
.ui-muted { color: var(--tl-ink-muted); }

/* Theme-dependent logo files on light surfaces (header, footer). Dark bands always use color-dark. */
.only-dark { display: none !important; }
[data-theme='dark'] .only-dark { display: block !important; }
[data-theme='dark'] .only-light { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .only-dark { display: block !important; }
  :root:not([data-theme]) .only-light { display: none !important; }
}

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--tl-space-2);
  min-height: var(--tl-control-md); padding: 0 var(--tl-space-4);
  border: 1px solid transparent; border-radius: var(--tl-radius-sm);
  font-family: var(--tl-font-sans); font-size: 0.84rem; line-height: 1.2; font-weight: 600;
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color var(--tl-duration-fast) var(--tl-ease), border-color var(--tl-duration-fast) var(--tl-ease), color var(--tl-duration-fast) var(--tl-ease); }
}
.btn--lg { min-height: var(--tl-control-lg); padding: 0 var(--tl-space-5); font-size: 0.94rem; }
.btn--sm { min-height: var(--tl-control-sm); padding: 0 var(--tl-space-3); font-size: 0.8rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--tl-brand); color: var(--tl-on-brand); }
.btn--primary:hover { background: var(--tl-brand-hover); color: var(--tl-on-brand); }
.btn--secondary { background: var(--tl-surface); border-color: var(--tl-border-strong); color: var(--tl-ink); }
.btn--secondary:hover { background: var(--tl-surface-sunken); color: var(--tl-ink); }
.btn--ghost { background: transparent; color: var(--tl-brand); }
.btn--ghost:hover { background: var(--tl-brand-tint); color: var(--tl-brand-hover); }
.btn--inverse { background: var(--tl-ghost-50); color: var(--tl-harbour-900); }
.btn--inverse:hover { background: var(--tl-harbour-50); color: var(--tl-harbour-900); }
.btn--outline-inverse { background: transparent; border-color: var(--tl-harbour-300); color: var(--tl-ghost-50); }
.btn--outline-inverse:hover { background: var(--tl-harbour-800); color: var(--tl-ghost-50); }
.btn:disabled, .btn[aria-disabled='true'] { background: var(--tl-disabled); border-color: transparent; color: var(--tl-ink-muted); cursor: not-allowed; }

/* ------------------------------------------------------------ badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px; min-height: 22px; padding: 0 var(--tl-space-2);
  border-radius: var(--tl-radius-xs); font-size: 0.72rem; line-height: 1; font-weight: 600; white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; background: currentColor; flex: none; }
.badge--brand { background: var(--tl-brand-tint); color: var(--tl-brand-hover); }
.badge--success { background: var(--tl-success-tint); color: var(--tl-success); }
.badge--warning { background: var(--tl-warning-tint); color: var(--tl-warning); }
.badge--danger { background: var(--tl-danger-tint); color: var(--tl-danger); }
.badge--neutral { background: var(--tl-surface-sunken); color: var(--tl-ink-muted); }

/* ------------------------------------------------------------ section scaffolding */
.band { padding-block: var(--tl-space-20); }
.band--surface { background: var(--tl-surface); border-block: 1px solid var(--tl-border); }
.band--dark { background: var(--tl-harbour-900); color: var(--tl-ghost-50); }
.band--dark h2, .band--dark h1 { color: var(--tl-ghost-50); }
.on-dark-muted { color: var(--tl-harbour-200); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-size: 0.72rem; line-height: 1.3; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--tl-brand);
}
.eyebrow::before { content: ''; width: 8px; height: 8px; background: currentColor; flex: none; }
.eyebrow--on-dark { color: var(--tl-sky-300); }

.section-head { max-width: 46rem; margin-bottom: var(--tl-space-12); }
.section-head h2 { margin: var(--tl-space-3) 0 var(--tl-space-4); color: var(--tl-ink); }
.section-head__lede { color: var(--tl-ink-muted); }
.tl-display-lg { font-size: clamp(1.9rem, 1.35rem + 2.1vw, 2.5rem); }

/* ------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--tl-surface); border-bottom: 1px solid var(--tl-border); }
.site-header__inner { display: flex; align-items: center; gap: var(--tl-space-6); min-height: 64px; }
.site-header__logo { flex: none; display: block; padding: var(--tl-space-1) 0; }
.site-header__logo img { height: 28px; width: auto; }
.site-nav { flex: 1; }
.site-nav ul { display: flex; gap: var(--tl-space-1); }
.site-nav a {
  display: block; padding: var(--tl-space-2) 10px; border-radius: var(--tl-radius-sm);
  color: var(--tl-ink); font-size: 0.84rem; font-weight: 500; text-decoration: none;
}
.site-nav a:hover { background: var(--tl-surface-sunken); color: var(--tl-brand-hover); }
.site-header__actions { display: flex; align-items: center; gap: var(--tl-space-3); margin-left: auto; }
.site-header__signin { padding: var(--tl-space-2); color: var(--tl-ink); font-size: 0.84rem; font-weight: 600; text-decoration: none; }
.site-header__signin:hover { color: var(--tl-brand-hover); text-decoration: underline; }
.menu-button {
  display: none; align-items: center; justify-content: center; width: var(--tl-control-lg); height: var(--tl-control-lg);
  border: 1px solid var(--tl-border); border-radius: var(--tl-radius-sm); background: var(--tl-surface); color: var(--tl-ink); cursor: pointer;
}
.menu-button:hover { background: var(--tl-surface-sunken); }
.mobile-menu { border-top: 1px solid var(--tl-border); background: var(--tl-surface); }
.mobile-menu ul { padding-block: var(--tl-space-2) var(--tl-space-4); }
.mobile-menu li a:not(.btn) {
  display: block; padding: var(--tl-space-3) 0; border-bottom: 1px solid var(--tl-border);
  color: var(--tl-ink); font-weight: 500; text-decoration: none;
}
.mobile-menu li:last-child { padding-top: var(--tl-space-4); }

@media (max-width: 1140px) {
  .site-nav, .site-header__signin { display: none; }
  .menu-button { display: inline-flex; }
}
@media (min-width: 1141px) { .mobile-menu { display: none; } }
@media (max-width: 520px) { .site-header__actions .btn { display: none; } }

/* ------------------------------------------------------------ hero */
.hero { padding-block: var(--tl-space-20); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--tl-space-12); align-items: center; }
.hero__title { margin: var(--tl-space-5) 0 var(--tl-space-6); font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); max-width: 15ch; }
.hero__lede { max-width: 36rem; color: var(--tl-harbour-200); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--tl-space-3); margin-top: var(--tl-space-8); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--tl-space-2); margin-top: var(--tl-space-8); }
.hero__meta li {
  padding: 3px var(--tl-space-2); border: 1px solid var(--tl-harbour-600); border-radius: var(--tl-radius-xs);
  font-family: var(--tl-font-mono); font-size: 0.78rem; font-weight: 500; color: var(--tl-harbour-200);
}
.hero__visual { position: relative; display: grid; place-items: center; min-height: 480px; padding: var(--tl-space-8) 0; }
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-card { position: relative; width: 100%; max-width: 460px; }

/* ------------------------------------------------------------ product UI compositions */
.ui-card {
  background: var(--tl-surface); color: var(--tl-ink);
  border: 1px solid var(--tl-border); border-radius: var(--tl-radius-md);
  padding: var(--tl-space-5); font-size: 0.875rem; line-height: 1.45;
}
.ui-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--tl-space-3); margin-bottom: var(--tl-space-4); }
.ui-card__foot {
  display: flex; flex-wrap: wrap; gap: var(--tl-space-1) var(--tl-space-4); padding-top: var(--tl-space-3);
  border-top: 1px solid var(--tl-border); font-size: 0.78rem;
}
.ui-card__foot .ui-muted { margin-left: auto; }
.ui-overline { margin-bottom: 2px; font-size: 0.69rem; line-height: 1.3; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tl-ink-muted); }
.ui-title { font-size: 0.95rem; font-weight: 600; color: var(--tl-ink); }
.ui-title .mono { margin-right: var(--tl-space-1); }
.ui-line { margin-bottom: var(--tl-space-4); font-size: 0.82rem; }

.route-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: var(--tl-space-2) 0 var(--tl-space-4); }
.route-strip li { position: relative; display: flex; flex-direction: column; gap: 2px; padding-top: 22px; padding-right: var(--tl-space-2); }
.route-strip li::after { content: ''; position: absolute; left: 12px; right: 0; top: 5px; height: 2px; background: var(--tl-border-strong); }
.route-strip li:last-child::after { display: none; }
.route-strip li.is-done::after { background: var(--tl-brand); }
.route-strip li.is-leg::after { height: 0; background: none; border-top: 2px dashed var(--tl-border-strong); }
.route-strip__stop { position: absolute; left: 0; top: 0; width: 12px; height: 12px; border: 2px solid var(--tl-border-strong); background: var(--tl-surface); }
.route-strip .is-done .route-strip__stop { border-color: var(--tl-brand); background: var(--tl-brand); }
.route-strip .is-next .route-strip__stop { border-color: var(--tl-brand); }
.route-strip__name { font-size: 0.8rem; font-weight: 600; }
.route-strip__time { font-size: 0.7rem; color: var(--tl-ink-muted); }

.ui-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--tl-space-3); padding: var(--tl-space-3) 0; margin-bottom: var(--tl-space-3); border-top: 1px solid var(--tl-border); }
.ui-stats dt { font-size: 0.72rem; color: var(--tl-ink-muted); }
.ui-stats dd { font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ui-stats .cur { font-size: 0.75rem; }

.ui-table { width: 100%; font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.ui-table th { padding: var(--tl-space-2) 10px; background: var(--tl-surface-sunken); border-bottom: 1px solid var(--tl-border); color: var(--tl-ink-muted); font-size: 0.72rem; font-weight: 600; text-align: left; }
.ui-table td { padding: 10px; border-bottom: 1px solid var(--tl-border); vertical-align: middle; }
.ui-table tbody tr:last-child td { border-bottom: 0; }
.ui-table .mono { white-space: nowrap; }
.ui-table td.num, .ui-table th.num { text-align: right; white-space: nowrap; }
.ui-table--legend th { background: none; color: var(--tl-ink); font-size: 0.82rem; font-weight: 400; padding-left: 0; border-bottom: 1px solid var(--tl-border); }
.ui-table--legend td { padding: var(--tl-space-2) 0 var(--tl-space-2) 10px; }
.ui-table--legend tbody tr:last-child th { border-bottom: 0; }
.ui-table--legend .is-total th, .ui-table--legend .is-total td { font-weight: 600; border-top: 1px solid var(--tl-ink); }
.key { display: inline-block; width: 10px; height: 10px; margin-right: var(--tl-space-2); vertical-align: -1px; }

.meter { margin-top: var(--tl-space-4); padding-top: var(--tl-space-4); border-top: 1px solid var(--tl-border); }
.meter__row { display: flex; justify-content: space-between; gap: var(--tl-space-3); font-size: 0.78rem; }
.meter__track { position: relative; height: 8px; margin: var(--tl-space-2) 0; background: var(--tl-surface-sunken); border-radius: var(--tl-radius-xs); }
.meter__track span { display: block; height: 100%; background: var(--tl-brand); border-radius: var(--tl-radius-xs); }
.meter__track--stock span { background: var(--tl-secondary); }
.meter__track i { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--tl-ink); }

.milestones li { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: var(--tl-space-1); padding-bottom: var(--tl-space-3); }
.milestones li > p { grid-column: 2; }
.milestones li::before { content: ''; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: var(--tl-border-strong); }
.milestones li.is-done::before { background: var(--tl-brand); }
.milestones li:last-child::before { display: none; }
.milestones li:last-child { padding-bottom: 0; }
.milestones__stop { position: absolute; left: 0; top: 3px; width: 12px; height: 12px; border: 2px solid var(--tl-border-strong); background: var(--tl-surface); }
.milestones .is-done .milestones__stop { border-color: var(--tl-brand); background: var(--tl-brand); }
.milestones .is-current .milestones__stop { border-color: var(--tl-brand); background: var(--tl-brand); outline: 3px solid var(--tl-brand-tint); }
.milestones strong { margin-right: 6px; font-weight: 600; }
.milestones p { font-size: 0.82rem; }
.milestones p.mono { font-size: 0.72rem; }

.ui-figure { margin-bottom: var(--tl-space-3); }
.ui-figure p { font-size: 0.78rem; }
.ui-figure .ui-figure__value {
  margin: 2px 0; font-family: var(--tl-font-display); font-stretch: var(--tl-display-stretch);
  font-size: 1.6rem; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
.ui-figure__value .cur { font-size: 1rem; }
.stacked { display: flex; gap: 2px; height: 14px; margin: var(--tl-space-2) 0 var(--tl-space-3); }
.stacked__seg { display: block; height: 100%; }
.s1 { background: var(--tl-data-1); }
.s2 { background: var(--tl-data-2); }
.s3 { background: var(--tl-data-3); }
.s4 { background: var(--tl-data-4); }
.is-margin { background: var(--tl-accent); }

/* ------------------------------------------------------------ proof strip */
.proof { background: var(--tl-surface); border-bottom: 1px solid var(--tl-border); }
.proof__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof__list li { padding: var(--tl-space-8) var(--tl-space-6); border-left: 1px solid var(--tl-border); }
.proof__list li:first-child { border-left: 0; padding-left: 0; }
.proof__value { color: var(--tl-brand); }
.proof__label { margin-top: var(--tl-space-1); max-width: 24ch; color: var(--tl-ink-muted); font-size: 0.88rem; }

/* ------------------------------------------------------------ solutions */
.solutions { display: grid; gap: var(--tl-space-6); }
.solution {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--tl-space-12); align-items: center;
  padding: var(--tl-space-12); background: var(--tl-surface); border: 1px solid var(--tl-border); border-radius: var(--tl-radius-md);
}
.solution:nth-child(even) .solution__ui { order: -1; }
.solution__ui { background: var(--tl-surface); }
.solution__index { color: var(--tl-brand); font-size: 0.8rem; }
.solution h3 { margin: var(--tl-space-2) 0 var(--tl-space-3); color: var(--tl-ink); }
.solution__copy > p:not(.solution__index) { color: var(--tl-ink-muted); }
.ticks { margin-top: var(--tl-space-5); display: grid; gap: var(--tl-space-2); }
.ticks li { position: relative; padding-left: 20px; font-size: 0.94rem; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; background: var(--tl-secondary); }

/* ------------------------------------------------------------ controls */
.controls__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--tl-space-8); }
.controls__grid li { padding: var(--tl-space-6) 0; border-top: 1px solid var(--tl-border); }
.controls__key { display: flex; align-items: center; gap: var(--tl-space-2); margin-bottom: var(--tl-space-2); color: var(--tl-ink); font-size: 0.82rem; }
.controls__key::before { content: ''; width: 8px; height: 8px; border: 2px solid var(--tl-brand); }
.controls__grid li p:last-child { color: var(--tl-ink-muted); font-size: 0.94rem; }

/* ------------------------------------------------------------ East Africa */
.ea { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--tl-space-12); align-items: center; }
.ea h2 { margin: var(--tl-space-3) 0 var(--tl-space-4); }
.corridors { margin: var(--tl-space-8) 0; }
.corridors div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: var(--tl-space-4); padding: var(--tl-space-3) 0; border-top: 1px solid var(--tl-harbour-700); }
.corridors dt { font-weight: 600; color: var(--tl-ghost-50); }
.corridors dd { color: var(--tl-harbour-200); }
.currency-table { width: 100%; font-size: 0.88rem; }
.currency-table caption { display: flex; margin-bottom: var(--tl-space-3); text-align: left; }
.currency-table th { padding: var(--tl-space-2) var(--tl-space-3) var(--tl-space-2) 0; border-bottom: 1px solid var(--tl-harbour-600); color: var(--tl-harbour-200); font-size: 0.75rem; font-weight: 600; text-align: left; }
.currency-table td { padding: var(--tl-space-2) var(--tl-space-3) var(--tl-space-2) 0; border-bottom: 1px solid var(--tl-harbour-700); color: var(--tl-harbour-200); vertical-align: top; }
.currency-table td:first-child, .currency-table td:nth-child(2) { color: var(--tl-ghost-50); }
.currency-table td.mono { font-size: 0.82rem; }

.ea-map__frame { position: relative; }
.ea-map__frame img { width: 100%; }
.ea-map__labels li {
  position: absolute; transform: translate(10px, -50%); white-space: nowrap;
  font-size: 0.75rem; line-height: 1; font-weight: 600; color: var(--tl-ghost-50);
}
.ea-map__labels li.to-left { transform: translate(calc(-100% - 10px), -50%); }
.ea-map__labels li.to-below { transform: translate(-6px, 10px); }
.ea-map__labels li.is-minor { font-weight: 500; color: var(--tl-harbour-200); }
.ea-map__caption { display: flex; align-items: center; gap: var(--tl-space-2); margin-top: var(--tl-space-4); color: var(--tl-harbour-200); font-size: 0.78rem; }
.ea-map__key { width: 20px; height: 3px; background: var(--tl-signal-500); flex: none; }

/* ------------------------------------------------------------ industries */
.industries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tl-space-4); }
.industry { display: flex; flex-direction: column; padding: var(--tl-space-6); background: var(--tl-surface); border: 1px solid var(--tl-border); border-radius: var(--tl-radius-md); }
.industry h3 { margin-bottom: var(--tl-space-2); color: var(--tl-ink); }
.industry p { color: var(--tl-ink-muted); font-size: 0.94rem; }
.industry > p:not(.industry__tag) { flex: 1; }
.industry__tag {
  display: flex; align-items: center; gap: var(--tl-space-2); margin-top: var(--tl-space-5); padding-top: var(--tl-space-3);
  border-top: 1px solid var(--tl-border); font-size: 0.75rem !important;
}
.industry__tag::before { content: ''; width: 7px; height: 7px; background: var(--tl-secondary); flex: none; }

/* ------------------------------------------------------------ about */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--tl-space-12); align-items: center; }
.about h2 { margin: var(--tl-space-3) 0 var(--tl-space-4); color: var(--tl-ink); }
.about__copy > p { color: var(--tl-ink-muted); }
.about__copy > p + p { margin-top: var(--tl-space-4); }
.about__copy > p.tl-body-lg { color: var(--tl-ink); }
.about__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tl-space-4); margin-top: var(--tl-space-8); padding-top: var(--tl-space-5); border-top: 1px solid var(--tl-border); }
.about__facts dt { font-size: 0.69rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tl-ink-muted); }
.about__facts dd { margin-top: var(--tl-space-1); font-weight: 600; font-size: 0.94rem; }
.about__mark { padding: var(--tl-space-12) var(--tl-space-8); background: var(--tl-bg); border: 1px solid var(--tl-border); border-radius: var(--tl-radius-md); }
.about__mark tl-logo-reveal { display: block; width: 100%; max-width: 420px; aspect-ratio: 685.06 / 130.34; margin-bottom: var(--tl-space-8); }
.about__mark tl-logo-reveal img { width: 100%; }
.about__mark figcaption p { color: var(--tl-ink-muted); font-size: 0.94rem; }
.about__mark figcaption p.tl-heading-sm { margin-bottom: var(--tl-space-1); color: var(--tl-ink); }
/* The reveal's colour-light artwork needs a light ground: in dark theme show it on a white plate. */
[data-theme='dark'] .about__mark { background: var(--tl-white); }
[data-theme='dark'] .about__mark figcaption p { color: var(--tl-ghost-600); }
[data-theme='dark'] .about__mark figcaption p.tl-heading-sm { color: var(--tl-ghost-900); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .about__mark { background: var(--tl-white); }
  :root:not([data-theme]) .about__mark figcaption p { color: var(--tl-ghost-600); }
  :root:not([data-theme]) .about__mark figcaption p.tl-heading-sm { color: var(--tl-ghost-900); }
}

/* ------------------------------------------------------------ contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--tl-space-12); align-items: start; }
.contact h2 { margin: var(--tl-space-3) 0 var(--tl-space-4); }
.next-steps { margin-top: var(--tl-space-8); }
.next-steps li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); padding-bottom: var(--tl-space-5); }
.next-steps li > p { grid-column: 2; color: var(--tl-harbour-200); }
.next-steps li strong { display: block; color: var(--tl-ghost-50); font-weight: 600; }
.next-steps li::before { content: ''; position: absolute; left: 5px; top: 16px; bottom: 0; width: 2px; background: var(--tl-harbour-600); }
.next-steps li:last-child::before { display: none; }
.next-steps__stop { position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border: 2px solid var(--tl-sky-300); }
.square-crop { position: relative; height: 200px; margin-top: var(--tl-space-8); overflow: hidden; }
.square-crop svg { position: absolute; left: 0; top: 0; width: 360px; height: 360px; }
.sq-t { fill: var(--tl-harbour-700); }
.sq-l { fill: var(--tl-harbour-800); }
.sq-load { fill: var(--tl-signal-500); }

.demo-form { padding: var(--tl-space-8); }
.demo-form h3 { margin-bottom: var(--tl-space-2); color: var(--tl-ink); }
.form-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--tl-space-2); margin-bottom: var(--tl-space-6); color: var(--tl-ink-muted); font-size: 0.82rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--tl-space-4); }
.field { margin-bottom: var(--tl-space-4); }
.field label { display: block; margin-bottom: 6px; color: var(--tl-ink); font-size: 0.78rem; font-weight: 600; }
.field__optional { color: var(--tl-ink-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: var(--tl-control-lg); padding: 0 var(--tl-space-3);
  background: var(--tl-surface); color: var(--tl-ink); border: 1px solid var(--tl-border-strong); border-radius: var(--tl-radius-sm);
  font-size: 0.94rem;
}
.field textarea { padding: 10px var(--tl-space-3); resize: vertical; line-height: 1.45; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--tl-focus); }
.field [aria-invalid='true'] { border-color: var(--tl-danger); }
.form-status { min-height: 1.4em; margin-top: var(--tl-space-3); color: var(--tl-ink-muted); font-size: 0.82rem; }

/* ------------------------------------------------------------ footer */
.site-footer { padding: var(--tl-space-12) 0 var(--tl-space-6); background: var(--tl-surface); border-top: 1px solid var(--tl-border); font-size: 0.88rem; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--tl-space-12); }
.site-footer__brand img { height: 28px; width: auto; margin-bottom: var(--tl-space-4); }
.site-footer__brand p + p { margin-top: var(--tl-space-1); }
.site-footer__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tl-space-6); }
.site-footer__nav .tl-overline { margin-bottom: var(--tl-space-3); color: var(--tl-ink-muted); }
.site-footer__nav li + li { margin-top: var(--tl-space-2); }
.site-footer__nav a { color: var(--tl-ink); text-decoration: none; }
.site-footer__nav a:hover { color: var(--tl-brand-hover); text-decoration: underline; }
.site-footer__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--tl-space-4); margin-top: var(--tl-space-12); padding-top: var(--tl-space-5); border-top: 1px solid var(--tl-border); color: var(--tl-ink-muted); font-size: 0.8rem; }
.theme-switch { display: inline-flex; border: 1px solid var(--tl-border-strong); border-radius: var(--tl-radius-sm); overflow: hidden; }
.theme-switch button { min-height: var(--tl-control-sm); padding: 0 var(--tl-space-3); border: 0; background: transparent; color: var(--tl-ink-muted); font-size: 0.78rem; font-weight: 600; cursor: pointer; }
.theme-switch button + button { border-left: 1px solid var(--tl-border); }
.theme-switch button[aria-pressed='true'] { background: var(--tl-brand-tint); color: var(--tl-ink); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .band, .hero { padding-block: var(--tl-space-12); }
  .hero__grid, .ea, .about, .contact, .solution, .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__grid { gap: var(--tl-space-8); }
  .hero__visual { min-height: 0; padding: var(--tl-space-8) var(--tl-space-4); }
  .solution { gap: var(--tl-space-8); padding: var(--tl-space-8); }
  .solution:nth-child(even) .solution__ui { order: 0; }
  .controls__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof__list li { padding: var(--tl-space-6) var(--tl-space-4); }
  .proof__list li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .proof__list li:nth-child(n + 3) { border-top: 1px solid var(--tl-border); }
  .square-crop { display: none; }
  .ea-map { max-width: 640px; }
}
@media (max-width: 640px) {
  .section-head { margin-bottom: var(--tl-space-8); }
  .solution { padding: var(--tl-space-5) var(--tl-space-4); }
  .ui-card { padding: var(--tl-space-4); }
  .demo-form { padding: var(--tl-space-5); }
  .controls__grid, .industries, .field-row, .about__facts { grid-template-columns: minmax(0, 1fr); }
  .field-row { gap: 0; }
  .ui-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .corridors div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ea-map__labels li { font-size: 0.68rem; }
  .ea-map__labels li.is-minor { display: none; }
  .site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__mark { padding: var(--tl-space-8) var(--tl-space-5); }
  .ui-card__foot .ui-muted { margin-left: 0; }
}

/* ============================================================ components.html (reference page) */
.ref-intro { padding-block: var(--tl-space-12); background: var(--tl-surface); border-bottom: 1px solid var(--tl-border); }
.ref-intro h1 { margin: var(--tl-space-3) 0 var(--tl-space-3); color: var(--tl-ink); font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); }
.ref-intro p { max-width: 46rem; color: var(--tl-ink-muted); }
.ref-toc { display: flex; flex-wrap: wrap; gap: var(--tl-space-2); margin-top: var(--tl-space-6); }
.ref-toc a { padding: var(--tl-space-1) var(--tl-space-3); border: 1px solid var(--tl-border); border-radius: var(--tl-radius-sm); color: var(--tl-ink); font-size: 0.82rem; font-weight: 500; text-decoration: none; }
.ref-toc a:hover { background: var(--tl-surface-sunken); }
.ref-section { padding-block: var(--tl-space-12); border-bottom: 1px solid var(--tl-border); }
.ref-section > .container > h2 { margin-bottom: var(--tl-space-2); color: var(--tl-ink); }
.ref-section > .container > p { max-width: 46rem; margin-bottom: var(--tl-space-6); color: var(--tl-ink-muted); }
.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--tl-space-4); }
.ref-grid--wide { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.ref-tile { padding: var(--tl-space-6); background: var(--tl-surface); border: 1px solid var(--tl-border); border-radius: var(--tl-radius-md); }
.ref-tile--dark { background: var(--tl-harbour-900); border-color: var(--tl-harbour-900); color: var(--tl-ghost-50); }
.ref-tile--white { background: var(--tl-white); }
.ref-tile img { max-height: 64px; width: auto; }
.ref-tile .ref-tile__art { display: flex; align-items: center; min-height: 96px; }
.ref-caption { margin-top: var(--tl-space-4); color: var(--tl-ink-muted); font-size: 0.78rem; }
.ref-tile--dark .ref-caption { color: var(--tl-harbour-200); }
.ref-tile--white .ref-caption { color: var(--tl-ghost-600); }
.ref-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--tl-space-3); }
.ref-row + .ref-row { margin-top: var(--tl-space-4); }
.ref-swatch { overflow: hidden; border: 1px solid var(--tl-border); border-radius: var(--tl-radius-md); background: var(--tl-surface); }
.ref-swatch__chip { height: 72px; }
.ref-swatch__body { padding: var(--tl-space-3); font-size: 0.78rem; }
.ref-swatch__body strong { display: block; font-size: 0.84rem; }
.ref-swatch__body .mono { color: var(--tl-ink-muted); }
.ref-type > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--tl-space-4); align-items: baseline; padding: var(--tl-space-4) 0; border-top: 1px solid var(--tl-border); }
.ref-type .mono { color: var(--tl-ink-muted); font-size: 0.75rem; }
.ref-reveal { display: block; width: 100%; max-width: 440px; aspect-ratio: 685.06 / 130.34; }
.ref-reveal img { width: 100%; max-height: none; }
.ref-field { position: relative; overflow: hidden; height: 260px; border-radius: var(--tl-radius-md); background: var(--tl-harbour-900); }
.ref-field--light { background: var(--tl-white); border: 1px solid var(--tl-border); }
.ref-field img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ref-construction { width: 100%; max-width: 280px; }
.ref-construction .grid-line { stroke: var(--tl-border); stroke-width: 0.3; fill: none; }
.ref-construction .clear { stroke: var(--tl-sky-500); stroke-width: 0.4; stroke-dasharray: 1.2 1.2; fill: none; }
.ref-construction .t { fill: var(--tl-harbour-700); }
.ref-construction .l { fill: var(--tl-sky-400); }
.ref-construction .load { fill: var(--tl-signal-500); }
.ref-construction text { fill: var(--tl-ink-muted); font-family: var(--tl-font-mono); font-size: 3px; }
.ref-route { width: 100%; height: auto; }
.ref-route .line { fill: none; stroke: var(--tl-brand); stroke-width: 2; stroke-linecap: square; }
.ref-route .line--muted { stroke: var(--tl-border-strong); stroke-dasharray: 4 4; }
.ref-route .stop { fill: var(--tl-surface); stroke: var(--tl-brand); stroke-width: 2; }
.ref-route .stop--done { fill: var(--tl-brand); }
.ref-route .stop--load { fill: var(--tl-accent); stroke: none; }
.ref-route text { fill: var(--tl-ink-muted); font-family: var(--tl-font-sans); font-size: 11px; font-weight: 600; }
@media (max-width: 640px) {
  .ref-type > div { grid-template-columns: minmax(0, 1fr); gap: var(--tl-space-1); }
  .ref-grid--wide { grid-template-columns: minmax(0, 1fr); }
}
