:root {
  color-scheme: dark;
  --twb-blue: #101c3a;
  --twb-text: #f3f1eb;
  --twb-muted: #9aa4ba;
  font-family: "Courier New", "PingFang SC", "Microsoft YaHei", monospace;
}

* { box-sizing: border-box; }
html { scroll-snap-type: y proximity; background: var(--twb-blue); }
body { min-width: 320px; margin: 0; background: var(--twb-blue); color: var(--twb-text); }
a { color: inherit; text-decoration: none; }

.twb-video-cover,
.twb-story {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--twb-blue);
  scroll-snap-align: start;
}

.twb-video-cover:not(.is-playing) {
  height: max(100vh, calc((100vw - 60px) * 941 / 1672 + 164px));
}

.twb-video-cover.is-playing { height: 100vh; }

.twb-nav {
  position: absolute;
  top: 32px;
  right: 0;
  left: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px 30px;
  color: var(--twb-muted);
  font-size: 10px;
}

.twb-nav p { margin: 0; }
.twb-nav a:last-child { justify-self: end; }

.twb-media {
  position: absolute;
  top: 86px;
  right: 30px;
  bottom: 30px;
  left: 30px;
  overflow: hidden;
  background: var(--twb-blue);
}

.twb-media video {
  display: block;
  width: 100%;
  height: calc(100% - 24px);
  background: var(--twb-blue);
  object-fit: cover;
  object-position: center;
}

.twb-video-cover:not(.is-playing) .twb-media {
  bottom: auto;
  transform: translateY(24px);
}

.twb-video-cover:not(.is-playing) .twb-media video {
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: contain;
}

.twb-video-cover.is-playing .twb-media video { object-fit: contain; }

.twb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 50%;
  background: rgb(16 28 58 / 30%);
  color: #fff;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.twb-play span {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}

.twb-video-cover.is-playing .twb-play { display: none; }

.twb-cover-footer {
  position: absolute;
  right: 30px;
  bottom: 20px;
  left: 30px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--twb-muted);
  font-size: 9px;
  pointer-events: none;
}

.twb-story {
  overflow: visible;
  padding: 34px 30px 56px;
}

.twb-story-header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid rgb(255 255 255 / 14%);
  color: var(--twb-muted);
  font-size: 9px;
  text-transform: uppercase;
}

.twb-story-header span { transform: translateY(20px); }

.twb-stills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: clamp(88px, 12vh, 138px) auto 0;
}

.twb-stills img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.twb-story-grid {
  --twb-story-column-gap: clamp(54px, 6vw, 110px);

  display: grid;
  grid-template-columns: repeat(3, minmax(0, calc((94% - var(--twb-story-column-gap) - var(--twb-story-column-gap)) / 3)));
  justify-content: space-between;
  gap: 0;
  width: 100%;
  margin: 0 auto;
  padding-top: clamp(80px, 11vh, 124px);
}

.twb-story-grid article { min-width: 0; }
.twb-story-grid p { margin: 0; }

.twb-story-grid .twb-label {
  margin-bottom: 18px;
  color: var(--twb-muted);
  font-size: 9px;
}

.twb-story-grid .twb-copy {
  max-width: 90%;
  margin-bottom: 18px;
  color: rgb(243 241 235 / 78%);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.56;
}

.twb-story-grid .twb-copy:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  .twb-nav { padding: 20px; }
  .twb-nav p { display: none; }
  .twb-media { top: 78px; right: 20px; bottom: 28px; left: 20px; }
  .twb-cover-footer { right: 20px; left: 20px; }
  .twb-story { padding-right: 20px; padding-left: 20px; }
  .twb-stills { grid-template-columns: 1fr 1fr; }
  .twb-story-grid { grid-template-columns: 1fr; gap: 44px; }
}
