/* ============================================================
   Aaron the AI guy — "Product" direction
   Dark-first by design. Colors are painted explicitly, not
   inherited from the viewer's theme.
   ============================================================ */

:root {
  --bg: #06070a;
  --bg-2: #0b0d13;
  --fg: #ffffff;
  --fg-2: #b8bfcd;
  --muted: #8a909d;
  --recessive: #3a3e4a;
  --rule: rgba(255, 255, 255, 0.09);
  --rule-solid: #1c1f28;
  --accent: #7c9bff;
  --accent-deep: #2547d0;
  --glass-top: rgba(255, 255, 255, 0.06);
  --glass-bot: rgba(255, 255, 255, 0.015);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* the glow */
/* vh/vw units — percentage insets would resolve against the full
   body height and push the glow off screen on a long page. */
body::before {
  content: "";
  position: absolute;
  top: -18vh;
  left: -12vw;
  right: -12vw;
  height: 105vh;
  background:
    radial-gradient(ellipse 55% 60% at 30% 40%, rgba(37, 71, 208, 0.62), transparent 65%),
    radial-gradient(ellipse 45% 50% at 74% 28%, rgba(124, 155, 255, 0.34), transparent 62%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 2rem; }
a { color: inherit; }

/* The shell is wide so grids and screenshots can use the screen, but running
   text still needs a readable measure — roughly 70 characters. Anything that
   is prose gets capped; anything that is structure does not. */
.measure, .intro, .lede, .skill-does, .stack-does,
.post blockquote, .talk > p, .roles-more, .app-body > p { max-width: 44rem; }
.thesis { max-width: 52rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(6, 7, 10, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav-in {
  max-width: 68rem; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 3.4rem;
}
.nav-mark {
  font-weight: 660; letter-spacing: -0.022em; font-size: 0.95rem;
  text-decoration: none; white-space: nowrap;
}
.nav-mark span { color: var(--accent); }
.nav-links {
  display: flex; align-items: center; gap: 1.1rem;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  font-size: 0.88rem; color: var(--muted); text-decoration: none; white-space: nowrap;
  padding: 0.2rem 0; border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover { color: var(--fg); border-bottom-color: var(--accent); }
@media (max-width: 40rem) {
  .nav-mark { display: none; }
  .nav-in { justify-content: flex-start; }
}
section[id] { scroll-margin-top: 4.5rem; }

/* ---------- hero ---------- */
header { padding: clamp(3.5rem, 10vw, 6.5rem) 0 clamp(2rem, 5vw, 3rem); }
.hero-top { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.portrait {
  flex: 0 0 auto;
  width: clamp(5rem, 16vw, 7rem);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(124, 155, 255, 0.35);
  box-shadow: 0 0 0 6px rgba(124, 155, 255, 0.07), 0 0 40px rgba(37, 71, 208, 0.35);
}
@media (max-width: 34rem) {
  .hero-top { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
}
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem; border-radius: 999px;
  border: 1px solid rgba(124, 155, 255, 0.35);
  background: rgba(124, 155, 255, 0.08);
  font-size: 0.82rem; color: #b9c7ff;
  margin-bottom: 1.75rem; text-decoration: none;
  transition: background 0.15s ease;
}
.pill:hover { background: rgba(124, 155, 255, 0.16); }
.pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.mark {
  font-size: clamp(2.75rem, 9vw, 5rem);
  line-height: 1.0;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin: 0;
  color: var(--fg);
}
.mark .aaron { color: #fff; font-weight: 700; }
.mark .the { color: var(--muted); font-weight: 300; }
.mark .ai {
  color: var(--accent);
  font-weight: 700;
  text-shadow: 0 0 34px rgba(124, 155, 255, 0.55);
}
.mark .guy { color: var(--fg-2); font-weight: 400; }
.role {
  margin: 1rem 0 0;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 550;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.intro { margin: 1.75rem 0 0; max-width: 36rem; color: var(--fg-2); }

/* ---------- thesis ---------- */
.thesis {
  margin: clamp(2.5rem, 7vw, 3.5rem) 0 0;
  padding: 1.5rem 1.6rem;
  border-radius: 14px;
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bot));
  backdrop-filter: blur(6px);
}
.thesis-lead {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 4.2vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.034em;
  font-weight: 750;
  color: var(--accent);
  text-shadow: 0 0 28px rgba(124, 155, 255, 0.3);
}
.thesis p {
  margin: 0;
  font-size: clamp(1.02rem, 2.4vw, 1.15rem);
  line-height: 1.5;
  letter-spacing: -0.014em;
  font-weight: 450;
  color: var(--fg-2);
}
.thesis .attrib {
  margin: 0.85rem 0 0; font-size: 0.88rem; font-weight: 400;
  color: var(--muted); letter-spacing: 0;
}

/* ---------- sections ---------- */
section { padding: clamp(3rem, 8vw, 4.5rem) 0 0; }
section.last { padding-bottom: clamp(3rem, 8vw, 5rem); }
.eyebrow {
  font-size: 0.76rem; font-weight: 650; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 0.85rem;
}
h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.2rem); line-height: 1.12;
  letter-spacing: -0.032em; font-weight: 680; margin: 0;
}
h3 {
  font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.024em;
  font-weight: 640; margin: 0 0 0.4rem;
}
.lede { margin: 1.25rem 0 0; max-width: 36rem; color: var(--fg-2); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule); margin-bottom: 1.75rem;
}
.section-head .eyebrow { margin: 0; }
.subsection { margin-top: clamp(2.75rem, 7vw, 4rem); }
.subsection .section-head .eyebrow { color: var(--fg); font-size: 0.84rem; }
.section-note { font-size: 0.85rem; color: var(--muted); }

/* ---------- highlights ---------- */
.highlights {
  display: grid; gap: 0.9rem;
  grid-template-columns: 1fr;
}
/* Two across, four down — eight cards, four full rows, no stranded card. */
@media (min-width: 44rem) {
  .highlights { grid-template-columns: repeat(2, 1fr); }
}
.hl {
  padding: 1.35rem 1.3rem; border-radius: 14px;
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bot));
  backdrop-filter: blur(6px);
}
.hl dt {
  font-size: 0.71rem; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.55rem; font-weight: 650;
}
.hl dd { margin: 0; font-size: 1.02rem; line-height: 1.35; font-weight: 600; letter-spacing: -0.018em; }
.hl dd b { color: var(--accent); font-weight: 700; }
.hl dd small {
  display: block; margin-top: 0.4rem; font-size: 0.84rem;
  font-weight: 400; color: var(--muted); letter-spacing: 0; line-height: 1.45;
}

/* ---------- work cards ---------- */
.work { display: grid; gap: 0.9rem; }
@media (min-width: 60rem) {
  .work { grid-template-columns: 1fr 1fr; }
  .skill { grid-template-columns: 15rem 1fr; }
  /* Career history stays one column — two columns break the chronological scan. */
}
.work-item {
  display: block; text-decoration: none;
  padding: 1.5rem; border-radius: 14px;
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bot));
  backdrop-filter: blur(6px);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
a.work-item:hover { border-color: rgba(124, 155, 255, 0.45); transform: translateY(-2px); }
a.work-item:hover h3 { color: var(--accent); }
.work-item .meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.5rem 0.75rem; margin-top: 0.85rem;
}
.work-item p { margin: 0; color: var(--fg-2); max-width: 36rem; }
.stat {
  font-size: 0.84rem; font-weight: 650; color: var(--accent);
  background: rgba(124, 155, 255, 0.12);
  border: 1px solid rgba(124, 155, 255, 0.25);
  padding: 0.18rem 0.55rem; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.tag { font-size: 0.84rem; color: var(--muted); }
.work-item.pending { opacity: 0.55; }

/* ---------- apps gallery ---------- */
.app {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  padding: 1.6rem; margin-bottom: 1rem; border-radius: 16px;
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bot));
  backdrop-filter: blur(6px);
}
.app-shot {
  aspect-ratio: 16 / 10; border-radius: 12px;
  border: 1px dashed var(--recessive);
  background: var(--bg-2);
  display: grid; place-items: center;
  color: var(--recessive); font-size: 0.8rem;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.app-shot img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.app-body h2 { font-size: clamp(1.35rem, 3.5vw, 1.7rem); margin: 0 0 0.3rem; letter-spacing: -0.028em; }
.app-tag { margin: 0 0 1rem; font-size: 0.88rem; color: var(--accent); font-weight: 560; }
.app-body > p { margin: 0; color: var(--fg-2); }
.app-facts { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.app-facts li { font-size: 0.9rem; color: var(--fg-2); }
.app-facts li span {
  display: inline-block; min-width: 6.5rem; color: var(--muted);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 650;
}
.pending-app { opacity: 0.55; }

/* ---------- screenshot carousel ---------- */
.shots { margin: 1.75rem 0 0; }
.shots-stage {
  position: relative;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: var(--bg-2);
  overflow: hidden;
}
.shots-stage figure { margin: 0; display: none; }
.shots-stage figure.on { display: block; }
.shots-stage img { display: block; width: 100%; height: auto; }

/* click zones — left third goes back, right two-thirds advance */
.shots-nav {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 2fr;
}
.shots-nav button {
  border: 0; background: transparent; cursor: pointer; padding: 0;
  color: transparent; font-size: 0;
}
.shots-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(6, 7, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff; font-size: 1rem; line-height: 1;
  opacity: 0; transition: opacity 0.15s ease;
  pointer-events: none;
}
.shots-stage:hover .shots-arrow { opacity: 1; }
.shots-arrow.prev { left: 0.75rem; }
.shots-arrow.next { right: 0.75rem; }

.shots-bar {
  display: flex; align-items: center; gap: 0.75rem;
  margin-top: 0.9rem;
}
.shots-dots { display: flex; gap: 0.4rem; }
.shots-dots button {
  width: 7px; height: 7px; padding: 0; border-radius: 50%;
  border: 0; background: var(--recessive); cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.shots-dots button.on { background: var(--accent); transform: scale(1.3); }
.shots-count {
  margin-left: auto; font-size: 0.8rem; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.shots-cap {
  margin: 0.55rem 0 0; font-size: 0.88rem; color: var(--muted);
  line-height: 1.5; min-height: 3.2em;
}
.shots-cap b {
  color: var(--accent); font-weight: 650;
  font-variant-numeric: tabular-nums; margin-right: 0.35rem;
}
.app.wide { grid-template-columns: 1fr; }

/* no JS — fall back to a plain stacked list */
.no-js .shots-stage figure { display: block; }
.no-js .shots-nav, .no-js .shots-bar { display: none; }
@media (min-width: 48rem) {
  .app { grid-template-columns: 19rem 1fr; gap: 1.75rem; align-items: start; }
}

/* ---------- skills ---------- */
.skill-group { margin-top: 2rem; }
.skill-group:first-of-type { margin-top: 0; }
.skill-group > h4 {
  margin: 0 0 0.5rem; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent);
}
.skill {
  display: grid; grid-template-columns: 13rem 1fr;
  gap: 0.35rem 1.25rem; padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule); align-items: baseline;
}
.skill-name {
  font-weight: 600; letter-spacing: -0.01em;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9rem; color: var(--fg);
}
.skill-does { margin: 0; color: var(--fg-2); font-size: 0.95rem; }

/* expanded skill entries on the dedicated skill pages */
.skill-detail {
  padding: 1.5rem 1.6rem;
  margin-bottom: 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bot));
  backdrop-filter: blur(6px);
}
.skill-detail > h5 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
.skill-detail > p { margin: 0; color: var(--fg-2); max-width: 44rem; }
.skill-detail > p + p { margin-top: 0.75rem; }
.skill-facts {
  list-style: none; margin: 1.1rem 0 0; padding: 1.1rem 0 0;
  border-top: 1px solid var(--rule);
  display: grid; gap: 0.55rem;
}
.skill-facts li {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem;
  font-size: 0.9rem; color: var(--fg-2); align-items: baseline;
}
.skill-facts li > span:first-child {
  color: var(--muted); font-size: 0.71rem; text-transform: uppercase;
  letter-spacing: 0.09em; font-weight: 650;
}
.replaces {
  margin-top: 1.1rem; padding: 0.7rem 0.9rem;
  border-radius: 9px;
  border: 1px solid rgba(124, 155, 255, 0.22);
  background: rgba(124, 155, 255, 0.07);
  font-size: 0.9rem; color: var(--fg-2);
}
.replaces b {
  color: var(--accent); font-weight: 650; text-transform: uppercase;
  letter-spacing: 0.09em; font-size: 0.71rem; margin-right: 0.5rem;
}
@media (max-width: 34rem) {
  .skill-facts li { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ---------- speaking ---------- */
.talk {
  padding: 1.5rem; border-radius: 14px;
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bot));
  backdrop-filter: blur(6px);
  margin-bottom: 0.9rem;
}
.talk-embed {
  position: relative; width: 100%; max-width: 46rem; aspect-ratio: 16 / 9;
  border-radius: 10px; overflow: hidden; margin-bottom: 1.25rem;
  border: 1px solid var(--rule); background: var(--bg-2);
}
.talk-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.talk h3 { margin-bottom: 0.35rem; }
.talk-host {
  margin: 0 0 0.9rem; font-size: 0.88rem; color: var(--accent); font-weight: 560;
}
.talk p { margin: 0; color: var(--fg-2); }
.talk .meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.5rem 0.75rem; margin-top: 1rem;
}
.talk .meta a { color: var(--accent); font-size: 0.85rem; text-underline-offset: 2px; }

/* ---------- writing ---------- */
.writing { display: grid; gap: 0.9rem; }
.post {
  display: block; text-decoration: none;
  padding: 1.5rem; border-radius: 14px;
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bot));
  backdrop-filter: blur(6px);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
a.post:hover { border-color: rgba(124, 155, 255, 0.45); transform: translateY(-2px); }
a.post:hover h3 { color: var(--accent); }
.post blockquote {
  margin: 0.9rem 0 0; padding: 0 0 0 1rem;
  border-left: 2px solid rgba(124, 155, 255, 0.4);
  color: var(--fg-2); font-size: 1rem; line-height: 1.55;
}
.post blockquote p { margin: 0; }
.post blockquote p + p { margin-top: 0.6rem; }
.post .meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.5rem 0.75rem; margin-top: 1rem;
}

/* ---------- background ---------- */
.roles { display: grid; gap: 0; }
.role-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 0.5rem 1.5rem; padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule); align-items: baseline;
}
.role-co { font-weight: 620; letter-spacing: -0.014em; }
.role-title { color: var(--fg-2); font-size: 0.93rem; }
.role-yrs { color: var(--muted); font-size: 0.88rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.roles-more { margin: 1.1rem 0 0; font-size: 0.88rem; color: var(--muted); }

/* ---------- placeholder ---------- */
.placeholder {
  padding: 1.5rem; border-radius: 14px;
  border: 1px dashed var(--recessive);
  background: var(--bg-2);
  color: var(--muted); font-size: 0.92rem;
}
.placeholder p { margin: 0; }
.placeholder p + p { margin-top: 0.5rem; }
.placeholder strong { color: var(--fg-2); }

/* ---------- case study pieces ---------- */
.backlink {
  display: inline-block; margin-bottom: 1.75rem;
  font-size: 0.88rem; color: var(--muted); text-decoration: none;
}
.backlink:hover { color: var(--accent); }
.figure {
  margin: clamp(2.25rem, 5vw, 3rem) 0 0; padding: 1.75rem;
  border-radius: 16px; border: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bot));
  backdrop-filter: blur(6px);
}
.hero-num { display: flex; align-items: baseline; gap: 0.55rem; margin: 0; }
.hero-num b {
  font-size: clamp(3.25rem, 11vw, 4.5rem); font-weight: 700;
  letter-spacing: -0.045em; line-height: 1; color: var(--accent);
}
.hero-num span { font-size: 1.05rem; color: var(--muted); font-weight: 500; }
.hero-cap { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.92rem; }
.kpis {
  margin: 2rem 0 0; padding: 1.5rem 0 0;
  border-top: 1px solid var(--rule); display: grid; gap: 1.1rem;
}
.kpi { display: grid; grid-template-columns: 4.5rem 1fr; align-items: center; gap: 1rem; }
.kpi-label { font-size: 0.86rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.kpi-track { display: flex; align-items: center; gap: 0.75rem; }
.kpi-bar { height: 10px; border-radius: 0 5px 5px 0; background: var(--recessive); }
.kpi.is-now .kpi-bar {
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  box-shadow: 0 0 16px rgba(124, 155, 255, 0.45);
}
.kpi-val { font-size: 0.92rem; font-weight: 620; color: var(--fg-2); white-space: nowrap; }
.kpi.is-now .kpi-val { color: var(--fg); }

.stack { margin: clamp(2.25rem, 5vw, 3rem) 0 0; display: grid; gap: 0; }
.stack-item {
  display: grid; grid-template-columns: 9rem 1fr; gap: 1.25rem;
  padding: 1.1rem 0; border-top: 1px solid var(--rule);
}
.stack-item:last-child { border-bottom: 1px solid var(--rule); }
.stack-name { font-weight: 620; letter-spacing: -0.014em; }
.stack-does { color: var(--fg-2); margin: 0; }

.pullout {
  margin: clamp(2.25rem, 5vw, 3rem) 0 0; padding: 1.5rem 1.6rem;
  border-radius: 14px; border: 1px solid rgba(124, 155, 255, 0.28);
  background: linear-gradient(180deg, rgba(124, 155, 255, 0.12), rgba(124, 155, 255, 0.03));
}
.pullout p { margin: 0; font-size: 1.06rem; line-height: 1.5; font-weight: 520; letter-spacing: -0.014em; }

.source { margin: 2rem 0 0; font-size: 0.88rem; color: var(--muted); }
.source a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.source .metrics { font-variant-numeric: tabular-nums; }

/* ---------- footer ---------- */
footer {
  margin-top: clamp(3rem, 8vw, 4.5rem);
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 4rem; color: var(--muted); font-size: 0.88rem;
}
footer p { margin: 0; }
.foot-links { margin-top: 0.5rem !important; }
.foot-links a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.foot-links .sep { padding: 0 0.5rem; color: var(--recessive); }

/* ============================================================
   Print — the site doubles as the résumé, so this flips the
   dark canvas to paper and drops anything that only works
   on screen.
   ============================================================ */
@media print {
  :root {
    --bg: #ffffff; --bg-2: #ffffff;
    --fg: #000000; --fg-2: #1f2430; --muted: #55596a;
    --rule: #c9ccd6; --recessive: #9aa0ae;
    --accent: #1c3ba8; --accent-deep: #1c3ba8;
    --glass-top: transparent; --glass-bot: transparent;
  }
  body { background: #fff; color: #000; font-size: 10.5pt; line-height: 1.42; }
  body::before { display: none; }              /* the glow */
  .nav, .shots, .talk-embed { display: none; } /* screen-only chrome */

  .wrap { max-width: none; padding: 0; }
  header { padding: 0 0 0.6rem; }
  section { padding: 0.9rem 0 0; break-inside: avoid; }
  section.last { padding-bottom: 0; }

  .mark { font-size: 26pt; }
  .mark .aaron, .mark .guy, .mark .the { color: #000; }
  .mark .ai { color: var(--accent); text-shadow: none; }
  .role { font-size: 11pt; margin-top: 0.3rem; }
  .intro, .lede { max-width: none; }
  h2 { font-size: 15pt; }
  h3 { font-size: 11.5pt; }

  /* flatten every glass panel to a hairline box */
  .thesis, .hl, .work-item, .app, .post, .talk, .figure, .pullout, .placeholder {
    background: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border: 1px solid var(--rule);
    padding: 0.6rem 0.7rem;
    break-inside: avoid;
  }
  .thesis-lead { font-size: 13pt; text-shadow: none; }
  .highlights { grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
  .work, .writing { gap: 0.4rem; }
  .stat { border: 1px solid var(--accent); background: none; }
  .kpi.is-now .kpi-bar { background: var(--accent); box-shadow: none; }
  .kpi-bar { background: var(--recessive); }

  /* links are useless in print unless the address is visible */
  .post[href]::after, .work-item[href]::after, .talk .meta a[href]::after {
    content: " (" attr(href) ")";
    font-size: 8pt; color: var(--muted); word-break: break-all;
  }
  .foot-links a::after { content: none; }
  footer { margin-top: 0.9rem; padding: 0.6rem 0 0; }

  @page { margin: 14mm; }
}

@media (max-width: 34rem) {
  .skill { grid-template-columns: 1fr; gap: 0.2rem; }
  .stack-item { grid-template-columns: 1fr; gap: 0.2rem; }
  .kpi { grid-template-columns: 3.75rem 1fr; }
  .role-row { grid-template-columns: 1fr; }
}
