/* ==========================================================================
   Home hero v2: kitchen-ticket promo ribbon, photo snaps, live order slip
   ========================================================================== */

/* ---------- Ticket promo ribbon ---------- */
.tk-ribbon {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 0 10px 0 0;
  border-radius: 20px;
  background: #1d1d1f;
  color: #f3ede3;
  overflow: hidden;
  isolation: isolate;
}
.tk-ribbon::before {
  /* moving warm glint */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 123, 116, .14) 45%, transparent 60%);
  background-size: 250% 100%;
  animation: tk-glint 6s ease-in-out infinite;
}
@keyframes tk-glint { 0%, 100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }
.tk-stub {
  position: relative;
  align-self: stretch;
  display: flex; align-items: center;
  padding: 0 26px 0 22px;
  background: #c8232c;
  color: #fff;
  font-family: var(--ed-serif);
  line-height: 1;
}
.tk-stub::after {
  /* perforated edge */
  content: "";
  position: absolute; right: -6px; top: 0; bottom: 0; width: 12px;
  background: radial-gradient(circle at 6px 8px, #1d1d1f 4px, transparent 4.5px) 0 0 / 12px 16px repeat-y;
}
.tk-minus { font-size: 1.6rem; margin-right: 2px; opacity: .85; }
.tk-num { font-size: 2.7rem; letter-spacing: -.05em; }
.tk-pct { font-size: 1.2rem; font-style: italic; align-self: flex-start; margin-top: 10px; margin-left: 2px; }
.tk-body { min-width: 0; }
.tk-title { font-family: var(--ed-serif); font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.15; }
.tk-title .ed-italic { color: #ff7b74; }
.tk-sub { margin-top: 3px; font-size: .78rem; color: rgba(243, 237, 227, .62); }
.tk-code {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 14px;
  border-radius: 12px;
  border: 1.5px dashed rgba(243, 237, 227, .35);
  color: #f3ede3;
  transition: border-color .2s, background-color .2s, transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.tk-code:hover { border-color: #ff7b74; background: rgba(255, 123, 116, .08); transform: rotate(-2deg); }
.tk-code-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(243, 237, 227, .55); }
.tk-code-val { font: 700 1.15rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; color: #ff7b74; }
.tk-go {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 18px;
  border-radius: 12px;
  background: #f3ede3; color: #1d1d1f;
  font-size: .88rem; font-weight: 600; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.tk-go:hover { background: #c8232c; color: #fff; }
.tk-go svg { transition: transform .25s; }
.tk-go:hover svg { transform: translateX(3px); }
@media (max-width: 767px) {
  .tk-ribbon { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; min-height: 64px; padding-right: 8px; border-radius: 18px; }
  .tk-stub { padding: 0 18px 0 14px; }
  .tk-num { font-size: 2.1rem; }
  .tk-title { font-size: 1rem; }
  .tk-sub { display: none; }
  .tk-go { display: none; }
  .tk-code { height: 42px; padding: 0 10px; gap: 6px; }
  .tk-code-label { display: none; }
  .tk-code-val { font-size: 1rem; }
}

/* ---------- Hero stage ---------- */
.hx-sheet { position: relative; overflow: hidden; isolation: isolate; }
.hx-sheet::before {
  /* faint plate rings behind the headline */
  content: "";
  position: absolute; left: 50%; top: 46%; z-index: -1;
  width: min(900px, 120vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background:
    radial-gradient(circle, transparent 54%, color-mix(in srgb, var(--foreground) 5%, transparent) 54.2%, transparent 54.6%),
    radial-gradient(circle, transparent 68%, color-mix(in srgb, var(--foreground) 4%, transparent) 68.2%, transparent 68.6%),
    radial-gradient(circle, color-mix(in srgb, #ffb648 9%, transparent), transparent 52%);
  pointer-events: none;
}
.hx-stamp {
  position: absolute; left: 22px; top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font: 600 .66rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .22em; text-transform: uppercase;
  color: color-mix(in srgb, var(--foreground) 38%, transparent);
  white-space: nowrap;
  max-height: 80%; overflow: hidden;
}
.hx-snap {
  position: absolute; z-index: 1; margin: 0;
  width: 132px; aspect-ratio: 5 / 6;
  padding: 8px 8px 26px;
  background: #fffdf8;
  border-radius: 6px;
  box-shadow: 0 22px 40px -22px rgba(29, 29, 31, .55), 0 2px 6px rgba(29, 29, 31, .08);
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.hx-snap img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.hx-snap::before {
  /* tape */
  content: ""; position: absolute; top: -10px; left: 50%;
  width: 54px; height: 20px; transform: translateX(-50%) rotate(-4deg);
  background: rgba(243, 237, 227, .85);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.hx-snap-a { right: 7%; top: 14%; transform: rotate(7deg); animation: hx-float 7s ease-in-out infinite; }
.hx-snap-b { left: 8%; bottom: 14%; transform: rotate(-6deg); animation: hx-float 8s ease-in-out -2s infinite; }
.hx-snap:hover { transform: rotate(0) scale(1.06); animation-play-state: paused; }
@keyframes hx-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.hx-ticket {
  position: absolute; z-index: 2; right: 6%; bottom: 12%;
  display: flex; flex-direction: column; gap: 7px;
  width: 210px; padding: 14px 16px 18px;
  background: #fffdf8; color: #1d1d1f;
  border-radius: 10px 10px 0 0;
  font: 500 .74rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  box-shadow: 0 26px 46px -24px rgba(29, 29, 31, .55);
  transform: rotate(-3deg);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, radial-gradient(circle at 6px 0, #000 5.5px, transparent 6px) bottom left / 12px 9px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, radial-gradient(circle at 6px 0, #000 5.5px, transparent 6px) bottom left / 12px 9px repeat-x;
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.hx-ticket:hover { transform: rotate(0) translateY(-4px); }
.hx-ticket-head { display: flex; justify-content: space-between; padding-bottom: 7px; border-bottom: 1.5px dashed rgba(29, 29, 31, .25); text-transform: uppercase; letter-spacing: .12em; font-size: .64rem; color: #c8232c; font-weight: 700; }
.hx-ticket-row { display: flex; justify-content: space-between; }
.hx-ticket-bar { position: relative; height: 4px; margin-top: 4px; border-radius: 4px; background: rgba(29, 29, 31, .1); overflow: hidden; }
.hx-ticket-bar i { position: absolute; inset: 0; width: 62%; border-radius: 4px; background: #c8232c; animation: hx-cook 3.2s ease-in-out infinite alternate; }
@keyframes hx-cook { from { width: 38%; } to { width: 78%; } }
.hx-ticket-foot { display: flex; justify-content: space-between; font-size: .66rem; color: rgba(29, 29, 31, .6); }

@media (max-width: 1279px) { .hx-snap { width: 104px; } .hx-ticket { width: 186px; right: 4%; } }
@media (max-width: 1023px) { .hx-snap, .hx-stamp { display: none; } .hx-ticket { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .tk-ribbon::before, .hx-snap, .hx-ticket-bar i { animation: none; }
}
