/* BHM Computing — site styles. Ink and paper with the logo's blue as the accent. */

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b1020;
  --ink-2: #131a2d;
  --ink-3: #1d2640;
  --paper: #f5f4ef;
  --paper-2: #ecebe4;
  --white: #ffffff;

  --text: #0b1020;
  --muted: #535a6b;
  --on-dark: #e9ebf2;
  --muted-on-dark: #a2a9bb;
  --line: #dcdad1;
  --line-strong: #c6c4b9;
  --line-dark: rgba(255, 255, 255, 0.12);

  --brand: #155bd5;          /* the logo's blue */
  --brand-hover: #0f49b0;
  --brand-on-dark: #6b9bff;
  --brand-tint: #e3ebfb;
  --ok: #2fbf71;
  --error: #b42318;
  --error-tint: #fdecea;

  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 16px;
  --radius-small: 10px;
  --section: clamp(64px, 9vw, 120px);
  --header: 80px;
  --logo: 38px;              /* the wordmark's height in the header */
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

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

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

.sr-only {
  position: absolute; 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: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-small);
  background: var(--ink); color: var(--white); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

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

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

/* ---------- Type helpers ---------- */

.lead {
  max-width: 40em;
  margin-top: 24px;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.55;
  color: var(--muted);
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none;
}
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform 0.2s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform 0.2s ease; }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-hover); color: var(--white); }

.btn-secondary { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); background: rgba(11, 16, 32, 0.03); }

.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--paper); color: var(--ink); }

.btn-small { min-height: 42px; padding: 8px 18px; font-size: 0.9375rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 244, 239, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled,
.site-header.is-open { border-bottom-color: var(--line); }

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

/* The logo: SVG mark + the name as text, sized by --logo (the mark's height); colours from the context. */
.brand {
  display: inline-flex; align-items: center; gap: calc(var(--logo) * 0.28);
  flex: none;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark { height: var(--logo); width: calc(var(--logo) * 512 / 420); fill: var(--brand); }
.brand-name {
  font-size: calc(var(--logo) * 0.86); font-weight: 700; line-height: 1;
  letter-spacing: -0.035em; white-space: nowrap;
  padding-bottom: 0.06em;   /* lifts the caps to the mark's centre; the descenders hang below */
}

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav ul a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--ink); font-weight: 500; text-decoration: none;
  transition: background-color 0.2s ease;
}
.site-nav ul a:hover { background: rgba(11, 16, 32, 0.06); color: var(--ink); }
.site-nav ul a[aria-current] { background: var(--ink); color: var(--white); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: transparent; color: var(--ink); cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.site-header.is-open .nav-toggle .icon-open { display: none; }
.site-header.is-open .nav-toggle .icon-close { display: block; }

@media (max-width: 860px) {
  :root { --header: 68px; --logo: 30px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(11, 16, 32, 0.25);
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav ul a { padding: 12px 14px; font-size: 1.125rem; border-radius: 12px; }
  .site-nav .btn { min-height: 52px; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section-tight { padding-top: clamp(48px, 6vw, 80px); }
.section-alt { background: var(--paper-2); }

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

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-lead { margin-top: 20px; font-size: 1.125rem; color: var(--muted); max-width: 36em; }
.section-head-row {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px;
  max-width: none;
}

/* Faint engineering grid behind the hero areas */
.hero, .page-hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(11, 16, 32, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 16, 32, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
}

/* ---------- Home hero ---------- */

.hero { padding-block: clamp(48px, 8vw, 112px) clamp(56px, 8vw, 104px); }

.hero-grid {
  display: grid; gap: clamp(48px, 6vw, 72px); align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}
.hero h1 { max-width: 11em; }
.hero .lead { max-width: 33em; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Console: the hero diagram */
.console {
  margin: 0;
  border-radius: 20px;
  background: var(--ink);
  color: var(--on-dark);
  box-shadow: 0 40px 80px -40px rgba(11, 16, 32, 0.55), 0 0 0 1px rgba(11, 16, 32, 0.9);
  overflow: hidden;
}
.console-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--mono); font-size: 0.75rem; color: var(--muted-on-dark);
}
.console-dots { display: flex; gap: 6px; }
.console-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.console-path { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.console-body { padding: clamp(20px, 3vw, 28px); }

.tier {
  padding: 18px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: var(--ink-2);
}
.tier-label {
  margin-bottom: 12px;
  font-size: 0.8125rem; font-weight: 600; color: var(--muted-on-dark);
}
.tier-bhm {
  border-color: rgba(107, 155, 255, 0.55);
  background: linear-gradient(180deg, rgba(21, 91, 213, 0.22), rgba(21, 91, 213, 0.08));
  box-shadow: 0 0 0 4px rgba(21, 91, 213, 0.12);
}
.tier-bhm .tier-label { color: var(--brand-on-dark); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 12px;
  border: 1px solid var(--line-dark); border-radius: 8px;
  font-size: 0.875rem; color: var(--on-dark);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.chips-platforms li:last-child { border-style: dashed; color: var(--muted-on-dark); }

.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.flow li {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 1rem; color: var(--white);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.flow li + li::before {
  content: ""; width: 18px; height: 1px; background: var(--brand-on-dark);
  margin-inline: 2px;
}

/* Animated connector between tiers */
.tier-link {
  position: relative;
  height: 28px; margin-left: 32px; width: 2px;
  background-image: linear-gradient(var(--brand-on-dark) 50%, transparent 50%);
  background-size: 2px 8px;
  animation: flow 1.2s linear infinite;
  opacity: 0.8;
}
@keyframes flow { to { background-position: 0 8px; } }

/* The pulse (site.js): a lit workload, a dot down the connector, the steps one by one, a dot down, a lit platform */
.chips li.is-lit {
  border-color: var(--brand-on-dark);
  background: rgba(21, 91, 213, 0.3);
  color: var(--white);
  box-shadow: 0 0 0 3px rgba(107, 155, 255, 0.18), 0 0 18px rgba(107, 155, 255, 0.35);
}
.flow li.is-active { color: var(--brand-on-dark); text-shadow: 0 0 14px rgba(107, 155, 255, 0.55); }
.tier-link::after {
  content: ""; position: absolute; left: -3px; top: -4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-on-dark);
  box-shadow: 0 0 10px 2px rgba(107, 155, 255, 0.6);
  opacity: 0;
}
.tier-link.is-flowing::after { animation: travel 0.7s ease-in-out forwards; }
@keyframes travel {
  0% { top: -4px; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: calc(100% - 4px); opacity: 0; }
}

/* ---------- Partners ---------- */

.partners { padding-block: 40px; border-block: 1px solid var(--line); background: var(--paper); }
.partners-title {
  margin-bottom: 24px;
  font-size: 0.9375rem; font-weight: 500; letter-spacing: 0; color: var(--muted);
  text-align: center;
}
.partners-list {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 16px clamp(24px, 4vw, 48px);
  max-width: 900px; margin-inline: auto;   /* nine logos wrap as five and four */
}
.partners-list img {
  width: 120px; height: auto;
  filter: grayscale(1) contrast(1.25) brightness(0.85);
  opacity: 0.7;
  mix-blend-mode: multiply;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.partners-list img:hover { filter: none; opacity: 1; }

/* ---------- Service cards ---------- */

.cards {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.cards-two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }

.card {
  display: flex; flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text); text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  color: var(--text);
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: 0 24px 40px -28px rgba(21, 91, 213, 0.45);
}
.card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; }
.card-icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--brand-tint); color: var(--brand);
}
.card-icon .icon { width: 24px; height: 24px; }
.card-num { font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.card-title { margin-bottom: 10px; }
.card-text { color: var(--muted); font-size: 1rem; flex: 1; }
.card-more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px;
  font-weight: 600; color: var(--brand);
}
.card-more .icon { width: 1.05em; height: 1.05em; transition: transform 0.2s ease; }
.card:hover .card-more .icon { transform: translateX(4px); }

/* ---------- Reasons (dark grid) ---------- */

.reasons {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  background: var(--line-dark);
  overflow: hidden;
}
.reason { padding: clamp(28px, 3vw, 36px); background: var(--ink); }
.reason-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 24px;
  border: 1px solid var(--line-dark); border-radius: 12px;
  color: var(--brand-on-dark);
}
.reason-icon .icon { width: 22px; height: 22px; }
.reason h3 { margin-bottom: 10px; }
.reason p { color: var(--muted-on-dark); font-size: 1rem; }

/* ---------- Steps ---------- */

.steps {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}
.step::before {
  content: ""; position: absolute; top: -2px; left: 0;
  width: 48px; height: 3px; background: var(--brand); border-radius: 2px;
}
.step-num {
  display: block; margin-bottom: 16px;
  font-size: 0.875rem; font-weight: 600; color: var(--brand);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 1rem; }

/* ---------- Call to action ---------- */

.section-cta { padding-top: 0; }
.section-dark + .section-cta,
.section-alt + .section-cta { padding-top: var(--section); }

.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 32px; align-items: end;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  padding: clamp(36px, 6vw, 72px);
  border-radius: 24px;
  background: var(--brand);
  color: var(--white);
}
.cta-band h2 { color: var(--white); max-width: 16em; }
.cta-band p { margin-top: 16px; color: rgba(255, 255, 255, 0.82); max-width: 32em; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; justify-self: end; }
.cta-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--white); font-weight: 600; text-decoration: none;
}
.cta-link:hover { color: var(--white); text-decoration: underline; }
.cta-mark {
  position: absolute; z-index: -1;
  right: -60px; bottom: -120px; width: 420px; height: 420px;
  fill: rgba(255, 255, 255, 0.07);
}

@media (max-width: 860px) {
  .cta-band { grid-template-columns: 1fr; align-items: start; }
  .cta-actions { justify-self: start; }
}

/* ---------- Inner page hero ---------- */

.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 15em; }
.page-hero-center { text-align: center; padding-block: clamp(72px, 12vw, 160px); border-bottom: 0; }
.page-hero-center h1, .page-hero-center .lead { margin-inline: auto; }
.page-hero-center .actions { justify-content: center; }
.page-hero-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 20px; border-radius: 12px;
  background: var(--brand); color: var(--white);
}
.page-hero-icon .icon { width: 22px; height: 22px; }

.crumbs { margin-bottom: 28px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.875rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }

.done-mark {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px; margin-bottom: 28px;
  border-radius: 50%; background: var(--brand); color: var(--white);
}
.done-mark .icon { width: 30px; height: 30px; }

/* ---------- Services list page ---------- */

.service-rows { border-top: 1px solid var(--line-strong); }
.service-row {
  position: relative;
  display: grid; gap: 16px 32px; align-items: start;
  grid-template-columns: 40px 48px minmax(0, 1.2fr) minmax(0, 1fr) 24px;
  padding-block: 36px;
  border-bottom: 1px solid var(--line-strong);
  transition: background-color 0.2s ease;
}
.service-row:hover { background: rgba(255, 255, 255, 0.55); }
.service-row-num { padding-top: 12px; font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.service-row-icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--brand-tint); color: var(--brand);
}
.service-row-icon .icon { width: 24px; height: 24px; }
.service-row h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); margin-bottom: 10px; }
.service-row h2 a { color: var(--ink); text-decoration: none; }
.service-row h2 a::after { content: ""; position: absolute; inset: 0; }   /* whole row is the link */
.service-row-copy p { color: var(--muted); }
.service-row-points { display: grid; gap: 8px; padding-top: 8px; font-size: 0.9375rem; }
.service-row-points li { display: flex; gap: 10px; align-items: flex-start; }
.service-row-points .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--brand); }
.service-row-arrow { padding-top: 12px; color: var(--brand); transition: transform 0.2s ease; }
.service-row:hover .service-row-arrow { transform: translateX(4px); }

@media (max-width: 980px) {
  .service-row { grid-template-columns: 48px minmax(0, 1fr); }
  .service-row-num, .service-row-arrow { display: none; }
  .service-row-points { grid-column: 2; padding-top: 0; }
}

/* ---------- Service page ---------- */

.service-layout {
  display: grid; gap: clamp(40px, 6vw, 80px); align-items: start;
  grid-template-columns: minmax(0, 1fr) 360px;
  padding-bottom: var(--section);
}
.service-main h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 56px 0 24px; }
.service-problem {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.5; letter-spacing: -0.01em;
  color: var(--ink);
}

.check-list { display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list .icon {
  width: 24px; height: 24px; padding: 4px; margin-top: 1px;
  border-radius: 50%; background: var(--brand); color: var(--white);
  stroke-width: 2.4;
}

.deliverables {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.deliverables li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--radius-small);
  background: var(--white);
  font-weight: 500;
}
.deliverables .icon { width: 22px; height: 22px; color: var(--brand); margin-top: 1px; }

.service-aside { position: sticky; top: calc(var(--header) + 24px); }
.aside-card {
  padding: 28px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white);
}
.aside-title {
  margin-bottom: 18px;
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
}
.fit-list { display: grid; gap: 14px; margin-bottom: 28px; }
.fit-list li { position: relative; padding-left: 22px; font-size: 1rem; }
.fit-list li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--brand);
}
.aside-note { margin-top: 14px; font-size: 0.875rem; color: var(--muted); text-align: center; }

@media (max-width: 980px) {
  .service-layout { grid-template-columns: 1fr; }
  .service-aside { position: static; }
}

/* ---------- About ---------- */

.story {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}
.story-item { padding: clamp(28px, 3vw, 40px); background: var(--white); }
.story-num { margin-bottom: 40px; font-size: 0.875rem; font-weight: 600; color: var(--brand); }
.story-item h2 { font-size: 1.5rem; margin-bottom: 14px; }
.story-item p:last-child { color: var(--muted); }

.office {
  display: grid; gap: clamp(40px, 6vw, 80px); align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.office-copy h2 { margin-bottom: 20px; }
.office-copy p { color: var(--muted); margin-bottom: 24px; max-width: 32em; }

.facts { margin: 0; border-top: 1px solid var(--line-strong); }
.facts > div {
  display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px;
  padding-block: 18px; border-bottom: 1px solid var(--line-strong);
}
.facts dt {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9375rem; color: var(--muted);
}
.facts dt .icon { width: 18px; height: 18px; color: var(--brand); }
.facts dd { margin: 0; font-weight: 500; }
.facts dd a { color: var(--ink); }

@media (max-width: 860px) {
  .office { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Contact ---------- */

.contact-layout {
  display: grid; gap: clamp(40px, 6vw, 72px); align-items: start;
  grid-template-columns: minmax(0, 1fr) 380px;
  padding-bottom: var(--section);
}
@media (max-width: 980px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-form {
  display: grid; gap: 20px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white);
}
.field-row { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.optional { margin-left: 6px; font-weight: 400; font-size: 0.8125rem; color: var(--muted); }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-small);
  background: var(--paper);
  color: var(--ink);
  font: inherit; font-size: 1rem; line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.field textarea { resize: vertical; min-height: 160px; }
.field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23535a6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(21, 91, 213, 0.15);
}
.field [aria-invalid="true"] { border-color: var(--error); background-color: var(--error-tint); }
.field-error { font-size: 0.875rem; color: var(--error); font-weight: 500; }

.form-alert {
  padding: 14px 16px;
  border: 1px solid rgba(180, 35, 24, 0.3); border-radius: var(--radius-small);
  background: var(--error-tint); color: var(--error);
  font-weight: 500;
}

/* The honeypot: off-screen for people, still in the page for bots */
.field-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 4px; }
.form-note { font-size: 0.875rem; color: var(--muted); }

.aside-card-dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.aside-card-dark .aside-title { color: var(--white); }
.contact-list { display: grid; gap: 24px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list > li > .icon {
  width: 40px; height: 40px; padding: 10px;
  border: 1px solid var(--line-dark); border-radius: 10px;
  color: var(--brand-on-dark);
}
.contact-list div { display: grid; gap: 2px; min-width: 0; }
.contact-label { font-size: 0.8125rem; color: var(--muted-on-dark); }
.contact-list a { color: var(--white); font-weight: 500; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--brand-on-dark); }
.contact-list .link-arrow { margin-top: 8px; font-size: 0.9375rem; color: var(--brand-on-dark); }
.contact-hours strong { font-weight: 600; color: var(--white); margin-right: 6px; }

/* ---------- Privacy and other long text ---------- */

.prose { max-width: 72ch; padding-bottom: var(--section); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.125rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.25em; list-style: disc; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--brand); }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--muted-on-dark); font-size: 0.9375rem; }
.footer-grid {
  display: grid; gap: 40px;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  padding-block: clamp(56px, 7vw, 88px) 48px;
}
.footer-brand .brand { --logo: 34px; margin-bottom: 22px; color: var(--white); }
.footer-brand .brand:hover { color: var(--white); }
.footer-brand p { max-width: 26em; }
.footer-title {
  margin-bottom: 18px;
  font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; color: var(--white);
}
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--muted-on-dark); text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-contact address { line-height: 1.55; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.875rem;
}

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Motion ---------- */

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