:root {
  color-scheme: dark;
  --base: #141412;
  --panel: #1b1b18;
  --text: #f9f5ee;
  --quiet: #c2bbb1;
  --line: #39352e;
  --accent: #ffc483;
  --gutter: max(1.3rem, env(safe-area-inset-left), env(safe-area-inset-right));
  font: 100%/1.5 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--base); color: var(--text); }
a { color: inherit; }
button { font: inherit; }
p, h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(100% - 2 * var(--gutter), 71.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.bar { border-bottom: 1px solid var(--line); padding-block-start: env(safe-area-inset-top); }
.bar-inner { min-height: 4.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { text-decoration: none; display: inline-flex; align-items: center; gap: .65rem; font-weight: 680; letter-spacing: -.025em; }
.brand > span:first-child { display: inline-block; width: .72rem; height: .72rem; background: var(--accent); transform: rotate(45deg); flex-shrink: 0; }
.languages { position: relative; flex: 0 0 auto; max-width: 48%; }
.languages::after { content: ""; position: absolute; right: 1rem; top: 50%; width: .42rem; height: .42rem; border-right: 2px solid var(--quiet); border-bottom: 2px solid var(--quiet); transform: translateY(-75%) rotate(45deg); pointer-events: none; }
.languages select { -webkit-appearance: none; appearance: none; font: inherit; font-weight: 650; display: block; max-width: 100%; min-height: 2.75rem; padding: .38rem 2rem .38rem .8rem; border: 1px solid var(--line); border-radius: 99px; color: var(--text); background: var(--panel); cursor: pointer; }

.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); background: #1d1817; }
.hero-photo { position: absolute; z-index: -1; inset: 0; background: url("assets/hero.jpg") right 12% center / auto 175% no-repeat; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, #1d1817 19%, #1d1817ee 34%, #1d181740 66%, #1d18171a 100%),
  linear-gradient(0deg, #1d181745, transparent 43%);
}
.hero-photo video { position: absolute; inset: 0 0 0 auto; width: 56%; height: 100%; object-fit: cover; object-position: center 46%; opacity: 0; }
.hero-photo video.is-visible { opacity: 1; }
.hero-controls { position: absolute; bottom: .85rem; right: max(var(--gutter), calc((100% - 71.5rem) / 2)); display: flex; justify-content: flex-end; gap: .4rem; width: auto; }
.hero-controls button { color: var(--text); background: #141412e8; border: 1px solid #ffffff48; border-radius: .35rem; min-height: 2.75rem; padding: .3rem .65rem; font-size: .93rem; cursor: pointer; }
.hero-content { min-height: 31rem; padding-block: 4rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.eyebrow, .topic { color: var(--accent); font-size: .875rem; font-weight: 720; letter-spacing: .13em; }
h1 { font-size: clamp(3.4rem, 7.6vw, 7.3rem); line-height: .94; letter-spacing: -.075em; margin-block: .9rem 1.2rem; font-weight: 780; }
h1 span { display: block; overflow-wrap: anywhere; }
h1 span + span { color: var(--accent); }
.hero-description { max-width: 24rem; font-size: 1.13rem; color: #eee4d8; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; text-decoration: none; margin-top: 1.45rem; padding: .75rem 1.05rem; min-height: 2.85rem; background: var(--accent); border-radius: .36rem; color: #221a13; font-weight: 760; }
.primary:hover { background: #ffdbad; }
.triangle { display: inline-block; height: 0; width: 0; border-top: .34rem solid transparent; border-bottom: .34rem solid transparent; border-left: .55rem solid currentColor; }

.collection { padding-block: 3.05rem 3.45rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .35rem 1rem; margin-bottom: 1.3rem; }
h2 { font-size: clamp(1.8rem, 4.6vw, 2.75rem); letter-spacing: -.05em; line-height: 1.08; }
.section-heading > p, .card-content > p:last-child, .footer-inner, .video-error { color: var(--quiet); }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.card { border: 1px solid var(--line); border-radius: .65rem; background: var(--panel); overflow: hidden; }
.play-area { display: block; position: relative; aspect-ratio: 1.62; overflow: hidden; background: #252321; }
.play-area:focus-visible { outline-offset: -4px; }
.play-area::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #0009, transparent 52%); pointer-events: none; }
.play-area img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 42%; }
.memory img { object-position: center 49%; }
.starship img { object-position: center 54%; }
.play-icon, .runtime { position: absolute; z-index: 1; }
.play-icon { color: #15130e; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%; background: #fff4e3; left: .9rem; bottom: .9rem; }
.play-icon .triangle { margin-left: .12rem; }
.play-area:hover .play-icon, .play-area[aria-expanded="true"] .play-icon { background: var(--accent); }
.play-area[aria-expanded="true"] .triangle { border: 0; width: .7rem; height: .7rem; background: currentColor; margin-left: 0; }
.runtime { color: var(--text); background: #141412eb; padding: .18rem .4rem; border-radius: .24rem; bottom: .9rem; right: .8rem; font-size: .85rem; font-variant-numeric: tabular-nums; }
.card-content { padding: 1rem; }
h3 { margin-block: .22rem .42rem; line-height: 1.14; letter-spacing: -.025em; font-size: clamp(1.26rem, 2.3vw, 1.65rem); }
.player { border-top: 1px solid var(--line); padding: .8rem; display: grid; justify-items: center; gap: .25rem; }
.player video { display: block; width: min(100%, 22.5rem); aspect-ratio: 9 / 16; max-height: 72vh; background: #090908; object-fit: contain; }
.direct-video { padding: .6rem .65rem; min-height: 2.75rem; font-size: .9rem; color: var(--accent); }
.video-error { text-align: center; }
.site-footer { border-top: 1px solid var(--line); padding-block-end: env(safe-area-inset-bottom); }
.footer-inner { min-height: 4rem; display: flex; justify-content: space-between; align-items: center; padding-block: .5rem; gap: 1rem; font-size: .9rem; }
.footer-inner a { min-height: 2.75rem; display: flex; align-items: center; }
:is(:lang(zh-CN), :lang(ja), :lang(ko)) h1 { line-height: 1.08; letter-spacing: -.035em; }
:lang(zh-CN) .eyebrow, :lang(zh-CN) .topic { letter-spacing: .12em; }

@media (max-width: 44rem) {
  .bar-inner { min-height: 3.85rem; }
  .hero-photo { background: url("assets/hero.jpg") 50% 43% / cover no-repeat; }
  .hero-photo::after { background:
    linear-gradient(90deg, #1d1817b0, #1d18172a 76%),
    linear-gradient(0deg, #1d1817ed 8%, #1d181764 48%, #1d181730 79%, #1d1817b0); }
  .hero-photo video { width: 100%; object-position: center 43%; }
  .hero-content { min-height: 28.1rem; padding-block: 2.35rem 4.4rem; justify-content: end; }
  h1 { font-size: clamp(2.8rem, 12vw, 4.45rem); }
  :is(:lang(es), :lang(pt-BR), :lang(fr), :lang(de)) h1 { font-size: clamp(2.35rem, 10.6vw, 4.45rem); }
  .hero-description { max-width: 18rem; font-size: 1rem; }
  .collection { padding-block: 2.15rem 2.55rem; }
  .section-heading { align-items: start; flex-direction: column; }
  .video-grid { grid-template-columns: 1fr; gap: .8rem; }
  .card { display: grid; grid-template-columns: minmax(6rem, 31%) minmax(0, 1fr); }
  .play-area { height: 100%; min-height: 9.55rem; aspect-ratio: auto; }
  .memory img { object-position: 55% center; }
  .play-icon { left: .43rem; bottom: .43rem; }
  .runtime { right: .36rem; bottom: .43rem; }
  .card-content { padding: .72rem .8rem .8rem; }
  .player { grid-column: 1 / -1; }
}

@media (max-width: 23rem) {
  :root { --gutter: max(.9rem, env(safe-area-inset-left), env(safe-area-inset-right)); }
  .runtime { font-size: .74rem; }
}
