:root {
  --ink: #091a36;
  --ink-soft: #314a6a;
  --blue: #0a55da;
  --blue-dark: #073b9a;
  --sky: #58bff5;
  --paper: #f6f8fc;
  --paper-blue: #edf3ff;
  --white: #ffffff;
  --line: #dbe4f0;
  --line-strong: #b9c8dc;
  --navy: #071833;
  --navy-deep: #051126;
  --success: #147d55;
  --muted: #647894;
  --radius: 22px;
  --shadow: 0 22px 70px rgba(18, 44, 86, .1);
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.6; text-rendering: optimizeLegibility; }
body.nav-open { overflow: hidden; }
img { max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.narrow { max-width: 850px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 16px; padding: 10px 14px; color: var(--ink); background: var(--white); border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { top: 16px; }

h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
h1 { margin-bottom: 24px; font-size: clamp(47px, 7vw, 90px); line-height: .99; letter-spacing: -.065em; }
h2 { margin-bottom: 16px; font-size: clamp(32px, 4.5vw, 55px); line-height: 1.06; letter-spacing: -.048em; }
h3 { margin-bottom: 10px; font-size: 22px; line-height: 1.18; letter-spacing: -.027em; }
h4 { line-height: 1.25; }
.eyebrow { margin-bottom: 17px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.section { padding-block: 104px; }
.section-head { display: grid; grid-template-columns: 1fr minmax(300px, 480px); gap: 64px; align-items: end; margin-bottom: 42px; }
.section-head p:last-child { margin-bottom: 0; color: var(--ink-soft); }
.section-head .text-link { margin-top: 14px; }
.section-head.inverse p { color: #b9c9dd; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 0 20px; color: var(--ink); border: 1px solid transparent; border-radius: 11px; font-weight: 750; text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: var(--white); background: var(--blue); box-shadow: 0 12px 30px rgba(10,85,218,.2); }
.button.primary:hover { background: var(--blue-dark); box-shadow: 0 16px 38px rgba(10,85,218,.25); }
.button.secondary { border-color: var(--line-strong); background: rgba(255,255,255,.55); }
.button.secondary:hover { border-color: var(--blue); }
.button.light { color: var(--ink); background: var(--white); box-shadow: 0 12px 32px rgba(0,0,0,.14); }
.text-link, .card-link, .back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 750; text-decoration: none; }
.text-link:hover, .card-link:hover, .back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag { display: inline-flex; padding: 6px 10px; color: #294a72; background: #edf3fb; border: 1px solid #dce7f4; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.2; }

.site-header { position: sticky; z-index: 50; top: 0; background: rgba(246,248,252,.9); border-bottom: 1px solid rgba(205,217,233,.88); backdrop-filter: blur(16px); }
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(9,26,54,.07); }
.site-nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 820; letter-spacing: -.025em; text-decoration: none; }
.monogram { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; color: var(--white); background: var(--blue); border-radius: 11px; box-shadow: 0 8px 22px rgba(10,85,218,.24); font-size: 14px; }
.brand-name { line-height: 1.1; }
.brand-name small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.nav-menu { display: flex; align-items: center; gap: 24px; }
.nav-menu a { color: #29405f; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-menu a:hover, .nav-menu a:focus-visible { color: var(--blue); }
.nav-menu .nav-resume { padding-left: 20px; border-left: 1px solid var(--line-strong); }
.nav-menu .nav-contact { padding: 10px 14px; color: var(--white); background: var(--ink); border-radius: 9px; }
.nav-menu .nav-contact:hover { color: var(--white); background: var(--blue); }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.nav-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: var(--ink); border-radius: 5px; transition: transform .2s ease, opacity .2s ease; }

.hero { position: relative; overflow: hidden; padding: 94px 0 76px; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-blue) 100%); }
.hero::before { content: ""; position: absolute; top: -230px; right: -190px; width: 650px; height: 650px; border: 1px solid rgba(10,85,218,.12); border-radius: 50%; box-shadow: inset 0 0 0 82px rgba(10,85,218,.025), inset 0 0 0 164px rgba(10,85,218,.025), inset 0 0 0 246px rgba(10,85,218,.025); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 62px; align-items: center; }
.hero-copy h1 span { color: var(--blue); }
.hero-lede { max-width: 770px; margin-bottom: 0; color: var(--ink-soft); font-size: clamp(19px, 2.25vw, 24px); line-height: 1.48; }
.hero-links { display: flex; flex-wrap: wrap; gap: 20px; margin: 30px 0 0; padding: 0; list-style: none; }
.hero-links a { color: #48617f; font-size: 13px; font-weight: 700; text-decoration: none; }
.hero-links a:hover { color: var(--blue); }
.portrait-card { position: relative; padding: 15px; background: var(--white); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); transform: rotate(1.35deg); }
.portrait-card img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top; border-radius: 20px; filter: saturate(.9); }
.portrait-note { position: absolute; right: -18px; bottom: 28px; max-width: 220px; padding: 17px; color: var(--white); background: #092150; border-radius: 14px; box-shadow: 0 16px 40px rgba(9,33,80,.26); font-size: 12px; line-height: 1.45; }
.portrait-note strong { display: block; margin-bottom: 6px; color: #81d5ff; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.portrait-note span { display: block; }

.proof-wrap { position: relative; z-index: 3; margin-top: -30px; }
.proof-row { display: grid; grid-template-columns: repeat(4,1fr); background: var(--white); border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 16px 48px rgba(31,62,104,.09); }
.proof { min-height: 128px; display: flex; flex-direction: column; justify-content: center; padding: 24px 27px; }
.proof + .proof { border-left: 1px solid var(--line); }
.proof strong { display: block; font-size: clamp(20px,2.1vw,27px); line-height: 1.1; letter-spacing: -.04em; }
.proof span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.4; }

.work-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.work-card { min-height: 340px; display: flex; flex-direction: column; padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 42px rgba(25,49,89,.055); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.work-card:hover { transform: translateY(-3px); border-color: #97b9ee; box-shadow: 0 20px 54px rgba(25,49,89,.1); }
.work-card h3, .work-card h2 { font-size: clamp(24px,2.5vw,32px); }
.work-card h3 a, .work-card h2 a { text-decoration: none; }
.work-card p:not(.card-kicker) { color: var(--ink-soft); }
.card-kicker { margin-bottom: 13px; color: var(--blue); font-size: 11px; font-weight: 820; letter-spacing: .14em; text-transform: uppercase; }
.work-card .card-link { margin-top: auto; padding-top: 24px; }

.principles { color: #edf5ff; background: var(--navy); }
.principles .eyebrow { color: #7dd3fc; }
.principle { display: grid; grid-template-columns: 72px 1fr minmax(280px,.72fr); gap: 36px; align-items: start; padding: 34px 0; border-top: 1px solid rgba(255,255,255,.14); }
.principle:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.principle-number { color: #7dd3fc; font: 750 13px ui-monospace, SFMono-Regular, Consolas, monospace; }
.principle div p { margin-bottom: 7px; color: #80d5ff; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.principle h3 { margin-bottom: 0; font-size: clamp(24px,3vw,36px); }
.principle > p { margin: 0; color: #b8c8dd; }

.tools-section { background: #f0f4fa; }
.tool-grid { display: grid; grid-template-columns: repeat(2,1fr); border-top: 1px solid #cad6e5; }
.tool-card { display: grid; grid-template-columns: 48px 1fr 24px; gap: 18px; align-items: start; min-height: 165px; padding: 28px 0; color: var(--ink); border-bottom: 1px solid #cad6e5; text-decoration: none; }
.tool-card:nth-child(odd) { padding-right: 28px; }
.tool-card:nth-child(even) { padding-left: 28px; border-left: 1px solid #cad6e5; }
.tool-card:hover .tool-mark { color: var(--white); background: var(--blue); }
.tool-mark { width: 44px; height: 44px; display: grid; place-items: center; color: var(--blue); background: #e1ebfb; border: 1px solid #c4d7f3; border-radius: 11px; font: 800 13px ui-monospace, SFMono-Regular, Consolas, monospace; transition: .18s ease; }
.tool-copy { display: block; }
.tool-copy strong { display: block; margin-bottom: 5px; font-size: 18px; letter-spacing: -.02em; }
.tool-copy > span { display: block; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.tool-copy small { display: block; margin-top: 10px; color: var(--blue); font-size: 11px; font-weight: 750; }
.tool-arrow { color: var(--blue); font-size: 18px; }

.credentials { background: var(--white); }
.credential-heading, .skills-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin: 55px 0 22px; padding-top: 32px; border-top: 1px solid var(--line); }
.credential-heading h3, .skills-heading h3 { margin-bottom: 4px; font-size: 28px; }
.credential-heading p, .skills-heading p { margin-bottom: 0; color: var(--muted); }
.quiet-button { min-height: 40px; padding: 0 14px; color: var(--blue); background: var(--paper-blue); border: 1px solid #c9dafa; border-radius: 9px; font-size: 12px; font-weight: 800; cursor: pointer; }
.quiet-button:hover { background: #dfeafd; }
.cert-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.cert-card { min-height: 122px; display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 15px; }
.cert-card.cert-extra { display: none; }
.cert-grid.is-expanded .cert-extra { display: grid; }
.cert-image { width: 66px; height: 66px; display: grid; place-items: center; padding: 4px; background: var(--white); border-radius: 12px; }
.cert-image img { max-width: 58px; max-height: 58px; object-fit: contain; }
.cert-card h4 { margin: 0 0 6px; font-size: 14px; }
.cert-status { margin: 0; color: var(--success); font-size: 11px; font-weight: 750; }
.cert-status.retired { color: #7b6680; }
.cert-status.permanent { color: var(--blue); }
.skill-actions { display: flex; gap: 9px; align-items: center; }
.skill-search input { width: min(250px,34vw); min-height: 40px; padding: 0 13px 0 36px; color: var(--ink); background-color: var(--paper); background-image: radial-gradient(circle at 16px 17px, transparent 5px, #6c819d 6px, transparent 7px), linear-gradient(45deg, transparent 47%, #6c819d 48%, #6c819d 54%, transparent 55%); background-position: 0 0, 20px 23px; background-repeat: no-repeat; border: 1px solid var(--line-strong); border-radius: 9px; outline: none; }
.skill-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10,85,218,.1); }
.skill-groups { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.skill-group { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.skill-group[hidden] { display: none; }
.skill-group summary { display: grid; grid-template-columns: 1fr auto 18px; gap: 12px; align-items: center; min-height: 64px; padding: 0 18px; cursor: pointer; list-style: none; }
.skill-group summary::-webkit-details-marker { display: none; }
.skill-group summary span { font-weight: 800; }
.skill-group summary small { color: var(--muted); font-size: 11px; }
.skill-group summary i { position: relative; width: 16px; height: 16px; }
.skill-group summary i::before, .skill-group summary i::after { content: ""; position: absolute; top: 7px; left: 2px; width: 12px; height: 2px; background: var(--blue); }
.skill-group summary i::after { transform: rotate(90deg); transition: transform .18s ease; }
.skill-group[open] summary i::after { transform: rotate(0); }
.skill-group ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0 18px 18px; list-style: none; }
.skill-group li { padding: 6px 9px; color: #345171; background: var(--white); border: 1px solid var(--line); border-radius: 7px; font-size: 12px; }
.skill-group li[hidden] { display: none; }
.skill-group li a { color: var(--blue); text-decoration: none; }
.skill-empty { padding: 20px; color: var(--muted); background: var(--paper); border-radius: 12px; text-align: center; }

.experience-section { background: var(--paper); }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 10px; left: 228px; width: 1px; background: #c7d5e6; }
.timeline-item { position: relative; display: grid; grid-template-columns: 196px 1fr; gap: 64px; padding: 8px 0 46px; }
.timeline-item::before { content: ""; position: absolute; top: 12px; left: 223px; width: 11px; height: 11px; background: var(--blue); border: 4px solid var(--paper); border-radius: 50%; box-shadow: 0 0 0 1px var(--blue); }
.timeline-date { padding-top: 3px; color: var(--blue); font: 750 12px ui-monospace, SFMono-Regular, Consolas, monospace; text-align: right; }
.timeline-item h3 { margin-bottom: 3px; font-size: 25px; }
.timeline-company { margin-bottom: 10px; color: var(--blue); font-weight: 750; }
.timeline-item p:last-child { max-width: 740px; color: var(--ink-soft); }
.earlier-career { margin-top: 6px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.earlier-career > summary { display: grid; grid-template-columns: 1fr auto 22px; gap: 14px; align-items: center; min-height: 74px; padding: 0 24px; cursor: pointer; list-style: none; }
.earlier-career > summary::-webkit-details-marker { display: none; }
.earlier-career > summary span { font-size: 18px; font-weight: 820; }
.earlier-career > summary small { color: var(--muted); }
.earlier-career > summary i { position: relative; width: 18px; height: 18px; }
.earlier-career > summary i::before, .earlier-career > summary i::after { content: ""; position: absolute; left: 2px; top: 8px; width: 14px; height: 2px; background: var(--blue); }
.earlier-career > summary i::after { transform: rotate(90deg); }
.earlier-career[open] > summary i::after { transform: rotate(0); }
.earlier-career .timeline { margin: 12px 24px 0; }
.earlier-career .timeline::before { left: 204px; }
.earlier-career .timeline-item { grid-template-columns: 174px 1fr; gap: 62px; padding-bottom: 36px; }
.earlier-career .timeline-item::before { left: 199px; border-color: var(--white); }
.education-strip { display: grid; grid-template-columns: .72fr 1.28fr; gap: 62px; margin-top: 68px; padding: 38px; color: var(--white); background: var(--navy); border-radius: var(--radius); }
.education-strip .eyebrow { color: #7dd3fc; }
.education-list { display: grid; gap: 18px; }
.education-list article { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.14); }
.education-list article:last-child { padding-bottom: 0; border-bottom: 0; }
.education-list span { color: #a9c2dd; text-align: right; }
.education-list small { grid-column: 1/-1; color: #8299b3; }

.profile-section { color: var(--white); background: var(--blue); }
.profile-section .eyebrow { color: #b9e7ff; }
.profile-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.quote { margin: 34px 0 0; padding-top: 28px; color: #cbeaff; border-top: 1px solid rgba(255,255,255,.25); font-size: clamp(21px,2.4vw,30px); line-height: 1.35; letter-spacing: -.035em; }
.profile-copy p { color: #dfeeff; }
.profile-copy .lead { color: var(--white); font-size: 22px; line-height: 1.48; }
.recognition-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 28px; }
.recognition-grid div { padding: 17px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; }
.recognition-grid strong, .recognition-grid span { display: block; }
.recognition-grid strong { font-size: 13px; }
.recognition-grid span { margin-top: 4px; color: #c5dcfa; font-size: 11px; }
.profile-section .button.primary { color: var(--blue); background: var(--white); }
.profile-section .button.secondary { color: var(--white); background: transparent; border-color: rgba(255,255,255,.5); }

.contact-section { padding-block: 88px; color: var(--white); background: var(--navy); }
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; align-items: end; }
.contact-section .eyebrow { color: #7dd3fc; }
.contact-section h2 { margin-bottom: 0; }
.contact-section p { color: #bdd0e6; }
.site-footer { padding: 60px 0 28px; color: #dce8f6; background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,.1); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 60px; align-items: start; }
.footer-brand { color: var(--white); font-size: 19px; font-weight: 820; text-decoration: none; }
.footer-grid p { margin-top: 8px; color: #879db7; font-size: 13px; }
.footer-callout span, .footer-callout a { display: block; }
.footer-callout span { color: #879db7; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.footer-callout a { margin-top: 8px; color: #7dd3fc; font-weight: 750; text-decoration: none; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: #b5c7dc; font-size: 13px; font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: #7dd3fc; }
.footer-meta { display: flex; justify-content: space-between; gap: 24px; margin-top: 42px; padding-top: 20px; color: #657d99; border-top: 1px solid rgba(255,255,255,.08); font-size: 11px; }

/* Interior pages */
.page-hero, .case-hero { position: relative; overflow: hidden; padding: 92px 0 72px; background: linear-gradient(180deg,var(--paper) 0%,var(--paper-blue) 100%); }
.page-hero::after, .case-hero::after { content: ""; position: absolute; right: -190px; bottom: -280px; width: 520px; height: 520px; border: 1px solid rgba(10,85,218,.12); border-radius: 50%; box-shadow: inset 0 0 0 70px rgba(10,85,218,.025), inset 0 0 0 140px rgba(10,85,218,.025); }
.page-hero .narrow, .case-hero .narrow { position: relative; z-index: 1; }
.page-hero h1, .case-hero h1 { font-size: clamp(48px,6.6vw,80px); }
.page-lede { max-width: 760px; margin-bottom: 0; color: var(--ink-soft); font-size: clamp(19px,2.3vw,24px); line-height: 1.5; }
.page-intro { max-width: 720px; margin-top: 24px; color: var(--ink-soft); }
.page-intro p:last-child { margin-bottom: 0; }
.back-link { margin-bottom: 28px; font-size: 13px; }
.case-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin-top: -22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.case-summary > div { padding: 30px; }
.case-summary > div + div { border-left: 1px solid var(--line); }
.case-summary span { color: var(--blue); font: 750 12px ui-monospace, SFMono-Regular, Consolas, monospace; }
.case-summary h2 { margin: 8px 0 12px; font-size: 23px; }
.case-summary p { margin-bottom: 0; color: var(--ink-soft); font-size: 14px; }
.prose { padding-block: 78px 110px; color: #263f60; font-size: 18px; line-height: 1.75; }
.prose h2 { margin: 58px 0 17px; color: var(--ink); font-size: 35px; }
.prose h3 { margin-top: 38px; color: var(--ink); }
.prose a { color: var(--blue); text-underline-offset: 3px; }
.prose img { height: auto; margin-block: 24px; border-radius: 14px; box-shadow: var(--shadow); }
.prose blockquote { margin: 30px 0; padding: 18px 24px; color: var(--ink); background: var(--paper-blue); border-left: 4px solid var(--blue); }
.prose code { padding: 2px 5px; color: #7a2447; background: #f4eaf0; border-radius: 4px; font-size: .9em; }
.prose pre { overflow-x: auto; padding: 20px; color: #eaf2fd; background: var(--navy); border-radius: 12px; }
.prose pre code { padding: 0; color: inherit; background: transparent; }
.prose li { margin: 6px 0; }
.next-step { margin-bottom: 100px; padding: 42px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.next-step h2 { max-width: 650px; font-size: clamp(30px,4vw,45px); }
.list-grid { margin-top: -48px; position: relative; z-index: 2; }
.archive-callout { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; margin-top: 60px; padding: 38px; color: var(--white); background: var(--navy); border-radius: var(--radius); }
.archive-callout .eyebrow { color: #7dd3fc; }
.archive-callout p { color: #bbcade; }
.archive-callout .button { margin-top: 12px; color: var(--white); background: transparent; border-color: rgba(255,255,255,.45); }
.article-list { border-top: 1px solid var(--line-strong); }
.article-list article { display: grid; grid-template-columns: 1fr 48px; gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line-strong); }
.article-list h2 { margin-bottom: 7px; font-size: clamp(25px,3vw,34px); }
.article-list h2 a { text-decoration: none; }
.article-list p:not(.card-kicker) { margin-bottom: 0; color: var(--ink-soft); }
.circle-link { width: 44px; height: 44px; display: grid; place-items: center; color: var(--blue); background: var(--white); border: 1px solid var(--line-strong); border-radius: 50%; font-weight: 800; text-decoration: none; }
.circle-link:hover { color: var(--white); background: var(--blue); border-color: var(--blue); }
.tag-index { display: flex; flex-wrap: wrap; gap: 9px; }
.tag-index a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.tag-index a:hover { border-color: var(--blue); }
.tag-index small { min-width: 22px; height: 22px; display: grid; place-items: center; color: var(--blue); background: var(--paper-blue); border-radius: 50%; }
.not-found { min-height: 67vh; display: flex; flex-direction: column; justify-content: center; padding-block: 80px; }

@media (max-width: 1040px) {
  .nav-menu { gap: 17px; }
  .nav-menu a { font-size: 12px; }
  .nav-menu a:nth-child(3), .nav-menu a:nth-child(5) { display: none; }
  .hero-grid { gap: 40px; }
  .cert-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; cursor: pointer; }
  .nav-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-menu { position: fixed; inset: 79px 0 auto; display: none; padding: 18px 20px 28px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(9,26,54,.12); }
  .nav-menu.is-open { display: grid; }
  .nav-menu a, .nav-menu a:nth-child(3), .nav-menu a:nth-child(5) { display: block; padding: 11px 0; font-size: 15px; }
  .nav-menu .nav-resume { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .nav-menu .nav-contact { padding: 12px 14px; text-align: center; }
  .hero-grid, .section-head, .profile-grid, .contact-grid, .education-strip, .archive-callout { grid-template-columns: 1fr; }
  .hero-grid { gap: 54px; }
  .portrait-card { width: min(430px,88%); margin-inline: auto; }
  .proof-row { grid-template-columns: repeat(2,1fr); }
  .proof:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .proof:nth-child(4) { border-top: 1px solid var(--line); }
  .principle { grid-template-columns: 48px 1fr; }
  .principle > p { grid-column: 2; }
  .timeline::before { left: 14px; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; padding-left: 42px; }
  .timeline-item::before { left: 9px; }
  .timeline-date { text-align: left; }
  .earlier-career .timeline::before { left: 14px; }
  .earlier-career .timeline-item { grid-template-columns: 1fr; gap: 6px; padding-left: 42px; }
  .earlier-career .timeline-item::before { left: 9px; }
  .education-strip, .contact-grid { gap: 32px; }
  .case-summary { grid-template-columns: 1fr; }
  .case-summary > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-column: 1/-1; grid-template-columns: repeat(4,auto); justify-content: start; }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 28px),var(--shell)); }
  .brand-name small { display: none; }
  h1 { font-size: clamp(43px,14vw,62px); }
  .section { padding-block: 76px; }
  .section-head { gap: 18px; }
  .hero { padding: 68px 0 62px; }
  .hero-links { display: grid; gap: 9px; }
  .portrait-note { right: -7px; }
  .proof-row, .work-grid, .tool-grid, .cert-grid, .skill-groups, .recognition-grid { grid-template-columns: 1fr; }
  .proof + .proof { border-top: 1px solid var(--line); border-left: 0; }
  .proof { min-height: 104px; }
  .work-card { min-height: 0; }
  .principle { grid-template-columns: 35px 1fr; gap: 16px; }
  .tool-card:nth-child(n) { padding-inline: 0; border-left: 0; }
  .credential-heading, .skills-heading { display: block; }
  .credential-heading .quiet-button { margin-top: 14px; }
  .skill-actions { margin-top: 15px; }
  .skill-search { flex: 1; }
  .skill-search input { width: 100%; }
  .skill-group summary { grid-template-columns: 1fr 18px; }
  .skill-group summary small { display: none; }
  .earlier-career > summary { grid-template-columns: 1fr 20px; }
  .earlier-career > summary small { display: none; }
  .education-strip { padding: 26px; }
  .education-list article { grid-template-columns: 1fr; }
  .education-list span { text-align: left; }
  .education-list small { grid-column: auto; }
  .page-hero, .case-hero { padding: 68px 0 58px; }
  .case-summary { width: min(calc(100% - 28px),var(--shell)); }
  .prose { padding-block: 56px 80px; font-size: 16px; }
  .next-step { padding: 28px; }
  .archive-callout { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-links { grid-column: auto; grid-template-columns: repeat(2,auto); }
  .footer-meta { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
