:root {
  color: #281a14;
  background: #f5ead9;
  font-family: "DM Sans", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-inline: 5vw;
  background: #f5ead9;
  border-bottom: 1px solid #281a1438;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; }
.brand img, footer img { border-radius: 50%; object-fit: cover; }
nav { display: flex; gap: clamp(16px, 3vw, 44px); font-size: .92rem; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.pill { display: inline-block; border: 1px solid; border-radius: 100px; padding: 11px 20px; text-decoration: none; font-size: .9rem; font-weight: 700; }
.pill:hover { opacity: .78; }
.primary { background: #342016; color: #fff4e4; border-color: #342016; }
.story { display: grid; grid-template-columns: minmax(0, 1fr); isolation: isolate; }
.chapters, .foreground { grid-area: 1 / 1; }
.chapter {
  position: relative;
  min-height: calc(100svh - 78px);
  display: flex;
  align-items: center;
  padding: 56px 7vw;
  border-bottom: 1px solid #281a1466;
  scroll-margin-top: 78px;
}
.intro { display: block; padding: 0; min-height: 0; background: #281a14; color: #fff4e4; }
.hero-stage { position: relative; height: calc(100svh - 78px); min-height: 380px; overflow: hidden; isolation: isolate; z-index: 2; }
.motion .intro { min-height: calc(100svh - 78px + 190svh); }
.motion .hero-stage { position: sticky; top: 78px; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-stage::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, #1c0e09bd, #1c0e0900 66%), linear-gradient(0deg, #1c0e09c4, transparent 27%);
}
.intro .hero-copy { position: absolute; top: 13%; left: 7vw; width: min(48vw, 700px); pointer-events: none; }
.hero-titles { display: grid; }
.hero-title {
  grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(14px);
  font: 900 clamp(3.8rem, 7.5vw, 8rem)/.9 var(--serif); letter-spacing: -.06em;
  transition: opacity .24s ease, transform .32s ease;
}
.hero-title.is-current { opacity: 1; transform: translateY(0); }
.hero-actions { position: absolute; z-index: 4; inset: auto 7vw 6% 7vw; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hero-actions .pill { margin-left: auto; background: #281a14b8; }
.hero-scroll-cue { display: none; font-size: .92rem; }
.motion .hero-scroll-cue { display: block; }
@media (prefers-reduced-motion: reduce) {
  .hero-title { transition: none; }
}
.cookies { background: #d2a77d; }
.brownies { background: #44291e; color: #fff1dd; border-color: #f5ead97a; }
.finale { background: #a17357; color: #21130e; }
.copy { position: relative; z-index: 4; width: min(45vw, 680px); }
.label { margin: 0 0 21px; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { font: 900 clamp(3.9rem, 7.3vw, 8.1rem)/.89 var(--serif); letter-spacing: -.055em; margin: 0; }
h1 span { color: #8d5536; }
.description { max-width: 29ch; font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.55; margin: 24px 0; }
.foreground { display: none; }
.still { width: min(48vw, 680px); max-height: 66svh; object-fit: contain; filter: drop-shadow(0 18px 16px #281a1442); }
.motion .still { display: none; }
.motion .foreground {
  display: block;
  position: sticky;
  top: 78px;
  align-self: start;
  height: calc(100svh - 78px);
  z-index: 3;
  pointer-events: none;
  overflow: clip;
}
.product { position: absolute; width: min(54vw, 74svh, 800px); aspect-ratio: 1; left: 70%; top: 50%; opacity: 0; }
.product img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 18px #25110955); }
.product--break { width: min(52vw, 72svh, 740px); }
.break-frames { position: absolute; inset: 0; isolation: isolate; filter: drop-shadow(0 24px 18px #25110955); }
.break-frames img { position: absolute; inset: 0; opacity: 0; filter: none; mix-blend-mode: plus-lighter; }
.break-frames img:first-child { opacity: 1; }
.break-pieces { position: absolute; inset: 0; visibility: hidden; }
.break-frames .break-piece { opacity: 1; mix-blend-mode: normal; }
.break-piece--left {
  clip-path: polygon(0 0, 46% 0, 46% 28%, 48% 39%, 49% 55%, 48% 68%, 46% 74%, 46% 100%, 0 100%);
  transform-origin: 25% 43%;
}
.break-piece--center {
  clip-path: polygon(46% 0, 55% 0, 55% 30%, 54% 43%, 57% 57%, 59% 69%, 60% 77%, 60% 100%, 46% 100%, 46% 74%, 48% 68%, 49% 55%, 48% 39%, 46% 28%);
}
.break-piece--right {
  clip-path: polygon(55% 0, 100% 0, 100% 100%, 60% 100%, 60% 77%, 59% 69%, 57% 57%, 54% 43%, 55% 30%);
  transform-origin: 74% 43%;
}
.motion .finale { min-height: 195svh; align-items: flex-start; }
.motion .finale .copy { position: sticky; top: max(122px, 34svh); }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 38px 7vw; background: #281a14; color: #fff1dd; }
@media (max-width: 700px) {
  .masthead { height: 66px; }
  .brand img { width: 44px; height: 44px; }
  nav { display: none; }
  .chapter { min-height: max(620px, calc(100svh - 66px)); scroll-margin-top: 66px; flex-direction: column; align-items: flex-start; padding: 36px 7vw 24px; }
  .intro { display: block; min-height: 0; padding: 0; }
  .hero-stage { height: calc(100svh - 66px); }
  .motion .intro { min-height: calc(100svh - 66px + 190svh); }
  .motion .hero-stage { top: 66px; }
  .hero-video { inset: 32% 0 auto; height: 51%; object-position: 62% center; }
  .hero-stage::after { background: linear-gradient(180deg, transparent 28%, #281a14 32%, transparent 40%, transparent 74%, #281a14 83%); }
  .intro .hero-copy { width: 86vw; top: 8%; }
  .hero-title, .hero-title.is-current { font-size: clamp(3.05rem, 10vw, 5rem); }
  .hero-actions { bottom: 4%; }
  .motion .foreground { top: 66px; height: calc(100svh - 66px); }
  .copy { width: 100%; }
  .label { margin-bottom: 12px; }
  h1, h2 { font-size: clamp(3.2rem, 11vw, 5rem); }
  .description { margin: 12px 0 15px; }
  .still { align-self: center; width: min(81vw, 330px); max-height: 34svh; }
  .product, .product--break { left: 51%; top: 73%; width: min(80vw, 40svh); }
  .motion .finale .copy { top: 102px; }
}
@media (max-height: 630px) and (max-width: 700px) {
  .motion .still { display: block; }
  .motion .foreground { display: none; }
  .motion .finale { min-height: max(620px, calc(100svh - 66px)); }
  .motion .finale .copy { position: relative; top: auto; }
}
