/* ==========================================================================
   Biryani Katha — comic-book landing page
   Artboard: 1512×5177. Scaling: 1rem = 10px @1512 (html font-size = 100vw/151.2)
   ========================================================================== */

:root {
  --green: #3e5626;
  --mustard: #c08529;
  --cream: #fadd9d;
  --yellow: #ffe464;
  --maroon: #41001b;
  --ink: #000;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: calc(100vw / 151.2); }

body {
  background: var(--green);
  overflow-x: hidden;
  font-family: 'Satoshi', sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; }

.stage {
  position: relative;
  width: 151.2rem;
  height: 517.7rem;
  margin: 0 auto;
}

/* ---- side pattern rails ---- */
.rail {
  position: absolute;
  top: 0;
  width: 5.4rem;
  height: 100%;
  background-image: url('assets/pattern-tile.png');
  background-size: 5.4rem 43.14rem;
  background-repeat: repeat-y;
}
.rail--left { left: 0; }
.rail--right { right: 0; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: absolute;
  left: 10.7rem;
  top: 9.9rem;
  width: 129.9rem;
  height: 84.5rem;
  background: var(--mustard);
  border-radius: 1rem;
  overflow: hidden;
}
/* black frame drawn as overlay so children keep outer-edge coordinates */
.hero::after,
.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1.3rem solid var(--ink);
  border-radius: 1rem;
  pointer-events: none;
}

.hero-rays {
  position: absolute;
  left: -11.5rem;
  top: 0;
  width: 129.9rem;
  height: 106.5rem;
}

.hero-cream {
  position: absolute;
  left: 15.1rem;
  top: 10.6rem;
  width: 99.8rem;
  height: 51.3rem;
  background: #fadd9d;
  border: 1.34rem solid var(--ink);
  border-radius: 0.76rem;
  overflow: hidden;
}

.cream-dots {
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 98.2rem;
  height: 48.4rem;
}

.hero-title {
  position: absolute;
  left: 0;
  right: 0;
  top: 4.5rem;
  font-family: 'Bowlby One SC', cursive;
  font-weight: 400;
  font-size: 10rem;
  line-height: 1.2;
  color: var(--green);
  text-align: center;
  white-space: nowrap;
}

.hero-sub {
  position: absolute;
  left: 1.9rem;
  top: 42.3rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
}

.hero-spicebox {
  position: absolute;
  left: 79.3rem;
  top: 36.5rem;
  width: 35.7rem;
  height: 32.4rem;
}

/* ---- speech balloons (shared) ---- */
.balloon { position: absolute; }
.balloon-outer,
.balloon-inner { position: absolute; left: 0; }
.balloon-text {
  position: absolute;
  left: calc(50% - 0.25rem);
  transform: translateX(-50%);
  width: 37.9rem;
  font-size: 2rem;
  font-weight: 900;
  color: var(--ink);
  text-align: center;
}

.bubble--hero { left: 41.8rem; top: 63.5rem; width: 46rem; height: 13rem; }
.bubble--hero .balloon-outer { top: 0.5rem; width: 46rem; height: 12.5rem; }
.bubble--hero .balloon-inner { top: 0; width: 45.5rem; height: 12.47rem; }
.bubble--hero .balloon-text { top: 2rem; font-size: 2.2rem; font-weight: 700; color: #fff; }

/* ==========================================================================
   COMIC STORY GRID
   ========================================================================== */
.comic {
  position: absolute;
  left: 10.6rem;
  top: 97.7rem;
  width: 130rem;
  height: 218.9rem;
  background: #fff;
}

.panel { position: absolute; }
.panel-art,
.panel-border {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.panel-border { z-index: 30; }
.comic .balloon,
.thought-cloud,
.spicebox-small { z-index: 40; }

.spicebox-small {
  position: absolute;
  left: -3.4rem;
  top: 28.9rem;
  width: 16.7rem;
  height: 13.4rem;
}

.balloon--1 { left: -5.5rem; top: 18rem;   width: 46rem; height: 13rem; }
.balloon--1 .balloon-outer { top: -0.7rem;  width: 46rem;   height: 13.7rem; }
.balloon--1 .balloon-inner { top: -1.2rem;  width: 45.5rem; height: 13.67rem; }
.balloon--1 .balloon-text  { top: 0.7rem; }

.balloon--2 { left: 91.5rem; top: 8.5rem;  width: 46rem; height: 17.5rem; }
.balloon--2 .balloon-outer { top: 0.6rem;   width: 46rem;   height: 16.9rem; }
.balloon--2 .balloon-inner { top: 0;        width: 45.5rem; height: 16.97rem; }
.balloon--2 .balloon-text  { top: 2.7rem; left: calc(50% - 0.45rem); }

.balloon--3 { left: 60.7rem; top: 43.1rem; width: 46rem; height: 18rem; }
.balloon--3 .balloon-outer { top: 0;        width: 46rem;   height: 18rem; }
.balloon--3 .balloon-inner { top: 0;        width: 45.5rem; height: 17.47rem; }
.balloon--3 .balloon-text  { top: 3rem; }

.balloon--4 { left: 5.7rem; top: 129.7rem; width: 46rem; height: 13.6rem; }
.balloon--4 .balloon-outer { top: -2.93rem; width: 46rem;   height: 16.23rem; }
.balloon--4 .balloon-inner { top: -2.35rem; width: 45.5rem; height: 15.95rem; }
.balloon--4 .balloon-text  { top: 3.5rem; }

.balloon--5 { left: 88rem; top: 158.5rem;  width: 46rem; height: 17.5rem; }
.balloon--5 .balloon-outer { top: 0.6rem;   width: 46rem;   height: 16.9rem; }
.balloon--5 .balloon-inner { top: 0;        width: 45.5rem; height: 16.97rem; }
.balloon--5 .balloon-text  { top: 3.7rem; }

.thought-cloud {
  position: absolute;
  left: 63.3rem;
  top: 86.3rem;
  width: 38.6rem;
  height: 36.8rem;
}
.cloud-shape {
  position: absolute;
  left: 8%;
  top: 8%;
  width: 84%;
  height: 84%;
  transform: scaleX(-1);
}
.cloud-text {
  position: absolute;
  left: calc(50% + 0.2rem);
  transform: translateX(-50%);
  top: 10.5rem;
  width: 22.6rem;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  text-align: center;
}

/* ==========================================================================
   CTA — THE STORY CONTINUES
   ========================================================================== */
.cta {
  position: absolute;
  left: 10.7rem;
  top: 319.6rem;
  width: 129.9rem;
  height: 84.5rem;
  background: var(--mustard);
  border-radius: 1rem;
  overflow: hidden;
}

.cta-rays {
  position: absolute;
  left: -11.5rem;
  top: 0;
  width: 129.9rem;
  height: 106.5rem;
}

.cta-cream {
  position: absolute;
  left: 15.1rem;
  top: 10.6rem;
  width: 99.8rem;
  height: 51.3rem;
  background: #fadd9d;
  border: 1.34rem solid var(--ink);
  border-radius: 0.76rem;
  overflow: hidden;
}

.cta-burst {
  position: absolute;
  left: 12.4rem;
  top: 0.9rem;
  width: 75.2rem;
  height: 63.2rem;
}

.cta-cloud {
  position: absolute;
  left: 7.8rem;
  top: 5.13rem;
  width: 80.9rem;
  height: 70.3rem;
}
.cloud-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* title is baked into the cloud artwork; keep real text for a11y/SEO */
.cta-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.btn-order {
  position: absolute;
  left: 24.5rem;
  top: 35.77rem;
  width: 30.8rem;
  height: 9.2rem;
  text-decoration: none;
}
.btn-order::before {
  content: '';
  position: absolute;
  left: 0.1rem;
  top: 0.7rem;
  width: 30.7rem;
  height: 8.5rem;
  border-radius: 10rem;
  background: var(--maroon);
}
.btn-order-face {
  position: absolute;
  left: 0;
  top: 0;
  width: 30.8rem;
  height: 7.7rem;
  border-radius: 10rem;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  color: var(--ink);
  letter-spacing: 0.02em;
  transition: transform 0.15s ease;
}
.btn-order:hover .btn-order-face,
.btn-order:focus-visible .btn-order-face { transform: translate(0.1rem, 0.7rem); }

.cta-bowl {
  position: absolute;
  left: 80.4rem;
  top: 50.9rem;
  width: 34.9rem;
  height: 30.2rem;
}

/* ==========================================================================
   ORDER SECTION
   ========================================================================== */
.order {
  position: absolute;
  left: 0;
  top: 405.7rem;
  width: 151.2rem;
  height: 77rem;
}

.order-left { position: absolute; left: 10.5rem; top: 1.3rem; }
.order-left img { width: 60.4rem; height: 71.2rem; }

.hotspot-gallery {
  position: absolute;
  left: 4.5rem;
  top: 44rem;
  width: 52.5rem;
  height: 14.5rem;
  transform: rotate(-4deg);
}

.order-right { position: absolute; left: 72.7rem; top: 1rem; }
.order-right img { width: 67.8rem; height: 76.9rem; }

/* ---- blobs ---- */
.blob { position: absolute; }
.blob-bg { position: absolute; }

.btn-white {
  position: absolute;
  width: 19.4rem;
  height: 4.5rem;
  background: #fff;
  border: 0.2rem solid var(--ink);
  box-shadow: 0.2rem 0.4rem 0 0 var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-white:hover,
.btn-white:focus-visible {
  transform: translate(0.2rem, 0.4rem);
  box-shadow: 0 0 0 0 var(--ink);
}

.blob--swiggy { left: 72.6rem; top: 5.9rem; width: 36.2rem; height: 25.2rem; }
.blob--swiggy .blob-bg { left: 0.3rem; top: 0.2rem; width: 35.9rem; height: 24.57rem; }
.swiggy-mark {
  position: absolute;
  left: 14.6rem;
  top: 3rem;
  width: 10.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.14rem;
}
.swiggy-pin { width: 3.97rem; height: 5.86rem; }
.swiggy-word { width: 10.2rem; height: 4.84rem; }
.btn-swiggy { left: 10rem; top: 14rem; }

.blob--zomato { left: 110.9rem; top: 4.9rem; width: 30.3rem; height: 25.3rem; }
.blob--zomato .blob-bg { left: 0; top: -0.3rem; width: 30.3rem; height: 25.6rem; }
.zomato-word { position: absolute; left: 3.2rem; top: 6.4rem; width: 24.4rem; height: 5.2rem; transform: scaleY(-1); }
.btn-zomato { left: 5.7rem; top: 13.1rem; }

.blob--menu { left: 92.2rem; top: 34.6rem; width: 36.2rem; height: 25.2rem; }
.blob--menu .blob-bg { left: 0.3rem; top: 0.2rem; width: 35.9rem; height: 24.57rem; }
.menu-bowl { position: absolute; left: 13.4rem; top: 2.4rem; width: 8.6rem; height: 8.2rem; }
.btn-menu { left: 6.5rem; top: 12.8rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  position: absolute;
  left: 0;
  top: 470.5rem;
  width: 151.2rem;
  height: 47.2rem;
}
.footer-black { position: absolute; left: 12.1rem; top: 5.3rem; width: 127.9rem; height: 37.7rem; transform: scaleX(-1); }
.footer-white { position: absolute; left: 11.4rem; top: 0; width: 128.5rem; height: 39.75rem; transform: scaleX(-1); }
.footer-logo {
  position: absolute;
  left: 40.1rem;
  top: 10.8rem;
  width: 71.9rem;
  height: 29rem;
  overflow: hidden;
}
.footer-logo img {
  position: absolute;
  left: -17.22%;
  top: -117%;
  width: 134.57%;
  height: 333.5%;
}

/* ==========================================================================
   ENTRY ANIMATIONS
   ========================================================================== */
[data-anim] { will-change: transform, opacity; }

[data-anim="pop"] {
  opacity: 0;
  transform: scale(0.2) rotate(-4deg);
  transform-origin: var(--origin, 50% 100%);
}
[data-anim="pop"].in {
  animation: popIn 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: var(--delay, 0ms);
}
@keyframes popIn {
  0%   { opacity: 0; transform: scale(0.2) rotate(-4deg); }
  60%  { opacity: 1; transform: scale(1.08) rotate(1.5deg); }
  80%  { transform: scale(0.97) rotate(-0.5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

[data-anim="cloud"] {
  opacity: 0;
  transform: scale(0.4);
  transform-origin: 85% 90%;
}
[data-anim="cloud"].in {
  animation:
    cloudIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both,
    cloudFloat 4.5s 1.4s ease-in-out infinite alternate;
  animation-delay: var(--delay, 0ms), calc(var(--delay, 0ms) + 1400ms);
}
@keyframes cloudIn {
  0%   { opacity: 0; transform: scale(0.4); }
  65%  { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes cloudFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-0.8rem); }
}

[data-anim="burst"] {
  opacity: 0;
  transform: scale(0) rotate(-25deg);
  transform-origin: 50% 50%;
}
[data-anim="burst"].in {
  animation: burstIn 0.7s 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes burstIn {
  0%   { opacity: 0; transform: scale(0) rotate(-25deg); }
  70%  { opacity: 1; transform: scale(1.12) rotate(4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

[data-anim="panel"] {
  opacity: 0;
  transform: translateY(2.4rem);
}
[data-anim="panel"].in {
  animation: panelIn 0.55s ease-out both;
  animation-delay: var(--delay, 0ms);
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(2.4rem); }
  to   { opacity: 1; transform: translateY(0); }
}

[data-anim="rise"] {
  opacity: 0;
  transform: translateY(1.6rem);
}
[data-anim="rise"].in {
  animation: riseIn 0.5s ease-out both;
  animation-delay: var(--delay, 0ms);
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(1.6rem); }
  to   { opacity: 1; transform: translateY(0); }
}

html.noanim [data-anim] {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  [data-anim] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .cloud-shape { transform: scaleX(-1) !important; }
}
