:root {
  --cream: #efe5d8;
  --cream-2: #e6d8c6;
  --paper: #f6efe6;
  --terra: #c4673f;
  --terra-lt: #e79a72;
  --espresso: #2a1a12;
  --ink: #3b2a20;
  --muted: #7a6656;
  --display: "Bagel Fat One", "Arial Black", sans-serif;
  --script: "Fraunces", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- shared bits ---------- */
.kicker {
  margin: 0 0 .75rem;
  font: 700 .78rem/1 var(--body);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--terra);
}
.script { font-family: var(--script); font-style: italic; font-weight: 900; color: var(--terra); }
.row { display: flex; align-items: center; gap: 12px; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85em 1.6em;
  border-radius: 999px;
  font: 700 .85rem/1 var(--body);
  letter-spacing: .04em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s, background .25s, color .25s;
}
.pill:hover { transform: translateY(-2px); }
.pill--dark { background: var(--espresso); color: var(--cream); }
.pill--dark:hover { background: var(--terra); }
.pill--cream { background: var(--cream); color: var(--espresso); }
.pill--line { border-color: var(--espresso); color: var(--espresso); }
.pill--line:hover { background: var(--espresso); color: var(--cream); }
.pill--sm { padding: .7em 1.2em; font-size: .78rem; }
.circle {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid currentColor; text-decoration: none; font-weight: 700;
  transition: transform .25s;
}
.circle:hover { transform: rotate(-45deg); }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 50; inset: 14px var(--gutter) auto;
  display: flex; align-items: center; gap: 24px;
  padding: 10px 10px 10px 20px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-radius: 999px;
  box-shadow: 0 6px 30px rgba(42,26,18,.12);
}
.nav__logo img { height: 30px; width: auto; }
.nav__tag { font: 700 .7rem/1 var(--body); letter-spacing: .18em; color: var(--muted); }
.nav__links { margin-left: auto; display: flex; gap: 26px; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: .92rem; }
.nav__links a:hover { color: var(--terra); }

/* ---------- scroll-scrubbed scenes ---------- */
.scene { position: relative; height: var(--len, 300vh); background: var(--espresso); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(.18) saturate(.92) contrast(1.04);
  transform: scale(calc(1.04 + var(--p, 0) * .08));
}
.stage__tint {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 35%, rgba(42,26,18,.55) 100%),
    linear-gradient(180deg, rgba(42,26,18,.25), transparent 30%, transparent 65%, rgba(42,26,18,.55));
}

.giant {
  margin: 0;
  font: 400 clamp(4.2rem, 17vw, 17rem)/.82 var(--display);
  letter-spacing: -.02em;
}
.w { display: inline-block; will-change: transform; }
.w--dark { color: var(--cream); text-shadow: 0 6px 40px rgba(42,26,18,.35); }
.w--cream { color: var(--cream); }
.w--terra {
  font-family: var(--script); font-style: italic; font-weight: 900;
  color: var(--terra-lt); letter-spacing: -.03em;
  text-shadow: 0 6px 40px rgba(42,26,18,.35);
}

/* GRIND */
.grind__intro {
  position: absolute; z-index: 2;
  left: var(--gutter); top: clamp(110px, 18vh, 170px);
  max-width: 330px; color: var(--cream);
  opacity: calc(1 - var(--p, 0) * 4);
  transform: translateY(calc(var(--p, 0) * -120px));
}
.grind__intro .kicker { color: var(--terra-lt); }
.grind__lede { margin: 0 0 1.2rem; font-size: .95rem; }
.grind__a, .grind__b {
  position: absolute; inset: auto 0 9vh; z-index: 2;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.grind__a .w[data-x="-1"] { transform: translateX(calc(var(--a, 0) * -60vw)) rotate(calc(var(--a, 0) * -8deg)); }
.grind__a .w[data-x="1"]  { transform: translateX(calc(var(--a, 0) *  60vw)) rotate(calc(var(--a, 0) * 8deg)); }
.grind__b { flex-direction: column; align-items: flex-start; bottom: 12vh; }
.grind__b .w { opacity: var(--b, 0); transform: translateY(calc((1 - var(--b, 0)) * 30vh)); }
.grind__b .w--dark { align-self: flex-end; transform: translateY(calc((1 - var(--b, 0)) * 45vh)); }

.scrollhint {
  position: absolute; z-index: 2; right: var(--gutter); top: 50%;
  writing-mode: vertical-rl; color: var(--cream);
  font: 700 .7rem/1 var(--body); letter-spacing: .3em; text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
  opacity: calc(1 - var(--p, 0) * 6);
}
.scrollhint span { width: 1.5px; height: 56px; background: var(--cream); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* POUR */
.pour__type {
  position: absolute; z-index: 2;
  left: var(--gutter); top: 22vh;
  color: var(--cream);
  transform: translateY(calc((1 - var(--a, 0)) * 40vh));
  opacity: var(--a, 0);
}
.pour__type .kicker { color: var(--terra-lt); }
.pour__arrow { width: clamp(120px, 18vw, 220px); color: var(--cream); margin: .4rem 0 0 clamp(1rem, 6vw, 6rem); }
.pour__script {
  margin: 0;
  font: 900 italic clamp(3.2rem, 11vw, 10rem)/.9 var(--script);
  color: var(--terra-lt);
  transform: translateX(calc((1 - var(--a, 0)) * 30vw));
  text-shadow: 0 6px 40px rgba(42,26,18,.35);
}
.pour__list {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 9vh;
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.pour__list li {
  padding: .5em 1.1em; border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  color: var(--espresso); font-weight: 700; font-size: .85rem;
  opacity: 0; transform: translateX(40px);
  transition: opacity .5s, transform .5s;
}
.pour__list li.on { opacity: 1; transform: none; }

/* SIP */
.sip__kicker {
  position: absolute; z-index: 2; left: var(--gutter); top: 18vh;
  color: var(--cream) !important;
  opacity: calc(1 - var(--b, 0));
}
.sip__wave {
  position: absolute; z-index: 2; inset: auto 0 0;
  height: 62vh;
  transform: translateY(calc((1 - var(--b, 0)) * 100%));
}
.sip__wave svg { display: block; width: 100%; height: 60px; fill: var(--espresso); margin-bottom: -1px; }
.sip__body {
  height: calc(100% - 59px); background: var(--espresso); color: var(--cream);
  padding: 2vh var(--gutter) 0;
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px;
}
.sip__title { color: var(--cream); font-size: clamp(6rem, 30vw, 26rem); }
.sip__copy { max-width: 360px; margin: 2rem 0 0; color: var(--cream-2); }

/* ---------- FIND YOUR CUP ---------- */
.find {
  position: relative;
  padding: clamp(90px, 14vh, 150px) var(--gutter) 90px;
  background: radial-gradient(70% 60% at 50% 45%, var(--paper), var(--cream) 70%, var(--cream-2));
  text-align: center;
}
.find__head { display: grid; justify-items: center; gap: 22px; }
.find__title {
  position: relative; margin: 0;
  font: 400 clamp(3rem, 9vw, 7.5rem)/.9 var(--display);
  color: var(--espresso); letter-spacing: -.01em;
}
.find__title span { font-family: var(--script); font-style: italic; font-weight: 900; color: var(--terra); }
.spark { position: absolute; width: .32em; fill: var(--espresso); animation: twinkle 3s ease-in-out infinite; }
.spark--1 { right: -.45em; top: -.1em; }
.spark--2 { left: -.5em; bottom: .1em; width: .22em; animation-delay: -1.4s; }
@keyframes twinkle { 50% { transform: scale(.6) rotate(45deg); } }

.find__stage {
  position: relative;
  max-width: 1200px; margin: 50px auto 0;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px) 1fr;
  grid-template-rows: auto auto;
  gap: 22px 36px; align-items: center;
}
.find__cup {
  grid-column: 2; grid-row: 1 / span 2;
  aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(42,26,18,.45);
}
.find__cup img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); }
.card {
  background: var(--paper);
  border-radius: 22px; padding: 22px 22px 24px;
  text-align: left;
  box-shadow: 0 18px 40px -18px rgba(42,26,18,.35);
  transition: transform .4s;
}
.card:hover { transform: translateY(-6px) rotate(-1deg); }
.card h3 { margin: .5rem 0 .4rem; font: 400 1.5rem/1.05 var(--display); color: var(--espresso); }
.card p { margin: 0; font-size: .88rem; color: var(--muted); }
.card__tag {
  display: inline-block; padding: .35em .8em; border-radius: 999px;
  background: var(--cream-2); color: var(--terra);
  font: 700 .66rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase;
}
.card--l1 { grid-column: 1; grid-row: 1; transform: rotate(-2deg); }
.card--l2 { grid-column: 1; grid-row: 2; margin-left: 12%; transform: rotate(1.5deg); }
.card--r1 { grid-column: 3; grid-row: 1; margin-right: 12%; transform: rotate(2deg); }
.card--r2 { grid-column: 3; grid-row: 2; transform: rotate(-1.5deg); }
.card--feature { background: var(--terra); }
.card--feature h3, .card--feature p { color: var(--paper); }
.card--feature .card__tag { background: var(--paper); }
.card--feature .pill { margin-top: 14px; }

.syrups { max-width: 820px; margin: 60px auto 0; }
.syrups p { margin: .8rem 0 0; color: var(--ink); }
.syrups em { color: var(--terra); font-style: normal; }
.syrups__more { color: var(--muted) !important; font-size: .92rem; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; background: var(--terra); color: var(--paper); padding: 18px 0; }
.marquee__track { display: flex; width: max-content; animation: slide 28s linear infinite; }
.marquee span { font: 400 clamp(1.6rem, 4vw, 3rem)/1 var(--display); white-space: nowrap; padding-right: .3em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- split sections ---------- */
.split {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 90px);
  align-items: center;
  padding: clamp(80px, 12vh, 140px) var(--gutter);
  max-width: 1320px; margin: 0 auto;
}
.split--rev .split__media { order: 2; }
.split__media { position: relative; min-height: 460px; }
.split__img { border-radius: 28px; object-fit: cover; box-shadow: 0 30px 60px -25px rgba(42,26,18,.45); }
.split__img--a { width: 78%; aspect-ratio: 4/3; }
.split__img--b { position: absolute; right: 0; bottom: -30px; width: 52%; aspect-ratio: 1; border: 8px solid var(--paper); }
.split__img--tall { width: 82%; aspect-ratio: 4/5; margin: 0 auto; border-radius: 220px 220px 28px 28px; }
.big { margin: 0 0 1rem; font: 400 clamp(2.6rem, 5.5vw, 4.6rem)/.95 var(--display); color: var(--espresso); }
.big .script { display: block; font-size: .9em; }
.split__text p:not(.kicker) { color: var(--muted); margin: 0 0 1.6rem; }

/* ---------- truck ---------- */
.truck { position: relative; height: 92vh; min-height: 520px; overflow: hidden; }
.truck img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: sepia(.2) brightness(.72); }
.truck__text { position: absolute; left: var(--gutter); bottom: 9vh; right: var(--gutter); color: var(--cream); max-width: 900px; }
.truck__text .giant { font-size: clamp(3.6rem, 12vw, 11rem); margin-bottom: 1rem; }
.truck__text p { max-width: 420px; margin: 0 0 1.4rem; }

/* ---------- visit ---------- */
.visit {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px clamp(30px, 6vw, 90px);
  padding: clamp(80px, 12vh, 140px) var(--gutter);
  max-width: 1320px; margin: 0 auto;
}
.visit dl { display: grid; grid-template-columns: auto 1fr; gap: 14px 28px; margin: 1.5rem 0 0; }
.visit dt { font: 700 .72rem/1.9 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--terra); }
.visit dd { margin: 0; }
.visit dd a { text-decoration: none; }
.visit dd a:hover { color: var(--terra); }
.visit__form { display: grid; gap: 16px; align-content: start; background: var(--cream); border-radius: 28px; padding: clamp(22px, 4vw, 40px); }
.visit__form label { display: grid; gap: 6px; font: 700 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.visit__form input, .visit__form textarea {
  font: 400 1rem var(--body); color: var(--ink);
  border: 0; border-bottom: 1.5px solid var(--cream-2); background: transparent; padding: 10px 2px;
  border-radius: 0;
}
.visit__form input:focus, .visit__form textarea:focus { outline: none; border-color: var(--terra); }
.visit__form button { justify-self: start; margin-top: 8px; }
.visit__store { grid-column: 1 / -1; width: 100%; aspect-ratio: 21/8; object-fit: cover; border-radius: 28px; }

.foot { background: var(--espresso); color: var(--cream-2); text-align: center; padding: 60px var(--gutter) 40px; font-size: .85rem; }
.foot__logo { width: 150px; margin: 0 auto 26px; }
.foot__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; margin-bottom: 20px; }
.foot__links a { text-decoration: none; font-weight: 700; color: var(--cream); }
.foot__links a:hover { color: var(--terra-lt); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; translate: 0 40px; transition: opacity .9s ease, translate .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; translate: 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav__links, .nav__tag { display: none; }
  .nav__cta { margin-left: auto; }
  .find__stage { grid-template-columns: 1fr 1fr; }
  .find__cup { grid-column: 1 / -1; grid-row: 1; width: min(320px, 80%); margin: 0 auto 10px; }
  .card--l1, .card--l2, .card--r1, .card--r2 { grid-column: auto; grid-row: auto; margin: 0; }
  .split, .visit { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .split__media { min-height: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { padding: 8px 8px 8px 14px; inset: 10px 12px auto; }
  .nav__logo img { height: 24px; }
  .grind__intro { max-width: none; right: var(--gutter); top: 96px; }
  .grind__a { bottom: 14vh; flex-direction: column; align-items: flex-start; }
  .grind__a .w--terra { align-self: flex-end; }
  .pour__type { top: 16vh; }
  .pour__list { bottom: 6vh; }
  .sip__wave { height: 58vh; }
  .find__stage { grid-template-columns: 1fr; }
  .split__img--a { width: 88%; }
  .split__img--b { bottom: -20px; }
  .visit dl { grid-template-columns: 1fr; gap: 4px; }
  .visit dd { margin-bottom: 14px; }
  .visit__store { aspect-ratio: 4/3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track, .spark, .scrollhint span { animation: none; }
  .reveal { opacity: 1; translate: none; transition: none; }
}

/* lighter footage needs a deeper wash for the cream type */
.scene--pour .stage__tint {
  background:
    linear-gradient(100deg, rgba(42,26,18,.62) 0%, rgba(42,26,18,.25) 55%, transparent 80%),
    linear-gradient(180deg, rgba(42,26,18,.3), transparent 30%, transparent 70%, rgba(42,26,18,.5));
}
