/* Scoped header experiment. Main page layout is deliberately untouched. */
.portfolio-header {
  --ph-link-color: #0c7fa6;
  --ph-padding-block: var(--bar-padding-block, 1px);
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: grid; grid-template-columns: 8% 92%;
  font-family: Aeroport, sans-serif; font-synthesis: none;
}
.portfolio-header * { box-sizing: border-box; }
.portfolio-header .ph-clock { display:flex; align-items:center; justify-content:center; gap:4px; background:transparent; font-size:var(--font-body,.8125rem); white-space:nowrap; font-variant-numeric:tabular-nums; }
.portfolio-header .ph-clock span {
 color:#b4b9bd;
 /* A backdrop-aligned text fill gives exact white on blue and grey on white;
    ordinary blend modes cannot preserve both approved colors. */
 background:linear-gradient(to bottom,
  #b4b9bd 0 var(--ph-clock-white-start,100%),
  #fff var(--ph-clock-white-start,100%) var(--ph-clock-white-end,100%),
  #b4b9bd var(--ph-clock-white-end,100%) 100%);
 background-clip:text; -webkit-background-clip:text; -webkit-text-fill-color:transparent;
}
.portfolio-header .ph-bar { min-height:0; background:#69b4e7; display:grid; grid-template-columns:38.461538% 1fr auto; align-items:stretch; padding:var(--ph-padding-block) var(--bar-padding-inline,8px); }
.portfolio-header a, .portfolio-header button { color:var(--ph-link-color); text-decoration:none; border:0; background:none; font:inherit; cursor:pointer; white-space:nowrap; padding:0; }
.portfolio-header .ph-intro { color:#000; line-height:var(--bar-line-height,23px); display:flex; align-items:center; font-weight:500; font-size:var(--font-heading,1.25rem); }
.portfolio-header .ph-nav, .portfolio-header .ph-tools, .portfolio-header .ph-language { display:flex; align-items:stretch; }
.portfolio-header .ph-nav { gap:clamp(16px,1.923vw,50px); color:var(--ph-link-color); }
.portfolio-header .ph-tools { gap:clamp(14px,1.73vw,45px); color:#000; }
.portfolio-header .ph-tools > [data-contact] { color:var(--ph-link-color); }
.portfolio-header .ph-language { gap:6px; }
.portfolio-header .ph-nav a, .portfolio-header .ph-tools > [data-contact], .portfolio-header .ph-language button { position:relative; display:flex; align-items:center; justify-content:center; min-height:0; font-weight:500; font-size:var(--font-body,.8125rem); }
.portfolio-header .ph-nav a { text-transform:uppercase; }
.portfolio-header .ph-language button { text-transform:none; color:var(--ph-link-color); }
/* One interaction palette for every header link and button. */
.portfolio-header .ph-bar :is(a, button):is(:hover, :focus-visible, :active, [aria-current], [aria-pressed='true']) { color:#000; }
/* Aeroport: ascender .755em, descender .245em, cap height .664em.
   Shift the label .077em so the capitals, rather than the line box, are centered. */
.portfolio-header .ph-label { position:relative; display:block; line-height:var(--nav-line-height,15px); transform:translateY(.077em); }
.portfolio-header .ph-clock > span, .portfolio-header .ph-clock > time { line-height:1; transform:translateY(.077em); }
.portfolio-header :focus-visible { outline:2px solid #000; outline-offset:-3px; }
.portfolio-header .ph-star { width:clamp(32px,1.73vw,45px); margin-left:-.615384vw; color:var(--ph-link-color); }
.portfolio-header .ph-star svg { display:block; overflow:visible; width:auto; height:calc(var(--bar-line-height,23px) * .56 + var(--ph-padding-block) * 1.12 - .153846vw); max-height:none; flex-shrink:0; fill:currentColor; }
.portfolio-header [aria-disabled=true] { cursor:help; }
.ph-message { position:fixed; z-index:101; right:16px; top:calc(var(--ph-height,45px) + 32px); max-width:360px; padding:12px 16px; background:white; color:black; border:1px solid #000; font:var(--font-body,.8125rem)/1.4 Aeroport,sans-serif; }
.ph-message:empty { display:none; }
body.ph-enabled .case-title { position:sticky; top:var(--ph-height,45px); z-index:50; padding-block:var(--bar-padding-block,1px); }
body.ph-enabled .case-title h2 { font-size:var(--font-case-heading,1.125rem); line-height:var(--bar-line-height,23px); font-weight:500; overflow-wrap:anywhere; transform:translateY(.077em); }
/* Fit below the pinned header; 1px scroll allowance avoids fractional white seams. */
body.ph-enabled #fortune { min-height:calc(100svh - var(--ph-height,0px) + 1px); }
body.ph-enabled .project { scroll-margin-top:calc(var(--ph-height,45px) + 24px); }
body.ph-enabled [data-ph-section] { scroll-margin-top:calc(var(--ph-height,45px) + 24px); }
@media(max-width:1350px) {
 .portfolio-header .ph-bar { grid-template-columns:36% 1fr auto; }
 .portfolio-header .ph-nav { gap:12px; }
 .portfolio-header .ph-tools { gap:12px; }
}
/* Mobile composition is pending a separate design decision. Keep this desktop trial usable. */
@media(max-width:1000px) {
 .portfolio-header { grid-template-columns:0 100%; }
 .portfolio-header .ph-clock { visibility:hidden; }
 .portfolio-header .ph-bar { grid-template-columns:1fr auto; row-gap:0; }
 .portfolio-header .ph-intro { grid-column:1; }
 .portfolio-header .ph-tools { grid-column:2; grid-row:1; }
 .portfolio-header .ph-nav { grid-column:1 / -1; grid-row:2; }

}

.portfolio-header .ph-intro .ph-label { line-height:var(--bar-line-height,23px); }
