/* Project 2031 — its own palette (the turquoise/red portal look would fight the orange night). */
/* Full-window reader fallback for browsers without element fullscreen. */
.p2031 .p-book-frame.is-reader-expanded{position:fixed;inset:0;z-index:10000;width:100vw;height:100dvh;min-height:0;margin:0;border:0;border-radius:0;background:#191d19}
.p2031 {
  --p-orange: #ff8a2a;
  --p-amber: #ffc46b;
  --p-violet: #8b6cff;
  --p-night: #120d1c;
  --p-night-2: #1b1429;
  --p-line: rgba(255, 170, 90, 0.18);
  --p-pixel: "Pixelify Sans", "VT323", monospace;
  --p-mono: "VT323", "Pixelify Sans", monospace;
  background: var(--p-night);
}

.p2031 main { overflow: hidden; }

/* Pixel images stay pixels. */
.p2031 img,
.p2031 video { image-rendering: pixelated; }
.p-shot-paper img { image-rendering: auto; }

/* ---------------------------------------------------------------- hero */
.p-hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.p-hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.p-hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 13, 28, 0.15) 0%, rgba(18, 13, 28, 0.35) 45%, var(--p-night) 100%),
    linear-gradient(90deg, rgba(18, 13, 28, 0.75) 0%, rgba(18, 13, 28, 0) 65%);
}
.p-hero-body { padding: 120px 0 90px; max-width: 1140px; }
.p-kicker {
  font-family: var(--p-mono);
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--p-amber);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.p-title {
  font-family: var(--p-pixel);
  font-weight: 700;
  font-size: clamp(96px, 19vw, 230px);
  line-height: 0.9;
  display: flex;
  gap: 0.04em;
  color: var(--p-orange);
  /* Hard-edged stacked shadow reads as a pixel extrusion, not a soft glow. */
  text-shadow:
    4px 4px 0 #b4421b,
    8px 8px 0 #6b1f2e,
    12px 12px 0 rgba(0, 0, 0, 0.45);
}
.p-title span { display: inline-block; animation: p-flicker 6s steps(1) infinite; }
.p-title span:nth-child(2) { animation-delay: 1.7s; }
.p-title span:nth-child(3) { animation-delay: 3.1s; }
.p-title span:nth-child(4) { animation-delay: 4.4s; }
@keyframes p-flicker {
  0%, 96%, 100% { opacity: 1; }
  97% { opacity: 0.35; }
  98% { opacity: 1; }
  99% { opacity: 0.6; }
}
.p-lead {
  max-width: 560px;
  margin-top: 26px;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.7;
  color: #e9e1f3;
}
.p-lead strong { color: var(--p-amber); font-family: var(--p-pixel); font-weight: 600; }

.p-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.p-btn {
  font-family: var(--p-pixel);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 0;
  cursor: pointer;
  /* Square "pixel" border: two box-shadow rings instead of a rounded border. */
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35), 4px 4px 0 rgba(0, 0, 0, 0.5);
  transition: transform 0.08s steps(2), background 0.15s;
}
.p-btn:hover { background: rgba(255, 255, 255, 0.14); transform: translate(-2px, -2px); }
.p-btn:active { transform: translate(2px, 2px); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); }
.p-btn-main { background: var(--p-orange); color: #1d0f08; box-shadow: inset 0 0 0 2px #ffd2a4, 4px 4px 0 #6b1f2e; }
.p-btn-main:hover { background: #ffa24f; }

.p-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; list-style: none; }
.p-chips li {
  font-family: var(--p-mono);
  font-size: 19px;
  color: var(--p-amber);
  padding: 2px 10px;
  border: 1px dashed rgba(255, 196, 107, 0.45);
}
.p-scroll {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  color: var(--p-amber); text-decoration: none; font-size: 18px;
  animation: p-bob 1.4s steps(2) infinite;
}
@keyframes p-bob { 50% { transform: translate(-50%, 6px); } }

/* ---------------------------------------------------------------- sections */
.p-sec { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.p-sec-dark { background: var(--p-night-2); border-block: 1px solid var(--p-line); }
.p-label {
  font-family: var(--p-mono);
  font-size: 22px;
  color: var(--p-orange);
  letter-spacing: 0.12em;
}
.p-label::after { content: "_"; animation: p-caret 1s steps(1) infinite; }
@keyframes p-caret { 50% { opacity: 0; } }
.p-h2 {
  font-family: var(--p-pixel);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  margin: 6px 0 14px;
  color: #fff;
}
.p-h3 {
  font-family: var(--p-pixel);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 30px);
  margin: 64px 0 18px;
}
.p-sub { color: #bdb2cf; max-width: 640px; line-height: 1.7; margin-bottom: 30px; }
.p-sec p { line-height: 1.75; }
.p-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.p-split p + p { margin-top: 14px; }
.p-split p { color: #d6cde3; }

.p-frame {
  border: 4px solid #2a2140;
  box-shadow: 0 0 0 2px var(--p-orange), 10px 10px 0 rgba(0, 0, 0, 0.5);
  background: #000;
}
.p-frame img { display: block; width: 100%; height: auto; }

/* ---------------------------------------------------------------- gallery */
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.p-shot {
  position: relative;
  padding: 0; border: 0; cursor: zoom-in;
  background: #000;
  overflow: hidden;
  box-shadow: 0 0 0 2px #2a2140, 6px 6px 0 rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.15s, transform 0.12s steps(2);
}
.p-shot img { display: block; width: 100%; height: auto; aspect-ratio: 1580 / 884; object-fit: cover; }
.p-shot-paper img { aspect-ratio: 4 / 3; }
.p-shot span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 12px 8px;
  text-align: left;
  font-family: var(--p-mono);
  font-size: 20px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}
.p-shot:hover { box-shadow: 0 0 0 2px var(--p-orange), 6px 6px 0 rgba(0, 0, 0, 0.45); transform: translate(-2px, -2px); }

/* ---------------------------------------------------------------- ages */
.p-ages-view {
  position: relative;
  aspect-ratio: 1600 / 900;
  background: #000;
  box-shadow: 0 0 0 2px #2a2140, 0 0 0 4px var(--p-violet), 10px 10px 0 rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.p-ages-view img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.6s steps(6);
}
.p-ages-view img.is-on { opacity: 1; }
.p-ages-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 18px;
}
.p-ages-tabs button {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 0;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
  color: #bdb2cf;
  cursor: pointer;
  text-align: left;
}
.p-ages-tabs b { font-family: var(--p-pixel); font-size: 17px; color: var(--p-amber); }
.p-ages-tabs span { font-family: var(--p-mono); font-size: 19px; line-height: 1; }
.p-ages-tabs button.is-on { background: rgba(139, 108, 255, 0.16); box-shadow: inset 0 0 0 2px var(--p-violet); color: #fff; }
.p-ages-text { margin-top: 16px; font-family: var(--p-mono); font-size: 23px; color: #e2d9f0; min-height: 1.6em; }

/* ---------------------------------------------------------------- video */
.p-video {
  background: #000;
  box-shadow: 0 0 0 2px #2a2140, 0 0 0 4px var(--p-orange), 10px 10px 0 rgba(0, 0, 0, 0.5);
}
.p-video video { display: block; width: 100%; height: auto; aspect-ratio: 1580 / 884; }

/* ---------------------------------------------------------------- book */
.p-book {
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 138, 42, 0.12), transparent 50%),
    var(--p-night);
}
.p-book-frame {
  position: relative;
  height: min(86vh, 860px);
  min-height: 520px;
  background: #000;
  box-shadow: 0 0 0 2px #2a2140, 0 0 0 4px var(--p-amber), 10px 10px 0 rgba(0, 0, 0, 0.5);
}
.p-book-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.p-book-cta { margin-top: 22px; }

/* ---------------------------------------------------------------- lightbox */
.p-lightbox {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 5, 14, 0.92);
  padding: 24px;
}
.p-lightbox[hidden] { display: none; }
.p-lightbox figure { max-width: min(1400px, 100%); }
.p-lightbox img { display: block; max-width: 100%; max-height: 82vh; margin: 0 auto; box-shadow: 0 0 0 2px var(--p-orange); }
.p-lightbox figcaption { margin-top: 12px; text-align: center; font-family: var(--p-mono); font-size: 22px; color: var(--p-amber); }
.p-lightbox-close {
  position: absolute; top: 14px; right: 18px;
  width: 44px; height: 44px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 28px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 900px) {
  .p-split { grid-template-columns: 1fr; }
  .p-grid { grid-template-columns: repeat(2, 1fr); }
  .p-ages-tabs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .p-hero-body { padding: 90px 0 70px; }
  .p-grid, .p-grid-3 { grid-template-columns: 1fr; }
  .p-ages-tabs { grid-template-columns: repeat(2, 1fr); }
  .p-book-frame { height: 78vh; min-height: 460px; }
  .p-btn { font-size: 16px; padding: 11px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .p-title span, .p-scroll, .p-label::after { animation: none; }
}

.p2031{--p-pixel:var(--pixel);--p-mono:var(--pixel)}

.p2031 .p-title{font-family:"Pixelify Sans",monospace}
