/* alanbrown.net — shared styles */
:root {
  --ground: #1f4a3a;      /* racing green page background */
  --paper: #fbf8ef;       /* cream cards */
  --ink: #0d0e10;         /* main text on paper */
  --ink-soft: #2a2c31;    /* secondary text on paper */
  --tape: #ff7a59;        /* coral: name, main buttons, newest markers */
  --accent: #1f6b4f;      /* green labels on paper */
  --mint: #9ed8c2;        /* eyebrows on green */
  --on-ground: #fbf8ef;   /* text on green */
  --on-ground-soft: #d8e3dd;
  --rule: #c3c7cc;
  --dash: #9aa0a8;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--on-ground);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
a, button { -webkit-tap-highlight-color: rgba(255,122,89,0.25); }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--ink); }
.on-ground a, a.on-ground { color: var(--on-ground); }
.on-ground a:hover, a.on-ground:hover { color: var(--tape); }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 3px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); color: var(--ink); padding: 10px 14px; font-family: var(--mono); z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- header / footer ---------- */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 20px; padding: 18px 0; border-bottom: 1px solid rgba(251,248,239,0.18);
}
.brand { color: var(--on-ground); text-decoration: none; font-family: var(--mono); font-weight: 700; font-size: 17px; padding: 10px 0; }
.brand:hover { color: var(--tape); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; font-family: var(--mono); font-size: 14px; font-weight: 500; }
.site-nav a { color: var(--on-ground); text-decoration: none; padding: 12px 0; }
.site-nav a:hover { color: var(--tape); }
.site-nav a[aria-current="page"] { color: var(--tape); font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }
.site-nav .nav-cta { background: var(--tape); color: var(--ink); padding: 12px 16px; font-weight: 700; }
.site-nav .nav-cta:hover { color: var(--ink); background: #ff9677; }

.site-footer {
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between;
  padding: 24px 0 40px; border-top: 1px solid rgba(251,248,239,0.18);
  font-family: var(--mono); font-size: 14px; color: var(--on-ground-soft);
}
.site-footer a { color: var(--on-ground-soft); }
.site-footer a:hover { color: var(--tape); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- type ---------- */
.eyebrow { margin: 0 0 10px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mint); }
.section { padding: 0 0 88px; }
.section-title { margin: 0; font-family: var(--mono); font-weight: 700; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.2; color: var(--on-ground); }
.sub-title { margin: 0; font-family: var(--mono); font-weight: 700; font-size: clamp(22px, 2.8vw, 32px); color: var(--on-ground); }
.lede { max-width: 640px; font-size: 20px; line-height: 1.6; color: #e3ebe6; }
.mono { font-family: var(--mono); }

.tape-title { margin: 0; font-family: var(--mono); font-weight: 700; text-transform: uppercase; line-height: 1.12; color: var(--ink); }
.tape-title span { display: inline-block; background: var(--tape); padding: 4px 20px; font-size: clamp(44px, 7vw, 92px); }
.tape-title span + br + span { margin-top: 10px; }
.tape-title.xl span { font-size: clamp(52px, 8.4vw, 112px); }

.paper { background: var(--paper); color: var(--ink); }
.fig-label { margin: 0 0 16px; font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.dashed { border: 1.5px dashed var(--dash); background: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px;
  font-family: var(--mono); font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 0;
}
.btn-tape { background: var(--tape); color: var(--ink); border-bottom: 5px solid var(--ink); }
.btn-tape:hover { background: #ff9677; color: var(--ink); }
.btn-ghost { border: 2px solid var(--on-ground); color: var(--on-ground); background: transparent; }
.btn-ghost:hover { background: var(--on-ground); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- home: hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding: 72px 0 96px; }
.hero-text { flex: 999 1 540px; min-width: 0; }
.hero-id { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.portrait { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--tape); background: var(--paper); flex: 0 0 auto; }
.hero-roles { margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--mint); }
.hero-line { margin: 30px 0 0; max-width: 620px; font-family: var(--mono); font-weight: 700; font-size: clamp(20px, 2.2vw, 25px); line-height: 1.4; }
.hero-intro { margin: 16px 0 30px; max-width: 600px; font-size: 20px; line-height: 1.6; color: #e3ebe6; }

.model { flex: 1 1 380px; min-width: 0; max-width: 470px; margin: 0; padding: 24px 24px 22px; transform: rotate(1.5deg); }
.model-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.model-cell { padding: 16px 14px 22px; min-height: 104px; }
.model-cell:nth-child(even) { text-align: right; }
.model-cell:nth-child(n+3) { padding: 22px 14px 16px; }
.model-cell h3 { margin: 0; font-family: var(--mono); font-size: 16px; }
.model-cell p { margin: 6px 0 0; font-size: 15px; line-height: 1.35; color: var(--ink-soft); }
.model-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 92px; height: 92px; border-radius: 50%; background: var(--ink); color: var(--paper);
  border: 4px solid var(--paper); display: flex; align-items: center; justify-content: center;
  text-align: center; font-family: var(--mono); font-weight: 700; font-size: 12px; line-height: 1.25;
}
.model-note { margin: 16px 0 0; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--ink-soft); }

/* ---------- home: dispatches ---------- */
.dispatch-wrap { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.dispatch-list { flex: 999 1 560px; min-width: 0; margin: 0; padding: 6px 28px; list-style: none; }
.dispatch-list li + li { border-top: 1px dashed var(--rule); }
.dispatch-list a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding: 18px 0; color: var(--ink); text-decoration: none; }
.dispatch-list a:hover .d-title { text-decoration: underline; text-underline-offset: 4px; }
.d-no { flex: 0 0 64px; font-family: var(--mono); font-weight: 700; font-size: 20px; color: var(--accent); }
.dispatch-list li:first-child .d-no { color: #c2410c; }
.d-title { flex: 1 1 300px; min-width: 0; font-size: 21px; line-height: 1.3; font-weight: 600; }
.d-date { flex: 0 0 auto; font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
.subscribe { flex: 1 1 320px; min-width: 0; border: 2px solid var(--on-ground); padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 10px; font-family: var(--mono); }
.subscribe h3 { margin: 0; font-size: 20px; }
.subscribe p { margin: 0 0 8px; font-family: var(--serif); font-size: 17px; color: var(--on-ground-soft); }

/* ---------- home: perspectives ---------- */
.fig { margin: 26px 0 0; padding: 28px 30px 30px; }
.persp { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.persp > div { flex: 1 1 220px; padding: 18px; }
.persp h3 { margin: 0; font-family: var(--mono); font-size: 17px; }
.persp p { margin: 8px 0 0; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.persp .overlap { flex: 1 1 200px; background: var(--ink); color: var(--paper); display: flex; flex-direction: column; justify-content: center; }
.persp .overlap .k { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tape); font-weight: 700; }
.persp .overlap p:last-child { color: var(--paper); font-size: 19px; line-height: 1.45; }
.route { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--rule); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.route p { margin: 0; font-family: var(--mono); font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.route a { font-family: var(--mono); font-weight: 700; font-size: 15px; padding: 12px 0; }

/* ---------- home: projects ---------- */
.projects { margin: 26px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 1px; background: rgba(251,248,239,0.25); border: 1px solid rgba(251,248,239,0.25); }
.projects li { background: var(--ground); }
.projects a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px 24px; color: var(--on-ground); text-decoration: none; }
.projects a:hover { background: #24543f; }
.p-name { font-family: var(--mono); font-weight: 700; font-size: 18px; }
.p-name span { color: var(--tape); }
.p-what { font-size: 17px; line-height: 1.45; color: var(--on-ground-soft); }
.p-tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mint); }

/* ---------- home: contact ---------- */
.contact { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.contact-info { flex: 1 1 320px; min-width: 0; }
.contact-info > p { margin: 0; font-size: 19px; color: #e3ebe6; }
.services { margin: 18px 0 0; padding: 0; list-style: none; }
.services li { padding: 14px 0; border-top: 1px dashed rgba(251,248,239,0.35); display: flex; gap: 14px; }
.services .n { font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--tape); }
.services strong { font-family: var(--mono); font-size: 16px; }
.services span span { display: block; font-size: 16px; line-height: 1.45; color: var(--on-ground-soft); }
.contact-direct { margin: 18px 0 0; font-family: var(--mono); font-size: 15px; }
.contact-form { flex: 999 1 480px; min-width: 0; padding: 26px 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; font-family: var(--mono); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full, .form-foot { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field select, .field textarea, .subscribe input {
  min-height: 46px; padding: 0 12px; border: 2px solid var(--ink); background: #fff;
  font-family: var(--mono); font-size: 16px; color: var(--ink); border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.field select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230d0e10' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 36px; }
.field textarea { padding: 12px; min-height: 140px; resize: vertical; }
.subscribe input { border: 0; background: var(--paper); }
.form-foot { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.form-foot span { font-size: 13px; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; margin: 0; padding: 12px 14px; font-weight: 700; }
.form-status.ok { background: #e4efe9; border: 2px solid var(--accent); }
.form-status.err { background: #fde8e1; border: 2px solid #c2410c; }

/* ---------- inner page hero ---------- */
.page-hero { padding: 64px 0 48px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-end; justify-content: space-between; }
.page-hero > div { flex: 999 1 560px; min-width: 0; }

/* ---------- publications ---------- */
.eras { display: flex; align-items: flex-end; gap: 4px; height: 96px; border-bottom: 2px solid var(--ink); padding-bottom: 4px; }
.eras i { flex: 1 1 0; height: 6px; background: #d9d6cc; }
.eras i.se { height: 80px; background: #fff; border: 1.5px dashed #6b7179; }
.eras i.ai { height: 80px; background: var(--accent); }
.axis { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.legend { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 13px; }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; display: inline-block; }
.books-head { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { min-height: 44px; padding: 0 14px; border: 2px solid var(--on-ground); background: transparent; color: var(--on-ground); font-family: var(--mono); font-weight: 700; font-size: 14px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--on-ground); color: var(--ink); }
.amazon { margin: 14px 0 0; font-family: var(--mono); font-size: 15px; color: #e3ebe6; }
.amazon a { color: var(--tape); font-weight: 700; }
.books { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.book { padding: 16px; display: flex; gap: 16px; }
.book[hidden] { display: none; }
.book img { flex: 0 0 74px; width: 74px; height: 112px; object-fit: cover; box-shadow: 0 4px 10px rgba(5,25,18,0.25); }
.book > div { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.book .yr { margin: 0; font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--accent); }
.book h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.book .sub { margin: 0; font-size: 15px; line-height: 1.35; color: var(--ink-soft); font-style: italic; }
.book .meta { margin: 2px 0 0; font-family: var(--mono); font-size: 12px; line-height: 1.45; color: var(--ink-soft); }
.book a { margin-top: 4px; font-family: var(--mono); font-weight: 700; font-size: 13px; padding: 6px 0; }
.two-col { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.two-col > .wide { flex: 999 1 560px; min-width: 0; }
.two-col > .narrow { flex: 1 1 340px; min-width: 0; }
.refs { margin: 20px 0 0; padding: 8px 26px; list-style: none; }
.refs li { padding: 14px 0; border-bottom: 1px dashed var(--rule); display: flex; gap: 16px; }
.refs li:last-child { border-bottom: 0; }
.refs .y { flex: 0 0 44px; font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--accent); padding-top: 3px; }
.refs strong { font-size: 17px; font-weight: 600; line-height: 1.35; }
.refs .by { display: block; font-size: 15px; color: var(--ink-soft); }
.refs.compact li { display: block; padding: 12px 0; }
.refs.compact .y { display: block; }
.refs.compact strong { font-size: 16px; }

/* ---------- CV ---------- */
.arc { display: flex; height: 58px; border: 2px solid var(--ink); }
.arc div { border-right: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; overflow: hidden; font-family: var(--mono); font-weight: 700; font-size: 12px; white-space: nowrap; }
.arc div:last-child { border-right: 0; }
.arc-axis { display: flex; margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.arc-axis span:last-child { flex: 0 0 auto; }
.e-academia { background: var(--accent); color: var(--paper); }
.e-research { background: var(--mint); color: var(--ink); }
.e-industry { background: var(--ink); color: var(--paper); }
.e-practice { background: #fff; color: var(--ink); }
.highlights { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 1px; background: rgba(251,248,239,0.25); border: 1px solid rgba(251,248,239,0.25); }
.highlights div { padding: 18px 20px; background: var(--ground); }
.highlights b { display: block; font-family: var(--mono); font-size: 26px; line-height: 1.1; }
.highlights div:first-child b { color: var(--tape); }
.highlights span { display: block; margin-top: 8px; font-size: 16px; line-height: 1.45; color: var(--on-ground-soft); }
.roles { margin: 18px 0 0; padding: 6px 22px; list-style: none; }
.roles li { padding: 12px 0; border-bottom: 1px dashed var(--rule); }
.roles li:last-child { border-bottom: 0; }
.roles b { font-size: 18px; font-weight: 600; }
.roles span { display: block; font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
.timeline-box { margin-top: 20px; padding: 28px 30px 16px; }
.timeline { margin: 0; padding: 0 0 0 22px; list-style: none; border-left: 2px solid var(--ink); }
.timeline li { position: relative; padding: 0 0 28px 18px; }
.timeline li[hidden] { display: none; }
.timeline li::before { content: ""; position: absolute; left: -31px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--ink); }
.timeline li.now::before { background: var(--tape); }
.t-when { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--accent); }
.tag { padding: 2px 8px; border: 1px solid var(--ink); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.timeline h3 { margin: 6px 0 0; font-size: 21px; line-height: 1.3; }
.t-org { margin: 2px 0 0; font-family: var(--mono); font-size: 14px; color: var(--ink-soft); }
.t-detail { margin: 8px 0 0; max-width: 820px; font-size: 17px; line-height: 1.55; color: var(--ink-soft); }
.toggle-row { padding: 4px 0 16px; border-top: 1px dashed var(--rule); }
.toggle-row button { margin-top: 12px; min-height: 48px; padding: 0 18px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font-family: var(--mono); font-weight: 700; font-size: 14px; cursor: pointer; }
.toggle-row button:hover { background: var(--ink); color: var(--paper); }
.service-list { margin: 18px 0 0; padding: 6px 24px; list-style: none; font-size: 17px; }
.service-list li { padding: 10px 0; border-bottom: 1px dashed var(--rule); display: flex; flex-wrap: wrap; gap: 2px 16px; }
.service-list li:last-child { border-bottom: 0; }
.service-list .w { flex: 0 0 104px; font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--accent); padding-top: 3px; }
.service-list .t { flex: 1 1 280px; min-width: 0; }
.chips { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; font-family: var(--mono); font-size: 14px; }
.chips li { padding: 10px 14px; border: 1.5px dashed rgba(251,248,239,0.5); }
.clients { margin: 18px 0 0; max-width: 820px; font-size: 18px; color: var(--on-ground-soft); }

/* ---------- mobile menu ---------- */
.nav-toggle { display: none; }
[id] { scroll-margin-top: 84px; }

@media (max-width: 760px) {
  .site-header {
    position: sticky; top: 0; z-index: 20;
    background: var(--ground);
    margin: 0 -24px; padding: 10px 24px;
  }
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 0 14px;
    border: 2px solid var(--on-ground); background: transparent; color: var(--on-ground);
    font-family: var(--mono); font-weight: 700; font-size: 15px; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .js .site-nav {
    display: none; flex-basis: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 0 16px; font-size: 17px;
  }
  .js .site-header.is-open .site-nav { display: flex; }
  .js .site-nav a { padding: 14px 0; border-top: 1px solid rgba(251,248,239,0.15); }
  .js .site-nav a[aria-current="page"] { text-decoration: none; }
  .js .site-nav a[aria-current="page"]::before { content: "→ "; }
  .js .site-nav .nav-cta { margin-top: 14px; border-top: 0; padding: 14px 16px; text-align: center; }
}

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 18px; }
  .site-header { margin: 0 -18px; padding: 10px 18px; }
  .section { padding-bottom: 64px; }
  .hero { padding: 36px 0 64px; gap: 40px; }
  .hero-id { align-items: flex-start; }
  .portrait { width: 60px; height: 60px; }
  .hero-roles { font-size: 12px; }
  .hero-intro, .lede { font-size: 18px; }
  .tape-title span, .tape-title.xl span { font-size: clamp(36px, 12vw, 64px); padding: 4px 14px; }
  .page-hero { padding: 40px 0 36px; }
  .btn-row .btn { flex: 1 1 100%; justify-content: center; }
  .page-hero .btn { width: 100%; justify-content: center; }

  .model { transform: none; padding: 20px 16px 18px; }
  .model-hub { width: 66px; height: 66px; font-size: 10px; border-width: 3px; }
  .model-cell { padding: 14px 10px 26px; }
  .model-cell:nth-child(n+3) { padding: 28px 10px 14px; }
  .model-cell h3 { font-size: 14px; }
  .model-cell p { font-size: 14px; }

  .fig, .timeline-box, .contact-form { padding: 22px 18px; }
  .dispatch-list { padding: 4px 18px; }
  .d-no { flex-basis: 100%; font-size: 16px; }
  .d-title { font-size: 19px; }
  .subscribe { padding: 22px 18px; }

  .projects a { padding: 20px 18px; }
  .contact-form { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; justify-content: center; }

  .filters { width: 100%; }
  .filters button { flex: 1 1 auto; }
  .book { padding: 14px; }
  .refs { padding: 4px 18px; }
  .refs li { flex-direction: column; gap: 2px; }

  .arc { height: 40px; }
  .arc div { font-size: 0; }          /* labels don't fit; the legend explains the colours */
  .timeline { padding-left: 16px; }
  .timeline li { padding-left: 14px; }
  .timeline li::before { left: -25px; }
  .timeline h3 { font-size: 19px; }
  .service-list { padding: 4px 18px; }
  .service-list .w { flex-basis: 100%; }
  .site-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
