@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/roboto-variable.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --canvas: #141b2a;
  --panel: #182233;
  --panel-deep: #111927;
  --text: #f2f5fb;
  --muted: #b1bbcc;
  --quiet: #909db4;
  --line: #586F7C40;
  --accent: #586F7C;
  --accent-text: #b9cbd6;
  --accent-hover: #495e6b;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; scrollbar-gutter: stable; }
body { margin: 0; background: var(--canvas); color: var(--text); font: 16px/1.75 "Roboto", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { color: #ffffff; background: var(--accent); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { border: 0; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, summary, a { touch-action: manipulation; }
button:disabled { cursor: progress; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 5px; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.25; letter-spacing: -.03em; }
img { display: block; max-width: 100%; height: auto; }
code { font-family: var(--mono); font-variant-ligatures: none; }
.icon { display: inline-block; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; flex-shrink: 0; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.container { width: min(1056px, calc(100% - 96px)); margin-inline: auto; }
.page-frame { width: min(1184px, calc(100% - 64px)); margin-inline: auto; border-inline: 1px solid var(--line); }
.section-pad { padding-inline: 64px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; transform: translateY(-180%); padding: 11px 19px; border-radius: 999px; background: var(--accent); color: #ffffff; font-size: 14px; }
.skip-link:focus { transform: translateY(0); }
.eyebrow { font-size: 10px; font-weight: 500; letter-spacing: .14em; color: var(--accent-text); }
.bsonlite-text { color: var(--accent-text); }
.text-link { display: inline-flex; align-items: center; gap: 9px; width: fit-content; font-size: 13px; font-weight: 500; }
.text-link:hover, .inline-links a:hover, .project-links a:hover { text-decoration: underline; text-underline-offset: 5px; color: var(--text); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 48px; padding: 11px 23px; border: 1px solid transparent; border-radius: 999px; font-size: 13px; font-weight: 500; transition: background .18s, border-color .18s, transform .18s; }
.button .icon { width: 16px; height: 16px; }
.button:hover { transform: translateY(-2px); color: #ffffff; border-color: var(--accent-hover); background: var(--accent-hover); }
.button-primary { background: var(--accent); color: #ffffff; border-color: var(--accent); }
.button-outline { color: #c6d5de; background: #586F7C0d; border-color: var(--accent); }
.button-bsonlite { background: var(--accent); color: #ffffff; border-color: var(--accent); }

/* Steel-blue accents on the existing navy canvas. */
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: #141b2af5; }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; font-size: 16px; font-weight: 500; letter-spacing: -.02em; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 33px; height: 33px; color: #f2f5fb; border: 1px solid #586F7C55; border-radius: 9px; background: #586F7C0b; font-size: 17px; font-weight: 600; letter-spacing: -.08em; }
.brand-mark > span { color: var(--accent); }
#site-nav { display: flex; align-items: center; gap: 27px; font-size: 12px; }
#site-nav > a { padding-block: 12px; color: #c5cddb; }
#site-nav > a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 5px; }
#site-nav > .nav-contact { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); padding: 8px 15px; color: #ffffff; }
#site-nav > .nav-contact:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
  text-decoration: none;
}
#site-nav > .nav-contact .icon { width: 14px; height: 14px; }
.menu-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0 8px 12px; background: transparent; font-size: 13px; }

/* The first section is exclusively the person: photo, name, role and introduction. */
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; padding-top: 53px; padding-bottom: 55px; text-align: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 50% 26%, #586F7C0c, transparent 56%), linear-gradient(#ffffff03 1px, transparent 1px), linear-gradient(90deg, #ffffff03 1px, transparent 1px); background-size: auto, 64px 64px, 64px 64px; mask-image: linear-gradient(#000, #000 45%, transparent); }
.profile-photo { width: 180px; height: 180px; flex-shrink: 0; border: 4px solid var(--canvas); outline: 1px solid #586F7C6b; border-radius: 50%; background: var(--panel); box-shadow: 0 0 0 10px #586F7C05, 0 15px 50px #090e1d55; overflow: hidden; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 25%; filter: grayscale(1); }
.hero-eyebrow { margin-top: 28px; font-size: 10px; }
h1 { margin-top: 9px; font-size: clamp(34px, 3.6vw, 46px); font-weight: 600; letter-spacing: -.04em; }
h1 > span { color: var(--accent); }
.hero-role { margin-top: 13px; font-size: 18px; color: #d1d9e8; line-height: 1.65; }
.hero-role a { font-weight: 500; }
.hero-role a:hover { text-decoration: underline; text-underline-offset: 5px; color: var(--text); }
.hero-intro { max-width: 660px; margin-top: 18px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 13px; margin-top: 27px; }
.profile-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 23px; margin-top: 18px; }
.profile-links a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; color: #bac5d8; font-size: 12px; }
.profile-links .icon { width: 16px; height: 16px; }
.profile-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 5px; }

/* Fine rules and round section markers carry the visual language through the page. */
.section { padding-top: 72px; padding-bottom: 72px; border-bottom: 1px solid var(--line); }
.section-heading { max-width: 700px; margin: 0 auto 39px; text-align: center; }
.section-number { display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 35px; border: 1px solid #586F7C38; border-radius: 50%; background: #586F7C0a; color: var(--accent-text); font-size: 11px; font-family: var(--mono); margin-bottom: 18px; }
.section-heading .eyebrow { margin-bottom: 11px; }
h2 { font-size: clamp(27px, 2.8vw, 34px); }
.section-heading > p:last-child { color: var(--muted); margin-top: 15px; font-size: 15px; line-height: 1.85; }

/* A chronological experience list, instead of a product presentation. */
.experience-list { position: relative; }
.experience-list::before { content: ""; position: absolute; top: 23px; bottom: 42px; left: 22px; width: 1px; background: linear-gradient(#586F7C55, #ffffff12); }
.experience-item { position: relative; display: grid; grid-template-columns: 45px minmax(0, 1fr); gap: 24px; }
.experience-item + .experience-item { margin-top: 27px; }
.timeline-mark { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; border: 1px solid #ffffff22; border-radius: 12px; background: #1e293d; color: #d0d9ea; font-size: 17px; font-weight: 500; }
.bsonlite-mark { color: var(--accent-text) !important; background: #586F7C0b !important; border-color: #586F7C30 !important; }
.timeline-mark.bsonlite-mark { background: #202d3a !important; }
.timeline-mark .icon { width: 22px; height: 22px; }
.experience-content { min-width: 0; padding: 8px 0 26px; border-bottom: 1px solid var(--line); }
.current-experience .experience-content { padding: 25px; border: 1px solid #586F7C22; border-radius: 14px; background: linear-gradient(125deg, #586F7C05, #ffffff02); }
.experience-heading { display: flex; align-items: start; justify-content: space-between; gap: 25px; }
.experience-heading h3 { font-size: 21px; line-height: 1.45; }
.experience-heading h3 > span { font-size: 14px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.company-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.current-badge { padding: 2px 7px; border: 1px solid #586F7C26; border-radius: 999px; color: #c6d5de; background: #586F7C08; font-size: 10px; line-height: 1.5; }
.role { color: #bdc7d8; margin-top: 6px; font-size: 14px; }
.date { font-size: 12px; color: #acb8cc; text-align: right; white-space: nowrap; line-height: 1.8; }
.date > span { display: block; margin-top: 3px; font-size: 10px; color: #9cabc2; }
.experience-intro { margin-top: 18px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.role-details { margin-top: 21px; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.role-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; color: #cdd6e6; }
.role-details > summary .icon, .project-details > summary .icon, .additional-projects > summary .icon { width: 15px; height: 15px; transition: transform .18s; }
details[open] > summary .icon { transform: rotate(180deg); }
.responsibility-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 27px; padding: 0; list-style: none; margin: 23px 0 0; }
.responsibility-grid > li { border-top: 1px solid var(--line); padding-top: 16px; }
.responsibility-grid strong { color: #e4eaf4; font-size: 14px; font-weight: 500; }
.responsibility-grid p { font-size: 14px; color: #adbacd; line-height: 1.9; margin-top: 8px; }
.plain-list { padding-left: 17px; margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.plain-list li + li { margin-top: 9px; }
.inline-links { display: flex; align-items: center; flex-wrap: wrap; gap: 13px 24px; padding-top: 21px; margin-top: 25px; border-top: 1px solid var(--line); color: var(--accent-text); font-size: 12px; }

/* All product screenshots belong in Projects. */
.projects-section { background: #121c2c55; }
.featured-project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 29px 34px; border: 1px solid #586F7C2b; border-radius: 16px; padding: 29px; background: linear-gradient(130deg, #586F7C05, transparent 70%), #162231; }
.featured-copy { min-width: 0; }
.project-label { display: inline-flex; align-items: center; gap: 8px; color: #a7b7cb; font-size: 10px; font-weight: 500; letter-spacing: .09em; }
.project-label .icon { width: 15px; height: 15px; color: var(--accent-text); }
.featured-copy h3 { margin-top: 17px; font-size: 31px; }
.featured-copy > p { margin-top: 17px; font-size: 15px; color: #c0ccdc; line-height: 1.9; }
.featured-copy > .secondary-copy { font-size: 13px; color: #a2b3c8; }
.tags { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 22px 0 0; padding: 0; list-style: none; }
.tags li { border: 1px solid #586F7C40; border-radius: 999px; background: #586F7C0d; color: #adbcd1; padding: 3px 8px; font-size: 11px; line-height: 1.6; }
.project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 25px; }
.project-actions .button { font-size: 12px; min-height: 43px; padding-inline: 18px; }
.project-actions .text-link { color: #bccdd6; font-size: 11px; }
.project-preview { min-width: 0; border: 1px solid #354456; border-radius: 10px; background: #121c29; overflow: hidden; box-shadow: 0 16px 40px #060c1830; }
.preview-bar { display: flex; align-items: center; gap: 13px; padding: 11px 13px; color: #b3c1d2; font-size: 10px; background: #1d2a3b; border-bottom: 1px solid #ffffff0d; }
.preview-bar > span:first-child { display: flex; gap: 4px; }
.preview-bar i { width: 4px; height: 4px; border-radius: 50%; background: #708398; }
.project-preview img { width: 100%; height: auto; }
.project-preview figcaption { color: #9eb0c5; font-size: 10px; padding: 10px 13px; border-top: 1px solid #ffffff0d; }
.engine-note { grid-column: 1 / -1; font-size: 11px; color: #a4b9c8; padding-top: 17px; border-top: 1px solid #586F7C19; line-height: 1.9; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.project-card { display: flex; flex-direction: column; min-width: 0; padding: 27px; border: 1px solid #ffffff13; border-radius: 14px; background: #182233; transition: border-color .2s; }
.project-card:hover { border-color: var(--accent); }
.card-heading { display: flex; align-items: center; gap: 13px; }
.project-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid #586F7C29; border-radius: 11px; background: #586F7C08; color: var(--accent-text); flex-shrink: 0; }
.project-icon .icon { width: 19px; height: 19px; }
.project-card h3 { font-size: 23px; margin-top: 20px; line-height: 1.35; }
.project-card > p, .project-wide > div > p { margin-top: 15px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.install-command { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-left: 13px; margin-top: 22px; border: 1px solid #586F7C25; border-radius: 8px; background: #111b29; }
.install-command code { color: #cbd9e1; font-size: 11px; overflow-wrap: anywhere; }
.copy-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; background: transparent; border-radius: 7px; color: #c7d2e3; }
.copy-button:hover { color: var(--text); border-color: var(--accent); background: #586F7C26; }
.copy-button .icon { width: 16px; height: 16px; }
.query-example { display: flex; flex-direction: column; gap: 9px; padding: 13px; margin-top: 22px; background: #111b29; border: 1px solid #586F7C1c; border-radius: 8px; }
.query-example > span { color: #9cb5bd; font-size: 10px; letter-spacing: .1em; }
.query-example code { color: #cbd9e1; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.project-details { padding-top: 16px; margin-top: 24px; border-top: 1px solid var(--line); }
.project-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #c2cfe0; font-size: 12px; }
.project-details > p { color: #a7b7cc; font-size: 14px; line-height: 1.9; margin-top: 15px; }
.project-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 23px; margin-top: auto; padding-top: 25px; color: var(--accent-text); font-size: 12px; }
#project-sdk .project-links, #project-console .project-links { color: var(--accent-text); }
.project-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 35px; }
.project-wide h3 { margin-top: 17px; }
.project-wide .project-links { margin-top: 0; padding: 0; flex-direction: column; align-items: start; gap: 13px; }
.additional-projects { margin-top: 27px; border-top: 1px solid var(--line); }
.additional-projects > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #bfccdd; font-size: 13px; padding-top: 23px; }
.additional-projects > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 25px; }
.additional-projects a { display: block; border: 1px solid var(--line); border-radius: 10px; background: #586F7C08; padding: 22px; }
.additional-projects strong { display: block; color: #dde5f3; font-size: 16px; font-weight: 500; }
.additional-projects strong small { color: var(--quiet); font-size: 10px; font-weight: 400; margin-left: 6px; }
.additional-projects a > span { display: block; color: var(--muted); font-size: 14px; margin-top: 10px; line-height: 1.85; }
.additional-projects a:hover {
  border-color: var(--accent);
}
.additional-projects a:hover strong { color: var(--text); text-decoration: underline; text-underline-offset: 5px; }

/* Readable skills, with the same restrained component styling. */
.toolkit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.toolkit-grid article { min-width: 0; padding: 29px; border: 1px solid #ffffff12; border-radius: 14px; background: linear-gradient(130deg, #586F7C03, transparent 65%), #182233; }
.toolkit-grid h3 { font-size: 21px; margin-top: 21px; }
.toolkit-grid p { color: #b5c0d3; font-size: 16px; line-height: 1.9; margin-top: 16px; }
.community-section { padding-top: 49px; padding-bottom: 49px; border-bottom: 1px solid #586F7C23; text-align: center; background: linear-gradient(120deg, #586F7C09, #586F7C05); }
.community-section h2 { font-size: 29px; margin-top: 13px; }
.community-section > p:not(.eyebrow) { max-width: 580px; margin: 17px auto 0; color: #bbc5d8; font-size: 15px; line-height: 1.9; }
.community-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 24px; margin-top: 25px; }
.community-actions > .text-link { color: #bccdd6; font-size: 12px; }

/* Personal background and writing remain after the professional work. */
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 59px; }
.about-grid > div > .eyebrow { margin-bottom: 16px; }
.about-grid h2 { font-size: 32px; }
.about-lead { font-size: 18px; color: #d2d9e8; line-height: 1.8; margin-top: 22px; }
.about-grid > div > p:not(.eyebrow):not(.about-lead) { font-size: 15px; color: var(--muted); line-height: 1.95; margin-top: 20px; }
.about-grid .text-link { margin-top: 23px; color: var(--accent-text); font-size: 13px; }
.education > .eyebrow { padding-top: 7px; }
.education article { display: flex; align-items: start; gap: 16px; border-top: 1px solid var(--line); padding: 20px 0; }
.education article > span { color: var(--accent-text); font-size: 10px; font-family: var(--mono); padding-top: 3px; }
.education h3 { font-size: 16px; line-height: 1.55; }
.education article p { color: #aab8ce; font-size: 12px; line-height: 1.8; margin-top: 5px; }
.education small { display: block; margin-top: 5px; color: #9faec5; font-size: 11px; }
.writing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; border-top: 1px solid var(--line); padding-top: 29px; margin-top: 38px; }
.writing > h3 { grid-column: 1 / -1; font-size: 18px; margin-bottom: 3px; }
.writing a { position: relative; display: block; padding: 23px 44px 23px 22px; border: 1px solid var(--line); border-radius: 11px; background: #586F7C08; }
.writing a > span:first-child { display: block; color: #a4b7c3; font-size: 9px; letter-spacing: .08em; }
.writing strong { display: block; margin-top: 12px; color: #dbe3f1; font-size: 15px; line-height: 1.7; font-weight: 500; }
.article-arrow { position: absolute; right: 20px; top: 22px; color: var(--accent-text); font-size: 17px; }
.writing a:hover { border-color: var(--accent); color: var(--text); }
.contact-section { text-align: center; background: radial-gradient(ellipse at 50% 100%, #586F7C08, transparent 65%); }
.contact-section > .eyebrow { margin-bottom: 13px; }
.contact-section > p:not(.eyebrow) { color: var(--muted); font-size: 15px; margin-top: 17px; }
.email-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 27px; }
.email-row > a { color: var(--accent-text); font-size: 23px; font-weight: 500; overflow-wrap: anywhere; }
.email-row > a:hover { text-decoration: underline; text-underline-offset: 5px; color: var(--text); }
.email-row .copy-button { border: 1px solid #586F7C80; border-radius: 50%; background: #586F7C12; color: #d0dce5; }

/* Footer links are ordinary links, with no extra services or widgets. */
.site-footer { padding-top: 39px; background: #111927; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 39px; padding-bottom: 36px; }
.footer-grid .wordmark { font-size: 14px; }
.footer-grid .brand-mark { width: 29px; height: 29px; font-size: 15px; }
.footer-grid > div > p { color: #a2afc4; font-size: 13px; margin-top: 20px; line-height: 1.9; }
.footer-grid nav { display: flex; align-items: start; flex-direction: column; gap: 12px; }
.footer-grid nav h3 { color: #dce4f3; font-size: 12px; font-weight: 500; letter-spacing: 0; margin-bottom: 7px; }
.footer-grid nav a { color: #a7b5cb; font-size: 12px; }
.footer-grid nav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 5px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-block: 21px; color: #96a6be; font-size: 11px; }
.copy-status { position: fixed; left: 50%; bottom: 20px; z-index: 20; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); background: #22304a; color: #eff3fc; border: 1px solid #586F7C55; border-radius: 12px; padding: 15px 47px 15px 18px; box-shadow: 0 12px 40px #080d1b80; font-size: 13px; }
.copy-status input { display: block; width: min(350px, 100%); margin-top: 12px; padding: 8px; background: #131d30; color: #eff3fc; border: 1px solid #72829f; border-radius: 5px; font-size: 12px; }
.copy-status button { position: absolute; top: 3px; right: 3px; width: 39px; height: 39px; background: transparent; color: #eff3fc; font-size: 22px; }

@media (max-width: 1050px) {
  .container { width: calc(100% - 80px); }
  .page-frame { width: calc(100% - 40px); }
  .section-pad { padding-inline: 38px; }
  #site-nav { gap: 21px; }
  .header-inner { gap: 25px; }
  .wordmark { font-size: 15px; }
  .hero { padding-top: 47px; padding-bottom: 49px; }
  .featured-project { gap: 24px; padding: 26px; }
  .featured-copy h3 { font-size: 29px; }
  .featured-copy > p { font-size: 14px; }
  .project-label { font-size: 10px; }
  .project-actions { gap: 17px; }
  .project-actions .button { font-size: 11px; padding-inline: 15px; }
  .project-actions .text-link { font-size: 10px; }
  .project-card { padding: 25px; }
  .project-card h3 { font-size: 22px; }
  .about-grid { gap: 39px; }
  .footer-grid { gap: 27px; }
  .footer-grid .wordmark { font-size: 12px; gap: 8px; }
}
@media (max-width: 820px) {
  .section-pad { padding-inline: 30px; }
  .hero-role { font-size: 17px; }
  .experience-item { gap: 19px; }
  .experience-heading { flex-wrap: wrap; gap: 10px; }
  .date { text-align: left; font-size: 11px; }
  .date > span { display: inline; margin-left: 8px; font-size: 10px; }
  .current-experience .experience-content { padding: 23px; }
  .responsibility-grid { gap: 21px; }
  .featured-project { grid-template-columns: 1fr; gap: 27px; padding: 27px; }
  .featured-copy > p { font-size: 15px; max-width: 640px; }
  .featured-copy > .secondary-copy { font-size: 14px; }
  .project-label { font-size: 10px; }
  .project-actions .button { font-size: 12px; padding-inline: 18px; }
  .project-actions .text-link { font-size: 12px; }
  .project-preview { max-width: 650px; }
  .project-preview figcaption { font-size: 10px; }
  .engine-note { font-size: 12px; }
  .project-grid { gap: 17px; }
  .project-card { padding: 23px; }
  .project-card h3 { font-size: 22px; }
  .project-card > p, .project-wide > div > p { font-size: 14px; }
  .install-command { padding-left: 10px; gap: 4px; }
  .install-command code { font-size: 10px; }
  .project-wide { grid-template-columns: 1fr; gap: 0; }
  .project-wide .project-links { flex-direction: row; padding-top: 25px; font-size: 12px; }
  .toolkit-grid { gap: 17px; }
  .toolkit-grid article { padding: 25px; }
  .toolkit-grid h3 { font-size: 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-grid > div:first-child { max-width: 620px; }
  .about-grid h2 { font-size: 31px; }
  .about-grid h2 br { display: none; }
  .education article { gap: 19px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
  .footer-grid .wordmark { font-size: 15px; }
  .footer-grid > div > p { margin: 0; font-size: 12px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 85px; }
  .container { width: calc(100% - 56px); }
  .header-inner { min-height: 68px; flex-wrap: wrap; gap: 0 20px; }
  .wordmark { font-size: 15px; }
  #site-nav { display: flex; width: 100%; flex-wrap: wrap; gap: 3px 24px; padding-block: 7px 18px; }
  #site-nav > a { font-size: 13px; padding-block: 8px; }
  #site-nav > .nav-contact { padding: 8px 13px; color: #ffffff; background: var(--accent); border: 1px solid var(--accent); }
  .js .menu-toggle { display: flex; margin-left: auto; }
  .js #site-nav { display: none; }
  .js #site-nav.is-open { display: flex; }
  .menu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 40px); }
  .page-frame { width: calc(100% - 24px); }
  .section-pad { padding-inline: 22px; }
  .hero { padding-top: 36px; padding-bottom: 41px; }
  .profile-photo { width: 153px; height: 153px; }
  .hero-eyebrow { margin-top: 23px; font-size: 9px; }
  h1 { font-size: clamp(31px, 7.5vw, 38px); margin-top: 10px; }
  .hero-role { font-size: 16px; margin-top: 12px; line-height: 1.8; }
  .hero-intro { font-size: 15px; margin-top: 17px; }
  .hero-actions { gap: 12px; margin-top: 24px; }
  .hero-actions .button { font-size: 12px; min-height: 45px; padding-inline: 18px; gap: 10px; }
  .profile-links { gap: 19px; margin-top: 15px; }
  .profile-links a { font-size: 12px; gap: 6px; }
  .profile-links .icon { width: 15px; height: 15px; }
  .section { padding-top: 49px; padding-bottom: 49px; }
  .section-heading { margin-bottom: 29px; }
  .section-number { width: 32px; height: 32px; font-size: 10px; margin-bottom: 15px; }
  h2 { font-size: 28px; line-height: 1.3; }
  .section-heading .eyebrow { font-size: 10px; }
  .section-heading > p:last-child { font-size: 14px; line-height: 1.9; }
  .experience-list::before { left: 16px; top: 18px; }
  .experience-item { grid-template-columns: 33px minmax(0, 1fr); gap: 13px; }
  .timeline-mark { width: 33px; height: 33px; font-size: 14px; border-radius: 9px; }
  .timeline-mark .icon { width: 17px; height: 17px; }
  .current-experience .experience-content { padding: 20px 18px; border-radius: 11px; }
  .experience-content { padding-top: 3px; padding-bottom: 23px; }
  .experience-heading { display: block; }
  .experience-heading h3 { font-size: 19px; }
  .experience-heading h3 > span { display: block; font-size: 11px; margin-top: 2px; }
  .company-line { gap: 8px; }
  .current-badge { font-size: 10px; }
  .role { font-size: 12px; margin-top: 6px; }
  .date { margin-top: 12px; font-size: 11px; }
  .date > span { display: block; margin-left: 0; margin-top: 3px; font-size: 9px; }
  .experience-intro { font-size: 14px; line-height: 1.9; margin-top: 15px; }
  .role-details > summary { font-size: 11px; gap: 10px; }
  .role-details > summary .icon { width: 13px; height: 13px; }
  .responsibility-grid { grid-template-columns: 1fr; gap: 19px; margin-top: 20px; }
  .responsibility-grid strong { font-size: 14px; }
  .responsibility-grid p { font-size: 14px; }
  .plain-list { font-size: 14px; }
  .inline-links { font-size: 10px; gap: 10px 18px; }
  .featured-project { padding: 24px 20px; border-radius: 13px; gap: 25px; }
  .featured-copy h3 { font-size: 29px; margin-top: 16px; }
  .featured-copy > p { font-size: 15px; }
  .featured-copy > .secondary-copy { font-size: 14px; }
  .project-label { font-size: 10px; line-height: 1.8; }
  .project-actions { gap: 19px; }
  .project-actions .button { font-size: 11px; padding-inline: 16px; gap: 10px; }
  .project-actions .text-link { font-size: 11px; }
  .project-preview { border-radius: 8px; }
  .preview-bar { font-size: 9px; padding: 10px 11px; }
  .project-preview figcaption { font-size: 10px; padding: 9px 11px; line-height: 1.8; }
  .engine-note { font-size: 11px; line-height: 1.9; }
  .project-grid { grid-template-columns: 1fr; gap: 17px; margin-top: 18px; }
  .project-card { padding: 25px 22px; border-radius: 12px; }
  .project-card h3 { font-size: 23px; }
  .project-card > p, .project-wide > div > p { font-size: 15px; }
  .card-heading { gap: 11px; }
  .project-icon { width: 36px; height: 36px; }
  .install-command { padding-left: 11px; margin-top: 20px; }
  .install-command code { font-size: 11px; }
  .project-details > summary { font-size: 12px; }
  .project-details > p { font-size: 14px; }
  .project-links { font-size: 12px; gap: 13px 22px; }
  .project-wide { grid-column: auto; gap: 0; }
  .additional-projects > summary { font-size: 12px; }
  .additional-projects > div { grid-template-columns: 1fr; gap: 15px; }
  .additional-projects a { padding: 20px; }
  .additional-projects strong { font-size: 16px; }
  .additional-projects a > span { font-size: 14px; }
  .toolkit-grid { grid-template-columns: 1fr; gap: 17px; }
  .toolkit-grid article { padding: 26px 23px; }
  .toolkit-grid h3 { font-size: 21px; }
  .toolkit-grid p { font-size: 15px; line-height: 1.95; }
  .community-section { padding-top: 39px; padding-bottom: 39px; }
  .community-section .eyebrow { font-size: 10px; }
  .community-section h2 { font-size: 27px; line-height: 1.35; }
  .community-section > p:not(.eyebrow) { font-size: 15px; }
  .community-actions { gap: 20px; }
  .community-actions .button { font-size: 12px; padding-inline: 20px; min-height: 45px; }
  .community-actions > .text-link { font-size: 11px; }
  .about-grid { gap: 31px; }
  .about-grid h2 { font-size: 29px; }
  .about-lead { font-size: 17px; margin-top: 19px; }
  .about-grid > div > p:not(.eyebrow):not(.about-lead) { font-size: 15px; }
  .education h3 { font-size: 15px; }
  .education article p { font-size: 12px; }
  .writing { grid-template-columns: 1fr; gap: 16px; padding-top: 25px; margin-top: 27px; }
  .writing > h3 { font-size: 18px; margin-bottom: 4px; }
  .writing a { padding: 22px 40px 22px 20px; }
  .writing strong { font-size: 14px; }
  .contact-section h2 { font-size: 29px; }
  .contact-section > p:not(.eyebrow) { font-size: 15px; line-height: 1.9; }
  .email-row { gap: 10px; margin-top: 23px; }
  .email-row > a { font-size: 18px; }
  .site-footer { padding-top: 30px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 23px; padding-bottom: 30px; }
  .footer-grid > div:first-child { display: block; padding-bottom: 24px; }
  .footer-grid > div > p { margin-top: 16px; font-size: 12px; }
  .footer-grid nav { gap: 13px; }
  .footer-grid nav a, .footer-grid nav h3 { font-size: 12px; }
  .footer-bottom { font-size: 10px; gap: 12px; }
}
@media (max-width: 380px) {
  .section-pad { padding-inline: 18px; }
  .hero { padding-inline: 21px; }
  .profile-photo { width: 145px; height: 145px; }
  h1 { font-size: 31px; }
  .hero-role { font-size: 15px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .button { width: 100%; max-width: 230px; }
  .profile-links { gap: 15px; }
  .profile-links a { font-size: 12px; }
  .experience-item { grid-template-columns: 1fr; padding-left: 0; gap: 13px; }
  .experience-list::before { display: none; }
  .timeline-mark { margin-left: 0; }
  .current-experience .experience-content { padding: 21px 18px; }
  .experience-heading h3 { font-size: 19px; }
  .featured-project { padding-inline: 18px; }
  .project-card { padding-inline: 20px; }
  .project-actions { gap: 16px; }
  .project-actions .button { padding-inline: 14px; }
  .project-actions .text-link { font-size: 10px; }
  .install-command code { font-size: 10px; }
  .email-row { gap: 8px; }
  .email-row > a { font-size: 16px; }
  .email-row .copy-button { width: 38px; min-width: 38px; height: 38px; color: #d0dce5; background: #586F7C12; border: 1px solid #586F7C80; }
  .footer-grid .wordmark { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  body { background: #fff; color: #111; font-size: 11px; }
  .site-header, .site-footer, .copy-status, .copy-button, .hero-actions, .profile-links { display: none !important; }
  .page-frame { width: 100%; border: 0; }
  .section-pad { padding-inline: 0; }
  .hero, .section, .community-section { padding-block: 20px; background: transparent; }
  .profile-photo { width: 100px; height: 100px; }
  .hero::before { display: none; }
  h1, h2, h3, p, a, strong, li, small, code, .project-label, .eyebrow { color: #111 !important; }
  .featured-project, .project-card, .experience-content, .toolkit-grid article { background: #fff; border-color: #ccc; break-inside: avoid; }
  .project-grid { gap: 14px; }
}
.writing a:hover strong, .writing a:hover > span { color: var(--text); }
.additional-projects a:hover strong small { color: var(--text); }
.email-row .copy-button:hover { color: #ffffff; border-color: var(--accent); background: var(--accent-hover); }
a.bsonlite-text:hover { color: var(--text); text-decoration: underline; text-underline-offset: 5px; }
