/* ========== Hero inline quote card (glass morphism) ==========
   Sits inside .stage over the scrub canvas. Right rail on desktop,
   bottom panel on mobile. Does not block the 3D film. */

.hero-quote {
  position: absolute;
  top: 50%;
  right: 4.5%;
  transform: translateY(-48%);
  width: min(340px, 36vw);
  z-index: 25;
  padding: 22px 22px 18px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(14,26,43,.78) 0%, rgba(14,26,43,.62) 100%);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.08);
  font-family: inherit;
  opacity: 1;
}
@keyframes hq-rise {
  from { opacity: 0; transform: translateY(-40%) scale(.98); }
  to { opacity: 1; transform: translateY(-48%) scale(1); }
}
/* Subtle entrance after first paint — doesn't block initial render */
.hero-quote.hq-in { animation: hq-rise 600ms cubic-bezier(.3,.9,.4,1) both; }
.hero-quote h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
  font-family: inherit;
}
.hero-quote .hq-sub {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: rgba(255,255,255,.72);
  line-height: 1.4;
}

.hero-quote .hq-field {
  display: block;
  margin-bottom: 8px;
}
.hero-quote .hq-field > span {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--copper, #C47A3E);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.hero-quote .hq-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  font: 500 14px/1.3 inherit;
  border-radius: 8px;
  transition: border-color 160ms, background 160ms;
  -webkit-appearance: none;
  appearance: none;
}
.hero-quote .hq-field input::placeholder { color: rgba(255,255,255,.4); }
.hero-quote .hq-field input:focus {
  outline: none;
  border-color: var(--copper, #C47A3E);
  background: rgba(255,255,255,.14);
}

.hero-quote .hq-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 12px;
  font-size: 11.5px;
  color: rgba(255,255,255,.72);
  line-height: 1.4;
  cursor: pointer;
}
.hero-quote .hq-consent input {
  width: 14px; height: 14px;
  margin: 2px 0 0;
  accent-color: var(--copper, #C47A3E);
  flex: none;
}

.hero-quote .hq-submit {
  display: block;
  width: 100%;
  padding: 13px;
  border: none;
  background: var(--copper, #C47A3E);
  color: #fff;
  font: 800 14px/1.2 inherit;
  letter-spacing: .04em;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 150ms, box-shadow 200ms, background 200ms;
  box-shadow: 0 8px 22px rgba(196,122,62,.35);
}
.hero-quote .hq-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(196,122,62,.45); }
.hero-quote .hq-submit:active { transform: scale(.98); }
.hero-quote .hq-submit.sent { background: #3BD68A; color: #0E1A2B; box-shadow: 0 8px 22px rgba(59,214,138,.4); }

.hero-quote .hq-fine {
  margin: 8px 0 0;
  font-size: 10.5px;
  color: rgba(255,255,255,.4);
  text-align: center;
  letter-spacing: .04em;
}
.hero-quote .hq-fine b { color: rgba(255,255,255,.65); font-weight: 600; }

.hero-quote .hq-err {
  color: #ff8a8a;
  font-size: 11.5px;
  margin: 4px 0 8px;
  min-height: 14px;
}

.hero-quote .hq-done {
  text-align: center;
  padding: 10px 0 0;
}
.hero-quote .hq-done b {
  display: block;
  color: #3BD68A;
  font-size: 15px;
  margin-bottom: 4px;
}
.hero-quote .hq-done p {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255,255,255,.72);
  line-height: 1.4;
}

/* ==== Mobile: bottom panel that fades in across the hero scrub ====
   JS sets --hq-reveal from 0 (top of hero) to 1 (near the "cool change" chapter),
   so the film plays unblocked and the quote card fades in just as it lands. */
@media (max-width: 860px) {
  .hero-quote {
    position: absolute;
    top: auto;
    bottom: 16px;
    left: 12px;
    right: 12px;
    width: auto;
    transform: translateY(calc((1 - var(--hq-reveal, 0)) * 16px));
    padding: 16px 18px 14px;
    border-radius: 14px;
    opacity: var(--hq-reveal, 0);
    pointer-events: none;
    transition: opacity 180ms linear, transform 320ms cubic-bezier(.22,1,.36,1);
    animation: none !important; /* kill desktop hq-rise on mobile */
  }
  .hero-quote[data-visible="true"] { pointer-events: auto; }
  .hero-quote h3 { font-size: 15px; }
  .hero-quote .hq-sub { font-size: 11.5px; margin-bottom: 10px; }
  .hero-quote .hq-field > span { font-size: 9.5px; }
  .hero-quote .hq-field input { padding: 8px 10px; font-size: 13.5px; }
  .hero-quote .hq-submit { padding: 11px; font-size: 13px; }
}

/* Small tablets — keep as side rail but a hair smaller */
@media (max-width: 1100px) and (min-width: 861px) {
  .hero-quote { width: min(300px, 32vw); padding: 18px; }
  .hero-quote h3 { font-size: 16px; }
}

/* Don't overlap the endcard / scroll hint */
.scrub.hero .hero-quote ~ .hint,
.scrub.hero .hero-quote ~ .endcard { z-index: 10; }
