:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #111;
  background: #fcfbfa;
  --ink: #000;
  --muted: #666;
  --line: #eaeaea;
  --paper: #fcfbfa;
  --cream: #fdfaf5;
  --slate: oklch(.373 .034 259.733);
  --lavender: oklch(.946 .033 307.174);
  --purple: oklch(.496 .265 301.924);
  --edge: 4px 4px 0 #000;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; line-height: 1.5; }
h1, h2, h3, h4, p, figure { margin: 0; }
h2 { font-size: 30px; line-height: 36px; font-weight: 700; }
a { color: inherit; }
button { color: inherit; font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #8044b4; outline-offset: 4px; }
[hidden] { display: none !important; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: block; width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: fixed; top: 8px; left: 12px; z-index: 6; transform: translateY(-160%); background: white; padding: 8px 16px; }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 24px; }
.section { padding: 96px 0; }
.cream { background: var(--cream); }
.paper { background: var(--paper); }
.muted { color: var(--muted); }
.intro { max-width: 672px; margin-top: 16px; font-size: 18px; line-height: 28px; }
.solid-edge { border: 2px solid var(--ink); box-shadow: var(--edge); background: white; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow.purple { color: var(--purple); margin-bottom: 12px; }
#projects, #awards, #principles, #social { border-block: 2px solid var(--line); }

.site-header { position: fixed; z-index: 4; inset: 0 0 auto; border-bottom: 2px solid var(--line); background: white; transition: transform 300ms ease; }
.site-header.is-hidden:not(:focus-within) { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; }
main { padding-top: 74px; }
.brand { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; font-weight: 700; font-size: 20px; line-height: 28px; letter-spacing: -.025em; white-space: nowrap; }
.brand .icon { width: 32px; height: 32px; padding: 5px; }
.site-header nav { display: none; align-items: center; gap: 32px; }
.site-header nav a { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: #000; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.social-links { display: flex; align-items: center; gap: 16px; color: var(--muted); }
.icon-link { display: inline-grid; place-items: center; color: inherit; text-decoration: none; transition: color 150ms, border-color 150ms; }
.icon-link:hover { color: #000; }
.icon-link .icon { width: 24px; height: 24px; }
.social-nav { justify-content: end; flex-wrap: wrap; gap: 8px; }
.social-nav .icon-link { padding: 8px; border: 2px solid var(--line); border-radius: 4px; }
.social-nav .icon-link:hover { border-color: #000; }
.social-nav .icon-link .icon { width: 18px; height: 18px; }

.hero { position: relative; overflow: hidden; isolation: isolate; background: white; padding: 96px 0; }
.hero-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; width: min(100%,672px); min-width: 0; margin-top: 32px; }
.code-backdrop, .idea-backdrop { position: absolute; z-index: -1; inset: 0; overflow: hidden; opacity: 0; transition: opacity 700ms ease; pointer-events: none; }
.code-backdrop { display: flex; gap: 20%; justify-content: center; background: #f5faff; color: #245399; }
.code-backdrop pre { margin-top: -20px; line-height: 1.7; font-size: 13px; animation: code-scroll 70s linear infinite; }
.idea-backdrop { display: none; align-items: center; justify-content: center; background: repeating-linear-gradient(0deg,transparent 0 31px,#c4b5fd55 31px 32px), #faf5ff; color: #6734a2; }
.idea-backdrop span { transform: rotate(-12deg); font: 700 34px/1.2 var(--mono); letter-spacing: .15em; }
.hero:has(h1 em:first-of-type:hover) .code-backdrop, .hero:has(h1 em:last-of-type:hover) .idea-backdrop { opacity: .14; }
@keyframes code-scroll { to { transform: translateY(-50%); } }
.portrait { position: relative; width: 240px; height: 240px; flex: none; }
.portrait img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; background: white; transform: rotate(3deg); border: 4px solid #000; border-radius: 32px; box-shadow: 6px 6px 0 #000; transition: transform 300ms ease; }
.portrait img:hover { transform: rotate(0deg); }
.portrait figcaption { position: absolute; z-index: 1; left: 50%; bottom: -24px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100vw - 48px); padding: 6px 12px; border-radius: 6px; border: 2px solid #000; background: white; box-shadow: 2px 2px #000; font: 700 10px/16px var(--mono); letter-spacing: -.025em; text-transform: uppercase; }
.status-dot { position: relative; width: 10px; height: 10px; flex: none; border-radius: 50%; background: #10b981; }
.status-dot::before { position: absolute; content: ""; inset: 0; border-radius: 50%; background: inherit; animation: signal 1s cubic-bezier(0,0,.2,1) infinite; }
@keyframes signal { 75%, 100% { transform: scale(2); opacity: 0; } }
.nameplate { display: inline-flex; max-width: 100%; gap: 12px; align-items: center; padding: 6px 16px; margin-bottom: 24px; border: 2px solid #000; box-shadow: 3px 3px #000; transform: rotate(-1deg); transition: transform 150ms; text-transform: uppercase; background: white; }
.nameplate:hover { transform: rotate(0deg); }
.nameplate strong { font-size: 14px; line-height: 20px; letter-spacing: .1em; }
.name-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #000; }
.nameplate [data-role] { font: 600 12px/16px var(--mono); letter-spacing: .05em; color: var(--slate); }
.hero h1 { font-size: 36px; font-weight: 700; line-height: 1.25; letter-spacing: -.025em; margin-bottom: 24px; }
.hero em { font-style: normal; border-bottom: 4px dashed oklch(.872 .01 258.338); cursor: crosshair; transition: border-color 150ms; }
.hero em:hover { border-color: #000; }
.lead { font-size: 18px; line-height: 1.625; font-weight: 500; }
.hero .lead { margin-bottom: 16px; }
.summary { color: var(--muted); margin-bottom: 32px; max-width: 576px; font-size: 16px; line-height: 26px; }
.hero-actions { display: flex; width: 100%; flex-direction: column; gap: 24px; align-items: center; margin-bottom: 32px; }
.button { display: inline-flex; gap: 8px; align-items: center; justify-content: center; padding: 12px 24px; color: #000; font-size: 14px; font-weight: 700; line-height: 20px; border: 2px solid #000; border-radius: 4px; text-decoration: none; transition: transform 150ms, box-shadow 150ms, background-color 150ms; }
.button .icon { width: 16px; height: 16px; }
.button:hover, .contact-link:hover { transform: translate(2px,2px); box-shadow: 2px 2px 0 #000; }
.button:active, .contact-link:active { transform: translate(4px,4px); box-shadow: none; }
.text-link { padding: 0; border: 0; background: none; font-size: 14px; line-height: 20px; font-weight: 700; text-underline-offset: 4px; text-decoration: underline 2px; }
.text-link:hover { color: var(--purple); }
.hero-actions .text-link { padding: 8px 16px; text-decoration-color: var(--muted); }
.hero-actions .text-link:hover { color: #000; text-decoration-color: #000; }

.ticker { display: flex; flex-direction: column; align-items: center; gap: 32px; overflow: hidden; padding: 64px 0; }
.ticker-label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 24px; border: 2px solid #000; border-radius: 8px; background: white; color: #000; box-shadow: var(--edge); transform: rotate(-1deg); font-size: 18px; line-height: 28px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; transition: transform 150ms; }
.ticker-label:hover { transform: rotate(0deg); }
.ticker-label .icon { width: 20px; height: 20px; }
.ticker-window { width: 100%; display: flex; overflow: hidden; padding: 32px 0; background: var(--paper); border-block: 2px solid var(--line); }
.ticker-track { display: flex; width: max-content; align-items: center; animation: ticker-scroll 45s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; gap: 16px; padding-right: 16px; flex: none; white-space: nowrap; }
.ticker-group span { padding: 12px 24px; border: 2px solid #000; border-radius: 8px; background: white; color: #000; box-shadow: 4px 4px #666; font-size: 18px; line-height: 28px; font-weight: 700; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

.experience-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 64px; align-items: start; }
.bio h2 { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.bio h2 .icon { width: 28px; height: 28px; padding: 3px; }
.bio > p { margin-bottom: 16px; color: var(--slate); line-height: 26px; }
.bio > p:last-of-type { margin-bottom: 0; }
.bio > .lead { color: #111; line-height: 1.625; }
.competencies { margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--line); }
.competencies h3 { font-size: 20px; line-height: 28px; margin-bottom: 24px; }
.competencies article { margin-top: 16px; padding: 20px; border: 2px solid #000; border-radius: 12px; background: white; box-shadow: var(--edge); }
.competencies h4 { margin-bottom: 8px; font-size: 16px; }
.competencies p { color: oklch(.446 .03 256.802); font-size: 14px; line-height: 20px; font-weight: 500; }
.route-box { padding: 20px; border-radius: 12px; }
.route-box .eyebrow { color: var(--muted); margin-bottom: 12px; }
.route-box .eyebrow .icon { color: #000; width: 16px; height: 16px; }
.route-box p { margin-bottom: 16px; font-size: 14px; line-height: 1.625; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { border: 2px solid #000; border-radius: 8px; padding: 8px 16px; background: white; font-size: 14px; line-height: 20px; font-weight: 700; transition: background-color 150ms, box-shadow 150ms, border-color 150ms; }
.project-filters .filter:not([aria-pressed="true"]):hover { background: #faf5ff; box-shadow: 3px 3px #000; }
.project-filters .filter[aria-pressed="true"] { background: #000; color: white; box-shadow: 3px 3px #c7b7ff; }
.route-filters { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
.route-filters .filter { text-align: left; padding: 16px; border-color: var(--line); border-radius: 12px; font-size: 16px; line-height: 24px; }
.route-filters .filter:hover, .route-filters .filter[aria-pressed="true"] { border-color: #000; box-shadow: 3px 3px #000; }
.route-filters .filter[aria-pressed="true"] { background: var(--lavender); }
.experience-history, .experience-footer { margin-top: 40px; }
.experience-title { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 24px; line-height: 32px; }
.experience-title .icon { width: 24px; height: 24px; }
.timeline { position: relative; display: grid; gap: 32px; margin-left: 16px; padding-left: 32px; border-left: 4px solid #000; }
.timeline-card { position: relative; padding: 24px; border-radius: 12px; transition: box-shadow 150ms, transform 150ms; }
.timeline-card:hover { transform: translate(-4px,-4px); box-shadow: 6px 6px #000; }
.timeline-card::before { position: absolute; content: ""; left: -44px; top: 2px; width: 20px; height: 20px; border: 4px solid #000; border-radius: 50%; background: white; }
.timeline-card:first-child::before { border-color: var(--cream); background: #000; }
.timeline-card .date { display: block; margin-bottom: 8px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .025em; color: var(--muted); text-transform: uppercase; }
.timeline-card h4 { font-size: 20px; line-height: 28px; margin-bottom: 4px; color: #000; }
.timeline-card .context { display: block; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.timeline-card p { color: var(--slate); font-size: 14px; line-height: 1.625; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { background: var(--lavender); color: oklch(.438 .218 303.724); border-radius: 4px; padding: 4px 8px; font-size: 12px; line-height: 16px; font-weight: 600; }
.timeline .tags { gap: 6px; margin-bottom: 12px; }
.timeline .tag { text-transform: uppercase; letter-spacing: .025em; font-size: 10px; line-height: 15px; font-weight: 700; }
.experience-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.section-intro { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 24px; margin: 16px 0 28px; }
.section-intro p { color: var(--muted); max-width: 672px; font-size: 18px; line-height: 28px; }
.section-intro a { flex: none; }
.project-list { display: grid; gap: 40px; margin-top: 40px; }
.project { display: grid; grid-template-columns: minmax(0,1fr); align-items: center; gap: 32px; padding: 24px; border: 2px solid var(--line); border-radius: 12px; background: white; transition: border-color 200ms, box-shadow 200ms; }
.project:hover { border-color: var(--project-accent,#38bdf8); box-shadow: 8px 8px var(--project-accent,#38bdf8); }
.project:has(.mock-violet) { --project-accent: #a855f7; }
.project:has(.mock-green) { --project-accent: #0f9a8d; }
.project:has(.mock-orange) { --project-accent: #f08062; }
.project:has(.mock-red) { --project-accent: #ee4d2d; }
.project:has(.mock-slate) { --project-accent: #64748b; }
.project h3 { display: flex; align-items: center; gap: 16px; font-size: 24px; line-height: 32px; }
.icon-box { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border: 2px solid #000; box-shadow: 3px 3px #000; background: white; border-radius: 8px; }
.icon-box .icon { width: 24px; height: 24px; }
.project .context { display: block; margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.project .badge { display: inline-block; margin-top: 12px; padding: 4px 8px; background: #000; color: white; border-radius: 4px; font-size: 10px; line-height: 16px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.project p { margin: 16px 0 24px; line-height: 26px; }
.project-action { margin-top: 24px; padding: 10px 20px; background: #000; color: white; box-shadow: 4px 4px var(--line); }

.mockup { display: grid; overflow: hidden; width: 100%; min-width: 0; min-height: 216px; aspect-ratio: 1.725; border: 2px solid #000; border-radius: 12px; box-shadow: var(--edge); background: var(--mock-bg,#fff4e9); color: var(--mock-ink,#19191e); line-height: 1.2; }
.mock-bar { display: flex; justify-content: space-between; align-items: center; align-self: start; gap: 8px; height: 32px; padding: 0 12px; border-bottom: 1px solid #14141420; font: 700 10px/1 var(--mono); }
.window-dots { display: inline-flex; gap: 6px; }
.window-dots i { width: 10px; height: 10px; border: 1px solid currentColor; border-radius: 50%; opacity: .8; }
.mock-body { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 7%; align-items: center; padding: 18px 6% 24px; }
.mock-type { font: 700 10px var(--mono); color: var(--mock-accent,#b94124); letter-spacing: .07em; text-transform: uppercase; }
.mock-body strong { display: block; margin: 8px 0; font-size: clamp(16px,2.2vw,28px); letter-spacing: -.05em; }
.mock-body small { display: block; font-size: 11px; opacity: .85; }
.mock-board { padding: 10px; background: var(--mock-panel,#262638); color: white; border-radius: 8px; box-shadow: 0 9px 18px #0002; }
.mock-board > b { display: block; margin-bottom: 6px; font-size: 11px; }
.mock-row { display: grid; grid-template-columns: 8px minmax(0,1fr); align-items: center; gap: 6px; padding: 7px 6px; border-radius: 4px; margin-top: 5px; background: #85869924; font-size: 10px; }
.mock-row i { height: 6px; width: 6px; border-radius: 50%; background: var(--mock-dot,#ff9c78); }
.mock-blue { --mock-bg: #e9f4ff; --mock-accent: #0759ac; --mock-panel: #102548; --mock-dot: #91c3ff; }
.mock-violet { --mock-bg: #eee7fc; --mock-accent: #6b2ab2; --mock-panel: #38215c; --mock-dot: #ccabff; }
.mock-green { --mock-bg: #e4f4eb; --mock-accent: #145f40; --mock-panel: #15382c; --mock-dot: #8de3ad; }
.mock-red { --mock-bg: #ffe9e7; --mock-accent: #a43839; --mock-panel: #502229; --mock-dot: #ffa2aa; }
.mock-slate { --mock-bg: #eaf0f1; --mock-accent: #285569; --mock-panel: #223541; --mock-dot: #a8e4f2; }

.awards-grid, .principle-grid, .social-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; margin-top: 48px; }
.award { display: flex; gap: 16px; align-items: flex-start; min-height: 132px; padding: 24px; border-radius: 12px; transition: box-shadow 150ms, transform 150ms; }
.award:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px #000; }
.award .icon { width: 32px; height: 32px; color: #92651b; }
.award h3 { font-size: 20px; line-height: 28px; }
.award p { margin-top: 4px; color: var(--muted); }
#principles .intro { max-width: 768px; margin-top: 24px; line-height: 1.625; }
.principle-grid { gap: 32px; margin-top: 64px; }
.principle { border-radius: 12px; padding: 32px; box-shadow: 6px 6px #000; transition: transform 150ms, box-shadow 150ms; }
.principle:hover { transform: translateY(-4px); box-shadow: 8px 8px #000; }
.principle-label { display: flex; align-items: center; gap: 16px; font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: .025em; color: var(--muted); text-transform: uppercase; }
.blue { background: #dbeafe; color: #2563eb; }
.lilac { background: var(--lavender); color: #9333ea; }
.green { background: #dcfce7; color: #16a34a; }
.principle h3 { font-size: 24px; line-height: 32px; margin: 24px 0 16px; }
.principle p { font-size: 18px; line-height: 1.625; font-weight: 500; }

#social h2 { font-size: 36px; line-height: 1.25; }
#social h2 span { color: oklch(.707 .022 261.325); transition: color 200ms; }
#social h2:hover span { color: #111; }
#social .intro { margin-top: 24px; }
.social-grid { padding-bottom: 32px; }
.social-card { overflow: hidden; border-radius: 12px; transition: transform 500ms, box-shadow 500ms; }
.social-card:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 0 30px #2563eb4d; }
.social-card header { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 2px solid #000; padding: 12px 16px; background: #eff6ff; }
.social-card header b { display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .025em; font-size: 12px; line-height: 16px; }
.social-card header .icon { color: #2563eb; width: 18px; height: 18px; }
.social-body { min-height: 452px; background: #fff; }
.social-cover { height: 120px; background: linear-gradient(135deg,#dae6f4,#eff6ff 65%,#cadbea); }
.social-profile { padding: 0 20px 24px; }
.social-profile img { display: block; width: 64px; height: 64px; position: relative; margin-top: -32px; border: 3px solid white; border-radius: 50%; object-fit: cover; object-position: center 10%; }
.social-card h3 { margin: 12px 0 4px; font-size: 20px; line-height: 28px; }
.social-card p { font-size: 14px; line-height: 20px; color: var(--muted); }
.social-role { margin-bottom: 12px; }
.social-card .button { margin-top: 20px; }

.contact { background: white; }
.contact-panel { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 48px; padding: 32px; background: var(--cream); color: #000; border: 4px solid #000; border-radius: 16px; box-shadow: 8px 8px #666; }
.contact-copy { max-width: 576px; }
.contact h2 { font-size: 36px; line-height: 40px; margin-bottom: 24px; }
.contact p { margin-bottom: 32px; color: var(--slate); font-size: 20px; line-height: 28px; font-weight: 500; }
.contact-primary { gap: 12px; padding: 16px 32px; border-radius: 12px; background: #000; color: white; font-size: 20px; line-height: 28px; box-shadow: var(--edge); }
.contact-primary .icon { width: 20px; height: 20px; }
.contact-actions { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.contact-link { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 12px; font-size: 18px; line-height: 28px; font-weight: 700; text-decoration: none; transition: transform 150ms, box-shadow 150ms; }
.contact-link .icon { width: 32px; height: 32px; }
.contact-link:first-child .icon { color: #2563eb; }
.site-footer { background: white; border-top: 2px solid var(--line); margin-top: 48px; padding: 64px 0; }
.footer-row, .footer-brand, .footer-links { display: flex; align-items: center; }
.footer-row { flex-direction: column; justify-content: space-between; gap: 32px; }
.footer-brand { flex-direction: column; }
.footer-brand p { margin-top: 4px; font-size: 16px; color: var(--muted); }
.footer-links { flex-wrap: wrap; gap: 16px; }
.footer-link { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; }
.footer-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-inner small { display: block; margin-top: 32px; color: oklch(.707 .022 261.325); font: 400 12px/16px var(--mono); text-align: center; }
.back-top { position: fixed; z-index: 3; right: 24px; bottom: 24px; width: 52px; height: 52px; display: grid; place-items: center; background: white; border: 2px solid var(--line); border-radius: 4px; box-shadow: 4px 4px var(--line); color: var(--muted); opacity: 0; visibility: hidden; transition: opacity 200ms, border-color 150ms, color 150ms; }
.back-top.visible { opacity: 1; visibility: visible; }
.back-top .icon { width: 24px; height: 24px; }
.back-top:hover { color: #000; border-color: #000; }

dialog { width: min(1152px,100% - 32px); max-width: none; max-height: 92dvh; margin: auto; padding: 0; overflow: hidden; border: 4px solid #000; box-shadow: 8px 8px #000; border-radius: 12px; color: #111; }
dialog[open] { animation: dialog-in 200ms ease-out both; }
dialog::backdrop { background: #0009; backdrop-filter: blur(3px); }
body:has(dialog[open]) { overflow: hidden; }
@keyframes dialog-in { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }
.detail-panel { display: flex; flex-direction: column; max-height: calc(92dvh - 8px); }
.detail-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border-bottom: 4px solid #000; background: var(--cream); }
.detail-header h2 { font-size: 20px; line-height: 28px; letter-spacing: -.025em; }
.detail-body { overflow-y: auto; padding: 24px; background: white; }
.detail-body > p { margin-top: 12px; }
.detail-body > h3 { margin-top: 24px; font-size: 20px; line-height: 28px; }
.detail-body .tags { margin-top: 16px; }
.detail-body > .button { margin-top: 24px; }
.detail-body > .mockup { max-width: 640px; }
.close-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 2px solid #000; border-radius: 50%; background: white; }
.close-button:hover { background: #000; color: #fff; }
.resume-sheet { max-height: 70dvh; overflow-y: auto; padding: 18px 24px 24px; border: 4px solid #000; border-radius: 12px; box-shadow: var(--edge); background: #fff; color: #111; font: 18px/1.25 "Times New Roman", Times, serif; }
.resume-name { text-align: center; text-decoration: underline; font-size: 32px; line-height: 1.12; }
.resume-role { text-align: center; margin: 6px 0 14px; }
.resume-sheet h4 { border-bottom: 1px solid #000; margin: 12px 0 6px; font-size: 18px; text-transform: uppercase; }
.resume-sheet p + p { margin-top: 4px; }
.resume-list { padding-left: 1.15em; margin: 0; }
.resume-list li + li { margin-top: 8px; }
.resume-list p { margin-top: 3px; }

@media (min-width: 640px) {
  .wrap { padding-inline: 48px; }
  .hero-actions { flex-direction: row; width: auto; }
  .route-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .social-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-header { padding: 24px; }
}
@media (min-width: 768px) {
  h2 { font-size: 48px; line-height: 48px; }
  .site-header nav { display: flex; gap: clamp(16px,2.5vw,32px); }
  .social-nav { gap: 12px; }
  .hero-inner { flex-direction: row; gap: 64px; }
  .hero-copy { margin-top: 0; }
  .portrait { width: 320px; height: 320px; }
  .portrait figcaption { bottom: -32px; font-size: 12px; }
  .nameplate strong { font-size: 16px; line-height: 24px; }
  .nameplate [data-role] { font-size: 14px; line-height: 20px; }
  .hero h1 { font-size: 48px; }
  .lead { font-size: 20px; }
  .ticker-label, .ticker-group span { font-size: 20px; }
  .bio h2 { font-size: 36px; line-height: 40px; }
  .route-box { padding: 24px; }
  .project { padding: 40px; }
  .project h3 { font-size: 30px; line-height: 36px; }
  .awards-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .principle-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  #social h2 { font-size: 60px; }
  .contact-panel { flex-direction: row; align-items: center; padding: 64px; }
  .contact h2 { font-size: 48px; line-height: 48px; }
  .contact-actions { width: auto; flex: none; }
  .footer-row { flex-direction: row; }
  .footer-brand { align-items: flex-start; }
  .footer-inner small { margin-top: 16px; text-align: left; }
  .detail-header h2 { font-size: 24px; line-height: 32px; }
  .detail-body { padding: 40px; }
}
@media (min-width: 1024px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .header-inner nav { transform: translateX(-42px); }
  .social-nav { justify-self: end; }
  .hero-inner { gap: 80px; }
  .portrait { width: 384px; height: 384px; }
  .idea-backdrop { display: flex; }
  .experience-layout { grid-template-columns: minmax(0,5fr) minmax(0,7fr); }
  .bio { position: sticky; top: 128px; }
  .section-intro { flex-direction: row; align-items: end; }
  .project { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 48px; }
  .project:nth-child(even) .mockup { grid-column: 2; grid-row: 1; }
  .project:nth-child(even) > :last-child { grid-column: 1; grid-row: 1; }
  .social-grid { grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 80px; }
  .social-card:nth-child(even) { transform: translateY(32px); }
  .social-card:nth-child(even):hover { transform: translateY(-8px) rotate(1deg); }
}
@media (min-width: 1280px) {
  .wrap { padding-inline: 32px; }
}
@media (max-width: 420px) {
  .header-inner { min-height: 116px; }
  .timeline { padding-left: 24px; }
  .timeline-card::before { left: -36px; }
  .mock-body { grid-template-columns: 1fr; gap: 12px; padding: 14px; }
  .mock-board { padding: 8px; }
  .resume-sheet { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
