@font-face {
  font-family: 'IBM Plex Mono'; src: url('./fonts/IBMPlexMono-Medium.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}
:root {
  color-scheme: light;
  --royal: #012a8a; --navy: #09182e; --secondary: #425879; --line: #c7d5e4;
  --gutter: max(4.8vw,env(safe-area-inset-right),env(safe-area-inset-left));
  --mono: 'IBM Plex Mono',ui-monospace,monospace;
  font-family: Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  color: var(--royal); background: #f6f8fb;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: linear-gradient(180deg,#fff,#f5f7fa 850px); }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #2e6cca; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip { position: fixed; z-index: 2; top: 8px; left: 8px; padding: .75em 1em; background: white; transform: translateY(-180%); }
.skip:focus { transform: none; }
.mast {
  display: flex; align-items: center; justify-content: space-between; gap: 15px;
  padding: 12px max(var(--gutter),calc((100% - 1490px) / 2)); color: #f0f6ff;
  background: linear-gradient(105deg,#152f53,var(--navy) 80%);
}
.mast img { display: block; width: clamp(115px,10vw,155px); height: auto; }
.work-audio { margin-inline-start:auto; min-width:44px; min-height:44px; display:grid; place-items:center; border:0; background:none; color:inherit; cursor:pointer; }
.work-audio[hidden], .work-audio[aria-pressed="true"] .sound-off, .work-audio[aria-pressed="false"] .sound-on { display:none; }
.work-audio svg { width:19px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.back, footer a { display: inline-flex; min-height: 44px; gap: .7em; align-items: center; text-decoration: none; font-size: .9rem; }
.back::before, footer a::before { content: '←'; font-size: 1.18em; }
.back:is(:hover,:focus-visible),footer a:is(:hover,:focus-visible) { text-decoration: underline; }
.page { width: min(100%,calc(1490px + 2 * var(--gutter))); margin: 0 auto; padding: 0 var(--gutter); }
.intro, .section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.intro { padding: clamp(34px,6vw,92px) 0 clamp(23px,2.8vw,44px); }
h1,h2,h3,p,figure { margin: 0; }
h1,h2,h3 { font-weight: 480; letter-spacing: -.055em; }
h1 { font-size: clamp(3.35rem,7.55vw,7.8rem); line-height: .99; letter-spacing: -.067em; }
h1:focus:not(:focus-visible) { outline: none; }
.project-count, .view-count { font: 500 clamp(.68rem,.84vw,.84rem)/1.4 var(--mono); white-space: nowrap; }
.project-count { color: var(--secondary); }
.filters { display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 7px 0; border-block: 1px solid var(--line); }
.filters a {
  display: inline-flex; align-items: center; min-height: 44px; border: 1px solid transparent;
  border-radius: 100px; padding: .42em 1.15em; text-decoration: none; color: var(--secondary);
  font-size: clamp(.86rem,.98vw,1.02rem); font-weight: 500;
}
.filters a:is(:hover,:focus-visible) { color: var(--royal); border-color: var(--line); background: #eaf0f7; }
.filters a[aria-current=page] { color: white; background: var(--royal); border-color: var(--royal); }
.sector { scroll-margin-top: 20px; margin: clamp(35px,5.2vw,82px) 0 clamp(58px,7.8vw,116px); }
.section-header { border-top: 1px solid var(--line); padding-top: clamp(17px,2vw,30px); }
.sector:first-of-type .section-header { padding-top: 0; border: 0; }
.section-header h2 { font-size: clamp(2.25rem,4.5vw,4.9rem); line-height: 1.025; }
.sector-description { margin-top: .75em; max-width: 68ch; font-size: clamp(.96rem,1.14vw,1.18rem); line-height: 1.53; color: var(--secondary); text-wrap: pretty; }
.filtered .sector { margin-top: clamp(20px,2.6vw,40px); }
.filtered .section-header { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.project-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: clamp(28px,3.8vw,60px) clamp(16px,2.15vw,34px); margin-top: clamp(20px,2.3vw,35px); }
.project { grid-column: span 6; min-width: 0; scroll-margin-top: 20px; }
.project-grid:has(> .project:nth-child(2)) > .project:first-child { grid-column: span 7; }
.project:nth-child(2) { grid-column: span 5; }
.project:nth-child(2) .photograph img { aspect-ratio: 1.29; }
.project:only-child { grid-column: span 9; }
.photograph {
  position: relative; overflow: hidden; isolation: isolate; border-radius: clamp(14px,1.5vw,24px);
  background: #dce5ef; color: #f6f9ff; box-shadow: 0 1px 0 #09234c0d;
}
.photograph img { display: block; width: 100%; height: auto; aspect-ratio: 1.8; object-fit: cover; }
.view-count {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: .5em;
  padding: .48em .84em; border: 1px solid #ffffff91; border-radius: 100px;
  background: #f6faffeb; color: #123367; backdrop-filter: blur(8px);
}
.view-count::before { content: '+'; font-family: inherit; font-size: 1.12em; line-height: 1; }
.project-caption { padding-top: clamp(11px,1.3vw,20px); }
h3 { font-size: clamp(1.55rem,2.5vw,2.8rem); line-height: 1.07; }
.scope { margin-top: .45em; font-size: clamp(.88rem,1.1vw,1.08rem); line-height: 1.4; color: var(--secondary); }
footer { padding: 16px max(var(--gutter),calc((100% - 1490px) / 2)); border-top: 1px solid var(--line); }
@media (prefers-reduced-motion:no-preference) {
  .intro h1 { animation: work-title-in 620ms cubic-bezier(.19,.78,.2,1) both; }
  .project.entered { animation: work-card-in 650ms cubic-bezier(.2,.72,.25,1) both; }
  .project.entered:nth-child(even) { animation-delay: 60ms; }
  .filters a { transition: color 160ms, background 160ms, border-color 160ms; }
  @keyframes work-title-in { from { opacity: 0; transform: translateY(.28em); } to { opacity: 1; transform: none; } }
  @keyframes work-card-in { from { opacity: .25; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .photograph img { transition: transform 420ms cubic-bezier(.2,.72,.2,1); }
  .photograph:is(:hover,:focus-visible) img { transform: scale(1.025); }
}
@media (max-width:720px) {
  :root { --gutter: max(5.5vw,env(safe-area-inset-right),env(safe-area-inset-left)); }
  .mast { padding-block: 9px; }
  .filters { gap: 3px; }
  .filters a { padding-inline: .84em; }
  .project-grid { grid-template-columns: minmax(0,1fr); }
  .project-grid > .project, .project-grid:has(> .project:nth-child(2)) > .project:first-child { grid-column: 1; }
  .project:nth-child(2) .photograph img, .photograph img { aspect-ratio: 1.65; }
  .back { font-size: .82rem; }
  .view-count { bottom: 9px; right: 9px; }
}
