:root {
  --cream: #f3e6cf;
  --sand: #e9d5b7;
  --latte: #c9a27e;
  --brown: #8a5637;
  --roast: #3a2014;
  --ink: #1b0f0a;
  --display: "Anton", Impact, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: auto; }
body { background: var(--sand); color: var(--ink); font-family: var(--mono); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .92; letter-spacing: .005em; }

#stage3d { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 3; pointer-events: none; }

/* preloader */
.preloader { position: fixed; inset: 0; z-index: 100; background: var(--roast); color: var(--sand); display: grid; place-content: center; justify-items: center; gap: 18px; text-transform: uppercase; letter-spacing: .2em; font-size: 12px; transition: transform .9s cubic-bezier(.7,0,.2,1); }
.preloader.done { transform: translateY(-101%); }
.preloader__cup { width: 54px; height: 86px; border: 3px solid var(--sand); border-radius: 8px; overflow: hidden; display: flex; align-items: flex-end; }
.preloader__cup span { width: 100%; height: 100%; background: var(--latte); animation: fill 1.4s ease-in-out infinite alternate; transform-origin: bottom; }
@keyframes fill { from { transform: scaleY(.08); } to { transform: scaleY(1); } }

/* header */
.header { position: fixed; z-index: 20; top: 12px; left: 12px; right: 12px; height: 66px; background: var(--cream); border-radius: 8px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 8px 0 26px; box-shadow: 0 6px 24px rgba(27,15,10,.08); }
.header__nav { display: flex; gap: 22px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.header__nav a { position: relative; padding: 4px 0; }
.header__nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s; }
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__cta { display: flex; gap: 6px; justify-content: flex-end; }
.logo { display: grid; justify-items: center; line-height: .8; color: var(--roast); }
.logo i { font-family: "Kaushan Script", cursive; font-size: 20px; font-style: normal; transform: rotate(-6deg) translateX(-14px); }
.logo b { font-family: "Playfair Display", serif; font-weight: 900; font-size: 24px; letter-spacing: .04em; }
.logo--lg i { font-size: 34px; } .logo--lg b { font-size: 42px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 26px; background: var(--ink); color: var(--cream); border: 0; border-radius: 6px; font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; transition: background .25s, transform .25s; }
.btn:hover { background: var(--brown); transform: translateY(-2px); }
.btn--icon { width: 50px; padding: 0; background: var(--latte); color: var(--ink); }

/* hero */
.hero { position: relative; height: 100vh; min-height: 620px; background: radial-gradient(120% 90% at 50% 100%, #f1dfc3 0%, var(--sand) 55%, #dfc7a4 100%); overflow: hidden; }
.hero__title { position: absolute; top: 108px; left: 0; right: 0; text-align: center; font-size: clamp(64px, 12.4vw, 230px); color: var(--cream); text-shadow: 0 2px 0 rgba(138,86,55,.18); }
.hero__title .line { display: block; overflow: hidden; padding-top: .06em; }
.hero__title .line > span { display: block; transform: translateY(110%); transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.hero__title .line:nth-child(2) > span { transition-delay: .12s; color: var(--brown); }
body.ready .hero__title .line > span { transform: none; }
.hero__stamp { position: absolute; right: 7vw; bottom: 150px; color: var(--roast); }
.spin-stamp { width: 124px; height: 124px; display: grid; place-items: center; border-radius: 50%; }
.spin-stamp svg { position: absolute; inset: 0; animation: spin 14s linear infinite; }
.spin-stamp text { font: 700 10.5px var(--mono); text-transform: uppercase; letter-spacing: .12em; fill: currentColor; }
.spin-stamp b { font: 400 34px var(--display); }
@keyframes spin { to { transform: rotate(360deg); } }

.marquee { overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; animation: slide 26s linear infinite; }
.marquee__track span { padding: 0 28px; position: relative; }
.marquee__track span::after { content: "●"; position: absolute; right: -6px; font-size: .5em; top: 50%; transform: translateY(-50%); }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee--facts { position: absolute; bottom: 0; left: 0; right: 0; z-index: 4; background: var(--roast); color: var(--sand); padding: 16px 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }

/* drips */
.drip { position: absolute; left: 0; width: 100%; height: 90px; display: block; pointer-events: none; }
.drip--top { top: -89px; }
.drip path { fill: #4f6b3a; }
.drip--cream path { fill: var(--cream); }

/* story */
.story { position: relative; height: 760vh; z-index: 1; }
.story__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
#liquid { position: absolute; inset: 0; width: 100%; height: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.story__pin { color: var(--cream); transition: color .6s; }
.story__pin.dark-ink { color: var(--roast); }
.story__copy { position: absolute; left: 6vw; top: 50%; transform: translateY(-46%); width: 52vw; }
.story__count { display: inline-block; background: var(--ink); color: var(--cream); padding: 10px 16px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; transform: rotate(-3deg); box-shadow: 5px 5px 0 rgba(0,0,0,.25); }
.story__count b { font-weight: 700; }
.story__count span { opacity: .75; margin-left: 10px; }
.story__words { display: grid; overflow: hidden; margin: 14px 0 6px; padding-top: .05em; }
.story__words span { grid-area: 1 / 1; font: 400 clamp(84px, 12.5vw, 250px)/.95 var(--display); text-transform: uppercase; white-space: nowrap; transform: translateY(108%); transition: transform .9s cubic-bezier(.65,0,.2,1); will-change: transform; }
.story__words span.on { transform: none; }
.story__words span.past { transform: translateY(-108%); }
.story__desc { display: grid; max-width: 460px; }
.story__desc p { grid-area: 1 / 1; font-size: 16px; line-height: 1.6; opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .45s; }
.story__desc p.on { opacity: 1; transform: none; transition-delay: .3s; }
.story__dots { list-style: none; padding: 0; display: flex; gap: 8px; margin-top: 28px; }
.story__dots li { width: 28px; height: 4px; background: currentColor; opacity: .3; transition: opacity .3s, width .4s; }
.story__dots li.on { opacity: 1; width: 56px; }

/* smooth */
.smooth { position: relative; height: 620vh; background: var(--sand); z-index: 1; }
.smooth__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.smooth__left { position: absolute; left: 5vw; top: 50%; transform: translateY(-46%); width: min(30vw, 420px); }
.smooth__left h2 { font-size: clamp(54px, 8.2vw, 150px); color: var(--cream); text-shadow: 0 2px 0 rgba(138,86,55,.2); }
.smooth__left p { font-size: 13px; line-height: 1.6; text-transform: uppercase; letter-spacing: .04em; margin-top: 26px; }
.tag { display: inline-block; background: var(--brown); color: var(--cream); padding: 9px 14px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tag--tilt { transform: rotate(-4deg); margin-top: 14px; box-shadow: 4px 4px 0 rgba(27,15,10,.25); }
.smooth__panels { position: absolute; inset: 0 0 0 50%; }
.panel { position: absolute; inset: 0; background: var(--bg); color: var(--fg); transform: translateX(105%); will-change: transform; display: flex; flex-direction: column; justify-content: center; padding: 0 8vw 0 20vw; }
.panel::before { content: ""; position: absolute; left: -38px; top: -10%; width: 40px; height: 120%; background: var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='160' viewBox='0 0 40 160'%3E%3Cpath d='M40 0C10 20 0 40 18 80S10 140 40 160Z'/%3E%3C/svg%3E") repeat-y;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='160' viewBox='0 0 40 160'%3E%3Cpath d='M40 0C10 20 0 40 18 80S10 140 40 160Z'/%3E%3C/svg%3E") repeat-y;
  animation: flow 3.2s linear infinite; }
@keyframes flow { to { -webkit-mask-position: 0 160px; mask-position: 0 160px; } }
.panel h3 { font-size: clamp(34px, 4vw, 68px); max-width: 8em; }
.panel p { font-size: 13px; line-height: 1.6; text-transform: uppercase; letter-spacing: .04em; margin-top: 18px; max-width: 30em; }
.panel svg { width: 62px; height: 62px; margin-bottom: 18px; }

/* testimonials */
.words { position: relative; z-index: 4; background: var(--latte); padding: 120px 20px 160px; }
.words__head { text-align: center; position: sticky; top: 110px; }
.words__head h2 { font-size: clamp(44px, 6.6vw, 118px); color: var(--cream); }
.cards { max-width: 760px; margin: 60px auto 0; position: relative; }
.card { position: sticky; top: 42vh; background: var(--c); color: var(--cream); border-radius: 14px; padding: 46px 48px; margin-bottom: 46vh; transform: rotate(var(--r)); box-shadow: 0 18px 40px rgba(27,15,10,.28); }
.card:last-child { margin-bottom: 0; }
.card::before { content: "“"; position: absolute; top: 2px; left: 26px; font: 400 80px var(--display); opacity: .5; }
.card__who { display: flex; align-items: center; gap: 18px; margin: 18px 0; }
.card__who i { width: 64px; height: 64px; border-radius: 50%; border: 3px solid currentColor; display: grid; place-items: center; font: 400 24px var(--display); font-style: normal; }
.card__who b { display: block; font: 400 26px var(--display); text-transform: uppercase; letter-spacing: .02em; }
.card__who small { display: inline-block; background: rgba(0,0,0,.3); padding: 3px 8px; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; margin-top: 6px; }
.card p { font-size: 13px; line-height: 1.6; text-transform: uppercase; letter-spacing: .04em; }

/* pages */
.pages { position: relative; z-index: 4; background: var(--cream); padding: 110px 5vw 120px; }
.pages__head { display: grid; grid-template-columns: 1fr minmax(260px, 420px); gap: 40px; align-items: end; margin-bottom: 56px; }
.pages h2 { font-size: clamp(64px, 11vw, 200px); color: var(--roast); }
.pages__sub { font-size: 16px; line-height: 1.6; margin-bottom: 22px; }
.index { list-style: none; padding: 0; border-bottom: 2px solid var(--roast); }
.index a { position: relative; display: grid; grid-template-columns: 70px 150px 1fr auto 70px; align-items: center; gap: 20px; padding: 30px 22px; border-top: 2px solid var(--roast); color: var(--roast); overflow: hidden; transition: color .35s; }
.index a::before { content: ""; position: absolute; inset: 0; background: var(--bg); transform: scaleY(0); transform-origin: bottom; transition: transform .45s cubic-bezier(.65,0,.2,1); }
.index a > * { position: relative; }
.index a:hover, .index a:focus-visible { color: var(--fg); }
.index a:hover::before, .index a:focus-visible::before { transform: scaleY(1); }
.index__n, .index__cat, .index__time { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.index h3 { font-size: clamp(28px, 3.5vw, 62px); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.index a:hover h3 { transform: translateX(14px); }
.index__arrow { font: 400 44px/1 var(--display); justify-self: end; transform: translateX(-16px); opacity: 0; transition: .4s cubic-bezier(.2,.8,.2,1); }
.index a:hover .index__arrow, .index a:focus-visible .index__arrow { transform: none; opacity: 1; }

/* cta + footer */
.cta { position: relative; z-index: 4; background: var(--cream); text-align: center; padding: 60px 20px 150px; }
.cta h2 { font-size: clamp(54px, 9.4vw, 180px); color: var(--brown); }
.stamp-btn { position: absolute; right: 14vw; bottom: 70px; width: 150px; height: 150px; border-radius: 50%; background: var(--latte); color: var(--roast); border: 2px solid var(--roast); display: grid; place-items: center; font: 400 26px/1 var(--display); text-transform: uppercase; transform: rotate(10deg); transition: transform .4s cubic-bezier(.3,1.6,.5,1), background .3s; }
.stamp-btn:hover { transform: rotate(-8deg) scale(1.12); background: var(--brown); color: var(--cream); }
.footer { position: relative; z-index: 4; margin: 0 12px 12px; background: var(--latte); border-radius: 10px; padding: 70px 40px 34px; text-align: center; }
.footer__big { font: 400 clamp(60px, 9vw, 150px)/.92 var(--display); text-transform: uppercase; color: var(--cream); margin: 40px 0 60px; }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.footer__row nav { display: flex; gap: 22px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .header { grid-template-columns: auto 1fr; padding-left: 16px; }
  .header__nav { display: none; }
  .logo { justify-self: start; }
  .hero__title { top: 120px; }
  .hero__stamp { right: 16px; bottom: 80px; transform: scale(.75); }
  .story__copy { left: 20px; right: 20px; width: auto; top: auto; bottom: 28px; transform: none; }
  .story__words span { font-size: 21vw; }
  .story__desc p { font-size: 15px; line-height: 1.5; }
  .story__dots { margin-top: 16px; }
  .pages { padding: 90px 20px; }
  .pages__head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .index a { grid-template-columns: 34px 1fr auto; gap: 6px 12px; padding: 20px 8px; }
  .index__cat { grid-column: 2; }
  .index__time { grid-column: 3; grid-row: 1; }
  .index h3 { grid-column: 1 / -1; font-size: 34px; }
  .index__arrow { display: none; }
  .smooth__left { top: 96px; transform: none; width: auto; right: 5vw; }
  .smooth__left h2 { font-size: 46px; }
  .smooth__left p { display: none; }
  .smooth__panels { inset: 62% 0 0 0; }
  .panel { padding: 16px 24px; }
  .panel::before { display: none; }
  .panel svg { display: none; }
  .stamp-btn { right: 24px; bottom: 30px; width: 110px; height: 110px; font-size: 20px; }
  .card { padding: 40px 26px 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track, .spin-stamp svg, .panel::before { animation: none; }
}
