/* KLAMPO: the "name prints in front of you" first screen (home page and lab/wow.html). Phone first.
   Everything is scoped to .wow, so it can sit inside the shop page without touching it. */
.wow {
  --midnight: #12151C; --paper: #EDEAE3; --lamp: #F0A848; --monitor: #8EC9F5; --muted: #A9AFBD; --ink: #1B1205; --error: #FFB1A8;
  --head: Unbounded, 'Arial Black', system-ui, sans-serif; --text: Onest, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--paper); font-family: var(--text); -webkit-font-smoothing: antialiased; color-scheme: dark;
}
.wow, .wow * { box-sizing: border-box; }
.wow { position: relative; height: 100vh; height: 100dvh; min-height: 560px; overflow: hidden; isolation: isolate;
  /* what shows before the first frame and behind the poster: the two lights, never flat black */
  background:
    radial-gradient(120% 70% at 105% -5%, rgb(142 201 245 / .10), transparent 60%),
    radial-gradient(110% 70% at -10% 105%, rgb(240 168 72 / .09), transparent 60%),
    var(--midnight); }
.wow-stage, .wow-poster, .wow-poster img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wow-stage { opacity: 0; transition: opacity .5s ease; touch-action: pan-y; }
.wow[data-state='live'] .wow-stage, .wow[data-state='still'] .wow-stage { opacity: 1; }
.wow-poster img { object-fit: cover; object-position: 50% 30%; }
.wow-poster[hidden] { display: none; }
/* keeps the type readable over the scene; the light still comes through */
.wow-veil { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgb(12 14 19 / .94) 0%, rgb(12 14 19 / .78) 22%, rgb(12 14 19 / 0) 46%), linear-gradient(to bottom, rgb(12 14 19 / .55), rgb(12 14 19 / 0) 14%); }

.wow-top { position: absolute; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; padding: max(14px, env(safe-area-inset-top)) 18px 0; z-index: 2; }
.wow-brand img { display: block; height: 22px; width: auto; }

.wow-ui { position: absolute; inset: auto 0 0 0; padding: 0 18px max(18px, env(safe-area-inset-bottom)); z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.wow-title { margin: 0; font: 700 clamp(1.0625rem, 5.5vw, 1.5rem)/1.1 var(--head); letter-spacing: -.02em; }
.wow-title span { white-space: nowrap; }
.wow-title .wow-kicker { display: block; margin-bottom: 8px; font: 500 0.7812rem/1.3 var(--text); letter-spacing: .01em; color: var(--muted); white-space: normal; }
/* phones: the keyword line stays in the heading for readers and search, but not on the small screen, where the scene needs the room */
@media (max-width: 899px), (max-aspect-ratio: 1/1) { .wow-title .wow-kicker { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
.wow-name { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 0; }
.wow-name label { font-size: 0.8125rem; color: var(--muted); }
.wow-field { display: flex; gap: 8px; }
.wow-field input { flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid rgb(169 175 189 / .3); background: rgb(24 28 37 / .82); color: var(--paper); font: 600 1.25rem/1 var(--text); outline: none; backdrop-filter: blur(8px); transition: border-color .2s, box-shadow .2s; }
.wow-field input:focus-visible { border-color: var(--lamp); box-shadow: 0 0 0 3px rgb(240 168 72 / .22); }
.wow-again { flex: 0 0 auto; height: 52px; padding: 0 14px; border-radius: 14px; border: 1px solid rgb(169 175 189 / .3); background: rgb(24 28 37 / .6); color: var(--paper); font: 500 0.875rem/1 var(--text); white-space: nowrap; cursor: pointer; backdrop-filter: blur(8px); }
.wow-again:hover { border-color: rgb(240 168 72 / .7); }
.wow-again:focus-visible, .wow-cta:focus-visible { outline: 2px solid var(--monitor); outline-offset: 3px; }
.wow-again[hidden] { display: none; }
.wow-msg { margin: 0; min-height: 1.2em; font-size: 0.8125rem; line-height: 1.35; color: var(--error); }
.wow-msg[data-tone='note'] { color: var(--muted); }
.wow-msg:empty { min-height: 0; }

.wow-cta { display: flex; align-items: center; justify-content: center; gap: .3em; height: 56px; border-radius: 16px; background: var(--lamp); color: var(--ink); font: 700 1.0625rem/1 var(--text); text-decoration: none;
  box-shadow: 0 1px 0 rgb(255 255 255 / .35) inset, 0 10px 30px -8px rgb(240 168 72 / .55); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.wow-cod { margin: -4px 0 0; text-align: center; font-size: 0.7812rem; color: var(--muted); transition: opacity .7s ease .15s; }
.wow[data-cta='off'] .wow-cta { opacity: 0; transform: translateY(8px); pointer-events: none; }
.wow[data-cta='off'] .wow-cod { opacity: 0; }
.wow-cta[aria-disabled='true'] { filter: saturate(.35) brightness(.75); pointer-events: none; }

@media (min-aspect-ratio: 1/1) and (min-width: 900px) {
  .wow-top { padding: 26px 40px 0; }
  .wow-brand img { height: 26px; }
  .wow-veil { background: linear-gradient(to right, rgb(12 14 19 / .86) 0%, rgb(12 14 19 / .55) 26%, rgb(12 14 19 / 0) 52%); }
  .wow-ui { inset: 0 auto 0 0; width: min(38vw, 500px); padding: 0 0 0 40px; align-content: center; gap: 16px; }
  .wow-title { font-size: clamp(2.125rem, 3.5vw, 3.375rem); line-height: 1.06; margin-bottom: 10px; }
  .wow-title span { display: block; }
  .wow-title .wow-kicker { font-size: 0.875rem; margin-bottom: 14px; }
  .wow-cta { max-width: 320px; }
  .wow-cod { text-align: left; }
  .wow-poster img { object-position: 50% 50%; }
}
@media (prefers-reduced-motion: reduce) { .wow-stage, .wow-cta, .wow-cod { transition: none; } }

/* ---- on the shop's home page ------------------------------------------------
   The site header is the one top bar: it lies over the first screen. The fixed
   buy bar (phones) stays out of the way while this screen is in view. */
.has-wow .site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 6; max-width: none; padding-left: 18px; padding-right: 18px; } /* on the first screen's own gutter, so logo and copy share one left edge */
.has-wow .wow { scroll-margin-top: 0; }
.has-wow .hero { padding-top: 28px; scroll-margin-top: -8px; }
@media (min-aspect-ratio: 1/1) and (min-width: 900px) { .has-wow .site-header { padding-left: 40px; padding-right: 40px; } }
.has-wow .hero-title { font-size: clamp(1.375rem, 6.2vw, 2.5rem); }
@media (max-width: 959px) {
  .has-wow.wow-in-view .buybar { transform: translateY(110%); visibility: hidden; }
  .has-wow .buybar { transition: transform .25s ease, visibility .25s; }
  html:not(.js) .has-wow .wow-ui { padding-bottom: calc(var(--bar-h, 72px) + 14px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .has-wow .buybar { transition: none; } }

/* Centred first screen (data-layout="center": the home page and the travel prototype). On a wide screen the copy sits
   in the middle along the bottom, as on a phone; the scene moves the picture up and clear of it (wow.js tells it how far). */
@media (min-aspect-ratio: 1/1) and (min-width: 900px) {
  .wow[data-layout='center'] .wow-veil { background: linear-gradient(to top, rgb(12 14 19 / .92) 0%, rgb(12 14 19 / .62) 26%, rgb(12 14 19 / 0) 52%); }
  .wow[data-layout='center'] .wow-ui { inset: auto 0 0 0; width: auto; max-width: 760px; margin: 0 auto; padding: 0 24px max(36px, env(safe-area-inset-bottom)); align-content: end; justify-items: center; text-align: center; gap: 14px; }
  .wow[data-layout='center'] .wow-title { font-size: clamp(2rem, 3.2vw, 3.25rem); margin-bottom: 4px; }
  .wow[data-layout='center'] .wow-title span { display: inline; }
  .wow[data-layout='center'] .wow-title .wow-kicker { display: block; }
  .wow[data-layout='center'] .wow-name { width: min(100%, 480px); }
  .wow[data-layout='center'] .wow-cta { width: min(100%, 480px); max-width: none; }
  .wow[data-layout='center'] .wow-cod, .wow[data-layout='center'] .wow-facts { text-align: center; }
}
