/* BLUE STUDIO — Portfolio V6.10
   Public portfolio listing, profile collections, and video player. */

body.portfolio-v610-page {
  --portfolio-surface: #061426;
  --portfolio-surface-2: #0a1d35;
  --portfolio-line: rgba(255, 255, 255, .11);
  --portfolio-soft-line: rgba(5, 25, 52, .11);
  --portfolio-glow: rgba(32, 216, 243, .18);
  min-height: 100vh;
  background: #030b19;
}

.portfolio-v610-page [hidden] { display: none !important; }
.portfolio-v610-page main { min-height: 65vh; }
.portfolio-v610-page .home-header { background: rgba(3, 11, 25, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.portfolio-v610-page .home-header:not(.scrolled) { border-bottom: 1px solid rgba(255,255,255,.05); }
.portfolio-v610-page .home-footer { position: relative; z-index: 1; }

/* Shared portfolio helpers */
.portfolio-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(223, 246, 255, .76);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}
.portfolio-kicker i {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--home-cyan), transparent);
}
html[dir="ltr"] .portfolio-kicker i { background: linear-gradient(270deg, var(--home-cyan), transparent); }

.portfolio-empty,
.portfolio-error-state {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 44px 24px;
  border: 1px dashed rgba(14, 121, 226, .24);
  border-radius: 28px;
  color: var(--home-muted);
  background: rgba(255,255,255,.72);
  text-align: center;
}
.portfolio-empty__icon,
.portfolio-error-state__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 15px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, #147df5, #20d8f3);
  box-shadow: 0 18px 45px rgba(20,125,245,.22);
  font-size: 21px;
}
.portfolio-empty h3,
.portfolio-error-state h3 { margin: 0; color: var(--home-ink); font-size: 22px; font-weight: 900; }
.portfolio-empty p,
.portfolio-error-state p { max-width: 520px; margin: 8px 0 0; font-size: 13px; line-height: 1.85; }
.portfolio-empty .home-btn,
.portfolio-error-state .home-btn { margin-top: 18px; }

/* Listing hero */
.portfolio-index-hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  padding: 170px 0 92px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 24%, rgba(20, 125, 245, .28), transparent 33%),
    radial-gradient(circle at 86% 76%, rgba(32, 216, 243, .13), transparent 30%),
    linear-gradient(140deg, #020812 0%, #06182e 58%, #020a16 100%);
}
.portfolio-index-hero::before {
  content: "PORTFOLIO";
  position: absolute;
  inset-inline-start: -1.5vw;
  bottom: -3vw;
  color: rgba(255,255,255,.026);
  font: 900 clamp(96px, 16vw, 250px)/.75 "Manrope", sans-serif;
  letter-spacing: -.07em;
  pointer-events: none;
}
.portfolio-index-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
  pointer-events: none;
}
.portfolio-ambient { position: absolute; border-radius: 50%; filter: blur(4px); pointer-events: none; }
.portfolio-ambient--one { width: 330px; height: 330px; top: 9%; inset-inline-end: 2%; border: 1px solid rgba(32,216,243,.16); box-shadow: inset 0 0 90px rgba(32,216,243,.06); }
.portfolio-ambient--one::before,
.portfolio-ambient--one::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.07); }
.portfolio-ambient--one::before { inset: 34px; }
.portfolio-ambient--one::after { inset: 78px; background: rgba(32,216,243,.035); }
.portfolio-ambient--two { width: 130px; height: 130px; inset-inline-start: 43%; bottom: 8%; background: rgba(20,125,245,.16); filter: blur(55px); }
.portfolio-index-hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0,1.22fr) minmax(320px,.78fr); gap: 78px; align-items: end; }
.portfolio-index-hero__content { max-width: 760px; }
.portfolio-index-hero h1 {
  max-width: 800px;
  margin: 20px 0 22px;
  color: #fff;
  font-size: clamp(46px, 5.5vw, 78px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.045em;
}
.portfolio-index-hero h1 strong { display: block; color: transparent; background: linear-gradient(105deg, #fff 4%, #8eefff 64%, #29c8ff); -webkit-background-clip: text; background-clip: text; }
.portfolio-index-hero__content > p { max-width: 700px; margin: 0; color: rgba(224,235,248,.67); font-size: 15px; line-height: 1.95; }
.portfolio-index-hero__actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 31px; }
.portfolio-index-hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 30px;
  background: rgba(4, 17, 33, .62);
  box-shadow: 0 35px 90px rgba(0,0,0,.28);
  backdrop-filter: blur(19px);
  -webkit-backdrop-filter: blur(19px);
}
.portfolio-index-hero__stats article { min-height: 150px; padding: 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.portfolio-index-hero__stats article + article { border-inline-start: 1px solid rgba(255,255,255,.1); }
.portfolio-index-hero__stats article span,
.portfolio-index-hero__stats article small { display: block; color: rgba(225,238,249,.55); font-size: 10px; }
.portfolio-index-hero__stats article strong { display: block; margin: 12px 0 8px; color: #fff; font: 800 42px/1 "Manrope", "Cairo", sans-serif; }
.portfolio-index-hero__mark { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; min-height: 82px; padding: 17px 22px; }
.portfolio-index-hero__mark > span { color: rgba(255,255,255,.45); font: 800 10px "Manrope",sans-serif; letter-spacing: .18em; }
.portfolio-index-hero__mark i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #00111e; background: var(--home-cyan); box-shadow: 0 0 0 9px rgba(32,216,243,.09); font-style: normal; padding-inline-start: 3px; }
.portfolio-index-hero__mark small { color: rgba(255,255,255,.72); font-size: 11px; font-weight: 700; }

/* Listing library */
.portfolio-library { position: relative; padding: 102px 0 115px; background: #f6f9fd; }
.portfolio-library::before { content: ""; position: absolute; inset: 0; opacity: .5; background: radial-gradient(circle at 82% 8%, rgba(20,125,245,.10), transparent 25%); pointer-events: none; }
.portfolio-library .home-container { position: relative; }
.portfolio-library__head { display: flex; align-items: end; justify-content: space-between; gap: 42px; margin-bottom: 26px; }
.portfolio-library__head > div:first-child { max-width: 780px; }
.portfolio-search { position: relative; flex: 0 0 min(360px, 31vw); }
.portfolio-search svg { position: absolute; z-index: 1; top: 50%; inset-inline-start: 17px; width: 19px; transform: translateY(-50%); fill: none; stroke: #6b7d92; stroke-width: 1.7; stroke-linecap: round; }
.portfolio-search input { width: 100%; height: 55px; padding: 0 48px 0 18px; border: 1px solid rgba(6,30,62,.12); border-radius: 17px; outline: none; color: var(--home-ink); background: #fff; box-shadow: 0 12px 35px rgba(7,28,55,.055); font-size: 12px; transition: border .2s ease, box-shadow .2s ease; }
html[dir="ltr"] .portfolio-search input { padding: 0 18px 0 48px; }
.portfolio-search input:focus { border-color: rgba(20,125,245,.42); box-shadow: 0 0 0 4px rgba(20,125,245,.09), 0 12px 35px rgba(7,28,55,.07); }
.portfolio-filter-bar { display: flex; gap: 8px; margin-bottom: 25px; }
.portfolio-filter-bar button { display: inline-flex; align-items: center; gap: 9px; min-height: 43px; padding: 9px 13px; border: 1px solid rgba(6,30,62,.1); border-radius: 13px; color: #52657b; background: #fff; cursor: pointer; font-size: 11px; font-weight: 800; transition: .2s ease; }
.portfolio-filter-bar button b { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px; color: #6b7e93; background: #eef3f9; font: 750 9px "Manrope",sans-serif; }
.portfolio-filter-bar button:hover { transform: translateY(-1px); border-color: rgba(20,125,245,.27); }
.portfolio-filter-bar button.is-active { color: #fff; border-color: #0c73e2; background: linear-gradient(135deg,#147df5,#0865ce); box-shadow: 0 12px 28px rgba(20,125,245,.18); }
.portfolio-filter-bar button.is-active b { color: #052545; background: rgba(255,255,255,.8); }
.portfolio-profile-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 18px; }
.portfolio-skeleton { grid-column: span 4; min-height: 410px; border-radius: 28px; background: linear-gradient(100deg,#e9eef5 15%,#f7f9fc 35%,#e9eef5 55%); background-size: 220% 100%; animation: portfolio-shimmer 1.25s linear infinite; }
.portfolio-skeleton:first-child { grid-column: span 7; }
.portfolio-skeleton:nth-child(2) { grid-column: span 5; }
@keyframes portfolio-shimmer { to { background-position: -220% 0; } }

.portfolio-profile-card {
  position: relative;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 425px;
  overflow: hidden;
  border: 1px solid rgba(6,30,62,.1);
  border-radius: 29px;
  color: var(--home-ink);
  background: #fff;
  box-shadow: 0 20px 54px rgba(5,25,52,.075);
  isolation: isolate;
  transition: transform .35s cubic-bezier(.2,.75,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.portfolio-profile-card--lead { grid-column: span 7; min-height: 500px; }
.portfolio-profile-card--side { grid-column: span 5; min-height: 500px; }
.portfolio-profile-card--wide { grid-column: span 8; }
.portfolio-profile-card--compact { grid-column: span 4; }
.portfolio-profile-card:hover { transform: translateY(-8px); border-color: rgba(20,125,245,.25); box-shadow: 0 32px 75px rgba(5,25,52,.14); }
.portfolio-profile-card:focus-visible { outline: 3px solid rgba(32,216,243,.55); outline-offset: 4px; }
.portfolio-profile-card__media { position: relative; min-height: 245px; flex: 1; overflow: hidden; background: linear-gradient(135deg,#0d2b4f,#051326); }
.portfolio-profile-card--lead .portfolio-profile-card__media,
.portfolio-profile-card--side .portfolio-profile-card__media { min-height: 315px; }
.portfolio-profile-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(2,10,22,.02) 26%,rgba(2,10,22,.25) 66%,rgba(2,10,22,.78)); }
.portfolio-profile-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.75,.2,1), filter .5s ease; }
.portfolio-profile-card:hover .portfolio-profile-card__media > img { transform: scale(1.06); filter: saturate(1.08); }
.portfolio-profile-card__fallback { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.1); font: 900 clamp(76px,9vw,145px)/1 "Manrope","Cairo",sans-serif; background: radial-gradient(circle at 25% 20%,rgba(32,216,243,.17),transparent 45%),linear-gradient(145deg,#0b2646,#03101f); }
.portfolio-profile-card__badge { position: absolute; z-index: 3; top: 18px; inset-inline-start: 18px; display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 99px; color: #fff; background: rgba(3,14,29,.6); backdrop-filter: blur(10px); font-size: 9px; font-weight: 800; }
.portfolio-profile-card__badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--home-cyan); box-shadow: 0 0 0 5px rgba(32,216,243,.12); }
.portfolio-profile-card__count { position: absolute; z-index: 3; top: 18px; inset-inline-end: 18px; display: flex; align-items: baseline; gap: 5px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; color: rgba(255,255,255,.72); background: rgba(3,14,29,.56); backdrop-filter: blur(10px); font-size: 8px; }
.portfolio-profile-card__count b { color: #fff; font: 800 14px "Manrope",sans-serif; }
.portfolio-profile-card__avatar { position: absolute; z-index: 4; inset-inline-start: 21px; bottom: 18px; display: grid; place-items: center; width: 72px; height: 72px; overflow: hidden; border: 3px solid rgba(255,255,255,.9); border-radius: 22px; color: #fff; background: #fff; box-shadow: 0 13px 35px rgba(0,0,0,.27); font: 900 20px "Manrope","Cairo",sans-serif; }
.portfolio-profile-card[data-type="person"] .portfolio-profile-card__avatar { border-radius: 50%; }
.portfolio-profile-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-profile-card[data-type="brand"] .portfolio-profile-card__avatar img { object-fit: contain; padding: 8px; }
.portfolio-profile-card__body { display: flex; flex-direction: column; min-height: 180px; padding: 22px 23px 21px; }
.portfolio-profile-card__category { color: var(--home-blue); font-size: 10px; font-weight: 850; }
.portfolio-profile-card h3 { margin: 6px 0 7px; color: var(--home-ink); font-size: clamp(21px,2vw,28px); font-weight: 900; line-height: 1.35; }
.portfolio-profile-card__summary { display: -webkit-box; min-height: 43px; margin: 0; overflow: hidden; color: var(--home-muted); font-size: 11px; line-height: 1.85; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.portfolio-profile-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 17px; border-top: 1px solid var(--home-line); color: #50647b; font-size: 10px; font-weight: 800; }
.portfolio-profile-card__arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: var(--home-ink); transition: transform .3s ease, background .3s ease; }
.portfolio-profile-card:hover .portfolio-profile-card__arrow { transform: rotate(-45deg); background: var(--home-blue); }
html[dir="ltr"] .portfolio-profile-card:hover .portfolio-profile-card__arrow { transform: rotate(45deg); }

/* Listing CTA */
.portfolio-cta { position: relative; overflow: hidden; padding: 35px 0; color: #fff; background: linear-gradient(110deg,#0b6fe0,#00a9dd); }
.portfolio-cta::before { content: ""; position: absolute; width: 360px; height: 360px; inset-inline-end: -120px; top: -190px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 0 0 46px rgba(255,255,255,.035),0 0 0 92px rgba(255,255,255,.025); }
.portfolio-cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.portfolio-cta__inner span { display: block; color: rgba(255,255,255,.7); font-size: 10px; font-weight: 800; }
.portfolio-cta__inner h2 { margin: 5px 0 0; color: #fff; font-size: clamp(24px,3vw,38px); font-weight: 900; }
.portfolio-cta__inner .home-btn span { display: inline; color: #061a30; }
.portfolio-cta__inner .home-btn:hover span { color: #061a30; }
.home-btn--light { color: #06223c; background: #fff; box-shadow: 0 15px 35px rgba(0,0,0,.12); }

/* Profile loading and error */
.portfolio-profile-loading { min-height: 700px; padding: 150px 0 80px; background: #07162a; }
.portfolio-profile-loading .home-container { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.portfolio-profile-loading__cover { min-height: 470px; border-radius: 32px; background: linear-gradient(100deg,#0b203b 15%,#123457 35%,#0b203b 55%); background-size: 220% 100%; animation: portfolio-dark-shimmer 1.3s linear infinite; }
.portfolio-profile-loading__lines { display: grid; gap: 16px; }
.portfolio-profile-loading__lines span { height: 20px; border-radius: 99px; background: #0b203b; animation: portfolio-dark-shimmer 1.3s linear infinite; }
.portfolio-profile-loading__lines span:first-child { width: 56%; height: 60px; }
.portfolio-profile-loading__lines span:last-child { width: 73%; }
@keyframes portfolio-dark-shimmer { to { background-position: -220% 0; } }
.portfolio-profile-error { min-height: 720px; padding: 170px 0 100px; color: #fff; background: radial-gradient(circle at 50% 30%,rgba(20,125,245,.2),transparent 35%),#030b19; text-align: center; }
.portfolio-profile-error .home-container { display: flex; flex-direction: column; align-items: center; }
.portfolio-profile-error .home-container > span { display: grid; place-items: center; width: 76px; height: 76px; border: 1px solid rgba(255,255,255,.16); border-radius: 25px; color: var(--home-cyan); background: rgba(255,255,255,.05); font: 900 28px "Manrope",sans-serif; }
.portfolio-profile-error h1 { margin: 22px 0 8px; color: #fff; font-size: clamp(32px,5vw,58px); }
.portfolio-profile-error p { margin: 0 0 24px; color: rgba(255,255,255,.56); }

/* Profile hero */
.portfolio-profile-hero { position: relative; min-height: 700px; overflow: hidden; color: #fff; background: #030b19; }
.portfolio-profile-hero__background { position: absolute; inset: 0; background-position: center; background-size: cover; transform: scale(1.025); }
.portfolio-profile-hero__background::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 78% 20%,rgba(32,216,243,.08),transparent 32%),linear-gradient(145deg,#0b284a,#030b19); }
.portfolio-profile-hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(2,8,19,.96) 0%,rgba(2,8,19,.81) 42%,rgba(2,8,19,.42) 74%,rgba(2,8,19,.7) 100%); }
html[dir="ltr"] .portfolio-profile-hero__overlay { background: linear-gradient(270deg,rgba(2,8,19,.96) 0%,rgba(2,8,19,.81) 42%,rgba(2,8,19,.42) 74%,rgba(2,8,19,.7) 100%); }
.portfolio-profile-hero::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 180px; background: linear-gradient(transparent,#030b19); pointer-events: none; }
.portfolio-profile-hero__inner { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; min-height: 700px; padding-top: 122px; padding-bottom: 78px; }
.portfolio-breadcrumb { display: flex; align-items: center; gap: 9px; margin-bottom: 37px; color: rgba(255,255,255,.48); font-size: 10px; }
.portfolio-breadcrumb a { color: var(--home-cyan); font-weight: 800; }
.portfolio-breadcrumb b { max-width: 380px; overflow: hidden; color: rgba(255,255,255,.76); text-overflow: ellipsis; white-space: nowrap; }
.portfolio-profile-hero__content { display: grid; grid-template-columns: 112px minmax(0,760px) minmax(140px,1fr); gap: 26px; align-items: end; }
.portfolio-profile-avatar { display: grid; place-items: center; width: 112px; height: 112px; overflow: hidden; border: 4px solid rgba(255,255,255,.88); border-radius: 31px; color: #0a2a49; background: #fff; box-shadow: 0 24px 55px rgba(0,0,0,.34); font: 900 28px "Manrope","Cairo",sans-serif; }
.portfolio-profile-avatar.is-person { border-radius: 50%; }
.portfolio-profile-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.portfolio-profile-avatar.is-person img { object-fit: cover; padding: 0; }
.portfolio-profile-copy { min-width: 0; }
.portfolio-profile-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: rgba(255,255,255,.64); font-size: 10px; font-weight: 800; }
.portfolio-profile-meta span:first-child { color: var(--home-cyan); }
.portfolio-profile-meta i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.35); }
.portfolio-profile-copy h1 { margin: 7px 0 12px; color: #fff; font-size: clamp(42px,6vw,76px); font-weight: 900; line-height: 1.15; letter-spacing: -.04em; }
.portfolio-profile-copy > p { max-width: 700px; margin: 0; color: rgba(230,239,249,.64); font-size: 14px; line-height: 1.9; }
.portfolio-profile-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.portfolio-profile-actions .home-btn--ghost { border-color: rgba(255,255,255,.18); color: #fff; background: rgba(255,255,255,.065); }
.portfolio-profile-count { align-self: end; justify-self: end; min-width: 165px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.14); border-radius: 22px; background: rgba(3,15,31,.52); backdrop-filter: blur(14px); }
.portfolio-profile-count strong,
.portfolio-profile-count span { display: block; }
.portfolio-profile-count strong { color: #fff; font: 800 42px/1 "Manrope",sans-serif; }
.portfolio-profile-count span { margin-top: 8px; color: rgba(255,255,255,.56); font-size: 9px; }

/* Video library */
.portfolio-video-library { position: relative; padding: 96px 0 112px; background: #f7f9fc; }
.portfolio-video-library__head { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 30px; }
.portfolio-video-library__head > div:first-child { max-width: 790px; }
.portfolio-video-filter { display: flex; gap: 7px; flex: 0 0 auto; }
.portfolio-video-filter button { min-height: 43px; padding: 9px 14px; border: 1px solid rgba(6,30,62,.1); border-radius: 13px; color: #60728a; background: #fff; cursor: pointer; font-size: 10px; font-weight: 800; }
.portfolio-video-filter button:hover { border-color: rgba(20,125,245,.28); }
.portfolio-video-filter button.is-active { color: #fff; border-color: var(--home-blue); background: var(--home-blue); box-shadow: 0 10px 25px rgba(20,125,245,.18); }
.portfolio-video-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.portfolio-video-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(6,30,62,.1);
  border-radius: 25px;
  color: var(--home-ink);
  background: #fff;
  box-shadow: 0 18px 48px rgba(5,25,52,.07);
  cursor: pointer;
  text-align: inherit;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.portfolio-video-card:hover { transform: translateY(-7px); border-color: rgba(20,125,245,.25); box-shadow: 0 28px 64px rgba(5,25,52,.13); }
.portfolio-video-card:focus-visible { outline: 3px solid rgba(20,125,245,.35); outline-offset: 4px; }
.portfolio-video-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(145deg,#09284a,#040e1c); }
.portfolio-video-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(2,8,20,.02),rgba(2,8,20,.42)); transition: background .3s ease; }
.portfolio-video-card:hover .portfolio-video-card__media::after { background: linear-gradient(180deg,rgba(2,8,20,.02),rgba(2,8,20,.27)); }
.portfolio-video-card__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.portfolio-video-card:hover .portfolio-video-card__media > img { transform: scale(1.045); }
.portfolio-video-card__fallback { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.14); font: 900 50px "Manrope",sans-serif; }
.portfolio-video-card__provider { position: absolute; z-index: 3; top: 14px; inset-inline-start: 14px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.17); border-radius: 99px; color: #fff; background: rgba(3,13,27,.62); backdrop-filter: blur(9px); font: 750 8px "Manrope",sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.portfolio-video-card__duration { position: absolute; z-index: 3; inset-inline-end: 14px; bottom: 13px; padding: 5px 7px; border-radius: 8px; color: #fff; background: rgba(2,8,18,.74); font: 750 9px "Manrope",sans-serif; }
.portfolio-video-card__play { position: absolute; z-index: 4; top: 50%; left: 50%; display: grid; place-items: center; width: 62px; height: 62px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; color: #061a2d; background: rgba(255,255,255,.92); box-shadow: 0 15px 38px rgba(0,0,0,.22); transform: translate(-50%,-50%); transition: transform .3s ease, background .3s ease; font-size: 16px; padding-inline-start: 4px; }
.portfolio-video-card:hover .portfolio-video-card__play { transform: translate(-50%,-50%) scale(1.08); background: var(--home-cyan); }
.portfolio-video-card__body { padding: 18px 20px 19px; }
.portfolio-video-card__topline { display: flex; align-items: center; gap: 7px; color: var(--home-blue); font-size: 8px; font-weight: 850; }
.portfolio-video-card__topline i { width: 16px; height: 1px; background: currentColor; }
.portfolio-video-card h3 { margin: 7px 0 5px; color: var(--home-ink); font-size: 18px; font-weight: 900; line-height: 1.45; }
.portfolio-video-card p { display: -webkit-box; min-height: 38px; margin: 0; overflow: hidden; color: var(--home-muted); font-size: 10px; line-height: 1.8; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.portfolio-video-card__watch { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--home-line); color: #52667c; font-size: 9px; font-weight: 800; }
.portfolio-video-card__watch span:last-child { color: var(--home-blue); font-size: 15px; }
.portfolio-video-card[data-orientation="portrait"] .portfolio-video-card__media::before { content: "REELS 9:16"; position: absolute; z-index: 3; inset-inline-end: 14px; top: 14px; padding: 5px 7px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; color: rgba(255,255,255,.8); background: rgba(3,13,27,.58); font: 750 7px "Manrope",sans-serif; }
.portfolio-video-card[data-orientation="square"] .portfolio-video-card__media::before { content: "1:1"; position: absolute; z-index: 3; inset-inline-end: 14px; top: 14px; padding: 5px 7px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; color: rgba(255,255,255,.8); background: rgba(3,13,27,.58); font: 750 7px "Manrope",sans-serif; }

/* Back section + floating action */
.portfolio-profile-next { padding: 28px 0; color: #fff; background: #061426; }
.portfolio-profile-next__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.portfolio-profile-next__inner > a:first-child { display: flex; align-items: center; gap: 15px; min-width: 0; }
.portfolio-profile-next__inner > a:first-child > span { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; color: var(--home-cyan); background: rgba(255,255,255,.055); transition: transform .25s ease,background .25s ease; }
.portfolio-profile-next__inner > a:first-child:hover > span { transform: translateX(4px); background: rgba(32,216,243,.11); }
html[dir="ltr"] .portfolio-profile-next__inner > a:first-child:hover > span { transform: translateX(-4px); }
.portfolio-profile-next__inner small,
.portfolio-profile-next__inner strong { display: block; }
.portfolio-profile-next__inner small { color: rgba(255,255,255,.44); font-size: 9px; }
.portfolio-profile-next__inner strong { margin-top: 4px; color: #fff; font-size: 13px; }
.portfolio-floating-back { position: fixed; z-index: 800; inset-inline-start: 18px; bottom: 18px; display: flex; align-items: center; gap: 9px; min-height: 47px; padding: 8px 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; color: #fff !important; background: rgba(3,12,25,.83); box-shadow: 0 16px 45px rgba(0,0,0,.27); backdrop-filter: blur(15px); font-size: 10px; transition: transform .2s ease,background .2s ease; }
.portfolio-floating-back:hover { transform: translateY(-3px); background: #0a6fde; }
.portfolio-floating-back span { color: var(--home-cyan); font-size: 16px; }

/* Video player modal */
body.portfolio-modal-open { overflow: hidden !important; }
.portfolio-player { position: fixed; z-index: 5000; inset: 0; display: grid; place-items: center; padding: 24px; }
.portfolio-player__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(1,5,12,.91); backdrop-filter: blur(18px); cursor: default; }
.portfolio-player__dialog { position: relative; z-index: 2; width: min(1180px,calc(100vw - 48px)); max-height: calc(100vh - 48px); overflow: auto; border: 1px solid rgba(255,255,255,.14); border-radius: 26px; color: #fff; background: #061426; box-shadow: 0 38px 130px rgba(0,0,0,.6); scrollbar-width: thin; }
.portfolio-player.is-portrait .portfolio-player__dialog { width: min(540px,calc(100vw - 48px)); }
.portfolio-player.is-square .portfolio-player__dialog { width: min(820px,calc(100vw - 48px)); }
.portfolio-player__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 10px 13px 10px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.portfolio-player__top > a { display: inline-flex; align-items: center; gap: 9px; color: rgba(255,255,255,.78); font-size: 10px; }
.portfolio-player__top > a span { color: var(--home-cyan); font-size: 16px; }
.portfolio-player__top > button { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; color: #fff; background: rgba(255,255,255,.06); cursor: pointer; font-size: 22px; line-height: 1; }
.portfolio-player__top > button:hover { background: rgba(255,255,255,.14); }
.portfolio-player__media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.portfolio-player.is-portrait .portfolio-player__media { aspect-ratio: 9 / 16; max-height: calc(100vh - 240px); }
.portfolio-player.is-square .portfolio-player__media { aspect-ratio: 1 / 1; max-height: calc(100vh - 240px); }
.portfolio-player__media iframe,
.portfolio-player__media video { display: block; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }
.portfolio-player__caption { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 20px 22px 22px; }
.portfolio-player__caption > div { min-width: 0; }
.portfolio-player__caption > div > span { display: block; color: var(--home-cyan); font: 800 8px "Manrope",sans-serif; letter-spacing: .15em; }
.portfolio-player__caption h2 { margin: 5px 0 3px; color: #fff; font-size: clamp(19px,2.5vw,29px); line-height: 1.4; }
.portfolio-player__caption p { max-width: 760px; margin: 0; color: rgba(255,255,255,.5); font-size: 10px; line-height: 1.8; }
.portfolio-player__caption .home-btn { flex: 0 0 auto; min-height: 43px; padding: 9px 14px; border-color: rgba(255,255,255,.15); color: #fff; background: rgba(255,255,255,.055); font-size: 9px; }

/* Responsive */
@media (max-width: 1050px) {
  .portfolio-index-hero__grid { grid-template-columns: 1fr; gap: 45px; }
  .portfolio-index-hero__stats { max-width: 620px; }
  .portfolio-library__head { align-items: stretch; flex-direction: column; gap: 20px; }
  .portfolio-search { flex-basis: auto; width: min(100%,440px); }
  .portfolio-profile-card { grid-column: span 6; }
  .portfolio-profile-card--lead,
  .portfolio-profile-card--side,
  .portfolio-profile-card--wide,
  .portfolio-profile-card--compact { grid-column: span 6; min-height: 430px; }
  .portfolio-profile-hero__content { grid-template-columns: 96px minmax(0,1fr); }
  .portfolio-profile-avatar { width: 96px; height: 96px; }
  .portfolio-profile-count { grid-column: 2; justify-self: start; display: flex; align-items: baseline; gap: 10px; min-width: 0; margin-top: 4px; padding: 11px 15px; }
  .portfolio-profile-count strong { font-size: 25px; }
  .portfolio-profile-count span { margin: 0; }
  .portfolio-video-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 700px) {
  .portfolio-index-hero { min-height: 0; padding: 128px 0 68px; }
  .portfolio-index-hero::before { bottom: 12px; font-size: 30vw; }
  .portfolio-ambient--one { width: 210px; height: 210px; top: 11%; inset-inline-end: -90px; }
  .portfolio-index-hero h1 { max-width: 390px; margin: 17px 0 16px; font-size: clamp(38px,11vw,50px); line-height: 1.2; }
  .portfolio-index-hero__content > p { font-size: 12px; line-height: 1.85; }
  .portfolio-index-hero__actions { margin-top: 23px; }
  .portfolio-index-hero__actions .home-btn { flex: 1; min-width: 145px; }
  .portfolio-index-hero__stats { grid-template-columns: 1fr 1fr; border-radius: 23px; }
  .portfolio-index-hero__stats article { min-height: 120px; padding: 18px; }
  .portfolio-index-hero__stats article strong { font-size: 31px; }
  .portfolio-index-hero__mark { min-height: 68px; padding: 12px 16px; }
  .portfolio-index-hero__mark i { width: 40px; height: 40px; }
  .portfolio-library { padding: 68px 0 76px; }
  .portfolio-filter-bar { overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .portfolio-filter-bar::-webkit-scrollbar { display: none; }
  .portfolio-filter-bar button { flex: 0 0 auto; }
  .portfolio-profile-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(285px,86vw);
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-inline: -12px;
    padding: 4px 12px 19px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .portfolio-profile-grid::-webkit-scrollbar { display: none; }
  .portfolio-profile-card,
  .portfolio-profile-card--lead,
  .portfolio-profile-card--side,
  .portfolio-profile-card--wide,
  .portfolio-profile-card--compact { grid-column: auto; width: auto; min-height: 415px; scroll-snap-align: center; }
  .portfolio-profile-card__media,
  .portfolio-profile-card--lead .portfolio-profile-card__media,
  .portfolio-profile-card--side .portfolio-profile-card__media { min-height: 245px; }
  .portfolio-profile-card__avatar { width: 62px; height: 62px; border-radius: 19px; }
  .portfolio-profile-card h3 { font-size: 22px; }
  .portfolio-skeleton { grid-column: auto !important; min-height: 415px; scroll-snap-align: center; }
  .portfolio-empty,
  .portfolio-error-state { width: calc(100vw - 24px); min-height: 270px; }
  .portfolio-cta { padding: 31px 0; }
  .portfolio-cta__inner { align-items: stretch; flex-direction: column; }
  .portfolio-cta__inner .home-btn { width: 100%; }

  .portfolio-profile-loading { min-height: 600px; padding: 120px 0 65px; }
  .portfolio-profile-loading .home-container { grid-template-columns: 1fr; gap: 25px; }
  .portfolio-profile-loading__cover { min-height: 320px; }
  .portfolio-profile-hero { min-height: 0; }
  .portfolio-profile-hero__overlay { background: linear-gradient(180deg,rgba(2,8,19,.64),rgba(2,8,19,.91) 55%,#030b19 100%); }
  html[dir="ltr"] .portfolio-profile-hero__overlay { background: linear-gradient(180deg,rgba(2,8,19,.64),rgba(2,8,19,.91) 55%,#030b19 100%); }
  .portfolio-profile-hero__inner { min-height: 650px; padding-top: 113px; padding-bottom: 54px; }
  .portfolio-breadcrumb { margin-bottom: 90px; }
  .portfolio-profile-hero__content { grid-template-columns: 78px minmax(0,1fr); gap: 17px; align-items: start; }
  .portfolio-profile-avatar { width: 78px; height: 78px; border-width: 3px; border-radius: 23px; font-size: 21px; }
  .portfolio-profile-copy h1 { margin-top: 6px; font-size: clamp(34px,10vw,47px); }
  .portfolio-profile-copy > p { grid-column: 1/-1; font-size: 12px; }
  .portfolio-profile-actions { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr; }
  .portfolio-profile-actions .home-btn { min-height: 47px; padding: 10px 12px; font-size: 10px; }
  .portfolio-profile-actions [data-profile-website] { grid-column: 1/-1; }
  .portfolio-profile-count { grid-column: 1/-1; justify-self: stretch; justify-content: center; margin-top: 10px; }
  .portfolio-video-library { padding: 68px 0 76px; }
  .portfolio-video-library__head { align-items: stretch; flex-direction: column; gap: 20px; }
  .portfolio-video-filter { overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
  .portfolio-video-filter::-webkit-scrollbar { display: none; }
  .portfolio-video-filter button { flex: 1; min-width: 76px; }
  .portfolio-video-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(282px,86vw);
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-inline: -12px;
    padding: 4px 12px 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .portfolio-video-grid::-webkit-scrollbar { display: none; }
  .portfolio-video-card { scroll-snap-align: center; }
  .portfolio-video-card__play { width: 55px; height: 55px; }
  .portfolio-profile-next__inner { align-items: stretch; flex-direction: column; }
  .portfolio-profile-next__inner .home-btn { width: 100%; }
  .portfolio-floating-back { inset-inline-start: 12px; bottom: 12px; min-height: 43px; padding: 7px 11px; }
  .portfolio-player { padding: 0; }
  .portfolio-player__dialog,
  .portfolio-player.is-portrait .portfolio-player__dialog,
  .portfolio-player.is-square .portfolio-player__dialog { width: 100%; max-height: 100vh; min-height: 100dvh; border: 0; border-radius: 0; }
  .portfolio-player__top { min-height: 57px; }
  .portfolio-player__media { width: 100%; aspect-ratio: 16/9; }
  .portfolio-player.is-portrait .portfolio-player__media { width: min(100%,450px); max-height: calc(100dvh - 205px); margin-inline: auto; }
  .portfolio-player.is-square .portfolio-player__media { max-height: calc(100dvh - 205px); }
  .portfolio-player__caption { align-items: stretch; flex-direction: column; gap: 14px; padding: 17px 16px 21px; }
  .portfolio-player__caption .home-btn { width: 100%; }
}

@media (max-width: 420px) {
  .portfolio-index-hero__stats article { padding: 15px; }
  .portfolio-index-hero__stats article span { font-size: 8px; }
  .portfolio-index-hero__mark { grid-template-columns: auto auto 1fr; gap: 10px; }
  .portfolio-profile-actions { grid-template-columns: 1fr; }
  .portfolio-profile-actions [data-profile-website] { grid-column: auto; }
  .portfolio-video-card__body { padding: 16px; }
  .portfolio-floating-back b { display: none; }
  .portfolio-floating-back { width: 44px; padding: 0; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-v610-page *,
  .portfolio-v610-page *::before,
  .portfolio-v610-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.portfolio-profile-card__avatar .portfolio-profile-card__fallback { color:#0a3154; background:#fff; font-size:18px; }

/* =========================================================
   BLUE STUDIO Portfolio V6.10.1
   Inline player, balanced sizing, manual client counter
   ========================================================= */

/* Portfolio listing hero */
.portfolio-index-hero {
  min-height: 640px;
  padding: 152px 0 86px;
}
.portfolio-index-hero__grid {
  grid-template-columns: minmax(0,1.1fr) minmax(360px,.68fr);
  gap: clamp(42px,5.6vw,82px);
  align-items: center;
}
.portfolio-index-hero__content { max-width: 735px; }
.portfolio-index-hero h1 {
  max-width: 735px;
  margin: 18px 0 20px;
  font-size: clamp(44px,5vw,72px);
  line-height: 1.18;
}
.portfolio-index-hero__content > p {
  max-width: 650px;
  font-size: 14px;
  line-height: 1.95;
}
.portfolio-index-hero__stats {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 30px;
}
.portfolio-index-hero__stats > article,
.portfolio-index-hero__mini-stats article {
  min-height: 0;
  border: 0;
}
.portfolio-index-hero__stats > article + article { border-inline-start: 0; }
.portfolio-index-hero__clients {
  position: relative;
  padding: 29px 29px 25px !important;
  border-bottom: 1px solid rgba(255,255,255,.1) !important;
  background: linear-gradient(145deg,rgba(20,125,245,.18),rgba(32,216,243,.035));
}
.portfolio-index-hero__clients::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  inset-inline-end: -62px;
  top: -72px;
  border: 1px solid rgba(32,216,243,.22);
  border-radius: 50%;
  box-shadow: 0 0 0 25px rgba(32,216,243,.025),0 0 0 52px rgba(32,216,243,.018);
  pointer-events: none;
}
.portfolio-index-hero__clients > span {
  color: rgba(224,239,250,.66) !important;
  font-size: 10px !important;
  font-weight: 800;
}
.portfolio-index-hero__client-number {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 12px 0 7px;
  color: #fff;
  white-space: nowrap;
}
.portfolio-index-hero__client-number b {
  color: var(--home-cyan);
  font: 800 34px/1 "Manrope",sans-serif;
}
.portfolio-index-hero__client-number strong {
  margin: 0 !important;
  color: #fff;
  font: 850 clamp(58px,5.8vw,82px)/.9 "Manrope","Cairo",sans-serif !important;
  letter-spacing: -.055em;
}
.portfolio-index-hero__clients > small {
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 850;
}
.portfolio-index-hero__clients > p {
  max-width: 330px;
  margin: 9px 0 0;
  color: rgba(224,238,250,.5);
  font-size: 10px;
  line-height: 1.75;
}
.portfolio-index-hero__mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.portfolio-index-hero__mini-stats article {
  padding: 18px 22px 19px !important;
  background: rgba(255,255,255,.015);
}
.portfolio-index-hero__mini-stats article + article {
  border-inline-start: 1px solid rgba(255,255,255,.1) !important;
}
.portfolio-index-hero__mini-stats article span,
.portfolio-index-hero__mini-stats article small {
  color: rgba(225,238,249,.5);
  font-size: 9px;
}
.portfolio-index-hero__mini-stats article strong {
  margin: 9px 0 6px;
  font-size: 30px;
}
.portfolio-index-hero__mark {
  display: flex;
  grid-template-columns: none;
  gap: 14px;
  min-height: 72px;
  padding: 14px 21px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.portfolio-index-hero__mark i {
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
  font-size: 12px;
}
.portfolio-index-hero__mark > div { min-width: 0; }
.portfolio-index-hero__mark strong,
.portfolio-index-hero__mark small { display: block; }
.portfolio-index-hero__mark strong { color: #fff; font-size: 11px; }
.portfolio-index-hero__mark small { margin-top: 3px; color: rgba(255,255,255,.5); font-size: 9px; line-height: 1.55; }

/* Equal portfolio cards */
.portfolio-profile-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
}
.portfolio-skeleton,
.portfolio-skeleton:first-child,
.portfolio-skeleton:nth-child(2) {
  grid-column: auto;
  min-height: 430px;
}
.portfolio-profile-card,
.portfolio-profile-card--lead,
.portfolio-profile-card--side,
.portfolio-profile-card--wide,
.portfolio-profile-card--compact {
  grid-column: auto;
  min-height: 430px;
  border-radius: 26px;
}
.portfolio-profile-card__media,
.portfolio-profile-card--lead .portfolio-profile-card__media,
.portfolio-profile-card--side .portfolio-profile-card__media {
  min-height: 0;
  flex: 0 0 auto;
  aspect-ratio: 16 / 10;
}
.portfolio-profile-card__body {
  min-height: 190px;
  padding: 21px 22px 20px;
}
.portfolio-profile-card h3 {
  min-height: 35px;
  margin: 6px 0 6px;
  font-size: clamp(20px,1.65vw,24px);
  line-height: 1.45;
}
.portfolio-profile-card__summary {
  display: -webkit-box;
  min-height: 46px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.portfolio-profile-card__footer { margin-top: auto; }

/* More compact profile header */
.portfolio-profile-hero { min-height: 555px; }
.portfolio-profile-hero::after { height: 125px; }
.portfolio-profile-hero__inner {
  min-height: 555px;
  padding-top: 116px;
  padding-bottom: 58px;
}
.portfolio-breadcrumb { margin-bottom: 28px; }
.portfolio-profile-hero__content {
  grid-template-columns: 94px minmax(0,720px) minmax(135px,1fr);
  gap: 22px;
  align-items: center;
}
.portfolio-profile-avatar {
  width: 94px;
  height: 94px;
  border-radius: 27px;
  font-size: 24px;
}
.portfolio-profile-copy h1 {
  margin: 6px 0 9px;
  font-size: clamp(38px,4.6vw,61px);
  line-height: 1.17;
}
.portfolio-profile-copy > p {
  max-width: 660px;
  font-size: 12px;
  line-height: 1.85;
}
.portfolio-profile-actions { margin-top: 20px; }
.portfolio-profile-actions .home-btn {
  min-height: 47px;
  padding: 10px 15px;
}
.portfolio-profile-count {
  min-width: 150px;
  padding: 16px 18px;
  border-radius: 19px;
}
.portfolio-profile-count strong { font-size: 36px; }

/* Inline video player */
.portfolio-video-library { padding: 78px 0 96px; }
.portfolio-video-library__head { margin-bottom: 26px; }
.portfolio-inline-player {
  scroll-margin-top: 102px;
  margin: 0 0 34px;
  overflow: hidden;
  border: 1px solid rgba(12,48,86,.14);
  border-radius: 30px;
  color: #fff;
  background: #041224;
  box-shadow: 0 28px 78px rgba(5,25,52,.18);
}
.portfolio-inline-player[hidden] { display: none !important; }
.portfolio-inline-player__stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.portfolio-inline-player__ambient {
  position: absolute;
  inset: -38px;
  opacity: .32;
  background-position: center;
  background-size: cover;
  filter: blur(34px) saturate(1.15);
  transform: scale(1.08);
}
.portfolio-inline-player__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,rgba(4,18,36,.26),rgba(0,0,0,.12));
  pointer-events: none;
}
.portfolio-inline-player__media {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(14px,2vw,26px);
}
.portfolio-inline-player__frame {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 15px;
  background: #000;
  box-shadow: 0 22px 70px rgba(0,0,0,.38);
}
.portfolio-inline-player__frame.is-landscape { width: 100%; height: 100%; aspect-ratio: 16 / 9; }
.portfolio-inline-player__frame.is-portrait { height: 100%; aspect-ratio: 9 / 16; }
.portfolio-inline-player__frame.is-square { height: 100%; aspect-ratio: 1 / 1; }
.portfolio-inline-player__frame iframe,
.portfolio-inline-player__frame video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  object-fit: contain;
}
.portfolio-inline-player__error {
  position: relative;
  z-index: 3;
  width: min(100%,620px);
  min-height: 260px;
  border-color: rgba(255,255,255,.13);
  color: rgba(255,255,255,.66);
  background: rgba(4,18,36,.9);
}
.portfolio-inline-player__error h3 { color: #fff; }
.portfolio-inline-player__details {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 23px 25px 25px;
  border-top: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(135deg,#06182e,#041020);
}
.portfolio-inline-player__copy { min-width: 0; }
.portfolio-inline-player__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--home-cyan);
  font: 800 8px "Manrope","Cairo",sans-serif;
  letter-spacing: .08em;
}
.portfolio-inline-player__meta i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.3); }
.portfolio-inline-player__copy h3 {
  margin: 7px 0 5px;
  color: #fff;
  font-size: clamp(20px,2.5vw,31px);
  font-weight: 900;
  line-height: 1.45;
}
.portfolio-inline-player__copy p {
  max-width: 820px;
  margin: 0;
  color: rgba(230,239,249,.53);
  font-size: 11px;
  line-height: 1.8;
}
.portfolio-inline-player__controls {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
}
.portfolio-inline-player__controls > span {
  min-width: 58px;
  color: rgba(255,255,255,.48);
  font: 750 10px "Manrope","Cairo",sans-serif;
  text-align: center;
}
.portfolio-inline-player__controls > div { display: flex; gap: 7px; }
.portfolio-inline-player__controls button {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 13px;
  color: #fff;
  background: rgba(255,255,255,.055);
  cursor: pointer;
  font-size: 17px;
  transition: transform .2s ease,background .2s ease,border-color .2s ease;
}
.portfolio-inline-player__controls button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(32,216,243,.35);
  background: rgba(32,216,243,.12);
}
.portfolio-inline-player__controls button:disabled { opacity: .32; cursor: not-allowed; }
.portfolio-video-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 16px;
  padding-top: 3px;
}
.portfolio-video-list-head strong,
.portfolio-video-list-head small { display: block; }
.portfolio-video-list-head strong { color: var(--home-ink); font-size: 14px; font-weight: 900; }
.portfolio-video-list-head small { margin-top: 3px; color: var(--home-muted); font-size: 9px; }
.portfolio-video-list-head > span {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid rgba(20,125,245,.12);
  border-radius: 99px;
  color: var(--home-blue);
  background: rgba(20,125,245,.06);
  font-size: 9px;
  font-weight: 850;
}

/* Balanced video cards */
.portfolio-video-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
}
.portfolio-video-card {
  min-height: 390px;
  border-radius: 23px;
}
.portfolio-video-card.is-active {
  border-color: rgba(20,125,245,.58);
  box-shadow: 0 0 0 3px rgba(20,125,245,.09),0 25px 64px rgba(5,25,52,.14);
}
.portfolio-video-card.is-active:hover { transform: translateY(-3px); }
.portfolio-video-card__media { aspect-ratio: 16 / 9; }
.portfolio-video-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 185px;
  padding: 18px 19px 18px;
}
.portfolio-video-card h3 {
  display: -webkit-box;
  min-height: 51px;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.portfolio-video-card p {
  min-height: 38px;
  font-size: 9px;
}
.portfolio-video-card__watch { margin-top: auto; }
.portfolio-video-card.is-active .portfolio-video-card__play {
  color: #fff;
  border-color: rgba(255,255,255,.24);
  background: rgba(20,125,245,.92);
  font-size: 11px;
  letter-spacing: -2px;
}
.portfolio-video-card.is-active .portfolio-video-card__watch { color: var(--home-blue); }

@media (max-width: 1050px) {
  .portfolio-index-hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .portfolio-index-hero__stats { width: min(100%,720px); max-width: none; }
  .portfolio-profile-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .portfolio-profile-hero__content { grid-template-columns: 88px minmax(0,1fr); }
  .portfolio-profile-avatar { width: 88px; height: 88px; }
  .portfolio-profile-count { grid-column: 2; justify-self: start; }
  .portfolio-video-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 700px) {
  .portfolio-index-hero {
    min-height: 0;
    padding: 119px 0 62px;
  }
  .portfolio-index-hero__grid { gap: 30px; }
  .portfolio-index-hero h1 {
    max-width: 420px;
    margin: 15px 0 15px;
    font-size: clamp(36px,10.5vw,49px);
    line-height: 1.2;
  }
  .portfolio-index-hero__content > p { font-size: 11px; line-height: 1.85; }
  .portfolio-index-hero__actions { margin-top: 21px; }
  .portfolio-index-hero__stats { border-radius: 23px; }
  .portfolio-index-hero__clients { padding: 23px 21px 20px !important; }
  .portfolio-index-hero__client-number strong { font-size: clamp(56px,18vw,75px) !important; }
  .portfolio-index-hero__client-number b { font-size: 28px; }
  .portfolio-index-hero__clients > small { font-size: 12px !important; }
  .portfolio-index-hero__mini-stats article { padding: 15px 16px 16px !important; }
  .portfolio-index-hero__mini-stats article strong { font-size: 27px; }
  .portfolio-index-hero__mark { min-height: 66px; padding: 12px 16px; }
  .portfolio-index-hero__mark i { width: 39px; height: 39px; }

  .portfolio-library { padding: 64px 0 72px; }
  .portfolio-profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 14px;
    overflow: visible;
    margin-inline: 0;
    padding: 0;
    scroll-snap-type: none;
  }
  .portfolio-profile-card,
  .portfolio-profile-card--lead,
  .portfolio-profile-card--side,
  .portfolio-profile-card--wide,
  .portfolio-profile-card--compact {
    width: 100%;
    min-height: 0;
    scroll-snap-align: none;
  }
  .portfolio-profile-card__media,
  .portfolio-profile-card--lead .portfolio-profile-card__media,
  .portfolio-profile-card--side .portfolio-profile-card__media { aspect-ratio: 16 / 10; }
  .portfolio-profile-card__body { min-height: 175px; }
  .portfolio-skeleton,
  .portfolio-skeleton:first-child,
  .portfolio-skeleton:nth-child(2) {
    width: 100%;
    min-height: 410px;
    scroll-snap-align: none;
  }
  .portfolio-empty,
  .portfolio-error-state { width: 100%; }

  .portfolio-profile-loading { min-height: 520px; padding: 112px 0 52px; }
  .portfolio-profile-hero { min-height: 515px; }
  .portfolio-profile-hero__inner {
    min-height: 515px;
    padding-top: 105px;
    padding-bottom: 43px;
  }
  .portfolio-breadcrumb { margin-bottom: 32px; }
  .portfolio-profile-hero__content {
    grid-template-columns: 72px minmax(0,1fr);
    gap: 15px;
  }
  .portfolio-profile-avatar { width: 72px; height: 72px; border-radius: 21px; font-size: 20px; }
  .portfolio-profile-copy h1 { margin-top: 5px; font-size: clamp(31px,9vw,43px); }
  .portfolio-profile-copy > p { font-size: 11px; line-height: 1.8; }
  .portfolio-profile-actions { gap: 7px; margin-top: 17px; }
  .portfolio-profile-actions .home-btn { min-height: 45px; }
  .portfolio-profile-count { margin-top: 6px; padding: 10px 14px; }
  .portfolio-profile-count strong { font-size: 27px; }

  .portfolio-video-library { padding: 62px 0 72px; }
  .portfolio-video-library__head { gap: 17px; margin-bottom: 21px; }
  .portfolio-video-filter button { min-width: 70px; }
  .portfolio-inline-player {
    margin-bottom: 27px;
    border-radius: 22px;
    box-shadow: 0 22px 58px rgba(5,25,52,.16);
  }
  .portfolio-inline-player__media { padding: 0; }
  .portfolio-inline-player__frame { border: 0; border-radius: 0; box-shadow: none; }
  .portfolio-inline-player__stage,
  .portfolio-inline-player__stage.is-landscape { aspect-ratio: 16 / 9; }
  .portfolio-inline-player.is-portrait .portfolio-inline-player__stage {
    width: min(100%,420px);
    margin-inline: auto;
    aspect-ratio: 9 / 16;
  }
  .portfolio-inline-player.is-square .portfolio-inline-player__stage {
    width: min(100%,560px);
    margin-inline: auto;
    aspect-ratio: 1 / 1;
  }
  .portfolio-inline-player__frame.is-landscape,
  .portfolio-inline-player__frame.is-portrait,
  .portfolio-inline-player__frame.is-square { width: 100%; height: 100%; aspect-ratio: auto; }
  .portfolio-inline-player__details {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 18px 17px 19px;
  }
  .portfolio-inline-player__copy h3 { font-size: 20px; }
  .portfolio-inline-player__copy p { font-size: 10px; }
  .portfolio-inline-player__controls { justify-content: space-between; }
  .portfolio-inline-player__controls button { width: 41px; height: 41px; }
  .portfolio-video-list-head { align-items: flex-end; }

  .portfolio-video-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 14px;
    overflow: visible;
    margin-inline: 0;
    padding: 0;
    scroll-snap-type: none;
  }
  .portfolio-video-card {
    width: 100%;
    min-height: 0;
    scroll-snap-align: none;
  }
  .portfolio-video-card__body { min-height: 175px; }
  .portfolio-floating-back { bottom: 13px; }
}

@media (max-width: 420px) {
  .portfolio-index-hero__actions { display: grid; grid-template-columns: 1fr; }
  .portfolio-index-hero__actions .home-btn { width: 100%; }
  .portfolio-index-hero__mini-stats article { padding-inline: 13px !important; }
  .portfolio-index-hero__mini-stats article span,
  .portfolio-index-hero__mini-stats article small { font-size: 8px; }
  .portfolio-index-hero__mark { gap: 10px; }
  .portfolio-index-hero__mark strong { font-size: 10px; }
  .portfolio-index-hero__mark small { font-size: 8px; }
  .portfolio-profile-actions { grid-template-columns: 1fr; }
  .portfolio-video-filter { width: 100%; }
  .portfolio-video-filter button { min-width: 66px; padding-inline: 10px; }
  .portfolio-video-list-head small { max-width: 220px; }
  .portfolio-video-card h3 { min-height: 48px; font-size: 16px; }
}
