.home-hero {
  padding-block: 24px var(--section-pad);
}

.home-hero h1 {
  margin: 0;
  font-size: min(var(--step-hero), 13 * var(--svh));
  line-height: 0.82;
  font-weight: 700;
  letter-spacing: -0.055em;
}

.home-hero .hero-row {
  margin-top: 24px;
}

.home-hero .hero-statement {
  max-width: 820px;
}

.home-hero .hero-lead {
  max-width: 820px;
  margin-top: 24px;
}

.banner {
  position: relative;
}

.banner .overlay {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
}

/* The hero's statement, lead and buttons sit under the clip (about 470px with the header), so a short window shrinks the clip to keep
   them in view. The clip's background is the page's colour; the soft edge hides the level or two a decoder lands off it. */
.leap {
  aspect-ratio: 16 / 9;
  width: min(100%, max(min(380px, 60 * var(--vw)), (100 * var(--svh) - 470px) * 16 / 9));
  margin-inline: auto;
  mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 70%, transparent 100%);
}

.leap :is(video, img) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 900px) and (max-height: 800px) {
  .home-hero .leap {
    width: min(100%, max(560px, (100 * var(--svh) - 300px) * 16 / 9));
  }
}

@media (max-width: 600px) {
  .home-hero {
    padding-top: 8px;
  }

  .home-hero .hero-row {
    margin-top: 16px;
    gap: 16px;
  }

  .home-hero .hero-lead {
    margin-top: 12px;
    line-height: 1.5;
  }
}

.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.highlight {
  flex: 1 1 360px;
  min-width: 0;
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
}

.highlight .badge {
  align-self: flex-start;
}

.highlight h3 {
  margin: 0;
  font-size: var(--step-2);
  line-height: 1.3;
  font-weight: 600;
}

.highlight p {
  margin: 0;
  font-size: var(--step-0);
  color: var(--ink-2);
}

:is(.highlight, .specs) .more {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

:is(.highlight, .specs) .more:hover {
  color: var(--ink-hover);
}

.showreel .head {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.showreel .copy {
  flex: 1 1 560px;
  min-width: 0;
}

.showreel .text {
  max-width: 760px;
  margin: 20px 0 0;
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink-2);
}

.showreel .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* The cards are laid out by the script around the stage's centre; the stage only gives them depth and room. It reaches a little past
   the page's column on each side, so the side cards fade out at its edges instead of stopping at the column, and the cards stay in
   scale with the heading and button above them. */
.showreel .stage {
  --card-height: clamp(280px, min(52 * var(--svh), 96 * var(--vw)), 480px);
  --stage-width: min(100 * var(--vw), 1640px);
  position: relative;
  width: var(--stage-width);
  margin-left: calc(50% - var(--stage-width) / 2);
  height: calc(var(--card-height) + 96px);
  perspective: 1600px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  outline: none;
  touch-action: pan-y;
  user-select: none;
}

@media (min-width: 900px) {
  .showreel .stage {
    --card-height: clamp(20rem, min(56 * var(--svh), 10rem + 18 * var(--vw)), 34rem);
  }
}

.showreel .stage:focus-visible {
  border-radius: var(--radius);
  box-shadow: 0 0 0 3px var(--accent);
}

.showreel .ring {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.showreel .ring .reel-card {
  position: absolute;
  top: calc(50% - 28px);
  left: 50%;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 48px -20px rgba(22, 25, 15, 0.45);
  cursor: pointer;
  transition:
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.6s ease,
    filter 0.6s ease;
  will-change: transform;
}

.showreel .ring .reel-card :is(video, img) {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.showreel .ring .reel-card:not([data-focus]) {
  filter: brightness(0.82) saturate(0.85);
}

.showreel .ring .reel-card[data-focus]::after {
  content: url('/expand.svg') '  Watch full screen';
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(22, 25, 15, 0.7);
  color: #fff;
  font-size: var(--step--2);
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.showreel .ring .reel-card[data-focus]:hover::after {
  opacity: 1;
}

.showreel .progress {
  width: min(320px, 60%);
  height: 3px;
  margin: 8px auto 0;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.showreel .progress span {
  display: block;
  height: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}

.showreel .controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.showreel .control {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.showreel .control:hover {
  background: var(--bg-hover);
}

.showreel :is(.control, .close) svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.showreel .control .play {
  fill: currentColor;
}

.showreel:not([data-paused]) .control .play,
.showreel[data-paused] .control .pause {
  display: none;
}

.showreel .player {
  width: calc(100 * var(--vw));
  max-width: none;
  height: calc(100 * var(--dvh));
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000;
}

.showreel .player::backdrop {
  background: #000;
}

.showreel .player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.showreel .close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
}

.showreel .close:hover {
  background: rgba(255, 255, 255, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .showreel .ring .reel-card {
    transition: none;
  }
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.cards .card {
  flex: 1 1 340px;
}

.specs-aside {
  flex: 1 1 280px;
  min-width: 0;
}

.specs-aside .full-specs {
  margin-top: 28px;
}

.specs {
  flex: 1 1 620px;
  min-width: 0;
  margin: 0;
  border-top: 3px solid var(--ink);
}

.specs div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.specs dt {
  flex: 0 0 220px;
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--muted);
}

.specs dd {
  flex: 1 1 320px;
  margin: 0;
  font-size: var(--step-0);
}

.specs .more {
  display: block;
  margin-top: 6px;
}
