/* ===================================================================
   HOME HERO: "poster" (2026-11-09)
   A navy page holding one orange, gridded poster card. Bold type on
   the left; prerendered sport objects, two tilted glass tiles, a hand
   drawn arrow and a spinning "book a free trial" badge on the right.
   Phone first: on a phone nothing overlaps the headline; the objects
   live in their own strip under the buttons.
   Objects: the site's own .glb models rendered once to WebP
   (assets/hero/), so phones never load three.js for this.
   =================================================================== */

.hero.hero--poster {
  height: auto;
  min-height: 100svh;
  display: block;
  padding: calc(var(--nav-h) + 4px) 12px 12px;
  background: var(--navy);
}

.hp-card {
  --hp-ink: var(--navy);
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--nav-h) - 16px);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 85% 10%, #ff8a3d 0%, rgba(255, 138, 61, 0) 55%),
    radial-gradient(90% 70% at 0% 100%, #d9531a 0%, rgba(217, 83, 26, 0) 60%),
    var(--orange);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 20px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.55);
}

/* Grid paper, plus the site grain. Fades out toward the bottom so the
   objects sit on clean colour. */
.hp-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 34px 34px;
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0, 0, 0, 0.25) 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0, 0, 0, 0.25) 100%);
}
.hp-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.09;
  mix-blend-mode: overlay;
}

/* ---------- copy ---------- */
.hp-copy { position: relative; z-index: 2; }

.hp-pills { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 22px; padding: 0; }
.hp-pill {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: #fff;
}
@media (max-width: 768px) { .hp-pill--solid { display: none; } }
.hp-pill--solid { background: #fff; color: var(--hp-ink); border-color: #fff; letter-spacing: 0.08em; }

/* Overrides the outline-text treatment the old hero used. */
.hero--poster .hp-title {
  font-size: clamp(2.6rem, 11.6vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  font-weight: 900;
  color: #fff;
  -webkit-text-stroke: 0;
  margin: 0;
}
.hero--poster .hp-title .mask-line { padding-bottom: 0.06em; }
.hp-word {
  color: var(--hp-ink);
  position: relative;
  display: inline-block;
}
/* A marker swipe under the promise word. */
.hp-word::after {
  content: '';
  position: absolute;
  left: -0.04em; right: -0.06em; bottom: 0.08em;
  height: 0.16em;
  background: #fff;
  border-radius: 0.1em;
  z-index: -1;
  transform: rotate(-1.4deg) scaleX(var(--hp-swipe, 1));
  transform-origin: left center;
}

.hero--poster .hp-sub {
  max-width: 34ch;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.94);
}

.hero--poster .hp-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; flex-direction: row; align-items: center; }
.hp-btn {
  min-height: 48px;
  padding: 0 20px;
  font-size: 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s;
}
.hp-btn--navy { background: var(--hp-ink); color: #fff; }
.hp-btn--navy:hover { transform: translateY(-2px); background: #000; }
.hp-btn--ghost { border: 1.5px solid rgba(255, 255, 255, 0.9); color: #fff; }
.hp-btn--ghost:hover { background: #fff; color: var(--hp-ink); }
.hp-btn:focus-visible, .hp-badge:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---------- stage (objects, tiles, arrow) ---------- */
.hp-stage {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 230px;
  margin-top: 14px;
  pointer-events: none;
}
.hp-obj, .hp-tile {
  position: absolute;
  will-change: transform;
}
.hp-obj { filter: drop-shadow(0 18px 18px rgba(80, 22, 0, 0.35)); height: auto; }

/* Phone positions (stage is the strip under the buttons). */
.hp-obj--football { width: 118px; right: -4px;  top: 0; }
.hp-obj--shuttle  { width: 84px;  left: 42%;    top: 22px; transform: rotate(-18deg); }
.hp-obj--basket   { width: 92px;  right: 36%;   bottom: -4px; }
.hp-obj--pickle   { width: 58px;  left: 56%;    bottom: 82px; }
.hp-obj--cricket, .hp-obj--dumbbell, .hp-tile--campus { display: none; }

.hp-tile {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
          backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 14px 30px -12px rgba(90, 25, 0, 0.45);
  color: #fff;
}
.hp-tile p { margin: 0; }
.hp-tile--sports {
  left: 0; bottom: 10px;
  width: 128px;
  padding: 12px 14px 14px;
  transform: rotate(-7deg);
}
.hp-tile--sports img { width: 54px; height: auto; margin: -24px 0 2px -6px; display: block; filter: drop-shadow(0 6px 8px rgba(80, 22, 0, 0.35)); }
.hp-tile-big { font-size: 40px; font-weight: 900; letter-spacing: -0.04em; line-height: 0.9; }
.hp-tile-small { font-size: 12.5px; font-weight: 600; opacity: 0.95; }
.hp-tile--trial {
  left: 22%; top: 96px;
  padding: 10px 14px;
  transform: rotate(5deg);
  background: #fff;
  color: var(--hp-ink);
  border-color: #fff;
}
.hp-tile-kicker { font-size: 15px; font-weight: 900; letter-spacing: -0.01em; }
.hp-tile--trial .hp-tile-small { color: rgba(10, 30, 60, 0.75); }

.hp-scribble {
  position: absolute;
  width: 120px;
  right: 36px;
  bottom: 54px;
  transform: rotate(8deg);
  overflow: visible;
}
.hp-scribble path {
  stroke: var(--hp-ink);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hp-tile--campus { padding: 14px 18px 16px; transform: rotate(-4deg); }
.hp-tile-pin {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--hp-ink); color: var(--orange);
  display: grid; place-items: center; margin-bottom: 8px;
}
.hp-tile-pin svg { width: 18px; height: 18px; }

/* ---------- badge ---------- */
.hp-badge {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--hp-ink);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.55);
}
.hp-badge-core { transition: transform 0.35s var(--ease); }
.hp-badge:hover .hp-badge-core { transform: scale(1.12) rotate(45deg); }
.hp-badge-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: hp-spin 14s linear infinite;
}
.hp-badge-ring text {
  fill: #fff;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.hp-badge-core {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--orange);
  display: grid;
  place-items: center;
}
.hp-badge-core svg { width: 22px; height: 22px; }
@keyframes hp-spin { to { transform: rotate(360deg); } }

/* ---------- desktop ---------- */
@media (min-width: 769px) {
  .hero.hero--poster { padding: calc(var(--nav-h) + 6px) 20px 20px; }
  .hp-card {
    min-height: calc(100vh - var(--nav-h) - 26px);
    border-radius: 36px;
    padding: 48px 56px;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
  }
  .hp-grid { background-size: 52px 52px; -webkit-mask-image: none; mask-image: none; }
  .hero--poster .hp-title { font-size: clamp(3.4rem, 6.4vw, 7rem); }
  .hero--poster .hp-sub { font-size: 18px; margin-top: 24px; }
  .hero--poster .hp-ctas { margin-top: 32px; gap: 12px; }
  .hp-btn { min-height: 54px; padding: 0 26px; font-size: 15px; }
  .hp-pills { margin-bottom: 30px; }
  .hp-pill { font-size: 13px; padding: 9px 14px; }

  .hp-stage { height: 100%; min-height: 520px; margin: 0; }
  .hp-obj--football { width: 29%; right: 0;    top: 0; }
  .hp-obj--shuttle  { width: 21%; left: 2%;   top: 0; }
  .hp-obj--dumbbell { display: block; width: 20%; left: 36%; top: 3%; transform: rotate(-12deg); }
  .hp-obj--basket   { width: 27%; right: 31%; bottom: 6%; }
  .hp-obj--pickle   { width: 12%; left: 5%;   top: 47%; }
  .hp-obj--cricket  { display: block; width: 14%; left: 47%; top: 50%; }

  .hp-tile--sports { left: 0; bottom: 8%; width: 190px; padding: 16px 20px 20px; }
  .hp-tile--sports img { width: 84px; margin: -40px 0 4px -10px; }
  .hp-tile-big { font-size: 64px; }
  .hp-tile-small { font-size: 14px; }
  .hp-tile--trial { left: 20%; top: 29%; padding: 14px 20px; }
  .hp-tile-kicker { font-size: 20px; }
  .hp-tile--campus { display: block; right: 3%; top: 37%; width: 190px; }

  .hp-scribble { width: 190px; right: 15%; bottom: 17%; }

  .hp-badge { right: 40px; bottom: 40px; width: 148px; height: 148px; }
  .hp-badge-ring text { font-size: 11.5px; }
  .hp-badge-core { width: 60px; height: 60px; }
  .hp-badge-core svg { width: 28px; height: 28px; }
}

@media (min-width: 769px) and (max-height: 760px) {
  .hero--poster .hp-title { font-size: clamp(3rem, 5.4vw, 5.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  .hp-badge-ring { animation: none; }
  .hp-badge-core, .hp-btn { transition: none; }
}

/* ===================================================================
   OPTION B (2026-11-11): scrappy collage. Same card, same left side;
   the right side stops being a tidy grid. Sizes swing big to small,
   things overlap and run off the card edge, tiles are taped on, and a
   few hand-drawn doodles sit between them.
   =================================================================== */
.hp-obj--football, .hp-obj--basket { z-index: 3; }
.hp-obj--pickle { z-index: 3; }
.hp-tile { z-index: 2; }

/* Tape: a torn strip of masking tape on the tiles. */
.hp-tile--trial::before, .hp-tile--sports::before, .hp-tile--campus::before {
  content: '';
  position: absolute;
  top: -11px;
  left: 50%;
  width: 70px;
  height: 22px;
  background: rgba(255, 244, 228, 0.78);
  box-shadow: 0 2px 4px rgba(80, 22, 0, 0.18);
  transform: translateX(-50%) rotate(-5deg);
  clip-path: polygon(0 8%, 6% 0, 12% 10%, 18% 0, 82% 0, 88% 12%, 94% 0, 100% 10%, 100% 90%, 94% 100%, 88% 88%, 82% 100%, 18% 100%, 12% 90%, 6% 100%, 0 92%);
}
.hp-tile--sports::before { left: 22%; transform: translateX(-50%) rotate(-38deg); top: -6px; }
.hp-tile--campus::before { left: auto; right: -18px; top: 6px; transform: rotate(42deg); }

.hp-tile--sports img {
  width: 68px;
  margin: -30px 0 2px -8px;
  filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.9)) drop-shadow(0 8px 10px rgba(80, 22, 0, 0.45));
}
.hp-doodle { position: absolute; overflow: visible; pointer-events: none; }
.hp-doodle path {
  stroke: var(--hp-ink);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hp-doodle--spark path { stroke: #fff; stroke-width: 7; }
.hp-doodle--dash path { stroke-width: 6; }

/* ---------- phone ---------- */
@media (max-width: 768px) {
  .hp-stage { min-height: 270px; margin-top: 18px; }
  .hp-obj--football { width: 150px; right: -40px; top: -14px; transform: rotate(12deg); }
  .hp-obj--shuttle  { width: 96px; left: -8px; top: -8px; transform: rotate(-30deg); }
  .hp-obj--basket   { width: 124px; left: auto; right: 34%; bottom: -30px; }
  .hp-obj--pickle   { width: 44px; left: 56%; top: 34px; bottom: auto; }
  .hp-tile--sports  { left: -2px; bottom: 22px; width: 128px; transform: rotate(-9deg); }
  .hp-tile--trial   { left: 26%; top: 92px; transform: rotate(6deg); }
  .hp-doodle--spark { width: 24px; left: 20%; top: 74px; }
  .hp-doodle--dash  { width: 40px; left: 74px; top: 58px; transform: rotate(18deg); }
  .hp-scribble { width: 104px; right: 48px; bottom: 70px; }
}

/* ---------- desktop ---------- */
@media (min-width: 769px) {
  .hp-obj--football { width: 50%; right: -10%; top: -6%; transform: rotate(10deg); }
  .hp-obj--shuttle  { width: 30%; left: -4%; top: -2%; transform: rotate(-26deg); }
  .hp-obj--dumbbell { width: 20%; left: 36%; top: 5%; transform: rotate(26deg); }
  .hp-obj--basket   { width: 38%; right: auto; left: 26%; bottom: -7%; }
  .hp-obj--pickle   { width: 15%; left: 42%; top: 47%; z-index: 3; }
  .hp-obj--cricket  { width: 8%; left: 71%; top: 54%; transform: rotate(-14deg); z-index: 3; }

  .hp-tile--trial   { left: 18%; top: 31%; padding: 16px 24px 18px; transform: rotate(7deg); }
  .hp-tile--trial .hp-tile-kicker { font-size: 26px; }
  .hp-tile--campus  { right: 2%; top: 32%; transform: rotate(-6deg); }
  .hp-tile--sports  { left: -2%; bottom: 13%; width: 210px; transform: rotate(-10deg); }
  .hp-tile--sports img { width: 112px; margin: -52px 0 2px -14px; }

  .hp-doodle--spark { width: 6.5%; left: 11%; top: 27%; }
  .hp-doodle--dash  { width: 12%; left: 27%; top: 19%; transform: rotate(14deg); }
  .hp-scribble { width: 170px; right: 13%; bottom: 15%; transform: rotate(14deg); }
}
