/* Fluent on Day One preview. Page-local. Uses the site palette and type. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0C1116;
  --bg-deep: #080B0E;
  --border: #1C222A;
  --border-strong: #2A323C;
  --text: #EAEFF4;
  --text-bright: #ffffff;
  --text-muted: #8A94A0;
  --text-subtle: #5F6772;
  --accent: #38bdf8;
  --display: "Space Grotesk", sans-serif;
  --sans: "Inter", sans-serif;
  --mono: "JetBrains Mono", monospace;
}

html { background: var(--bg); }

body {
  min-height: 100%;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--text-bright);
  outline-offset: 3px;
}

.top,
.page,
.foot {
  width: min(1040px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand svg { width: 34px; height: 34px; display: block; flex: none; }

.home-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
}

.home-link:hover { color: var(--text-bright); }

.page { padding: 36px 0 28px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--text-bright);
}

h1 em {
  font-style: normal;
  color: var(--accent);
  font-weight: inherit;
}

.lede {
  margin-top: 18px;
  max-width: none;
  color: var(--text-muted);
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  line-height: 1.6;
}

.film-stage {
  position: relative;
  margin-top: 32px;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.film-poster,
.film-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-deep);
}

.film-video { display: none; }

.film-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 84px;
  height: 84px;
  border: 4px solid rgba(12, 17, 22, 0.92);
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

.film-play svg { display: block; margin-left: 3px; }

.film-play:hover { filter: brightness(1.08); }
.film-play:active { filter: brightness(0.96); }

.film-stage.is-playing .film-poster,
.film-stage.is-playing .film-play,
.film-stage.is-failed .film-poster,
.film-stage.is-failed .film-play,
.film-stage.is-failed .film-video { display: none; }

.film-stage.is-playing .film-video { display: block; }

.film-fallback {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 24px;
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg-deep);
}

.film-stage.is-failed .film-fallback { display: flex; }

.film-fallback p {
  color: var(--text-muted);
  max-width: 28rem;
}

.film-file {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.film-file:hover { color: var(--text-bright); }

.film-retry {
  margin-top: 4px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font-family: var(--display);
  font-size: 0.92rem;
  cursor: pointer;
}

.film-retry:hover { border-color: var(--text); }

.runtime {
  margin-top: 12px;
  color: var(--text-subtle);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.close {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.brand-line {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text-bright);
}

.brand-line span { color: var(--accent); }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
}

.cta:hover { background: var(--text-bright); }

.cta-quiet {
  display: block;
  width: fit-content;
  margin: 14px auto 0;
  padding: 8px 4px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
  text-decoration: none;
}

.cta-quiet:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot {
  padding: 12px 0 48px;
  color: #9AA4B0;
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .page { padding-top: 22px; }
  .film-stage { margin-top: 24px; border-radius: 14px; }
  .film-play { width: 72px; height: 72px; }
  .close { margin-top: 40px; padding-top: 28px; }
  .cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
