/* Type scale: 16–18px reading text, 14px controls, 12–14px supporting labels.
   All type uses rem units. Display sizes scale fluidly without shrinking body text. */
:root {
  --type-caption: .75rem;
  --type-small: .875rem;
  --type-body: 1rem;
  --type-reading: 1.0625rem;
  --type-lead: 1.25rem;
  --muted: #abaec2;
}
body { font-size: var(--type-body); line-height: 1.65; }
h2 { font-size: clamp(2rem, 1.35rem + 2vw, 3rem); line-height: 1.18; letter-spacing: -.04em; }
h3 { font-size: 1.5rem; line-height: 1.3; letter-spacing: -.025em; }
h4 { font-size: 1rem; }
p { text-wrap: pretty; }
.muted { color: #9b9eb4; }
.eyebrow { font-size: var(--type-caption); letter-spacing: .12em; line-height: 1.6; }
.section-note { font-size: var(--type-body); line-height: 1.7; max-width: 34ch; }
.section-note br { display: none; }

/* One SVG language for navigation, controls, and architecture diagrams. */
.icon {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  vertical-align: middle;
  overflow: visible;
}
.brand-mark { font-size: 2rem; }
.brand-name { font-size: .75rem; letter-spacing: .1em; }
.site-header nav { gap: 26px; }
.site-header nav a { font-size: .875rem; min-height: 44px; display: inline-flex; align-items: center; }
.site-header nav .nav-contact { gap: 18px; }
.nav-contact .icon { width: 1rem; height: 1rem; color: var(--purple); }
.menu-toggle { width: 44px; height: 44px; }
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .icon-x { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-x { display: block; }

.hero { min-height: 780px; padding-top: 58px; padding-bottom: 100px; }
.availability { font-size: .75rem; letter-spacing: .11em; margin-bottom: 26px; }
.hero-intro { font-size: .9375rem; letter-spacing: .015em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(3rem, 1.4rem + 4.6vw, 5.5rem); line-height: 1.04; letter-spacing: -.06em; }
.hero h2 { font-size: clamp(1.5rem, 1.2rem + .9vw, 2rem); line-height: 1.35; letter-spacing: -.025em; }
.hero-description { font-size: 1.125rem; line-height: 1.7; max-width: 44ch; }
.hero-actions { flex-wrap: wrap; gap: 12px; }
.button, .hero-actions .button, .contact-actions .button {
  font-size: .875rem;
  line-height: 1.45;
  min-height: 48px;
  padding: 13px 18px;
  gap: 14px;
}
.button .icon { width: 18px; height: 18px; }
.hero-location { font-size: .875rem; line-height: 1.6; gap: 8px; color: #989eb5; flex-wrap: wrap; }
.hero-location .icon { width: 16px; height: 16px; }
.hero-location>span { color: #8586a0; }
.hero-visual { height: 540px; }
.visual-top, .visual-bottom { font-size: .75rem; letter-spacing: .08em; color: #a3a4bc; gap: 8px; }
.visual-top { left: 8px; }
.visual-bottom { left: 8px; }
.visual-bottom .icon { width: 13px; height: 13px; }
.visual-code { font-size: .75rem; }
.orbit-label { padding: 12px 15px; gap: 12px; }
.orbit-label>span:last-child { font-size: .75rem; letter-spacing: .08em; color: #a3a5be; }
.orbit-label strong { font-size: .9375rem; line-height: 1.5; }
.orbit-label .label-icon { width: 26px; height: 26px; }
.label-one { top: 90px; right: 0; }
.label-two { left: -2px; top: 260px; }
.label-three { right: 8px; bottom: 64px; }
.hero-footer { font-size: .75rem; letter-spacing: .09em; gap: 24px; bottom: 24px; color: #9699b1; }
.hero-footer a { min-height: 44px; }
.hero-footer .icon { width: 18px; height: 18px; color: var(--purple); }
.hero-footer>span { font-size: .75rem; }
.hero-footer i { padding: 0 7px; color: #8b8aa5; }

.stats-grid { padding-top: 36px; padding-bottom: 36px; }
.stats-grid strong { font-size: clamp(2.25rem, 3vw, 3rem); }
.stats-grid strong span { font-size: .75em; }
.stats-grid p { font-size: .875rem; line-height: 1.6; max-width: 23ch; margin-top: 8px; color: #a4a7bc; }
.about-section { gap: 64px; }
.about-content p { font-size: 1.0625rem; line-height: 1.8; max-width: 65ch; }
.about-content .lead { font-size: 1.25rem; line-height: 1.7; }
.about-principles { gap: 12px 24px; }
.about-principles span { font-size: .875rem; color: #b6b5ca; }
.about-principles i { font-size: .75rem; }
.education-icon { width: 44px; height: 44px; flex: 0 0 auto; }
.education-icon .icon { width: 24px; height: 24px; }
.education strong { font-size: 1rem; }
.education p { font-size: .875rem; line-height: 1.7; }
.education p span { color: #a1a5bb; }

.filter-bar { gap: 8px; flex-wrap: wrap; }
.filter { font-size: .875rem; padding: 10px 16px; min-height: 44px; }
.filter span { font-size: .75rem; }
.project-body, .featured .project-body, .compact-card .project-body { padding: 30px; }
.project-meta { font-size: .75rem; letter-spacing: .08em; line-height: 1.6; gap: 8px 16px; flex-wrap: wrap; color: #b8a2d9; }
.project-meta>span:last-child:not(:first-child) { font-size: .75rem; color: #a1a5bd; }
.project-body h3, .wide-card .project-body h3 { font-size: clamp(1.5rem, 1.2rem + .6vw, 1.75rem); letter-spacing: -.03em; line-height: 1.3; }
.project-body>p, .wide-card .project-body>div>p { font-size: 1rem; line-height: 1.75; max-width: 62ch; }
.project-outcome { flex-wrap: wrap; gap: 8px 18px; }
.project-outcome strong { font-size: 2.25rem; }
.project-outcome strong span { font-size: .75em; }
.project-outcome>span { font-size: .875rem; line-height: 1.55; max-width: 24ch; color: #a5aac0; }
.project-bottom, .featured .project-bottom { flex-wrap: wrap; gap: 16px; margin-top: 26px; }
.tags { gap: 7px; }
.tags span { font-size: .8125rem; line-height: 1.5; padding: 4px 8px; color: #b9bed3; }
.project-open { font-size: .875rem; min-height: 44px; gap: 12px; margin-left: auto; }
.project-open .icon { width: 20px; height: 20px; transition: transform .2s; }
.project-open:hover .icon { transform: translate(2px, -2px); }
.featured .project-art { min-height: 420px; }
.project-art { height: 270px; }
.art-caption { font-size: .75rem; letter-spacing: .08em; gap: 12px; flex-wrap: wrap; color: #b8bbcd; }
.art-caption>span:last-child { font-size: .75rem; line-height: 1.6; color: #a3adc4; }
.art-bottom { font-size: .75rem; line-height: 1.6; letter-spacing: .07em; color: #a6b1ca; gap: 6px; flex-wrap: wrap; }
.art-bottom .icon { width: 12px; height: 12px; }
.pipeline { inset: 60px 24px; }
.pipeline-node { flex-basis: 126px; padding: 20px 10px; }
.pipeline-node b { font-size: .9375rem; line-height: 1.6; margin: 8px 0 4px; }
.pipeline-node small { font-size: .75rem; line-height: 1.5; white-space: normal; text-align: center; color: #a4b0ca; }
.pipeline-node .node-symbol { width: 28px; height: 28px; margin: 0; }
.pipeline-line { min-width: 12px; }
.bank-flow { gap: 14px; }
.file-shape { min-width: 88px; padding: 12px; }
.file-shape>span { font-size: .75rem; color: #9cadc1; }
.file-shape b { font-size: 1rem; }
.file-shape small { font-size: .75rem; line-height: 1.5; color: #a1b7c9; }
.flow-arrow { width: 20px; height: 20px; color: #97b8c5; }
.validation-ring { width: 40px; height: 40px; flex: 0 0 auto; }
.validation-ring .icon { width: 21px; height: 21px; }
.civic-art .research-badge { font-size: .75rem!important; letter-spacing: .07em; padding: 4px 7px; }
.civic-art .art-bottom { color: #b5a1d2; }
.project-meta .mini-icon { width: 28px; height: 28px; color: #b19add; }
.compact-card h3 { font-size: 1.875rem; }
.wide-card-action { max-width: 265px; min-width: 230px; }

.experience-section { gap: 70px; }
.experience-intro>p:not(.eyebrow) { font-size: 1.0625rem; line-height: 1.8; max-width: 36ch; }
.text-link { font-size: .9375rem; min-height: 44px; }
.timeline-date { font-size: .8125rem; letter-spacing: .065em; line-height: 1.6; flex-wrap: wrap; gap: 7px 12px; color: #a5a8be; }
.timeline-date span { font-size: .75rem; padding: 3px 6px; }
.timeline h3 { font-size: 1.5rem; line-height: 1.3; }
.timeline h4 { font-size: .9375rem; line-height: 1.6; margin-top: 8px; margin-bottom: 13px; }
.timeline p { font-size: 1rem; line-height: 1.75; }
.timeline-item { padding-bottom: 40px; }
.earlier-experience summary { font-size: .9375rem; min-height: 56px; gap: 12px; }
.earlier-experience summary .icon { transition: transform .2s; }
.earlier-experience[open] summary .icon { transform: rotate(45deg); }
.earlier-note { font-size: .9375rem; }

.stack-group { padding: 34px; }
.stack-group .stack-icon { width: 32px; height: 32px; margin-bottom: 24px; }
.stack-group h3 { font-size: 1.5rem; line-height: 1.3; }
.stack-group p { font-size: 1rem; line-height: 1.7; }
.stack-tags { gap: 9px; }
.stack-tags>span { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; line-height: 1.5; padding: 8px 11px; color: #c3c6d6; }
.stack-tags .icon { width: 17px; height: 17px; color: #b8b4d0; }

.contact-section h2 { font-size: clamp(2.375rem, 1.6rem + 3.25vw, 4rem); line-height: 1.16; letter-spacing: -.045em; }
.contact-section>p:not(.eyebrow):not(.copy-status) { font-size: 1.125rem; line-height: 1.75; max-width: 58ch; margin-left: auto; margin-right: auto; }
.contact-email { font-size: clamp(1.125rem, .8rem + 1.35vw, 1.75rem); min-height: 44px; line-height: 1.6; gap: 16px; }
.contact-email .icon { width: 24px; height: 24px; }
.contact-phone-row { margin-top: 4px; }
.contact-phone { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 1.0625rem; line-height: 1.6; color: #c4c7d9; }
.contact-phone .icon { width: 18px; height: 18px; color: var(--purple); }
.contact-phone:hover, .contact-phone:focus-visible { color: var(--text); }
.contact-actions { flex-wrap: wrap; }
.contact-actions .button { min-width: 156px; }
.contact-socials { font-size: .875rem; flex-wrap: wrap; gap: 12px 28px; }
.contact-socials a { min-height: 44px; }
.contact-socials a .icon { width: 16px; height: 16px; }
.contact-socials>span { font-size: .875rem; color: #9fa5bd; }
.copy-status { font-size: .875rem; min-height: 24px; height: auto; }
.site-footer .brand-mark { font-size: 1.75rem; }
.site-footer>p, .footer-note { font-size: .75rem; line-height: 1.6; color: #989bb1; }
.back-top { font-size: .8125rem; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.back-top .icon { width: 16px; height: 16px; }

dialog { width: min(760px, calc(100% - 32px)); }
.dialog-content { padding: 48px; }
.dialog-close { display: grid; place-items: center; width: 44px; height: 44px; right: 14px; top: 12px; }
.dialog-close .icon { width: 21px; height: 21px; }
.dialog-content>.eyebrow { font-size: .75rem; max-width: calc(100% - 28px); }
.dialog-content h2 { font-size: 2.25rem; line-height: 1.2; }
.dialog-subtitle { font-size: .9375rem; line-height: 1.65; }
.dialog-metric { font-size: 1.25rem; line-height: 1.6; }
.dialog-content h3 { font-size: 1.0625rem; margin-top: 28px; }
.dialog-content>p:not(.eyebrow):not(.dialog-subtitle), .dialog-content li { font-size: 1rem; line-height: 1.8; color: #b6b4c8; }
.dialog-content .tags span { font-size: .8125rem; }
.dialog-footer { font-size: .8125rem; line-height: 1.6; flex-wrap: wrap; align-items: center; gap: 12px; }
.dialog-footer>span { color: #999bb1; }
.dialog-footer a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.dialog-footer .icon { width: 16px; height: 16px; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1.1fr 1fr; gap: 14px; }
  .hero h1 { font-size: clamp(3.5rem, 1.2rem + 4.4vw, 4.5rem); }
  .hero-visual { height: 500px; }
  .visual-code, .visual-bottom>span:last-child { display: none; }
  .visual-top, .visual-bottom { font-size: .75rem; }
  .orbit-label { padding: 10px 12px; gap: 10px; }
  .orbit-label strong { font-size: .875rem; }
  .label-two { top: 245px; }
  .section-note { max-width: 28ch; }
  .project-body, .featured .project-body { padding: 26px; }
  .featured { grid-template-columns: .95fr 1.05fr; }
  .pipeline { inset: 60px 16px; }
  .pipeline-node { padding: 18px 8px; }
  .pipeline-node b { font-size: .875rem; }
  .about-section, .experience-section { gap: 45px; }
  .site-header nav { gap: 22px; }
  .brand-name { display: none; }
  .wide-card .project-body { gap: 28px; }
}
@media (max-width: 800px) {
  .nav-wrap { height: 76px; }
  .brand-name { display: block; font-size: .75rem; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; padding: 10px; border: 1px solid var(--line); border-radius: 5px; }
  .site-header nav { display: none; position: absolute; left: 0; right: 0; top: 75px; flex-direction: column; align-items: stretch; gap: 0; background: #0d101ef5; padding: 12px 24px 24px; border-bottom: 1px solid #454052; backdrop-filter: blur(20px); }
  .site-header nav.open { display: flex; }
  .site-header nav a { font-size: 1rem; padding: 12px 5px; }
  .site-header nav .nav-contact { margin: 8px 0 0; padding: 12px; justify-content: space-between; }
  .hero { display: block; min-height: 0; padding-top: 48px; padding-bottom: 88px; }
  .hero-copy { max-width: 640px; }
  .hero h1 { font-size: clamp(3rem, 1.5rem + 5.8vw, 5rem); }
  .hero-visual { width: 100%; max-width: 510px; height: 450px; margin: 38px auto 15px; }
  .visual-top, .visual-bottom { font-size: .75rem; left: 0; right: 0; }
  .visual-code, .visual-bottom>span:last-child { display: inline; }
  .orb-glow { inset: 40px 0; }
  .hero:before { left: 0; width: 100%; }
  .label-one { top: 62px; }
  .label-two { top: 222px; left: 0; }
  .hero-footer>span { display: none; }
  .hero-footer:after { content: 'AI / AUTOMATION / ENGINEERING'; font-size: .75rem; letter-spacing: .05em; color: #9196b0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .stats-grid>div { padding-left: 28px; }
  .stats-grid>div:nth-child(odd) { padding-left: 0; border: 0; }
  .stats-grid p { font-size: .875rem; max-width: 24ch; }
  .about-section, .experience-section { grid-template-columns: 1fr; gap: 34px; }
  .about-content p { max-width: 65ch; }
  .section-title-row { display: block; }
  .section-note { font-size: 1rem; max-width: 55ch; margin-top: 20px; }
  .featured { display: block; }
  .featured .project-art { height: 285px; min-height: 285px; }
  .pipeline { inset: 60px 38px; }
  .pipeline-node { flex-basis: 140px; }
  .pipeline-node b { font-size: .9375rem; }
  .pipeline-line { max-width: 60px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-art { height: 270px; }
  .project-body, .featured .project-body, .compact-card .project-body { padding: 30px; }
  .featured, .wide-card { grid-column: auto; }
  .compact-card h3 { font-size: 1.875rem; }
  .wide-card .project-body { display: block; }
  .wide-card-action { max-width: none; min-width: 0; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
  .wide-card-action .tags { justify-content: flex-start; }
  .art-caption, .art-caption>span:last-child { font-size: .75rem; }
  .art-bottom { font-size: .75rem; }
  .bank-flow { inset: 50px 30px 35px; gap: 22px; }
  .file-shape { min-width: 100px; }
  .timeline { padding-left: 5px; }
  .experience-intro>p:not(.eyebrow) { max-width: 55ch; }
  .stack-grid { grid-template-columns: 1fr; }
  .stack-group { padding: 30px; }
  .contact-socials>span { padding-left: 0; border-left: 0; }
  .footer-note { display: none; }
  .back-top { margin-left: auto; }
}
@media (max-width: 620px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .availability { font-size: .75rem; letter-spacing: .08em; }
  .hero-intro { font-size: .875rem; }
  .hero h1 { font-size: clamp(3rem, 1.3rem + 6.9vw, 4.5rem); }
  .hero h2 { font-size: 1.75rem; }
  .hero-description { font-size: 1rem; line-height: 1.75; max-width: 42ch; }
  .hero-actions .button { font-size: .875rem; gap: 10px; padding: 13px 15px; }
  .hero-location { font-size: .8125rem; gap: 6px; }
  .hero-visual { height: 390px; }
  .visual-top, .visual-bottom { font-size: .75rem; }
  .visual-bottom>span:last-child { display: none; }
  .label-two { top: 190px; }
  .label-three { bottom: 48px; }
  .orbit-label strong { font-size: .875rem; }
  .orbit-label .label-icon { width: 24px; height: 24px; }
  .hero-footer { left: 24px; right: 24px; font-size: .75rem; gap: 16px; }
  .hero-footer a { font-size: .75rem; letter-spacing: .07em; gap: 8px; }
  .hero-footer:after { display: none; }
  .stats-grid>div, .stats-grid>div:first-child { padding-left: 20px; }
  .stats-grid>div:nth-child(odd) { padding-left: 0; }
  .stats-grid p { font-size: .8125rem; max-width: 22ch; }
  .about-content p { font-size: 1rem; }
  .about-content .lead { font-size: 1.1875rem; }
  .education p { font-size: .875rem; }
  .filter-bar { gap: 6px; }
  .filter { font-size: .8125rem; padding: 9px 11px; }
  .project-body, .featured .project-body, .compact-card .project-body { padding: 24px; }
  .project-body h3, .wide-card .project-body h3 { font-size: 1.5rem; }
  .project-meta { font-size: .75rem; letter-spacing: .06em; }
  .project-meta>span:last-child:not(:first-child) { font-size: .75rem; }
  .project-outcome strong { font-size: 2.25rem; }
  .project-outcome>span { font-size: .8125rem; }
  .project-art { height: 250px; }
  .featured .project-art { height: 295px; min-height: 295px; }
  .pipeline { inset: 75px 16px 60px; }
  .pipeline-node { padding: 15px 7px; flex-basis: 110px; }
  .pipeline-node b { font-size: .875rem; }
  .pipeline-node small { font-size: .75rem; }
  .pipeline-node .node-symbol { width: 25px; height: 25px; }
  .pipeline-line { min-width: 10px; max-width: 20px; }
  .art-caption { font-size: .75rem; left: 18px; right: 18px; gap: 8px; }
  .art-caption>span:last-child { font-size: .75rem; }
  .art-bottom { font-size: .75rem; gap: 5px; letter-spacing: .035em; }
  .art-bottom .icon { width: 10px; height: 10px; }
  .bank-flow { gap: 10px; inset: 55px 20px 35px; }
  .file-shape { min-width: 80px; flex: 1 1 90px; padding: 10px; }
  .file-shape b { font-size: .875rem; }
  .file-shape small { font-size: .75rem; }
  .flow-arrow { width: 17px; height: 17px; }
  .validation-ring { width: 34px; height: 34px; }
  .validation-ring .icon { width: 18px; height: 18px; }
  .timeline-date { font-size: .75rem; }
  .timeline h3 { font-size: 1.5rem; }
  .timeline h4 { font-size: .875rem; }
  .timeline p { font-size: 1rem; }
  .stack-group { padding: 26px; }
  .stack-group h3 { font-size: 1.375rem; }
  .stack-group p { font-size: 1rem; }
  .stack-tags>span { font-size: .8125rem; padding: 7px 10px; }
  .contact-section>p:not(.eyebrow):not(.copy-status) { font-size: 1rem; }
  .contact-email { font-size: 1.125rem; gap: 10px; }
  .contact-email .icon { width: 20px; height: 20px; }
  .contact-actions { flex-wrap: wrap; }
  .contact-actions .button { min-width: 145px; }
  .contact-socials { font-size: .875rem; }
  .contact-socials>span { font-size: .8125rem; }
  .site-footer { gap: 12px 18px; }
  .site-footer>p { font-size: .75rem; }
  .back-top { font-size: .75rem; }
  .dialog-content { padding: 58px 24px 28px; }
  .dialog-content>.eyebrow { font-size: .75rem; max-width: 100%; }
  .dialog-content h2 { font-size: 1.875rem; }
  .dialog-subtitle { font-size: .875rem; }
  .dialog-metric { font-size: 1.125rem; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { justify-content: space-between; }
  .filter-bar { display: grid; grid-template-columns: 1fr 1fr; }
  .filter { font-size: .875rem; }
}
@media (max-width: 380px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .brand-name { font-size: .75rem; letter-spacing: .05em; }
  .brand { gap: 11px; }
  .hero h1 { font-size: 2.875rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { justify-content: space-between; }
  .hero-footer:after, .visual-code { display: none; }
  .hero-location { font-size: .75rem; }
  .hero-visual { height: 360px; }
  .orbit-label { padding: 9px 10px; }
  .orbit-label strong { font-size: .8125rem; }
  .visual-top, .visual-bottom { font-size: .75rem; letter-spacing: .04em; }
  .filter-bar { display: grid; grid-template-columns: 1fr 1fr; }
  .filter { font-size: .875rem; }
  .project-body, .featured .project-body, .compact-card .project-body { padding: 20px; }
  .pipeline { left: 12px; right: 12px; }
  .pipeline-node { padding: 14px 5px; }
  .pipeline-node small { font-size: .75rem; }
  .pipeline-node b { font-size: .75rem; }
  .art-caption { align-items: flex-start; }
  .art-caption>span:last-child { max-width: 100px; text-align: right; }
  .bank-flow { gap: 6px; left: 14px; right: 14px; }
  .file-shape { min-width: 0; padding: 8px; }
  .flow-arrow { width: 14px; height: 14px; }
  .validation-ring { width: 28px; height: 28px; }
  .contact-email { font-size: 1rem; gap: 8px; }
  .contact-email .icon { width: 18px; height: 18px; }
  .contact-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .project-open:hover .icon { transform: none; }
}
