:root {
  color-scheme: light;
  --page: #fafafa;
  --surface: #fff;
  --ink: #242424;
  --muted: #656565;
  --line: #d8d8d8;
  --soft: #f0f0f0;
  --ground: #959595;
  --pixel-font: 'Press Start 2P', 'Courier New', monospace;
  --body-font: 'Courier New', Courier, monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #181818;
  --surface: #202020;
  --ink: #efefef;
  --muted: #b2b2b2;
  --line: #424242;
  --soft: #292929;
  --ground: #808080;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--body-font); font-size: 16px; line-height: 1.7; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
button, summary { touch-action: manipulation; }
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
::selection { color: var(--page); background: var(--ink); }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 10px 18px; background: var(--ink); color: var(--page); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.shell { width: min(1120px, calc(100% - 80px)); margin: 0 auto; }
.topbar { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 13px; font-family: var(--pixel-font); font-size: 12px; line-height: 1.8; }
.brand-mark { width: 10px; height: 10px; background: var(--ink); box-shadow: 4px 4px 0 var(--line); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 6px 12px; background: transparent; border: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.theme-toggle:hover { border-color: var(--ink); background: var(--soft); }
.theme-icon { display: block; height: 12px; width: 12px; border: 2px solid currentColor; box-shadow: 3px 3px 0 var(--ground); }
.theme-toggle[aria-pressed="true"] .theme-icon { background: currentColor; }

.hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.profile-card, .summary-card { border: 1px solid var(--line); padding: 27px; background: var(--surface); min-width: 0; }
.profile-row { display: grid; grid-template-columns: minmax(0, 1fr) 116px; align-items: start; gap: 20px; }
.profile-copy { min-width: 0; }
.avatar { display: block; width: 116px; height: 150px; object-fit: cover; object-position: center 42%; border: 5px solid var(--surface); outline: 1px solid var(--line); }
.eyebrow { color: var(--muted); font-size: 12px; line-height: 1.7; letter-spacing: 0.5px; margin: 0 0 15px; }
h1 { font: 400 clamp(24px, 2.6vw, 32px)/1.6 var(--pixel-font); margin: 0 0 19px; letter-spacing: -1px; overflow-wrap: normal; }
.social-links { display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: 16px; }
.external { font-family: var(--body-font); margin-left: 5px; }
.resume-download { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; min-height: 48px; padding: 10px 16px; border: 1px solid var(--ink); background: var(--ink); color: var(--surface); font-size: 14px; text-decoration: none; box-shadow: 4px 4px 0 var(--line); }
.resume-download:hover { background: var(--surface); color: var(--ink); }
.summary-card h2 { margin: 0 0 18px; font: 400 12px/1.8 var(--pixel-font); }
.summary-card p { margin: 0; font-size: 16px; line-height: 1.75; }
.content-grid { display: block; margin: 28px auto 0; padding-bottom: 38px; }
.footer-cactus { display: grid; grid-template-columns: repeat(15, 2px); grid-auto-rows: 2px; color: var(--muted); }
.footer-cactus i { background: currentColor; }
.section { border: 1px solid var(--line); background: var(--surface); margin-bottom: 14px; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.section-title { display: flex; align-items: center; gap: 16px; min-height: 75px; padding: 19px 20px; }
h2, h3, p { overflow-wrap: anywhere; }
.section-title h2 { font-family: var(--pixel-font); font-size: 12px; font-weight: 400; line-height: 1.85; margin: 0; }
.section-number { color: var(--muted); font-size: 12px; }
.toggle-symbol { font-family: var(--body-font); font-size: 24px; font-weight: 400; line-height: 1; margin-left: auto; flex: 0 0 18px; text-align: center; }
.toggle-symbol::before { content: '+'; }
details[open] > summary .toggle-symbol::before { content: '−'; }
.section > summary:hover, .section[open] > summary { background: var(--soft); }
.section[open] { border-color: var(--ground); }
.section-content { padding: 0 22px 23px; border-top: 1px solid var(--line); }
.section-content p:last-child { margin-bottom: 0; }
.section-content p { margin-top: 20px; }
.section-content ul { padding-left: 18px; margin: 20px 0 0; }
.section-content li + li { margin-top: 13px; }
.section-content li::marker, .job-body li::marker { content: '▪  '; color: var(--muted); }
.certifications { list-style: none; padding-left: 0 !important; }
.certifications li { border-bottom: 1px dashed var(--line); padding-bottom: 15px; }
.certifications li:last-child { border: 0; padding-bottom: 0; }
.verify-link { display: inline-block; font-size: 14px; margin-top: 20px; }
.award + .award { padding-top: 19px; margin-top: 19px; border-top: 1px dashed var(--line); }
.award h3, .skill-group h3 { font-size: 16px; line-height: 1.65; margin: 20px 0 8px; }
.award p, .skill-group p { margin: 0; }
.skill-group + .skill-group { border-top: 1px dashed var(--line); margin-top: 20px; }
.education-name { font-weight: bold; }
.experiences { margin-bottom: 30px; }
.experience-heading { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; min-height: 34px; }
.experience-heading h2 { font-family: var(--pixel-font); font-size: 14px; font-weight: 400; line-height: 1.8; margin: 0; }
.heading-line { height: 1px; background: var(--line); flex: 1; margin-left: 5px; }
.job { border-bottom: 1px solid var(--line); }
.job:first-child { border-top: 1px solid var(--line); }
.job-summary { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 8px 18px; padding: 23px 13px 23px 0; }
.job-summary:hover { background: var(--soft); }
.job-summary h3 { font-size: 18px; line-height: 1.45; font-weight: bold; margin: 0 0 4px; }
.job-role { display: block; font-size: 16px; line-height: 1.6; }
.job-dates { display: block; color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 8px; }
.job-summary .toggle-symbol { align-self: center; margin: 0; }
.job[open] > .job-summary .job-dates { color: var(--ink); }
.job-body { padding: 0 26px 23px 20px; }
.job-body ul { padding-left: 0; margin: 0; }
.job-body li + li { margin-top: 10px; }
.extra-button { margin-top: 22px; width: 100%; display: flex; justify-content: space-between; gap: 20px; align-items: center; min-height: 55px; padding: 14px 17px; border: 1px dashed var(--ground); background: transparent; text-align: left; cursor: pointer; font-size: 14px; }
.extra-button:hover { background: var(--soft); border-style: solid; }
.extra-button[aria-expanded="true"] .toggle-symbol::before { content: '−'; }
.additional-roles { margin-top: 22px; }
.additional-roles .job-summary h3 { font-size: 16px; }
.projects .section-title { min-height: 75px; }
.projects .section-content { padding: 0 20px 20px; }
.project { border: 1px solid var(--line); margin-top: 18px; }
.project-summary { display: flex; align-items: center; gap: 15px; padding: 18px; }
.project-summary:hover { background: var(--soft); }
.project-summary h3 { font-size: 16px; font-weight: bold; line-height: 1.65; margin: 0; }
.project-body { padding: 0 18px 18px; }
.project-body p { margin: 0; }
.footer { border-top: 1px solid var(--line); padding: 24px 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 12px; }
.end-marker { display: flex; align-items: center; gap: 12px; font-family: var(--pixel-font); font-size: 12px; }
.end-marker::before { content: ''; display: block; width: 6px; height: 6px; border: 1px solid currentColor; }
details[open] > .section-content, details[open] > .job-body, details[open] > .project-body { animation: reveal 180ms ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.section-title h2 { font-size: 14px; }
.experiences { margin-bottom: 14px; }
.experience-heading { min-height: 75px; padding: 19px 20px; border-bottom: 1px solid var(--line); margin: 0; }
.primary-roles, .additional-roles { padding: 0 24px; }
.job:first-child { border-top: 0; }
.primary-roles .job:last-child, .additional-roles .job:last-child { border-bottom: 0; }
.job-summary > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; }
.job-summary h3 { grid-column: 1; }
.job-role { grid-column: 1; }
.job-dates { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin-top: 0; }
.extra-button { margin: 0 24px 24px; width: calc(100% - 48px); }
.additional-roles { margin-top: 0; border-top: 1px solid var(--line); }
.additional-roles .job-summary h3 { font-size: 18px; }
.section-content { padding: 0 24px 24px; }
.projects .section-content { padding: 0 24px 24px; }
.certifications { display: block; }
.certifications li { padding-top: 15px; }
.certifications li + li { margin-top: 0; }

.footer { padding-top: 18px; align-items: center; }
@media (max-width: 1050px) {
  .shell { width: calc(100% - 48px); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .profile-card, .summary-card { padding: 22px; }
  .profile-row { grid-template-columns: minmax(0, 1fr) 92px; gap: 16px; }
  .avatar { width: 92px; height: 124px; }
  h1 { font-size: 24px; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .profile-row { grid-template-columns: minmax(0, 1fr) 116px; }
  .avatar { width: 116px; height: 150px; }
  h1 { font-size: 32px; }
  .resume-download { margin-top: 22px; }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 32px); }
  .topbar { min-height: 76px; }
  .brand-word { display: none; }
  .profile-card, .summary-card { padding: 20px; }
  .profile-row { grid-template-columns: minmax(0, 1fr) 88px; gap: 16px; }
  .avatar { width: 88px; height: 116px; }
  h1 { font-size: 24px; }
  .social-links { font-size: 14px; gap: 12px; }
  .eyebrow { font-size: 12px; letter-spacing: 0; }
  .section-title { padding: 18px 16px; gap: 12px; }
  .section-title h2 { font-size: 12px; }
  .experience-heading { padding: 18px 16px; gap: 12px; }
  .experience-heading h2 { font-size: 12px; }
  .job-summary > div { display: block; }
  .job-dates { margin-top: 8px; }
  .job-summary h3, .additional-roles .job-summary h3 { font-size: 17px; }
  .primary-roles, .additional-roles { padding: 0 18px; }
  .job-summary { padding-right: 0; }
  .extra-button { margin: 0 18px 18px; width: calc(100% - 36px); }
  .certifications { display: block; }
  .section-content, .projects .section-content { padding: 0 18px 20px; }
  .footer { gap: 20px; }
}
@media (max-width: 390px) {
  h1 { font-size: 20px; }
  .profile-row { grid-template-columns: minmax(0, 1fr) 72px; gap: 12px; }
  .avatar { width: 72px; height: 100px; }
  .profile-card, .summary-card { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
