/* Два полупрозрачных градиента двигаются как готовые слои. */
.mesh {position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.mesh::before,.mesh::after {content:"";position:absolute;width:54%;height:105%;border-radius:50%;background:radial-gradient(ellipse,#dfbd8942,transparent 68%);animation:drift 22s ease-in-out infinite alternate;animation-play-state:paused}
.mesh::before {top:7%;left:-19%}
.mesh::after {top:-18%;right:7%;background:radial-gradient(ellipse,#b1b48d45,transparent 70%);animation-direction:alternate-reverse;animation-duration:27s}
.hero.in-view .mesh::before,.hero.in-view .mesh::after {animation-play-state:running}
@keyframes drift {from {transform:translate3d(-5%,-4%,0) scale(.92)} to {transform:translate3d(13%,8%,0) scale(1.12)}}
@keyframes title-in {from {transform:translateY(35%)}}
@keyframes card-in {from {transform:translate3d(0,35%,0)} to {transform:translate3d(0,0,0)}}
@keyframes photo-in {from {transform:translate3d(0,-26%,0) scale(1.07)} to {transform:translate3d(0,0,0) scale(1)}}
@keyframes enter {from {opacity:.25;transform:translateY(12px)}}
@keyframes bump {50% {transform:scale(1.2)}}
html.lenis,html.lenis body {height:auto}
.lenis.lenis-smooth {scroll-behavior:auto!important}
.lenis.lenis-stopped {overflow:hidden}
[data-lenis-prevent] {overscroll-behavior:contain}
#cursor,#pointerDot {display:none}
.card__crop {overflow:hidden;clip-path:inset(0)}
/* Маска постоянна. Движение контейнера и встречное движение фото дают раскрытие. */
.story-window {height:100%;overflow:hidden;clip-path:inset(0)}
@media all {
  .hero .title-line>span,.hero .title-line>em {animation:title-in .72s var(--ease) both}
  .hero .title-line>em {animation-delay:.09s}
  .card.is-entering .card__crop {animation:card-in .78s var(--ease) both}
  .card.is-entering .card__crop img {animation:photo-in .78s var(--ease) both}
  .entering {animation:enter .55s var(--ease) both;animation-delay:var(--delay,0ms)}
  .cart-toggle__count.is-bump {animation:bump .32s var(--ease)}
  .line-mask,.line {display:block}.line-mask {overflow:hidden;padding-bottom:.12em;margin-bottom:-.12em}
}
@media (pointer:fine) and (hover:hover) {
  .pointer-active #cursor,.pointer-active #pointerDot {display:block;z-index:110;position:fixed;pointer-events:none;left:0;top:0;border-radius:50%;opacity:0}
  #cursor {width:25px;height:25px;margin:-12.5px;border:1px solid #ab643abb}
  #pointerDot {width:4px;height:4px;margin:-2px;background:#a34e2f}
  .pointer-active:has(dialog[open]) #cursor,.pointer-active:has(dialog[open]) #pointerDot {display:none}
}
.showcase.is-scrolly {height:265svh}
.is-scrolly .showcase__sticky {position:sticky;top:72px;height:calc(100svh - 72px);padding-block:2rem}
.is-scrolly .story-mask {max-height:61svh}
.is-scrolly .steps {display:grid;isolation:isolate}
.is-scrolly .step {grid-area:1/1;opacity:0;transform:translateX(24px);transition:opacity .38s,transform .48s var(--ease)}
.is-scrolly .step.is-active {opacity:1;transform:none}
.progress {display:none}
.is-scrolly .progress {display:block;margin-top:1.7rem;height:2px;background:#77806d;max-width:300px;overflow:hidden}
.progress span {display:block;height:100%;background:#e3ae84;transform-origin:left}
@media (max-width:760px) {
  .mesh::after {display:none}
  .card.is-entering .card__crop {animation:enter .4s var(--ease)}
  .card.is-entering .card__crop img {animation:none}
}
html[data-motion="off"] *,html[data-motion="off"] *::before,html[data-motion="off"] *::after {animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media (prefers-reduced-motion:reduce) {
  html:not([data-motion]) *,html:not([data-motion]) *::before,html:not([data-motion]) *::after {animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* Прокрутка на мобильном меняет только трансформации двух вложенных слоёв. */
.inline-reveal .story-window {transform:translate3d(0,calc(0% - var(--covered,0%)),0)}
.inline-reveal .story-image {transform:translate3d(0,var(--covered,0%),0) scale(var(--scale,1))}
@keyframes settle-photo {from {transform:scale(1.045)}}
@keyframes rule-draw {from {transform:scaleX(.05)}}
@keyframes line-up {from {opacity:.5;transform:translateY(.45em)}}
@keyframes dialog-in {from {opacity:.65;transform:translateY(10px) scale(.985)}}
@media all {
  .hero-art {animation:settle-photo 1.25s var(--ease) both;transform-origin:65% 54%}
  .hero__copy>.kicker,.hero__actions,.hero-plate figcaption {animation:line-up .55s var(--ease) both}
  .hero__actions {animation-delay:.1s}
  .hero-plate figcaption {animation-delay:.18s}
  .hero .hairline {transform-origin:left;animation:rule-draw .9s var(--ease)}
  .btn,.chip,.round-btn,.hero-add b,.burger i {transition:transform .22s var(--ease)}
  .btn:active,.chip:active,.round-btn:active,.hero-add:active b {transform:scale(.96)}
  .burger[aria-expanded=true] i:first-child {transform:translateY(3px) rotate(45deg)}
  .burger[aria-expanded=true] i:last-child {transform:translateY(-3px) rotate(-45deg)}
  .header.is-menu-open .nav,.reserve[open],.lightbox[open] {animation:dialog-in .28s var(--ease)}
  .reserve[open]::backdrop,.lightbox[open]::backdrop {animation:shade-in .25s ease-out}
  .card.is-entering .card__body {animation:line-up .5s .08s var(--ease) both}
  .moment.entering .moment__time::before {transform-origin:left;animation:rule-draw .65s var(--ease)}
  .moment__image span {transition:transform .25s var(--ease)}
  @media(hover:hover) {
    .moment__image:hover span {transform:scale(1.13)}
    .hero-add:hover b {transform:rotate(90deg)}
    .card__foot .btn:hover {background:var(--brown);color:var(--cream)}
  }
}
@keyframes shade-in {from {opacity:0}}


/* Высота видимой части окна управляет движением, в том числе при обратной прокрутке. */
@supports (animation-timeline: view()) {
  @media all {
    .card__crop,.moment__image img {
      animation:food-scroll linear both;
      animation-timeline:view();
      animation-range:entry 5% entry 95%;
    }
    .section__head .h2 {
      animation:heading-scroll linear both;
      animation-timeline:view();
      animation-range:entry 0% entry 90%;
    }
  }
}
@keyframes food-scroll {from{transform:translateY(9%) scale(1.1);opacity:.65} to{transform:none;opacity:1}}
@keyframes heading-scroll {from{transform:translateY(.32em);opacity:.55} to{transform:none;opacity:1}}

/* Тонкие дуги похожи на борозды поля. Браузер перемещает готовый слой. */
.hero .mesh::before,.showcase::before {
  content:"";position:absolute;inset:-15% auto auto -27%;width:84%;height:138%;
  border-radius:0;pointer-events:none;
  background:repeating-radial-gradient(ellipse at 7% 108%,transparent 0 21px,#d8b07828 22px,transparent 23px 33px);
  mask-image:linear-gradient(35deg,#000,transparent 78%);
  animation:field-wind 16s ease-in-out infinite alternate;animation-play-state:paused;
}
.showcase::before {z-index:-1;inset:auto -12% 0 auto;width:60%;height:100%;max-height:100svh;opacity:.7}
.hero.in-view .mesh::before,.showcase.in-view::before {animation-play-state:running}
@keyframes field-wind {from{transform:translate3d(-2%,1%,0) rotate(-4deg)}to{transform:translate3d(5%,-2%,0) rotate(2deg)}}
@supports (animation-timeline:scroll()) {
  @media all {
    .header::after {content:"";position:absolute;inset:auto 0 -1px;height:2px;pointer-events:none;background:#ac7147;transform-origin:left;animation:page-read linear both;animation-timeline:scroll(root)}
    .about__facts>div,.showcase:not(.is-scrolly) .step {animation:chapter-arrive linear both;animation-timeline:view();animation-range:entry 0% entry 94%}
    .hero__copy {animation:hero-depth linear both;animation-timeline:view();animation-range:exit 0% exit 95%}
  }
}
@keyframes page-read {from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes chapter-arrive {from{transform:translateY(15px);opacity:.5}to{transform:none;opacity:1}}
@keyframes hero-depth {to{transform:translateY(18px)}}
