/* =========================================
   acetates.org — Styles (clean)
   ========================================= */

/* ---------------------
   1) CSS Variables/Base
   --------------------- */
:root{
  --tilt-max: 8;          /* degrees of max tilt */
  --parallax: 20;         /* px background shift */
  --shadow: 22px;         /* drop-shadow intensity */
  --footer-h: 48px;       /* fixed footer height allowance */
}

html, body { height: 100%; margin: 0; }
body {
  font-family: Arial, sans-serif;
  color: #fff;
  background: #000;
  min-height: 100vh;
  width: 100vw;
  overflow: hidden; /* page scroll is handled by .page-scroll */
}

.pre-about .page-scroll {
  overflow: hidden;
  height: 100%;
  min-height: 100vh;
  touch-action: none;
}

.page-scroll {
  position: relative;
  width: 100vw;
  height: calc(100vh - var(--footer-h));
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* --------------------------------
   2) Scene & Background (parallax)
   -------------------------------- */
.scene {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  /* No perspective so fixed bg is not constrained */
  overflow: visible;
}

.bg {
  position: fixed;
  inset: -2rem;
  background: url("/img/777-BACKGROUND-1920.jpg") no-repeat center/cover;
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0);
  will-change: opacity;          /* no transform animation on load */
  transition: none;              /* prevent slide-in from default position */
  filter: saturate(1.02) contrast(1.02);
  opacity: 0.9;
  animation: fadeInBg 30.5s ease-in-out forwards;
  z-index: 0;
}

/* Fallback hint if bg image fails */
#bg-hint {
  position: fixed;
  bottom: 10px; left: 10px;
  font-size: 10px; opacity: 0.6; display: none;
}
.no-bg #bg-hint { display: block; }

/* ------------------------
   3) Foreground Content
   ------------------------ */
.card {
  position: relative;
  margin: 0 auto;
  max-width: 980px;  /* widened from 820px */
  width: 100%;
  background: none;
  display: block;
  z-index: 2;
}

.card-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transform-style: preserve-3d;
  padding: 2.5rem 1.5rem 3.5rem 1.5rem; /* slightly more horizontal padding */
  box-sizing: border-box;
}

.logo {
  width: 220px;
  max-width: 70%;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.5));
  /* animation: fadeIn 10.5s; */
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

h1 {
  text-align: center;
  font-size: 2rem;
  line-height: 1.3;
  text-shadow: 0 10px var(--shadow) rgba(0,0,0,0.45);
  margin: 0 1rem;
  /* animation: fadeIn 10.5s; */
}

footer {
  position: fixed; left: 0; right: 0; bottom: 10px;
  text-align: center;
  font-size: 0.7rem;
  opacity: 0.85;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  transform: translateZ(30px);
  /* Optional: keep some horizontal padding; don't add bottom padding here */
  padding: 0 12px;
  /* Keep your fade behavior if you want */
  transition: opacity 3.2s ease;
  animation: fadeIn 10.5s;
  pointer-events: auto;
  z-index: 5;
  user-select: none;
}
footer a {
  color: inherit;
  text-decoration: underline;
  pointer-events: auto;
  cursor: pointer;
}

.intro-only .card-content {
  min-height: 100vh;
  justify-content: center;
}

.main-content.collapsed { display: none; }
.cta-btn.hidden { display: none !important; }
.main-content.collapsed:target { display: block; }

/* ----------------------------
   4) Notify (email capture)
   ---------------------------- */
.notify-block {
  margin-top: 0;
  text-align: center;
  opacity: 1;
  /* animation: fadeIn 10.5s ease forwards; */
  animation-delay: 1.2s;
  transform: translateZ(50px);
  will-change: transform, opacity;
}
.notify-block.collapsed { display: none; }
.notify-block.collapsed:target { display: block; }
.no-cta-gap .notify-block { margin-top: 0; }
.both-open .notify-block { margin-bottom: 1.8rem; }

.notify-swap {
  display: grid;
  place-items: center;
}
.notify-form,
.notify-thanks {
  grid-area: 1 / 1;
  margin: 0;
  transform: translateZ(50px);
}

/* Form */
.notify-form {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.notify-form input[type="email"] {
  width: 260px;
  max-width: 100%;
  padding: .5rem .6rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.35);
  color: #fff;
  outline: none;
}

/* Portrait mobile: shrink a bit */
@media (max-width: 480px) {
  .notify-form input[type="email"] {
    width: 70vw;
    max-width: 220px;
  }
}

/* Landscape mobile: shrink more */
@media (max-height: 420px) and (orientation: landscape) {
  .notify-form input[type="email"] {
    width: 60vw;
    max-width: 200px;
  }
}
.notify-form input[type="email"]::placeholder{ color: rgba(255,255,255,.6); }
.notify-form input[type="email"]:focus{
  border-color: rgba(255,255,255,.45);
  box-shadow: 0 0 0 3px rgba(255,255,255,.12);
}
.notify-form button{
  padding: .5rem .8rem; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1); color:#fff; cursor:pointer;
}
.notify-form button:hover{ background: rgba(255,255,255,.18); }
.notify-form button:disabled{ opacity:.6; cursor: default; }
.notify-msg { margin: .25rem 0 0; font-size: .85rem; opacity: .9; min-height: 1.2em; }

.notify-thanks { opacity: 0; font-size: .95rem; }

.swap-in  { animation: fadeOnlyIn  .6s ease forwards; }
.swap-out { animation: fadeOnlyOut .6s ease forwards; }
@keyframes fadeOnlyIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOnlyOut { from { opacity: 1; } to { opacity: 0; } }

/* A11y helper */
.sr-only{
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip:rect(1px,1px,1px,1px); white-space:nowrap;
}

/* --------------------------
   5) Keyframes (shared)
   -------------------------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes fadeInBg {
  0%   { opacity: 1; }
  30%  { opacity: 0.5; }
  100% { opacity: 0.9; }
}

@keyframes fadeInBgLoop {
  0%   { opacity: 0.9; }
  50%  { opacity: 0.5; }
  100% { opacity: 0.9; }
}

@keyframes playerFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes playerFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(8px); }
}
.fade-in   { animation: playerFade 0.6s ease forwards; }
.fade-out  { animation: playerFadeOut 0.6s ease forwards; }

/* --------------------------
   6) Reduced Motion
   -------------------------- */
@media (prefers-reduced-motion: reduce) {
  .bg, .card { transition: none !important; animation: none !important; }
  .card { transform: none !important; }
  .bg { transform: none !important; opacity: 1 !important; }
  .marquee__inner { animation: none !important; transform: none !important; }
}

/* --------------------------
   7) Optional bg click guard
   -------------------------- */
.bg-guard {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: transparent;
  pointer-events: none;
}
.protect .bg-guard { pointer-events: auto; }

/* --------------------------
   8) Watermark overlay
   -------------------------- */
.watermark::before {
  content: "acetates.org  •  RareSlate";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.06;
  font: 700 16px/1.6 Arial, sans-serif;
  color: #fff;
  mix-blend-mode: overlay;
  background:
    repeating-linear-gradient(45deg, transparent 0 180px, currentColor 180px 181px, transparent 181px 360px);
}

/* -------------------------------------------
   9) Responsive
   ------------------------------------------- */
@media (max-width: 600px), (pointer: coarse) and (max-width: 800px){
  .notify-form input[type="email"]{ width: min(92vw, 520px); }
}

/* Small touch devices in LANDSCAPE: shrink headline + logo */
@media (pointer: coarse) and (max-width: 800px) and (orientation: landscape) {
  .logo {
    width: 300px;
    max-width: 50%;
  }
  h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }
}

/* Make sure main-content and info-section are readable and spaced */
.main-content {
  width: 100%;
  max-width: 900px;  /* widened from 700px */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.info-section {
  width: 100%;
  background: rgba(0,0,0,0.60);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
  padding: 2rem 1.75rem 1.75rem 1.75rem; /* more horizontal space */
  margin-bottom: 0.5rem;
  box-sizing: border-box;
}

.info-section h2 {
  margin-top: 0;
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 0.7rem;
}
.info-section ul, .info-section ol {
  margin-left: 1.2em;
  margin-bottom: 1em;
}
.info-section li {
  margin-bottom: 0.4em;
}
.hero {
  margin-bottom: 2.2rem;
  text-align: center;
}
.no-cta-gap .hero { margin-bottom: 0.1rem; }
.hero-cta {
  margin-top: 1.2rem;
  display: flex;
  gap: 1.2rem;
  justify-content: center;
}
.hero-cta.cta-empty { display: none; margin-top: 0; }
.cta-btn {
  display: inline-block;
  background: #fff;
  color: #0a1830;
  font-weight: bold;
  border-radius: 8px;
  padding: 0.7em 1.5em;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.18s, color 0.18s;
}
.cta-btn.secondary {
  background: #0a1830;
  color: #fff;
  border: 1.5px solid #fff;
}
.cta-btn:hover, .cta-btn:focus {
  background: #e0e0e0;
  color: #0a1830;
}
.cta-btn.secondary:hover, .cta-btn.secondary:focus {
  background: #222;
  color: #fff;
}

/* Phones in LANDSCAPE (short height) — tighten hero + form */
@media (orientation: landscape) and (max-height: 480px) {
  .card-content { gap: .55rem; }

  .logo {
    width: 150px !important;
    max-width: none !important;
  }

  h1 {
    font-size: 1.05rem !important;
    line-height: 1.18;
    margin: 0 .6rem;
  }

  .notify-form input[type="email"] {
    width: 50vw;
    max-width: 200px;
  }
}
