/* ====== Pandellium splash — shared styles ====== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=JetBrains+Mono:wght@300;400;500&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
  --bg: #0a0a0a;
  --fg: #e8e4dc;
  --accent: #8a7a5e;
  --hair: rgba(232, 228, 220, 0.10);
  --hair-strong: rgba(232, 228, 220, 0.20);
  --fg-dim: rgba(232, 228, 220, 0.55);
  --fg-dimmer: rgba(232, 228, 220, 0.32);

  --font-display: 'Anton', 'Oswald', 'Impact', sans-serif;
  --font-italic: 'Cormorant Garamond', 'Garamond', serif;
  --font-mono: 'JetBrains Mono', 'Menlo', monospace;
}

* { box-sizing: border-box; }

.pd-art {
  width: 1440px;
  height: 900px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-italic);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
  container-type: size;
  container-name: art;
}

/* Responsive wrapper for live preview */
.pd-live-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg);
  overflow: hidden;
}
.pd-art--responsive {
  width: 100%;
  height: 100%;
}

/* ─ Fluid sizing helpers ─
   Sizes are tuned so that a 1440-wide container reproduces the
   original pixel values; below ~720cqw they clamp to mobile floors. */
.pd-art {
  --fs-wordmark-xl: clamp(56px, 17cqw, 260px);
  --fs-wordmark-lg: clamp(52px, 15.3cqw, 220px);
  --fs-wordmark-md: clamp(48px, 13.9cqw, 200px);
  --fs-wordmark-stack: clamp(64px, 11.7cqw, 168px);
  --fs-tagline: clamp(15px, 1.7cqw, 26px);
  --fs-tagline-sm: clamp(14px, 1.55cqw, 22px);
  --fs-micro: clamp(9px, 0.72cqw, 11px);
  --pad-x: clamp(20px, 5.5cqw, 80px);
  --pad-y: clamp(20px, 4.4cqw, 64px);
  --gap-stack: clamp(14px, 1.95cqw, 28px);
}

/* Cinemascope bands scale down on narrow */
.pd-band { height: clamp(70px, 9cqw, 130px); }

/* ─ Container-query restacks ─ */

/* Stack 3-column bottom docks (V1, V4) */
@container art (max-width: 760px) {
  .pd-dock-3 {
    display: flex !important;
    flex-direction: column;
    gap: 18px !important;
    align-items: stretch !important;
  }
  .pd-dock-3 > .pd-dock-divider { display: none; }
  .pd-dock-3 > * { text-align: left !important; }
}

/* V2 Cinemascope bottom band stacks */
@container art (max-width: 760px) {
  .pd-cscope-bottom {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    padding: 14px var(--pad-x) !important;
  }
  .pd-cscope-bottom > .pd-dock-divider { display: none; }
}

/* V3 Editorial Split — collapse the right "still" column on narrow */
@container art (max-width: 820px) {
  .pd-split { flex-direction: column !important; }
  .pd-split-left { flex: 1 1 auto !important; padding: var(--pad-y) var(--pad-x) !important; }
  .pd-split-right { display: none !important; }
}

/* Spotlight: bigger reveal radius is fine, but custom cursor off on touch */
@media (hover: none) {
  .pd-art--responsive { cursor: default !important; }
}

/* Hide film-corner marks on very small screens */
@container art (max-width: 480px) {
  .pd-corner { display: none; }
}

/* Vignette */
.pd-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
    transparent 0%,
    transparent 45%,
    rgba(0,0,0,0.55) 100%);
  z-index: 5;
}

/* Film grain via SVG turbulence */
.pd-grain {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 6;
  opacity: var(--grain-opacity, 0.18);
  mix-blend-mode: overlay;
  animation: pd-grain-shift 1.2s steps(6) infinite;
}

@keyframes pd-grain-shift {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-5%, -3%); }
  20%  { transform: translate(-8%, 2%); }
  30%  { transform: translate(2%, -7%); }
  40%  { transform: translate(-3%, 4%); }
  50%  { transform: translate(-5%, -5%); }
  60%  { transform: translate(4%, 0%); }
  70%  { transform: translate(-6%, 3%); }
  80%  { transform: translate(0%, -4%); }
  90%  { transform: translate(3%, 5%); }
  100% { transform: translate(0, 0); }
}

/* Breathing animation */
@keyframes pd-breathe {
  0%, 100% { opacity: 0.92; letter-spacing: 0.02em; }
  50%      { opacity: 1;    letter-spacing: 0.035em; }
}

@keyframes pd-drift-x {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(-2%); }
}

@keyframes pd-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pd-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pd-spotlight-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 0.85; }
}

@keyframes pd-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes pd-still-drift {
  0%   { transform: scale(1.05) translate(0, 0); }
  50%  { transform: scale(1.08) translate(-1%, -0.5%); }
  100% { transform: scale(1.05) translate(0, 0); }
}

/* Common text atoms */
.pd-wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 0.85;
  color: var(--fg);
  animation: pd-breathe 7s ease-in-out infinite;
}

.pd-tagline {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--fg);
  line-height: 1.2;
}

.pd-micro {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.pd-rule {
  display: block;
  height: 1px;
  background: var(--hair-strong);
  border: 0;
  width: 100%;
}

/* Inputs */
.pd-input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hair-strong);
  color: var(--fg);
  font-family: var(--font-italic);
  font-size: 18px;
  font-style: italic;
  padding: 6px 0;
  outline: none;
  width: 100%;
  transition: border-color .25s;
}
.pd-input::placeholder { color: var(--fg-dimmer); font-style: italic; }
.pd-input:focus { border-color: var(--fg); }

.pd-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--hair-strong);
  color: var(--fg);
  padding: 10px 18px;
  cursor: pointer;
  transition: all .25s;
  white-space: nowrap;
}
.pd-btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Logo placeholder box */
.pd-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--hair-strong);
  color: var(--fg-dimmer);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: rgba(232,228,220,0.02);
}

/* Image placeholder (for V3) */
.pd-still {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg,
      rgba(232,228,220,0.03) 0 2px,
      transparent 2px 14px),
    linear-gradient(180deg, #15110d 0%, #0a0908 100%);
}
.pd-still::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%,
    rgba(138,122,94,0.18) 0%,
    transparent 60%);
}
.pd-still-label {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-dimmer);
  z-index: 2;
}

/* Corner marks (film frame) */
.pd-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--fg-dim);
  border-style: solid;
  border-width: 0;
}
.pd-corner.tl { top: 24px; left: 24px; border-top-width: 1px; border-left-width: 1px; }
.pd-corner.tr { top: 24px; right: 24px; border-top-width: 1px; border-right-width: 1px; }
.pd-corner.bl { bottom: 24px; left: 24px; border-bottom-width: 1px; border-left-width: 1px; }
.pd-corner.br { bottom: 24px; right: 24px; border-bottom-width: 1px; border-right-width: 1px; }

/* Marquee */
.pd-marquee {
  display: flex;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.pd-marquee-track {
  display: flex;
  flex-shrink: 0;
  gap: 64px;
  padding-right: 64px;
  animation: pd-marquee 50s linear infinite;
  white-space: nowrap;
}
