/* Home page: the kitchen hero, the 3D variety box, the "Choose your flavor" cards and the gifting ideas.
   Colours for these two parts are sampled from the photos: warm white wall, warm marble counter. */
:root{--wall5:#DAD3C5;--marble5:#E2CFBB;--ink5:#2F2A28;--ink5-soft:#5C5550}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

.labbar{position:relative;z-index:5;margin-top:78px;background:#2F2A28;color:#F3EFE8;font-size:13.5px}
.labbar .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;min-height:46px;padding:8px 0}
.labbar b{font-weight:650;letter-spacing:.12em;text-transform:uppercase;font-size:12px;opacity:.8}
.labbar .back{margin-left:auto;color:inherit;opacity:.85}
.dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--a,#999);box-shadow:0 0 0 2px rgba(255,255,255,.65);flex:none}

/* ============ the hero: one photo, the six bags on the marble wall and grey counter (the same backdrop as every flavour photo) ============ */
.hero5{position:relative;padding:0;min-height:clamp(560px,58vw,880px);display:flex;align-items:center;overflow:hidden;background:#DCD9D4}
.hero5 .photo5{position:absolute;inset:0;z-index:0}
.hero5 .photo5 img{width:100%;height:100%;object-fit:cover;object-position:96% 70%;display:block;transform-origin:80% 75%;animation:breathe5 22s ease-in-out infinite alternate}
@keyframes breathe5{from{transform:scale(1)}to{transform:scale(1.035)}}
/* a soft light veil over the marble behind the words, so they read cleanly over the veins */
.hero5::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(90deg,rgba(250,248,245,.86) 0,rgba(250,248,245,.72) 30%,rgba(250,248,245,.28) 47%,rgba(250,248,245,0) 58%)}
.hero5 .copy5{position:relative;z-index:2;width:min(var(--wrap),100% - 40px);margin:0 auto;padding:56px 0 96px}
.hero5 .copy5 > *{max-width:520px}
.hero5 .over{display:block}
.hero5 .lede{font-size:16.5px;max-width:31em;color:var(--muted)}
.hero5 .meta{display:flex;gap:26px;margin-top:30px;padding-top:18px;border-top:1px solid rgba(90,35,70,.18);font-size:14.5px;font-weight:600}
.hero5 .meta a{display:inline-flex;align-items:center;gap:8px;text-decoration:none}
.hero5 .meta svg{width:19px;height:19px}
.hero5 .ctas{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.hero5 .flav-strip{position:absolute;z-index:3;left:max(20px,calc((100vw - var(--wrap))/2));bottom:22px;display:flex;gap:10px 14px;flex-wrap:wrap;font-size:12.5px;font-weight:650;color:var(--plum);
  background:rgba(250,248,245,.78);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);padding:8px 14px;border-radius:99px}
.hero5 .flav-strip span{display:inline-flex;align-items:center;gap:7px}

/* ============ the variety box in 3D, standing on the same wall and counter ============ */
.sphoto.box3d{container-type:size;background:url(images/t9/wall.webp) 30% 100%/cover,#DCD9D4}
.sphoto.box3d::before{content:"";position:absolute;left:0;right:0;top:70%;bottom:0;background:url(images/t9/counter.webp) 50% 0/cover,#ABA8A2;box-shadow:inset 0 2px 0 rgba(60,50,40,.18),inset 0 14px 18px -14px rgba(50,42,34,.35)}
.stage5{position:absolute;inset:0;perspective:1600px;touch-action:pan-y;cursor:grab;user-select:none;-webkit-user-select:none}
.stage5.drag{cursor:grabbing}
.stage5::after{content:"";position:absolute;left:50%;top:80%;width:50cqw;height:6cqh;transform:translate(-50%,-50%);border-radius:50%;
  background:radial-gradient(closest-side,rgba(55,42,34,.34),rgba(55,42,34,0));pointer-events:none}
.cube5{touch-action:none;--h:min(54cqh,90cqw);--w:calc(var(--h) * .704);--d:calc(var(--h) * .40);position:absolute;left:50%;top:52%;width:var(--w);height:var(--h);
  margin:calc(var(--h) / -2) 0 0 calc(var(--w) / -2);transform-style:preserve-3d;will-change:transform}
.cube5 .f{position:absolute;left:50%;top:50%;backface-visibility:hidden;background-size:100% 100%}
.cube5 .fr,.cube5 .bk{width:var(--w);height:var(--h);margin:calc(var(--h) / -2) 0 0 calc(var(--w) / -2)}
.cube5 .lf,.cube5 .rt{width:var(--d);height:var(--h);margin:calc(var(--h) / -2) 0 0 calc(var(--d) / -2)}
.cube5 .tp,.cube5 .bm{width:var(--w);height:var(--d);margin:calc(var(--d) / -2) 0 0 calc(var(--w) / -2)}
.cube5 .fr{transform:translateZ(calc(var(--d) / 2));background-image:url(images/t9/box2-front.webp)}
.cube5 .bk{transform:rotateY(180deg) translateZ(calc(var(--d) / 2));background-image:url(images/t9/box2-back.webp)}
.cube5 .lf{transform:rotateY(-90deg) translateZ(calc(var(--w) / 2));background-image:url(images/t9/box2-left.webp)}
.cube5 .rt{transform:rotateY(90deg) translateZ(calc(var(--w) / 2));background-image:url(images/t9/box2-right.webp)}
.cube5 .tp{transform:rotateX(90deg) translateZ(calc(var(--h) / 2));background-image:url(images/t9/box2-top.webp)}
.cube5 .bm{transform:rotateX(-90deg) translateZ(calc(var(--h) / 2));background-image:url(images/t9/box2-bottom.webp)}
/* faces turning away from the light get only slightly darker, so the box keeps its colour */
.cube5 .f::after{content:"";position:absolute;inset:0;background:#2a1d16;opacity:var(--shade,0);pointer-events:none}
.views5{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.views5 button{font:inherit;font-size:13px;font-weight:600;padding:7px 13px;border-radius:99px;border:1px solid rgba(90,35,70,.28);background:transparent;color:var(--plum);cursor:pointer}
.views5 button[aria-pressed=true]{background:var(--plum);color:var(--cream);border-color:var(--plum)}
.hint5{font-size:12.5px;opacity:.75;margin-top:10px}



/* Preview 7: "Choose your flavor", an arch to introduce it and one rounded card per flavor (after the reference he sent). */
.choose7{margin-top:clamp(70px,9vw,120px)}
.choose7 .row7{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;align-items:stretch}

/* the arch that introduces the row */
.intro7{grid-row:span 2;align-self:start;position:sticky;top:110px;border-radius:999px 999px 26px 26px;background:#EFE4D8;padding:92px 30px 34px;color:var(--plum)}
.intro7 .over{display:block;opacity:.7}
.intro7 h3{font-size:clamp(28px,2.4vw,36px);font-weight:600;letter-spacing:-.025em;line-height:1.05;margin:12px 0 14px}
.intro7 p{font-size:14.5px;line-height:1.55;opacity:.85}
.intro7 .side7{margin-top:22px;padding-left:14px;border-left:2px solid rgba(90,35,70,.3);font-size:13px}

/* one flavour: a tall rounded card, a round photo, the name, the size, the price */
.card7{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;border-radius:999px;background:#FFFCF8;border:1px solid rgba(90,35,70,.14);
  padding:14px 18px 46px;transition:transform .5s var(--ease),box-shadow .5s var(--ease)}
.card7:hover{transform:translateY(-5px);box-shadow:0 26px 40px -30px rgba(70,30,50,.45)}
.card7 .pic7{width:100%;aspect-ratio:1;border-radius:50%;overflow:hidden;box-shadow:0 0 0 5px #FFFCF8,0 0 0 6px rgba(90,35,70,.1)}
.card7 .pic7 img{width:100%;height:100%;object-fit:cover;display:block;transition:transform 1.2s var(--ease)}
.card7:hover .pic7 img{transform:scale(1.05)}
.card7 .tag7{margin-top:16px;font-size:10.5px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#76546A;display:inline-flex;align-items:center;gap:7px}
.card7 .tag7 i{width:7px;height:7px;border-radius:50%;background:var(--a)}
.card7 h3{font-size:19px;font-weight:650;letter-spacing:-.015em;line-height:1.15;margin:6px 0 6px;color:var(--plum)}
.card7 .d7{font-size:13px;line-height:1.45;opacity:.78;max-width:16em}
.size7{display:inline-flex;margin-top:14px;padding:3px;border-radius:99px;background:rgba(90,35,70,.07)}
.size7 button{font:inherit;font-size:12.5px;font-weight:650;border:0;background:transparent;color:var(--plum);padding:6px 13px;border-radius:99px;cursor:pointer}
.size7 button[aria-checked=true]{background:#fff;box-shadow:0 1px 3px rgba(60,20,40,.18)}
.size7 .only7{font-size:12.5px;font-weight:650;padding:6px 13px;color:var(--plum)}
.card7 .price7{margin-top:auto;padding-top:14px;font-size:24px;font-weight:650;letter-spacing:-.02em;color:var(--plum);font-variant-numeric:tabular-nums}
.add7{margin-top:10px;font:inherit;font-size:13.5px;font-weight:650;color:var(--cream);background:var(--plum);border:0;border-radius:99px;padding:10px 20px;cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 8px 16px -10px rgba(70,20,50,.6);transition:transform .3s var(--ease),background .3s}
.add7:hover{background:var(--plum-deep);transform:translateY(-1px)}
.card7 .note7{position:absolute;left:0;right:0;bottom:22px;font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#76546A}

/* the new flavour: a dashed edge and a small round badge, like the "baker's pick" in the reference */
.card7.new7{border:1.5px dashed rgba(90,35,70,.42)}
.card7 .badge7{position:absolute;top:8px;left:50%;transform:translateX(-50%);z-index:2;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;
  background:#EFE4D8;color:var(--plum);font-size:10.5px;font-weight:750;letter-spacing:.08em;text-transform:uppercase;box-shadow:0 0 0 4px #FFFCF8}
.card7.new7 .pic7{margin-top:22px}

@media (max-width:1060px){
  .choose7 .row7{grid-template-columns:repeat(3,minmax(0,1fr))}
  .intro7{grid-column:1 / -1;grid-row:auto;position:static;border-radius:26px;padding:30px}
}
@media (max-width:640px){
  .choose7 .row7{grid-template-columns:1fr 1fr;gap:12px}
  .card7{padding:10px 10px 40px}
  .card7 h3{font-size:15.5px}
  .card7 .d7{font-size:12px}
  .size7 button,.size7 .only7{font-size:11.5px;padding:5px 9px}
  .card7 .price7{font-size:20px}
  .add7{font-size:12.5px;padding:9px 14px}
  .card7 .note7{bottom:16px;font-size:9px;letter-spacing:.1em}
  .card7 .badge7{width:44px;height:44px;font-size:9.5px}
}
@media (prefers-reduced-motion:reduce){.card7,.card7 .pic7 img,.add7{transition:none}.card7:hover{transform:none}.card7:hover .pic7 img{transform:none}}

/* ============ Gifting: four ideas, each photo under a soft arch ============ */
.gifts8{padding:clamp(80px,9vw,120px) 0}
.row8{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;margin-top:40px}
.gift8{display:flex;flex-direction:column}
.gpic8{aspect-ratio:4/5;border-radius:999px 999px 18px 18px;overflow:hidden;background:#EFE4D8}
.gpic8 img{width:100%;height:100%;object-fit:cover;display:block;transition:transform 1.2s var(--ease)}
.gift8:hover .gpic8 img{transform:scale(1.04)}
.gk8{margin-top:18px;font-size:10.5px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#76546A}
.gift8 h3{font-size:20px;font-weight:650;letter-spacing:-.015em;margin:6px 0 8px;color:var(--plum)}
.gd8{font-size:14px;line-height:1.5;opacity:.85}
.go8{margin-top:auto;padding-top:14px;font-weight:650;font-size:14px;color:var(--plum);text-decoration:none;display:inline-flex;gap:8px;align-items:center}
.go8:hover{text-decoration:underline;text-underline-offset:4px}
.big8{margin-top:40px;text-align:center;font-size:15px}
.big8 a{font-weight:650;color:var(--plum);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
@media (max-width:1060px){.row8{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 18px}}
@media (max-width:560px){.row8{grid-template-columns:1fr;gap:36px}.gpic8{aspect-ratio:1/1}}
@media (prefers-reduced-motion:reduce){.gpic8 img{transition:none}.gift8:hover .gpic8 img{transform:none}}

/* the hero starts under the fixed header (on test pages the grey test bar does this) */
.hero5{margin-top:78px}
.labbar + .hero5{margin-top:0}

/* phones: the words on a strip of the same marble, the bags below */
@media (max-width:900px){
  .hero5{display:block;min-height:0;background:url(images/t9/wall.webp) 20% 30%/cover,#DCD9D4}
  .hero5::before{display:none}
  .hero5 .copy5{width:auto;padding:30px 20px 30px;background:linear-gradient(rgba(250,248,245,.66) 0,rgba(250,248,245,.6) 78%,rgba(250,248,245,0) 100%)}
  .hero5 .photo5{position:relative;inset:auto;aspect-ratio:1449/1520;margin-top:-20px}
  .hero5 .photo5 img{object-position:50% 100%;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 7%);mask-image:linear-gradient(to bottom,transparent 0,#000 7%)}
  .hero5 .flav-strip{position:static;margin:-8px 20px 22px;border-radius:16px;justify-content:center}
}
@media (prefers-reduced-motion:reduce){.hero5 .photo5 img{animation:none}}

/* ============ the hero, quieter: more space, fewer things, flat colour ============ */
.hero5::before{background:linear-gradient(90deg,rgba(250,248,245,.80) 0,rgba(250,248,245,.62) 28%,rgba(250,248,245,.18) 46%,rgba(250,248,245,0) 56%)}
.hero5 .copy5{padding:72px 0 88px}
.hero5 .over{letter-spacing:.32em;font-size:11.5px;opacity:.7}
.hero5 .kinetic{font-size:clamp(40px,4.3vw,64px);line-height:1.02;letter-spacing:-.035em;margin:22px 0 26px}
.hero5 .lede{font-size:16px;line-height:1.7;max-width:26em;opacity:.9}
.hero5 .ctas{align-items:center;gap:30px;margin-top:34px}
.hero5 .ctas .btn-fill{background:var(--plum);border-color:var(--plum);box-shadow:none;padding:15px 28px;letter-spacing:.01em}
.hero5 .ctas .btn-fill::before,.hero5 .ctas .btn-fill::after{display:none}
.hero5 .ctas .btn-fill:hover{background:var(--plum-deep)}
.link5{font-weight:650;font-size:15px;color:var(--plum);text-decoration:none;border-bottom:1px solid rgba(90,35,70,.35);padding-bottom:3px;display:inline-flex;gap:8px;transition:border-color .3s}
.link5:hover{border-color:var(--plum)}
.hero5 .meta{border-top:0;padding-top:0;margin-top:46px;gap:22px;font-size:13px;font-weight:600;opacity:.75}
.hero5 .meta svg{width:16px;height:16px}
@media (max-width:900px){
  .hero5 .copy5{padding:34px 20px 34px}
  .hero5 .ctas{gap:22px}
  .hero5 .meta{margin-top:28px}
}
