/* =====================================================================
   The Ad Astra Project – website styles
   ---------------------------------------------------------------------
   Colours and fonts live in :root below. Change them there, not inline.
   The page reads top to bottom like our CanSat's flight: sky at 700 m
   at the top, the ground (footer) at 0 m at the bottom.
   ===================================================================== */

/* ---------- Fonts (self-hosted: no requests to Google, GDPR-friendly) */
@font-face {
  font-family: "Crimson Text";
  src: url("../fonts/crimson-text-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Text";
  src: url("../fonts/crimson-text-italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Text";
  src: url("../fonts/crimson-text-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky-high: #d5e5f4;    /* air at ~700 m: top of the page */
  --sky-low: #edf2f4;     /* hazy air near the ground */
  --ink: #13233b;         /* text */
  --ink-soft: #46556b;    /* secondary text */
  --rule: #9fb3c6;        /* axes, ticks, lines */
  --signal: #e0501a;      /* parachute orange = the CanSat and what it measures */
  --signal-soft: rgb(224 80 26 / 0.16);
  --column: rgb(44 105 170 / 0.14);
  --band: rgb(110 136 165 / 0.26);
  --field: #2b4426;       /* the ground (footer) */
  --field-ink: #e3ecdc;
  --surface: #f8fafb;

  --font: "Crimson Text", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --header-h: 4rem;
  --rail-w: 5.75rem;
}

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

html {
  background: var(--sky-low);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-high) 0, var(--sky-low) 55%, var(--sky-low) 100%);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.12; text-wrap: balance; }
p, dl, dd, figure, ol, ul { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* Language switch: text marked lang="en" is hidden while German is active, and vice versa.
   Text without a lang attribute (names, numbers) is shown in both languages. */
html[data-lang="de"] body [lang="en"],
html[data-lang="en"] body [lang="de"] { display: none !important; }

.flow > * + * { margin-top: var(--flow-space, 1em); }

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  z-index: 100;
  left: 1rem;
  top: -5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  background: var(--ink);
  color: var(--sky-low);
}
.skip-link:focus { top: 1rem; }

/* ---------- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(226 236 245 / 0.95);
  border-bottom: 1px solid rgb(19 35 59 / 0.12);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  max-width: 72rem;
  min-height: var(--header-h);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.wordmark {
  font-size: 1.3125rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.alt-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  min-width: 4.75em;
  font-size: 1rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.alt-chip svg { width: 15px; height: 21px; color: var(--signal); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}
.lang-switch button {
  padding: 0.2rem 0.6rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { color: var(--sky-low); background: var(--ink); }

.header-link {
  margin-left: auto;
  font-size: 1.0625rem;
}

.menu-toggle {
  padding: 0.3rem 0.75rem;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  cursor: pointer;
}
.no-js .menu-toggle { display: none; }

/* small phones: the project name, language and menu on one line
   (the altitude readout only shows from tablet size up) */
@media (max-width: 29.99em) {
  .site-header__inner { gap: 0.5rem 0.6rem; padding-inline: 1rem; }
  .wordmark { font-size: 1.125rem; }
  .alt-chip { display: none; }
  .lang-switch { margin-left: auto; }
  .lang-switch button { padding: 0.2rem 0.45rem; font-size: 0.9375rem; }
  .menu-toggle { padding: 0.25rem 0.6rem; font-size: 1rem; }
}

.site-nav { order: 10; flex-basis: 100%; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  padding: 0 0 0.75rem;
  list-style: none;
}
.site-nav a {
  display: inline-block;
  padding-block: 0.3rem;
  font-size: 1.125rem;
  text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; }
.js .site-nav { display: none; }
.js .site-header.is-open .site-nav { display: block; }
.js .site-header.is-open .site-nav ul { flex-direction: column; gap: 0; }

@media (min-width: 60em) {
  .menu-toggle,
  .js .menu-toggle { display: none; }
  .site-nav,
  .js .site-nav { display: block; order: 0; flex-basis: auto; margin-left: auto; }
  .site-nav ul,
  .js .site-header.is-open .site-nav ul { flex-direction: row; gap: 0.25rem 1.25rem; padding: 0; }
  .alt-chip { order: 3; margin-left: 0; }
  .lang-switch { order: 4; }
}

/* ---------- Altimeter rail (wide screens): scrolling = descending */
.altimeter { display: none; }

@media (min-width: 70em) {
  body { padding-left: var(--rail-w); }
  .site-header,
  .ground { margin-left: calc(-1 * var(--rail-w)); padding-left: var(--rail-w); }
  .alt-chip { display: none; }
  /* touchdown: the scale fades, the CanSat sits on the ground */
  .altimeter__scale,
  .altimeter__tick { transition: opacity 0.4s ease, background-color 0.4s ease; }
  .is-landed .altimeter__scale { background-color: transparent; }
  .is-landed .altimeter__tick { opacity: 0; }

  .altimeter {
    display: block;
    position: fixed;
    z-index: 5;
    left: 0;
    top: var(--header-h);
    bottom: 0;
    width: var(--rail-w);
    pointer-events: none;
  }
  .altimeter__scale {
    position: absolute;
    top: 3.25rem;
    bottom: 3.75rem;
    left: 3.75rem;
    width: 1px;
    background: var(--rule);
  }
  .altimeter__tick {
    position: absolute;
    right: 0.85rem;
    top: calc(var(--at) * 100%);
    transform: translateY(-50%);
    font-size: 0.875rem;
    line-height: 1;
    color: var(--ink-soft);
  }
  .altimeter__tick::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% + 0.3rem);
    width: 0.55rem;
    border-top: 1px solid var(--rule);
  }
  .altimeter__probe {
    position: absolute;
    left: 0.5px;
    top: calc(var(--descent, 0) * 100%);
    width: 0;
    height: 0;
  }
  .altimeter__icon {
    position: absolute;
    bottom: 2px;
    left: -14px;
    width: 28px;
    height: 38px;
    color: var(--signal);
    animation: drift-in 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    transform-origin: 50% 0;
  }
  .altimeter__readout {
    position: absolute;
    top: 0.35rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 0.3rem;
    font-size: 0.9375rem;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
    color: var(--ink);
    background: var(--sky-low);
    border-radius: 3px;
  }
}

.landed-note { display: none; }
.is-landed .landed-note { display: inline; }
.altimeter__readout .landed-note { display: none; }
.is-landed .altimeter__readout .landed-note { display: block; font-style: italic; }

@keyframes drift-in {
  0% { transform: translateY(-56px) rotate(-9deg); opacity: 0; }
  55% { transform: translateY(3px) rotate(4deg); opacity: 1; }
  80% { transform: translateY(-1px) rotate(-1.5deg); }
  100% { transform: none; }
}

/* ---------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.4em 1.15em;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  cursor: pointer;
}
.btn:hover { background: rgb(19 35 59 / 0.08); }
.btn--primary { color: var(--sky-low); background: var(--ink); }
.btn--primary:hover { background: #22375a; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Hero */
.hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem); }

.hero__grid {
  display: grid;
  gap: 2rem 4rem;
}
@media (min-width: 60em) {
  .hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; }
}

/* the project name, set as three lines: The / Ad Astra / Project */
.masthead {
  margin-left: -0.04em;
  font-size: clamp(3.75rem, 1.5rem + 8vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
}
.masthead span { display: block; }

.gloss {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  font-style: italic;
  color: var(--ink-soft);
}

.hero__team {
  max-width: 24em;
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero__lead {
  max-width: 31em;
  margin-top: 1.25rem;
  font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.5;
}

.hero__context {
  margin-top: 0.4rem;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ---------- Photos & figures */
.photo-band img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 40%;
}
@media (min-width: 60em) {
  .photo-band img { aspect-ratio: 21 / 9; }
}

figcaption {
  margin-top: 0.6rem;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink-soft);
}

.figure > svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.figure--profile { width: 100%; max-width: 31rem; }
.figure--who { width: 100%; max-width: 27rem; }
@media (min-width: 60em) {
  .figure--profile,
  .figure--who { justify-self: center; }
}

/* Diagram styles (used inside the inline SVGs) */
.chart text { font-family: var(--font); }
.chart-label { font-size: 19px; fill: var(--ink); }
.chart-label--strong { font-weight: 700; }
.chart-label--onground { fill: var(--field-ink); }
.chart-tick { font-size: 16px; fill: var(--ink-soft); }
.chart-axis { stroke: var(--ink-soft); stroke-width: 1; }
.chart-grid { stroke: var(--rule); stroke-width: 1; opacity: 0.45; }
.chart-ground { stroke: var(--field); stroke-width: 2.5; }
.chart-ref { stroke: var(--ink-soft); stroke-width: 1.5; stroke-dasharray: 5 5; }
.chart-band { fill: var(--band); }
.chart-spread { fill: var(--signal-soft); }
.chart-line {
  fill: none;
  stroke: var(--signal);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.diagram-column { fill: var(--column); stroke: rgb(44 105 170 / 0.45); stroke-dasharray: 4 4; }
.diagram-station { fill: var(--ink); stroke: var(--ink); stroke-width: 2; }
.diagram-station rect { stroke: none; }
.diagram-ground { fill: var(--field); }
.diagram-path { stroke: var(--signal); stroke-width: 1.5; stroke-dasharray: 2 5; }
.diagram-sample { fill: var(--signal); stroke: var(--sky-low); stroke-width: 2; }
.diagram-co2 { fill: none; stroke: var(--signal); stroke-width: 2; }
.diagram-co2--key { stroke: var(--field-ink); }
/* city, satellite and CanSat: the shapes from our presentation, in the site's colours */
.diagram-art path { stroke: var(--art); }
.diagram-art .fill { fill: var(--art); }
.diagram-art .line { fill: none; }
.diagram-art--city { --art: var(--ink); opacity: 0.16; }
.diagram-art--sat { --art: #3f6f9f; }
.diagram-art--cansat { --art: var(--ink); }
.diagram-art--cansat .canopy { fill: var(--signal); stroke: var(--signal); }
.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;
}

/* ---------- Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

.section h2 {
  font-size: clamp(2.125rem, 1.45rem + 2.5vw, 3.375rem);
  letter-spacing: -0.005em;
}

.section-head { max-width: 40rem; }

.lead {
  font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.5;
}

.more { font-size: 1.125rem; }

.split {
  display: grid;
  gap: 2.75rem 4rem;
  align-items: start;
}
.section-head + .split { margin-top: 2.5rem; }

@media (min-width: 60em) {
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split--figure { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .split--team { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .split--reverse { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .split--reverse > :first-child { order: 2; }
}

.prose { max-width: 34em; }

/* What is a CanSat: key facts */
.facts { border-top: 2px solid var(--ink); }
.facts > div { padding-block: 0.85rem; border-bottom: 1px solid var(--rule); }
.facts dt { font-weight: 700; }
.facts dd { margin-top: 0.15rem; line-height: 1.5; }

/* Mission: question, hypothesis, bonus question, outcome */
.mission-list > div + div { margin-top: 1.6rem; }
.mission-list dt { font-size: 1.0625rem; font-weight: 700; color: var(--ink-soft); }
.mission-list dd { margin-top: 0.2rem; }
.mission-list .is-question dd {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  font-style: italic;
  line-height: 1.3;
}

/* How we'll do it: four steps in order */
.steps {
  display: grid;
  gap: 2.25rem 3rem;
  margin-top: 2.5rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps > li {
  position: relative;
  padding-top: 4rem;
  border-top: 2px solid var(--ink);
  counter-increment: step;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  top: 0.55rem;
  left: 0;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
}
.steps h3 { font-size: 1.375rem; }
.steps p { margin-top: 0.45rem; }

@media (min-width: 48em) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 75em) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Hardware: data path */
.datapath {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
  padding: 0;
  list-style: none;
}
.datapath__node {
  position: relative;
  padding: 1rem 1.2rem 1.15rem;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
}
.datapath__node--sense { border-color: var(--signal); box-shadow: inset 4px 0 0 var(--signal); }
.datapath h3 { font-size: 1.25rem; }
.datapath p { margin-top: 0.35rem; font-size: 1.0625rem; line-height: 1.45; }

/* connector + arrowhead between nodes (vertical on phones) */
.datapath__node + .datapath__node::before {
  content: "";
  position: absolute;
  left: 2rem;
  top: calc(-2rem - 1.5px);
  height: 2rem;
  border-left: 2px solid var(--ink);
}
.datapath__node + .datapath__node::after {
  content: "";
  position: absolute;
  left: calc(2rem - 5px);
  top: -11px;
  border: 6px solid transparent;
  border-top-color: var(--ink);
}

@media (min-width: 60em) {
  .datapath { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.25rem; }
  .datapath__node + .datapath__node::before {
    left: calc(-2.25rem - 1.5px);
    top: 2rem;
    width: 2.25rem;
    height: 0;
    border-left: 0;
    border-top: 2px solid var(--ink);
  }
  .datapath__node + .datapath__node::after {
    left: -11px;
    top: calc(2rem - 5px);
    border-top-color: transparent;
    border-left-color: var(--ink);
  }
}

.parts { margin-top: 3.25rem; }
.parts h3 { font-size: 1.375rem; }
.parts__list {
  display: grid;
  gap: 1.25rem 3rem;
  margin-top: 1rem;
}
.parts__list dt { font-weight: 700; }
.parts__list dd { margin-top: 0.15rem; }
@media (min-width: 48em) { .parts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Roadmap */
.roadmap {
  max-width: 42rem;
  margin-top: 2.5rem;
  padding: 0;
  list-style: none;
  counter-reset: phase;
}
.phase {
  position: relative;
  padding: 0 0 2.25rem 3rem;
  counter-increment: phase;
}
.phase::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0.3rem;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--sky-low);
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.phase::after {
  content: "";
  position: absolute;
  left: calc(0.625rem - 1px);
  top: 1.55rem;
  bottom: 0.2rem;
  border-left: 2px solid var(--rule);
}
.phase:last-child { padding-bottom: 0; }
.phase:last-child::after { display: none; }
.phase.is-done::before { background: var(--ink); }
.phase.is-active::before {
  border-color: var(--signal);
  background: linear-gradient(to top, var(--signal) 50%, var(--sky-low) 50%);
}
.phase__status { font-size: 1.0625rem; color: var(--ink-soft); }
.phase__status::before { content: "Phase " counter(phase) ": "; }
.phase.is-active .phase__status { color: #a3300d; font-weight: 700; }
.phase h3 { margin-top: 0.1rem; font-size: 1.5rem; }
.phase h3 + p { margin-top: 0.35rem; }

/* Team */
.roster {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.75rem;
}
.roster > div { display: grid; gap: 0.1rem; }
.roster dt { font-weight: 700; }
.roster .roster__mentor { margin-top: 0.4rem; padding-top: 0.95rem; border-top: 1px solid var(--rule); }
@media (min-width: 30em) {
  .roster > div { grid-template-columns: 7.25rem minmax(0, 1fr); gap: 1rem; }
}

/* Build log */
.log-entry {
  display: grid;
  gap: 0.9rem 3rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
}
.log-entry__date { font-weight: 700; }
.log-entry h3 { font-size: 1.5rem; }
.log-entry__photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.log-entry__photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 60em) {
  .log-entry { grid-template-columns: 11rem minmax(0, 1fr); }
  .log-entry__photos { grid-column: 2; max-width: 46rem; }
}

/* Contact */
.contact-form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
}
.field label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.0625rem;
  font-weight: 700;
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 1.125rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--rule);
  border-radius: 6px;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible,
.field textarea:focus-visible { border-color: var(--ink); outline-offset: 1px; }
.form-note { font-size: 1rem; line-height: 1.5; color: var(--ink-soft); }
.contact-form .btn { justify-self: start; }
.form-status { min-height: 1.6em; font-size: 1.0625rem; }
.form-status [data-when] { display: none; }
.form-status[data-state="sending"] [data-when="sending"],
.form-status[data-state="success"] [data-when="success"],
.form-status[data-state="error"] [data-when="error"] { display: inline; }
.form-status[data-state="success"] { font-weight: 700; }
.form-status[data-state="error"] { color: #a3300d; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-mail { font-size: 1.25rem; }

/* ---------- Footer: the ground, 0 m */
.ground {
  padding-block: 2.75rem 2.5rem;
  color: var(--field-ink);
  background: var(--field);
  border-top: 6px solid #3d6034;
}
.ground a { color: inherit; }
.ground :focus-visible { outline-color: var(--field-ink); }
.ground__inner {
  display: grid;
  gap: 1.25rem 3rem;
  align-items: end;
}
.ground__alt {
  font-size: clamp(3.25rem, 2rem + 4vw, 5.5rem);
  font-weight: 700;
  line-height: 0.9;
}
.ground__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  padding: 0;
  list-style: none;
  font-size: 1.0625rem;
}
.ground__small { font-size: 1rem; opacity: 0.85; }
@media (min-width: 48em) {
  .ground__inner { grid-template-columns: auto minmax(0, 1fr); }
}

/* ---------- Legal page */
.legal { max-width: 40rem; }
.legal h1 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem); }
.legal h2 { margin-top: 2.75rem; font-size: 1.75rem; }
.legal h3 { margin-top: 1.75rem; font-size: 1.3125rem; }
.legal address { font-style: normal; }
.legal p, .legal address { margin-top: 0.75rem; }
.mail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: -0.5rem 0 -0.5rem 0.1rem;
  vertical-align: middle;
  color: var(--ink);
  border-radius: 6px;
}
.mail-icon:hover { background: rgb(19 35 59 / 0.08); }

/* ---------- Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .altimeter__icon { animation: none; }
}

/* ---------- Print: just the content */
@media print {
  .site-header, .altimeter, .contact-form, .skip-link { display: none !important; }
  body { padding-left: 0; background: #fff; }
}
