/* ElectroCeption site. Layout: a narrow reading column inside a wide frame, with a temperature ladder as the signature element. */
:root {
  --frost: #f3f6f9;        /* page ground, cool white */
  --panel: #e6edf3;        /* quiet panels */
  --ink: #0f1d2b;          /* text */
  --ink-soft: #4a5b6c;     /* secondary text */
  --rule: #c9d5df;         /* hairlines */
  --copper: #b24a00;       /* accent text: deep orange that stays readable */
  --orange: #f2711c;       /* bright orange for fills and marks */
  --copper-soft: #fde4cf;
  --hot: #d63a2f;          /* hot end of the scale: electrons */
  --metal: #8b7bb5;        /* in between: metal atoms */
  --purple: #7b3fd0;       /* electrons in between, heat drawn in */
  --cold: #1769d6;         /* cold end of the scale, also the headline color */
  --tbd-bg: #fff1b8;       /* placeholder highlight */
  --tbd-fg: #5a4600;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --frost: #0b1520; --panel: #122233; --ink: #e4ecf3; --ink-soft: #9db0c2; --rule: #24384c;
    --copper: #ff9a3d; --orange: #ff8c2a; --copper-soft: #3a2412; --hot: #ff6b5e; --metal: #a596d4; --purple: #b98cff; --cold: #5fb4ff; --tbd-bg: #4a3d0a; --tbd-fg: #ffe7a0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --frost: #0b1520; --panel: #122233; --ink: #e4ecf3; --ink-soft: #9db0c2; --rule: #24384c;
  --copper: #ff9a3d; --orange: #ff8c2a; --copper-soft: #3a2412; --hot: #ff6b5e; --metal: #a596d4; --purple: #b98cff; --cold: #5fb4ff; --tbd-bg: #4a3d0a; --tbd-fg: #ffe7a0;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--frost); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--cold); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }

.wrap {
  max-width: 72rem; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 18px; }
/* Wordmark (Matthew, Nov 19): "Electro" white in normal weight, "Ception" in the deck's blue, bold. Sits on the deck's dark navy so the white reads in light mode too. */
.brand { display: inline-flex; align-items: baseline; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.01em; text-decoration: none; background: #0b1520; padding: 0.3em 0.7em 0.35em; border-radius: 0.45em; line-height: 1.1; }
.brand-e { color: #ffffff; font-weight: 400; }
.brand-c { color: #5fb4ff; font-weight: 800; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* Type */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -0.025em; color: var(--cold); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.lead { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--ink-soft); max-width: 38em; }
.eyebrow { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--copper); }
.mono { font-family: var(--font-mono); }
.prose { max-width: 40em; display: grid; gap: 1em; }

/* Sections */
section { padding-block: clamp(48px, 8vw, 96px); }
section + section { border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: 12px; margin-bottom: 32px; max-width: 44em; }

/* Hero */
.hero { padding-block: clamp(48px, 9vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }

/* Thermometer: glass tube, liquid column and a cold bulb at the bottom */
.thermo { position: relative; padding-left: 64px; padding-bottom: 56px; }
.thermo::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 36px; width: 26px; border-radius: 13px 13px 0 0; background: var(--panel); }
.thermo::after { content: ""; position: absolute; left: 25px; top: 10px; bottom: 36px; width: 12px; border-radius: 6px 6px 0 0; background: linear-gradient(var(--orange), var(--cold)); }
.thermo .bulb { position: absolute; left: 9px; bottom: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--cold); z-index: 1; }
.ladder { list-style: none; margin: 0; padding: 0; display: grid; }
.ladder li { position: relative; display: grid; grid-template-columns: 5rem 1fr; gap: 0 1rem; align-items: baseline; padding-block: 12px; }
.ladder li::before { content: ""; position: absolute; left: -22px; top: calc(12px + 0.8em); transform: translateY(-50%); width: 14px; height: 2px; background: var(--ink-soft); }
.ladder .k { font-family: var(--font-mono); font-size: 1.05rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.ladder .what { color: var(--ink-soft); }
.ladder li.target .k, .ladder li.target .what { color: var(--cold); font-weight: 600; }
.ladder li.target::before { background: var(--cold); width: 18px; height: 3px; }
.ladder-caption { margin-top: 12px; font-size: 0.9rem; color: var(--ink-soft); }

/* Chain: helium to metal to electrons */
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-block: 8px 24px; }
.chain .link { background: var(--panel); border-radius: 6px; padding: 8px 14px; font-weight: 500; }
.chain .arrow { color: var(--ink-soft); font-family: var(--font-mono); }
.chain .link.end { background: var(--copper-soft); color: var(--ink); }

/* Cycle steps: a real sequence */
.cycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.cycle li { counter-increment: step; background: var(--panel); border-radius: 10px; padding: 20px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.cycle li::before { content: counter(step); font-family: var(--font-mono); font-size: 0.85rem; color: var(--copper); }
.cycle-note { margin-top: 16px; color: var(--ink-soft); }

/* Three columns */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cols > div { display: grid; gap: 8px; align-content: start; min-width: 0; }
.cols .eyebrow { margin-bottom: 4px; }

/* Facts list */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 48em; }
.facts li { display: grid; grid-template-columns: 13rem 1fr; gap: 4px 24px; padding-block: 16px; border-top: 1px solid var(--rule); }
.facts li:last-child { border-bottom: 1px solid var(--rule); }
.facts strong { font-family: var(--font-display); }

/* Physics note */
.note { border-left: 3px solid var(--copper); padding: 4px 0 4px 20px; max-width: 40em; display: grid; gap: 8px; }
.note .mono { color: var(--ink-soft); font-size: 0.95rem; }

/* Team */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.person { display: grid; gap: 10px; align-content: start; min-width: 0; }
.person .role { font-family: var(--font-mono); font-size: 0.85rem; color: var(--copper); letter-spacing: 0.04em; text-transform: uppercase; }
.portrait { aspect-ratio: 4 / 5; max-width: 100%; background: var(--panel); border-radius: 10px; display: grid; place-items: center; color: var(--ink-soft); font-size: 0.9rem; text-align: center; padding: 16px; }

/* Calls to action */
.cta { display: grid; gap: 20px; max-width: 40em; }
.button { display: inline-block; justify-self: start; background: var(--ink); color: var(--frost); text-decoration: none; font-weight: 600; padding: 14px 24px; border-radius: 6px; }
.button:hover { background: var(--orange); color: #1a0d00; }
.contact-card { background: var(--panel); border-radius: 10px; padding: 28px; display: grid; gap: 14px; max-width: 34em; }
.contact-card dl { margin: 0; display: grid; grid-template-columns: 6rem 1fr; gap: 10px 16px; }
.contact-card dt { font-weight: 600; }
.contact-card dd { margin: 0; overflow-wrap: anywhere; }

/* Placeholders that wait on Matthew. Remove before launch. */
.tbd { background: var(--tbd-bg); color: var(--tbd-fg); padding: 0 4px; border-radius: 3px; font-size: 0.95em; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 28px; }

@media (max-width: 860px) {
  .hero-grid, .cols, .people { grid-template-columns: minmax(0, 1fr); }
  .cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .cycle { grid-template-columns: minmax(0, 1fr); }
  .facts li { grid-template-columns: minmax(0, 1fr); }
  .ladder li { grid-template-columns: 4.2rem 1fr; }
}
/* ---------- Version 2 ---------- */
/* Thermometer ruler marks beside the tube */
.thermo .ruler { display: none; position: absolute; left: 46px; top: 8px; bottom: 44px; width: 7px; background: repeating-linear-gradient(to bottom, var(--ink-soft) 0 1px, transparent 1px 11px); opacity: 0.7; }

/* Text beside a figure */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
figure { margin: 0; min-width: 0; }
.fig-caption { margin-top: 12px; font-size: 0.92rem; color: var(--ink-soft); }
.legend { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 0.92rem; color: var(--ink-soft); }
.legend li { display: flex; gap: 10px; align-items: center; }
.sw { flex: none; width: 14px; height: 14px; border-radius: 50%; }
.sw.he { background: var(--cold); border-radius: 3px; }
.sw.metal { background: var(--metal); }
.sw.hot { background: var(--hot); }
.sw.gate { background: var(--ink-soft); border-radius: 3px; }
.sw.well { background: color-mix(in srgb, var(--cold) 35%, var(--panel)); border-radius: 3px; }

/* Zoom visual */
.zoom { width: 100%; height: auto; display: block; }
.z-he { fill: var(--cold); }
.z-wave { fill: none; stroke: var(--frost); stroke-width: 2.5; opacity: 0.55; }
.z-metal, .z-atom { fill: var(--metal); }
.z-lens { fill: none; stroke: var(--ink); stroke-width: 3; }
.z-window { fill: var(--panel); }
.z-guide { stroke: var(--ink-soft); stroke-width: 1.5; stroke-dasharray: 5 5; }
.z-e { fill: var(--hot); }
.z-trail { stroke: var(--hot); stroke-width: 3; stroke-linecap: round; opacity: 0.45; }
.z-flow { animation: zing 1.6s linear infinite; }
@keyframes zing { from { transform: translateX(0); } to { transform: translateX(54px); } }

/* Piston cartoons */
.piston { width: 100%; max-width: 180px; height: auto; display: block; margin-bottom: 4px; }
.p-wall { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.p-gas { fill: color-mix(in srgb, var(--cold) 16%, var(--frost)); }
.p-rod, .p-head { fill: var(--ink-soft); }
.p-chip { fill: var(--metal); }
.p-e.hot { fill: var(--hot); } .p-e.warm { fill: var(--orange); } .p-e.cold { fill: var(--cold); } .p-e.mid { fill: var(--purple); }
.p-push { stroke: var(--ink); stroke-width: 3; }
.p-ah { fill: var(--ink); }
.p-heat { fill: none; stroke: var(--orange); stroke-width: 4; stroke-linecap: round; }
.p-hh { fill: var(--orange); }
.loop { display: grid; gap: 4px; margin-top: 10px; color: var(--ink-soft); font-size: 0.9rem; }
.loop svg { width: 100%; height: 24px; }
.loop path { fill: none; stroke: var(--ink-soft); stroke-width: 2; vector-effect: non-scaling-stroke; }

/* Quantum well diagram */
.well { width: 100%; height: auto; display: block; }
.w-gate { fill: var(--ink-soft); }
.w-layer { fill: var(--panel); stroke: var(--rule); }
.w-well { fill: color-mix(in srgb, var(--cold) 35%, var(--panel)); }

/* Timeline: vertical, alternating sides on wide screens */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--rule); transform: translateX(-1px); }
.timeline li { position: relative; width: 50%; padding: 0 40px 28px 0; text-align: right; display: grid; gap: 6px; }
.timeline li:nth-child(even) { margin-left: 50%; padding: 0 0 28px 40px; text-align: left; }
.timeline li + li { margin-top: -1.75rem; }
.timeline li::after { content: ""; position: absolute; top: 4px; right: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-soft); border: 3px solid var(--frost); box-sizing: border-box; }
.timeline li:nth-child(even)::after { right: auto; left: -8px; }
.timeline li.ours::after { background: var(--orange); }
.tl-year { font-family: var(--font-mono); font-size: 0.95rem; color: var(--copper); }
.timeline li.past .tl-year { color: var(--ink-soft); }
.timeline p:not(.tl-year) { color: var(--ink-soft); }

/* Three-year plan */
.plan { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan li { background: var(--panel); border-radius: 10px; padding: 22px; display: grid; gap: 8px; align-content: start; border-top: 4px solid var(--cold); min-width: 0; }
.plan-temp { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--cold); line-height: 1.1; }

/* Team */
.lead-person { grid-template-columns: minmax(0, 22rem); margin-top: 8px; }
.note-line { margin-top: 4px; }

/* Cooling stack */
.stacks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(6, auto); gap: 6px 24px; max-width: 56rem; }
.stack { display: grid; grid-row: 1 / span 6; grid-template-rows: subgrid; }
.stack ol { grid-row: 2 / span 5; grid-template-rows: subgrid; }
.stack li.span2 { grid-row: span 2; align-content: center; }
.stack h3 { margin-bottom: 12px; }
.stack ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.stack li { background: var(--panel); border-radius: 8px; padding: 12px 16px; display: grid; gap: 2px; }
.stack .k { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-soft); }
.stack li.chip { background: color-mix(in srgb, var(--cold) 18%, var(--panel)); }
.stack li.ec { background: var(--copper-soft); outline: 2px solid var(--orange); font-weight: 600; }

/* Contact paths */
.paths { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.paths li { background: var(--panel); border-radius: 10px; padding: 20px; display: grid; gap: 8px; align-content: start; min-width: 0; }

@media (max-width: 860px) {
  .split, .plan, .stacks { grid-template-columns: minmax(0, 1fr); }
  .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-person { grid-template-columns: minmax(0, 1fr); }
  .timeline::before { left: 8px; }
  .timeline li, .timeline li:nth-child(even) { width: auto; margin-left: 0; padding: 0 0 24px 36px; text-align: left; }
  .timeline li + li { margin-top: 0; }
  .timeline li::after, .timeline li:nth-child(even)::after { left: 0; right: auto; }
  .piston { max-width: 150px; }
}
@media (max-width: 520px) {
  .paths { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .z-flow { animation: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.portrait.photo { padding: 0; overflow: hidden; aspect-ratio: 1 / 1; }
.portrait.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* v3: heat switch gates, the loop around the cycle, the redrawn quantum well */
.p-gate { fill: var(--ink-soft); }
.p-in { fill: none; stroke: var(--purple); stroke-width: 4; stroke-linecap: round; }
.p-qh { fill: var(--purple); }
.cycle-wrap { position: relative; padding: 0 52px 34px; --loop-y: 150px; --loop-w: 8px; }
.loop-label { display: grid; gap: 4px; justify-items: center; text-align: center; margin-top: 18px; }
.loop-head { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; line-height: 1.1; color: var(--ink); }
.loop-sub { color: var(--ink); }
.loop-line { position: absolute; left: 14px; right: 14px; top: var(--loop-y); bottom: 8px; border: var(--loop-w) solid var(--ink-soft); border-top: 0; border-radius: 0 0 24px 24px; pointer-events: none; }
.loop-out, .loop-in { position: absolute; top: var(--loop-y); height: var(--loop-w); background: var(--ink-soft); pointer-events: none; }
.loop-out { right: 14px; width: 38px; }
.loop-in { left: 14px; width: 22px; }
.loop-in::after { content: ""; position: absolute; left: 100%; top: 50%; transform: translateY(-50%); border-left: 18px solid var(--ink-soft); border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.w-switch { fill: color-mix(in srgb, var(--ink-soft) 60%, var(--panel)); stroke: var(--ink-soft); stroke-width: 1.5; }
.w-cold { fill: var(--cold); } .w-mid { fill: var(--purple); } .w-hot { fill: var(--hot); }
.w-tag { fill: var(--ink-soft); font-family: var(--font-mono); font-size: 13px; }
.sw.cold { background: var(--cold); } .sw.purple { background: var(--purple); }
.sw.switch { background: color-mix(in srgb, var(--ink-soft) 60%, var(--panel)); border: 1.5px solid var(--ink-soft); border-radius: 3px; }
.legend li .sw + .sw { margin-left: -6px; }
@media (max-width: 860px) {
  .cycle-wrap { padding: 0; }
  .loop-line, .loop-out, .loop-in { display: none; }
  .stack, .stack ol { grid-row: auto; grid-template-rows: none; }
  .stacks { grid-template-rows: none; gap: 24px; }
  .stack ol { gap: 6px; }
  .stack li.span2 { grid-row: auto; }
}

/* v3.1: legends wrap inside the screen, and "How it works" stacks text over a full-width figure */
.legend li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; min-width: 0; }
.legend .sws { display: flex; padding-top: 0.32em; }
.legend .sws .sw + .sw { margin-left: -4px; }
.legend .lg-text { min-width: 0; overflow-wrap: anywhere; }
.how { display: grid; gap: 32px; min-width: 0; }
.how .prose { max-width: 44em; }
.how .well-fig { width: 100%; }
.how .legend { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 10px 32px; }

/* v3.2: one even team grid, Matthew first, three to a row */
/* Each profile needs at least 21rem, so wide screens get three to a row and anything narrower gets one column */
.team-grid, .people.team-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); margin-top: 8px; }
.team-grid .portrait { aspect-ratio: 1 / 1; width: 100%; max-width: 18rem; }
.team-grid + .note-line { margin-top: 24px; }

/* v3.3: well legend keys match the drawing, legend in body text size */
:root { --well: #a9c6ea; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --well: #2d5a8c; } }
:root[data-theme="dark"] { --well: #2d5a8c; }
.w-well { fill: var(--well); }
.sw.well { background: var(--well); }
.sw.bar { width: 22px; height: 8px; border-radius: 2px; margin-top: 3px; }
.w-tag { font-family: var(--font-body); font-size: 14px; fill: var(--ink-soft); }
.w-lead { stroke: var(--ink-soft); stroke-width: 1.5; }
.legend { font-size: 1rem; color: var(--ink); }

/* v3.4: the four cycle pictures sit centered in their cards, the words stay left */
.cycle li .piston { justify-self: center; margin-inline: auto; }
.cycle li h3, .cycle li p { text-align: left; }

/* v3.5: each contact path opens its own form in place, two cards to a row so the forms have room */
.paths { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 860px) { .paths { grid-template-columns: minmax(0, 1fr); } }
.ask summary { list-style: none; cursor: pointer; margin-top: 4px; }
.ask summary::-webkit-details-marker { display: none; }
.ask[open] summary { background: var(--orange); color: #1a0d00; }
.ask-form { display: grid; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--rule); max-width: 40rem; }
.ask-form label { display: grid; gap: 6px; font-weight: 600; min-width: 0; }
.ask-form .opt { font-weight: 400; color: var(--ink-soft); }
.ask-form input, .ask-form select, .ask-form textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--frost); border: 1.5px solid var(--rule); border-radius: 6px; padding: 10px 12px; width: 100%; box-sizing: border-box; min-width: 0; }
.ask-form textarea { resize: vertical; }
.ask-form input:focus-visible, .ask-form select:focus-visible, .ask-form textarea:focus-visible { outline: 3px solid var(--copper); outline-offset: 1px; }
.ask-form button { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.ask-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ask-form .status { margin: 0; color: var(--ink-soft); }
.ask-form .status:empty { display: none; }

/* v3.6: on phones the email address stays on one line and every button sits centered */
.contact-card a[href^="mailto:"] { white-space: nowrap; }
@media (max-width: 520px) {
  .contact-card { padding: 20px; }
  .contact-card dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .contact-card dd + dt { margin-top: 12px; }
  .contact-card dd { overflow-wrap: normal; }
  .button { display: block; width: fit-content; margin-inline: auto; justify-self: center; text-align: center; }
}
@media (max-width: 340px) {
  .contact-card a[href^="mailto:"] { font-size: 0.9rem; }
}

/* v4: Matthew's two-window zoom (helium cools metal, metal cools electrons), animated where motion is allowed */
.zoom-v4 .z-heat { fill: var(--cold); }
.zoom-v4 .z-lens { stroke-width: 4; }
.zoom-v4 .z-v { stroke-width: 2.5; stroke-linecap: round; }
.zoom-v4 .z-v.he { stroke: var(--cold); } .zh-he { fill: var(--cold); }
.zoom-v4 .z-v.metal { stroke: var(--metal); } .zh-m { fill: var(--metal); }
.zoom-v4 .z-v.e { stroke: var(--hot); } .zh-e { fill: var(--hot); }
.zoom-v4.z-live .z-static { display: none; }
.z-lab { font-family: var(--font-body); font-size: 25px; font-weight: 500; }
.z-lab .he { fill: var(--cold); } .z-lab .metal { fill: var(--metal); } .z-lab .e { fill: var(--hot); } .z-lab .ink { fill: var(--ink); }

/* v5: large screens (4K). Everything sized in rem grows with the root size, and the page widens to use the screen. Team stays three to a row. */
@media (min-width: 2200px) {
  html { font-size: 137.5%; }
  .wrap { max-width: 82rem; }
  section { padding-block: 5.5rem; }
  .hero { padding-block: 6.5rem; }
  .site-header .wrap { padding-block: 1.4rem; }
  .people { gap: 2.5rem; }
}
@media (min-width: 3000px) {
  html { font-size: 175%; }
  .wrap { max-width: 90rem; }
}
@media (min-width: 3600px) {
  html { font-size: 200%; }
}
