/*
Theme Name: Souzou Motion Portfolio V2
Theme URI: https://souzou.studio
Author: Souzou
Description: Minimalistisches, videobasiertes Portfolio-Theme mit überlappenden Scroll-Übergängen.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: souzou
*/

:root { --ink: #f5f4ef; --paper: #0b0b0a; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
body.home { scroll-snap-type: y mandatory; overscroll-behavior-y: contain; }
body.souzou-js { overflow: hidden; overscroll-behavior: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.souzou-logo { position: fixed; top: 50%; left: 30px; z-index: 100000; color: #fff; font-size: clamp(1.45rem, 2.1vw, 2.15rem); font-weight: 900; line-height: .9; letter-spacing: -.08em; transform: translateY(-50%); mix-blend-mode: difference; }
.souzou-logo img { display: block; width: clamp(76px, 8vw, 128px); max-height: 54px; object-fit: contain; filter: brightness(0) invert(1); }
.project-stack { position: relative; background: var(--paper); }
.project { position: relative; z-index: calc(var(--index) + 1); height: 100svh; scroll-snap-align: start; }
.project-card { position: relative; height: 100%; min-height: 520px; overflow: hidden; background: #1b1b18; }
body.souzou-js .project-stack { position: fixed; inset: 0; overflow: hidden; }
body.souzou-js .project { position: fixed; inset: 0; pointer-events: none; }
body.souzou-js .project-card { position: absolute; inset: 0; transform: translateY(100%); transition: transform 520ms cubic-bezier(.76, 0, .24, 1); will-change: transform; }
body.souzou-js .project.is-past .project-card, body.souzou-js .project.is-active .project-card { transform: translateY(0); }
body.souzou-js .project.is-active { pointer-events: auto; }
.project-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgb(0 0 0 / .24), transparent 32%, transparent 62%, rgb(0 0 0 / .38)); }
.project-copy { position: absolute; top: 50%; left: 50%; z-index: 2; width: min(76vw, 560px); padding: 22px; color: #fff; text-align: center; transform: translate(-50%, -50%); mix-blend-mode: difference; }
.project-title { margin: 0; font-size: clamp(.82rem, 1.15vw, 1.05rem); font-weight: 600; line-height: 1.2; letter-spacing: .11em; text-transform: uppercase; }
.project-client { margin: .65rem 0 0; font-size: clamp(.52rem, .66vw, .62rem); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.project-year { position: absolute; left: 30px; bottom: 28px; font-size: .62rem; font-weight: 600; letter-spacing: .12em; }
.audio-controls { position: absolute; right: 30px; bottom: 25px; display: flex; align-items: center; gap: 12px; color: #fff; font-size: .58rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.audio-toggle { appearance: none; min-width: 72px; padding: 4px 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-align: right; text-transform: inherit; cursor: pointer; }
.volume-control { width: 72px; height: 1px; appearance: none; background: rgb(255 255 255 / .42); cursor: pointer; }
.volume-control::-webkit-slider-thumb { width: 7px; height: 7px; appearance: none; border: 0; border-radius: 50%; background: #fff; }
.volume-control::-moz-range-thumb { width: 7px; height: 7px; border: 0; border-radius: 50%; background: #fff; }
.panel-progress { position: fixed; top: 28px; right: 30px; z-index: 90000; color: #fff; font-size: .58rem; font-weight: 600; letter-spacing: .12em; mix-blend-mode: difference; }
.scroll-cue { position: absolute; right: 30px; bottom: 62px; display: flex; align-items: center; gap: 12px; font-size: .58rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.scroll-cue i { display: block; width: 32px; height: 1px; overflow: hidden; background: rgb(255 255 255 / .35); }
.scroll-cue i::after { content: ''; display: block; width: 100%; height: 100%; background: #fff; transform: translateX(-100%); animation: souzou-slide 1.7s ease-in-out infinite; }

.site-footer { position: relative; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 32vh; padding: 30px; background: #0b0b0a; color: #f5f4ef; font-size: .6rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer > span { justify-self: end; }
.site-footer a { position: relative; padding-block: 7px; }
.site-footer a::after { content: ''; position: absolute; right: 0; bottom: 3px; left: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 300ms ease; }
.site-footer a:hover::after, .site-footer a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
body.home .site-footer { height: 112px; min-height: 0; scroll-snap-align: end; }
body.home.souzou-js .site-footer { position: fixed; inset: auto 0 0; z-index: 50000; transform: translateY(100%); transition: transform 520ms cubic-bezier(.76, 0, .24, 1); pointer-events: none; }
body.home.souzou-js .site-footer.is-active { transform: translateY(0); pointer-events: auto; }

.legal-page { min-height: 100svh; background: #f2f1ec; color: #11110f; }
.legal-page .souzou-logo { color: #11110f; mix-blend-mode: normal; }
.legal-page .souzou-logo img { filter: none; }
.legal-heading { display: grid; min-height: 68svh; place-content: center; padding: 80px 24px; text-align: center; }
.legal-heading span, .legal-heading p { margin: 0; font-size: .6rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.legal-heading h1 { max-width: 920px; margin: 24px 0; font-size: clamp(2.9rem, 8vw, 8rem); font-weight: 600; line-height: .86; letter-spacing: -.065em; text-wrap: balance; }
.legal-copy { width: min(690px, calc(100% - 48px)); margin: 0 auto; padding: 0 0 140px; font-size: .88rem; line-height: 1.7; }
.legal-copy h2 { margin: 38px 0 10px; padding-top: 28px; border-top: 1px solid rgb(17 17 15 / .18); font-size: .66rem; font-weight: 700; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; }
.legal-copy p { margin: 0 0 18px; }
.legal-note { margin-top: 44px; padding: 18px; border: 1px solid rgb(17 17 15 / .2); font-size: .68rem; line-height: 1.6; }
.empty-projects { display: grid; min-height: 100svh; place-content: center; padding: 40px; background: #171714; text-align: center; }
.empty-projects h1 { margin: 0 0 12px; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; }
.empty-projects p { max-width: 480px; margin: 0; color: rgb(245 244 239 / .7); font-size: .75rem; line-height: 1.6; }

.project-detail { min-height: 100svh; padding-top: 1px; background: #f2f1ec; color: #11110f; }
.detail-back { position: fixed; top: 28px; right: 30px; z-index: 20; font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.detail-heading { width: min(860px, calc(100% - 48px)); margin: 150px auto 90px; text-align: center; }
.detail-heading div { display: flex; justify-content: center; gap: 28px; font-size: .6rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.detail-heading h1 { margin: 34px 0 24px; font-size: clamp(4.8rem, 13vw, 11rem); font-weight: 600; line-height: .75; letter-spacing: -.075em; text-transform: uppercase; }
.detail-heading > p { width: min(540px, 100%); margin: 0 auto; font-size: clamp(.9rem, 1.3vw, 1.15rem); line-height: 1.55; text-wrap: balance; }
.detail-cover { width: min(1180px, calc(100% - 48px)); margin: 0 auto 90px; }
.detail-cover img { display: block; width: 100%; max-height: 760px; object-fit: cover; }
.detail-content { width: min(1180px, calc(100% - 48px)); margin: 0 auto 110px; font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.65; }
.detail-content > p, .detail-content > h2, .detail-content > h3, .detail-content > ul, .detail-content > ol { width: min(680px, 100%); margin-right: auto; margin-left: auto; }
.detail-content > h2, .detail-content > h3 { margin-top: 70px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.detail-content .wp-block-gallery { gap: 12px; margin-block: 80px; }
.detail-content .wp-block-image img, .detail-content .wp-block-gallery img { width: 100%; object-fit: cover; }
.detail-label { margin: 0; font-size: .6rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.detail-youtube { width: min(1180px, calc(100% - 48px)); margin: 0 auto 120px; }
.detail-youtube > div { position: relative; aspect-ratio: 16 / 9; margin-top: 18px; overflow: hidden; background: #111; }
.detail-youtube iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@keyframes souzou-slide { 50%, 100% { transform: translateX(100%); } }
@media (max-width: 700px) {
  .souzou-logo { top: 24px; left: 20px; transform: none; }
  .project-card { min-height: 500px; }
  .panel-progress { top: 25px; right: 20px; }
  .project-year { left: 20px; bottom: 20px; }
  .audio-controls { right: 20px; bottom: 17px; }
  .volume-control { width: 54px; }
  .scroll-cue { right: 20px; bottom: 54px; }
  .site-footer { grid-template-columns: 1fr 1fr; gap: 36px 20px; min-height: 42vh; padding: 28px 20px; }
  .site-footer nav { grid-column: 1 / -1; grid-row: 1; flex-wrap: wrap; gap: 8px 20px; }
  .site-footer > span { justify-self: end; }
  body.home .site-footer { height: auto; min-height: 138px; gap: 12px 20px; }
  .legal-heading { min-height: 58svh; padding-top: 120px; }
  .detail-back { top: 27px; right: 20px; }
  .detail-heading { margin: 140px auto 70px; }
  .detail-content { margin-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.souzou-js .project-card, body.home.souzou-js .site-footer { transition-duration: 1ms; }
  .scroll-cue i::after { animation: none; }
}
