/* Homepage, the moving layer: the light molten hero and the orange band. Loaded after
   store.css. Every word and photo is visible from the first frame; the moving parts
   (js/home-fx.js) only add to it. */

main { overflow-x: clip; }

/* ---------- Hero: warm cream, glossy orange drips melting down from the top ---------- */
.hero--melt {
  position: relative; z-index: 2; color: var(--ink); display: flex; align-items: center;
  min-height: min(calc(100svh - 100px), 860px);
  background: radial-gradient(55% 65% at 80% 35%, rgba(255, 128, 64, .2), transparent 70%), radial-gradient(45% 45% at 6% 6%, rgba(255, 110, 90, .14), transparent 70%), #fbf6ef;
}
.melt-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s ease; }
.hero--melt.melt-on .melt-canvas { opacity: 1; }
.hero--melt .wrap {
  position: relative; z-index: 1; width: 100%; display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-areas: "copy show" "facts show";
  column-gap: clamp(28px, 5vw, 84px); align-items: center;
  padding-top: clamp(96px, 13vh, 144px); padding-bottom: clamp(56px, 8vh, 96px);
}
.hero--melt .hero__copy { grid-area: copy; align-self: end; }
.hero--melt .h-hero__kicker { color: var(--ink-2); font-size: 14.5px; }
.hero--melt h1 { font-size: clamp(46px, 6vw, 92px); line-height: .95; letter-spacing: -.055em; font-weight: 700; margin: 18px 0 22px; color: var(--ink); text-wrap: balance; }
.hero--melt h1 em { font-style: normal; color: var(--accent); }
.hero--melt h1 .w { display: inline-block; white-space: nowrap; }
.hero--melt h1.ptext .ch {
  display: inline-block; transform-origin: 50% 0; scale: 1 var(--sy, 1);
  color: color-mix(in srgb, var(--accent) calc(var(--k, 0) * 100%), currentColor);
}
.hero--melt .h-hero__sub { color: var(--ink-2); font-size: clamp(17px, 1.35vw, 19.5px); max-width: 46ch; }
.hero--melt .btn--accent:hover { background: var(--ink); color: #fff; box-shadow: 0 14px 34px -12px rgba(255, 79, 0, .7); }
.hero--melt .btn--ghost { color: var(--ink); background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1.5px rgba(21, 20, 19, .2); }
.hero--melt .btn--ghost:hover { background: var(--cobalt); color: #fff; box-shadow: none; }
.h-hero__link { display: inline-flex; align-items: center; gap: 8px; align-self: center; padding: 10px 6px; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(21, 20, 19, .28); text-underline-offset: 5px; transition: text-decoration-color .2s, gap .2s; }
.h-hero__link:hover { text-decoration-color: var(--accent); gap: 12px; }
.h-hero__link .icon { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }
.hero--melt .h-facts { grid-area: facts; align-self: start; margin-top: 32px; border-top-color: rgba(21, 20, 19, .12); }
.hero--melt .h-facts b { color: var(--ink); font-size: 20px; }
.hero--melt .h-facts span { color: var(--muted); }

/* The product frame. The shader paints the photo and melts it into the next; the image is the fallback. */
.showcase { grid-area: show; position: relative; display: block; aspect-ratio: 1 / 1.08; width: 100%; max-width: 520px; justify-self: end; border-radius: 28px; color: var(--ink); box-shadow: 0 40px 80px -44px rgba(255, 79, 0, .5); }
.showcase__still { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; background: #fff; }
.showcase--gl { box-shadow: none; }
.showcase--gl .showcase__still { opacity: 0; }
.showcase__cap { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 18px; border-radius: 18px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px -16px rgba(21, 20, 19, .35); }
.showcase__cap > div { flex: 1; min-width: 0; }
.showcase__type { display: block; font-size: 12.5px; color: #c23c00; margin-bottom: 2px; }
.showcase__cap b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.showcase__price { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.showcase .tile__arrow { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 99px; background: var(--accent); color: #fff; transition: transform .35s var(--ease); }
.showcase:hover .tile__arrow { transform: rotate(-45deg); }
.showcase:focus-visible { outline-offset: 4px; border-radius: 28px; }

/* The hero's bottom edge stays straight on the light page; the orange band carries the melt. */
.melt-edge { display: none; }

/* ---------- The orange band ---------- */
.heat-wrap { position: relative; z-index: 3; overflow: hidden; padding: 30px 0; margin-top: 4px; }
.heat { margin: 0 -2vw; rotate: -1.6deg; background: linear-gradient(90deg, #e0141f, #ff6a00 55%, #ff8400); color: #fff; padding: 16px 0; box-shadow: 0 18px 40px -20px rgba(224, 20, 31, .8); }
.heat__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.heat__group { display: flex; align-items: center; gap: 34px; padding-right: 34px; font-size: clamp(20px, 2.4vw, 34px); font-weight: 700; letter-spacing: -.035em; white-space: nowrap; }
.heat__group i { width: 11px; height: 15px; border-radius: 0 50% 50% 50%; transform: rotate(45deg); background: #fff; flex: none; }
.h-section--first { padding-top: clamp(56px, 7vw, 96px); }

/* ---------- Bolder type on this page ---------- */
.home .h-section h2 { font-weight: 700; letter-spacing: -.045em; }
.home .card:hover { box-shadow: 0 0 0 1px var(--line-strong), 0 22px 50px -22px rgba(255, 106, 0, .7); }

@media (max-width: 980px) {
  .hero--melt { min-height: 0; }
  .hero--melt .wrap { grid-template-columns: 1fr; grid-template-areas: "copy" "show" "facts"; padding-top: 72px; padding-bottom: 48px; }
  .showcase { justify-self: start; max-width: 560px; aspect-ratio: 1 / 1; margin-top: 30px; }
}
@media (max-width: 700px) {
  .hero--melt .wrap { padding-top: 56px; }
  .hero--melt h1 { font-size: clamp(42px, 12vw, 58px); }
  .hero--melt .h-hero__sub { font-size: 16.5px; }
  .hero--melt .h-hero__cta .btn { flex: 1 1 100%; }
  .showcase { margin-top: 24px; border-radius: 22px; }
  .showcase__still { border-radius: 22px; }
  .hero--melt .h-facts { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .heat__track { animation: none; }
}
