/* ============================================================
   SHARED OBJECT STAGE
   One band: copy on one side, a model you can turn on the other.
   Used wherever a page earns a single 3D object — off-grid (tyres),
   races (the 2026 car), venue (the show car).

   Deliberately one class rather than three page-specific ones: the
   pages differ in palette, not in layout, and three copies of this
   would drift the moment one of them was touched.
   ============================================================ */

.objband { padding-block: var(--space-section); border-top: 1px solid var(--line); }

.objband__grid { display: grid; gap: clamp(1.8rem, 4vw, 4rem); align-items: center; }
@media (min-width: 900px) {
  .objband__grid { grid-template-columns: 0.9fr 1.1fr; }
  /* The object takes the bigger half. It is the point of the band —
     copy that crowds it turns the model into a thumbnail. */
  .objband--flip .objband__grid { grid-template-columns: 1.1fr 0.9fr; }
  .objband--flip .objband__copy { order: 2; }
}

.objband__eyebrow { color: var(--accent); }
.objband__title {
  font-family: var(--display-face); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.8rem, 1rem + 4vw, 4.2rem); line-height: 0.94;
  margin: 0.6rem 0 1rem;
}
.objband__copy p { color: var(--muted); max-width: 42ch; }
.objband__spec {
  display: grid; gap: 1px;
  margin-top: clamp(1.2rem, 2.5vw, 1.8rem);
  max-width: 28rem;
}
.objband__spec div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-block: 0.65rem;
  border-bottom: 1px solid var(--line);
}
.objband__spec div:last-child { border-bottom: 0; }
.objband__spec b {
  font-family: var(--display-face); font-weight: 700; text-transform: uppercase;
}

.objstage {
  position: relative;
  /* Width first, height derived. `min-height` with an aspect-ratio
     derives the WIDTH from the height instead: 18rem of min-height
     at 4/3 forced a 384px track inside a 343px column, and the only
     reason it did not show was body's overflow-x clip. */
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
}
/* Only where there is room for it to matter. */
@media (min-width: 900px) { .objstage { min-height: 18rem; } }
.objstage canvas {
  width: 100%; height: 100%; display: block;
  cursor: grab;
  touch-action: pan-y;   /* the page still scrolls; the turn is horizontal */
}
.objstage canvas.is-held { cursor: grabbing; }

/* A floor line so the object is standing on something rather than
   hovering in a void. */
.objstage::after {
  content: "";
  position: absolute; left: 8%; right: 8%; bottom: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.objstage__hint {
  position: absolute; left: 0; bottom: 0;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .objstage canvas { cursor: default; }
}

/* A photograph in place of a 3D stage (the 2026 car on races.html). */
.objphoto { margin: 0; display: grid; gap: 0.8rem; }
.objphoto__frame {
  position: relative; overflow: hidden; aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  box-shadow: 0 50px 90px -50px rgb(0 0 0 / 0.95);
}
.objphoto__frame img { width: 100%; height: 100%; object-fit: cover; }
.objphoto__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgb(0 0 0 / 0.55));
}
.objphoto figcaption { color: var(--muted); }
