/* =========================================================
   08:37 — Landing
   Black absolute, off-white text, Courier New typewriter
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: #000;
  color: #f0ece6;
  font-family: 'Courier New', Courier, 'Roboto Mono', 'Liberation Mono', monospace;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: #f0ece6; color: #000; }

main { max-width: 1100px; margin: 0 auto; padding: 0 28px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
  position: relative;
}

.logo {
  max-width: 520px;
  width: 75%;
  height: auto;
  display: block;
  margin: 0 auto 56px;
  opacity: 0;
  animation: fadeUp 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.2s;
}

.claim {
  font-size: clamp(0.95rem, 1.9vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  max-width: 640px;
  margin: 0 auto 18px;
  opacity: 0;
  animation: fadeUp 1.4s ease forwards 1s;
}

.tagline {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.45em;
  margin: 0;
  padding-left: 0.45em;
  opacity: 0;
  animation: fadeUpTagline 1.4s ease forwards 1.6s;
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, #f0ece6 30%, #f0ece6 70%, transparent);
  opacity: 0;
  animation: fadeIn 1.4s ease forwards 2.2s;
}

@keyframes fadeIn { to { opacity: 0.4; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUpTagline {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 0.55; transform: translateY(0); }
}

/* ---------- Manifesto ---------- */
.manifesto {
  max-width: 680px;
  margin: 0 auto;
  padding: 100px 0 60px;
  font-size: 0.98rem;
  line-height: 1.85;
}
.manifesto p {
  margin: 0 0 28px;
}
.manifesto p:last-child { margin-bottom: 0; }
.manifesto em {
  font-style: italic;
  opacity: 0.92;
}
.manifesto strong {
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ---------- Credits / Ringraziamenti ---------- */
.credits {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 0 20px;
  font-size: 0.92rem;
  line-height: 1.75;
  text-align: center;
}
.credits .section-title {
  margin: 0 0 56px;
}
.credits-block {
  margin: 0 0 40px;
}
.credits-heading {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-weight: 700;
  margin: 0 0 18px;
  padding-left: 0.4em;
  opacity: 0.85;
}
.credits-roles { margin: 0; }
.credits-role {
  opacity: 0.5;
  font-style: italic;
  display: inline-block;
  margin-right: 6px;
}
.credits-list {
  margin: 0;
  opacity: 0.85;
}
.credits-coda {
  margin: 36px 0 0;
  font-style: italic;
  font-size: 0.85rem;
  opacity: 0.55;
}

/* ---------- CTA homepage ---------- */
.cta {
  text-align: center;
  padding: 40px 0 100px;
  max-width: 680px;
  margin: 0 auto;
}
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  border: 1px solid #f0ece6;
  color: #f0ece6;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding-left: calc(32px + 0.3em);
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}
.cta-link:hover,
.cta-link:focus-visible {
  background: #f0ece6;
  color: #000;
  outline: none;
}
.cta-arrow {
  display: inline-block;
  transition: transform 0.35s ease;
}
.cta-link:hover .cta-arrow,
.cta-link:focus-visible .cta-arrow {
  transform: translateX(6px);
}
.cta-note {
  margin: 24px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  opacity: 0.5;
}

/* ---------- Mini header (visione) ---------- */
.mini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid #141414;
  margin-bottom: 8px;
}
.mini-header .back {
  color: #f0ece6;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.65;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.3s ease;
}
.mini-header .back:hover { opacity: 1; }
.mini-logo-link { display: inline-block; }
.mini-logo {
  height: 32px;
  width: auto;
  display: block;
  opacity: 0.9;
}
.mini-spacer {
  /* simmetria con .back */
  display: inline-block;
  width: 90px;
}

/* ---------- Gate ---------- */
.gate {
  max-width: 480px;
  margin: 0 auto;
  padding: 120px 0 100px;
  text-align: center;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.gate.hidden {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  position: absolute;
  left: -9999px;
}
.gate-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  margin: 0 0 24px;
  padding-left: 0.4em;
}
.gate-instruction {
  margin: 0 0 40px;
  opacity: 0.7;
  font-size: 0.95rem;
}
.gate-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}
.gate-input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #2a2a2a;
  color: #f0ece6;
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 4px;
  text-align: center;
  letter-spacing: 0.18em;
  outline: none;
  transition: border-color 0.3s ease;
}
.gate-input::placeholder {
  color: #f0ece6;
  opacity: 0.25;
  letter-spacing: 0.12em;
  font-style: italic;
}
.gate-input:focus { border-bottom-color: #f0ece6; }
.gate-input.shake { animation: shake 0.4s; border-bottom-color: #c84a3a; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.gate-submit {
  margin-top: 16px;
  background: transparent;
  border: 1px solid #f0ece6;
  color: #f0ece6;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  padding: 14px 24px;
  padding-left: calc(24px + 0.3em);
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.gate-submit:hover:not(:disabled),
.gate-submit:focus-visible:not(:disabled) {
  background: #f0ece6;
  color: #000;
  outline: none;
}
.gate-submit:disabled { opacity: 0.5; cursor: progress; }

.gate-error {
  min-height: 1.4em;
  margin: 16px 0 0;
  color: #c84a3a;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- Versions ---------- */
.versions {
  padding: 80px 0 120px;
  animation: fadeIn2 0.8s ease;
}
@keyframes fadeIn2 {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.section-title {
  text-align: center;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  font-weight: 700;
  opacity: 0.65;
  margin: 0 0 96px;
  padding-left: 0.5em;
}

.version {
  margin: 0 0 110px;
}
.version:last-child { margin-bottom: 0; }

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050505;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid #161616;
  transition: border-color 0.4s ease;
}
.player:hover { border-color: #2a2a2a; }

.player .cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s;
}
.player:hover .cover { transform: scale(1.015); }

.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.35) 100%);
  border: 0;
  color: #f0ece6;
  cursor: pointer;
  padding: 0;
  opacity: 0.92;
  transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.play-btn:hover,
.player:hover .play-btn {
  opacity: 1;
  transform: scale(1.04);
}
.play-btn svg {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}

.player.playing { cursor: default; border-color: #2a2a2a; }
.player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Maschera il pulsante "Apri in una nuova finestra" del player Drive
   (in alto a destra). Nessun parametro ufficiale Drive lo rimuove,
   quindi sovrapponiamo un riquadro invisibile che cattura i click. */
.player.playing::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 64px;
  height: 56px;
  background: transparent;
  z-index: 2;
  pointer-events: auto;
  cursor: default;
}
@media (max-width: 720px) {
  .player.playing::after {
    width: 52px;
    height: 48px;
  }
}

.info {
  padding: 28px 4px 0;
}
.info h3 {
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}
.info p {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.7;
  letter-spacing: 0.01em;
}
.info p em { font-style: italic; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid #141414;
  padding: 40px 0 56px;
  text-align: center;
}
.footer-tagline {
  margin: 0 0 18px;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.4;
}
.footer-contacts {
  margin: 0;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-contacts a {
  color: #f0ece6;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, opacity 0.25s ease;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-contacts a:hover,
.footer-contacts a:focus-visible {
  border-bottom-color: #f0ece6;
  opacity: 1;
  outline: none;
}
.footer-contacts .ig-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.footer-contacts .sep {
  opacity: 0.3;
  display: inline-block;
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  body { font-size: 15px; }
  main { padding: 0 20px; }
  .hero { padding: 60px 0; }
  .logo { width: 82%; margin-bottom: 40px; }
  .claim { font-size: 1rem; }
  .tagline { font-size: 0.65rem; letter-spacing: 0.32em; padding-left: 0.32em; }

  .manifesto { padding: 60px 0 30px; font-size: 0.95rem; line-height: 1.8; }
  .manifesto p { margin-bottom: 22px; }

  .credits {
    padding: 30px 0 14px;
    font-size: 0.85rem;
    line-height: 1.7;
  }
  .credits .section-title { margin-bottom: 40px; }
  .credits-block { margin-bottom: 32px; }
  .credits-heading {
    letter-spacing: 0.3em;
    padding-left: 0.3em;
    font-size: 0.66rem;
    margin-bottom: 14px;
  }
  .credits-coda { font-size: 0.8rem; margin-top: 28px; }

  .cta { padding: 24px 0 70px; }
  .cta-link {
    padding: 16px 24px;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    padding-left: calc(24px + 0.22em);
  }
  .cta-note { font-size: 0.72rem; }

  .mini-header { padding: 16px 0; }
  .mini-logo { height: 26px; }
  .mini-header .back { font-size: 0.7rem; letter-spacing: 0.12em; }
  .mini-spacer { width: 70px; }

  .gate { padding: 60px 0 60px; }
  .gate-title { font-size: 1.15rem; letter-spacing: 0.3em; padding-left: 0.3em; }
  .gate-instruction { font-size: 0.88rem; margin-bottom: 28px; }
  .gate-input { font-size: 0.95rem; }

  .versions { padding: 50px 0 80px; }
  .section-title {
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    padding-left: 0.32em;
    margin-bottom: 64px;
  }
  .version { margin-bottom: 72px; }
  .info { padding: 20px 0 0; }
  .info h3 { font-size: 0.92rem; letter-spacing: 0.03em; }
  .info p { font-size: 0.88rem; }

  footer { padding: 32px 0 44px; }
  .footer-tagline {
    letter-spacing: 0.18em;
    font-size: 0.65rem;
    margin-bottom: 14px;
  }
  .footer-contacts { font-size: 0.8rem; gap: 12px; }
  .footer-contacts .ig-icon { width: 16px; height: 16px; }

  .scroll-hint { display: none; }
  .play-btn svg { width: 64px; height: 64px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .logo, .claim, .tagline, .scroll-hint { opacity: 1; }
}
