:root {
  color-scheme: light;

  /* Frescco's bright, minimal customer-facing palette. */
  --color-page: #f7f8f5;
  --color-surface: #ffffff;
  --color-surface-soft: #f0f4ef;
  --color-surface-elevated: #ffffff;
  --color-surface-translucent: rgb(255 255 255 / 94%);

  --color-brand-forest: #07472b;
  --color-brand-forest-deep: #06341f;
  --color-brand-emerald: #15803d;
  --color-brand-cream: #fff8e8;
  --color-brand-cream-soft: #fffaf0;
  --color-brand-gold: #e8a700;
  --color-brand-gold-warm: #d78a00;
  --color-brand-gold-glow: rgba(232, 167, 0, 0.2);
  --color-brand-tomato: #d62828;
  --color-brand-tomato-deep: #b51515;
  --color-brand-tomato-glow: rgba(214, 40, 40, 0.25);
  --color-brand-orange: #f77f00;

  --color-text: #1c2921;
  --color-text-muted: #526258;
  --color-text-subtle: #718076;
  --color-border: rgba(7, 71, 43, 0.16);
  --color-border-subtle: rgba(7, 71, 43, 0.09);
  --color-border-hover: rgba(7, 71, 43, 0.34);
  --color-action: #07472b;
  --color-action-hover: #05391f;
  --color-focus: #087443;

  /* High-end Editorial & Geometric Typography */
  --font-display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-ui: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --font-size-small: 0.8125rem;
  --font-size-body: 0.9375rem;
  --font-size-lead: 1.0625rem;
  --font-size-heading: clamp(1.75rem, 5vw, 2.75rem);
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  --line-height-body: 1.55;
  --line-height-heading: 1.15;
  --letter-spacing-label: 0.12em;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;

  --page-gutter: clamp(1rem, 4vw, 2.5rem);
  --content-width: 72rem;
  --radius-control: 0.85rem;
  --radius-card: 1.25rem;
  --radius-pill: 9999px;

  --shadow-card: 0 8px 24px rgba(21, 43, 29, 0.08), 0 0 0 1px rgba(7, 71, 43, 0.06);
  --shadow-card-hover: 0 14px 30px rgba(21, 43, 29, 0.13), 0 0 0 1px rgba(7, 71, 43, 0.18);
  --shadow-glass: 0 14px 35px rgba(21, 43, 29, 0.12);
  --focus-ring: 0 0 0 3px rgba(7, 116, 67, 0.22);
  --backdrop-blur: blur(16px) saturate(150%);
}

body.intro-active .intro-screen {
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 30%, rgb(232 243 235 / 88%), transparent 58%),
    linear-gradient(145deg, #fffefa, #f3f7f1 58%, #fffaf0);
}

body.intro-active .intro-screen::before,
body.intro-active .intro-screen::after {
  position: absolute;
  z-index: -1;
  width: min(72vw, 34rem);
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

body.intro-active .intro-screen::before {
  top: -30%;
  left: -18%;
  background: radial-gradient(circle, rgb(145 197 153 / 22%), rgb(145 197 153 / 0%) 70%);
  animation: intro-scene-drift 14s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

body.intro-active .intro-screen::after {
  right: -20%;
  bottom: -34%;
  background: radial-gradient(circle, rgb(232 167 0 / 13%), rgb(232 167 0 / 0%) 70%);
  animation: intro-scene-drift 17s cubic-bezier(0.45, 0, 0.55, 1) -2s infinite alternate-reverse;
}

.intro-floating-food {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.intro-floating-food > span:not(.intro-background-sparkle) {
  position: absolute;
  display: block;
  opacity: 0.13;
  font-size: clamp(2rem, 8vw, 4.5rem);
  filter: saturate(0.82);
  will-change: transform;
  animation: intro-food-drift 12s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.intro-floating-food-one {
  top: 10%;
  left: 10%;
  animation-delay: -1s;
}

.intro-floating-food-two {
  top: 15%;
  right: 12%;
  animation-delay: -4s;
  animation-duration: 10s;
}

.intro-floating-food-three {
  right: 8%;
  bottom: 14%;
  animation-delay: -2.5s;
  animation-duration: 9s;
}

.intro-floating-food-four {
  bottom: 11%;
  left: 12%;
  animation-delay: -5s;
  animation-duration: 11s;
}

.intro-floating-food-five {
  top: 48%;
  left: 3%;
  animation-delay: -3s;
  animation-duration: 12s;
}

.intro-floating-food-six {
  top: 54%;
  right: 4%;
  animation-delay: -6s;
  animation-duration: 10s;
}

.intro-background-sparkle {
  position: absolute;
  display: block;
  color: var(--color-brand-gold);
  font-size: clamp(1rem, 3vw, 1.65rem);
  line-height: 1;
  opacity: 0.62;
  text-shadow: 0 0 14px rgb(232 167 0 / 45%);
  will-change: opacity, transform;
  animation: intro-background-twinkle 3.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.intro-background-sparkle-one {
  top: 23%;
  left: 25%;
}

.intro-background-sparkle-two {
  top: 31%;
  right: 24%;
  color: var(--color-brand-emerald);
  animation-delay: 450ms;
}

.intro-background-sparkle-three {
  top: 67%;
  left: 21%;
  animation-delay: 900ms;
}

.intro-background-sparkle-four {
  right: 19%;
  bottom: 23%;
  color: var(--color-brand-emerald);
  animation-delay: 1.35s;
}

.intro-background-sparkle-five {
  top: 8%;
  right: 43%;
  font-size: 1rem;
  animation-delay: 1.8s;
}

.intro-background-sparkle-six {
  bottom: 8%;
  left: 45%;
  color: var(--color-brand-emerald);
  font-size: 1.1rem;
  animation-delay: 2.25s;
}

.intro-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 26rem);
  gap: 0.75rem;
  padding: clamp(1.5rem, 6vw, 2.5rem);
  border: 1px solid rgb(7 71 43 / 8%);
  border-radius: 2rem;
  background: rgb(255 255 255 / 78%);
  box-shadow: 0 24px 70px rgb(21 43 29 / 10%), 0 2px 8px rgb(21 43 29 / 4%);
  animation:
    intro-content-arrive 800ms cubic-bezier(0.22, 1, 0.36, 1) both,
    intro-card-glow 6s 800ms cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

body.intro-active .intro-logo-stage {
  display: grid;
  width: clamp(7rem, 32vw, 9.5rem);
  margin-bottom: 0.35rem;
  place-items: center;
}

.intro-logo-stage::before {
  position: absolute;
  inset: -0.65rem;
  border: 1px solid rgb(7 71 43 / 12%);
  border-top-color: var(--color-brand-emerald);
  border-radius: 50%;
  content: "";
  animation: intro-ring-turn 5s linear infinite;
}

body.intro-active .intro-logo {
  border: 4px solid #fff;
  box-shadow: 0 8px 26px rgb(7 71 43 / 14%);
  animation: intro-logo-breathe 4.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.intro-garnish {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgb(7 71 43 / 8%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 16px rgb(21 43 29 / 12%);
  font-size: 1.15rem;
  --orbit-radius: 4.8rem;
}

.intro-garnish-pizza {
  animation: intro-food-orbit 8s linear infinite;
}

.intro-garnish-fries {
  animation: intro-food-orbit 10s linear infinite reverse;
}

.intro-garnish-burger {
  animation: intro-food-orbit 12s linear infinite;
  animation-delay: -4s;
}

.intro-sparkle {
  position: absolute;
  z-index: 3;
  color: var(--color-brand-gold);
  font-size: 1.15rem;
  line-height: 1;
  text-shadow: 0 0 12px rgb(232 167 0 / 35%);
  animation: intro-sparkle-twinkle 3s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  pointer-events: none;
}

.intro-sparkle-one {
  top: -0.75rem;
  left: 18%;
}

.intro-sparkle-two {
  top: 12%;
  right: -1.15rem;
  color: var(--color-brand-emerald);
  animation-delay: 250ms;
}

.intro-sparkle-three {
  right: 15%;
  bottom: -0.9rem;
  animation-delay: 500ms;
}

.intro-sparkle-four {
  bottom: 16%;
  left: -1.15rem;
  color: var(--color-brand-emerald);
  animation-delay: 750ms;
}

body.intro-active .intro-tagline {
  color: var(--color-brand-forest);
  font-family: var(--font-ui);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  animation: intro-item-reveal 700ms 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.intro-title {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5vw, 1.8rem);
  font-weight: 700;
  line-height: 1.2;
  animation: intro-item-reveal 700ms 340ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.intro-loading-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0.4rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  animation: intro-item-reveal 700ms 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.intro-loading-dots {
  display: inline-flex;
  gap: 0.2rem;
  padding-left: 0.05rem;
}

.intro-loading-dots i {
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 50%;
  background: var(--color-brand-emerald);
  animation: intro-dot-bounce 1.25s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.intro-loading-dots i:nth-child(2) { animation-delay: 120ms; }
.intro-loading-dots i:nth-child(3) { animation-delay: 240ms; }

body.intro-active .intro-progress {
  width: min(100%, 13rem);
  height: 0.24rem;
  margin-top: 0.35rem;
  background: #e8eee8;
  animation: intro-item-reveal 700ms 580ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.intro-active .intro-progress-fill {
  background: linear-gradient(90deg, var(--color-brand-forest), #45a765, var(--color-brand-gold));
  background-size: 200% 100%;
  animation: intro-progress-fill 4.5s cubic-bezier(0.45, 0, 0.55, 1) both, intro-progress-shimmer 2.4s linear infinite;
}

.intro-screen.is-closing .intro-content {
  animation: intro-content-leave 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes intro-ring-turn {
  to { transform: rotate(360deg); }
}

@keyframes intro-logo-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

@keyframes intro-food-orbit {
  from {
    transform: translate(-50%, -50%) rotate(0deg) translateX(var(--orbit-radius)) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg) translateX(var(--orbit-radius)) rotate(-360deg);
  }
}

@keyframes intro-sparkle-twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.65) rotate(-20deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(20deg); }
}

@keyframes intro-background-twinkle {
  0%, 100% { opacity: 0.28; transform: scale(0.68) rotate(-18deg); }
  45% { opacity: 0.92; transform: scale(1.12) rotate(12deg); }
  60% { opacity: 0.65; transform: scale(0.94) rotate(0deg); }
}

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

@keyframes intro-dot-bounce {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-0.2rem); }
}

@keyframes intro-content-arrive {
  from { opacity: 0; transform: translateY(0.75rem) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes intro-scene-drift {
  from { transform: translate3d(-3vw, -2vh, 0) scale(0.92); }
  to { transform: translate3d(5vw, 4vh, 0) scale(1.08); }
}

@keyframes intro-food-drift {
  0%, 100% { transform: translate3d(-0.2rem, 0.2rem, 0) rotate(-5deg) scale(0.98); }
  50% { transform: translate3d(0.25rem, -0.4rem, 0) rotate(5deg) scale(1.02); }
}

@keyframes intro-card-glow {
  0%, 100% { box-shadow: 0 24px 70px rgb(21 43 29 / 10%), 0 2px 8px rgb(21 43 29 / 4%); }
  50% { box-shadow: 0 30px 82px rgb(21 43 29 / 14%), 0 2px 10px rgb(21 43 29 / 6%); }
}

@keyframes intro-item-reveal {
  from { opacity: 0; transform: translateY(0.45rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes intro-content-leave {
  to { opacity: 0; transform: translateY(-0.35rem) scale(0.99); }
}

@media (prefers-reduced-motion: reduce) {
  .intro-content,
  .intro-screen::before,
  .intro-screen::after,
  body.intro-active .intro-floating-food > span:not(.intro-background-sparkle),
  .intro-background-sparkle,
  .intro-logo,
  .intro-logo-stage::before,
  .intro-garnish,
  .intro-sparkle,
  .intro-progress-fill,
  .intro-loading-dots i {
    animation: none;
  }
}
