/* ---------- Story ---------- */

.story {
  max-width: 640px;
  margin: 0 auto;
}

.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: var(--white);
  position: relative;
}

.hero-title {
  font-size: clamp(2.8rem, 12vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--black);
}

.hero-sub {
  margin-top: 22px;
  color: var(--grey);
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.hero-sub::before,
.hero-sub::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--hairline);
  vertical-align: middle;
  margin: 0 12px 3px;
}

.hero-count {
  margin-top: 14px;
  color: var(--grey-light);
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.hero-count #photo-count {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--grey);
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--grey-light);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* ---------- Together counter ---------- */

.together-counter {
  padding: 8px 20px 0;
  text-align: center;
}

.together-title {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 22px;
}

.counter-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px 18px;
  direction: ltr; /* a live numeric counter is not translated content */
}

.counter-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
}

.counter-unit span {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.9rem;
  color: var(--black);
  font-variant-numeric: tabular-nums;
}

.counter-unit label {
  margin-top: 4px;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-light);
}

/* ---------- Origin story (first messages) ---------- */

.origin-story {
  padding: 48px 20px 8px;
  max-width: 520px;
  margin: 0 auto;
}

.origin-title {
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.7rem;
  margin: 0 0 40px;
  color: var(--black);
}

html[dir="rtl"] .origin-title {
  font-family: "Vazirmatn", sans-serif;
  font-style: normal;
}

.message {
  margin: 0 auto 36px;
  /* The message text is verbatim, never translated - always reads left to
     right regardless of the active UI language's direction. */
  direction: ltr;
  text-align: left;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}

.message:first-child {
  border-top: none;
  padding-top: 0;
}

.message-meta {
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-light);
  margin-bottom: 12px;
}

.message-text {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--black);
  white-space: pre-line;
}

