/* AMIGO PIZZA — GSAP EXPERIENCE LAYER */

:root {
  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-body: "Manrope", Arial, sans-serif;
  --font-marker: "Permanent Marker", "Comic Sans MS", cursive;
  --motion-ease: cubic-bezier(.2, .8, .2, 1);
}

html {
  scroll-behavior: auto;
}

body {
  font-family: var(--font-body);
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(214, 51, 37, .08),
      transparent 28%
    ),
    radial-gradient(
      circle at 88% 40%,
      rgba(233, 165, 28, .055),
      transparent 28%
    ),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
h4,
.price,
.hero-price strong,
.value .num {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .015em;
}

h1 {
  line-height: .9;
  letter-spacing: .005em;
}

h2 {
  line-height: .94;
  letter-spacing: .01em;
}

.hero-copy h1 em {
  display: inline-block;
  font-family: var(--font-marker);
  text-transform: none;
  letter-spacing: -.045em;
  transform: rotate(-2deg);
}

.eyebrow {
  font-family: var(--font-marker);
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: none;
  font-size: .9rem;
}

.lead {
  font-weight: 500;
}

/* Header */

.header {
  transition:
    height .35s var(--motion-ease),
    background .35s,
    border-color .35s;
  will-change: transform;
}

.header.is-scrolled {
  background: rgba(7, 7, 6, .94);
  border-color: rgba(233, 165, 28, .22);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
}

.nav {
  transition: height .35s var(--motion-ease);
}

.header.is-scrolled .nav {
  height: 68px;
}

.brand img {
  transition:
    width .35s var(--motion-ease),
    filter .35s;
}

.header.is-scrolled .brand img {
  width: 112px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .35));
}

.nav-links a {
  position: relative;
  overflow: hidden;
  background: transparent !important;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 99px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--motion-ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Buttons */

.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
}

.btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(
    110deg,
    transparent 25%,
    rgba(255, 255, 255, .28) 46%,
    transparent 68%
  );
  transform: translateX(-140%) skewX(-16deg);
}

.btn:hover::before {
  transform: translateX(140%) skewX(-16deg);
  transition: transform .72s var(--motion-ease);
}

.btn,
.icon-btn,
.add-icon {
  will-change: transform;
}

.btn-primary {
  box-shadow:
    0 15px 45px rgba(214, 51, 37, .3),
    inset 0 1px rgba(255, 255, 255, .18);
}

/* Animated words */

.motion-word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding: .03em 0;
  margin: -.03em 0;
}

.motion-word {
  display: inline-block;
  will-change: transform, opacity;
}

.motion-word-wrap em,
.motion-word em {
  display: inline-block;
}

/* Scroll progress */

.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  z-index: 10000;
  pointer-events: none;
  background: rgba(255, 255, 255, .04);
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(
    90deg,
    var(--gold),
    var(--red),
    #fff0d2
  );
  box-shadow: 0 0 18px rgba(233, 165, 28, .65);
}

/* Website loader */

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  background: #080807;
  overflow: hidden;
}

.site-loader::before,
.site-loader::after {
  content: "";
  position: absolute;
  width: 56vw;
  height: 56vw;
  min-width: 520px;
  min-height: 520px;
  border: 1px solid rgba(233, 165, 28, .16);
  border-radius: 50%;
}

.site-loader::after {
  width: 38vw;
  height: 38vw;
  min-width: 360px;
  min-height: 360px;
  border-color: rgba(214, 51, 37, .2);
}

.loader-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  width: min(420px, 80vw);
}

.loader-logo {
  width: 210px;
  max-height: 170px;
  object-fit: contain;
  margin: 0 auto 18px;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .4));
}

.loader-kicker {
  font-family: var(--font-marker);
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 22px;
}

.loader-track {
  height: 4px;
  background: rgba(255, 255, 255, .09);
  overflow: hidden;
  border-radius: 99px;
}

.loader-track span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold), var(--red));
}

.loader-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 11px;
  color: #a89d88;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .64rem;
}

.loader-count {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .04em;
  color: #fff;
}

.loader-slice {
  position: absolute;
  right: 8%;
  top: 8%;
  font-size: clamp(4rem, 10vw, 9rem);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .3));
  transform: rotate(20deg);
}

/* =========================================================
   PAGE TRANSITION — COMPATIBLE WITH THE UPDATED GSAP SCRIPT
   ========================================================= */

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 19000;

  display: grid;
  place-items: center;

  background: var(--red, #d63325);

  /*
   * The transition starts underneath the viewport.
   * GSAP animates yPercent from 100 to 0.
   */
  transform: translate3d(0, 100%, 0);

  pointer-events: none;
  overflow: hidden;

  opacity: 1;
  visibility: visible;

  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.page-transition.is-active {
  pointer-events: auto;
}

.page-transition span {
  display: block;

  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 20rem);
  line-height: .8;
  letter-spacing: .02em;

  color: #fff;
  text-shadow: 14px 14px 0 rgba(0, 0, 0, .12);

  user-select: none;
  -webkit-user-select: none;
}

/* Custom cursor */

.motion-cursor,
.motion-cursor-dot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 21000;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.motion-cursor {
  width: 42px;
  height: 42px;
  border: 1px solid #fff;
  transition:
    width .2s,
    height .2s,
    background .2s,
    border-color .2s;
}

.motion-cursor-dot {
  width: 5px;
  height: 5px;
  background: #fff;
}

.motion-cursor.is-hover {
  width: 66px;
  height: 66px;
  background: rgba(255, 255, 255, .14);
  border-color: transparent;
}

.has-custom-cursor,
.has-custom-cursor a,
.has-custom-cursor button {
  cursor: none;
}

.has-custom-cursor input,
.has-custom-cursor textarea,
.has-custom-cursor select {
  cursor: auto;
}

/* Hero */

.hero {
  min-height: min(840px, calc(100vh - 35px));
  background:
    radial-gradient(
      circle at 72% 52%,
      rgba(214, 51, 37, .24),
      transparent 31%
    ),
    radial-gradient(
      circle at 80% 35%,
      rgba(233, 165, 28, .11),
      transparent 22%
    ),
    linear-gradient(125deg, #070706 40%, #17120d);
}

.hero-grid {
  position: relative;
}

.hero-grid::before {
  content: "AMIGO";
  position: absolute;
  left: -4vw;
  top: 47%;
  z-index: -1;

  font-family: var(--font-display);
  font-size: clamp(11rem, 25vw, 27rem);
  line-height: .7;
  letter-spacing: .02em;
  white-space: nowrap;

  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 231, 207, .05);

  transform: translateY(-50%);
}

.hero-copy {
  max-width: 690px;
}

.hero-copy h1 {
  font-size: clamp(4.8rem, 9.2vw, 9.2rem);
  max-width: 780px;
}

.hero-copy .lead {
  max-width: 610px;
}

.hero-visual {
  perspective: 1200px;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-visual::before {
  width: 78%;
  aspect-ratio: 1;
  border: 1px solid rgba(233, 165, 28, .18);
  box-shadow:
    0 0 0 45px rgba(233, 165, 28, .025),
    0 0 0 90px rgba(214, 51, 37, .018);
}

.hero-visual::after {
  width: 42%;
  aspect-ratio: 1;
  background: rgba(214, 51, 37, .18);
  filter: blur(70px);
}

.motion-ready .hero-pizza {
  position: relative;
  z-index: 2;
  animation: none;
  transform-origin: 50% 50%;
  will-change: transform;
}

.hero-stamp {
  z-index: 4;
  background: rgba(16, 15, 12, .85);
  backdrop-filter: blur(10px);
}

.hero-price {
  z-index: 4;
  border: 1px solid rgba(0, 0, 0, .08);
}

/* Floating hero icons */

.hero-floaters {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-floater {
  position: absolute;

  display: grid;
  place-items: center;

  width: 56px;
  height: 56px;
  border-radius: 18px;

  background: rgba(17, 16, 13, .72);
  border: 1px solid rgba(243, 231, 207, .13);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .35);

  font-size: 1.6rem;
}

.hero-floater:nth-child(1) {
  left: 8%;
  bottom: 22%;
}

.hero-floater:nth-child(2) {
  right: 5%;
  top: 18%;
}

.hero-floater:nth-child(3) {
  right: 19%;
  bottom: 5%;
}

.hero-floater:nth-child(4) {
  left: 19%;
  top: 8%;
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 5;

  display: flex;
  align-items: center;
  gap: 10px;

  color: #817769;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .6rem;

  transform: translateX(-50%);
}

.hero-scroll-cue i {
  display: block;
  width: 42px;
  height: 1px;
  background: var(--gold);
  transform-origin: left;
}

/* Animated marquee */

.motion-marquee {
  position: relative;
  z-index: 5;

  overflow: hidden;

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);

  background: var(--gold);
  color: #17120a;

  transform: rotate(-1deg) scale(1.015);
  margin: -4px 0 10px;
}

.motion-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.motion-marquee-group {
  display: flex;
  align-items: center;
  flex: none;
  padding: 13px 0;
}

.motion-marquee span {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.7vw, 2.55rem);
  line-height: 1;
  letter-spacing: .055em;
  white-space: nowrap;
}

.motion-marquee b {
  font-size: 1.25rem;
  margin: 0 26px;
  color: var(--red);
}

/* Product cards */

.product-card {
  transform-style: preserve-3d;
  perspective: 900px;
  will-change: transform;
  transition:
    border-color .35s,
    box-shadow .35s;
}

.motion-ready .product-card:hover {
  transform: none;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;

  border-radius: inherit;
  pointer-events: none;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, .07),
    transparent 38%
  );

  opacity: .5;
}

.card-shine {
  position: absolute;
  inset: -60%;
  z-index: 5;

  pointer-events: none;

  background: radial-gradient(
    circle at var(--shine-x, 50%) var(--shine-y, 50%),
    rgba(255, 255, 255, .2),
    transparent 18%
  );

  opacity: 0;
  transition: opacity .25s;
}

.product-card:hover .card-shine {
  opacity: 1;
}

.product-image-wrap,
.product-body,
.badge {
  transform: translateZ(24px);
}

.product-image {
  will-change: transform;
}

.add-icon {
  box-shadow: 0 10px 28px rgba(214, 51, 37, .3);
}

/* Offer section */

.offer {
  isolation: isolate;
}

.offer::before {
  content: "AMIGO10";
  position: absolute;
  right: -2%;
  bottom: -14%;
  z-index: -1;

  font-family: var(--font-display);
  font-size: clamp(9rem, 20vw, 18rem);
  line-height: .7;

  color: rgba(255, 255, 255, .07);
  transform: rotate(-7deg);
}

.offer-image img {
  will-change: transform;
}

.offer-code {
  font-family: var(--font-display);
  font-size: 1.45rem;
}

/* Story and content panels */

.story-media,
.about-collage,
.product-gallery {
  perspective: 1100px;
}

.story-media img,
.about-collage img {
  will-change: transform;
}

.story-badge {
  font-family: var(--font-marker);
  text-transform: none;
}

.step,
.review,
.value,
.timeline-item,
.contact-card,
.panel,
.summary,
.faq-item {
  transition:
    border-color .3s,
    box-shadow .3s,
    background .3s;
  will-change: transform;
}

.step:hover,
.review:hover,
.value:hover,
.contact-card:hover,
.panel:hover {
  border-color: rgba(233, 165, 28, .34);
  box-shadow: 0 22px 65px rgba(0, 0, 0, .23);
}

/* Inner page hero */

.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 390px;
}

.page-hero::before {
  content: "AMIGO";
  position: absolute;
  right: -3vw;
  bottom: -.2em;
  z-index: -1;

  font-family: var(--font-display);
  font-size: clamp(10rem, 28vw, 28rem);
  line-height: .65;

  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .055);
}

.page-hero h1 {
  font-size: clamp(5rem, 11vw, 9.5rem);
  line-height: .8;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

/* Product details */

.product-gallery img {
  will-change: transform;
  filter: drop-shadow(0 38px 30px rgba(0, 0, 0, .42));
}

.ingredients span {
  transition:
    transform .25s,
    background .25s,
    border-color .25s;
}

.ingredients span:hover {
  transform: translateY(-4px) rotate(-2deg);
  border-color: var(--gold);
  background: rgba(233, 165, 28, .1);
}

/* FAQ */

.faq-q span:last-child {
  display: grid;
  place-items: center;

  width: 28px;
  height: 28px;
  border-radius: 50%;

  background: rgba(214, 51, 37, .12);

  transition:
    transform .35s var(--motion-ease),
    background .35s;
}

.faq-item.open .faq-q span:last-child {
  background: var(--red);
}

/* Ripple and add-to-cart animation */

.ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;

  background: rgba(255, 255, 255, .45);

  transform: translate(-50%, -50%) scale(0);
}

.cart-fly {
  position: fixed;
  z-index: 22000;

  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  background: var(--gold);

  font-size: 1.35rem;
  pointer-events: none;

  box-shadow: 0 14px 35px rgba(0, 0, 0, .35);
}

/* Newsletter */

.newsletter {
  position: relative;
  overflow: hidden;
}

.newsletter::after {
  content: "🍕";
  position: absolute;
  right: 3%;
  top: 50%;

  font-size: 8rem;
  opacity: .08;

  transform: translateY(-50%) rotate(15deg);
}

/* Footer */

.footer-logo {
  filter: drop-shadow(0 20px 25px rgba(0, 0, 0, .32));
}

.socials a {
  transition:
    transform .25s var(--motion-ease),
    background .25s,
    color .25s;
}

.socials a:hover {
  transform: translateY(-5px) rotate(-6deg);
  background: var(--red);
  color: #fff;
}

/* Tablet */

@media (max-width: 1020px) {
  .hero {
    min-height: auto;
  }

  .hero-copy h1 {
    font-size: clamp(4.4rem, 13vw, 7.4rem);
  }

  .hero-grid::before {
    top: 32%;
    font-size: 33vw;
  }

  .motion-cursor,
  .motion-cursor-dot {
    display: none !important;
  }

  .has-custom-cursor,
  .has-custom-cursor a,
  .has-custom-cursor button {
    cursor: auto;
  }

  .motion-marquee {
    transform: rotate(-.5deg) scale(1.01);
  }
}

/* Mobile */

@media (max-width: 680px) {
  h1,
  h2,
  h3,
  h4 {
    letter-spacing: .02em;
  }

  .header.is-scrolled .nav {
    height: 62px;
  }

  .hero-copy h1 {
    font-size: clamp(4rem, 19vw, 6rem);
  }

  .hero-grid::before {
    display: none;
  }

  .hero-floater {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    border-radius: 13px;
  }

  .hero-floater:nth-child(1) {
    left: 2%;
    bottom: 16%;
  }

  .hero-floater:nth-child(2) {
    right: 0;
    top: 13%;
  }

  .hero-floater:nth-child(3),
  .hero-floater:nth-child(4) {
    display: none;
  }

  .hero-scroll-cue {
    display: none;
  }

  .page-hero h1 {
    font-size: clamp(4rem, 19vw, 6.2rem);
  }

  .motion-marquee-group {
    padding: 10px 0;
  }

  .motion-marquee b {
    margin: 0 16px;
  }

  .site-loader::before {
    min-width: 430px;
    min-height: 430px;
  }

  .loader-logo {
    width: 170px;
  }

  .page-transition span {
    font-size: 31vw;
  }
}

/* Accessibility and reduced-motion settings */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .motion-cursor,
  .motion-cursor-dot,
  .site-loader,
  .hero-floaters,
  .hero-scroll-cue {
    display: none !important;
  }

  .hero-pizza {
    animation: none !important;
  }

  .motion-marquee-track {
    transform: none !important;
  }

  .btn,
  .product-card,
  .product-image {
    transition: none !important;
  }

  /*
   * Do not hide the page-transition here.
   * The updated JavaScript controls its position and animation.
   */
  .page-transition {
    display: grid !important;
    visibility: visible !important;
  }
}