:root { --portfolio-pad: clamp(20px, 4vw, 64px); }

.portfolio-page { background: #fff; color: #111; }
.portfolio-page .site-header { background: rgba(10,10,10,.88); color: #fff; backdrop-filter: blur(14px); }
.portfolio-page .main-nav a { color: #fff; }
.portfolio-page .main-nav .is-active { color: var(--yellow); }
.portfolio-page .language-switcher { border-color: rgba(255,255,255,.55); }
.portfolio-page .language-switcher a:hover,
.portfolio-page .language-switcher a.is-active { background: var(--yellow); color: #0a0a0a; }
.portfolio-page .nav-cta { color: #111 !important; }

.portfolio-hero { position: relative; isolation: isolate; min-height: 560px; padding: 130px var(--portfolio-pad) 30px; overflow: hidden; background: #111; color: #fff; }
.portfolio-hero-media,.portfolio-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.portfolio-hero-media { z-index: -2; object-fit: cover; object-position: center 48%; }
.portfolio-hero-shade { z-index: -1; background: linear-gradient(90deg,rgba(0,0,0,.82) 0%,rgba(0,0,0,.66) 48%,rgba(0,0,0,.54) 100%),linear-gradient(180deg,rgba(0,0,0,.36) 0%,rgba(0,0,0,.08) 45%,rgba(0,0,0,.58) 100%); }
.portfolio-wordmark { margin: 0 0 12px; font: 400 clamp(28px,3.5vw,50px)/1 Georgia,serif; letter-spacing: -.05em; text-shadow: 0 2px 22px #000; }
.portfolio-hero h1 { margin: 0 0 30px; font-size: clamp(60px,12.3vw,180px); font-weight: 900; letter-spacing: -.075em; line-height: .88; text-shadow: 0 3px 28px #000b; }
.portfolio-hero h1 span { color: var(--yellow); }
.portfolio-intro { display: grid; grid-template-columns: minmax(0,.9fr) minmax(520px,1.1fr); gap: clamp(42px,6vw,100px); align-items: start; margin-bottom: 30px; padding: 28px 0 30px; border-top: 1px solid #ffffff70; border-bottom: 1px solid #ffffff70; }
.portfolio-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 17px; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.portfolio-kicker span { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }
.portfolio-intro h2 { max-width: 680px; margin: 0 0 16px; font: 400 clamp(27px,3vw,44px)/1.12 Georgia,serif; letter-spacing: -.035em; text-wrap: balance; }
.portfolio-intro-copy > p:last-child { max-width: 590px; margin: 0; color: #fff; font-size: 14px; font-weight: 500; line-height: 1.65; text-shadow: 0 2px 12px #000; }
.portfolio-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid #ffffff70; border-left: 1px solid #ffffff70; background: #0808088f; box-shadow: 0 18px 50px #0003; backdrop-filter: blur(8px); }
.portfolio-stats > div { min-height: 82px; padding: 14px 16px; border-right: 1px solid #ffffff70; border-bottom: 1px solid #ffffff70; }
.portfolio-stats strong { display: block; margin-bottom: 4px; color: var(--yellow); font-size: clamp(22px,2vw,34px); line-height: 1; letter-spacing: -.045em; }
.portfolio-stats span { color: #fff; font-size: 11px; font-weight: 600; line-height: 1.35; }
.portfolio-stats > a { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; padding: 15px 16px; border-right: 1px solid #ffffff70; border-bottom: 1px solid #ffffff70; color: #fff; font-size: 12px; font-weight: 600; line-height: 1.45; }
.portfolio-stats > a span { flex-shrink: 0; color: var(--yellow); font-weight: 800; }
.portfolio-stats > a:hover { background: var(--yellow); color: #111; }
.portfolio-stats > a:hover span { color: #111; }
.portfolio-hero-foot { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.portfolio-hero-foot p { margin: 0; font-size: 14px; }
.portfolio-hero-foot a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ffffff65; border-radius: 50%; color: #fff; font-size: 22px; }
.portfolio-hero-foot a:hover { background: var(--yellow); border-color: var(--yellow); color: #111; }

.portfolio-work { padding: 0 var(--portfolio-pad) clamp(90px,10vw,150px); background: #fff; color: #111; }
.portfolio-bar { display: flex; justify-content: space-between; gap: 20px; padding: 30px 0 22px; border-bottom: 1px solid #dedede; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.portfolio-privacy { margin: 15px 0 26px; color: #626262; font-size: 11px; line-height: 1.5; }
.portfolio-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 34px 20px; align-items: start; }
.portfolio-card { min-width: 0; }
.portfolio-poster { position: relative; display: block; width: 100%; padding: 0; border: 0; overflow: hidden; cursor: pointer; color: #fff; text-align: left; background: #efede8; aspect-ratio: 4/5; }
.portfolio-poster img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.portfolio-poster::after { position: absolute; content: ''; inset: 0; background: linear-gradient(180deg,#00000040,transparent 30%,transparent 55%,#00000070); pointer-events: none; }
.portfolio-poster:hover img { transform: scale(1.035); }
.portfolio-provider,.portfolio-play,.portfolio-open-label { z-index: 1; position: absolute; }
.portfolio-provider { top: 14px; left: 14px; padding: 6px 9px; border: 1px solid #ffffff40; border-radius: 99px; background: #111b; font-size: 10px; }
.portfolio-play { right: 14px; bottom: 14px; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #fff9; border-radius: 50%; font-size: 23px; transition: background .2s,color .2s; }
.portfolio-poster:hover .portfolio-play { background: var(--yellow); border-color: var(--yellow); color: #111; }
.portfolio-open-label { bottom: 27px; left: 15px; font-size: 11px; }
.portfolio-poster-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; background: var(--yellow); color: #111; font-size: clamp(28px,4vw,64px); font-weight: 900; letter-spacing: -.05em; text-align: center; }
.portfolio-card-meta { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-top: 14px; }
.portfolio-card-meta h2 { margin: 0 0 6px; font-size: clamp(19px,2vw,29px); font-weight: 700; letter-spacing: -.045em; }
.portfolio-card-meta p { margin: 0; font-size: 12px; line-height: 1.5; }
.portfolio-card-meta > a { display: grid; place-items: center; min-width: 32px; min-height: 32px; color: #111; font-size: 20px; }
.portfolio-attribution { display: inline-block; margin-top: 8px; color: #656565; font-size: 10px; }
.portfolio-attribution:hover,.portfolio-dialog-fallback a:hover { text-decoration: underline; }

.portfolio-dialog { width: min(420px,calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 0; background: #fff; color: #111; }
.portfolio-dialog::backdrop { background: #111d; backdrop-filter: blur(5px); }
.portfolio-dialog-content { width: 100%; }
.portfolio-dialog header { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 20px; }
.portfolio-dialog header p { margin: 0 0 5px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.portfolio-dialog header h2 { margin: 0; font-size: 16px; font-weight: 500; }
.portfolio-dialog header button { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #ccc; border-radius: 50%; background: #fff; color: #111; font-size: 27px; cursor: pointer; }
.portfolio-dialog-player { width: 100%; height: min(690px,calc(100dvh - 165px)); background: #f4f4f4; }
.portfolio-dialog-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.portfolio-dialog-fallback { margin: 0; padding: 15px 20px; font-size: 11px; line-height: 1.5; }

.portfolio-next { display: grid; min-height: 82svh; align-content: center; justify-items: start; padding: 100px var(--portfolio-pad); background: var(--yellow); color: #111; }
.portfolio-next > p { margin-bottom: 42px; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.portfolio-next h2 { margin: 0 0 54px; font-size: clamp(58px, 10vw, 154px); letter-spacing: -.07em; line-height: .82; }
.portfolio-next h2 em { font-family: Georgia, serif; font-weight: 400; }
.portfolio-next .button-yellow { border: 1px solid #111; background: #111; color: #fff; }

.portfolio-footer { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 34px; align-items: start; padding: 70px var(--portfolio-pad) 28px; background: #0a0a0a; color: #fff; }
.portfolio-footer .footer-brand { font-size: clamp(28px, 3vw, 46px); }
.portfolio-footer > div { display: flex; flex-direction: column; gap: 12px; color: #aaa; font-size: 12px; }
.portfolio-footer a { color: #fff; }
.portfolio-footer > span { align-self: end; color: #777; font-size: 9px; letter-spacing: .08em; }

@media (max-width: 900px) {
  .portfolio-page .main-nav { background: #0a0a0a; }
  .portfolio-intro { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .portfolio-footer { grid-template-columns: 1fr 1fr; }
  .portfolio-footer > span { align-self: auto; }
}

@media (max-width: 620px) {
  .portfolio-hero { min-height: 430px; padding: 110px 20px 25px; }
  .portfolio-hero-media { object-position: 58% center; }
  .portfolio-hero-shade { background: linear-gradient(90deg,rgba(0,0,0,.82),rgba(0,0,0,.62)),linear-gradient(180deg,rgba(0,0,0,.4),rgba(0,0,0,.66)); }
  .portfolio-hero h1 { font-size: 12.9vw; margin-bottom: 26px; }
  .portfolio-wordmark { font-size: 29px; }
  .portfolio-intro { margin-bottom: 22px; padding: 22px 0; }
  .portfolio-intro h2 { font-size: clamp(25px,7vw,34px); }
  .portfolio-stats { grid-template-columns: 1fr 1fr; }
  .portfolio-stats > div { min-height: 74px; padding: 12px; }
  .portfolio-stats > a { display: block; padding: 14px 12px; }
  .portfolio-stats > a span { display: block; margin-top: 5px; }
  .portfolio-hero-foot p { font-size: 12px; }
  .portfolio-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 27px 13px; }
  .portfolio-provider { top: 10px; left: 10px; font-size: 9px; }
  .portfolio-open-label { bottom: 22px; left: 10px; font-size: 10px; }
  .portfolio-play { width: 34px; height: 34px; right: 10px; bottom: 10px; font-size: 20px; }
  .portfolio-card-meta h2 { font-size: 17px; }
  .portfolio-card-meta p { font-size: 11px; }
  .portfolio-attribution { font-size: 9px; overflow-wrap: anywhere; }
  .portfolio-dialog header { padding: 12px; }
  .portfolio-footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-poster img { transition: none; }
}
