/* ================================================================
   NOISE.BERLIN — index.css
   Homepage-specific styles
================================================================ */

/* ── HERO ──────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: var(--gap-xl) 0 var(--gap-lg);
}

/* Animated background lines */
.hero-bg-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-lines span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(232, 57, 42, 0.12) 30%,
    rgba(232, 57, 42, 0.06) 70%,
    transparent 100%);
  animation: lineFadeIn 1.8s var(--ease-out) both;
}

.hero-bg-lines span:nth-child(1) { left: 20%;  animation-delay: 0.1s; }
.hero-bg-lines span:nth-child(2) { left: 35%;  animation-delay: 0.2s; }
.hero-bg-lines span:nth-child(3) { left: 50%;  animation-delay: 0.0s; background: linear-gradient(to bottom, transparent, rgba(232,57,42,0.22) 50%, transparent); }
.hero-bg-lines span:nth-child(4) { left: 65%;  animation-delay: 0.2s; }
.hero-bg-lines span:nth-child(5) { left: 80%;  animation-delay: 0.1s; }

@keyframes lineFadeIn {
  from { opacity: 0; transform: scaleY(0); transform-origin: top; }
  to   { opacity: 1; transform: scaleY(1); }
}

/* ── SPLIT LAYOUT ──────────────────────────────────────────────── */
.hero-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--gap-lg);
  padding-bottom: clamp(100px, 18vw, 200px); /* room for skyline */
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.hero-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-red);
  font-family: var(--font-mono);
}

.hero-headline {
  display: flex;
  flex-direction: column;
  line-height: 0.90;
  gap: 0.05em;
  margin: 0;
}

.hero-hl-line {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8.5vw, 7.5rem);
  letter-spacing: -0.02em;
  color: var(--c-fg);
  display: block;
}

.hero-hl-line--red {
  color: var(--c-red);
}

.hero-sub {
  max-width: 46ch;
  color: var(--c-muted);
  font-size: clamp(0.92rem, 1.15vw, 1.05rem);
  line-height: 1.72;
}

.hero-cta-row {
  display: flex;
  gap: var(--gap-sm);
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge--outline {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  border: 1px solid rgba(232,57,42,0.35);
  color: var(--c-muted);
  padding: 0.25em 0.7em;
  border-radius: 2px;
}

/* ── LOGO COLUMN ───────────────────────────────────────────────── */
.hero-logo-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-frame {
  position: relative;
  width: min(460px, 42vw);
}

.hero-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  animation: logoGlow 4s ease-in-out infinite alternate;
}

.hero-logo-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at center, rgba(232,57,42,0.18) 0%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  from { filter: drop-shadow(0 0 20px rgba(232,57,42,0.25)); }
  to   { filter: drop-shadow(0 0 45px rgba(232,57,42,0.55)); }
}

@keyframes glowPulse {
  from { opacity: 0.6; transform: scale(0.95); }
  to   { opacity: 1;   transform: scale(1.05); }
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: scrollHintIn 0.6s 1.5s var(--ease-out) forwards;
  z-index: 2;
}

@keyframes scrollHintIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 0.40; transform: translateX(-50%) translateY(0); }
}

.hero-scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--c-red-dim), transparent);
  animation: scrollLinePulse 2s ease-in-out infinite;
}

@keyframes scrollLinePulse {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50%       { transform: scaleY(0.6); opacity: 0.2; }
}

/* ── SKYLINE CANVAS ────────────────────────────────────────────── */
#berlin-skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 340px;
  pointer-events: none;
  opacity: 0.28;
  z-index: 0;
}

/* ── MOBILE ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: var(--gap-md);
    padding-bottom: clamp(80px, 25vw, 160px);
  }
  .hero-logo-col {
    display: none;
  }
  .hero-hl-line {
    font-size: clamp(3.2rem, 13vw, 5rem);
  }
}


.intro-block {
  padding: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  gap: 1.2rem;
}

.intro-h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  letter-spacing: -0.02em;
  line-height: 0.92;
  color: #000;
}

.intro-p {
  color: rgba(0,0,0,0.85);
  line-height: 1.78;
  max-width: 70ch;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}

/* ── START SECTION ─────────────────────────────────────────────── */
.start-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
  align-items: center;
}

@media (min-width: 900px) {
  .start-grid { grid-template-columns: 1fr 0.7fr; }
}

/* Decorative circles */
.start-deco-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: var(--gap-md) 0;
}

@media (max-width: 899px) {
  .start-deco-col { display: none; }
}

.deco-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border-radius: 50%;
  border: 1px solid var(--c-red-dim);
  box-shadow: var(--neon-sm);
  background: rgba(232,57,42,0.04);
  width: 120px; height: 120px;
  animation: pulseGlow 3s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.8s);
}

.deco-circle:nth-child(1) { --i: 0; }
.deco-circle:nth-child(2) { --i: 1; }
.deco-circle:nth-child(3) { --i: 2; }

.deco-circle--sm { width: 90px;  height: 90px;  margin-left: 2.5rem; }
.deco-circle--xs { width: 70px;  height: 70px;  margin-left: 1rem; }

.deco-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--c-red);
  line-height: 1;
}

.deco-txt {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* ── HOW CARDS ─────────────────────────────────────────────────── */
.how-card {
  padding: clamp(1.5rem, 2.5vw, 2.2rem);
  display: grid;
  gap: 0.75rem;
}

.how-h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  letter-spacing: 0.04em;
  color: var(--c-fg);
  line-height: 1.1;
}

.how-p {
  color: var(--c-muted);
  line-height: 1.7;
  font-size: 0.92rem;
}

/* ── OPEN CALL ─────────────────────────────────────────────────── */
.open-call-card {
  padding: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
}

@media (min-width: 820px) {
  .open-call-card { grid-template-columns: 1.2fr 0.8fr; }
}

.open-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
  line-height: 0.92;
  color: #fff;
  margin: var(--gap-sm) 0 var(--gap-sm);
}

.open-text {
  color: rgba(255,255,255,0.88);
  line-height: 1.75;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
}

.open-call-right {
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(0,0,0,0.18);
  padding: 1.5rem;
}

.need-title {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.70);
  margin-bottom: 1rem;
}

.need-list {
  display: grid;
  gap: 0.7rem;
}

.need-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.90);
  font-size: 0.92rem;
}

/* ── NEXT EVENT ────────────────────────────────────────────────── */
.next-event-section {}

.next-event-card {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  padding: 1.5rem;
  max-width: 640px;
  position: relative;
  overflow: hidden;
}

.next-event-passed-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(232,57,42,0.28);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.next-event-card.event-passed .next-event-passed-overlay {
  display: flex;
}

.passed-badge {
  background: var(--c-red);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: var(--r-md);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.next-event-image-wrap {
  width: 130px;
  height: 130px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  overflow: hidden;
}

.next-event-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.next-event-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.next-event-label {
  font-size: 0.70rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-red);
}

.next-event-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1;
}

.next-event-meta {
  font-size: 0.88rem;
  color: var(--c-muted);
}

/* ── INSTAGRAM ─────────────────────────────────────────────────── */
.insta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
  max-width: 600px;
}

@media (min-width: 540px) {
  .insta-grid { grid-template-columns: repeat(2, 1fr); }
}

.insta-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.insta-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out), filter 0.4s ease;
  filter: brightness(0.85);
}

.insta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6,6,6,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t-med) ease;
}

.insta-card:hover .insta-img {
  transform: scale(1.06);
  filter: brightness(0.70);
}

.insta-card:hover .insta-overlay {
  opacity: 1;
}

/* ── BERLIN SKYLINE CANVAS ─────────────────────────────────────── */
#berlin-skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 320px;
  pointer-events: none;
  opacity: 0.22;
  z-index: 0;
}

/* ── PARALLAX HERO ─────────────────────────────────────────────── */
.hero-section {
  transform-style: preserve-3d;
}

.hero-parallax-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

/* ── ACRONYM EXPLAINER ─────────────────────────────────────────── */
.acr-explainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.acr-prompt-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-family: var(--font-mono);
}

.acr-letters {
  display: flex;
  align-items: center;
  gap: clamp(0.3rem, 1.5vw, 0.8rem);
}

.acr-dot {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--c-red);
  line-height: 1;
  user-select: none;
}

.acr-btn {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 0.9;
  color: var(--c-fg);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0.1em;
  position: relative;
  transition: color 0.2s ease, transform 0.15s ease;
  letter-spacing: -0.02em;
}

.acr-btn:hover {
  color: var(--c-red);
  transform: translateY(-4px);
}

.acr-btn.active {
  color: var(--c-red);
}

.acr-btn.loading {
  opacity: 0.5;
  pointer-events: none;
}

.acr-output {
  width: 100%;
  max-width: 600px;
  min-height: 90px;
  border-left: 2px solid var(--c-red);
  padding: 1rem 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
}

.acr-output-placeholder {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  color: rgba(232,57,42,0.25);
}

.acr-output-letter {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-red);
  display: block;
  margin-bottom: 0.5rem;
}

.acr-output-text {
  color: var(--c-fg);
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  line-height: 1.72;
  animation: acrFadeIn 0.4s var(--ease-out) both;
}

@keyframes acrFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.acr-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--c-red);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink .7s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── EMAIL SIGNUP ───────────────────────────────────────────────── */
.email-signup-section {
  border-top: 1px solid var(--c-border);
}

.email-signup-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.email-signup-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin: 0.4rem 0 0.7rem;
}

.email-signup-sub {
  color: var(--c-muted);
  font-size: 0.9rem;
  line-height: 1.72;
  max-width: 38ch;
}

.email-signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.email-signup-row {
  display: flex;
  gap: 0.5rem;
}

.email-signup-input {
  flex: 1;
  background: transparent;
  border: 1px solid var(--c-border-md);
  color: var(--c-fg);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.65em 1em;
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}

.email-signup-input::placeholder { color: var(--c-muted); }
.email-signup-input:focus { border-color: var(--c-red); }

.email-signup-note {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  opacity: 0.6;
}

.email-signup-success {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--c-red);
  letter-spacing: 0.08em;
}

@media (max-width: 768px) {
  .email-signup-inner {
    grid-template-columns: 1fr;
    gap: var(--gap-md);
  }
}
