/* Type and photography form one composition on both selected panels. */
.menu-section{padding-top:50px}
.menu-spread{margin-top:0;align-items:start;gap:6%;grid-template-columns:1fr 1fr}
.menu-photo-wrap{position:relative;isolation:isolate;overflow:hidden;min-height:640px;background:#111d15;order:0}
.menu-photo-wrap>img,.menu-photo-wrap>img.coffee{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:86% 50%;max-width:none;background:#111d15}
.menu-photo-wrap::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;background:linear-gradient(180deg,#07130b55,transparent 53%)}
.menu-photo-copy{position:relative;z-index:1;padding:34px 7% 38px;color:var(--cream);max-width:440px;text-shadow:0 2px 15px #0005}
.menu-photo-copy .menu-heading{border:0;padding:0;display:block}
.menu-photo-copy .menu-heading h2{font-size:clamp(48px,4vw,56px);line-height:.96;max-width:330px;margin-top:14px}
.menu-photo-copy .menu-heading>p{font-size:12px;line-height:1.7;margin-top:15px;max-width:285px;padding:0}
.menu-photo-copy .menu-heading>p br{display:none}
.menu-photo-copy>.text-link{font-size:12px;min-height:38px;margin-top:13px;gap:32px}
.menu-photo-wrap #menu-image-caption{position:absolute;left:7%;right:7%;bottom:12px;z-index:2;margin:0;font-size:9px;text-shadow:0 1px 8px #000}
.menu-page{order:1}
.menu-page .menu-tabs{margin:0 0 24px;gap:28px;justify-content:flex-start;flex-wrap:wrap}
.menu-page .menu-tabs button{font-size:13px;gap:10px;min-height:44px}
.menu-bottom{margin-top:20px}
.footer-scene{display:block;position:relative;isolation:isolate;min-height:460px;background:#111d15}
.footer-scene>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:right center;max-width:none;z-index:0}
.footer-scene-copy{position:absolute;z-index:2;inset:10% auto auto 4%;padding:0;min-height:0;width:40%;background:transparent;color:var(--cream);text-shadow:0 2px 16px #0005}
.footer-scene-copy .scene-name{font-size:clamp(38px,4.3vw,60px);line-height:1.02;max-width:410px;margin-top:18px}
.footer-scene-copy>.text-link{margin-top:28px;max-width:100%;font-size:12px;gap:18px}
@media(min-width:601px) and (max-width:1000px){.menu-spread{grid-template-columns:1fr;gap:35px}.menu-photo-wrap{min-height:600px}.menu-photo-copy{max-width:390px}.menu-photo-wrap>img{object-position:85% 50%}.menu-page .menu-tabs{gap:36px}.footer-scene-copy{width:43%;inset:8% auto auto 4%}.footer-scene-copy .scene-name{font-size:43px}}
@media(max-width:600px){
 .menu-section{padding:28px 6% 40px}
 .menu-spread{display:flex;flex-direction:column;gap:29px}
 .menu-photo-wrap{width:100%;min-height:clamp(520px,115vw,620px)}
 .menu-photo-wrap>img,.menu-photo-wrap>img.coffee{height:100%;object-position:86% 50%}
 .menu-photo-copy{padding:25px 7% 30px;max-width:85%}
 .menu-photo-copy .menu-heading .eyebrow{font-size:9px}
 .menu-photo-copy .menu-heading h2{font-size:clamp(43px,9.8vw,52px);line-height:.96;margin-top:13px;max-width:290px}
 .menu-photo-copy .menu-heading>p{font-size:12px;line-height:1.65;margin-top:13px;max-width:260px}
 .menu-photo-copy>.text-link{font-size:12px;min-height:36px;margin-top:12px;gap:25px}
 .menu-page{width:100%}
 .menu-page .menu-tabs{justify-content:space-between;gap:8px;flex-wrap:nowrap;margin:0 0 16px}
 .menu-page .menu-tabs button{font-size:12px;gap:6px}
 .footer-scene{height:clamp(500px,107vw,600px);min-height:0;margin:26px 0 24px;overflow:hidden}
 .footer-scene>img{position:absolute;inset:auto 0 0;width:100%;height:auto;object-fit:contain;object-position:100% 100%;mask-image:linear-gradient(180deg,transparent,#000 17%);-webkit-mask-image:linear-gradient(180deg,transparent,#000 17%)}
 .footer-scene-copy{inset:27px auto auto 7%;width:79%;max-width:360px;min-height:0;padding:0;background:transparent}
 .footer-scene-copy .eyebrow{font-size:9px}
 .footer-scene-copy .scene-name{font-size:clamp(34px,7.4vw,43px);line-height:1.02;max-width:320px;margin-top:14px}
 .footer-scene-copy>.text-link{font-size:11px;min-height:40px;margin-top:18px;gap:14px}
}
@media(max-width:360px){.menu-photo-wrap{min-height:490px}.menu-photo-copy{max-width:90%;padding-top:23px}.menu-photo-copy .menu-heading h2{font-size:40px}.menu-photo-copy .menu-heading>p{font-size:11px;max-width:220px}.menu-photo-copy>.text-link{font-size:11px;min-height:34px;margin-top:10px}.menu-page .menu-tabs button{font-size:11px;gap:5px}.menu-page .menu-tabs button i{display:none}.footer-scene{height:480px}.footer-scene-copy .scene-name{font-size:32px}.footer-scene-copy>.text-link{font-size:10px}}
/* On phones, keep the closing words beside the mascot in the image's dark space. */
@media(max-width:600px){
 .footer-scene{height:clamp(340px,75vw,420px)}
 .footer-scene>img{inset:0 0 0 auto;width:94%;height:100%;object-fit:contain;object-position:right center;mask-image:linear-gradient(90deg,transparent,#000 38%);-webkit-mask-image:linear-gradient(90deg,transparent,#000 38%)}
 .footer-scene-copy{inset:10% auto auto 7%;width:45%;max-width:none}
 .footer-scene-copy .scene-name{font-size:clamp(23px,5.8vw,31px);max-width:100%;line-height:1.04;margin-top:13px}
 .footer-scene-copy .eyebrow{font-size:8px;line-height:1.7}
 .footer-scene-copy>.text-link{font-size:10px;line-height:1.7;margin-top:21px;min-height:40px;gap:9px}
}
@media(max-width:360px){.footer-scene-copy{width:49%}.footer-scene-copy .scene-name{font-size:20px}.footer-scene-copy>.text-link{font-size:9px}}

.menu-photo-wrap::after{background:linear-gradient(180deg,#07130b96,#07130b45 34%,transparent 65%,#07130b55)}
@media(max-width:600px){.footer-scene-copy>.text-link{font-size:12px;gap:12px;white-space:nowrap;min-height:44px}}
@media(max-width:360px){.footer-scene-copy>.text-link{font-size:11px;gap:10px}}
.menu-photo-wrap:has(>img.breakfast)::after,.menu-photo-wrap:has(>img.lunch)::after{background:linear-gradient(180deg,#07130bba,#07130b99 43%,transparent 72%,#07130b66)}

/* Let the menu photograph reach both screen edges while the menu keeps its gutters. */
#menu{padding-inline:0;padding-top:0}
#menu-title,#kitchen-title,#see-you .scene-name{color:var(--hero-heading-color,#fbf0d6)}
#menu .menu-photo-copy{padding-top:calc(34px + clamp(16px,3vw,38px))}
#menu .menu-spread{display:grid;grid-template-columns:minmax(0,1fr);gap:0;isolation:isolate}
#menu .menu-page{position:relative;z-index:1;width:auto;padding:clamp(29px,5vw,64px) 5% 0;background:var(--matcha-sage)}
#menu .menu-page::before{
  content:"";position:absolute;inset:auto 0 calc(100% - 2px);height:clamp(25px,4vw + 1px,55px);
  background:url('/assets/paper-edge-sage.svg') center/100% 100% no-repeat;
  pointer-events:none;
}
#menu .menu-photo-wrap{position:sticky;top:min(0px,calc(100svh - 100vw / 1.65));margin:0;min-height:0;aspect-ratio:1.65;background:#191b19}
#menu-photo.coffee{object-position:center 72%}

@media(max-width:600px){
  #menu .menu-page{padding-inline:6%}
  #menu .menu-photo-wrap{top:min(0px,calc(100svh - 54px - 66.667vw - 19rem));aspect-ratio:auto;padding-bottom:66.667%}
  #menu .menu-photo-wrap>img{inset:auto 0 0;height:auto;aspect-ratio:3/2}
  #menu .menu-photo-wrap::after{
    top:auto;aspect-ratio:3/2;background:linear-gradient(#191b19,transparent 25%);
  }
  #menu .menu-photo-copy{padding-inline:6%}
}

@media(prefers-reduced-motion:reduce){
  #menu .menu-photo-wrap{position:relative;top:auto}
}

/* The story and its torn edge pass over the pinned breakfast scene. */
.kitchen-reveal{position:relative;isolation:isolate}
.kitchen-reveal .kitchen-feature{position:sticky;top:0}
.kitchen-reveal .story-section{position:relative;z-index:1;background:var(--cream)}
/* Paint the tear with the story so they move as a single layer. */
.kitchen-reveal .story-section::before{
 content:"";position:absolute;inset:auto 0 calc(100% - 2px);height:56px;
 background:url('/assets/paper-edge-cream.svg') center/100% 100% no-repeat;
 pointer-events:none;
}
@media(max-width:700px){
 .kitchen-reveal .story-section::before{height:38px}
}
/* Keep WebKit's sticky photo and the moving torn edge on stable layers. */
@media(max-width:600px) and (prefers-reduced-motion:no-preference){
 #menu .menu-photo-wrap,
 .kitchen-reveal .kitchen-feature{overflow:clip;isolation:auto;transform:translateZ(0)}
 #menu .menu-page,
 .kitchen-reveal .story-section{transform:translateZ(0)}
}
@media(prefers-reduced-motion:reduce){
  .kitchen-reveal .kitchen-feature{position:relative;top:auto}
}

#menu .menu-tabs{gap:8px;border-bottom:0}
#menu .menu-tabs button{
 justify-content:center;min-width:112px;min-height:44px;margin:0;padding:8px 14px;
 border:1px solid var(--matcha-ink);border-radius:4px;
 background:var(--cream);color:var(--matcha-ink);font-weight:600;
}
#menu .menu-tabs button[aria-selected="true"]{
 background:var(--green);color:var(--cream);border-color:var(--green);
}
#menu .menu-tabs button:focus-visible{outline-color:var(--deep);outline-offset:3px}
@media(max-width:600px){
 #menu .menu-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
 #menu .menu-tabs button{min-width:0;padding-inline:4px}
}
