/* =========================================================
   La Tavola di Zoufa — black, gold & red, like the menu board
   ========================================================= */

:root {
  --bg: #0b0a09;
  --bg-2: #13100e;
  --panel: #181412;
  --line: rgba(230, 190, 90, .32);
  --gold: #e6be5a;
  --gold-2: #b8903a;
  --cream: #f6f0e4;
  --muted: #b5a998;
  --red: #b3171f;
  --red-2: #d4262f;
  --it-green: #1e9a4d;
  --it-white: #f4f1ea;
  --it-red: #d0202b;

  --f-title: "Playfair Display", Georgia, serif;
  --f-banner: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-body: "EB Garamond", Garamond, Georgia, serif;

  --nav-h: 64px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html[lang="ar"] {
  --f-banner: "Amiri", serif;
  --f-body: "Amiri", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 19px;
  line-height: 1.55;
  color: var(--cream);
  background: var(--bg);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.is-intro { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- brand pieces (title, flourish, tricolor, banner) ---------- */
.brand { display: flex; flex-direction: column; align-items: center; line-height: .95; text-align: center; direction: ltr; font-family: var(--f-title); font-weight: 700; color: #fff; }
.brand__a { font-size: .62em; letter-spacing: .01em; }
.brand__b { font-size: 1em; letter-spacing: .02em; }
.brand--hero { font-size: clamp(4.2rem, 17vw, 10.5rem); text-shadow: 0 6px 40px rgba(0, 0, 0, .6); }
.brand--menu { font-size: clamp(3rem, 10vw, 5.6rem); margin-top: .4rem; }
.brand--footer { flex-direction: row; justify-content: center; gap: .3em; align-items: baseline; font-size: clamp(1.6rem, 5vw, 2.6rem); }
.brand--footer .brand__a { font-size: 1em; }
.brand--footer .brand__b { color: var(--gold); }

.flourish { width: min(260px, 62vw); height: auto; aspect-ratio: 240 / 28; color: var(--gold); margin: .9rem auto .5rem; }
.brand-sub { font-family: var(--f-title); font-style: italic; font-weight: 600; color: var(--gold); font-size: clamp(1.25rem, 3vw, 1.7rem); text-align: center; }
html[lang="ar"] .brand-sub { font-family: "Amiri", serif; font-style: normal; font-weight: 700; }
.tricolor { width: 130px; height: 7px; margin: .8rem auto 0; background: linear-gradient(90deg, var(--it-green) 0 33.33%, var(--it-white) 33.33% 66.66%, var(--it-red) 66.66%); }
.tricolor--full { width: auto; height: 6px; margin: 0 calc(var(--gutter) * -1) 3rem; }

.banner {
  position: relative; display: inline-block;
  padding: .32em 1.5em .42em;
  font-family: var(--f-banner); font-weight: 700; font-size: clamp(1.45rem, 3vw, 1.95rem); line-height: 1.05;
  color: #fff; letter-spacing: .06em; text-transform: uppercase; text-align: center;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 64' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23720b11'/%3E%3Cstop offset='.5' stop-color='%23be1d25'/%3E%3Cstop offset='1' stop-color='%23720b11'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M10 16C60 7 120 9 170 8S260 6 294 12L284 20 298 27 286 33 297 41 288 47C240 56 180 55 140 56S50 58 8 50L18 43 3 36 15 30 2 23Z'/%3E%3Cpath d='M30 21C100 17 200 16 272 19M26 31C110 29 200 29 280 31M40 42C110 46 190 46 262 42' stroke='%23ff5a62' stroke-width='1.6' opacity='.28' fill='none'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
html[lang="ar"] .banner { letter-spacing: 0; font-size: clamp(1.6rem, 3.4vw, 2.1rem); padding-top: .2em; }
.banner::after {
  content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px;
  background: var(--gold); transform: translateX(-50%) rotate(45deg);
}

.eyebrow {
  font-family: var(--f-banner); font-weight: 700; font-size: .8rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .8rem;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 1.05rem; }
.title { font-family: var(--f-title); font-weight: 700; font-size: clamp(2.3rem, 6vw, 4.2rem); line-height: 1.05; color: #fff; }
html[lang="ar"] .title { font-family: "Amiri", serif; line-height: 1.35; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34ch; margin-top: 1.1rem; }
.section-head { text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.7em; border-radius: 2px;
  font-family: var(--f-banner); font-weight: 700; font-size: .88rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
html[lang="ar"] .btn { letter-spacing: 0; font-size: 1.1rem; }
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(180deg, #f3d377, #c99a3d); color: #1a1208; box-shadow: 0 6px 14px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255,255,255,.5); }
.btn--gold:hover { background: linear-gradient(180deg, #f7dc8a, #d2a64a); box-shadow: 0 10px 20px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255,255,255,.5); }
.btn--ghost { border: 1px solid var(--gold); color: var(--gold); background: rgba(11, 10, 9, .4); }
.btn--ghost:hover { background: rgba(230, 190, 90, .1); }
.btn--green { background: #13753a; color: #fff; }
.btn--block { display: flex; width: 100%; }

.link { color: var(--gold); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.link:hover { background-size: 100% 1px; }

.wa-icon {
  width: 1.3em; height: 1.3em; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 2a8 8 0 1 1-4.1 14.9l-.3-.2-3 .8.8-2.9-.2-.3A8 8 0 0 1 12 4zm-3.2 3.6c-.2 0-.5 0-.7.3-.3.3-1 1-1 2.4s1 2.8 1.2 3c.1.2 2 3.1 4.9 4.3 2.4 1 2.9.8 3.4.7.5 0 1.7-.7 1.9-1.4.2-.7.2-1.3.2-1.4-.1-.1-.3-.2-.6-.3l-1.9-.9c-.3-.1-.5-.1-.7.1l-.9 1.1c-.2.2-.3.2-.6.1-.3-.1-1.2-.4-2.2-1.4-.8-.7-1.4-1.6-1.5-1.9-.2-.3 0-.4.1-.6l.4-.5.3-.5v-.5l-.9-2.1c-.2-.5-.4-.5-.6-.5h-.5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 2a8 8 0 1 1-4.1 14.9l-.3-.2-3 .8.8-2.9-.2-.3A8 8 0 0 1 12 4zm-3.2 3.6c-.2 0-.5 0-.7.3-.3.3-1 1-1 2.4s1 2.8 1.2 3c.1.2 2 3.1 4.9 4.3 2.4 1 2.9.8 3.4.7.5 0 1.7-.7 1.9-1.4.2-.7.2-1.3.2-1.4-.1-.1-.3-.2-.6-.3l-1.9-.9c-.3-.1-.5-.1-.7.1l-.9 1.1c-.2.2-.3.2-.6.1-.3-.1-1.2-.4-2.2-1.4-.8-.7-1.4-1.6-1.5-1.9-.2-.3 0-.4.1-.6l.4-.5.3-.5v-.5l-.9-2.1c-.2-.5-.4-.5-.6-.5h-.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- INTRO ---------- */
.intro { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; transition: opacity .9s ease, visibility .9s; }
.intro__glow { position: absolute; inset: 40% -20% -30%; background: radial-gradient(ellipse at 50% 100%, rgba(255, 110, 30, .45), rgba(190, 40, 10, .15) 40%, transparent 65%); animation: fire 3s ease-in-out infinite alternate; }
.intro__inner { position: relative; text-align: center; padding: 0 var(--gutter); }
.intro .brand { font-size: clamp(3.6rem, 14vw, 8rem); }
.intro .brand__a, .intro .brand__b, .intro .brand-sub, .intro .tricolor { opacity: 0; transform: translateY(16px); animation: rise .9s var(--ease) forwards; }
.intro .brand__a { animation-delay: .15s; }
.intro .brand__b { animation-delay: .35s; }
.intro .flourish { stroke-dasharray: 400; }
.intro .flourish use { animation: draw 1.4s .6s ease forwards; stroke-dasharray: 400; stroke-dashoffset: 400; }
.intro .brand-sub { animation-delay: 1s; }
.intro .tricolor { animation: grow .8s 1.25s var(--ease) forwards; transform: scaleX(0); }
.intro.is-open { opacity: 0; visibility: hidden; }
.intro.is-gone { display: none; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes grow { to { opacity: 1; transform: scaleX(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fire { 0% { opacity: .75; transform: scale(1); } 40% { opacity: 1; } 70% { opacity: .85; transform: scale(1.03); } 100% { opacity: 1; transform: scale(1.01); } }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 var(--gutter);
  background: rgba(11, 10, 9, .82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__logo { display: flex; align-items: baseline; gap: .3em; text-decoration: none; white-space: nowrap; font-family: var(--f-title); font-weight: 700; font-size: 1.3rem; direction: ltr; }
.nav__logo b { color: var(--gold); font-weight: 700; }
.nav__links { display: flex; gap: 2rem; font-family: var(--f-banner); font-weight: 600; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; }
html[lang="ar"] .nav__links { letter-spacing: 0; font-size: 1.1rem; }
.nav__links a { text-decoration: none; position: relative; color: var(--cream); }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav__links a:hover { color: var(--gold); }
.nav__links a:hover::after { transform: scaleX(1); }
.lang { display: flex; border: 1px solid var(--gold); border-radius: 999px; overflow: hidden; flex: none; }
.lang button { border: 0; background: transparent; color: var(--gold); padding: .3em .85em; font-family: var(--f-banner); font-weight: 700; font-size: .78rem; }
.lang button[lang="ar"] { font-family: "Amiri", serif; font-size: 1rem; line-height: 1.1; }
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--bg); }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  padding-top: calc(var(--nav-h) + clamp(2rem, 6vh, 4.5rem));
  display: flex; flex-direction: column; align-items: center;
  background: radial-gradient(ellipse at 50% 20%, #1c1714, var(--bg) 60%);
}
.hero__fire {
  position: absolute; left: -10%; right: -10%; bottom: -10%; height: 70%; z-index: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(255, 140, 40, .55), transparent 70%),
    radial-gradient(ellipse 80% 60% at 30% 100%, rgba(220, 60, 15, .35), transparent 70%),
    radial-gradient(ellipse 80% 60% at 70% 100%, rgba(220, 60, 15, .35), transparent 70%);
  animation: fire 2.6s ease-in-out infinite alternate;
}
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero__content { position: relative; z-index: 3; text-align: center; padding: 0 var(--gutter); }
.brand--hero .ch { display: inline-block; opacity: 0; transform: translateY(.35em); filter: blur(6px); transition: opacity .7s, transform .9s var(--ease), filter .7s; }
.brand--hero .ch.sp { width: .25em; }
.is-ready .brand--hero .ch { opacity: 1; transform: none; filter: none; }
.flourish--draw use { stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.6s .7s ease; }
.is-ready .flourish--draw use { stroke-dashoffset: 0; }
.hero__content > .brand-sub, .hero__content > .tricolor, .hero__tagline, .hero__cta { opacity: 0; transform: translateY(12px); transition: opacity .8s, transform .8s var(--ease); }
.is-ready .hero__content > .brand-sub { opacity: 1; transform: none; transition-delay: .9s; }
.is-ready .hero__content > .tricolor { opacity: 1; transform: none; transition-delay: 1.05s; }
.is-ready .hero__tagline { opacity: 1; transform: none; transition-delay: 1.2s; }
.is-ready .hero__cta { opacity: 1; transform: none; transition-delay: 1.35s; }
.hero__tagline { font-size: clamp(1.15rem, 2.4vw, 1.4rem); color: var(--muted); max-width: 34ch; margin: 1.2rem auto 0; font-style: italic; }
.hero__cta { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-top: 1.7rem; }

.hero__stage { position: relative; z-index: 2; width: 100%; flex: 1; min-height: 34vh; margin-top: 2rem; perspective: 1000px; perspective-origin: 50% -20%; }
.hero__board {
  position: absolute; left: 50%; top: 0;
  width: min(92vw, 640px); aspect-ratio: 1;
  transform: translateX(-50%) rotateX(56deg); transform-origin: 50% 0;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 40%, #34302c, #1a1715 70%, #0f0d0c);
  box-shadow: 0 40px 60px rgba(0, 0, 0, .7), 0 0 0 2px rgba(230, 190, 90, .25);
}
.hero__pizza { position: absolute; inset: 5%; animation: spin 60s linear infinite; }
.hero__pizza svg { width: 100%; height: 100%; overflow: visible; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__steam { position: absolute; left: 50%; top: -14%; width: 200px; height: 200px; transform: translateX(-50%); z-index: 5; pointer-events: none; }
.hero__steam i { position: absolute; bottom: 0; width: 22px; height: 120px; border-radius: 50%; background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 70%); filter: blur(6px); opacity: 0; animation: steam 4.5s ease-in-out infinite; }
.hero__steam i:nth-child(1) { left: 40px; }
.hero__steam i:nth-child(2) { left: 90px; animation-delay: 1.4s; }
.hero__steam i:nth-child(3) { left: 140px; animation-delay: 2.8s; }
@keyframes steam { 0% { transform: translateY(40px) scaleY(.6); opacity: 0; } 30% { opacity: .7; } 100% { transform: translateY(-110px) scaleY(1.2) skewX(-14deg); opacity: 0; } }

/* ---------- RIBBON ---------- */
.ribbon { position: relative; z-index: 5; overflow: hidden; background: var(--bg); border-block: 1px solid var(--line); }
.ribbon__track { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem 1.4rem; padding: 1.1rem var(--gutter); font-family: var(--f-title); font-style: italic; font-size: clamp(1.1rem, 2.2vw, 1.6rem); color: var(--cream); }
.ribbon__track b { color: var(--gold); font-size: .7em; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }


/* ---------- STORY (video blending into black) ---------- */
/* the section is tall; the inner "pin" stays on screen while you scroll and the video follows the scroll */
.story { position: relative; height: 420vh; background: #000; }
.story__pin {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 3rem;
  /* black on the far side, getting lighter towards the video */
  background: linear-gradient(90deg, #000 0%, #050404 30%, #120e0c 52%, #1c1511 68%, #000 100%);
}
[dir="rtl"] .story__pin { background: linear-gradient(270deg, #000 0%, #050404 30%, #120e0c 52%, #1c1511 68%, #000 100%); }
.story__hint { margin-top: 1.6rem; font-style: italic; color: var(--gold); font-size: 1.1rem; transition: opacity .4s; }

.film {
  position: absolute; top: 0; bottom: 0; right: 0; width: max(66%, 620px);
  z-index: 0; pointer-events: none;
  /* curved fade on the video's inner edge, plus soft top/bottom edges */
  -webkit-mask-image: radial-gradient(ellipse 118% 100% at 100% 50%, #000 18%, rgba(0,0,0,.82) 34%, rgba(0,0,0,.55) 50%, rgba(0,0,0,.28) 66%, rgba(0,0,0,.1) 80%, transparent 92%), linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: radial-gradient(ellipse 118% 100% at 100% 50%, #000 18%, rgba(0,0,0,.82) 34%, rgba(0,0,0,.55) 50%, rgba(0,0,0,.28) 66%, rgba(0,0,0,.1) 80%, transparent 92%), linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-composite: intersect;
}
[dir="rtl"] .film {
  right: auto; left: 0;
  -webkit-mask-image: radial-gradient(ellipse 118% 100% at 0% 50%, #000 18%, rgba(0,0,0,.82) 34%, rgba(0,0,0,.55) 50%, rgba(0,0,0,.28) 66%, rgba(0,0,0,.1) 80%, transparent 92%), linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: radial-gradient(ellipse 118% 100% at 0% 50%, #000 18%, rgba(0,0,0,.82) 34%, rgba(0,0,0,.55) 50%, rgba(0,0,0,.28) 66%, rgba(0,0,0,.1) 80%, transparent 92%), linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.film__video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block; filter: saturate(1.05) contrast(1.03); }
.film__bar { display: none; }
.film__bar i { display: block; }

.story__copy { position: relative; z-index: 2; width: min(460px, 40%); margin-inline-start: clamp(0px, 3vw, 4rem); }
.story .eyebrow { margin-bottom: 1rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps li { grid-area: 1 / 1; opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.steps li.is-active { opacity: 1; transform: none; pointer-events: auto; transition: opacity .55s ease .25s, transform .7s var(--ease) .25s; }
.steps__n { display: block; font-family: var(--f-banner); font-weight: 700; color: var(--gold); font-size: 1rem; letter-spacing: .2em; margin-bottom: .5rem; }
.steps h3 { font-family: var(--f-title); font-weight: 700; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.02; color: #fff; margin-bottom: .9rem; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
html[lang="ar"] .steps h3 { font-family: "Amiri", serif; line-height: 1.3; }
.steps p { color: #cfc4b3; font-size: 1.22rem; line-height: 1.55; max-width: 32ch; }
.dots { display: flex; gap: .5rem; margin-top: 2rem; }
.dots button { width: 40px; height: 18px; padding: 0; border: 0; background: none; position: relative; cursor: pointer; }
.dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: rgba(230, 190, 90, .2); }
.dots button::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--gold); transform: scaleX(var(--fill, 0)); transform-origin: left; }
[dir="rtl"] .dots button::after { transform-origin: right; }

.film__sound {
  display: inline-flex; align-items: center; gap: .5em; margin-top: 1.6rem;
  padding: .5em 1em; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--gold);
  font-family: var(--f-banner); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  transition: border-color .2s, background .2s;
}
.film__sound:hover { border-color: var(--gold); background: rgba(230, 190, 90, .08); }
html[lang="ar"] .film__sound { letter-spacing: 0; font-size: .95rem; }
.film__icon { width: 1.2em; height: 1.2em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9h4l5-4v14l-5-4H3z'/%3E%3Cpath d='M16 9l5 6M21 9l-5 6' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9h4l5-4v14l-5-4H3z'/%3E%3Cpath d='M16 9l5 6M21 9l-5 6' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.film__sound[aria-pressed="true"] .film__icon {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9h4l5-4v14l-5-4H3z'/%3E%3Cpath d='M16 8.5a5 5 0 0 1 0 7M18.5 6a8.5 8.5 0 0 1 0 12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9h4l5-4v14l-5-4H3z'/%3E%3Cpath d='M16 8.5a5 5 0 0 1 0 7M18.5 6a8.5 8.5 0 0 1 0 12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* phones: same look as computers, black curve on the left, video on the right */
@media (max-width: 860px) {
  .story { height: 360vh; }
  .story__pin { padding: calc(var(--nav-h) + 1rem) var(--gutter) 2rem; }
  .story__hint { margin-top: 1rem; font-size: 1rem; text-shadow: 0 1px 10px #000; }
  .film { left: 22%; right: 0; width: auto; }
  [dir="rtl"] .film { left: 0; right: 22%; }
  .film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 0%, rgba(0,0,0,.8) 22%, rgba(0,0,0,.35) 48%, transparent 70%); }
  [dir="rtl"] .film::after { background: linear-gradient(270deg, #000 0%, rgba(0,0,0,.8) 22%, rgba(0,0,0,.35) 48%, transparent 70%); }
  .film, [dir="rtl"] .film {
    -webkit-mask-image: radial-gradient(ellipse 120% 70% at 100% 50%, #000 22%, rgba(0,0,0,.72) 40%, rgba(0,0,0,.38) 60%, rgba(0,0,0,.12) 76%, transparent 90%), linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
            mask-image: radial-gradient(ellipse 120% 70% at 100% 50%, #000 22%, rgba(0,0,0,.72) 40%, rgba(0,0,0,.38) 60%, rgba(0,0,0,.12) 76%, transparent 90%), linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  }
  [dir="rtl"] .film {
    -webkit-mask-image: radial-gradient(ellipse 120% 70% at 0% 50%, #000 22%, rgba(0,0,0,.72) 40%, rgba(0,0,0,.38) 60%, rgba(0,0,0,.12) 76%, transparent 90%), linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
            mask-image: radial-gradient(ellipse 120% 70% at 0% 50%, #000 22%, rgba(0,0,0,.72) 40%, rgba(0,0,0,.38) 60%, rgba(0,0,0,.12) 76%, transparent 90%), linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  }
  .film__video { object-position: 62% 45%; }
  .story__copy { width: 64%; margin: 0; }
  .story .eyebrow { font-size: .66rem; letter-spacing: .22em; margin-bottom: .5rem; }
  .steps__n { font-size: .85rem; }
  .steps h3 { font-size: 2.1rem; margin-bottom: .4rem; text-shadow: 0 2px 18px #000, 0 0 30px rgba(0,0,0,.8); }
  .steps p { font-size: 1rem; line-height: 1.45; text-shadow: 0 1px 10px #000, 0 0 20px rgba(0,0,0,.9); }
  .dots { margin-top: 1.2rem; gap: .35rem; }
  .dots button { width: 26px; }
  .film__sound { margin-top: 1rem; background: rgba(0,0,0,.55); }
}

/* ---------- PASTA (photo on the left, blending into black) ---------- */
.pasta {
  position: relative; overflow: hidden;
  min-height: max(100svh, 640px);
  display: flex; align-items: center; justify-content: flex-end;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 3rem;
  background: linear-gradient(270deg, #000 0%, #050404 30%, #120e0c 52%, #1c1511 68%, #000 100%);
}
[dir="rtl"] .pasta { background: linear-gradient(90deg, #000 0%, #050404 30%, #120e0c 52%, #1c1511 68%, #000 100%); }
.pasta__media {
  position: absolute; top: 0; bottom: 0; left: 0; width: max(66%, 620px); z-index: 0; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 118% 100% at 0% 50%, #000 18%, rgba(0,0,0,.82) 34%, rgba(0,0,0,.55) 50%, rgba(0,0,0,.28) 66%, rgba(0,0,0,.1) 80%, transparent 92%), linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: radial-gradient(ellipse 118% 100% at 0% 50%, #000 18%, rgba(0,0,0,.82) 34%, rgba(0,0,0,.55) 50%, rgba(0,0,0,.28) 66%, rgba(0,0,0,.1) 80%, transparent 92%), linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-composite: intersect;
}
[dir="rtl"] .pasta__media {
  left: auto; right: 0;
  -webkit-mask-image: radial-gradient(ellipse 118% 100% at 100% 50%, #000 18%, rgba(0,0,0,.82) 34%, rgba(0,0,0,.55) 50%, rgba(0,0,0,.28) 66%, rgba(0,0,0,.1) 80%, transparent 92%), linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: radial-gradient(ellipse 118% 100% at 100% 50%, #000 18%, rgba(0,0,0,.82) 34%, rgba(0,0,0,.55) 50%, rgba(0,0,0,.28) 66%, rgba(0,0,0,.1) 80%, transparent 92%), linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.pasta__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; animation: slowzoom 22s ease-in-out infinite alternate; }
@keyframes slowzoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.pasta__copy { position: relative; z-index: 2; width: min(460px, 40%); margin-inline-end: clamp(0px, 3vw, 4rem); }
.pasta .title { font-size: clamp(2.6rem, 5vw, 4.4rem); text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.pasta .lede { color: #cfc4b3; font-size: 1.22rem; max-width: 32ch; margin: 1rem 0 2rem; }

@media (max-width: 860px) {
  .pasta { min-height: 100svh; padding: calc(var(--nav-h) + 1rem) var(--gutter) 2rem; }
  .pasta__media { left: 0; right: 22%; width: auto; }
  [dir="rtl"] .pasta__media { left: 22%; right: 0; }
  .pasta__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, #000 0%, rgba(0,0,0,.8) 22%, rgba(0,0,0,.35) 48%, transparent 70%); }
  [dir="rtl"] .pasta__media::after { background: linear-gradient(90deg, #000 0%, rgba(0,0,0,.8) 22%, rgba(0,0,0,.35) 48%, transparent 70%); }
  .pasta__media, [dir="rtl"] .pasta__media {
    -webkit-mask-image: radial-gradient(ellipse 120% 70% at 0% 50%, #000 22%, rgba(0,0,0,.72) 40%, rgba(0,0,0,.38) 60%, rgba(0,0,0,.12) 76%, transparent 90%), linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
            mask-image: radial-gradient(ellipse 120% 70% at 0% 50%, #000 22%, rgba(0,0,0,.72) 40%, rgba(0,0,0,.38) 60%, rgba(0,0,0,.12) 76%, transparent 90%), linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  }
  [dir="rtl"] .pasta__media {
    -webkit-mask-image: radial-gradient(ellipse 120% 70% at 100% 50%, #000 22%, rgba(0,0,0,.72) 40%, rgba(0,0,0,.38) 60%, rgba(0,0,0,.12) 76%, transparent 90%), linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
            mask-image: radial-gradient(ellipse 120% 70% at 100% 50%, #000 22%, rgba(0,0,0,.72) 40%, rgba(0,0,0,.38) 60%, rgba(0,0,0,.12) 76%, transparent 90%), linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  }
  .pasta__copy { width: 64%; margin: 0; }
  .pasta .eyebrow { font-size: .66rem; letter-spacing: .22em; margin-bottom: .5rem; }
  .pasta .title { font-size: 2.1rem; text-shadow: 0 2px 18px #000, 0 0 30px rgba(0,0,0,.8); }
  .pasta .lede { font-size: 1rem; line-height: 1.45; margin: .6rem 0 1.4rem; text-shadow: 0 1px 10px #000, 0 0 20px rgba(0,0,0,.9); }
  .pasta .btn { padding: .8em 1.2em; font-size: .78rem; }
}

/* ---------- MENU BOARD ---------- */
.menu {
  position: relative; padding: clamp(4rem, 9vw, 7rem) var(--gutter);
  background:
    radial-gradient(ellipse at 15% 0%, rgba(255, 110, 30, .1), transparent 45%),
    radial-gradient(ellipse at 85% 100%, rgba(255, 110, 30, .1), transparent 45%),
    var(--bg);
}
.menu__board {
  max-width: 1120px; margin: 0 auto;
  border: 1px solid var(--line); outline: 1px solid var(--line); outline-offset: 8px;
  padding: clamp(1.6rem, 5vw, 4rem) clamp(1.1rem, 4vw, 3.4rem);
  background: linear-gradient(180deg, #100d0b, #0b0a09);
}
.menu__head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.4rem); }
.menu__hint { margin-top: 1.4rem; font-style: italic; color: var(--muted); font-size: 1rem; }
.menu__grid { display: grid; gap: clamp(2.4rem, 5vw, 3.6rem); }
.menu__row { display: grid; }
.menu__row--2 { grid-template-columns: 1fr 1fr; }
.menu__row--3 { grid-template-columns: 1.15fr 1fr 1fr; }
.menu__row > .msec { padding: 0 clamp(1rem, 2.4vw, 2rem); }
.menu__row > .msec + .msec { border-inline-start: 1px solid var(--line); }
.msec__head { text-align: center; margin-bottom: 1.4rem; }
.msec__list { list-style: none; margin: 0; padding: 0; }
.mi { border-bottom: 1px solid rgba(230, 190, 90, .08); }
.mi:last-child { border-bottom: 0; }
.mi__btn, .mi__static { display: block; width: 100%; padding: .5rem 0; text-align: start; background: none; border: 0; }
.mi__row { display: flex; align-items: baseline; gap: .5rem; }
.mi__name { font-family: var(--f-body); font-weight: 600; font-size: 1.22rem; color: var(--cream); line-height: 1.25; transition: color .2s; }
.mi__dots { flex: 1; min-width: 1rem; border-bottom: 2px dotted rgba(246, 240, 228, .35); transform: translateY(-.28em); }
.mi__price { font-family: var(--f-body); font-weight: 700; font-size: 1.22rem; white-space: nowrap; direction: ltr; }
.mi__desc { display: block; font-size: .98rem; color: var(--muted); font-style: italic; margin-top: .1rem; line-height: 1.35; }
.mi--featured .mi__name, .mi--featured .mi__price { color: var(--gold); }
.mi__btn { cursor: pointer; }
.mi__btn:hover .mi__name, .mi.is-open .mi__name { color: var(--gold); }
.mi__btn .mi__name::after { content: " +"; color: var(--gold); opacity: 0; font-weight: 400; transition: opacity .2s; }
.mi__btn:hover .mi__name::after { opacity: .8; }
.mi.is-open .mi__btn .mi__name::after { content: " −"; opacity: .8; }
.mi__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.mi.is-open .mi__panel { grid-template-rows: 1fr; }
.mi__panel > div { overflow: hidden; }
.mi__art { width: min(240px, 72%); margin: .6rem auto 1.2rem; aspect-ratio: 1; transform: scale(.6) rotate(-40deg); opacity: 0; transition: transform .7s var(--ease), opacity .4s; }
.mi.is-open .mi__art { transform: none; opacity: 1; }
.mi__art svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .6)); }
.mi__photo, .menu-float__in .mi__photo { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2px solid var(--gold); outline: 1px solid var(--line); outline-offset: 5px; box-shadow: 0 16px 28px rgba(0, 0, 0, .6); }
.menu__note { text-align: center; color: var(--muted); font-size: .95rem; font-style: italic; margin-top: 2.6rem; }
.msec { opacity: 0; transform: translateY(18px); transition: opacity .8s, transform .8s var(--ease); }
.msec.is-in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .menu__row--3 { grid-template-columns: 1fr 1fr; }
  .menu__row--3 > .msec:first-child { grid-column: 1 / -1; border: 0; margin-bottom: 2.4rem; }
  .menu__row--3 > .msec:nth-child(2) { border: 0; }
}
@media (max-width: 680px) {
  .menu__row--2, .menu__row--3 { grid-template-columns: 1fr; gap: 2.4rem; }
  .menu__row > .msec { padding: 0; border: 0 !important; margin: 0 !important; }
  .menu__row--2 { gap: 2.4rem; }
  .mi__name, .mi__price { font-size: 1.15rem; }
}

/* ---------- PHOTOS ---------- */
.photos { position: relative; padding: clamp(4rem, 9vw, 7rem) var(--gutter); background: var(--bg-2); overflow: hidden; }
.photos .section-head { margin-bottom: 3rem; }
.photos__hint { font-style: italic; color: var(--muted); }
.wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2.4rem); max-width: 960px; margin: 0 auto; }
@media (max-width: 760px) { .wall { grid-template-columns: repeat(2, 1fr); } }
.polaroid {
  --r: 0deg; --x: 0px; --y: 0px;
  position: relative; margin: 0; background: #1d1815; padding: 10px 10px 0;
  border: 1px solid var(--line);
  box-shadow: 0 10px 16px rgba(0, 0, 0, .5);
  transform: translate(var(--x), var(--y)) rotate(var(--r));
  user-select: none; cursor: grab;
  transition: box-shadow .25s, transform .35s var(--ease);
}
.polaroid::before, .polaroid::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--gold); z-index: 2; }
.polaroid::before { top: -5px; left: -5px; border-right: 0; border-bottom: 0; }
.polaroid::after { bottom: -5px; right: -5px; border-left: 0; border-top: 0; }
.polaroid.is-dragging { cursor: grabbing; transition: box-shadow .25s; box-shadow: 0 18px 24px rgba(0, 0, 0, .6); z-index: 10; }
.polaroid__media { aspect-ratio: 1; overflow: hidden; background: #0e0c0b; position: relative; }
.polaroid__media img, .polaroid__media video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.polaroid__soon {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .5rem; text-align: center;
  color: rgba(230, 190, 90, .7); font-size: 1rem; font-style: italic; padding: 1rem;
  background: radial-gradient(circle at 50% 120%, rgba(255, 110, 30, .18), transparent 60%), repeating-linear-gradient(-45deg, #15110f 0 14px, #120f0d 14px 28px);
}
.polaroid__soon svg { width: 40px; height: 40px; opacity: .8; }
.polaroid__cap { font-family: var(--f-title); font-style: italic; font-size: clamp(1rem, 2.2vw, 1.2rem); text-align: center; padding: .6rem .3rem .8rem; color: var(--cream); line-height: 1.25; }
html[lang="ar"] .polaroid__cap { font-family: "Amiri", serif; font-style: normal; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); }
.lightbox::backdrop { background: rgba(5, 4, 4, .92); }
.lightbox__media img, .lightbox__media video { max-height: 80vh; width: auto; margin: 0 auto; border: 1px solid var(--gold); }
.lightbox__cap { text-align: center; color: var(--gold); font-style: italic; font-size: 1.4rem; margin-top: .6rem; }
.lightbox__close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); background: transparent; color: var(--gold); font-size: 1.6rem; line-height: 1; }

/* ---------- VISIT ---------- */
.visit { position: relative; padding: clamp(4rem, 9vw, 7rem) var(--gutter); background: radial-gradient(ellipse at 50% 0%, rgba(255, 110, 30, .14), transparent 55%), var(--bg); }
.visit__sign { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.opensign {
  display: inline-grid; padding: .1em .9em .25em;
  border: 2px solid #3a3020; outline: 1px solid #3a3020; outline-offset: 6px;
  font-family: var(--f-title); font-style: italic; font-weight: 600; font-size: clamp(3rem, 11vw, 5.6rem); line-height: 1.25;
}
.opensign__word { grid-area: 1 / 1; color: #3d3226; transition: color .3s, text-shadow .3s, opacity .3s; }
.opensign.is-open { border-color: var(--gold); outline-color: var(--line); }
.opensign.is-open .opensign__word--open { color: var(--gold); }
.opensign.is-open .opensign__word--closed { opacity: 0; }
.opensign.is-closed .opensign__word--open { opacity: 0; }
.opensign.is-closed { border-color: #6b1a1e; outline-color: #6b1a1e; }
.opensign.is-closed .opensign__word--closed { color: #e7646b; }
@keyframes buzz { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .6; } 94% { opacity: 1; } 96% { opacity: .8; } }
.visit__status { margin-top: 1.4rem; font-size: 1.2rem; font-style: italic; color: var(--muted); }

.visit__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; max-width: 1120px; margin: 0 auto; }
.visit .card { background: var(--panel); border: 1px solid var(--line); padding: 1.7rem; }
.visit .card .title { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 1.4rem; }
.visit .card h3 { font-family: var(--f-banner); font-weight: 700; font-size: 1rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
html[lang="ar"] .visit .card h3 { letter-spacing: 0; font-size: 1.25rem; }
.visit .card p { margin-bottom: .6rem; color: var(--cream); }
.card--contact { display: flex; flex-direction: column; gap: .8rem; align-items: stretch; }
.card--contact .link { align-self: center; margin-top: .2rem; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .38rem .6rem; font-size: 1.05rem; border-bottom: 1px dotted rgba(246, 240, 228, .15); }
.hours li:last-child { border-bottom: 0; }
.hours li span:last-child { direction: ltr; font-variant-numeric: tabular-nums lining-nums; }
.hours li.is-today { background: var(--red); color: #fff; font-weight: 700; border-color: transparent; }
.hours li.is-off span:last-child { color: var(--muted); font-style: italic; }
.hours li.is-today.is-off span:last-child { color: #fff; }
.map { grid-column: 1 / -1; position: relative; display: block; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 400 / 150; }
.map svg { width: 100%; height: 100%; }
.map__road { font-family: "EB Garamond", serif; font-style: italic; font-size: 18px; fill: var(--gold); }
.map__pin { animation: pin 1.8s var(--ease) infinite; }
@keyframes pin { 0%, 100% { transform: translate(212px, 124px); } 50% { transform: translate(212px, 114px); } }
.map__label { position: absolute; left: 50%; top: 14%; transform: translateX(-10%); background: var(--gold); color: var(--bg); padding: .25em .9em; font-family: var(--f-banner); font-weight: 700; font-size: .8rem; letter-spacing: .12em; }
@media (max-width: 900px) {
  .visit__grid { grid-template-columns: 1fr; }
  .map { aspect-ratio: 400 / 230; }
}

/* ---------- FOOTER ---------- */
.footer { background: #070606; text-align: center; padding: 0 var(--gutter) 6rem; }
.footer .flourish { width: 180px; }
.footer__love { color: var(--muted); font-style: italic; }
.footer__copy { margin-top: 1.4rem; font-size: .9rem; color: var(--muted); }

/* ---------- FLOATING WHATSAPP ---------- */
.fab {
  position: fixed; z-index: 40; bottom: max(18px, env(safe-area-inset-bottom)); inset-inline-end: 18px;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #13753a; color: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255,255,255,.15);
  transform: scale(0); transition: transform .4s var(--ease);
}
.fab .wa-icon { width: 30px; height: 30px; }
.is-ready .fab { transform: scale(1); }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .embers { display: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* =========================================================
   MOTION
   ========================================================= */
:root { --eo: cubic-bezier(.23, 1, .32, 1); --eio: cubic-bezier(.77, 0, .175, 1); }

/* generic reveal: fade up, staggered with --d */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--eo) var(--d, 0ms), transform 1.1s var(--eo) var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* titles rise word by word from behind a mask */
.title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; margin-bottom: -.1em; }
.title .w > span { display: inline-block; transform: translateY(110%) rotate(5deg); transform-origin: 0 100%; transition: transform 1.05s var(--eo) calc(var(--i, 0) * 75ms + 120ms); }
.title.is-in .w > span { transform: none; }

/* press feedback */
.btn:active, .lang button:active, .mi__btn:active, .dots button:active, .fab:active { transform: scale(.96); transition-duration: 120ms; }

/* hero: mouse tilt + scroll parallax (values set from JS) */
.hero__board { transform: translateX(-50%) rotateX(calc(56deg + var(--tx, 0deg))) rotateZ(var(--tz, 0deg)); }
.hero__pizza svg { transform-origin: 50% 50%; }
.hero__stage, .hero__content { will-change: transform; }

/* giant numeral behind the video steps */
.story__ghost {
  position: absolute; z-index: 1; left: 1vw; top: 50%; transform: translateY(-50%);
  font-family: var(--f-title); font-weight: 700; font-size: min(70vh, 36vw); line-height: 1; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(230, 190, 90, .22);
  pointer-events: none; user-select: none; white-space: nowrap;
}
[dir="rtl"] .story__ghost { left: auto; right: 1vw; }
@media (max-width: 860px) { .story__ghost { font-size: 60vw; left: -2vw; -webkit-text-stroke-color: rgba(230, 190, 90, .18); } }

/* pasta photo wipes on like a curtain */
.pasta__media { clip-path: inset(0 100% 0 0); transition: clip-path 1.6s var(--eio); }
[dir="rtl"] .pasta__media { clip-path: inset(0 0 0 100%); }
.pasta.is-in .pasta__media { clip-path: inset(0 0 0 0); }

/* menu: brush banners paint on, dishes cascade, dotted leaders draw */
.msec .banner { clip-path: inset(-30% 100% -40% -5%); transition: clip-path .9s var(--eio) .1s; }
[dir="rtl"] .msec .banner { clip-path: inset(-30% -5% -40% 100%); }
.msec.is-in .banner { clip-path: inset(-30% -5% -40% -5%); }
.msec .mi { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--eo) calc(var(--i, 0) * 55ms + 380ms), transform .8s var(--eo) calc(var(--i, 0) * 55ms + 380ms); }
.msec.is-in .mi { opacity: 1; transform: none; }
.msec .mi__dots { transform: translateY(-.28em) scaleX(0); transform-origin: left; transition: transform 1s var(--eo) calc(var(--i, 0) * 55ms + 560ms); }
[dir="rtl"] .msec .mi__dots { transform-origin: right; }
.msec.is-in .mi__dots { transform: translateY(-.28em) scaleX(1); }

/* gallery: photos get tossed onto the wall */
.wall .polaroid { opacity: 0; transform: translate(calc(var(--x) + var(--fx, 0px)), calc(var(--y) + 70vh)) rotate(calc(var(--r) * -7)) scale(1.12); }
.wall.is-in .polaroid { opacity: 1; transform: translate(var(--x), var(--y)) rotate(var(--r)); transition: transform 1.25s var(--eo) calc(var(--i, 0) * 120ms), opacity .5s ease calc(var(--i, 0) * 120ms), box-shadow .25s; }
.wall.is-settled .polaroid { transition: box-shadow .25s, transform .45s var(--eo); }
.wall.is-settled .polaroid.is-dragging { transition: box-shadow .25s; }
@media (hover: hover) and (pointer: fine) {
  .wall.is-settled .polaroid:not(.is-dragging):hover { transform: translate(var(--x), calc(var(--y) - 8px)) rotate(0deg) scale(1.04); box-shadow: 0 18px 26px rgba(0, 0, 0, .55); z-index: 3; }
}

/* open/closed sign: letters light up one by one */
.opensign { opacity: 0; transform: scale(.92); transition: opacity .6s ease, transform 1.1s var(--eo); }
.opensign.is-in { opacity: 1; transform: none; }
.opensign__word .c { display: inline-block; opacity: .07; transition: opacity .3s ease calc(var(--i, 0) * 110ms + 350ms); }
.opensign.is-in .opensign__word .c { opacity: 1; }

/* photo viewer zooms open */
.lightbox[open] { animation: lbIn .45s var(--eo); }
.lightbox[open]::backdrop { animation: fadeIn .35s ease; }
@keyframes lbIn { from { opacity: 0; transform: scale(.93) translateY(14px); } }
@keyframes fadeIn { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .title .w > span, .msec .mi, .wall .polaroid, .opensign, .opensign__word .c { opacity: 1 !important; transform: none !important; }
  .msec .mi__dots { transform: translateY(-.28em) !important; }
  .pasta__media, .msec .banner { clip-path: none !important; }
  .story__ghost { display: none; }
}

/* =========================================================
   EXTRA MOTION
   ========================================================= */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--it-green) 0 33.33%, var(--it-white) 33.33% 66.66%, var(--it-red) 66.66%); }
[dir="rtl"] .progress { transform-origin: right; }

.floaters { position: fixed; inset: 0; pointer-events: none; z-index: 30; transition: opacity .5s ease; }
.floater { position: absolute; top: 0; will-change: transform; }
.floater svg { overflow: visible; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .55)); }

.ribbon__track.is-live { flex-wrap: nowrap; width: max-content; justify-content: flex-start; padding-inline: 0; direction: ltr; will-change: transform; }
.ribbon__track.is-live > * { flex: none; }
.wall { transform-origin: 50% 50%; }

.burst { position: fixed; z-index: 300; pointer-events: none; }
.burst svg { overflow: visible; display: block; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)) brightness(1.15); }
.burst-ring { position: fixed; z-index: 299; pointer-events: none; width: 90px; height: 90px; border-radius: 50%; border: 2px solid var(--gold); }

.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 400; opacity: 0; transition: opacity .3s; }
.cursor-dot.is-on, .cursor-ring.is-on { opacity: 1; }
.cursor-dot::before { content: ""; position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--gold); }
.cursor-ring i { position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(230, 190, 90, .65); border-radius: 50%; transition: transform .35s var(--eo), background-color .35s, border-color .35s; }
.cursor-ring.is-big i { transform: scale(1.8); background-color: rgba(230, 190, 90, .08); border-color: var(--gold); }

.btn { transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, translate .45s var(--eo); }
.fab { transition: transform .4s var(--ease), translate .45s var(--eo); }
.lang { transition: translate .45s var(--eo); }
.brand--hero .ch { transition: opacity .7s, transform .9s var(--ease), filter .7s, translate .7s var(--eo), rotate .7s var(--eo), color .4s; }

.menu-float { position: fixed; left: 0; top: 0; width: 210px; height: 210px; pointer-events: none; z-index: 60; }
.menu-float__in { width: 100%; height: 100%; transform: scale(.4) rotate(-30deg); opacity: 0; transition: transform .45s var(--eo), opacity .25s; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .6)); }
.menu-float.is-on .menu-float__in { transform: none; opacity: 1; }
.menu-float svg { width: 100%; height: 100%; overflow: visible; animation: spin 14s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .floaters, .cursor-dot, .cursor-ring, .menu-float, .burst, .progress { display: none !important; }
}

/* hand-over between the pizza video and the pasta photo: both meet in black */
.story__pin::after { content: ""; position: absolute; inset: 0; z-index: 6; background: #000; opacity: var(--exit, 0); pointer-events: none; }
.story__pin::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; z-index: 1; background: linear-gradient(180deg, transparent, #000); pointer-events: none; }
.pasta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30%; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 40%, transparent 100%); pointer-events: none; }
.pasta { background-color: #000; }

/* steam bridge: sits on the join between the pizza video and the pasta */
.steam-bridge { position: relative; height: 0; z-index: 8; pointer-events: none; }
.steam-bridge canvas { position: absolute; left: 0; width: 100%; top: -70vh; height: 130vh; display: block; pointer-events: none; }
.steam-bridge__blur {
  position: absolute; left: 0; right: 0; top: -22vh; height: 44vh;
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%, #000 65%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 35%, #000 65%, transparent);
  background: radial-gradient(ellipse 70% 60% at 40% 60%, rgba(255, 170, 90, .10), transparent 70%);
}
.film__video { transition: none; }
@media (prefers-reduced-motion: reduce) { .steam-bridge canvas { display: none; } }

/* video softening is driven by two variables: entering through steam, and leaving */
.film__video { filter: blur(calc(var(--venter, 0) * 6px + var(--vexit, 0) * 5px)) brightness(calc(1 - var(--venter, 0) * .3 - var(--vexit, 0) * .3)) saturate(1.05) contrast(1.03); }

/* mirrored scroll video: video on the left, steps on the right */
.story--left .story__pin { justify-content: flex-end; background: linear-gradient(270deg, #000 0%, #050404 30%, #120e0c 52%, #1c1511 68%, #000 100%); }
.story--left .story__copy { margin-inline-start: 0; margin-inline-end: clamp(0px, 3vw, 4rem); }
.story--left .film { right: auto; left: 0; transform: scaleX(-1); }
.story--left .film__video { transform: scaleX(-1); }
.story--left .story__ghost { left: auto; right: 1vw; }
[dir="rtl"] .story--left .story__pin { background: linear-gradient(90deg, #000 0%, #050404 30%, #120e0c 52%, #1c1511 68%, #000 100%); }
[dir="rtl"] .story--left .film { left: auto; right: 0; }
[dir="rtl"] .story--left .story__ghost { right: auto; left: 1vw; }
@media (max-width: 860px) {
  .story--left .film { left: 0; right: 22%; }
  [dir="rtl"] .story--left .film { left: 22%; right: 0; }
  .story--left .story__copy { margin: 0; }
  .story--left .story__ghost { right: -2vw; left: auto; }
}

/* =========================================================
   OPENING (scroll video → spinning pizza → name drops in)
   ========================================================= */
.opening { position: relative; height: 420vh; background: #000; }
.opening__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #000; }
.opening__video, .opening__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.opening__bg { display: none; filter: blur(34px) brightness(.45) saturate(1.2); transform: scale(1.15); }
.opening.is-wide .opening__bg { display: block; }
.opening.is-wide .opening__video { object-fit: contain; }
.opening__disc { position: absolute; z-index: 3; opacity: 0; will-change: transform; transform-origin: 50% 50%; pointer-events: none; }
.opening__disc img { width: 100%; height: 100%; display: block; animation: spin 22s linear infinite; animation-play-state: paused; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); }
.opening.is-spin .opening__disc { opacity: 1; }
.opening.is-spin .opening__disc img { animation-play-state: running; }
.opening__shade { position: absolute; inset: 0; z-index: 2; background: radial-gradient(ellipse at 50% 35%, rgba(0,0,0,.75), #000 80%); opacity: 0; pointer-events: none; }
.opening .embers { z-index: 4; }
.opening .hero__content { position: absolute; z-index: 5; left: 0; right: 0; top: calc(var(--nav-h) + clamp(1.5rem, 5vh, 4rem)); text-align: center; padding: 0 var(--gutter); }
.opening__hint { position: absolute; z-index: 5; left: 0; right: 0; bottom: max(28px, env(safe-area-inset-bottom)); text-align: center; color: var(--gold); font-style: italic; font-size: 1.1rem; text-shadow: 0 2px 12px #000; transition: opacity .3s; }

/* the text pieces wait above the screen, then fall in one after another with a little bounce */
body .opening:not(.is-text) .hero__content > * { opacity: 0; transform: translateY(-115vh) rotate(-4deg); transition: transform .5s ease-in, opacity .3s ease .2s; }
body .opening.is-text .hero__content > * { opacity: 1; transform: none; transition: transform .75s cubic-bezier(.34, 1.4, .64, 1) calc(var(--k, 0) * 65ms), opacity .3s ease calc(var(--k, 0) * 65ms); }
body .opening .hero__content .brand--hero .ch { opacity: 1; transform: none; filter: none; }
body .opening .flourish--draw use { stroke-dashoffset: 0; }

@media (max-width: 860px) {
  .opening { height: 380vh; }
  .opening .hero__content { top: calc(var(--nav-h) + 1.2rem); }
}
@media (prefers-reduced-motion: reduce) {
  body .opening .hero__content > * { transition: none !important; }
}

/* waiting page: full black while everything loads */
.loader { position: fixed; inset: 0; z-index: 100; background: #000; transition: opacity .8s ease, visibility .8s; }
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__bar { position: absolute; left: 50%; bottom: 56px; width: 120px; height: 1px; transform: translateX(-50%); background: rgba(230, 190, 90, .12); overflow: hidden; }
.loader__bar i { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }

/* the opening is now a normal full-screen video, no scrolling needed */
.opening { height: 100svh; }
.opening__pin { position: relative; height: 100svh; }
@media (max-width: 860px) { .opening { height: 100svh; } }

/* menu: dish names show right away; only the dotted lines and prices animate, quickly */
.msec, .msec .mi { opacity: 1 !important; transform: none !important; }
.msec .banner, [dir="rtl"] .msec .banner { clip-path: none !important; }
.msec .mi__dots { transition: transform .6s var(--eo) calc(var(--i, 0) * 40ms + 80ms); }
.msec .mi__price { display: inline-block; opacity: 0; transform: translateX(10px); transition: opacity .4s ease calc(var(--i, 0) * 40ms + 300ms), transform .5s var(--eo) calc(var(--i, 0) * 40ms + 300ms); }
[dir="rtl"] .msec .mi__price { transform: translateX(-10px); }
.msec.is-in .mi__price { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .msec .mi__price { opacity: 1; transform: none; } }

/* =========================================================
   WAITING PAGE — pizzaiolo pops up over a gold striped bar
   ========================================================= */
.loader { display: grid; place-items: center; transition: opacity .5s ease, visibility .5s; }
.loader__stage { position: relative; display: flex; flex-direction: column; align-items: center; width: min(80vw, 360px); }
.loader__spot {
  position: absolute; left: 50%; top: 42%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(226, 150, 70, .26), rgba(190, 110, 40, .10) 55%, transparent 100%);
  pointer-events: none;
}
.loader__chef { position: relative; z-index: 1; display: block; height: min(46vh, 330px); aspect-ratio: 397 / 586; margin-bottom: -18px;
  transform-origin: 50% 100%; animation: chefPop .75s cubic-bezier(.34, 1.56, .64, 1) .1s both, chefIdle 2.6s ease-in-out .9s infinite; }
.loader__chef img { width: 100%; height: 100%; display: block; object-fit: contain;
  filter: drop-shadow(0 0 1px rgba(255, 240, 215, .55)) drop-shadow(0 14px 18px rgba(0, 0, 0, .6)); }
@keyframes chefPop { 0% { opacity: 0; transform: translateY(46%) scale(.55); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes chefIdle { 0%, 100% { transform: none; } 50% { transform: translateY(-5px) rotate(-1deg); } }

.loader__track {
  position: relative; z-index: 2; width: 100%; height: 14px; border-radius: 999px;
  background: linear-gradient(180deg, #0d0b0a, #1d1815);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .8), 0 0 0 1px rgba(230, 190, 90, .28), 0 10px 24px rgba(0, 0, 0, .6);
  animation: loaderRise .5s var(--eo) .25s both;
}
.loader__fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; overflow: hidden;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .26) 0 7px, rgba(255, 255, 255, 0) 7px 14px),
    linear-gradient(180deg, #f6dc8d, #e2b555 55%, #b98a33);
  background-size: 19.8px 100%, 100% 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .25);
  animation: stripes .7s linear infinite;
}
@keyframes stripes { to { background-position: 19.8px 0, 0 0; } }
.loader__tip {
  position: absolute; top: calc(100% + 12px); left: 0; transform: translateX(-50%);
  padding: .28em .7em; border-radius: 6px; white-space: nowrap;
  background: #231c17; color: var(--gold); border: 1px solid rgba(230, 190, 90, .35);
  font-family: var(--f-banner); font-weight: 700; font-size: .8rem; letter-spacing: .06em; font-variant-numeric: tabular-nums;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .5);
  animation: tipRise .5s var(--eo) .35s both;
}
.loader__tip::before { content: ""; position: absolute; left: 50%; top: -5px; width: 8px; height: 8px; transform: translateX(-50%) rotate(45deg); background: #231c17; border-left: 1px solid rgba(230, 190, 90, .35); border-top: 1px solid rgba(230, 190, 90, .35); }
.loader__tip span { display: inline-block; min-width: 1.6em; text-align: right; margin-right: .15em; }
.loader.is-done .loader__chef { animation: chefOut .45s cubic-bezier(.55, 0, .7, .2) both; }
@keyframes chefOut { to { opacity: 0; transform: translateY(-24px) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .loader__chef, .loader__fill, .loader__track, .loader__tip { animation: none !important; } }
@keyframes loaderRise { from { opacity: 0; transform: translateY(10px); } }
@keyframes tipRise { from { opacity: 0; translate: 0 8px; } }

/* the name sits over the dimmed last frame: soft shadows keep it readable */
.opening .hero__content .brand, .opening .hero__content .brand-sub, .opening .hero__tagline { text-shadow: 0 2px 6px rgba(0, 0, 0, .75), 0 6px 28px rgba(0, 0, 0, .7); }
.opening .hero__tagline { color: #e6dccb; }
.opening .hero__content .flourish, .opening .hero__content .tricolor { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .8)); }
.opening .btn--ghost { background: rgba(11, 10, 9, .65); }
