/* «Хинкали Pro» — flagship launch page for a khinkali house. Black stage, one studio-lit product,
   Golos Text, hairline rules, pill controls. The only saturated colour is the broth amber. */
:root {
  --stage: #000;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #86868b;
  --rule: #424245;
  --panel: #161617;
  --broth: #f5a524;
  --gnav-h: 44px;
  --lnav-h: 48px;
  --hero-top: 112px;
  --gutter: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
html.rec { --hero-top: 176px; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--stage); color: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: "Golos Text", system-ui, sans-serif; font-size: 17px; line-height: 1.47;
  letter-spacing: -.01em; -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 0;
}
::selection { background: var(--broth); color: #000; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.num { font-feature-settings: "tnum" 1, "lnum" 1; }
html { scrollbar-color: #424245 #000; }

/* product stack: cut-out photographs placed by JS over the hero slot; later sections paint over it */
.stack { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.stack img { position: absolute; left: 0; top: 0; height: auto; transform-origin: 50% 50%; will-change: transform, opacity; user-select: none; }
.stack .part { opacity: 0; transform-origin: 0 0; } /* JS scales the parts from their top-left corner */
/* hidden until app.js has sized and placed the photos: before that the whole photo (it can load before the module
   has laid it out) would flash at its natural size — a huge khinkali corner for a few frames */
.stack:not(.is-ready) { visibility: hidden; }
.glow { position: absolute; left: 0; top: 0; width: 300px; height: 56px; margin: -28px 0 0 -150px;
  background: radial-gradient(closest-side, rgba(255, 238, 214, .13), rgba(255, 238, 214, 0)); }
.leaders { position: fixed; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.leaders line { stroke: #6e6e73; stroke-width: 1; }
.leaders circle { fill: var(--ink); }
.leaders .is-broth line { stroke: var(--broth); }
.leaders .is-broth circle { fill: var(--broth); }

/* global nav + local nav */
.gnav {
  position: fixed; z-index: 10; top: 0; left: 0; right: 0; height: var(--gnav-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter);
  background: rgba(22, 22, 23, .8); color: #e8e8ed;
}
.gnav-logo { display: grid; place-items: center; width: 32px; height: 32px; margin-left: -6px; }
.gnav-links { display: none; }
.gnav-tools { display: flex; align-items: center; gap: 14px; }
.gnav-tools a { display: grid; place-items: center; width: 32px; height: 32px; }
.gnav-menu { display: grid; gap: 5px; place-content: center; width: 32px; height: 32px; padding: 0; border: 0; background: none; }
.gnav-menu span { display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 1px; }
.lnav {
  position: fixed; z-index: 9; top: var(--gnav-h); left: 0; right: 0; height: var(--lnav-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter);
  background: rgba(0, 0, 0, .72); border-bottom: 1px solid rgba(66, 66, 69, .6);
}
.lnav-name { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }

/* pills */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px;
  border: 0; border-radius: 999px; background: var(--ink); color: #000; font-size: 17px; font-weight: 500; letter-spacing: -.01em;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.pill:hover { background: #fff; }
.pill:active { transform: scale(.97); }
.pill-sm { min-height: 28px; padding: 0 12px; font-size: 13px; font-weight: 500; }
.pill-accent { background: transparent; color: var(--broth); box-shadow: inset 0 0 0 1.5px var(--broth); }
.pill-accent:hover { background: rgba(245, 165, 36, .12); }
.pill-quiet { background: rgba(245, 245, 247, .1); color: var(--ink); }
.pill-quiet:hover { background: rgba(245, 245, 247, .18); }

/* hero */
main { position: relative; z-index: 2; }
.hero { position: relative; min-height: 100svh; padding: var(--hero-top) var(--gutter) 40px; text-align: center; }
.hero h1 { margin: 0; font-size: 54px; line-height: 1; font-weight: 700; letter-spacing: -.04em; }
.tagline { margin: 12px 0 0; font-size: 19px; line-height: 1.2; font-weight: 500; color: var(--ink-2); letter-spacing: -.015em; }
.product-slot { height: 228px; margin: 16px auto 8px; }
.price { margin: 0; font-size: 15px; color: var(--ink-3); }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }

/* exploded-view specs (positioned by JS next to each part) */
.specs { list-style: none; margin: 0; padding: 0; }
.specs li {
  position: fixed; z-index: 4; left: var(--gutter); top: 0; width: 136px; text-align: left;
  font-size: 13px; line-height: 1.32; color: var(--ink-2); letter-spacing: -.005em; opacity: 0; visibility: hidden;
}
.specs b { display: block; color: var(--ink); font-weight: 600; font-size: 14px; letter-spacing: -.015em; }
.specs .spec-broth b { color: var(--broth); }
.assemble { white-space: nowrap; position: fixed; z-index: 5; left: 50%; bottom: 28px; transform: translateX(-50%); opacity: 0; visibility: hidden; }

/* feature sections: one photograph each, feathered into the black */
.feature { position: relative; background: var(--stage); padding: 96px var(--gutter) 24px; text-align: center; border-top: 1px solid #1d1d1f; }
.feature h2 { margin: 0 auto; max-width: 14ch; font-size: 40px; line-height: 1.02; font-weight: 700; letter-spacing: -.04em; text-wrap: balance; }
.feature p { margin: 14px auto 0; max-width: 30ch; color: var(--ink-2); text-wrap: pretty; }
.feature-shot { display: block; width: 100%; max-width: 720px; height: auto; margin: 28px auto 0;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent); }
.tail { padding: 72px 0 40px; }
.tail .feature-shot { max-width: 760px; margin: 0 auto;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 58%, transparent 86%); mask-image: linear-gradient(transparent, #000 12%, #000 58%, transparent 86%); }
.tail-copy { position: relative; margin-top: -84px; padding: 0 var(--gutter); }

/* lineup */
.lineup { position: relative; background: var(--stage); padding: 96px var(--gutter) 88px; border-top: 1px solid #1d1d1f; }
.lineup h2, .order h2 { margin: 0 auto; max-width: 15ch; font-size: 32px; line-height: 1.08; font-weight: 700; letter-spacing: -.035em; text-align: center; text-wrap: balance; }
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 40px; }
.model { text-align: center; }
.model-shot { display: grid; place-items: end center; aspect-ratio: 1; }
.model-shot img { width: calc(100% * var(--s)); height: auto; }
.model h3 { margin: 6px 0 14px; min-height: 2.3em; font-size: 15px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.model dl { margin: 0; border-top: 1px solid var(--rule); }
.model dl div { padding: 10px 0 11px; border-bottom: 1px solid var(--rule); }
.model dt { font-size: 11px; line-height: 1.25; color: var(--ink-3); }
.model dd { margin: 3px 0 0; font-size: 15px; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; }
.model-pro dd { color: var(--ink); }

/* offer */
.order { position: relative; background: var(--stage); padding: 72px var(--gutter) 96px; text-align: center; border-top: 1px solid #1d1d1f; }
.order p { margin: 16px auto 28px; max-width: 32ch; color: var(--ink-2); text-wrap: pretty; }
.order .handle { font-size: 14px; color: #6e6e73; font-weight: 500; }
.ftr { position: relative; z-index: 2; background: var(--panel); padding: 20px var(--gutter) 28px; font-size: 12px; line-height: 1.4; color: var(--ink-3); text-align: center; }
.ftr p { margin: 0 auto; max-width: 52ch; }

/* record mode: the recorder owns time and scroll */
html.rec, html.rec * { cursor: none !important; transition: none !important; }
html.rec { scrollbar-width: none; }
html.rec::-webkit-scrollbar { display: none; }
html.rec .hero-actions .pill:first-child { display: none; }
html.rec .specs li { left: 36px; width: 128px; } /* inside the side crop of tall phones (Reel safe area) */
.tap { position: fixed; z-index: 20; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: rgba(255, 255, 255, .35); box-shadow: 0 0 0 2px rgba(255, 255, 255, .7), 0 6px 18px rgba(0, 0, 0, .4); }

@media (min-width: 900px) {
  :root { --gutter: 48px; --hero-top: 150px; }
  .gnav-links { display: flex; gap: 34px; font-size: 13px; color: #d2d2d7; }
  .gnav-links a:hover { color: #fff; }
  .gnav-menu { display: none; }
  .gnav { padding: 0 max(var(--gutter), calc(50vw - 490px)); }
  .lnav { padding: 0 max(var(--gutter), calc(50vw - 490px)); }
  .hero h1 { font-size: 96px; }
  .tagline { font-size: 28px; }
  .product-slot { height: 420px; }
  .specs li { width: 220px; font-size: 15px; left: max(var(--gutter), calc(50vw - 440px)); }
  .specs b { font-size: 17px; }
  .lineup h2, .order h2 { font-size: 56px; }
  .feature h2 { font-size: 72px; }
  .feature p { font-size: 21px; }
  .tail-copy { margin-top: -140px; }
  .models { max-width: 980px; margin: 64px auto 0; gap: 32px; }
  .model h3 { font-size: 24px; }
  .model dt { font-size: 13px; }
  .model dd { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .pill { transition: none; }
}
