/* 123 Bakeshop hero. ClipCut bones (warm near-black, glass nav pill, hairline-lit cards, glossy pill buttons,
   un-blurring words, springs baked to linear(), the 3D cylinder) pushed into chocolate and buttercream:
   the page is ganache, the light is their own butter yellow #ece3b7, and the cylinder is a cake turntable. */
@font-face { font-family: "Cooper Nouveau"; src: url("../fonts/cooper-nouveau.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Neue Montreal"; src: url("../fonts/NeueMontreal-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Neue Montreal"; src: url("../fonts/NeueMontreal-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Pressura Mono"; src: url("../fonts/GT-Pressura-Mono-Regular.woff2") format("woff2"); font-display: swap; }

:root {
  --cocoa: #190f0a;
  --cocoa-2: #241710;
  --cocoa-3: #2f1f16;
  --butter: #ece3b7;            /* their brand colour */
  --butter-deep: #d9c98a;
  --ink: #f7f1de;
  --body: rgba(247, 241, 222, .76);
  --dim: rgba(247, 241, 222, .52);
  --edge: rgba(236, 227, 183, .10);
  --edge-hi: rgba(236, 227, 183, .22);
  --glow: rgba(226, 150, 70, .30);
  --gutter: clamp(20px, 6.2vw, 120px);
  --serif: "Cooper Nouveau", "Cooper Black", Georgia, serif;
  --sans: "Neue Montreal", "Helvetica Neue", Arial, sans-serif;
  --mono: "Pressura Mono", ui-monospace, Menlo, monospace;
  --ease-io: cubic-bezier(.44, 0, .56, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; min-height: 100svh;
  background:
    radial-gradient(60vw 38vw at 50% 104%, var(--glow), transparent 70%),
    radial-gradient(40vw 30vw at 8% -6%, rgba(236, 227, 183, .07), transparent 70%),
    var(--cocoa);
  color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .8s var(--ease-io);
}
body[data-flavour="Vanilla"] { --glow: rgba(236, 227, 183, .26); }
body[data-flavour="Confetti"] { --glow: rgba(240, 150, 170, .24); }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* film grain, very faint */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ClipCut's drifting starfield, made of sprinkles; it only falls for Confetti */
.sprinkles { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0; transition: opacity 1s var(--ease-io); overflow: hidden; }
body[data-flavour="Confetti"] .sprinkles { opacity: 1; }
.sprinkles i {
  position: absolute; top: -20px; width: 3px; height: 11px; border-radius: 3px; opacity: .55;
  animation: fall linear infinite;
}
@keyframes fall { to { transform: translate3d(var(--dx, 0), 110vh, 0) rotate(var(--r, 200deg)); } }

/* ---------- nav: ClipCut glass bar ---------- */
.nav { position: fixed; z-index: 40; top: 20px; left: var(--gutter); right: var(--gutter); }
.nav__bar {
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 10px 0 22px; border-radius: 100px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .14), rgba(236, 227, 183, .05) 65%), rgba(36, 23, 16, .55);
  border: 1px solid var(--edge); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
  opacity: 0; transform: translateY(-14px);
  transition: opacity .8s var(--ease-out) .1s, transform var(--spring-800-b20-dur) var(--spring-800-b20) .1s;
}
.is-loaded .nav__bar { opacity: 1; transform: none; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--butter); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name { font-family: var(--serif); font-size: 21px; letter-spacing: -.01em; color: var(--ink); padding-top: 2px; }
.nav__links { display: flex; gap: 6px; }
.nav__links a {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--body);
  padding: 9px 16px; border-radius: 100px; transition: color .3s var(--ease-io), background-color .3s var(--ease-io);
}
.nav__links a:hover { color: var(--ink); background: rgba(236, 227, 183, .08); }
.nav__call {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 100px;
  text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink);
  border: 1px solid var(--edge-hi); transition: background-color .35s var(--ease-io), border-color .35s var(--ease-io);
}
.nav__call:hover { background: rgba(236, 227, 183, .1); border-color: rgba(236, 227, 183, .4); }
.nav__call-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--butter); box-shadow: 0 0 0 4px rgba(236, 227, 183, .14); }
.nav__call-short { display: none; }

/* ---------- one grid for the whole hero: 3 equal columns, equal gutters ---------- */
.hero {
  --col-gap: clamp(20px, 2vw, 32px);
  position: relative; z-index: 1;
  height: 100vh; height: 100svh; min-height: 680px;
  padding: calc(20px + 64px + clamp(22px, 4vh, 52px)) var(--gutter) clamp(22px, 3.6vh, 44px);
  display: flex; flex-direction: column; justify-content: center;
}

/* top band: headline across columns 1-2, description in column 3, its last line on the headline's baseline */
.hero__head {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end;
}
.hero__title { grid-column: 1 / span 2; min-width: 0; }
.hero__lede { grid-column: 3; position: relative; }
.tag {
  margin: 0 0 14px; display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--butter);
}
.tag span { width: 18px; height: 1px; background: currentColor; opacity: .6; }
.h1 {
  margin: 0; font-family: var(--serif); font-weight: 400; color: var(--ink); white-space: nowrap;
  font-size: clamp(54px, min(5.9vw, 10.4vh), 118px); line-height: 1.02; letter-spacing: -.02em;
}
.h1__line { display: inline; }
.h1__line--b { color: var(--butter); margin-left: .18em; }
.bl { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
/* ClipCut word reveal: blur 10 -> 0, rise 10px, 50 ms per word */
.w { display: inline-block; filter: blur(10px); opacity: 0; transform: translateY(.12em); }
.is-loaded .w {
  filter: none; opacity: 1; transform: none;
  transition: filter .7s var(--ease-out), opacity .7s var(--ease-out), transform var(--spring-k400-d100-dur) var(--spring-k400-d100);
  transition-delay: calc(.15s + var(--i, 0) * .07s);
}
.hero__lede p { margin: 0; font-size: clamp(15.5px, 1.2vw, 19px); line-height: 1.5; color: var(--body); letter-spacing: -.005em; max-width: 30em; }
.hero__lede .sig { margin-top: 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }

/* block rise (ClipCut 50px on a 1.5 s / bounce .1 spring) */
.reveal-block { opacity: 0; transform: translateY(40px); }
.is-loaded .reveal-block {
  opacity: 1; transform: none;
  transition: opacity 1.1s var(--ease-out) var(--d, 0s), transform var(--spring-1500-b10-dur) var(--spring-1500-b10) var(--d, 0s);
}

/* ---------- the 1-2-3 stage: three equal cards ---------- */
.stage {
  flex: 1; min-height: 0; max-height: 680px; margin-top: clamp(22px, 3.6vh, 44px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: stretch;
}
.step {
  position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(236, 227, 183, .045), rgba(236, 227, 183, 0) 40%), var(--cocoa-2);
  border: 1px solid var(--edge); border-radius: 20px; padding: 22px 26px 24px;
  box-shadow: inset 0 1px 0 rgba(236, 227, 183, .07), 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.step__head {
  display: flex; align-items: baseline; gap: 12px; height: 44px; flex: none;
  padding-bottom: 12px; border-bottom: 1px solid var(--edge); box-sizing: content-box;
}
.step__n { font-family: var(--serif); font-size: 44px; line-height: .8; color: var(--butter); }
.step__k { font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.step__hint { margin-left: auto; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.step__sub { margin: 18px 0 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
/* every card's last line sits on the card's foot */
.step > :last-child { margin-top: auto; }
.fine { margin: 18px 0 0; font-size: 13px; line-height: 1.45; color: var(--dim); }
.step > .fine:last-child { padding-top: 16px; }

/* 1: chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips--sm { margin-top: 0; gap: 6px; }
.chip {
  appearance: none; cursor: pointer; border: 1px solid var(--edge-hi); background: transparent;
  height: 40px; padding: 0 17px; border-radius: 100px; font-size: 15px; font-weight: 500; color: var(--body);
  transition: background-color .35s var(--ease-io), color .35s var(--ease-io), border-color .35s var(--ease-io);
}
.chips--sm .chip { height: 32px; padding: 0 13px; font-size: 13px; }
.chip:hover { border-color: rgba(236, 227, 183, .45); color: var(--ink); }
.chip.is-on { background: var(--butter); border-color: var(--butter); color: var(--cocoa); box-shadow: inset 0 -2px 2px rgba(255, 255, 255, .45); }
.chip[aria-pressed="true"] { background: rgba(236, 227, 183, .14); border-color: rgba(236, 227, 183, .6); color: var(--ink); }
.chip:focus-visible, .arrow:focus-visible, .serves__b:focus-visible, .send:focus-visible, .tt:focus-visible, .nav a:focus-visible {
  outline: 2px solid var(--butter); outline-offset: 3px;
}

/* 3: size, prices, send */
.serves { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; gap: 10px; }
.serves__b {
  appearance: none; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; flex: none;
  border: 1px solid var(--edge-hi); background: transparent; display: grid; place-items: center;
  transition: background-color .3s var(--ease-io), border-color .3s var(--ease-io);
}
.serves__b:hover { background: rgba(236, 227, 183, .1); border-color: rgba(236, 227, 183, .45); }
.serves__b svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.serves__v { display: flex; align-items: baseline; gap: 8px; }
.serves__v output { font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 1.3em; text-align: right; }
.serves__v span { font-size: 15px; color: var(--body); }
.step--3 > .fine { margin-top: 10px; text-align: center; }
.prices { margin: 16px 0 0; padding: 0; }
.prices div { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--edge); }
.prices div:last-child { border-bottom: 1px solid var(--edge); }
.prices dt { font-size: 14px; color: var(--body); }
.prices dd { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--butter); }
.send {
  margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 56px; padding: 0 8px 0 24px; border-radius: 100px; text-decoration: none;
  background: var(--butter); color: var(--cocoa); font-weight: 500; font-size: 16px;
  box-shadow: inset 0 -2px 2px rgba(255, 255, 255, .5), 0 10px 30px -10px rgba(236, 227, 183, .35);
  transition: background-color .35s var(--ease-io), box-shadow .35s var(--ease-io);
}
.send:hover { background: #f4ecc6; box-shadow: inset 0 -2px 2px rgba(255, 255, 255, .5), 0 14px 38px -10px rgba(236, 227, 183, .5); }
.send__i { width: 40px; height: 40px; border-radius: 50%; background: var(--cocoa); display: grid; place-items: center; flex: none; overflow: hidden; }
.send__i svg { width: 18px; height: 18px; fill: none; stroke: var(--butter); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease-out); }
.send:hover .send__i svg { transform: translateX(3px); }
.sendbox { margin-top: auto; padding-top: 18px; }
.sendbox .send { margin-top: 0; }
.send__sum { margin: 0; padding-top: 10px; text-align: center; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); line-height: 1.45; }

/* ---------- 2: the turntable, inside its own card ---------- */
.tt {
  /* panel W x H, ring radius; --tt-s (set by hero.js) scales the whole stand to the card */
  --tt-s: .7; --tt-w: calc(212px * var(--tt-s)); --tt-h: calc(270px * var(--tt-s)); --tt-r: calc(226px * var(--tt-s));
  position: relative; width: 100%; flex: 1 1 0; min-height: 0; margin-top: 8px;
  perspective: calc(1500px * var(--tt-s)); perspective-origin: 50% 12%;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none;
}
.tt.is-dragging { cursor: grabbing; }
.tt__rotor {
  position: absolute; left: 50%; top: calc(47% - var(--tt-h) / 2); width: 0; height: var(--tt-h);
  transform-style: preserve-3d;
}
.tt__panel, .tt__back {
  position: absolute; left: calc(var(--tt-w) / -2); top: 0; width: var(--tt-w); height: var(--tt-h);
  border-radius: calc(18px * var(--tt-s)); backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.tt__panel {
  overflow: hidden; cursor: inherit;
  background:
    radial-gradient(70% 55% at 50% 42%, #f7f1d6, rgba(247, 241, 214, 0) 70%),
    linear-gradient(180deg, #efe7bf, var(--butter) 70%, #ddd09c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.tt__panel::after { content: ""; position: absolute; inset: 0; background: #120a06; opacity: var(--shade, 0); pointer-events: none; }
.tt__panel img {
  position: absolute; left: 50%; bottom: 17%; transform: translateX(-50%);
  max-width: 90%; max-height: 74%; width: auto; height: auto; pointer-events: none;
  filter: drop-shadow(0 10px 8px rgba(70, 45, 20, .28));
}
.tt__panel .cast { position: absolute; left: 18%; right: 18%; bottom: 14.5%; height: 7%; background: radial-gradient(closest-side, rgba(90, 60, 25, .35), transparent); filter: blur(2px); }
.tt__label {
  position: absolute; left: 8%; right: 8%; bottom: 5.4%; display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: calc(10.5px * var(--tt-s) + 1px); letter-spacing: .08em; text-transform: uppercase; color: rgba(25, 15, 10, .72);
  border-top: 1px solid rgba(25, 15, 10, .18); padding-top: 6px;
}
.tt__back { background: linear-gradient(180deg, #2b1c13, #20140d); border: 1px solid rgba(236, 227, 183, .06); display: grid; place-items: center; }
.tt__back svg { width: 30%; opacity: .16; color: var(--butter); }
.tt__plate {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--tt-r) * 2 + 70px * var(--tt-s)); height: calc(var(--tt-r) * 2 + 70px * var(--tt-s));
  margin: calc(var(--tt-r) * -1 - 35px * var(--tt-s)) 0 0 calc(var(--tt-r) * -1 - 35px * var(--tt-s));
  border-radius: 50%;
  transform: translateY(calc(var(--tt-h) / 2 + 1px)) rotateX(90deg);
  background:
    radial-gradient(closest-side, rgba(236, 227, 183, 0) 88%, rgba(236, 227, 183, .55) 96.5%, rgba(236, 227, 183, .0) 100%),
    repeating-conic-gradient(from 0deg, rgba(236, 227, 183, .16) 0 .6deg, transparent .6deg 7.5deg),
    radial-gradient(closest-side, #3a271b 0%, #2a1a11 78%, #1d120c 100%);
  -webkit-mask: radial-gradient(closest-side, #000 99%, transparent 100%); mask: radial-gradient(closest-side, #000 99%, transparent 100%);
  box-shadow: 0 0 60px 6px rgba(236, 227, 183, .16);
}
.table__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: none; }
.arrow {
  appearance: none; cursor: pointer; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--edge-hi); flex: none;
  background: transparent; display: grid; place-items: center; transition: background-color .3s var(--ease-io), border-color .3s var(--ease-io);
}
.arrow:hover { background: rgba(236, 227, 183, .1); border-color: rgba(236, 227, 183, .45); }
.arrow svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.table__name { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; justify-content: center; white-space: nowrap; font-family: var(--serif); font-size: clamp(19px, 1.45vw, 28px); color: var(--ink); }
.table__no { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--butter); }
.step--2 > .table__note { text-align: center; }
.step--1 > .fine:last-child, .step--2 > .fine:last-child { line-height: 1.45; }

/* card 1: its three choices spread evenly down the card; card 3: the price list stands on the send button */
.groups { flex: 1 1 auto; max-height: 360px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding-top: 20px; }
.group .chips:not(.chips--sm) { margin-top: 0; }
.group .step__sub { margin-top: 0; }
.step--3 .prices { margin-top: auto; padding-top: 18px; }
/* card 1 breathes on taller screens */
@media (min-width: 1101px) and (min-height: 861px) {
  .step--1 .chips:not(.chips--sm) .chip { height: 46px; padding: 0 20px; font-size: 16px; }
  .step--1 .chips--sm .chip { height: 36px; padding: 0 15px; font-size: 14px; }
  .step--1 .step__sub { margin: 26px 0 10px; }
  .step--1 .chips:not(.chips--sm) { margin-top: 0; }
}

/* ---------- phone dock ---------- */
.dock { display: none; }

/* ---------- sizes ---------- */
@media (min-width: 1101px) and (max-height: 860px) {
  .hero { padding-top: calc(20px + 64px + 18px); padding-bottom: 20px; }
  .tag { margin-bottom: 10px; }
  .stage { margin-top: 20px; }
  .step { padding: 18px 22px 20px; }
  .step__head { height: 40px; padding-bottom: 10px; }
  .step__n { font-size: 40px; }
  .chips { margin-top: 16px; }
  .chip { height: 36px; padding: 0 15px; font-size: 14.5px; }
  .chips--sm .chip { height: 30px; }
  .step__sub { margin: 14px 0 7px; }
  .serves { margin-top: 12px; }
  .serves__v output { font-size: 46px; }
  .prices { margin-top: 10px; }
  .prices div { padding: 6px 0; }
  .send { height: 52px; }
  .send__i { width: 38px; height: 38px; }
  .sendbox { padding-top: 14px; }
  .send__sum { padding-top: 8px; }
}

@media (max-width: 1280px) {
  .nav__links a { padding: 9px 12px; }
  .step { padding-left: 20px; padding-right: 20px; }
  .step__hint { display: none; }
}
@media (max-width: 1100px) {
  .hero { height: auto; min-height: 100svh; }
  .hero__head { grid-template-columns: 1fr; row-gap: 20px; }
  .hero__title, .hero__lede { grid-column: 1; }
  .h1 { white-space: normal; font-size: clamp(50px, 9vw, 96px); line-height: .96; }
  .h1__line { display: block; }
  .h1__line--b { margin-left: .5em; }
  .hero__lede { top: 0 !important; }
  .stage { grid-template-columns: 1fr; row-gap: 14px; }
  .tt { flex: none; height: 360px; }
  .step > :last-child { margin-top: 18px; }
  .step__hint { display: inline; }
}
@media (max-width: 760px) {
  :root { --gutter: 18px; }
  .nav { top: 12px; }
  .nav__bar { height: 56px; padding: 0 8px 0 16px; }
  .nav__links { display: none; }
  .brand__mark { width: 30px; height: 30px; }
  .brand__name { font-size: 19px; }
  .nav__call { height: 40px; padding: 0 16px; }
  .nav__call-long { display: none; } .nav__call-short { display: inline; }
  .hero { padding-top: calc(12px + 56px + 22px); padding-bottom: 110px; }
  .tag { font-size: 11px; margin-bottom: 12px; }
  .h1 { font-size: clamp(50px, 15vw, 72px); }
  .hero__lede p { font-size: 16px; }
  .hero__lede .sig { font-size: 11px; }
  .stage { margin-top: 22px; }
  .step { padding: 18px 18px 20px; }
  .tt { height: 280px; }
  .tt__rotor { top: calc(41% - var(--tt-h) / 2); }
  .table__foot { margin-top: 6px; }
  .sendbox { display: none; }
  .step--3 > .prices { margin-bottom: 0; }
  .dock {
    display: flex; gap: 8px; position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 6px; border-radius: 100px; background: rgba(36, 23, 16, .78); border: 1px solid var(--edge);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
  }
  .dock__send {
    flex: 1; height: 52px; border-radius: 100px; display: grid; place-items: center; text-decoration: none;
    background: var(--butter); color: var(--cocoa); font-weight: 500; font-size: 16px; box-shadow: inset 0 -2px 2px rgba(255, 255, 255, .5);
  }
  .dock__call { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--edge-hi); }
  .dock__call svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linejoin: round; }
}

@media (prefers-reduced-motion: reduce) {
  .w, .reveal-block, .nav__bar { filter: none !important; opacity: 1 !important; transform: none !important; transition: none !important; }
  .sprinkles { display: none; }
}
