/* ========================================================================
   GATS — Project case-study page (live recreation)
   ======================================================================== */

:root {
  --cream:   #FFFBE9;
  --black:   #151616;
  --red:     #DA1849;
  --ink:     #000000;

  /* Display font: Rubik Distressed — gritty, stamped/printed feel matches the
     hand-printed folk illustrations.
     Body: Heebo — clean Hebrew sans */
  --font-display: "Rubik Distressed", "Heebo", Georgia, serif;
  --font-body:    "Heebo", system-ui, sans-serif;

  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --panel-w: 100vw;
}

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

html, body {
  height: 100%;
  background: var(--cream);
  color: var(--black);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background-image: url("assets/paper-texture.jpg");
  /* Two repeats across the viewport (one tile = 50% of width, full height) */
  background-size: 50% 100%;
  background-position: 0 center;
  background-repeat: repeat-x;
  background-attachment: fixed;
  background-blend-mode: multiply;
  background-color: var(--cream);
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
button { font-family: inherit; }

/* ========================================================================
   RAIL — horizontal scroll container
   ======================================================================== */

.rail {
  position: fixed; inset: 0;
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.25) transparent;
  direction: ltr;
}
.panel { direction: ltr; }
.panel .display, .panel p, .panel h1, .panel h2, .panel h3,
.panel .about-text, .contact-sub, .gats-footer, .merch-card p,
.merch-hint, .modal-text {
  direction: rtl;
}

.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-track { background: transparent; }
.rail::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.18);
  border-radius: 999px;
}
.rail::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.35); }

.panel {
  position: relative;
  flex: 0 0 var(--panel-w);
  width: var(--panel-w);
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(100px, 12vh, 160px) clamp(32px, 6vw, 120px) clamp(50px, 6vh, 90px);
  overflow: hidden;
}

/* ========================================================================
   NAV
   ======================================================================== */

.gats-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: 80px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 64px);
  z-index: 20;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,251,233,0.92), rgba(255,251,233,0));
  /* Force LTR layout so DOM order = visual order regardless of page dir */
  direction: ltr;
}
.gats-nav > * { pointer-events: auto; }

.gats-nav-social {
  background: transparent; border: 0; cursor: pointer; padding: 6px;
  transition: transform 0.3s var(--ease);
}
.gats-nav-social:hover { transform: scale(1.08); }
.gats-nav-social svg { display: block; }

.gats-nav-links {
  display: flex; flex-direction: row; list-style: none;
  gap: clamp(28px, 4vw, 64px);
  font-family: var(--font-body);
  font-weight: 500; font-size: 18px;
}
.gats-nav-links a {
  color: var(--black);
  transition: color 0.25s var(--ease);
}
.gats-nav-links a:hover { color: var(--red); }

.gats-nav-mark img {
  width: 42px; height: 27px;
  aspect-ratio: 58.99 / 38;
  transition: transform 0.4s var(--ease);
}
.gats-nav-mark:hover img { transform: rotate(45deg); }

/* ========================================================================
   BACK-TO-PORTFOLIO CHIP
   ======================================================================== */

.back-chip {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 30;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: var(--black); color: var(--cream);
  border-radius: 999px;
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.back-chip:hover { background: var(--red); transform: translateY(-2px); }
.back-chip-arrow {
  display: inline-block; transform: scaleX(-1);
  transition: transform 0.3s var(--ease);
}
.back-chip:hover .back-chip-arrow { transform: scaleX(-1) translateX(-4px); }
.back-chip-text b { font-weight: 700; }

/* ========================================================================
   SCROLL PROGRESS + HINT
   ======================================================================== */

.scroll-progress {
  position: fixed; left: 0; bottom: 0;
  height: 3px;
  background: var(--red);
  width: 0%;
  z-index: 25;
  transition: width 0.15s linear;
}

.scroll-hint {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 500; font-size: 13px;
  letter-spacing: 0.06em; color: var(--black);
  background: rgba(255, 251, 233, 0.85);
  padding: 8px 16px;
  border-radius: 999px;
  z-index: 22;
  pointer-events: none;
  animation: hintPulse 2.2s ease-in-out infinite;
}
.scroll-hint .arrow {
  display: inline-block;
  animation: hintArrow 1.6s ease-in-out infinite;
}
.scroll-hint.hide { opacity: 0; transition: opacity 0.5s var(--ease); }
@keyframes hintPulse {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}
@keyframes hintArrow {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(6px); }
}

/* ========================================================================
   TYPOGRAPHY — Tanakh-style display
   ======================================================================== */

.display {
  font-family: var(--font-display);
  font-weight: 400; /* Rubik Distressed is a single-weight font */
  color: var(--black);
  line-height: 1.05;
  letter-spacing: 0.005em;
}
.display-lg { font-size: clamp(64px, 9.5vw, 160px); }
.display-md { font-size: clamp(48px, 7vw, 116px); }
.display em {
  font-style: normal;
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.4em;
  letter-spacing: 0.01em;
  margin-top: 0.5em;
  color: var(--black);
}

/* ========================================================================
   PANEL 1 — HERO
   Hero illustration fills viewport horizontally and sits at the bottom
   (figures and truck stand on the ground line). Logo overlays at the top.
   ======================================================================== */

.panel-hero {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
}
.hero-logo {
  position: absolute;
  top: clamp(96px, 13vh, 160px);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  pointer-events: none;
}
.hero-logo-img {
  width: clamp(180px, 16vw, 280px);
  height: auto;
  aspect-ratio: 209 / 179;
  display: block;
  /* Source SVG is drawn upside-down (matches Figma rotate(180deg)) — flip it back. */
  transform: rotate(180deg);
}
/* Hero illustration: bleeds full-width along the bottom edge, figures stand on
   the ground line. Width fits viewport so all 4 elements (figure, plant, truck,
   figure) stay visible together. */
.hero-illustration {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
}

/* ========================================================================
   PANEL 2 — JUICE
   ======================================================================== */

.panel-juice {
  /* Free composition — titles sit on diagonals, cans float in center,
     arrow loops between them. Position pieces absolutely. */
  display: block;
  padding: 0;
}
.juice-title-top {
  position: absolute;
  top: clamp(90px, 13vh, 150px);
  right: clamp(24px, 5vw, 80px);
  font-size: clamp(48px, 8.5vw, 130px);
  line-height: 0.95;
  white-space: nowrap;
  z-index: 3;
}
.juice-title-bottom {
  position: absolute;
  bottom: clamp(70px, 11vh, 140px);
  left: clamp(24px, 5vw, 80px);
  font-size: clamp(48px, 8.5vw, 130px);
  line-height: 0.95;
  white-space: nowrap;
  z-index: 3;
}
.juice-art {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  /* It's a button now — strip default styles */
  background: transparent; border: 0; padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.juice-art img {
  width: min(72vw, 1100px);
  max-height: 78vh;
  object-fit: contain;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.18));
  transition: transform 0.5s var(--ease-bounce);
}
.juice-art:hover img { transform: scale(1.04) rotate(-1deg); }
.juice-art:focus-visible { outline: 3px dashed var(--red); outline-offset: 8px; border-radius: 16px; }
.juice-arrow {
  position: absolute;
  /* Bottom-right corner, pointing left toward the cans */
  bottom: clamp(110px, 16vh, 200px);
  right: clamp(80px, 12vw, 220px);
  width: clamp(70px, 9vw, 140px);
  height: clamp(70px, 9vw, 140px);
  z-index: 4;
  animation: juiceArrowSpin 6s linear infinite;
}
@keyframes juiceArrowSpin {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}

/* ========================================================================
   PANEL 3 — ABOUT
   ======================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  width: 100%;
  max-width: 1300px;
}
.about-art {
  order: 2;
  display: flex; align-items: center; justify-content: center;
}
.about-art img {
  width: 100%; max-width: 420px; height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.12));
}
.about-copy { order: 1; }
.about-copy .display-lg {
  font-size: clamp(56px, 7vw, 116px);
  margin-bottom: clamp(20px, 2.5vh, 40px);
  text-align: right;
}
.about-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.7;
  text-align: right;
  color: var(--black);
  max-width: 56ch;
  margin-left: auto;
}
.about-text p { margin-bottom: 18px; }
.about-text p:last-child { margin-bottom: 0; }

/* ========================================================================
   PANEL 4 — MERCH (horizontal draggable carousel)
   ======================================================================== */

.panel-merch {
  flex-direction: column;
  gap: clamp(20px, 3vh, 40px);
  justify-content: center;
}
.merch-title {
  font-size: clamp(56px, 8.5vw, 148px);
  text-align: center;
  display: inline-flex; align-items: center;
  gap: clamp(20px, 3vw, 48px);
  justify-content: center;
}
.merch-star {
  font-size: 0.5em;
  color: var(--black);
  display: inline-block;
  animation: starSpin 12s linear infinite;
}
@keyframes starSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.merch-hint {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(21,22,22,0.5);
  text-align: center;
}
.merch-hint-arrow { display: inline-block; transform: rotate(0); margin-inline-start: 6px; }

.merch-carousel {
  position: relative;
  width: 100%;
  height: clamp(280px, 42vh, 460px);
  overflow: hidden;
  cursor: grab;
  user-select: none;
}
.merch-carousel:active { cursor: grabbing; }
.merch-carousel::before,
.merch-carousel::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: clamp(40px, 6vw, 120px);
  z-index: 2; pointer-events: none;
}
.merch-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--cream), transparent);
}
.merch-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--cream), transparent);
}

.merch-track {
  display: flex;
  height: 100%;
  gap: clamp(32px, 4vw, 64px);
  padding: 0 clamp(40px, 8vw, 120px);
  align-items: center;
  transition: transform 0.45s var(--ease-bounce);
  will-change: transform;
}
.merch-card {
  flex: 0 0 clamp(220px, 22vw, 320px);
  display: flex; flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.4s var(--ease-bounce);
}
.merch-card img {
  width: 100%; height: clamp(220px, 32vh, 360px);
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,0.18));
  transition: transform 0.5s var(--ease-bounce);
}
.merch-card p {
  margin-top: 16px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.merch-card:hover img {
  transform: scale(1.05) rotate(-2deg);
}
.merch-card.is-center img { transform: scale(1.08); }

/* ========================================================================
   PANEL 5 — TRACKER
   ======================================================================== */

.panel-tracker {
  flex-direction: column;
  gap: clamp(20px, 3vh, 40px);
  text-align: center;
  justify-content: center;
}
.tracker-title {
  font-size: clamp(56px, 8vw, 132px);
  line-height: 1;
}
.tracker-title em { font-size: 0.32em; margin-top: 0.5em; }
.tracker-art { width: min(900px, 80vw); }
.tracker-art img {
  width: 100%; height: auto;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.15));
}

/* ========================================================================
   PANEL 6 — CONTACT
   Decorative pillars on left & right, plants at bottom
   ======================================================================== */

.panel-contact { padding: 0; }
.contact-pillar {
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(80px, 14vw, 220px);
  pointer-events: none;
  z-index: 0;
}
.contact-pillar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.contact-pillar-left  { left: 0; }
.contact-pillar-right { right: 0; transform: scaleX(-1); }

.contact-inner {
  position: relative;
  z-index: 1;
  display: flex; flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(14px, 2vh, 24px);
  padding: clamp(110px, 14vh, 170px) clamp(32px, 6vw, 120px) clamp(120px, 16vh, 200px);
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.contact-title {
  font-size: clamp(48px, 6.5vw, 110px);
  line-height: 1;
}
.contact-sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(18px, 1.8vw, 28px);
  margin-bottom: clamp(12px, 1.5vh, 22px);
}

.contact-form {
  display: flex; flex-direction: column;
  gap: 14px;
  width: min(440px, 80vw);
  margin: 0 auto;
}
.contact-form input {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  text-align: center;
  background: var(--cream);
  border: 0;
  padding: 16px 22px;
  border-radius: 999px;
  box-shadow: 0 2px 15.3px rgba(0,0,0,0.15);
  color: var(--black);
  direction: rtl;
}
.contact-form input::placeholder { color: rgba(21,22,22,0.45); }
.contact-form input:focus {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.contact-submit {
  margin-top: 10px;
  background: var(--red);
  color: #fff;
  border: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  padding: 16px 48px;
  border-radius: 999px;
  cursor: pointer;
  align-self: center;
  min-width: 160px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease-bounce);
}
.contact-submit:hover { background: #b81340; transform: translateY(-2px) scale(1.04); }

.contact-plants {
  position: absolute;
  bottom: 36px; left: 0; right: 0;
  display: flex; justify-content: center;
  gap: clamp(32px, 6vw, 80px);
  font-size: clamp(28px, 3vw, 44px);
  color: var(--black);
  z-index: 1;
  pointer-events: none;
}

.gats-footer {
  position: absolute; bottom: 12px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: rgba(21,22,22,0.55);
  text-align: center;
  z-index: 2;
}
.gats-footer a { color: var(--red); font-weight: 700; letter-spacing: 0.02em; }

/* ========================================================================
   MODAL POPUP — after form submit
   ======================================================================== */

.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(21,22,22,0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.3s var(--ease) both;
}
.modal-card {
  position: relative;
  z-index: 1;
  background-image: url("assets/paper-texture.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  background-color: var(--cream);
  padding: clamp(36px, 6vh, 64px) clamp(40px, 8vw, 96px);
  border-radius: clamp(36px, 6vw, 80px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  text-align: center;
  animation: modalPop 0.55s var(--ease-bounce) both;
  max-width: min(640px, 90vw);
}
.modal-close {
  position: absolute;
  top: 16px; left: 16px;
  width: 36px; height: 36px;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--black);
  cursor: pointer;
  font-weight: 300;
  transition: transform 0.25s var(--ease-bounce), color 0.25s var(--ease);
}
.modal-close:hover { transform: rotate(90deg); color: var(--red); }
.modal-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 1.1;
  color: var(--black);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop {
  0%   { opacity: 0; transform: scale(0.6) rotate(-3deg); }
  60%  { opacity: 1; transform: scale(1.06) rotate(1deg); }
  100% { opacity: 1; transform: scale(1)   rotate(0); }
}

/* ========================================================================
   JUICE WHEEL MODAL — opens when clicking the juice cans
   ======================================================================== */

.juice-modal {
  position: fixed; inset: 0;
  z-index: 110;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream);
  background-image: url("assets/paper-texture.jpg");
  background-size: 50% 100%;
  background-position: 0 center;
  background-repeat: repeat-x;
  background-blend-mode: multiply;
  opacity: 1;
  overflow: hidden;
}
.juice-modal[hidden] { display: none !important; }
.juice-modal-backdrop {
  position: absolute; inset: 0;
  cursor: zoom-out;
}
.juice-modal-close {
  position: absolute;
  top: 20px; left: 20px;
  z-index: 5;
  width: 48px; height: 48px;
  background: var(--black);
  color: var(--cream);
  border: 0;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.3s var(--ease-bounce), background 0.3s var(--ease);
}
.juice-modal-close:hover { transform: rotate(90deg) scale(1.08); background: var(--red); }

/* Background plant — large, faded, centered behind the cans */
.juice-bg-plant {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}
.juice-bg-plant img {
  width: 70vmin; max-width: 700px; height: auto;
  object-fit: contain;
}

/* Tilted title sticker — top-right corner */
.juice-modal-title {
  position: absolute;
  top: clamp(110px, 14vh, 180px);
  right: clamp(40px, 8vw, 140px);
  font-size: clamp(48px, 7vw, 120px);
  line-height: 1;
  text-align: center;
  z-index: 4;
  transform: rotate(-12deg);
  -webkit-text-stroke: 3px var(--black);
  color: var(--cream);
  animation: modalPop 0.6s var(--ease-bounce) 0.15s both, juiceTitleWiggle 6s ease-in-out 0.8s infinite;
  pointer-events: none;
}
@keyframes juiceTitleWiggle {
  0%, 100% { transform: rotate(-12deg); }
  50%      { transform: rotate(-9deg);  }
}

/* Diamond stars */
.juice-star {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  animation: juiceStarSpin 14s linear infinite;
}
.juice-star.js-top {
  top: 14%; right: 35%;
  width: clamp(48px, 6vw, 90px);
  height: clamp(48px, 6vw, 90px);
}
.juice-star.js-right {
  top: 48%; right: 8%;
  width: clamp(28px, 3.5vw, 56px);
  height: clamp(28px, 3.5vw, 56px);
  animation-direction: reverse;
}
@keyframes juiceStarSpin {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}

/* Stage — holds main center cans + 4 rotating accents */
.juice-stage {
  position: relative;
  width: min(95vw, 1400px);
  height: min(90vh, 900px);
  z-index: 2;
}

/* Center prominent cans */
.juice-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -45%);
  width: min(46vw, 520px);
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.22));
  z-index: 3;
  animation: juiceCenterFloat 5s ease-in-out infinite;
}
.juice-center img { width: 100%; height: auto; display: block; }
@keyframes juiceCenterFloat {
  0%, 100% { transform: translate(-50%, -45%); }
  50%      { transform: translate(-50%, -48%); }
}

/* Accent cans — rotating in corners around the center */
.juice-accent {
  position: absolute;
  width: min(28vw, 320px);
  filter: drop-shadow(0 14px 22px rgba(0,0,0,0.2));
  cursor: pointer;
  transition: filter 0.35s var(--ease);
  z-index: 2;
}
.juice-accent img { width: 100%; height: auto; display: block; }
.juice-accent:hover { filter: drop-shadow(0 20px 28px rgba(0,0,0,0.28)) brightness(1.05); }

/* Position + tilt the 4 accents like the Figma — they orbit slowly */
.ja-tl {
  top: 6%; left: 4%;
  transform: rotate(-22deg);
  animation: juiceOrbitTL 9s ease-in-out infinite;
}
.ja-tr {
  top: 8%; right: 4%;
  transform: rotate(18deg);
  animation: juiceOrbitTR 9s ease-in-out infinite;
}
.ja-bl {
  bottom: 4%; left: 6%;
  transform: rotate(28deg);
  animation: juiceOrbitBL 11s ease-in-out infinite;
}
.ja-br {
  bottom: 6%; right: 4%;
  transform: rotate(-24deg);
  animation: juiceOrbitBR 11s ease-in-out infinite;
}
@keyframes juiceOrbitTL {
  0%, 100% { transform: rotate(-22deg) translate(0, 0); }
  50%      { transform: rotate(-16deg) translate(8px, -10px); }
}
@keyframes juiceOrbitTR {
  0%, 100% { transform: rotate(18deg) translate(0, 0); }
  50%      { transform: rotate(24deg) translate(-8px, -8px); }
}
@keyframes juiceOrbitBL {
  0%, 100% { transform: rotate(28deg) translate(0, 0); }
  50%      { transform: rotate(22deg) translate(6px, 10px); }
}
@keyframes juiceOrbitBR {
  0%, 100% { transform: rotate(-24deg) translate(0, 0); }
  50%      { transform: rotate(-30deg) translate(-6px, 12px); }
}

/* ========================================================================
   PANEL ENTRANCE ANIMATIONS
   Triggered by IntersectionObserver adding .is-active to .panel
   ======================================================================== */

[data-anim] { opacity: 0; }

[data-anim="bounce-up"] {
  transform: translateY(60px) scale(0.92);
  transition: opacity 0.7s var(--ease-bounce), transform 0.85s var(--ease-bounce);
}
.panel.is-active [data-anim="bounce-up"] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-anim="float"] {
  transform: translateY(80px) rotate(-2deg);
  transition: opacity 0.9s var(--ease-bounce), transform 1s var(--ease-bounce);
}
.panel.is-active [data-anim="float"] {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

[data-anim="fade-in"] {
  transform: scale(0.94);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease-bounce);
}
.panel.is-active [data-anim="fade-in"] {
  opacity: 1;
  transform: scale(1);
}

[data-anim="fade-up-stagger"] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease-bounce);
}
.panel.is-active [data-anim="fade-up-stagger"] > *      { opacity: 1; transform: translateY(0); }
.panel.is-active [data-anim="fade-up-stagger"] > *:nth-child(1) { transition-delay: 0.1s; }
.panel.is-active [data-anim="fade-up-stagger"] > *:nth-child(2) { transition-delay: 0.22s; }
.panel.is-active [data-anim="fade-up-stagger"] > *:nth-child(3) { transition-delay: 0.34s; }
.panel.is-active [data-anim="fade-up-stagger"] > *:nth-child(4) { transition-delay: 0.46s; }
.panel.is-active [data-anim="fade-up-stagger"] > *:nth-child(5) { transition-delay: 0.58s; }
[data-anim="fade-up-stagger"] {
  opacity: 1; /* parent visible — children stagger */
}

/* Hero entrance — illustration slides up from the ground, logo fades in from top. */
.hero-illustration {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease-bounce);
}
.panel.is-active .hero-illustration {
  opacity: 1;
  transform: translateY(0);
}
.hero-logo {
  opacity: 0;
  transform: translate(-50%, -30px);
  transition: opacity 0.9s var(--ease) 0.45s, transform 0.9s var(--ease-bounce) 0.45s;
}
.panel.is-active .hero-logo {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 30px; max-width: 520px; }
  .about-art img { max-width: 280px; }
  .about-copy .display-lg { text-align: center; }
  .about-text { text-align: center; margin: 0 auto; }
  .gats-nav-links { gap: 20px; font-size: 16px; }
}

@media (max-width: 640px) {
  .gats-nav { height: 64px; padding: 0 16px; }
  .gats-nav-links { gap: 14px; font-size: 14px; }
  .gats-nav-mark img { width: 32px; }
  .gats-nav-social svg { width: 26px; height: 22px; }
  .back-chip { font-size: 11px; padding: 8px 12px; bottom: 14px; right: 14px; }
  .display-lg { font-size: clamp(48px, 13vw, 88px); }
  .display-md { font-size: clamp(36px, 11vw, 72px); }
  .panel-hero { padding: 0; }
  .merch-card { flex-basis: clamp(180px, 60vw, 240px); }
  .contact-form { width: 90vw; }
  .contact-pillar { width: 60px; opacity: 0.5; }
  .scroll-hint { font-size: 11px; padding: 6px 12px; bottom: 22px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-hint, .scroll-hint .arrow, .merch-star { animation: none; }
  .rail { scroll-behavior: auto; }
  [data-anim], .hero-illustration, .hero-logo {
    opacity: 1 !important; transform: none !important;
  }
}

/* ========================================================================
   BOOK DOOR — final panel: the exit into the brand-book case study
   ======================================================================== */
.panel-book { background: var(--red); }
.book-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.panel-book .display { color: var(--cream); }
.panel-book .display em { color: var(--black); font-style: normal; }
.book-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  color: var(--red); background: var(--cream);
  border: 3px solid var(--black);
  padding: 16px 34px;
  box-shadow: 6px 6px 0 var(--black);
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s var(--ease-bounce);
}
.book-btn:hover, .book-btn:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 var(--black);
}
.book-sub { color: var(--cream); font-weight: 500; letter-spacing: 0.06em; }
@media (prefers-reduced-motion: reduce) {
  .book-btn { transition: none; }
}
