/* Lagonid — Home page (Figma "15 · Lagonid" → Home — Desktop 227:2120).
   Mobile first; tablet ≥ 768, desktop ≥ 1200 (hero switches to the wide composition at ≥ 1000). */

/* =========================================================
   01 · HERO
   The stage keeps the Figma frame's proportions (aspect-ratio + cqw units),
   so plates, word and badge scale together; it is capped and centred on wide screens.
   ========================================================= */
.hero { padding: 8px 0 0; }
.hero__panel {
  position: relative; overflow: hidden; isolation: isolate;
  margin-inline: 16px; border-radius: 22px;
  background: radial-gradient(50% 50% at 50% 50%, var(--clay-1) 0%, var(--clay-2) 50%, var(--clay-3) 100%);
  color: var(--cream);
}
.hero__panel > .ticker { position: absolute; top: 12px; left: 0; right: 0; z-index: 4; }
.hero__panel > .ticker .ticker__track { padding-left: 16px; }

/* stage — mobile composition 358 × 600 */
.hero__stage { position: relative; margin-inline: auto; width: 100%; max-width: 460px; aspect-ratio: 358 / 600; container-type: inline-size; }
.hero__dish { position: absolute; z-index: 2; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.hero__dish--main { z-index: 3; }
.hero__float { width: 100%; }
.hero__plate { width: 100%; aspect-ratio: 1; border-radius: 50%; padding: 5px; background: var(--cream); box-shadow: 0 14px 28px rgba(22, 11, 0, .5); will-change: transform; }
.hero__plate img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.hero__word { position: absolute; z-index: 1; left: 0; right: 0; top: 17%; text-align: center; white-space: nowrap;
  font: 400 calc(21cqw * var(--fit, 1))/1.04 var(--display); text-transform: uppercase;
  color: var(--sand); text-shadow: 0 10px 24px rgba(59, 20, 18, .35);
  transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.hero__word span { display: inline-block; }

.hero__dish--main { left: 13%;  top: 30%;  width: 74%; }
.hero__dish--left { left: -6%;  top: 63%;  width: 40%; }
.hero__dish--mid  { left: 69%;  top: 66%;  width: 33%; }
.hero__badge { position: absolute; z-index: 4; left: 67%; top: 25.5%; width: 27%; aspect-ratio: 1; container-type: inline-size; transform: rotate(10deg); }
.hero__badge-in { width: 100%; height: 100%; border-radius: 50%; background: var(--gold); color: var(--espresso);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 4cqw; }
.hero__badge small { font: 600 8cqw/1.15 var(--sans); letter-spacing: .16em; }
.hero__badge b { font: 400 30.7cqw/1.04 var(--display); margin-top: -1cqw; }

/* parallax (desktop pointer) — set by home.js as --mx / --my in −1…1 */
.hero__dish--left { transform: translate(calc(var(--mx, 0) * -16px), calc(var(--my, 0) * -10px)); }
.hero__dish--mid  { transform: translate(calc(var(--mx, 0) * -10px), calc(var(--my, 0) * -7px)); }
.hero__dish--main { transform: translate(calc(var(--mx, 0) * 20px), calc(var(--my, 0) * 12px)); }
.hero__word       { transform: translate(calc(var(--mx, 0) * -6px), calc(var(--my, 0) * -4px)); }

/* idle float */
@media (prefers-reduced-motion: no-preference) {
  .hero__float { animation: hero-float 6.5s ease-in-out infinite; }
  .hero__dish--left .hero__float { animation-duration: 7.2s; animation-delay: -2.4s; }
  .hero__dish--mid .hero__float { animation-duration: 6.1s; animation-delay: -4.1s; }
  /* hidden until home.js plays the entrance; failsafe shows it anyway */
  .js .hero:not(.is-ready) .hero__plate, .js .hero:not(.is-ready) .hero__word span, .js .hero:not(.is-ready) .hero__badge-in { opacity: 0; animation: hero-failsafe 0s 2.5s forwards; }
}
@keyframes hero-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(.8deg); } }
@keyframes hero-failsafe { to { opacity: 1; } }

/* location label — mobile: centred, one line */
.hero__loc { position: absolute; z-index: 4; left: 16px; right: 16px; bottom: 18px; text-align: center; color: var(--cream); }
.hero__sep { margin: 0 .5em; }

/* in-panel switcher (tablet/desktop) */
.hero__switch { display: none; }
.hero__switch button { position: relative; padding: 14px 0; min-height: 44px; background: none; border: 0; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit;
  color: var(--cream); opacity: .6; transition: opacity .25s; }
.hero__switch button:hover, .hero__switch button.is-active { opacity: 1; }
.hero__switch button::before, .hero__switch button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; transform-origin: 0 50%; }
.hero__switch button::before { background: var(--cream); transform: scaleX(0); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.hero__switch button.is-active::before { transform: scaleX(1); }
.hero__switch button::after { background: var(--gold); transform: scaleX(0); }
.hero__switch button.is-active::after { transform: scaleX(var(--p, 0)); }

/* below the panel (mobile): chips + call button */
.hero__below { padding-top: 20px; }
.hero__chips { gap: 8px; }
.hero__chips .chip { min-height: 40px; }
.hero__below .btn { margin-top: 18px; }

/* ---- tablet composition 736 × 620 ---- */
@media (min-width: 768px) {
  .hero { padding-bottom: 8px; }
  .hero__panel { margin-inline: 16px; border-radius: var(--r-hero); }
  .hero__panel > .ticker { top: 14px; }
  .hero__panel > .ticker .ticker__track { padding-left: 24px; }
  .hero__stage { max-width: 820px; aspect-ratio: 736 / 620; }
  .hero__plate { padding: 7px; box-shadow: 0 20px 40px rgba(22, 11, 0, .5); }
  .hero__word { top: 20%; font-size: calc(17.5cqw * var(--fit, 1)); }
  .hero__dish--left { left: 4%;   top: 47%; width: 30%; }
  .hero__dish--mid  { left: 38%;  top: 58%; width: 21%; }
  .hero__dish--main { left: 61%;  top: 41%; width: 35%; }
  .hero__badge { left: 82%; top: 33%; width: 15%; }

  .hero__loc { left: 32px; right: auto; bottom: 30px; text-align: left; }
  .hero__switch { display: flex; gap: 28px; position: absolute; z-index: 4; right: 32px; bottom: 16px; }
  .hero__below { display: none; }
}

/* ---- wide composition 1392 × 760 (≥ 1000; Figma desktop) ---- */
@media (min-width: 1000px) {
  .hero__stage { max-width: 1480px; aspect-ratio: 1392 / 760; }
  .hero__plate { padding: 8px; box-shadow: 0 24px 48px rgba(22, 11, 0, .55); }
  .hero__word { top: 21.05%; font-size: calc(16.954cqw * var(--fit, 1)); text-shadow: 0 16px 40px rgba(59, 20, 18, .35); }
  .hero__dish--left { left: 6.897%;  top: 46.053%; width: 22.989%; }
  .hero__dish--mid  { left: 42.529%; top: 57.895%; width: 16.523%; }
  .hero__dish--main { left: 65.086%; top: 38.947%; width: 27.299%; }
  .hero__badge { left: 86.776%; top: 34.474%; width: 10.776%; }

  .hero__loc { left: calc(var(--margin) - 16px); bottom: 32px; white-space: nowrap; }
  .hero__switch { gap: 32px; right: calc(var(--margin) - 16px); bottom: 18px; }
}
@media (min-width: 1200px) {
  .hero { padding-bottom: 24px; }
  .hero__panel { margin-inline: 24px; }
  .hero__loc { left: calc(var(--margin) - 24px); }
  .hero__switch { right: calc(var(--margin) - 24px); }
}

/* =========================================================
   02 · PICK YOUR PLATE (numbered tile plates)
   ========================================================= */
.plates__note { margin-top: 14px; text-align: center; font: 500 14px/18px var(--sans); color: var(--num-label); }
.plates__grid { margin-top: 24px; row-gap: 28px; }
.plates__grid > li { grid-column: span 2; min-width: 0; }
.pick { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.pick .plate-no { width: 100%; max-width: 250px; transition: transform .35s ease; }
.pick:hover .plate-no { transform: translateY(-6px) rotate(-4deg); }
.pick .t-caption { color: var(--ink-2); }
.plates__cta { margin-top: 36px; text-align: center; }
@media (min-width: 768px) {
  .plates__note { margin-top: 18px; }
  .plates__grid { margin-top: 32px; row-gap: 40px; }
  .pick { gap: 10px; }
  .plates__cta { margin-top: 48px; }
}
@media (min-width: 1200px) {
  .plates__note { margin-top: 25px; }
  .plates__grid { margin-top: 16px; row-gap: 48px; }
  .plates__grid > li { grid-column: span 3; }
  .pick { gap: 12px; }
  .pick .plate-no { width: 250px; }
  .pick .t-item { font-size: 20px; line-height: 24px; }
}

/* =========================================================
   03 · SINCE 1999 (navy)
   ========================================================= */
.story { padding-top: calc(var(--section-pad) + 4px); }
.story__line { position: absolute; top: 0; left: 0; right: 0; }
.story__in { display: flex; flex-direction: column; }
.story__copy { display: contents; }
.story__title { margin-top: 14px; }
.story__text { margin-top: 20px; }
.story__stats { margin-top: 32px; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 32px; }
.story__stats li { display: flex; flex-direction: column; gap: 6px; }
.story__stats .t-stat { white-space: nowrap; }
.story__stats .t-label { color: var(--on-dark); opacity: .7; letter-spacing: .2em; }
@media (max-width: 374px) { .story__stats { column-gap: 20px; } .story__stats .t-label { letter-spacing: .12em; } }
.story__photos { order: 1; margin-top: 48px; position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.story__photos .photo { height: auto; aspect-ratio: 163 / 230; }
.story__photos .story__wide { grid-column: 1 / -1; aspect-ratio: 342 / 228; }
.story__sticker { position: absolute; z-index: 2; width: 132px; height: 96px; top: -26px; right: 6px; border-radius: 12px; transform: rotate(8deg); box-shadow: var(--shadow-float); }
.story__sticker .logo { gap: 4px; } .story__sticker .logo__mark { width: 43px; height: 22px; } .story__sticker .logo__word { font-size: 21px; } .story__sticker .logo__sub { font-size: 6.8px; line-height: 9px; }
.story__cta { order: 2; margin-top: 40px; }

@media (min-width: 768px) {
  .story__title, .story__text { max-width: 600px; }
  .story__text { margin-top: 24px; }
  .story__stats { margin-top: 40px; column-gap: 56px; }
  .story__stats li { gap: 8px; }
  .story__stats .t-label { letter-spacing: .3em; }
  .story__cta { order: 0; margin-top: 40px; }
  .story__photos { margin-top: 56px; gap: 24px; }
  .story__photos .photo { aspect-ratio: 328 / 400; }
  .story__photos .story__wide { aspect-ratio: 672 / 380; }
  .story__sticker { width: 176px; height: 128px; top: -32px; right: -16px; border-radius: 16px; }
  .story__photos { width: 100%; max-width: 720px; }
  .story__sticker .logo { gap: 6px; } .story__sticker .logo__mark { width: 57.6px; height: 28.8px; } .story__sticker .logo__word { font-size: 28px; } .story__sticker .logo__sub { font-size: 9px; line-height: 11px; }
}
@media (min-width: 1200px) {
  .story { padding-top: var(--section-pad); }
  .story__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
  .story__copy { display: flex; flex-direction: column; align-items: flex-start; grid-column: 1 / 7; }
  .story__title { margin-top: 16px; max-width: none; }
  .story__text { max-width: none; }
  .story__stats { margin-top: 48px; display: flex; gap: 56px; }
  .story__cta { margin-top: 48px; }
  .story__photos { grid-column: 8 / 13; margin-top: 0; gap: 24px; }
  .story__photos .photo { aspect-ratio: 206 / 336; }
  .story__photos .story__wide { aspect-ratio: 436 / 300; }
  .story__sticker { top: -32.4px; right: auto; left: 324px; }
}

/* =========================================================
   04 · FAVOURITES
   ========================================================= */
.fav__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.fav__order { display: none; }
.fav__cards { margin-top: var(--head-gap); display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--margin) * -1); padding: 0 var(--margin) 40px; scroll-padding-inline: var(--margin); margin-bottom: -40px; }
.fav__cards::-webkit-scrollbar { display: none; }
.fav__cards .card { flex: 0 0 252px; min-height: 380px; scroll-snap-align: start; }

.fav__feature { position: relative; margin-top: 32px; border-radius: var(--r-card); padding: 28px 20px 28px; display: flex; flex-direction: column; overflow: hidden; }
.fav__copy { display: flex; flex-direction: column; align-items: flex-start; }
.fav__copy .t-label { color: var(--cream); }
.fav__name { margin-top: 12px; }
.fav__desc { margin-top: 14px; }
.fav__price { margin-top: 18px; white-space: normal; color: var(--sand); }
.fav__tiles { position: relative; margin-top: 28px; height: 200px; }
.fav__tile { position: absolute; display: block; background: var(--masa); border-radius: var(--r-photo); overflow: hidden; }
.fav__tile img { width: 100%; height: 100%; object-fit: cover; }
.fav__tile--hum { right: 0; top: 0; width: 56%; aspect-ratio: 1; max-width: 200px; }
.fav__tile--tab { z-index: 1; left: 0; top: 18px; width: 50%; aspect-ratio: 1; max-width: 176px; transform: rotate(6deg); box-shadow: 0 12px 24px rgba(10, 20, 50, .25); }
.fav__cta { margin-top: 32px; }

@media (max-width: 767px) {
  .fav__tiles { height: auto; aspect-ratio: 302 / 190; max-height: 220px; }
  .fav__tile--hum { width: 54%; } .fav__tile--tab { width: 46%; left: 4px; }
}
@media (min-width: 768px) {
  .fav__order { display: inline-flex; margin-bottom: -11px; }
  .fav__cta { display: none; }
  .fav__feature { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 32px; min-height: 296px; }
  .fav__copy { flex: 1; min-width: 0; max-width: 400px; }
  .fav__tiles { flex: none; margin-top: 0; width: 300px; height: 232px; }
  .fav__tile--hum { width: 200px; max-width: none; top: 16px; }
  .fav__tile--tab { width: 170px; max-width: none; left: 0; top: 46px; }
}
@media (min-width: 1200px) {
  .fav__cards { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); overflow: visible; margin: 59px 0 0; padding: 0; }
  .fav__cards .card { grid-column: span 3; min-height: 380px; }
  .fav__feature { display: block; margin-top: 48px; padding: 0; height: 296px; }
  .fav__copy { position: absolute; left: 92px; top: 60px; width: 528px; max-width: none; }
  .fav__name { margin-top: 12px; }
  .fav__desc { margin-top: 16px; width: 470px; }
  .fav__price { margin-top: 20px; }
  .fav__tiles { position: absolute; inset: 0; width: auto; height: auto; }
  .fav__tile--hum { width: 232px; left: 812px; right: auto; top: 40px; }
  .fav__tile--tab { width: 196px; left: 609.7px; top: 79.7px; }
}
@media (min-width: 1200px) and (max-width: 1239px) {
  .fav__copy { left: 56px; } .fav__tile--hum { left: auto; right: 24px; } .fav__tile--tab { left: auto; right: 232px; }
}

/* =========================================================
   05 · BOARDS & CLASSICS
   ========================================================= */
.boards { position: relative; }
.boards__photo { height: 420px; overflow: hidden; }
.boards__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.boards__line { position: relative; }
.boards__br { display: none; }
.boards__in { padding-block: calc(var(--section-pad) - 8px) var(--section-pad); }
.boards__title { margin-top: 14px; }
.boards__text { margin-top: 20px; }
.boards__list { margin-top: 32px; }
.boards__list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-cream); }
.boards__list .t-item { color: var(--on-dark); }
.boards__price { flex: none; font: 500 16px/21px var(--sans); color: var(--sand); white-space: nowrap; }

@media (min-width: 768px) {
  .boards__photo { height: 520px; }
  .boards__in { padding-block: var(--section-pad); }
  .boards__text { margin-top: 24px; max-width: 560px; }
  .boards__list { margin-top: 40px; max-width: 560px; }
  .boards__price { font-size: 17px; }
}
@media (min-width: 1200px) {
  .boards { min-height: 900px; display: flex; align-items: center; }
  .boards__photo { position: absolute; left: 0; top: 0; bottom: 0; width: 50%; height: auto; }
  .boards__photo img { object-position: 50% 50%; }
  .boards__line { position: absolute; top: 0; bottom: 0; left: 50%; height: auto; width: 4px; }
  .boards__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-block: var(--section-pad); }
  .boards__copy { grid-column: 8 / 13; margin-top: -14px; }
  .boards__br { display: inline; }
  .boards__title { margin-top: 16px; }
  .boards__text { max-width: none; }
  .boards__list { max-width: none; }
}

/* =========================================================
   06 · VISIT
   ========================================================= */
.visit { position: relative; padding-bottom: var(--section-pad); }
@media (max-width: 767px) { .visit.bg-masa2 { background: var(--masa); } }
.visit__map { display: block; height: 360px; overflow: hidden; background: #E8DCC6; }
.visit__map img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.visit__map:hover img { transform: scale(1.02); }
.visit__in { position: relative; }
.visit__card { position: relative; z-index: 2; margin-top: 24px; border-radius: var(--r-card); padding: 28px 20px 24px; box-shadow: var(--shadow-float); display: flex; flex-direction: column; }
.visit__kicker { color: var(--sand); opacity: .8; }
.visit__title { margin-top: 10px; }
.visit__rows { margin-top: 20px; }
.visit__rows a:hover { text-decoration: underline; text-underline-offset: 4px; }
.visit__btns { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.visit__pin { position: absolute; left: 50%; top: -204px; width: 0; height: 0; pointer-events: none; } /* map centre: 360/2 + 24 */

@media (min-width: 768px) {
  .visit { padding: 0; }
  .visit__map { position: absolute; inset: 0; height: auto; }
  .visit__in { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gutter); align-items: center;
    padding-block: var(--section-pad); pointer-events: none; }
  .visit__card { pointer-events: auto; margin-top: 0; grid-column: 1 / 6; padding: 36px 32px; }
  .visit__rows { margin-top: 24px; }
  .visit__btns { margin-top: 32px; flex-direction: row; }
  .visit__pin { position: relative; left: auto; top: auto; grid-column: 6 / -1; height: 90px; }
  .visit__pin .pin { left: 45px; top: 45px; }
}
@media (min-width: 1200px) {
  .visit { min-height: 860px; }
  .visit__in { position: static; align-items: start; }
  .visit__card { grid-column: 1 / 7; padding: 48px; }
  .visit__title { margin-top: 12px; }
  .visit__rows { margin-top: 24px; }
  .visit__pin { position: absolute; left: calc(var(--margin) + 708px); top: 50%; height: 0; }
  .visit__pin .pin { left: 0; top: 0; }
}
/* narrow phones: move the pin left so its tag fits (mappin.js keeps the map under it) */
@media (max-width: 419px) { .visit__pin { left: 38%; } }
