@font-face {
  font-family: "Local Sun Serif";
  src: url("assets/fonts/SourceSerif4-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "Local Sun Sans";
  src: url("assets/fonts/Inter-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #faf9f5;
  --oat: #f0eee6;
  --ink: #1f1e1d;
  --ink-soft: #67635f;
  --line: #d6d2c7;
  --accent: #d97757;
  --night: #1f1e1d;
  --demo-warm: 0;
  --demo-dim: 0;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "Local Sun Sans", Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
}

button,
a,
input {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

a {
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.site-stage {
  position: fixed;
  z-index: 1;
  inset: 0;
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr) 154px;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
}

.site-header {
  z-index: 10;
  border-bottom: 1px solid var(--line);
}

.site-nav,
.hero,
.fact-rail-inner {
  width: min(1440px, calc(100% - 96px));
  margin: 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand,
.film-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
  font-weight: 650;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.brand-mark i {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.brand-mark b {
  position: absolute;
  top: 15px;
  right: 3px;
  left: 3px;
  height: 1px;
  background: currentColor;
}

.brand-mark-light {
  border-color: rgba(250, 249, 245, 0.72);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-text {
  position: relative;
  padding: 3px 0;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 540;
}

.nav-text::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 140ms ease, transform 140ms ease;
}

.nav-text:hover::after,
.nav-text:focus-visible::after,
.nav-film::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero {
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 0.87fr) minmax(530px, 1.13fr);
  align-items: center;
  gap: 68px;
  min-height: 0;
  padding: 28px 0 22px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.dialog-kicker,
.film-caption p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 680;
  text-transform: uppercase;
}

h1,
.film-caption h2,
.info-dialog h2 {
  font-family: "Local Sun Serif", Georgia, serif;
}

h1 {
  margin: 0;
  font-size: 76px;
  font-weight: 470;
  line-height: 0.97;
}

.hero-lead {
  max-width: 540px;
  margin: 25px 0 0;
  color: #34312f;
  font-size: 18px;
  line-height: 1.55;
}

.hero-note {
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 27px;
}

.watch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 21px;
  border-radius: 5px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-size: 13px;
  font-weight: 620;
  transition: background-color 140ms ease, transform 140ms ease;
}

.watch-button:hover {
  background: #373431;
}

.watch-button:active {
  transform: translateY(1px);
}

.launch-link {
  position: relative;
  padding: 4px 0;
  font-size: 12px;
  font-weight: 590;
}

.launch-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
}

.launch-link:hover {
  color: var(--accent);
}

.release-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 500;
}

.release-status span {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
}

.hero-visual {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 58px;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  margin: 0;
}

.editorial-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}

.editorial-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
}

.shortcut-demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.shortcut-prompt,
.influence-value {
  font-size: 10px;
  font-weight: 570;
  white-space: nowrap;
}

.shortcut-keys,
.brightness-controls {
  display: flex;
  align-items: center;
}

.shortcut-keys {
  gap: 8px;
}

kbd,
.brightness-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}

kbd {
  color: var(--ink);
  font-family: "Local Sun Sans", Inter, sans-serif;
  font-size: 15px;
  font-weight: 620;
}

.plus {
  font-size: 10px;
}

.brightness-controls button {
  cursor: pointer;
}

.brightness-controls button + button {
  margin-left: -1px;
}

.brightness-controls button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.brightness-controls button:active {
  background: var(--oat);
}

.brightness-controls svg,
.fact-icon {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brightness-controls svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.35;
}

.influence-value output {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.fact-rail {
  z-index: 10;
  border-top: 1px solid var(--line);
  background: var(--oat);
}

.fact-rail-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 100%;
}

.fact {
  display: grid;
  grid-template-columns: 28px 32px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 24px 36px;
}

.fact:first-child {
  padding-left: 0;
}

.fact:last-child {
  padding-right: 0;
}

.fact + .fact {
  border-left: 1px solid var(--line);
}

.fact-number {
  align-self: start;
  padding-top: 5px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.fact-icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.25;
}

.fact div {
  min-width: 0;
}

.fact strong,
.fact small {
  display: block;
}

.fact strong {
  font-size: 13px;
  font-weight: 630;
}

.fact small {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.45;
}

.demo-warmth,
.demo-dimming {
  position: fixed;
  z-index: 80;
  inset: 0;
  pointer-events: none;
}

.demo-warmth {
  background: rgba(178, 50, 18, var(--demo-warm));
  mix-blend-mode: multiply;
}

.demo-dimming {
  background: rgba(8, 8, 7, var(--demo-dim));
}

.influence-hud {
  position: fixed;
  z-index: 90;
  top: 50%;
  left: 50%;
  width: 270px;
  padding: 17px 18px 15px;
  border: 1px solid rgba(250, 249, 245, 0.18);
  border-radius: 6px;
  background: rgba(31, 30, 29, 0.94);
  color: var(--paper);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -44%);
  transition: opacity 140ms ease, transform 140ms ease;
}

.influence-hud.visible {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.influence-hud div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.influence-hud span {
  color: rgba(250, 249, 245, 0.68);
  font-size: 11px;
}

.influence-hud strong {
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}

.influence-hud > i {
  display: block;
  height: 2px;
  margin-top: 14px;
  overflow: hidden;
  background: rgba(250, 249, 245, 0.16);
}

.influence-hud > i b {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 70ms linear;
}

.film-layer {
  position: fixed;
  z-index: 200;
  inset: 0;
  overflow: hidden;
  background: var(--night);
  color: var(--paper);
  opacity: 1;
}

.film-layer[hidden] {
  display: none;
}

.film-layer video,
.film-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.film-layer video {
  object-fit: cover;
  object-position: center;
}

.film-shade {
  background: rgba(5, 6, 5, 0.02);
  pointer-events: none;
}

.film-topline,
.film-caption,
.film-controls {
  position: absolute;
  z-index: 2;
}

.film-topline {
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 44px;
  color: var(--paper);
}

.film-caption {
  top: 25%;
  left: 8.25%;
  max-width: min(620px, 29.5vw);
  color: var(--paper);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 240ms ease, transform 240ms ease, color 300ms ease;
}

.film-caption.changing {
  opacity: 0;
  transform: translateY(8px);
}

.film-caption p {
  color: currentColor;
  opacity: 0.68;
}

.film-caption h2 {
  margin: 0;
  font-size: 58px;
  font-weight: 470;
  line-height: 1.02;
}

.film-layer[data-copy="dark"] .film-caption {
  color: var(--ink);
}

.film-controls {
  right: 44px;
  bottom: 32px;
  left: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(250, 249, 245, 0.28);
  border-radius: 50%;
  background: rgba(31, 30, 29, 0.48);
  color: var(--paper);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.icon-button:hover {
  background: rgba(31, 30, 29, 0.74);
}

.icon-button svg,
.dialog-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.film-play .play-icon,
.film-layer.is-paused .film-play .pause-icon,
.muted-icon,
.film-layer.is-muted .sound-icon {
  display: none;
}

.film-layer.is-paused .film-play .play-icon,
.film-layer.is-muted .muted-icon {
  display: block;
}

.film-play .play-icon {
  fill: currentColor;
  stroke: none;
}

.film-time {
  width: 33px;
  color: rgba(250, 249, 245, 0.76);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.film-progress {
  width: 100%;
  height: 18px;
  margin: 0;
  cursor: pointer;
  appearance: none;
  background: transparent;
}

.film-progress::-webkit-slider-runnable-track {
  height: 2px;
  background: rgba(250, 249, 245, 0.34);
}

.film-progress::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  appearance: none;
}

.film-progress::-moz-range-track {
  height: 2px;
  background: rgba(250, 249, 245, 0.34);
}

.film-progress::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
}

.info-dialog {
  width: min(600px, calc(100% - 36px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(31, 30, 29, 0.2);
}

.info-dialog::backdrop {
  background: rgba(31, 30, 29, 0.5);
  backdrop-filter: blur(6px);
}

.info-dialog h2 {
  max-width: 480px;
  margin: 0;
  font-size: 38px;
  font-weight: 470;
  line-height: 1.08;
}

.info-dialog > p:not(.dialog-kicker):not(.method-caveat) {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.dialog-close {
  position: absolute;
  top: 17px;
  right: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.dialog-close:hover {
  background: var(--oat);
}

.info-dialog ol {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.info-dialog li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 13px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.info-dialog li > span {
  padding-top: 3px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.info-dialog li p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.info-dialog li strong {
  color: var(--ink);
  font-weight: 640;
}

.method-caveat {
  margin: 4px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.6;
}

.dialog-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 26px;
  border-radius: 5px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 620;
}

.legal-links {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 1320px) {
  .site-stage {
    grid-template-rows: 64px minmax(0, 1fr) 140px;
  }

  .site-nav,
  .hero,
  .fact-rail-inner {
    width: calc(100% - 64px);
  }

  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
    gap: 48px;
  }

  h1 {
    font-size: 64px;
  }

  .hero-lead {
    margin-top: 21px;
    font-size: 16px;
  }

  .hero-actions {
    margin-top: 23px;
  }

  .fact {
    grid-template-columns: 22px 28px minmax(0, 1fr);
    gap: 13px;
    padding: 20px 24px;
  }

  .fact-icon {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 1050px) {
  .nav-support {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
    gap: 34px;
  }

  h1 {
    font-size: 56px;
  }

  .hero-note {
    font-size: 12px;
  }

  .shortcut-prompt {
    display: none;
  }

  .fact small {
    display: none;
  }
}

@media (max-width: 760px), (max-aspect-ratio: 4 / 5) {
  .site-stage {
    grid-template-rows: 58px minmax(0, 1fr) 108px;
  }

  .site-nav,
  .hero,
  .fact-rail-inner {
    width: calc(100% - 32px);
  }

  .brand {
    font-size: 14px;
  }

  .brand-mark {
    width: 25px;
    height: 25px;
  }

  .nav-actions {
    gap: 17px;
  }

  .nav-method,
  .nav-support {
    display: none;
  }

  .nav-text {
    font-size: 10px;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 18px 0 12px;
  }

  .eyebrow {
    margin-bottom: 9px;
    font-size: 8px;
  }

  h1 {
    font-size: 42px;
    line-height: 0.96;
  }

  .hero-lead {
    margin-top: 13px;
    font-size: 13px;
    line-height: 1.45;
  }

  .hero-note {
    margin-top: 8px;
    font-size: 10px;
  }

  .hero-actions {
    gap: 17px;
    margin-top: 15px;
  }

  .watch-button {
    min-height: 42px;
    padding: 0 15px;
    font-size: 11px;
  }

  .launch-link {
    font-size: 10px;
  }

  .release-status {
    margin-top: 11px;
    font-size: 8px;
  }

  .hero-visual {
    grid-template-rows: minmax(0, 1fr) 48px;
  }

  .editorial-illustration img {
    max-height: 230px;
  }

  .shortcut-demo {
    gap: 8px;
  }

  .shortcut-prompt {
    display: block;
    font-size: 8px;
  }

  .shortcut-keys {
    gap: 5px;
  }

  kbd,
  .brightness-controls button {
    width: 28px;
    height: 28px;
  }

  .influence-value {
    font-size: 8px;
  }

  .fact-rail-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fact {
    grid-template-areas:
      "number title"
      "icon title";
    grid-template-columns: 20px minmax(0, 1fr);
    grid-template-rows: 16px 24px;
    align-content: center;
    gap: 3px 8px;
    padding: 10px 10px;
  }

  .fact:first-child {
    padding-left: 0;
  }

  .fact:last-child {
    padding-right: 0;
  }

  .fact-number {
    grid-area: number;
    padding: 0;
    font-size: 7px;
  }

  .fact-icon {
    grid-area: icon;
    width: 19px;
    height: 19px;
  }

  .fact div {
    grid-area: title;
    align-self: center;
  }

  .fact strong {
    font-size: 9px;
    line-height: 1.3;
  }

  .fact small {
    display: none;
  }

  .film-layer video {
    object-position: 69% center;
  }

  .film-topline {
    height: 58px;
    padding: 0 18px;
  }

  .film-caption {
    top: auto;
    right: 0;
    bottom: 84px;
    left: 0;
    max-width: none;
    padding: 21px 18px 23px;
    background: rgba(31, 30, 29, 0.68);
    color: var(--paper);
    backdrop-filter: blur(10px);
  }

  .film-layer[data-copy="dark"] .film-caption {
    color: var(--paper);
  }

  .film-caption p {
    margin-bottom: 8px;
    font-size: 8px;
  }

  .film-caption h2 {
    max-width: 360px;
    font-size: 34px;
  }

  .film-controls {
    right: 18px;
    bottom: 19px;
    left: 18px;
    gap: 9px;
  }

  .film-time {
    display: none;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .info-dialog {
    padding: 34px 24px 27px;
  }

  .info-dialog h2 {
    padding-right: 28px;
    font-size: 31px;
  }
}

@media (max-height: 700px) and (min-width: 761px) {
  .site-stage {
    grid-template-rows: 60px minmax(0, 1fr) 122px;
  }

  .hero {
    padding-top: 18px;
    padding-bottom: 16px;
  }

  h1 {
    font-size: 52px;
  }

  .hero-lead {
    margin-top: 16px;
    font-size: 14px;
  }

  .hero-note {
    margin-top: 8px;
    font-size: 11px;
  }

  .hero-actions {
    margin-top: 17px;
  }

  .release-status {
    margin-top: 11px;
  }

  .hero-visual {
    grid-template-rows: minmax(0, 1fr) 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
