/* ==========================================================================
   home.css — index.html specific
   ========================================================================== */

/* ============== Hero entrance ============== */
.hero-title .line > * {
  display: inline-block;
  transform: translateY(110%);
  animation: slideUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-title .line:nth-child(1) > * { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) > * { animation-delay: 0.35s; }
.hero-title .line:nth-child(3) > * { animation-delay: 0.5s; }
@keyframes slideUp { to { transform: translateY(0); } }

.hero-sub {
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

.hero-side {
  position: absolute;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 720px) { .hero-side { display: none; } }

/* ============== Sections ============== */
.section { padding: 7rem 0; position: relative; }
.section.bg-2 { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ============== Stats bar ============== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 5rem 0 0;
}
.stat {
  padding: 3rem 2rem;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}
.stat .num .unit { color: var(--hot); font-family: var(--serif); font-style: italic; }
.stat .lbl {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
@media (max-width: 720px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
}

/* ============== Latest articles (3 col) ============== */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1024px) { .latest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .latest-grid { grid-template-columns: 1fr; } }

/* ============== Topics strip (home) ============== */
.topics-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.topic-cell {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.3s ease;
  cursor: pointer;
}
.topic-cell:hover { background: var(--bg-2); }
.topic-cell .n {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}
.topic-cell h4 {
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}
.topic-cell .count {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--hot);
  margin-top: auto;
}
@media (max-width: 1024px) { .topics-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .topics-strip { grid-template-columns: repeat(2, 1fr); } }

/* ============== Quote ============== */
.quote {
  padding: 8rem 0;
  text-align: center;
}
.quote-mark {
  font-family: var(--serif);
  font-size: 7rem;
  color: var(--hot);
  line-height: 0;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.quote-text {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.3;
  max-width: 24ch;
  margin: 0 auto;
  letter-spacing: -0.02em;
}
.quote-text .serif { color: var(--hot); }
.quote-attr {
  margin-top: 2.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ============== Newsletter ============== */
.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 40%;
  background: radial-gradient(circle at top right, rgba(255, 91, 31, 0.12), transparent 70%);
  pointer-events: none;
}
.newsletter h3 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.newsletter h3 .serif { color: var(--hot); }
.newsletter p {
  color: var(--ink-2);
  font-size: 1rem;
  margin: 0;
  max-width: 30em;
}
.newsletter form {
  display: flex;
  gap: 0;
  position: relative;
  z-index: 1;
}
.newsletter input {
  flex: 1;
  padding: 1rem 1.2rem;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-right: none;
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease;
}
.newsletter input:focus { border-color: var(--hot); }
.newsletter input::placeholder { color: var(--ink-3); }
@media (max-width: 1024px) {
  .newsletter { grid-template-columns: 1fr; padding: 3rem; gap: 2rem; }
}
