.portfolio-section {
  color-scheme: dark;
  --night: #08090d;
  --paper: #f4f0e8;
  --muted: #b8b8bd;
  --cyan: #00ccff;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
.portfolio-section { margin: 0; background: var(--night); color: var(--paper); font-family: var(--body); }
.portfolio-section button { font: inherit; }
.gallery-shell { max-width: 1500px; margin: auto; padding: clamp(32px, 5vw, 80px); }
.gallery-intro { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 0 5vw; align-items: end; padding: clamp(44px, 8vw, 110px) 0 clamp(36px, 5vw, 72px); }
.eyebrow, .section-label { color: var(--cyan); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.gallery-intro .eyebrow { grid-column: 1 / -1; }
.portfolio-section h1, .portfolio-section h2, .portfolio-section p { margin-top: 0; }
.portfolio-section .gallery-intro :is(h1, h2) { margin-bottom: 0; font: clamp(52px, 7.5vw, 116px)/.84 var(--display); text-transform: uppercase; letter-spacing: -.025em; }
.portfolio-section .gallery-intro :is(h1, h2) span { color: var(--cyan); }
.gallery-lead { max-width: 37ch; margin: 0 0 .3em; color: #cccbd0; font-size: clamp(16px, 1.55vw, 21px); line-height: 1.5; }
.section-label { margin-bottom: 17px; }
.identity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.identity-card { position: relative; display: block; min-width: 0; aspect-ratio: 3 / 4; padding: 0; overflow: hidden; isolation: isolate; border: 1px solid #ffffff28; border-radius: 0; background: #181a21; color: var(--paper); text-align: left; cursor: pointer; }
.identity-card:focus-visible, .dialog-close:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.identity-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: .76; transform: scale(1); transition: filter 650ms ease, opacity 650ms ease, transform 650ms cubic-bezier(.2,.7,.2,1); }
.par-chase { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.par-wave { position: absolute; top: 6%; left: -72%; width: 175%; height: 66%; opacity: 0; border-radius: 50%; mix-blend-mode: color; background: linear-gradient(100deg, transparent 4%, #ff30778c 19%, #ffb038a8 34%, #c8ff58b0 48%, #15d9dca8 62%, #4562ffad 76%, #a83bff8c 87%, transparent 98%); filter: blur(24px); transform: translate3d(-20%, 0, 0) rotate(-10deg) skewY(-7deg); }
.par-wave:nth-child(2) { top: 14%; filter: blur(31px); }
.par-wave:nth-child(3) { top: 23%; filter: blur(37px); }
.par-lamp { position: absolute; top: 20%; left: var(--par-x); width: 32%; aspect-ratio: 1; border-radius: 50%; opacity: 0; mix-blend-mode: screen; background: radial-gradient(circle, #fff 0 2%, #7dceff99 10%, #8e3bff60 29%, transparent 66%); filter: blur(5px) hue-rotate(var(--par-hue)); transform: translate(-50%, -50%) scale(.6); }
.identity-card--allround:is(:hover, :focus) .par-wave { animation: rainbow-wave 4.6s ease-in-out var(--wave-delay) infinite; }
.identity-card--allround:is(:hover, :focus) .par-lamp { animation: par-lamp-wave 2.7s ease-in-out var(--par-delay) infinite; }
.identity-effect-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; mix-blend-mode: screen; transform: scale(1); transition: transform 650ms cubic-bezier(.2,.7,.2,1); }
.identity-effect-photo--club { filter: brightness(1.85) saturate(2.2) contrast(1.1); -webkit-mask-image: linear-gradient(to bottom, transparent 31%, #0008 49%, #000 66%, #000 90%); mask-image: linear-gradient(to bottom, transparent 31%, #0008 49%, #000 66%, #000 90%); }
.identity-card--club:is(:hover, :focus) .identity-effect-photo--club { transform: scale(1.04); animation: club-real-lights 3.4s ease-in-out infinite; }
.identity-effect-photo--underground { filter: brightness(1.65) saturate(1.7) contrast(1.12); -webkit-mask-image: radial-gradient(ellipse 97% 66% at 50% 24%, #000 0 39%, transparent 84%); mask-image: radial-gradient(ellipse 97% 66% at 50% 24%, #000 0 39%, transparent 84%); }
.identity-card--underground:is(:hover, :focus) .identity-effect-photo--underground { transform: scale(1.04); animation: original-beam-breathe 4.8s ease-in-out infinite; }
.identity-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity 350ms ease; }
.identity-shade { position: absolute; inset: 0; background: linear-gradient(180deg, #08090d30, transparent 38%, #08090d55 62%, #08090de8); pointer-events: none; }
.identity-copy { position: absolute; inset: auto 0 0; display: grid; gap: 7px; padding: clamp(20px, 2.5vw, 36px); pointer-events: none; }
.identity-eyebrow { color: #b9e5f1; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.identity-title { font: clamp(39px, 4.2vw, 69px)/.88 var(--display); text-transform: uppercase; letter-spacing: -.015em; transition: text-shadow 500ms ease, color 500ms ease; }
.identity-short { max-width: 27ch; color: #e6e6e9; font-size: clamp(12px, 1.1vw, 15px); line-height: 1.45; }
.identity-card:is(:hover, :focus) .identity-image { filter: grayscale(0); opacity: 1; transform: scale(1.04); }
.identity-card:is(:hover, :focus) .identity-video { opacity: 1; }
.identity-card:is(:hover, :focus) .identity-title { color: #fff; text-shadow: 0 0 8px #00ccff8a, 0 0 24px #00ccff52; }
.identity-card:active .identity-image { filter: grayscale(0); opacity: 1; }
@keyframes rainbow-wave {
  0%, 100% { opacity: 0; transform: translate3d(-20%, -2%, 0) rotate(-10deg) skewY(-7deg); }
  18% { opacity: .72; }
  49% { opacity: .95; transform: translate3d(24%, 7%, 0) rotate(-4deg) skewY(7deg); }
  80% { opacity: .7; }
}
@keyframes par-lamp-wave {
  0%, 100% { opacity: .1; transform: translate(-50%, -50%) scale(.65); }
  33% { opacity: .47; transform: translate(-50%, -43%) scale(1.18); }
  66% { opacity: .35; transform: translate(-50%, -55%) scale(.92); }
}
@keyframes club-real-lights {
  0%, 100% { opacity: .16; }
  35% { opacity: .53; }
  62% { opacity: .27; }
  79% { opacity: .65; }
}
@keyframes original-beam-breathe {
  0%, 100% { opacity: .12; filter: brightness(1.3) saturate(1.3); }
  42% { opacity: .57; filter: brightness(1.85) saturate(1.7); }
  72% { opacity: .28; filter: brightness(1.5) saturate(1.45); }
}
.synthesis { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 0 6vw; align-items: end; margin: clamp(70px, 9vw, 130px) 0 30px; border-top: 1px solid #ffffff30; padding-top: 25px; }
.synthesis .eyebrow { grid-column: 1 / -1; }
.synthesis h2 { margin-bottom: 0; font: clamp(46px, 7vw, 100px)/.9 var(--display); text-transform: uppercase; }
.synthesis > p:last-child { max-width: 35ch; margin: 0; color: #c9c9cf; line-height: 1.6; }
.identity-dialog { position: fixed; width: min(900px, calc(100vw - 32px)); max-height: min(85svh, 900px); padding: 0; overflow: auto; border: 1px solid #ffffff45; background: #11131a; color: var(--paper); }
.identity-dialog::backdrop { background: #040509dc; backdrop-filter: blur(8px); }
.dialog-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 450px; }
.dialog-visual { position: relative; min-height: 450px; overflow: hidden; background: #181a21; isolation: isolate; }
.dialog-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.dialog-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity 350ms ease; }
.dialog-video.is-playing { opacity: 1; }
.dialog-motion { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.dialog-motion > :first-child { position: absolute; inset: 0; }
.dialog-visual--allround .par-wave { animation: rainbow-wave 4.6s ease-in-out var(--wave-delay) infinite; }
.dialog-visual--allround .par-lamp { animation: par-lamp-wave 2.7s ease-in-out var(--par-delay) infinite; }
.dialog-visual--club .identity-effect-photo--club { transform: scale(1.04); animation: club-real-lights 3.4s ease-in-out infinite; }
.dialog-visual--underground .identity-effect-photo--underground { transform: scale(1.04); animation: original-beam-breathe 4.8s ease-in-out infinite; }
.dialog-copy { position: relative; display: flex; flex-direction: column; justify-content: end; padding: clamp(26px, 4vw, 52px); }
.dialog-copy h2 { margin: 12px 0 20px; font: clamp(54px, 6vw, 82px)/.9 var(--display); text-transform: uppercase; }
.dialog-copy > p:last-child { margin: 0; color: #d2d2d7; line-height: 1.55; }
.dialog-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #ffffff55; border-radius: 50%; background: #ffffff16; color: #fff; font-size: 27px; cursor: pointer; }
@media (max-width: 900px) {
  .gallery-intro, .synthesis { grid-template-columns: 1fr; gap: 24px; }
  .identity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .gallery-shell { padding: 22px; }
  .gallery-intro { padding-top: 50px; }
  .portfolio-section .gallery-intro :is(h1, h2) { font-size: clamp(46px, 10.8vw, 66px); }
  .identity-grid { grid-template-columns: 1fr; }
  .identity-card { aspect-ratio: 4 / 5; }
  .identity-title { font-size: clamp(46px, 13vw, 72px); }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-visual { height: min(45svh, 370px); min-height: 0; }
  .dialog-copy { min-height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .dialog-video, .identity-video, .par-chase, .identity-effect-photo { display: none; }
}
