/* Joshua Nafziger — an engineering portfolio with an editorial rhythm. */
:root {
  color-scheme: light;
  --paper: #f6f4ee;
  --surface: #fffef9;
  --soft: #eeece4;
  --ink: #242822;
  --muted: #686c61;
  --line: #d6d8cb;
  --accent: #682c3e;
  --accent-hover: #502131;
  --orange: #ac522a;
  --feature: #43222f;
  --feature-ink: #fff9ee;
  --focus: #9a532f;
  --radius: 6px;
  --container: 1160px;
  --header-height: 85px;
  --sans: 'Segoe UI', Arial, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  --mono: 'Cascadia Code', Consolas, 'Courier New', monospace;
}
html[data-theme='dark'] {
  color-scheme: dark;
  --paper: #1c211d;
  --surface: #242b25;
  --soft: #252d26;
  --ink: #f4f1e7;
  --muted: #b4b9ab;
  --line: #424b40;
  --accent: #e6a7b3;
  --accent-hover: #f4c2cb;
  --orange: #e6996c;
  --feature: #38212b;
  --focus: #e9b17f;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { color: var(--paper); background: var(--accent); }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 4px; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure, h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.13; }
h1, h2 { letter-spacing: -.045em; }
h3 { letter-spacing: -.025em; }
em { font-family: var(--serif); font-weight: 400; }
p + p { margin-top: 16px; }
ul { margin: 0; padding-left: 20px; }
.container { width: min(var(--container), calc(100% - 80px)); margin-inline: auto; }
.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; z-index: 100; left: 20px; top: 12px; padding: 12px 20px; background: var(--ink); color: var(--paper); border-radius: var(--radius); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; z-index: 30; top: 0; height: var(--header-height); border-bottom: 1px solid var(--line); background: var(--paper); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 28px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; font-weight: 650; font-size: 17px; letter-spacing: -.035em; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; background: var(--accent); color: var(--paper); font-family: var(--serif); font-weight: 400; font-size: 23px; letter-spacing: -.09em; padding-right: 2px; border-radius: 2px; }
.nav-links { display: flex; align-items: center; justify-content: center; list-style: none; padding: 0; gap: 27px; margin-left: auto; }
.nav-link { display: inline-flex; padding: 10px 0; font-size: 13px; font-weight: 500; text-decoration: none; position: relative; color: var(--muted); }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: 5px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.nav-link:hover, .nav-link[aria-current] { color: var(--accent); }
.nav-link:hover::after, .nav-link[aria-current]::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle, .menu-toggle { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 9px; border: 1px solid var(--line); border-radius: 50%; background: transparent; transition: background .18s ease; }
.theme-toggle:hover, .menu-toggle:hover { background: var(--soft); }
.theme-toggle svg, .menu-toggle svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 47px; padding: 12px 19px; border: 1px solid transparent; border-radius: 3px; font-size: 13px; line-height: 1.4; font-weight: 600; text-decoration: none; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.button svg, .text-link svg, .project-links svg, .contact-links svg { width: 16px; height: 16px; flex-shrink: 0; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: var(--paper); }
.button-primary:hover { background: var(--accent-hover); }
.button-secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.button-secondary:hover { border-color: var(--ink); background: var(--soft); }
.button-light { background: var(--feature-ink); color: var(--feature); }
.button-light:hover { background: #f1e6d7; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 13px; font-weight: 600; text-decoration-thickness: 1px; }
.text-link:hover { text-underline-offset: 7px; }
.eyebrow, .section-label { display: flex; align-items: center; gap: 11px; color: var(--muted); font-family: var(--mono); font-size: 10px; line-height: 1.5; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow::before { content: ''; height: 6px; width: 6px; flex: 0 0 6px; background: var(--orange); }
.hero { display: grid; grid-template-columns: 1.24fr .76fr; gap: 74px; align-items: center; padding-top: 66px; padding-bottom: 59px; }
.hero-copy .eyebrow { margin-bottom: 25px; }
.hero h1 { max-width: 640px; font-size: clamp(48px, 5.5vw, 76px); line-height: 1.05; }
.hero h1 em { color: var(--accent); letter-spacing: -.055em; }
.hero-description { color: var(--muted); max-width: 530px; font-size: 16px; line-height: 1.8; margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 29px; }
.hero-note { display: block; font-family: var(--mono); font-size: 10px; line-height: 1.8; color: var(--muted); margin-top: 22px; }
.hero-note svg { width: 13px; height: 13px; flex-shrink: 0; }
.hero-portrait { position: relative; padding: 11px 11px 0; border: 1px solid var(--line); background: var(--soft); max-width: 410px; width: 100%; justify-self: end; transform: rotate(1.5deg); }
.hero-portrait::before { content: ''; position: absolute; top: -12px; right: 27px; width: 67px; height: 25px; background: #d8c6a788; transform: rotate(-7deg); z-index: 1; }
.hero-portrait img { width: 100%; aspect-ratio: 4 / 4.45; object-fit: cover; object-position: center top; filter: saturate(.74); background: #d8d5c8; }
.portrait-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px 15px; font-family: var(--mono); font-size: 9px; color: var(--muted); line-height: 1.5; }
.portrait-caption span:last-child { text-align: right; }
.hero-strip { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 23px; padding-bottom: 23px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .035em; }
.hero-strip span { display: inline-flex; align-items: center; gap: 9px; }
.hero-strip svg { width: 13px; height: 13px; }
.section { padding-block: 88px; scroll-margin-top: 20px; }
.section-tinted { background: var(--soft); border-block: 1px solid var(--line); }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 50px; margin-bottom: 33px; }
.section-header .eyebrow, .section-header .section-label { margin-bottom: 17px; }
.section-header h2, .experience-aside h2, .about-copy h2, .contact-copy h2 { font-size: clamp(34px, 3.55vw, 48px); }
.section-intro { max-width: 360px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.project-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter-button { padding: 7px 13px; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--muted); font-size: 12px; line-height: 1.5; }
.filter-button:hover { color: var(--accent); border-color: var(--accent); }
.filter-button[aria-pressed='true'] { color: var(--paper); border-color: var(--ink); background: var(--ink); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.project-card { overflow: hidden; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.project-body { display: flex; flex-direction: column; flex: 1; padding: 28px; min-width: 0; }
.project-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; color: var(--muted); font-family: var(--mono); font-size: 9px; line-height: 1.5; letter-spacing: .03em; }
.project-index { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.project-card h3 { font-size: 24px; margin-bottom: 12px; }
.project-body > p { color: var(--muted); font-size: 13px; line-height: 1.85; }
.tags { display: flex; flex-wrap: wrap; gap: 7px 14px; list-style: none; padding: 0; margin-top: 20px; color: var(--muted); font-family: var(--mono); font-size: 9px; line-height: 1.7; }
.tags li { position: relative; }
.tags li + li::before { content: '/'; position: absolute; left: -9px; opacity: .45; }
.project-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 25px; }
.project-links a { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; }
.project-details { margin-top: 24px; border-top: 1px solid var(--line); }
.project-details summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 17px; font-size: 11px; font-weight: 600; list-style: none; }
.project-details summary::-webkit-details-marker, .archive-details summary::-webkit-details-marker { display: none; }
.project-details summary::after, .archive-details summary::after { content: '+'; font-family: var(--mono); font-size: 18px; line-height: 1; font-weight: 400; }
.project-details[open] summary::after, .archive-details[open] summary::after { content: '−'; }
.detail-body { padding-top: 18px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.detail-body h4 { margin: 17px 0 7px; font-size: 12px; color: var(--ink); }
.detail-body h4:first-child { margin-top: 0; }
.detail-body p + ul, .detail-body ul + p { margin-top: 10px; }
.detail-body li + li { margin-top: 6px; }
.project-featured { display: grid; grid-column: 1 / -1; grid-template-columns: 1.05fr .95fr; background: var(--feature); border-color: var(--feature); color: var(--feature-ink); }
.project-featured .project-body { padding: 42px; justify-content: center; }
.project-featured h3 { font-size: 32px; }
.project-featured .project-meta, .project-featured .project-index, .project-featured .project-body > p, .project-featured .tags, .project-featured .detail-body { color: #d2c0c8; }
.project-featured .text-link, .project-featured .detail-body h4 { color: var(--feature-ink); }
.project-featured .project-details { border-color: #76505e; }
.project-featured .project-links .button { min-height: 41px; padding: 10px 14px; }
.project-visual { min-height: 390px; position: relative; overflow: hidden; }
.technical-art { display: flex; flex-direction: column; justify-content: space-between; padding: 33px; height: 100%; min-height: 390px; position: relative; background-color: #512b3a; background-image: linear-gradient(#f9dcc809 1px, transparent 1px), linear-gradient(90deg, #f9dcc809 1px, transparent 1px); background-size: 27px 27px; color: #f5e8cd; border-right: 1px solid #76505e; }
.art-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: #c8a7b5; position: relative; z-index: 2; }
.art-word { font-size: clamp(45px, 5.4vw, 76px); font-weight: 600; line-height: .98; letter-spacing: -.065em; position: relative; z-index: 2; padding: 55px 0; }
.art-word em { display: block; color: #dba07d; }
.art-paths { position: absolute; right: -62px; bottom: 55px; width: 250px; height: 250px; border: 1px solid #bb805c80; border-radius: 50%; }
.art-paths::before { content: ''; position: absolute; inset: 29px; border: 1px solid #bb805c80; border-radius: 50%; }
.art-paths::after { content: ''; position: absolute; inset: 62px; border: 1px solid #bb805c80; border-radius: 50%; }
.art-caption { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--mono); font-size: 9px; line-height: 1.6; color: #c8a7b5; position: relative; z-index: 2; }
.art-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #dfa076; margin-right: 5px; }
.project-media { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--soft); }
.project-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center; transition: transform .4s ease; }
.project-card:hover .project-media img { transform: scale(1.025); }
.project-text-visual { min-height: 170px; display: flex; align-items: center; justify-content: space-between; padding: 32px; gap: 25px; border-bottom: 1px solid var(--line); background: var(--soft); overflow: hidden; }
.project-symbol { font-family: var(--mono); font-size: 59px; font-weight: 400; line-height: 1; color: var(--accent); letter-spacing: -.08em; }
.project-text-visual p { max-width: 180px; font-family: var(--mono); font-size: 10px; line-height: 1.7; color: var(--muted); text-align: right; }
.status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 9px; }
.status::before { content: ''; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #73816d; }
.project-featured .status::before { background: #b5c4a0; }
.experience-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 94px; }
.experience-aside { align-self: start; position: sticky; top: calc(var(--header-height) + 45px); }
.experience-aside .eyebrow, .about-copy .eyebrow, .contact-copy .eyebrow { margin-bottom: 20px; }
.experience-aside p, .about-copy > p, .contact-copy > p { margin-top: 23px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.experience-aside .text-link { margin-top: 26px; }
.timeline { position: relative; border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 22px; padding-block: 29px; border-bottom: 1px solid var(--line); }
.timeline-date { font-family: var(--mono); font-size: 10px; line-height: 1.8; color: var(--muted); padding-top: 3px; }
.timeline-content h3 { font-size: 21px; }
.role-org { margin-top: 6px; font-size: 12px; color: var(--accent); font-weight: 500; }
.role-description, .timeline-content > p:not(.role-org) { margin-top: 14px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.timeline-content ul { margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.timeline-content li + li { margin-top: 7px; }
.leadership-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.leadership-card { border-top: 1px solid var(--line); padding-top: 24px; }
.leadership-number { display: block; font-family: var(--mono); font-size: 11px; color: var(--orange); margin-bottom: 25px; }
.leadership-card h3 { font-size: 21px; margin-bottom: 12px; }
.leadership-card p { color: var(--muted); font-size: 13px; line-height: 1.85; }
.leadership-card .text-link { margin-top: 18px; }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 92px; align-items: start; }
.about-copy { max-width: 610px; }
.about-copy .text-link { margin-top: 22px; }
.education { border-top: 2px solid var(--accent); padding-top: 22px; }
.education > h3 { font-size: 16px; margin-bottom: 4px; }
.education-item { border-bottom: 1px solid var(--line); padding-block: 22px; }
.education-item h3, .education-item h4 { font-size: 17px; line-height: 1.35; }
.education-item p { font-size: 13px; line-height: 1.8; color: var(--muted); margin-top: 5px; }
.education-item .eyebrow, .education-item .section-label { margin-top: 10px; font-size: 9px; }
.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; border-top: 1px solid var(--line); margin-top: 58px; padding-top: 29px; }
.skill-group h3 { font-size: 13px; margin-bottom: 14px; }
.skill-group p { color: var(--muted); font-size: 12px; line-height: 1.9; }
.skill-list { display: flex; flex-wrap: wrap; list-style: none; gap: 6px 16px; padding: 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.recognition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.honors-panel, .community-panel { border-top: 1px solid var(--line); padding-top: 24px; }
.honors-panel h3, .community-panel h3 { font-size: 23px; margin-bottom: 20px; }
.compact-list { list-style: none; padding: 0; }
.compact-list li { padding: 15px 0; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.compact-list strong { font-size: 13px; line-height: 1.6; font-weight: 500; }
.compact-list span { font-family: var(--mono); font-size: 9px; line-height: 1.8; color: var(--muted); text-align: right; flex: 0 0 auto; max-width: 45%; }
.community-panel > p, .honors-panel > p { font-size: 13px; color: var(--muted); line-height: 1.8; }
.archive-details { margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.archive-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; padding: 16px 0; font-size: 12px; color: var(--muted); }
.archive-details > .detail-body { padding: 0 0 18px; }
.archive-details ul { font-size: 12px; color: var(--muted); padding-bottom: 16px; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; align-items: start; }
.contact-copy > p { max-width: 350px; }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; margin-top: 29px; }
.contact-links a { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; text-decoration: none; }
.contact-links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.contact-form { padding-top: 2px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; min-width: 0; }
.form-field label { font-size: 11px; font-weight: 500; }
.form-field input, .form-field textarea { width: 100%; max-width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: 3px; padding: 11px 12px; color: var(--ink); font-size: 13px; line-height: 1.65; }
.form-field input:hover, .form-field textarea:hover { border-color: var(--muted); }
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent); }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); opacity: .8; }
.form-field textarea { min-height: 122px; resize: vertical; }
.form-note { font-size: 10px; line-height: 1.8; color: var(--muted); margin-top: 12px; }
.form-status { margin-top: 12px; color: var(--accent); font-size: 12px; line-height: 1.8; }
.form-status:empty { display: none; }
.site-footer, footer { border-top: 1px solid var(--line); }
.footer-container { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 27px; font-size: 10px; color: var(--muted); }
.footer-container p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.back-to-top { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 10px; text-decoration: none; }
.back-to-top svg { width: 13px; height: 13px; }
/* Final content alignment. */
.hero .eyebrow::before { display: none; }
.status-dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 6px; background: var(--orange); border-radius: 50%; }
.hero-description + .hero-description { margin-top: 12px; }
.hero-opportunity { font-size: 12px; line-height: 1.75; color: var(--accent); margin-top: 20px; }
.theme-toggle > span { font-size: 20px; line-height: 1; }
.menu-toggle { width: auto; min-width: 66px; gap: 7px; border-radius: 3px; padding-inline: 10px; font-size: 11px; line-height: 1; }
.menu-toggle > span { font-size: 17px; }
.menu-toggle[aria-expanded='true'] > span { transform: rotate(45deg); }
.hero-strip b { color: var(--orange); font-weight: 400; }
.experience-aside > .section-label, .about-copy > .section-label, .contact-copy > .section-label { margin-bottom: 20px; }
.project-details > summary > span[aria-hidden], .archive-details > summary > span[aria-hidden] { display: none; }
.art-paths .art-dot { position: absolute; margin: 0; width: 7px; height: 7px; }
.art-paths .art-dot:nth-child(1) { top: 23px; left: 46px; }
.art-paths .art-dot:nth-child(2) { bottom: 47px; left: 52px; }
.art-paths .art-dot:nth-child(3) { right: 79px; top: 94px; }
.project-text-visual { aspect-ratio: 16 / 10; flex-direction: column; align-items: flex-start; position: relative; }
.project-text-visual p { position: relative; z-index: 1; max-width: 100%; text-align: left; font-size: 9px; letter-spacing: .06em; }
.project-text-visual .project-symbol { position: relative; z-index: 1; }
.data-visual { background-color: #e2e7df; background-image: linear-gradient(#30442e0b 1px, transparent 1px), linear-gradient(90deg, #30442e0b 1px, transparent 1px); background-size: 25px 25px; }
.data-visual .project-symbol { color: #344d3b; font-size: clamp(31px, 3.55vw, 49px); letter-spacing: -.07em; margin-top: auto; margin-bottom: auto; }
.data-visual p { color: #52624f; }
.flight-visual { background: #efe4d4; }
.flight-visual::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px dashed #b99572; transform: rotate(28deg); }
.flight-visual .project-symbol { color: #9a4b28; font-size: 115px; font-family: var(--sans); padding-left: 30px; margin-top: auto; margin-bottom: auto; transform: rotate(28deg); }
.flight-visual p { color: #87684a; }
.web-visual { background: #e8e3e7; }
.web-visual::after { content: ''; position: absolute; inset: 24px 24px 63px; border: 1px solid #bca5b780; border-radius: 3px; }
.web-visual .project-symbol { color: #6e425b; font-size: clamp(40px, 4.6vw, 64px); margin-block: auto; }
.web-visual p { color: #725c6b; }
html[data-theme='dark'] .data-visual { background-color: #303d33; background-image: linear-gradient(#b7cead0b 1px, transparent 1px), linear-gradient(90deg, #b7cead0b 1px, transparent 1px); }
html[data-theme='dark'] .data-visual .project-symbol, html[data-theme='dark'] .data-visual p { color: #becfb9; }
html[data-theme='dark'] .flight-visual { background: #433329; }
html[data-theme='dark'] .flight-visual .project-symbol, html[data-theme='dark'] .flight-visual p { color: #d8ae83; }
html[data-theme='dark'] .web-visual { background: #392e39; }
html[data-theme='dark'] .web-visual .project-symbol, html[data-theme='dark'] .web-visual p { color: #cbb1c5; }
.project-result { display: flex; align-items: center; gap: 17px; padding: 20px 0; margin-top: 22px; border-block: 1px solid #76505e; font-size: 12px; line-height: 1.6; }
.project-result .result-number { color: var(--feature-ink); font-size: 43px; font-weight: 500; line-height: 1; letter-spacing: -.065em; flex-shrink: 0; }
.project-result > span:not(.result-number) { color: #d2c0c8; }
.result-link { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: var(--feature-ink); margin-top: 15px; }
.leadership-card .project-index { display: block; font-family: var(--mono); font-size: 9px; line-height: 1.75; margin-top: 18px; }
.education-item > .project-index { display: block; margin-bottom: 9px; }
.skills-header { margin-top: 66px; margin-bottom: 0; }
.skills-header h2 { font-size: 31px; }
.skills-header + .skills-grid { margin-top: 25px; }
.skill-group > p { margin-bottom: 13px; }
.skill-list { display: block; }
.skill-list li + li { margin-top: 4px; }
.community-panel .compact-list > li { display: grid; grid-template-columns: 1fr .8fr; column-gap: 22px; row-gap: 9px; align-items: start; }
.community-panel .compact-list > li > span { max-width: none; }
.community-panel .compact-list > li > p { grid-column: 1 / -1; color: var(--muted); font-size: 12px; line-height: 1.8; }
.contact-links > span { color: var(--muted); font-size: 11px; }
.footer-container > div:first-child > p { margin-top: 9px; }
.footer-container > div:first-child > p + p { margin-top: 4px; }
@media (min-width: 851px) {
  .js .nav-links { display: flex; }
}
@media (max-width: 1100px) {
  .nav { gap: 18px; }
  .nav-links { gap: 18px; }
  .brand { font-size: 15px; }
  .hero { gap: 44px; }
  .hero h1 { font-size: clamp(46px, 6.4vw, 70px); }
  .project-featured .project-body { padding: 30px; }
  .experience-layout { gap: 50px; }
  .about-grid { gap: 54px; }
  .contact-grid { gap: 56px; }
}
@media (max-width: 850px) {
  :root { --header-height: 72px; }
  .container { width: min(var(--container), calc(100% - 48px)); }
  .site-header { height: auto; min-height: var(--header-height); }
  .nav { min-height: var(--header-height); flex-wrap: wrap; gap: 0 20px; }
  .brand { font-size: 16px; }
  .nav-actions { margin-left: auto; }
  .nav-links { order: 3; width: 100%; margin: 0; padding: 9px 0 16px; gap: 7px 24px; flex-wrap: wrap; justify-content: flex-start; }
  .nav-link { font-size: 13px; }
  .js .menu-toggle { display: inline-flex; }
  .js .nav-links { border-top: 1px solid var(--line); padding-top: 14px; }
  .hero { padding-block: 50px; gap: 34px; grid-template-columns: 1.1fr .9fr; }
  .hero h1 { font-size: clamp(40px, 6.1vw, 58px); }
  .hero-copy .eyebrow { font-size: 9px; margin-bottom: 19px; }
  .hero-description { font-size: 14px; margin-top: 21px; }
  .hero-actions { gap: 10px; margin-top: 22px; }
  .hero-actions .button { padding: 11px 14px; font-size: 12px; }
  .hero-note { font-size: 9px; }
  .portrait-caption { font-size: 8px; gap: 8px; }
  .hero-strip { font-size: 9px; gap: 13px; }
  .section { padding-block: 66px; }
  .section-header { gap: 30px; }
  .section-intro { max-width: 295px; font-size: 13px; }
  .project-grid { gap: 22px; }
  .project-featured { grid-template-columns: 1fr 1fr; }
  .project-featured .project-body { padding: 26px; }
  .project-featured h3 { font-size: 27px; }
  .technical-art { padding: 25px; }
  .art-word { font-size: clamp(39px, 5.8vw, 49px); }
  .art-topline, .art-caption { font-size: 8px; }
  .project-body { padding: 24px; }
  .project-card h3 { font-size: 23px; }
  .experience-layout { grid-template-columns: .72fr 1.28fr; gap: 36px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .timeline-date br { display: none; }
  .leadership-grid { gap: 23px; }
  .leadership-card h3 { font-size: 19px; }
  .about-grid { gap: 35px; }
  .recognition-grid { gap: 36px; }
  .contact-grid { gap: 36px; }
  .form-row { gap: 14px; }
}
@media (max-width: 620px) {
  :root { --header-height: 68px; }
  html { scroll-padding-top: 92px; }
  .container { width: calc(100% - 40px); }
  .brand { gap: 9px; font-size: 15px; }
  .brand-mark { width: 31px; height: 31px; font-size: 21px; }
  .nav-actions { gap: 8px; }
  .theme-toggle, .menu-toggle { width: 35px; height: 35px; padding: 8px; }
  .nav-links { gap: 3px 24px; }
  .hero { grid-template-columns: 1fr; gap: 35px; padding-top: 38px; padding-bottom: 35px; }
  .hero h1 { font-size: clamp(43px, 11.7vw, 64px); max-width: 540px; }
  .hero-copy .eyebrow { margin-bottom: 19px; }
  .hero-description { font-size: 15px; max-width: 470px; line-height: 1.75; margin-top: 23px; }
  .hero-actions { margin-top: 24px; gap: 10px; }
  .hero-actions .button { min-height: 45px; padding: 12px 16px; }
  .hero-note { margin-top: 17px; font-size: 9px; }
  .hero-portrait { max-width: 340px; width: 82%; justify-self: center; transform: rotate(1deg); }
  .hero-portrait img { aspect-ratio: 4 / 3.65; object-position: center top; }
  .portrait-caption { font-size: 8px; padding-block: 12px; }
  .hero-strip { display: grid; grid-template-columns: 1fr; padding-block: 18px; gap: 10px; font-size: 9px; }
  .section { padding-block: 53px; }
  .section-header { display: block; margin-bottom: 26px; }
  .section-header h2, .experience-aside h2, .about-copy h2, .contact-copy h2 { font-size: 37px; }
  .section-header .eyebrow, .section-header .section-label { margin-bottom: 14px; }
  .section-intro { margin-top: 17px; max-width: 430px; font-size: 13px; }
  .project-filters { gap: 7px; margin-bottom: 24px; }
  .filter-button { padding: 7px 11px; font-size: 11px; }
  .project-grid { grid-template-columns: 1fr; gap: 22px; }
  .project-featured { grid-template-columns: 1fr; }
  .project-visual { min-height: 265px; }
  .technical-art { min-height: 265px; padding: 23px; border-right: 0; border-bottom: 1px solid #76505e; }
  .art-word { font-size: clamp(43px, 10vw, 60px); padding-block: 35px; }
  .art-topline, .art-caption { font-size: 8px; }
  .art-paths { right: -20px; bottom: 12px; width: 210px; height: 210px; }
  .project-featured .project-body { padding: 26px 23px; }
  .project-featured h3 { font-size: 28px; }
  .project-card h3 { line-height: 1.15; }
  .project-body { padding: 23px; }
  .project-meta { margin-bottom: 14px; }
  .project-body > p { font-size: 13px; }
  .project-media img { aspect-ratio: 16 / 10; }
  .project-text-visual { min-height: 150px; padding: 26px; }
  .project-symbol { font-size: 53px; }
  .project-text-visual p { max-width: 160px; }
  .experience-layout { grid-template-columns: 1fr; gap: 31px; }
  .experience-aside { position: static; }
  .experience-aside p { max-width: 430px; margin-top: 18px; }
  .experience-aside .text-link { margin-top: 18px; }
  .timeline-item { padding-block: 25px; gap: 9px; }
  .timeline-content h3 { font-size: 22px; }
  .timeline-date { font-size: 10px; }
  .leadership-grid { grid-template-columns: 1fr; gap: 27px; }
  .leadership-card { padding-top: 20px; }
  .leadership-number { margin-bottom: 17px; }
  .leadership-card h3 { font-size: 22px; }
  .leadership-card p { max-width: 460px; }
  .about-grid { grid-template-columns: 1fr; gap: 35px; }
  .about-copy > p { margin-top: 20px; }
  .education { padding-top: 20px; }
  .education-item { padding-block: 19px; }
  .skills-header { margin-top: 40px; }
  .skills-header h2 { font-size: 29px; }
  .data-visual .project-symbol { font-size: clamp(30px, 8vw, 46px); }
  .web-visual .project-symbol { font-size: 48px; }
  .skills-grid { grid-template-columns: 1fr; margin-top: 35px; padding-top: 24px; gap: 25px; }
  .skill-group h3 { margin-bottom: 10px; }
  .skill-list { font-size: 12px; }
  .recognition-grid { grid-template-columns: 1fr; gap: 34px; }
  .compact-list li { gap: 16px; }
  .compact-list strong { font-size: 12px; }
  .compact-list span { font-size: 9px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-copy > p { max-width: 440px; margin-top: 19px; }
  .contact-links { gap: 13px; margin-top: 23px; }
  .form-field input, .form-field textarea { font-size: 16px; }
  .form-row { gap: 14px; }
  .contact-form .button { width: 100%; }
  .footer-container { flex-direction: column; align-items: flex-start; gap: 16px; padding-block: 23px; }
  .footer-links { gap: 20px; }
}
@media (max-width: 380px) {
  .container { width: calc(100% - 32px); }
  .brand { font-size: 14px; }
  .brand-mark { width: 28px; height: 28px; font-size: 20px; }
  .nav { gap: 0 12px; }
  .nav-actions { gap: 6px; }
  .theme-toggle, .menu-toggle { width: 33px; height: 33px; }
  .hero h1 { font-size: 42px; }
  .hero-description { font-size: 14px; }
  .hero-portrait { width: 88%; }
  .section-header h2, .experience-aside h2, .about-copy h2, .contact-copy h2 { font-size: 34px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .button:hover, .project-card:hover .project-media img { transform: none; }
}
@media print {
  :root, html[data-theme='dark'] { color-scheme: light; --paper: #fff; --surface: #fff; --soft: #fff; --ink: #111; --muted: #444; --line: #bbb; --accent: #422032; }
  body { font-size: 10pt; }
  html { scroll-padding: 0; }
  .container { width: 100%; }
  .site-header { position: static; height: auto; min-height: 0; border-bottom: 1px solid #aaa; }
  .nav { min-height: 0; padding-block: 12px; }
  .nav-links, .nav-actions, .skip-link, .project-filters, .hero-actions, .contact-form, .back-to-top { display: none !important; }
  .hero { padding-block: 26px; grid-template-columns: 1.4fr .6fr; gap: 35px; }
  .hero h1 { font-size: 33pt; }
  .hero-portrait { transform: none; max-width: 180px; }
  .hero-portrait::before { display: none; }
  .hero-description { font-size: 10pt; }
  .hero-strip { font-size: 7pt; padding-block: 12px; }
  .section { padding-block: 25px; }
  .section-header h2, .experience-aside h2, .about-copy h2, .contact-copy h2 { font-size: 25pt; }
  .project-grid { gap: 16px; }
  .project-card, .timeline-item, .leadership-card, .education-item { break-inside: avoid; }
  .project-featured { color: #111; background: #fff; border-color: #bbb; }
  .project-featured .project-body > p, .project-featured .project-meta, .project-featured .tags, .project-featured .project-index, .project-featured .text-link { color: #444; }
  .technical-art { min-height: 220px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .project-visual { min-height: 220px; }
  .project-body, .project-featured .project-body { padding: 18px; }
  .project-card h3, .project-featured h3 { font-size: 17pt; }
  .project-media img { max-height: 160px; }
  .project-body > p, .timeline-content > p, .leadership-card p { font-size: 9pt; }
  .experience-aside { position: static; }
  .experience-layout, .about-grid, .contact-grid { gap: 30px; }
  .skills-grid { margin-top: 25px; padding-top: 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-container { padding-block: 15px; }
  a { text-decoration: none; }
}


/* A text-led app feature works without a screenshot and can accept one later. */
.project-app { grid-column: 1 / -1; display: grid; grid-template-columns: .85fr 1.15fr; }
.project-app .project-body { padding: 38px; }
.project-app .project-links, .detail-body .project-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.quiet-visual { min-height: 420px; height: 100%; aspect-ratio: auto; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; background: #dde8de; color: #31533c; padding: 38px; }
.quiet-word { font-size: clamp(52px, 5.6vw, 80px); line-height: .98; letter-spacing: -4px; font-weight: 650; }
.quiet-word em { font-family: Georgia, serif; font-weight: 400; }
.quiet-visual p { max-width: none; }
html[data-theme='dark'] .quiet-visual { background: #25392e; color: #c5dfc5; }
.compact-list li > .text-link { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 850px) {
  .project-app { grid-template-columns: 1fr; }
  .quiet-visual { min-height: 280px; padding: 30px; }
  .quiet-word { font-size: 66px; }
  .project-app .project-body { padding: 28px; }
}
@media (max-width: 380px) { .menu-toggle { width: auto; min-width: 64px; } }
@media print {
  .project-app { grid-template-columns: 1fr 1.5fr; }
  .quiet-visual { min-height: 220px; print-color-adjust: exact; }
  .quiet-word { font-size: 46px; }
}

/* Keep recognition metadata readable and result links on their own line. */
.compact-list li { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 10px 20px; }
.compact-list span { max-width: none; font-size: 11px; }
.compact-list li > p, .compact-list li > .text-link { grid-column: 1 / -1; }
@media (max-width: 620px) {
  .compact-list li { grid-template-columns: 1fr; gap: 7px; padding-block: 18px; }
  .compact-list strong { font-size: 14px; }
  .compact-list span { text-align: left; font-size: 11px; }
}
@media print {
  .project-featured .result-number, .project-featured .project-result span,
  .project-featured .detail-body, .project-featured .detail-body h4,
  .project-featured .status, .project-featured summary { color: #222; }
}
