/* Charles Mwita portfolio — responsive, dependency-free design system. */
:root {
    color-scheme: light;
    --paper: #f6f7f4;
    --surface: #ffffff;
    --surface-raised: #fbfcfa;
    --ink: #172a2a;
    --muted: #5b6d6b;
    --subtle: #879591;
    --line: #dfe7e1;
    --accent: #d55b3e;
    --accent-strong: #ae422c;
    --accent-soft: #fae9e3;
    --green: #155e59;
    --green-soft: #e4efea;
    --shadow: 0 24px 70px rgba(19, 45, 39, .09);
    --shadow-small: 0 12px 35px rgba(19, 45, 39, .07);
    --radius: 20px;
    --radius-large: 30px;
    --content: 1160px;
    --ease: cubic-bezier(.2, .75, .25, 1);
}
html[data-theme="dark"] {
    color-scheme: dark;
    --paper: #111c1c;
    --surface: #182525;
    --surface-raised: #1c2b2b;
    --ink: #edf4ee;
    --muted: #adbfba;
    --subtle: #839691;
    --line: #304140;
    --accent: #ff9878;
    --accent-strong: #ffb49e;
    --accent-soft: #392b29;
    --green: #9ad7c3;
    --green-soft: #243b37;
    --shadow: 0 24px 70px rgba(0, 0, 0, .24);
    --shadow-small: 0 12px 35px rgba(0, 0, 0, .2);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    transition: background-color .25s ease, color .25s ease;
}
body, button, input, textarea { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; }
::selection { color: #fff; background: var(--green); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.skip-link, .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.skip-link:focus { z-index: 1000; top: 10px; left: 10px; width: auto !important; height: auto !important; padding: 12px 16px !important; margin: 0 !important; clip: auto !important; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.content-width { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }
.section-wrap { position: relative; padding: clamp(76px, 9vw, 132px) 0; scroll-margin-top: 76px; }
.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent); background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(18px); }
.nav-shell { display: flex; width: min(1280px, calc(100% - 48px)); min-height: 76px; margin: 0 auto; align-items: center; justify-content: space-between; gap: 28px; }
.brand-mark { display: inline-flex; align-items: center; color: var(--ink); font-size: 25px; font-weight: 850; letter-spacing: -.09em; line-height: 1; }
.brand-mark span { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: clamp(13px, 1.7vw, 24px); }
.site-nav > a { color: var(--muted); font-size: 12px; font-weight: 650; transition: color .18s ease; white-space: nowrap; }
.site-nav > a:hover, .site-nav > a:focus-visible { color: var(--accent-strong); }
.site-nav .nav-contact { color: var(--ink); }
.site-nav .language-switch { display: inline-flex; gap: 6px; align-items: center; padding-left: 14px; border-left: 1px solid var(--line); }
.language-switch > span { color: var(--green); font-size: 15px; }
.theme-toggle { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); cursor: pointer; }
.theme-symbol { color: var(--green); font-size: 15px; }
.theme-label { color: var(--muted); font-size: 11px; font-weight: 650; }
.menu-toggle { display: none; }
.hero { min-height: 730px; padding-top: clamp(74px, 9vw, 128px); padding-bottom: 76px; overflow: hidden; }
.hero::before { position: absolute; z-index: 0; top: 32px; left: 50%; width: min(1500px, 120vw); height: 610px; transform: translateX(-50%); background-image: radial-gradient(color-mix(in srgb, var(--green) 13%, transparent) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, #000 0%, transparent 84%); content: ""; opacity: .4; pointer-events: none; }
.hero-glow { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; filter: blur(2px); }
.hero-glow-one { top: 90px; right: 6%; width: 430px; height: 430px; background: radial-gradient(circle, color-mix(in srgb, var(--accent-soft) 85%, transparent), transparent 68%); }
.hero-glow-two { right: 43%; bottom: 8%; width: 350px; height: 350px; background: radial-gradient(circle, color-mix(in srgb, var(--green-soft) 84%, transparent), transparent 70%); }
.hero-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); align-items: center; gap: clamp(35px, 7vw, 100px); }
.hero-copy { max-width: 690px; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 22px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .14em; line-height: 1.45; text-transform: uppercase; }
.eyebrow-mark { color: var(--accent); font-size: 15px; }
.section-number { display: inline-grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--subtle); font-size: 9px; letter-spacing: 0; }
.availability { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 12px; padding: 7px 12px; border: 1px solid color-mix(in srgb, var(--green) 25%, var(--line)); border-radius: 50px; background: color-mix(in srgb, var(--green-soft) 75%, transparent); color: var(--green); font-size: 11px; font-weight: 700; }
.availability-dot { width: 7px; height: 7px; border-radius: 50%; background: #39a375; box-shadow: 0 0 0 4px color-mix(in srgb, #39a375 15%, transparent); }
.hero h1 { margin: 12px 0 4px; color: var(--ink); font-size: clamp(55px, 8.1vw, 102px); font-weight: 780; letter-spacing: -.083em; line-height: .98; }
.hero-period { color: var(--accent); }
.hero-roles { margin: 19px 0 2px; color: var(--green); font-size: clamp(15px, 2vw, 19px); font-weight: 700; letter-spacing: -.015em; }
.hero-side-roles { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.hero-side-roles span { padding: 0 5px; color: var(--accent); }
.hero-intro { max-width: 590px; margin: 25px 0 0; color: var(--muted); font-size: clamp(16px, 1.7vw, 18px); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 14px; padding: 0 20px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 750; transition: transform .2s var(--ease), background .2s ease, border-color .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover { background: color-mix(in srgb, var(--green) 84%, #000); }
.button-primary span, .button-secondary span, .button-light span { color: var(--accent); font-size: 16px; }
.button-secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button-secondary:hover { border-color: var(--green); }
.hero-location { display: flex; align-items: center; gap: 8px; margin-top: 33px; color: var(--muted); font-size: 12px; }
.location-mark { color: var(--accent); font-size: 17px; }
.hero-remote { display: flex; align-items: center; gap: 8px; margin: 5px 0 0 25px; color: var(--green); font-size: 12px; font-weight: 700; }
.hero-remote span { color: var(--accent); }
.full-name { margin: 3px 0 0 25px; color: var(--subtle); font-size: 11px; }
.hero-visual { display: grid; place-items: center; min-height: 420px; }
.portrait-frame { position: relative; display: grid; width: min(100%, 380px); aspect-ratio: .91; place-items: center; }
.portrait-orbit { position: absolute; border: 1px solid color-mix(in srgb, var(--green) 25%, transparent); border-radius: 50%; transform: rotate(-24deg); }
.portrait-orbit-one { inset: 5% -3% 7% 8%; }
.portrait-orbit-two { inset: 13% 9% 0 -5%; border-color: color-mix(in srgb, var(--accent) 27%, transparent); transform: rotate(27deg); }
.portrait-card { position: relative; display: flex; width: min(80%, 320px); height: auto; aspect-ratio: 1; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border: 1px solid color-mix(in srgb, var(--green) 20%, var(--line)); border-radius: 50%; background: linear-gradient(160deg, color-mix(in srgb, var(--green-soft) 74%, var(--surface)), var(--surface) 58%, color-mix(in srgb, var(--accent-soft) 54%, var(--surface))); box-shadow: var(--shadow); }
.portrait-card-with-image::before, .portrait-card-with-image::after { display: none; }
.portrait-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.portrait-card-with-image .portrait-caption { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.portrait-card-with-image .portrait-caption { right: 0; left: 0; justify-content: center; }
.portrait-card-with-image .portrait-caption span { display: none; }
.portrait-card::before { position: absolute; top: 13%; left: 12%; width: 76%; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--green) 19%, transparent); border-radius: 50%; content: ""; }
.portrait-card::after { position: absolute; right: -12%; bottom: -26%; width: 86%; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); border-radius: 50%; content: ""; }
.portrait-monogram { position: relative; z-index: 1; display: grid; width: 150px; height: 150px; place-items: center; border: 1px solid color-mix(in srgb, var(--green) 30%, transparent); border-radius: 50%; background: color-mix(in srgb, var(--surface) 72%, transparent); color: var(--green); font-size: 59px; font-weight: 800; letter-spacing: -.09em; box-shadow: 0 15px 35px rgba(30, 70, 57, .09); }
.photo-placeholder { position: relative; z-index: 2; margin: 13px 0 0; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .1em; }
.portrait-caption { position: absolute; z-index: 2; right: 17px; bottom: 17px; left: 17px; display: flex; justify-content: space-between; margin: 0; color: var(--muted); font-size: 10px; font-weight: 650; }
.portrait-caption span { color: var(--accent); }
.portrait-stamp { position: absolute; z-index: 3; top: 8%; right: -1%; display: grid; width: 73px; height: 73px; place-content: center; gap: 0; border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--line)); border-radius: 50%; background: var(--surface); color: var(--accent-strong); font-size: 8px; font-weight: 850; letter-spacing: .12em; line-height: 1.25; text-align: center; transform: rotate(11deg); box-shadow: var(--shadow-small); }
.stats-row { position: relative; z-index: 2; display: flex; max-width: var(--content); gap: clamp(27px, 5vw, 76px); margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); }
.stat { display: flex; align-items: baseline; gap: 9px; }
.stat strong { color: var(--ink); font-size: 30px; font-weight: 800; letter-spacing: -.07em; line-height: 1; }
.stat strong span { color: var(--accent); }
.stat > span { color: var(--muted); font-size: 11px; }
.scroll-cue { position: absolute; right: max(24px, calc((100vw - var(--content)) / 2)); bottom: 55px; display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--green); font-size: 18px; transition: transform .2s ease; }
.scroll-cue:hover { transform: translateY(4px); }
.section-about { border-top: 1px solid var(--line); background: var(--surface); }
.about-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(48px, 10vw, 145px); }
.section-intro h2, .section-heading h2, .foundation-copy h2, .contact-copy h2 { max-width: 660px; margin: 0; font-size: clamp(34px, 5vw, 55px); font-weight: 760; letter-spacing: -.065em; line-height: 1.08; text-wrap: balance; }
.about-copy > p { margin: 0 0 19px; color: var(--muted); font-size: 16px; line-height: 1.82; }
.education-note { display: flex; gap: 17px; margin-top: 31px; padding: 21px 0 0; border-top: 1px solid var(--line); }
.education-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 12px; background: var(--green-soft); color: var(--green); font-size: 18px; }
.education-note > div { display: grid; gap: 3px; }
.mini-label { color: var(--accent-strong); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.education-note strong { font-size: 15px; }
.education-note span:not(.mini-label), .education-note small { color: var(--muted); font-size: 12px; }
.section-services { background: var(--paper); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 47px; }
.section-heading .eyebrow { margin-bottom: 18px; }
.section-description { max-width: 370px; margin: 0 0 4px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { position: relative; display: flex; min-height: 230px; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 0 20px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); transition: background .2s ease, transform .2s var(--ease); }
.service-image { position: absolute; inset: 0 0 auto; width: 100%; height: 155px; border: 0; border-radius: 0; object-fit: cover; }
.service-card h3 { position: relative; z-index: 1; max-width: calc(100% - 20px); margin: 0; }
.service-number, .service-arrow { z-index: 1; }
.service-number { position: absolute; top: 12px; left: 12px; padding: 5px 7px; border-radius: 2px; background: var(--surface); }
.service-arrow { bottom: 20px; }
.service-card:hover { z-index: 1; background: var(--surface); transform: translateY(-3px); }
.service-number { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.service-card h3 { max-width: 205px; margin: 27px 0 0; font-size: 17px; font-weight: 700; letter-spacing: -.03em; line-height: 1.35; }
.service-arrow { position: absolute; right: 21px; bottom: 20px; color: var(--subtle); font-size: 17px; }
.service-benefits { display: flex; flex-wrap: wrap; gap: 11px 27px; margin-top: 26px; }
.service-benefits span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 600; }
.service-benefits i { color: var(--green); font-size: 13px; font-style: normal; font-weight: 850; }
.section-skills { background: var(--green); color: #fff; }
.section-skills .eyebrow { color: #bfd9cc; }
.section-skills .section-number { border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.7); }
.section-skills .section-heading h2 { color: #fff; }
.section-skills .section-description { color: rgba(255,255,255,.75); }
.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.skill-group { min-height: 180px; padding: 25px 27px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(255,255,255,.055); }
.skill-group h3 { margin: 0 0 20px; color: #d2e9dd; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.skill-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.skill-list li { padding: 7px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 5px; color: #fff; font-size: 11px; line-height: 1.45; }
.section-projects { background: var(--surface); }
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); transition: transform .22s var(--ease), box-shadow .22s ease, border-color .22s ease; }
.project-card:hover { border-color: color-mix(in srgb, var(--green) 38%, var(--line)); box-shadow: var(--shadow-small); transform: translateY(-4px); }
.project-featured { border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); }
.project-visual { position: relative; display: flex; min-height: 235px; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 27px 30px; background: linear-gradient(139deg, #d8e7dc 0%, #f0e5d8 100%); }
.project-tone-1 { background: linear-gradient(145deg, #d8e8dd, #eff0df); }
.project-tone-2 { background: linear-gradient(145deg, #ecd9cb, #f1e9dd); }
.project-tone-3 { background: linear-gradient(145deg, #d7e1eb, #e8efe9); }
.project-tone-4 { background: linear-gradient(145deg, #eed7d0, #f1e7d8); }
.project-tone-0 { background: linear-gradient(145deg, #d7e8e1, #d9e1e9 55%, #eee1d8); }
html[data-theme="dark"] .project-visual { background: linear-gradient(139deg, #294541 0%, #3b3a35 100%); }
html[data-theme="dark"] .project-tone-1 { background: linear-gradient(145deg, #294541, #353d32); }
html[data-theme="dark"] .project-tone-2 { background: linear-gradient(145deg, #49392f, #3e3b34); }
html[data-theme="dark"] .project-tone-3 { background: linear-gradient(145deg, #303e49, #303c37); }
html[data-theme="dark"] .project-tone-4 { background: linear-gradient(145deg, #483735, #403b33); }
.project-visual::before { position: absolute; top: -43%; right: -8%; width: 72%; aspect-ratio: 1; border: 1px solid rgba(22, 74, 65, .18); border-radius: 50%; content: ""; }
.project-visual::after { position: absolute; top: -24%; right: 2%; width: 53%; aspect-ratio: 1; border: 1px solid rgba(22, 74, 65, .14); border-radius: 50%; content: ""; }
.project-visual.has-project-image { padding: 0; background: var(--surface-raised); }
.project-visual.has-project-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.project-visual.project-image-landscape { min-height: 0; aspect-ratio: 16 / 7; }
.project-visual.project-image-landscape img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; object-fit: contain; }
.project-visual.project-image-gallery { min-height: 0; aspect-ratio: 16 / 9; }
.project-visual.project-image-gallery .project-photo-gallery { height: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.project-visual.project-image-gallery-single { aspect-ratio: 1080 / 644; padding: 0; }
.project-visual.project-image-gallery-single .project-photo-gallery { display: block; width: 100%; height: 100%; padding: 0; }
.project-visual.project-image-gallery-single .project-photo-gallery img { display: block; width: 100%; height: 100%; aspect-ratio: 1080 / 644; object-fit: contain; }
.project-photo-gallery, .experience-photo-gallery { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 8px; padding: 10px; }
.project-photo-gallery { height: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.project-photo-gallery img, .experience-photo-gallery img { display: block; width: 100%; height: auto; align-self: start; border: 1px solid var(--line); border-radius: 0; object-fit: contain; background: #fff; }
.project-photo-gallery .photo-landscape, .experience-photo-gallery .photo-landscape { height: auto; aspect-ratio: 3 / 2; align-self: start; }
.experience-photo-gallery .photo-portrait { height: auto; aspect-ratio: 3 / 4; align-self: start; }
.project-photo-gallery .photo-landscape, .experience-photo-gallery .photo-landscape { aspect-ratio: 3 / 2; }
.experience-photo-gallery .photo-portrait { aspect-ratio: 3 / 4; }
.experience-photo-gallery { margin-top: 12px; }
.project-visual.has-project-image::before, .project-visual.has-project-image::after { display: none; }
.visual-index { position: absolute; top: 25px; left: 29px; color: rgba(21, 94, 89, .66); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.visual-title { position: relative; z-index: 1; max-width: 74%; color: #183833; font-size: clamp(22px, 3vw, 35px); font-weight: 800; letter-spacing: -.055em; line-height: 1.08; }
.visual-category { position: relative; z-index: 1; margin-top: 10px; color: rgba(24, 56, 51, .75); font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
html[data-theme="dark"] .visual-index { color: #abd2c0; }
html[data-theme="dark"] .visual-title { color: #f0f3e9; }
html[data-theme="dark"] .visual-category { color: #d2dfd3; }
.visual-decoration { position: absolute; right: 13%; bottom: 13%; color: rgba(213, 91, 62, .72); font-size: 95px; line-height: .8; transform: rotate(14deg); }
.featured-label { position: absolute; z-index: 2; top: 17px; right: 17px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.6); border-radius: 30px; background: rgba(255,255,255,.77); color: #23453e; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(7px); }
.project-content { padding: 22px 25px 24px; }
.project-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.project-category { color: var(--accent-strong); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.external-mark { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--green); font-size: 8px; font-weight: 800; }
.project-content h3 { margin: 9px 0 8px; font-size: 22px; font-weight: 760; letter-spacing: -.045em; line-height: 1.2; }
.project-description { min-height: 67px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.72; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.tech-tags li { padding: 4px 8px; border-radius: 4px; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 700; }
.project-links { display: flex; flex-wrap: wrap; gap: 9px 21px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.project-links a { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 11px; font-weight: 750; }
.project-links a:hover { color: var(--accent-strong); }
.project-links a span { color: var(--accent); }
.section-experience { background: var(--paper); }
.experience-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(270px, .88fr); gap: clamp(42px, 8vw, 108px); }
.subsection-title { display: flex; align-items: center; gap: 10px; margin: 0 0 29px; font-size: 16px; font-weight: 760; }
.subsection-mark { color: var(--accent); font-size: 18px; }
.timeline-column { position: relative; }
.timeline-column::before { position: absolute; top: 68px; bottom: 18px; left: 6px; width: 1px; background: var(--line); content: ""; }
.timeline-item { position: relative; padding: 0 0 27px 27px; }
.timeline-dot { position: absolute; top: 7px; left: 1px; width: 11px; height: 11px; border: 2px solid var(--paper); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.timeline-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; }
.timeline-meta h4 { margin: 0; font-size: 16px; font-weight: 740; letter-spacing: -.025em; }
.timeline-meta > span { color: var(--accent-strong); font-size: 10px; font-weight: 750; }
.timeline-organization { margin: 3px 0 0; color: var(--green); font-size: 12px; font-weight: 700; }
.timeline-organization a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--green) 40%, transparent); text-underline-offset: 3px; }
.timeline-organization a span { color: var(--accent); }
.timeline-description { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.experience-screenshot { display: block; width: min(100%, 560px); height: auto; aspect-ratio: 16 / 7; margin-top: 12px; border: 1px solid var(--line); border-radius: 0; object-fit: contain; background: var(--surface); }
.attachment-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 15px; }
.attachment-gallery img { width: 100%; aspect-ratio: 4 / 5; border: 1px solid var(--line); border-radius: 6px; object-fit: cover; }
.education-card { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.education-card::before { position: absolute; top: 0; right: 20px; left: 20px; height: 3px; border-radius: 0 0 4px 4px; background: var(--accent); content: ""; }
.education-year { display: block; margin-bottom: 18px; color: var(--accent-strong); font-size: 10px; font-weight: 730; line-height: 1.6; }
.education-card h4 { margin: 0; font-size: 19px; font-weight: 750; letter-spacing: -.04em; }
.education-card p { margin: 7px 0; color: var(--green); font-size: 12px; font-weight: 650; }
.education-description { color: var(--muted); font-size: 12px; }
.section-certifications { background: var(--surface); }
.certifications-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.certification-group { padding: 22px 22px 19px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); }
.certification-group h3 { margin: 0 0 14px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.certification-group ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.certification-group li { display: grid; grid-template-columns: 15px 1fr; gap: 7px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.certification-group li span { color: var(--accent); font-weight: 800; }
.section-foundation { overflow: hidden; background: #164f49; color: #fff; }
.foundation-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); align-items: center; gap: clamp(42px, 8vw, 105px); }
.foundation-copy { position: relative; z-index: 1; }
.foundation-copy .eyebrow { color: #b6d6c9; }
.foundation-copy .section-number { border-color: rgba(255,255,255,.24); color: #d4e5db; }
.foundation-copy h2 { margin-bottom: 23px; color: #fff; }
.foundation-copy > p:not(.eyebrow) { max-width: 550px; margin: 0 0 15px; color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.82; }
.button-light { margin-top: 17px; background: #fff; color: #173c36; }
.button-light:hover { background: #eaf2ec; }
.foundation-panel { position: relative; overflow: hidden; padding: 30px; border: 1px solid rgba(255,255,255,.22); border-radius: 16px; background: rgba(255,255,255,.08); }
.foundation-impact { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 13px; padding-bottom: 23px; border-bottom: 1px solid rgba(255,255,255,.2); }
.foundation-impact strong { color: #ffb19b; font-size: clamp(34px, 5vw, 50px); font-weight: 820; letter-spacing: -.075em; line-height: 1; white-space: nowrap; }
.foundation-impact span { max-width: 210px; color: rgba(255,255,255,.75); font-size: 11px; line-height: 1.6; }
.foundation-programs { position: relative; z-index: 1; }
.foundation-programs h3 { margin: 22px 0 13px; color: #d6eadf; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.foundation-programs ul { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 19px; margin: 0; padding: 0; list-style: none; }
.foundation-programs li { display: flex; align-items: flex-start; gap: 9px; }
.program-check { color: #ffac91; font-size: 12px; font-weight: 900; }
.foundation-programs li > span:last-child { display: grid; gap: 3px; }
.foundation-programs strong { color: #fff; font-size: 11px; line-height: 1.45; }
.foundation-programs small { color: rgba(255,255,255,.65); font-size: 10px; line-height: 1.5; }
.foundation-watermark { position: absolute; right: 8px; bottom: -100px; color: rgba(255,255,255,.035); font-size: 280px; font-weight: 850; letter-spacing: -.1em; line-height: 1; pointer-events: none; }
.section-contact { background: var(--paper); }
.contact-layout { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(42px, 8vw, 100px); }
.contact-copy h2 { margin-bottom: 19px; }
.contact-intro { max-width: 450px; margin: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.contact-email { display: inline-flex; align-items: center; gap: 10px; color: var(--green); font-size: clamp(18px, 2.7vw, 25px); font-weight: 750; letter-spacing: -.04em; }
.contact-email span { color: var(--accent); font-size: 16px; }
.whatsapp-link { display: flex; align-items: center; gap: 7px; margin-top: 11px; color: var(--muted); font-size: 12px; }
.whatsapp-link > span { color: var(--green); }
.social-heading { margin: 39px 0 12px; color: var(--subtle); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.social-links { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.social-links a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 11px; font-weight: 650; transition: border-color .2s ease, color .2s ease; }
.social-links a:hover { border-color: var(--green); color: var(--green); }
.social-icon { width: 16px; height: 16px; flex: 0 0 16px; fill: currentColor; }
.contact-form-wrap { padding: 27px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-small); }
.contact-form { display: grid; gap: 17px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: grid; gap: 7px; }
.form-field label { color: var(--ink); font-size: 11px; font-weight: 730; }
.form-field input, .form-field textarea { width: 100%; min-height: 47px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-raised); color: var(--ink); font-size: 13px; transition: border-color .15s ease, box-shadow .15s ease; }
.form-field textarea { min-height: 134px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 14%, transparent); }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--subtle); }
.form-hint { margin: -5px 0 0; color: var(--subtle); font-size: 10px; }
.form-submit { justify-self: start; border: 0; cursor: pointer; }
.form-alert { margin-bottom: 18px; padding: 12px 14px; border-radius: 6px; font-size: 12px; }
.form-alert-success { border: 1px solid #99c8ad; background: color-mix(in srgb, var(--green-soft) 77%, var(--surface)); color: var(--green); }
.form-alert-error { border: 1px solid #dc9e8b; background: var(--accent-soft); color: var(--accent-strong); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.site-footer { padding: 34px 0 25px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }
.footer-brand { font-size: 22px; }
.footer-note { margin: 10px 0 25px; color: var(--muted); font-size: 11px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 10px; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent-strong); }
.admin-link { margin-left: auto; }
.maintenance-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.maintenance-card { width: min(540px, 100%); padding: 42px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.maintenance-card .eyebrow { margin-top: 34px; }
.maintenance-card h1 { margin: 0; font-size: clamp(32px, 7vw, 48px); letter-spacing: -.06em; line-height: 1.1; }
.maintenance-card p:last-child { color: var(--muted); font-size: 14px; }
.maintenance-card code { color: var(--accent-strong); }
.reveal { opacity: 1; transform: none; }
.reveal.reveal-ready { opacity: 0; transform: translateY(16px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.reveal-ready.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal.reveal-ready { opacity: 1; transform: none; }
}
@media (max-width: 980px) {
    .nav-shell { width: min(var(--content), calc(100% - 40px)); }
    .site-nav { gap: 12px; }
    .site-nav > a { font-size: 11px; }
    .theme-label { display: none; }
    .hero-layout { grid-template-columns: minmax(0, 1.15fr) minmax(250px, .85fr); gap: 24px; }
    .hero h1 { font-size: clamp(54px, 8vw, 82px); }
    .portrait-frame { width: min(100%, 320px); }
    .portrait-monogram { width: 128px; height: 128px; font-size: 50px; }
    .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .foundation-layout { grid-template-columns: 1fr 1fr; gap: 32px; }
    .foundation-panel { padding: 23px; }
    .foundation-impact { align-items: flex-start; flex-direction: column; gap: 6px; }
}
@media (max-width: 760px) {
    .attachment-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html { scroll-padding-top: 70px; }
    .content-width { width: min(var(--content), calc(100% - 38px)); }
    .section-wrap { padding: 76px 0; }
    .nav-shell { width: calc(100% - 36px); min-height: 68px; }
    .menu-toggle { display: flex; width: 42px; height: 42px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; }
    .menu-toggle span { width: 16px; height: 1.5px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
    .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(6.5px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6.5px) rotate(-45deg); }
    .site-nav { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 9px 20px 18px; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-small); }
    .site-nav.is-open { display: flex; flex-direction: column; }
    .site-nav > a { padding: 11px 5px; border-bottom: 1px solid var(--line); font-size: 13px; }
    .site-nav .language-switch { padding-left: 5px; border-left: 0; }
    .site-nav .theme-toggle { align-self: flex-start; margin-top: 10px; }
    .theme-label { display: inline; }
    .hero { min-height: 0; padding-top: 65px; padding-bottom: 60px; }
    .hero-layout { grid-template-columns: 1fr; gap: 25px; }
    .hero-copy { max-width: 640px; }
    .hero h1 { font-size: clamp(58px, 14vw, 94px); }
    .hero-visual { min-height: 345px; }
    .portrait-frame { width: min(77vw, 330px); }
    .portrait-card { width: 74%; }
    .stats-row { flex-wrap: wrap; gap: 17px 31px; margin-top: 31px; padding-top: 20px; }
    .stat { gap: 7px; }
    .stat strong { font-size: 25px; }
    .stat > span { max-width: 95px; font-size: 10px; line-height: 1.35; }
    .scroll-cue { right: 20px; bottom: 34px; width: 32px; height: 32px; }
    .about-layout, .experience-layout, .contact-layout { grid-template-columns: 1fr; gap: 35px; }
    .about-layout { gap: 27px; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 31px; }
    .section-description { max-width: 530px; }
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-card { min-height: 190px; padding: 17px; }
    .service-image { height: 130px; }
    .service-card h3 { font-size: 15px; }
    .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .skill-group { min-height: 0; padding: 20px; }
    .projects-grid { grid-template-columns: 1fr; gap: 17px; }
    .project-visual { min-height: 205px; }
    .project-description { min-height: 0; }
    .certifications-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foundation-layout { grid-template-columns: 1fr; gap: 33px; }
    .foundation-impact { align-items: baseline; flex-direction: row; }
    .contact-form-wrap { padding: 22px; }
}
@media (max-width: 500px) {
    .content-width { width: calc(100% - 34px); }
    .section-wrap { padding: 65px 0; }
    .hero { padding-top: 52px; }
    .hero h1 { font-size: clamp(53px, 14vw, 70px); }
    .hero-roles { font-size: 15px; line-height: 1.6; }
    .hero-intro { margin-top: 20px; font-size: 15px; }
    .hero-visual { min-height: 305px; }
    .portrait-frame { width: min(82vw, 300px); }
    .portrait-monogram { width: 116px; height: 116px; font-size: 44px; }
    .portrait-stamp { width: 64px; height: 64px; font-size: 7px; }
    .hero-actions { gap: 9px; }
    .button { min-height: 46px; padding-inline: 15px; font-size: 12px; }
    .stats-row { gap: 13px 22px; }
    .stat > span { width: 66px; }
    .section-intro h2, .section-heading h2, .foundation-copy h2, .contact-copy h2 { font-size: clamp(32px, 9.5vw, 45px); }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .service-card { min-height: 184px; padding: 15px 13px; }
    .service-image { height: 112px; }
    .service-card h3 { max-width: calc(100% - 18px); font-size: 14px; }
    .service-arrow { right: 13px; bottom: 13px; }
    .service-benefits { gap: 8px 14px; }
    .service-benefits span { font-size: 10px; }
    .skills-grid { grid-template-columns: 1fr; }
    .skill-group { padding: 20px; }
    .project-content { padding: 19px; }
    .project-visual { min-height: 183px; padding: 21px; }
    .visual-title { max-width: 80%; font-size: 28px; }
    .timeline-meta { display: block; }
    .timeline-meta > span { display: block; margin-top: 3px; }
    .certifications-grid { grid-template-columns: 1fr; }
    .foundation-panel { padding: 22px 19px; }
    .foundation-impact { flex-direction: column; gap: 6px; }
    .foundation-programs ul { grid-template-columns: 1fr; gap: 13px; }
    .form-row { grid-template-columns: 1fr; gap: 17px; }
    .contact-form-wrap { padding: 18px; }
    .social-links { gap: 7px; }
    .social-links a { padding: 7px 9px; }
    .footer-inner { width: calc(100% - 34px); }
    .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
    .admin-link { margin-left: 0; }
}

/* --- Motion layer: scroll progress, name ticker, floating chips and contact dock --- */
.scroll-progress { position: fixed; z-index: 60; top: 0; right: 0; left: 0; height: 3px; background: transparent; pointer-events: none; }
.scroll-progress > span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--accent), var(--green)); transform: scaleX(0); transform-origin: 0 50%; }
.ticker { position: relative; overflow: hidden; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.ticker::before, .ticker::after { position: absolute; top: 0; bottom: 0; z-index: 2; width: 70px; content: ""; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--paper), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--paper), transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker-scroll 34s linear infinite; }
.ticker-run { display: inline-flex; align-items: center; gap: 18px; padding-right: 18px; color: var(--green); font-size: 11px; font-weight: 780; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }
.ticker-run > b { color: var(--accent); font-weight: 400; }
@keyframes ticker-scroll { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.hero-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 19px; }
.float-chip { padding: 6px 12px; border: 1px solid color-mix(in srgb, var(--green) 22%, var(--line)); border-radius: 50px; background: color-mix(in srgb, var(--surface) 84%, transparent); color: var(--green); font-size: 10px; font-weight: 760; letter-spacing: .09em; text-transform: uppercase; box-shadow: var(--shadow-small); animation: chip-float 6s ease-in-out infinite; backdrop-filter: blur(6px); }
.float-chip.chip-two { animation-duration: 7.4s; animation-delay: -1.6s; }
.float-chip.chip-three { animation-duration: 8.6s; animation-delay: -3.1s; }
.float-chip.chip-four { border-color: color-mix(in srgb, var(--accent) 34%, var(--line)); color: var(--accent-strong); animation-duration: 6.8s; animation-delay: -2.2s; }
@keyframes chip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.float-dock { position: fixed; z-index: 55; right: 18px; bottom: 18px; display: grid; gap: 9px; visibility: hidden; opacity: 0; transform: translateY(14px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s; }
.float-dock.is-visible { visibility: visible; opacity: 1; transform: none; }
.dock-item { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 50px; background: var(--surface); color: var(--ink); font-size: 11px; font-weight: 720; box-shadow: var(--shadow-small); animation: dock-bob 5.6s ease-in-out infinite; }
.dock-item:hover { border-color: var(--green); color: var(--green); }
.dock-item:nth-child(2) { animation-delay: -1.9s; }
.dock-item:nth-child(3) { animation-delay: -3.5s; }
.dock-whatsapp { border-color: color-mix(in srgb, var(--green) 32%, var(--line)); color: var(--green); }
.dock-whatsapp > span:first-child { color: #25d366; font-size: 14px; }
.dock-mail > span:first-child { color: var(--accent); font-size: 13px; }
.dock-top > span:first-child { color: var(--green); font-size: 13px; }
@keyframes dock-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.portrait-stamp { animation: stamp-turn 24s linear infinite; }
@keyframes stamp-turn { from { transform: rotate(11deg); } to { transform: rotate(371deg); } }
.availability-dot { animation: dot-pulse 2.6s ease-in-out infinite; }
@keyframes dot-pulse { 0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, #39a375 16%, transparent); } 50% { box-shadow: 0 0 0 8px color-mix(in srgb, #39a375 4%, transparent); } }
.hero-glow { animation: glow-drift 14s ease-in-out infinite; }
.hero-glow-two { animation-duration: 18s; animation-delay: -6s; }
@keyframes glow-drift { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -20px, 0); } }
@media (max-width: 500px) {
    .float-dock { right: 13px; bottom: 13px; gap: 8px; }
    .dock-text { display: none; }
    .dock-item { width: 44px; height: 44px; padding: 0; }
    .ticker-run { gap: 13px; font-size: 10px; letter-spacing: .1em; }
    .hero-chips { gap: 7px; margin-top: 15px; }
    .float-chip { padding: 5px 10px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    .ticker-track, .float-chip, .dock-item, .portrait-stamp, .availability-dot, .hero-glow { animation: none !important; }
    .float-dock { transition: opacity .01ms, visibility .01ms; }
    .scroll-progress > span { transform: none !important; }
}

