/* Homepage layouts: hero, phone artwork, press coverage, game systems, showcase and reviews. */

.hero {
  padding: var(--hero-space) 0 var(--section-space);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 4.4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #fff;
  font-weight: 700;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.hero h1 span {
  display: block;
  color: var(--paper);
}

.hero p {
  margin: 22px 0 0;
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
  margin-top: 30px;
}

.hero-art {
  position: relative;
}

.hero-window {
  width: 92%;
  max-width: 520px;
  min-width: 0;
  justify-self: center;
  padding: var(--space-1) var(--space-2) 0;
}

.press-featured {
  width: 100%;
}

.press-featured-inner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  flex-wrap: nowrap;
  padding: var(--space-4) max(var(--gutter), calc((100vw - var(--max)) / 2));
  border-top: 1px solid rgba(245, 240, 232, 0.10);
  border-bottom: 1px solid rgba(245, 240, 232, 0.10);
  background: rgba(0, 0, 0, 0.13);
}

.press-featured-label {
  flex: none;
  color: rgba(245, 240, 232, 0.50);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}

.press-marquee {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.press-marquee-track {
  display: flex;
  width: max-content;
  animation: press-marquee-scroll 34s linear infinite;
  will-change: transform;
}

.press-marquee:hover .press-marquee-track {
  animation-play-state: paused;
}

.press-marquee-group {
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(42px, 5vw, 86px);
  padding-right: clamp(42px, 5vw, 86px);
}

@keyframes press-marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% / 3));
  }

}

@media (prefers-reduced-motion: reduce) {
  .press-marquee-track {
    animation: none;
  }

}

.press-outlet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.78;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

a.press-outlet:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Text wordmark keeps coverage identifiable without an additional image asset. */
.press-wordmark {
  display: block;
  color: var(--paper);
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.06em;
  white-space: nowrap;
}

.press-outlet img {
  display: block;
  width: auto;
  height: 48px;
  max-width: 180px;
  object-fit: contain;
}

.press-outlet-bbc img {
  height: 44px;
}

.press-outlet-metro img {
  height: 36px;
}

.press-outlet-bbcradio4 img,
.press-outlet-bbcradio5 img {
  height: 42px;
  max-width: none;
}

@media (max-width: 720px) {
  .press-featured-inner {
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-3) 0;
  }

  .press-featured-label {
    width: 100%;
    text-align: center;
    padding: 0 var(--gutter);
  }

  .press-marquee {
    width: 100%;
  }

  .press-marquee-group {
    gap: 34px;
    padding-right: 34px;
  }

  .press-wordmark {
    font-size: 1.4rem;
  }

  .press-outlet img {
    height: 32px;
    max-width: 130px;
  }

  .press-outlet-bbc img {
    height: 30px;
  }

  .press-outlet-metro img {
    height: 25px;
  }

  .press-outlet-bbcradio4 img,
  .press-outlet-bbcradio5 img {
    height: 30px;
  }

}

.game-showcase {
  margin-top: var(--section-space);
  padding: var(--space-4) 0 0;
}

.showcase-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  gap: 22px;
  align-items: end;
  margin-bottom: var(--space-4);
}

.showcase-copy h2 {
  margin: 7px 0 0;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.55rem);
  line-height: 1.1;
  color: #fff;
  max-width: 13ch;
}

.showcase-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.showcase-caption {
  position: absolute;
  top: 18px;
  left: 16px;
  right: 16px;
  z-index: 10;
  margin: 0;
  color: var(--brass);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-align: center;
}

.showcase-stage {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 32px;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: rgba(0, 0, 0, .1);
}

.showcase-shot {
  flex: 0 0 230px;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(212, 165, 116, .25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
}

.showcase-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* Enhanced layout: five visible positions, with the active screenshot centred. */
.showcase-stage.is-carousel {
  display: block;
  overflow: hidden;
  height: calc(clamp(440px, 52vw, 630px) + 44px);
}

.is-carousel .showcase-shot {
  position: absolute;
  left: 50%;
  top: calc(50% + 22px);
  width: clamp(170px, 20vw, 250px);
  transform: translate(-50%, -50%) translateX(calc(var(--slot) * 88%)) rotate(calc(var(--slot) * 3deg)) scale(var(--scale));
  opacity: var(--opacity);
  z-index: var(--layer);
  transition: transform 450ms ease, opacity 450ms ease;
  pointer-events: none;
}

.showcase-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--brass);
  border-radius: 50%;
  color: var(--brass);
  background: var(--facade-bg);
  cursor: pointer;
}

.showcase-prev {
  left: 12px;
}

.showcase-next {
  right: 12px;
}

.showcase-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.showcase-arrow:hover {
  background: var(--wood);
}

.showcase-arrow:focus-visible, .showcase-stage:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.showcase-arrow[hidden] {
  display: none;
}

.showcase-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

@media (max-width: 980px) {
  .showcase-copy {
    grid-template-columns: 1fr;
    align-items: start;
  }

}

@media (max-width: 650px) {
  .showcase-stage.is-carousel {
    height: calc(clamp(410px, 110vw, 500px) + 44px);
  }

  .is-carousel .showcase-shot {
    width: clamp(160px, 46vw, 210px);
  }

  .showcase-arrow {
    width: 44px;
    height: 44px;
  }

  .showcase-prev {
    left: 6px;
  }

  .showcase-next {
    right: 6px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .is-carousel .showcase-shot {
    transition: none;
  }

}

.editorial {
  margin-top: var(--section-space);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
}

.review-panel,
.quote-card,
.cta-card {
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow);
}

.review-panel {
  position: relative;
  background:
  linear-gradient(90deg, rgba(139, 26, 26, 0.11) 1px, transparent 1px) 28px 0 / 1px 100% no-repeat,
  repeating-linear-gradient(180deg, transparent 0 37px, rgba(46, 46, 44, 0.08) 38px),
  linear-gradient(180deg, #fff9ef, #efe4d2);
  color: var(--ink);
  padding: var(--card-padding);
  min-height: 100%;
}

.review-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 5px solid var(--gold);
  opacity: 0.9;
}

.review-carousel {
  position: relative;
  display: grid;
  min-height: 230px;
}

.review-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.review-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.review-panel blockquote {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.04;
}

.review-panel cite {
  display: block;
  color: rgba(26, 26, 16, 0.62);
  font-style: normal;
  font-weight: 800;
}

.review-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: 26px;
}

.review-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(26, 26, 16, 0.16);
  border-radius: 999px;
  background: rgba(26, 26, 16, 0.06);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
}

.review-button:hover {
  background: rgba(139, 26, 26, 0.12);
}

.review-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.review-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(26, 26, 16, 0.22);
  cursor: pointer;
  padding: 0;
}

.review-dot.is-active {
  width: 28px;
  background: var(--red);
}

.quote-card {
  background:
  linear-gradient(180deg, rgba(139, 26, 26, 0.9), rgba(94, 16, 16, 0.94)),
  var(--red);
  padding: var(--card-padding);
}

.quote-card blockquote {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  color: #fff;
}

.quote-card p {
  margin: 18px 0 0;
  color: rgba(245, 240, 232, 0.78);
  line-height: 1.7;
}

.cta {
  padding: var(--section-space) 0;
}

.cta-card {
  background:
  linear-gradient(180deg, var(--border-subtle), rgba(245, 240, 232, 0.03)),
  rgba(0, 0, 0, 0.24);
  padding: var(--card-padding);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.cta h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 0.98;
}

.cta p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
  max-width: 60ch;
}

@media (max-width: 980px) {
  .hero-window {
    width: 100%;
  }

  .hero-grid,
  .editorial,
  .cta-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {
  .hero h1 {
    font-size: 2.95rem;
  }

  .hero-actions {
    align-items: stretch;
  }

}
