@font-face {
  font-family: Manrope;
  src: url('../assets/fonts/manrope-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* Design foundation */
:root { color-scheme: dark; --background: #0d1117; --surface: #161b22; --text: #f8fafc; --muted: #94a3b8; --blue: #3b82f6; --cyan: #22d3ee; --line: #30363d; --elevated: #1c2128; --violet: #a78bfa; --green: #4ade80; --orange: #fb923c; --mono: 'Cascadia Code', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; --font: Manrope, 'Segoe UI', sans-serif; --ease: 220ms ease; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 110px; }
html.js { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font: 15px/1.75 var(--font); }
body.dialog-open { overflow: hidden; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.1; }
h2 { font-size: clamp(40px,4.3vw,64px); letter-spacing: -.055em; }
h3 { letter-spacing: -.035em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
::selection { background: #285a9e; color: white; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; border-radius: 3px; }
[hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.container { width: min(1280px,calc(100% - 112px)); margin-inline: auto; }
.section { padding-block: 104px; }
.section-tinted { background: #010409; border-block: 1px solid var(--line); }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .13em; line-height: 1.5; color: var(--cyan); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; margin-bottom: 52px; }
.section-heading h2 { margin-top: 22px; }
.section-intro { max-width: 340px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.muted-heading { color: #94abc9; }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; font-size: 13px; font-weight: 600; transition: color var(--ease); }
.text-link:hover { color: var(--cyan); }
.icon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.text-link .icon { width: 18px; height: 18px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 20px; background: var(--text); color: var(--background); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

/* Primary navigation */
.site-header { position: relative; top: 0; z-index: 30; background: #0d1117f7; border-bottom: 1px solid var(--line); }
.js .site-header { position: sticky; }
.nav-container { width: min(1440px,calc(100% - 72px)); min-height: 84px; margin: auto; display: flex; align-items: center; gap: 26px; }
.wordmark { font-size: 39px; font-weight: 800; line-height: 1; letter-spacing: -.11em; padding-right: 7px; }
.wordmark > span { color: var(--blue); }
.header-socials { display: flex; gap: 14px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.header-socials a { padding-block: 12px; }
.header-socials a:hover { color: var(--text); }
.navigation { display: flex; gap: 23px; align-items: center; margin-left: auto; }
.navigation > a { position: relative; font-size: 12px; color: var(--muted); padding-block: 18px; white-space: nowrap; transition: color var(--ease); }
.navigation > a:hover, .navigation > a[aria-current] { color: white; }
.navigation > a[aria-current]::after { content: ''; position: absolute; height: 2px; width: 18px; background: var(--blue); bottom: 8px; left: calc(50% - 9px); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.language-switcher { display: flex; align-items: center; color: #5d7595; font-size: 10px; }
.language-switcher button { min-width: 36px; min-height: 44px; padding: 8px; background: transparent; border: 0; color: var(--muted); font-size: 11px; }
.language-switcher button[aria-pressed='true'] { color: white; font-weight: 800; }
.cv-link { display: inline-flex; gap: 16px; align-items: center; padding: 10px 16px; min-height: 42px; border: 1px solid #36516e; border-radius: 6px; font-size: 11px; white-space: nowrap; transition: background var(--ease),border-color var(--ease); }
.cv-link:hover { background: #17283f; border-color: var(--blue); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 12px; border: 1px solid var(--line); background: #161b22; border-radius: 6px; }
.menu-toggle > span { display: block; height: 1px; margin-block: 5px; background: white; transition: transform var(--ease); }
.menu-toggle[aria-expanded='true'] > span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] > span:last-child { transform: translateY(-3px) rotate(-45deg); }
.mobile-socials { display: none; }

/* Opening: value proposition paired with demonstrable work */
.hero { position: relative; background: radial-gradient(ellipse at 85% 18%,#1e4a7d30,transparent 60%),linear-gradient(135deg,#0d1117,#0d1117 65%,#111d2e); border-bottom: 1px solid var(--line); overflow: clip; }
.hero-layout { display: grid; grid-template-columns: 1.04fr 1fr; align-items: center; gap: 58px; padding-block: 58px 48px; }
.hero-copy { position: relative; z-index: 1; }
.identity { display: flex; gap: 12px; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .13em; margin-bottom: 30px; }
.identity-line { width: 23px; height: 2px; background: var(--blue); }
.identity-location { font-size: 10px; color: var(--muted); font-weight: 500; }
.hero h1 { font-size: clamp(59px,5.7vw,84px); font-weight: 600; line-height: 1.035; letter-spacing: -.065em; }
.hero h1 > span { white-space: nowrap; }
.hero-highlight { color: #72b0ff; }
.hero-role { margin-top: 25px; font-size: 16px; font-weight: 500; color: #d1dced; }
.hero-role > span { color: var(--blue); margin-inline: 3px; }
.hero-description { margin-top: 18px; max-width: 460px; color: #a7b7cd; font-size: 16px; line-height: 1.85; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; border: 1px solid #324967; border-radius: 7px; padding: 13px 23px; min-height: 54px; font-size: 13px; font-weight: 700; transition: transform var(--ease),background var(--ease),border-color var(--ease); }
.button:hover { transform: translateY(-2px); border-color: #60a5fa; box-shadow: 0 5px 22px #3b82f614; }
.button.primary { background: #276be5; border-color: #438bff; box-shadow: 0 7px 24px #0003; }
.button.primary:hover { background: #3679e8; }
.button.secondary:hover { background: #13243b; }
.hero-socials { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 22px; }
.hero-socials .text-link { color: #b8c8df; font-size: 12px; }
.location { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.location-dot { width: 5px; height: 5px; border-radius: 50%; background: #22d3ee; }
.hero-showcase { position: relative; min-width: 0; padding-top: 20px; }
.showcase-motif { position: absolute; width: 370px; height: 370px; right: -135px; top: -95px; opacity: .24; pointer-events: none; }
.showcase-eyebrow { position: relative; display: flex; gap: 10px; align-items: center; padding: 0 2px 16px; }
.showcase-eyebrow > span:last-child { margin-left: auto; color: var(--muted); font: 11px var(--mono); }
.showcase-eyebrow .eyebrow { font-size: 10px; }
.showcase-panel { position: relative; background: var(--surface); border: 1px solid #3a4655; border-radius: 10px; padding: 18px; box-shadow: 0 28px 70px #01040988,0 0 0 5px #ffffff02; overflow: hidden; }
.showcase-meta { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-bottom: 17px; font-size: 10px; line-height: 1.5; letter-spacing: .08em; color: #b4cae6; }
.showcase-category { color: #93caff; font-weight: 600; }
.showcase-number { white-space: nowrap; }
.showcase-image-link { display: block; border-radius: 6px; overflow: hidden; background: #f0f3f8; border: 1px solid #46617e; }
.showcase-image { width: 100%; aspect-ratio: 1.66; object-fit: contain; height: auto; transition: transform 400ms ease; }
.showcase-image-link:hover .showcase-image { transform: scale(1.015); }
.showcase-info { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 23px 1px 5px; }
.showcase-kicker { color: #9daec6; font-size: 9px; letter-spacing: .1em; }
.showcase-info h2 { font-size: 27px; margin-top: 8px; letter-spacing: -.04em; }
.showcase-description { margin-top: 10px; color: #b3c5de; font-size: 12px; line-height: 1.65; max-width: 300px; min-height: 40px; }
.showcase-case { display: flex; flex-direction: column-reverse; align-items: center; gap: 8px; font-size: 10px; white-space: nowrap; }
.showcase-case > span:last-child { display: grid; place-items: center; width: 47px; height: 47px; border: 1px solid #5576a2; border-radius: 50%; font-size: 23px; background: #192e4c; transition: background var(--ease),transform var(--ease); }
.showcase-case:hover > span:last-child { background: #276be5; transform: rotate(7deg); }
.showcase-switcher { display: none; position: relative; grid-template-columns: repeat(3,1fr); margin-top: 16px; gap: 9px; }
.js .showcase-switcher { display: grid; }
.showcase-switcher button { display: flex; align-items: center; gap: 12px; justify-content: center; min-height: 47px; border: 1px solid #30363d; border-radius: 6px; background: #0d1117; color: var(--muted); font-size: 12px; transition: background var(--ease),border-color var(--ease); }
.showcase-switcher button > span:first-child { color: #83aad4; font-size: 10px; }
.showcase-switcher button[aria-pressed='true'] { background: #172b46; border-color: #4283d5; color: white; }
.showcase-switcher button:hover { border-color: #6b9bdd; }
.hero-bottom { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-block: 23px; border-top: 1px solid #30363d; }
.hero-bottom p { display: flex; gap: 23px; align-items: center; color: #b6c5d9; font-size: 12px; }
.hero-bottom p > span:nth-child(even) { color: #48729f; }
.hero-bottom a { display: flex; gap: 14px; align-items: center; font-size: 11px; color: var(--muted); white-space: nowrap; }
.hero-bottom a:hover { color: var(--cyan); }

/* Shortcuts and in-depth case studies */
.project-index { display: grid; grid-template-columns: repeat(3,1fr); border-block: 1px solid #30363d; margin-bottom: 78px; }
.project-index a { display: flex; gap: 20px; align-items: center; padding: 24px 20px; transition: background var(--ease); }
.project-index a + a { border-left: 1px solid #30363d; }
.project-index a:hover { background: #161b22; }
.project-index-number { align-self: flex-start; margin-top: 3px; font-size: 11px; color: var(--cyan); }
.project-index strong { display: block; font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.project-index small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.project-index-arrow { margin-left: auto; font-size: 23px; color: #98bce8; }
.case-study { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 64px; padding-bottom: 80px; margin-bottom: 80px; border-bottom: 1px solid var(--line); }
.case-study:nth-of-type(even) { grid-template-columns: 1fr 1.2fr; }
.case-study:nth-of-type(even) .case-visual { order: 2; }
.case-visual { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 23px; background: linear-gradient(145deg,#1c2128,#161b22); transition: border-color var(--ease),box-shadow var(--ease); }
.case-topline { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin: -23px -23px 24px; padding: 16px 23px; border-bottom: 1px solid var(--line); background: #01040966; font: 11px/1.6 var(--mono); color: #b8cde7; }
.image-hint { font-size: 8px; letter-spacing: .1em; }
.project-preview { display: block; position: relative; border: 1px solid #30363d; border-radius: 7px; overflow: hidden; background: #e8eef5; }
.project-preview img { width: 100%; height: auto; transition: transform 400ms ease; }
.project-preview:hover img { transform: scale(1.025); }
.preview-expand { display: inline-flex; gap: 9px; align-items: center; position: absolute; bottom: 13px; right: 13px; border: 1px solid #7396c2; border-radius: 5px; padding: 6px 12px; background: #0a192ceb; color: white; font-size: 11px; }
.case-bottomline { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 26px; font-size: 12px; color: #b8cee9; }
.case-bottomline > span:last-child { font-size: 23px; color: var(--cyan); }
.case-copy .eyebrow { font-size: 10px; }
.case-copy h3 { font-size: 36px; margin-top: 17px; }
.case-context { font-size: 16px; color: #bdcce0; line-height: 1.8; margin-top: 19px; }
.case-details { display: grid; gap: 15px; margin-block: 24px; }
.case-details > div { display: grid; grid-template-columns: 108px 1fr; gap: 17px; font-size: 13px; line-height: 1.8; }
.case-details dt { color: #e4ecf8; font-weight: 600; }
.case-details dd { color: var(--muted); }
.case-result { display: flex; gap: 13px; padding: 17px; border-left: 2px solid #589fff; background: #152238; border-radius: 0 6px 6px 0; }
.result-mark { font-size: 22px; line-height: 1.2; color: var(--cyan); }
.result-label { font-size: 9px; font-weight: 700; color: var(--cyan); letter-spacing: .12em; }
.case-result p { color: #d6e5f8; font-size: 13px; margin-top: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 22px 0 0; list-style: none; }
.tags li { padding: 4px 9px; border: 1px solid #30363d; border-radius: 4px; font-size: 11px; color: #b3c7e2; line-height: 1.6; }
.case-actions { margin-top: 22px; }
.case-actions .text-link { border: 1px solid #3e5f8b; border-radius: 6px; background: #12243d; padding: 10px 16px; min-height: 46px; }
.case-actions .text-link:hover { border-color: var(--blue); background: #193962; color: white; }
.more-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 36px; }
.more-heading h3 { font-size: 32px; }
.more-heading > span { color: var(--muted); font-size: 12px; }
.more-projects { display: grid; grid-template-columns: repeat(2,1fr); gap: 45px 36px; }
.project-small { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); transition: transform var(--ease),border-color var(--ease),box-shadow var(--ease); }
.small-preview { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #010409; padding: 12px; margin-bottom: 23px; }
.small-preview img { width: 100%; height: auto; aspect-ratio: 1.95; object-fit: contain; transition: transform 350ms ease; }
.small-preview:hover img { transform: scale(1.025); }
.small-preview > span { position: absolute; bottom: 16px; right: 16px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #102541; border: 1px solid #789dc9; }
.small-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.small-top > span:last-child { color: var(--cyan); }
.project-small h3 { font-size: 26px; margin-top: 16px; }
.project-small > p { font-size: 14px; color: var(--muted); max-width: 480px; margin-top: 13px; min-height: 48px; }
.small-actions { display: flex; flex-wrap: wrap; gap: 23px; margin-top: 16px; }
.small-actions .text-link { font-size: 12px; }
.projects-end { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 38px; }
.projects-end p { color: var(--muted); font-size: 13px; }

/* Evidence-led experience, without invented chronology */
.experience-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 95px; }
.experience-layout .section-heading { display: block; margin-bottom: 0; }
.experience-layout .section-intro { margin-top: 26px; }
.experience-list { counter-reset: experience; }
.experience-item { position: relative; padding: 4px 0 38px 36px; margin-left: 10px; border-left: 1px solid #3a4655; }
.experience-item::before { content: ''; position: absolute; left: -7px; top: 7px; width: 13px; height: 13px; border: 2px solid #60a5fa; border-radius: 50%; background: #0d1117; box-shadow: 0 0 0 5px #010409; }
.experience-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline-dot { display: none; }
.experience-item .eyebrow { font-size: 10px; }
.experience-item h3 { font-size: 25px; margin-top: 13px; }
.experience-item .experience-projects { font-size: 12px; color: #c6d8ed; margin-block: 12px; }
.experience-item > p:not([class]), .experience-description, .experience-outcome { color: var(--muted); font-size: 14px; line-height: 1.9; }
.experience-item .text-link { font-size: 12px; margin-top: 13px; }
.experience-outcome { margin-top: 14px; padding-left: 15px; border-left: 2px solid #477dbd; }

/* Human identity and working approach */
.about-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; align-items: center; }
.about-profile { border: 1px solid var(--line); border-radius: 10px; padding: 34px; background: radial-gradient(ellipse at 100% 20%,#1e4a7d20,transparent 75%),var(--surface); }
.approach-flow { margin-top: 36px; }
.approach-flow > div { display: flex; align-items: baseline; gap: 21px; padding-block: 18px; border-bottom: 1px solid #30363d; }
.approach-flow span { font-size: 11px; color: var(--cyan); }
.approach-flow p { font-size: 42px; font-weight: 500; letter-spacing: -.05em; line-height: 1.1; }
.approach-flow > div:last-child p { color: #79b6ff; }
.profile-signature { display: flex; align-items: center; gap: 17px; margin-top: 35px; }
.profile-signature img { width: 62px; height: 62px; object-fit: cover; object-position: center 36%; border-radius: 50%; background: #000; border: 1px solid #436086; }
.profile-signature strong { display: block; font-size: 15px; font-weight: 600; }
.profile-signature div > span { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }
.about-copy h2 { margin-block: 23px; }
.about-copy > p:not(.eyebrow) { font-size: 15px; color: var(--muted); margin-top: 18px; line-height: 1.9; }
.about-copy > p.about-lead { font-size: 17px; color: #cbd9ec; }
.about-principles { display: grid; gap: 12px; border-top: 1px solid var(--line); margin-top: 27px; padding-top: 25px; }
.about-principles > span { font-size: 13px; color: #c4d2e7; }
.about-principles b { color: var(--cyan); font-size: 10px; font-weight: 500; margin-right: 18px; }

/* Verified education, kept compact alongside the complete CV. */
.education-section { padding-bottom: 104px; }
.education-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; padding-top: 36px; border-top: 1px solid var(--line); margin-bottom: 38px; }
.education-heading h2 { font-size: clamp(30px,3vw,42px); max-width: 590px; margin-top: 17px; line-height: 1.15; }
.education-heading .button { flex-shrink: 0; }
.education-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 70px; }
.education-item { padding-block: 24px; border-top: 1px solid var(--line); }
.education-item:last-child { padding-bottom: 0; }
.education-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 11px; color: var(--muted); }
.education-status { color: #a8d2ff; font-size: 10px; border: 1px solid #345884; background: #11233b; border-radius: 4px; padding: 2px 8px; }
.education-item h3 { font-size: 22px; line-height: 1.35; margin-top: 15px; }
.education-item > p { font-size: 13px; line-height: 1.7; color: var(--muted); margin-top: 10px; }
.certifications { border-left: 1px solid var(--line); padding-left: 34px; padding-top: 24px; }
.certifications > h3 { font-size: 21px; line-height: 1.35; }
.certification-list { list-style: none; margin: 10px 0 0; padding: 0; }
.certification-list li { padding-block: 18px; border-bottom: 1px solid var(--line); }
.certification-list li:last-child { border-bottom: 0; }
.certification-list strong { display: block; font-size: 14px; font-weight: 600; }
.certification-list span { display: block; font-size: 12px; line-height: 1.7; margin-top: 5px; color: var(--muted); }
.stack-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.stack-row { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 14px; align-content: start; align-items: center; padding: 28px; border-top: 1px solid var(--line); }
.stack-number { color: var(--cyan); font-size: 11px; }
.stack-row h3 { font-size: 20px; }
.stack-row .tags { grid-column: 2; margin: 0; gap: 9px; }
.stack-row .tags li { background: #0d1117; border-color: var(--line); padding: 7px 10px; font-size: 12px; }
.services-strip { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 42px; align-items: center; padding-block: 65px; }
.services-strip .eyebrow { font-size: 10px; }
.services-strip h2 { font-size: 29px; margin-top: 14px; }
.services-strip > p { color: var(--muted); font-size: 13px; line-height: 1.9; }

/* A direct invitation with usable contact choices */
.contact-section { padding-block: 76px 80px; border-block: 1px solid #2d4261; background: radial-gradient(ellipse at 90% 90%,#1e4a7d55,transparent 70%),#0d1726; }
.contact-top { display: flex; justify-content: space-between; align-items: center; }
.contact-star { color: #74b7ff; }
.contact-section h2 { margin-top: 22px; font-size: clamp(42px,6.3vw,91px); }
.contact-section .muted-heading { color: #79b6ff; }
.contact-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; margin-top: 42px; }
.contact-bottom > div:first-child { width: min(570px,100%); min-width: 0; }
.contact-bottom p { color: #b4c5dd; font-size: 15px; max-width: 490px; }
.email-link { display: flex; align-items: center; gap: 14px; background: #e5efff; color: #161b22; border-radius: 7px; padding: 15px 21px; margin-top: 22px; font-size: clamp(16px,1.65vw,24px); font-weight: 600; transition: background var(--ease),transform var(--ease); }
.email-link:hover { background: #fff; transform: translateY(-2px); }
.email-address { min-width: 0; overflow-wrap: anywhere; }
.email-tools { display: none; align-items: center; gap: 15px; margin-top: 10px; min-height: 40px; }
.js .email-tools { display: flex; }
.copy-email { display: inline-flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 9px 0; min-height: 40px; font-size: 12px; color: #c6d9f2; white-space: nowrap; }
.copy-email:hover { color: white; }
.copy-email svg { width: 15px; height: 15px; }
.email-tools .copy-status { font-size: 11px; color: #b5d8ff; }
.contact-socials { display: grid; grid-template-columns: repeat(2,1fr); flex-shrink: 0; gap: 10px 30px; min-width: 250px; padding-bottom: 50px; }
.contact-socials .text-link { min-height: 48px; justify-content: flex-start; gap: 12px; border: 1px solid #34465e; border-radius: 6px; padding: 10px 14px; background: #161b2266; }
.site-footer { display: flex; align-items: center; gap: 25px; padding-block: 33px; }
.site-footer .wordmark { font-size: 32px; }
.site-footer p { color: var(--muted); font-size: 12px; }
.site-footer > div { display: flex; gap: 28px; margin-left: auto; }
.site-footer .text-link { font-size: 11px; color: var(--muted); }

/* Native dialog keeps focus inside the gallery. */
.gallery-dialog { width: min(1120px, calc(100% - 40px)); max-height: calc(100dvh - 40px); padding: 24px; color: var(--text); background: var(--surface); border: 1px solid #30363d; border-radius: 9px; overflow-y: auto; }
.gallery-dialog::backdrop { background: #02050ce8; }
.gallery-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 18px; }
.gallery-header .eyebrow { font-size: 8px; }
.gallery-header h2 { font-size: 24px; margin-top: 9px; }
.icon-button { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; background: #1c2128; border: 1px solid #30363d; border-radius: 4px; font-size: 23px; }
.icon-button:hover { border-color: var(--cyan); background: #1a3456; }
.gallery-figure { background: #060a11; border: 1px solid var(--line); }
.gallery-image { width: 100%; height: min(60dvh, 620px); object-fit: contain; }
.gallery-figure figcaption { color: #c2d2e8; min-height: 42px; padding: 12px 17px; font-size: 11px; background: #161b22; }
.gallery-error { padding: 60px 24px; color: #d6e5fa; }
.gallery-controls { display: flex; align-items: center; gap: 19px; margin-top: 16px; }
.gallery-count { font-size: 12px; color: #b5c8e3; }
.gallery-original { margin-left: auto; font-size: 10px; }



/* Developer identity: native SVGs, restrained syntax color and editor chrome. */
.glyph { display: inline-block; width: 18px; height: 18px; min-width: 18px; flex-shrink: 0; vertical-align: middle; color: currentColor; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 500; letter-spacing: .08em; }
.eyebrow .glyph { width: 16px; height: 16px; min-width: 16px; }
.nav-index { color: #679bd9; font: 10px var(--mono); margin-right: 5px; }
.navigation { gap: 18px; }
.navigation > a[aria-current] { color: #a7ceff; }
.header-socials a { display: inline-flex; align-items: center; gap: 7px; }
.header-socials .glyph { width: 15px; height: 15px; min-width: 15px; }
.text-link:has(> .glyph) { justify-content: flex-start; gap: 9px; }
.text-link .glyph, .button .glyph, .cv-link .glyph { transition: color var(--ease),transform var(--ease); }
.text-link:hover .glyph, .cv-link:hover .glyph { color: var(--cyan); transform: translateY(-1px); }
.hero-socials .text-link { min-height: 44px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 5px; background: #161b2288; }
.location .glyph { width: 15px; height: 15px; min-width: 15px; color: #8ca5c2; }
.profile-code { margin-top: 25px; max-width: 490px; border-left: 2px solid #3b82f6; padding: 12px 15px; background: linear-gradient(90deg,#161b22dd,#161b2233); border-radius: 0 5px 5px 0; font: 12px/1.8 var(--mono); color: #c6d2e2; }
.profile-code-title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: #b2c5dd; font-size: 11px; }
.profile-code-title .glyph { width: 14px; height: 14px; min-width: 14px; color: #60a5fa; }
.code-comment { color: #94a3b8; margin-left: auto; font-size: 10px; }
.profile-code code { font: inherit; }
.code-line { display: flex; gap: 16px; }
.line-number { width: 17px; color: #75869b; flex-shrink: 0; user-select: none; }
.syntax-keyword { color: var(--violet); font-weight: 500; }
.syntax-string { color: #8ed8ae; }
.editor-bar { display: flex; align-items: center; gap: 18px; margin: -18px -18px 18px; padding: 15px 18px; border-bottom: 1px solid var(--line); background: #010409; font: 11px var(--mono); color: #b8c8df; }
.editor-dots { display: flex; gap: 5px; }
.editor-dots i { width: 6px; height: 6px; border-radius: 50%; background: #4b5563; }
.editor-dots i:first-child { background: #6e7f92; }
.editor-filename { display: inline-flex; align-items: center; gap: 8px; }
.editor-filename .glyph { width: 15px; height: 15px; min-width: 15px; color: var(--blue); }
.editor-mode { margin-left: auto; font-size: 9px; color: #94a3b8; }
.showcase-meta, .showcase-number, .showcase-kicker, .showcase-switcher button > span:first-child, .project-index-number, .small-top, .more-heading > span, .education-meta, .gallery-count { font-family: var(--mono); }
.showcase-case .arrow-badge { border-radius: 7px; background: #1c2128; border-color: #435264; }
.showcase-case:hover .arrow-badge { transform: translateY(-2px); }
.project-index { border: 1px solid var(--line); background: #161b2266; border-radius: 8px; overflow: hidden; }
.project-index a:focus-visible { outline-offset: -4px; }
.project-file { color: #8da6c5; }
.image-hint { display: inline-flex; align-items: center; gap: 6px; color: #94a3b8; }
.image-hint .glyph { width: 13px; height: 13px; min-width: 13px; }
.case-visual:hover, .case-visual:focus-within { border-color: #4978b0; box-shadow: 0 0 28px #3b82f60b; }
.project-small:hover, .project-small:focus-within { transform: translateY(-2px); border-color: #4978b0; box-shadow: 0 12px 28px #01040966; }
.tags li { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); }
.tags .tech-icon { width: 14px; height: 14px; min-width: 14px; color: var(--tech-color,#c6d2e2); }
.tone-orange { --tech-color: #fb923c; }
.tone-yellow { --tech-color: #f5cf62; }
.tone-cyan { --tech-color: #67d9ef; }
.tone-violet { --tech-color: #b6a0f4; }
.tone-blue { --tech-color: #79b8ff; }
.tone-green { --tech-color: #7ad99d; }
.stack-workspace { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.stack-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 28px; background: #010409; color: #94a3b8; font: 11px var(--mono); }
.stack-toolbar > span:first-child { display: flex; align-items: center; gap: 10px; color: #b2c5dd; }
.stack-toolbar b { font-weight: 500; }
.stack-toolbar .glyph, .stack-number .glyph { color: #79b8ff; }
.stack-row:nth-child(even) { border-left: 1px solid var(--line); }
.stack-row h3 { font-size: 20px; }
.contact-star .glyph { width: 52px; height: 52px; }
.contact-socials .text-link:hover { background: #1c2b40; border-color: #60a5fa; }
.email-link .glyph { width: 23px; height: 23px; }
.gallery-close, .gallery-prev, .gallery-next { color: #d5e2f1; }

/* Gentle motion; content never depends on animation. */
@media (prefers-reduced-motion: no-preference) {
  .reveal.is-revealed { animation: enter 600ms both; }
  .showcase-panel { animation: enter 700ms both; }
  @keyframes enter { from { opacity: .45; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
  html, html.js { scroll-behavior: auto; }
  *, *::before, *::after { transition: none; animation: none; }
}

/* Notebook */
@media (max-width: 1250px) {
  .header-socials { display: none; }
  .nav-container { gap: 23px; }
  .navigation { gap: 13px; }
  .navigation > a { font-size: 11px; }
  .nav-index { display: none; }
  .hero-layout { gap: 38px; }
  .hero h1 { font-size: clamp(54px,6.2vw,76px); }
  .hero-role { font-size: 14px; }
  .hero-description { font-size: 15px; }
  .identity-location { display: none; }
  .hero-socials { gap: 18px; }
  .hero-socials .location { font-size: 10px; }
  .showcase-panel { padding: 14px; }
  .showcase-info h2 { font-size: 23px; }
  .showcase-description { font-size: 11px; }
  .showcase-info { padding-top: 17px; }
  .showcase-meta { font-size: 9px; }
  .case-study { gap: 42px; }
  .case-copy h3 { font-size: 32px; }
  .case-details > div { grid-template-columns: 94px 1fr; gap: 12px; }
  .case-topline { font-size: 10px; }
  .image-hint { font-size: 7px; }
  .experience-layout, .about-section { gap: 58px; }
  .stack-row { grid-template-columns: 22px minmax(0,1fr); padding: 24px; }
  .editor-bar { margin: -14px -14px 16px; padding: 13px 14px; }
  .editor-mode { display: none; }
}

/* Tablet navigation and layout */
@media (max-width: 950px) {
  .container { width: calc(100% - 64px); }
  .nav-container { width: calc(100% - 48px); min-height: 76px; flex-wrap: wrap; }
  .js .nav-container { flex-wrap: nowrap; }
  .nav-actions { margin-left: auto; }
  .js .menu-toggle { display: block; }
  .navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; order: 3; position: static; top: 100%; left: 0; width: 100%; background: #161b22; border-bottom: 1px solid #30363d; padding: 16px 32px 24px; box-shadow: 0 20px 40px #0005; }
  .js .navigation { display: none; position: absolute; }
  .js .navigation.is-open { display: grid; }
  .nav-index { display: inline; }
  .navigation > a { font-size: 15px; border-bottom: 1px solid #30363d; padding-block: 15px; }
  .navigation > a[aria-current]::after { left: auto; right: 3px; bottom: 23px; width: 5px; height: 5px; border-radius: 50%; }
  .mobile-socials { display: flex; grid-column: 1 / -1; gap: 28px; margin-top: 15px; }
  .hero-layout { grid-template-columns: 1fr; gap: 42px; padding-block: 57px 36px; }
  .hero-copy { max-width: 680px; }
  .hero h1 { font-size: clamp(60px,8.4vw,78px); }
  .identity-location { display: inline; }
  .hero-role { font-size: 17px; }
  .hero-description { font-size: 16px; max-width: 530px; }
  .profile-code { max-width: 530px; }
  .hero-showcase { width: min(680px,100%); padding: 0; }
  .showcase-panel { padding: 19px; }
  .showcase-info h2 { font-size: 29px; }
  .showcase-description { font-size: 13px; min-height: 23px; }
  .showcase-image { aspect-ratio: 1.95; }
  .hero-bottom { padding-block: 19px; }
  .hero-bottom p { font-size: 10px; gap: 12px; }
  .hero-bottom > a { font-size: 10px; }
  .section { padding-block: 80px; }
  .section-heading { gap: 34px; }
  .section-intro { font-size: 14px; max-width: 270px; }
  .project-index a { padding: 20px 11px; gap: 11px; }
  .project-index strong { font-size: 15px; }
  .project-index small { font-size: 10px; }
  .project-index-arrow { font-size: 19px; }
  .case-study, .case-study:nth-of-type(even) { grid-template-columns: 1fr; gap: 33px; padding-bottom: 55px; margin-bottom: 55px; }
  .case-study:nth-of-type(even) .case-visual { order: 0; }
  .case-visual { padding: 22px; }
  .case-topline { margin-inline: -22px; margin-top: -22px; padding: 16px 22px; }
  .editor-bar { margin: -19px -19px 18px; padding: 15px 19px; }
  .case-topline { margin-bottom: 24px; font-size: 12px; }
  .image-hint { font-size: 9px; }
  .case-copy h3 { font-size: 38px; }
  .case-details > div { grid-template-columns: 110px 1fr; }
  .case-details { max-width: 700px; }
  .case-actions { margin-top: 22px; }
  .more-projects { gap: 30px 24px; }
  .small-preview { padding: 12px; }
  .project-small h3 { font-size: 24px; }
  .small-actions { gap: 15px; }
  .experience-layout { grid-template-columns: 1fr; gap: 38px; }
  .experience-layout .section-intro { max-width: 560px; }
  .experience-item { padding-left: 52px; }
  .education-section { padding-bottom: 80px; }
  .education-grid { gap: 30px; }
  .certifications { padding-left: 25px; }
  .about-section { grid-template-columns: .9fr 1.1fr; gap: 32px; }
  .about-profile { padding: 25px; }
  .approach-flow p { font-size: 34px; }
  .profile-signature { gap: 12px; }
  .profile-signature img { width: 48px; height: 48px; }
  .profile-signature strong { font-size: 13px; }
  .profile-signature div > span { font-size: 9px; }
  .about-copy > p:not(.eyebrow) { font-size: 14px; }
  .stack-row { grid-template-columns: 20px minmax(0,1fr); gap: 12px; padding: 22px; }
  .stack-row h3 { font-size: 18px; }
  .stack-row .tags li { padding: 5px 9px; font-size: 11px; }
  .services-strip { gap: 26px; }
  .services-strip h2 { font-size: 25px; }
  .contact-bottom { gap: 32px; }
  .contact-socials { min-width: 200px; gap: 10px 20px; }
}

/* Mobile: larger controls, shorter routes, readable content */
@media (max-width: 700px) {
  html { scroll-padding-top: 96px; }
  .container { width: calc(100% - 40px); }
  .nav-container { width: calc(100% - 32px); gap: 10px; min-height: 72px; }
  .wordmark { font-size: 33px; }
  .nav-actions { gap: 9px; }
  .cv-link { padding: 9px 11px; gap: 12px; font-size: 10px; }
  .language-switcher button { min-width: 33px; padding: 7px; }
  .navigation { padding-inline: 20px; }
  .hero-layout { padding-block: 44px 31px; gap: 37px; }
  .identity { font-size: 11px; gap: 10px; margin-bottom: 25px; }
  .identity-line { width: 17px; }
  .identity-location { font-size: 8px; }
  .hero h1 { font-size: clamp(43px,11.45vw,73px); letter-spacing: -.06em; line-height: 1.06; }
  .hero-role { font-size: 14px; max-width: 330px; line-height: 1.7; margin-top: 22px; }
  .hero-description { font-size: 15px; margin-top: 15px; line-height: 1.8; }
  .hero-actions { margin-top: 25px; gap: 10px; }
  .button { min-height: 51px; padding: 11px 17px; gap: 17px; font-size: 12px; }
  .hero-socials { gap: 19px; margin-top: 18px; }
  .hero-socials .text-link { font-size: 12px; }
  .hero-socials .location { font-size: 10px; gap: 5px; }
  .showcase-motif { width: 250px; height: 250px; right: -85px; top: -60px; }
  .showcase-eyebrow { padding-bottom: 15px; }
  .showcase-eyebrow .eyebrow { font-size: 9px; }
  .showcase-panel { border-radius: 11px; padding: 13px; }
  .showcase-meta { padding-bottom: 13px; font-size: 8px; }
  .showcase-image { aspect-ratio: 1.66; }
  .showcase-info { padding: 17px 1px 3px; gap: 10px; }
  .showcase-info h2 { font-size: 23px; }
  .showcase-kicker { font-size: 8px; }
  .showcase-description { font-size: 11px; min-height: 36px; max-width: 245px; }
  .showcase-case { font-size: 9px; }
  .showcase-case > span:last-child { width: 43px; height: 43px; font-size: 22px; }
  .showcase-switcher { gap: 7px; margin-top: 11px; }
  .showcase-switcher button { min-height: 46px; gap: 8px; font-size: 11px; }
  .showcase-switcher button > span:first-child { font-size: 9px; }
  .hero-bottom { display: block; }
  .hero-bottom p { font-size: 9px; gap: 8px; flex-wrap: wrap; }
  .hero-bottom > a { display: none; }
  .section { padding-block: 64px; }
  h2 { font-size: 40px; }
  .section-heading { display: block; margin-bottom: 32px; }
  .section-heading h2 { margin-top: 16px; }
  .section-intro { max-width: 400px; font-size: 14px; margin-top: 21px; }
  .eyebrow { font-size: 10px; }
  .project-index { grid-template-columns: 1fr; margin-bottom: 42px; }
  .project-index a { padding: 16px 6px; gap: 18px; }
  .project-index a + a { border-left: 0; border-top: 1px solid var(--line); }
  .project-index strong { font-size: 16px; }
  .project-index small { font-size: 11px; }
  .project-index-arrow { font-size: 24px; }
  .case-study, .case-study:nth-of-type(even) { gap: 26px; margin-bottom: 43px; padding-bottom: 43px; }
  .case-visual { padding: 15px; border-radius: 10px; }
  .case-topline { margin-inline: -15px; margin-top: -15px; padding: 14px 15px; }
  .editor-bar { margin: -13px -13px 14px; padding: 13px; }
  .profile-code { font-size: 11px; padding: 12px; }
  .code-line { gap: 9px; }
  .code-comment { display: none; }
  .hero-socials { gap: 12px; }
  .hero-socials .location { flex-basis: 100%; }
  .stack-list { grid-template-columns: 1fr; }
  .stack-row:nth-child(even) { border-left: 0; }
  .stack-toolbar { padding: 17px 20px; font-size: 10px; }
  .stack-toolbar > span:last-child { font-size: 9px; }
  .project-small { padding: 17px; }
  .case-topline { font-size: 10px; margin-bottom: 20px; }
  .image-hint { font-size: 7px; }
  .preview-expand { padding: 5px 8px; bottom: 9px; right: 9px; font-size: 10px; }
  .case-bottomline { font-size: 11px; padding-top: 18px; }
  .case-copy h3 { font-size: 33px; }
  .case-context { font-size: 15px; margin-top: 15px; }
  .case-details > div { grid-template-columns: 94px 1fr; gap: 12px; font-size: 13px; }
  .case-result { padding: 14px; }
  .case-actions .text-link { width: 100%; justify-content: space-between; min-height: 48px; }
  .more-heading { margin-bottom: 27px; gap: 17px; }
  .more-heading h3 { font-size: 29px; max-width: 260px; }
  .more-heading > span { font-size: 10px; }
  .more-projects { grid-template-columns: 1fr; gap: 32px; }
  .small-preview { padding: 15px; margin-bottom: 19px; }
  .project-small h3 { font-size: 25px; }
  .project-small > p { min-height: 0; font-size: 14px; }
  .small-actions { gap: 22px; }
  .small-actions .text-link { min-height: 44px; }
  .projects-end { align-items: flex-start; gap: 23px; }
  .projects-end p { font-size: 11px; max-width: 160px; }
  .projects-end .text-link { font-size: 11px; }
  .experience-layout { gap: 34px; }
  .experience-item { padding: 25px 0 28px 36px; }
  .experience-item::before { font-size: 11px; }
  .experience-item h3 { font-size: 24px; }
  .experience-item .eyebrow { font-size: 9px; }
  .experience-item .experience-projects { font-size: 11px; }
  .about-section { display: flex; flex-direction: column-reverse; gap: 35px; align-items: stretch; }
  .about-profile { padding: 26px; }
  .approach-flow { margin-top: 25px; }
  .approach-flow p { font-size: 40px; }
  .profile-signature img { width: 59px; height: 59px; }
  .profile-signature strong { font-size: 15px; }
  .profile-signature div > span { font-size: 10px; }
  .about-copy > p.about-lead { font-size: 16px; }
  .about-copy > p:not(.eyebrow) { font-size: 14px; }
  .about-principles > span { font-size: 12px; }
  .education-section { padding-bottom: 64px; }
  .education-heading { align-items: flex-start; flex-direction: column; gap: 24px; margin-bottom: 28px; }
  .education-heading h2 { font-size: 32px; }
  .education-grid { grid-template-columns: 1fr; gap: 32px; }
  .education-item h3 { font-size: 21px; }
  .certifications { border-left: 0; border-top: 1px solid var(--line); padding: 27px 0 0; }
  .stack-row { grid-template-columns: 25px 1fr; gap: 10px; padding-block: 23px; }
  .stack-row h3 { font-size: 20px; }
  .stack-row .tags { grid-column: 2; margin-top: 9px; gap: 7px; }
  .stack-row .tags li { font-size: 11px; }
  .services-strip { grid-template-columns: 1fr; gap: 20px; padding-block: 42px; }
  .services-strip .text-link { width: fit-content; }
  .services-strip .eyebrow { font-size: 9px; }
  .contact-section { padding-block: 46px 48px; }
  .contact-star { font-size: 45px; }
  .contact-section h2 { font-size: clamp(38px,10vw,58px); margin-top: 20px; }
  .contact-bottom { flex-direction: column; align-items: stretch; gap: 25px; margin-top: 26px; }
  .contact-bottom p { font-size: 14px; }
  .email-link { padding: 13px 14px; font-size: clamp(13px,3.9vw,23px); gap: 9px; }
  .email-tools { align-items: flex-start; gap: 13px; }
  .email-tools .copy-status { font-size: 11px; margin-top: 9px; }
  .contact-socials { padding: 0; grid-template-columns: 1fr 1fr; gap: 4px 28px; }
  .contact-socials .text-link { font-size: 12px; padding: 10px 12px; }
  .contact-socials { gap: 10px; }
  .contact-star .glyph { width: 35px; height: 35px; }
  .cv-link .glyph { width: 15px; height: 15px; min-width: 15px; }
  .site-footer { flex-wrap: wrap; padding-block: 26px; gap: 19px; }
  .site-footer p { font-size: 10px; }
  .site-footer > div { width: 100%; margin: 0; justify-content: space-between; gap: 20px; }
  .gallery-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 20px); padding: 14px; }
  .gallery-image { height: 52dvh; }
  .gallery-header h2 { font-size: 22px; }
  .gallery-controls { gap: 12px; }
  .gallery-original { font-size: 9px; gap: 5px; }
  .gallery-count { font-size: 10px; }
}
@media (max-width: 360px) {
  .container { width: calc(100% - 32px); }
  .nav-container { width: calc(100% - 24px); }
  .nav-actions { gap: 5px; }
  .language-switcher button { min-width: 30px; padding: 6px; }
  .cv-link { gap: 6px; padding: 8px; font-size: 9px; }
  .hero h1 { font-size: 38px; }
  .identity-location { display: none; }
  .button { padding-inline: 13px; gap: 12px; font-size: 11px; }
  .hero-socials { gap: 14px; }
  .hero-socials .location { font-size: 9px; }
  .showcase-panel { padding: 11px; }
  .editor-bar { margin: -11px -11px 13px; padding: 12px; }
  .profile-code { font-size: 10px; }
  .hero-actions .button { gap: 8px; }
  .email-link .glyph { width: 17px; height: 17px; min-width: 17px; }
  .showcase-info h2 { font-size: 21px; }
  .showcase-description { font-size: 10px; }
  .showcase-switcher button { gap: 5px; font-size: 10px; }
  .case-details > div { grid-template-columns: 80px 1fr; }
  h2 { font-size: 35px; }
  .contact-section h2 { font-size: 34px; }
}
