@import url("https://fonts.googleapis.com/css2?family=Titan+One&family=Rubik:wght@400;600&display=swap");

/* Cookie Vission components: classes prefixed cv-. Values come from tokens.css.
   Square corners, flat, Titan One everywhere, as on cookievission.com. */

.cv { font-family: var(--font-brand); font-weight: 400; color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.6; }
.cv *, .cv *::before, .cv *::after { box-sizing: border-box; }
.cv [hidden] { display: none !important; }
.cv h1, .cv h2, .cv h3, .cv p { margin: 0; font-weight: 400; }
.cv a:not(.cv-btn) { color: inherit; }
.cv img { display: block; max-width: 100%; }
.cv-wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-8); }
.cv-link { text-decoration: underline; text-decoration-color: var(--cookie-brown); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.cv :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- Section title: centred, with the 54px rule ---------- */
.cv-title { text-align: center; margin-bottom: var(--space-12); }
.cv-title h1 { font-size: 36px; line-height: 1.15; }
.cv-title h2 { font-size: 25px; line-height: 1.25; }
.cv-title::after { content: ""; display: block; width: var(--rule-width); height: 1px; background: var(--ink); margin: var(--space-6) auto 0; }
.cv-title p { margin-top: var(--space-3); font-size: 14px; color: var(--ink-soft); }

/* ---------- Button ---------- */
.cv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-brand); font-size: 13px; line-height: 1.2; letter-spacing: 0.1em; text-transform: uppercase;
  padding: var(--space-3) var(--space-8); min-height: 48px; border: 0; border-radius: var(--radius-0);
  background: var(--cookie-brown); color: var(--on-brown); cursor: pointer; text-decoration: none;
  transition: background-color 120ms, color 120ms;
}
.cv-btn:hover { background: var(--cookie-brown-dark); color: var(--white); }
.cv-btn--outline { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.cv-btn--outline:hover { background: var(--ink); color: var(--white); }
.cv-btn--sm { min-height: 40px; padding: var(--space-2) var(--space-4); font-size: 12px; }
.cv-btn--block { width: 100%; }
.cv-btn[disabled], .cv-btn[aria-disabled="true"] { background: var(--field); color: var(--ink-soft); box-shadow: none; cursor: not-allowed; }

/* ---------- Tag ---------- */
.cv-tag {
  display: inline-block; font-family: var(--font-brand); font-size: 11px; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px var(--space-2); border-radius: var(--radius-0); background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink);
}
.cv-tag--new { background: var(--vission-pink); color: var(--on-pink); box-shadow: none; }
.cv-tag--best { background: var(--vission-green); color: var(--on-green); box-shadow: none; }
.cv-tag--soldout { background: var(--field); color: var(--ink); box-shadow: none; }

/* ---------- Announcement bar ---------- */
.cv-announce { background: var(--vission-pink); color: var(--on-pink); text-align: center; font-size: 16px; line-height: 1.4; padding: var(--space-3) var(--space-4); }

/* ---------- Site header ---------- */
.cv-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding: var(--space-6) var(--space-8); background: var(--white); }
.cv-logo { display: block; width: var(--logo-width); }
.cv-logo img { width: 100%; height: auto; }
.cv-nav { display: flex; align-items: center; gap: var(--space-8); }
.cv-nav a { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; padding: var(--space-1) 0; border-bottom: 3px solid transparent; }
.cv-nav a:hover, .cv-nav a[aria-current="page"] { border-bottom-color: var(--vission-pink); }
.cv-icons { display: flex; align-items: center; gap: var(--space-4); }
.cv-icon { width: 22px; height: 22px; display: block; fill: var(--ink); }
.cv-cart { position: relative; display: inline-flex; padding: var(--space-1); }
.cv-cart__count { position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; border-radius: var(--radius-round); background: var(--cookie-brown); color: var(--on-brown); font-size: 11px; line-height: 18px; text-align: center; }

/* ---------- Cookie card: whole cookie, cut-open on hover ---------- */
.cv-cookie { display: flex; flex-direction: column; text-align: center; text-decoration: none; }
.cv-cookie__photo { position: relative; aspect-ratio: 1; background: var(--field); overflow: hidden; }
.cv-cookie__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 200ms; }
.cv-cookie__cut { opacity: 0; }
.cv-cookie:hover .cv-cookie__cut, .cv-cookie:focus-within .cv-cookie__cut { opacity: 1; }
.cv-cookie__photo .cv-tag { position: absolute; top: var(--space-3); left: var(--space-3); z-index: 1; }
.cv-cookie__name { margin-top: var(--space-4); font-size: 18px; line-height: 1.3; }
.cv-cookie__note { margin-top: var(--space-1); font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.cv-cookie__price { margin-top: auto; padding-top: var(--space-2); font-size: 16px; letter-spacing: 0.1em; }
.cv-cookie .cv-btn { margin-top: var(--space-3); align-self: center; }
.cv-cookie--soldout .cv-cookie__photo img { filter: grayscale(1); opacity: .5; }
.cv-cookie--soldout:hover .cv-cookie__cut { opacity: 0; }
.cv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-12) var(--space-6); }
@media (max-width: 720px) { .cv-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-8) var(--space-4); } }
@media (prefers-reduced-motion: reduce) { .cv-cookie__photo img { transition: none; } }

/* ---------- Quantity ---------- */
.cv-qty { display: inline-flex; align-items: stretch; background: var(--field); height: 48px; }
.cv-qty button { width: 44px; border: 0; background: transparent; font-family: var(--font-brand); font-size: 20px; color: var(--ink); cursor: pointer; }
.cv-qty input { width: 52px; border: 0; background: transparent; text-align: center; font-family: var(--font-brand); font-size: 16px; color: var(--ink); }
.cv-label { display: block; font-size: 16px; margin-bottom: var(--space-2); }

/* ---------- Product detail ---------- */
.cv-pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-12); align-items: start; }
.cv-pdp__main { aspect-ratio: 4 / 3; overflow: hidden; background: var(--field); }
.cv-pdp__main img { width: 100%; height: 100%; object-fit: cover; }
.cv-pdp__thumbs { display: flex; gap: var(--space-4); margin-top: var(--space-4); }
.cv-pdp__thumbs button { width: 112px; aspect-ratio: 4 / 3; padding: 0; border: 0; background: var(--field); cursor: pointer; overflow: hidden; }
.cv-pdp__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.cv-pdp__thumbs button[aria-current="true"] { outline: 2px solid var(--ink); outline-offset: 3px; }
.cv-pdp__info { text-align: center; padding-top: var(--space-6); }
.cv-kicker { font-size: 12px; letter-spacing: 0.2em; }
.cv-pdp__name { margin-top: var(--space-3); font-size: 36px; line-height: 1.15; }
.cv-pdp__price { margin-top: var(--space-4); font-size: 18px; letter-spacing: 0.1em; }
.cv-pdp__ship { margin-top: var(--space-2); font-size: 14px; color: var(--ink-soft); }
.cv-pdp__info hr { width: var(--rule-width); border: 0; border-top: 1px solid var(--ink); margin: var(--space-6) auto; }
.cv-pdp__buy { display: flex; justify-content: center; gap: var(--space-3); }
.cv-pdp__desc { margin-top: var(--space-8); text-align: left; }
.cv-pdp__tags { margin-top: var(--space-4); display: flex; gap: var(--space-2); justify-content: center; }

/* ---------- Cart line ---------- */
.cv-line { display: grid; grid-template-columns: 120px 1fr auto auto; gap: var(--space-6); align-items: center; padding: var(--space-6) 0; border-bottom: 1px solid var(--field); }
.cv-line__photo { width: 120px; aspect-ratio: 1; overflow: hidden; background: var(--field); }
.cv-line__photo img { width: 100%; height: 100%; object-fit: cover; }
.cv-line__name { font-size: 18px; line-height: 1.3; }
.cv-line__each { font-size: 14px; color: var(--ink-soft); }
.cv-line__remove { margin-top: var(--space-2); padding: 0; border: 0; background: none; font-family: var(--font-brand); font-size: 14px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--cookie-brown); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.cv-line__total { min-width: 88px; text-align: right; font-size: 16px; letter-spacing: 0.1em; }

/* ---------- Pickup / delivery time ---------- */
.cv-pickup { display: flex; flex-direction: column; gap: var(--space-4); }
.cv-pickup__title { font-size: 20px; line-height: 1.3; }
.cv-pickup__note { font-size: 14px; color: var(--ink-soft); }
.cv-toggle { display: inline-grid; grid-template-columns: 1fr 1fr; box-shadow: inset 0 0 0 2px var(--ink); }
.cv-toggle button { min-height: 48px; padding: 0 var(--space-6); border: 0; background: transparent; font-family: var(--font-brand); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.cv-toggle button[aria-pressed="true"] { background: var(--vission-green); color: var(--on-green); }
.cv-fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.cv-select { position: relative; }
.cv-select select { appearance: none; width: 100%; height: 48px; padding: 0 44px 0 var(--space-4); border: 0; border-radius: var(--radius-0); background: var(--field); font-family: var(--font-brand); font-size: 16px; color: var(--ink); cursor: pointer; }
.cv-select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }

/* ---------- Order summary ---------- */
.cv-summary { display: flex; flex-direction: column; gap: var(--space-4); }
.cv-notes { width: 100%; min-height: 96px; padding: var(--space-3) var(--space-4); border: 0; border-radius: var(--radius-0); background: var(--field); font-family: var(--font-brand); font-size: 16px; color: var(--ink); resize: vertical; }
.cv-subtotal { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--space-4); border-top: 1px solid var(--ink); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.cv-subtotal strong { font-weight: 400; font-size: 20px; }
.cv-discount { font-size: 14px; color: var(--ink-soft); }

/* ---------- Home hero ---------- */
.cv-hero { text-align: center; padding: var(--space-16) 0 var(--space-24); }
.cv-hero h1 { font-size: 72px; line-height: 1; }
.cv-hero__trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin: var(--space-12) 0 var(--space-8); }
.cv-hero__trio figure { margin: 0; }
.cv-hero__trio .cv-hero__img { aspect-ratio: 1; overflow: hidden; background: var(--field); }
.cv-hero__trio img { width: 100%; height: 100%; object-fit: cover; }
.cv-hero__trio figcaption { margin-top: var(--space-3); font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; }
.cv-hero__intro { max-width: 620px; margin: 0 auto var(--space-8); font-size: 18px; line-height: 1.6; }
@media (max-width: 720px) { .cv-hero h1 { font-size: 44px; } .cv-hero__trio { gap: var(--space-2); } }

/* ---------- Cookie feature ---------- */
.cv-feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-12); align-items: center; }
.cv-feature__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--field); }
.cv-feature__img img { width: 100%; height: 100%; object-fit: cover; }
.cv-feature h2 { margin-top: var(--space-4); font-size: 36px; line-height: 1.15; }
.cv-feature p { margin-top: var(--space-4); }
.cv-feature__buy { display: flex; align-items: center; gap: var(--space-6); margin-top: var(--space-6); }
.cv-feature__price { font-size: 18px; letter-spacing: 0.1em; }

/* ---------- Cookie wall: flush Instagram-style strip ---------- */
.cv-wall { display: grid; grid-template-columns: repeat(6, 1fr); }
.cv-wall a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--field); }
.cv-wall img { width: 100%; height: 100%; object-fit: cover; transition: transform 200ms; }
.cv-wall a:hover img { transform: scale(1.04); }
.cv-wall__caption { text-align: center; margin-top: var(--space-4); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Info strip ---------- */
.cv-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); text-align: center; }
.cv-info h3 { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.cv-info p { margin-top: var(--space-2); font-size: 16px; }

/* ---------- Footer ---------- */
.cv-footer { background: var(--vission-green); color: var(--on-green); padding: var(--space-12) var(--space-8); }
.cv-footer__in { max-width: var(--content-max); margin: 0 auto; display: flex; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; }
.cv-footer nav { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.cv-footer a { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }
.cv-footer a:hover { text-decoration: underline; }
.cv-footer :focus-visible { outline-color: var(--on-green); }
.cv-footer small { font-size: 14px; }

/* =====================================================================
   SHOWING THE COOKIES: cut-out cookies, colour scenes and motion.
   Cut-outs are the shop's own photos with the white removed (Cutouts group).
   ===================================================================== */
.cv-cutout { display: block; width: 100%; height: auto; filter: drop-shadow(0 22px 22px rgba(13, 10, 10, .22)); user-select: none; -webkit-user-drag: none; }
.cv-on-ink { --fg: var(--white); background: var(--ink); color: var(--white); }
.cv-on-green { --fg: var(--on-green); background: var(--vission-green); color: var(--on-green); }
.cv-on-brown { --fg: var(--on-brown); background: var(--cookie-brown); color: var(--on-brown); }
.cv-on-pink { --fg: var(--on-pink); background: var(--vission-pink); color: var(--on-pink); }
.cv-on-white { --fg: var(--ink); background: var(--white); color: var(--ink); }
.cv-on-ink :focus-visible, .cv-on-green :focus-visible { outline-color: var(--white); }
/* Buttons that sit on a colour scene: white on dark scenes, ink on light ones */
.cv-btn--light { background: var(--white); color: var(--ink); }
.cv-btn--light:hover { background: var(--field); color: var(--ink); }
.cv-btn--dark { background: var(--ink); color: var(--white); }
.cv-btn--dark:hover { background: #2a2525; color: var(--white); }
.cv-btn--ghost-light { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px var(--white); }
.cv-btn--ghost-light:hover { background: var(--white); color: var(--ink); }
.cv-btn--ghost-dark { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.cv-btn--ghost-dark:hover { background: var(--ink); color: var(--white); }
.cv-btn--lg { min-height: 56px; padding: var(--space-4) var(--space-8); font-size: 15px; }

/* Highlight block behind one word: square, brand colour */
.cv-mark { display: inline-block; padding: 0 .12em; margin: 0 -.06em; transition: background-color 250ms, color 250ms; }
.cv-mark.is-green { background: var(--vission-green); color: var(--on-green); }
.cv-mark.is-brown { background: var(--cookie-brown); color: var(--on-brown); }
.cv-mark.is-pink { background: var(--vission-pink); color: var(--on-pink); }

/* Sticker: a small rotated square label */
.cv-sticker { position: absolute; display: grid; place-items: center; text-align: center; width: 132px; height: 132px; background: var(--cookie-brown); color: var(--on-brown); transform: rotate(-9deg); font-size: 15px; line-height: 1.1; letter-spacing: .06em; text-transform: uppercase; z-index: 3; }
.cv-sticker b { display: block; text-transform: none; font-weight: 400; font-size: 44px; letter-spacing: 0; line-height: 1; }

/* ---------- Marquee: moving strip with cookie bullets ---------- */
.cv-marquee { overflow: hidden; background: var(--vission-pink); color: var(--on-pink); padding: var(--space-4) 0; white-space: nowrap; }
.cv-marquee__track { display: inline-flex; align-items: center; gap: var(--space-8); animation: cv-marquee 28s linear infinite; padding-right: var(--space-8); }
.cv-marquee__track span { font-size: 34px; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.cv-marquee__track img { width: 56px; height: auto; animation: cv-spin 6s linear infinite; }
.cv-marquee--green { background: var(--vission-green); color: var(--on-green); }
@keyframes cv-marquee { to { transform: translateX(-50%); } }
@keyframes cv-spin { to { transform: rotate(360deg); } }

/* ---------- HeroPile ---------- */
.cv-pile-hero { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; min-height: 680px; overflow: hidden; background: var(--white); }
.cv-pile-hero__text { position: relative; z-index: 2; padding: var(--space-16) 0 var(--space-16) var(--space-12); display: flex; flex-direction: column; justify-content: center; }
.cv-pile-hero__kicker { font-size: 14px; letter-spacing: .2em; text-transform: uppercase; }
.cv-pile-hero h1 { margin-top: var(--space-4); font-size: 124px; line-height: .98; }
.cv-pile-hero h1 .cv-mark { line-height: 1.02; }
.cv-pile-hero p { margin-top: var(--space-6); max-width: 470px; font-size: 18px; line-height: 1.55; }
.cv-pile-hero__cta { margin-top: var(--space-8); display: flex; gap: var(--space-4); flex-wrap: wrap; }
.cv-pile { position: relative; }
.cv-pile .cv-cutout { position: absolute; will-change: transform; }
.cv-pile .cv-sticker { top: 64px; right: 64px; }
@keyframes cv-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.cv-bob { animation: cv-bob 4.5s ease-in-out infinite; }

/* ---------- FlavourScenes: one cookie, one colour, one scene ---------- */
.cv-scenes { position: relative; height: 680px; overflow: hidden; transition: background-color 500ms, color 500ms; }
.cv-scene { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; padding: 0 var(--space-16) 0 var(--space-12); visibility: hidden; }
.cv-scene.is-on { visibility: visible; }
.cv-scene__text { position: relative; z-index: 2; max-width: 520px; }
.cv-scene__kicker { font-size: 14px; letter-spacing: .2em; text-transform: uppercase; }
.cv-scene__name { margin-top: var(--space-4); font-size: 88px; line-height: .98; }
.cv-scene__desc { margin-top: var(--space-6); font-size: 17px; line-height: 1.55; max-width: 440px; }
.cv-scene__buy { margin-top: var(--space-8); display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.cv-scene__price { font-size: 24px; letter-spacing: .08em; margin-right: var(--space-2); }
.cv-scene__stage { position: relative; height: 100%; display: grid; place-items: center; }
.cv-scene__cookie { position: relative; width: 560px; }
.cv-scene__cookie .cv-cutout { transition: opacity 250ms, transform 350ms; }
.cv-scene__cookie .is-cut { position: absolute; left: 0; top: 50%; transform: translateY(-50%) scale(.85); opacity: 0; }
.cv-scene.is-open .cv-scene__cookie .is-whole { opacity: 0; transform: scale(1.1) rotate(8deg); }
.cv-scene.is-open .cv-scene__cookie .is-cut { opacity: 1; transform: translateY(-50%) scale(1.08); }
.cv-scene__num { position: absolute; left: var(--space-12); bottom: var(--space-8); font-size: 72px; line-height: 1; z-index: 2; }
.cv-scene__num small { font-size: 22px; opacity: .75; }
.cv-scenes__nav { position: absolute; right: var(--space-8); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: var(--space-3); z-index: 5; }
.cv-scenes__nav button { color: inherit; width: 14px; height: 36px; border: 0; padding: 0; cursor: pointer; background: currentColor; opacity: .3; }
.cv-scenes__nav button[aria-current="true"] { opacity: 1; height: 64px; }
.cv-scenes__arrows { position: absolute; right: var(--space-8); bottom: var(--space-8); display: flex; gap: var(--space-2); z-index: 5; }
.cv-scenes__arrows button { width: 52px; height: 52px; border: 0; cursor: pointer; background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; font-family: var(--font-brand); font-size: 22px; }
.cv-scenes__arrows button:hover { background: currentColor; }
.cv-scenes__arrows button:hover span { filter: invert(1); }
@keyframes cv-roll-in { from { transform: translateX(70%) rotate(200deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cv-rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cv-crack { 0% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } 75% { transform: rotate(-2deg); } 100% { transform: rotate(0); } }
.cv-scene.is-on .cv-scene__cookie { animation: cv-roll-in 900ms cubic-bezier(.2,.8,.2,1) both; }
.cv-scene.is-on .cv-scene__text > * { animation: cv-rise 600ms cubic-bezier(.2,.8,.2,1) both; }
.cv-scene.is-on .cv-scene__text > *:nth-child(2) { animation-delay: 80ms; }
.cv-scene.is-on .cv-scene__text > *:nth-child(3) { animation-delay: 160ms; }
.cv-scene.is-on .cv-scene__text > *:nth-child(4) { animation-delay: 240ms; }
.cv-scene.is-cracking .cv-scene__cookie { animation: cv-crack 300ms ease-in-out; }

/* ---------- BigClaim: giant outlined number behind a real cookie ---------- */
.cv-claim { position: relative; display: grid; place-items: center; min-height: 600px; padding-bottom: 110px; overflow: hidden; text-align: center; }
.cv-claim__num { font-size: 400px; line-height: .8; color: transparent; -webkit-text-stroke: 3px var(--fg, var(--ink)); letter-spacing: -.02em; white-space: nowrap; user-select: none; }
.cv-claim__cookie { position: absolute; left: 50%; top: 50%; width: 400px; transform: translate(-50%, -62%) rotate(-10deg); transition: transform 600ms cubic-bezier(.2,.8,.2,1); }
.cv-claim:hover .cv-claim__cookie { transform: translate(-50%, -62%) rotate(6deg) scale(1.04); }
.cv-claim__line { position: absolute; left: 0; right: 0; bottom: var(--space-12); font-size: 22px; line-height: 1.4; padding: 0 var(--space-8); }

/* ---------- BulkDeal: their real 50+ / 100+ discounts ---------- */
.cv-bulk { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); padding: var(--space-16) var(--space-12); }
.cv-bulk__head { grid-column: 1 / -1; text-align: center; }
.cv-bulk__head h2 { font-size: 56px; line-height: 1.05; }
.cv-bulk__head p { margin-top: var(--space-3); font-size: 18px; }
.cv-bulk__tier { position: relative; height: 380px; display: grid; place-items: center; overflow: hidden; }
.cv-bulk__num { font-size: 260px; line-height: .8; color: transparent; -webkit-text-stroke: 3px var(--fg, var(--ink)); }
.cv-bulk__cookies { position: absolute; inset: auto 0 0 0; height: 240px; }
.cv-bulk__cookies .cv-cutout { position: absolute; bottom: 0; }
.cv-bulk__label { position: absolute; top: var(--space-4); left: 0; right: 0; text-align: center; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; }
.cv-bulk__cta { grid-column: 1 / -1; text-align: center; }

/* ---------- ClosingCTA ---------- */
.cv-closer { position: relative; overflow: hidden; text-align: center; padding: var(--space-24) var(--space-8) 280px; }
.cv-closer h2 { font-size: 104px; line-height: .98; max-width: 1000px; margin: 0 auto; }
.cv-closer p { margin-top: var(--space-6); font-size: 18px; }
.cv-closer .cv-btn { margin-top: var(--space-8); }
.cv-closer__row { position: absolute; left: -40px; right: -40px; bottom: -70px; display: flex; justify-content: space-between; align-items: flex-end; }
.cv-closer__row .cv-cutout { width: 280px; transition: transform 500ms cubic-bezier(.2,.8,.2,1); }
.cv-closer:hover .cv-closer__row .cv-cutout { transform: translateY(-40px) rotate(var(--r, 0deg)); }
.cv-closer__row .cv-cutout:nth-child(2) { transition-delay: 60ms; } .cv-closer__row .cv-cutout:nth-child(3) { transition-delay: 120ms; } .cv-closer__row .cv-cutout:nth-child(4) { transition-delay: 180ms; } .cv-closer__row .cv-cutout:nth-child(5) { transition-delay: 240ms; }

/* ---------- Bite: take a bite out of a section's top-right corner ---------- */
.cv-bitten-top { -webkit-mask: radial-gradient(circle 80px at calc(100% - 140px) 0, #0000 98%, #000) , radial-gradient(circle 64px at calc(100% - 40px) 10px, #0000 98%, #000), radial-gradient(circle 56px at calc(100% - 250px) -8px, #0000 98%, #000); -webkit-mask-composite: source-in; mask: radial-gradient(circle 80px at calc(100% - 140px) 0, #0000 98%, #000) , radial-gradient(circle 64px at calc(100% - 40px) 10px, #0000 98%, #000), radial-gradient(circle 56px at calc(100% - 250px) -8px, #0000 98%, #000); mask-composite: intersect; }

/* ---------- CookieCard v2: tile floods with the flavour colour ---------- */
.cv-tile { position: relative; display: flex; flex-direction: column; text-decoration: none; }
.cv-tile__stage { position: relative; aspect-ratio: 1; background: var(--field); display: grid; place-items: center; overflow: hidden; transition: background-color 300ms; }
.cv-tile__stage .cv-cutout { position: absolute; width: 78%; left: 11%; top: 50%; transform: translateY(-50%); transition: opacity 250ms, transform 450ms cubic-bezier(.2,.8,.2,1); }
.cv-tile__stage .is-cut { opacity: 0; transform: translateY(-50%) scale(.9); }
.cv-tile:hover .cv-tile__stage, .cv-tile:focus-within .cv-tile__stage { background: var(--c, var(--vission-green)); }
.cv-tile:hover .is-whole, .cv-tile:focus-within .is-whole { opacity: 0; transform: translateY(-50%) rotate(-14deg) scale(1.12); }
.cv-tile:hover .is-cut, .cv-tile:focus-within .is-cut { opacity: 1; transform: translateY(-50%) scale(1.12); }
.cv-tile__stage .cv-tag { position: absolute; top: var(--space-3); left: var(--space-3); z-index: 2; }
.cv-tile__peek { position: absolute; bottom: var(--space-3); left: 0; right: 0; text-align: center; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--white); opacity: 0; transition: opacity 250ms; z-index: 2; }
.cv-tile:hover .cv-tile__peek { opacity: 1; }
.cv-tile__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); margin-top: var(--space-4); }
.cv-tile__name { font-size: 20px; line-height: 1.2; }
.cv-tile__price { font-size: 18px; letter-spacing: .06em; }
.cv-tile__note { flex: 1; margin-top: var(--space-1); font-size: 14px; color: var(--ink-soft); }
.cv-tile .cv-btn { margin-top: var(--space-3); }

@media (prefers-reduced-motion: reduce) {
  .cv-marquee__track, .cv-marquee__track img, .cv-bob { animation: none; }
  .cv-scene.is-on .cv-scene__cookie, .cv-scene.is-on .cv-scene__text > * { animation: none; }
  .cv-tile__stage .cv-cutout, .cv-claim__cookie, .cv-closer__row .cv-cutout { transition: opacity 150ms; }
  .cv-tile:hover .is-whole, .cv-tile:hover .is-cut { transform: translateY(-50%); }
}
.cv-tile--solo:hover .is-whole, .cv-tile--solo:focus-within .is-whole { opacity: 1; }


/* =====================================================================
   INTERACTION: app frame, loader, page wipe, cookie pile, pop-up, bites
   (behaviour lives in components/bundle.js: CookieVission.mount(root))
   ===================================================================== */
.cv-app { position: relative; overflow: hidden; background: var(--white); }
.cv-app__scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scroll-behavior: auto; }
.cv-app .cv-sticky { position: sticky; top: 0; z-index: 30; background: var(--white); }
.cv-page[hidden] { display: none; }

/* Loader: spinning cookie + 150g counter, then the sheet is bitten away */
.cv-loader { position: absolute; inset: 0; z-index: 90; }
.cv-loader__sheet { position: absolute; inset: 0; background: var(--white); display: grid; place-items: center; text-align: center; }
.cv-loader__spin { width: 300px; margin: 0 auto; will-change: transform; }
.cv-loader__count { margin-top: var(--space-6); font-size: 96px; line-height: 1; font-variant-numeric: tabular-nums; }
.cv-loader__count small { font-size: 40px; }
.cv-loader__note { margin-top: var(--space-3); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.cv-loader__logo { position: absolute; top: var(--space-8); left: 50%; width: 150px; transform: translateX(-50%); }

/* Page wipe: a colour panel sweeps across with a cookie rolling at its leading edge */
.cv-wipe { position: absolute; inset: 0; z-index: 80; display: none; transform: translateX(100%); pointer-events: none; }
.cv-wipe__cookie { position: absolute; left: 0; top: 50%; width: 420px; transform: translate(-50%, -50%); filter: drop-shadow(0 30px 30px rgba(13,10,10,.3)); }
.cv-wipe__label { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-size: 150px; line-height: 1; text-transform: uppercase; }

/* Draggable pile */
.cv-drop-pile, .cv-pile-play { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.cv-drag { position: absolute; left: 0; top: 0; pointer-events: auto; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.cv-drag .cv-cutout { transition: filter 200ms, scale 200ms; pointer-events: none; }
.cv-drag:hover .cv-cutout { scale: 1.04; }
.cv-drag.is-held { cursor: grabbing; }
.cv-drag.is-held .cv-cutout { scale: 1.08; filter: drop-shadow(0 40px 34px rgba(13,10,10,.32)); }
.cv-drag:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
.cv-hint { margin-top: var(--space-6); font-size: 14px; letter-spacing: .06em; color: var(--ink-soft); }
.cv-hint b { font-weight: 400; color: var(--ink); }

/* Pop-up */
.cv-pop { position: absolute; inset: 0; z-index: 70; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: var(--space-8); padding: var(--space-12) var(--space-16) var(--space-12) var(--space-12); overflow: auto; }
.cv-pop[hidden] { display: none; }
.cv-pop__close { position: absolute; top: var(--space-6); right: var(--space-6); width: 56px; height: 56px; border: 0; background: transparent; color: inherit; font-family: var(--font-brand); font-size: 40px; line-height: 1; cursor: pointer; box-shadow: inset 0 0 0 2px currentColor; z-index: 3; }
.cv-pop__stage { position: relative; display: grid; place-items: center; }
.cv-pop__hint { margin-top: var(--space-4); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.cv-bitable { position: relative; width: min(520px, 100%); cursor: pointer; }
.cv-bitable__img { position: relative; z-index: 1; display: block; width: 100%; }
.cv-pop__kicker { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.cv-pop__name { margin-top: var(--space-3); font-size: 52px; line-height: 1.02; }
.cv-pop__desc { margin-top: var(--space-4); font-size: 16px; line-height: 1.6; max-width: 46ch; }
.cv-pop__allergen { margin-top: var(--space-2); font-size: 14px; opacity: .85; }
.cv-pop__allergen:empty { display: none; }
.cv-pop__buy { margin-top: var(--space-6); display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.cv-pop__price { font-size: 24px; letter-spacing: .08em; }
.cv-pop .cv-qty { background: var(--white); color: var(--ink); }
.cv-pop__actions { margin-top: var(--space-3); display: flex; gap: var(--space-3); }
.cv-pop__msg { margin-top: var(--space-4); min-height: 1.6em; font-size: 18px; }

/* What a bite leaves behind */
.cv-bitable__fill { position: absolute; inset: 0; z-index: 0; pointer-events: none; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.cv-crumbface { position: absolute; border-radius: 50%; background-image: radial-gradient(circle, rgba(255,255,255,.16) 0 1px, transparent 2px), radial-gradient(circle, rgba(13,10,10,.22) 0 1.5px, transparent 2.5px), radial-gradient(circle, rgba(255,255,255,.10) 0 2.5px, transparent 3.5px), radial-gradient(circle, rgba(13,10,10,.18) 0 3px, transparent 4.5px), radial-gradient(circle at 50% 50%, rgba(255,255,255,.12), transparent 60%); background-size: 7px 9px, 11px 13px, 19px 17px, 29px 31px, 100% 100%; box-shadow: inset 0 14px 18px rgba(13,10,10,.5); }
.cv-ooze { position: absolute; border-radius: 50%; box-shadow: inset 0 12px 16px rgba(13,10,10,.45), inset 0 -6px 12px rgba(255,255,255,.18); }
.cv-drip { position: absolute; z-index: 2; height: 0; border-radius: 0 0 999px 999px; pointer-events: none; filter: drop-shadow(0 3px 2px rgba(13,10,10,.35)); }
.cv-drip::before { content: ""; position: absolute; left: 50%; top: -6px; width: 180%; height: 14px; border-radius: 50%; background: var(--drop); transform: translateX(-50%); }
.cv-drip::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 150%; aspect-ratio: 1 / 1.15; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; background: radial-gradient(circle at 35% 35%, var(--hi) 0 18%, var(--drop) 50%); transform: translateX(-50%); }
.cv-crumb { position: absolute; z-index: 4; pointer-events: none; }
.cv-fly { position: absolute; z-index: 85; pointer-events: none; }

/* Look inside: the real cut-open photos */
.cv-inside { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.cv-inside button { position: relative; display: block; padding: 0; border: 0; background: var(--field); cursor: pointer; aspect-ratio: 1; overflow: hidden; font-family: var(--font-brand); color: var(--white); }
.cv-inside img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms cubic-bezier(.2,.8,.2,1); }
.cv-inside button:hover img, .cv-inside button:focus-visible img { transform: scale(1.18); }
.cv-inside span { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-4); text-align: left; font-size: 18px; background: linear-gradient(0deg, rgba(13,10,10,.7), rgba(13,10,10,0)); }

/* Scroll-pinned flavour scenes inside the app scroller */
.cv-scenes-track { position: relative; }
.cv-scenes-track .cv-scenes { position: sticky; top: var(--hdr, 92px); }

/* FAQ, contact, empty cart, page heads */
.cv-pagehead { padding: var(--space-16) var(--space-8) 0; }
.cv { --font-text: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif; }
.cv-faq { max-width: 820px; margin: 0 auto; }
.cv-faq details { border-top: 1px solid var(--ink); }
.cv-faq details:last-child { border-bottom: 1px solid var(--ink); }
.cv-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-6) 0; font-size: 22px; line-height: 1.3; }
.cv-faq summary::-webkit-details-marker { display: none; }
.cv-faq summary::after { content: "+"; font-size: 32px; transition: transform 250ms; }
.cv-faq details[open] summary::after { transform: rotate(45deg); }
.cv-faq__a { padding: 0 0 var(--space-6); max-width: 64ch; font-family: var(--font-text); font-weight: 400; font-size: 17px; line-height: 1.6; color: var(--ink); }
.cv-faq__a p { margin: 0 0 var(--space-3); }
.cv-faq__a p:last-child { margin-bottom: 0; }
.cv-faq__a strong { font-weight: 600; }
.cv-faq__a a { text-decoration: underline; text-underline-offset: 3px; }
.cv-faq__rates { width: 100%; border-collapse: collapse; margin: var(--space-2) 0 var(--space-4); }
.cv-faq__rates td { padding: 10px 0; border-bottom: 1px dashed var(--ink-soft); vertical-align: top; }
.cv-faq__rates td:last-child { text-align: right; white-space: nowrap; padding-left: var(--space-4); font-family: var(--font-brand); }
.cv-contact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: center; max-width: 1100px; margin: 0 auto; }
.cv-contact dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: var(--space-4) var(--space-8); font-size: 20px; }
.cv-contact dt { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; padding-top: 6px; }
.cv-contact dd { margin: 0; }
.cv-contact img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.cv-empty { text-align: center; padding: var(--space-12) 0; }
.cv-empty__cookie { width: 220px; margin: 0 auto var(--space-6); animation: cv-spin 9s linear infinite; }
.cv-empty p { font-size: 20px; margin-bottom: var(--space-6); }
.cv-checkout-msg { font-size: 14px; color: var(--ink-soft); min-height: 1.4em; }

@media (prefers-reduced-motion: reduce) {
  .cv-empty__cookie { animation: none; }
  .cv-inside img { transition: none; }
}

/* Pop-up cookie: the whole cookie breaks open into the real cut-open cut-out */
.cv-pop__cookie { position: relative; display: block; width: min(560px, 100%); padding: 0; border: 0; background: none; cursor: pointer; color: inherit; }
.cv-pop__cookie:focus-visible { outline: 3px solid currentColor; outline-offset: 8px; }
.cv-pop__whole { display: block; width: 100%; transition: opacity 320ms, transform 480ms cubic-bezier(.2,.8,.2,1); }
.cv-pop__cut { position: absolute; left: 50%; top: 50%; width: 112%; max-width: none; opacity: 0; transform: translate(-50%, -50%) scale(.78) rotate(-8deg); transition: opacity 320ms, transform 520ms cubic-bezier(.3,1.3,.5,1); pointer-events: none; }
.cv-pop.is-open .cv-pop__whole { opacity: 0; transform: scale(1.18) rotate(12deg); }
.cv-pop.is-open .cv-pop__cut { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }

/* Hero pile: cookies live in a bounded play area on the right */
.cv-pile-hero .cv-drop-pile { left: 52%; right: 24px; top: 24px; bottom: 24px; }

/* Flavour scenes: keep the cookie inside the scene */
.cv-scene__stage { overflow: visible; }
.cv-scene__cookie { width: min(560px, 40vw); }

/* Closing pyramid */
.cv-closer--pyramid { padding-bottom: 600px; }
.cv-pyramid { position: absolute; left: 50%; bottom: 0; width: 0; height: 0; cursor: pointer; }
.cv-pyramid__c { position: absolute; width: 250px; max-width: none; margin-left: -125px; transition: scale 200ms; }
.cv-pyramid__c:hover { scale: 1.06; }
.cv-pyramid__c.is-waiting { opacity: 0; }

.cv-pyramid .cv-pyramid__c { max-width: none; }

/* Loader cookie: whole while it spins, then it breaks open into its real inside */
.cv-loader .cv-bitable { cursor: default; }
.cv-loader__whole { display: block; width: 100%; transition: opacity 300ms, transform 460ms cubic-bezier(.2,.8,.2,1); }
.cv-loader .cv-loader__cut { position: absolute; left: 50%; top: 50%; width: 118%; max-width: none; opacity: 0; transform: translate(-50%, -50%) scale(.78) rotate(-8deg); transition: opacity 300ms, transform 520ms cubic-bezier(.3,1.3,.5,1); }
.cv-loader.is-open .cv-loader__whole { opacity: 0; transform: scale(1.18) rotate(12deg); }
.cv-loader.is-open .cv-loader__cut { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }

/* Cookie wall and Look inside: each cookie on its own flavour colour */
.cv-wall--color a { display: grid; place-items: center; background: var(--c, var(--field)); }
.cv-wall--color img { width: 80%; height: auto; object-fit: contain; transition: transform 350ms cubic-bezier(.2,.8,.2,1); }
.cv-wall--color a:hover img, .cv-wall--color a:focus-visible img { transform: scale(1.08) rotate(-8deg); }
.cv-inside--color button { display: grid; place-items: center; background: var(--c, var(--field)); }
.cv-inside--color img { width: 90%; height: auto; object-fit: contain; }
.cv-inside--color button:hover img, .cv-inside--color button:focus-visible img { transform: scale(1.12) rotate(-4deg); }
.cv-pile-hero .cv-sticker { z-index: 1 !important; }
.cv-pile-hero .cv-drop-pile { z-index: 3; }

/* ---------- Live cart panel on the Shop page ---------- */
.cv-shop { display: grid; grid-template-columns: 340px 1fr; gap: var(--space-12); align-items: start; }
.cv-shop .cv-grid { grid-template-columns: repeat(3, 1fr); }
.cv-mini { position: sticky; top: 120px; display: flex; flex-direction: column; max-height: calc(100vh - 150px); min-height: 420px; background: var(--vission-green); color: var(--on-green); padding: var(--space-6); }
.cv-mini :focus-visible { outline-color: var(--white); }
.cv-mini__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding-bottom: var(--space-4); border-bottom: 1px solid rgba(255,255,255,.35); }
.cv-mini__head h2 { font-size: 26px; line-height: 1.1; }
.cv-mini__count { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.cv-mini__list { flex: 1; overflow-y: auto; margin: 0 calc(var(--space-2) * -1); padding: var(--space-2); }
.cv-mini__row { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-2); border-bottom: 1px solid rgba(255,255,255,.18); }
.cv-mini__img { width: 64px; height: auto; display: block; }
.cv-mini__img.is-photo { aspect-ratio: 1; object-fit: cover; }
.cv-mini__name { font-size: 16px; line-height: 1.2; }
.cv-mini__each { font-size: 12px; opacity: .8; margin-top: 2px; }
.cv-mini__qty { display: inline-flex; align-items: center; margin-top: var(--space-2); background: var(--white); color: var(--ink); height: 32px; }
.cv-mini__qty button { width: 32px; height: 32px; border: 0; background: transparent; color: var(--ink); font-family: var(--font-brand); font-size: 18px; cursor: pointer; }
.cv-mini__qty button:hover { background: var(--field); }
.cv-mini__qty span { min-width: 28px; text-align: center; font-size: 15px; }
.cv-mini__right { text-align: right; }
.cv-mini__line { font-size: 17px; letter-spacing: .06em; }
.cv-mini__rm { margin-top: var(--space-2); padding: 0; border: 0; background: none; color: inherit; font-family: var(--font-brand); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; opacity: .85; }
.cv-mini__rm:hover { opacity: 1; }
.cv-mini__empty { text-align: center; padding: var(--space-8) var(--space-2); }
.cv-mini__empty img { width: 150px; margin: 0 auto var(--space-4); opacity: .9; animation: cv-spin 12s linear infinite; }
.cv-mini__empty p { font-size: 15px; line-height: 1.5; }
.cv-mini__foot { padding-top: var(--space-4); border-top: 1px solid rgba(255,255,255,.35); display: flex; flex-direction: column; gap: var(--space-3); }
.cv-mini__bar { height: 8px; background: rgba(255,255,255,.25); overflow: hidden; }
.cv-mini__bar span { display: block; height: 100%; width: 0; background: var(--vission-pink); transition: width 450ms cubic-bezier(.2,.8,.2,1); }
.cv-mini__note { font-size: 13px; line-height: 1.4; }
.cv-mini__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.cv-mini__total strong { font-weight: 400; font-size: 28px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.cv-mini [data-mini-go] { opacity: .55; pointer-events: none; transition: opacity 200ms; }
.cv-mini [data-mini-go].is-ready { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .cv-mini__empty img { animation: none; } .cv-mini__bar span { transition: none; } }

/* ---------- Tablet ---------- */
/* Big numbers scale with the screen instead of being clipped */
.cv-claim__num { font-size: min(400px, 34vw); }
.cv-claim__cookie { width: min(400px, 34vw); }
.cv-bulk__num { font-size: min(260px, 18vw); }

@media (max-width: 1100px) {
  /* Shop: the cart becomes a bar pinned to the bottom while you browse */
  .cv-shop { display: flex; flex-direction: column; gap: var(--space-8); }
  .cv-shop > div { order: 1; }
  .cv-mini { order: 2; position: sticky; top: auto; bottom: 0; z-index: 20; min-height: 0; max-height: none; flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-6); box-shadow: 0 -10px 30px rgba(13,10,10,.18); }
  .cv-mini__head { border: 0; padding: 0; gap: var(--space-4); }
  .cv-mini__head h2 { font-size: 20px; }
  .cv-mini__list, .cv-mini__bar, .cv-mini__note { display: none; }
  .cv-mini__foot { flex: 1; flex-direction: row; align-items: center; justify-content: flex-end; border: 0; padding: 0; gap: var(--space-6); }
  .cv-mini__total { gap: var(--space-3); }
  .cv-mini__total strong { font-size: 24px; }
  .cv-mini__foot .cv-btn--block { width: auto; }
  /* Pyramid and closing line shrink to fit */
  .cv-pyramid { transform: scale(.72); transform-origin: 50% 100%; }
  .cv-closer--pyramid { padding-bottom: 470px; }
  .cv-closer h2 { font-size: 80px; }
}

@media (max-width: 900px) {
  /* Hero: words on top, the cookie play area underneath */
  .cv-pile-hero { grid-template-columns: 1fr !important; min-height: 0 !important; }
  .cv-pile-hero__text { padding: var(--space-12) var(--space-8) 0 !important; }
  .cv-pile-hero > div:nth-child(2) { height: 460px; }
  .cv-pile-hero .cv-drop-pile { top: auto; left: var(--space-6); right: var(--space-6); bottom: var(--space-6); height: 440px; }
  .cv-pile-hero h1 { font-size: 104px !important; }
  /* Flavour scenes: cookie on top, words underneath */
  .cv-scene { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: var(--space-4); padding: var(--space-8) var(--space-8) var(--space-16); }
  .cv-scene__stage { order: -1; height: auto; }
  .cv-scene__cookie { width: min(360px, 58vw); }
  .cv-scene__name { font-size: 60px; margin-top: var(--space-2); }
  .cv-scene__desc { margin-top: var(--space-3); font-size: 16px; }
  .cv-scene__buy { margin-top: var(--space-4); }
  .cv-scene__num { display: none; }
  .cv-scenes__nav { top: var(--space-8); transform: none; }
  .cv-scenes__arrows { bottom: var(--space-6); }
  /* Pop-up: cookie on top, details underneath */
  .cv-pop { grid-template-columns: 1fr; align-content: start; gap: var(--space-4); padding: var(--space-16) var(--space-8) var(--space-8); }
  .cv-pop__cookie { width: min(380px, 70vw); margin: 0 auto; }
  .cv-pop__hint { text-align: center; }
  .cv-pop__name { font-size: 40px; }
  /* Shop grid two across; cart page and contact stack */
  .cv-shop .cv-grid { grid-template-columns: repeat(2, 1fr); }
  .cv-cartgrid, .cv-contact { grid-template-columns: 1fr !important; gap: var(--space-12) !important; }
  .cv-feature { grid-template-columns: 1fr; }
  .cv-inside { grid-template-columns: repeat(2, 1fr); }
  .cv-bulk { grid-template-columns: 1fr; }
  .cv-pyramid { transform: scale(.6); }
  .cv-closer--pyramid { padding-bottom: 400px; }
  .cv-closer h2 { font-size: 64px; }
  .cv-wipe__label { font-size: 96px; }
  .cv-wipe__cookie { width: 300px; }
}
/* ---------- Phone ---------- */
@media (max-width: 600px) {
  /* Frame and header */
  .cv-app .cv-announce { font-size: 12px; padding: 8px 12px; }
  .cv-app .cv-header { padding: 8px 16px; gap: 12px; }
  .cv-app .cv-logo { width: 76px; }
  .cv-header > div { gap: 16px !important; }
  .cv-nav { gap: 14px; }
  .cv-nav a { font-size: 12px; letter-spacing: .06em; }
  .cv-icons { gap: 12px; }
  .cv-app .cv-wrap { padding-left: 20px !important; padding-right: 20px !important; }
  .cv-app section.cv-wrap { padding-top: 40px !important; padding-bottom: 64px !important; }
  .cv-title { margin-bottom: var(--space-8); }
  .cv-title h1 { font-size: 30px; }
  .cv-title h2 { font-size: 22px; }

  /* Loader and page wipe */
  .cv-loader__spin { width: 220px; }
  .cv-loader__count { font-size: 72px; }
  .cv-loader__count small { font-size: 30px; }
  .cv-loader__logo { width: 110px; }
  .cv-wipe__label { font-size: 56px; }
  .cv-wipe__cookie { width: 220px; }

  /* Hero: words, then a smaller play area */
  .cv-pile-hero__text { padding: var(--space-8) 20px 0 !important; }
  .cv-pile-hero h1 { font-size: 64px !important; }
  .cv-pile-hero p { font-size: 16px; }
  .cv-pile-hero__cta { margin-top: var(--space-6); }
  .cv-hint { font-size: 13px; }
  .cv-pile-hero > div:nth-child(2) { height: 380px; }
  .cv-pile-hero .cv-drop-pile { left: 12px; right: 12px; bottom: 12px; height: 360px; }
  .cv-pile-hero .cv-sticker { width: 92px; height: 92px; font-size: 11px; right: 16px !important; bottom: 16px !important; }
  .cv-pile-hero .cv-sticker b { font-size: 30px; }

  /* Marquee */
  .cv-marquee { padding: 10px 0; }
  .cv-marquee__track { gap: var(--space-4); padding-right: var(--space-4); }
  .cv-marquee__track span { font-size: 22px; }
  .cv-marquee__track img { width: 34px; }

  /* Flavour scenes */
  .cv-scenes { height: 700px !important; min-height: 0 !important; }
  .cv-scene { padding: var(--space-6) 20px var(--space-16); gap: var(--space-2); }
  .cv-scene__cookie { width: min(260px, 70vw); }
  .cv-scene__kicker { font-size: 12px; }
  .cv-scene__name { font-size: 40px; }
  .cv-scene__desc { font-size: 14px; line-height: 1.5; }
  .cv-scene__buy { gap: var(--space-2); }
  .cv-scene__price { font-size: 20px; }
  .cv-scene .cv-btn { min-height: 42px; padding: 10px 14px; font-size: 12px; }
  .cv-scenes__nav { display: none; }
  .cv-scenes__arrows { right: 16px; bottom: 16px; }
  .cv-scenes__arrows button { width: 42px; height: 42px; font-size: 18px; }

  /* Big numbers, look inside, bulk */
  .cv-claim { min-height: 380px; padding-bottom: 80px; }
  .cv-claim__line { font-size: 16px; bottom: var(--space-6); padding: 0 20px; }
  .cv-inside span { font-size: 14px; padding: var(--space-3); }
  .cv-bulk { padding: var(--space-12) 20px; gap: var(--space-4); }
  .cv-bulk__head h2 { font-size: 34px; }
  .cv-bulk__head p { font-size: 15px; }
  .cv-bulk__tier { height: 240px; }
  .cv-bulk__cookies { transform: scale(.62); transform-origin: 50% 100%; }

  /* Closing section */
  .cv-closer { padding: var(--space-16) 20px 0; }
  .cv-closer h2 { font-size: 42px; }
  .cv-closer p { font-size: 15px; }
  .cv-closer--pyramid { padding-bottom: 270px; }
  .cv-pyramid { transform: scale(.38); }

  /* Footer */
  .cv-footer { padding: var(--space-8) 20px; }
  .cv-footer__in { flex-direction: column; gap: var(--space-4); }
  .cv-footer nav { gap: var(--space-4); }

  /* Pop-up */
  .cv-pop { padding: 64px 20px 32px; gap: var(--space-3); }
  .cv-pop__close { top: 12px; right: 12px; width: 44px; height: 44px; font-size: 30px; }
  .cv-pop__cookie { width: min(300px, 80vw); }
  .cv-pop__name { font-size: 30px; }
  .cv-pop__desc { font-size: 15px; }
  .cv-pop__buy { gap: var(--space-3); }
  .cv-pop__msg { font-size: 16px; }

  /* Shop: two small cards across, compact cart bar */
  .cv-shop .cv-grid, .cv-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6) var(--space-3); }
  .cv-tile__row { flex-direction: column; gap: 2px; }
  .cv-tile__name { font-size: 15px; }
  .cv-tile__price { font-size: 15px; }
  .cv-tile__note { display: none; }
  .cv-tile .cv-btn { margin-top: var(--space-2); width: 100%; min-height: 38px; padding: 8px; font-size: 11px; }
  .cv-mini { padding: 10px 14px; gap: 10px; }
  .cv-mini__head h2 { display: none; }
  .cv-mini__count { font-size: 12px; }
  .cv-mini__total span { display: none; }
  .cv-mini__total strong { font-size: 20px; }
  .cv-mini__foot { gap: 10px; }
  .cv-mini__foot .cv-btn { min-height: 40px; padding: 8px 12px; font-size: 11px; }

  /* Cart page */
  .cv-line { grid-template-columns: 72px 1fr auto; gap: var(--space-2) var(--space-3); padding: var(--space-4) 0; }
  .cv-line__photo { width: 72px; grid-row: span 2; }
  .cv-line__name { font-size: 15px; }
  .cv-line .cv-qty { grid-column: 2; grid-row: 2; height: 40px; }
  .cv-line .cv-qty button { width: 36px; }
  .cv-line .cv-qty input { width: 36px; }
  .cv-line__total { grid-column: 3; grid-row: 1; min-width: 0; font-size: 15px; }
  .cv-fields { grid-template-columns: 1fr !important; }
  .cv-toggle { display: grid; width: 100%; }
  .cv-pickup__title { font-size: 18px; }
  .cv-empty__cookie { width: 160px; }

  /* FAQ and contact */
  .cv-faq summary { font-size: 17px; padding: var(--space-4) 0; }
  .cv-faq__a { font-size: 15px; }
  .cv-contact dl { grid-template-columns: 1fr; gap: 4px; font-size: 17px; }
  .cv-contact dt { padding-top: var(--space-3); }
}

/* Bulk deal: let the cookies' shadows breathe (no clipped rectangles) */
.cv-bulk__tier { overflow: visible; }
.cv-bulk__cookies { bottom: 28px; }
.cv-bulk__cookies .cv-cutout { filter: drop-shadow(0 12px 10px rgba(0, 0, 0, .28)); }

/* Quiet play hint: a helper, not a headline */
.cv-hint, .cv-pile-hero .cv-hint { margin-top: var(--space-4); max-width: 360px; font-size: 12px; line-height: 1.5; letter-spacing: .04em; color: var(--ink-soft); }
.cv-hint b { font-weight: 400; color: var(--ink-soft); }
@media (max-width: 600px) { .cv-pile-hero .cv-hint { font-size: 11px; } }

/* ---- Full-screen site ---- */
html, body { margin: 0; height: 100%; }
.cv-app { height: 100vh; }
.cv-app .cv-header { padding: 10px 32px; }
.cv-app .cv-logo { width: 118px; }
.cv-app .cv-announce { padding: 10px 16px; font-size: 15px; }
.cv-pile-hero { min-height: calc(100vh - 150px) !important; }
.cv-proto-note { opacity: .8; }
.cv-scenes { height: calc(100vh - 110px); min-height: 620px; max-height: 860px; }
