/* =========================================================
   Gelato Delights — styles
   Colours and fonts live in :root. Edit once, the whole site follows.
   ========================================================= */
@font-face {
    font-family: "Shrikhand";
    src: url("../fonts/shrikhand.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Bricolage Grotesque";
    src: url("../fonts/bricolage.woff2") format("woff2");
    font-weight: 200 800;
    font-stretch: 75% 100%;
    font-display: swap;
}

:root {
    --plum: #24103A;

    /* main dark + text on light */
    --plum-2: #341A52;
    --plum-3: #170A26;
    --coral: #E8434F;
    --magenta: #F90B81;

    /* logo D */
    --pink: #FF9EB5;
    --pink-light: #FFE8EE;
    --grape: #4813EA;

    /* logo G */
    --mango: #FFB020;
    --white: #FFFFFF;
    --wa: #1A8F48;

    /* WhatsApp buttons */
    --display: "Shrikhand", "Cooper Black", Georgia, serif;
    --sans: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --wrap: 1240px;
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --ease: cubic-bezier(.2, .8, .2, 1);
    --bounce: cubic-bezier(.34, 1.56, .64, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    margin: 0;
    background: var(--plum);
    color: var(--plum);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
p,
figure,
blockquote,
ul {
    margin: 0;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--mango);
    outline-offset: 3px;
    border-radius: 6px;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Shared type ---------- */
.title {
    font-family: var(--sans);
    font-weight: 800;
    font-stretch: 80%;
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 0.95;
    letter-spacing: 0.01em;
    margin-bottom: 1.25rem;
}

.title--xl {
    font-size: clamp(3rem, 7.5vw, 6.5rem);
}

/* Word-by-word reveal for headings (added by JS) */
.js .title .w {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.08em;
}

.js .title .w > span {
    display: inline-block;
    transform: translateY(105%);
    transition: transform 0.9s var(--ease);
    transition-delay: calc(var(--i) * 70ms);
}

.js .title.is-in .w > span {
    transform: none;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.6rem;
    border-radius: 999px;
    border: 2px solid transparent;
    background: var(--grape);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.3s var(--bounce), box-shadow 0.3s, background-color 0.3s;
}

.btn:hover {
    transform: translateY(-3px) rotate(-1deg);
    box-shadow: 0 10px 0 -2px rgba(0,0,0,0.18);
}

.btn:active {
    transform: translateY(0) scale(0.97);
}

.btn--small {
    padding: 0.55rem 1.1rem;
    font-size: 0.92rem;
}

.btn--wa {
    background: var(--wa);
}

.btn--mango {
    background: var(--mango);
    color: var(--plum);
}

.btn--ink {
    background: var(--plum);
    color: var(--white);
}

.btn--ghost {
    background: transparent;
    border-color: currentColor;
    color: inherit;
}

/* ---------- Floating header ---------- */
.nav {
    --logo: 150px;
    position: fixed;
    z-index: 50;
    top: 14px;
    left: 50%;
    translate: -50% 0;
    width: min(calc(100% - 2rem), 1180px);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.4rem 0.5rem 0.4rem 0;
    border-radius: 999px;
    transition: transform 0.45s var(--ease);
}

/* The white bar starts behind the middle of the logo, so no rounded end shows on its left */
.nav::before {
    content: "";
    position: absolute;
    inset: 0 0 0 calc(var(--logo) / 2);
    z-index: -1;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-radius: 0 999px 999px 0;
    box-shadow: 0 10px 30px -12px rgba(36, 16, 58, 0.35);
}

.nav.is-hidden {
    transform: translateY(calc(-100% - 180px));
}

/* Big logo badge that hangs below the navbar */
.nav__logo {
    position: relative;
    flex: none;
    width: 150px;
    height: 52px;
}

.nav__logo img {
    position: absolute;
    top: -14px;
    left: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--white);
    border: 4px solid var(--white);
    box-shadow: 0 12px 28px -10px rgba(36, 16, 58, 0.45);
    transition: transform 0.4s var(--bounce);
}

.nav__logo:hover img {
    transform: rotate(-8deg) scale(1.05);
}

.nav__links {
    display: flex;
    gap: 0.25rem;
    margin-left: auto;
}

.nav__links a {
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    transition: background-color 0.25s;
}

.nav__links a:hover {
    background: var(--pink-light);
    color: var(--magenta);
}

.nav__lang {
    font-weight: 800;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--grape);
    border: 2px solid currentColor;
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
}

/* =========================================================
   HERO — background, text and scoop follow the chosen flavor
   ========================================================= */
.hero {
    --bg: #4813EA;
    --ink: #FFFFFF;
    --c1: #A57BDB;
    --c2: #5E2E9A;
    position: relative;
    overflow: hidden;
    min-height: 100svh;
    padding: 120px var(--gutter) 4rem;
    background-color: var(--bg);
    color: var(--ink);
    transition: background-color 0.9s var(--ease), color 0.6s;
}

.hero .btn--ink {
    background: var(--ink);
    color: var(--bg);
    transition: transform 0.3s var(--bounce), box-shadow 0.3s, background-color 0.9s, color 0.9s;
}

/* Giant outlined flavor name drifting behind everything */
.hero__marquee {
    position: absolute;
    inset: 50% 0 auto;
    translate: 0 -50%;
    pointer-events: none;
    opacity: 0.16;
}

.hero__marquee-track {
    display: flex;
    width: max-content;
    white-space: nowrap;
    font-family: var(--display);
    font-size: clamp(8rem, 24vw, 22rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px var(--ink);
    animation: marquee 38s linear infinite;
    transition: opacity 0.4s;
}

.hero__marquee-track.is-fading {
    opacity: 0;
}

.hero__marquee-track span {
    padding-right: 0.35em;
}

/* Sprinkles that float and follow the mouse */
.hero__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    --mx: 0;
    --my: 0;
}

.sprinkle {
    position: absolute;
    width: 10px;
    height: 30px;
    border-radius: 6px;
    transform: translate3d(calc(var(--mx) * var(--depth, .3) * 40px), calc(var(--my) * var(--depth, .3) * 40px), 0) rotate(var(--r));
    transition: transform 0.2s linear;

    /* falls from the top of the hero, tumbling, then fades out (loops) */
    margin-top: -20vh;
    animation: sprinkleFall var(--fall, 9s) linear infinite, sprinkleSpin var(--fall, 9s) linear infinite;
    animation-delay: var(--wait, 0s);
}

.sprinkle:nth-child(odd) {
    --fall: 8s;
}

.sprinkle:nth-child(3n) {
    --fall: 11s;
}

.sprinkle:nth-child(4n) {
    --fall: 7s;
}

.sprinkle:nth-child(1) {
    --wait: -1s;
}

.sprinkle:nth-child(2) {
    --wait: -6s;
}

.sprinkle:nth-child(3) {
    --wait: -3s;
}

.sprinkle:nth-child(4) {
    --wait: -8s;
}

.sprinkle:nth-child(5) {
    --wait: -2s;
}

.sprinkle:nth-child(6) {
    --wait: -5s;
}

.sprinkle:nth-child(7) {
    --wait: -9s;
}

.sprinkle:nth-child(8) {
    --wait: -4s;
}

.sprinkle:nth-child(9) {
    --wait: -7s;
}

.sprinkle:nth-child(10) {
    --wait: -0.5s;
}

.sprinkle:nth-child(11) {
    --wait: -6.5s;
}

.sprinkle:nth-child(12) {
    --wait: -3.5s;
}

.sprinkle:nth-child(13) {
    --wait: -10s;
}

.sprinkle:nth-child(14) {
    --wait: -5.5s;
}

/* Sprinkles that fall onto the scoop and stay there (added by JS) */
.stuck-sprinkle {
    position: absolute;
    z-index: 3;
    width: 2.6%;
    aspect-ratio: 1 / 2.6;
    border-radius: 999px;
    pointer-events: none;
    box-shadow: inset 0 -2px 2px rgba(0, 0, 0, 0.18);
}

.s0 {
    left: 6%;
    --r: 30deg;
    background: var(--white);
}

.s1 {
    left: 44%;
    --r: -40deg;
    background: var(--coral);
    animation-delay: -1s;
}

.s2 {
    left: 8%;
    --r: 70deg;
    background: var(--grape);
    animation-delay: -2s;
}

.s3 {
    left: 36%;
    --r: 10deg;
    background: var(--white);
    animation-delay: -3s;
}

.s4 {
    left: 62%;
    --r: 80deg;
    background: var(--pink);
    animation-delay: -.5s;
}

.s5 {
    left: 90%;
    --r: -20deg;
    background: var(--white);
    animation-delay: -1.5s;
}

.s6 {
    left: 94%;
    --r: 50deg;
    background: var(--mango);
    animation-delay: -2.5s;
}

.s7 {
    left: 76%;
    --r: -60deg;
    background: var(--grape);
    animation-delay: -3.5s;
}

.s8 {
    left: 3%;
    --r: -10deg;
    background: var(--pink);
    animation-delay: -4s;
}

.s9 {
    left: 30%;
    --r: 60deg;
    background: var(--mango);
    animation-delay: -1.2s;
}

.s10 {
    left: 55%;
    --r: 20deg;
    background: var(--coral);
    animation-delay: -2.2s;
}

.s11 {
    left: 97%;
    --r: -70deg;
    background: var(--white);
    animation-delay: -3.2s;
}

.s12 {
    left: 48%;
    --r: 40deg;
    background: var(--white);
    animation-delay: -4.2s;
    width: 8px;
    height: 22px;
}

.s13 {
    left: 60%;
    --r: -30deg;
    background: var(--grape);
    animation-delay: -.8s;
    width: 8px;
    height: 22px;
}

.hero__inner {
    position: relative;
    max-width: var(--wrap);
    margin: 0 auto;
    min-height: calc(100svh - 135px);
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hero__title {
    font-weight: 800;
    font-stretch: 78%;
    font-size: clamp(3rem, 7vw, 6.4rem);
    line-height: 0.9;
    letter-spacing: 0.01em;
    margin-bottom: 1.5rem;
}

.hero__title .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.06em;
}

.hero__title .line > span {
    display: block;
}

.hero__lede {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    max-width: 34ch;
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* The cone */
.hero__stage {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cone-wrap {
    position: relative;
    width: min(400px, 78vw);
}

.scoop-btn {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    border-radius: 45%;
}

.scoop-art {
    position: relative;
    display: block;
    filter: drop-shadow(0 18px 18px rgba(0,0,0,0.18));
    transition: transform 0.4s var(--bounce);
}

.scoop {
    display: block;
    width: 100%;
    overflow: visible;
}

.scoop-btn:hover .scoop-art {
    transform: scale(1.04) rotate(-2deg);
}

/* Real scoop photo (transparent PNG) replaces the drawn scoop when available */
.scoop-photo {
    position: absolute;
    left: 3%;
    top: 0;
    width: 94%;
    height: 88%;
    object-fit: contain;
    object-position: center bottom;
    display: none;
    transform: scale(0.85);
    transform-origin: 50% 100%;
}

.hero.has-photo .scoop-photo {
    display: block;
}

.hero.has-photo .scoop__body,
.hero.has-photo .scoop__ridge,
.hero.has-photo .scoop__shine {
    opacity: 0;
}

.stop-1 {
    stop-color: var(--c1);
    transition: stop-color 0.3s;
}

.stop-2 {
    stop-color: var(--c2);
    transition: stop-color 0.3s;
}

.scoop__body {
    fill: url(#scoopGrad);
}

.scoop__ridge {
    fill: none;
    stroke: rgba(255,255,255,0.4);
    stroke-width: 7;
    stroke-linecap: round;
}

.scoop__ridge.r2 {
    stroke: rgba(0,0,0,0.08);
}

.scoop__shine {
    fill: rgba(255,255,255,0.5);
}

.drip {
    fill: var(--c1);
    transform-box: fill-box;
    transform-origin: 50% 0;
    animation: drip 4.5s ease-in infinite;
    transition: fill 0.3s;
}

.d2 {
    animation-delay: -1.2s;
}

.d3 {
    animation-delay: -2.1s;
    translate: -22px 0;
}

.cone {
    position: relative;
    z-index: 1;
    display: block;
    width: 76%;
    margin: -19% auto 0;
    filter: drop-shadow(0 20px 20px rgba(0,0,0,0.2));
}

.wafer {
    position: absolute;
    z-index: 1;
    top: 7%;
    right: 13%;
    width: 26%;
    rotate: 16deg;
    filter: drop-shadow(0 6px 8px rgba(0,0,0,0.15));
}

.wafer__txt {
    font-family: var(--display);
    font-size: 40px;
    fill: #8A5421;
}

.picker {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.picker__btn {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid currentColor;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: transform 0.3s var(--bounce), background-color 0.3s;
}

.picker__btn:hover {
    transform: scale(1.1);
    background: rgba(255,255,255,0.18);
}

.picker__btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.picker__name {
    font-family: var(--display);
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    min-width: 8ch;
    text-align: center;
    line-height: 1.1;
}

.picker__hint {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.75;
}

/* Page-load moment: headline rises, cone slides up, scoop drops in */
.js .hero__title .line > span {
    transform: translateY(110%);
}

.js .hero__lede,
.js .hero__actions,
.js .picker,
.js .picker__hint {
    opacity: 0;
    transform: translateY(20px);
}

.js .cone {
    opacity: 0;
    transform: translateY(80px);
}

.js .scoop-btn {
    opacity: 0;
    transform: translateY(-160px) scale(0.8);
}

.js .wafer {
    opacity: 0;
    transform: scale(0);
}

.is-loaded .hero__title .line > span {
    transform: none;
    transition: transform 1s var(--ease);
}

.is-loaded .hero__title .line:nth-child(2) > span {
    transition-delay: 0.08s;
}

.is-loaded .hero__title .line:nth-child(3) > span {
    transition-delay: 0.16s;
}

.is-loaded .hero__lede,
.is-loaded .hero__actions,
.is-loaded .picker,
.is-loaded .picker__hint {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s 0.45s, transform 0.8s 0.45s var(--ease);
}

.is-loaded .hero__actions {
    transition-delay: 0.55s;
}

.is-loaded .cone {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s 0.2s, transform 0.9s 0.2s var(--ease);
}

.is-loaded .scoop-btn {
    opacity: 1;
    transform: none;
    transition: opacity 0.3s 0.7s, transform 0.9s 0.7s var(--bounce);
}

.is-loaded .wafer {
    opacity: 1;
    transform: none;
    transition: opacity 0.3s 1.3s, transform 0.6s 1.3s var(--bounce);
}

/* =========================================================
   Ribbon of flavor names
   ========================================================= */
.ribbon {
    position: relative;
    z-index: 5;
    width: 106%;
    margin: -2.2rem 0 -2.2rem -3%;
    padding: 0.9rem 0;
    background: var(--magenta);
    rotate: -2deg;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.35);
}

.ribbon__track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marquee 60s linear infinite;
}

.ribbon__track span {
    font-family: var(--display);
    font-size: clamp(1.4rem, 2.6vw, 2.2rem);
    color: var(--white);
    white-space: nowrap;
}

.mq-scoop {
    width: 22px;
    height: 22px;
    margin: 0 1.2rem;
    fill: var(--mango);
}

/* =========================================================
   Flavors / display case
   ========================================================= */
.flavors {
    --glow: #F90B81;
    position: relative;
    overflow: hidden;
    background: var(--plum);
    color: var(--white);
    padding: clamp(6rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 6rem);
}

.flavors__glow {
    position: absolute;
    inset: 20% -10% auto;
    height: 70%;
    background: radial-gradient(closest-side, var(--glow), transparent);
    opacity: 0.35;
    filter: blur(40px);
    transition: background 0.8s;
    pointer-events: none;
}

.flavors .wrap {
    position: relative;
}

.flavors__head {
    margin-bottom: 2.5rem;
}

.flavors__head .title {
    margin: 0 0 0.5rem;
}

.flavors__head p {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
}

.filters {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: relative;
    display: inline-flex;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
}

.filters__pill {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 0;
    width: 0;
    border-radius: 999px;
    background: var(--mango);
    transition: left 0.45s var(--bounce), width 0.45s var(--bounce);
}

.filter {
    position: relative;
    z-index: 1;
    border: 0;
    background: none;
    color: var(--white);
    font: inherit;
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.3s;
}

.filter.is-active {
    color: var(--plum);
}

.case {
    position: relative;
    background: linear-gradient(180deg, var(--plum-2), var(--plum-3));
    border: 1px solid rgba(255,255,255,0.1);
    border-bottom: 0;
    border-radius: 28px 28px 0 0;
    padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1rem, 3vw, 2.5rem) 0;
    overflow: hidden;
}

.case__glass {
    position: absolute;
    inset: 0 0 auto 0;
    height: 80%;
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(115deg, transparent 0 14%, rgba(255,255,255,0.1) 14% 20%, transparent 20% 26%, rgba(255,255,255,0.05) 26% 29%, transparent 29%);
    animation: glint 7s ease-in-out infinite;
}

.case__tray {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem 0.8rem;
    padding-bottom: 1.75rem;
}

.case__counter {
    height: 22px;
    margin: 0 calc(-1 * clamp(1rem, 3vw, 2.5rem));
    background: linear-gradient(180deg, #EEF2F4, #9AA6AE);
}

.tub {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.6rem 0 0;
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
    border-radius: 14px;
}

.tub.is-out {
    display: none;
}

.tub.is-in {
    animation: pop 0.5s var(--bounce) both;
    animation-delay: calc(var(--k, 0) * 30ms);
}

.tub__scoop {
    position: relative;
    width: 92%;
    aspect-ratio: 1.55 / 1;
    margin-bottom: -18%;
    border-radius: 48% 52% 10px 10px / 78% 70% 10px 10px;
    background: radial-gradient(ellipse at 32% 26%, rgba(255,255,255,0.55) 0 10%, transparent 30%),
    radial-gradient(ellipse at 50% 40%, var(--c1) 0 55%, var(--c2) 100%);
    box-shadow: inset 0 -10px 18px rgba(0,0,0,0.12);
    z-index: 1;
    transform-origin: 50% 100%;
    transition: transform 0.4s var(--bounce);
}

.tub__scoop::before,
.tub__scoop::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border-top: 3px solid rgba(255,255,255,0.35);
}

.tub__scoop::before {
    inset: 16% 18% 45% 10%;
    rotate: -8deg;
}

.tub__scoop::after {
    inset: 38% 8% 22% 28%;
    rotate: 6deg;
    border-top-color: rgba(0,0,0,0.1);
}

.tub__pan {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 30px;
    border-radius: 4px 4px 8px 8px;
    background: linear-gradient(180deg, #EEF2F4 0 12%, #C9D1D6 12% 40%, #9AA6AE 100%);
    box-shadow: 0 8px 14px rgba(0,0,0,0.35);
}

.tub__flag {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 3;
    transform: translateX(-50%) rotate(-3deg);
    max-width: 108%;
    background: var(--white);
    color: var(--plum);
    font-weight: 700;
    font-size: 0.74rem;
    line-height: 1.15;
    text-align: center;
    padding: 0.28rem 0.5rem;
    border-radius: 4px;
    box-shadow: 0 3px 0 rgba(0,0,0,0.25);
    transition: transform 0.4s var(--bounce), background-color 0.3s;
}

.tub__flag::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 2px;
    height: 14px;
    background: #D8D2C8;
}

.tub:nth-child(even) .tub__flag {
    transform: translateX(-50%) rotate(3deg);
}

.tub--premium .tub__flag {
    background: var(--grape);
    color: var(--white);
}

.tub:hover .tub__scoop {
    transform: scale(1.06) translateY(-3px);
}

.tub:hover .tub__flag {
    transform: translateX(-50%) rotate(0) translateY(-4px);
}

.tub.is-active .tub__scoop {
    transform: scale(1.12) translateY(-8px);
    animation: wobble 0.6s var(--bounce);
}

.tub.is-active .tub__flag {
    background: var(--mango);
    color: var(--plum);
    transform: translateX(-50%) rotate(0) translateY(-6px) scale(1.08);
}

/* Real gelato photo inside the pan (added by JS when the file exists) */
.tub__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2);
    transform-origin: 50% 0%;
}

.tub__scoop.has-photo {
    background: transparent;
    overflow: hidden;
    width: 91%;
    margin-bottom: -15%;
}

.tub__scoop.has-photo::before,
.tub__scoop.has-photo::after,
.tub__scoop.has-photo .tub__topping {
    display: none;
}

.tub__scoop.has-photo::after {
    content: "";
    display: block;
    inset: 0;
    rotate: 0deg;
    border: 0;
    border-radius: inherit;
    box-shadow: inset 0 -12px 18px rgba(0,0,0,0.22), inset 0 8px 14px rgba(255,255,255,0.25);
    z-index: 1;
}

.tub__topping {
    position: absolute;
    inset: 12% 14% 30%;
    border-radius: 50%;
    opacity: 0.9;
}

.tub__topping--seeds {
    background: radial-gradient(ellipse, rgba(255,240,170,0.9) 1.2px, transparent 2px) 0 0 / 11px 9px;
}

.tub__topping--specks {
    background: radial-gradient(circle, rgba(40,20,10,0.55) 0.8px, transparent 1.3px) 0 0 / 9px 8px;
}

.tub__topping--cocoa {
    background: radial-gradient(circle, rgba(30,14,9,0.5) 1px, transparent 1.5px) 0 0 / 7px 7px;
}

.tub__topping--shards {
    background: linear-gradient(20deg, transparent 45%, #2E1A13 45% 50%, transparent 50%) 10% 30% / 30% 30% no-repeat, linear-gradient(-30deg, transparent 45%, #2E1A13 45% 52%, transparent 52%) 70% 20% / 28% 30% no-repeat, linear-gradient(60deg, transparent 45%, #2E1A13 45% 50%, transparent 50%) 45% 75% / 30% 30% no-repeat, linear-gradient(-10deg, transparent 45%, #2E1A13 45% 50%, transparent 50%) 85% 70% / 22% 26% no-repeat;
}

.tub__topping--flakes {
    background: linear-gradient(30deg, transparent 40%, #5A3525 40% 55%, transparent 55%) 15% 30% / 22% 18% no-repeat, linear-gradient(-40deg, transparent 40%, #D9B98A 40% 55%, transparent 55%) 60% 15% / 22% 18% no-repeat, linear-gradient(10deg, transparent 40%, #5A3525 40% 55%, transparent 55%) 45% 65% / 22% 18% no-repeat, linear-gradient(-20deg, transparent 40%, #D9B98A 40% 55%, transparent 55%) 80% 60% / 20% 16% no-repeat;
}

.tub__topping--crumbs {
    background: radial-gradient(circle at 20% 40%, #B07A45 0 5%, transparent 6%), radial-gradient(circle at 62% 22%, #C48B50 0 4%, transparent 5%), radial-gradient(circle at 78% 58%, #B07A45 0 5%, transparent 6%), radial-gradient(circle at 40% 72%, #C48B50 0 4%, transparent 5%), radial-gradient(circle at 48% 38%, #B07A45 0 3%, transparent 4%);
}

.tub__topping--cookies {
    background: radial-gradient(circle at 22% 42%, #221410 0 7%, transparent 8%), radial-gradient(circle at 64% 24%, #221410 0 6%, transparent 7%), radial-gradient(circle at 76% 62%, #221410 0 7%, transparent 8%), radial-gradient(circle at 42% 74%, #221410 0 5%, transparent 6%);
}

.flavor-card {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1.6rem clamp(1.25rem, 3vw, 2.5rem);
    border-radius: 0 0 24px 24px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-top: 0;
    backdrop-filter: blur(6px);
}

.flavor-card__swatch {
    flex: none;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.6) 0 10%, transparent 26%), radial-gradient(circle at 45% 40%, var(--c1, #C0609A) 0 55%, var(--c2, #7E2459));
    box-shadow: 0 10px 30px -6px var(--c1, #C0609A);
}

.flavor-card__name {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.1;
}

.flavor-card__desc {
    color: rgba(255,255,255,0.8);
    max-width: 60ch;
}

.flavor-card__tags {
    margin-top: 0.3rem;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--mango);
}

.flavor-card.is-changing .flavor-card__body {
    animation: slideIn 0.5s var(--ease);
}

.flavor-card.is-changing .flavor-card__swatch {
    animation: wobble 0.6s var(--bounce);
}

.flavors__note {
    margin-top: 1.25rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
}

/* Reveal the case like a curtain lifting */
.js .case[data-reveal] {
    clip-path: inset(0 0 100% 0 round 28px 28px 0 0);
    transition: clip-path 1.2s var(--ease);
}

.js .case[data-reveal].is-in {
    clip-path: inset(0 0 0 0 round 28px 28px 0 0);
}

/* =========================================================
   Shop photo — opens up as you scroll (JS sets --p from 0 to 1)
   ========================================================= */
.shop {
    --p: 0;
    position: relative;
    background: var(--plum);
    padding-bottom: 2rem;
}

.shop__frame {
    --e: min(1, calc(var(--p) * 2.2));
    height: 92vh;
    overflow: hidden;
    clip-path: inset(calc((1 - var(--e)) * 14%) calc((1 - var(--e)) * 22%) round calc(24px + (1 - var(--e)) * 40px));
}

.shop__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    scale: calc(1.25 - var(--e) * 0.25);
}

.shop__frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(23,10,38,0.85), transparent 55%);
    pointer-events: none;
}

.shop__text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3rem;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
    color: var(--white);
    opacity: calc(var(--p) * 3 - 0.9);
    transform: translateY(calc((1 - min(1, var(--p) * 2)) * 60px));
}

.shop__title {
    font-weight: 800;
    font-stretch: 78%;
    font-size: clamp(2.6rem, 7.5vw, 7rem);
    line-height: 0.88;
    letter-spacing: 0.01em;
    max-width: 12ch;
    margin-bottom: 1rem;
}

.shop__text p {
    font-size: 1.15rem;
    max-width: 42ch;
    opacity: 0.9;
}

/* =========================================================
   What is gelato? (content from the Gelato Delights menu)
   ========================================================= */
.why {
    position: relative;
    overflow: hidden;
    background: var(--grape);
    color: var(--white);
    padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
}

.why__grid {
    display: grid;
    grid-template-columns: 0.9fr 1.3fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.why__intro > p {
    font-size: 1.2rem;
    max-width: 34ch;
    opacity: 0.92;
}

.why__intro {
    position: relative;
}

.why__sundae {
    --p: 0.5;
    position: relative;
    z-index: 1;
    width: min(380px, 85%);
    margin: 2.5rem auto 0;
    filter: drop-shadow(0 12px 14px rgba(20, 0, 60, 0.35));
}

/* Soft shadow on the "table" under the cup */
.why__intro::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: min(270px, 58%);
    height: 120px;
    translate: -50% 0;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(10, 0, 40, 0.95), rgba(10, 0, 40, 0.55) 75%, rgba(10, 0, 40, 0));
}

.facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.fact {
    background: var(--white);
    color: var(--plum);
    border: 0;
    border-radius: 26px;
    padding: 1.6rem;
    box-shadow: 0 18px 40px -18px rgba(20, 0, 60, 0.55);
}

.fact:nth-child(2) {
    translate: 0 2.5rem;
}

.fact:nth-child(4) {
    translate: 0 2.5rem;
}

.fact h3 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.7rem;
    line-height: 1.1;
    margin: 1.25rem 0 0.5rem;
    color: var(--grape);
}

.fact p {
    opacity: 0.85;
}

.js .fact {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.7s, transform 0.9s var(--bounce);
    transition-delay: calc(var(--f) * 130ms);
}

.facts.is-in .fact {
    opacity: 1;
    transform: none;
}

.bars__cap {
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.bar {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.bar i {
    height: 14px;
    border-radius: 999px;
    background: rgba(72, 19, 234, 0.22);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1.2s var(--ease);
    transition-delay: calc(var(--f) * 130ms + 0.35s);
}

.bar--gd i {
    background: var(--mango);
}

.facts.is-in .bar i {
    transform: scaleX(var(--w));
}

.burst {
    display: flex;
    align-items: flex-end;
    gap: 0.45rem;
    height: 58px;
}

.burst i {
    display: block;
    width: 34px;
    height: 34px;
    border-radius: 50% 50% 44% 44%;
    background: var(--c);
    transform: scale(0);
    box-shadow: inset 0 -5px 8px rgba(0,0,0,0.15);
}

.burst i:nth-child(odd) {
    width: 42px;
    height: 42px;
}

.facts.is-in .burst i {
    animation: popIn 0.6s var(--bounce) forwards;
    animation-delay: calc(var(--d) * 90ms + 0.7s);
}

.therm {
    padding-top: 0.6rem;
}

.therm__tube {
    position: relative;
    height: 16px;
    border-radius: 999px;
    background: rgba(72, 19, 234, 0.12);
    overflow: hidden;
}

.therm__tube i {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #7CC0FF, var(--pink), var(--mango));
    transform-origin: left;
    transform: scaleX(0.12);
    transition: transform 1.8s var(--ease) 1s;
}

.facts.is-in .therm__tube i {
    transform: scaleX(0.66);
}

.therm__labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.therm__cold {
    opacity: 0.7;
}

.therm__gd {
    color: #D97706;
}

.result {
    text-align: center;
    padding-top: clamp(5rem, 9vw, 7rem);
}

.result__h {
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.6rem;
    color: var(--mango);
    margin-bottom: 1rem;
}

.result__words {
    font-weight: 800;
    font-stretch: 80%;
    font-size: clamp(2.3rem, 5.6vw, 5rem);
    line-height: 1.02;
    letter-spacing: 0.01em;
}

.result__words span {
    display: inline-block;
    margin: 0 0.18em;
}

.result__words span:nth-child(2) {
    color: var(--pink);
}

.result__words span:nth-child(3) {
    color: var(--mango);
}

.js .result__words span {
    opacity: 0;
    transform: translateY(50px) rotate(-4deg);
    transition: opacity 0.6s, transform 0.9s var(--bounce);
    transition-delay: calc(var(--i) * 0.22s);
}

.result.is-in .result__words span {
    opacity: 1;
    transform: none;
}

.result__fun {
    margin-top: 1.75rem;
    font-size: 1.1rem;
    opacity: 0.85;
}

/* =========================================================
   Waffles
   ========================================================= */
.waffles {
    --p: 0;
    background: var(--magenta);
    color: var(--plum);
    padding: clamp(5rem, 10vw, 8rem) 0;
    overflow: hidden;
}

.waffles__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.waffles__media {
    position: relative;
}

.waffles__img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border: 12px solid var(--pink);
    rotate: calc(var(--p) * 50deg - 25deg);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
}

.sticker {
    position: absolute;
    right: -4%;
    bottom: -4%;
    width: 40%;
    animation: spin 18s linear infinite;
}

.sticker circle {
    fill: var(--mango);
}

.sticker text {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 15px;
    fill: var(--plum);
    letter-spacing: 0.02em;
}

.sticker .sticker__big {
    font-family: var(--display);
    font-size: 52px;
}

.waffles .title {
    color: var(--white);
}

.waffles__text p {
    font-size: 1.2rem;
    font-weight: 600;
    max-width: 42ch;
    margin-bottom: 2rem;
}

/* =========================================================
   Milkshakes
   ========================================================= */
.shakes {
    --p: 0;
    position: relative;
    overflow: hidden;
    background: #E8D3BF;
    color: var(--plum);
    padding: clamp(5rem, 10vw, 8rem) 0;
}

.shakes__bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shakes__bubbles i {
    position: absolute;
    bottom: -40px;
    left: var(--x);
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    border: 2px solid rgba(255,255,255,0.8);
    animation: rise var(--t) linear infinite;
    animation-delay: var(--dl);
}

.shakes__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.shakes__text > p {
    font-size: 1.2rem;
    font-weight: 500;
    max-width: 38ch;
    margin-bottom: 1rem;
}

.shakes .title {
    color: var(--plum);
}

.shakes__price {
    display: table;
    font-weight: 700 !important;
    font-size: 1rem !important;
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    margin-bottom: 2rem !important;
}

.shakes__media {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 420px;
}

.shakes__blob {
    position: absolute;
    width: min(380px, 80%);
    aspect-ratio: 1;
    background: var(--magenta);
    border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%;
    animation: morph 9s ease-in-out infinite;
}

.shakes__cup {
    position: relative;
    width: min(600px, 100%);
    max-width: none;
    filter: drop-shadow(0 30px 25px rgba(58,32,25,0.35));
    rotate: calc(var(--p) * 12deg - 6deg);
    animation: bob 4.5s ease-in-out infinite;
}

.panel__text {
    max-width: 640px;
    padding: 1rem 0;
}

.panel__big {
    font-weight: 700;
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    line-height: 1.3;
}

/* =========================================================
   Menu with tabs
   ========================================================= */
.menu {
    background: var(--pink-light);
    padding: clamp(5rem, 10vw, 7rem) 0;
}

.tabs {
    position: relative;
    display: flex;
    gap: 0.25rem;
    width: max-content;
    max-width: 100%;
    padding: 6px;
    margin: 1rem 0 2.5rem;
    background: var(--white);
    border-radius: 999px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs__pill {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 0;
    width: 0;
    border-radius: 999px;
    background: var(--plum);
    transition: left 0.45s var(--bounce), width 0.45s var(--bounce);
}

.tab {
    position: relative;
    z-index: 1;
    flex: none;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 700;
    color: var(--plum);
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.3s;
}

.tab.is-active {
    color: var(--white);
}

.panel table {
    width: 100%;
    max-width: 820px;
    border-collapse: collapse;
}

.panel thead th {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.65;
    text-align: right;
    padding: 0 0 0.5rem 1.5rem;
}

.panel tbody th {
    text-align: left;
    font-weight: 700;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    padding: 0.85rem 0;
}

.panel tbody td {
    text-align: right;
    font-weight: 700;
    padding: 0.85rem 0 0.85rem 1.5rem;
    white-space: nowrap;
    width: 7rem;
}

.panel tbody tr {
    border-top: 2px dashed rgba(36,16,58,0.15);
}

.panel.is-active tbody tr {
    animation: rowIn 0.55s var(--ease) both;
    animation-delay: calc(var(--r, 0) * 45ms);
}

.panel__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 3.5rem;
    max-width: 1100px;
}

.panel__cols table {
    max-width: none;
}

.panel__note {
    margin-top: 1.25rem;
    font-weight: 700;
    color: var(--grape);
}

.menu-note {
    font-weight: 500;
    font-size: 0.85rem;
    opacity: 0.65;
}

.menu__note {
    margin-top: 1.5rem;
    opacity: 0.7;
}

/* =========================================================
   Parties
   ========================================================= */
.party {
    position: relative;
    overflow: hidden;
    background: var(--mango);
    color: var(--plum);
    padding: clamp(5rem, 10vw, 8rem) 0;
}

.confetti {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.party__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.party__text > p {
    font-size: 1.15rem;
    max-width: 46ch;
    margin-bottom: 1.75rem;
}

.chips {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.25rem;
}

.chips li {
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: var(--white);
    border: 0;
    font-weight: 700;
    animation: bob 4s ease-in-out infinite;
    animation-delay: calc(var(--d) * -0.6s);
}

.chips li:nth-child(3n+1) {
    background: var(--grape);
    color: var(--white);
}

.chips li:nth-child(3n+2) {
    background: var(--magenta);
    color: var(--white);
}

.party__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.party__media img {
    width: min(100%, 400px);
    margin: 0 auto;
    border-radius: 28px;
    border: 10px solid var(--white);
    rotate: 3deg;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.45);
    transition: rotate 0.5s var(--bounce);
}

.party__media:hover img {
    rotate: -1deg;
}

.js .party__media[data-reveal] {
    opacity: 0;
    transform: translateY(60px) rotate(8deg);
    transition: opacity 0.8s, transform 1s var(--bounce);
}

.js .party__media[data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* =========================================================
   Gallery — sideways scroll (JS sets section height and --x)
   ========================================================= */
.gallery {
    background: var(--plum);
    color: var(--white);
}

.gallery__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery__title {
    padding: 0 var(--gutter);
    max-width: var(--wrap);
    width: 100%;
    margin: 0 auto 2.5rem;
}

.gallery__track {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: max-content;
    padding: 0 var(--gutter);
    transform: translate3d(var(--x, 0px), 0, 0);
    will-change: transform;
}

.shot {
    flex: none;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 20px 40px -18px rgba(36,16,58,0.45);
}

.shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 0.6s var(--ease);
}

.shot:hover img {
    scale: 1.08;
}

.shot--0 {
    width: clamp(240px, 28vw, 400px);
    aspect-ratio: 4 / 5;
    rotate: -2deg;
}

.shot--1 {
    width: clamp(200px, 22vw, 320px);
    aspect-ratio: 1;
    translate: 0 8vh;
    rotate: 2deg;
}

.shot--2 {
    width: clamp(220px, 25vw, 360px);
    aspect-ratio: 3 / 4;
    translate: 0 -5vh;
}

.shot--3 {
    width: clamp(200px, 22vw, 330px);
    aspect-ratio: 1;
    translate: 0 4vh;
    rotate: -3deg;
}

/* =========================================================
   Reviews
   ========================================================= */
.reviews {
    background: var(--pink);
    padding: clamp(5rem, 10vw, 8rem) 0;
}

.reviews__h {
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.4rem;
    margin-bottom: 2rem;
}

.quotes {
    display: grid;
    min-height: 14rem;
}

.quote {
    grid-area: 1 / 1;
}

.quote.is-active {
    animation: quoteIn 0.8s var(--ease);
}

.quote blockquote p {
    font-weight: 800;
    font-stretch: 82%;
    font-size: clamp(1.9rem, 4.4vw, 3.8rem);
    line-height: 1.02;
    letter-spacing: 0.01em;
    max-width: 24ch;
}

.quote figcaption {
    margin-top: 1.5rem;
    font-family: var(--display);
    font-size: 1.4rem;
    color: var(--grape);
}

.quotes__nav {
    display: flex;
    gap: 0.6rem;
    margin-top: 2rem;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid var(--plum);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: width 0.4s var(--bounce), background-color 0.3s;
}

.dot.is-active {
    width: 42px;
    background: var(--plum);
}

/* =========================================================
   Visit
   ========================================================= */
.visit {
    background: var(--plum);
    color: var(--white);
    padding: clamp(5rem, 10vw, 8rem) 0 5rem;
}

.open-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    font-weight: 700;
    margin-bottom: 3rem;
}

.open-badge__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3DDC84;
    box-shadow: 0 0 0 0 rgba(61,220,132,0.7);
    animation: pulse 2s infinite;
}

.open-badge.is-closed .open-badge__dot {
    background: var(--coral);
    animation: none;
}

/* Badge + owner's notice on one line (the notice is hidden when empty) */
.open-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.open-row .open-badge {
    margin-bottom: 0;
}

.open-badge.is-alert {
    background: var(--mango);
    color: var(--plum);
}

.open-badge.is-alert .open-badge__dot {
    background: var(--coral);
    box-shadow: 0 0 0 0 rgba(232, 67, 79, 0.7);
    animation: pulseAlert 1.4s infinite;
}

.open-notice {
    max-width: 60ch;
    padding: 0.5rem 1rem;
    border-radius: 14px;
    background: var(--coral);
    color: var(--white);
    font-weight: 700;
    line-height: 1.4;
}

/* Banner at the very top of the page while the owner has a notice */
.notice-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 70;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem 0.9rem;
    padding: 0.6rem 3.2rem;
    background: var(--coral);
    color: var(--white);
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.35;
    text-align: center;
    box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.4);
}

.notice-bar[hidden] {
    display: none;
}

.notice-bar__icon {
    flex: none;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--mango);
    color: var(--plum);
    font-weight: 800;
    animation: pulseAlert 1.4s infinite;
}

.notice-bar__link {
    color: inherit;
    white-space: nowrap;
    text-underline-offset: 3px;
}

.notice-bar__close {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    translate: 0 -50%;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.notice-bar__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* push the page and the menu bar down by the banner's height */
.has-notice body {
    padding-top: var(--notice-h, 0px);
}

.has-notice .nav {
    top: calc(14px + var(--notice-h, 0px));
}

@keyframes pulseAlert {
    70% {
        box-shadow: 0 0 0 12px rgba(232, 67, 79, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(232, 67, 79, 0);
    }
}

.visit__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    gap: 2.5rem;
}

.visit h3 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.35rem;
    color: var(--mango);
    margin-bottom: 0.6rem;
}

.visit__info {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.visit__info a:not(.btn) {
    text-decoration-color: rgba(255,255,255,0.4);
    text-underline-offset: 3px;
}

.visit__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.hours {
    width: 100%;
    border-collapse: collapse;
}

.hours th,
.hours td {
    padding: 0.55rem 0.75rem;
    font-weight: 500;
    text-align: left;
}

.hours td {
    text-align: right;
}

.hours tr {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hours tr.is-today {
    background: rgba(255,176,32,0.16);
    font-weight: 800;
}

.hours tr.is-today th,
.hours tr.is-today td {
    font-weight: 800;
    color: var(--mango);
}

.visit__map {
    min-height: 320px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--plum-2);
}

.visit__map iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
    background: var(--plum-3);
    color: rgba(255,255,255,0.7);
    overflow: hidden;
    padding-top: 3rem;
}

.footer__word {
    font-family: var(--display);
    font-size: 9.5vw;
    line-height: 1.1;
    white-space: nowrap;
    text-align: center;
    background: linear-gradient(90deg, var(--mango), var(--magenta), var(--pink), var(--grape), var(--mango)) 0 0 / 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 10s linear infinite;
}

.footer__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    font-size: 0.92rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* copyright on its own line; social logos + "Back to top" on the line below */
.footer__row > p:first-child {
    flex-basis: 100%;
}

.footer__row {
    align-items: center;
}

.footer__social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer__social a {
    display: inline-flex;
    text-decoration: none;
    transition: transform 0.25s, opacity 0.25s;
}

.footer__social img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.footer__social a:hover {
    transform: translateY(-3px) scale(1.08);
    opacity: 0.85;
}

/* =========================================================
   Back-to-top button
   ========================================================= */
.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--magenta);
    color: var(--white);
    box-shadow: 0 12px 24px -8px rgba(36, 16, 58, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: opacity 0.3s, visibility 0.3s, transform 0.4s var(--bounce), background-color 0.3s;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.to-top:hover {
    background: var(--grape);
    transform: translateY(-4px);
}

.to-top svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 640px) {
    .to-top {
        right: 14px;
        bottom: 14px;
        width: 48px;
        height: 48px;
    }
}

/* =========================================================
   Keyframes
   ========================================================= */
@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

@keyframes bob {
    50% {
        translate: 0 -12px;
    }
}

@keyframes drip {
    0% {
        transform: scaleY(0.2);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    80% {
        transform: scaleY(1.15);
        opacity: 1;
    }

    100% {
        transform: scaleY(1.3);
        opacity: 0;
    }
}

@keyframes sprinkleFall {
    0% {
        translate: 0 0;
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        translate: 0 135vh;
        opacity: 0;
    }
}

@keyframes sprinkleSpin {
    to {
        rotate: 540deg;
    }
}

@keyframes spin {
    to {
        rotate: 360deg;
    }
}

@keyframes rise {
    from {
        transform: translateY(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    to {
        transform: translateY(-110vh);
        opacity: 0;
    }
}

@keyframes morph {
    50% {
        border-radius: 58% 42% 40% 60% / 45% 58% 42% 55%;
        rotate: 20deg;
    }
}

@keyframes popIn {
    from {
        transform: scale(0) translateY(20px);
    }

    to {
        transform: scale(1);
    }
}

@keyframes pop {
    from {
        opacity: 0;
        transform: scale(0.6) translateY(20px);
    }
}

@keyframes wobble {
    0% {
        scale: 1;
    }

    30% {
        scale: 1.12 0.9;
    }

    60% {
        scale: 0.95 1.06;
    }

    100% {
        scale: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
}

@keyframes rowIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}

@keyframes quoteIn {
    from {
        opacity: 0;
        clip-path: inset(0 0 100% 0);
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
        transform: none;
    }
}

@keyframes pulse {
    70% {
        box-shadow: 0 0 0 12px rgba(61,220,132,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(61,220,132,0);
    }
}

@keyframes shimmer {
    to {
        background-position: -200% 0;
    }
}

@keyframes glint {
    0%,
    100% {
        transform: translateX(-4%);
    }

    50% {
        transform: translateX(4%);
    }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1000px) {
    .nav__links {
        display: none;
    }

    .nav__lang {
        margin-left: auto;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        text-align: left;
        padding-top: 1rem;
    }

    .hero__stage {
        order: -1;
    }

    .cone-wrap {
        width: min(300px, 70vw);
    }

    .case__tray {
        grid-template-columns: repeat(4, 1fr);
    }

    .flavors__head {
        grid-template-columns: 1fr;
    }

    .filters {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
        margin-top: 1rem;
    }

    .waffles__grid,
    .party__grid,
    .why__grid,
    .shakes__grid {
        grid-template-columns: 1fr;
    }

    .shakes__media {
        min-height: 340px;
    }

    .why__sundae {
        width: 240px;
        margin-top: 2rem;
    }

    .why__intro::after {
        width: 150px;
        height: 18px;
    }

    .waffles__media {
        max-width: 420px;
        margin: 0 auto;
    }

    .visit__grid {
        grid-template-columns: 1fr 1fr;
    }

    .visit__map {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 120px;
    }

    .nav__logo,
    .nav__logo img {
        width: 90px;
    }

    .nav__logo img {
        height: 90px;
        top: -10px;
    }

    .cone-wrap {
        width: min(240px, 64vw);
    }

    .case__tray {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem 0.5rem;
    }

    .tub__flag {
        font-size: 0.66rem;
        padding: 0.22rem 0.35rem;
    }

    .flavor-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .shop__frame {
        height: 75vh;
    }

    .visit__grid {
        grid-template-columns: 1fr;
    }

    .facts,
    .panel__cols {
        grid-template-columns: 1fr;
    }

    .fact:nth-child(2),
    .fact:nth-child(4) {
        translate: none;
    }

    .nav .btn--small {
        padding: 0.5rem 0.9rem;
    }

    .nav {
        --logo: 90px;
    }

    .why__sundae {
        width: 190px;
    }

    .why__intro::after {
        width: 120px;
        height: 16px;
    }

    /* Menu tabs: show all of them in a 2-column grid */
    .tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: auto;
        border-radius: 24px;
        overflow: visible;
    }

    .tabs__pill {
        display: none;
    }

    .tab {
        padding: 0.6rem 0.5rem;
        white-space: nowrap;
        transition: color 0.3s, background-color 0.3s;
    }

    .tab.is-active {
        background: var(--plum);
    }
}

/* Gallery falls back to a swipeable row on small screens */
@media (max-width: 800px) {
    .gallery {
        height: auto !important;
        padding: 5rem 0;
    }

    .gallery__sticky {
        position: static;
        height: auto;
    }

    .gallery__track {
        transform: none !important;
        width: auto;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 2rem;
        scrollbar-width: none;
    }

    .shot {
        scroll-snap-align: center;
        width: 72vw !important;
        translate: none !important;
    }
}

/* Respect people who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .js .title .w > span,
    .js .hero__title .line > span {
        transform: none;
    }

    .js .hero__lede,
    .js .hero__actions,
    .js .picker,
    .js .picker__hint,
    .js .cone,
    .js .scoop-btn,
    .js .wafer {
        opacity: 1;
        transform: none;
    }

    .js .case[data-reveal] {
        clip-path: none;
    }

    .js .party__media[data-reveal] {
        opacity: 1;
        transform: none;
    }

    .shop__frame {
        clip-path: none;
    }

    .shop__frame img {
        scale: 1;
    }

    .shop__text {
        opacity: 1;
        transform: none;
    }

    .waffles__img {
        rotate: 0deg;
    }

    .js .fact,
    .js .result__words span {
        opacity: 1;
        transform: none;
    }

    .bar i {
        transform: scaleX(var(--w));
    }

    .burst i {
        transform: none;
    }

    .therm__tube i {
        transform: scaleX(0.66);
    }

    .why__sundae {
        rotate: 0deg;
        translate: none;
    }

    .shakes__cup {
        rotate: 0deg;
    }

    .shakes__bubbles {
        display: none;
    }

    .sprinkle {
        margin-top: 0;
        top: 30%;
    }
}
