body[data-skin="portfolio"]{
  background: #f3f4f6;
  color: #111827;
}

.portfolioShell{
  min-height: 100svh;
  background: #f3f4f6;
}

/* Header */
.portfolioHeader{
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.94));
  border-bottom: 1px solid rgba(17,24,39,.08);
  backdrop-filter: blur(10px);
}

.portfolioHeader__inner{
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.portfolioBrand{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #133b63;
}

.portfolioBrand__logo{
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.portfolioBrand__text{
  font-family: "Space Grotesk", system-ui;
  font-size: clamp(28px, 2.4vw, 44px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: .01em;
  color: #143d67;
}

.portfolioNav{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.portfolioNav a{
  text-decoration: none;
  color: #161616;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 14px;
}

.portfolioNav span{
  color: rgba(0,0,0,.35);
  font-weight: 600;
}

.portfolioNav a:hover,
.portfolioNav a[aria-current="page"]{
  color: #1f5f95;
}

.portfolioHeader__right{
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.portfolioLang{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  color: #133b63;
  font-weight: 700;
  border: 1px solid rgba(19,59,99,.16);
  background: rgba(19,59,99,.04);
}

.portfolioLang:hover{
  background: rgba(19,59,99,.08);
}

/* Hero */
.portfolioHero{
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,249,251,.92)),
    linear-gradient(90deg, rgba(22,95,152,.05), rgba(255,255,255,0));
  border-bottom: 1px solid rgba(15,23,42,.06);
}

.portfolioHero__inner{
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
  padding: 42px 0 38px;
}

.portfolioHero__eyebrow{
  margin: 0 0 10px;
  color: #1c6aa5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.portfolioHero__title{
  margin: 0;
  color: #0f172a;
  font-family: "Space Grotesk", system-ui;
  font-size: clamp(34px, 5vw, 64px);
  line-height: .98;
  letter-spacing: .01em;
}

.portfolioHero__lead{
  max-width: 860px;
  margin: 14px 0 0;
  color: rgba(15,23,42,.72);
  font-size: 17px;
  line-height: 1.5;
}

.portfolioHero--detail .portfolioHero__title{
  font-size: clamp(28px, 4.2vw, 56px);
}

/* Page */
.portfolioPage{
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 34px;
}

/* List */
.portfolioList{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.portfolioItem{
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 22px;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.10);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms cubic-bezier(.2,.8,.2,1);
}

.portfolioItem:hover{
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,.14);
}

.portfolioItem__img{
  min-height: 240px;
  background-color: #dfe6eb;
  background-repeat: no-repeat;
}

.portfolioItem__placeholder{
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(15,23,42,.42);
  font-family: "Space Grotesk", system-ui;
  font-weight: 700;
  letter-spacing: .12em;
}

.portfolioItem__body{
  padding: 24px 24px 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portfolioItem__title{
  margin: 0;
  color: #0f172a;
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1.05;
}

.portfolioItem__meta{
  margin: 10px 0 0;
  color: #1c6aa5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.portfolioItem__text{
  margin: 12px 0 0;
  color: rgba(15,23,42,.72);
  font-size: 15px;
  line-height: 1.58;
  max-width: 70ch;
  white-space: pre-line;
}

.portfolioItem__cta{
  display: inline-block;
  margin-top: 16px;
  color: #1c6aa5;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Detail */
.projectDetail{
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 24px;
  align-items: start;
}

.projectDetail__media{
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.10);
}

.projectDetail__image{
  aspect-ratio: 16 / 10;
  background-color: #dfe6eb;
  background-repeat: no-repeat;
}

.projectDetail__panel{
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.10);
}

.projectDetail__badge{
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(28,106,165,.08);
  border: 1px solid rgba(28,106,165,.14);
  color: #1c6aa5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.projectDetail__title{
  margin: 16px 0 0;
  color: #0f172a;
  font-family: "Space Grotesk", system-ui;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.02;
}

.projectDetail__text{
  margin: 12px 0 0;
  color: rgba(15,23,42,.72);
  font-size: 16px;
  line-height: 1.58;
  white-space: pre-line;
}

.projectDetail__copy{
  margin: 18px 0 0;
  color: rgba(15,23,42,.72);
  font-size: 15px;
  line-height: 1.58;
  white-space: pre-line;  
}

.projectDetail__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.projectDetail__back{
  display: inline-block;
  margin-top: 20px;
  color: #1c6aa5;
  text-decoration: none;
  font-weight: 700;
}

.projectDetail__back:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Buttons */
.heroBtn{
  min-width: 220px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .04em;
  font-size: 14px;
  transition: transform 200ms cubic-bezier(.2,.8,.2,1), filter 200ms cubic-bezier(.2,.8,.2,1), box-shadow 200ms cubic-bezier(.2,.8,.2,1);
}

.heroBtn:hover{
  transform: translateY(-2px);
}

.heroBtn--primary{
  color: #fff;
  background: linear-gradient(180deg, #1e77bc, #165f98);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 18px 40px rgba(0,0,0,.16);
}

.heroBtn--ghost{
  color: #1b5c8f;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,247,250,.96));
  border: 2px solid rgba(28,102,156,.24);
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
}

/* Drawer button */
body[data-skin="portfolio"] .navBtn{
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 80;
  display: none;
}

/* Responsive */
@media (max-width: 1180px){
  .projectDetail{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px){
  .portfolioHeader__inner{
    grid-template-columns: 1fr auto;
    gap: 12px;
    min-height: 84px;
  }

  .portfolioNav--desktop{
    display: none;
  }

  .portfolioHeader__right{
    margin-right: 60px;
  }

  body[data-skin="portfolio"] .navBtn{
    display: inline-flex;
  }

  .portfolioItem{
    grid-template-columns: 1fr;
    gap: 0;
  }

  .portfolioItem__img{
    min-height: 220px;
  }

  .portfolioItem__body{
    padding: 20px;
  }

  .portfolioHero__inner,
  .portfolioPage{
    width: min(100% - 40px, 1280px);
  }
}

@media (max-width: 640px){
  .portfolioHeader__inner{
    width: min(100% - 24px, 100%);
    min-height: 78px;
  }

  .portfolioBrand{
    gap: 10px;
  }

  .portfolioBrand__logo{
    width: 48px;
    height: 48px;
  }

  .portfolioBrand__text{
    font-size: 28px;
  }

  .portfolioHeader__right{
    margin-right: 56px;
  }

  .portfolioLang{
    min-width: 42px;
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .portfolioHero__inner,
  .portfolioPage{
    width: min(100% - 24px, 100%);
  }

  .portfolioHero__inner{
    padding: 28px 0 26px;
  }

  .portfolioHero__eyebrow{
    font-size: 11px;
    letter-spacing: .16em;
  }

  .portfolioHero__title{
    font-size: clamp(28px, 9vw, 40px);
  }

  .portfolioHero__lead{
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.48;
  }

  .portfolioPage{
    padding: 18px 0 26px;
  }

  .portfolioItem{
    border-radius: 18px;
  }

  .portfolioItem__img{
    min-height: 200px;
  }

  .portfolioItem__body{
    padding: 16px;
  }

  .portfolioItem__title{
    font-size: 22px;
  }

  .projectDetail__media,
  .projectDetail__panel{
    border-radius: 18px;
  }

  .projectDetail__panel{
    padding: 18px;
  }

  .projectDetail__actions{
    flex-direction: column;
  }

  .heroBtn{
    width: 100%;
    min-width: 0;
  }
}