:root {
  --color-bg: #FFFFFF;
  --color-surface: #F5F5F5;
  --color-surface-alt: #F6F6F6;
  --color-text: #232323;
  --color-text-secondary: rgba(35, 35, 35, .64);
  --color-text-tertiary: #949494;
  --color-accent: #545FDA;
  --color-on-accent: #FFFFFF;
  --color-border: rgba(35, 35, 35, .12);
  --color-border-strong: rgba(35, 35, 35, .24);
  --cursor-pink: #FF5FA2;
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --page-width: 1200px;
  --page-gutter: 32px;
  --nav-height: 64px;
  --hero-column-gap: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 24px); }
html.menu-open { overflow: hidden; }
body { margin: 0; padding-top: var(--nav-height); background: var(--color-bg); color: var(--color-text); font: 400 16px/1.5 var(--font-body); text-align: left; -webkit-font-smoothing: antialiased; }
body, main, section, article, header, footer, nav, div { min-width: 0; }
::selection { color: var(--color-on-accent); background: var(--color-accent); }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-accent); }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 5px; border-radius: 4px; }
img { max-width: 100%; display: block; }
svg { flex: 0 0 auto; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 500; }
h1 { font-size: 64px; line-height: 68px; letter-spacing: -.045em; }
h2 { font-size: 48px; line-height: 54px; letter-spacing: -.038em; }
h3 { font-size: 32px; line-height: 38px; letter-spacing: -.03em; }
[hidden] { display: none !important; }
.container { width: calc(100% - var(--page-gutter) * 2); max-width: var(--page-width); 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; top: 12px; left: 20px; z-index: 60; padding: 12px 20px; color: var(--color-on-accent); background: var(--color-accent); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); color: var(--color-on-accent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border: 1px solid transparent; border-radius: 8px; padding: 16px 24px; font: 600 16px/22px var(--font-body); text-align: center; transition: color .2s ease, opacity .2s ease, transform .2s ease, border-color .2s ease; }
.button svg, .button > span[aria-hidden] { flex: 0 0 auto; }
.primary { color: var(--color-on-accent); background: var(--color-accent); }
.primary:hover { color: var(--color-on-accent); opacity: .88; }
.secondary { color: var(--color-text); border-color: rgba(35,35,35,.18); background: transparent; }
.secondary:hover { color: var(--color-text); border-color: var(--color-border-strong); background: rgba(35,35,35,.025); }
.text-button { border: 0; padding-inline: 16px; background: transparent; color: var(--color-text); }
.text-button:hover { color: var(--color-accent); }
.button:active { transform: scale(.98); }
.actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.actions .button { white-space: nowrap; }
.resume-control { display: flex; flex-direction: column; gap: 8px; }
.unavailable { color: var(--color-text-secondary); }
.resume-note { font-size: 12px; line-height: 18px; color: var(--color-text-secondary); padding-left: 1px; }
.eyebrow { font-size: 12px; line-height: 18px; letter-spacing: .09em; font-weight: 600; color: var(--color-text-secondary); text-align: left; }
.media-overlay { position: absolute; inset: 16px 16px auto; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; pointer-events: none; }
.project-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.project-tag, .project-filter { display: inline-flex; align-items: center; width: fit-content; padding: 6px 12px; border-radius: 999px; font: 500 14px/20px var(--font-body); white-space: nowrap; }
.project-tag { min-height: 32px; background: var(--color-bg); color: var(--color-text); }
.case-arrow { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: var(--color-bg); color: var(--color-text); transition: color .2s ease, background .2s ease; }
.case-arrow svg { transition: transform .2s ease; }
.project-link:hover .case-arrow, .featured-media:hover .case-arrow { background: var(--color-accent); color: var(--color-on-accent); }
.project-link:hover .case-arrow svg, .featured-media:hover .case-arrow svg { transform: translate(1px,-1px); }

/* First screen: a shared left edge for every text block. */
.hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-rows: minmax(0,1fr); column-gap: var(--hero-column-gap); height: min(760px,calc(100svh - var(--nav-height))); min-height: 0; padding-block: 16px; }
.hero-profile { container-type: inline-size; display: flex; flex-direction: column; justify-content: space-between; min-height: 0; padding-block: 8px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 14px; line-height: 20px; }
.hero-top { font-weight: 600; }
.hero-top > * { white-space: nowrap; }
.hero-main { margin-top: auto; padding-top: 24px; }
.portrait { width: 128px; height: 128px; object-fit: cover; object-position: 50% 44%; border-radius: 50%; margin-bottom: 24px; background: var(--color-surface); }
.hero h1 { max-width: 100%; font-size: clamp(28px,7.1cqw,44px); line-height: 1.12; overflow-wrap: normal; }
.hero-title-line { display: block; white-space: nowrap; }
.hero-intro { margin-top: 20px; line-height: 24px; max-width: 560px; }
.hero .actions { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); margin-top: 24px; }
.hero .button { width: 100%; padding-inline: 16px; gap: 8px; font-size: clamp(14px,1.12vw,16px); }
.availability { display: inline-flex; align-items: center; gap: 8px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); flex: 0 0 auto; }

.featured { display: flex; flex-direction: column; align-self: stretch; min-width: 0; min-height: 0; }
.slides { display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr); min-height: 0; flex: 1; padding: 12px; border-radius: 16px; background: var(--color-surface); overflow: hidden; touch-action: pan-y pinch-zoom; }
.slide { grid-area: 1 / 1; display: grid; grid-template-rows: minmax(0,1fr) auto; min-width: 0; min-height: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .5s ease, visibility .5s; }
.slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.featured-media { position: relative; display: block; width: 100%; min-height: 0; background: var(--color-surface-alt); overflow: hidden; border-radius: 12px; transition: border-radius .3s ease; }
.featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.featured-media img.image-contain { object-fit: contain; background: var(--color-surface-alt); }
.featured-copy { padding: 24px 8px 12px; }
.featured-copy h2 { font-size: 28px; line-height: 34px; letter-spacing: -.035em; }
.featured-description { margin-top: 12px; font-size: 14px; line-height: 22px; color: var(--color-text-secondary); }
.featured-description, .project-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.slider-footer { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; padding-top: 4px; }
.slider-pagination { display: flex; width: fit-content; max-width: 100%; margin-inline: auto; align-items: center; justify-content: center; flex-wrap: nowrap; gap: 0; }
/* Preserve v76 visual spacing: 7px dots / 20px active pill + 4px per side.
   Keep disjoint, tall hit targets without fixed horizontal button widths. */
.pagination-dot { position: relative; display: inline-flex; flex: 0 0 auto; width: auto; min-width: 0; align-items: center; justify-content: center; height: 44px; padding: 0 4px; }
.pagination-dot:focus-visible { outline-offset: 0; }
.pagination-dot span { flex: 0 0 auto; pointer-events: none; width: 7px; height: 7px; border-radius: 999px; background: var(--color-border-strong); transition: background .2s ease, width .2s ease; }
.pagination-dot[aria-current="true"] span { width: 20px; background: var(--color-accent); }
.pagination-dot:hover span { background: var(--color-accent); }
.site-nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-height); color: var(--color-text); background: var(--color-bg); border-bottom: 1px solid var(--color-border); transition: transform .24s ease; }
.site-nav.is-hidden { transform: translateY(-100%); }
.site-nav:has(:focus-visible) { transform: translateY(0); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 100%; }
.nav-brand { display: inline-flex; align-items: center; flex-shrink: 0; font: 600 18px/24px var(--font-heading); letter-spacing: -.025em; white-space: nowrap; }
.nav-actions { align-items: center; flex-wrap: nowrap; gap: 8px; }
.nav-actions .button { min-height: 44px; padding: 10px 16px; font-size: 14px; line-height: 20px; gap: 8px; }
.nav-actions .resume-control { gap: 0; }
.menu-toggle, .menu-close { align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; border-radius: 8px; flex-shrink: 0; }
.menu-toggle { display: none; }
.menu-close { display: inline-flex; }
.menu-toggle:hover, .menu-close:hover { background: var(--color-surface); }
.mobile-menu { position: fixed; inset: 0; width: calc(100% - 40px); max-width: 400px; max-height: calc(100dvh - var(--nav-height) - 32px); margin: calc(var(--nav-height) + 12px) auto auto; padding: 20px 24px 24px; border: 0; border-radius: 16px; background: var(--color-bg); color: var(--color-text); box-shadow: 0 16px 64px rgba(35,35,35,.18); overscroll-behavior: contain; }
.mobile-menu::backdrop { background: rgba(35,35,35,.32); backdrop-filter: blur(4px); }
.mobile-menu[open] { animation: menu-enter .2s ease-out; }
.mobile-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.mobile-menu-heading p { font: 600 18px/26px var(--font-heading); }
.mobile-menu .actions { flex-direction: column; }
.mobile-menu .actions > *, .mobile-menu .button { width: 100%; }
@keyframes menu-enter { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* Sections use the same container and left-aligned introductions. */
.section { margin-top: 120px; scroll-margin-top: 0; }
.section-heading { margin-bottom: 48px; }
.section-heading .eyebrow { margin-bottom: 24px; }
.section-heading h2 { max-width: 990px; text-wrap: pretty; }
.section-intro { margin-top: 24px; max-width: 850px; font-size: 20px; line-height: 30px; color: var(--color-text-secondary); }
.competencies { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 64px; row-gap: 40px; }
.competency { border-top: 1px solid var(--color-border); padding-top: 24px; }
.competency h3 { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -.02em; }
.competency p { margin-top: 16px; color: var(--color-text-secondary); max-width: 530px; }
.experience-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 64px; }
.additional-experience, .experience-grid + .experience-grid { margin-top: 56px; }
.more-experience { display: flex; justify-content: flex-start; width: fit-content; margin: 32px 0 0; padding-inline: 0; text-align: left; }
.experience-head { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
.experience-head h3 { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -.02em; }
.experience-head h3 a { display: inline-flex; align-items: baseline; gap: 12px; }
.experience-head h3 svg { width: 16px; height: 16px; }
.role { margin-top: 12px; font-size: 16px; line-height: 24px; }
.period { font-size: 12px; line-height: 20px; color: var(--color-text-secondary); }
.period strong { font-weight: 600; }
.experience-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.experience-tag { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 10px; border-radius: 5px; background: var(--color-surface); font-size: 12px; line-height: 20px; white-space: nowrap; }
@media (min-width: 768px) {
  @supports (grid-template-rows: subgrid) {
    .experience-grid { row-gap: 12px; }
    .experience-row { display: grid; grid-template-rows: subgrid; grid-row: span 4; align-items: start; }
    .experience-head { grid-template-rows: subgrid; grid-row: span 2; }
    .experience-row .role { margin-top: 0; }
    .experience-row .experience-tags { margin-top: 8px; }
  }
}

.project-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 32px; row-gap: 64px; }
.project-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.project-filters[hidden], #projects .project-card[hidden] { display: none; }
.project-filter { justify-content: center; gap: 8px; flex: 0 0 auto; min-height: 44px; border: 1px solid var(--color-border); background: var(--color-bg); text-align: center; transition: color .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease; }
.project-filter[aria-pressed="true"] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); }
.project-filter:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
@media (hover: hover) { .project-filter:hover { border-color: var(--color-border-strong); background: var(--color-surface); } .project-filter[aria-pressed="true"]:hover { background: var(--color-accent); border-color: var(--color-accent); opacity: .88; } }
.project-empty { max-width: 660px; color: var(--color-text-secondary); }
.project-link { display: block; height: 100%; }
.project-link:hover { color: var(--color-text); }
.project-media { position: relative; overflow: hidden; background: var(--color-surface-alt); aspect-ratio: 1.4; border-radius: 12px; transition: border-radius .3s ease; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.project-media img.image-contain { object-fit: contain; }
.project-copy { margin-top: 24px; }
.project-copy h3 { font-size: 32px; line-height: 38px; letter-spacing: -.03em; }
.project-description { margin-top: 12px; color: var(--color-text-secondary); }
@media (hover: hover) { .project-link:hover .project-media, .featured-media:hover { border-radius: 20px; } .project-link:hover .project-media img, .featured-media:hover img { transform: scale(1.025); } }
.additional-projects { margin-top: 64px; }
.more-projects { display: flex; width: fit-content; margin: 48px auto 0; min-width: 280px; }
.placeholder { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; height: 100%; padding: 80px 32px 32px; color: var(--color-text-secondary); border: 1px solid var(--color-border); border-radius: inherit; }
.placeholder-note, .placeholder-index { font-size: 12px; line-height: 18px; }
.placeholder-title { font: 500 32px/38px var(--font-heading); letter-spacing: -.03em; max-width: 380px; }

.contact-panel { padding: 48px; background: var(--color-text); color: var(--color-on-accent); border-radius: 12px; }
.contact-panel .eyebrow { margin-bottom: 24px; }
.contact-panel h2 { max-width: 1010px; text-wrap: pretty; }
.contact-intro { margin-top: 24px; max-width: 680px; font-size: 20px; line-height: 30px; color: rgba(255,255,255,.76); }
.contact-panel .actions { margin-top: 32px; }
.contact-panel .text-button { color: var(--color-on-accent); }
.contact-panel .text-button:hover { opacity: .8; }
.contact-panel .unavailable, .contact-panel .resume-note { color: rgba(255,255,255,.7); }
.contact-panel a:focus-visible, .contact-panel button:focus-visible { outline-color: var(--color-on-accent); }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; column-gap: 40px; row-gap: 24px; padding-block: 40px; }
.signature { font-size: 12px; line-height: 20px; color: var(--color-text-secondary); }
.socials { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 12px; line-height: 20px; }
.socials a { padding-block: 4px; }
.footer-legal { display: flex; flex-wrap: wrap; flex-basis: 100%; gap: 12px 24px; font-size: 12px; line-height: 20px; color: var(--color-text-secondary); }
.footer-legal a, .footer-legal button { padding: 4px 0; text-align: left; }
.footer-legal button:hover { color: var(--color-accent); }

/* Informational cookie notice; analytics are not connected. */
body { padding-bottom: var(--cookie-space, 0px); }
.cookie-notice { position: fixed; z-index: 40; inset: auto 24px max(24px,env(safe-area-inset-bottom)); margin-inline: auto; width: min(760px,calc(100% - 48px)); display: flex; align-items: center; gap: 32px; padding: 24px; border: 1px solid var(--color-border); border-radius: 16px; background: var(--color-bg); box-shadow: 0 8px 40px rgba(35,35,35,.12); max-height: 65svh; overflow-y: auto; overscroll-behavior: contain; }
.cookie-copy { min-width: 0; }
.cookie-copy h2 { font-size: 20px; line-height: 26px; letter-spacing: -.02em; }
.cookie-copy p { margin-top: 8px; font-size: 14px; line-height: 22px; color: var(--color-text-secondary); }
.cookie-policy { display: inline-block; margin-top: 12px; font-size: 12px; line-height: 20px; text-decoration: underline; text-underline-offset: 3px; }
.cookie-notice > .button { flex-shrink: 0; min-height: 48px; padding: 12px 24px; }

.legal-main { max-width: 860px; padding-block: 48px 80px; }
.legal-main .back-link { margin-bottom: 40px; }
.legal-heading h1 { font-size: clamp(32px,5vw,56px); line-height: 1.1; }
.legal-heading > p { margin-top: 20px; font-size: 20px; line-height: 30px; color: var(--color-text-secondary); }
.legal-heading .legal-date { font-size: 12px; line-height: 20px; margin-top: 16px; }
.legal-content section { margin-top: 48px; }
.legal-content h2 { font-size: 28px; line-height: 36px; letter-spacing: -.025em; }
.legal-content p { margin-top: 16px; line-height: 28px; overflow-wrap: anywhere; }
.legal-content a { text-decoration: underline; text-underline-offset: 3px; }
.not-found { min-height: calc(100svh - var(--nav-height) - 188px); padding-block: 56px 80px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.error-code { font: 500 clamp(100px,15vw,184px)/1 var(--font-heading); letter-spacing: -.06em; color: var(--color-accent); margin-bottom: 24px; }
.not-found h1 { font-size: clamp(32px,5vw,56px); line-height: 1.12; }
.error-description { max-width: 480px; margin-top: 20px; font-size: 18px; line-height: 28px; color: var(--color-text-secondary); }
.not-found .actions { margin-top: 32px; }
@media (max-width: 767px) {
  .cookie-notice { inset-inline: 16px; bottom: max(16px,env(safe-area-inset-bottom)); width: calc(100% - 32px); padding: 20px; flex-direction: column; align-items: stretch; gap: 16px; }
  .cookie-notice > .button { width: 100%; }
  .legal-main { padding-block: 32px 64px; }
  .legal-main .back-link { margin-bottom: 32px; }
  .legal-content section { margin-top: 32px; }
  .legal-content h2 { font-size: 24px; line-height: 30px; }
  .legal-content p { line-height: 26px; }
  .not-found { padding-block: 40px 64px; }
  .not-found .actions { width: 100%; }
}

.case-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 32px; font-size: 14px; }
.wordmark { font: 500 26px/32px var(--font-heading); letter-spacing: -.06em; }
.wordmark span { font-size: 12px; vertical-align: super; margin-left: 4px; }
.stub-main { min-height: calc(100svh - 196px - var(--nav-height)); padding-block: 64px 120px; }
.back-link { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; margin-bottom: 64px; }
.stub-main .eyebrow { margin-bottom: 24px; }
.stub-main h1 { max-width: 1000px; }
.stub-description { margin-top: 32px; color: var(--color-text-secondary); font-size: 20px; line-height: 30px; }
.stub-main > .button { margin-top: 40px; }
.toast { position: fixed; left: 24px; bottom: 24px; z-index: 30; max-width: min(440px,calc(100vw - 48px)); padding: 16px 20px; border-radius: 8px; border: 1px solid var(--color-border); background: var(--color-bg); box-shadow: 0 4px 20px rgba(35,35,35,.12); font-size: 14px; line-height: 22px; }

/* Native-size, motion-free cursors only on a precise pointing device. */
@media (pointer: fine) and (hover: hover) {
  html, body { cursor: url('/assets/cursor-arrow.svg') 2 2, auto; }
  a, button, summary, [role='button'] { cursor: url('/assets/cursor-hand.svg') 8 2, pointer; }
  .featured { cursor: url('/assets/cursor-arrow.svg') 2 2, auto; }
}

@media (min-width: 1200px) and (max-width: 1350px) {
  :root { --hero-column-gap: 40px; }
  .hero .button { padding-inline: 16px; gap: 8px; font-size: 15px; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  :root { --hero-column-gap: 32px; }
  .featured-copy h2 { font-size: 26px; line-height: 32px; }
}
@media (max-width: 1199px) {
  :root { --page-gutter: 24px; }
  .section { margin-top: 80px; }
  .competencies, .experience-grid { column-gap: 40px; }
  .contact-panel { padding: 40px; }
}
@media (max-width: 1023px) {
  .hero { grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto; row-gap: 32px; height: auto; min-height: 0; }
  .hero-profile { min-height: calc(100svh - var(--nav-height) - 32px); }
  .hero-main { padding-top: 40px; }
  .hero h1 { max-width: 800px; }
  .hero-intro { max-width: 680px; font-size: 18px; line-height: 28px; }
  .featured { width: 100%; }
  .slides { flex: auto; grid-template-rows: auto; }
  .slide { grid-template-rows: auto auto; align-content: start; }
  .featured-media { height: auto; aspect-ratio: 1.4; }
  .featured-copy { padding-inline: 12px; }
  .featured-description { max-width: 650px; }
}
@media (max-width: 767px) {
  :root { --page-gutter: 20px; --nav-height: 64px; }
  .nav-inner { gap: 16px; }
  .nav-brand { font-size: 16px; line-height: 24px; }
  .menu-toggle { display: inline-flex; }
  h1 { font-size: 40px; line-height: 44px; letter-spacing: -.04em; }
  h2 { font-size: 32px; line-height: 38px; letter-spacing: -.035em; }
  h3 { font-size: 26px; line-height: 32px; }
  .hero { padding-block: 20px 0; row-gap: 32px; }
  .hero-profile { min-height: 0; padding: 0; }
  .hero-top { font-size: 12px; line-height: 18px; gap: 12px; }
  .hero-main { padding-top: 48px; }
  .portrait { width: min(65vw,280px); height: min(65vw,280px); margin: 0 auto 28px; }
  .hero h1 { font-size: clamp(24px,9.7cqw,40px); line-height: 1.12; }
  .hero-title-line { display: block; white-space: normal; }
  .hero-intro { font-size: 16px; line-height: 24px; margin-top: 24px; }
  .hero .actions { display: flex; margin-top: 24px; }
  .actions { flex-direction: column; gap: 12px; }
  .actions > .button, .resume-control { width: 100%; }
  .resume-control .button { width: 100%; }
  .nav-actions { display: none; }
  .hero .button { padding-inline: 24px; font-size: 16px; }
  .slides { padding: 8px; }
  .featured-media { aspect-ratio: 1.3; border-radius: 8px; }
  .featured-copy { padding: 20px 8px 16px; }
  .featured-copy h2 { font-size: 26px; line-height: 32px; }
  .featured-description { margin-top: 12px; font-size: 14px; line-height: 22px; }
  .media-overlay { inset: 12px 12px auto; gap: 8px; }
  .project-tag { padding-inline: 7px; font-size: 11px; line-height: 18px; min-height: 26px; }
  .case-arrow { width: 36px; height: 36px; flex-basis: 36px; }
  .section { margin-top: 64px; scroll-margin-top: 0; }
  .section-heading { margin-bottom: 32px; }
  .section-heading .eyebrow { margin-bottom: 20px; }
  .section-intro { margin-top: 20px; font-size: 18px; line-height: 28px; }
  .competencies { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .competency { padding-top: 20px; }
  .competency h3 { font-size: 20px; line-height: 26px; }
  .competency p { margin-top: 12px; }
  .experience-grid { grid-template-columns: minmax(0,1fr); row-gap: 40px; }
  .additional-experience, .experience-grid + .experience-grid { margin-top: 40px; }
  .more-experience { width: 100%; }
  .experience-head h3 { font-size: 24px; line-height: 30px; }
  .role { margin-top: 8px; }
  .experience-tags { margin-top: 16px; }
  .project-grid { grid-template-columns: minmax(0,1fr); row-gap: 40px; }
  .project-media { aspect-ratio: 1.3; }
  .project-copy { margin-top: 20px; }
  .project-copy h3 { font-size: 26px; line-height: 32px; }
  .project-description { margin-top: 12px; }
  .additional-projects { margin-top: 40px; }
  .more-projects { width: 100%; min-width: 0; margin-top: 32px; }
  .placeholder { padding: 72px 24px 24px; }
  .placeholder-title { font-size: 28px; line-height: 34px; }
  .contact-panel { padding: 32px 24px; border-radius: 12px; }
  .contact-panel h2 { font-size: 32px; line-height: 38px; }
  .contact-panel .eyebrow { margin-bottom: 20px; }
  .contact-intro { margin-top: 20px; font-size: 18px; line-height: 28px; }
  .contact-panel .actions { margin-top: 24px; }
  .contact-panel .button { padding-inline: 16px; gap: 8px; }
  .footer { flex-direction: column; padding-block: 32px; gap: 20px; }
  .socials { column-gap: 20px; }
  .case-header { padding-block: 24px; gap: 16px; font-size: 12px; }
  .stub-main { padding-block: 40px 80px; min-height: calc(100svh - 260px - var(--nav-height)); }
  .back-link { margin-bottom: 48px; }
  .stub-description { font-size: 18px; line-height: 28px; margin-top: 24px; }
  .stub-main > .button { margin-top: 32px; }
}
@media (max-width: 359px) {
  .hero-top { font-size: 11px; gap: 8px; }
  .mobile-menu { padding-inline: 16px; }
  .mobile-menu .button { padding-inline: 12px; font-size: 14px; }
  .contact-panel { padding-inline: 20px; }
  .contact-panel .button { font-size: 14px; }
  .contact-panel h2 { font-size: 28px; line-height: 34px; }
}
@media (min-width: 1024px) and (max-height: 760px) {
  .hero { padding-block: 12px; }
  .hero-main { padding-top: 16px; }
  .portrait { width: 112px; height: 112px; margin-bottom: 20px; }
  .hero-intro { margin-top: 16px; }
  .hero .actions { margin-top: 20px; }
  .featured-copy { padding-top: 16px; }
  .featured-copy h2 { font-size: 26px; line-height: 32px; }
  .featured-description { margin-top: 8px; line-height: 20px; }
}
@media (min-width: 1024px) and (max-height: 620px) {
  .hero-profile { padding-block: 0; }
  .hero-main { padding-top: 12px; }
  .portrait { width: 96px; height: 96px; margin-bottom: 12px; }
  .hero-intro { margin-top: 12px; font-size: 14px; line-height: 20px; }
  .hero .actions { margin-top: 16px; }
  .hero .button { min-height: 48px; padding-block: 12px; }
  .hero .resume-control { gap: 4px; }
  .featured-copy h2 { font-size: 24px; line-height: 28px; }
  .featured-copy { padding-top: 12px; }
  .featured-description { font-size: 13px; line-height: 18px; }
  .slider-footer { padding-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .project-link:hover .project-media img, .featured-media:hover img, .button:active, .project-link:hover .case-arrow svg, .featured-media:hover .case-arrow svg { transform: none; }
}


/* Common heading and navigation behaviour. */
:is(h1, h2, h3, h4, figcaption, .case-statement-title, .case-metric-value) {
  -webkit-hyphens: none; hyphens: none; word-break: normal; overflow-wrap: normal; white-space: normal;
}
.word-unit { white-space: nowrap; }
:is(.featured-media, .project-media) > img.govops-cover { object-fit: cover; object-position: 15% 70%; }
@media (min-width: 768px) and (max-width: 1023px) {
  .nav-inner { gap: 12px; }
  .nav-actions .button { padding-inline: 8px; }
}
@media (max-width: 430px) {
  .hero h1 { font-size: clamp(24px, 8.4cqw, 36px); }
  .project-copy h3, .featured-copy h2 { font-size: clamp(22px, 6.4vw, 26px); line-height: 1.24; }
  .contact-panel h2 { font-size: clamp(25px, 7.2vw, 32px); line-height: 1.2; }
}

/* Crop the surround, keeping the Studio laptop screen in frame. */
:is(.featured-media, .project-media) > img.studio-cover { object-fit: cover; object-position: center 28%; }
@media (max-width: 390px) {
  .legal-heading h1 { font-size: clamp(24px, 7.6vw, 32px); }
}

/* One compact notice component; public choices keep the existing consent controller. */
.cookie-notice { inset: auto 24px max(24px,env(safe-area-inset-bottom)) auto; width: 400px; margin: 0; display: block; padding: 24px; border-radius: 18px; max-height: calc(100svh - 48px); overflow-y: auto; }
.cookie-copy h2 { padding-right: 28px; }
.cookie-copy p { margin-top: 16px; }
.cookie-policy { margin-top: 20px; font-size: 14px; }
.cookie-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--color-text-secondary); font-size: 24px; }
.cookie-close:focus-visible { outline-offset: -4px; }
.cookie-actions { display: grid; align-items: stretch; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 24px; }
.cookie-actions .button { width: 100%; min-height: 48px; padding: 12px 8px; font-size: 14px; line-height: 22px; white-space: normal; }
.cookie-notice > .button { margin-top: 24px; width: 100%; }
@media(max-width:767px) {
 .cookie-notice { inset-inline: var(--page-gutter); bottom: max(16px,env(safe-area-inset-bottom)); width: auto; max-width: none; max-height: calc(100svh - 32px); padding: 24px; }
}
@media(max-width:359px) { .cookie-actions { grid-template-columns: minmax(0,1fr); } }

/* Desktop profile: availability first, the main content anchored at the bottom. */
.hero { height: auto; min-height: min(760px,calc(100svh - var(--nav-height))); }
.hero-main { margin-top: auto; padding-top: 24px; }
.hero-top { margin-top: 0; margin-bottom: 24px; padding-top: 0; }
.featured-image { position: relative; min-height: 0; }
.featured-image > .featured-media { height: 100%; }
.featured-step { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-bg); color: var(--color-text); box-shadow: 0 2px 10px rgba(0,0,0,.12); transition: background .2s,color .2s; }
.featured-step:hover { background: var(--color-accent); color: var(--color-on-accent); }
.featured-step:focus-visible { outline-offset: 3px; border-radius: 50%; }
.featured-previous { left: 12px; }
.featured-next { right: 12px; }
.experience-resume { margin-top: 40px; }
.other-projects .project-description { display: block; overflow: visible; -webkit-line-clamp: unset; }
.catalog-pagination { justify-content: center; margin-top: 8px; }
@media(max-width:1023px) {
 .hero { min-height: 0; }
 .hero-profile { min-height: 0; }
 .hero-top { margin-top: 0; padding-top: 0; }
 .featured-image { aspect-ratio: 1.4; }
}
@media(max-width:767px) {
 .hero-top { flex-wrap: wrap; }
 .featured-image { aspect-ratio: 1.3; }
 #projects .project-grid { gap: 0; }
 .experience-resume { width: 100%; margin-top: 32px; }
}

/* All first-screen slides share image, title and description rows. Inactive slides
   contribute their intrinsic text size, so switching never shifts the arrows. */
@supports (grid-template-rows: subgrid) {
 .featured .slides { grid-template-rows: minmax(0,1fr) auto auto; }
 .featured .slide { grid-area: 1 / 1 / 4 / 2; grid-template-rows: subgrid; }
 .featured .featured-image { grid-row: 1; }
 .featured .featured-copy { grid-row: 2 / 4; display: grid; grid-template-rows: subgrid; }
}
.featured .featured-description { display: block; overflow: visible; -webkit-line-clamp: unset; }
@media(max-width:767px) {
 .hero-top { margin-top: 0; margin-bottom: 24px; padding-top: 0; }
 .hero-main { margin-top: 0; padding-top: 0; }
}
@supports not (grid-template-rows: subgrid) {
 .featured .slide { grid-template-rows: auto minmax(0,1fr); }
 .featured .featured-image { aspect-ratio: 1.4; }
 @media(max-width:767px) { .featured .featured-image { aspect-ratio: 1.3; } }
}

/* Mobile Hero keeps swipe and dots; display:none removes arrow controls from Tab. */
@media(max-width:767px) { .featured .featured-step { display: none; } }
/* Contacts composition: intro/actions, followed by two equal data columns. */
.contacts-main { padding-block:72px 88px; }
.contacts-heading { max-width:1040px; }
.contacts-heading h1 { font-size:clamp(60px,7.2vw,104px);line-height:1.08;text-wrap:initial; }
.contacts-heading > p { margin-top:28px;font-size:22px;line-height:1.5;max-width:680px;color:var(--color-text-secondary); }
.contacts-actions { margin-top:36px;gap:12px;flex-wrap:wrap; }
.contacts-actions .button { width:fit-content;min-height:56px; }
.contacts-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:64px;margin-top:80px; }
.contact-detail { position:relative; }
.contact-detail + .contact-detail { margin-top:40px; }
.contact-label { font-family:var(--font-body);font-size:14px;font-weight:400;line-height:22px;color:var(--color-text-secondary);margin:0 0 4px; }
.contact-value,.contact-email > a { font-family:var(--font-body);font-size:24px;font-weight:500;line-height:1.4;overflow-wrap:anywhere; }
.contact-email { display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-height:34px; }
.copy-email { display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;margin-block:-5px;border-radius:8px; }
.copy-email:hover { color:var(--color-accent);background:var(--color-surface); }
.copy-status { position:absolute;top:100%;margin-top:4px;font-size:14px;color:var(--color-text-secondary); }
.contacts-details .profile-links { margin-top:8px; }
.contacts-details .profile-badge { width:44px;height:44px;min-width:44px;min-height:44px;border-radius:10px;background:var(--color-text);color:white; }
.contacts-details .profile-badge > svg { width:30px;height:30px; }
.contacts-details .profile-badge > img { width:44px;height:44px;object-fit:contain;border-radius:10px; }
.contacts-details .profile-badge:hover { background:var(--color-accent);color:white; }
.contacts-details .profile-badge:focus-visible { outline:2px solid var(--color-accent);outline-offset:4px;color:white; }
.profile-links { display:flex;flex-wrap:wrap;gap:8px 12px; }
.profile-link { position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;color:var(--color-text); }
.profile-link:hover, .profile-link:focus-visible { color:var(--color-accent); }
.profile-tooltip { position:absolute;bottom:100%;left:50%;transform:translateX(-50%);padding:4px 8px;border-radius:4px;background:var(--color-text);color:white;font-size:12px;white-space:nowrap;opacity:0;pointer-events:none; }
.profile-link:hover .profile-tooltip,.profile-link:focus-visible .profile-tooltip { opacity:1; }
.footer { display:grid;grid-template-columns:1fr 1fr 1fr;align-items:start;gap:32px;border-top:1px solid var(--color-border);padding-block:36px; }
.footer-identity p { margin-top:8px;font-size:14px;color:var(--color-text-secondary); }
.footer-navigation,.footer-contacts { display:flex;flex-direction:column;align-items:flex-start;gap:4px; }
.footer-navigation > a,.footer-contacts > a { min-height:36px;display:inline-flex;align-items:center;font-size:14px;overflow-wrap:anywhere; }
.footer-contacts .profile-links { margin-top:8px; }
.footer-legal { grid-column:1/-1;align-items:center;gap:12px 24px; }
.copyright { margin-left:auto; }
@media(max-width:767px) {
 .contacts-main { padding-block:40px 56px; }
 .contacts-heading h1 { font-size:clamp(32px,10vw,48px); }
 .contacts-heading > p { margin-top:20px;font-size:18px;line-height:28px; }
 .contacts-actions { margin-top:28px; }
 .contacts-grid { grid-template-columns:minmax(0,1fr);gap:32px;margin-top:48px; }
 .contacts-actions .button { padding-inline:20px;min-height:56px; }
 .contact-value,.contact-email > a { font-size:22px; }
 .contact-detail + .contact-detail { margin-top:32px; }
 .footer { grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px; }
 .footer-identity { grid-column:1/-1; }
 .footer-navigation > a,.footer-contacts > a { min-height:44px; }
 .footer-contacts > a { word-break:normal;overflow-wrap:anywhere;display:block;padding-block:10px;max-width:100%; }
 .footer-legal { flex-direction:column;align-items:flex-start;gap:8px; }
 .footer-legal > a,.footer-legal > button { min-height:44px;display:flex;align-items:center; }
 .copyright { margin-left:0;margin-top:8px; }
}
