#portfolio {
  --bp-coral: var(--coral, #f65449);
  --bp-cream: var(--cream, #fff6e8);
  --bp-ink: var(--ink, #171817);
  --bp-muted: var(--muted, #64635f);
  --bp-rule: #d8cec1;
  background: var(--bp-cream);
  color: var(--bp-ink);
  font-family: var(--font, Montserrat, Arial, sans-serif);
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

#portfolio .bp-wrap { max-width: 1000px; }
#portfolio h2, #portfolio h3, #portfolio h4, #portfolio h5,
#portfolio p, #portfolio figure { margin: 0; }
#portfolio .bp-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#portfolio .bp-section-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}
#portfolio .bp-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}
#portfolio .bp-section-top h2 {
  margin-top: 12px;
  font-size: clamp(29px, 4.3vw, 45px);
  line-height: 1.1;
  font-weight: 550;
  letter-spacing: -2px;
}
#portfolio .bp-section-top h2 span { color: var(--bp-coral); }
#portfolio .bp-section-count { font-size: 11px; color: var(--bp-muted); white-space: nowrap; }
#portfolio .bp-case { border-top: 1px solid var(--bp-ink); padding-top: 25px; }
#portfolio .bp-case-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
}
#portfolio .bp-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 15px;
  font-size: 10px;
  font-weight: 550;
}
#portfolio .bp-type { background: var(--bp-ink); color: var(--bp-cream); padding: 5px 10px; border-radius: 3px; }
#portfolio .bp-category { color: var(--bp-muted); }
#portfolio .bp-project-title {
  font-size: clamp(30px, 4.5vw, 49px);
  font-weight: 550;
  line-height: 1.08;
  letter-spacing: -2px;
}
#portfolio .bp-project-title span { font-weight: 450; }
#portfolio .bp-lead { font-size: 13px; line-height: 1.8; color: #4e4b45; max-width: 345px; }
#portfolio .bp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
#portfolio .bp-tags span { font-size: 10px; border: 1px solid #cfc5b7; border-radius: 20px; padding: 4px 10px; }
#portfolio .bp-gallery {
  container-type: inline-size;
  background: #f1e4d4;
  border-radius: 9px;
  position: relative;
  overflow: hidden;
}
#portfolio .bp-gallery-nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 19px 0;
}
#portfolio .bp-gallery-tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid #cec0af;
  border-radius: 28px;
  background: var(--bp-cream);
}
#portfolio .bp-gallery-tabs button {
  border: 0;
  background: transparent;
  color: var(--bp-ink);
  border-radius: 24px;
  font-size: 10px;
  min-height: 44px;
  padding: 6px 13px;
}
#portfolio .bp-gallery-tabs button[aria-pressed="true"] { background: var(--bp-ink); color: var(--bp-cream); }
#portfolio .bp-gallery-tabs button:focus-visible { outline: 2px solid var(--bp-ink); outline-offset: 2px; }
#portfolio .bp-gallery-note { font-size: 9px; letter-spacing: 1.3px; color: #75685a; text-transform: uppercase; }
#portfolio .bp-stage {
  position: relative;
  height: 540px;
  height: clamp(390px, calc(46cqw + 80px), 540px);
  isolation: isolate;
}
#portfolio .bp-stage::before {
  content: 'BEAUTY PASSPORT';
  position: absolute;
  left: 22px;
  bottom: 22px;
  font-size: clamp(30px, 7.8vw, 85px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -4px;
  color: #e4d5c2;
  white-space: nowrap;
  z-index: -1;
}
#portfolio .bp-web {
  position: absolute;
  width: 71%;
  left: 3.5%;
  top: 67px;
  background: #fff;
  border: 1px solid #c9c0b5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px #4b362721;
  transform: rotate(-3deg);
}
#portfolio .bp-browser-bar { height: 22px; display: flex; align-items: center; gap: 3px; background: #f8f5f0; border-bottom: 1px solid #e6ded4; padding: 0 9px; }
#portfolio .bp-browser-bar i { width: 4px; height: 4px; border-radius: 50%; background: #b5ada3; }
#portfolio .bp-browser-bar span { font-family: Arial, sans-serif; font-size: 8px; line-height: 1; color: #796f64; margin: auto; letter-spacing: .2px; }
#portfolio .bp-mobile { position: absolute; width: 19.3%; border: 1px solid #fff9ee; border-radius: 11px; overflow: hidden; box-shadow: 0 17px 24px #3d2b2726; background: #f0e9e1; }
#portfolio .bp-mobile-first { right: 18.6%; top: 65px; transform: rotate(-5deg); }
#portfolio .bp-mobile-second { right: 2.5%; top: 27px; transform: rotate(5deg); }
#portfolio .bp-stage[data-view="website"] .bp-web { width: 83%; left: 8.5%; top: 28px; transform: none; }
#portfolio .bp-stage[data-view="website"] .bp-mobile,
#portfolio .bp-stage[data-view="apps"] .bp-web { display: none; }
#portfolio .bp-stage[data-view="apps"] .bp-mobile { width: 23%; max-width: 190px; top: 20px; transform: none; }
#portfolio .bp-stage[data-view="apps"] .bp-mobile-first { left: 24%; right: auto; }
#portfolio .bp-stage[data-view="apps"] .bp-mobile-second { right: 24%; }
#portfolio .bp-stage[data-view="apps"]::before { text-align: center; left: 0; right: 0; }
#portfolio .bp-caption { padding: 0 20px 15px; display: flex; justify-content: space-between; gap: 18px; font-size: 9px; color: #766b60; }
#portfolio .bp-project-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 22px 0 26px; }
#portfolio .bp-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; border: 1px solid var(--bp-ink); padding: 11px 16px; font-size: 11px; font-weight: 550; border-radius: 4px; min-height: 44px; }
#portfolio .bp-link-main { background: var(--bp-ink); color: var(--bp-cream); }
#portfolio .bp-link:hover { background: var(--bp-coral); color: var(--bp-ink); border-color: var(--bp-coral); }
#portfolio .bp-link .bp-icon { width: 15px; height: 15px; }
#portfolio .bp-task { display: grid; grid-template-columns: 135px minmax(0, 1fr); gap: 32px; border-top: 1px solid var(--bp-rule); padding: 29px 0 35px; align-items: start; }
#portfolio .bp-task h4 { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; margin-top: 4px; }
#portfolio .bp-task p { font-size: 15px; line-height: 1.8; max-width: 660px; color: #4e4b45; }
#portfolio .bp-functions-heading { font-size: 31px; font-weight: 550; line-height: 1.15; letter-spacing: -1.2px; margin-bottom: 25px; }
#portfolio .bp-features-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px 36px; }
#portfolio .bp-feature { border-top: 1px solid var(--bp-rule); padding-top: 20px; min-width: 0; }
#portfolio .bp-feature-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
#portfolio .bp-feature-number { font-size: 12px; color: #b63b33; font-weight: 600; letter-spacing: 1px; }
#portfolio .bp-feature h5 { font-size: 21px; font-weight: 550; line-height: 1.3; letter-spacing: -.7px; margin: 0 0 13px; max-width: 340px; }
#portfolio .bp-feature p { font-size: 13px; line-height: 1.85; color: #5e5952; }
#portfolio .bp-feature-formats { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 15px; font-size: 10px; font-weight: 550; color: #5b5146; }
#portfolio .bp-feature-formats span { border-radius: 3px; padding: 4px 8px; background: #f0e6d7; }
#portfolio .bp-result { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 30px; align-items: start; background: var(--bp-ink); color: var(--bp-cream); border-radius: 6px; margin-top: 34px; padding: 26px 28px; }
#portfolio .bp-result h4 { color: #ff8c7b; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; padding-top: 4px; }
#portfolio .bp-result p { font-size: 14px; line-height: 1.8; color: var(--bp-cream); }
#portfolio .bp-case-bottom { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 30px; border-top: 1px solid var(--bp-rule); padding-top: 19px; font-size: 11px; color: #5e5952; }
#portfolio .bp-case-bottom a { color: var(--bp-ink); display: inline-flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 600; }
#portfolio .bp-case-bottom .bp-icon { width: 16px; height: 16px; }

@media (max-width: 899px) {
  #portfolio .bp-web { top: 54px; }
  #portfolio .bp-mobile-first { top: 43px; }
  #portfolio .bp-mobile-second { top: 12px; }
  #portfolio .bp-stage[data-view="apps"] .bp-mobile { max-width: 170px; }
  #portfolio .bp-case-intro { margin-bottom: 25px; }
}

@media (max-width: 620px) {
  #portfolio .bp-section-count { display: none; }
  #portfolio .bp-section-top { margin-bottom: 22px; }
  #portfolio .bp-section-top h2 { font-size: 34px; letter-spacing: -1.4px; }
  #portfolio .bp-case-intro { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  #portfolio .bp-project-title { font-size: 39px; letter-spacing: -1.8px; }
  #portfolio .bp-lead { font-size: 12px; max-width: none; }
  #portfolio .bp-meta { margin-bottom: 13px; font-size: 9px; }
  #portfolio .bp-gallery { margin-inline: -7px; }
  #portfolio .bp-gallery-nav { padding: 13px 10px 0; }
  #portfolio .bp-gallery-tabs { width: 100%; }
  #portfolio .bp-gallery-tabs button { flex: 1; font-size: 9px; padding: 4px 7px; }
  #portfolio .bp-gallery-note { display: none; }
  #portfolio .bp-stage { height: 570px; height: calc(74cqw + 150px); }
  #portfolio .bp-web { width: 88%; left: 6%; top: 26px; }
  #portfolio .bp-mobile { width: 31%; }
  #portfolio .bp-mobile-first { top: 135px; right: 34%; }
  #portfolio .bp-mobile-second { top: 117px; right: 7%; }
  #portfolio .bp-stage::before { font-size: 35px; letter-spacing: -2px; bottom: 30px; left: 12px; }
  #portfolio .bp-stage[data-view="website"] { height: 390px; height: calc(51cqw + 92px); }
  #portfolio .bp-stage[data-view="website"] .bp-web { width: 94%; left: 3%; top: 55px; }
  #portfolio .bp-stage[data-view="apps"] { height: 365px; }
  #portfolio .bp-stage[data-view="apps"] .bp-mobile { width: 42%; max-width: 145px; top: 18px; }
  #portfolio .bp-stage[data-view="apps"] .bp-mobile-first { left: 6%; }
  #portfolio .bp-stage[data-view="apps"] .bp-mobile-second { right: 6%; }
  #portfolio .bp-caption { padding: 0 12px 13px; font-size: 8px; gap: 8px; }
  #portfolio .bp-caption span:last-child { max-width: 145px; text-align: right; }
  #portfolio .bp-project-links { gap: 7px; padding-top: 18px; }
  #portfolio .bp-link { font-size: 10px; padding: 10px 12px; gap: 9px; flex: 1; white-space: nowrap; }
  #portfolio .bp-link-main { flex-basis: 100%; justify-content: center; gap: 12px; }
  #portfolio .bp-task { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 25px 0 29px; }
  #portfolio .bp-task h4 { font-size: 10px; margin: 0; }
  #portfolio .bp-task p { font-size: 13px; line-height: 1.85; }
  #portfolio .bp-functions-heading { font-size: 27px; margin-bottom: 22px; letter-spacing: -1px; }
  #portfolio .bp-features-grid { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  #portfolio .bp-feature { padding-top: 16px; }
  #portfolio .bp-feature-top { margin-bottom: 12px; }
  #portfolio .bp-feature h5 { margin-bottom: 10px; max-width: none; }
  #portfolio .bp-feature p { font-size: 12px; }
  #portfolio .bp-feature-formats { margin-top: 12px; gap: 6px; }
  #portfolio .bp-result { grid-template-columns: minmax(0, 1fr); gap: 13px; margin-top: 28px; padding: 22px 20px; }
  #portfolio .bp-result h4 { font-size: 10px; padding: 0; }
  #portfolio .bp-result p { font-size: 12px; line-height: 1.85; }
  #portfolio .bp-case-bottom { align-items: flex-start; flex-direction: column; gap: 6px; margin-top: 23px; font-size: 10px; }
}

@media (max-width: 360px) {
  #portfolio .bp-project-title { font-size: 34px; }
  #portfolio .bp-mobile-first { top: 122px; }
  #portfolio .bp-mobile-second { top: 105px; }
}
