/*
  The home page hero: the title card, with the ten ventures drifting through the wordmark.
  It stays pinned while the rest of the page slides up over it.
*/
.d-hero {
  position: sticky;
  top: 0;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  background: #030404;
  text-align: center;
}
.d-glow {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(ellipse 38% 30% at 50% 52%, #ff93792e, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 80%, #5d7bff14, transparent 70%),
    radial-gradient(ellipse 50% 45% at 85% 20%, #ffc56b12, transparent 70%);
  animation: d-glow 16s ease-in-out infinite alternate;
}
.d-frame {
  width: 100%;
  padding: 0 var(--gutter);
}
.d-top {
  justify-content: center;
  animation: d-up 1.2s var(--ease) 0.9s both;
}
.d-word {
  margin: clamp(10px, 2vh, 26px) 0 clamp(8px, 1.6vh, 20px);
  font-size: min(15.6vw, 44vh);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.035em;
  /* The ten worlds drift through the letters. */
  color: transparent;
  background:
    linear-gradient(#f4f0e94d, #f4f0e94d),
    url('/brand/reel.webp') 0 50% / 9.6em 1.2em repeat-x;
  -webkit-background-clip: text;
  background-clip: text;
  animation:
    d-pan 70s linear infinite,
    d-word 2s var(--ease) 0.1s both;
}
.d-line {
  font-family: var(--serif);
  font-size: clamp(22px, 3.1vw, 46px);
  letter-spacing: -0.015em;
  color: #e9e4db;
  animation: d-up 1.2s var(--ease) 1.15s both;
}
.d-line em {
  color: var(--accent);
}
.d-foot {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 68px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.d-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #cfcbc3;
  animation: d-up 1.2s var(--ease) 1.6s both;
}
.d-cue i {
  position: relative;
  width: 1px;
  height: 54px;
  overflow: hidden;
  background: #ffffff26;
}
.d-cue i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: d-drop 2.2s var(--ease) infinite;
}
.d-corner {
  flex: 1;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-align: left;
  color: #8f8d88;
  animation: d-up 1.2s var(--ease) 1.8s both;
}
.d-corner:last-child {
  text-align: right;
}

/* The rest of the page rides up over the title card. */
.d-after {
  position: relative;
  z-index: 1;
  border-radius: clamp(20px, 2.6vw, 38px) clamp(20px, 2.6vw, 38px) 0 0;
  background: var(--bg);
  box-shadow: 0 -30px 80px #000c;
}

.home .c-bento h2 {
  font-size: clamp(48px, 8.6vw, 140px);
}

@keyframes d-pan {
  to {
    background-position:
      0 0,
      -9.6em 50%;
  }
}
@keyframes d-word {
  from {
    opacity: 0;
    letter-spacing: 0.12em;
    transform: scale(1.18);
    filter: blur(18px);
  }
}
@keyframes d-up {
  from {
    opacity: 0;
    translate: 0 22px;
  }
}
@keyframes d-drop {
  0% {
    transform: translateY(-100%);
  }
  60%,
  100% {
    transform: translateY(100%);
  }
}
@keyframes d-glow {
  from {
    transform: translate(-3%, 2%) scale(1);
  }
  to {
    transform: translate(3%, -2%) scale(1.12);
  }
}

@media (max-width: 740px) {
  .d-word {
    font-size: 15.2vw;
  }
  .d-corner {
    display: none;
  }
  .d-foot {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* As the page moves on, the wordmark rushes toward the viewer and is gone. */
    .d-frame {
      animation: d-exit linear both;
      animation-timeline: scroll(root);
      animation-range: 0 90vh;
    }
    @keyframes d-exit {
      to {
        opacity: 0;
        visibility: hidden;
        transform: scale(2.6);
      }
    }
    .d-foot {
      animation: d-foot-exit linear both;
      animation-timeline: scroll(root);
      animation-range: 0 30vh;
    }
    @keyframes d-foot-exit {
      to {
        opacity: 0;
        visibility: hidden;
      }
    }
  }
}
/*
  The grid of ventures on the home page. Each tile is built around its venture's logo and
  leans toward the pointer.
*/
.c-bento {
  padding: clamp(80px, 10vw, 150px) var(--gutter) clamp(80px, 10vw, 150px);
}
.c-bento-heading {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 70px);
}
.c-bento h2 {
  font-size: clamp(42px, 7.4vw, 120px);
}
/*
  Ten tiles in three calm rows of three, four, and three. Every tile is the same height, so no
  venture outranks another and the eye can travel along the rows.
*/
.c-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(210px, 19vw, 300px);
  gap: clamp(12px, 1.4vw, 22px);
}
.c-cell {
  grid-column: span 4;
  min-width: 0;
  perspective: 1000px;
}
.c-cell:nth-child(n + 4):nth-child(-n + 7) {
  grid-column: span 3;
}
.c-tile {
  position: relative;
  display: block;
  height: 100%;
  border-radius: var(--radius);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--lift, 1));
  transform-style: preserve-3d;
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
  box-shadow: 0 0 0 1px #ffffff26;
}
.c-tile.is-tilting {
  transition:
    transform 0.12s linear,
    box-shadow 0.5s var(--ease);
}
.c-tile-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: var(--deep-2);
}
.c-tile-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
/* An even veil over the artwork, so the logo is what you read first. */
.c-tile-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at center,
      color-mix(in srgb, var(--deep) 74%, transparent),
      color-mix(in srgb, var(--deep) 46%, transparent)
    ),
    linear-gradient(0deg, color-mix(in srgb, var(--deep) 80%, transparent), transparent 46%);
  transition: opacity 0.6s;
}
/* A highlight that follows the pointer. */
.c-tile-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #ffffff38, transparent 46%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.c-tile-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 5cqh, 20px);
  padding: clamp(16px, 1.8vw, 26px);
  /* Sizes inside a tile follow the tile, so the logo fills a small tile and a large one alike. */
  container-type: size;
  /* The copy floats in front of the artwork when the tile tilts. */
  transform: translateZ(38px);
}
.c-tile-top {
  position: absolute;
  top: clamp(12px, 1.4vw, 20px);
  left: clamp(14px, 1.6vw, 22px);
  right: clamp(12px, 1.4vw, 20px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.c-tile-top small {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
  color: var(--tone);
}
.c-tile-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #ffffff4d;
  border-radius: 50%;
  background: color-mix(in srgb, var(--deep) 50%, transparent);
  opacity: 0;
  transform: translate(-6px, 6px);
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s,
    opacity 0.3s,
    transform 0.5s var(--ease);
}
.c-tile-arrow svg {
  width: 15px;
  height: 15px;
}
.c-tile-bottom {
  display: contents;
}
/*
  The logo: a box sized from the tile, which each mark fills as far as its own shape allows.
  Wide wordmarks run to the box's width and compact ones to its height.
*/
.c-tile .c-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74cqw;
  max-width: 460px;
  height: 38cqh;
  --logo-h: clamp(30px, min(13cqw, 30cqh), 110px);
  filter: drop-shadow(0 4px 22px #000b);
}
.c-tile .c-logo img:not(.ponderchess-brand img) {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center;
}
/* This mark has empty space built into its artwork, so it is drawn larger to match the rest. */
.c-tile .c-logo.superbdent img {
  scale: 1.32;
}
.c-tile .c-logo.ponderchess {
  --logo-h: clamp(34px, min(15cqw, 32cqh), 110px);
}
.c-tile .c-logo.lalai img {
  scale: 0.82;
}
.c-tile .c-logo .text-brand {
  font-size: clamp(30px, min(14.5cqw, 34cqh), 120px);
  line-height: 1;
}
.c-tile-category {
  font-size: clamp(10px, 2.4cqw, 13px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-align: center;
  color: #f4f0e9;
  text-shadow: 0 1px 12px #000;
}
@media (hover: hover) {
  .c-tile:hover,
  .c-tile:focus-visible {
    --lift: 1.03;
    z-index: 2;
    box-shadow:
      0 0 0 1px var(--tone),
      0 34px 90px -24px var(--tone);
  }
  .c-tile:hover .c-tile-art img {
    transform: scale(1.07);
  }
  .c-tile:hover .c-tile-shine {
    opacity: 1;
  }
  .c-tile:hover .c-tile-art::after {
    opacity: 0.78;
  }
  .c-tile:hover .c-tile-arrow {
    opacity: 1;
    transform: none;
    background: var(--tone);
    border-color: var(--tone);
    color: #07061c;
  }
}

@media (max-width: 900px) {
  .c-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(190px, 30vw, 260px);
  }
  .c-cell,
  .c-cell:nth-child(n + 4):nth-child(-n + 7) {
    grid-column: auto;
  }
}
@media (max-width: 740px) {
  /* One tile to a row on a phone, so every logo has the full width. */
  .c-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: clamp(150px, 44vw, 200px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* Tiles swing up out of the page as they arrive. */
    .js .c-cell[data-reveal] {
      opacity: 1;
      transform: none;
      transition: none;
      animation: c-cell-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 28%;
    }
    /* Flat transforms only: a 3D tilt on an element far off screen confuses the browser's
       hit testing and lets it swallow clicks meant for the hero. */
    /* Flat transforms only: a 3D tilt on an element far off screen confuses the browser's
       hit testing and lets it swallow clicks meant for other parts of the page. */
    @keyframes c-cell-in {
      from {
        opacity: 0;
        transform: translateY(110px) scale(0.88);
      }
    }
  }
}
.play-feature {
  padding: 44px clamp(20px, 2.85vw, 48px) 64px;
  background: radial-gradient(ellipse at 75% 60%, #15171a66, transparent 65%), #060708;
}
.play-kicker {
  margin: 0 24px 22px;
}
.play-container {
  max-width: 1600px;
  margin: auto;
  border: 1px solid #34373b;
  border-radius: 20px;
  overflow: hidden;
  background: #0b0c0e;
}
.play-stage {
  position: relative;
  isolation: isolate;
  min-height: 490px;
  overflow: hidden;
}
.play-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #060708d9 0%, #060708ad 28%, #0607084d 52%, #0607080d 78%),
    linear-gradient(0deg, #06070840, transparent 35%);
}
.play-copy {
  padding: 48px 44px;
  max-width: 530px;
  pointer-events: none;
}
.play-copy a {
  pointer-events: auto;
}
.play-platform {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #bdb9b1;
  margin-bottom: 16px;
}
.play-copy h2 {
  font-size: clamp(42px, 4.8vw, 72px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.02;
}
.play-copy h2 span {
  color: #a09e99;
}
.play-description {
  font-size: 16px;
  line-height: 1.5;
  color: #bdb9b1;
  margin: 25px 0;
}
.play-copy .button {
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 6px;
}
.play-shelf {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 18px;
  padding: 28px 30px;
  border-top: 1px solid #ffffff20;
  background: linear-gradient(110deg, #0f1113, #0b0c0e);
}
.play-shelf button {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  font-size: 12px;
  line-height: 1.4;
  transition: color 0.2s;
}
.play-shelf button:hover {
  color: var(--accent);
}
.play-shelf img {
  width: clamp(44px, 5.1vw, 80px);
  height: clamp(44px, 5.1vw, 80px);
  object-fit: cover;
  border-radius: 9px;
  flex-shrink: 0;
}
.play-film {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #060708;
}
.play-film video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.play-video-toggle {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 2;
  border: 1px solid #ffffff60;
  border-radius: 30px;
  background: #060708db;
  color: #fff;
  padding: 10px 16px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.play-video-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.play-video-status {
  position: absolute;
  right: 22px;
  bottom: 65px;
  color: white;
  background: #060708;
  font-size: 12px;
}
.play-video-status:empty {
  display: none;
}
@media (max-width: 1100px) {
  .play-shelf {
    gap: 14px;
    padding: 22px;
  }
  .play-shelf button {
    flex-direction: column;
    align-items: flex-start;
    font-size: 11px;
  }
  .play-copy {
    padding: 40px 30px;
  }
  .play-stage {
    min-height: 440px;
  }
  .play-copy h2 {
    font-size: 54px;
  }
}
@media (max-width: 740px) {
  .play-feature {
    padding: 30px 20px 40px;
  }
  .play-kicker {
    margin-left: 0;
  }
  .play-container {
    border-radius: 14px;
  }
  .play-stage {
    min-height: 560px;
  }
  .play-stage::after {
    background: linear-gradient(0deg, #060708e6 0%, #060708b3 45%, #06070826 85%);
  }
  .play-copy {
    padding: 180px 24px 36px;
    max-width: none;
  }
  .play-copy h2 {
    font-size: 46px;
  }
  .play-copy h2 br:first-child {
    display: none;
  }
  .play-copy h2 span {
    display: block;
  }
  .play-description {
    font-size: 14px;
    margin: 18px 0;
  }
  .play-platform {
    font-size: 9px;
  }
  .play-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 20px;
    gap: 20px 14px;
  }
  .play-shelf button {
    flex-direction: row;
    align-items: center;
  }
  .play-shelf img {
    width: 48px;
    height: 48px;
  }
  .play-film {
    inset: 0;
    height: 100%;
  }
  .play-video-toggle {
    top: 16px;
    bottom: auto;
    right: 16px;
  }
  .play-video-status {
    top: 58px;
    bottom: auto;
  }
  .play-stage.is-playing::after {
    background: linear-gradient(0deg, #060708e6 0%, #060708b3 45%, #06070826 85%);
  }
}
/* A quiet playback control keeps the footage as the focus. */
.play-video-toggle {
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  border-color: #ffffff35;
  background: #06070880;
  color: #ffffffb8;
  transition:
    background 0.2s,
    color 0.2s;
}
.play-video-toggle:hover {
  background: #060708e6;
  color: #fff;
}
.play-video-toggle[hidden] {
  display: none;
}

.play-copy h2 {
  text-shadow: 0 2px 24px #0003;
}
.play-platform,
.play-description {
  color: #d6d2ca;
}

.play-shelf button {
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 8px;
  margin: -8px;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.play-shelf button[aria-pressed='true'] {
  background: #ff937912;
  border-color: #ff93798c;
  color: var(--accent);
}
.play-shelf button[aria-pressed='true'] img {
  box-shadow: 0 0 0 2px var(--accent);
}
.play-shelf button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Shared with all three designs */
.play-feature {
  color-scheme: dark;
  --bg: #07080a;
  --ink: #f4f0e9;
  --soft: #d6d2ca;
  --muted: #a09e99;
  --line: #ffffff21;
  --mark: initial;
  color: var(--ink);
  padding-top: clamp(50px, 7vw, 100px);
  padding-bottom: clamp(60px, 8vw, 120px);
  background: #07080a;
}
.play-container {
  border-radius: max(14px, var(--radius));
}
.play-copy h2 {
  font-family: var(--display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-case);
  font-size: clamp(46px, 6vw, 96px);
  line-height: 0.96;
}
.play-copy h2 span {
  color: var(--accent);
}
@media (max-width: 740px) {
  .play-copy h2 {
    font-size: 44px;
  }
  .play-copy h2 span br {
    display: inline;
  }
}
