/* ============================================================
   PORTFOLIO SECTION
   ============================================================ */

/* 2026-09 MVP redesign: card-based case library for boss review. */
.portfolio-redesign {
  padding: 96px 0;
  background: #f7f6f4;
}

.portfolio-redesign__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 34px;
}

.portfolio-redesign__intro .section-heading {
  max-width: 760px;
  margin-bottom: 0;
}

.portfolio-redesign__intro > p {
  color: var(--clr-muted);
  font-size: 17px;
  line-height: 1.75;
}

.portfolio-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 28px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.portfolio-proof-strip div {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 22px 28px;
  border-right: 1px solid rgba(0,0,0,.08);
}

.portfolio-proof-strip div:last-child { border-right: 0; }

.portfolio-proof-strip strong {
  font-family: var(--ff-display);
  font-size: 34px;
  line-height: 1;
  color: var(--clr-red);
}

.portfolio-proof-strip span {
  color: var(--clr-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portfolio-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.portfolio-case-card {
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  transition: transform .25s var(--ease-out-expo), border-color .25s, box-shadow .25s;
}

.portfolio-case-card:hover,
.portfolio-case-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(204,31,43,.34);
  box-shadow: 0 18px 44px rgba(0,0,0,.08);
}

.portfolio-case-card a {
  display: grid;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.portfolio-case-card--featured { grid-column: 1 / -1; }

.portfolio-case-card--featured > a {
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .35fr);
}

.portfolio-case-card--featured .portfolio-case-card__media {
  min-height: 460px;
  aspect-ratio: auto;
}

.portfolio-case-card--featured .portfolio-case-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 38px;
}

.portfolio-case-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}

.portfolio-case-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out-expo);
}

.portfolio-case-card:hover .portfolio-case-card__media img,
.portfolio-case-card:focus-within .portfolio-case-card__media img {
  transform: scale(1.025);
}

.portfolio-case-card__media::after {
  content: "";
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0));
}

.portfolio-case-card__media span {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 14px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(17,17,17,.78);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.portfolio-case-card__body {
  padding: 24px;
}

.portfolio-case-card__body p {
  margin-bottom: 8px;
  color: var(--clr-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.portfolio-case-card__body h3 {
  margin-bottom: 8px;
  font-family: var(--ff-display);
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
}

.portfolio-case-card__body h4 {
  margin-bottom: 12px;
  color: #222;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}

.portfolio-case-card__body small {
  display: block;
  color: var(--clr-muted);
  font-size: 13px;
  line-height: 1.55;
}

.portfolio-case-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--clr-red);
  font-family: var(--ff-display);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.portfolio-case-card__link i {
  font-style: normal;
  transition: transform .2s ease;
}

.portfolio-case-card:hover .portfolio-case-card__link i,
.portfolio-case-card:focus-within .portfolio-case-card__link i { transform: translateX(4px); }

.portfolio-redesign__cta {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  margin-top: 34px;
  padding: 26px 28px;
  border-radius: 8px;
  background: #111;
  color: #fff;
}

.portfolio-redesign__cta p {
  max-width: 720px;
  color: rgba(255,255,255,.68);
  font-size: 14px;
  line-height: 1.7;
}

.portfolio-redesign__actions { display: flex; flex: 0 0 auto; gap: 10px; }
.portfolio-redesign__actions .btn--outline { color: #fff; border-color: rgba(255,255,255,.45); }
.portfolio-redesign__actions .btn--outline:hover,
.portfolio-redesign__actions .btn--outline:focus-visible { border-color: #fff; background: #fff; color: #111; }

@media (max-width: 1020px) {
  .portfolio-redesign__intro {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .portfolio-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-case-card--featured > a { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); }

  .portfolio-redesign__cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 680px) {
  .portfolio-redesign {
    padding: 72px 0;
  }

  .portfolio-proof-strip,
  .portfolio-case-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-proof-strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
  }

  .portfolio-proof-strip div:last-child {
    border-bottom: 0;
  }

  .portfolio-case-card--featured {
    grid-column: auto;
  }

  .portfolio-case-card--featured > a { grid-template-columns: 1fr; }
  .portfolio-case-card--featured .portfolio-case-card__media { min-height: 0; aspect-ratio: 16 / 10; }
  .portfolio-case-card--featured .portfolio-case-card__body { padding: 24px; }

  .portfolio-redesign__cta {
    display: grid;
    align-items: start;
  }

  .portfolio-redesign__actions { width: 100%; flex-direction: column; }
  .portfolio-redesign__actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   INDIVIDUAL PORTFOLIO CASE
   Projects show proof and project-specific products. They are
   intentionally separate from the reusable SKU catalogue.
   ============================================================ */
.case-detail { background: #fff; }

.case-detail__hero {
  position: relative;
  min-height: min(680px, 76svh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #181818;
  color: #fff;
}

.case-detail__hero > img,
.case-detail__shade { position: absolute; inset: 0; width: 100%; height: 100%; }

.case-detail__hero > img { object-fit: cover; object-position: center; }

.case-detail__shade {
  background:
    linear-gradient(180deg, rgba(8,8,8,.42) 0%, rgba(8,8,8,.04) 38%, rgba(8,8,8,.82) 100%),
    linear-gradient(90deg, rgba(8,8,8,.55), transparent 62%);
}

.case-detail__hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 54px;
}

.case-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
  color: rgba(255,255,255,.68);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.case-breadcrumb a:hover,
.case-breadcrumb a:focus-visible { color: #fff; }

.case-detail__sector {
  margin-bottom: 14px;
  color: #fff;
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.case-detail__hero h1 {
  max-width: 980px;
  font-family: var(--ff-display);
  font-size: clamp(52px, 8vw, 108px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .9;
  text-wrap: balance;
}

.case-detail__lead {
  max-width: 680px;
  margin-top: 24px;
  color: rgba(255,255,255,.82);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
}

.case-detail__brief { padding: 64px 0; border-bottom: 1px solid var(--clr-line); }

.case-brief-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: clamp(54px, 9vw, 130px);
  align-items: start;
}

.case-brief-grid h2 {
  max-width: 600px;
  font-family: var(--ff-display);
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.case-detail__count {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--clr-line);
  color: var(--clr-red);
  font-family: var(--ff-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.case-brief-grid > div:last-child > p {
  color: var(--clr-muted);
  font-size: 16px;
  line-height: 1.7;
}

.case-scope { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }

.case-scope li {
  padding: 9px 13px;
  border: 1px solid var(--clr-line);
  border-radius: 999px;
  color: #444;
  font-size: 12px;
  font-weight: 600;
}

.case-use-scene {
  padding: 54px 0 0;
  background: #fff;
}

.case-use-scene__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.case-use-scene__media {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #e9e7e3;
  aspect-ratio: 16 / 9;
}

.case-use-scene__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.case-use-scene__copy h2 {
  max-width: 420px;
  margin-top: 12px;
  font-family: var(--ff-display);
  font-size: clamp(30px, 3.5vw, 48px);
  letter-spacing: -.04em;
  line-height: 1;
}

.case-use-scene__copy p {
  max-width: 360px;
  margin-top: 18px;
  color: var(--clr-muted);
  font-size: 13px;
  line-height: 1.65;
}

.case-products { padding: 72px 0 96px; background: #f6f5f3; }

.case-products__heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 48px;
}

.case-products__heading h2 {
  max-width: 760px;
  font-family: var(--ff-display);
  font-size: clamp(34px, 4.4vw, 56px);
  letter-spacing: -.045em;
  line-height: 1.02;
}

.case-products__heading > p { color: var(--clr-muted); font-size: 15px; line-height: 1.7; }

.case-products__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.case-product-card { min-width: 0; }

.case-product-card__open {
  width: 100%;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 16px;
  background: #fff;
  text-align: left;
  transition: transform .28s var(--ease-out-expo), border-color .28s, box-shadow .28s;
}

.case-product-card__open:hover,
.case-product-card__open:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(204,31,43,.3);
  box-shadow: 0 18px 42px rgba(25,25,25,.09);
  outline: none;
}

.case-product-card__media {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 18px;
  overflow: hidden;
  background: #fff;
}

.case-product-card__media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform .38s var(--ease-out-expo);
}

.case-product-card__open:hover img,
.case-product-card__open:focus-visible img { transform: scale(1.035); }

.case-product-card__caption {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px;
  border-top: 1px solid var(--clr-line);
  color: #292929;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.case-product-card__caption i { color: var(--clr-red); font-size: 17px; font-style: normal; }

.case-detail__cta { padding: 82px 0; background: #171717; color: #fff; }
.case-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 70px; }
.case-cta-inner > div { max-width: 780px; }
.case-cta-inner h2 { margin-bottom: 16px; font-family: var(--ff-display); font-size: clamp(34px, 4.5vw, 58px); letter-spacing: -.04em; line-height: 1; }
.case-cta-inner p { max-width: 690px; color: rgba(255,255,255,.64); line-height: 1.75; }
.case-cta-inner .btn { flex: 0 0 auto; }

.case-lightbox {
  width: min(920px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100svh - 40px);
  padding: 20px 20px 16px;
  overflow: auto;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0,0,0,.4);
}

.case-lightbox[open] { animation: caseLightboxIn .22s var(--ease-out-expo); }
.case-lightbox::backdrop { background: rgba(10,10,10,.82); backdrop-filter: blur(7px); }
.case-lightbox img { width: 100%; max-height: calc(100svh - 150px); object-fit: contain; border-radius: 11px; background: #f6f5f3; }
.case-lightbox p { padding: 14px 48px 0 2px; color: #333; font-size: 14px; font-weight: 600; }
.case-lightbox__close {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(17,17,17,.9);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

@keyframes caseLightboxIn { from { opacity: 0; transform: translateY(12px) scale(.985); } }

@media (max-width: 940px) {
  .case-brief-grid,
  .case-products__heading,
  .case-use-scene__grid { grid-template-columns: 1fr; gap: 28px; }
  .case-products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-cta-inner { align-items: flex-start; flex-direction: column; gap: 34px; }
}

@media (max-width: 600px) {
  .case-detail__hero { min-height: 560px; }
  .case-detail__hero-inner { padding-top: calc(var(--header-h) + 62px); padding-bottom: 38px; }
  .case-breadcrumb { margin-bottom: 24px; }
  .case-detail__hero h1 { font-size: clamp(46px, 16vw, 68px); }
  .case-detail__lead { margin-top: 18px; font-size: 17px; }
  .case-detail__brief,
  .case-products { padding: 52px 0; }
  .case-use-scene { padding-top: 34px; }
  .case-brief-grid > div:last-child > p { font-size: 16px; }
  .case-products__heading { margin-bottom: 32px; }
  .case-products__grid { gap: 10px; }
  .case-product-card__media { padding: 8px; }
  .case-product-card__caption { min-height: 62px; padding: 13px 12px; font-size: 11px; }
  .case-detail__cta { padding: 66px 0; }
  .case-cta-inner .btn { width: 100%; justify-content: center; }
  .case-lightbox { width: calc(100vw - 24px); padding: 12px 12px 14px; border-radius: 14px; }
  .case-lightbox img { max-height: calc(100svh - 120px); }
  .case-lightbox__close { top: 20px; right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .case-product-card__open,
  .case-product-card__media img,
  .case-lightbox[open] { animation: none; transition: none; }
}

/* Hero header */
.portfolio-hero {
  background: var(--clr-red);
  padding: 40px 0 60px;
}
.portfolio-hero .container { position: relative; }
.portfolio-hero .logo-main { color: var(--clr-white); }
.portfolio-hero .logo-sub  { color: rgba(255,255,255,.6); border-bottom: 1.5px solid rgba(255,255,255,.4); padding-bottom: 2px; }

.portfolio-hero-desc {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.portfolio-divider-left  { width: 100%; height: 1px; background: rgba(255,255,255,0.25); }
.portfolio-desc { font-family: var(--ff-body); font-size: clamp(14px,1.6vw,16px); color: rgba(255,255,255,.88); line-height: 1.75; max-width: 640px; justify-self: end; }
.portfolio-divider-right { width: 60%; height: 1px; background: rgba(255,255,255,0.25); justify-self: end; }

@media(min-width:768px) {
  .portfolio-hero-desc { grid-template-columns: 1fr 1fr; gap: 20px 60px; }
  .portfolio-divider-left  { align-self: center; }
  .portfolio-desc          { grid-column: 2/3; justify-self: start; }
  .portfolio-divider-right { grid-column: 2/3; width: 80%; justify-self: end; }
}

/* App wrapper */
.portfolio-app-wrap {
  background: #f7f4f0;
  padding: 0;
  overflow: hidden;
}

.portfolio-app {
  /* Desktop visual balance: prioritize space for displaying more products. */
  --pf-hero-height: 32%;
  --pf-products-height: 68%;
  display: flex;
  width: 100%;
  max-width: none;
  height: clamp(760px, 88vh, 920px);
  max-height: 94vh;
  min-height: 640px;
  margin: 0 auto;
}

/* ── SIDEBAR ── */
.pf-sidebar {
  width: 220px;
  min-width: 220px;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
}

.pf-sidebar-search { padding: 20px 16px 10px; }
.pf-search-wrap { position: relative; }
.pf-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); opacity: .35; pointer-events: none; }
.pf-search-box {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 8px 12px 8px 32px;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  font-family: var(--ff-body);
  outline: none;
}
.pf-search-box::placeholder { color: rgba(255,255,255,.3); }

.pf-sidebar-title {
  padding: 14px 20px 8px;
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
  font-weight: 500;
  font-family: var(--ff-display);
}

.pf-sectors-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 10px;
  scrollbar-width: none;
}
.pf-sectors-list::-webkit-scrollbar { display: none; }

.pf-sector-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.45);
  font-family: var(--ff-body);
  font-size: 12.5px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  border-radius: 7px;
  transition: all .2s ease;
  position: relative;
  margin-bottom: 1px;
}
.pf-sector-btn:hover { color: rgba(255,255,255,.85); background: rgba(255,255,255,.05); }
.pf-sector-btn.active { color: #fff; background: rgba(200,16,46,.18); font-weight: 500; }
.pf-sector-btn.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 60%;
  background: var(--clr-red);
  border-radius: 0 3px 3px 0;
}
.pf-sector-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; opacity: .7; }
.pf-sector-btn.active .pf-sector-dot { opacity: 1; }

.pf-sidebar-nav {
  padding: 12px 16px 20px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  justify-content: center;
  gap: 8px;
}
.pf-nav-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  background: transparent;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.pf-nav-arrow:hover { border-color: var(--clr-red); color: var(--clr-red); }

/* ── MAIN AREA ── */
.pf-main {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.pf-slides-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.pf-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px);
  transition: opacity .5s ease, transform .5s ease;
}
.pf-slide.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* Slide hero — desktop ratio is controlled on .portfolio-app above. */
.pf-slide-hero {
  position: relative;
  flex: 0 0 var(--pf-hero-height);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 48px 40px;
}

/* Products section — desktop ratio is controlled on .portfolio-app above. */
.pf-products-section {
  flex: 0 0 var(--pf-products-height);
  background: #fff;
  padding: 18px 28px 22px;
  border-top: 3px solid var(--clr-red);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
}
.pf-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.6) saturate(.85);
  transition: transform 8s ease, background-image .3s ease;
}
.pf-slide.active .pf-hero-bg { transform: scale(1.04); }
.pf-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.85) 0%,
    rgba(0,0,0,.45) 40%,
    rgba(0,0,0,.15) 70%,
    transparent 100%
  );
}
.pf-hero-accent  { position: absolute; bottom: 0; left: 0; height: 3px; width: 0; transition: width .8s ease .3s; }
.pf-slide.active .pf-hero-accent { width: 100%; }
.pf-hero-content { position: relative; z-index: 2; }

.pf-sector-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 10px;
  font-family: var(--ff-display);
}
.pf-badge-dot { width: 6px; height: 6px; border-radius: 50%; }

.pf-brand-name {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(36px, 4.5vw, 62px);
  letter-spacing: -.02em;
  color: #fff;
  line-height: .95;
  margin-bottom: 10px;
  overflow: hidden;
}
.pf-brand-name-inner {
  display: block;
  transform: translateY(100%);
  transition: transform .6s cubic-bezier(.22,1,.36,1) .1s;
}
.pf-slide.active .pf-brand-name-inner { transform: translateY(0); }

.pf-brand-desc {
  font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.65;
  max-width: 500px; font-weight: 300;
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s ease .35s, transform .5s ease .35s;
}
.pf-slide.active .pf-brand-desc { opacity: 1; transform: translateY(0); }

.pf-slide-number {
  position: absolute; top: 24px; right: 40px;
  font-family: var(--ff-display); font-size: 13px;
  letter-spacing: .15em; color: rgba(255,255,255,.25); z-index: 2;
}

/* Products grid */
.pf-products-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.pf-products-label { font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #999; font-family: var(--ff-display); }
.pf-products-count { font-size: 11px; color: #bbb; font-family: var(--ff-display); }
.pf-products-meta { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.pf-products-scroll-note {
  display: none;
  color: var(--clr-red);
  font-family: var(--ff-display);
  font-size: 10px;
  font-weight: 600;
}
.pf-products-section.has-overflow .pf-products-scroll-note { display: inline; }

.pf-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  grid-auto-rows: calc((100% - 10px) / 2);
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-right: 4px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(204,31,43,.42) transparent;
  align-content: start;
}
.pf-products-grid::-webkit-scrollbar { width: 6px; }
.pf-products-grid::-webkit-scrollbar-track { background: transparent; }
.pf-products-grid::-webkit-scrollbar-thumb { background: rgba(204,31,43,.32); border-radius: 999px; }
.pf-products-grid:focus-visible { outline: 2px solid rgba(204,31,43,.3); outline-offset: 3px; }

.pf-product-card {
  border: 1px solid #ececec;
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  align-items: stretch;
  background: #f9f9f9;
  cursor: default;
  transition: border-color .2s, transform .25s var(--ease-out-expo), box-shadow .2s;
  opacity: 0;
  transform: translateY(16px) scale(.96);
  position: relative;
  min-height: 0;
}
.pf-slide.active .pf-product-card { opacity: 1; transform: translateY(0) scale(1); }
.pf-product-card:hover { border-color: var(--clr-red); transform: translateY(-3px) scale(1.04); box-shadow: 0 8px 24px rgba(204,31,43,.12); z-index: 2; }

.pf-product-img-wrap {
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
  min-height: 0;
}
.pf-product-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .35s ease;
}
.pf-product-card:hover .pf-product-img { transform: none; }
.pf-product-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  opacity: 0.6;
}
.pf-product-img-fallback--pending { background: repeating-linear-gradient(135deg, #fff, #fff 8px, #f7f7f7 8px, #f7f7f7 16px); }
.pf-product-label {
  display: -webkit-box;
  min-height: 40px;
  padding: 8px 10px;
  overflow: hidden;
  background: #fff;
  color: #333;
  font-size: 10px;
  font-weight: 500;
  text-align: left;
  line-height: 1.25;
  font-family: var(--ff-body);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Progress + dots */
.pf-progress-bar { position: absolute; bottom: 0; left: 0; height: 3px; background: rgba(0,0,0,.06); width: 100%; z-index: 5; }
.pf-progress-fill { height: 100%; background: var(--clr-red); transition: width .4s ease; }
.pf-scroll-hint {
  position: absolute;
  right: 20px;
  top: 30%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 20;
}
.pf-scroll-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.3); cursor: pointer; transition: all .25s; }
.pf-scroll-dot.active { height: 18px; border-radius: 3px; background: #fff; }

/* Responsive */
@media(max-width:900px){
  .pf-sidebar { width: 180px; min-width: 180px; }
  .pf-products-section { padding: 14px 20px 16px; }
  .pf-products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pf-slide-hero { padding: 32px 32px 36px; }
  .pf-brand-name { font-size: clamp(32px, 5.5vw, 52px); }
}
@media(min-width:601px) and (max-width:780px){
  .pf-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: calc((100% - 24px) / 3);
  }
}
@media(max-width:600px){
  .portfolio-app { flex-direction: column; height: 900px; max-height: none; min-height: 0; }
  .pf-sidebar { width: 100%; min-width: unset; height: auto; flex-direction: row; overflow-x: auto; padding: 8px; }
  .pf-sidebar-search, .pf-sidebar-title { display: none; }
  .pf-sectors-list { display: flex; flex-direction: row; padding: 0; overflow-x: auto; }
  .pf-sector-btn { white-space: nowrap; padding: 6px 14px; }
  .pf-sidebar-nav { flex: 0 0 auto; padding: 0 4px 0 10px; border-top: 0; border-left: 1px solid rgba(255,255,255,.08); }
  .pf-main { width: 100%; min-height: 0; }
  .pf-slides-container { height: 100%; }
  .pf-slide-hero { flex: 0 0 340px; padding: 28px 20px 30px; }
  .pf-products-section { flex: 1 1 auto; min-height: 0; padding: 14px 16px 16px; }
  .pf-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: calc((100% - 20px) / 3);
    gap: 10px;
  }
  .pf-brand-name { font-size: clamp(28px, 9vw, 44px); line-height: 1; overflow-wrap: anywhere; }
  .pf-brand-desc { font-size: 12px; line-height: 1.55; }
  .pf-slide-number { top: 18px; right: 18px; }
  .pf-scroll-hint { right: 10px; top: 190px; }
  .pf-product-img-wrap { padding: 8px; }
  .pf-product-label { min-height: 38px; padding: 7px 8px; font-size: 9.5px; }
}
@media(max-width:420px){
  .portfolio-app { height: clamp(1000px, 260vw, 1100px); }
  .pf-slide-hero { flex-basis: 320px; }
  .pf-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: calc((100% - 30px) / 4);
  }
}

/* ============================================================
   PRODUCT CARD MVP — visual impact from the individual assets
   ============================================================ */
.pf-product-card {
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(25,25,25,.07), 0 6px 18px rgba(25,25,25,.05);
  transition: transform .25s var(--ease-out-expo), box-shadow .25s ease;
}
.pf-product-card::before {
  display: none;
}
.pf-product-card:hover {
  border-color: transparent;
  transform: translateY(-3px) scale(1.015);
  box-shadow: inset 0 0 0 1px rgba(25,25,25,.08), 0 12px 26px rgba(25,25,25,.12);
}
.pf-product-card__index {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 4;
  color: rgba(25,25,25,.42);
  font: 700 9px/1 var(--ff-display);
  letter-spacing: .12em;
}
.pf-product-img-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  padding: 8px 4px;
  background: #fff;
}
.pf-product-img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  /* Legacy portfolio assets include a large white square around the product.
   * Scale the bitmap so the real object, rather than that square, carries the
   * visual weight. New transparent Coze assets can opt down via layout class. */
  transform: scale(1.08);
}
.pf-product-card--portrait .pf-product-img { transform: scale(1.06); }
.pf-product-card--landscape .pf-product-img { transform: scale(1.08); }
.pf-product-card--slim .pf-product-img { transform: scale(1.12); }
.pf-product-card:hover .pf-product-img { transform: scale(1.12); }
.pf-product-card--portrait:hover .pf-product-img { transform: scale(1.1); }
.pf-product-card--landscape:hover .pf-product-img { transform: scale(1.12); }
.pf-product-card--slim:hover .pf-product-img { transform: scale(1.16); }
.pf-product-label {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  z-index: 4;
  display: block;
  min-height: 0;
  padding: 7px 9px;
  overflow: hidden;
  border-radius: 7px;
  background: rgba(255,255,255,.9);
  color: #292929;
  font-size: 10px;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-shadow: 0 3px 10px rgba(25,25,25,.08);
  opacity: 1;
  transform: translateY(0);
  transition: opacity .2s ease, transform .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .pf-product-label { opacity: 0; transform: translateY(6px); pointer-events: none; }
  .pf-product-card:hover .pf-product-label { opacity: 1; transform: translateY(0); }
}
.pf-product-img-fallback { position: absolute; inset: 14px 12px 28px; }
.pf-product-img-fallback--pending { background: repeating-linear-gradient(135deg, #f7f6f3, #f7f6f3 8px, #efede9 8px, #efede9 16px); }

@media(max-width:600px){
  .pf-product-img-wrap { padding: 6px 2px 8px; }
  .pf-product-card__index { top: 8px; left: 9px; font-size: 8px; }
  .pf-product-label { right: 6px; bottom: 6px; left: 6px; padding: 6px 7px; font-size: 9px; }
  .pf-product-img-fallback { inset: 6px 2px 8px; }
}
