/* Home page */

/* Hero (Eislab-style split): headline with the logo on one side, the photo full-height on the other */
body[data-page="home"] .site-header { background: none; }
.hero {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100svh;
  margin-top: calc(var(--header-h) * -1);
}
/* The headline starts centred over the whole hero, so it sits above the photo panel. */
.hero-copy { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; padding: calc(var(--header-h) + 24px) var(--gutter) 48px; }
.hero-copy-inner { width: 100%; max-width: 640px; display: grid; justify-items: center; text-align: center; gap: clamp(18px, 2.4vw, 32px); }
.hero-title { font-size: clamp(64px, 9vw, 168px); text-align: center; }
html[lang="ckb"] .hero-title { font-size: clamp(46px, 6.2vw, 108px); }
.hero-words { display: inline; }
.hero-icon {
  display: inline-block; width: .92em; height: .92em; vertical-align: -.1em; margin-inline: .05em;
  border-radius: 50%; overflow: hidden; background: #fff;
  border: .045em solid var(--white); box-shadow: 0 0 0 1px var(--cut), 0 .08em .16em rgba(43, 22, 16, .3);
  rotate: -9deg;
}
/* A round stamp stuck on the photo; its words turn slowly */
.hero-stamp {
  position: absolute; z-index: 2; bottom: clamp(14px, 2vw, 28px); inset-inline-end: clamp(14px, 2vw, 28px);
  width: clamp(96px, 9vw, 128px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--speckle), var(--red); background-size: 128px, auto; color: #fff;
  border: 4px solid var(--white); box-shadow: 0 0 0 1px var(--cut), 0 12px 20px -10px rgba(43, 22, 16, .5);
  rotate: 12deg; pointer-events: none;
}
.hero-stamp-ring { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); overflow: visible; }
.hero-stamp-ring text { font: 800 11.5px var(--font-body); letter-spacing: .14em; fill: #fff; }
/* Chrome drops right-to-left text laid on a path (it all lands on one point), so the ring runs left to right;
   each Kurdish word still reads right to left. */
html[lang="ckb"] .hero-stamp-ring text { font: 700 12px var(--font-ku); letter-spacing: 0; direction: ltr; }
.hero-stamp .doodle { position: relative; width: 34px; height: 36px; color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .hero-stamp-ring { animation: stamp-turn 26s linear infinite; }
  @keyframes stamp-turn { to { rotate: 1turn; } }
}
.hero-icon img { width: 100%; height: 100%; object-fit: cover; }
.hero-tag { max-width: 36ch; font-size: clamp(16px, 1.35vw, 20px); color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-media { position: relative; z-index: 1; overflow: hidden; min-height: 100%; background: var(--pink); }
.hero-photo { position: absolute; inset: 0; overflow: hidden; perspective: 1600px; }
/* The "camera": hero-fx.js moves it in 3D the whole time a photo is on show. */
.hero-cam { position: absolute; inset: 0; will-change: transform; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0; }
.hero-slide.is-active { opacity: 1; }
/* Red-only and blue-only copies of the photo, lightened over it: invisible while lined up, colour
   fringes when they slip. Hidden except during a slip. */
.hero-ghost { position: absolute; inset: 0; z-index: 3; mix-blend-mode: lighten; visibility: hidden; pointer-events: none; }
.hero-ghost img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-filters { position: absolute; width: 0; height: 0; }
.hero.is-static .hero-ghost { display: none; }

.hero-media { touch-action: pan-y; }
/* Round at both ends; wider than the photo so, when they cover it, the round ends sit outside its edges. */
.hero-stripe {
  position: absolute; left: -25%; right: -25%; top: calc(var(--i) * 25%); height: 25.4%;
  background: var(--tint); border-radius: 999px;
  transform: translateX(-101%);
}
html[dir="rtl"] .hero-stripe { transform: translateX(101%); }
.hero.is-static .hero-stripe { display: none; }
@media (prefers-reduced-motion: reduce) { .hero-stripe { display: none; } }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: 0; margin-top: 0; }
  .hero-copy { padding: 16px var(--gutter) 28px; }
  .hero-media { margin-inline: var(--gutter); aspect-ratio: 1 / 1.08; min-height: 0; border-radius: var(--radius-xl); }
  .hero + .cats { margin-top: clamp(28px, 6vw, 48px); }
}

/* Category sections stack with rounded tops, like Eislab */
.cat-section {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding-block: clamp(32px, 4.5vw, 64px) calc(clamp(40px, 5vw, 72px) + var(--radius-xl));
  /* --live-tint follows the item in the middle of the carousel (carousel.js); the category colour until then */
  background: var(--speckle-soft) 0 0 / 128px auto, var(--live-tint, var(--tint));
  transition: background-color .8s ease;
  margin-bottom: calc(var(--radius-xl) * -1);
}
.cat-section:last-child { margin-bottom: 0; padding-bottom: clamp(40px, 5vw, 72px); }
.cat-title { position: relative; z-index: 1; text-align: center; font-size: clamp(58px, 12.5vw, 210px); padding-inline: var(--gutter); }
.cat-squiggle { z-index: 1; }
html[lang="ckb"] .cat-title { font-size: clamp(40px, 7.5vw, 124px); }

.car { position: relative; height: clamp(320px, 34vw, 520px); margin-top: clamp(-48px, -3vw, -10px); }
.car-blob {
  position: absolute; left: 50%; top: 52%;
  width: clamp(230px, 27vw, 420px); aspect-ratio: 1 / .94;
  transform: translate(-50%, -50%);
  background: var(--white); box-shadow: 0 0 0 1px var(--cut);
  border-radius: 44% 56% 52% 48% / 55% 45% 55% 45%;
  transition: border-radius .7s var(--ease-pop);
}
.car-swiper.swiper { position: absolute; inset: 0; overflow: visible; }
/* Flex (not grid) so the media's percentage height resolves; tall items like the water bottle stay in bounds. */
.car-slide { width: clamp(170px, 24vw, 360px); height: 100%; display: flex; align-items: center; justify-content: center; }
.car-media {
  all: unset; box-sizing: border-box; display: block;
  width: 100%; height: 88%; cursor: pointer;
  transform: scale(calc(1 - min(var(--p, 1), 1) * .42));
  opacity: calc(1 - min(var(--p, 1), 1.4) * .28);
  transition: transform .65s var(--ease-io), opacity .65s var(--ease-io);
}
.car-media:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; border-radius: 28px; }
.car-media .depth { display: block; width: 100%; height: 100%; }
.car-swiper.is-static .swiper-wrapper { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 100%; }
.car-swiper.is-static .car-slide { flex: none; scroll-snap-align: center; --p: 0; }

.car-sticker {
  position: absolute; z-index: 3; top: 16%;
  inset-inline-start: calc(50% + clamp(70px, 9vw, 160px));
  max-width: min(44vw, 320px);
}
.car-live { display: grid; gap: 2px; }
.car-name { font: 900 clamp(22px, 2.6vw, 36px)/.95 var(--font-display); text-transform: uppercase; overflow-wrap: anywhere; }
html[lang="ckb"] .car-name { font: 900 clamp(18px, 2vw, 26px)/1.45 var(--font-ku); text-transform: none; }
.car-price { font-weight: 800; font-size: .95rem; }
.car-add { margin-top: 8px; justify-self: start; }
/* Uses the separate scale/translate properties so it stacks on the sticker's own tilt and centring. */
.car-sticker { transition: opacity .18s ease, scale .18s ease; }
.car-sticker.is-leaving { opacity: 0; scale: .8; }
.sticker.is-swap { animation: sticker-swap .55s var(--ease-pop); }
.sticker.is-swap .car-name, .sticker.is-swap .car-price, .sticker.is-swap .car-add { animation: sticker-line .5s var(--ease-pop) both; }
.sticker.is-swap .car-name { animation-delay: .08s; }
.sticker.is-swap .car-price { animation-delay: .16s; }
.sticker.is-swap .car-add { animation-delay: .24s; }
@keyframes sticker-swap { from { scale: .5; opacity: 0; } }
@keyframes sticker-line { from { translate: 0 14px; opacity: 0; } }

.car-arrow { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); background: var(--white); font-size: 1.2rem; }
.car-prev { inset-inline-start: var(--gutter); --r: -6deg; }
.car-next { inset-inline-end: var(--gutter); --r: 7deg; }
html[dir="rtl"] .car-arrow { transform: translateY(-50%) scaleX(-1); }
.car-foot { position: relative; z-index: 2; display: flex; justify-content: center; margin-top: clamp(16px, 2vw, 28px); }
.car-full { --r: -1.5deg; }
.car-add { --r: 3deg; }

@media (max-width: 640px) {
  .car { height: 400px; }
  .car-slide { width: 60vw; height: 76%; }
  .car-blob { top: 38%; width: 64vw; }
  .car-sticker { top: auto; bottom: 0; inset-inline-start: 50%; transform: translateX(-50%) rotate(var(--tilt)); max-width: 82vw; text-align: center; justify-items: center; }
  html[dir="rtl"] .car-sticker { transform: translateX(50%) rotate(var(--tilt)); }
  .car-add { justify-self: center; }
  .car-arrow { top: 38%; }
}

/* "More on the menu" strip */
.strip { position: relative; z-index: 2; overflow: hidden; background: var(--cta); color: var(--base); padding-block: clamp(14px, 2vw, 22px); }
.strip-track { display: flex; width: max-content; }
.strip-set { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); padding-inline-end: clamp(18px, 3vw, 40px); }
.strip-item { display: inline-flex; align-items: center; min-height: 44px; padding-block: 6px; font-size: clamp(40px, 6.5vw, 96px); color: var(--base); text-decoration: none; white-space: nowrap; }
html[lang="ckb"] .strip-item { font-size: clamp(30px, 4.6vw, 64px); }
.strip-item:hover { color: var(--yellow); }
.strip-star { color: var(--yellow); font-size: clamp(22px, 3vw, 44px); }
@media (prefers-reduced-motion: reduce) {
  .strip-track, .strip-set { width: auto; flex-wrap: wrap; justify-content: center; }
  .strip-set[aria-hidden] { display: none; }
}

/* How to order: three sticker steps and a way into the menu */
.how { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); justify-items: start; padding-block: clamp(56px, 8vw, 120px) 0; }
.how-title { font-size: clamp(44px, 7vw, 110px); }
.steps { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative; display: grid; gap: 6px; align-content: start;
  background: var(--speckle-soft), var(--tint); background-size: 128px, auto;
  border: 6px solid var(--white); border-radius: var(--radius-l); box-shadow: var(--lift);
  padding: clamp(18px, 2.4vw, 30px); min-height: clamp(160px, 16vw, 230px);
  rotate: var(--r, -1deg);
}
.step:nth-child(2) { --r: .8deg; }
.step:nth-child(3) { --r: -.5deg; }
.step-num { font-size: clamp(56px, 7vw, 100px); color: var(--white); -webkit-text-stroke: 2px var(--ink); line-height: .8; }
.step-title { font-size: clamp(34px, 4vw, 56px); }
.step p { font-size: 1.05rem; max-width: 30ch; }

/* Brand story: the cups photo as a wide band, then the story beside three sticker facts */
.story { padding-block: clamp(56px, 8vw, 120px) 0; }
.story-band {
  position: relative; overflow: hidden; margin-inline: var(--gutter);
  height: clamp(200px, 30vw, 460px); border-radius: var(--radius-xl); background: var(--red);
}
.story-band img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; }
.story-body {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: start;
  margin-top: clamp(-90px, -6vw, -40px); position: relative;
}
@media (max-width: 820px) { .story-body { grid-template-columns: 1fr; } }
.story-copy {
  display: grid; gap: clamp(12px, 1.6vw, 20px);
  background: var(--white); border-radius: var(--radius-xl); padding: clamp(22px, 3.4vw, 48px);
  box-shadow: inset 0 0 0 2px var(--line);
}
.story-title { font-size: clamp(44px, 6.4vw, 104px); }
html[lang="ckb"] .story-title { font-size: clamp(32px, 4.4vw, 68px); }
.story-text { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.6; max-width: 58ch; }
html[lang="ckb"] .story-text { line-height: 2; }
.story-facts { list-style: none; margin: 0; padding: clamp(0px, 4vw, 70px) 0 0; display: grid; gap: 14px; }
@media (max-width: 820px) { .story-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; } }
@media (max-width: 460px) { .story-facts { grid-template-columns: 1fr; } }
.story-fact {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  background: var(--speckle), var(--tint); background-size: 128px, auto; border-radius: var(--radius-l); padding: 14px 20px;
  border: 5px solid var(--white); box-shadow: var(--lift);
  transform: rotate(var(--r, -1.5deg));
}
.story-fact:nth-child(2) { --r: 1.5deg; }
.story-fact:nth-child(3) { --r: -.8deg; }
.story-fact b { font-size: clamp(44px, 5vw, 76px); line-height: .9; }
.story-fact span { font-weight: 800; }
@media (max-width: 820px) { .story-fact { flex-direction: column; gap: 4px; } }
@media (max-width: 460px) { .story-fact { flex-direction: row; } }

/* Branches teaser */
.teaser {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 60px); align-items: center;
  padding-block: clamp(56px, 8vw, 120px);
}
@media (max-width: 760px) { .teaser { grid-template-columns: 1fr; } }
.teaser-map { background: var(--white); border-radius: var(--radius-xl); padding: clamp(12px, 2vw, 28px); box-shadow: inset 0 0 0 2px var(--line); }
.teaser-copy { display: grid; gap: 10px; justify-items: start; }
.teaser-count { font-size: clamp(160px, 24vw, 360px); line-height: .78; color: var(--red); }
.teaser-label { font-size: clamp(34px, 5vw, 72px); }
.teaser-branches {
  justify-self: start; margin-block: 4px 10px; padding: 6px 16px; border-radius: 14px;
  border: 4px solid var(--white); box-shadow: var(--lift); rotate: -3deg;
  background: var(--speckle), var(--pink); background-size: 140px, auto;
  font: 900 clamp(24px, 2.6vw, 36px)/1.05 var(--font-display); text-transform: uppercase;
}
html[lang="ckb"] .teaser-branches { font: 900 clamp(20px, 2vw, 28px)/1.4 var(--font-ku); }
html.motion-ok .teaser:not(.is-in) .pin { opacity: 0; }
html.motion-ok .teaser:not(.is-in) .map-province { stroke-dasharray: 1600; stroke-dashoffset: 1600; }
html.motion-ok .teaser.is-in .map-province { stroke-dasharray: 1600; animation: map-draw 1.8s var(--ease-io) both; }
html.motion-ok .teaser.is-in .pin > * { transform-box: fill-box; animation: pin-drop .6s var(--ease-pop) both; }
html.motion-ok .teaser.is-in .pin:nth-of-type(2) > * { animation-delay: .5s; }
html.motion-ok .teaser.is-in .pin:nth-of-type(3) > * { animation-delay: .62s; }
html.motion-ok .teaser.is-in .pin:nth-of-type(4) > * { animation-delay: .74s; }
html.motion-ok .teaser.is-in .pin:nth-of-type(5) > * { animation-delay: .86s; }
html.motion-ok .teaser.is-in .pin:nth-of-type(6) > * { animation-delay: .98s; }
html.motion-ok .teaser.is-in .pin:nth-of-type(7) > * { animation-delay: 1.1s; }
@keyframes map-draw { from { stroke-dashoffset: 1600; } to { stroke-dashoffset: 0; } }
@keyframes pin-drop { from { opacity: 0; transform: translateY(-14px); } }

/* Instagram strip */
.insta { margin-inline: var(--gutter); padding-block: clamp(32px, 5vw, 64px); background: var(--tint); border-radius: var(--radius-xl); overflow: hidden; }
.insta-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; padding-inline: clamp(20px, 4vw, 56px); }
.insta-title { font-size: clamp(44px, 7vw, 110px); max-width: 12ch; }
.insta-strip { margin-top: clamp(20px, 3vw, 40px); overflow: hidden; padding-block: 12px 28px; }
.insta-track { display: flex; width: max-content; gap: clamp(14px, 2vw, 28px); padding-inline-end: clamp(14px, 2vw, 28px); }
.insta-track { align-items: center; }
.insta-post {
  flex: none; width: clamp(150px, 17vw, 250px); aspect-ratio: 4 / 5;
  border-radius: 24px; overflow: hidden; background: var(--white);
  box-shadow: 0 0 0 4px var(--white), 0 20px 34px -24px rgba(43, 22, 16, .6);
  transform: rotate(-2deg);
}
.insta-post.is-shop { aspect-ratio: 1; transform: rotate(2.5deg) translateY(14px); }
.insta-post img { width: 100%; height: 100%; object-fit: cover; }
