/* Original personal-site design. No framework or remote assets required. */
:root {
  --paper: #f5f3ec;
  --paper-bright: #fcfbf7;
  --ink: #142731;
  --muted: #586663;
  --line: #d7dcd3;
  --sage: #dce3d9;
  --teal: #2c655f;
  --amber: #d6a65e;
  --dark-muted: #bdccc7;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --container: 1184px;
  --header-height: 73px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Apply clearance to content anchors only, so focusing the sticky menu does not scroll the page. */
main, main [id] { scroll-margin-top: calc(var(--header-height) + 20px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body, button, a { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
button, a, summary { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, a { outline-offset: 5px; }
:focus-visible { outline: 3px solid var(--teal); }
.dark :focus-visible { outline-color: var(--amber); }
::selection { color: var(--ink); background: #d9c29c; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
.container { width: min(var(--container), calc(100% - 96px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 16px; padding: 10px 18px; background: var(--ink); color: white; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { height: 36px; width: 36px; flex-shrink: 0; }
.brand-word { display: inline-flex; align-items: center; gap: .22em; font-size: 15px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.brand-colon { display: grid; flex: 0 0 .16em; width: .16em; gap: .14em; margin-inline: .04em; }
.brand-colon::before, .brand-colon::after { content: ""; width: .16em; height: .16em; background: var(--teal); }
.site-nav { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.site-nav a { font-size: 13px; font-weight: 600; padding-block: 12px; position: relative; white-space: nowrap; }
.site-nav a::after { position: absolute; content: ""; left: 0; right: 100%; bottom: 6px; border-bottom: 1px solid var(--teal); transition: right .2s; }
.site-nav a:hover::after, .site-nav a[aria-current]::after { right: 0; }
.section-menu { position: relative; flex-shrink: 0; }
.section-menu summary { display: flex; align-items: center; gap: 9px; min-height: 44px; padding-block: 10px; font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
.section-menu summary::-webkit-details-marker { display: none; }
.section-menu summary::after { content: ""; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.section-menu[open] summary::after { transform: translateY(2px) rotate(225deg); }
.section-menu-panel { position: absolute; z-index: 30; right: 0; top: calc(100% + 12px); width: 280px; padding: 12px; border: 1px solid var(--line); background: var(--paper-bright); box-shadow: 0 12px 32px rgba(20,39,49,.12); max-height: calc(100dvh - var(--header-height) - 28px); overflow-y: auto; overscroll-behavior: contain; }
.section-menu-caption { padding: 5px 12px 10px; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.section-menu-panel a { display: block; min-height: 44px; padding: 11px 12px; font-size: 13px; font-weight: 500; white-space: normal; }
.section-menu-panel a::after { content: none; }
.section-menu-panel a:hover, .section-menu-panel a[aria-current="location"] { background: var(--sage); color: var(--teal); }
.header-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.site-nav + .header-actions { margin-left: 0; }
.language-switch { display: none; align-items: center; gap: 3px; border-left: 1px solid var(--line); padding-left: 20px; }
.js .language-switch { display: flex; }
.language-switch button { padding: 8px 7px; min-height: 44px; border: 0; color: var(--muted); background: transparent; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.language-switch button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; align-items: center; justify-content: center; }
.menu-toggle svg { width: 22px; height: 22px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 650; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; }
.eyebrow .dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.hero { padding: 40px 0 44px; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.hero-copy { padding: 8px 0; }
.hero h1 { font-family: var(--serif); font-size: clamp(68px, 6.7vw, 96px); font-weight: 400; letter-spacing: -.055em; line-height: .99; margin: 24px 0 22px; }
.hero h1 span { display: block; }
.hero h1 .surname { color: var(--teal); }
.hero-title { font-size: 22px; line-height: 1.45; font-weight: 500; max-width: 460px; }
.hero-description { color: var(--muted); margin-top: 18px; max-width: 470px; font-size: 16px; line-height: 1.75; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 26px; min-height: 52px; padding: 13px 22px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper-bright); font-size: 13px; font-weight: 600; line-height: 1.5; transition: background .2s, transform .2s; }
.button:hover { background: var(--teal); transform: translateY(-2px); }
.button svg, .text-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.button-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.button-light:hover { background: var(--sage); }
.button-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.button-outline:hover { background: var(--sage); }
.text-link { display: inline-flex; gap: 12px; align-items: center; padding-block: 8px; font-size: 13px; line-height: 1.5; font-weight: 600; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero-location { margin-top: 34px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.hero-location svg { width: 15px; height: 15px; }
.portrait-card { width: min(100%, clamp(240px, calc((100svh - var(--header-height) - 164px) * .6665), 360px)); min-width: 0; justify-self: end; background: var(--sage); }
.portrait-caption { position: static; padding: 18px 22px; color: var(--paper); background: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.portrait-caption strong { display: block; font-weight: 500; font-size: 16px; }
.portrait-caption small { display: block; color: var(--dark-muted); font-size: 11px; margin-top: 3px; }
.portrait-caption .portrait-emblem { width: 40px; height: 40px; border: 1px solid #526766; border-radius: 50%; display: grid; place-items: center; color: var(--amber); }
.portrait-emblem svg { width: 21px; height: 21px; }
.profile-portrait { position: static; display: block; width: 100%; height: auto; object-fit: contain; }
.profile-hero .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 280px); gap: 56px; }
.profile-hero h1 { font-size: clamp(46px, 4.8vw, 64px); line-height: 1.08; margin-block: 20px; }
.profile-hero h1 span { display: inline-block; }
.profile-hero .hero-title { max-width: 680px; }
.profile-hero .hero-description { max-width: 700px; line-height: 1.7; }
.profile-hero .hero-actions { margin-top: 24px; }
.profile-hero .hero-location { margin-top: 22px; }
.profile-hero .portrait-card { width: 100%; }
.profile-hero .portrait-caption { padding: 15px 18px; }
.profile-hero .portrait-caption strong { font-size: 14px; }
.profile-hero .portrait-caption small { font-size: 10px; }
.profile-hero .portrait-emblem { display: none; }
.section { padding-block: 64px; }
.section-label { font-size: 11px; line-height: 1.5; letter-spacing: .13em; text-transform: uppercase; font-weight: 650; color: var(--muted); display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.section-label .number { color: var(--teal); font-variant-numeric: tabular-nums; }
.section-heading { font-family: var(--serif); font-weight: 400; letter-spacing: -.04em; font-size: clamp(38px, 4vw, 54px); line-height: 1.15; }
.credentials { margin-top: 36px; }
.credentials-heading { margin-bottom: 18px; }
.credentials-heading h2 { font: inherit; letter-spacing: inherit; }
.credential-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.credential-card { min-width: 0; padding: 24px; border: 1px solid var(--line); background: var(--paper-bright); }
.credential-header { display: flex; gap: 20px; align-items: center; min-height: 64px; }
.credential-header > div { min-width: 0; }
.credential-header h3 { color: var(--ink); font-size: 21px; font-weight: 500; line-height: 1.3; text-wrap: pretty; }
.credential-kicker { display: block; margin-bottom: 5px; color: var(--teal); font-size: 10px; line-height: 1.4; font-weight: 650; letter-spacing: .1em; }
.credential-logo { flex: 0 0 auto; object-fit: contain; }
.ive-logo { width: 64px; height: 64px; }
.uptime-logo { width: 135px; height: 50px; }
.credential-institution { margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.academic-details { display: grid; gap: 13px; margin: 19px 0 0; padding-top: 17px; border-top: 1px solid var(--line); }
.academic-details dt { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
.academic-details dd { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.6; }
.certificate-body { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 24px; align-items: start; margin-top: 19px; padding-top: 17px; border-top: 1px solid var(--line); }
.certificate-details { margin: 0; padding: 0; border: 0; }
.certificate-preview { display: block; width: 160px; }
.certificate-preview > img { width: 100%; height: auto; border: 1px solid var(--line); background: white; transition: border-color .2s; }
.certificate-preview > span { display: flex; gap: 7px; align-items: center; justify-content: space-between; padding-top: 9px; color: var(--teal); font-size: 11px; font-weight: 600; line-height: 1.5; }
.certificate-preview svg { flex: 0 0 auto; width: 14px; height: 14px; }
.certificate-preview:hover > img { border-color: var(--teal); }
.certificate-preview:hover > span { text-decoration: underline; text-underline-offset: 3px; }
.expertise { border-top: 1px solid var(--line); }
.section-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 32px; }
.section-intro p { color: var(--muted); font-size: 15px; max-width: 340px; }
.expertise-list { border-top: 1px solid var(--line); }
.expertise-row { display: grid; grid-template-columns: 48px 1fr 1.1fr; gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line); align-items: start; }
.expertise-icon { width: 30px; height: 30px; color: var(--teal); margin-top: 3px; }
.expertise-row h3 { font-size: 22px; font-weight: 500; letter-spacing: -.025em; line-height: 1.4; }
.expertise-row p { color: var(--muted); font-size: 15px; }
.expertise-tags { margin-top: 9px; display: block; color: var(--teal); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.dark { background: var(--ink); color: var(--paper); }
.project-feature { padding-block: 60px; overflow: hidden; }
.project-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.dark .section-label, .dark .eyebrow { color: var(--dark-muted); }
.dark .section-label .number { color: var(--amber); }
.dark .eyebrow .dot { background: var(--amber); }
.project-wordmark { font-size: clamp(46px, 5vw, 68px); font-weight: 500; letter-spacing: -.065em; line-height: 1.1; margin-bottom: 20px; }
.project-wordmark span { color: var(--amber); }
.project-feature h3 { font-family: var(--serif); font-size: 30px; line-height: 1.3; font-weight: 400; letter-spacing: -.02em; max-width: 460px; }
.project-feature p { color: var(--dark-muted); font-size: 15px; margin-top: 20px; max-width: 460px; }
.project-feature .button { margin-top: 30px; }
.project-visual { min-width: 0; position: relative; }
.project-visual img { width: 100%; height: auto; }
.project-visual figcaption { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #36504f; padding: 18px 0 0; margin-top: -12px; gap: 16px; font-size: 10px; font-weight: 500; letter-spacing: .12em; color: var(--dark-muted); text-transform: uppercase; }
.visual-symbol { color: var(--amber); width: 15px; height: 15px; flex-shrink: 0; }
.contact { padding-block: 64px 56px; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: end; }
.contact .section-heading { max-width: 500px; }
.contact-copy { margin-top: 24px; color: var(--muted); max-width: 450px; font-size: 16px; }
.contact-links { padding-bottom: 4px; min-width: 0; }
.contact-link { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding-block: 20px; border-bottom: 1px solid var(--line); }
.contact-link > div { min-width: 0; }
.contact-link small { display: block; font-size: 10px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.contact-link span { display: block; font-size: 18px; overflow-wrap: anywhere; }
.contact-link svg { width: 22px; height: 22px; flex-shrink: 0; }
.contact-link:hover span { text-decoration: underline; text-underline-offset: 5px; }
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; font-size: 11px; color: var(--muted); }
.footer-inner p { max-width: 560px; }
.footer-inner a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; }
.footer-inner a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-inner svg { width: 15px; height: 15px; }
/* Dedicated, concise HybridAEP presentation. */
.project-hero { padding-block: 36px 40px; }
.back-link { font-size: 12px; display: inline-flex; align-items: center; gap: 10px; color: var(--dark-muted); margin-bottom: 44px; }
.back-link svg { width: 16px; height: 16px; }
.back-link:hover { color: var(--paper); }
.project-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 42px; align-items: center; }
.project-hero h1 { font-size: clamp(58px, 6vw, 76px); margin-top: 14px; margin-bottom: 14px; }
.project-hero .hero-tagline { font-family: var(--serif); font-size: 28px; line-height: 1.25; letter-spacing: -.025em; max-width: 540px; }
.project-hero .hero-description { color: var(--dark-muted); font-size: 14px; line-height: 1.65; margin-top: 14px; max-width: 560px; }
.project-hero .hero-actions { margin-top: 22px; }
.project-hero .project-visual img { max-height: min(460px, calc(100svh - var(--header-height) - 80px)); object-fit: contain; }
.hero-module-title { margin-block: 20px 10px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dark-muted); font-weight: 600; }
.hero-module-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 560px; }
.hero-module-list a { display: flex; align-items: center; gap: 10px; min-height: 45px; padding: 10px 12px; border: 1px solid #405552; color: var(--paper); font-size: 12px; line-height: 1.4; transition: border-color .2s, background .2s; }
.hero-module-list a:hover { border-color: var(--amber); background: #1d353c; }
.hero-module-list svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--amber); }
.project-introduction { padding-block: 48px; border-bottom: 1px solid var(--line); }
.project-intro-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 100px; }
.project-intro-grid h2 { font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: 1.25; letter-spacing: -.025em; }
.project-intro-grid p { color: var(--muted); font-size: 16px; }
.modules-section { padding-bottom: 64px; }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.module-card { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 28px; background: rgba(252, 251, 247, .38); }
.module-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.module-card .module-icon { width: 30px; height: 30px; color: var(--teal); }
.module-number { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.module-card h3 { font-size: 20px; font-weight: 500; line-height: 1.35; margin-bottom: 12px; letter-spacing: -.02em; }
.module-card p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.technology-strip { padding-top: 32px; display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.technology-strip > span { color: var(--muted); font-size: 11px; }
.technology-list { display: flex; flex-wrap: wrap; gap: 12px 25px; }
.technology-list li { font-size: 14px; font-weight: 600; letter-spacing: -.015em; }
.tools-section { padding-block: 38px 44px; border-bottom: 1px solid var(--line); }
.tools-title { font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tool-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 24px; width: 100%; }
.tool-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; padding: 22px 14px; min-width: 0; border: 1px solid var(--line); background: var(--paper-bright); text-align: center; transition: border-color .2s, transform .2s; }
.tool-arrow { position: absolute; top: 12px; right: 12px; width: 13px; height: 13px; color: var(--muted); }
.tool-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.tool-logo { display: grid; place-items: center; width: 100%; height: 48px; min-width: 0; }
.tool-logo img { display: block; width: auto; height: auto; max-width: min(140px, 100%); max-height: 48px; object-fit: contain; }
.tool-logo svg { width: 36px; height: 36px; color: var(--teal); }
.tool-copy strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.tool-copy small { display: block; margin-top: 4px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.tool-note { margin-top: 16px; font-size: 12px; line-height: 1.65; color: var(--muted); }
.workflow-section { padding-block: 56px; background: var(--sage); }
.workflow-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 40px; }
.workflow-heading p { color: var(--muted); font-size: 15px; }
.workflow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.workflow-steps li { padding-top: 20px; border-top: 1px solid #afbeb3; }
.workflow-step-number { color: var(--teal); font-size: 11px; display: block; margin-bottom: 12px; }
.workflow-steps h3 { font-weight: 500; font-size: 17px; margin-bottom: 7px; }
.workflow-steps p { color: var(--muted); font-size: 13px; }
.roadmap-note { margin-top: 40px; padding-top: 25px; border-top: 1px solid #afbeb3; display: flex; align-items: baseline; gap: 24px; }
.roadmap-note strong { color: var(--teal); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; flex-shrink: 0; }
.roadmap-note p { font-size: 14px; color: var(--muted); }
.project-contact { padding-block: 60px; }
.project-contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.project-contact .section-heading { font-size: 44px; }
.project-contact p { color: var(--muted); font-size: 15px; margin-bottom: 25px; }
.project-contact .author-link { margin-top: 16px; font-size: 12px; }
/* Personal research and contact pages share full, uncropped portraits. */
.editorial-hero { padding-block: 40px 48px; }
.editorial-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr); gap: 56px; align-items: start; }
.editorial-copy { min-width: 0; }
.editorial-title, .contact-page-title { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; line-height: 1.13; font-size: clamp(40px, 4.2vw, 52px); margin-top: 22px; max-width: 640px; }
.editorial-description { color: var(--muted); font-size: 16px; line-height: 1.65; margin-top: 22px; max-width: 600px; }
.editorial-portrait { width: min(100%, clamp(240px, calc((100svh - var(--header-height) - 140px) * .6665), 350px)); min-width: 0; justify-self: end; background: var(--sage); }
.editorial-portrait img { display: block; width: 100%; height: auto; object-fit: contain; }
.editorial-portrait figcaption { padding: 17px 22px; border-bottom: 1px solid var(--line); background: var(--paper-bright); color: var(--teal); font-size: 11px; letter-spacing: .07em; line-height: 1.55; }
.research-section { border-top: 1px solid var(--line); }
.research-list { border-top: 1px solid var(--line); }
.research-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: start; border-bottom: 1px solid var(--line); padding-block: 32px; }
.research-number { font-size: 12px; color: var(--teal); font-variant-numeric: tabular-nums; padding-top: 6px; }
.research-row h3 { font-size: 22px; font-weight: 500; letter-spacing: -.025em; line-height: 1.4; }
.research-row p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.research-project-link { margin-top: 28px; }
.contact-page-hero .editorial-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr); align-items: start; }
.contact-page-hero .editorial-portrait { justify-self: start; position: sticky; top: calc(var(--header-height) + 20px); }
.contact-page-copy { min-width: 0; }
.contact-page-title { font-size: 38px; margin-top: 22px; }
.contact-page-copy .editorial-description { font-size: 15px; line-height: 1.7; margin-top: 20px; }
.contact-page-links { margin-top: 26px; border-top: 1px solid var(--line); max-width: 540px; }
.contact-page-note { color: var(--muted); font-size: 13px; line-height: 1.65; margin-top: 20px; }
.contact-form { position: relative; margin-top: 26px; }
.form-availability { margin-bottom: 20px; padding: 12px 15px; border-left: 3px solid var(--amber); background: #ebe6d8; color: #61543f; font-size: 13px; line-height: 1.6; }
.form-fields { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-field { display: grid; gap: 7px; min-width: 0; color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.5; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-width: 0; border: 1px solid #aebbb1; border-radius: 0; background: var(--paper-bright); color: var(--ink); padding: 11px 13px; min-height: 47px; font-size: 16px; line-height: 1.5; font-weight: 400; outline-offset: 3px; }
.form-field textarea { resize: vertical; min-height: 142px; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #77837b; opacity: 1; }
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible { border-color: var(--teal); outline: 2px solid var(--teal); }
.form-field input:user-invalid, .form-field textarea:user-invalid { border-color: #954a38; }
.form-fields:disabled input, .form-fields:disabled select, .form-fields:disabled textarea { background: #eeeee6; color: var(--muted); cursor: not-allowed; }
.form-honeypot { display: none; }
.form-submit { justify-self: start; min-width: 205px; margin-top: 2px; }
.form-submit:disabled { opacity: .62; cursor: not-allowed; }
.form-submit:disabled:hover { transform: none; background: var(--ink); }
.form-status { color: var(--teal); font-size: 14px; line-height: 1.6; }
.form-status:not(:empty) { margin-top: 18px; padding: 12px 14px; border: 1px solid #b5cbbd; background: #e6eee4; }
.form-status[data-state="error"], .form-status[data-state="invalid"], .form-status[data-state="inactive"] { color: #813c2d; background: #f7e9df; border-color: #dec0ac; }
.form-status[data-state="idle"] { padding: 0; border: 0; background: transparent; }
.form-privacy { margin-top: 14px; font-size: 11px; line-height: 1.65; color: var(--muted); }
.form-privacy a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1100px) {
  .container { width: calc(100% - 64px); }
  .header-inner { gap: 20px; }
  .site-nav { gap: 14px; }
  .hero-grid { gap: 44px; }
  .hero-actions { gap: 12px 18px; }
  .about-grid, .project-intro-grid { gap: 60px; }
  .project-feature-grid { gap: 36px; }
  .contact-grid { gap: 50px; }
  .focus-strip span { font-size: 10px; letter-spacing: .07em; }
  .module-card { padding: 26px 22px; }
  .editorial-grid { gap: 48px; }
  .contact-page-title { font-size: 36px; }
  .editorial-description { font-size: 16px; }
  .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  :root { --header-height: 65px; }
  .header-inner { min-height: 64px; flex-wrap: wrap; }
  .header-actions, .site-nav + .header-actions { margin-left: auto; }
  .site-nav { width: 100%; order: 3; justify-content: center; padding-bottom: 12px; flex-wrap: wrap; }
  .js .menu-toggle { display: flex; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; width: auto; background: var(--paper-bright); border-bottom: 1px solid var(--line); padding: 16px 32px 24px; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 2px; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 18px 30px rgba(20,39,49,.06); }
  .site-nav a { font-size: 14px; }
  .section-menu { width: 100%; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
  .section-menu summary { justify-content: space-between; font-size: 14px; }
  .section-menu-panel { position: static; width: 100%; padding: 4px 0; border: 0; box-shadow: none; max-height: none; overflow: visible; }
  .section-menu-caption { padding-left: 12px; }
  .language-switch { border-left: 0; padding-left: 0; }
}
@media (min-width: 851px) and (max-height: 760px) {
  .hero, .editorial-hero { padding-block: 28px 32px; }
  .hero h1 { font-size: 76px; margin-block: 20px 18px; }
  .hero-title { font-size: 20px; }
  .hero-description { font-size: 15px; line-height: 1.65; margin-top: 14px; }
  .hero-actions { margin-top: 24px; }
  .hero-location { margin-top: 20px; }
  .editorial-title { font-size: 46px; }
  .contact-page-title { font-size: 34px; }
  .project-hero { padding-block: 24px 28px; }
  .project-hero h1 { font-size: 64px; margin-block: 12px; }
  .project-hero .hero-tagline { font-size: 26px; }
  .project-hero .hero-description { font-size: 14px; line-height: 1.6; margin-top: 12px; }
  .project-hero .hero-actions { margin-top: 18px; }
  .project-hero .button { min-height: 48px; padding-block: 11px; }
  .hero-module-title { margin-block: 16px 8px; }
  .hero-module-list a { min-height: 44px; padding: 8px 10px; }
}
@media (min-width: 1101px) and (max-height: 760px) {
  .project-hero-grid { grid-template-columns: 1.3fr 1fr; }
  .hero-module-list { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
}
@media (max-width: 850px) {
  .hero-grid { gap: 32px; }
  .hero h1 { font-size: 68px; }
  .hero-title { font-size: 19px; }
  .hero-description { font-size: 15px; }
  .portrait-caption { padding: 22px; }
  .portrait-caption strong { font-size: 14px; }
  .portrait-caption small { font-size: 10px; }
  .portrait-emblem { display: none !important; }
  .profile-hero .hero-grid { grid-template-columns: minmax(0, 1fr) 220px; gap: 30px; }
  .profile-hero h1 { font-size: 46px; }
  .credential-grid { grid-template-columns: minmax(0, 1fr); }
  .credential-card { min-height: 310px; }
  .section { padding-block: 56px; }
  .section-intro { gap: 30px; }
  .section-intro p { max-width: 280px; }
  .expertise-row { grid-template-columns: 36px 1fr 1fr; gap: 20px; }
  .expertise-row h3 { font-size: 19px; }
  .project-feature-grid { gap: 20px; }
  .project-feature h3 { font-size: 26px; }
  .contact-grid { gap: 36px; }
  .contact-link span { font-size: 16px; }
  .project-hero-grid { grid-template-columns: 1.25fr 1fr; gap: 25px; }
  .project-hero h1 { font-size: 63px; }
  .project-hero .hero-tagline { font-size: 28px; }
  .project-intro-grid { gap: 40px; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-heading, .project-contact-inner { gap: 40px; }
  .workflow-steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .editorial-hero { padding-block: 36px 44px; }
  .editorial-grid, .contact-page-hero .editorial-grid { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .editorial-copy { width: 100%; max-width: 640px; justify-self: center; }
  .editorial-title { font-size: 48px; }
  .contact-page-title { font-size: 38px; }
  .editorial-portrait, .contact-page-hero .editorial-portrait { justify-self: center; position: static; width: min(100%, 340px); }
  .contact-page-hero .editorial-copy { order: -1; }
  .research-row { grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
  .research-row h3 { font-size: 20px; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 64px; gap: 10px; }
  .brand { gap: 9px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-word { font-size: 13px; }
  .header-actions { gap: 8px; }
  .language-switch { gap: 0; }
  .language-switch button { padding-inline: 6px; font-size: 11px; }
  .menu-toggle { width: 40px; height: 40px; }
  .hero { padding-block: 40px 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(66px, 17vw, 86px); margin-top: 24px; margin-bottom: 24px; }
  .hero-title { max-width: 370px; font-size: 20px; }
  .hero-description { max-width: 400px; }
  .eyebrow { font-size: 10px; letter-spacing: .1em; }
  .hero-actions { margin-top: 26px; }
  .hero-location { margin-top: 23px; }
  .portrait-card { justify-self: center; width: min(100%, 340px); }
  .portrait-caption { padding: 21px 24px; }
  .portrait-caption strong { font-size: 16px; }
  .portrait-caption small { font-size: 11px; }
  .portrait-caption .portrait-emblem { display: grid !important; }
  .profile-hero .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .profile-hero h1 { font-size: clamp(40px, 10.5vw, 58px); }
  .profile-hero .portrait-card { width: min(100%, 280px); }
  .profile-hero .portrait-emblem { display: none !important; }
  .credentials { margin-top: 30px; }
  .credential-card { padding: 20px; min-height: 0; }
  .credential-header { gap: 16px; }
  .credential-header h3 { font-size: 20px; }
  .uptime-logo { width: 108px; height: 40px; }
  .certificate-body { grid-template-columns: minmax(0, 1fr) 130px; gap: 18px; }
  .certificate-preview { width: 130px; }
  .section { padding-block: 48px; }
  .section-label { margin-bottom: 25px; font-size: 10px; }
  .section-heading { font-size: 39px; }
  .section-intro { display: block; margin-bottom: 32px; }
  .section-intro p { max-width: 380px; margin-top: 20px; }
  .expertise-row { grid-template-columns: 34px 1fr; gap: 12px 18px; padding-block: 27px; }
  .expertise-row > p { grid-column: 2; }
  .expertise-row h3 { font-size: 21px; }
  .expertise-tags { font-size: 9px; }
  .project-feature { padding-block: 54px; }
  .project-feature-grid { grid-template-columns: 1fr; gap: 32px; }
  .project-wordmark { font-size: 58px; }
  .project-feature h3 { font-size: 29px; }
  .project-feature p { max-width: 400px; }
  .project-visual { max-width: 490px; width: 100%; margin-inline: auto; }
  .project-visual figcaption { margin-top: -5px; font-size: 9px; padding-top: 15px; }
  .contact { padding-block: 58px 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 26px; }
  .contact-copy { font-size: 15px; }
  .contact-link span { font-size: 18px; }
  .footer-inner { align-items: flex-start; font-size: 10px; gap: 18px; }
  .footer-inner p { max-width: 245px; }
  .footer-inner a { white-space: nowrap; min-height: 30px; }
  .project-hero { padding-block: 32px 45px; }
  .back-link { margin-bottom: 32px; }
  .project-hero-grid { grid-template-columns: 1fr; gap: 25px; }
  .project-hero h1 { font-size: clamp(57px, 15vw, 78px); margin-top: 19px; }
  .project-hero .hero-tagline { font-size: 29px; }
  .project-hero .project-visual img { transform: none; }
  .hero-module-list { gap: 8px; }
  .hero-module-list a { padding: 9px 10px; font-size: 11px; gap: 8px; }
  .hero-module-title { margin-top: 24px; }
  .project-introduction { padding-block: 43px; }
  .project-intro-grid { grid-template-columns: 1fr; gap: 22px; }
  .project-intro-grid h2 { font-size: 32px; }
  .project-intro-grid p { font-size: 15px; }
  .module-grid { grid-template-columns: 1fr; }
  .module-card { padding: 25px; }
  .module-card-top { margin-bottom: 22px; }
  .module-card h3 { font-size: 22px; }
  .module-card p { font-size: 15px; }
  .technology-strip { padding-top: 25px; gap: 13px; }
  .technology-list { gap: 12px 23px; }
  .technology-list li { font-size: 13px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-card { padding: 18px 12px; }
  .workflow-section { padding-block: 48px; }
  .workflow-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 30px; }
  .workflow-steps { gap: 22px; }
  .workflow-steps h3 { font-size: 17px; }
  .workflow-steps p { font-size: 13px; }
  .roadmap-note { display: block; margin-top: 30px; }
  .roadmap-note strong { display: block; margin-bottom: 8px; }
  .project-contact { padding-block: 56px; }
  .project-contact-inner { grid-template-columns: 1fr; gap: 26px; }
  .project-contact .section-heading { font-size: 39px; }
  .editorial-hero { padding-block: 38px 48px; }
  .editorial-grid, .contact-page-hero .editorial-grid { gap: 32px; }
  .editorial-title, .contact-page-title { font-size: 38px; margin-top: 22px; }
  .contact-page-title { font-size: 34px; }
  .editorial-description { font-size: 16px; margin-top: 22px; }
  .editorial-portrait figcaption { padding: 16px 20px; font-size: 10px; }
  .research-row { grid-template-columns: 30px minmax(0, 1fr); gap: 12px 18px; padding-block: 27px; }
  .research-row > p { grid-column: 2; }
  .research-row h3 { font-size: 21px; }
  .research-project-link { margin-top: 22px; }
  .contact-page-links { margin-top: 25px; }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .form-submit { width: 100%; }
}
@media (max-width: 360px) {
  .container { width: calc(100% - 32px); }
  .brand-word { font-size: 12px; }
  .brand-mark { width: 26px; height: 26px; }
  .header-actions { gap: 3px; }
  .hero h1 { font-size: 64px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .project-hero h1 { font-size: 55px; }
  .workflow-steps { grid-template-columns: 1fr; }
  .hero-module-list { grid-template-columns: minmax(0, 1fr); }
  .tool-grid { gap: 8px; }
  .tool-logo img { max-width: 100%; }
  .contact-page-title { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header { position: static; }
  .site-nav, .header-actions, .hero-actions, .contact-form, .back-link { display: none !important; }
  body, .dark, .workflow-section { background: white; color: black; }
  .container { width: 100%; }
  .section, .contact, .project-feature, .project-hero { padding-block: 28px; }
  .portrait-card, .editorial-portrait { max-width: 260px; break-inside: avoid; }
  .editorial-hero { padding-block: 28px; }
  .dark p, .dark .eyebrow, .dark .section-label { color: #444; }
  .module-card, .expertise-row, .research-row { break-inside: avoid; }
}
