/* Keep the shared chrome independent of the legacy content's Bootstrap/Montserrat styles. */
.im-home.im-site-chrome{min-height:0;overflow:visible;font-family:'Be Vietnam Pro',sans-serif;font-size:16px;line-height:normal;color:#12163a}
.im-site-chrome .im-home-header__s1{display:block}
.im-site-chrome .im-home-btn{line-height:normal}
body.im-site-profile-page{margin:0;background:#fff}
.im-site-profile{width:100%;min-width:0}
.im-site-profile__viewer{display:block;width:100%;height:max(640px,calc(100dvh - 140px));border:0;background:#ececec}
.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:600px){.im-site-profile__viewer{height:max(560px,calc(100dvh - 124px))}}

/* Headings: avoid a single orphan word on the last line (all pages). */
h1,h2{text-wrap:balance}

/* ==========================================================================
   Design tokens (UI/UX audit 16/11/2026). One source for type, spacing and
   focus across every template; page CSS references these instead of raw px.
   ========================================================================== */
:root{
 --fs-h1:clamp(36px,24px + 3vw,64px);          /* 36 -> 64px: hero H1 on home, about, landing, recruitment, contact, blog */
 --fs-h1-detail:clamp(32px,24px + 2vw,52px);   /* 32 -> 52px: article, job and case-study titles (longer) */
 --fs-h2:clamp(28px,19px + 1.8vw,44px);     /* 28 -> 44px: section titles (.im-home-h2) */
 --section-y:clamp(64px,32px + 6vw,120px);         /* 64 -> 120px: section padding without breakpoint jumps */
 --im-focus-ring:0 0 0 3px #fff,0 0 0 5px #141a7a;
}

/* Visible keyboard focus on every interactive element (WCAG 2.4.7). */
.im-home :is(a,button,summary,[tabindex]):focus-visible,
.im-site-chrome :is(a,button,summary,[tabindex]):focus-visible{outline:none;box-shadow:var(--im-focus-ring);border-radius:8px}
.im-home .im-home-btn:focus-visible,.im-site-chrome .im-home-btn:focus-visible{border-radius:999px}
.im-home :is(h1,h2){text-wrap:balance}

/* Touch screens: comfortable hit areas for small nav, footer and chip links. */
@media (pointer:coarse){
 :is(.im-home,.im-site-chrome) :is(.im-home-footer a,.im-home-nav a){min-height:40px;display:inline-flex;align-items:center}
}

/* Mobile: the 12 project cards scroll horizontally instead of stacking six screens tall. */
@media (max-width:767px){
 .im-home .im-home-projects__s10{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:84%;gap:14px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;margin-inline:-16px;padding:4px 16px 12px;scroll-padding-inline:16px}
 .im-home .im-home-projects__s10::-webkit-scrollbar{display:none}
 .im-home .im-home-projects__s10>*{scroll-snap-align:start}
}
