/* ==========================================================================
   AR Trakker — stylesheet
   Built around the blue taken from the company logo (#184CA1) with a
   road-sign amber reserved for live and alert states only.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
  /* Surfaces */
  --ink: #0f1b2d;          /* instrument-cluster navy */
  --ink-raised: #17273e;
  --ink-line: #27405f;
  --paper: #f3f5f8;        /* cool map-canvas grey */
  --paper-2: #e9edf3;
  --white: #ffffff;

  /* Brand */
  --brand: #3e47b1;
  --brand-700: #2f3791;
  --brand-300: #6f97d6;
  --brand-100: #e4ebf7;

  /* Live / alert accent — used sparingly, on purpose */
  --signal: #e0a82e;
  --signal-soft: #fbf1da;
  --alert: #c0392f;
  --good: #1f8a5b;

  /* Text */
  --text: #1b2735;
  --muted: #5c6b80;
  --muted-2: #8494a8;
  --line: #d8dfe9;
  --line-strong: #b9c5d6;

  /* Type */
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Scale — 1.25 minor third, capped for mobile via clamp() */
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: 1.0625rem;
  --t-md: clamp(1.125rem, 0.4vw + 1.03rem, 1.25rem);
  --t-lg: clamp(1.375rem, 1vw + 1.1rem, 1.75rem);
  --t-xl: clamp(1.75rem, 2vw + 1.2rem, 2.5rem);
  --t-2xl: clamp(2.125rem, 3.4vw + 1.2rem, 3.5rem);
  --t-3xl: clamp(2.5rem, 5vw + 1rem, 4.25rem);

  /* Layout */
  --wrap: 1200px;
  --wrap-narrow: 760px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --bar-h: 68px;

  --r: 4px;              /* the default corner: small and deliberate */
  --r-lg: 10px;          /* reserved for the two raised panels */
  --lift: 0 18px 44px -22px rgba(15, 27, 45, 0.45);
}

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

* { margin: 0; }

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

body {
     overflow-x: hidden;
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: var(--t-2xl); }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-lg); }
h4 { font-size: var(--t-md); letter-spacing: -0.01em; }

p { text-wrap: pretty; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-700); }

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

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

::selection { background: var(--brand); color: #fff; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r);
  transition: top 0.15s;
}
.skip:focus { top: 1rem; color: #fff; }

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

/* ---------------------------------------------------------------- layout -- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: var(--wrap-narrow); }

.band { padding: clamp(3.5rem, 7vw, 6rem) 0; padding-block: clamp(3.5rem, 7vw, 6rem); }
.band--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; padding-block: clamp(2.5rem, 5vw, 4rem); }
.band--paper { background: var(--paper); }
.band--ink { background: var(--ink); color: #cfd9e6; }
.band--ink h2, .band--ink h3, .band--ink h4 { color: #fff; }
.band + .band:not(.band--paper):not(.band--ink) { border-top: 1px solid var(--line); }

/* Section headings: a hairline rule carries the structure, no decorative label */
.band__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.band__head p {
  margin-top: 0.9rem;
  font-size: var(--t-md);
  color: var(--muted);
}
.band--ink .band__head p { color: #9fb0c6; }

.band__head--split {
  max-width: none;
  display: grid;
  gap: 1rem 3rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}
@media (min-width: 900px) {
  .band__head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .band__head--split p { margin-top: 0; }
}

/* ------------------------------------------------------------- utilities -- */
.stack > * + * { margin-top: var(--gap, 1rem); }
.lede { font-size: var(--t-md); color: var(--muted); }
.text-ink { color: var(--ink); }

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.78rem 1.35rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--t-sm);
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.16s, border-color 0.16s, color 0.16s;
}
.btn .icon { width: 1.1em; height: 1.1em; }

.btn--primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--primary:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }

.btn--signal { background: var(--signal); color: #2b2007; border-color: var(--signal); }
.btn--signal:hover { background: #cf982a; border-color: #cf982a; color: #2b2007; }

.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.btn--on-dark { border-color: rgba(255, 255, 255, 0.32); color: #fff; }
.btn--on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--block { width: 100%; justify-content: center; }
.btn--sm { padding: 0.5rem 0.9rem; font-size: var(--t-xs); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Text link with a rule that grows — no arrow glyph appended to the label */
.link {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--t-sm);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--brand-300);
}
.link:hover { border-bottom-color: var(--brand); }

/* =========================================================== top bar ===== */
.topbar {
  background: var(--ink);
  color: #a9bcd4;
  font-size: var(--t-xs);
  border-bottom: 1px solid var(--ink-line);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 38px;
  flex-wrap: wrap;
}
.topbar__group { display: flex; align-items: center; gap: 1.4rem; }
.topbar a {
  color: #cddaeb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.topbar a:hover { color: #fff; }
.topbar .icon { width: 1em; height: 1em; opacity: 0.75; }
.topbar__status { display: inline-flex; align-items: center; gap: 0.5rem; }

@media (max-width: 860px) { .topbar { display: none; } }

/* ============================================================ nav bar ==== */
.masthead {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.masthead.is-stuck { box-shadow: 0 1px 0 var(--line), 0 10px 24px -20px rgba(15, 27, 45, 0.5); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--bar-h);
}

.nav__logo { display: flex; align-items: center; flex: none; }
.nav__logo img { height: 40px; width: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin-inline-start: auto;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.7rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--t-sm);
  color: var(--text);
  text-decoration: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.nav__link:hover { color: var(--brand); }
.nav__link[aria-current="page"],
.nav__link.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.nav__link .icon { width: 0.95em; height: 0.95em; transition: transform 0.18s; }
.nav__item.is-open > .nav__link .icon { transform: rotate(180deg); }

.nav__actions { display: flex; align-items: center; gap: 0.6rem; flex: none; }

/* Dropdown panel */
.nav__item { position: relative; }
.nav__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: -0.7rem;
  min-width: 320px;
  padding: 0.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
}
.nav__item.is-open > .nav__panel,
.nav__item:hover > .nav__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav__panel a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.15rem 0.75rem;
  align-items: center;
  padding: 0.6rem 0.7rem;
  border-radius: var(--r);
  text-decoration: none;
  color: var(--text);
}
.nav__panel a:hover { background: var(--paper); }
.nav__panel a[aria-current="page"] { background: var(--brand-100); }
.nav__panel .icon {
  grid-row: span 2;
  width: 34px; height: 34px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--brand);
  background: var(--white);
}
.nav__panel b { font-family: var(--display); font-weight: 600; font-size: var(--t-sm); }
.nav__panel span { font-size: var(--t-xs); color: var(--muted); line-height: 1.35; }

.nav__toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  margin-inline-start: auto;
  padding: 0.5rem 0.7rem;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--t-sm);
  cursor: pointer;
}

/* Mobile drawer */
@media (max-width: 1040px) {
  .nav__toggle { display: inline-flex; }
  .nav__list,
  .nav__actions { display: none; }

  .nav__drawer[hidden] { display: none; }
  .nav__drawer {
    position: fixed;
    inset: calc(var(--bar-h) + 1px) 0 0 auto;
    width: min(400px, 100%);
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-left: 1px solid var(--line);
    overflow-y: auto;
    overscroll-behavior: contain;
    animation: drawer 0.2s ease-out;
  }
  @keyframes drawer { from { transform: translateX(14px); opacity: 0; } }

  .nav__drawer .nav__list {
    display: block;
    margin: 0;
    padding: 0.5rem var(--gutter) 0;
  }
  .nav__drawer .nav__item { border-bottom: 1px solid var(--line); }
  .nav__drawer .nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 1rem 0;
    font-size: var(--t-md);
    border-bottom: 0;
  }
  .nav__drawer .nav__link.is-active { border-bottom: 0; }
  .nav__drawer .nav__panel {
    position: static;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0.75rem;
    display: none;
  }
  .nav__drawer .nav__item.is-open > .nav__panel { display: block; }
  .nav__drawer .nav__item:hover > .nav__panel { display: none; }
  .nav__drawer .nav__item.is-open:hover > .nav__panel { display: block; }
  .nav__drawer .nav__panel a { padding-inline: 0; }

  .nav__drawer .nav__actions {
    display: grid;
    gap: 0.6rem;
    margin-top: auto;
    padding: 1.25rem var(--gutter) 2rem;
    background: var(--paper);
    border-top: 1px solid var(--line);
  }
  .nav__drawer .nav__actions .btn { justify-content: center; }
}

body.no-scroll { overflow: hidden; }

/* ============================================================== hero ===== */
.hero {
  position: relative;
  background: var(--ink);
  color: #c6d3e4;
  overflow: hidden;
}
/* Faint map grid — the only decorative texture on the page */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(111, 151, 214, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 151, 214, 0.09) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  align-items: center;
}
.hero__inner > * { min-width: 0; }
@media (min-width: 1000px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}

.hero__flag {
display: inline-flex;
  align-items: flex-start;
  gap: 0.55rem;
    flex-wrap: wrap;
  max-width: 100%;
  padding: 0.35rem 0.8rem 0.35rem 0.6rem;
  border: 1px solid var(--ink-line);
  border-radius: 100px;
  font-size: var(--t-xs);
  color: #a9bcd4;
  margin-bottom: 1.6rem;
}

.hero h1 {
  font-size: var(--t-3xl);
  color: #fff;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.hero__copy {
  margin-top: 1.4rem;
  max-width: 46ch;
  font-size: var(--t-md);
  color: #a9bcd4;
}
.hero .btn-row { margin-top: 2rem; }

.hero__assurance {
  margin-top: 1.5rem;
  font-size: var(--t-sm);
  color: #7f93ad;
}
.hero__assurance strong { color: #cddaeb; font-weight: 600; }

/* --- hero image: a transparent cutout, so it needs its own ground --------- */
.hero__image {
  position: relative;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
  max-width:1000px;
  display: grid;
  place-items: center;
}
/* A pool of brand light under the car, so the cutout sits on the navy
   instead of floating above it. */
.hero__image::before {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 5%;
  height: 44%;
  background: radial-gradient(60% 100% at 50% 100%, rgba(24, 76, 161, 0.55), rgba(24, 76, 161, 0) 70%);
  filter: blur(4px);
  pointer-events: none;
}
.hero__image img {
  position: relative;
  height: auto;
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.5));
}
@media (max-width: 999px) {
  .hero__image { max-width: 520px; }
}
@media (max-width: 620px) {
  .hero__image { max-width: 100%; }
   .hero__image img { width: 350px; }
  .hero__flag { font-size: 0.75rem; line-height: 1.4; }
}
/* --- the live panel: the one place we spend visual budget --------------- */
.panel {
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.panel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ink-line);
  font-size: var(--t-xs);
  color: #9fb0c6;
}
.panel__plate {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t-sm);
  color: #fff;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--ink-line);
  border-radius: 3px;
  background: #0d1725;
}
.panel__map { position: relative; background: #0d1725; }
.panel__map svg { width: 100%; height: auto; display: block; }

.route-line {
  fill: none;
  stroke: var(--brand-300);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.75;
}
.route-done {
  fill: none;
  stroke: var(--signal);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: trace 14s linear infinite;
}
@keyframes trace {
  0%   { stroke-dashoffset: 620; }
  88%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}
.route-grid { stroke: rgba(111, 151, 214, 0.13); stroke-width: 1; }
.route-block { fill: rgba(111, 151, 214, 0.07); }

.marker-ring { fill: rgba(224, 168, 46, 0.22); animation: ping 2.4s ease-out infinite; transform-origin: center; }
@keyframes ping {
  0%   { r: 7; opacity: 0.9; }
  100% { r: 20; opacity: 0; }
}
.marker-dot { fill: var(--signal); stroke: #0d1725; stroke-width: 2.5; }
.marker {
  offset-path: path("M 34 210 L 96 210 L 96 128 L 196 128 L 196 74 L 300 74 L 300 158 L 392 158");
  offset-distance: 0%;
  animation: travel 14s linear infinite;
}
@keyframes travel {
  0%   { offset-distance: 0%; }
  88%  { offset-distance: 100%; }
  100% { offset-distance: 100%; }
}
/* Browsers without offset-path park the marker at the start of the route
   instead of at the SVG origin. */
@supports not (offset-path: path("M 0 0 L 1 1")) {
  .marker { transform: translate(34px, 210px); }
}

.panel__readout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink-line);
}
.panel__readout div { padding: 0.85rem 1rem; }
.panel__readout div + div { border-left: 1px solid var(--ink-line); }
.panel__readout dt { font-size: var(--t-xs); color: #7f93ad; }
.panel__readout dd {
  margin: 0.2rem 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t-md);
  color: #fff;
}
.panel__readout dd small { font-size: 0.6em; font-weight: 500; color: #9fb0c6; margin-left: 2px; }
.panel__readout .on { color: var(--good); }

/* --- facts strip -------------------------------------------------------- */
.facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink-line);
  background: var(--ink);
}
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts > div {
  padding: 1.35rem var(--gutter);
  border-right: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
}
@media (min-width: 760px) { .facts > div { border-bottom: 0; } }
.facts > div:last-child { border-right: 0; }
.facts b {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t-lg);
  color: #fff;
  letter-spacing: -0.02em;
}
.facts span { font-size: var(--t-xs); color: #8aa0ba; }

/* ============================================================= grids ===== */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* Spec grid: hairline cells instead of a set of floating cards */
.spec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  overflow: hidden;
}
.spec__cell {
  padding: clamp(1.35rem, 2.5vw, 1.9rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.spec__cell--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.16s;
}
.spec__cell--link:hover { background: var(--paper); color: inherit; }
.spec__cell--link:hover h3 { color: var(--brand); }
.spec__cell .icon {
  width: 26px; height: 26px;
  color: var(--brand);
  margin-bottom: 0.9rem;
}
.spec__cell h3 { font-size: var(--t-md); }
.spec__cell p { margin-top: 0.5rem; font-size: var(--t-sm); color: var(--muted); }

/* ------------------------------------------------------- company split -- */
.split {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } }
.split__side {
  display: flex;
  flex-direction: column;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.16s;
}
.split__side:hover { background: var(--paper); color: inherit; }

/* Photograph sits full-bleed at the top of each side. */
.split__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.split__side:hover .split__media img { transform: scale(1.03); }

.split__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}
.split__side:hover { background: var(--paper); color: inherit; }
.split__side h3 { font-size: var(--t-lg); }
.split__side p { color: var(--muted); font-size: var(--t-sm); }
.split__tag {
  align-self: flex-start;
  font-size: var(--t-xs);
  color: var(--muted);
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--brand);
}
.split__side .link { margin-top: auto; align-self: flex-start; }
/* ================================================= services (home page) == */
.services { display: grid; gap: 2rem; }
.services > * { min-width: 0; }    
@media (min-width: 980px) {
  .services {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: 3rem;
    align-items: center;
  }
}

.services__grid { display: grid; gap: 1rem; }
@media (min-width: 520px) { .services__grid { grid-template-columns: 1fr 1fr; } }

.service {
  display: grid;
  align-content: start;
  gap: 0.3rem;
  padding: 1.6rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.16s, background-color 0.16s;
}
.service .icon { width: 34px; height: 34px; color: var(--brand); margin-bottom: 0.75rem; }
.service b { font-family: var(--display); font-weight: 600; font-size: var(--t-md); color: var(--ink); }
.service span { font-size: var(--t-xs); color: var(--muted); line-height: 1.4; }
.service:hover,
.service:focus-visible,
.service.is-active { border-color: var(--brand); background: var(--brand-100); }

/* The stage swaps its picture as you move across the cards. */
.services__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--r);
  overflow: hidden;
  min-width: 0;
}
/* Two angled brand bands, so the cut-out product images have a ground. */
.services__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    transparent 0 18%,
    var(--brand) 18% 25%,
    transparent 25% 30%,
    var(--brand) 30% 100%
  );
}
.services__stage img {
  position: relative;
  grid-area: 1 / 1;
  width: 100%;
  max-width: 460px;
  height: auto;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.35));
}
.services__stage img.is-shown { opacity: 1; transform: none; }

@media (max-width: 979px) {
  .services__stage { order: -1; min-height: 220px; }
}
/* ========================================== solutions index cards ======= */
.solcards { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .solcards { grid-template-columns: 1fr 1fr; } }
.solcards > * { min-width: 0; }

.solcard {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.16s;
}
.solcard:hover { border-color: var(--line-strong); }

.solcard__head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 0.1rem 0.9rem;
  padding: 1.25rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.solcard__icon {
  grid-row: span 2;
  width: 44px; height: 44px;
  padding: 9px;
  color: var(--brand);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.solcard h3 { font-size: var(--t-md); }
.solcard h3 a { color: inherit; text-decoration: none; }
.solcard h3 a:hover { color: var(--brand); }
.solcard__kicker { font-size: var(--t-xs); color: var(--muted); }

.solcard__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  padding: clamp(1.25rem, 3vw, 1.6rem);
}
.solcard__body p { font-size: var(--t-sm); color: var(--muted); }
.solcard__more { margin-top: auto; }
/* ============================================ solution detail page ====== */
.solhero { display: grid; gap: 2rem; align-items: center; }
.solhero > * { min-width: 0; }
@media (min-width: 900px) {
  .solhero { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 3.5rem; }
}
.solhero__media {
  position: relative;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
  max-width: 460px;
  display: grid;
  place-items: center;
}
.solhero__media::before {
  content: "";
  position: absolute;
  left: 2%; right: 2%; bottom: 4%;
  height: 44%;
  background: radial-gradient(60% 100% at 50% 100%, rgba(24, 76, 161, 0.55), rgba(24, 76, 161, 0) 70%);
  filter: blur(4px);
}
.solhero__media img {
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.45));
}

/* Three real stages, so the numbers are carrying information. */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.step__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t-xl);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--brand-300);
}
.step__icon { width: 28px; height: 28px; color: var(--brand); }
.step h3 { font-size: var(--t-md); }
.step p { font-size: var(--t-sm); color: var(--muted); }

/* A connecting rule between the three cards on wide screens. */
@media (min-width: 820px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -1.25rem;
    width: 1.25rem;
    height: 1px;
    background: var(--line-strong);
  }
}

.suits { display: grid; gap: 2.5rem; align-items: start; }
.suits > * { min-width: 0; }
@media (min-width: 900px) {
  .suits { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 3.5rem; }
  .suits .checklist { grid-template-columns: 1fr; }
}

.pricecard {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--r);
}
.pricecard h3 { font-size: var(--t-md); }
.pricecard p { font-size: var(--t-sm); color: var(--muted); }
.pricecard__note {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--ink) !important;
}
/* ============================================ solutions page intro ====== */
.intro-split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .intro-split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3.5rem; }
}
.intro-split > * { min-width: 0; }  

.caplist { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; }
.caplist li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-sm);
}
.caplist li:first-child { border-top: 1px solid var(--line); }
.caplist .icon { width: 1em; height: 1em; flex: none; color: var(--brand); }
.caplist a { text-decoration: none; color: var(--ink); font-weight: 600; }
.caplist a:hover { color: var(--brand); }
.caplist span { color: var(--muted); }
/* ============================================== why choose us (home) ==== */
.why-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
}
@media (min-width: 900px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.75rem 1.5rem;
  /* A pale wash of the brand blue, lightest at the top-left corner. */
  background: linear-gradient(158deg, #ffffff 0%, #f1f5fc 52%, #e3ebf8 100%);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--r);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.why-card:hover {
  border-color: var(--line-strong);
  border-top-color: var(--signal);
  box-shadow: 0 14px 30px -20px rgba(15, 27, 45, 0.45);
}

/* A solid tile, not an outline — it is the only strong colour on the card. */
.why-card__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 0.35rem;
  background: var(--brand);
  color: #fff;
  border-radius: var(--r);
  transition: background-color 0.18s, color 0.18s;
}
.why-card:hover .why-card__icon { background: var(--signal); color: #2b2007; }
.why-card__icon .icon { width: 26px; height: 26px; }

.why-card h3 { font-size: var(--t-md); color: var(--ink); }
.why-card p { font-size: var(--t-sm); color: #33465c; margin-top: auto; }
/* ============================================================ packages == */
.matrix { width: 100%; border-collapse: collapse; background: var(--white); }
.matrix caption { text-align: left; padding-bottom: 1rem; color: var(--muted); font-size: var(--t-sm); }
.matrix th, .matrix td {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.matrix thead th { background: var(--paper); vertical-align: top; }
.matrix tbody th { font-weight: 400; font-family: var(--body); font-size: var(--t-sm); }
.matrix td { text-align: center; width: 130px; }
.matrix .group th {
  background: var(--ink);
  color: #fff;
  font-family: var(--display);
  font-size: var(--t-xs);
  letter-spacing: 0.02em;
}
.matrix .yes { color: var(--good); }
.matrix .no { color: var(--muted-2); }
.matrix .is-featured { background: var(--brand-100); }
.matrix__plan { display: grid; gap: 0.35rem; min-width: 130px; }
.matrix__plan b { font-family: var(--display); font-size: var(--t-md); color: var(--ink); }
.matrix__plan span { font-size: var(--t-xs); color: var(--muted); font-weight: 400; }
.matrix__scroll { overflow-x: auto; border-radius: var(--r); }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color 0.16s;
}
.plan:hover { border-color: var(--line-strong); }

/* The head is a separate band, so the three cards read as a spec sheet
   rather than three identical boxes of text. */
.plan__head {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 0.1rem 0.9rem;
  padding: 1.25rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  border-radius: var(--r) var(--r) 0 0;
}
.plan__icon {
  grid-row: span 2;
  width: 46px; height: 46px;
  padding: 10px;
  color: var(--brand);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.plan h2, .plan h3 { font-size: var(--t-lg); line-height: 1.15; }
.plan__for { font-size: var(--t-xs); color: var(--muted); }

.plan__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}
.plan p { font-size: var(--t-sm); color: var(--muted); }
.plan .btn { margin-top: auto; }

/* A number and a bar, so you can compare the three at a glance. */
.plan__meter { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.4rem; }
.plan__meter b {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t-xl);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brand);
}
.plan__meter span { font-size: var(--t-xs); color: var(--muted); }
.plan__bar {
  flex-basis: 100%;
  height: 4px;
  margin-top: 0.65rem;
  background: var(--paper-2);
  border-radius: 2px;
  overflow: hidden;
}
.plan__bar span { display: block; height: 100%; background: var(--brand); }

.plan__badge {
  position: absolute;
  top: -11px;
  right: 1.25rem;
  padding: 0.25rem 0.7rem;
  background: var(--signal);
  border-radius: 100px;
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--t-xs);
  color: #2b2007;
}

.plan__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; font-size: var(--t-sm); }
.plan__list li { display: flex; gap: 0.55rem; align-items: flex-start; }
.plan__list .icon { width: 1em; height: 1em; margin-top: 0.35em; flex: none; }
.plan__list .yes { color: var(--good); }
.plan__list .no { color: var(--muted-2); }
.plan__list li.off { color: var(--muted-2); }

/* --- the recommended plan is a solid dark block, not a thicker border --- */
.plan--featured {
  background: var(--ink);
  border-color: var(--ink);
  color: #b9c9dd;
}
@media (min-width: 860px) {
  .plan--featured { margin-block: -14px; }
}
.plan--featured .plan__head {
  background: rgba(255, 255, 255, 0.04);
  border-bottom-color: var(--ink-line);
}
.plan--featured h2,
.plan--featured h3 { color: #fff; }
.plan--featured .plan__icon {
  color: var(--signal);
  background: transparent;
  border-color: var(--ink-line);
}
.plan--featured .plan__for,
.plan--featured p,
.plan--featured .plan__meter span { color: #9fb0c6; }
.plan--featured .plan__meter b { color: #fff; }
.plan--featured .plan__bar { background: var(--ink-line); }
.plan--featured .plan__bar span { background: var(--signal); }
.plan--featured .plan__list li { color: #cddaeb; }
.plan--featured .plan__list li.off { color: #6f819a; }
.plan--featured .plan__list .yes { color: var(--signal); }
.plan--featured .plan__list .no { color: #6f819a; }
/* ================================================================ FAQ === */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.15rem 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--t-md);
  color: var(--ink);
}
.faq__q:hover { color: var(--brand); }
.faq__q .icon { flex: none; margin-top: 0.2em; color: var(--brand); transition: transform 0.2s; }
.faq__q[aria-expanded="true"] .icon { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.24s ease; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: 1.25rem; max-width: 72ch; color: var(--muted); }

/* ============================================================== blog ==== */
.postcard {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.16s;
}
.postcard:hover { border-color: var(--line-strong); }
.postcard__media { aspect-ratio: 16 / 9; background: var(--paper-2); overflow: hidden; }
.postcard__media img { width: 100%; height: 100%; object-fit: cover; }
.postcard__body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.25rem; flex: 1; }
.postcard h3 { font-size: var(--t-md); line-height: 1.25; }
.postcard h3 a { color: inherit; text-decoration: none; }
.postcard h3 a:hover { color: var(--brand); }
.postcard p { font-size: var(--t-sm); color: var(--muted); }
.postcard .meta { margin-top: auto; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: var(--t-xs);
  color: var(--muted);
}
.meta time { color: var(--muted); }

.tagpill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: var(--t-xs);
  color: var(--brand-700);
  background: var(--brand-100);
  border-radius: 100px;
  text-decoration: none;
}
.tagpill:hover { background: var(--brand); color: #fff; }
.tagpill.is-active { background: var(--ink); color: #fff; }

.feature {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--white);
}
@media (min-width: 860px) { .feature { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.feature__media { background: var(--paper-2); min-height: 260px; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  justify-content: center;
}
.feature h2 { font-size: var(--t-lg); }
.feature p { color: var(--muted); }

.blogbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--white);
  margin-inline-start: auto;
}
.search input { border: 0; outline: 0; background: none; font-size: var(--t-sm); width: 190px; }
.search .icon { color: var(--muted); width: 1.05em; height: 1.05em; }

.pager { display: flex; gap: 0.4rem; align-items: center; justify-content: center; margin-top: 2.5rem; }
.pager a, .pager span {
  min-width: 40px;
  padding: 0.5rem 0.7rem;
  text-align: center;
  font-size: var(--t-sm);
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-decoration: none;
  color: var(--text);
}
.pager a:hover { border-color: var(--ink); }
.pager .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ------------------------------------------------------------- article -- */
.article { display: grid; gap: 3rem; }
@media (min-width: 1000px) {
  .article { grid-template-columns: minmax(0, 1fr) 260px; gap: 4rem; align-items: start; }
}


.prose > * + * { margin-top: 1.15rem; }
.prose h2 {
  font-size: var(--t-lg);
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.prose h3 { font-size: var(--t-md); margin-top: 2rem; }
.prose p, .prose li { color: #33465c; }
.prose ul, .prose ol { padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.prose img { border-radius: var(--r); margin-block: 1.75rem; }
.prose blockquote {
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--brand);
  font-size: var(--t-md);
  color: var(--ink);
}
.prose b, .prose strong { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.6rem 0.75rem; text-align: left; }
.prose th { background: var(--paper); font-family: var(--display); }

.toc { position: sticky; top: calc(var(--bar-h) + 24px); font-size: var(--t-sm); }
.toc h2 { font-size: var(--t-sm); font-family: var(--body); font-weight: 600; color: var(--muted); }
.toc ol { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0.1rem; }
.toc a {
  display: block;
  padding: 0.35rem 0 0.35rem 0.85rem;
  border-left: 2px solid var(--line);
  text-decoration: none;
  color: var(--muted);
  line-height: 1.35;
}
.toc a:hover, .toc a.is-active { color: var(--brand); border-left-color: var(--brand); }
@media (max-width: 999px) { .toc { display: none; } }

.article__head { border-bottom: 1px solid var(--line); padding-bottom: 2rem; margin-bottom: 2.5rem; }
.article__head h1 { max-width: 22ch; }
.article__hero {
  margin-bottom: 2.5rem;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 21 / 9;
}
.article__hero img { width: 100%; height: 100%; object-fit: cover; }

.share { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.share a, .share button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: var(--t-xs);
  text-decoration: none;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
}
.share a:hover, .share button:hover { border-color: var(--ink); }

/* ========================================================== breadcrumbs = */
.crumbs { padding-block: 0.9rem; font-size: var(--t-xs); border-bottom: 1px solid var(--line); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0; }
.crumbs li::after { content: "/"; margin-left: 0.35rem; color: var(--muted-2); }
.crumbs li:last-child::after { content: none; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--ink); }

/* ============================================================ page hero = */
.pagehead { background: var(--ink); color: #a9bcd4; padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.pagehead h1 { color: #fff; }
.pagehead p { margin-top: 1.1rem; font-size: var(--t-md); color: #a9bcd4; }
.pagehead__note {
  display: inline-block;
  margin-bottom: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--signal);
  font-size: var(--t-xs);
  color: #cddaeb;
}

/* ============================================================= blocks === */
.block + .block { margin-top: clamp(2.5rem, 5vw, 4rem); }
.block__title { margin-bottom: 1.1rem; }
.block__intro { color: var(--muted); max-width: 62ch; margin-bottom: 1.75rem; }

.note {
  border: 1px solid #e8d3a0;
  border-left: 4px solid var(--signal);
  background: var(--signal-soft);
  border-radius: var(--r);
  padding: 1.25rem 1.4rem;
}
.note h3 { font-size: var(--t-md); margin-bottom: 0.4rem; }
.note code { background: rgba(0,0,0,0.06); padding: 0.1em 0.35em; border-radius: 3px; font-size: 0.9em; }

.profile { display: grid; gap: 2rem; }
@media (min-width: 780px) { .profile { grid-template-columns: 260px minmax(0, 1fr); } }
.profile__photo {
  aspect-ratio: 4 / 5;
  background: var(--paper-2) center/cover no-repeat;
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: grid;
  place-items: center;
  color: var(--muted-2);
  font-size: var(--t-xs);
  text-align: center;
  padding: 1rem;  
}
.profile__honour {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.6rem;
  padding: 0.25rem 0.7rem 0.25rem 0.55rem;
  background: var(--signal-soft);
  border: 1px solid #e8d3a0;
  border-radius: 100px;
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--t-xs);
  color: #7a5a10;
}
.profile__honour .icon { width: 1em; height: 1em; fill: var(--signal); stroke: var(--signal); }

/* A state honour deserves its own panel rather than another paragraph. */
.award {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(160deg, #fffdf8 0%, var(--signal-soft) 100%);
  border: 1px solid #e8d3a0;
  border-left: 4px solid var(--signal);
  border-radius: var(--r);
}
.award__medal {
  width: 56px; height: 56px;
  padding: 12px;
  color: var(--signal);
  fill: var(--signal);
  background: var(--white);
  border: 1px solid #e8d3a0;
  border-radius: 50%;
}
.award__badge {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t-md);
  color: var(--ink);
}
.award p { color: #4a3a12; }
@media (max-width: 520px) {
  .award { grid-template-columns: 1fr; gap: 1rem; }
}
.profile__meta { list-style: none; padding: 0; margin: 1.5rem 0 0; border-top: 1px solid var(--line); }
.profile__meta li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-sm);
}
.profile__meta dt, .profile__meta span:first-child { color: var(--muted); }
.profile__meta b { font-weight: 600; text-align: right; }

.letter {
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.letter > p + p { margin-top: 1.1rem; }
.letter__closing {
  margin-top: 1.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t-lg);
  letter-spacing: -0.02em;
  color: var(--brand);
}
.letter__sign { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line-strong); }
.letter__sign b { display: block; font-family: var(--display); font-size: var(--t-md); color: var(--ink); }
.letter__sign span { font-size: var(--t-sm); color: var(--muted); }

.pullquote {
  max-width: 60ch;
  padding-left: 1.5rem;
  border-left: 4px solid var(--brand);
  font-family: var(--display);
  font-size: var(--t-lg);
  line-height: 1.35;
  color: var(--ink);
}
.pullquote cite { display: block; margin-top: 0.9rem; font: 400 var(--t-sm)/1.4 var(--body); color: var(--muted); font-style: normal; }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.75rem 1.75rem; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px; top: 0.45em;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--brand);
}
.timeline b { display: block; font-family: var(--display); font-size: var(--t-md); color: var(--ink); }
.timeline em { font-style: normal; font-size: var(--t-xs); color: var(--muted); }
.timeline p { margin-top: 0.3rem; font-size: var(--t-sm); color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
@media (min-width: 700px) { .checklist { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.checklist li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-sm);
}
.checklist .icon { width: 1.05em; height: 1.05em; margin-top: 0.35em; color: var(--brand); }

.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); border-top: 1px solid var(--line); }
.statgrid > div { padding: 1.25rem 1.25rem 1.25rem 0; border-bottom: 1px solid var(--line); }
.statgrid b { display: block; font-family: var(--display); font-size: var(--t-xl); color: var(--brand); letter-spacing: -0.03em; }
.statgrid span { font-size: var(--t-sm); color: var(--muted); }

/* =============================================================== forms == */
.field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.field > label { font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  font-size: var(--t-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-100);
}
.field--error input, .field--error textarea, .field--error select { border-color: var(--alert); }
.field__error { font-size: var(--t-xs); color: var(--alert); }
.field__hint { font-size: var(--t-xs); color: var(--muted); }

.formcard {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.alert {
  padding: 1rem 1.15rem;
  border-radius: var(--r);
  border: 1px solid;
  margin-bottom: 1.5rem;
  font-size: var(--t-sm);
}
.alert--ok { background: #eaf6f0; border-color: #b6ddc9; color: #14603f; }
.alert--bad { background: #fdedec; border-color: #f2c3bf; color: #8f261e; }

/* Honeypot — hidden from people, visible to bots */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* --------------------------------------------------------------- contact */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 940px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 3.5rem; } }

.contactlist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.contactlist li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 0.15rem 0.9rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.contactlist .icon {
  grid-row: span 2;
  width: 38px; height: 38px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--brand);
}
.contactlist b { font-family: var(--display); font-size: var(--t-sm); }
.contactlist p, .contactlist a { font-size: var(--t-sm); color: var(--muted); text-decoration: none; }
.contactlist a:hover { color: var(--brand); }

.mapframe {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--paper-2);
}
.mapframe iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ================================================================= CTA == */
.cta {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--ink);
  color: #a9bcd4;
  border-radius: var(--r);
}
@media (min-width: 820px) { .cta { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; } }
.cta h2 { color: #fff; font-size: var(--t-lg); }
.cta p { margin-top: 0.6rem; max-width: 52ch; font-size: var(--t-sm); }

/* ============================================================== apps ==== */
.apps { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .apps { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: 3rem; } }
.apps__media { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); display: grid; place-items: center; padding: 1.5rem;min-width: 0; }
.apps__media img { max-height: 900px; width: auto;max-width: 100%; }
/* Home-page variant: copy on the left, a bare image on the right. */
@media (min-width: 860px) {
  .apps--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }
}
.apps__img {
  width: 100%;
  min-width: 0;
  max-width: 460px;
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 24px 34px rgba(15, 27, 45, 0.22));
}
.storebadges { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.storebadges img { height: 48px; width: auto; }
.storebadges a { display: block; border-radius: 6px; transition: opacity 0.15s; }
.storebadges a:hover { opacity: 0.82; }

/* ============================================================= footer === */
.footer { background: var(--ink); color: #92a6bf; padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer h4 {
  font-size: var(--t-sm);
  color: #fff;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--ink-line);
}
.footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1040px) { .footer__grid { grid-template-columns: 1.7fr 1fr 1fr 1.2fr; } }
.footer__logo img { height: 44px; width: auto; }
.footer p { font-size: var(--t-sm); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer a { color: #b9c9dd; text-decoration: none; font-size: var(--t-sm); }
.footer a:hover { color: #fff; }
.footer address { font-style: normal; font-size: var(--t-sm); }

.social { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.social a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--ink-line);
  border-radius: var(--r);
  color: #b9c9dd;
}
.social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--ink-line);
  padding-block: 1.25rem;
  font-size: var(--t-xs);
}
.footer__bottom .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }

/* ------------------------------------------------------- floating aside - */
.quickbar {
  position: fixed;
  right: 0;
  bottom: 18px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: var(--r) 0 0 var(--r);
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--lift);
}
.quickbar a {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  background: var(--white);
  color: var(--ink);
}
.quickbar a:hover { background: var(--brand); color: #fff; }
@media (max-width: 640px) {
  .quickbar { flex-direction: row; right: 12px; bottom: 12px; border-radius: var(--r); border-right: 1px solid var(--line); }
}

/* ============================================================== error === */
.errorpage { display: grid; place-items: center; text-align: center; padding-block: clamp(4rem, 10vw, 8rem); }
.errorpage b {
  font-family: var(--display);
  font-size: clamp(4rem, 14vw, 8rem);
  line-height: 1;
  color: var(--brand-100);
  letter-spacing: -0.05em;
}
.errorpage h1 { margin-top: -0.4em; }
.errorpage p { margin-top: 1rem; color: var(--muted); max-width: 46ch; }

/* ======================================================= reduced motion = */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .marker { offset-distance: 62%; }
  .route-done { stroke-dashoffset: 240; }
}

/* ================================================================ print = */
@media print {
  .masthead, .topbar, .footer, .quickbar, .cta, .share { display: none !important; }
  body { color: #000; }
  .prose { max-width: none; }
}
