:root {
  color-scheme: light;
  --paper: #f7faff;
  --paper-strong: #eaf2fb;
  --surface: #ffffff;
  --ink: #15283f;
  --muted: #52677f;
  --line: rgba(70, 108, 153, 0.22);
  --teal: #315f94;
  --gold: #007f8d;
  --brand-cyan: #00d8e3;
  --brand-blue: #86a6cf;
  --accent-on-ink: #61e8ef;
  --shadow: 0 24px 70px rgba(49, 95, 148, 0.14);
  --display: "Google Sans", "Segoe UI", Arial, sans-serif;
  --body: "Google Sans", "Segoe UI", Arial, sans-serif;
  --max-width: 1240px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0b1420;
  --paper-strong: #132235;
  --surface: #101c2b;
  --ink: #f2f7fc;
  --muted: #b7c8dc;
  --line: rgba(166, 194, 226, 0.2);
  --teal: #a8c8f0;
  --gold: #55e8ef;
  --brand-cyan: #27e0e8;
  --brand-blue: #315f94;
  --accent-on-ink: #315f94;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  overflow-x: clip;
  background:
    linear-gradient(90deg, transparent calc(100% - 1px), color-mix(in srgb, var(--teal) 7%, transparent) 1px) 0 0 / 5rem 5rem,
    linear-gradient(transparent calc(100% - 1px), color-mix(in srgb, var(--teal) 7%, transparent) 1px) 0 0 / 5rem 5rem,
    var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-optical-sizing: auto;
  font-size: 16px;
  line-height: 1.65;
  transition: background-color 220ms ease, color 220ms ease;
}

body::before {
  background: linear-gradient(110deg, transparent 0 66%, color-mix(in srgb, var(--teal) 6%, transparent) 66% 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

a { color: inherit; }
img { display: block; image-orientation: from-image; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
::selection { background: var(--teal); color: var(--paper); }

.skip-link { background: var(--ink); color: var(--paper); left: 1rem; padding: 0.75rem 1rem; position: fixed; top: -6rem; z-index: 100; }
.skip-link:focus { top: 1rem; }
.scroll-progress { height: 3px; inset: 0 0 auto; pointer-events: none; position: fixed; z-index: 50; }
.scroll-progress span { background: var(--brand-cyan); display: block; height: 100%; transform: scaleX(0); transform-origin: left; }

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr auto 1fr;
  padding: 0.8rem max(1.25rem, calc((100vw - var(--max-width)) / 2));
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { align-items: center; display: inline-flex; gap: 0.75rem; justify-self: start; text-decoration: none; }
.brand-mark { align-items: center; background: var(--ink); color: var(--paper); display: inline-flex; font-size: 0.62rem; font-weight: 850; height: 2.2rem; justify-content: center; letter-spacing: 0.05em; width: 2.2rem; }
.brand-name { font-size: 0.87rem; font-weight: 780; letter-spacing: -0.01em; }
.site-nav { display: flex; gap: clamp(0.9rem, 2.7vw, 2.2rem); }
.site-nav a { color: var(--muted); font-size: 0.71rem; font-weight: 780; letter-spacing: 0.09em; position: relative; text-decoration: none; text-transform: uppercase; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after { background: var(--brand-cyan); bottom: -1rem; content: ""; height: 3px; left: 0; position: absolute; right: 0; }
.theme-toggle { align-items: center; background: transparent; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); cursor: pointer; display: flex; height: 2.2rem; justify-content: center; justify-self: end; width: 2.2rem; }
.theme-toggle:hover { background: var(--paper-strong); }

.section-shell { margin-inline: auto; max-width: var(--max-width); padding-inline: 1.25rem; }
.profile-copy, .topic-copy, .section-heading > *, .content-section > *, .feature-callout > * { min-width: 0; }
.topic-copy { container-type: inline-size; }
.profile-copy h1, .topic-copy h1, .section-heading h2, .content-section h2 { hyphens: none; overflow-wrap: normal; text-wrap: balance; word-break: normal; }
.eyebrow, .section-index, .aside-label, .section-number, .identity-line, .breadcrumbs { color: var(--teal); font-size: 0.71rem; font-weight: 820; letter-spacing: 0.12em; text-transform: uppercase; }

.profile-hero { align-items: center; display: grid; gap: clamp(3rem, 8vw, 8rem); grid-template-columns: minmax(0, 1.18fr) minmax(18rem, 0.62fr); min-height: calc(100vh - 68px); padding-block: clamp(4.5rem, 10vh, 8rem); }
.profile-copy .eyebrow { align-items: center; display: flex; gap: 0.65rem; margin: 0 0 1.6rem; }
.status-dot { background: var(--brand-cyan); border-radius: 50%; box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand-cyan) 18%, transparent); height: 0.48rem; width: 0.48rem; }
.profile-copy h1 { font-family: var(--display); font-size: clamp(4rem, 8.7vw, 8.2rem); font-weight: 700; letter-spacing: -0.06em; line-height: 0.9; margin: 0; max-width: 8.8ch; text-transform: uppercase; }
.profile-copy h1 em { color: var(--teal); display: block; font-family: var(--display); font-size: 0.82em; font-weight: 500; letter-spacing: -0.055em; text-transform: none; }
.hero-lead { color: var(--muted); font-size: clamp(1.08rem, 1.7vw, 1.32rem); margin: 2rem 0 0; max-width: 40rem; }
.identity-line { color: var(--muted); line-height: 1.7; margin: 1.4rem 0 0; max-width: 43rem; text-transform: none; }
.identity-line strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.button { align-items: center; border: 1px solid var(--ink); display: inline-flex; font-size: 0.74rem; font-weight: 820; gap: 1rem; justify-content: center; letter-spacing: 0.08em; min-height: 3.1rem; padding: 0.75rem 1.15rem; text-decoration: none; text-transform: uppercase; }
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: var(--teal); border-color: var(--teal); }
.button-secondary:hover { background: var(--paper-strong); }

figure { margin: 0; }
figure img { background: var(--paper-strong); }
figcaption { color: var(--muted); font-size: 0.73rem; line-height: 1.45; padding-top: 0.8rem; }
figcaption small { display: block; margin-top: 0.28rem; }
figcaption a { text-underline-offset: 0.2em; }
.profile-portrait { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 0.75rem; position: relative; }
.profile-portrait::before { background: var(--brand-cyan); content: ""; height: 4px; left: -1px; position: absolute; top: -1px; width: 42%; }
.profile-portrait img { aspect-ratio: auto; height: auto; object-fit: contain; width: 100%; }

.intro-band { align-items: center; background: var(--ink); color: var(--paper); display: grid; gap: 2rem; grid-template-columns: 1fr auto; padding: clamp(2.2rem, 5vw, 4rem) max(1.25rem, calc((100vw - var(--max-width)) / 2)); }
.intro-band > p { font-family: var(--body); font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 500; line-height: 1.35; margin: 0; max-width: 49rem; }
.intro-band > div { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.intro-band a { border-bottom: 1px solid color-mix(in srgb, var(--paper) 40%, transparent); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; padding-block: 0.4rem; text-decoration: none; text-transform: uppercase; }
.intro-band a:hover { color: var(--accent-on-ink); }

.credential-band {
  align-items: stretch;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10rem, 0.28fr) minmax(12rem, 0.34fr);
  margin-inline: auto;
  max-width: var(--max-width);
}
.credential-band > * { align-content: center; min-width: 0; padding: clamp(1.7rem, 4vw, 3rem); }
.credential-band > * + * { border-left: 1px solid color-mix(in srgb, var(--paper) 22%, transparent); }
.credential-band .eyebrow { color: var(--accent-on-ink); margin: 0 0 0.75rem; }
.credential-band .credential-copy { align-content: center; display: grid; }
.credential-band h2 { font-family: var(--display); font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 780; letter-spacing: -0.055em; line-height: 0.98; margin: 0; max-width: 14ch; text-transform: uppercase; }
.credential-band p { color: color-mix(in srgb, var(--paper) 72%, transparent); margin: 0.85rem 0 0; max-width: 43rem; }
.credential-band .credential-stat { display: grid; place-content: center; }
.credential-band .credential-stat strong { color: var(--accent-on-ink); font-family: var(--display); font-size: clamp(3rem, 6vw, 5.6rem); letter-spacing: -0.065em; line-height: 0.8; }
.credential-band .credential-stat span { color: color-mix(in srgb, var(--paper) 70%, transparent); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.11em; margin-top: 0.75rem; text-transform: uppercase; }
.credential-band .credential-action { display: grid; justify-items: start; }
.credential-band .credential-action a { border-bottom: 1px solid color-mix(in srgb, var(--paper) 44%, transparent); font-size: 0.74rem; font-weight: 820; letter-spacing: 0.08em; min-height: 2.75rem; padding-block: 0.75rem 0.45rem; text-decoration: none; text-transform: uppercase; }
.credential-band .credential-action a:hover { color: var(--accent-on-ink); }

.topic-index, .projects-section, .interest-section, .related { padding-block: clamp(5rem, 10vw, 8.5rem); }
.section-heading { align-items: start; display: grid; gap: 2rem; grid-template-columns: minmax(10rem, 0.36fr) 1fr; margin-bottom: clamp(2.8rem, 6vw, 5rem); }
.section-heading.compact { margin-bottom: 2.4rem; }
.section-heading .section-index { margin: 0.45rem 0 0; }
.section-heading h2, .contact-section h2 { font-family: var(--display); font-size: clamp(2.6rem, 5.5vw, 5rem); font-weight: 780; letter-spacing: -0.06em; line-height: 0.96; margin: 0; max-width: 13ch; text-transform: uppercase; }
.section-heading > div > p { color: var(--muted); font-size: 1.03rem; margin: 1rem 0 0; max-width: 37rem; }

.topic-card-grid { align-items: start; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.topic-card { border: 1px solid var(--line); margin: -1px 0 0 -1px; min-height: 18rem; padding: clamp(1.4rem, 3vw, 2.2rem); padding-bottom: 4rem; position: relative; text-decoration: none; }
.topic-card > span { color: var(--gold); font-family: var(--body); font-size: 0.82rem; }
.topic-card h3 { font-size: clamp(1.35rem, 2.1vw, 2rem); letter-spacing: -0.04em; line-height: 1.08; margin: 3.5rem 0 0.8rem; }
.topic-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.topic-card i { bottom: 1.5rem; color: var(--teal); font-style: normal; position: absolute; right: 1.5rem; }
.topic-card:hover { background: var(--ink); color: var(--paper); }
.topic-card:hover p { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.topic-card:hover i { color: var(--accent-on-ink); }

.project-grid { align-items: start; display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-card { background: var(--surface); border: 1px solid var(--line); display: block; padding-bottom: 1.5rem; text-decoration: none; }
.project-card img { aspect-ratio: 16 / 10; background: var(--paper-strong); height: auto; object-fit: contain; width: 100%; }
.project-card > span, .project-card h3, .project-card p, .project-card i { margin-inline: 1.35rem; }
.project-card > span { color: var(--gold); display: block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.11em; margin-top: 1.2rem; text-transform: uppercase; }
.project-card h3 { font-size: 1.3rem; letter-spacing: -0.035em; line-height: 1.15; margin-bottom: 0.55rem; margin-top: 0.55rem; }
.project-card p { color: var(--muted); font-size: 0.86rem; margin-bottom: 1.1rem; margin-top: 0; }
.project-card i { color: var(--teal); font-size: 0.73rem; font-style: normal; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.project-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.text-link { display: inline-block; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.08em; margin-top: 1.5rem; text-underline-offset: 0.25em; text-transform: uppercase; }

.patent-grid { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.patent-card { border-bottom: 1px solid var(--line); border-top: 3px solid var(--teal); display: flex; flex-direction: column; min-height: 24rem; padding: clamp(1.4rem, 3vw, 2.25rem) 0; }
.patent-card h2, .patent-card h3 { font-size: clamp(1.55rem, 3vw, 2.45rem); letter-spacing: -0.045em; line-height: 1.08; margin: 1rem 0 0; max-width: 18ch; }
.patent-card > p:not(.patent-number, .patent-status) { color: var(--muted); margin: 1rem 0 0; max-width: 38rem; }
.patent-number { color: var(--teal); font-family: var(--body); font-size: 0.82rem; letter-spacing: 0.035em; margin: 0; overflow-wrap: anywhere; }
.patent-status { border-left: 3px solid var(--gold); color: var(--gold); font-size: 0.68rem; font-weight: 820; letter-spacing: 0.11em; margin: 1.2rem 0 0; padding-left: 0.7rem; text-transform: uppercase; }
.patent-meta { border-top: 1px solid var(--line); display: grid; gap: 0.9rem 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1.5rem 0 0; padding: 1.2rem 0 0; }
.patent-meta > div { min-width: 0; }
.patent-meta dt, .patent-meta .meta-label { color: var(--muted); font-size: 0.63rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.patent-meta dd, .patent-meta .meta-value { font-size: 0.84rem; margin: 0.25rem 0 0; overflow-wrap: anywhere; }
.patent-meta li { color: var(--muted); font-size: 0.82rem; }
.patent-links { align-items: center; display: flex; flex-wrap: wrap; gap: 0.7rem 1.25rem; margin-top: auto; padding-top: 1.8rem; }
.patent-links a { color: var(--teal); font-size: 0.7rem; font-weight: 820; letter-spacing: 0.08em; min-height: 2.75rem; padding-block: 0.75rem 0.45rem; text-decoration-thickness: 1px; text-underline-offset: 0.25em; text-transform: uppercase; }
.patent-links a:hover { color: var(--gold); }

.media-section { border-top: 1px solid var(--line); padding-block: clamp(4.5rem, 9vw, 8rem); }
.media-grid { align-items: start; display: grid; gap: clamp(0.8rem, 1.8vw, 1.35rem); grid-auto-flow: dense; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.media-card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; grid-column: span 4; min-width: 0; }
.media-card.wide { grid-column: span 8; }
.media-card.tall { grid-column: span 4; }
.media-card.solo { grid-column: 1 / -1; justify-self: center; width: min(100%, 30rem); }
.media-card > a { display: block; }
.media-card img { aspect-ratio: auto; height: auto; object-fit: contain; object-position: var(--media-position, center); width: 100%; }
.media-card.wide img { aspect-ratio: auto; }
.media-card.tall img { aspect-ratio: auto; }
.media-card.solo > a { background: var(--paper-strong); display: grid; height: min(62vh, 36rem); place-items: center; }
.media-card.solo img { aspect-ratio: auto; height: 100%; object-fit: contain; width: 100%; }
.media-card figcaption { align-items: start; display: grid; gap: 0.75rem; grid-template-columns: minmax(0, 1fr) auto; min-height: 5.6rem; padding: 1rem 1.1rem 1.1rem; }
.media-card figcaption small { color: color-mix(in srgb, var(--muted) 80%, transparent); grid-column: 1; }
.media-card .image-action { align-items: center; color: var(--teal); display: inline-flex; font-size: 0.65rem; font-weight: 820; grid-column: 2; grid-row: 1 / span 2; letter-spacing: 0.08em; min-height: 2.75rem; padding-inline: 0.25rem; text-decoration-thickness: 1px; text-underline-offset: 0.25em; text-transform: uppercase; white-space: nowrap; }
.media-card .image-action:hover { color: var(--gold); }

.feature-callout { align-items: stretch; border-bottom: 1px solid var(--ink); border-top: 1px solid var(--ink); display: grid; grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1fr); margin-block: clamp(3rem, 7vw, 6rem); }
.feature-callout > figure, .feature-callout > img { min-width: 0; }
.feature-callout > figure { border-right: 1px solid var(--line); }
.feature-callout > figure img, .feature-callout > img { aspect-ratio: 4 / 3; height: 100%; object-fit: contain; object-position: var(--feature-position, center); width: 100%; }
.feature-callout > figure figcaption { padding: 0.75rem 1rem 1rem; }
.feature-callout > div { align-content: center; display: grid; padding: clamp(1.8rem, 5vw, 4.5rem); }
.feature-callout .eyebrow { color: var(--gold); margin: 0 0 0.85rem; }
.feature-callout h2, .feature-callout h3 { font-family: var(--display); font-size: clamp(2.15rem, 4.7vw, 4.4rem); font-weight: 780; letter-spacing: -0.06em; line-height: 0.96; margin: 0; max-width: 13ch; text-transform: uppercase; }
.feature-callout p { color: var(--muted); margin: 1.1rem 0 0; max-width: 40rem; }
.feature-callout a:not(.button) { color: var(--teal); display: inline-block; font-size: 0.72rem; font-weight: 820; letter-spacing: 0.08em; margin-top: 1.25rem; min-height: 2.75rem; padding-block: 0.7rem 0.4rem; text-underline-offset: 0.25em; text-transform: uppercase; }
.feature-callout a:hover { color: var(--gold); }

.breadcrumbs { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.55rem; padding-top: 2rem; text-transform: none; }
.breadcrumbs a { color: var(--teal); text-underline-offset: 0.2em; }
.topic-hero { align-items: center; display: grid; gap: clamp(3rem, 7vw, 7rem); grid-template-columns: minmax(0, 1.02fr) minmax(20rem, 0.72fr); min-height: 72vh; padding-block: clamp(3.5rem, 8vw, 7rem); }
.topic-copy .eyebrow { color: var(--gold); margin: 0 0 1.3rem; }
.topic-copy h1 { font-family: var(--display); font-size: clamp(2rem, 6vw, 4.5rem); font-weight: 780; letter-spacing: -0.068em; line-height: 0.91; margin: 0; max-width: none; text-transform: uppercase; }
.topic-copy > p:not(.eyebrow) { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.24rem); margin: 1.6rem 0 0; max-width: 41rem; }
.topic-figure { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 0.7rem; }
.topic-figure img { height: auto; width: 100%; }
.topic-figure img[src*="laws-of-robotics"] { object-position: center 22%; }
.fact-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 1.8rem 0 0; padding: 0; }
.fact-list li { border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.7rem; font-weight: 730; padding: 0.4rem 0.68rem; }

@supports (font-size: 1cqi) {
  .topic-copy h1 { font-size: clamp(2rem, 11cqi, 5.5rem); }
}

.article-layout { align-items: start; border-top: 1px solid var(--ink); display: grid; gap: clamp(3rem, 7vw, 7rem); grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.28fr); padding-bottom: clamp(4rem, 8vw, 7rem); }
.content-section { border-bottom: 1px solid var(--line); display: grid; gap: 1.5rem; grid-template-columns: 3.2rem 1fr; padding-block: clamp(2.4rem, 5vw, 4.2rem); }
.section-number { color: var(--gold); font-family: var(--body); letter-spacing: 0; margin: 0.32rem 0 0; }
.content-section h2 { font-size: clamp(1.8rem, 3.4vw, 3.1rem); letter-spacing: -0.05em; line-height: 1.05; margin: 0; max-width: 17ch; }
.content-section p { color: var(--muted); font-size: 1rem; margin: 1.15rem 0 0; max-width: 48rem; }
.article-aside { border-top: 3px solid var(--gold); display: grid; gap: 0; margin-top: 3rem; position: sticky; top: 6.5rem; }
.article-aside .aside-label { margin: 0; padding: 1rem 0; }
.article-aside a, .article-aside button { background: transparent; border: 0; border-top: 1px solid var(--line); color: var(--muted); cursor: pointer; font-size: 0.82rem; padding: 0.85rem 0; text-align: left; text-decoration: none; }
.article-aside a:hover, .article-aside button:hover { color: var(--teal); }
.article-aside .external-action { color: var(--teal); font-weight: 760; margin-top: 0.5rem; }
.timeline { border-top: 1px solid var(--line); }
.role-card { border-bottom: 1px solid var(--line); display: grid; gap: clamp(1.2rem, 4vw, 3.5rem); grid-template-columns: minmax(7rem, 0.24fr) 1fr auto; padding-block: clamp(2rem, 4vw, 3rem); }
.role-date { color: var(--muted); font-family: var(--body); font-size: 0.82rem; margin: 0; }
.role-company { color: var(--teal); font-size: 0.71rem; font-weight: 820; letter-spacing: 0.09em; margin: 0 0 0.45rem; text-transform: uppercase; }
.role-company a { text-underline-offset: 0.2em; }
.role-card h2 { font-size: clamp(1.5rem, 2.7vw, 2.25rem); letter-spacing: -0.045em; line-height: 1.1; margin: 0; }
.role-card div > p:not(.role-company) { color: var(--muted); margin: 0.9rem 0 0; max-width: 48rem; }
.role-number { color: color-mix(in srgb, var(--muted) 25%, transparent); font-family: var(--body); font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; }

.interest-grid { align-items: start; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.interest-card { border: 1px solid var(--line); margin: -1px 0 0 -1px; min-height: 15rem; padding: 1.7rem; }
.interest-card h3 { font-size: 1.25rem; letter-spacing: -0.035em; line-height: 1.15; margin: 0; }
.interest-card p { color: var(--muted); font-size: 0.87rem; }
.interest-card a { color: var(--teal); font-size: 0.72rem; font-weight: 780; text-underline-offset: 0.2em; text-transform: uppercase; }

.related { border-top: 1px solid var(--line); }
.related-grid { align-items: start; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.related-card { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; gap: 0.4rem; grid-template-columns: 1fr auto; margin-right: 1.5rem; padding: 1.3rem 0; text-decoration: none; }
.related-card span { color: var(--muted); font-size: 0.65rem; letter-spacing: 0.09em; text-transform: uppercase; }
.related-card strong { font-size: 1rem; grid-column: 1; }
.related-card i { color: var(--gold); font-style: normal; grid-column: 2; grid-row: 1 / 3; }
.related-card:hover strong { color: var(--teal); }

.contact-section { background: var(--ink); color: var(--paper); display: grid; gap: clamp(3rem, 8vw, 8rem); grid-template-columns: 1fr 0.85fr; padding: clamp(4rem, 8vw, 7rem) max(1.25rem, calc((100vw - var(--max-width)) / 2)); }
.contact-section .section-index { color: var(--accent-on-ink); }
.contact-section h2 { max-width: 10ch; }
.contact-actions { align-self: end; }
.contact-actions a { border-bottom: 1px solid color-mix(in srgb, var(--paper) 24%, transparent); display: grid; padding: 1.2rem 0; text-decoration: none; }
.contact-actions span { color: color-mix(in srgb, var(--paper) 60%, transparent); font-size: 0.66rem; letter-spacing: 0.11em; text-transform: uppercase; }
.contact-actions strong { font-size: clamp(0.92rem, 2vw, 1.15rem); font-weight: 620; overflow-wrap: anywhere; }
.contact-actions a:hover strong { color: var(--accent-on-ink); }

.site-footer { align-items: center; background: var(--ink); border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); color: color-mix(in srgb, var(--paper) 65%, transparent); display: grid; font-size: 0.72rem; grid-template-columns: 1fr auto 1fr; padding: 1.4rem max(1.25rem, calc((100vw - var(--max-width)) / 2)); }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.65rem 1.1rem; }
.site-footer nav a, .site-footer > a { color: var(--paper); text-decoration: none; }
.site-footer > a { justify-self: end; }
.site-footer a:hover { color: var(--accent-on-ink); }
.noscript-note { background: var(--paper-strong); color: var(--ink); margin: 0; padding: 0.75rem 1rem; position: static; text-align: center; width: 100%; }
.eddie-note { border-block: 1px solid var(--line); padding-block: clamp(2rem, 5vw, 4rem); }
.eddie-note p { font-size: clamp(1.05rem, 2vw, 1.35rem); margin: 0; max-width: 45rem; }
.eddie-note p + p { color: var(--muted); margin-top: 0.75rem; }
.site-footer .eddie-link { color: var(--brand-blue); }
.not-found { margin: 15vh auto; max-width: 40rem; padding: 1.25rem; }
.not-found h1 { font-family: var(--display); font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -0.06em; line-height: 0.95; text-transform: uppercase; }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 560ms ease, transform 560ms ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
:focus-visible { box-shadow: 0 0 0 3px var(--ink); outline: 3px solid var(--paper); outline-offset: 3px; }

@media (max-width: 1080px) {
  html { scroll-padding-top: 8rem; }
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { grid-column: 1 / -1; overflow-x: auto; padding: 0.1rem 0 0.35rem; scrollbar-width: thin; }
  .site-nav a { flex: 0 0 auto; }
  .site-nav a[aria-current="page"]::after { bottom: -0.55rem; }
  .profile-hero, .topic-hero { align-items: start; grid-template-columns: 1fr; min-height: auto; }
  .profile-portrait { max-width: 30rem; }
  .topic-figure { max-width: 44rem; }
  .section-heading, .article-layout, .contact-section { grid-template-columns: 1fr; }
  .section-heading h2 { max-width: none; }
  .article-aside { border-bottom: 1px solid var(--line); margin-top: 0; position: static; }
  .topic-card-grid, .interest-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .credential-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credential-band .credential-copy, .credential-band > :first-child { border-bottom: 1px solid color-mix(in srgb, var(--paper) 22%, transparent); grid-column: 1 / -1; }
  .credential-band .credential-stat { border-left: 0; }
  .media-card { grid-column: span 6; }
  .media-card.wide { grid-column: span 12; }
  .media-card.tall { grid-column: span 6; }
  .media-card.solo { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .brand-name { display: none; }
  .profile-hero { padding-top: 3.5rem; }
  .profile-copy h1 { font-size: clamp(3.25rem, 14vw, 4rem); }
  .topic-copy h1 { font-size: clamp(2rem, 10vw, 3.3rem); letter-spacing: -0.045em; line-height: 0.96; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .intro-band { grid-template-columns: 1fr; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading h2, .contact-section h2 { font-size: clamp(2rem, 10vw, 2.75rem); max-width: none; }
  .topic-card-grid, .project-grid, .interest-grid, .related-grid { grid-template-columns: 1fr; }
  .credential-band { grid-template-columns: 1fr; }
  .credential-band > *, .credential-band .credential-copy, .credential-band > :first-child { border-bottom: 0; grid-column: auto; }
  .credential-band > * + * { border-left: 0; border-top: 1px solid color-mix(in srgb, var(--paper) 22%, transparent); }
  .credential-band .credential-stat { justify-items: start; place-content: initial; }
  .patent-grid { grid-template-columns: 1fr; }
  .patent-card { min-height: 0; }
  .patent-meta { grid-template-columns: 1fr; }
  .media-card, .media-card.wide, .media-card.tall, .media-card.solo { grid-column: 1 / -1; }
  .media-card.wide img { aspect-ratio: auto; }
  .media-card figcaption { grid-template-columns: 1fr; }
  .media-card .image-action { grid-column: 1; grid-row: auto; justify-self: start; }
  .feature-callout { grid-template-columns: 1fr; }
  .feature-callout > figure { border-bottom: 1px solid var(--line); border-right: 0; }
  .feature-callout > figure img, .feature-callout > img { height: auto; }
  .topic-card { min-height: 15rem; }
  .content-section { grid-template-columns: 1fr; }
  .role-card { grid-template-columns: 1fr auto; }
  .role-date { grid-column: 1 / -1; }
  .role-number { grid-column: 2; grid-row: 2; }
  .site-footer { align-items: start; gap: 0.65rem; grid-template-columns: 1fr; }
  .site-footer > a { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  :root, [data-theme="dark"] { --paper: #fff; --paper-strong: #fff; --surface: #fff; --ink: #15283f; --muted: #445a73; --line: #a9bdd5; --teal: #315f94; --gold: #007f8d; --brand-cyan: #00aeba; --brand-blue: #86a6cf; color-scheme: light; }
  body { background: #fff; font-size: 10pt; }
  body::before, .site-header, .scroll-progress, .breadcrumbs, .theme-toggle, .hero-actions, .article-aside, .related, .site-footer, .noscript-note { display: none !important; }
  .profile-hero, .topic-hero { display: block; min-height: 0; padding: 0 0 1rem; }
  .profile-copy h1, .topic-copy h1 { font-size: 30pt; max-width: none; }
  .profile-portrait, .topic-figure { box-shadow: none; float: right; margin: 0 0 1rem 1.5rem; max-width: 12rem; }
  .section-shell { max-width: none; padding-inline: 0; }
  .article-layout { border-top: 2px solid #111; display: block; padding: 0; }
  .content-section { break-inside: avoid; padding-block: 0.8rem; }
  .content-section h2 { font-size: 15pt; }
  .role-card { break-inside: avoid; padding-block: 0.65rem; }
  .role-card h2 { font-size: 13pt; }
  .role-number, .role-card .fact-list { display: none; }
  .credential-band { background: #fff; border-block: 2px solid #111; color: #111; grid-template-columns: 1fr auto auto; }
  .credential-band > * { padding: 0.75rem; }
  .credential-band > * + * { border-left: 1px solid #bbb; border-top: 0; }
  .credential-band .credential-copy, .credential-band > :first-child { border-bottom: 0; grid-column: auto; }
  .credential-band .credential-stat { border-left: 1px solid #bbb; }
  .credential-band p, .credential-band .credential-stat span { color: #444; }
  .credential-band .credential-stat strong { color: #315f94; font-size: 28pt; }
  .patent-grid { gap: 1rem; grid-template-columns: repeat(2, 1fr); }
  .patent-card { break-inside: avoid; min-height: 0; padding-block: 0.75rem; }
  .patent-card h2, .patent-card h3 { font-size: 14pt; }
  .media-section { padding-block: 1.2rem; }
  .media-grid { gap: 0.6rem; grid-template-columns: repeat(3, 1fr); }
  .media-card, .media-card.tall { break-inside: avoid; grid-column: span 1; }
  .media-card.wide { grid-column: span 2; }
  .media-card img, .media-card.tall img, .media-card.wide img { aspect-ratio: auto; max-height: 6.8in; object-fit: contain; }
  .media-card.solo { break-inside: avoid; grid-column: span 2; }
  .media-card.solo img { aspect-ratio: auto; max-height: 8in; object-fit: contain; }
  .media-card figcaption { min-height: 0; padding: 0.45rem; }
  .media-card .image-action { display: none; }
  .feature-callout { break-inside: avoid; grid-template-columns: 0.65fr 1fr; margin-block: 1rem; }
  .feature-callout > div { padding: 1rem; }
  .feature-callout h2, .feature-callout h3 { font-size: 18pt; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
