:root {
  --ink: #142535;
  --ink-soft: #425464;
  --muted: #6b7b88;
  --paper: #fbfcfa;
  --paper-deep: #f0f4f2;
  --line: #dce5e2;
  --navy: #101f2c;
  --navy-2: #172c3b;
  --teal: #39d7c0;
  --teal-deep: #11a995;
  --white: #fff;
  --container: 1160px;
  --radius: 18px;
  --shadow: 0 18px 55px rgba(18, 39, 51, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 1000; top: -60px; left: 20px; padding: 10px 16px; background: var(--teal); color: var(--navy); border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 252, 250, .92); border-bottom: 1px solid rgba(220, 229, 226, .8); backdrop-filter: blur(18px); }
.nav-wrap { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark, .footer-brand { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--navy); color: var(--white); font-size: 17px; font-weight: 800; letter-spacing: -.06em; }
.brand-mark span, .footer-brand span { color: var(--teal); }
.brand-name { display: flex; flex-direction: column; font-size: 14px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }
.brand-name small { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.primary-nav > a { color: #536572; font-size: 12px; font-weight: 700; transition: color .2s ease; }
.primary-nav > a:hover, .primary-nav > a:focus-visible { color: var(--teal-deep); }
.primary-nav .nav-contact { padding: 10px 15px; color: var(--navy); background: var(--teal); border-radius: 8px; }
.nav-contact span { margin-left: 7px; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 23px; height: 2px; margin: 5px 0; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }

.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: var(--white); }
.hero::before { position: absolute; z-index: -1; inset: 0; content: ""; opacity: .26; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 62px 62px; mask-image: linear-gradient(90deg, black, transparent 80%); }
.hero-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hero-glow-one { width: 550px; height: 550px; right: -130px; top: -210px; background: radial-gradient(circle, rgba(57,215,192,.17), transparent 68%); }
.hero-glow-two { width: 400px; height: 400px; left: 22%; bottom: -300px; background: radial-gradient(circle, rgba(57,215,192,.09), transparent 70%); }
.hero-grid { min-height: 660px; padding-block: 76px 78px; display: grid; grid-template-columns: minmax(310px, .75fr) minmax(0, 1.15fr); align-items: center; gap: 70px; }
.hero-copy { position: relative; z-index: 1; max-width: 710px; grid-column: 2; grid-row: 1; }
.eyebrow, .section-index, .card-kicker, .timeline-type, .education-label, .project-category { margin: 0; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .16em; line-height: 1.5; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.eyebrow-line { width: 30px; height: 1px; background: var(--teal); }
.hero h1 { margin: 0; font-size: clamp(36px, 4.6vw, 58px); font-weight: 760; letter-spacing: -.075em; line-height: 1.08; white-space: nowrap; }
.hero h1 span { color: var(--teal); }
.hero-role { max-width: 620px; margin: 28px 0 15px; color: #d0dbe0; font-size: clamp(14px, 1.6vw, 17px); font-weight: 650; }
.hero-role i { padding-inline: 4px; color: var(--teal); font-style: normal; }
.hero-intro { max-width: 585px; margin: 0; color: #9fb0ba; font-size: 14px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 47px; align-items: center; justify-content: center; gap: 16px; padding: 0 19px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 800; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--navy); background: var(--teal); }
.button-primary:hover { background: #68ead7; }
.button-ghost { color: var(--white); border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.025); }
.button-ghost:hover { border-color: var(--teal); }
.hero-highlights { display: flex; flex-wrap: wrap; gap: 35px; margin-top: 55px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
.hero-highlights div { display: flex; align-items: center; gap: 10px; }
.hero-highlights strong { color: var(--white); font-size: 25px; font-weight: 800; letter-spacing: -.06em; }
.hero-highlights span { color: #9fb0ba; font-size: 9px; font-weight: 650; line-height: 1.4; }
.hero-profile { width: min(100%, 255px); justify-self: start; grid-column: 1; grid-row: 1; }
.portrait-frame { position: relative; overflow: hidden; width: 100%; aspect-ratio: 3 / 4; padding: 8px; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; background: rgba(255,255,255,.045); }
.portrait-frame::after { position: absolute; inset: 10px; border: 1px solid rgba(57,215,192,.55); border-radius: 13px; content: ""; pointer-events: none; }
.portrait-frame img { width: 100%; height: 100%; border-radius: 13px; object-fit: cover; object-position: center center; filter: saturate(.88); }
.portrait-stamp { position: absolute; right: 23px; bottom: 22px; z-index: 1; padding: 6px 10px; border-radius: 4px; background: var(--teal); color: var(--navy); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.profile-card { position: relative; z-index: 2; margin: -24px 18px 0; padding: 19px 20px 17px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: #1b3040; box-shadow: 0 15px 35px rgba(0,0,0,.2); }
.profile-card .card-kicker { margin-bottom: 11px; color: #8da2ae; font-size: 9px; }
.profile-card a, .profile-location { display: flex; align-items: center; gap: 11px; margin: 8px 0; color: #edf3f3; font-size: 11px; font-weight: 600; }
.profile-card a:hover { color: var(--teal); }
.contact-symbol { display: grid; flex: 0 0 25px; width: 25px; height: 25px; place-items: center; border-radius: 7px; background: rgba(57,215,192,.12); color: var(--teal); font-size: 12px; }
.linkedin-symbol { font-size: 11px; font-weight: 900; }
.external-arrow { margin-left: auto; color: var(--teal); }
.profile-location { margin: 12px 0 0; color: #a2b1ba; }
.profile-location span { color: var(--teal); font-size: 17px; }
.scroll-cue { position: absolute; bottom: 21px; left: 50%; width: 22px; height: 34px; border: 1px solid rgba(255,255,255,.35); border-radius: 14px; transform: translateX(-50%); }
.scroll-cue span { display: block; width: 3px; height: 7px; margin: 7px auto; border-radius: 2px; background: var(--teal); animation: scroll 1.5s infinite; }
@keyframes scroll { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(9px); opacity: 0; } }

.section { padding: 108px 0; }
.section-light { background: var(--paper); }
.section-tint { background: var(--paper-deep); }
.section-dark { background: var(--navy); color: var(--white); }
.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-heading .section-index { margin-bottom: 15px; color: var(--teal-deep); }
.section-heading h2, .contact-inner h2 { margin: 0; color: var(--ink); font-size: clamp(34px, 4vw, 48px); font-weight: 780; letter-spacing: -.065em; line-height: 1.12; }
.section-heading h2 span, .contact-inner h2 span { color: var(--teal-deep); }
.section-lead { max-width: 620px; margin: 17px 0 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.heading-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 35px; }
.heading-note { max-width: 370px; margin: 0 0 5px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.profile-overview { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .8fr); gap: 76px; align-items: start; }
.overview-main p { max-width: 690px; color: var(--ink-soft); font-size: 14px; line-height: 2; }
.overview-main .large-copy { margin-top: 0; color: var(--ink); font-size: 21px; font-weight: 650; letter-spacing: -.025em; line-height: 1.65; }
.overview-side { display: grid; gap: 12px; }
.focus-card { display: flex; align-items: start; gap: 15px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.focus-number { color: var(--teal-deep); font-size: 11px; font-weight: 900; }
.focus-card strong { font-size: 13px; }
.focus-card p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

.timeline { position: relative; max-width: 930px; margin-left: 7%; }
.timeline::before { position: absolute; top: 8px; bottom: 8px; left: 190px; width: 1px; background: #cddbd6; content: ""; }
.timeline-item { position: relative; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 62px; padding: 0 0 42px; }
.timeline-item::before { position: absolute; top: 5px; left: 185px; width: 11px; height: 11px; border: 3px solid var(--paper-deep); border-radius: 50%; background: var(--teal-deep); box-shadow: 0 0 0 1px #a6c2b9; content: ""; }
.timeline-date { padding-top: 2px; color: var(--teal-deep); font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.timeline-type { margin-bottom: 6px; color: #7d908c; font-size: 9px; }
.timeline-content h3 { margin: 0; font-size: 21px; font-weight: 750; letter-spacing: -.04em; line-height: 1.25; }
.timeline-company { margin: 7px 0 8px !important; color: var(--teal-deep) !important; font-size: 12px !important; font-weight: 700; }
.timeline-company a { text-decoration: underline; text-decoration-color: rgba(17,169,149,.35); text-underline-offset: 3px; }
.timeline-company span { padding-inline: 4px; }
.timeline-content > p:last-child { max-width: 690px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.85; }
.radio-strip { display: flex; align-items: center; gap: 22px; margin: 12px 0 0 7%; padding: 24px 26px; border: 1px solid #d4e2dd; border-radius: 14px; background: rgba(255,255,255,.64); }
.radio-icon { display: grid; flex: 0 0 52px; height: 52px; place-items: center; border-radius: 14px; background: var(--navy); color: var(--teal); font-size: 27px; }
.radio-copy .timeline-type { margin-bottom: 2px; }
.radio-copy h3 { margin: 0; font-size: 17px; }
.radio-copy p:last-child { margin: 4px 0 0; color: var(--muted); font-size: 11px; }

.education-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(310px, .92fr); gap: 72px; }
.subheading { margin: 0 0 28px; color: var(--ink); font-size: 17px; letter-spacing: -.035em; }
.education-card { position: relative; margin-left: 7px; padding: 0 0 27px 25px; border-left: 1px solid var(--line); }
.education-card:last-child { padding-bottom: 0; }
.education-dot { position: absolute; top: 3px; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--teal-deep); box-shadow: 0 0 0 4px var(--paper); }
.education-label { margin-bottom: 5px; color: var(--teal-deep); font-size: 9px; }
.education-card h4, .cert-card h4 { margin: 0; font-size: 15px; font-weight: 750; letter-spacing: -.025em; }
.education-card p:last-child, .cert-card p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.education-project { margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.education-project .education-dot { top: 21px; }
.education-thesis { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.education-thesis .education-label { margin-bottom: 6px; font-size: 8px; letter-spacing: .13em; }
.education-thesis h5 { margin: 0; color: var(--ink); font-size: 12px; font-weight: 750; line-height: 1.75; letter-spacing: -.01em; }
.education-thesis .education-thesis-description { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.cert-card { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cert-icon { display: grid; flex: 0 0 42px; height: 42px; place-items: center; border-radius: 11px; background: #e5f4ef; color: var(--teal-deep); font-size: 12px; font-weight: 900; }
.language-card { margin-top: 29px; padding: 20px; border-radius: 13px; background: var(--paper-deep); }
.language-card .education-label { margin: 0 0 14px; }
.language-row { display: flex; justify-content: space-between; gap: 15px; padding: 9px 0; border-bottom: 1px solid #dce5e2; font-size: 12px; }
.language-row:last-child { border-bottom: 0; }
.language-row span { color: var(--muted); }

.heading-dark .section-index { color: var(--teal); }
.heading-dark h2 { color: var(--white); }
.heading-dark h2 span { color: var(--teal); }
.heading-dark .heading-note { color: #9aabb5; }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.skill-panel { min-height: 240px; padding: 24px; border: 1px solid rgba(255,255,255,.1); border-radius: 15px; background: var(--navy-2); transition: transform .2s ease, border-color .2s ease; }
.skill-panel:hover { transform: translateY(-4px); border-color: rgba(57,215,192,.45); }
.skill-panel-featured { background: linear-gradient(140deg, #1d4850, #1b3442 70%); }
.skill-panel-top { display: flex; align-items: center; justify-content: space-between; }
.skill-index { color: #7b929e; font-size: 10px; font-weight: 800; }
.skill-emoji { color: var(--teal); font-size: 23px; }
.skill-panel h3 { margin: 23px 0 7px; color: var(--white); font-size: 17px; letter-spacing: -.035em; }
.skill-panel p { min-height: 42px; margin: 0; color: #a3b4bc; font-size: 11px; line-height: 1.7; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 17px; }
.skill-tags span { padding: 5px 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 5px; color: #c8d5d9; font-size: 9px; font-weight: 650; }
.skills-footnote { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 31px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); }
.skills-footnote strong { color: #dce9e8; font-size: 11px; }
.skills-footnote p { margin: 6px 0 0; color: #90a3ad; font-size: 10px; line-height: 1.8; }

.services-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 48px 90px; align-items: start; }
.services-intro { position: sticky; top: 120px; margin: 0; }
.services-list { display: grid; }
.services-list article { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 15px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.services-list article:first-child { padding-top: 4px; }
.services-list article > span { color: var(--teal-deep); font-size: 10px; font-weight: 900; }
.services-list h3 { margin: 0; font-size: 15px; letter-spacing: -.025em; }
.services-list p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.service-history { grid-column: 2; margin: -26px 0 0 57px; color: #84938e; font-size: 10px; line-height: 1.8; }

.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.project-card { position: relative; display: flex; min-height: 164px; flex-direction: column; justify-content: end; overflow: hidden; padding: 20px; border: 1px solid #dbe4e0; border-radius: 13px; background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.project-card:hover { z-index: 1; transform: translateY(-4px); border-color: #a7d7ca; box-shadow: var(--shadow); }
.project-dark { border-color: var(--navy); background: var(--navy); color: var(--white); }
.project-category { margin-bottom: 13px; color: var(--teal-deep); font-size: 8px; }
.project-card strong { padding-right: 15px; font-size: 16px; font-weight: 800; letter-spacing: -.04em; line-height: 1.25; }
.project-domain { margin-top: 5px; color: #81908c; font-size: 10px; overflow-wrap: anywhere; }
.project-dark .project-domain { color: #a6b7bc; }
.project-arrow { position: absolute; top: 17px; right: 17px; color: var(--teal-deep); font-size: 15px; }
.portfolio-note { margin: 19px 0 0; color: #81908c; font-size: 10px; line-height: 1.8; }

.personal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.personal-card { min-height: 190px; padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.personal-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: #e5f4ef; color: var(--teal-deep); font-size: 18px; }
.personal-card h3 { margin: 16px 0 7px; font-size: 15px; letter-spacing: -.03em; }
.personal-card p { margin: 4px 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.personal-card small { display: block; margin-top: 8px; color: #89958f; font-size: 10px; line-height: 1.7; }
.personal-card ul { margin: 8px 0 0; padding-left: 16px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.hobbies-card { grid-row: span 2; }

.contact-section { overflow: hidden; background: #163443; color: var(--white); }
.contact-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 50px; padding-block: 88px; }
.contact-inner::after { position: absolute; top: -150px; right: 18%; width: 440px; height: 440px; border: 1px solid rgba(57,215,192,.16); border-radius: 50%; box-shadow: 0 0 0 50px rgba(57,215,192,.025), 0 0 0 100px rgba(57,215,192,.02); content: ""; pointer-events: none; }
.contact-inner > div:first-child { position: relative; z-index: 1; max-width: 590px; }
.contact-inner .section-index { margin-bottom: 13px; color: var(--teal); }
.contact-inner h2 { color: var(--white); font-size: clamp(36px, 4vw, 52px); }
.contact-inner h2 span { color: var(--teal); }
.contact-inner > div:first-child > p:last-child { max-width: 480px; margin: 16px 0 0; color: #a8bdc3; font-size: 12px; line-height: 1.9; }
.contact-actions { position: relative; z-index: 1; display: flex; min-width: 270px; flex-direction: column; align-items: stretch; gap: 10px; }
.button-light-outline { color: var(--white); border-color: rgba(255,255,255,.28); }
.button-light-outline:hover { border-color: var(--teal); }
.linkedin-link { align-self: center; margin-top: 7px; color: #b6c6c9; font-size: 11px; font-weight: 650; }
.linkedin-link:hover { color: var(--teal); }
.linkedin-link span { margin-left: 5px; }

.site-footer { background: #0a1721; color: #9eafb5; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px 25px; padding-block: 28px; }
.footer-brand { width: 36px; height: 36px; border-radius: 10px; font-size: 14px; }
.footer-inner > p { margin: 0; font-size: 10px; }
.footer-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; font-size: 9px; }
.footer-pdf-link, .print-button { padding: 0; border: 0; background: transparent; color: var(--teal); font-size: 10px; font-weight: 700; cursor: pointer; }
.footer-pdf-link:hover, .print-button:hover { color: #91f6e8; }
.footer-pdf-link span, .print-button span { margin-left: 5px; }
.footer-inner > small { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.09); color: #70818a; font-size: 9px; }

@media (max-width: 980px) {
  .primary-nav { gap: 15px; }
  .primary-nav > a { font-size: 11px; }
  .hero-grid { gap: 40px; }
  .profile-overview { gap: 40px; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .services-layout { gap: 42px; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 36px, var(--container)); }
  .nav-wrap { height: 68px; }
  .menu-toggle { display: block; }
  .primary-nav { position: absolute; top: 68px; right: 18px; left: 18px; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 9px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); box-shadow: var(--shadow); }
  .primary-nav.is-open { display: flex; }
  .primary-nav > a { padding: 12px 13px; border-radius: 7px; font-size: 13px; }
  .primary-nav > a:hover { background: var(--paper-deep); }
  .primary-nav .nav-contact { margin-top: 5px; text-align: center; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 44px; padding-block: 65px 75px; }
  .hero-copy { max-width: none; grid-column: auto; grid-row: auto; }
  .hero h1 { font-size: clamp(34px, 7.1vw, 52px); }
  .hero-role { max-width: 550px; }
  .hero-profile { width: min(100%, 220px); justify-self: center; grid-column: auto; grid-row: auto; }
  .scroll-cue { display: none; }
  .section { padding: 78px 0; }
  .heading-row { align-items: start; flex-direction: column; gap: 13px; }
  .heading-note { max-width: 600px; }
  .profile-overview { grid-template-columns: 1fr; gap: 28px; }
  .overview-side { grid-template-columns: repeat(3, 1fr); }
  .focus-card { flex-direction: column; gap: 8px; }
  .timeline { margin-left: 0; }
  .radio-strip { margin-left: 0; }
  .education-grid { grid-template-columns: 1fr; gap: 48px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .services-layout { grid-template-columns: 1fr; gap: 35px; }
  .services-intro { position: static; }
  .service-history { grid-column: 1; margin: -17px 0 0 57px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .personal-grid { grid-template-columns: repeat(2, 1fr); }
  .hobbies-card { grid-row: span 1; }
  .contact-inner { align-items: start; flex-direction: column; gap: 30px; padding-block: 70px; }
  .contact-actions { width: min(100%, 420px); }
}
@media (max-width: 520px) {
  .container { width: calc(100% - 32px); }
  .brand-name { font-size: 12px; }
  .brand-mark { width: 38px; height: 38px; }
  .hero-grid { padding-top: 51px; }
  .eyebrow { font-size: 9px; }
  .hero h1 { font-size: clamp(26px, 7.8vw, 36px); }
  .hero-role { font-size: 13px; line-height: 1.8; }
  .hero-intro { font-size: 12px; }
  .hero-highlights { gap: 17px; justify-content: space-between; margin-top: 38px; }
  .hero-highlights div { gap: 7px; }
  .hero-highlights strong { font-size: 21px; }
  .hero-highlights span { font-size: 8px; }
  .profile-card { margin-inline: 8px; padding-inline: 15px; }
  .section { padding: 66px 0; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2 { font-size: 34px; }
  .overview-main .large-copy { font-size: 18px; }
  .overview-main p { font-size: 12px; }
  .overview-side { grid-template-columns: 1fr; }
  .focus-card { flex-direction: row; }
  .timeline::before { left: 7px; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; padding-left: 28px; padding-bottom: 32px; }
  .timeline-item::before { left: 2px; }
  .timeline-date { font-size: 9px; }
  .timeline-content h3 { font-size: 18px; }
  .timeline-content > p:last-child { font-size: 11px; }
  .radio-strip { align-items: start; gap: 13px; padding: 18px; }
  .radio-icon { flex-basis: 42px; height: 42px; font-size: 22px; }
  .radio-copy h3 { font-size: 15px; }
  .radio-copy p:last-child { font-size: 10px; }
  .education-grid { gap: 38px; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-panel { min-height: 0; padding: 21px; }
  .skill-panel p { min-height: 0; }
  .skills-footnote { grid-template-columns: 1fr; gap: 17px; }
  .services-list article { grid-template-columns: 30px 1fr; }
  .service-history { margin-left: 45px; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .project-card { min-height: 145px; padding: 14px; }
  .project-card strong { font-size: 13px; }
  .project-domain { font-size: 9px; }
  .project-category { font-size: 7px; }
  .project-arrow { top: 12px; right: 12px; }
  .personal-grid { grid-template-columns: 1fr; }
  .personal-card { min-height: 0; padding: 19px; }
  .contact-inner h2 { font-size: 37px; }
  .footer-inner { grid-template-columns: auto 1fr; }
  .footer-tools { grid-column: 1 / -1; justify-content: space-between; }
  .footer-inner > small { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  @page { size: A4; margin: 14mm; }
  html { scroll-behavior: auto; }
  body { background: #fff !important; color: #152535 !important; font-size: 10pt; }
  .site-header, .scroll-cue, .hero-actions, .contact-section, .pdf-download-button, .print-button, .skip-link { display: none !important; }
  .hero { background: #fff !important; color: #152535 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .hero::before, .hero-glow { display: none; }
  .hero-grid { min-height: 0; grid-template-columns: .7fr 1.3fr; gap: 25px; padding: 0 0 20px; }
  .hero h1 { color: #152535; font-size: 28pt; }
  .hero h1 span, .hero-role, .hero-intro, .hero-highlights strong { color: #152535 !important; }
  .hero-role, .hero-intro, .hero-highlights span { font-size: 9pt; }
  .hero-highlights { margin-top: 20px; padding-top: 10px; border-color: #ccc; }
  .portrait-frame { max-width: 190px; margin-inline: 0; padding: 5px; border-color: #ddd; }
  .profile-card { margin: 8px 0 0; padding: 10px; border: 1px solid #ddd; background: #fff; box-shadow: none; }
  .profile-card a, .profile-location { color: #152535; font-size: 8pt; }
  .section { padding: 28px 0; break-inside: auto; }
  .section-heading { margin-bottom: 18px; }
  .section-heading h2 { font-size: 25pt; }
  .section-lead, .overview-main p, .timeline-content > p:last-child, .education-card p:last-child, .personal-card p { color: #374957; }
  .profile-overview, .education-grid, .services-layout { gap: 20px; }
  .timeline { margin-left: 0; }
  .timeline-item { break-inside: avoid; gap: 32px; padding-bottom: 18px; }
  .timeline::before { left: 135px; }
  .timeline-item { grid-template-columns: 110px 1fr; }
  .timeline-item::before { left: 130px; }
  .radio-strip, .focus-card, .education-card, .cert-card, .skill-panel, .personal-card, .project-card { break-inside: avoid; }
  .section-dark { background: #fff !important; color: #152535 !important; }
  .heading-dark h2, .skill-panel h3, .skills-footnote strong { color: #152535 !important; }
  .skill-panel { min-height: 0; background: #f5f8f7 !important; border-color: #d9e1de; }
  .skill-panel p, .skill-tags span, .skills-footnote p { color: #374957 !important; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .personal-grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer { background: #fff; color: #536572; }
  .footer-inner { padding-block: 15px; }
  .footer-brand { background: #152535; }
  a { text-decoration: none; }
}
