@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: Karla;
  src: url("../fonts/karla-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --canvas: #141414;
  --white: #fff;
  --muted: #ccc;
  --copper: #c2895c;
  --blue: #5091fa;
  --display: "DM Sans", Arial, sans-serif;
  --body: Karla, Arial, sans-serif;
  --header-height: 76px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--white); font: 400 1.125rem/1.5 var(--body); }
main { background: var(--canvas) url("../images/darkBGLines.svg") repeat; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }
img, svg { vertical-align: middle; }
img { max-width: 100%; height: auto; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
[hidden] { display: none !important; }
h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  white-space: nowrap; clip-path: inset(50%);
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 8px 14px; background: white; color: #141414; }

/* The original header opens its navigation inline on desktop. */
.site-header { position: fixed; z-index: 5; inset: 0 0 auto; background: linear-gradient(#050505ed, #090909ba 55%, transparent); }
.header-inner { min-height: 129px; padding: 0 clamp(24px, 4vw, 78px); display: flex; gap: 26px; align-items: center; transition: min-height .22s; }
.site-header.compact .header-inner { min-height: var(--header-height); }
.site-header.compact { background: linear-gradient(#050505f5, #0a0a0ad6 66%, #10101014); }
.brand { display: grid; align-items: center; min-height: 44px; margin-right: auto; flex: none; }
.brand img { display: block; width: 57px; height: auto; }
#primary-nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 36px); font: 500 .86rem/1.3 var(--body); }
#primary-nav a, .site-footer a { text-decoration: none; }
#primary-nav a { padding-block: 12px; }
#primary-nav a:hover, .site-footer a:hover { color: white; text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 44px; padding: 0 12px;
  background: transparent; border: 0; color: white; font: 600 .87rem/1 var(--body);
}
.menu-bars { width: 27px; height: 26px; position: relative; display: inline-block; }
.menu-bars::before, .menu-bars::after {
  position: absolute; content: ""; height: 2px; right: 0; background: currentColor;
  transition: width .18s, transform .18s; transform-origin: center;
}
.menu-bars::before { width: 17px; top: 9px; }
.menu-bars::after { width: 25px; top: 17px; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { width: 23px; transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { width: 23px; transform: translateY(-4px) rotate(-45deg); }

.hero { padding: 92px 0 65px; }
.hero-inner { width: min(1170px, calc(100% - 54px)); margin-inline: auto; display: grid; align-items: start; grid-template-columns: 25% 75%; }
.identity { position: sticky; top: 96px; padding: 0 15px; margin-top: 88px; }
.identity h1 { font-size: 2.5rem; line-height: 1.25; font-weight: 700; margin-bottom: 40px; }
.role { font: 500 3.25rem/1.15 var(--display); color: #9d9d9d; letter-spacing: -.022em; }
.rotating-role { display: block; color: white; }
.trait { margin: 28px 0 25px; font: 700 1.625rem/1.2 var(--display); letter-spacing: -.025em; }
.trait span { display: inline-block; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 16px; margin: 0 0 17px; }
.work-link, .resume-link { display: inline-flex; align-items: center; min-height: 44px; font: 650 .9375rem/1.2 var(--body); }
.work-link { gap: 10px; padding: 10px 16px; border-radius: 24px; color: #211810; background: #dfab80; text-decoration: none; }
.work-link:hover { background: #f4c8a3; }
.resume-link { color: #e8e8e8; text-decoration-color: #8c8c8c; text-underline-offset: 4px; }
.resume-link:hover { text-decoration-color: var(--copper); }
.word-in { animation: word-in .24s ease-out; }
@keyframes word-in { from { opacity: .42; transform: translateY(.13em); } to { opacity: 1; transform: none; } }
.social-links { display: flex; align-items: center; gap: clamp(32px, 5.8vw, 80px); }
.social-links a { display: grid; place-items: center; width: 44px; height: 44px; color: #c6c6c6; }
.social-links svg { width: 28px; height: 28px; }
.social-links a:hover { color: white; }
.hero-profile { padding: 0 15px; min-width: 0; }
.hero-portrait img { display: block; width: min(800px, 100%); height: auto; }
.tenure { display: flex; position: relative; justify-content: flex-end; align-items: flex-end; gap: 26px; margin-top: -132px; }
.tenure-number { font: 700 clamp(13rem, 22.3vw, 18.75rem)/.87 var(--display); letter-spacing: -.06em; color: var(--copper); }
.tenure p { flex: 0 1 215px; padding: 0 0 15px; font: 700 1.3125rem/1.25 var(--body); color: #e5e5e5; }
.bio { margin: 68px 0 0; font-size: 1.125rem; line-height: 1.5; }
.bio p + p { margin-top: 12px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 74px; }
.fact { position: relative; padding-left: clamp(32px, 3.45vw, 46px); }
.fact svg { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; }
.fact dt { font: 700 1.125rem/1.15 var(--display); }
.fact dd { font-size: .9375rem; line-height: 1.7; overflow-wrap: anywhere; }
.fact a { text-decoration: none; }
.fact a:hover { text-decoration: underline; }

.section-title { font-size: 2.5rem; line-height: 1.3; font-weight: 700; text-align: center; }
.experience { padding: 24px 0 54px; }
.experience-intro, .jobs { width: min(1160px, calc(100% - clamp(80px, 17.8vw, 240px))); margin-inline: auto; }
.experience-intro { position: relative; text-align: center; padding: 0 0 66px; }
.since { display: inline-block; font: 700 1rem/1 var(--display); padding: 6px 14px; background: linear-gradient(#fff, #dff4e9); color: #101615; border-radius: 99px; }
.experience-intro .section-title { margin: 26px 0 0; letter-spacing: .01em; }
.laptop-avatar { position: absolute; width: 62px; right: 7.2%; top: 55px; pointer-events: none; }
.jobs { display: grid; gap: 11px; }
.job { min-width: 0; overflow: clip; border: 1px solid #aaa; border-radius: 10px; }
.job summary { display: flex; list-style: none; cursor: pointer; gap: 22px; align-items: center; justify-content: space-between; padding: 18px 20px; min-height: 91px; }
.job summary::-webkit-details-marker { display: none; }
.job summary:focus-visible { outline-offset: -4px; border-radius: 9px; }
.job summary:hover { background: #ffffff08; }
.job-heading { font: 500 1.25rem/1.25 var(--display); }
.job-date { display: block; margin-top: 2px; color: #ff5f63; font-weight: 700; }
.job-date.current { color: #39c773; }
.expand-icon { display: grid; position: relative; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: #f5f5f5; color: #171717; }
.expand-icon::before, .expand-icon::after { content: ""; position: absolute; width: 10px; height: 1.5px; background: currentColor; }
.expand-icon::after { transform: rotate(90deg); }
.job[open] .expand-icon::after { transform: rotate(0deg); }

/* Expanded work samples keep the original light background and dark type. */
.job-body { background: #f4f4f4; color: #151515; padding: 28px 30px 38px; font: 400 1.0625rem/1.48 var(--body); }
.job-body h3 { font-size: 1.52rem; margin: 16px 0; line-height: 1.3; }
.job-body h4 { font-size: 1.125rem; line-height: 1.3; }
.job-body a:not(.case-link) { text-underline-offset: .16em; }
.company-logo { display: block; max-width: min(200px, 72%); max-height: 85px; object-fit: contain; object-position: left; }
.case-meta { list-style: none; padding: 0; margin: 12px 0 6px; display: grid; gap: 3px; }
.case-meta li { display: flex; align-items: baseline; gap: 9px; }
.case-meta svg { flex: none; width: 14px; height: 14px; align-self: start; margin-top: 5px; }
.case-points, .case-study, .case-showcase { margin-top: 34px; }
.case-points > .case-column { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 30px; }
.case-point { position: relative; min-width: 0; padding-left: 30px; }
.case-point::before { content: "›"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border: 1px solid #c9c9c9; border-radius: 50%; display: grid; place-items: center; color: #37658b; font: 600 1rem/1 var(--display); }
.case-point p { margin-top: 6px; }
.case-study { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: center; padding-top: 32px; border-top: 1px solid #d6d3d0; }
.case-study h4, .case-showcase h4 { margin: 0 0 14px; font-size: clamp(1.4rem, 2.1vw, 1.85rem); line-height: 1.15; letter-spacing: -.03em; }
.case-study .case-meta { gap: 6px; }
.case-column { min-width: 0; }
.case-photo { display: block; margin-inline: auto; max-width: 100%; max-height: 520px; width: auto; height: auto; border-radius: 8px; object-fit: contain; }
.image-caption { margin-top: 8px; text-align: center; font-size: .94rem; color: #373c3e; }
.case-link { display: inline-flex; width: fit-content; margin-top: 16px; padding: 8px 18px; border: 1px solid #222; border-radius: 24px; color: #fff; background: #222; font: 600 .9375rem/1.4 var(--body); text-decoration: none; }
.case-link:hover { background: #2c4e76; }
.case-link::after { content: "→" / ""; margin-left: 9px; align-self: center; font-family: Arial, sans-serif; line-height: 1; transform: rotate(-45deg); }
.case-showcase h4 { margin-bottom: 5px; }
.case-showcase .gallery { margin-top: 18px; }

.education { padding: 45px 0 68px; }
.education .section-title, .projects .section-title { font-size: 2.1875rem; }
.degrees { width: calc(100% - 76px); max-width: 1530px; margin: 56px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.degree { display: flex; align-items: flex-start; gap: 36px; padding: 34px clamp(25px, 3.7vw, 52px) 39px; border-radius: 15px; color: #111; background: #fff; transition: background-color .2s, color .2s; }
.degree > svg { width: 25px; height: 25px; flex: none; color: var(--blue); }
.degree h3 { font-size: 1.1875rem; line-height: 1.25; }
.degree p { margin-top: 9px; font: 400 1.125rem/1.5 var(--body); }
@media (hover:hover) {
  .degree:hover { background: #1a4265; color: white; }
  .degree:hover > svg { color: #f0f0f0; }
}
.skills { padding: 44px 0 60px; }
.skills-layout { display: grid; grid-template-columns: minmax(180px, .57fr) minmax(0, 2.2fr); gap: clamp(24px, 4vw, 60px); width: min(1160px, calc(100% - 64px)); margin: 44px auto 0; }
.stats { padding-top: 10px; }
.stat-line { width: 48px; height: auto; }
.stat { margin-top: 24px; }
.stat strong { font: 700 clamp(4rem, 7.2vw, 5.7rem)/1 var(--display); letter-spacing: -.045em; }
.stat p { margin-top: 7px; font: 500 1.625rem/1.16 var(--body); }
.stat.outlined { margin-top: 69px; }
.outlined strong { color: transparent; -webkit-text-stroke: 1px #919191; }
.skills-intro { margin: 0 0 24px; max-width: 780px; color: #ddd; font: 450 1.17rem/1.48 var(--body); }
.skill-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.skill-group { min-width: 0; padding: clamp(18px, 2.1vw, 28px); border: 1px solid #39393b; border-radius: 14px; background: #1b1b1d; }
.skill-group:last-child { grid-column: 1 / -1; }
.skill-group h3 { margin: 0 0 15px; font-size: 1.15rem; line-height: 1.25; letter-spacing: -.02em; }
.skill-group ul { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 7px; padding: 0; list-style: none; }
.skill-group li { max-width: 100%; padding: 5px 11px; border: 1px solid #444348; border-radius: 15px; background: #242427; color: #f3f3f4; font-size: .925rem; line-height: 1.4; overflow-wrap: anywhere; }
.skill-duration { display: inline-block; color: #e4b896; white-space: nowrap; font-size: .86rem; }
.skill-duration::before { content: ""; display: inline-block; height: .8em; margin: 0 .4em 0 .18em; border-left: 1px solid #736459; vertical-align: -.02em; }
.projects { padding: 12px 0 62px; }
.projects .section-title { margin-bottom: 36px; }

/* Each portfolio is also a touch- and keyboard-scrollable list without JS. */
.gallery { min-width: 0; position: relative; }
.gallery-window { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: #8a8a8a55 transparent; overscroll-behavior-x: contain; }
.gallery-track, .gallery-group { display: flex; align-items: center; width: max-content; }
.gallery-group { list-style: none; padding: 0; margin: 0; }
.gallery-group li { flex: none; width: clamp(175px, 22vw, 355px); padding: 0 5px; }
.gallery-group img { width: 100%; height: auto; display: block; }
.gallery-group a { display: block; }
.gallery-group a:focus-visible { outline-offset: -3px; }
.gallery-controls { display: flex; width: fit-content; gap: 4px; margin: 8px auto 0; opacity: .75; }
.gallery-controls button { display: grid; place-items: center; min-width: 36px; min-height: 32px; border-radius: 18px; border: 1px solid #8888; background: transparent; color: inherit; font: 600 1.1rem/1 var(--body); }
.gallery-controls button:hover, .gallery-controls button:focus-visible { opacity: 1; border-color: currentColor; }
.case-showcase .gallery-group li { width: clamp(150px, 19vw, 275px); }
.contact { isolation: isolate; position: relative; padding: 90px clamp(24px, 3.2vw, 64px) 82px; text-align: center; }
.contact h2 { max-width: 1400px; margin: auto; font-size: clamp(2rem, 3.1vw, 2.625rem); line-height: 1.24; }
.contact-note { max-width: 580px; margin: 16px auto 0; color: #d3d3d3; font-size: 1.15rem; }
.contact-link { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; padding: 18px 47px; margin-top: 48px; border-radius: 50px; color: #101010; background: white; box-shadow: 0 18px 42px #52526450; text-decoration: none; font: 700 .94rem/1.35 var(--body); }
.contact-link:hover { background: var(--blue); color: #0d192d; }
.wave-avatar { position: absolute; z-index: -1; width: clamp(90px, 9.5vw, 145px); bottom: 49px; right: 5.5%; }
.site-footer { background: #161616; color: #aaa; }
.footer-inner { min-height: 325px; width: min(1160px, calc(100% - 96px)); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.site-footer address { display: flex; flex-direction: column; font: 500 1.875rem/1.5 var(--display); letter-spacing: -.035em; }
.site-footer nav { display: flex; gap: 42px; color: #eee; font-size: 1rem; }

@media (max-width:1199px) {
  :root { --header-height: 90px; }
  .site-header, .site-header.compact { background: #161616f5; }
  .header-inner, .site-header.compact .header-inner { min-height: var(--header-height); }
  .brand img { width: 48px; }
  #primary-nav { flex-wrap: wrap; justify-content: flex-end; }
  .hero { padding-top: 145px; }
  .hero-inner { width: min(1140px, calc(100% - 20px)); grid-template-columns: 1fr; }
  .identity { position: static; margin: 0; }
  .identity h1 { margin-bottom: 40px; }
  .role { font-size: clamp(2.4rem, 7vw, 5rem); }
  .rotating-role { display: inline; }
  .trait { display: none; }
  .hero-actions { margin: 15px 0 3px; }
  .social-links, .menu-toggle > span:first-child { display: none; }
  .menu-bars { width: 22px; background: linear-gradient(currentColor, currentColor) left center / 13px 2px no-repeat; }
  .menu-bars::before { top: 6px; width: 21px; }
  .menu-bars::after { top: 18px; width: 21px; }
  .menu-toggle[aria-expanded="true"] .menu-bars { background: none; }
  .menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .hero-profile { margin-top: 12px; }
  .hero-portrait img { width: min(800px,100%); }
  .tenure { display: grid; grid-template-columns: 44% 1fr; align-items: center; padding-inline: 10px; gap: 0; margin-top: -140px; }
  .tenure p { max-width: 235px; padding-bottom: 0; }
  .tenure-number { font-size: clamp(12rem, 28vw, 18.75rem); line-height: 1; }
  .tenure-number.double-digits { font-size: clamp(9rem, 22vw, 16rem); }
  .bio { margin-top: 54px; }
  .facts { margin-top: 38px; }
  .experience-intro, .jobs { width: calc(100% - 96px); }
  .degrees { gap: 26px; width: calc(100% - 64px); }
  .degree { gap: 20px; padding: 30px; }
  .skills-layout { grid-template-columns: minmax(145px, .55fr) minmax(0, 2.2fr); }
}
@media (max-width:900px) {
  .case-study { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width:767px) {
  :root { --header-height: 78px; }
  .header-inner { padding: 0 20px; gap: 10px; }
  .menu-toggle { padding-right: 0; }
  #primary-nav { gap: 8px 14px; font-size: .85rem; }
  .site-header.enhanced #primary-nav { position: absolute; top: 100%; left: 0; right: 0; display: grid; padding: 10px 22px 20px; gap: 0; background: #171717; box-shadow: 0 16px 18px #0004; }
  #primary-nav a { padding: 9px 6px; }
  .hero { padding: 137px 0 50px; }
  .hero-inner { width: 100%; }
  .identity, .hero-profile { padding-inline: 15px; }
  .identity h1 { font-size: 2.5rem; line-height: 1.25; margin-bottom: 36px; }
  .role { font-size: clamp(1.7rem, 8vw, 3rem); }
  .rotating-role { display: block; }
  .tenure { grid-template-columns: 1fr 1fr; align-items: center; gap: 0; margin-top: clamp(-92px, -24vw, -62px); padding-inline: 10px; }
  .tenure-number { font-size: clamp(10.8rem, 64vw, 15.625rem); line-height: 1; }
  .tenure-number.double-digits { font-size: clamp(5.8rem, 36vw, 12rem); }
  .tenure p { max-width: 175px; padding: 0 0 0 10px; color: #eee; font-size: clamp(1rem, 5vw, 1.1875rem); line-height: 1.06; }
  .bio { margin-top: 26px; font-size: 1.125rem; line-height: 1.5; }
  .facts { grid-template-columns: 1fr 1fr; gap: 18px 12px; margin-top: 30px; }
  .fact { padding-left: 27px; }
  .fact svg { width: 18px; height: 18px; }
  .fact dt { font-size: 1rem; }
  .fact dd { font-size: .875rem; }
  .section-title, .education .section-title, .projects .section-title { font-size: clamp(1.85rem, 6.8vw, 2.25rem); line-height: 1.15; }
  .experience { padding-top: 22px; padding-bottom: 30px; }
  .experience-intro, .jobs { width: calc(100% - 36px); }
  .experience-intro { padding: 0 0 27px; }
  .experience-intro .section-title { margin-top: 18px; }
  .since { font-size: .88rem; }
  .laptop-avatar { position: static; width: 35px; margin-top: 12px; }
  .job summary { min-height: 88px; padding: 13px 14px; gap: 10px; }
  .job-heading { font-size: 1.04rem; }
  .job-heading .separator { display: none; }
  .job-heading .position { display: block; }
  .expand-icon { width: 26px; height: 26px; }
  .job-body { padding: 22px 16px; font-size: 1rem; }
  .case-points > .case-column, .case-study { grid-template-columns: 1fr; gap: 16px; }
  .case-point { padding-left: 25px; }
  .case-study, .case-showcase, .case-points { margin-top: 25px; }
  .case-study { padding-top: 24px; }
  .education { padding: 28px 0 38px; }
  .degrees { grid-template-columns: 1fr; gap: 14px; width: calc(100% - 36px); margin-top: 26px; }
  .degree { flex-direction: column; align-items: center; text-align: center; padding: 24px 18px; gap: 13px; }
  .degree h3 { line-height: 1.32; }
  .degree p { margin-top: 6px; font-size: 1rem; }
  .skills { padding: 25px 0 34px; }
  .skills .section-title { padding-inline: 20px; }
  .skills-layout { width: calc(100% - 44px); grid-template-columns: 1fr; gap: 30px; margin-top: 28px; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; padding-top: 0; }
  .stat-line { grid-column: 1/-1; width: 34px; margin-bottom: 12px; }
  .stat, .stat.outlined { margin: 0; }
  .stat strong { font-size: clamp(3rem, 12vw, 4.3rem); }
  .stat p { font-size: 1.1rem; }
  .skills-intro { font-size: 1.05rem; margin-bottom: 20px; }
  .skill-columns { gap: 10px; grid-template-columns: 1fr; }
  .skill-group h3 { margin-bottom: 12px; }
  .projects { padding: 16px 0 30px; }
  .projects .section-title { margin-bottom: 25px; }
  .gallery-group li { width: clamp(150px, 49vw, 255px); }
  .case-showcase .gallery-group li { width: clamp(126px, 42vw, 205px); }
  .gallery-controls button { min-width: 40px; min-height: 40px; }
  .contact { padding: 49px 20px 38px; }
  .contact h2 { font-size: clamp(1.65rem, 6.5vw, 2rem); }
  .contact-link { margin-top: 23px; }
  .wave-avatar { display: block; position: static; width: 80px; margin: 17px auto 0; }
  .footer-inner { min-height: 220px; width: calc(100% - 44px); flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; }
  .site-footer address { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
