.portfolio-page { background: var(--soft); }
.site-nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; text-underline-offset: 6px; }
.portfolio-masthead { padding-block: clamp(33px,5vw,70px); color: #fff; background: radial-gradient(ellipse at 92% 78%,#126684 0%,transparent 72%),var(--petrol); }
.portfolio-back { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; color: #c3ebf6; font-size: 14px; font-weight: 700; text-decoration: none; }
.portfolio-back:hover { text-decoration: underline; }
.portfolio-back .icon { height: 16px; width: 16px; }
.portfolio-masthead h1 { margin-top: 7px; font-size: clamp(42px,6.1vw,84px); }
.portfolio-masthead p { margin-top: 12px; color: #e1f3fa; font-size: clamp(15px,1.55vw,19px); }
.portfolio-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(17px,3vw,27px); }
.portfolio-jump a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; border: 1px solid #7bc2d5; border-radius: 999px; color: #f3fcfe; font-size: 13px; font-weight: 700; text-decoration: none; }
.portfolio-jump a:hover { background: #fff; color: var(--petrol); }
.portfolio-masthead a:focus-visible { outline-color: #76e5f9; }
.portfolio-content { padding-block: clamp(38px,5.5vw,78px); }
.portfolio-shelf + .portfolio-shelf { margin-top: clamp(38px,5vw,72px); }
.portfolio-shelf-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 17px; }
.portfolio-shelf h2 { font-size: clamp(34px,4vw,55px); }
.portfolio-controls { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.portfolio-controls span { min-width: 45px; text-align: center; }
.portfolio-controls button { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; border-radius: 50%; border: 1px solid #a8d1dc; background: #fff; color: #09536c; }
.portfolio-controls button:hover { background: #d9f1f8; }
.portfolio-controls button[aria-disabled="true"] { color: #667e88; background: #eaf3f6; cursor: default; }
.portfolio-track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 16px; border-radius: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #72adc0 transparent; }
.portfolio-project { min-width: 0; padding: clamp(13px,2.1vw,27px); scroll-snap-align: start; border: 1px solid #cfe1e8; border-radius: 16px; background: #fff; }
.portfolio-project h3 { margin-bottom: 15px; font-size: clamp(21px,2.2vw,32px); }
.portfolio-photos { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(8px,1.5vw,16px); }
.portfolio-photos-single { grid-template-columns: minmax(0,1fr); max-width: 565px; }
.portfolio-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.portfolio-photo a:focus-visible { outline-offset: 2px; }
.portfolio-photo figcaption { padding-top: 8px; color: var(--muted); font-size: clamp(12px,1.2vw,14px); line-height: 1.38; }
.portfolio-stage { position: absolute; left: 7px; top: 7px; border-radius: 6px; padding: 3px 8px; background: #0b3344eb; color: #fff; font-size: clamp(11px,1.23vw,13px); font-weight: 800; }
.portfolio-photo + .portfolio-photo .portfolio-stage { background: #03566c; }
.photo-dialog-controls { display: flex; justify-content: center; margin-top: 8px; }
.portfolio-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: clamp(36px, 5vw, 68px);
  padding: clamp(20px, 4vw, 43px);
  border: 1px solid #bfdde7;
  border-radius: 16px;
  background: var(--air);
}
.portfolio-contact h2 { font-size: clamp(29px, 3.1vw, 42px); }
.portfolio-contact p { margin-top: 8px; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media(max-width:760px){
  .portfolio-shelf-head { margin-bottom: 12px; }
  .portfolio-shelf h2 { font-size: clamp(30px,8vw,39px); }
  .portfolio-controls { gap: 5px; }
  .portfolio-project h3 { margin-bottom: 12px; }
  .portfolio-stage { left: 4px; top: 4px; padding: 3px 6px; }
}
@media(prefers-reduced-motion:no-preference){.portfolio-track { scroll-behavior: smooth; }}
