/* Homepage introduction */
.clear-home { --shell: 1120px; }
.clear-home .shell { width: min(calc(100% - 72px), var(--shell)); }
.clear-home .shop-cta, .clear-home .nav-cta, .clear-home .header-cta { border-radius: 999px; }
.clear-home .nav-cta, .clear-home .header-cta { background: var(--indigo); color: white; }
.shop-about { padding-block: clamp(72px, 9vw, 136px); }
.about-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 8vw, 108px); align-items: center; }
.about-layout h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.2; letter-spacing: -.055em; }
.about-summary, .about-example dd { color: var(--body); font-size: 17px; line-height: 1.7; }
.about-summary { margin-top: 20px; max-width: 29em; }
.about-example { padding-left: clamp(22px, 3vw, 46px); border-left: 2px solid #dedbfb; }
.about-example > div + div { margin-top: 24px; }
.about-example dt { margin-bottom: 6px; color: var(--indigo-deep); font-size: 14px; font-weight: 700; }
.about-example > div:first-child dd { color: var(--ink); font-size: clamp(18px, 1.55vw, 23px); font-weight: 600; }
@media (max-width: 760px) {
  .about-layout { grid-template-columns: 1fr; gap: 32px; }
  .about-summary, .about-example dd { font-size: 16px; }
}
.shop-hero {
  --menu-paper: #e9e5dc;
  background: var(--menu-paper);
  color: var(--ink);
}
.hero-stage { padding-bottom: clamp(64px, 7vw, 112px); }
.intro-copy {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: calc(100svh - 67px);
  padding: clamp(48px, 9svh, 112px) 16px;
  text-align: center;
  --opening-photo:
    linear-gradient(180deg, rgb(23 17 29 / 27%) 0%, rgb(23 17 29 / 60%) 32%,
      rgb(23 17 29 / 60%) 67%, rgb(23 17 29 / 18%) 100%),
    url('/strawberry-latte.webp') 62% 70% / cover no-repeat #40363a;
  background: var(--opening-photo);
}
.task-topic { font-size: 14px; font-weight: 700; }
.shop-hero h1,.shop-services h2,.shop-services h3,.work-process h2 { font-family: var(--text); letter-spacing: -.055em; line-height: 1.2; font-weight: 750; }
.shop-hero h1 { font-size: clamp(43px,4.6vw,68px); color: #fff; }
.shop-hero h1 em { color: #efeaff; font-style: normal; }
.hero-summary { max-width: 34em; margin-top: clamp(12px, 2svh, 20px); color: #fff; font-size: clamp(15px, 1.35vw, 20px); line-height: 1.55; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px; margin-top: clamp(16px, 3svh, 32px); }
.hero-actions .shop-cta { margin-top: 0; }
.shop-cta { display: inline-flex; align-items: center; gap: 14px; margin-top: 32px; padding: 13px 24px; background: var(--indigo); color: #fff; font-weight: 700; }
.shop-cta:hover { background: var(--indigo-deep); }
.process-more { color: #fff; text-decoration: underline; text-underline-offset: .3em; padding-block: 7px; font-size: 15px; }

.question-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: clamp(360px, 34vw, 520px);
  margin-bottom: clamp(88px, 9vw, 144px);
  background: #18140f;
}
.question-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 76%;
  height: 100%;
  object-fit: cover;
  object-position: 63% 53%;
  z-index: -2;
}
.question-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #18140f 8%, #18140f 25%, rgb(24 20 15 / 93%) 33%, rgb(24 20 15 / 64%) 44%, transparent 64%);
}
.question-copy { padding-block: 48px; }
.shop-services .question-frame h2 {
  color: #fffaf4;
  font-size: clamp(46px, 4.6vw, 76px);
  line-height: 1.1;
  letter-spacing: -.065em;
}
.question-frame h2 span { display: block; margin-bottom: .58em; font-size: .46em; font-weight: 550; letter-spacing: -.035em; }
.question-frame h2 em { color: #c8bdff; font-style: normal; }

/* Static phone previews keep the shop information selectable and readable. */
.place-example {
  min-width: 0;
  margin: 0;
  padding: clamp(22px, 3.4vw, 48px) clamp(12px, 2.2vw, 32px);
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  gap: 18px;
  background: #f4f2ef;
  border-radius: 20px;
  color: #24252b;
}
.place-example figcaption { font-size: 15px; }
.place-screen {
  position: relative;
  width: min(100%, 224px);
  aspect-ratio: 9 / 19.5;
  padding-bottom: 26px;
  overflow: hidden;
  border: 5px solid #34343b;
  border-radius: 32px;
  outline: 1px solid #8c8b91;
  background: #fff;
  box-shadow: 0 12px 24px -14px rgb(32 28 44 / 32%);
}
.place-screen::after {
  content: '';
  position: absolute;
  bottom: 7px;
  left: 37%;
  width: 26%;
  height: 3px;
  border-radius: 4px;
  background: #393940;
}
.phone-status {
  height: 29px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: 19px;
  font: 700 11px/1 system-ui, sans-serif;
}
.phone-status::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 6px;
  translate: -50% 0;
  width: 40px;
  height: 11px;
  border-radius: 20px;
  background: #25252a;
}
.phone-status i { width: 14px; height: 7px; border: 1px solid #49494d; border-radius: 2px; background: #49494d; box-shadow: inset 0 0 0 1px #fff; }
.place-name { padding: 0 14px 9px; }
.place-name::before {
  content: '';
  display: block;
  margin: 0 -14px 12px;
  height: 76px;
  background: #ded4c5 url('/cafe-menu-counter.webp') center / cover;
}
.place-name strong { display: block; font-size: 20px; line-height: 1.35; }
.place-name small { color: #65636c; font-size: 12px; }
.place-tabs { display: flex; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid #e6e5e9; font-size: 13px; color: #64636b; }
.place-tabs > * { padding: 5px 0; }
.place-tabs b { border-bottom: 2px solid var(--indigo); color: var(--indigo-deep); }
.place-body { padding: 14px; }
.place-subhead { font-size: 13px; font-weight: 700; }
.place-menu-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 9px; }
.place-menu-item strong { font-size: 15px; }
.place-menu-item p { margin-top: 2px; font-size: 15px; }
.place-menu-item img { width: 47px; height: 47px; flex: none; border-radius: 7px; object-fit: cover; object-position: 65% 65%; }
.place-photo { display: block; width: 100%; height: 88px; object-fit: cover; object-position: 65% 55%; margin-top: 7px; border-radius: 6px; }
.photo-intro { margin-top: 12px; }
.place-description { margin-top: 3px; color: #55545c; font-size: 13px; line-height: 1.55; }
.place-hours { margin-top: 8px; }
.place-hours > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 0; font-size: 14px; }
.place-hours > div + div { border-top: 1px solid #eee; }
.place-hours dd { font-weight: 650; }
.place-hours > div:first-child dd { color: #963b30; }

.task-topic { color: var(--indigo-deep); margin-bottom: 10px; }
.case-heading { max-width: 820px; margin: 0 auto clamp(48px, 6vw, 88px); text-align: center; }
.case-heading > p { margin-top: 18px; text-wrap: balance; }
.case-heading h3 span, .case-heading > p span { display: inline-block; max-width: 100%; }
.case-heading h3,.work-process h2 { font-size: clamp(32px,3.6vw,53px); }
.case-heading > p,.service-case > p:not(.task-topic) { font-size: 17px; line-height: 1.68; color: var(--body); }
.price-comparison,.service-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(16px,2.6vw,32px); }
.price-comparison .place-example { background: #f3f3f5; }
.price-comparison #place-menu-after { background: #eeecff; }
#place-menu-after figcaption strong { color: var(--indigo-deep); }
.place-menu-item + .place-menu-item { border-top: 1px solid #e6e7ea; margin-top: 12px; padding-top: 12px; }
.menu-screen { font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; color: #222; }
.menu-bar { display: flex; align-items: center; gap: 10px; padding: 7px 12px 12px; }
.menu-bar strong { font-size: 16px; letter-spacing: -.04em; }
.menu-back { width: 9px; height: 9px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(45deg); }
.menu-screen .place-tabs { border-color: #e6e6e6; color: #666; }
.menu-screen .place-tabs b { color: #222; border-color: currentColor; }
.menu-screen .place-body { padding: 12px 10px; }
.menu-service-mode { display: flex; padding: 2px; background: #f5f5f5; border-radius: 5px; color: #474747; font-size: 11px; text-align: center; }
.menu-service-mode > * { flex: 1; padding: 4px 0; }
.menu-service-mode b { color: white; background: #454545; border-radius: 4px; }
.menu-filters { display: flex; gap: 4px; align-items: center; margin: 12px 0 18px; font-size: 11px; }
.menu-filters > * { display: inline-flex; align-items: center; padding: 3px 8px; border: 1px solid #e2e2e2; border-radius: 20px; line-height: 1.2; color: #434343; }
.menu-filters b { background: #373737; color: #fff; border-color: transparent; }
.menu-filters b::after { content: ''; width: 4px; height: 4px; margin: -2px 0 0 5px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.menu-filters .menu-search { width: 22px; aspect-ratio: 1; position: relative; background: #f1f1f1; border: 0; }
.menu-search::before, .menu-search::after { position: absolute; content: ''; }
.menu-search::before { width: 7px; height: 7px; top: 22%; left: 24%; border: 1.3px solid currentColor; border-radius: 50%; }
.menu-search::after { width: 5px; height: 1.3px; left: 55%; top: 63%; background: currentColor; transform: rotate(45deg); }
.menu-screen .place-subhead { font-size: 14px; letter-spacing: -.04em; }
.menu-count, .menu-taste { color: #666; }
.menu-screen .place-menu-item { display: grid; grid-template-columns: minmax(0,1fr) 35%; align-items: start; gap: 7px; padding-top: 13px; }
.menu-screen .place-menu-item strong { display: block; font-size: 14px; letter-spacing: -.045em; line-height: 1.35; word-break: keep-all; }
.menu-screen .place-menu-item p { margin-top: 5px; font-size: 14px; font-weight: 600; }
.menu-taste { display: block; margin-top: 3px; font-size: 11px; line-height: 1.4; word-break: keep-all; }
.menu-new-label { display: table; margin-bottom: 4px; padding: 1px 5px; border-radius: 12px; background: #af3b4a; color: white; font-size: 10px; font-weight: 700; line-height: 1.4; }
.drink-thumb { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 6px; background: #f3ebe5; }
.menu-screen .drink-thumb img { position: absolute; height: auto; max-width: none; border-radius: 0; }
.drink-thumb.coffee img { width: 300%; top: -64%; left: -155%; }
.drink-thumb.berry img { width: 215%; top: -61%; left: -94%; }
.comparison-note { text-align: right; color: var(--body); font-size: 14px; margin-top: 14px; }
.service-pair { padding-block: clamp(104px,12vw,180px) clamp(66px,7vw,108px); column-gap: clamp(28px,4.5vw,72px); }
.service-case { display: flex; flex-direction: column; border-top: 1px solid var(--rule); padding-top: 32px; }
.service-case h3 { font-size: clamp(25px,2.15vw,33px); margin: 0 0 12px; }
.service-case > p:not(.task-topic) { margin-bottom: 20px; max-width: 30em; }
.service-case .place-example { margin-top: auto; background: #f5f4f2; }
.shop-channels { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; padding: 22px 0; border-top: 1px solid var(--rule); color: var(--body); font-size: 15px; }
.shop-channels ul { display: flex; flex-wrap: wrap; gap: 6px 15px; font-weight: 650; list-style: none; }
.shop-channels li { display: inline-flex; align-items: center; gap: 5px; }
.shop-channels li::before { content: ''; width: 7px; height: 7px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #646784; }
.shop-channels li:first-child::before { background: #168255; }
.shop-channels li:nth-child(2)::before { background: #e8b424; }
.work-process { color: #fff; background: #262541; }
.process-layout { padding-block: clamp(110px, 13vw, 190px); }
.process-layout > div { text-align: center; }
.work-process h2 { color: #fff; margin-bottom: 15px; }
.work-process .task-topic { color: #c9c5ff; }
.work-process ol { list-style: none; counter-reset: step; padding: 0; margin: clamp(38px,5.5vw,80px) 0 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(24px,4vw,60px); }
.work-process li { counter-increment: step; padding-top: 17px; border-top: 1px solid #66647c; }
.work-process li::before { display: block; content: counter(step,decimal-leading-zero); font-size: 15px; color: #c9c5ff; font-weight: 700; margin-bottom: 16px; }
.work-process li h3 { color: #fff; font-size: clamp(19px,1.7vw,24px); line-height: 1.45; }
.work-process li p { color: #dddbe7; margin-top: 8px; line-height: 1.7; }
.guide-links { display: flex; flex-wrap: wrap; gap: 0 24px; padding-block: 12px; border-bottom: 1px solid var(--rule); }
.guide-links a { padding-block: 8px; font-size: 15px; }
.clear-home .section { padding-block: clamp(82px,9vw,138px); }
.clear-home .form-field { margin-top: 24px; }
@media (max-width: 760px) {
  .clear-home .shell { width: calc(100% - 40px); }
  .hero-stage { padding-bottom: 64px; }
  .shop-hero h1 { font-size: clamp(27px, 7.7vw, 42px); line-height: 1.26; }
  .shop-cta { margin-top: 26px; padding: 11px 20px; }
  .case-heading { margin-bottom: 42px; }
  .case-heading > p { margin-top: 14px; }
  .case-heading > p,.service-case > p:not(.task-topic) { font-size: 16px; }
  .price-comparison { gap: 10px; }
  .service-pair { grid-template-columns: 1fr; gap: 76px; padding-top: 96px; }
  .process-layout { padding-block: 96px; }
  .work-process ol { grid-template-columns: 1fr; gap: 23px; margin-top: 38px; }
  .work-process li { display: flex; align-items: baseline; gap: 16px; }
}
@media (max-width: 540px) {
  .question-frame { min-height: clamp(370px, 104vw, 485px); align-items: end; }
  .question-photo { width: 100%; height: 89%; object-position: 66% 36%; }
  .question-frame::before { background: linear-gradient(0deg, #18140f 7%, rgb(24 20 15 / 96%) 18%, rgb(24 20 15 / 74%) 33%, transparent 64%); }
  .question-copy { padding-block: 24px 32px; }
  .shop-services .question-frame h2 { font-size: clamp(37px, 9.8vw, 49px); }
  .price-comparison { gap: 8px; }
  .price-comparison .place-example { padding: 14px 4px; gap: 10px; border-radius: 12px; }
  .price-comparison figcaption { font-size: 13px; }
  .price-comparison .place-screen { width: min(100%, 144px); min-height: 336px; border-width: 3px; border-radius: 18px; padding-bottom: 19px; }
  .price-comparison .phone-status { height: 18px; padding-inline: 8px; font-size: 8px; }
  .price-comparison .phone-status::before { top: 4px; width: 23px; height: 7px; }
  .price-comparison .phone-status i { width: 10px; height: 5px; }
  .menu-bar { padding: 6px 7px; gap: 5px; }
  .menu-back { width: 6px; height: 6px; border-width: 0 0 1.5px 1.5px; }
  .menu-bar strong { font-size: 13px; }
  .price-comparison .place-tabs { padding-inline: 7px; font-size: 10px; }
  .menu-screen .place-body { padding: 7px 6px; }
  .menu-service-mode { font-size: 10px; }
  .menu-service-mode > * { padding: 1px 0; }
  .menu-filters { gap: 2px; margin: 7px 0 9px; font-size: 9px; }
  .menu-filters > * { padding: 2px 4px; }
  .menu-filters .menu-search { width: 16px; }
  .menu-search::before { width: 5px; height: 5px; }
  .menu-screen .place-subhead { font-size: 11px; }
  .menu-new-label { font-size: 9px; margin-bottom: 2px; }
  .menu-screen .place-menu-item { gap: 4px; padding-top: 6px; grid-template-columns: minmax(0,1fr) 33%; }
  .menu-screen .place-menu-item strong, .menu-screen .place-menu-item p { font-size: 12px; }
  .menu-screen .place-menu-item p { margin-top: 2px; }
  .menu-taste { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
  .price-comparison .place-menu-item + .place-menu-item { margin-top: 7px; padding-top: 7px; }


}




.menu-story {
  display: grid;
  justify-items: center;
  gap: clamp(22px, 3.5svh, 36px);
  width: 100%;
  margin-top: clamp(52px, 7vw, 108px);
}
.store-window {
  --dish-height: 100px;
  width: min(820px, calc(100% - 64px));
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.45fr);
  overflow: hidden;
  text-align: left;
  border: 1px solid #d4cfc6;
  border-radius: 17px;
  background: white;
  box-shadow: 0 18px 48px -28px #5d5344;
}
.store-profile { border-right: 1px solid #e9e5df; background: #fcfaf7; }
.store-cover { display: block; width: 100%; height: 130px; object-fit: cover; object-position: 68% 50%; }
.store-bio { padding: 19px 22px; }
.store-bio small { color: #666159; font-size: 12px; }
.store-bio strong { display: block; font-size: 26px; letter-spacing: -.055em; line-height: 1.3; }
.store-bio p { max-width: 15em; margin-top: 8px; color: var(--body); font-size: 14px; }
.store-tabs { display: flex; align-items: center; gap: 24px; padding: 0 22px; border-bottom: 1px solid var(--rule); color: #625e63; font-size: 14px; }
.store-tabs > * { padding-block: 10px; }
.store-tabs b { border-bottom: 2px solid currentColor; color: var(--indigo-deep); }
.store-items { min-height: calc(40px + 2 * var(--dish-height)); padding: 6px 20px; }
.store-list-heading { display: flex; align-items: center; justify-content: space-between; min-height: 32px; font-size: 14px; }
.store-saved { color: var(--indigo-deep); font-size: 12px; font-weight: 650; }
.store-insert { overflow: hidden; }
.store-dish { height: var(--dish-height); display: flex; justify-content: space-between; gap: 10px; align-items: center; border-top: 1px solid #edeae5; }
.store-dish strong, .store-dish b { display: block; line-height: 1.45; }
.store-dish strong { font-size: clamp(17px, 2vw, 22px); letter-spacing: -.045em; }
.store-dish b { margin-top: 2px; font-size: 15px; }
.store-new { color: var(--indigo-deep); font-size: 12px; font-weight: 650; }
.store-dish .drink-thumb { flex: 0 0 auto; width: calc(var(--dish-height) - 20px); }
.store-dish .drink-thumb img { position: absolute; height: auto; max-width: none; }
@media (max-width: 640px) {
  .store-window { --dish-height: 78px; width: min(350px, calc(100% - 36px)); grid-template-columns: 1fr; }
  .store-profile { display: flex; align-items: center; gap: 12px; padding: 14px; border: 0; }
  .store-cover { width: 68px; height: 64px; border-radius: 8px; }
  .store-bio { padding: 0; }
  .store-bio strong { font-size: 21px; }
  .store-bio p { display: none; }
  .store-tabs { justify-content: space-between; }
  .store-tabs > * { padding-block: 7px; }
  .store-items { padding-inline: 14px; }
}
@media (max-height: 540px) {
  .store-window { --dish-height: 55px; }
  .store-cover { height: 68px; }
  .store-bio { padding: 7px 12px; }
  .store-bio strong { font-size: 18px; }
  .store-bio p { display: none; }
  .store-tabs > * { padding-block: 2px; }
  .store-items { padding-block: 0; min-height: calc(27px + 2 * var(--dish-height)); }
  .store-list-heading { min-height: 27px; }
  .store-dish strong { font-size: 15px; line-height: 1.15; }
  .store-dish b { font-size: 13px; line-height: 1.15; }
  .store-new { display: block; font-size: 10px; }
}
@media (max-height: 540px) and (max-width: 640px) {
  .store-profile { padding: 6px 12px; }
  .store-cover { width: 44px; height: 40px; }
  .store-bio { padding: 0; }
}
.menu-note {
  max-width: calc(100% - 32px);
  color: #514e47;
  font: 400 clamp(15px, 1.2vw, 18px)/1.55 var(--text);
  letter-spacing: -.025em;
  text-align: center;
  word-break: keep-all;
}
.menu-note strong {
  display: block;
  margin-bottom: 4px;
  color: #2b2926;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.045em;
}
@media (max-height: 540px) {
  .menu-story { gap: 12px; }
  .menu-note strong { font-size: 20px; }
}

/* Small entrances for the service sections. */
@media (prefers-reduced-motion: no-preference) {
  .enter-view { animation: section-arrives 540ms cubic-bezier(.2,.7,.25,1) backwards; }
  .menu-addition.enter-view { animation: menu-listed 760ms cubic-bezier(.2,.72,.25,1) backwards; }
  .menu-addition.enter-view .menu-new-label { animation: label-arrives 360ms 200ms ease-out backwards; }
  .place-photo.enter-view { animation: photo-opens 820ms cubic-bezier(.2,.72,.25,1) backwards; }
  .place-hours > .enter-view, .work-process li.enter-view { animation: none; }
  .place-hours > .enter-view dd { position: relative; }
  .place-hours > .enter-view dd::after, .work-process li.enter-view::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    height: 2px;
    background: currentColor;
    transform-origin: left;
    pointer-events: none;
  }
  .place-hours > .enter-view dd::after {
    bottom: -2px;
    animation: marked-line 650ms ease-out both;
  }
  .work-process li.enter-view { position: relative; }
  .work-process li.enter-view::after {
    top: -1px;
    background: #bcb6ff;
    animation: marked-line 650ms var(--step-delay, 0ms) ease-out backwards;
  }
  @media (min-width: 761px) {
    .work-process li:nth-child(2) { --step-delay: 140ms; }
    .work-process li:nth-child(3) { --step-delay: 280ms; }
  }
  @keyframes menu-listed {
    from { opacity: .35; transform: translateY(11px); }
    45% { background-color: #fff0f2; }
    to { opacity: 1; transform: none; background-color: transparent; }
  }
  @keyframes label-arrives {
    from { opacity: .4; transform: scale(.86); }
    to { opacity: 1; transform: none; }
  }
  @keyframes photo-opens {
    from { clip-path: inset(12% 0 15% round 6px); opacity: .65; }
    to { clip-path: inset(0 round 6px); opacity: 1; }
  }
  @keyframes marked-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes section-arrives {
    from { opacity: .72; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* The photograph dissolves into the berry backdrop while a separate menu rises. */
@media (min-height: 360px) {
.berry-scene { --runway: clamp(480px, 108svh, 1060px); }
.berry-scene::after { content: ''; display: block; height: var(--runway); }
.berry-scene .hero-stage {
  position: sticky;
  top: var(--header-height, 67px);
  height: calc(100svh - var(--header-height, 67px));
  padding: 0;
  isolation: isolate;
  overflow: clip;
  display: grid;
  place-items: center;
  background: var(--menu-paper);
}
.berry-scene .intro-copy, .berry-scene .menu-story { grid-area: 1 / 1; }
.berry-scene .menu-story { margin: 0; z-index: 1; pointer-events: none; }
.berry-scene .menu-note {
  opacity: var(--note, 0);
  transform: translateY(calc((1 - var(--note, 0)) * 8px));
}
.berry-scene .intro-copy {
  position: relative;
  place-self: stretch;
  isolation: isolate;
  min-height: 0;
  background: none;
}
.berry-scene .intro-copy::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: var(--photo, 1);
  background: var(--opening-photo);
}
.berry-scene .intro-copy > * {
  opacity: var(--copy, 1);
  transform: translateY(calc((var(--copy, 1) - 1) * 38px));
}
/* The profile appears before the new row pushes the existing menu down. */
.berry-scene .store-window {
  opacity: var(--menu-opacity, 0);
  transform: translateY(calc((1 - var(--lift, 0)) * 38px));
}
.berry-scene .store-insert {
  height: calc(var(--note, 0) * var(--dish-height));
  opacity: var(--note, 0);
}
.berry-scene .store-saved { opacity: var(--detail, 0); }
@media (max-height: 540px) {
  .berry-scene .intro-copy { padding-block: 16px; }
  .berry-scene h1 { font-size: clamp(26px, 7svh, 40px); }
  .berry-scene .hero-actions { margin-top: 8px; }
}
}

@media (prefers-reduced-motion: reduce) {
  .berry-scene .intro-copy > *,
  .berry-scene .store-window { transform: none; }
  .berry-scene .menu-note { transform: none; }
}


/* The browser can run the whole scene even when the optional script never starts. */
@property --photo { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --copy { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --menu-opacity { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --lift { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --note { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --detail { syntax: '<number>'; inherits: true; initial-value: 0; }

@supports (view-timeline-inset: 1px 0px) and (animation-range: contain) {
  @media (min-height: 360px) {
    .berry-scene {
      view-timeline-name: --menu-scroll;
      view-timeline-inset: var(--header-height, 67px) 0px;
    }
    .berry-scene .hero-stage, .berry-scene .hero-actions {
      animation: menu-dissolve auto ease-in-out both;
      animation-timeline: --menu-scroll;
      animation-range: contain;
    }
    .berry-scene .hero-actions { animation-name: menu-cta-visibility; }
  }
  @keyframes menu-dissolve {
    from { --photo: 1; --copy: 1; --lift: 0; --menu-opacity: 0; --note: 0; --detail: 0; }
    3% { --copy: 1; }
    6% { --photo: 1; }
    29% { --lift: 0; }
    28% { --menu-opacity: 0; }
    40% { --copy: 0; }
    50% { --menu-opacity: 1; --lift: 1; }
    58% { --note: 0; }
    64% { --photo: 0; }
    74% { --detail: 0; }
    84% { --note: 1; }
    94% { --detail: 1; }
    to { --photo: 0; --copy: 0; --lift: 1; --menu-opacity: 1; --note: 1; --detail: 1; }
  }
  @keyframes menu-cta-visibility {
    0%, 38% { visibility: visible; }
    40%, 100% { visibility: hidden; }
  }
}
@supports not ((view-timeline-inset: 1px 0px) and (animation-range: contain)) {
  /* On older browsers JS adds js-scene once it can drive the animation. */
  .shop-hero:not(.js-scene)::after { display: none; }
  .shop-hero:not(.js-scene) .hero-stage { position: static; height: auto; display: block; }
  .shop-hero:not(.js-scene) .intro-copy { min-height: calc(100svh - 67px); }
  .shop-hero:not(.js-scene) .menu-story {
    --menu-opacity: 1; --lift: 1; --detail: 1; --note: 1;
    padding: 52px 0;
  }
}
