/* ==========================================================================
   ESPRESSO A MANO — homepage sections
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  padding-top: 76px;
  min-height: 92vh;
  min-height: 92dvh;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  width: 100%;
  padding-top: clamp(2rem, 5vh, 4rem);
  padding-bottom: clamp(2.5rem, 6vh, 5rem);
}
.hero-copy .kicker { margin-bottom: 1.6rem; }
.hero-title {
  font-size: var(--text-hero);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 9em;
}
.hero-sub {
  margin-top: 1.6rem;
  font-size: var(--text-lead);
  color: var(--espresso-soft);
  max-width: 26em;
}
.hero-actions {
  margin-top: 2.4rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.hero-proof {
  margin-top: 2.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.92rem;
  color: var(--espresso-soft);
}
.hero-proof .review-stars { font-size: 0.85rem; }
.hero-proof strong { color: var(--espresso); font-weight: 700; }

.hero-media { position: relative; }
.hero-media .figure--hero {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-img);
  overflow: hidden;
}
.hero-media .figure--hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
}
.hero-badge {
  position: absolute;
  left: -1.4rem;
  bottom: 2.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-img);
  box-shadow: 0 18px 50px rgba(42, 31, 26, 0.12);
  padding: 1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.hero-badge .num { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; }
.hero-badge .lbl {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--espresso-soft);
}

/* ---------- Mono ticker ---------- */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1.05rem 0;
  background: var(--paper);
}
.ticker-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: ticker-scroll 42s linear infinite;
}
.ticker span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--espresso-soft);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
}
.ticker span::after { content: "\25C8"; color: var(--crema); font-size: 0.6rem; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
}

/* ---------- Ritual (process) ---------- */
.ritual-step { position: relative; }
.ritual-step .figure { margin-bottom: 1.4rem; }
.ritual-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--crema-deep);
  display: block;
  margin-bottom: 0.55rem;
}
.ritual-step h3 { margin-bottom: 0.5rem; }
.ritual-step p { color: var(--espresso-soft); font-size: 0.98rem; max-width: 30em; }

/* ---------- Story band ---------- */
.story-media { position: relative; }
.story-media .figure--tall { box-shadow: 0 30px 80px rgba(42, 31, 26, 0.14); }
.story-media .figure--inset {
  position: absolute;
  width: 46%;
  right: -8%;
  bottom: -10%;
  aspect-ratio: 1 / 1;
  border: 6px solid var(--paper);
  border-radius: var(--radius-img);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(42, 31, 26, 0.16);
}
.story-copy .kicker { margin-bottom: 1.2rem; }
.story-copy p { margin-top: 1.1rem; color: var(--espresso-soft); }
.story-counters {
  display: flex;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.counter .num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.counter .num sup { font-size: 55%; color: var(--crema-deep); }
.counter .lbl {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--espresso-soft);
  display: block;
  margin-top: 0.5rem;
}

/* ---------- Sourcing band ---------- */
.sourcing-band .origin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 2rem 0 2.4rem;
}
.sourcing-partners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-img);
  overflow: hidden;
}
.sourcing-partners .partner {
  background: var(--paper);
  padding: 1.6rem 1.4rem;
}
.sourcing-partners .partner h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.sourcing-partners .partner p {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--espresso-soft);
}

/* ---------- Cafes ---------- */
.cafe-card .hours-mini {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--espresso-soft);
  margin-top: 0.9rem;
  line-height: 1.8;
  font-variant-numeric: tabular-nums;
}
.cafe-card .addr { font-size: 0.95rem; color: var(--espresso-soft); }

/* ---------- Parallax photo band ---------- */
.photo-band {
  position: relative;
  height: clamp(320px, 55vh, 560px);
  overflow: hidden;
}
.photo-band img {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  will-change: transform;
}
.photo-band .band-caption {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(42, 31, 26, 0.34);
}
.photo-band .band-caption p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.7rem, 4vw, 3rem);
  color: var(--paper);
  text-align: center;
  max-width: 18em;
  padding: 0 1.5rem;
  text-wrap: balance;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media .figure--hero { aspect-ratio: 16 / 11; }
  .hero-badge { left: 1rem; bottom: 1rem; }
  .story-media .figure--inset { right: 0; }
}
