/* High-impact audit corrections: readable work, direct contact, resilient navigation. */
html { scroll-padding-top: 100px; }
.language-options { display: none; }
body { line-height: 1.6; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 12px 18px; background: #fff; color: #102039; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
:where(a, button, select, [tabindex]):focus-visible { outline: 3px solid #174ea6; outline-offset: 4px; }
.section-heading h2, .contact-section h2 { font-size: clamp(30px, 3.7vw, 48px); max-width: 24ch; text-wrap: balance; }
.section-heading > p:last-child, .focus-grid p, .work-card p, .timeline p, .credential-card p { font-size: 16px; line-height: 1.65; color: #465870; }
.section-heading > p:last-child { max-width: 65ch; }
.hero { min-height: 620px; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); padding-block: 100px; background-position: center, 59% 20%; }
.hero-copy { max-width: 720px; }
.hero h1 { font-size: clamp(44px, 5.5vw, 78px); max-width: 15ch; line-height: 1.05; letter-spacing: -.045em; text-wrap: balance; }
.hero-lead { max-width: 48ch; font-size: 18px; line-height: 1.65; }
.hero-meta { font-size: 13px; }
.hero-actions .button { min-height: 48px; font-size: 16px; }
.proof-strip span { font-size: 14px; }
.section-block { padding-block: clamp(40px, 5vw, 72px); }
.focus-grid article { min-height: 0; padding: 24px 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.focus-grid { gap: 32px; }
.focus-grid h3 { margin: 0 0 14px; font-size: 24px; line-height: 1.2; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
.project-grid .work-card { display: flex; flex-direction: column; padding: 0; min-width: 0; background: transparent; border: 0; box-shadow: none; transform: none; }
.project-grid .work-content { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.project-grid .project-art { width: 100%; margin: 0 0 20px; background: #e9eef3; border-radius: 0; }
.project-grid .project-art img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.project-grid .project-art--alas img { object-fit: cover; padding: 0; }
.project-grid .project-art > span, .project-grid .project-art > strong { display: none; }
.project-grid .work-card h3 { font-size: clamp(23px, 2.2vw, 30px); line-height: 1.2; margin: 6px 0 14px; text-wrap: balance; }
.project-grid .work-card .tag { font-size: 13px !important; line-height: 1.5; letter-spacing: 0; color: #174ea6 !important; }
.project-grid .chips { margin-top: 20px; margin-bottom: 12px; }
.chips span { font-size: 13px; padding: 5px 8px; }
.project-grid .text-link { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; margin-top: auto; font-size: 16px; color: #174ea6; text-decoration: underline; text-underline-offset: 5px; }
.project-grid .text-link:hover { color: #102039; }
.timeline h3 { font-size: 23px; }
.timeline span { font-size: 14px; }
.contact-section p { color: #465870; }
.contact-card { padding: 0; background: transparent; border: 0; box-shadow: none; }
.contact-card .button { min-height: 48px; font-size: 16px; }
.contact-card .contact-note { margin: 0; font-size: 14px; }
.contact-card .contact-linkedin { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; color: #174ea6; text-decoration: underline; text-underline-offset: 4px; }
.site-footer { font-size: 13px; }
.case-project-summary { margin-bottom: 40px; padding: 28px; background: #edf2f7; }
.case-content .case-project-summary h2 { font-size: clamp(28px, 3vw, 38px); }
.case-content .case-project-summary p { font-size: 17px; color: #354960; }
.case-summary-role strong, .case-summary-role span { display: block; }
.case-summary-role strong { margin-bottom: 5px; color: #102039; }
.case-content p, .case-content .module p { font-size: 16px !important; line-height: 1.65 !important; color: #465870; }
.case-fact span, .architecture-row span { font-size: 15px; }
.case-toc a { min-height: 44px; font-size: 15px; }
.case-content h2, .case-content h3 { scroll-margin-top: 110px; text-wrap: balance; }
.module[id] { scroll-margin-top: 110px; }
.case-button { min-height: 44px; align-items: center; font-size: 16px; }
.case-hero h1 { font-size: clamp(38px, 5vw, 68px); letter-spacing: -.04em; line-height: 1.07; text-wrap: balance; }
.case-side span { font-size: 16px; }
@media (max-width: 1000px) {
  .hero { min-height: 0; grid-template-columns: 1fr; padding-block: 64px; }
  .hero-copy { max-width: 640px; }
}
@media (max-width: 800px) {
  html { scroll-padding-top: 84px; }
  .hero { padding: 44px 24px 48px; }
  .hero h1 { font-size: clamp(40px, 7.7vw, 56px); }
  .hero-lead { font-size: 17px; }
  .hero-meta { margin-top: 24px; }
  .project-grid { grid-template-columns: 1fr; gap: 40px; }
  .project-grid .project-art { aspect-ratio: 16 / 9; min-height: 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; flex: none; }
  .site-header {
    min-height: 64px;
    padding: 9px 20px;
    background: rgba(10, 27, 47, .84);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 0;
  }
  .site-header .brand { color: #fff; }
  .site-header .brand b { color: #a8c7ff; }
  .site-header .brand-mark { background: #f3f7ff; color: #0a1b2f; }
  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: auto;
    right: 16px;
    width: min(320px, calc(100vw - 32px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
    padding: 12px;
    max-height: min(320px, calc(60dvh - 72px));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #10243b;
    color: #eaf1fc;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(3, 12, 25, .14);
  }
  .main-nav.open { display: grid; }
  .main-nav > a {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 44px;
    padding: 8px;
    font-size: 14px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    border-radius: 5px;
  }
  .main-nav > a:hover,
  .main-nav > a:focus-visible { background: #213c5d; color: #fff; }
  .main-nav > .nav-button:not(.nav-resume) {
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 44px;
    margin-top: 2px;
    background: #dce9ff;
    color: #10243b;
    border: 0;
    font-weight: 700;
  }
  .main-nav > .nav-resume {
    grid-column: 1 / -1;
    grid-row: 4;
    width: calc(100% - 148px);
    border: 0;
    color: #cfdef3;
    font-size: 12px;
  }
  .main-nav > .language { display: none; }
  .main-nav > .language-options {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 4;
    justify-self: end;
    gap: 4px;
    width: 140px;
    min-height: 44px;
  }
  .language-options > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 5px;
    color: #f4f7ff;
    font-size: 13px;
    font-weight: 600;
    touch-action: manipulation;
  }
  .language-options > a[aria-current="true"] { background: #dce9ff; color: #10243b; }
  .language-options > a:hover { background: #294668; color: #fff; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f4f7ff;
    font-size: 13px;
  }
  .menu-toggle::after {
    content: '';
    display: block;
    width: 14px;
    height: 8px;
    border-block: 1.5px solid currentColor;
  }
  .menu-toggle[aria-expanded="true"]::after {
    content: '×';
    height: auto;
    border: 0;
    font-size: 22px;
    line-height: 1;
  }
  .site-header :focus-visible { outline-color: #a8c7ff; }
  .case-project-summary { padding: 22px 18px; }
  .case-header { flex-wrap: wrap; gap: 12px; }
  .case-nav { flex-wrap: wrap; gap: 12px; }
  .case-hero-inner { min-width: 0; }
  .case-language-select { max-width: 110px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

/* Real screenshots keep their complete frame; captions distinguish public sites and access screens. */
.project-grid .project-art img { padding: 0 !important; object-fit: contain !important; }
.project-grid .project-art { background: #e9eef3 !important; }
.project-evidence { margin: 24px 0 36px; }
.evidence-fullsize { display: block; background: #e9eef3; }
.project-evidence img { display: block; width: 100%; height: auto; }
.project-evidence figcaption { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; color: #465870; font-size: 15px; line-height: 1.6; }
.project-evidence figcaption a { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; color: #174ea6; text-decoration: underline; text-underline-offset: 4px; }
.case-evidence h2 { font-size: clamp(28px, 3vw, 38px); }
