/* Shared stage: all visual media is composited into one visible WebGL2 canvas. */
html{background:#090909}
body{background:transparent}
body>main{position:relative;z-index:1}
.stage,.pin,.menu,#done,#feast,#contacts,footer{background:transparent}
.khan-world{position:fixed;inset:0;z-index:0;display:block;width:100vw;height:calc(var(--film-vh,1dvh) * 100);pointer-events:none}
.world-source{opacity:0!important}
.glow,.vig,.pin::after,.dish-light,.flight-light,.pilot-label{display:none!important}
.has-world .scene[data-id="ribeye"] .meat,.has-world .scene[data-id="ribeye"] .meat-v,.has-world .scene[data-id="tomahawk"] .meat,.has-world .scene[data-id="tomahawk"] .meat-v{mask-image:none;-webkit-mask-image:none}
.meat-v>.world-static{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain}
.hero .tag{position:absolute;left:20px;right:20px;top:calc(var(--film-vh,1dvh) * 77);text-align:center;font-size:clamp(22px,2.1vw,32px)}
.hero .cue{bottom:calc(var(--film-vh,1dvh) * 4)}
.intro-skip{position:absolute;top:calc(var(--film-vh,1dvh) * 83.5);color:var(--muted);font:400 10px/1.4 var(--sans);letter-spacing:.10em;text-transform:uppercase;text-decoration:none;pointer-events:auto;padding:14px}
.intro-skip:hover{color:var(--ivory)}
.mark{width:34px;aspect-ratio:1062/1182;background:url(logo-mark-96.png?v=o31f) center/contain no-repeat;mask:none;-webkit-mask:none}
.card{background:rgba(19,18,16,.76)}
@media(max-width:900px) and (orientation:portrait){
 .hero .tag{top:calc(var(--film-vh,1dvh) * 73);font-size:23px}.intro-skip{top:calc(var(--film-vh,1dvh) * 80)}
 .world-static{object-fit:contain!important}
}
.rm .stage,.rm .pin{background:transparent}
.rm .hero,.rm .intro-skip{display:none}

.has-world .khan-logo-prerender{visibility:hidden}

@media(min-width:901px){.copy[data-side="left"]{bottom:calc(var(--film-vh,1dvh) * 12)}}

/* The catalog continues the same downward journey. */
.menu>.pin{position:relative;height:auto;min-height:calc(var(--film-vh,1dvh) * 100);overflow:visible;display:block;padding:calc(var(--film-vh,1dvh) * 12) 0}
.menu .sec-head{margin-bottom:44px}
.track{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:auto;max-width:1680px;margin:0 auto;gap:22px;transform:none!important;will-change:auto}
.card{width:auto;min-width:0}
.menu-note{margin:28px var(--gut) 0}
@media(max-width:1100px){.track{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.track{grid-template-columns:1fr}.menu>.pin{padding:70px 0}.menu .sec-head{margin-bottom:28px}}

.khan-world[hidden]{display:none!important}

.rm .khan-logo-canvas,.rm .khan-logo-prerender{display:none!important}

/* Fall into the menu: the menu rises over the last stretch of the film, out of the same smoke the tomahawk dissolves into. */
.has-world #menu.km{margin-top:calc(var(--film-vh,1dvh) * -62);z-index:2}

/* Logo film plate: same frame as the dishes, centred. */
.logo-plate{position:absolute;inset:0;z-index:1;pointer-events:none}
.logo-meat{position:absolute;left:50%;top:43%;transform:translate(-50%,-50%);width:min(100vw,1500px,calc(var(--film-vh,1dvh) * 128));height:auto;aspect-ratio:16/9} /* the logo sits above the tagline */
.logo-meat .meat-v>img,.logo-meat .meat-v>video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
@media(max-width:900px) and (orientation:portrait){.logo-meat{width:100vw;height:min(calc(var(--film-vh,1dvh) * 57),124vw);aspect-ratio:auto;top:39%} /* the whole lettering fits the phone width */.logo-meat .meat-v>img,.logo-meat .meat-v>video{object-fit:cover;object-position:50% 50%}}
.has-world .logo-meat,.has-world .logo-meat .meat-v{mask-image:none;-webkit-mask-image:none}
.has-world .biglogo,.has-world .khan-logo-prerender{display:none!important}

/* Real-time 3D logo: inside the pinned stage, above the smoke world, below the copy. */
.khan-logo3d{position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none;display:block}
.rm .khan-logo3d{display:none}
/* Reduced motion: no intro animation, but the first screen still shows the original logo, still. */
.rm .scene[data-id="logo"]{display:block;padding:72px 0 0}
.rm .scene[data-id="logo"] .hero{display:grid;position:relative;inset:auto;min-height:calc(calc(var(--film-vh,1dvh) * 100) - 72px);visibility:visible;gap:22px;align-content:center}
.rm .scene[data-id="logo"] .burn::before{content:"";display:block;width:min(62vw,calc(var(--film-vh,1dvh) * 54));aspect-ratio:1062/1182;margin:0 auto;background:url(logo-current-transparent.png) center/contain no-repeat} /* the canvas logo is switched off inline in this mode */
.rm .scene[data-id="logo"] .tag{position:static;opacity:1!important}
.rm .scene[data-id="logo"] .cue{display:none}
/* iPhone Safari draws the page under the status bar and lets it show above a fixed header while the toolbar
   collapses or the page bounces: the header's own background continues up past the screen edge. */
.hdr::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:200px;background:rgba(9,9,9,.94);pointer-events:none}
@media (max-width:767px){.hdr{padding-top:env(safe-area-inset-top);height:calc(60px + env(safe-area-inset-top))}}
/* Phone header: a burger with a drop-down instead of the bare cart counter. */
.burger,.mnav{display:none}
@media (max-width:767px){.hdr .cartbtn{display:none}}
/* с 768 до 1279 ссылки шапки тоже в бургере */
@media (max-width:1279px){
  .burger{display:grid;place-content:center;gap:7px;position:relative;margin-left:auto;width:48px;height:48px;padding:0;border:1px solid var(--line);background:transparent;cursor:pointer;touch-action:manipulation}
  .burger span{display:block;width:20px;height:1.5px;background:var(--ivory);transition:transform .3s cubic-bezier(.2,.7,.2,1)}
  .burger[aria-expanded="true"] span:first-child{transform:translateY(4.25px) rotate(45deg)}
  .burger[aria-expanded="true"] span:nth-child(2){transform:translateY(-4.25px) rotate(-45deg)}
  .burger-n{position:absolute;top:-7px;right:-7px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--gold);color:#120d06;font:400 11px/18px var(--num);font-style:normal;font-variant-numeric:lining-nums tabular-nums;font-weight:400}
  .mnav{display:block;position:fixed;left:0;right:0;top:calc(60px + env(safe-area-inset-top));z-index:13;max-height:calc(100dvh - 60px - env(safe-area-inset-top));overflow:auto;overscroll-behavior:contain;padding:6px var(--gut) calc(28px + env(safe-area-inset-bottom));background:rgba(9,9,9,.97);border-bottom:1px solid var(--line);opacity:0;transform:translate3d(0,-12px,0);visibility:hidden;transition:opacity .22s ease-in,transform .22s ease-in,visibility 0s .22s}
  .mnav.open{opacity:1;transform:none;visibility:visible;transition:opacity .3s cubic-bezier(.2,.7,.2,1),transform .34s cubic-bezier(.2,.7,.2,1)}
  .mnav nav{display:flex;flex-direction:column}
  .mnav nav a{font:400 30px/1.1 var(--serif);color:var(--ivory);text-decoration:none;padding:13px 0;border-bottom:1px solid rgba(247,234,215,.08);letter-spacing:0;text-transform:none}
  .mnav-tel{display:block;margin:22px 0 18px;font:400 20px/1 var(--num);color:var(--ivory);text-decoration:none;font-variant-numeric:lining-nums tabular-nums;font-weight:400}
  .mnav-actions{display:grid;gap:10px}
  .mnav-actions .btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;align-self:stretch}
  .mnav-cart{display:flex;justify-content:space-between;align-items:center;min-height:48px;padding:0 2px;color:var(--muted);font:400 12px/1 var(--sans);letter-spacing:.10em;text-transform:uppercase;text-decoration:none}
  .mnav-cart i{font:400 15px/1 var(--num);font-style:normal;color:var(--ivory);font-variant-numeric:lining-nums tabular-nums;font-weight:400}
}
@media (min-width:768px) and (max-width:1279px){.burger{margin-left:0}.mnav{top:72px;max-height:calc(100dvh - 72px)}}
@media (prefers-reduced-motion:reduce){.mnav,.mnav.open,.burger span{transition:none}}
/* Phone portrait: the whole film frame instead of a 40% cover crop, so the steak is seen whole; the frame is twice the
   screen wide (its sides are off-screen) and its lower edge sits by the bottom tabs, dissolving into the dark.
   180vw (was 225vw): a bit smaller, and the finished tomahawk keeps its whole bone on screen. */
@media (max-width:900px) and (orientation:portrait){
  .scene[data-id="ribeye"] .meat,.scene[data-id="tomahawk"] .meat{width:min(180vw,calc(var(--film-vh,1dvh) * 120));height:calc(min(180vw,calc(var(--film-vh,1dvh) * 120)) * 768 / 1344);aspect-ratio:auto}
  .scene[data-id="ribeye"] .meat-v>video,.scene[data-id="tomahawk"] .meat-v>video{object-fit:fill!important;object-position:50% 50%!important}
  .scene[data-side="right"] .meat-v{transform:translateX(-13%)}
  .scene[data-side="left"] .meat-v{transform:translateX(17%)}
}
/* Phone, dish finale: the steak holds the middle of the screen; the title sits above it on the left, the line and
   the button below it on the left (copy spans the screen, the line takes the free space above itself). */
@media (max-width:900px) and (orientation:portrait){
  .copy,.copy[data-side="left"]{top:calc(var(--hdr,64px) + calc(var(--film-vh,1dvh) * 4));bottom:calc(var(--film-vh,1dvh) * 15);display:flex;flex-direction:column}
  .copy .line{margin-top:auto}
}
/* Phone: no dish counter, progress rail or chapter tabs under the film — the burger already leads to the menu. */
@media (max-width:767px){.count,.chapter-nav,.rail{display:none!important}}
/* The frame-sequence canvas (frame-seq.js) fills the clip box; its native pixel size would shift the dish to the side. */
.meat-v>canvas.cooked{position:absolute;inset:0;display:block;width:100%;height:100%}

/* HTTP/decoder failures keep a real logo visible until a frame is painted. */
.logo-pending:not(.rm) .khan-logo-prerender{display:block!important;visibility:visible!important;opacity:var(--logo-fallback-opacity,1)!important;z-index:4}
.rm .scene .meat-v{transform:none!important}
.film-low .hero .cue{display:none}

/* The fallback shares the stable film box while browser toolbars move. */
.logo-pending:not(.rm) .khan-logo-prerender{width:min(80vw,calc(var(--film-vh,1dvh) * 62));max-height:calc(var(--film-vh,1dvh) * 70)}

/* Blend the composite group: transforms on the plate isolate a child's blend from the page haze. */
.world-fallback body>main{mix-blend-mode:lighten}
