:root {
  color-scheme: light;
  --ink: #172436;
  --ink-soft: #526174;
  --navy: #101b2b;
  --navy-light: #17273a;
  --paper: #f7f8f6;
  --white: #fff;
  --line: #e2e7e8;
  --teal: #24c4b1;
  --teal-dark: #007f78;
  --lime: #d7ed75;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "DM Sans", Arial, sans-serif;
  --display: "Manrope", "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { color: var(--navy); background: var(--lime); }
.section-shell { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.section-pad { padding-block: 112px; }
.skip-link { position: absolute; z-index: 20; top: 10px; left: 10px; padding: 10px 14px; transform: translateY(-160%); background: var(--white); color: var(--ink); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 10; top: 0; border-bottom: 1px solid rgba(255,255,255,.09); background: var(--navy); color: var(--white); }
.nav-wrap { display: flex; width: min(1280px, calc(100% - 64px)); height: 74px; align-items: center; justify-content: space-between; margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid rgba(36,196,177,.55); border-radius: 50%; color: var(--teal); font-family: var(--display); font-size: 11px; font-weight: 800; letter-spacing: -.04em; }
.brand-name { font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 34px; color: #b7c2ce; font-size: 12px; font-weight: 600; }
.nav-links a { transition: color .2s ease; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--teal); }
.nav-links .nav-contact { padding: 10px 15px; border: 1px solid #536173; border-radius: 3px; color: var(--white); }
.nav-contact span { margin-left: 8px; color: var(--teal); }
.nav-dropdown { position: relative; }
.nav-dropdown summary { cursor: pointer; list-style: none; transition: color .2s ease; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary:hover, .nav-dropdown summary:focus-visible, .nav-dropdown[open] summary { color: var(--teal); }
.nav-dropdown summary span { margin-left: 4px; color: var(--teal); }
.nav-dropdown-menu { position: absolute; top: calc(100% + 17px); left: -16px; z-index: 12; display: flex; flex-direction: column; align-items: stretch; min-width: 205px; padding: 7px; border: 1px solid #34465a; background: var(--navy-light); box-shadow: 0 14px 34px rgba(16,27,43,.2); }
.nav-dropdown:not([open]) .nav-dropdown-menu { display: none; }
.nav-dropdown-menu a { display: block; padding: 9px 11px; color: #d3dbe2; font-size: 11px; white-space: nowrap; }
.nav-dropdown-menu a:hover, .nav-dropdown-menu a:focus-visible, .nav-dropdown-menu a[aria-current="page"] { background: #20344b; color: var(--teal); }
.menu-toggle { display: none; }

.hero { position: relative; display: grid; min-height: 645px; grid-template-columns: 1fr 1fr; align-items: center; gap: 5%; padding-block: 76px 105px; }
.hero-copy { position: relative; z-index: 1; padding-bottom: 20px; }
.eyebrow, .section-label { color: #738092; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 25px; color: #758698; }
.status-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(36,196,177,.12); }
.hero h1, .section-heading h2, .about h2, .credentials h2, .contact h2 { margin: 0; font-family: var(--display); font-size: clamp(40px, 5.2vw, 66px); font-weight: 600; letter-spacing: -.065em; line-height: 1.08; }
.hero h1 span { color: var(--teal-dark); }
.hero-intro { max-width: 575px; margin: 23px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 18px; padding: 0 18px; border: 1px solid transparent; border-radius: 3px; cursor: pointer; font-size: 12px; font-weight: 700; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--navy); color: var(--white); }
.button-primary:hover { background: #20344b; }
.button-primary span { color: var(--teal); }
.button-secondary { border-color: #d8dfe0; background: transparent; color: var(--ink); }
.button-secondary:hover { border-color: var(--teal-dark); }
.hero-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-facts div { display: grid; gap: 1px; }
.hero-facts strong { font-family: var(--display); font-size: clamp(12px, 1.25vw, 18px); font-weight: 700; letter-spacing: -.04em; }
.hero-facts strong span { color: var(--teal-dark); }
.hero-facts div > span { color: #788493; font-size: 10px; }
.hero-profile { position: relative; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: 14px; justify-self: end; width: min(100%, 680px); }
.profile-column { min-width: 0; }
.profile-photo-wrap { position: relative; z-index: 1; padding: 11px; border: 1px solid #dfe5e5; background: rgba(255,255,255,.56); }
.profile-photo { display: block; width: 100%; aspect-ratio: 1 / 1.04; object-fit: cover; object-position: 50% 32%; filter: saturate(.76); }
.photo-caption { position: absolute; right: 0; bottom: 24px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--navy); color: #e8eef2; font-size: 10px; }
.photo-caption .status-dot { width: 6px; height: 6px; }
.profile-note { position: relative; z-index: 2; display: flex; align-items: flex-start; gap: 12px; width: 82%; margin: -1px 0 0 auto; padding: 15px 16px; background: var(--white); box-shadow: 0 12px 40px rgba(16,27,43,.07); }
.note-icon { color: var(--teal-dark); font-size: 23px; line-height: 1; }
.profile-note p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.profile-note strong { color: var(--ink); }
.hero-orbit { position: absolute; display: block; border: 1px solid rgba(36,196,177,.3); border-radius: 50%; }
.orbit-one { top: -25px; right: -37px; width: 104px; height: 104px; }
.orbit-two { bottom: 75px; left: -44px; width: 63px; height: 63px; }
.scroll-cue { position: absolute; bottom: 31px; left: 0; display: flex; align-items: center; gap: 12px; color: #84909d; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.scroll-cue span { color: var(--teal-dark); font-size: 16px; }

.about { display: grid; grid-template-columns: .75fr 2fr; gap: 5%; border-top: 1px solid var(--line); }
.section-label { display: flex; align-items: center; gap: 12px; padding-top: 7px; }
.section-label > span { color: var(--teal-dark); font-family: var(--display); font-size: 11px; letter-spacing: .05em; }
.about-content { display: grid; grid-template-columns: 1.1fr .9fr; gap: 8%; }
.about h2 { max-width: 480px; font-size: clamp(31px, 3.4vw, 43px); }
.about h2 em, .section-heading h2 em, .credentials h2 em, .contact h2 em { color: var(--teal-dark); font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; }
.about-copy p { margin: 0 0 15px; color: var(--ink-soft); font-size: 13px; line-height: 1.85; }
.text-link { display: inline-flex; gap: 10px; margin-top: 9px; color: var(--teal-dark); font-size: 12px; font-weight: 700; }

.expertise { background: var(--navy); color: var(--white); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 45px; }
.section-label-light { color: #a7b3c0; }
.section-label-light > span { color: var(--teal); }
.section-heading h2, .credentials h2 { margin-top: 20px; font-size: clamp(34px, 4vw, 48px); }
.section-heading h2 em, .credentials h2 em { color: var(--teal); }
.section-heading > p { max-width: 290px; margin: 0 0 7px; color: #a5b1bf; font-size: 13px; line-height: 1.8; }
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #304052; border-left: 1px solid #304052; }
.expertise-card { position: relative; min-height: 185px; padding: 25px 24px 23px; border-right: 1px solid #304052; border-bottom: 1px solid #304052; transition: background .2s ease; }
.expertise-card:hover { background: #16283a; }
.card-number { color: var(--teal); font-family: var(--display); font-size: 10px; font-weight: 700; }
.expertise-card h3 { margin: 16px 0 8px; font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: -.03em; }
.expertise-card p { max-width: 300px; margin: 0; color: #a8b4c1; font-size: 11px; line-height: 1.8; }
.skills-strip { display: flex; align-items: center; gap: 27px; padding-top: 24px; color: #adb9c4; }
.skills-strip > span { flex: 0 0 auto; color: #758596; font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.skills-strip p { margin: 0; font-size: 11px; }
.skills-strip i { padding-inline: 5px; color: var(--teal); font-style: normal; }

.experience-heading { margin-bottom: 58px; }
.experience-heading > p { max-width: 300px; }
.timeline { position: relative; }
.timeline::before { position: absolute; top: 3px; bottom: 5px; left: 215px; width: 1px; background: #dce3e3; content: ""; }
.timeline-item { display: grid; grid-template-columns: 215px 1fr; gap: 0; padding-bottom: 50px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-date { position: relative; display: flex; align-items: flex-start; gap: 17px; padding-top: 3px; color: #6b7888; font-size: 11px; font-weight: 600; }
.timeline-dot { position: relative; z-index: 1; display: block; width: 9px; height: 9px; margin: 5px -5px 0 0; border: 2px solid var(--paper); border-radius: 50%; background: #aab5bf; box-shadow: 0 0 0 1px #aab5bf; }
.current .timeline-dot { background: var(--teal-dark); box-shadow: 0 0 0 1px var(--teal-dark), 0 0 0 5px rgba(0,127,120,.12); }
.timeline-entry { padding: 0 0 0 36px; }
.role-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.role-heading h3 { margin: 0; font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.04em; line-height: 1.4; }
.role-subtitle { margin: 4px 0 0; color: #617083; font-size: 12px; }
.company-tag { padding: 6px 9px; border: 1px solid #dbe3e3; color: #536274; font-size: 9px; font-weight: 700; letter-spacing: .09em; white-space: nowrap; }
.role-location { margin: 8px 0 15px; color: #8a95a0; font-size: 10px; }
.timeline-entry ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.timeline-entry li { position: relative; padding-left: 17px; color: #536174; font-size: 12px; line-height: 1.8; }
.timeline-entry li::before { position: absolute; top: .7em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--teal-dark); content: ""; }

.credentials { background: #eaf0ef; }
.credentials-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 8%; }
.credentials h2 { color: var(--ink); }
.credential-list { display: grid; gap: 10px; }
.credential-card { display: flex; align-items: flex-start; gap: 18px; padding: 20px 21px; border: 1px solid #dbe3e1; background: rgba(255,255,255,.65); }
.credential-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--navy); color: var(--teal); font-size: 9px; font-weight: 700; }
.credential-type { color: #758294; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.credential-card h3 { margin: 3px 0; font-family: var(--display); font-size: 15px; letter-spacing: -.03em; }
.credential-card p { margin: 0; color: #697687; font-size: 11px; line-height: 1.6; }
.certificate-gallery { position: relative; z-index: 2; margin-top: 12px; padding: 18px; border: 1px solid #dbe3e1; background: rgba(255,255,255,.82); }
.certificate-gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.certificate-gallery-heading h2 { margin: 3px 0 0; color: var(--ink); font-family: var(--display); font-size: 17px; letter-spacing: -.03em; line-height: 1.3; }
.certificate-gallery-heading p { max-width: 150px; margin: 0; color: #697687; font-size: 10px; line-height: 1.5; text-align: right; }
.certificate-slide { margin: 0; }
.certificate-slide[hidden] { display: none; }
.certificate-image-link { display: grid; min-height: 190px; place-items: center; padding: 10px; border: 1px solid #e3e7e5; background: #fff; }
.certificate-image-link img { display: block; width: 100%; height: clamp(170px, 20vw, 240px); object-fit: contain; }
.certificate-slide figcaption { display: grid; gap: 2px; padding-top: 12px; }
.certificate-slide figcaption strong { font-family: var(--display); font-size: 12px; line-height: 1.5; }
.certificate-slide figcaption span { color: #697687; font-size: 10px; }
.certificate-controls { display: flex; align-items: center; gap: 9px; margin-top: 12px; }
.certificate-control, .certificate-toggle { min-height: 34px; border: 1px solid #cbd6d4; background: transparent; color: var(--ink); cursor: pointer; }
.certificate-control { width: 36px; border-radius: 50%; font-size: 16px; line-height: 1; }
.certificate-toggle { padding-inline: 12px; font-size: 10px; font-weight: 600; }
.certificate-control:hover, .certificate-toggle:hover { border-color: var(--teal-dark); color: var(--teal-dark); }
.certificate-control:focus-visible, .certificate-toggle:focus-visible, .certificate-image-link:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 3px; }
.certificate-status { margin: 0 0 0 auto; color: #697687; font-size: 10px; font-variant-numeric: tabular-nums; }

.hobbies { border-top: 1px solid var(--line); background: #f7f8f6; }
.hobbies-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 30px; }
.hobbies-heading h2 { margin: 20px 0 0; font-family: var(--display); font-size: clamp(32px, 4vw, 46px); font-weight: 600; letter-spacing: -.055em; line-height: 1.1; }
.hobbies-heading > p { max-width: 320px; margin: 0 0 7px; color: var(--ink-soft); font-size: 13px; }
.hobby-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hobby-card { min-height: 150px; scroll-margin-top: 90px; }
.hobby-card:focus { outline: 2px solid var(--teal-dark); outline-offset: 3px; }

.contact { padding-block: 88px; }
.contact-card { display: grid; grid-template-columns: 1.1fr .9fr; gap: 8%; padding: 62px 7%; background: #e9f1ef; }
.contact h2 { margin-top: 20px; font-size: clamp(36px, 4.4vw, 54px); }
.contact-copy > p { max-width: 440px; margin: 18px 0 24px; color: #627181; font-size: 13px; }
.contact-details { display: grid; align-content: center; }
.contact-details > a { display: grid; grid-template-columns: 42px 1fr 16px; align-items: center; gap: 12px; min-height: 74px; border-bottom: 1px solid #d5dfdd; transition: color .2s ease; }
.contact-details > a:first-child { border-top: 1px solid #d5dfdd; }
.contact-details > a:hover { color: var(--teal-dark); }
.contact-icon { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #d2dcda; border-radius: 50%; color: var(--teal-dark); font-size: 14px; }
.linkedin-icon { font-family: Arial, sans-serif; font-size: 12px; font-weight: 700; }
.contact-details a > span:nth-child(2) { font-size: 12px; font-weight: 600; }
.contact-details small { display: block; margin-bottom: 3px; color: #83908f; font-size: 8px; letter-spacing: .12em; }
.contact-arrow { color: var(--teal-dark); font-size: 14px; }

.site-footer { background: var(--navy); color: var(--white); }
.footer-inner { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner p { margin: 0; color: #9eacba; font-size: 10px; }
.footer-brand .brand-mark { width: 30px; height: 30px; font-size: 9px; }
.footer-brand .brand-name { font-size: 12px; }
.back-top { color: #b5c0ca; font-size: 10px; }
.back-top:hover { color: var(--teal); }

.project-page { min-height: calc(100vh - 152px); }
.project-hero { padding-block: 82px 64px; background: linear-gradient(135deg, #eaf0ef 0%, var(--paper) 70%); }
.project-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 29px; color: #778393; font-size: 11px; }
.project-breadcrumbs a { color: var(--teal-dark); font-weight: 600; }
.project-breadcrumbs a:hover { text-decoration: underline; }
.project-breadcrumbs span[aria-hidden="true"] { color: #a4adb5; }
.project-marker { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; color: #758092; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.project-marker span { color: var(--teal-dark); }
.project-hero h1 { max-width: 850px; margin: 0; font-family: var(--display); font-size: clamp(42px, 6vw, 72px); font-weight: 600; letter-spacing: -.065em; line-height: 1.07; }
.project-lede { max-width: 760px; margin: 20px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.85; }
.project-content { padding-block: 64px 92px; }
.project-content-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.project-content-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(27px, 3.5vw, 40px); letter-spacing: -.05em; }
.project-content-heading p { max-width: 330px; margin: 0; color: var(--ink-soft); font-size: 12px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.project-card { min-height: 190px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.55); }
.project-card > span { color: var(--teal-dark); font-family: var(--display); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.project-card h3 { margin: 14px 0 8px; font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -.035em; }
.project-card p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.8; }
.project-pager { display: flex; justify-content: space-between; gap: 20px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.project-pager a { display: grid; gap: 4px; color: var(--teal-dark); font-size: 12px; font-weight: 700; }
.project-pager a:last-child { margin-left: auto; text-align: right; }
.project-pager small { color: #788493; font-size: 9px; font-weight: 600; letter-spacing: .12em; }

@media (max-width: 900px) {
  .section-pad { padding-block: 86px; }
  .hero { min-height: 590px; gap: 5%; }
  .hero-profile { display: block; width: min(100%, 315px); }
  .hero-facts { gap: 12px; }
  .about { grid-template-columns: .55fr 2fr; gap: 3%; }
  .about-content { grid-template-columns: 1fr; gap: 22px; }
  .timeline::before { left: 170px; }
  .timeline-item { grid-template-columns: 170px 1fr; }
  .timeline-entry { padding-left: 28px; }
  .company-tag { font-size: 8px; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 68px; }
  .section-shell { width: min(100% - 40px, 520px); }
  .section-pad { padding-block: 70px; }
  .nav-wrap { width: calc(100% - 40px); height: 65px; }
  .menu-toggle { display: flex; width: 40px; height: 40px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid #39485a; border-radius: 3px; background: transparent; }
  .menu-toggle span { width: 15px; height: 1px; background: var(--white); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .nav-links { position: absolute; top: 64px; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 10px 20px 20px; background: var(--navy); }
  .nav-links.is-open { display: flex; flex-direction: column; }
  .nav-links > a { padding: 13px 0; border-bottom: 1px solid #263549; }
  .nav-dropdown { border-bottom: 1px solid #263549; }
  .nav-dropdown summary { padding: 13px 0; }
  .nav-dropdown-menu, .nav-dropdown[open] .nav-dropdown-menu { position: static; min-width: 0; padding: 0 0 7px 12px; border: 0; background: transparent; box-shadow: none; }
  .nav-dropdown:not([open]) .nav-dropdown-menu { display: none; }
  .nav-dropdown-menu a { display: block; padding: 9px 10px; border-left: 1px solid #39485a; }
  .nav-links .nav-contact { margin-top: 12px; padding: 11px 12px; border: 1px solid #536173; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 43px; padding-block: 58px 75px; }
  .hero h1 { font-size: clamp(39px, 11vw, 54px); }
  .hero-intro { max-width: 500px; font-size: 14px; }
  .hero-facts { gap: 10px; margin-top: 34px; }
  .hero-facts strong { font-size: 13px; }
  .hero-profile { width: min(78%, 310px); justify-self: center; margin: 0 auto; }
  .orbit-one { right: -20px; }
  .scroll-cue { bottom: 24px; }
  .about { grid-template-columns: 1fr; gap: 27px; }
  .about-content { gap: 16px; }
  .about h2 { font-size: 36px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 32px; }
  .section-heading h2, .credentials h2 { font-size: 37px; }
  .section-heading > p { max-width: 440px; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .expertise-card { min-height: 185px; padding: 20px 15px; }
  .expertise-card h3 { font-size: 14px; }
  .expertise-card p { font-size: 10px; }
  .skills-strip { align-items: flex-start; flex-direction: column; gap: 9px; }
  .timeline::before { left: 4px; }
  .timeline-item { grid-template-columns: 1fr; gap: 12px; padding-bottom: 38px; }
  .timeline-date { padding-left: 27px; }
  .timeline-dot { position: absolute; left: 0; margin: 5px 0 0; }
  .timeline-entry { padding-left: 27px; }
  .role-heading { flex-direction: column; gap: 10px; }
  .role-heading h3 { font-size: 17px; }
  .credentials-layout { grid-template-columns: 1fr; gap: 28px; }
  .certificate-gallery { padding: 16px; }
  .certificate-image-link { min-height: 190px; }
  .certificate-image-link img { height: clamp(180px, 52vw, 300px); }
  .hobbies-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .hobby-list { grid-template-columns: 1fr; }
  .contact { padding-block: 55px; }
  .contact-card { grid-template-columns: 1fr; gap: 30px; padding: 35px 22px; }
  .contact h2 { font-size: 40px; }
  .project-hero { padding-block: 58px 45px; }
  .project-content { padding-block: 45px 65px; }
  .project-content-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 0; padding: 21px; }
  .footer-inner { min-height: 0; flex-wrap: wrap; padding-block: 22px; }
  .footer-inner p { order: 3; width: 100%; }
}

@media (max-width: 390px) {
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { justify-content: space-between; }
  .hero-facts { gap: 7px; }
  .hero-facts div > span { font-size: 9px; }
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-card { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media print {
  @page { margin: 15mm; }
  body { background: #fff; color: #172436; font-size: 10pt; }
  .site-header, .hero-actions, .scroll-cue, .site-footer, .contact-copy .button, .skip-link { display: none !important; }
  .section-shell { width: 100%; }
  .section-pad { padding-block: 22px; }
  .hero { min-height: 0; grid-template-columns: 1fr 140px; gap: 20px; padding-block: 0 22px; }
  .hero h1 { font-size: 32pt; }
  .hero-intro { font-size: 10pt; }
  .hero-profile { width: 130px; }
  .profile-note, .hero-orbit, .photo-caption { display: none; }
  .profile-photo-wrap { padding: 4px; }
  .hero-facts { margin-top: 18px; padding-top: 10px; }
  .about { grid-template-columns: 100px 1fr; gap: 15px; }
  .about-content { grid-template-columns: 1fr 1fr; gap: 20px; }
  .about h2, .section-heading h2, .credentials h2, .contact h2 { font-size: 21pt; }
  .expertise { background: #fff; color: var(--ink); }
  .section-heading > p, .expertise-card p { color: #536174; }
  .section-label-light, .expertise-card h3 { color: var(--ink); }
  .expertise-grid { grid-template-columns: repeat(3, 1fr); border-color: #ccd4d8; }
  .expertise-card { min-height: 0; padding: 12px; border-color: #ccd4d8; break-inside: avoid; }
  .expertise-card h3 { margin-top: 7px; }
  .skills-strip { color: var(--ink); }
  .timeline-item { break-inside: avoid; padding-bottom: 20px; }
  .timeline-entry li { font-size: 9pt; }
  .credentials { background: #fff; }
  .credential-card { padding: 10px; break-inside: avoid; }
  .certificate-gallery { display: none; }
  .contact { padding-block: 20px; }
  .contact-card { grid-template-columns: 1fr 1fr; padding: 18px; background: #fff; }
  a { color: inherit; }
}
