:root {
    --navy-950: #04101f;
    --navy-900: #071528;
    --navy-800: #0c2340;
    --navy-700: #173b67;
    --blue-600: #1d5fa7;
    --blue-500: #2f75bd;
    --gold: #c7a36a;
    --gold-light: #e8d4ae;
    --white: #ffffff;
    --paper: #f7f8fa;
    --surface: #ffffff;
    --surface-2: #eef2f6;
    --ink: #102033;
    --muted: #5d6a78;
    --line: #d9e0e8;
    --danger: #a72626;
    --success: #176c50;
    --shadow: 0 25px 70px rgba(4, 16, 31, .14);
    --container: 1180px;
    --header-height: 82px;
}
html[data-theme="dark"] {
    --paper: #07111e;
    --surface: #0b1929;
    --surface-2: #102238;
    --ink: #f2f6fb;
    --muted: #aebbc9;
    --line: #24384e;
    --shadow: 0 25px 70px rgba(0, 0, 0, .34);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 17px; line-height: 1.68; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
img { display: block; max-width: 100%; }
p { margin: 0 0 1.15rem; }
h1, h2, h3 { margin: 0; color: inherit; font-weight: 680; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.85rem, 5vw, 5.2rem); }
h2 { font-size: clamp(2rem, 3.35vw, 3.35rem); }
h3 { font-size: 1.45rem; }
ul, ol { margin: 0; padding: 0; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.section { padding: 120px 0; }
.section-light { background: var(--surface); }
.section-soft { background: var(--surface-2); }
.section-dark { background: var(--navy-900); color: var(--white); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; color: var(--blue-600); font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.eyebrow.light { color: var(--gold-light); }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 25px; border: 1px solid transparent; border-radius: 2px; font-weight: 750; font-size: .94rem; transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease; cursor: pointer; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue-500); color: var(--white); }
.button-primary:hover { background: #3d82c7; }
.button-ghost { border-color: rgba(255,255,255,.4); color: var(--white); background: transparent; }
.button-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.button-light { background: var(--white); color: var(--navy-900); }
.text-link { display: inline-flex; gap: 12px; align-items: center; color: var(--blue-600); font-weight: 750; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }
.light-link { color: var(--gold-light); }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 9999; padding: 12px 16px; background: var(--white); color: var(--navy-900); }
.skip-link:focus { top: 16px; }
.progress-line { position: fixed; top: 0; left: 0; z-index: 9999; width: 0; height: 3px; background: var(--gold); opacity: 0; transition: opacity .15s ease, width .3s ease; }
.progress-line.is-active { opacity: 1; width: 72%; animation: progressPulse 1.6s infinite ease-in-out; }
.progress-line.is-complete { opacity: 1; width: 100%; }
@keyframes progressPulse { 0%,100% { width: 55%; } 50% { width: 84%; } }
.site-header { position: fixed; inset: 0 0 auto; z-index: 1000; height: var(--header-height); background: rgba(7,21,40,.8); color: var(--white); border-bottom: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(16px); transition: height .25s ease, background .25s ease, box-shadow .25s ease; }
.site-header.is-scrolled { height: 72px; background: rgba(7,21,40,.96); box-shadow: 0 10px 35px rgba(0,0,0,.16); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand-mark { width: 43px; height: 43px; display: inline-flex; align-items: center; justify-content: center; background: var(--gold); color: var(--navy-900); font-size: .84rem; font-weight: 900; letter-spacing: .05em; }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-size: 1rem; letter-spacing: -.01em; }
.brand-copy small { margin-top: 5px; color: #b9c6d5; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.primary-nav a { position: relative; padding: 27px 0; color: #d8e1eb; font-size: .88rem; font-weight: 670; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 20px; height: 2px; background: var(--gold); transition: right .22s ease; }
.primary-nav a:hover, .primary-nav a.is-active { color: var(--white); }
.primary-nav a:hover::after, .primary-nav a.is-active::after { right: 0; }
.primary-nav .nav-contact { padding: 10px 16px; border: 1px solid rgba(255,255,255,.35); }
.primary-nav .nav-contact::after { display: none; }
.theme-toggle { width: 42px; height: 42px; padding: 0; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 2px; background: transparent; color: var(--white); }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="light"] .sun-icon, html[data-theme="dark"] .moon-icon { display: none; }
.menu-toggle { display: none; width: 44px; height: 42px; padding: 10px; border: 1px solid rgba(255,255,255,.25); background: transparent; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--white); }
.hero { min-height: 760px; padding-top: calc(var(--header-height) + 52px); padding-bottom: 52px; overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 0 49.9%, rgba(255,255,255,.045) 50%, transparent 50.1%), linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px); background-size: 100% 100%, 100% 72px; }
.hero-grid { min-height: 610px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 64px; position: relative; z-index: 1; }
.hero-copy h1 { max-width: 700px; font-size: clamp(3rem, 4.45vw, 4.75rem); line-height: 1.04; }
.hero-lead { max-width: 680px; margin: 27px 0 34px; color: #c5d1df; font-size: 1.08rem; line-height: 1.7; }
.hero-lead a { color: var(--gold-light); border-bottom: 1px solid rgba(232,212,174,.5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-facts { display: grid; grid-template-columns: repeat(3,1fr); max-width: 700px; margin: 42px 0 0; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.14); }
.hero-facts div { padding-right: 24px; }
.hero-facts dt { font-size: 1.45rem; color: var(--gold-light); font-weight: 800; }
.hero-facts dd { margin: 4px 0 0; color: #aebdcd; font-size: .78rem; line-height: 1.4; text-transform: uppercase; letter-spacing: .08em; }
.hero-visual { position: relative; align-self: center; width: 100%; }
.portrait-frame { position: relative; max-width: 455px; margin-left: auto; border: 1px solid rgba(255,255,255,.14); background: #102238; box-shadow: 0 35px 75px rgba(0,0,0,.26); }
.portrait-frame::before { content: ""; position: absolute; z-index: 2; inset: 24px; border: 1px solid rgba(255,255,255,.18); pointer-events: none; }
.portrait-frame img { width: 100%; height: 560px; object-fit: cover; object-position: center 28%; filter: saturate(.92) contrast(1.02); }
.portrait-caption { position: absolute; z-index: 3; left: -34px; bottom: 28px; width: 260px; padding: 16px 20px; background: var(--white); color: var(--navy-900); box-shadow: var(--shadow); }
.portrait-caption span, .portrait-caption strong { display: block; }
.portrait-caption span { color: var(--blue-600); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.portrait-caption strong { margin-top: 5px; line-height: 1.35; }
.hero-signal { position: absolute; right: -45px; top: 12%; display: grid; gap: 7px; }
.hero-signal span { display: block; width: 6px; height: 6px; background: var(--gold); }
.hero-signal span:nth-child(2) { opacity: .6; }
.hero-signal span:nth-child(3) { opacity: .3; }
.intro-strip { background: var(--gold); color: var(--navy-900); }
.intro-strip-grid { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.intro-strip-grid span { font-size: .74rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.intro-strip-grid p { margin: 0; font-size: .85rem; font-weight: 750; }
.intro-strip-grid i { width: 5px; height: 5px; background: var(--navy-900); transform: rotate(45deg); }
.split-intro { display: grid; grid-template-columns: .95fr 1.05fr; gap: 110px; align-items: start; }
.split-intro h2 { max-width: 580px; }
.large-copy { color: var(--muted); font-size: 1.32rem; line-height: 1.75; }
.section-heading { margin-bottom: 58px; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.section-heading h2 { max-width: 720px; }
.section-heading.inverse h2 { color: var(--white); }
.expertise-preview { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.expertise-card { min-height: 320px; padding: 34px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); transition: transform .25s ease, box-shadow .25s ease; }
.expertise-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.expertise-card > span { color: var(--blue-600); font-size: .76rem; font-weight: 850; }
.expertise-card h3 { margin: 70px 0 18px; }
.expertise-card p { color: var(--muted); font-size: .94rem; }
.projects-featured { overflow: hidden; }
.featured-projects { display: grid; grid-template-columns: repeat(3,1fr); gap: 25px; }
.project-card { display: block; background: #0c2340; border: 1px solid rgba(255,255,255,.12); transition: transform .25s ease, border-color .25s ease; }
.project-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.project-visual { position: relative; height: 220px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg,#173b67,#071528); }
.project-visual::before, .project-visual::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.12); }
.project-visual::before { width: 180px; height: 180px; transform: rotate(45deg); }
.project-visual::after { width: 95px; height: 95px; }
.project-visual span { z-index: 1; color: var(--gold-light); font-size: 2.4rem; font-weight: 850; text-transform: uppercase; }
.project-visual i { position: absolute; inset: auto 0 0; height: 4px; background: var(--gold); transform: scaleX(.25); transform-origin: left; transition: transform .35s ease; }
.project-card:hover .project-visual i { transform: scaleX(1); }
.project-card-content { padding: 30px; }
.project-meta { color: var(--gold-light); font-size: .69rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.project-card h3 { margin: 16px 0 15px; color: var(--white); }
.project-card p { min-height: 110px; color: #b7c5d4; font-size: .92rem; }
.project-link { color: var(--white); font-weight: 750; font-size: .86rem; }
.statement-grid { display: grid; grid-template-columns: .25fr 1.75fr; gap: 50px; }
.statement-mark { color: var(--gold); font-family: Georgia,serif; font-size: 11rem; line-height: .8; }
.statement-grid blockquote { margin: 0; }
.statement-grid blockquote p { max-width: 900px; font-size: clamp(1.75rem,3.1vw,3rem); line-height: 1.3; letter-spacing: -.025em; }
.statement-grid blockquote footer { margin-top: 28px; color: var(--blue-600); font-weight: 800; }
.contact-cta { background: var(--blue-600); color: var(--white); }
.contact-cta-inner { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 80px; }
.contact-cta h2 { max-width: 720px; }
.contact-cta p { color: #e3edf7; font-size: 1.06rem; }
.page-hero { padding: calc(var(--header-height) + 82px) 0 88px; }
.compact-hero { padding-bottom: 76px; }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: end; }
.page-hero h1 { max-width: 840px; font-size: clamp(2.75rem,4.3vw,4.35rem); line-height: 1.08; }
.page-hero-grid > p { margin: 0; padding-bottom: 8px; color: #bdcbd9; font-size: 1.14rem; }
.about-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 86px; align-items: start; }
.about-photo { position: sticky; top: 110px; }
.about-photo picture { display: block; background: var(--surface-2); }
.about-photo img { width: 100%; max-height: 690px; object-fit: cover; object-position: center 32%; }
.about-photo-label { padding: 22px 25px; border: 1px solid var(--line); border-top: 0; }
.about-photo-label strong, .about-photo-label span { display: block; }
.about-photo-label span { margin-top: 4px; color: var(--muted); font-size: .84rem; }
.about-narrative h2 { max-width: 760px; margin-bottom: 28px; }
.about-narrative > p { color: var(--muted); font-size: 1.04rem; line-height: 1.78; }
.profile-highlights { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.profile-highlights article { min-height: 130px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.profile-highlights strong { display: block; color: var(--blue-600); font-size: 1.42rem; line-height: 1.15; }
.profile-highlights span { display: block; margin-top: 9px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.credentials-intro { max-width: 620px; margin: 18px 0 30px; color: var(--muted); font-size: .98rem; }
.about-tag-cloud { margin-top: 2px; }
.founder-note { margin-top: 42px; padding: 28px; display: grid; grid-template-columns: 100px 1fr; gap: 25px; background: var(--navy-900); color: var(--white); }
.founder-note > span { color: var(--gold-light); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.founder-note strong { font-size: 1.25rem; }
.founder-note p { margin: 6px 0 11px; color: #bac8d6; font-size: .89rem; }
.founder-note a { color: var(--gold-light); font-weight: 750; font-size: .86rem; }
.values-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.value-card { padding: 34px 28px; min-height: 280px; background: var(--surface); border-top: 4px solid var(--blue-600); }
.value-card > span { color: var(--blue-600); font-weight: 850; font-size: .76rem; }
.value-card h3 { margin: 58px 0 16px; }
.value-card p { color: var(--muted); font-size: .93rem; }
.credentials-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: 82px; }
.education-list article { padding: 27px 0; display: flex; align-items: start; justify-content: space-between; gap: 25px; border-top: 1px solid var(--line); }
.education-list article:last-child { border-bottom: 1px solid var(--line); }
.education-list h3 { font-size: 1.25rem; }
.education-list p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.education-list article > span { flex: none; padding: 7px 10px; background: var(--gold); color: var(--navy-900); font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.credentials-section { overflow: hidden; }
.certifications-block { margin-top: 88px; padding-top: 70px; border-top: 1px solid var(--line); }
.certifications-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 48px; margin-bottom: 38px; }
.certifications-heading h2 { font-size: clamp(2rem, 3vw, 3rem); }
.certifications-heading .credentials-intro { margin-bottom: 0; }
.certifications-heading > strong { align-self: start; padding: 10px 14px; border: 1px solid var(--line); color: var(--blue-600); background: var(--surface); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.certification-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.certification-card { min-height: 142px; padding: 25px 26px; display: grid; grid-template-columns: 38px 1fr; align-items: start; gap: 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.certification-card > span { padding-top: 3px; color: var(--blue-600); font-size: .72rem; font-weight: 850; letter-spacing: .08em; }
.certification-card h3 { max-width: 480px; font-size: 1rem; line-height: 1.48; letter-spacing: -.012em; }
.technology-credentials { display: grid; grid-template-columns: .72fr 1.28fr; gap: 82px; align-items: start; }
.technology-credentials .about-tag-cloud { margin-top: 4px; }
.expertise-full { border-top: 1px solid var(--line); }
.expertise-row { display: grid; grid-template-columns: 90px .85fr 1.15fr; gap: 55px; padding: 58px 0; border-bottom: 1px solid var(--line); }
.expertise-number { color: var(--blue-600); font-weight: 850; }
.expertise-row h2 { font-size: clamp(1.9rem,3vw,2.7rem); }
.expertise-row p { margin-top: 16px; color: var(--muted); }
.expertise-row ul { display: grid; gap: 12px; list-style: none; }
.expertise-row li { position: relative; padding-left: 22px; color: var(--muted); }
.expertise-row li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; background: var(--gold); }
.technology-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.technology-section p { color: var(--muted); }
.tag-cloud { display: flex; flex-wrap: wrap; align-content: start; gap: 10px; }
.tag-cloud span, .training-topics span { padding: 10px 13px; border: 1px solid var(--line); background: var(--surface); font-size: .84rem; font-weight: 650; }
.training-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.training-grid h2 { font-size: clamp(2rem,3.25vw,3.1rem); }
.training-grid p { margin-top: 25px; color: #bac8d6; }
.training-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: center; }
.training-topics span { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.045); color: var(--white); }
.projects-list { border-top: 1px solid var(--line); }
.project-list-item { display: grid; grid-template-columns: 75px 1fr 190px; gap: 40px; padding: 50px 0; border-bottom: 1px solid var(--line); transition: padding .25s ease, background .25s ease; }
.project-list-item:hover { padding-left: 18px; padding-right: 18px; background: var(--surface-2); }
.project-index { color: var(--blue-600); font-size: .8rem; font-weight: 850; }
.project-list-main > span { color: var(--blue-600); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.project-list-main h2 { margin: 10px 0 16px; font-size: clamp(1.8rem,2.6vw,2.65rem); }
.project-list-main p { max-width: 760px; color: var(--muted); }
.project-list-side { display: grid; align-content: start; justify-items: end; gap: 8px; color: var(--muted); font-size: .83rem; }
.project-list-side b { margin-top: 35px; color: var(--blue-600); font-size: 1.6rem; }
.project-hero { padding: calc(var(--header-height) + 65px) 0 105px; }
.back-link { display: inline-block; margin-bottom: 75px; color: var(--gold-light); font-weight: 720; }
.project-hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 100px; align-items: end; }
.project-hero h1 { font-size: clamp(2.9rem,4.8vw,4.9rem); }
.project-hero-grid > div > p { max-width: 780px; margin-top: 30px; color: #c0cddb; font-size: 1.15rem; }
.project-summary { border-top: 1px solid rgba(255,255,255,.18); }
.project-summary div { padding: 17px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.18); }
.project-summary dt { color: #9eafc0; font-size: .78rem; }
.project-summary dd { margin: 0; text-align: right; font-weight: 700; }
.case-study-grid { display: grid; grid-template-columns: .55fr 1.45fr; gap: 100px; }
.case-services { position: sticky; top: 110px; align-self: start; padding: 30px; border: 1px solid var(--line); }
.case-services ul { list-style: none; }
.case-services li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.case-services li:last-child { border-bottom: 0; }
.case-content article { padding: 0 0 65px; margin-bottom: 65px; border-bottom: 1px solid var(--line); }
.case-content article:last-child { margin-bottom: 0; }
.case-content article > span { color: var(--blue-600); font-weight: 850; }
.case-content h2 { margin: 17px 0 25px; }
.case-content p { color: var(--muted); font-size: 1.18rem; line-height: 1.85; }
.next-project { padding: 70px 0; }
.next-project .container { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.next-project span { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.next-project a { font-size: 1.4rem; font-weight: 750; }
.next-project b { color: var(--blue-600); margin-left: 20px; }
.experience-layout { display: grid; grid-template-columns: .52fr 1.48fr; gap: 90px; }
.experience-intro { position: sticky; top: 110px; align-self: start; }
.experience-intro p { color: var(--muted); }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 0; width: 1px; background: var(--line); }
.timeline-item { position: relative; padding: 0 0 70px 48px; }
.timeline-marker { position: absolute; left: 0; top: 8px; width: 13px; height: 13px; background: var(--gold); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--gold); }
.timeline-head span { color: var(--blue-600); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.timeline-head h3 { margin: 9px 0 5px; font-size: 1.8rem; }
.timeline-head p { color: var(--muted); }
.timeline-item ul { margin-top: 24px; display: grid; gap: 12px; list-style: none; }
.timeline-item li { position: relative; padding-left: 20px; color: var(--muted); }
.timeline-item li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; background: var(--blue-600); }
.credentials-split { display: grid; grid-template-columns: 1fr 1fr; gap: 95px; }
.education-cards { display: grid; gap: 14px; }
.education-cards article { padding: 24px; background: var(--surface); border-left: 4px solid var(--gold); }
.education-cards h3 { font-size: 1.16rem; }
.education-cards span { display: inline-block; margin-top: 9px; color: var(--blue-600); font-size: .75rem; font-weight: 850; text-transform: uppercase; }
.education-cards p { margin: 9px 0 0; color: var(--muted); font-size: .86rem; }
.certification-list { list-style: none; counter-reset: cert; }
.certification-list li { counter-increment: cert; position: relative; padding: 17px 0 17px 54px; border-top: 1px solid var(--line); }
.certification-list li::before { content: counter(cert, decimal-leading-zero); position: absolute; left: 0; color: var(--blue-600); font-size: .72rem; font-weight: 850; }
.certification-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 95px; }
.contact-details { position: sticky; top: 110px; align-self: start; }
.contact-details > p { color: var(--muted); }
.contact-details dl { margin: 42px 0 0; }
.contact-details dl div { padding: 18px 0; border-top: 1px solid var(--line); }
.contact-details dl div:last-child { border-bottom: 1px solid var(--line); }
.contact-details dt { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-details dd { margin: 5px 0 0; font-weight: 720; overflow-wrap: anywhere; }
.contact-form { padding: 42px; background: var(--surface-2); border-top: 5px solid var(--blue-600); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { margin-bottom: 21px; }
.form-field label { display: block; margin-bottom: 8px; font-size: .82rem; font-weight: 750; }
.form-field label span { color: var(--muted); font-weight: 500; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--ink); outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.form-field input, .form-field select { height: 52px; padding: 0 14px; }
.form-field textarea { min-height: 165px; resize: vertical; padding: 13px 14px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(47,117,189,.13); }
.form-field .is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(167,38,38,.09); }
.field-error { display: block; min-height: 18px; margin-top: 5px; color: var(--danger); font-size: .74rem; }
.consent { display: flex; gap: 11px; align-items: flex-start; color: var(--muted); font-size: .82rem; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue-600); }
.consent a { color: var(--blue-600); text-decoration: underline; }
.submit-button { margin-top: 26px; min-width: 175px; }
.submit-button i { display: none; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.45); border-top-color: var(--white); border-radius: 50%; animation: spin .7s linear infinite; }
.submit-button.is-loading i { display: block; }
.submit-button:disabled { opacity: .7; cursor: wait; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-note { margin: 16px 0 0; color: var(--muted); font-size: .75rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.prose-page { max-width: 850px; }
.prose-page h2 { margin: 45px 0 16px; font-size: 1.7rem; }
.prose-page h2:first-child { margin-top: 0; }
.prose-page p { color: var(--muted); font-size: 1.04rem; }
.prose-page a { color: var(--blue-600); text-decoration: underline; }
.error-page { min-height: 100vh; padding: calc(var(--header-height) + 100px) 0 100px; display: grid; place-items: center; }
.error-inner { text-align: center; }
.error-inner > span { color: var(--gold); font-size: 7rem; font-weight: 900; }
.error-inner h1 { font-size: clamp(2.8rem,5vw,5rem); }
.error-inner p { margin: 20px 0 30px; color: #bdcad8; }
.site-footer { padding-top: 80px; background: var(--navy-950); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr 1fr 1fr; gap: 70px; padding-bottom: 65px; }
.footer-intro p { max-width: 390px; margin-top: 25px; color: #a9b8c8; font-size: .9rem; }
.footer-brand .brand-mark { background: var(--gold); }
.footer-grid h2 { margin-bottom: 20px; color: var(--gold-light); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid > div:not(:first-child) a { display: block; margin: 9px 0; color: #c0cbd7; font-size: .88rem; }
.footer-grid > div:not(:first-child) a:hover { color: var(--white); }
.footer-grid > div > p { color: #a9b8c8; font-size: .88rem; }
.footer-bottom { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 25px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom p { margin: 0; color: #8595a7; font-size: .78rem; }
.footer-bottom a { margin-left: 25px; color: #9eacbb; font-size: .78rem; }
.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 800; width: 44px; height: 44px; border: 0; background: var(--gold); color: var(--navy-900); font-weight: 900; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.toast-region { position: fixed; top: 95px; right: 20px; z-index: 2000; display: grid; gap: 10px; width: min(390px, calc(100% - 40px)); }
.toast { display: grid; grid-template-columns: 28px 1fr 24px; align-items: start; gap: 10px; padding: 17px; background: var(--surface); color: var(--ink); border-left: 4px solid var(--success); box-shadow: var(--shadow); opacity: 0; transform: translateX(20px); transition: opacity .25s ease, transform .25s ease; }
.toast-error { border-color: var(--danger); }
.toast > span { width: 24px; height: 24px; display: grid; place-items: center; background: var(--success); color: var(--white); font-weight: 850; }
.toast-error > span { background: var(--danger); }
.toast p { margin: 0; font-size: .86rem; }
.toast button { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.toast.is-visible { opacity: 1; transform: translateX(0); }

/* Professional paragraph alignment
   Long, wide reading copy uses controlled justification so both edges appear
   orderly. Narrow cards and columns remain left-aligned to prevent stretched
   gaps between words. */
.hero-lead,
.large-copy,
.about-narrative > p,
.project-list-main p,
.project-hero-grid > div > p,
.case-content p,
.prose-page p,
.statement-grid blockquote p {
    max-width: 68ch;
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: normal;
    word-break: normal;
    word-spacing: normal;
    letter-spacing: normal;
    text-wrap: pretty;
}

/* Narrow content should never be justified because it creates uneven spaces. */
.page-hero-grid > p,
.credentials-intro,
.expertise-card p,
.value-card p,
.expertise-row p,
.technology-section p,
.training-grid p,
.project-card p,
.experience-intro p,
.contact-details > p,
.timeline-item li,
.founder-note p,
.footer-grid p {
    text-align: left;
    text-align-last: auto;
    text-justify: auto;
    -webkit-hyphens: none;
    hyphens: none;
    overflow-wrap: break-word;
    word-spacing: normal;
    letter-spacing: normal;
}

/* Keep the main biography and case-study copy at a comfortable reading width. */
.about-narrative > p,
.case-content p,
.prose-page p {
    max-width: 68ch;
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal-delay { transition-delay: .12s; }
.reveal.is-revealed { 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 { opacity: 1; transform: none; } }
@media (max-width: 1050px) {
    .primary-nav { gap: 18px; }
    .brand-copy small { display: none; }
    .hero-grid { grid-template-columns: 1fr .8fr; gap: 42px; }
    .hero-copy h1 { font-size: clamp(2.9rem, 4.6vw, 4.15rem); }
    .portrait-frame img { height: 525px; }
    .expertise-preview, .values-grid { grid-template-columns: 1fr 1fr; }
    .featured-projects { grid-template-columns: 1fr 1fr; }
    .featured-projects .project-card:last-child { grid-column: span 2; }
    .footer-grid { grid-template-columns: 1.3fr .7fr 1fr; }
    .footer-grid > div:last-child { grid-column: 2 / 4; }
}
@media (max-width: 860px) {
    :root { --header-height: 72px; }
    body { font-size: 16px; }
    .container { width: min(calc(100% - 34px), var(--container)); }
    .section { padding: 88px 0; }
    .menu-toggle { display: block; margin-left: auto; }
    .primary-nav { position: fixed; inset: var(--header-height) 0 0; z-index: 999; padding: 38px 24px; display: flex; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy-900); transform: translateX(100%); transition: transform .3s ease; }
    .primary-nav.is-open { transform: translateX(0); }
    .primary-nav a { padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1.05rem; }
    .primary-nav a::after { display: none; }
    .primary-nav .nav-contact { margin-top: 25px; text-align: center; border: 1px solid rgba(255,255,255,.35); }
    .theme-toggle { order: 3; }
    .hero { padding-top: calc(var(--header-height) + 48px); padding-bottom: 0; }
    .hero-grid { grid-template-columns: 1fr; gap: 48px; padding-bottom: 65px; }
    .hero-visual { width: min(100%, 520px); justify-self: center; }
    .portrait-frame { margin: 0 auto; }
    .hero-facts { grid-template-columns: 1fr 1fr 1fr; }
    .intro-strip-grid { flex-wrap: wrap; padding: 22px 0; justify-content: flex-start; }
    .split-intro, .page-hero-grid, .about-grid, .credentials-grid, .technology-section, .technology-credentials, .training-grid, .project-hero-grid, .case-study-grid, .experience-layout, .credentials-split, .contact-layout, .contact-cta-inner { grid-template-columns: 1fr; gap: 55px; }
    .about-photo, .case-services, .experience-intro, .contact-details { position: static; }
    .profile-highlights { grid-template-columns: 1fr 1fr; }
    .featured-projects { grid-template-columns: 1fr; }
    .featured-projects .project-card:last-child { grid-column: auto; }
    .project-card p { min-height: 0; }
    .expertise-row { grid-template-columns: 60px 1fr; gap: 28px; }
    .expertise-row ul { grid-column: 2; }
    .project-list-item { grid-template-columns: 55px 1fr; }
    .project-list-side { grid-column: 2; display: flex; justify-content: flex-start; gap: 20px; }
    .project-list-side b { margin: 0 0 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: auto; }
}
@media (max-width: 620px) {
    .hero-lead,
    .large-copy,
    .page-hero-grid > p,
    .about-narrative > p,
    .credentials-intro,
    .expertise-card p,
    .value-card p,
    .expertise-row p,
    .technology-section p,
    .training-grid p,
    .project-card p,
    .project-list-main p,
    .project-hero-grid > div > p,
    .case-content p,
    .experience-intro p,
    .contact-details > p,
    .prose-page p,
    .timeline-item li {
        text-align: left;
    }
    h1 { font-size: 2.55rem; }
    h2 { font-size: 2rem; }
    .brand-copy { display: none; }
    .theme-toggle { width: 40px; }
    .hero { min-height: auto; }
    .hero-copy h1 { font-size: 2.62rem; }
    .hero-lead { font-size: 1.03rem; }
    .hero-actions .button { width: 100%; }
    .hero-facts { grid-template-columns: 1fr; gap: 18px; }
    .hero-facts div { display: grid; grid-template-columns: 70px 1fr; align-items: center; }
    .hero-facts dd { margin: 0; }
    .portrait-frame img { height: 480px; }
    .portrait-caption { left: 14px; right: 14px; bottom: 14px; width: auto; }
    .intro-strip-grid i { display: none; }
    .intro-strip-grid p { width: 100%; }
    .section-heading { align-items: start; flex-direction: column; }
    .expertise-preview, .values-grid, .training-topics, .form-grid { grid-template-columns: 1fr; }
    .statement-grid { grid-template-columns: 1fr; gap: 0; }
    .statement-mark { font-size: 7rem; }
    .page-hero { padding-top: calc(var(--header-height) + 75px); }
    .page-hero h1 { font-size: 2.5rem; }
    .founder-note { grid-template-columns: 1fr; }
    .profile-highlights { grid-template-columns: 1fr; }
    .certifications-heading { grid-template-columns: 1fr; gap: 20px; }
    .certifications-heading > strong { justify-self: start; }
    .certification-grid { grid-template-columns: 1fr; }
    .certification-card { min-height: 0; }
    .expertise-row { grid-template-columns: 1fr; }
    .expertise-row ul { grid-column: auto; }
    .project-list-item { grid-template-columns: 1fr; gap: 18px; }
    .project-index, .project-list-side { grid-column: auto; }
    .project-list-side { flex-wrap: wrap; }
    .case-content p { font-size: 1.02rem; }
    .contact-form { padding: 28px 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { padding: 22px 0; flex-direction: column; align-items: flex-start; }
    .footer-bottom a { margin: 0 20px 0 0; }
}
