/* Photo entrance only: the existing site styling remains untouched. */
.photo-intro {
  position: fixed; inset: 0; margin: 0; padding: 0; border: 0;
  width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none;
  overflow: auto; background: #050607; color: #faf4e7; isolation: isolate;
  opacity: 1; transition: opacity 650ms ease;
}
.photo-intro[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.photo-intro::backdrop { background: #050607; }
.photo-intro.is-leaving { opacity: 0; }
.photo-intro-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: max(10px, env(safe-area-inset-top)) 4vw 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 2.4px; z-index: 2;
}
#intro-label { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.intro-brand { display: flex; align-items: center; gap: 22px; }
.intro-logo-window { display: block; position: relative; width: 122px; height: 94px; overflow: hidden; flex: none; }
.intro-logo-window img { position: absolute; max-width: none; width: 240px; height: auto; left: -62px; top: -37px; mix-blend-mode: screen; }
.intro-brand-rule { width: 28px; height: 1px; background: #c9a75f; }
.intro-header-note { color: #b7ad98; font-size: 9px; letter-spacing: 2px; }
.photo-intro-gallery { position: relative; min-height: 100px; }
.photo-intro-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 3200ms cubic-bezier(.4, 0, .2, 1); pointer-events: none; }
.photo-intro-slide.is-current { opacity: 1; }
.photo-intro-slide picture { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
/* Feather the actual image edges, not the surrounding letterbox. Keep the
   center fully opaque so faces and the embedded artwork lettering stay clear. */
.photo-intro-slide img {
  width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain;
  -webkit-mask-image: linear-gradient(to right, transparent, #000b 2%, #000 5%, #000 95%, #000b 98%, transparent), linear-gradient(to bottom, transparent, #000c 2%, #000 5%, #000 94%, #000b 98%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000b 2%, #000 5%, #000 95%, #000b 98%, transparent), linear-gradient(to bottom, transparent, #000c 2%, #000 5%, #000 94%, #000b 98%, transparent);
  mask-composite: intersect;
}
.photo-intro-ambient {
  position: fixed; inset: 0; z-index: -1; background: center / cover no-repeat;
  opacity: .36; filter: blur(55px); transform: scale(1.12); pointer-events: none;
}
.intro-ambient-portrait { background-image: url('assets/intro/rockman-rocktheman-ambient.webp'); }
.intro-ambient-studio { background-image: url('assets/intro/studio-ambient.webp'); }
.photo-intro-footer {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px;
  padding: 25px 4vw max(26px, env(safe-area-inset-bottom)); z-index: 2;
  background: linear-gradient(transparent, #050607b8);
}
.intro-story > p:first-child { font-size: 9px; letter-spacing: 2.4px; color: #d2b77c; }
.intro-names { font-size: 12px; font-weight: 700; letter-spacing: 1.3px; margin-top: 5px; }
.intro-names span { color: #8e7950; margin: 0 6px; }
.intro-enter {
  display: flex; align-items: center; justify-content: space-between; gap: 50px;
  min-width: 224px; min-height: 58px; padding: 0 24px; border: 1px solid #e5c47a;
  color: #100e09; background: #e5c47a; font-size: 11px; font-weight: 800; letter-spacing: 2px;
  transition: background 200ms, box-shadow 200ms;
}
.intro-enter span { font-size: 23px; font-weight: 400; }
.intro-enter:hover { background: #f6dda4; box-shadow: 0 0 30px #c59d3e20; }
.intro-slideshow-controls { display: flex; align-items: center; gap: 8px; justify-self: end; }
.intro-slideshow-controls button { min-width: 44px; min-height: 44px; border: 0; border-bottom: 1px solid transparent; background: transparent; color: #c9c2b4; font-size: 11px; letter-spacing: 1px; }
.intro-slideshow-controls .intro-image-select[aria-pressed="true"] { color: #f0d398; border-bottom-color: #d6b468; }
.intro-slideshow-controls .intro-toggle { margin-left: 10px; font-size: 9px; min-width: 64px; }
.intro-slideshow-controls button:hover { color: #fff3d8; }
.photo-intro button:focus-visible { outline: 2px solid #f6dda4; outline-offset: 4px; }
body.photo-intro-running { overflow: hidden; }
.intro-fan-form { grid-column: 1 / -1; width: min(100%, 980px); justify-self: center; display: grid; grid-template-columns: 1fr minmax(0, 1.3fr); align-items: center; column-gap: 30px; padding-top: 18px; border-top: 1px solid #ac91593b; }
.intro-fan-copy > p:first-child { font-size: 11px; letter-spacing: 2px; font-weight: 700; color: #e5c47a; }
.intro-fan-copy > p:nth-child(2) { font-size: 12px; color: #d0c8b9; margin-top: 3px; }
.intro-fan-contact { display: inline-flex; align-items: center; min-height: 32px; font-size: 11px; color: #e5c47a; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.intro-email-label { display: block; font-size: 11px; color: #eee5d2; margin-bottom: 6px; }
.intro-email-entry { display: flex; width: 100%; }
.intro-email-entry input { width: 100%; min-width: 0; min-height: 46px; padding: 10px 13px; border: 1px solid #a68b547a; border-right: 0; background: #080b0de6; color: #fff8e9; font: inherit; font-size: 16px; border-radius: 0; }
.intro-email-entry input::placeholder { color: #a9a599; }
.intro-email-entry button { flex: none; min-height: 46px; padding: 0 17px; color: #f2d795; border: 1px solid #a68b54; background: #1b1912; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.intro-email-entry button span { margin-left: 12px; font-size: 16px; }
.intro-email-entry button:hover { background: #332c1a; }
.intro-email-entry button:disabled { cursor: wait; opacity: .6; }
.intro-fan-consent { display: flex; align-items: flex-start; gap: 7px; margin-top: 8px; font-size: 11px; line-height: 1.5; color: #c9c1b2; text-align: left; cursor: pointer; }
.intro-fan-consent input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: #e5c47a; }
.intro-fan-form input:focus-visible { outline: 2px solid #f6dda4; outline-offset: 2px; }
.intro-fan-status { grid-column: 1 / -1; font-size: 12px; color: #f0d398; text-align: center; }
.intro-fan-status:not(:empty) { margin-top: 12px; }
/* Soft smoke sits above the photographs but below every control. Only transforms
   and opacity animate; the SVG texture is shared by all three drifting layers. */
.intro-smoke { position: absolute; inset: auto 0 0; height: 48%; overflow: hidden; pointer-events: none; z-index: 1; mask-image: linear-gradient(transparent, #000 40%); }
.intro-smoke span { position: absolute; width: 95%; height: 125%; bottom: -78%; left: -20%; background: url('assets/intro/smoke.svg') center / 100% 100% no-repeat; opacity: 0; animation: intro-smoke-rise 19s linear infinite; will-change: transform, opacity; }
.intro-smoke span:nth-child(2) { left: 30%; width: 85%; animation-duration: 23s; animation-delay: -11s; }
.intro-smoke span:nth-child(3) { left: 4%; width: 110%; animation-duration: 27s; animation-delay: -19s; }
.photo-intro.is-paused .intro-smoke span { animation-play-state: paused; }
@keyframes intro-smoke-rise {
  0% { transform: translate3d(-3%, 12%, 0) scale(.85); opacity: 0; }
  20% { opacity: .19; }
  58% { opacity: .12; }
  100% { transform: translate3d(8%, -85%, 0) scale(1.3); opacity: 0; }
}
@media (max-width: 800px) {
  .photo-intro-header { padding: max(10px, env(safe-area-inset-top)) 18px 10px; font-size: 10px; letter-spacing: 1.6px; }
  .intro-brand { gap: 14px; }
  .intro-logo-window { width: 92px; height: 70px; }
  .intro-logo-window img { width: 180px; left: -45px; top: -27px; }
  #intro-label { flex-wrap: wrap; gap: 10px; white-space: normal; }
  .intro-brand-rule { width: 18px; }
  .intro-header-note { display: none; }
  .photo-intro-footer { grid-template-columns: 1fr; justify-items: center; gap: 18px; padding: 18px 20px max(22px, env(safe-area-inset-bottom)); text-align: center; }
  .intro-slideshow-controls { justify-self: center; gap: 12px; }
  .intro-enter { width: min(100%, 310px); }
  .intro-names { font-size: 12px; }
  .intro-fan-form { grid-template-columns: 1fr; gap: 12px; padding-top: 16px; max-width: 440px; }
  .intro-fan-fields { text-align: left; width: 100%; }
  .intro-fan-copy > p:nth-child(2) { font-size: 11px; }
}
@media (max-height: 500px) and (min-width: 600px) {
  .photo-intro-header { padding: 12px 24px; }
  .photo-intro-footer { grid-template-columns: 1fr auto 1fr; padding: 10px 24px; gap: 18px; text-align: left; }
  .intro-enter { min-width: 180px; min-height: 48px; }
  .intro-slideshow-controls { justify-self: end; gap: 4px; }
  .intro-names { font-size: 9px; letter-spacing: .5px; }
  .intro-story > p:first-child { font-size: 8px; letter-spacing: 1px; }
  .intro-fan-form { grid-template-columns: 1fr 1.4fr; gap: 12px; max-width: 980px; }
  .intro-logo-window { width: 72px; height: 54px; }
  .intro-logo-window img { width: 144px; left: -36px; top: -22px; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-intro:not(.motion-approved), .photo-intro:not(.motion-approved) * { transition: none !important; animation: none !important; }
  .photo-intro:not(.motion-approved) .intro-smoke { display: none; }
}
