@font-face {
  font-family: "FabXR CJK";
  src:
    local("Noto Sans SC"),
    local("NotoSansSC"),
    url("./assets/fonts/NotoSansCJKsc-Regular.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 300 800;
}

:root {
  --bg: #f5f5f7;
  --bg-soft: #ffffff;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --ink: #111114;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.11);
  --header-bg: rgba(245, 245, 247, 0.72);
  --header-ink: rgba(17, 17, 20, 0.84);
  --accent: #0066cc;
  --accent-focus: #0071e3;
  --shadow: 0 14px 38px rgba(0, 0, 0, 0.09);
  --experience-scrim: rgba(0, 0, 0, 0.64);
  --experience-action: #0066cc;
  --experience-action-hover: #0071e3;
  --radius: 8px;
  --header-h: 44px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: 180ms;
  --dur-2: 420ms;
  --dur-3: 900ms;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "PingFang SC", "Hiragino Sans GB", "FabXR CJK", "Noto Sans SC", "Segoe UI",
    "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "FabXR CJK", "Noto Sans SC", "Segoe UI", "Microsoft YaHei UI", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}

a {
  color: inherit;
  text-decoration: none;
}

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

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

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

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 200;
  transform: translateY(-150%);
  border-radius: var(--radius);
  background: var(--surface-solid);
  color: var(--ink);
  padding: 10px 14px;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding: 0 clamp(16px, 3vw, 48px);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  color: var(--header-ink);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  border-radius: 10px;
}

.brand img {
  display: block;
  width: 30px;
  height: 30px;
  box-shadow: 0 5px 16px rgba(0, 91, 255, 0.2);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.6vw, 32px);
  min-height: var(--header-h);
  font-size: 12px;
  font-weight: 500;
  color: color-mix(in srgb, var(--header-ink) 72%, transparent);
}

.site-nav a {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  min-height: var(--header-h);
  transition: color var(--dur-1) var(--ease-out);
}

.site-nav a::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12px -11px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  opacity: 0;
  transform: scale(0.72);
}

.brand::after,
.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  transform: translateX(-50%) scaleX(0.35);
  transition:
    opacity var(--dur-1) var(--ease-out),
    transform var(--dur-1) var(--ease-out);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--header-ink);
}

.brand.is-active::after,
.site-nav a.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.site-nav a.is-clicked {
  animation: nav-label-click 420ms var(--ease-out);
}

.site-nav a.is-clicked::before {
  animation: nav-surface-click 420ms var(--ease-out);
}

.brand.is-clicked img {
  animation: brand-click 420ms var(--ease-out);
}

.section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(34px, 5vw, 76px)) clamp(18px, 4vw, 72px)
    clamp(42px, 6vw, 92px);
}

.observe .reveal-child,
.observe > .section-heading,
.observe > figure {
  opacity: 0.001;
  transform: translateY(34px) scale(0.985);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}

.observe.is-visible .reveal-child,
.observe.is-visible > .section-heading,
.observe.is-visible > figure {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.observe.is-visible .reveal-child:nth-child(2) {
  transition-delay: 90ms;
}

.observe.is-visible .reveal-child:nth-child(3) {
  transition-delay: 160ms;
}

.section-heading {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 1260px;
  margin: 0 auto clamp(22px, 4vw, 46px);
  text-align: center;
}

.section-icon {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
}

.section-icon svg {
  width: 21px;
  height: 21px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 650;
  line-height: 1.2;
  order: 1;
}

.section-heading h2,
.story-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.45vw, 62px);
  line-height: 1.06;
  font-weight: 650;
  text-wrap: balance;
  order: 2;
}

.section-heading.on-dark {
  color: #f5f5f7;
}

.section-heading.on-dark .section-icon {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.hero-section {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: var(--header-h) 0 0;
  background: #020303;
  color: #ffffff;
}

.hero-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  background:
    #020303
    url("./assets/img/fabxr-hero-composite-poster.webp?v=20260725-hero-fullhd-v3")
    center / cover no-repeat;
}

.hero-composite-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: contrast(1.04) saturate(1.03) brightness(1.02);
  transition: opacity 600ms var(--ease-out);
}

.hero-tile {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: transparent;
}

.hero-section.is-ready .hero-composite-video {
  opacity: 1;
}

.hero-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.54) 0%, rgba(0, 0, 0, 0.26) 28%, rgba(0, 0, 0, 0.06) 52%, transparent 78%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), transparent 32%, rgba(0, 0, 0, 0.1));
}

.hero-content {
  position: absolute;
  left: clamp(28px, 5vw, 70px);
  top: clamp(72px, 9vh, 106px);
  z-index: 4;
  width: min(980px, calc(100% - 48px));
}

.hero-content h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(76px, 9.2vw, 132px);
  line-height: 0.96;
  font-weight: 560;
  text-shadow: 0 8px 38px rgba(0, 0, 0, 0.74);
}

.hero-content p {
  margin: 22px 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(22px, 2.8vw, 40px);
  line-height: 1.16;
  font-weight: 600;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.62);
}

.hero-content p span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(15px, 1.65vw, 22px);
  font-weight: 500;
}

.keyboard-controls {
  position: absolute;
  left: clamp(18px, 3.1vw, 56px);
  bottom: clamp(18px, 3.2vh, 42px);
  z-index: 3;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  opacity: 0.5;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.58));
  pointer-events: none;
}

.controls--wasd {
  display: grid;
  grid-template-columns: repeat(3, 36px);
  grid-template-rows: repeat(2, 36px);
  gap: 6px;
}

.controls--wasd .key:nth-child(1) {
  grid-column: 2;
}

.controls--wasd .key:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.controls--wasd .key:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.controls--wasd .key:nth-child(4) {
  grid-column: 3;
  grid-row: 2;
}

.key,
.arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 247, 241, 0.66);
  font-weight: 760;
}

.key {
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: rgba(12, 16, 16, 0.42);
  border-radius: 7px;
  font-size: 18px;
}

.controls--dpad {
  --nub-x: 0px;
  --nub-y: 0px;
  position: relative;
  width: 112px;
  height: 112px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(12, 16, 16, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.controls--dpad::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.dpad-axis {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  background: rgba(245, 247, 241, 0.18);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.dpad-axis--x {
  width: 64px;
  height: 2px;
}

.dpad-axis--y {
  width: 2px;
  height: 64px;
}

.dpad-rim {
  position: absolute;
  z-index: 1;
  inset: -3px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.42));
}

.dpad-rim--left {
  border-left: 5px solid rgba(255, 255, 255, 0.92);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.dpad-rim--right {
  border-right: 5px solid rgba(255, 255, 255, 0.92);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.dpad-rim.is-active {
  opacity: 1;
}

.dpad-nub {
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translate(var(--nub-x), var(--nub-y));
  border: 5px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background: rgba(8, 10, 10, 0.34);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.22);
  will-change: transform;
}

.arrow {
  position: absolute;
  z-index: 1;
  width: 0;
  height: 0;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.45));
}

.arrow.up,
.arrow.down {
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
}

.arrow.left,
.arrow.right {
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.arrow.left {
  left: 16px;
  top: 50%;
  transform: translate(-50%, -50%);
  border-right: 12px solid rgba(245, 247, 241, 0.42);
}

.arrow.right {
  left: 96px;
  top: 50%;
  transform: translate(-50%, -50%);
  border-left: 12px solid rgba(245, 247, 241, 0.42);
}

.arrow.up {
  left: 50%;
  top: 16px;
  transform: translate(-50%, -50%);
  border-bottom: 12px solid rgba(245, 247, 241, 0.42);
}

.arrow.down {
  left: 50%;
  top: 96px;
  transform: translate(-50%, -50%);
  border-top: 12px solid rgba(245, 247, 241, 0.42);
}

.key--forward.is-active {
  background: rgba(245, 247, 241, 0.36);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.arrow.is-active {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.54)) drop-shadow(0 0 18px rgba(0, 113, 227, 0.36));
}

.arrow.left.is-active {
  border-right-color: rgba(255, 255, 255, 0.94);
}

.arrow.right.is-active {
  border-left-color: rgba(255, 255, 255, 0.94);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  width: 28px;
  height: 44px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 4px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  animation: cue 1.8s var(--ease-out) infinite;
}

.slide-section {
  display: grid;
  align-content: center;
}

.slide-frame {
  position: relative;
  z-index: 1;
  width: min(1280px, 100%);
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.motivation-frame,
.architecture-frame {
  isolation: isolate;
}

.slide-frame img {
  width: 100%;
  height: auto;
}

.motivation-frame {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 18px 48px rgba(0, 0, 0, 0.1);
}

.architecture-section {
  background: #050609;
  color: #f5f5f7;
}

.architecture-section .eyebrow {
  color: #2997ff;
}

.architecture-frame {
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.architecture-frame::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, #050609 0%, rgba(5, 6, 9, 0) 8%, rgba(5, 6, 9, 0) 92%, #050609 100%),
    linear-gradient(180deg, #050609 0%, rgba(5, 6, 9, 0) 7%, rgba(5, 6, 9, 0) 91%, #050609 100%);
}

.architecture-frame img {
  position: relative;
  z-index: 1;
  display: block;
  max-height: min(64vh, 660px);
  object-fit: contain;
}

.environment-section {
  min-height: 100vh;
  padding-top: calc(var(--header-h) + clamp(24px, 3.8vw, 54px));
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 52%, var(--bg) 100%);
}

.environment-section .section-heading {
  margin-bottom: clamp(18px, 2.8vw, 34px);
}

.environment-section .section-heading h2 {
  font-size: clamp(32px, 4vw, 56px);
}

.environment-stage {
  position: relative;
  width: min(1340px, 100%);
  margin: 0 auto;
  min-height: 0;
}

.clip-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}

.clip-tile {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-solid);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}

.clip-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

.clip-tile video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111114;
}

.manufacturing-chapters {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  margin-top: clamp(20px, 2.6vw, 34px);
}

.chapter-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-solid);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.13);
}

.chapter-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111114;
}

.chapter-body {
  min-height: 132px;
  padding: clamp(14px, 1.5vw, 20px);
}

.chapter-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.chapter-body h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 720;
  line-height: 1.18;
}

.chapter-body p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(13px, 1.15vw, 15px);
  line-height: 1.58;
}

.clip-caption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 10px 12px 11px;
}

.mini-icon {
  position: relative;
  display: block;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  line-height: 0;
}

.mini-icon svg,
.capability-grid svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  max-width: none;
  transform: translate(-50%, -50%);
  overflow: visible;
}

.clip-caption strong,
.clip-caption span {
  display: block;
}

.clip-caption strong {
  color: var(--ink);
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 650;
  line-height: 1.24;
}

.clip-caption div > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.capability-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
  margin-top: clamp(18px, 2vw, 26px);
}

.placeholder-tile {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-solid);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.placeholder-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 45%),
    color-mix(in srgb, var(--surface-solid) 92%, var(--ink) 8%);
}

.placeholder-visual::after {
  content: "Reserved";
  position: absolute;
  right: 12px;
  top: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0;
  opacity: 0.72;
}

.placeholder-visual img {
  width: min(46%, 180px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  opacity: 0.34;
  filter: grayscale(1) contrast(1.1);
  transform: translateY(10px);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}

.is-visible .placeholder-visual img {
  opacity: 0.46;
  transform: translateY(0);
}

.device-cloud {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(10, minmax(74px, 1fr));
  gap: 10px;
  margin-top: clamp(16px, 2vw, 24px);
  pointer-events: none;
}

.device-cloud img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 8px;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.18));
  opacity: 0;
  transform: translateY(28px) scale(0.92);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}

.is-visible .device-cloud img {
  opacity: 0.24;
  transform: translateY(0) scale(1);
}

.device-cloud img:nth-child(2) { transition-delay: 90ms; }
.device-cloud img:nth-child(3) { transition-delay: 180ms; }
.device-cloud img:nth-child(4) { transition-delay: 270ms; }
.device-cloud img:nth-child(5) { transition-delay: 360ms; }
.device-cloud img:nth-child(6) { transition-delay: 450ms; }
.device-cloud img:nth-child(7) { transition-delay: 540ms; }
.device-cloud img:nth-child(8) { transition-delay: 630ms; }
.device-cloud img:nth-child(9) { transition-delay: 720ms; }
.device-cloud img:nth-child(10) { transition-delay: 810ms; }

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
  min-height: 100svh;
  background: var(--story-bg);
  color: var(--story-ink);
  transition:
    background var(--dur-2) var(--ease-out),
    color var(--dur-2) var(--ease-out);
}

#explore,
#operate {
  padding-inline: max(clamp(18px, 4vw, 72px), calc((100vw - 1800px) / 2));
}

#explore .story-copy,
#operate .story-copy {
  width: 100%;
  max-width: none;
}

#operate .story-copy {
  align-items: flex-end;
  text-align: right;
}

.story-section--primary {
  --story-bg: #ffffff;
  --story-ink: #1d1d1f;
  --story-accent: #0066cc;
}

.story-section--secondary {
  --story-bg: #000000;
  --story-ink: #f5f5f7;
  --story-accent: #2997ff;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 0.38fr);
}

.story-section--secondary .story-video-frame {
  order: -1;
}

.story-section--secondary .story-copy {
  justify-self: start;
}

.story-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 560px;
  justify-self: end;
}

.story-copy .eyebrow {
  color: var(--story-accent);
  font-size: 15px;
}

.story-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 650;
  line-height: 1.12;
  text-wrap: balance;
}

.story-video-frame {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1080px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  transition:
    transform var(--dur-3) var(--ease-out),
    opacity var(--dur-3) var(--ease-out);
}

.story-video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: inherit;
  pointer-events: none;
  user-select: none;
}

.video-loading-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 8px 13px 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 13, 19, 0.7);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.26);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -44%) scale(0.96);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  transition:
    opacity var(--dur-1) var(--ease-out),
    transform var(--dur-1) var(--ease-out),
    visibility 0s linear var(--dur-1);
}

.is-video-loading > .video-loading-indicator {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0s;
}

.video-loading-spinner {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: #78d6ff;
  border-right-color: rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  animation: video-loading-spin 820ms linear infinite;
}

.video-loading-label {
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-grid .video-loading-indicator {
  z-index: 3;
}

.experience-video-wall .video-loading-indicator {
  top: auto;
  bottom: clamp(54px, 8vh, 86px);
  transform: translate(-50%, 8px) scale(0.96);
}

.experience-video-wall.is-video-loading > .video-loading-indicator {
  transform: translate(-50%, 0) scale(1);
}

@keyframes video-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.video-progress {
  --video-progress: 0%;
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(9, 13, 18, 0.64);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  transition:
    opacity var(--dur-1) var(--ease-out),
    transform var(--dur-1) var(--ease-out);
}

.story-video-frame:hover .video-progress,
.story-video-frame:has(.video-progress input:focus-visible) .video-progress,
.video-progress.is-scrubbing {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.video-progress input {
  width: 100%;
  height: 20px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.video-progress input:focus-visible {
  outline: 2px solid rgba(104, 207, 255, 0.96);
  outline-offset: 4px;
  border-radius: 999px;
}

.video-progress input::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      var(--story-accent, #2997ff) 0 var(--video-progress),
      rgba(255, 255, 255, 0.34) var(--video-progress) 100%
    );
}

.video-progress input::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid rgba(255, 255, 255, 0.98);
  border-radius: 50%;
  background: var(--story-accent, #2997ff);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.34);
}

.video-progress input::-moz-range-track {
  height: 3px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.video-progress input::-moz-range-progress {
  height: 3px;
  border-radius: 999px;
  background: var(--story-accent, #2997ff);
}

.video-progress input::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 2px solid rgba(255, 255, 255, 0.98);
  border-radius: 50%;
  background: var(--story-accent, #2997ff);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.34);
}

.story-section--collaboration {
  grid-template-columns: 1fr;
  align-content: center;
  gap: clamp(28px, 3vw, 40px);
  padding-inline: 16px;
}

.story-section--collaboration .story-copy {
  align-items: center;
  max-width: 1080px;
  justify-self: center;
  text-align: center;
}

.title-term {
  white-space: nowrap;
}

.collaboration-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(2000px, 100%);
  margin: 0 auto;
}

.collaboration-video-grid .story-video-frame {
  width: 100%;
  max-width: 100%;
}

.experience-section {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 0;
  background: #020303;
  color: #ffffff;
  isolation: isolate;
  transition: background var(--dur-2) var(--ease-out);
}

.experience-video-wall {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #020303;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.001;
  transform: scale(1.025);
  transition:
    opacity 1100ms var(--ease-out),
    transform 1400ms var(--ease-out);
}

.experience-section.is-visible .experience-video-wall {
  opacity: 1;
  transform: scale(1);
}

.experience-video-wall video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.72) contrast(1.04) brightness(0.72);
  transform: scale(1.015);
  transition: opacity 700ms var(--ease-out);
}

.experience-video-wall.is-media-ready video {
  opacity: 1;
}

.experience-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--experience-scrim);
  pointer-events: none;
  transition: background var(--dur-2) var(--ease-out);
}

.experience-content {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
}

.experience-content::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 116px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 9999px;
  opacity: 0.72;
  pointer-events: none;
  animation: experience-focus 3.2s ease-in-out infinite;
}

.experience-cta {
  --click-x: 50%;
  --click-y: 50%;
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 220px;
  min-height: 64px;
  padding: 18px 36px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  background: var(--experience-action);
  color: #ffffff;
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.08),
    0 16px 42px rgba(0, 0, 0, 0.34);
  font-size: 24px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition:
    color var(--dur-1) var(--ease-out),
    background var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out),
    transform var(--dur-1) var(--ease-out),
    box-shadow var(--dur-1) var(--ease-out);
}

.experience-cta::before {
  content: "";
  position: absolute;
  left: var(--click-x);
  top: var(--click-y);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
}

.experience-cta::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
}

.experience-cta:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: var(--experience-action-hover);
  color: #ffffff;
  transform: translateY(-2px) scale(1.015);
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.12),
    0 20px 48px rgba(0, 0, 0, 0.4);
}

.experience-cta:active {
  transform: scale(0.95);
}

.experience-cta.is-launching::before {
  animation: experience-fill 520ms var(--ease-out);
}

.experience-cta.is-launching::after {
  animation: experience-ring 520ms var(--ease-out);
}

.site-footer {
  display: flex;
  justify-content: center;
  padding: 0 clamp(18px, 4vw, 72px);
  border-top: 1px solid #e0e0e0;
  background: #ffffff;
  color: #6e6e73;
  font-size: 13px;
}

.footer-inner {
  width: min(1200px, 100%);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 52px;
  line-height: 1.5;
}

.footer-row + .footer-row {
  border-top: 1px solid #e0e0e0;
}

.footer-label {
  color: #1d1d1f;
  font-weight: 650;
}

.footer-contact a {
  color: #1d1d1f;
  font-weight: 520;
}

.footer-record {
  color: #6e6e73;
  font-size: 12px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  display: block;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.footer-filings {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-filing-divider {
  width: 1px;
  height: 14px;
  background: #d2d2d7;
}

.footer-public-security {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-public-security img {
  display: block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.site-footer a {
  transition: color var(--dur-1) var(--ease-out);
}

.site-footer a:hover {
  color: #68cfff;
}

@keyframes experience-fill {
  0% { opacity: 0.44; transform: translate(-50%, -50%) scale(0); }
  70% { opacity: 0.14; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.35); }
}

@keyframes nav-label-click {
  0%, 100% { transform: translateY(0); }
  42% { transform: translateY(1px) scale(0.97); }
}

@keyframes nav-surface-click {
  0% { opacity: 0; transform: scale(0.72); }
  38% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.08); }
}

@keyframes brand-click {
  0%, 100% { transform: scale(1); }
  42% {
    transform: scale(0.9);
    filter: brightness(1.16);
  }
}

@keyframes experience-ring {
  0% { opacity: 0.72; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.18); }
}

@keyframes experience-focus {
  0%, 100% { opacity: 0.36; transform: scale(0.94); }
  50% { opacity: 0.72; transform: scale(1); }
}

@keyframes cue {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  28% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 14px);
  }
}

@media (max-width: 1000px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    padding-right: 0;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 20px;
    min-width: 0;
    overflow-x: auto;
    padding: 0 18px;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 24px;
    mask-image: linear-gradient(
      90deg,
      transparent 0 22px,
      #000 34px,
      #000 calc(100% - 34px),
      transparent calc(100% - 22px) 100%
    );
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0 22px,
      #000 34px,
      #000 calc(100% - 34px),
      transparent calc(100% - 22px) 100%
    );
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .hero-content h1 {
    font-size: clamp(62px, 18vw, 98px);
  }

  .hero-content p {
    font-size: clamp(22px, 7vw, 36px);
  }

  .keyboard-controls {
    transform: scale(0.62);
    transform-origin: left bottom;
    gap: 20px;
  }

  .story-section {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
  }

  .story-copy {
    max-width: 760px;
    justify-self: start;
  }

  .story-section--secondary .story-video-frame {
    order: 0;
  }

  .story-section--collaboration .story-copy {
    justify-self: center;
  }

  #operate .story-copy {
    align-items: flex-start;
    text-align: left;
  }

  .story-copy h2 {
    font-size: 44px;
  }
}

@media (max-width: 560px) {
  .section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section-heading,
  .story-copy {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    background-image: url("./assets/img/fabxr-hero-composite-mobile-poster.webp?v=20260725-hero-fullhd-v3");
  }

  .hero-content {
    left: 24px;
    width: calc(100% - 48px);
  }

  .hero-content p {
    margin-top: 16px;
  }

  .story-section {
    min-height: 100svh;
    padding-top: calc(var(--header-h) + 32px);
    padding-bottom: 36px;
  }

  .section-heading h2 {
    font-size: clamp(32px, 11vw, 48px);
  }

  .story-copy h2 {
    font-size: 34px;
    line-height: 1.16;
  }

  .collaboration-video-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .video-progress {
    right: 8px;
    bottom: 8px;
    left: 8px;
  }

  .experience-section {
    padding: 0;
  }

  .experience-cta {
    min-width: 184px;
    min-height: 62px;
    font-size: 22px;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-height: 68px;
  }

  .footer-filings {
    justify-content: flex-start;
    gap: 8px;
  }

  .footer-filing-divider {
    display: none;
  }

  .slide-frame {
    border-radius: 0;
  }

  .clip-caption {
    min-height: 68px;
  }

  .hero-tile:first-child .keyboard-controls {
    opacity: 0.16;
  }
}

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

  .video-loading-spinner {
    animation: none !important;
  }
}
