[data-deferred][hidden] {
  display: none !important;
}
[data-release-hidden] {
  display: none !important;
}
.portfolio-release {
  padding: 0 clamp(16px, 2.2vw, 44px);
  scroll-margin-top: 100px;
}
.portfolio-banners {
  display: grid;
  gap: clamp(20px, 3vw, 48px);
}
.portfolio-banner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  aspect-ratio: 2.35;
  min-height: 340px;
  overflow: hidden;
  border-radius: clamp(24px, 2.5vw, 42px);
  background: #17202b;
  color: #fff;
  box-shadow: 0 20px 60px #17202b0e;
}
.portfolio-banner > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.portfolio-banner[data-resolved-fit='contain'] > img {
  padding: 18px;
  object-fit: contain;
}
@media (max-width: 760px) {
  .portfolio-banner[data-resolved-fit='contain'] > img {
    padding: 12px;
  }
}
.portfolio-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, #080e1700 12%, #080e172b 40%, #080e17a8 100%),
    linear-gradient(90deg, #080e173b, transparent 65%);
}
.portfolio-banner-copy {
  padding: clamp(32px, 5vw, 88px);
  padding-right: 100px;
}
.portfolio-banner-index,
.portfolio-clients-card > span {
  font-size: 0.67rem;
  letter-spacing: 0.22em;
  font-weight: 600;
}
.portfolio-banner h2 {
  margin: 24px 0 0;
  font-size: clamp(3rem, 8vw, 9rem);
  font-weight: 350;
  letter-spacing: -0.065em;
  line-height: 0.95;
  color: inherit;
}
.portfolio-banner-copy p {
  margin: 24px 0 0;
  max-width: 640px;
  font-size: clamp(0.85rem, 1.1vw, 1.1rem);
  line-height: 1.6;
  color: #ffffffe0;
}
.portfolio-banner-arrow {
  position: absolute;
  bottom: clamp(32px, 5vw, 88px);
  right: clamp(24px, 4vw, 64px);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid #ffffff52;
  border-radius: 50%;
  background: #ffffff17;
  backdrop-filter: blur(12px);
  font-size: 1.5rem;
  transition:
    background 300ms ease,
    transform 500ms var(--ease);
}
@media (hover: hover) {
  .portfolio-banner:hover > img {
    transform: scale(1.035);
  }
  .portfolio-banner:hover .portfolio-banner-arrow {
    transform: translate(3px, -3px);
    background: #ffffff30;
  }
}
.portfolio-banner-empty {
  color: var(--theme-text);
  background: linear-gradient(145deg, var(--theme-surface), var(--theme-soft));
  border: 1px solid var(--theme-edge);
}
.portfolio-banner-empty::before {
  display: none;
}
.portfolio-banner-empty .portfolio-banner-arrow {
  border-color: var(--theme-edge);
  background: var(--theme-glass);
}
.portfolio-index-head.page-head {
  padding: clamp(140px, 13vw, 210px) clamp(24px, 6vw, 100px) 64px;
  min-height: 0;
}
.portfolio-index-head h1 {
  font-size: clamp(4rem, 9vw, 8rem);
}
.portfolio-index-head > p:last-child {
  margin: 28px 0 0;
  color: var(--theme-subtle);
}
.portfolio-index {
  padding-bottom: clamp(64px, 8vw, 120px);
}
.portfolio-clients-card {
  position: relative;
  display: block;
  padding: clamp(40px, 6vw, 100px);
  border-radius: clamp(24px, 2.5vw, 42px);
  background: #fff;
  color: #171b22;
  border: 1px solid #17202b12;
  overflow: hidden;
  transition: box-shadow 600ms var(--ease);
}
.portfolio-clients-card h2 {
  margin: 30px 0 22px;
  font-size: clamp(2.8rem, 7.5vw, 8rem);
  font-weight: 350;
  letter-spacing: -0.065em;
  line-height: 1;
}
.portfolio-clients-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #626c7a;
}
.portfolio-clients-card > i {
  position: absolute;
  top: 40px;
  right: 40px;
  opacity: 0.6;
}
.portfolio-clients-card svg {
  width: 28px;
  height: 28px;
}
.portfolio-clients-card > b {
  position: absolute;
  bottom: 40px;
  right: 40px;
  font-size: 2rem;
  font-weight: 400;
}
.portfolio-clients-card:hover {
  box-shadow: 0 20px 65px #17202b0e;
}
.hero-slideshow .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  background: #17212c;
  transition: opacity var(--hero-transition, 1.6s) cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slideshow .hero-slide.is-active {
  opacity: 1;
  z-index: 2;
}
.hero-slideshow .hero-slide.is-previous {
  opacity: 1;
  z-index: 1;
  transition: none;
}
.hero-slideshow .hero-slide img {
  animation: none !important;
  filter: none;
  transform: none;
}
.hero-slideshow .hero-slide[data-resolved-fit='contain'] {
  background: radial-gradient(ellipse at 65% 40%, #3a424c, #111a25 78%);
}
.hero-slideshow .hero-slide[data-resolved-fit='contain']:not([data-fit='cover']) img {
  padding: clamp(92px, 12svh, 120px) 24px 24px;
  object-fit: contain;
}
.hero-slideshow .hero-slide[data-fit='cover'] img {
  padding: 0;
  object-fit: cover;
}
@media (max-width: 760px) {
  .hero-slideshow .hero-slide[data-resolved-fit='contain']:not([data-fit='cover']) img {
    padding: calc(86px + env(safe-area-inset-top)) 12px 170px;
  }
}
.clients-page {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
  padding: clamp(140px, 13vw, 200px) 0 100px;
  min-height: 78svh;
}
.clients-gate {
  width: min(100%, 560px);
  margin: auto;
  padding: clamp(28px, 4.2vw, 60px);
  border: 1px solid var(--theme-edge);
  border-radius: 32px;
  color: var(--theme-text);
  background: var(--theme-glass);
  box-shadow: var(--theme-shadow);
}
.clients-lock {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 36px;
  border: 1px solid var(--theme-edge);
  border-radius: 18px;
  background: var(--theme-surface);
}
.clients-lock svg {
  width: 27px;
  height: 27px;
}
.clients-gate h1,
.clients-lobby h1 {
  font-size: clamp(2.5rem, 4.3vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1.05;
  margin: 0 0 24px;
}
.clients-gate > p:not(.eyebrow),
.clients-lobby header p:not(.eyebrow) {
  color: var(--theme-subtle);
  line-height: 1.65;
  font-size: 0.95rem;
}
.clients-gate form {
  margin-top: 32px;
  display: grid;
  gap: 18px;
}
.clients-gate label {
  display: grid;
  gap: 10px;
  font-size: 0.82rem;
}
.clients-gate input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  color: var(--theme-text);
  background: var(--theme-surface);
  border: 1px solid var(--theme-edge);
  border-radius: 14px;
}
.clients-gate .button {
  justify-content: space-between;
}
.clients-back {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--theme-subtle);
}
.clients-lobby header {
  display: flex;
  align-items: end;
  gap: 30px;
  justify-content: space-between;
  margin-bottom: 60px;
}
.clients-lobby header .button {
  flex-shrink: 0;
}
.clients-albums {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.client-album-card {
  padding: clamp(24px, 3vw, 40px);
  border-radius: 26px;
  border: 1px solid var(--theme-edge);
  background: var(--theme-glass);
  box-shadow: 0 12px 40px #17202b06;
  animation: clientAlbumArrival 800ms cubic-bezier(0.22, 1, 0.36, 1)
    calc(var(--client-index) * 60ms) both;
  transition:
    border-color 300ms ease,
    background 300ms ease;
}
.client-album-card > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--theme-subtle);
}
.client-album-card svg {
  width: 24px;
  height: 24px;
}
.client-album-card small {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
}
.client-album-card h2 {
  margin: 52px 0 32px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  color: var(--theme-text);
  overflow-wrap: anywhere;
}
.client-album-card > b {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--theme-subtle);
}
.client-album-card:hover {
  background: var(--theme-surface);
  border-color: var(--accent);
}
.clients-empty {
  grid-column: 1 / -1;
  padding: 40px;
  border: 1px solid var(--theme-edge);
  border-radius: 24px;
}
@keyframes clientAlbumArrival {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-slides-editor [data-hero-slides] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.hero-slide-editor {
  border: 1px solid var(--theme-edge);
  border-radius: 18px;
  padding: 16px;
  min-width: 0;
  background: var(--theme-surface);
}
.hero-slide-editor header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.hero-slide-editor header strong {
  font-size: 0.78rem;
}
.hero-slide-editor header > div {
  display: flex;
  gap: 4px;
}
.hero-slide-editor header button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--theme-edge);
  border-radius: 9px;
  background: var(--theme-glass);
  cursor: pointer;
  color: var(--theme-text);
}
.hero-slide-editor header button:disabled {
  opacity: 0.3;
  cursor: default;
}
.hero-slide-editor > label {
  display: grid;
  gap: 8px;
  font-size: 0.75rem;
  margin-top: 16px;
}
.hero-slide-editor .studio-image-field {
  margin-top: 0;
}
.hero-slide-editor .studio-image-field img {
  aspect-ratio: 1.6;
  height: auto;
  max-height: 150px;
  object-fit: cover;
}
.portfolio-category-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.portfolio-category-settings label {
  display: grid;
  gap: 10px;
}
.clients-admin-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
.clients-admin-layout h2,
.client-admin-albums h2 {
  letter-spacing: -0.04em;
}
#clients-password-form {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}
#clients-password-form label {
  display: grid;
  gap: 8px;
  font-size: 0.8rem;
}
#clients-password-form input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--theme-edge);
  border-radius: 12px;
  background: var(--theme-soft);
  color: var(--theme-text);
  font-size: 0.95rem;
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease;
}
#clients-password-form input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent), transparent 86%);
}
.clients-admin-steps {
  list-style: none;
  counter-reset: client-step;
  display: grid;
  gap: 30px;
  padding: 0;
  margin: 28px 0;
}
.clients-admin-steps li {
  position: relative;
  padding-left: 46px;
  counter-increment: client-step;
}
.clients-admin-steps li::before {
  content: counter(client-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--theme-subtle);
  font-size: 0.72rem;
  padding-top: 3px;
}
.clients-admin-steps strong {
  display: block;
  font-size: 0.92rem;
}
.clients-admin-steps span {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--theme-subtle);
  line-height: 1.65;
}
.client-admin-albums {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.client-admin-album {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  gap: 20px;
  width: 100%;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--theme-edge);
  color: var(--theme-text);
  background: var(--theme-glass);
  cursor: pointer;
}
.client-admin-album small {
  display: block;
  margin-top: 8px;
  color: var(--theme-subtle);
}
.client-admin-album > span:last-child {
  font-size: 0.78rem;
}
@media (max-width: 760px) {
  .portfolio-banner {
    aspect-ratio: 1.2;
    min-height: 320px;
  }
  .portfolio-banner-copy {
    padding: 32px 76px 36px 28px;
  }
  .portfolio-banner h2 {
    font-size: clamp(2.25rem, 10.5vw, 5rem);
  }
  .portfolio-banner-arrow {
    bottom: 34px;
    right: 22px;
    width: 44px;
    height: 44px;
  }
  .portfolio-index-head.page-head {
    padding: 140px 24px 44px;
  }
  .portfolio-clients-card {
    padding: 56px 28px;
  }
  .portfolio-clients-card > i {
    top: 24px;
    right: 24px;
  }
  .portfolio-clients-card > b {
    bottom: 26px;
    right: 24px;
  }
  .clients-page {
    padding-top: 130px;
  }
  .clients-lobby header {
    display: block;
    margin-bottom: 32px;
  }
  .clients-lobby header .button {
    margin-top: 18px;
  }
  .clients-albums,
  .clients-admin-layout {
    grid-template-columns: 1fr;
  }
  .client-admin-album {
    align-items: start;
    flex-direction: column;
  }
  .hero-slides-editor [data-hero-slides],
  .portfolio-category-settings {
    grid-template-columns: 1fr;
  }
  .admin-body .admin-utilitybar #admin-command-open {
    width: 42px;
    height: 42px;
    padding: 0;
    display: grid;
    place-items: center;
    font-size: 0 !important;
  }
  .admin-body .admin-utilitybar #admin-command-open > span {
    font-size: 22px;
  }
  .admin-body .admin-utilitybar #admin-command-open > kbd {
    display: none;
  }
  .admin-body .admin-utilitybar #admin-help-open {
    width: 42px;
    height: 42px;
    padding: 0;
    font-size: 18px !important;
  }
  .admin-body .admin-utilitybar #admin-help-open > span {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-banner > img,
  .portfolio-banner-arrow,
  .hero-slideshow .hero-slide {
    transition: none;
  }
  .client-album-card {
    animation: none;
  }
}
html[data-motion='off'] .hero-slideshow .hero-slide {
  transition: none;
}
html[data-motion='off'] .client-album-card {
  animation: none;
}
