/* KAGΞ's black-stage landing intro. */
:root {
  --wall-charcoal: #050506;
  --board-linen: #050506;
}

html, body { background: #050506; }
.studio-environment { background: #050506; }
.scene-header { background: rgba(5, 5, 6, .9); border-bottom-color: rgba(243,239,230,.1); }
.scene-nav { background: rgba(8,8,10,.97); }

.hero-board-scene {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(880px, calc(100svh - 66px));
  padding: clamp(2.2rem, 5vw, 4.5rem) 0 clamp(2.4rem, 5vw, 4.5rem);
  isolation: isolate;
  overflow: hidden;
}
.hero-board-scene::before,
.hero-board-scene::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.hero-board-scene::before {
  inset: -15% -5% -5%;
  background:
    radial-gradient(ellipse at 73% 48%, rgba(20, 190, 177, .12), transparent 24%),
    radial-gradient(ellipse at 65% 45%, rgba(242, 67, 128, .12), transparent 32%),
    radial-gradient(ellipse at 14% 18%, rgba(255,255,255,.035), transparent 30%);
  animation: heroAtmosphere 8s ease-in-out infinite alternate;
}
.hero-board-scene::after {
  top: 0; right: -18vw; width: 48vw; height: 100%;
  background: linear-gradient(110deg, transparent 36%, rgba(255,255,255,.018) 50%, transparent 64%);
  transform: skewX(-18deg);
  animation: heroSweep 9s ease-in-out infinite;
}

.hero-board-scene > .scene-container { width: 100%; max-width: 1440px; }
.pinboard-frame { position: relative; padding: 0; background: none; border: 0; outline: 0; box-shadow: none; }
.frame-joint, .masking-tape { display: none; }
.board-composition {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
  min-height: min(720px, calc(100svh - 150px));
}
.broadsheet-paper { position: relative; z-index: 2; padding: 0; background: none; border: 0; box-shadow: none; }
.broadsheet-meta {
  gap: 1rem;
  padding: 0 0 .9rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
  border-bottom: 1px solid rgba(243,239,230,.18);
  font-size: .66rem;
  animation: heroRise .8s .12s both;
}
.stamped-caption { color: var(--accent-teal); }
.sheet-ref { color: #7d8087; }
.broadsheet-headline {
  max-width: 11ch;
  margin: 0 0 1.3rem;
  color: #f5f2eb;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7.2vw, 7.7rem);
  font-weight: 700;
  line-height: .93;
  letter-spacing: -.075em;
}
.hero-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-line > span { display: inline-block; animation: heroTextIn .9s cubic-bezier(.16,.8,.24,1) both; }
.hero-line:nth-child(2) > span { animation-delay: .17s; }
.hero-line em { color: var(--accent-pink); font-style: normal; }
.broadsheet-copy {
  max-width: 54ch;
  margin-bottom: 1.65rem;
  color: #b9bac0;
  font-size: clamp(.98rem, 1.35vw, 1.13rem);
  line-height: 1.75;
  animation: heroRise .8s .38s both;
}
.broadsheet-copy strong { color: #f7f4ee; }
.broadsheet-actions { align-items: center; gap: 1.1rem; margin-bottom: 1.35rem; animation: heroRise .8s .52s both; }
.dispatch-ticket-link {
  min-height: 50px;
  padding: .35rem 1.05rem;
  color: #08080a;
  background: #f26d9b;
  border: 0;
  box-shadow: 0 0 0 1px rgba(242,109,155,.25), 0 8px 30px rgba(242,109,155,.12);
  transition: transform .22s ease, box-shadow .3s ease, background-color .2s ease;
}
.dispatch-ticket-link:hover { transform: translateY(-3px); background: #ff8db2; box-shadow: 0 0 0 1px rgba(242,109,155,.5), 0 12px 38px rgba(242,109,155,.22); }
.ticket-stub { display: none; }
.ticket-main { flex-direction: row; align-items: baseline; gap: .7rem; padding: .3rem .1rem; }
.ticket-main small { color: rgba(8,8,10,.66); }
.secondary-handle-slip { align-items: center; padding: .3rem 0; background: none; border: 0; }
.handle-slip-label { color: #797b81; }
.handle-code { color: #f0ede7; }
.paper-clip-btn { color: var(--accent-teal); background: none; border: 0; border-bottom: 1px solid rgba(243,239,230,.25); }
.paper-clip-btn:hover { color: #050506; background: var(--accent-teal); }
.broadsheet-margin-note { width: fit-content; padding-top: .9rem; border-top: 1px solid rgba(243,239,230,.17); animation: heroRise .8s .65s both; }
.margin-note-link span { color: #f2eee7; text-decoration-color: var(--accent-teal); }
.margin-note-link small { color: #8c8e95; }
.board-chalk-ledge { display: none; }

.portrait-mount-area {
  position: relative;
  z-index: 1;
  width: min(100%, 570px);
  max-width: 570px;
  margin: 0 auto;
  perspective: 1200px;
  animation: portraitArrive 1.15s .12s cubic-bezier(.16,.8,.24,1) both;
}
.hero-energy { position: absolute; inset: -12%; z-index: 0; pointer-events: none; }
.hero-energy-core {
  position: absolute; inset: 16%; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,109,155,.2), rgba(53,212,183,.11) 36%, transparent 68%);
  filter: blur(28px);
  animation: corePulse 3.8s ease-in-out infinite alternate;
}
.hero-orbit { position: absolute; inset: 8%; border: 1px solid rgba(53,212,183,.34); border-radius: 48%; transform: rotate(-22deg); }
.hero-orbit--one { animation: orbitSpin 24s linear infinite; }
.hero-orbit--two { inset: 3% 15%; border-color: rgba(242,109,155,.24); transform: rotate(31deg); animation: orbitSpinBack 31s linear infinite; }
.hero-lightning { position: absolute; inset: -4%; width: 108%; height: 108%; overflow: visible; }
.hero-bolt { stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 8 18; animation: boltRun 2.8s linear infinite, boltFlicker 3.7s steps(1,end) infinite; }
.hero-bolt--pink { stroke: rgba(255,116,168,.82); filter: drop-shadow(0 0 8px rgba(242,109,155,.9)); }
.hero-bolt--teal { stroke: rgba(92,255,225,.82); filter: drop-shadow(0 0 8px rgba(53,212,183,.85)); animation-delay: -.7s, -.8s; }
.hero-bolt--white { stroke: rgba(255,255,255,.72); filter: drop-shadow(0 0 6px rgba(255,255,255,.7)); animation-delay: -1.2s, -1.3s; }
.collector-card-wrapper { position: relative; z-index: 1; width: 100%; transform-style: preserve-3d; animation: portraitFloat 5.8s ease-in-out infinite; }
.collector-card-wrapper[data-flipped="true"] { animation-play-state: paused; transform: rotateY(180deg); }
.collector-face--back { position: absolute; inset: 0; transform: rotateY(180deg); }
.polaroid-stock, .polaroid-stock--reverse {
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  color: #f4f0ea;
  background: none;
  border: 0;
  box-shadow: none;
  transform: none;
}
.collector-card-wrapper:hover .polaroid-stock { transform: none; box-shadow: none; }
.photo-mount-well {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(ellipse at 50% 47%, #000 57%, rgba(0,0,0,.9) 66%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 47%, #000 57%, rgba(0,0,0,.9) 66%, transparent 78%);
}
.pfp-artwork { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.photo-corner, .brass-pin { display: none; }
.polaroid-caption-bar { justify-content: center; gap: .9rem; padding: .15rem 0 0; color: #d9d6d0; }
.polaroid-name { font-family: var(--font-display); font-size: .9rem; }
.polaroid-handle { color: #85868b; }
.polaroid-stamp { color: #85868b; border-color: rgba(243,239,230,.18); }
.card-tab-ActionBar { display: flex; justify-content: center; gap: .8rem; margin-top: .4rem; }
.paper-flip-tab { padding: .3rem .5rem; color: #c0bec0; background: rgba(255,255,255,.04); border: 1px solid rgba(243,239,230,.13); border-radius: 2px; }
.paper-flip-tab:hover { color: #fff; background: rgba(255,255,255,.09); }
.card-caption-note { color: #777a81; }
.reverse-ink-stamp, .reverse-hand-note, .reverse-ledger, .reverse-footer-mark { color: #d8d4ce; }
.reverse-ink-stamp { border-color: rgba(243,239,230,.18); }
.reverse-ledger > div { border-color: rgba(243,239,230,.15); }
.reverse-ledger dt { color: #85868b; }
.reverse-ledger dd, .reverse-ledger a { color: #f1ede6; }
.reverse-footer-mark { border-color: rgba(243,239,230,.15); }

@keyframes heroRise { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }
@keyframes heroTextIn { from { opacity:0; transform:translateY(110%) skewY(4deg); } to { opacity:1; transform:translateY(0) skewY(0); } }
@keyframes portraitArrive { from { opacity:0; transform:translateX(32px) scale(.96); } to { opacity:1; transform:translateX(0) scale(1); } }
@keyframes portraitFloat { 0%,100% { translate:0 0; } 50% { translate:0 -9px; } }
@keyframes orbitSpin { to { rotate:360deg; } }
@keyframes orbitSpinBack { from { rotate:0deg; } to { rotate:-360deg; } }
@keyframes boltRun { to { stroke-dashoffset:-104; } }
@keyframes boltFlicker { 0%,39%,42%,71%,75%,100% { opacity:.9; } 40%,73% { opacity:.25; } }
@keyframes corePulse { from { opacity:.55; transform:scale(.93); } to { opacity:1; transform:scale(1.06); } }
@keyframes heroAtmosphere { from { opacity:.65; transform:scale(.96); } to { opacity:1; transform:scale(1.04); } }
@keyframes heroSweep { 0%,25% { opacity:0; transform:translateX(-50%) skewX(-18deg); } 58% { opacity:.7; } 100% { opacity:0; transform:translateX(40%) skewX(-18deg); } }

@media (max-width: 860px) {
  .hero-board-scene { min-height: calc(100svh - 66px); padding-top: 2.6rem; }
  .board-composition { grid-template-columns: minmax(0,1fr) minmax(280px,.78fr); gap: 1rem; min-height: 0; }
  .broadsheet-headline { font-size: clamp(3rem, 7vw, 5rem); }
  .portrait-mount-area { width: min(100%, 440px); }
}
@media (max-width: 760px) {
  .hero-board-scene { display:block; min-height:0; padding: 2rem 0 2.25rem; }
  .board-composition { display:flex; flex-direction:column; align-items:stretch; gap: 1.6rem; min-height:0; }
  .broadsheet-meta { margin-bottom: 1.25rem; font-size: .58rem; }
  .broadsheet-headline { max-width: 10ch; margin-bottom: .8rem; font-size: clamp(3.05rem, 14vw, 4.25rem); }
  .broadsheet-copy { max-width: 39ch; margin-bottom: 1rem; font-size: .94rem; }
  .broadsheet-actions { gap: .55rem 1rem; margin-bottom: .9rem; }
  .dispatch-ticket-link { min-height: 45px; padding: .25rem .8rem; }
  .ticket-main { gap: .45rem; }
  .secondary-handle-slip { flex-wrap:wrap; }
  .broadsheet-margin-note { padding-top:.65rem; }
  .portrait-mount-area { width: min(83vw, 390px); margin-top:.15rem; }
  .hero-energy { inset:-14%; }
  .card-tab-ActionBar { flex-direction:column; align-items:center; gap:.15rem; }
  .guide-panel { max-width:calc(100vw - 1rem); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-board-scene::before, .hero-board-scene::after,
  .hero-line > span, .broadsheet-meta, .broadsheet-copy,
  .broadsheet-actions, .broadsheet-margin-note, .portrait-mount-area,
  .collector-card-wrapper, .hero-orbit, .hero-bolt, .hero-energy-core {
    animation:none !important;
    transition:none !important;
  }
  .hero-line > span, .broadsheet-meta, .broadsheet-copy,
  .broadsheet-actions, .broadsheet-margin-note, .portrait-mount-area {
    opacity:1;
    transform:none;
  }
}
