/* ============================================================
   EUREKA — Landing Animation (full-screen vertical feed)
   File: legacy/pub/landing.css
   Dipendenze: /kit/theme.css (token --color-*)
   Concept C: identità che scorrono verso l'alto; quella al centro
   va "a fuoco" (ingrandisce + email) poi sale e lascia il posto.
   ============================================================ */

.eureka-landing {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--color-surface, #F2EFE8);

  /* Altezza di ogni riga del feed + dimensioni del nome a fuoco / a riposo. */
  --item-h: clamp(116px, 21vh, 188px);
  --focus-name: clamp(30px, 7.2vw, 48px);
  --idle-name:  clamp(21px, 5vw,   32px);
}

/* Vignette */
.eureka-landing::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.07) 100%);
  pointer-events: none; z-index: 0;
}
/* Grain */
.eureka-landing::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0;
}

/* ── Top: kicker + tagline ───────────────────────────────────── */
.el-top {
  position: relative; z-index: 2;
  flex: 0 0 auto;
  padding: clamp(22px, 5.5vh, 52px) 20px 0;
  text-align: center;
}
.el-kicker {
  font-family: 'DM Mono', monospace;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-text-muted, #B0A898);
}
.el-tagline {
  margin-top: 10px;
  font-family: 'DM Sans', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300; letter-spacing: -0.01em;
  font-size: clamp(18px, 4.6vw, 25px);
  color: var(--color-text, #18140F);
}

/* ── Viewport (the scrolling feed) ───────────────────────────── */
.el-viewport {
  position: relative; z-index: 1;
  flex: 1 1 auto;
  overflow: hidden;
  /* Le righe sfumano avvicinandosi ai bordi alto/basso. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 76%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 76%, transparent 100%);
}
.el-track {
  position: absolute; left: 0; right: 0; top: 50%;
  /* Posizione iniziale: centra lo slot a fuoco (sovrascritta in px da JS). */
  transform: translateY(calc(-1.5 * var(--item-h)));
  will-change: transform;
}

/* ── Feed item ───────────────────────────────────────────────── */
.el-item {
  height: var(--item-h);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; padding: 0 18px; text-align: center;
  opacity: 0.3; transform: scale(0.82);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.el-item.is-focus { opacity: 1; transform: scale(1); }

.el-item-name {
  font-family: 'DM Sans', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300; line-height: 1.05; letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--color-text, #18140F);
  font-size: var(--idle-name);
  transition: font-size 0.65s cubic-bezier(0.22,1,0.36,1), color 0.4s ease, opacity 0.5s ease;
}
.el-item.is-focus .el-item-name { font-size: var(--focus-name); }
/* Una volta uscito dal centro (sopra), il nome svanisce: resta la mail. */
.el-item.is-left .el-item-name { opacity: 0; }
.el-item-name .prep {
  font-style: italic; font-size: 0.5em; margin: 0 0.28em;
  color: var(--color-text-muted, #B0A898);
}

.el-item-email {
  font-family: 'DM Mono', monospace;
  font-weight: 300; letter-spacing: 0.01em; white-space: nowrap;
  font-size: clamp(15px, 3.4vw, 22px);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.55s ease 0.08s, transform 0.55s ease 0.08s;
}
.el-item.is-focus .el-item-email,
.el-item.is-left  .el-item-email { opacity: 1; transform: translateY(0); }
.el-e-blue  { color: var(--color-accent, #FF6600); font-weight: 600; transition: color 0.5s ease, font-weight 0.5s ease; }
.el-e-at    { color: var(--color-text-muted, #B0A898); transition: color 0.5s ease; }
.el-e-muted { color: var(--color-text-secondary, #8A7F6E); transition: color 0.5s ease; }
/* Item che ha lasciato il centro: la mail resta, ma SEMPRE in grigino discreto
   (niente arancione/grassetto: non è più l'evidenziazione del momento "creato"). */
.el-item.is-left .el-e-blue,
.el-item.is-left .el-e-at,
.el-item.is-left .el-e-muted { color: var(--color-text, #18140F); font-weight: 300; }

/* ── Bottom: dots + CTA ──────────────────────────────────────── */
.el-bottom {
  position: relative; z-index: 2;
  flex: 0 0 auto;
  padding: 0 20px clamp(26px, 6vh, 52px);
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(18px, 3vh, 26px);
}
.el-dots { display: flex; align-items: center; gap: 7px; }
.el-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-border, #C8C4BB);
  transition: width 0.35s ease, background 0.35s ease, border-radius 0.35s ease;
}
.el-dot.active {
  width: 20px; border-radius: 3px;
  background: var(--color-accent, #FF6600);
}

.el-cta {
  display: inline-flex; align-items: center;
  padding: 15px 30px;
  background: var(--color-accent, #FF6600);
  color: var(--color-on-accent, #fff); text-decoration: none;
  border-radius: 12px;
  font-family: 'DM Sans', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500; font-size: 16px; letter-spacing: 0.01em;
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
  transition: transform .15s ease, box-shadow .15s ease;
}
.el-cta::after { content: " \2192"; }
.el-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,0,0,0.20); }

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .el-item, .el-item-name, .el-item-email, .el-track, .el-dot {
    transition: none !important;
  }
}
