/* Home page only. Shared tokens live in styles.css. */

/* ---------- Hero: live footage behind, the bottle in front ---------- */
.stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  min-height: min(880px, 92svh);
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.stage-media { position: absolute; inset: 0; z-index: -2; }
.stage-media video,
.stage-media img { width: 100%; height: 100%; object-fit: cover; }
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(10 31 23 / 0.94) 0%, rgb(10 31 23 / 0.78) 42%, rgb(10 31 23 / 0.45) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 28%);
}
.stage-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 88px;
}
.stage h1 {
  font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 0.4em;
  max-width: 11ch;
}
.stage h1 em { font-style: normal; color: var(--gold); }
.stage .lede { font-size: 1.15rem; max-width: 30em; color: var(--text-soft); }
.stage .ctas { align-items: center; gap: 14px 22px; }
.textlink { color: var(--text); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.textlink:hover { color: var(--gold); text-decoration: none; }

.video-toggle {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgb(240 232 214 / 0.25);
  background: rgb(10 31 23 / 0.6);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.video-toggle:hover { border-color: var(--gold); }
.video-toggle svg { width: 12px; height: 12px; }

/* ---------- The bottle you can drag ---------- */
.pour {
  background: rgb(14 42 32 / 0.78);
  border: 1px solid rgb(240 232 214 / 0.14);
  border-radius: 24px;
  padding: 22px;
  backdrop-filter: blur(14px);
  box-shadow: 0 40px 90px rgb(0 0 0 / 0.45);
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 22px;
  font-variant-numeric: tabular-nums;
}
.pour-head { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.pour-head .label { color: var(--gold); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase; }
.pour-head .muted { font-size: 0.85rem; }

.bottle {
  position: relative;
  touch-action: none;
  cursor: ns-resize;
  border-radius: 14px;
  user-select: none;
  -webkit-user-select: none;
}
.bottle svg { width: 100%; height: auto; display: block; overflow: visible; }
.bottle .liquid { transition: y 0.12s var(--ease), height 0.12s var(--ease); }
.bottle.is-dragging .liquid { transition: none; }
.bottle .grip { transition: transform 0.12s var(--ease); }
.bottle .pct { font: 700 15px var(--font); fill: var(--text); }
.bottle:hover .glass { stroke: rgb(240 232 214 / 0.75); }
.bottle .expected { stroke: var(--text); stroke-dasharray: 3 4; opacity: 0.55; }
.bottle-hint { text-align: center; font-size: 0.8rem; color: var(--muted); margin: 8px 0 0; }

.readout { display: grid; gap: 10px; align-content: start; margin: 0; }
.readout div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid rgb(240 232 214 / 0.1); font-size: 0.95rem; }
.readout dt { color: var(--muted); }
.readout dd { white-space: nowrap; margin: 0; color: var(--text); font-weight: 600; text-align: right; }
.verdict {
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--gold-soft);
  border: 1px solid rgb(224 166 64 / 0.35);
}
.verdict strong { display: block; font-family: var(--display); font-size: 1.7rem; font-weight: 600; line-height: 1.1; color: var(--text); }
.verdict span { font-size: 0.9rem; color: var(--text-soft); }
.verdict[data-tone="ok"] { background: rgb(156 197 154 / 0.12); border-color: rgb(156 197 154 / 0.4); }
.verdict[data-tone="warn"] strong { color: var(--warn); }
.pour-foot { grid-column: 1 / -1; margin: 0; font-size: 0.8rem; color: var(--muted); }

/* ---------- Statement ---------- */
.statement { padding: 96px 0 40px; }
.statement p {
  font-family: var(--display);
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 24em;
  margin: 0;
  color: var(--text);
}
.statement p span { color: var(--muted); }

/* ---------- One bottle's week: chapters ---------- */
.week { padding-top: 56px; position: relative; }
.week > .wrap { max-width: 1240px; }
.week-head { max-width: 640px; margin-bottom: 24px; }
.chapters { position: relative; padding-left: 64px; }
.rail { position: absolute; left: 18px; top: 8px; bottom: 8px; width: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.rail i { position: absolute; left: 0; right: 0; top: 0; height: 100%; background: linear-gradient(var(--gold-hover), var(--gold)); transform-origin: top; transform: scaleY(var(--progress, 0)); }

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 56px;
  align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.chapter:first-of-type { border-top: 0; }
.chapter.flip .chapter-text { order: 2; }
.chapter-num { display: flex; align-items: center; gap: 12px; color: var(--gold); font-size: 0.78rem; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px; }
.mini { width: 16px; height: 30px; flex: none; }
.mini .mini-fill { transform-origin: 50% 100%; transform: scaleY(0); transition: transform 0.9s var(--ease) 0.15s; }
.chapter.is-in .mini .mini-fill { transform: scaleY(var(--fill)); }
.chapter h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.08; letter-spacing: -0.015em; margin-bottom: 0.45em; }
.chapter p { color: var(--text-soft); }
.chapter ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.chapter li { position: relative; padding-left: 22px; color: var(--text-soft); font-size: 0.97rem; }
.chapter li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgb(0 0 0 / 0.5); background: var(--bg-raised); }
.shot figcaption { margin-top: 12px; font-size: 0.88rem; color: var(--muted); }
.shot.phone { max-width: 300px; justify-self: center; }
.shot.phone img { border-radius: 30px; border: 8px solid #0f1512; box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgb(0 0 0 / 0.5); }
.shot-pair { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: end; }
.shot-pair .shot.phone { max-width: 230px; }

/* Reveal as you reach it. Content is visible without JavaScript. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- What's new ---------- */
#new .news { margin-top: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .stage-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 80px; }
  .stage::before { background: linear-gradient(180deg, rgb(10 31 23 / 0.7) 0%, rgb(10 31 23 / 0.88) 45%, var(--bg) 100%); }
  .pour { max-width: 520px; }
  .chapter, .chapter.flip { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; }
  .chapter.flip .chapter-text { order: 0; }
}
@media (max-width: 640px) {
  .stage { min-height: 0; }
  .stage h1 { max-width: none; }
  .stage .ctas .btn { width: 100%; }
  .pour { grid-template-columns: 84px 1fr; padding: 16px; gap: 14px; border-radius: 20px; }
  .pour-head { flex-direction: column; gap: 2px; }
  .readout { gap: 8px; }
  .readout div { font-size: 0.85rem; padding-bottom: 8px; }
  .verdict { padding: 12px; }
  .verdict strong { font-size: 1.15rem; }
  .verdict span { font-size: 0.85rem; }
  .bottle-hint { font-size: 0.75rem; }
  .video-toggle { right: 12px; bottom: 12px; }
  .statement { padding: 64px 0 24px; }
  .chapters { padding-left: 0; }
  .rail { display: none; }
  .shot-pair { grid-template-columns: 1fr; }
  .shot-pair .shot.phone { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .mini .mini-fill { transform: scaleY(var(--fill)); }
}
