/* Cookie bakery demo: every section below the hero, then the phone layout. */

.facts { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts__in { padding-top: 36px; padding-bottom: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.facts__in div { display: flex; flex-direction: column; gap: 6px; }
.facts__in b { font: 400 28px/1.2 var(--serif); }
.facts__in span { font-size: 14px; color: var(--text-soft); }

.about { padding-top: 110px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 56px; align-items: center; }
.about__copy { display: flex; flex-direction: column; gap: 20px; }
.about__quote { font: 400 clamp(30px, 3.4vw, 44px)/1.15 var(--serif); letter-spacing: -.01em; text-wrap: pretty; }
.about__copy .body { line-height: 1.7; max-width: 500px; }

/* ---- what we bake: a ring of photos turning in 3D around the one in focus */
.bakes { padding-top: 110px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 48px; }
.ring { display: flex; flex-direction: column; align-items: center; gap: 28px; background: var(--blush); border-radius: var(--radius); padding: 24px 16px 40px; overflow: hidden; }
.ring__stage { position: relative; width: 100%; max-width: 980px; height: clamp(380px, 48vw, 560px); }
.ring__orbit { position: absolute; inset: 0; pointer-events: none; transform-style: preserve-3d; transform: translateY(-6%) rotateX(-10deg); }
.ring__spoke { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.22, 1, .36, 1); }
.ring__thumb { width: clamp(64px, 9vw, 112px); aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 20px rgba(35, 24, 22, .18); transition: transform 1.1s cubic-bezier(.22, 1, .36, 1); }
.ring__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ring__centre { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 5; pointer-events: none; }
.ring__main { position: relative; width: clamp(200px, 30vw, 360px); aspect-ratio: 1 / 1; border-radius: 24px; overflow: hidden; box-shadow: 0 18px 50px rgba(35, 24, 22, .25); background: var(--cream); }
.ring__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .5s ease, transform .6s cubic-bezier(.22, 1, .36, 1); }
.ring__main img.is-on { opacity: 1; transform: scale(1); }
.ring__nav { position: relative; z-index: 20; display: flex; align-items: center; gap: 20px; }
.ring__label { min-width: 260px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.ring__caption { font: 400 30px/1.1 var(--serif); }
.ring__count { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--rose); }
.round { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: center; transition: background-color .25s, color .25s; }
.round:hover { background: var(--ink); color: var(--cream); }
.round svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* swipe rows and their dots are the phone versions of the ring and the reviews */
.swipe, .dots { display: none; }

.menu { padding-top: 70px; padding-bottom: 40px; }
.menu__card { background: var(--blush); border-radius: var(--radius); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 56px; align-items: start; }
.menu__list { display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.menu__list > div:first-child { display: flex; flex-direction: column; gap: 12px; }
.menu__groups { display: flex; flex-direction: column; gap: 28px; width: 100%; }
.menu__title { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.menu__item { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule-warm); }
.menu__item div { display: flex; flex-direction: column; gap: 2px; }
.menu__item b { font: 400 24px/1.2 var(--serif); }
.menu__item small { font-size: 13px; color: var(--text-soft); }
.menu__item span { font-weight: 600; font-size: 15px; white-space: nowrap; }

.ship { padding-top: 70px; }
.ship__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 56px; align-items: center; }
.ship__copy { display: flex; flex-direction: column; gap: 20px; }
.ship__copy h2 { font-size: clamp(40px, 5vw, 60px); }
.ship__copy .body { max-width: 440px; }

.order { padding-top: 100px; padding-bottom: 100px; display: flex; flex-direction: column; gap: 48px; }
.order__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step { border: 1px solid #f0d6ce; border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 14px; background: var(--card); }
.step__n { width: 44px; height: 44px; border-radius: 50%; background: var(--pink); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.step b { font: 400 30px/1.1 var(--serif); }
.step p { font-size: 15px; line-height: 1.6; color: var(--text); }

.gallery { padding-bottom: 110px; display: flex; flex-direction: column; gap: 36px; }
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }

.reviews { background: var(--blush); padding: 100px 0; display: flex; flex-direction: column; gap: 48px; }
.reviews > h2 { width: 100%; }
.reviews__rows { display: flex; flex-direction: column; gap: 20px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.reviews__row { display: flex; gap: 20px; width: max-content; animation: slide 48s linear infinite; }
.reviews__row--back { animation-duration: 56s; animation-direction: reverse; }
.reviews__row:hover { animation-play-state: paused; }
.review { width: 380px; flex: 0 0 auto; background: var(--card); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.review blockquote { font: 400 25px/1.25 var(--serif); }
.review figcaption { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rose); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.faq { padding-top: 100px; padding-bottom: 100px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 56px; align-items: start; }
.faq__head { display: flex; flex-direction: column; gap: 16px; }
.faq__head .body { max-width: 360px; }
.faq__list { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--rule-warm); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 400 24px/1.2 var(--serif); color: var(--ink); }
.faq__q i { font: 400 22px/1 var(--sans); }
.faq__a { padding: 0 0 24px; font-size: 15px; line-height: 1.7; color: var(--text); max-width: 560px; }

.contact { border-top: 1px solid var(--rule); }
.contact__in { padding-top: 80px; padding-bottom: 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.contact__in div { display: flex; flex-direction: column; gap: 10px; }
.contact__in b { font: 400 26px/1.2 var(--serif); }
.contact__in div > span:last-child:not(.eyebrow) { font-size: 14px; color: var(--text-soft); }

.foot { background: var(--ink); color: var(--cream); }
.foot__in { padding-top: 96px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 64px; }
.foot__top { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; }
.foot__top h2 { font-size: clamp(48px, 7vw, 104px); line-height: .95; max-width: 720px; }
.foot__top em { color: var(--pink); }
.foot__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.foot__base { border-top: 1px solid #4a3532; padding-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 14px; color: #e6d3cf; }
.brand--foot { font-size: 24px; color: var(--cream); }
.brand--foot .brand__badge { width: 44px; height: 44px; }

.sticky-order { display: none; }

@media (max-width: 760px) {
  .facts__in { padding-top: 8px; padding-bottom: 8px; display: block; }
  .facts__in div { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .facts__in div:last-child { border-bottom: 0; }
  .facts__in b { font-size: 22px; }
  .facts__in span { font-size: 13px; text-align: right; }

  .about { padding-top: 64px; gap: 24px; }
  .about__quote { font-size: 32px; line-height: 1.12; }
  .shot { border-radius: 24px; }
  .shot--r16 { border-radius: 16px; }
  .shot--r14 { border-radius: 12px; }

  .bakes { padding: 64px 0 0; gap: 24px; }
  .bakes .split-head { padding: 0 20px; }
  .bakes .split-head .body, .ring { display: none; }
  .swipe { display: flex; gap: 14px; overflow-x: auto; padding: 0 20px; scroll-padding: 0 20px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { scroll-snap-align: start; }
  .bake { flex: 0 0 82%; display: flex; flex-direction: column; gap: 14px; font: 400 26px/1.2 var(--serif); }
  .dots { display: flex; justify-content: center; gap: 4px; }
  .dots .dot { width: 24px; }
  .dots .dot i { height: 8px; width: 8px; }
  .dots .dot.is-on i { width: 22px; }

  .menu { padding: 56px 12px 0; }
  .menu__card { border-radius: 24px; padding: 28px 20px; gap: 26px; }
  .menu__list { gap: 26px; }
  .menu__item { padding: 12px 0; }
  .menu__item b { font-size: 21px; }
  .menu__list > .btn { display: none; }

  .ship { padding-top: 64px; }
  .ship__in { display: flex; flex-direction: column-reverse; gap: 22px; }
  .ship__copy { gap: 16px; }
  .ship__copy h2 { font-size: 42px; }
  .ship__copy .link { display: none; }

  .order { padding-top: 64px; padding-bottom: 0; gap: 20px; }
  .order__steps { display: block; }
  .step { border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: none; padding: 0 0 18px 56px; margin-bottom: 18px; position: relative; gap: 4px; }
  .step__n { position: absolute; left: 0; top: 0; width: 40px; height: 40px; }
  .step b { font-size: 24px; }
  .step p { font-size: 14px; }

  .gallery { padding-top: 46px; padding-bottom: 0; gap: 20px; }
  .gallery h2 { font-size: 40px; }
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

  .reviews { margin-top: 64px; padding: 56px 0; gap: 24px; }
  .reviews__rows { display: none; }
  .swipe--reviews { gap: 12px; }
  .swipe--reviews .review { flex: 0 0 80%; width: auto; padding: 26px; }
  .review blockquote { font-size: 23px; }

  .faq { padding-top: 56px; padding-bottom: 0; display: flex; flex-direction: column; gap: 18px; }
  .faq__head .body { display: none; }
  .faq__q { padding: 18px 0; min-height: 44px; font-size: 21px; }
  .faq__a { font-size: 14px; padding-bottom: 20px; }

  .contact { border-top: 0; }
  .contact__in { padding-top: 56px; padding-bottom: 56px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .contact__in div { gap: 6px; }
  .contact__in b { font-size: 21px; }

  .foot__in { padding-top: 56px; padding-bottom: 110px; gap: 36px; }
  .foot__top h2 { font-size: 56px; }
  .foot__cta { flex-direction: column; width: 100%; gap: 10px; }
  .foot__base { padding-top: 24px; }
  .foot__base > span:not(.brand) { display: none; }

  .sticky-order { display: block; position: sticky; bottom: 0; z-index: 20; padding: 12px 16px 18px; margin-top: -86px; background: linear-gradient(rgba(251, 243, 239, 0), rgba(251, 243, 239, .95) 35%); }
  .sticky-order .btn { display: block; box-shadow: 0 10px 30px rgba(35, 24, 22, .25); }
}
