:root {
  color-scheme: light;
  --background: #f1f3f2;
  --paper: #fff;
  --text: #20272b;
  --muted: #535e66;
  --line: #d7dddf;
  --accent: #2d6077;
  --accent-hover: #20485b;
  --soft: #e8eff1;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height, 96px) + 20px); }
body { margin: 0; background: var(--background); color: var(--text); font: 18px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: #d7e6ee; color: #102d40; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent-hover); }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 650; }
h1 { font-size: 36px; letter-spacing: -.03em; }
h2 { font-size: 28px; letter-spacing: -.02em; }
h3 { font-size: 23px; letter-spacing: -.015em; }
h4 { font-size: 17px; }
p { color: var(--muted); }
.container, .header-inner, .footer-inner { width: min(1100px, calc(100% - 96px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; padding: 10px 18px; color: white; background: var(--accent); }
.skip-link:focus { top: 12px; }
.noscript { margin: 60px 24px; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: var(--background); }
.header-inner { display: flex; align-items: center; min-height: 96px; gap: 40px; }
.brand { font-size: 20px; font-weight: 650; color: var(--text); text-decoration: none; white-space: nowrap; }
.site-header nav { display: flex; align-items: stretch; gap: 30px; margin-left: auto; }
.site-header nav a { font-size: 17px; color: var(--muted); padding: 12px 0; text-decoration: none; border-bottom: 2px solid transparent; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--text); border-color: var(--text); }
.email-address { user-select: text; overflow-wrap: anywhere; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 11px 20px; border: 1px solid #8999a4; border-radius: 4px; font-size: 16px; color: var(--text); text-decoration: none; background: transparent; min-height: 48px; }
.button:hover { background: #edf0f1; color: var(--text); }
.button-primary { background: var(--accent); border-color: var(--accent); color: white; }
.button-primary:hover { background: var(--accent-hover); color: white; }
.text-link { display: inline-block; font-size: 17px; font-weight: 550; }
.dates { font-size: 16px; color: var(--muted); }
.role-name { margin-top: 7px; font-size: 18px; color: #3d4851; }
.section { padding-block: 40px 48px; border-top: 1px solid var(--line); }
.section > h2 { margin-bottom: 24px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; }
.home-intro { margin-top: 36px; margin-bottom: 22px; padding: 48px; background: #243337; color: #f7faf9; border-radius: 16px; }
.intro-copy { display: grid; grid-template-columns: .95fr 1.05fr; gap: 54px; align-items: start; }
.greeting { font-size: 22px; color: #c7d5d8; margin-bottom: 7px; }
.home-intro h1 { font-size: clamp(52px, 5.4vw, 72px); line-height: 1.12; letter-spacing: -.04em; font-weight: 680; margin-bottom: 23px; }
.intro-subtitle { font-size: 23px; line-height: 1.5; color: #cbdcdf; margin-bottom: 0; }
.intro-description { font-size: 19px; line-height: 1.8; max-width: 620px; color: #e0e7e8; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.intro-contact { margin-top: 24px; font-size: 17px; }
.intro-contact p { margin-top: 6px; color: #d9e4e7; }
.site-footer { border-top: 1px solid var(--line); background: #f2f3f1; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 28px 40px; padding-block: 34px; font-size: 16px; }
.footer-inner strong { font-size: 17px; font-weight: 600; }
.footer-inner p { font-size: 15px; margin-top: 5px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 25px; }
.footer-links a { font-size: 16px; }
.footer-inner .copyright { width: 100%; font-size: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.experience-list { padding-bottom: 16px; }
.experience-card { padding: 32px 34px; margin-bottom: 25px; border: 1px solid #d4dddf; border-left: 5px solid #6f95a5; border-radius: 12px; background: #fff; box-shadow: 0 4px 16px #23343d06; scroll-margin-top: 30px; transition: border-color 180ms ease, box-shadow 180ms ease; }
.experience-card:hover { border-color: #aabfc8; box-shadow: 0 6px 22px #23343d0c; }
.experience-card:nth-child(2) { border-left-color: #7b9b88; }
.experience-card:nth-child(3) { border-left-color: #b1a07f; }
.experience-card:nth-child(4) { border-left-color: #8a919d; }
.experience-top { display: flex; justify-content: space-between; align-items: start; gap: 30px; }
.experience-top h3 { font-size: 26px; }
.experience-top .dates { white-space: nowrap; padding: 5px 10px; border-radius: 5px; background: #edf2f3; color: #3b5965; }
.experience-card > p { max-width: 950px; }
.experience-bullets { margin: 22px 0; padding-left: 23px; max-width: 960px; font-size: 18px; color: #414f58; }
.experience-bullets li { margin-bottom: 10px; padding-left: 3px; }
.technology-list { font-size: 16px; line-height: 1.85; margin-top: 20px; }
.technology-list strong { color: #394b57; font-weight: 600; }
.education-main { display: flex; justify-content: space-between; align-items: start; gap: 50px; }
.education-main h3 { font-size: 25px; }
.degree { font-size: 20px; max-width: 640px; margin-top: 10px; color: #3b4952; }
.education-dates { flex-shrink: 0; font-size: 17px; }
.education-dates p + p { margin-top: 8px; }
.coursework-heading { margin-top: 27px; font-size: 18px; font-weight: 600; }
.coursework { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 50px; list-style: disc; padding-left: 22px; margin: 15px 0 0; color: var(--muted); font-size: 17px; }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 70px; }
.skill-group { padding-top: 19px; border-top: 1px solid #e0e4e5; }
.skill-group h3 { font-size: 22px; }
.skill-group ul { list-style: none; padding: 0; margin: 13px 0 0; font-size: 18px; line-height: 1.9; color: #465660; }
.contact-section { padding-bottom: 60px; }
.contact-list { margin: 0; }
.contact-list > div { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 25px; margin: 14px 0; }
.contact-list dt { font-size: 17px; font-weight: 600; }
.contact-list dd { margin: 0; font-size: 18px; color: #43525c; overflow-wrap: anywhere; }

/* V3: restrained color, dark introduction, and distinct content cards. */
.home-intro a { color: #c0e3ee; }
.home-intro .button { color: #edf5f7; border-color: #789197; }
.home-intro .button:hover { background: #34494f; }
.home-intro .button-primary { background: #c0dde5; color: #20373e; border-color: #c0dde5; }
.home-intro .button-primary:hover { background: #d0e7ed; }
.home-intro .intro-contact a { font-size: 18px; }
.education-dates { padding: 14px 18px; border-radius: 8px; background: #eaf1ed; color: #344c43; }
.education-dates p { color: inherit; }
.coursework-heading { padding-top: 22px; border-top: 1px solid #dfe7e3; }
.skills-section { border-top: 0; padding-top: 8px; }
.skills-grid { gap: 22px; }
.skill-group { padding: 26px 28px; border: 1px solid #d0dce1; border-radius: 12px; background: #e7eff3; }
.skill-group:nth-child(2) { background: #eaf0e9; border-color: #d3ded2; }
.skill-group:nth-child(3) { background: #f0ece2; border-color: #e0d9ca; }
.skill-group:nth-child(4) { background: #eaeaf0; border-color: #d9d9e1; }
.contact-section { padding: 30px 34px; margin-bottom: 48px; border: 1px solid #d3dfe2; border-radius: 13px; background: #fff; }
.contact-section > h2 { color: #284858; }
.contact-list > div { padding: 12px 0; margin: 0; border-top: 1px solid #e0e6e8; }
.site-footer { background: #263539; color: #f0f5f6; border-color: #263539; }
.footer-inner p { color: #d1dfe2; }
.footer-inner a { color: #c0dfea; }
.footer-inner .copyright { border-color: #52666c; color: #c0d0d5; }

@media (max-width: 1100px) {
  .container, .header-inner, .footer-inner { width: calc(100% - 64px); }
  .header-inner { gap: 28px; }
  .home-intro { padding: 36px; }
  .intro-copy { gap: 35px; grid-template-columns: .9fr 1.1fr; }
  .home-intro h1 { font-size: 60px; }
  .intro-subtitle { font-size: 21px; }
}

@media (max-width: 800px) {
  .container, .header-inner, .footer-inner { width: calc(100% - 48px); }
  .header-inner { min-height: 85px; }
  .home-intro { padding: 34px; margin-top: 28px; }
  .intro-copy { grid-template-columns: 1fr; gap: 26px; }
  .home-intro h1 { font-size: 64px; }
  .intro-description { max-width: 700px; }
  .experience-top { flex-direction: column; gap: 9px; }
  .experience-top .dates { padding: 5px 10px; }
  .education-main { flex-direction: column; gap: 18px; }
  .education-dates { font-size: 17px; }
  .education-dates p + p { margin-top: 3px; }
  .skills-grid { gap: 28px 40px; }
}

@media (max-width: 600px) {
  .skill-group { padding: 24px; }
  .education-dates { padding: 12px 15px; }

  body { font-size: 17px; line-height: 1.75; }
  .container, .header-inner, .footer-inner { width: calc(100% - 40px); }
  .header-inner { min-height: 80px; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; }
  .brand { font-size: 18px; }
  .site-header nav { gap: 21px; margin-left: 0; }
  .site-header nav a { font-size: 16px; }
  h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  h3 { font-size: 22px; }
  .section > h2 { margin-bottom: 22px; }
  .home-intro { margin-top: 22px; margin-bottom: 14px; padding: 28px 24px; border-radius: 12px; }
  .intro-copy { gap: 25px; }
  .greeting { font-size: 21px; }
  .home-intro h1 { font-size: clamp(43px, 11.7vw, 60px); margin-bottom: 22px; }
  .intro-subtitle { font-size: 20px; }
  .intro-description { font-size: 18px; }
  .intro-actions { flex-direction: column; margin-top: 25px; }
  .button { font-size: 17px; padding-block: 11px; min-height: 49px; }
  .intro-contact { font-size: 17px; margin-top: 23px; }
  .section-heading { flex-direction: column; align-items: start; gap: 16px; margin-bottom: 20px; }
  .footer-inner { flex-direction: column; gap: 25px; padding-block: 30px; }
  .footer-inner p { font-size: 16px; }
  .footer-links { gap: 22px; }
  .footer-links a { font-size: 16px; }
  .experience-card { padding: 24px 22px; margin-bottom: 20px; }
  .experience-top h3 { font-size: 24px; }
  .role-name { font-size: 17px; }
  .dates { font-size: 16px; }
  .experience-bullets { font-size: 17px; }
  .education-main h3 { font-size: 24px; }
  .degree { font-size: 18px; }
  .education-dates { font-size: 17px; }
  .coursework { grid-template-columns: 1fr; gap: 8px; font-size: 17px; }
  .skills-grid { grid-template-columns: 1fr; gap: 25px; }
  .skill-group h3 { font-size: 22px; }
  .skill-group ul { font-size: 18px; }
  .contact-list > div { grid-template-columns: 1fr; gap: 3px; margin-block: 20px; }
  .contact-list dt { font-size: 16px; }
  .contact-list dd { font-size: 17px; }
  .contact-section { padding-bottom: 40px; }
}

@media (max-width: 360px) {
  .container, .header-inner, .footer-inner { width: calc(100% - 32px); }
  .header-inner { gap: 8px; }
  .brand { font-size: 17px; }
  .site-header nav { gap: 15px; }
  .site-header nav a { font-size: 15px; }
  .home-intro h1 { font-size: 39px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Concise Experience cards and clear profile links. */
.social-links { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: baseline; }
.experience-summary { margin-top: 22px; color: #3f505a; font-size: 18px; }
@media (max-width: 600px) {
  .experience-summary { font-size: 17px; margin-top: 19px; }
  .education-card, .contact-section { padding: 25px 24px; border-radius: 11px; }
  .section:not(.education-section):not(.contact-section) { padding-block: 30px 36px; }
}

/* V5: one continuous document with native section anchors. */
.header-inner { gap: 30px; }
.site-header nav { gap: 26px; }
.experience-section { padding-top: 28px; padding-bottom: 30px; }
.experience-list { padding-bottom: 0; }
.experience-card:last-child { margin-bottom: 0; }
.skills-section { padding-top: 5px; }
.footer-inner { align-items: center; padding-block: 26px; }
.footer-inner p { margin: 0; font-size: 15px; }
.footer-inner .text-link { font-size: 15px; }
.footer-separator { padding-inline: 7px; }
#home, #experience, #education, #skills, #contact { scroll-margin-top: 0; }
#home:focus, #experience:focus, #education:focus, #skills:focus, #contact:focus { outline: none; }
@media (max-width: 800px) {
  .header-inner { display: grid; grid-template-columns: 1fr; gap: 2px; padding-top: 12px; min-height: 0; }
  .site-header nav { width: 100%; min-width: 0; gap: 24px; margin-left: 0; overflow-x: auto; scrollbar-width: thin; }
  .site-header nav a { flex-shrink: 0; font-size: 16px; padding-block: 10px; }
  .brand { width: fit-content; }
  .experience-section { padding-top: 20px; }
}
@media (max-width: 600px) {
  .experience-section { padding-bottom: 26px; }
  .site-header nav { gap: 21px; }
  .site-header nav a { font-size: 15px; }
  .footer-inner { align-items: flex-start; gap: 16px; }
  .footer-inner p { font-size: 14px; }
}
/* V6: section titles sit above their content, with no filter/banner chrome. */
.experience-section > h2, .education-section > h2, .skills-section > h2 {
  margin-bottom: 24px;
  font-size: 32px;
  color: var(--text);
}
.education-section {
  padding: 5px 0 30px;
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.education-card {
  padding: 32px 34px;
  border: 1px solid #d3dddf;
  border-radius: 12px;
  background: #fff;
}
@media (max-width: 600px) {
  .experience-section > h2, .education-section > h2, .skills-section > h2 { font-size: 28px; }
  .education-card { padding: 25px 24px; }
}

[data-empty] { display: none; }
[data-edit] { overflow-wrap: anywhere; }
.social-links a { max-width: 100%; overflow-wrap: anywhere; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; }
