/* ============================================================
   COLD BREW HOUSE — sections
   ============================================================ */

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 3px double var(--line);
  overflow: hidden; padding: 18px 0;
  background: var(--paper-2);
}
.marquee-track {
  display: flex; gap: 42px; align-items: center;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: var(--serif); font-size: 17px; font-weight: 600;
  letter-spacing: .22em; white-space: nowrap;
}
.marquee-track i { color: var(--caramel); font-style: normal; font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- story ---------- */
.story-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 70px; align-items: start; margin-bottom: 90px;
}
.story-copy p { color: var(--ink-soft); font-size: 17.5px; line-height: 1.8; max-width: 560px; }
.story-copy p + p { margin-top: 20px; }
.pull-quote {
  margin-top: 44px; padding: 30px 34px;
  border-left: 3px double var(--caramel);
  background: var(--paper-2);
  border-radius: 0 6px 6px 0;
}
.pull-quote p {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 24px; line-height: 1.4; color: var(--ink); max-width: none;
}
.pull-quote cite {
  display: block; margin-top: 14px;
  font-family: var(--sans); font-style: normal; font-size: 12.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint);
}
.figure-art { width: 100%; max-width: 340px; margin-left: auto; display: block; }
.grounds circle { animation: groundFall 5s linear infinite; }
.grounds circle:nth-child(2) { animation-delay: .8s; }
.grounds circle:nth-child(3) { animation-delay: 1.6s; }
.grounds circle:nth-child(4) { animation-delay: 2.4s; }
.grounds circle:nth-child(5) { animation-delay: 3.2s; }
.grounds circle:nth-child(6) { animation-delay: 4s; }
@keyframes groundFall {
  0% { transform: translateY(-14px); opacity: 0; }
  15% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(30px); opacity: 0; }
}

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  list-style: none; border-top: 1px solid var(--line);
}
.stats li {
  padding: 34px 26px 6px 0;
  border-right: 1px solid var(--line);
}
.stats li:last-child { border-right: 0; }
.stats strong {
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: clamp(38px, 4vw, 56px); line-height: 1; letter-spacing: -.02em;
}
.stats strong span { font-size: .55em; font-style: italic; color: var(--caramel-deep); }
.stats span:not(strong) {
  display: block; margin-top: 10px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint);
}

/* ---------- process ---------- */
.process { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 3px double var(--line); }
.process .section { max-width: 900px; }
.process-track { position: relative; padding-left: 4px; }
.process-track::before,
.process-fill {
  content: ""; position: absolute; top: 0; bottom: 0; left: 15px;
  width: 2px; border-radius: 2px;
}
.process-track::before { background: var(--line); }
.process-fill {
  background: linear-gradient(var(--caramel), var(--caramel-deep));
  height: 0%;
  transition: height .15s linear;
}
.steps { list-style: none; }
.step {
  position: relative;
  display: grid; grid-template-columns: 90px 1fr; gap: 30px;
  padding: 42px 0;
}
.step:first-child { padding-top: 6px; }
.step:last-child { padding-bottom: 6px; }
.step::before {
  content: ""; position: absolute; left: 9px; top: 58px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); border: 2.5px solid var(--caramel);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.step.is-in::before { background: var(--caramel); box-shadow: 0 0 0 6px rgba(124,58,237,.22); }
.step-num {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 52px; color: var(--caramel-deep); line-height: 1;
  text-align: right; padding-top: 6px;
}
.step-body h3 {
  font-family: var(--serif); font-weight: 600; font-size: 26px;
  letter-spacing: -.01em; margin-bottom: 10px;
}
.step-body p { color: var(--ink-soft); max-width: 560px; font-size: 16px; }

/* ---------- steep lab ---------- */
.lab { background: var(--brew); color: var(--paper); border-bottom: 1px solid rgba(236,236,236,.22); }
.lab .eyebrow { color: var(--paper-3); }
.lab .section-title em { color: var(--paper-3); }
.lab .section-lede { color: rgba(236,236,236,.62); }
.lab-grid {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: 80px; align-items: start;
}

/* beaker */
.lab-visual { display: flex; flex-direction: column; align-items: center; gap: 34px; }
.beaker-wrap { display: flex; flex-direction: column; align-items: center; }
.beaker {
  position: relative; width: 150px; height: 230px;
  border: 2.5px solid rgba(236,236,236,.72);
  border-top-width: 1.5px;
  border-radius: 6px 6px 20px 20px;
  overflow: hidden;
  background: rgba(236,236,236,.05);
}
.beaker-liquid {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 70%;
  background: #241F2E;
  transition: height .6s var(--ease), background .6s var(--ease);
}
.beaker-liquid::before {
  content: ""; position: absolute; top: -7px; left: 0; right: 0; height: 14px;
  background: inherit; border-radius: 50%;
  animation: surfaceWobble 5s ease-in-out infinite alternate;
}
.beaker-bub {
  position: absolute; bottom: 8px; border-radius: 50%;
  background: rgba(236,236,236,.5);
  animation: rise 5s linear infinite;
}
.beaker-bub.bb1 { left: 30%; width: 7px; height: 7px; }
.beaker-bub.bb2 { left: 55%; width: 5px; height: 5px; animation-delay: 1.6s; animation-duration: 6.5s; }
.beaker-bub.bb3 { left: 72%; width: 8px; height: 8px; animation-delay: 3s; animation-duration: 7.6s; }
.beaker-shine {
  position: absolute; top: 0; bottom: 0; left: 14%; width: 16%;
  background: linear-gradient(rgba(255,255,255,.14), rgba(255,255,255,.02));
  border-radius: 6px; pointer-events: none;
}
.beaker-base {
  width: 190px; height: 10px; margin-top: -2px;
  background: rgba(236,236,236,.72); border-radius: 0 0 6px 6px;
}
.beaker-label { margin-top: 18px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(236,236,236,.55); }
.beaker-label span { color: var(--paper-3); font-weight: 600; }

.lab-readouts { width: 100%; max-width: 340px; display: grid; gap: 18px; }
.readout { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 14px; }
.readout-name { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(236,236,236,.6); }
.meter { height: 5px; border-radius: 3px; background: rgba(236,236,236,.14); overflow: hidden; }
.meter-fill {
  height: 100%; width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--paper-3), var(--caramel));
  transition: width .5s var(--ease);
}

/* controls */
.lab-controls { display: grid; gap: 34px; }
.slider-row { background: rgba(236,236,236,.06); border: 1px solid rgba(236,236,236,.14); border-radius: 6px; padding: 30px 30px 24px; }
.slider-labels {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(236,236,236,.55); margin-bottom: 18px;
}
.sweet-spot-tag { color: var(--paper-3); font-weight: 600; }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 3px;
  background: rgba(236,236,236,.16);
  outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--paper); border: 5px solid var(--caramel);
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  transition: transform .2s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 5px solid var(--caramel);
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: transparent; }
.slider-marks {
  position: relative; height: 22px; margin-top: 10px;
  font-size: 10.5px; color: rgba(236,236,236,.4); letter-spacing: .08em;
}
.slider-marks i { position: absolute; transform: translateX(-50%); font-style: normal; }
.slider-marks i::before {
  content: ""; display: block; width: 1px; height: 5px;
  background: rgba(236,236,236,.3); margin: 0 auto 3px;
}

.lab-out {
  background: rgba(236,236,236,.06); border: 1px solid rgba(236,236,236,.14);
  border-radius: 6px; padding: 30px;
}
.swatch-row { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.swatch {
  width: 58px; height: 58px; border-radius: 6px; flex: none;
  background: #241F2E; border: 1.5px solid rgba(236,236,236,.3);
  box-shadow: inset 0 4px 10px rgba(0,0,0,.25), 0 8px 18px -8px rgba(0,0,0,.5);
  transition: background .5s var(--ease);
}
.out-title { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.out-sub { font-size: 13.5px; color: rgba(236,236,236,.55); margin-top: 4px; }
.notes { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; }
.notes li {
  font-size: 12px; font-weight: 500; letter-spacing: .06em;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(236,236,236,.4); color: var(--paper-3);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.notes li:hover { background: var(--caramel); color: var(--brew); }
.lab-badge {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px dashed rgba(236,236,236,.2);
  font-size: 13px; color: var(--paper-3); letter-spacing: .04em;
  transition: opacity .3s var(--ease);
}
.lab-badge.is-hidden { opacity: 0; }

/* timer */
.timer-card {
  display: flex; justify-content: space-between; align-items: center; gap: 26px; flex-wrap: wrap;
  background: var(--paper); color: var(--ink);
  border-radius: 6px; padding: 28px 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.timer-title { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.timer-hint { font-size: 13px; color: var(--ink-soft); max-width: 300px; }
.timer-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.timer-right { display: flex; align-items: center; gap: 14px; }
.timer-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--paper-3); transition: background .3s;
}
.timer-dot.is-running { background: var(--caramel); animation: pulse 1.6s ease-in-out infinite; }
.timer-display {
  font-family: var(--serif); font-variant-numeric: tabular-nums;
  font-size: 40px; font-weight: 600; letter-spacing: .02em; min-width: 190px;
}
.timer-cap { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- brews ---------- */
.brews-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  margin-bottom: 40px;
}
.brew-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 34px 30px 30px;
  cursor: pointer;
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.brew-card:hover { box-shadow: var(--shadow-card); }
.brew-card.is-active {
  background: var(--paper);
  border-color: var(--caramel);
  box-shadow: var(--shadow-card);
}
.brew-art { width: 100%; height: auto; display: block; margin-bottom: 22px; }
.brew-card h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.brew-tag { font-size: 13px; color: var(--ink-faint); margin-top: 5px; letter-spacing: .04em; }
.brew-card.is-active .brew-tag { color: var(--caramel-deep); font-weight: 500; }

.nitro-bubbles circle, .tonic-bubbles circle { animation: rise 4s linear infinite; }
.nitro-bubbles circle:nth-child(2), .tonic-bubbles circle:nth-child(2) { animation-delay: .7s; }
.nitro-bubbles circle:nth-child(3), .tonic-bubbles circle:nth-child(3) { animation-delay: 1.4s; }
.nitro-bubbles circle:nth-child(4), .tonic-bubbles circle:nth-child(4) { animation-delay: 2.1s; }
.nitro-bubbles circle:nth-child(5), .tonic-bubbles circle:nth-child(5) { animation-delay: 2.8s; }
.nitro-bubbles circle:nth-child(6), .tonic-bubbles circle:nth-child(6) { animation-delay: 3.5s; }

.brew-panel {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 46px 52px;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.brew-panel.is-switching { opacity: 0; transform: translateY(10px); }
.panel-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--caramel-deep); margin-bottom: 14px;
}
.panel-name { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 42px); font-weight: 600; letter-spacing: -.015em; margin-bottom: 16px; }
.panel-desc { color: var(--ink-soft); font-size: 16px; max-width: 520px; }
.panel-notes { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; margin-top: 24px; }
.panel-notes li {
  font-size: 12.5px; font-weight: 500; padding: 8px 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper); letter-spacing: .04em;
}
.panel-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-left: 1px solid var(--line); padding-left: 44px;
  align-content: center;
}
.panel-meta div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.panel-meta div:nth-last-child(-n+2) { border-bottom: 0; }
.panel-meta dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.panel-meta dd { font-family: var(--serif); font-size: 24px; font-weight: 600; }

/* ---------- visit / footer ---------- */
.visit { text-align: center; padding-bottom: 70px; }
.visit .eyebrow { margin-bottom: 18px; }
.visit-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(52px, 7.5vw, 104px); line-height: 1.02; letter-spacing: -.02em;
}
.visit-title em { font-style: italic; font-weight: 400; color: var(--caramel-deep); }
.visit-sub { margin-top: 26px; color: var(--ink-soft); font-size: 16.5px; line-height: 1.8; }
.visit-actions { display: flex; gap: 14px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }

.footer { border-top: 3px double var(--line); padding: 40px 40px 34px; max-width: 1280px; margin: 0 auto; }
.footer-word {
  font-family: var(--serif); font-weight: 700; text-align: center;
  font-size: clamp(34px, 6.4vw, 88px); letter-spacing: .02em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(31,31,34,.4);
  margin-bottom: 34px; user-select: none;
  transition: color .6s var(--ease);
}
.footer-word:hover { color: var(--caramel-deep); -webkit-text-stroke: 1px transparent; }
.footer-row {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 24px;
}
.footer-note { font-size: 12.5px; color: var(--ink-faint); letter-spacing: .04em; }
.footer-links { display: flex; gap: 26px; }
.footer-links a {
  font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none; transition: color .3s var(--ease);
}
.footer-links a:hover { color: var(--caramel-deep); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy { display: grid; justify-items: center; }
  .hero-sub, .story-copy p { max-width: 600px; }
  .hero-meta { justify-content: center; }
  .lab-grid { grid-template-columns: 1fr; gap: 56px; }
  .brews-grid { grid-template-columns: 1fr 1fr; }
  .brew-panel { grid-template-columns: 1fr; gap: 30px; }
  .panel-meta { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 10px; }
}
@media (max-width: 720px) {
  .section { padding: 76px 24px; }
  .nav { padding: 16px 20px; }
  .nav.is-scrolled { padding: 11px 20px; }
  .nav-links { display: none; }
  .hero { padding: 110px 24px 60px; }
  .hero-actions, .visit-actions { justify-content: center; }
  .hero-meta { gap: 26px; flex-wrap: wrap; justify-content: center; }
  .story-grid { grid-template-columns: 1fr; gap: 44px; }
  .figure-art { margin: 0 auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li { border-bottom: 1px solid var(--line); }
  .step { grid-template-columns: 56px 1fr; gap: 18px; }
  .step-num { font-size: 36px; }
  .brews-grid { grid-template-columns: 1fr; }
  .timer-card { flex-direction: column; align-items: flex-start; }
  .timer-display { min-width: 0; }
  .footer-row { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
