/* normgalarneau.com - alternate version (people, organizations and AI).
   Ink and graphite with one signal colour (teal), a network/node motif,
   Instrument Serif for display, IBM Plex Mono for labels, system sans for body.
   All fonts are self-hosted in /fonts (SIL Open Font License). */

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

:root {
  --ink: #0c1015;
  --graphite: #151a21;
  --graphite-2: #1d242d;
  --paper: #f3f1ec;
  --white: #fbfaf7;
  --text: #1c2127;
  --muted: #59616c;
  --line: #dcd8cf;
  --line-dark: rgba(255, 255, 255, 0.1);
  --on-ink: #eef0f2;
  --on-ink-soft: #a9b1bc;
  --signal: #35d0ba;
  --signal-soft: rgba(53, 208, 186, 0.14);
  --signal-ink: #0b7366;
  --serif: "Instrument Serif", Georgia, "Iowan Old Style", "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, .display { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 1.2rem; }
h1 { font-size: clamp(2.8rem, 6.6vw, 5.8rem); }
h2 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
h1 em, h2 em { font-style: italic; color: var(--signal-ink); }
h3 { font-family: var(--sans); font-size: 1.12rem; font-weight: 650; margin: 0 0 0.45rem; color: var(--ink); letter-spacing: -0.005em; }
p { margin: 0 0 1.15rem; }
a { color: var(--ink); text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
a:hover { color: var(--signal-ink); }
.mono { font-family: var(--mono); }

.skip { position: absolute; left: 1rem; top: 0; transform: translateY(-150%); background: var(--white); color: var(--ink); padding: 0.55rem 0.9rem; z-index: 60; font-weight: 700; text-decoration: none; border: 2px solid var(--signal); }
.skip:focus { transform: none; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1200px, calc(100% - 3rem)); margin-inline: auto; }
.measure { max-width: 42rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(12, 16, 21, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-dark); color: var(--on-ink); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: #fff; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; line-height: 1; }
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nav-btn { display: none; }
.nav { display: flex; align-items: center; gap: 1.3rem; }
.nav a { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.02em; color: var(--on-ink-soft); text-decoration: none; padding: 0.3rem 0; border-bottom: 1.5px solid transparent; }
.nav a:hover { color: #fff; }
.nav a.is-current { color: #fff; border-bottom-color: var(--signal); }
.nav a.nav-cta { color: var(--ink); background: var(--signal); padding: 0.45rem 0.85rem; border-radius: 2px; border: 0; }
.nav a.nav-cta:hover { background: #5fe0cd; }

/* ---------- Buttons / labels ---------- */
.btn { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.35rem; border: 1px solid var(--ink); border-radius: 2px; font-family: var(--mono); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.01em; text-decoration: none; cursor: pointer; line-height: 1.2; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--graphite-2); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: rgba(12, 16, 21, 0.05); color: var(--ink); }
.btn-signal { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn-signal:hover { background: #5fe0cd; border-color: #5fe0cd; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--on-ink); border-color: rgba(255, 255, 255, 0.3); }
.btn-ghost:hover { border-color: var(--signal); color: #fff; }
button.btn { font-family: var(--mono); }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.arrow::after { content: "\2192"; }

.label { display: flex; align-items: center; gap: 0.9rem; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--signal-ink); margin: 0 0 1.4rem; }
.label .n { color: var(--muted); }
.label::after { content: ""; flex: 0 0 56px; height: 1px; background: currentColor; opacity: 0.5; }
.dark .label { color: var(--signal); }
.dark .label .n { color: var(--on-ink-soft); }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--muted); }

/* ---------- Dark sections ---------- */
.dark { background: var(--ink); color: var(--on-ink-soft); }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark h1 em, .dark h2 em { color: var(--signal); }
.dark a:not(.btn) { color: #fff; }
.dark .lead { color: var(--on-ink-soft); }
.graphite { background: var(--graphite); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; min-height: min(86vh, 780px); padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem); }
.hero h1 { font-size: clamp(3rem, 6.4vw, 5.9rem); }
.hero .prompt { font-family: var(--mono); font-size: 0.92rem; color: var(--on-ink); margin: 0 0 1.6rem; }
.hero .prompt span { color: var(--signal); }
.hero .lead { max-width: 34rem; }
.hero .lead a { text-decoration-color: var(--signal); }
.net { width: 100%; height: auto; overflow: visible; }
.net line { stroke: rgba(169, 177, 188, 0.28); stroke-width: 1; }
.net line.hot { stroke: rgba(53, 208, 186, 0.6); }
.net circle { fill: #2a323d; stroke: rgba(169, 177, 188, 0.5); stroke-width: 1; }
.net circle.hot { fill: var(--signal); stroke: none; }
.net circle.halo { fill: none; stroke: var(--signal); stroke-width: 1; opacity: 0.35; }
.net text { font-family: var(--mono); font-size: 11px; fill: var(--on-ink-soft); letter-spacing: 0.04em; }
.net text.hot { fill: var(--signal); }
.hero-grid-bg { position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, #000, transparent 70%); }
.hero-foot { position: relative; border-top: 1px solid var(--line-dark); }
.hero-foot ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-foot li { margin: 0; border-right: 1px solid var(--line-dark); }
.hero-foot li:last-child { border-right: 0; }
.hero-foot a { display: block; padding: 1.1rem 1rem 1.2rem; text-decoration: none; font-family: var(--mono); font-size: 0.8rem; color: var(--on-ink-soft) !important; }
.hero-foot li:first-child a { padding-left: 0; }
.hero-foot a span { color: var(--signal); margin-right: 0.5rem; }
.hero-foot a:hover { color: #fff !important; }

@media (prefers-reduced-motion: no-preference) {
  .net .pulse { animation: pulse 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .net .pulse.d2 { animation-delay: 1.2s; }
  .net .pulse.d3 { animation-delay: 2.4s; }
  @keyframes pulse { 0%, 100% { opacity: 0.15; transform: scale(0.8); } 50% { opacity: 0.55; transform: scale(1.35); } }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section-white { background: var(--white); }
.two-col { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.two-col .body p { font-size: 1.08rem; }

.pull { margin: 2.5rem 0 0; padding: 1.6rem 0 0; border-top: 1px solid var(--line); }
.pull p, .two-col .body .pull p { font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2; color: var(--ink); margin: 0; }
.pull p::before { content: "\201C"; color: var(--signal-ink); }
.pull p::after { content: "\201D"; color: var(--signal-ink); }
.dark .pull { border-top-color: var(--line-dark); }
.dark .pull p { color: #fff; }
.dark .pull p::before, .dark .pull p::after { color: var(--signal); }

/* Stats as "readouts" */
.readouts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin-top: 3rem; background: var(--white); }
.readouts div { padding: 1.4rem 1.4rem 1.2rem; border-right: 1px solid var(--line); }
.readouts div:last-child { border-right: 0; }
.readouts .k { display: block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.readouts .v { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.1rem); line-height: 1; color: var(--ink); }
.readouts .s { display: block; font-size: 0.9rem; color: var(--muted); margin-top: 0.45rem; }

/* People cards */
.forces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); margin: 3rem 0 2.5rem; }
.forces div { background: var(--ink); padding: 1.8rem 1.6rem 1.5rem; }
.forces .glyph { display: block; width: 44px; height: 44px; margin-bottom: 1.1rem; }
.forces h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; margin-bottom: 0.5rem; }
.forces p { margin: 0; color: var(--on-ink-soft); }

/* Org chart of the AI team */
.org { margin: 3rem 0 0; }
.org-root { position: relative; width: min(420px, 100%); margin: 0 auto; border: 1.5px solid var(--signal-ink); background: var(--white); padding: 1.1rem 1.3rem; text-align: center; }
.org-root .role { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal-ink); }
.org-root .who { font-family: var(--serif); font-size: 2rem; line-height: 1.1; color: var(--ink); display: block; margin: 0.2rem 0; }
.org-root .what { font-size: 0.92rem; color: var(--muted); }
.org-stem { width: 1.5px; height: 38px; background: var(--signal-ink); margin: 0 auto; }
.org-team { list-style: none; padding: 1.6rem 0 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; position: relative; border-top: 1.5px solid var(--signal-ink); }
.org-team li { position: relative; margin: 0; background: var(--white); border: 1px solid var(--line); padding: 1rem 1.1rem 1.05rem; }
.org-team li:nth-child(-n+3)::before { content: ""; position: absolute; top: calc(-1.6rem - 1px); left: 50%; width: 1.5px; height: 1.6rem; background: var(--line); }
.org-team .id { display: flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.78rem; color: var(--signal-ink); margin-bottom: 0.35rem; }
.org-team .id::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
.org-team .t { display: block; font-weight: 650; color: var(--ink); line-height: 1.35; }
.org-team .d { display: block; font-size: 0.9rem; color: var(--muted); margin-top: 0.2rem; line-height: 1.45; }
.org-note { text-align: center; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-top: 1.4rem; }
.org-note .org-scope { display: block; margin-top: 0.35rem; }
.tools { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }
.tools li { margin: 0; font-family: var(--mono); font-size: 0.8rem; padding: 0.3rem 0.65rem; border: 1px solid var(--line); background: var(--white); }

/* Teaching */
.roles-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.roles-list li { display: flex; gap: 1rem; padding: 0.8rem 0; border-top: 1px solid var(--line-dark); margin: 0; color: #fff; }
.roles-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.roles-list li::before { content: "\2192"; color: var(--signal); font-family: var(--mono); }
.timeline-mini { list-style: none; margin: 0; padding: 0; }
.timeline-mini li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 0.9rem 0; border-top: 1px solid var(--line-dark); margin: 0; }
.timeline-mini .when { font-family: var(--mono); font-size: 0.85rem; color: var(--signal); padding-top: 0.15rem; }
.timeline-mini .what { color: #fff; }
.timeline-mini .what small { display: block; color: var(--on-ink-soft); font-size: 0.92rem; }

/* AITG card */
.aitg { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; border: 1px solid var(--line); background: var(--white); padding: clamp(1.6rem, 3vw, 2.4rem); position: relative; }
.aitg::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px; background: var(--signal); }
.aitg .glyph { width: 64px; height: 64px; }
.aitg h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 0.5rem; }
.aitg p { margin: 0; color: var(--muted); max-width: 40rem; }

/* Beyond the law */
.offclock { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.photo { margin: 0; position: relative; }
.photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; filter: saturate(0.95); }
.photo figcaption { font-family: var(--mono); font-size: 0.78rem; color: var(--on-ink-soft); margin-top: 0.8rem; }
.photo .tag { position: absolute; top: 12px; left: 12px; font-family: var(--mono); font-size: 0.72rem; background: rgba(12, 16, 21, 0.78); color: var(--signal); padding: 0.25rem 0.55rem; }
.eq { display: flex; align-items: flex-end; gap: 4px; height: 46px; margin: 0 0 1.6rem; }
.eq span { width: 6px; background: var(--signal); border-radius: 1px; opacity: 0.85; }
@media (prefers-reduced-motion: no-preference) {
  .eq span { animation: eq 1.6s ease-in-out infinite alternate; transform-origin: bottom; }
  @keyframes eq { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
}
.stream { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 1.6rem 0 0; }
.stream li { margin: 0; }
.stream a { display: inline-block; font-family: var(--mono); font-size: 0.82rem; padding: 0.5rem 0.95rem; border: 1px solid rgba(255, 255, 255, 0.25); text-decoration: none; color: #fff; }
.stream a:hover { border-color: var(--signal); }

/* Contact strip */
.contact-strip { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: end; }
.contact-strip .mail { font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.6rem); word-break: break-word; }

/* Inner pages */
.page-head { padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.page-head h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); max-width: 16ch; }
.page-head .lead { max-width: 40rem; margin-bottom: 0; }
.topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.topics div { border: 1px solid var(--line); background: var(--white); padding: 1.5rem 1.5rem 1.2rem; }
.topics .id { font-family: var(--mono); font-size: 0.75rem; color: var(--signal-ink); display: block; margin-bottom: 0.5rem; }
.topics p { color: var(--muted); margin: 0; }

.note { border-left: 3px solid var(--signal-ink); background: #e9eeec; padding: 1rem 1.2rem; font-size: 0.96rem; margin: 0 0 1.5rem; }
.note p:last-child { margin: 0; }
.contact-layout { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form-card { border: 1px solid var(--line); background: var(--white); padding: clamp(1.4rem, 3vw, 2.2rem); }
.form-card h2 { font-size: 2.2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-family: var(--mono); font-size: 0.8rem; font-weight: 500; margin-bottom: 0.35rem; color: var(--text); }
.hint { font-family: var(--sans); font-weight: 400; color: var(--muted); font-size: 0.88rem; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); border: 1px solid #bcb8ae; border-radius: 2px; padding: 0.7rem 0.8rem; background: #fff; }
textarea { min-height: 9rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; border-color: var(--ink); }
.form-actions { margin-top: 1.4rem; }
.form-error { display: none; border-left: 3px solid #9b2c2c; background: #fbf1f1; padding: 0.8rem 1rem; color: #6b1d1d; }
.form-error:target { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-details { margin: 0; }
.contact-details dt { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal-ink); margin-top: 1.1rem; }
.contact-details dd { margin: 0.2rem 0 0; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink-soft); padding: 3.5rem 0 2rem; font-size: 0.94rem; border-top: 1px solid var(--line-dark); }
.site-footer a { color: #fff; text-decoration-color: var(--signal); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1.2fr; gap: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line-dark); }
.footer-name { font-family: var(--serif); font-size: 1.8rem; color: #fff; margin: 0 0 0.3rem; line-height: 1.1; }
.footer-sub { font-family: var(--mono); font-size: 0.78rem; color: var(--signal); }
.footer-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal); margin-bottom: 0.6rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-nav a { text-decoration: none; font-family: var(--mono); font-size: 0.85rem; }
.footer-nav a:hover { text-decoration: underline; }
.footer-music { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; padding: 0; margin: 0.4rem 0 0; }
.footer-music li { margin: 0; }
.footer-music a { font-family: var(--mono); font-size: 0.78rem; padding: 0.25rem 0.6rem; border: 1px solid rgba(53, 208, 186, 0.4); text-decoration: none; display: inline-block; }
.footer-note { padding-top: 1.5rem; }
.footer-note p { font-size: 0.88rem; margin-bottom: 0.5rem; }
.copy { color: #7d8692; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
/* Stock photos: thin frame, teal corner tick, consistent treatment (colour work is baked in by process_images.py) */
.shot { position: relative; margin: 2.2rem 0 0; }
.shot img { width: 100%; height: auto; display: block; border: 1px solid var(--line); background: #e8e5de; }
.dark .shot img { border-color: var(--line-dark); background: var(--graphite-2); }
.shot::before { content: ""; position: absolute; left: -6px; top: -6px; width: 22px; height: 22px; border-left: 2px solid var(--signal-ink); border-top: 2px solid var(--signal-ink); pointer-events: none; }
.dark .shot::before { border-color: var(--signal); }
.shot-tall { max-width: 320px; }
.shot-wide { margin: 3rem 0 0; }
.shot-wide img { aspect-ratio: 12 / 5; object-fit: cover; object-position: 50% 35%; }
@media (max-width: 900px) {
  .two-col .shot { max-width: 560px; }
  .shot-tall { max-width: 300px; }
  .shot-wide img { aspect-ratio: 2 / 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1060px) {
  .header-inner { flex-wrap: wrap; }
  .nav-btn { display: inline-block; font-family: var(--mono); font-size: 0.82rem; color: #fff; border: 1px solid rgba(255,255,255,0.35); padding: 0.4rem 0.85rem; cursor: pointer; }
  .nav-toggle:focus-visible + .nav-btn { outline: 2px solid var(--signal); outline-offset: 3px; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0; padding: 0.2rem 0 1rem; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav a { width: 100%; padding: 0.65rem 0; border-bottom: 1px solid var(--line-dark); }
  .nav a.nav-cta { width: auto; margin-top: 0.7rem; padding: 0.5rem 0.9rem; }
}
@media (max-width: 900px) {
  .hero-inner, .two-col, .offclock, .contact-layout, .contact-strip { grid-template-columns: 1fr; }
  .hero-inner { min-height: 0; padding-top: 3.5rem; }
  .net { max-width: 460px; }
  .forces { grid-template-columns: 1fr; }
  .aitg { grid-template-columns: 1fr; gap: 1rem; }
  .offclock .photo { max-width: 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .hero-foot ol { grid-template-columns: repeat(2, 1fr); }
  .hero-foot li:nth-child(2) { border-right: 0; }
  .hero-foot li:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .hero-foot li:nth-child(3) a { padding-left: 0; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { width: calc(100% - 2.25rem); }
  .readouts { grid-template-columns: 1fr; }
  .readouts div { border-right: 0; border-bottom: 1px solid var(--line); }
  .readouts div:last-child { border-bottom: 0; }
  .topics, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  /* AI team becomes a vertical list hanging off one line */
  .org-team { grid-template-columns: 1fr; border-top: 0; border-left: 1.5px solid var(--signal-ink); padding: 0 0 0 1.2rem; margin-left: calc(50% - 0.75px); margin-left: 1.2rem; gap: 0.7rem; }
  .org-stem { margin-left: 1.2rem; }
  .org-team li:nth-child(n)::before { content: ""; position: absolute; background: var(--signal-ink); display: block !important; top: 50%; left: calc(-1.2rem - 1px); width: 1.2rem; height: 1.5px; }
  .timeline-mini li { grid-template-columns: 1fr; gap: 0.2rem; }
  .hero h1 { font-size: clamp(2.6rem, 11.5vw, 3.4rem); }
  .h-net { display: none; }
}
@media print {
  .nav-btn, .nav-toggle, .skip, .actions, .form-card { display: none !important; }
  .site-header { position: static; }
  .js .reveal { opacity: 1; transform: none; }
}
