/* MegaBite (69731) home sections — auto-loaded for core_views/megabite/index only; tokens/fonts in 69731.css. */
/* Reset at single-class specificity (beats Bootstrap's element margins) so the
   component rules below — also one class, later in the file — win cleanly. */
.mb-page :where(h1, h2, h3, p, ul) { margin: 0; }

/* ── Hero: full-bleed ken-burns crossfade ─────────────────────────────── */
.mb-hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: var(--mb-hero-bg); color: var(--mb-white); }
.mb-hero__slides { position: absolute; inset: 0; }
/* Slides are <img> from the view's $cdnImages (no URLs here); 2–4 get src after load via 69731.js.
   All rest at scale(1.02), the keyframes' start, so slide 1 doesn't jump when the loop begins. */
.mb-hero__slides img {
    position: absolute; top: -4%; left: -4%; width: 108%; height: 108%; max-width: none;
    object-fit: cover; opacity: 0; transform: scale(1.02);
}
.mb-hero__slides .mb-hero__s1 { opacity: 1; }
.mb-hero.is-loaded .mb-hero__s1 { animation: mb-kb-first 20s infinite; }
.mb-hero.is-loaded .mb-hero__s2 { animation: mb-kb 20s 5s infinite; }
.mb-hero.is-loaded .mb-hero__s3 { animation: mb-kb 20s 10s infinite; }
.mb-hero.is-loaded .mb-hero__s4 { animation: mb-kb 20s 15s infinite; }
@keyframes mb-kb { 0% { opacity: 0; transform: scale(1.02); } 5% { opacity: 1; } 25% { opacity: 1; } 32% { opacity: 0; transform: scale(1.14); } 100% { opacity: 0; } }
/* Slide 1 is already showing when the loop starts, so its cycle begins visible. */
@keyframes mb-kb-first { 0% { opacity: 1; transform: scale(1.02); } 25% { opacity: 1; } 32% { opacity: 0; transform: scale(1.14); } 95% { opacity: 0; transform: scale(1.02); } 100% { opacity: 1; transform: scale(1.02); } }
.mb-hero::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, .25), rgba(0, 0, 0, .55) 70%),
                linear-gradient(180deg, rgba(0, 0, 0, .25), transparent 30%, transparent 60%, rgba(0, 0, 0, .7));
}
.mb-hero__in { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 90px 16px 120px; }
.mb-hero__h1 { font-family: var(--mb-display); font-weight: 400; line-height: .9; font-size: clamp(76px, 12.5vw, 168px); letter-spacing: .5px; text-transform: uppercase; text-shadow: 0 6px 40px rgba(0, 0, 0, .35); }
.mb-hero__h1 span { display: block; }
.mb-hero__y { color: var(--mb-y); transform: skewX(-8deg); }
.mb-hero__sub { margin-top: 26px; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; font-weight: 500; }
.mb-hero__sub i { font-weight: 800; }
.mb-badges { display: flex; gap: 44px; margin-top: 38px; }
.mb-badges li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 15px; line-height: 1.3; max-width: 110px; }
.mb-badges svg { width: 30px; height: 30px; color: var(--mb-y); }
@media (max-width: 600px) { .mb-badges { gap: 22px; } .mb-badges li { font-size: 13px; } }

/* ── Story: word-by-word scroll reveal ────────────────────────────────── */
.mb-story { padding: 150px 0 70px; text-align: center; }
.mb-story__bite { width: 46px; height: 46px; margin: 0 auto 70px; color: var(--mb-y); animation: mb-spin 8s linear infinite; }
@keyframes mb-spin { to { transform: rotate(360deg); } }
.mb-story__big { max-width: 860px; margin: 0 auto; font-size: clamp(22px, 2.6vw, 31px); line-height: 1.42; font-weight: 500; color: var(--mb-ink-2); }
.mb-story__big b { font-weight: 700; }
/* Unrevealed words: --mb-g (5.3:1). The paragraph starts in it before JS wraps words (no dark flash). */
.mb-story__big .mb-w { color: var(--mb-g); transition: color .35s; }
.mb-story__big .mb-w.is-on { color: var(--mb-ink-2); }
.mb-story__big b .mb-w.is-on { color: var(--mb-k); }
.mb-quote { margin: 70px auto 0; max-width: 640px; font-family: var(--mb-serif); font-style: italic; font-size: clamp(34px, 4vw, 48px); line-height: 1.1; }
.mb-quote mark { background: linear-gradient(transparent 58%, var(--mb-y) 58%, var(--mb-y) 92%, transparent 92%); color: inherit; padding: 0 4px; }

/* ── Feature card ─────────────────────────────────────────────────────── */
.mb-feature { position: relative; margin: 90px auto 0; border-radius: 32px; overflow: hidden; background: var(--mb-k); color: var(--mb-white); min-height: 620px; display: grid; grid-template-columns: 1.05fr 1fr; text-align: left; }
.mb-feature::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--mb-k) 38%, transparent 75%); }
.mb-feature__copy { position: relative; z-index: 2; padding: 64px 0 64px 64px; display: flex; flex-direction: column; justify-content: space-between; }
.mb-feature__h { font-family: var(--mb-display); font-weight: 400; font-size: clamp(54px, 6.6vw, 92px); line-height: 1; text-transform: uppercase; }
.mb-feature__h em { font-style: normal; color: var(--mb-y); }
.mb-feature__who { margin-top: 34px; font-size: 22px; font-weight: 700; }
.mb-feature__who span { display: block; font-weight: 400; font-size: 18px; opacity: .85; }
.mb-feature__foot { font-size: 14px; letter-spacing: 3px; opacity: .6; font-weight: 600; }
.mb-feature__plate { position: relative; }
.mb-feature__plate img { position: absolute; right: -10%; top: 50%; width: 115%; max-width: none; border-radius: 50%; transform: translateY(-50%) rotate(-8deg); animation: mb-rot 60s linear infinite; }
@keyframes mb-rot { to { transform: translateY(-50%) rotate(352deg); } }
.mb-feature__price { position: absolute; right: 44px; top: 44px; z-index: 3; width: 130px; height: 130px; border-radius: 50%; background: var(--mb-y); color: var(--mb-k); display: grid; place-items: center; text-align: center; font-family: var(--mb-display); line-height: .95; font-size: 20px; transform: rotate(10deg); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.mb-feature__price b { display: block; font-size: 44px; font-weight: 400; }
@media (max-width: 820px) {
    .mb-feature { grid-template-columns: 1fr; min-height: auto; }
    .mb-feature::before { background: linear-gradient(180deg, var(--mb-k) 45%, transparent 80%); }
    .mb-feature__copy { padding: 40px 28px 0; }
    .mb-feature__foot { margin-top: 28px; }
    .mb-feature__plate { height: 340px; }
    .mb-feature__plate img { width: 110%; right: -30%; }
    .mb-feature__price { right: 20px; top: auto; bottom: 24px; width: 104px; height: 104px; font-size: 16px; }
    .mb-feature__price b { font-size: 34px; }
}

/* ── Menu marquee ─────────────────────────────────────────────────────── */
.mb-menu { padding-top: 60px; }
.mb-sec-h { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.mb-eyebrow { font-size: 12.5px; letter-spacing: 3px; font-weight: 700; color: var(--mb-g); }
.mb-sec-h__title { font-family: var(--mb-display); font-weight: 400; font-size: clamp(34px, 4vw, 48px); text-transform: uppercase; line-height: 1.05; margin-top: 6px; }
.mb-marquee { margin-top: 90px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mb-marquee__track { display: flex; gap: 18px; width: max-content; animation: mb-mq 50s linear infinite; }
.mb-marquee:hover .mb-marquee__track { animation-play-state: paused; }
@keyframes mb-mq { to { transform: translateX(-50%); } }
.mb-dish { width: 220px; flex: none; }
.mb-dish__ph { aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: var(--mb-y2); }
.mb-dish__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mb-dish:hover img { transform: scale(1.06); }
.mb-dish__name { margin-top: 12px; font-family: var(--mb-body); font-size: 15.5px; font-weight: 600; line-height: 1.25; }
.mb-dish__price { margin-top: 4px; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.mb-dish__price s { color: var(--mb-g); font-weight: 500; margin-left: 6px; }

/* ── Pillars 2×2 ──────────────────────────────────────────────────────── */
.mb-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 34px; padding: 110px 0 40px; }
.mb-pil__ph { position: relative; aspect-ratio: 1.13; border-radius: 24px; overflow: hidden; background: var(--mb-y); }
.mb-pil__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--mb-ease); }
.mb-pil:hover .mb-pil__ph img { transform: scale(1.05); }
.mb-pil__ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28%; background: linear-gradient(transparent, rgba(255, 255, 255, .85)); }
.mb-pil__stk { position: absolute; z-index: 2; left: 22px; top: 22px; background: var(--mb-k); color: var(--mb-y); font-family: var(--mb-display); font-size: 22px; padding: 8px 16px; border-radius: 12px; transform: rotate(-4deg); }
.mb-pil__title { margin-top: 26px; font-family: var(--mb-body); font-size: 24px; font-weight: 700; color: var(--mb-ink-3); }
.mb-pil__copy { margin-top: 12px; font-size: 21px; line-height: 1.5; color: var(--mb-g); max-width: 540px; }
@media (max-width: 760px) { .mb-pillars { grid-template-columns: 1fr; gap: 44px; } .mb-pil__copy { font-size: 18px; } }

/* ── "Still hungry?" ──────────────────────────────────────────────────── */
.mb-folks { text-align: center; padding: 120px 16px 80px; }
.mb-folks__crumbs { position: relative; display: inline-block; }
.mb-folks__crumbs i { position: absolute; width: 12px; height: 12px; border-radius: 4px; background: var(--mb-y); right: -26px; top: -18px; transform: rotate(20deg); }
.mb-folks__crumbs i:nth-child(2) { width: 8px; height: 8px; right: -50px; top: 14px; transform: rotate(-15deg); }
.mb-folks__crumbs i:nth-child(3) { width: 6px; height: 6px; right: 6px; top: -40px; }
.mb-folks__bitten {
    display: inline-block; font-family: var(--mb-display); font-size: clamp(72px, 13vw, 190px); line-height: .9; text-transform: uppercase;
    color: var(--mb-k); background: var(--mb-y); padding: .08em .14em .04em; border-radius: .16em; transform: rotate(-2deg);
    --b: .34em;
    -webkit-mask: radial-gradient(circle var(--b) at calc(100% - .1em) .02em, #0000 97%, #000), radial-gradient(calc(var(--b) * .8) at calc(100% - .62em) -.1em, #0000 97%, #000), radial-gradient(calc(var(--b) * .8) at calc(100% + .1em) .5em, #0000 97%, #000);
    -webkit-mask-composite: source-in; mask-composite: intersect;
}
.mb-folks p { margin-top: 30px; font-size: clamp(18px, 2vw, 22px); color: var(--mb-g); }
.mb-folks p b { color: var(--mb-k); }

/* Scroll reveal: hidden from first paint; a 3s failsafe animation shows it anyway
   unless 69731.js runs and adds html.mb-js (then the observer reveals on scroll). */
@media (scripting: enabled) {
    .mb-reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s var(--mb-ease); animation: mb-reveal-failsafe .9s ease 3s forwards; }
    .mb-js .mb-reveal { animation: none; }
    .mb-reveal.is-in { opacity: 1; transform: none; }
    .mb-story__big { color: var(--mb-g); }
}
@keyframes mb-reveal-failsafe { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .mb-hero__slides img, .mb-story__bite, .mb-feature__plate img, .mb-marquee__track { animation: none; }
    .mb-hero__slides .mb-hero__s1 { opacity: 1; }
    .mb-reveal, .mb-reveal.is-in { opacity: 1; transform: none; transition: none; animation: none; }
    .mb-story__big, .mb-story__big .mb-w { color: var(--mb-ink-2); transition: none; }
}
