/* The cover and its eight App Store gameplay frames. */

.home-page .hero {
  --cover-accent:#a43c2b;
  --cover-stock:#f6efdf;
  --focus:#934824;
  position:relative;
  isolation:isolate;
  display:grid;
  grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);
  align-items:center;
  column-gap:clamp(25px,4.4vw,68px);
  row-gap:clamp(21px,2.65vw,37px);
  padding:clamp(26px,3.2vw,48px) 0 clamp(24px,3.6vw,52px);
  color:var(--ink);
  border-bottom:1px solid #c8bda9;
}

.home-page .hero::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:var(--cover-stock);
  box-shadow:0 0 0 100vmax var(--cover-stock);
  clip-path:inset(0 -100vmax);
}

.home-page .hero .over {
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 18px;
  color:#554a42;
  font:700 .74rem/1.35 var(--body);
  letter-spacing:.115em;
  text-transform:uppercase;
}

.home-page .hero .over::before {
  content:"";
  flex:none;
  width:13px;
  height:13px;
  background:var(--cover-accent);
  clip-path:polygon(33% 0,66% 0,66% 33%,100% 33%,100% 66%,66% 66%,66% 100%,33% 100%,33% 66%,0 66%,0 33%,33% 33%);
}

.home-page .pitch h1 {
  max-width:none;
  margin:0;
  color:var(--ink);
  font:700 clamp(67px,8vw,116px)/.79 var(--display);
  letter-spacing:-.027em;
  text-transform:uppercase;
}

.home-page .pitch h1 span {
  display:block;
  margin-top:.075em;
  color:var(--cover-accent);
}

.home-page .hero .lede {
  max-width:34ch;
  margin:25px 0 26px;
  color:#494444;
  font-size:clamp(16px,1.4vw,20px);
  line-height:1.5;
}

.home-page .pitch .ctas {
  gap:9px 24px;
}

.home-page .hero-review-link {
  display:inline-flex;
  align-items:center;
  gap:.4em;
  min-height:32px;
  margin-top:6px;
  color:var(--ink);
  font:600 .85rem/1.4 var(--body);
  text-decoration:underline;
  text-underline-offset:.2em;
}

.hero-review-link strong {font-variant-numeric:tabular-nums;}
.home-page .hero-review-link:hover {color:var(--cover-accent);}
.hero-review-link span:first-child {color:var(--cover-accent);}

.home-page .pitch .ctas > .btn:not(.store-badge) {
  display:inline-flex;
  gap:.45em;
  padding:0;
  border:0;
  border-radius:0;
  background:none;
  color:var(--ink);
  font:700 .91rem/1.35 var(--body);
  text-decoration:none;
}

.home-page .pitch .ctas > .btn:not(.store-badge)::after {
  content:"↗";
  color:var(--cover-accent);
  font-size:1.15em;
}

.home-page .pitch .ctas > .btn:not(.store-badge):hover {
  color:var(--cover-accent);
  text-decoration:underline;
  text-underline-offset:.2em;
}

.home-page .store-badge.btn {
  display:inline-flex;
  padding:0;
  border:0;
  background:none;
}

.home-page .store-badge img {
  display:block;
  width:150px;
  height:50px;
}

.home-page .quick-facts {
  display:grid;
  grid-column:1 / -1;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px 25px;
  margin:0;
  padding:19px 0 24px;
  border-top:1px solid #c7bda9;
}

.home-page .quick-facts div + div {
  padding-left:23px;
  border-left:1px solid #c7bda9;
}

.home-page .quick-facts dt {
  color:#554c40;
  font:650 .69rem/1.25 var(--body);
  letter-spacing:.09em;
  text-transform:uppercase;
}

.home-page .quick-facts dd {
  margin:4px 0 0;
  color:var(--ink);
  font:700 clamp(13px,1.35vw,20px)/1.15 var(--body);
  letter-spacing:-.025em;
}

.showcase {
  --gallery-ink:#141627;
  --gallery-paper:#fff2dc;
  --gallery-rule:#fff2dc38;
  --gallery-active:#ffcc6c;
  --focus:#ffcc6c;
  margin:0;
  min-width:0;
  overflow:visible;
  border:0;
  border-radius:0;
  color:var(--gallery-paper);
  background:var(--gallery-ink);
  color-scheme:dark;
}

.showcase .scene {
  --stage-base:#f2693d;
  --stage-light:#ffa84f;
  --stage-dark:#c14b39;
  --stage-art:url("stage-race.png");
  --watch-angle:-10deg;
  position:relative;
  isolation:isolate;
  display:grid;
  place-items:center;
  width:100%;
  height:clamp(340px,33vw,450px);
  overflow:hidden;
  clip-path:polygon(0 0,calc(100% - 18px) 0,100% 18px,100% 100%,0 100%);
  background:radial-gradient(ellipse at 45% 43%,var(--stage-light),transparent 74%),var(--stage-base);
  transition:none;
  touch-action:pan-y pinch-zoom;
}

.showcase .scene::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background-image:
    radial-gradient(circle,#190e1965 0 .65px,transparent .85px),
    radial-gradient(ellipse at 96% 92%,var(--stage-dark),transparent 67%);
  background-size:4px 4px,100% 100%;
  mask-image:radial-gradient(ellipse 61% 69% at 50% 46%,transparent 35%,#000);
}

.showcase .scene-art {
  position:absolute;
  z-index:-1;
  inset:0;
  pointer-events:none;
  background:var(--stage-art) center / 100% 100% no-repeat;
  image-rendering:pixelated;
}

.showcase [data-scene="crossing"] {
  --watch-angle:6deg;
  --stage-base:#99b950;
  --stage-light:#d4e681;
  --stage-dark:#578245;
  --stage-art:url("stage-crossing.png");
}

.showcase [data-scene="orbit"] {
  --watch-angle:-4deg;
  --stage-base:#a38bdf;
  --stage-light:#d6bafd;
  --stage-dark:#7752a1;
  --stage-art:url("stage-orbit.png");
}

.showcase [data-scene="flight"] {
  --watch-angle:3deg;
  --stage-base:#5fb9eb;
  --stage-light:#b1e9ef;
  --stage-dark:#436ab5;
  --stage-art:url("stage-flight.png");
}

.showcase [data-scene="snow"] {
  --watch-angle:7deg;
  --stage-base:#aed2d2;
  --stage-light:#e0f5dc;
  --stage-dark:#69a2ae;
  --stage-art:url("stage-snow.png");
}

.showcase [data-scene="coast"] {
  --watch-angle:-6deg;
  --stage-base:#315a92;
  --stage-light:#578ebc;
  --stage-dark:#242452;
  --stage-art:url("stage-coast.png");
}

.showcase [data-scene="ride"] {
  --watch-angle:-13deg;
  --stage-base:#ed889e;
  --stage-light:#ffbe9d;
  --stage-dark:#b65982;
  --stage-art:url("stage-ride.png");
}

.showcase [data-scene="tiles"] {
  --watch-angle:4deg;
  --stage-base:#77b593;
  --stage-light:#c6da9d;
  --stage-dark:#4b846b;
  --stage-art:url("stage-tiles.png");
}

.showcase .hardware {
  position:relative;
  display:grid;
  place-items:center;
  width:clamp(198px,19vw,268px);
  aspect-ratio:230 / 281;
  transform:rotate(var(--watch-angle));
  filter:drop-shadow(13px 19px 13px #28131867);
}

@media (prefers-reduced-motion:no-preference) {
  .showcase .hardware {transition:transform .28s ease-out;}
}

@media (min-width:900px) {
  .home-page .hero {grid-template-rows:auto auto; row-gap:22px;}
  .home-page .pitch {grid-column:1; grid-row:1; align-self:end;}
  .home-page .hero > .showcase {grid-column:2; grid-row:1 / 3; box-shadow:6px 6px 0 #cbbda5;}
  .home-page .quick-facts {grid-column:1; grid-row:2; align-self:start; gap:10px; padding:17px 0 0;}
  .home-page .quick-facts div + div {padding-left:10px;}
  .home-page .quick-facts dd {font-size:clamp(14px,1.25vw,18px);}
}

.showcase .strap {
  position:absolute;
  z-index:-1;
  inset:-65% 13%;
  border-inline:2px solid #3c3b45;
  background:
    repeating-linear-gradient(0deg,#ffffff13 0 1px,transparent 1px 4px),
    repeating-linear-gradient(90deg,#ffffff0c 0 1px,transparent 1px 5px),
    linear-gradient(90deg,#242434,#474557 18%,#292738 61%,#302d3c 84%,#181726);
  box-shadow:inset 5px 0 8px #100f20bf,inset -5px 0 8px #151322af;
}

.showcase .case {
  position:relative;
  width:100%;
  padding:5.8%;
  border:1px solid #1a1b2b;
  border-radius:21%;
  background:linear-gradient(145deg,#e8c6a1 5%,#817b82 17%,#292936 33%,#1e1e2a 57%,#585767 78%,#b99477 94%);
  box-shadow:inset 0 0 0 2px #fff4d765,inset 0 0 0 4px #2322325a,0 3px 0 3px #292531;
}

.showcase .glass {
  display:block;
  position:relative;
  z-index:1;
  overflow:hidden;
  border:4px solid #101019;
  border-radius:16%;
  background:#101019;
  box-shadow:0 0 0 1px #d0b08e6e;
}

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

.showcase .crown {
  position:absolute;
  top:25%;
  right:-6%;
  width:8%;
  height:17%;
  border:1px solid #292533;
  border-right-color:#af8e71;
  border-radius:5px;
  background:
    repeating-linear-gradient(0deg,#c5ac9237 0 1px,transparent 1px 3px),
    linear-gradient(90deg,#2a2738,#8e7d7a 78%,#645653);
}

.showcase .crown::after {
  content:"";
  position:absolute;
  top:138%;
  right:46%;
  width:75%;
  height:71%;
  border-radius:5px;
  background:#514651;
}

.showcase .scene-caption {
  padding:11px 13px 12px;
  border:1px solid var(--gallery-rule);
  border-top:0;
}

.showcase .scene-caption-row {
  display:flex;
  align-items:center;
  gap:10px 14px;
}

.showcase .scene-label {
  display:flex;
  flex:1;
  flex-wrap:wrap;
  align-items:baseline;
  gap:0 10px;
  font:700 .94rem/1.2 var(--body);
}

.showcase .scene-label strong {
  color:var(--gallery-paper);
}

.showcase .screen-index {
  flex:none;
  color:var(--gallery-active);
  font:700 .72rem/1.2 "Consolas",monospace;
  font-variant-numeric:tabular-nums;
  letter-spacing:.022em;
}

.showcase .gallery-link {
  color:#eaddd2;
  font:650 .75rem/1.2 var(--body);
  text-underline-offset:.25em;
  white-space:nowrap;
}

.showcase .gallery-link:hover {
  color:var(--gallery-active);
}

.showcase .scene-controls {
  display:flex;
  gap:5px;
}

.showcase .scene-controls button,
.showcase .frame-pick {
  min-height:44px;
  border:1px solid var(--gallery-rule);
  border-radius:0;
  color:var(--gallery-paper);
  background:#fff2dc0b;
  cursor:pointer;
}

.showcase .scene-controls button {
  display:grid;
  place-items:center;
  width:44px;
  padding:0;
  font:650 1.3rem/1 var(--body);
}

.showcase .scene-controls button:hover,
.showcase .frame-pick:hover {
  border-color:var(--gallery-active);
  background:#fff2dc21;
}

.showcase .filmstrip {
  display:grid;
  grid-template-columns:repeat(8,minmax(0,1fr));
  gap:5px;
  margin-top:8px;
}

.showcase .frame-pick {
  display:grid;
  place-items:center;
  min-width:0;
  padding:2px;
}

.showcase .frame-pick[aria-pressed="true"] {
  border-color:var(--gallery-active);
  box-shadow:inset 0 -2px var(--gallery-active);
  background:#ffcc6c26;
}

.showcase .frame-pick img {
  display:block;
  width:100%;
  height:39px;
  object-fit:cover;
  object-position:center 40%;
  filter:saturate(.77) brightness(.84);
}

.showcase .frame-pick:is(:hover,[aria-pressed="true"]) img {
  filter:none;
}

.showcase :is(.filmstrip,.scene-controls)[hidden] {
  display:none;
}

.showcase :is(a,button):focus-visible {
  outline:2px solid var(--gallery-paper);
  outline-offset:2px;
}

@media (max-width:850px) {
  .home-page .hero {
    grid-template-columns:minmax(0,.87fr) minmax(0,1.13fr);
  }

  .home-page .pitch h1 {
    font-size:clamp(56px,8.4vw,84px);
  }
}

@media (max-width:720px) {
  .home-page .hero {
    grid-template-columns:minmax(0,1fr);
    gap:23px;
    padding:26px 0 0;
  }

  .home-page .hero .over {
    margin-bottom:14px;
    font-size:.68rem;
  }

  .home-page .pitch h1 {
    font-size:clamp(66px,15.4vw,106px);
  }

  .home-page .hero .lede {
    margin:18px 0 17px;
    max-width:38ch;
  }

  .home-page .pitch .ctas {
    gap:6px 18px;
  }

  .home-page .quick-facts {
    gap:10px;
    padding:15px 0 18px;
  }

  .home-page .quick-facts div + div {
    padding-left:9px;
  }

  .home-page .quick-facts dt {
    font-size:.61rem;
    letter-spacing:.045em;
  }

  .showcase .scene {
    height:clamp(276px,77vw,410px);
    clip-path:polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,0 100%);
  }

  .showcase .hardware {
    width:clamp(162px,49vw,236px);
  }

  .showcase .scene-caption {
    padding:8px;
  }

  .showcase .scene-caption-row {
    gap:8px;
  }
}

@media (max-width:460px) {
  .showcase .scene-label {
    flex-direction:column;
    align-items:flex-start;
    gap:3px;
    font-size:.875rem;
  }

  .showcase .filmstrip {
    grid-template-columns:repeat(4,minmax(0,1fr));
  }

  .showcase .frame-pick img {
    height:37px;
  }
}

@media (max-width:355px) {
  .home-page .pitch h1 {
    font-size:61px;
  }

  .home-page .pitch .ctas {
    gap:8px 14px;
  }

  .home-page .pitch .ctas > .btn:not(.store-badge) {
    font-size:.8rem;
  }

  .showcase .gallery-link {
    font-size:.68rem;
  }
}

@media (prefers-reduced-motion:reduce) {
  .showcase *,
  .showcase *::before,
  .showcase *::after {
    animation:none;
    transition:none;
  }
}
