:root {
  color-scheme: dark;
  --bg: #070a0f;
  --bg-2: #0a0f16;
  --panel: #0e151f;
  --panel-2: #111a26;
  --line: rgba(171, 190, 218, .14);
  --line-strong: rgba(171, 190, 218, .24);
  --text: #f4f7fb;
  --muted: #9ba8b9;
  --blue: #4d9fff;
  --purple: #a870ff;
  --green: #65d6a3;
  --max: 1240px;
  --radius: 20px;
  --shadow: 0 28px 80px rgba(0, 0, 0, .32);
  --mouse-x: 50%;
  --mouse-y: 30%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; min-width: 320px; color: var(--text); background: var(--bg); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(58, 117, 207, .055), transparent 28rem); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, blockquote { text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 100; padding: .75rem 1rem; border-radius: 8px; color: #05070a; background: white; }
.skip-link:focus { top: 1rem; }

.section-shell { width: min(calc(100% - 36px), var(--max)); margin-inline: auto; }
.section-block { padding-block: clamp(88px, 11vw, 150px); }
.eyebrow { margin: 0 0 14px; color: var(--purple); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.section-heading { max-width: 790px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-heading h2, .leadership-statement blockquote, .about-copy h2, .contact-copy h2, .build-section h2 { margin: 0; font-size: clamp(2.3rem, 5vw, 4.8rem); line-height: 1.02; letter-spacing: -.055em; }
.section-heading > p:last-child, .about-copy > p, .contact-copy > p, .build-section p { max-width: 680px; margin: 20px 0 0; color: var(--muted); font-size: 1rem; }

.site-header { position: sticky; top: 12px; z-index: 50; width: min(calc(100% - 24px), var(--max)); min-height: 68px; margin: 12px auto 0; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 16px; background: rgba(7, 10, 15, .8); box-shadow: 0 16px 50px rgba(0,0,0,.24); backdrop-filter: blur(22px); }
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark { font-size: 29px; font-weight: 400; line-height: 1; letter-spacing: -.09em; }
.brand-mark span { color: var(--purple); }
.brand-copy { display: grid; line-height: 1.25; }
.brand-copy strong { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.brand-copy small { color: var(--muted); font-size: 9px; letter-spacing: .04em; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a { position: relative; padding: 11px 9px; color: var(--muted); font-size: 12px; transition: color .2s ease; }
.site-nav a::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 5px; height: 1px; transform: scaleX(0); background: linear-gradient(90deg, var(--purple), var(--blue)); transition: transform .2s ease; }
.site-nav a:hover, .site-nav a.active { color: var(--text); }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 9px; border: 0; background: transparent; }
.menu-toggle i { display: block; height: 2px; margin: 5px 0; border-radius: 2px; background: var(--text); transition: .2s ease; }

.hero { position: relative; min-height: calc(100vh - 80px); display: grid; grid-template-columns: 1.18fr .82fr; align-items: center; gap: clamp(30px, 5vw, 80px); padding-block: clamp(70px, 9vw, 120px) 80px; overflow: hidden; }
.hero-grid { position: absolute; inset: 0; z-index: -2; opacity: .22; mask-image: linear-gradient(to bottom, black, transparent 85%); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; }
.hero-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(12px); animation: drift 14s ease-in-out infinite alternate; }
.glow-one { width: 420px; height: 420px; top: 4%; left: 8%; background: radial-gradient(circle, rgba(87, 72, 238, .12), transparent 66%); }
.glow-two { width: 360px; height: 360px; right: 0; bottom: 10%; background: radial-gradient(circle, rgba(37, 137, 255, .1), transparent 68%); animation-delay: -7s; }
.status-pill { width: fit-content; display: inline-flex; align-items: center; gap: 9px; margin-bottom: 24px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: #cbd5e2; background: rgba(14,21,31,.7); font-size: 11px; letter-spacing: .025em; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(101,214,163,.1); }
.hero h1 { max-width: 800px; margin: 0; font-size: clamp(3rem, 5.7vw, 6.2rem); line-height: .99; letter-spacing: -.065em; }
.hero h1 span { background: linear-gradient(110deg, #dfe9f7 15%, #86baff 58%, #bd8cff); background-clip: text; color: transparent; }
.hero-intro { max-width: 700px; margin: 28px 0 0; color: #aeb9c8; font-size: clamp(1rem, 1.4vw, 1.16rem); }
.specialty-list, .tag-list, .skills-grid ul, .interest-cloud { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.specialty-list { margin: 28px 0 0; }
.specialty-list li, .tag-list li, .interest-cloud span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: #c7d1de; background: rgba(14,21,31,.58); font-size: 11px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 0 21px; border: 1px solid var(--line); border-radius: 10px; color: white; font-weight: 750; cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { border-color: transparent; background: linear-gradient(105deg, #7354ed, #278dff); box-shadow: 0 12px 32px rgba(58, 91, 224, .2); }
.button-secondary { background: rgba(12,18,27,.6); }
.button-secondary:hover { border-color: rgba(112,166,255,.45); }
.text-button { min-height: 44px; padding: 0 10px; border: 0; color: #c1ccda; background: transparent; cursor: pointer; }
.hero-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; color: var(--muted); font-size: 11px; }
.hero-links a:hover { color: white; }
.hero-links span { padding-left: 20px; border-left: 1px solid var(--line); }
.hero-links strong { color: var(--text); }
.hero-portrait { position: relative; min-height: 620px; display: grid; place-items: end center; }
.portrait-halo { position: absolute; width: 92%; aspect-ratio: 1; top: 10%; border: 1px solid rgba(117,107,240,.22); border-radius: 50%; box-shadow: inset 0 0 70px rgba(37,137,255,.04); }
.portrait-halo::before, .portrait-halo::after { content: ""; position: absolute; border: 1px dashed rgba(112,166,255,.14); border-radius: 50%; inset: 10%; animation: spin 34s linear infinite; }
.portrait-halo::after { inset: 24%; animation-direction: reverse; animation-duration: 24s; }
.portrait-frame { position: absolute; inset: 4% 3% 0; z-index: 2; overflow: hidden; border-radius: 48% 48% 24px 24px; background: linear-gradient(150deg, rgba(83,101,164,.3), rgba(12,18,27,.2)); }
.portrait-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, var(--bg) 98%); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; filter: saturate(.86) contrast(1.04); }
.portrait-note { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(8,13,20,.82); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.portrait-note span { color: var(--purple); font: 700 10px/1 monospace; }
.portrait-note p { margin: 0; font-size: 11px; }
.note-one { left: -6%; bottom: 33%; }.note-two { right: -2%; bottom: 16%; }
.scroll-cue { position: absolute; left: 0; bottom: 30px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.scroll-cue i { width: 42px; height: 1px; background: linear-gradient(90deg, var(--purple), transparent); }

.projects-section { border-top: 1px solid var(--line); }
.case-study-list { display: grid; gap: 24px; }
.case-study { min-width: 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, rgba(16,25,37,.86), rgba(8,13,20,.86)); box-shadow: inset 0 1px rgba(255,255,255,.02); transition: border-color .25s ease, transform .25s ease; }
.case-study:hover { transform: translateY(-3px); border-color: rgba(112,166,255,.3); }
.case-index { padding: 30px; border-right: 1px solid var(--line); background: rgba(6,10,16,.36); }
.case-index span { color: var(--purple); font: 700 12px/1 monospace; }
.case-index p { margin: 22px 0 0; color: var(--muted); font-size: 11px; writing-mode: vertical-rl; text-transform: uppercase; letter-spacing: .12em; }
.case-content { min-width: 0; padding: clamp(26px, 5vw, 54px); }
.case-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.case-title-row > div { min-width: 0; }
.case-kicker { margin: 0 0 8px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.case-title-row h3 { margin: 0; font-size: clamp(1.8rem, 4vw, 3.5rem); line-height: 1.04; letter-spacing: -.045em; }
.case-title-row > strong { max-width: 100%; color: var(--green); font-size: clamp(1.1rem, 2.8vw, 2.1rem); white-space: nowrap; }
.case-title-row strong small { display: block; color: var(--muted); font-size: 9px; font-weight: 500; text-align: right; text-transform: uppercase; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line); }
.case-grid h4 { margin: 0 0 8px; color: #dce5f1; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.case-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.system-flow { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 34px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #080e16; }
.system-flow span { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: #cad4e1; font-size: 10px; text-align: center; }
.system-flow i { color: var(--purple); font-style: normal; }
.tag-list { margin: 20px 0 0; }
.metric-plot { position: relative; height: 130px; display: flex; align-items: flex-end; gap: 10px; margin-top: 34px; padding: 20px 24px 25px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(79,108,255,.05), transparent), #080e16; }
.metric-plot i { flex: 1; height: 25%; border-radius: 4px 4px 0 0; background: linear-gradient(var(--blue), #604fe0); opacity: .76; }
.metric-plot i:nth-child(2) { height: 36%; }.metric-plot i:nth-child(3) { height: 43%; }.metric-plot i:nth-child(4) { height: 58%; }.metric-plot i:nth-child(5) { height: 67%; }.metric-plot i:nth-child(6) { height: 83%; }.metric-plot i:nth-child(7) { height: 96%; }
.metric-plot span { position: absolute; left: 24px; bottom: 6px; color: var(--muted); font-size: 9px; text-transform: uppercase; }

.impact-stories-section { border-top: 1px solid var(--line); }
.impact-story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.impact-story { min-width: 0; display: flex; flex-direction: column; padding: clamp(24px, 4vw, 36px); border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, rgba(16,25,37,.76), rgba(8,13,20,.8)); box-shadow: inset 0 1px rgba(255,255,255,.018); transition: transform .22s ease, border-color .22s ease; }
.impact-story:hover { transform: translateY(-3px); border-color: rgba(112,166,255,.28); }
.story-heading { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.story-heading span { padding-top: 6px; color: var(--purple); font: 700 10px/1 monospace; }
.story-heading h3 { margin: 0; font-size: clamp(1.25rem, 2.6vw, 1.65rem); line-height: 1.15; letter-spacing: -.03em; overflow-wrap: anywhere; }
.story-section { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding-top: 20px; }
.story-section h4, .story-outcome h4 { margin: 0; color: var(--blue); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.story-section p { margin: 0; color: var(--muted); font-size: 12px; }
.story-outcome { margin-top: 20px; padding: 18px; border: 1px solid rgba(101,214,163,.13); border-radius: 12px; background: rgba(101,214,163,.035); }
.story-outcome ul { display: grid; gap: 7px; padding: 0; margin: 12px 0 0; list-style: none; }
.story-outcome li { position: relative; padding-left: 15px; color: #cbd5e1; font-size: 11px; }
.story-outcome li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.impact-story .tag-list { margin-top: auto; padding-top: 20px; }

.career-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.career-intro { position: sticky; top: 120px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(17,26,38,.84), rgba(9,14,21,.8)); }
.career-year { color: var(--purple); font: 700 11px/1 monospace; }
.career-intro h3 { margin: 20px 0 8px; font-size: 2rem; letter-spacing: -.04em; }
.career-intro p { margin: 0; color: var(--muted); font-size: 13px; }
.career-levels { display: flex; align-items: center; margin-top: 30px; }
.career-levels span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: #d6dfec; font-size: 10px; }
.career-levels i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--purple), var(--blue)); }
.career-path { position: relative; display: grid; gap: 10px; padding: 0 0 0 28px; margin: 0; list-style: none; }
.career-path::before { content: ""; position: absolute; left: 4px; top: 22px; bottom: 22px; width: 1px; background: linear-gradient(var(--blue), var(--purple), rgba(168,112,255,.18)); }
.career-path li { position: relative; }
.career-path li::before { content: ""; position: absolute; left: -28px; top: 27px; width: 9px; height: 9px; border: 2px solid var(--purple); border-radius: 50%; background: var(--bg); transition: background .2s, box-shadow .2s; }
.career-path li:hover::before, .career-path li:focus-within::before { background: var(--purple); box-shadow: 0 0 0 6px rgba(168,112,255,.1); }
.career-path article { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; outline: none; background: rgba(13,20,30,.7); transition: background .2s, border-color .2s, transform .2s; }
.career-path article:hover, .career-path article:focus { transform: translateX(4px); border-color: rgba(168,112,255,.3); background: rgba(17,27,40,.88); }
.career-path time { color: var(--blue); font: 700 10px/1.5 monospace; text-transform: uppercase; }
.career-path h3 { margin: 0; font-size: 1rem; }
.career-path h3 em { margin-left: 7px; color: var(--purple); font-size: 8px; font-style: normal; letter-spacing: .05em; text-transform: uppercase; }
.career-path p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.career-path small { display: block; max-height: 0; margin-top: 0; overflow: hidden; color: #c6d0dc; font-size: 11px; opacity: 0; transition: max-height .25s, margin .25s, opacity .25s; }
.career-path article:hover small, .career-path article:focus small { max-height: 60px; margin-top: 8px; opacity: 1; }

.metrics-band { padding-block: 65px; border-block: 1px solid var(--line); background: linear-gradient(100deg, rgba(59,91,214,.07), rgba(133,77,222,.07)); }
.metrics-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.metrics-grid article { min-height: 110px; display: flex; flex-direction: column; justify-content: center; padding: 0 22px; border-right: 1px solid var(--line); }
.metrics-grid article:last-child { border-right: 0; }
.metrics-grid strong { color: var(--text); font-size: clamp(1.3rem, 2.5vw, 2rem); letter-spacing: -.04em; }
.metrics-grid article:nth-child(2) strong { color: var(--green); }
.metrics-grid span { margin-top: 6px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }

.leadership-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 8vw, 120px); }
.leadership-statement { position: sticky; top: 120px; align-self: start; }
.leadership-statement blockquote { max-width: 620px; }
.leadership-grid { display: grid; gap: 12px; }
.leadership-grid article { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(120deg, rgba(15,23,34,.84), rgba(10,15,23,.64)); }
.leadership-grid span { color: var(--purple); font: 700 10px/1 monospace; }
.leadership-grid h3 { margin: 15px 0 8px; font-size: 1.2rem; }
.leadership-grid p { margin: 0; color: var(--muted); font-size: 13px; }

.skills-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.skills-grid article { grid-column: span 2; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: rgba(13,20,30,.7); }
.skills-grid article > span { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.skills-grid h3 { margin: 14px 0 22px; font-size: 1.35rem; letter-spacing: -.025em; }
.skills-grid ul { margin: 0; }
.skills-grid li { padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; color: #bac5d3; font-size: 10px; background: #090f17; }

.focus-section { border-block: 1px solid var(--line); background: var(--bg-2); }
.focus-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.focus-track article { min-height: 220px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(18,28,41,.8), rgba(10,15,22,.8)); }
.focus-track span { color: var(--purple); font: 700 10px/1 monospace; }
.focus-track h3 { margin: 62px 0 8px; font-size: 1.05rem; }
.focus-track p { margin: 0; color: var(--muted); font-size: 12px; }

.about-section { display: grid; grid-template-columns: 1fr minmax(320px, 470px); gap: clamp(50px, 8vw, 110px); align-items: center; }
.interest-cloud { margin-top: 30px; }
.loki-card { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); box-shadow: var(--shadow); }
.loki-card img { width: 100%; height: 420px; object-fit: cover; object-position: center 35%; }
.loki-card figcaption { display: flex; justify-content: space-between; gap: 20px; padding: 18px 20px; border-top: 1px solid var(--line); }
.loki-card figcaption span { color: var(--muted); font-size: 11px; }

.build-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px, 8vw, 100px); padding: clamp(35px, 6vw, 68px); border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(circle at 5% 20%, rgba(104,83,230,.13), transparent 35%), linear-gradient(145deg, #101925, #0a1018); }
.build-section h2 { font-size: clamp(2rem, 4vw, 3.6rem); }

.contact-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 8vw, 110px); }
.contact-social { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 32px; color: var(--muted); font-size: 12px; }
.contact-social a:hover { color: white; }
.contact-form { padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, rgba(17,26,38,.9), rgba(8,13,20,.9)); box-shadow: var(--shadow); }
.form-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; color: #dbe4ef; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.form-heading i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.contact-form label { display: block; margin: 13px 0 7px; color: #d2dbe6; font-size: 11px; font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; outline: none; color: var(--text); background: #070d14; transition: border-color .2s, box-shadow .2s; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(77,159,255,.1); }
.contact-form textarea { min-height: 135px; resize: vertical; }
.contact-form .button { margin-top: 18px; }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: 10px; }

.site-footer { width: min(calc(100% - 36px), var(--max)); min-height: 145px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; margin: 60px auto 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.site-footer > div:first-child { display: flex; align-items: center; gap: 16px; }
.site-footer > div:last-child { display: flex; justify-content: flex-end; gap: 18px; }
.site-footer p { margin: 0; }
.site-footer a:hover { color: white; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes drift { to { transform: translate3d(40px, 24px, 0) scale(1.08); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; }
  .hero-portrait { width: min(100%, 630px); min-height: 600px; margin-inline: auto; }
  .scroll-cue { display: none; }
  .case-grid { grid-template-columns: 1fr; gap: 18px; }
  .metrics-grid { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .metrics-grid article:nth-child(3) { border-right: 0; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid article { grid-column: auto; }
  .focus-track { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 80px; }
  .site-header { min-height: 60px; top: 8px; margin-top: 8px; padding-inline: 12px; }
  .brand-copy { display: none; }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i:nth-of-type(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] i:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: grid; padding: 8px; visibility: hidden; opacity: 0; transform: translateY(-8px); border: 1px solid var(--line); border-radius: 14px; background: rgba(7,10,15,.98); box-shadow: var(--shadow); transition: .2s ease; }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .site-nav a { padding: 11px 13px; }
  .site-nav a::after { display: none; }
  .career-layout, .leadership-section, .about-section, .build-section, .contact-section { grid-template-columns: 1fr; }
  .impact-story-grid { grid-template-columns: 1fr; }
  .career-intro, .leadership-statement { position: static; }
  .about-section { gap: 40px; }
}

@media (max-width: 620px) {
  .section-shell { width: calc(100% - 26px); }
  .section-block { padding-block: 78px; }
  .hero { min-height: auto; padding-block: 58px 65px; }
  .hero h1 { font-size: clamp(2.75rem, 13.2vw, 4rem); }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-links { gap: 12px 18px; }
  .hero-links span { width: 100%; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .hero-portrait { min-height: 460px; }
  .portrait-frame { inset-inline: 0; }
  .portrait-note { padding: 8px 10px; }
  .note-one { left: 0; }.note-two { right: 0; }
  .case-study { grid-template-columns: 1fr; }
  .case-index { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .case-index p { margin: 0; writing-mode: horizontal-tb; }
  .case-content { padding: 24px 20px 26px; }
  .case-title-row { min-width: 0; display: grid; gap: 12px; }
  .case-title-row > strong { order: -1; overflow-wrap: anywhere; font-size: 1.1rem; white-space: normal; }
  .case-title-row strong small { display: inline; text-align: left; }
  .system-flow { width: 100%; max-width: 100%; justify-content: flex-start; overflow-x: auto; overscroll-behavior-inline: contain; }
  .system-flow span { min-width: 92px; }
  .impact-story { padding: 22px 18px; }
  .story-section { grid-template-columns: 1fr; gap: 6px; }
  .career-path { padding-left: 22px; }
  .career-path li::before { left: -22px; }
  .career-path article { grid-template-columns: 1fr; gap: 8px; }
  .career-path small { max-height: 80px; margin-top: 8px; opacity: 1; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid article { min-height: 95px; padding: 0 12px; }
  .metrics-grid article:nth-child(2n) { border-right: 0; }
  .metrics-grid article:nth-child(3) { border-right: 1px solid var(--line); }
  .skills-grid, .focus-track { grid-template-columns: 1fr; }
  .loki-card img { height: 340px; }
  .build-section { padding: 26px; }
  .site-footer { min-height: 190px; grid-template-columns: 1fr; gap: 16px; padding-block: 35px; text-align: center; }
  .site-footer > div:first-child, .site-footer > div:last-child { justify-content: center; }
}

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

@media print {
  :root { color-scheme: light; }
  body { color: #111827; background: white; font-size: 10pt; }
  body::before, .site-header, .hero-grid, .hero-glow, .hero-portrait, .scroll-cue, .hero-actions, .hero-links, .focus-section, .about-section, .build-section, .contact-form, .site-footer { display: none !important; }
  .section-shell { width: 100%; }
  .hero { min-height: auto; display: block; padding: 0 0 20px; }
  .hero h1 { font-size: 28pt; }
  .hero h1 span { color: #111827; }
  .section-block { padding: 18px 0; }
  .case-study, .career-intro, .career-path article, .leadership-grid article, .skills-grid article { color: #111827; background: white; border-color: #d1d5db; box-shadow: none; }
  .metrics-band { color: #111827; background: white; border-color: #d1d5db; }
  .reveal { opacity: 1; transform: none; }
}
