@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-opsz-normal.woff2') format('woff2');
}

:root {
  --bg: #100c08;
  --fg: #f5f0eb;
  --muted: color-mix(in srgb, var(--fg) 66%, transparent);
  --line: color-mix(in srgb, var(--fg) 12%, transparent);
  --glass: color-mix(in srgb, var(--fg) 5%, transparent);
  --accent: #ff6923;
  --accent-soft: color-mix(in srgb, var(--accent) 24%, transparent);
  --stage: #100c08;
  --size: min(84vw, 560px);
  --gutter: clamp(16px, 5vw, 48px);
  --bar: 57px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --fg: #1c1917;
    --glass: color-mix(in srgb, var(--fg) 3%, transparent);
    --accent: #e8590c;
    color-scheme: light;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--bar);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p,
figcaption {
  text-wrap: pretty;
}

[hidden] {
  display: none !important;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--bar);
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 28px;
  height: 28px;
}

.brand-mark circle {
  fill: #000000;
  stroke: var(--accent-soft);
  stroke-width: 60;
}

.brand-mark path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 70;
  stroke-linejoin: round;
}

.bar-nav {
  position: static;
  display: flex;
  gap: 20px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: none;
  color: inherit;
}

.bar-toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  color: var(--fg);
  cursor: pointer;
}

.bar-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.bar-link {
  position: relative;
  padding: 4px 0;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  transition: color 200ms ease;
}

.bar-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-link:hover {
  color: var(--fg);
}

.bar-link[aria-current] {
  color: var(--accent);
}

.bar-link[aria-current]::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  min-height: calc(100svh - var(--bar));
  padding: clamp(32px, 6vw, 72px) var(--gutter);
  max-width: 1280px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 4px 12px;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 750;
}

.accent {
  background: linear-gradient(100deg, #f02a3a, #ff6923 45%, #ffc975);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 34em;
  margin: 22px 0 32px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 19px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--fg) 8%, transparent), color-mix(in srgb, var(--fg) 3%, transparent));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--fg) 10%, transparent), 0 1px 2px rgba(0, 0, 0, 0.25);
  color: inherit;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease), background-color 220ms var(--ease);
}

.button:hover {
  border-color: color-mix(in srgb, var(--fg) 24%, transparent);
  background-color: color-mix(in srgb, var(--fg) 4%, transparent);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0) scale(0.985);
  transition-duration: 80ms;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.button-primary {
  border-color: transparent;
  background: #f15a1f;
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.18);
}

.button-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease);
}

.button-primary:hover {
  border-color: transparent;
  background-color: #f15a1f;
}

.button-primary:hover::after {
  opacity: 1;
}

.button-primary:active {
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.25),
    0 1px 1px rgba(0, 0, 0, 0.3);
}

.button-arrow {
  width: 16px;
  height: 16px;
  margin-right: -4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
  transition: transform 220ms var(--ease);
}

.button:hover .button-arrow {
  transform: translateX(3px);
}

.button:active .button-arrow {
  transform: translateX(1px);
}

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  isolation: isolate;
}

.stage-weave,
.stage-glow {
  position: absolute;
  inset: -40%;
  z-index: -1;
  pointer-events: none;
}

.stage-weave {
  opacity: 0.22;
  background-size: 80px 80px;
  background-position: center;
  background-image:
    repeating-linear-gradient(26.565deg, transparent 0, transparent 17.14px, var(--accent) 17.54px, var(--accent) 18.24px, transparent 18.64px, transparent 35.78px),
    repeating-linear-gradient(63.435deg, transparent 0, transparent 17.14px, var(--accent) 17.54px, var(--accent) 18.24px, transparent 18.64px, transparent 35.78px),
    repeating-linear-gradient(116.565deg, transparent 0, transparent 17.14px, var(--accent) 17.54px, var(--accent) 18.24px, transparent 18.64px, transparent 35.78px),
    repeating-linear-gradient(153.435deg, transparent 0, transparent 17.14px, var(--accent) 17.54px, var(--accent) 18.24px, transparent 18.64px, transparent 35.78px);
  -webkit-mask-image: radial-gradient(circle, #000 calc(var(--size) * 0.4), transparent calc(var(--size) * 0.85));
  mask-image: radial-gradient(circle, #000 calc(var(--size) * 0.4), transparent calc(var(--size) * 0.85));
}

.stage-glow {
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent) 30%, transparent) 0,
    color-mix(in srgb, var(--accent) 10%, transparent) calc(var(--size) * 0.55),
    transparent calc(var(--size) * 0.75)
  );
}

.hero-video {
  display: block;
  width: var(--size);
  height: auto;
  aspect-ratio: 1;
  border-radius: 28px;
  background: var(--stage);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--line);
}

.stage-caption {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-align: center;
}

section {
  padding: clamp(56px, 9vw, 112px) var(--gutter);
  max-width: 1280px;
  margin: 0 auto;
}

h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 720;
}

.section-head {
  max-width: 56em;
  margin-bottom: 36px;
}

.section-head p {
  margin: 12px 0 0;
  color: var(--muted);
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.preset-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--glass);
  transition: transform 200ms ease, border-color 200ms ease;
}

.preset-card:hover,
.preset-card:focus-within {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--fg) 26%, transparent);
}

.preset-card video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  background: var(--stage);
}

.preset-meta {
  display: grid;
  gap: 4px;
  padding: 14px 16px 16px;
}

.preset-meta h3 {
  font-size: 18px;
}

.preset-formula {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.preset-live {
  justify-self: start;
  margin-top: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.preset-live:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}

.play-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 28px;
  background: var(--stage);
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
}

.play-ground,
.play-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.play-lost-note,
.play-unsupported-note {
  display: none;
  color: var(--muted);
}

.play-stage.play-lost .play-lost-note {
  display: grid;
  position: absolute;
  inset: 0;
  place-items: center;
  margin: 0;
  padding: 24px;
  text-align: center;
  background: color-mix(in srgb, var(--stage) 80%, transparent);
}

.play.play-unsupported .play-layout {
  display: none;
}

.play.play-unsupported .play-unsupported-note {
  display: block;
}

.play-panel {
  display: grid;
  gap: 18px;
}

.play-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.play-presets button {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.play-presets button[aria-pressed='true'] {
  border-color: transparent;
  background: linear-gradient(100deg, #f02a3a, #ff6923);
  color: #ffffff;
}

.play-formula {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.play-seeds {
  display: block;
  margin-top: -10px;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.play-control {
  display: grid;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}

.play-control output {
  color: var(--muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.play-control input {
  width: 100%;
  accent-color: var(--accent);
}

.play-toggle {
  justify-self: start;
}

.play-hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.shot {
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

.shot figcaption strong {
  color: var(--fg);
  font-weight: 650;
}

.shot-window,
.shot-tile {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0b0d14;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.shot-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #151821;
}

.shot-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.shot-row {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(28px, 4vw, 48px);
}

.shot-device {
  overflow: hidden;
  border: 9px solid #08090c;
  border-radius: 42px;
  background: #08090c;
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, 0.45);
}

.shot-device img {
  border-radius: 33px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.features h2 {
  max-width: 16em;
  margin-bottom: 40px;
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 8%, transparent), var(--glass) 55%);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--glass);
}

.member-photo {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: linear-gradient(140deg, #f02a3a, #ff6923 55%, #ffc975);
  box-shadow: 0 0 0 1px var(--line), 0 0 0 6px color-mix(in srgb, var(--accent) 12%, transparent);
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.member h3 {
  font-size: 20px;
}

.member-role {
  margin: 6px 0 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.member p:last-child {
  margin-block: 0;
  color: var(--muted);
  font-size: 16px;
}

.contact {
  align-items: center;
  text-align: center;
  border-top: 1px solid var(--line);
}

.contact p {
  max-width: 34em;
  margin: 16px auto 28px;
  color: var(--muted);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}


@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .hero-stage {
    order: -1;
  }

  .preset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .play-layout,
  .feature-grid,
  .shot-row,
  .team-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .shot-phone {
    width: min(100%, 300px);
    margin: 0 auto;
  }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--glass);
  color: var(--muted);
  translate: -50% 0;
  transition: color 200ms ease, border-color 200ms ease;
}

.scroll-cue:hover {
  color: var(--fg);
  border-color: color-mix(in srgb, var(--fg) 30%, transparent);
}

.scroll-cue svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 24px;
  }
}

@keyframes bob {
  50% {
    transform: translateY(4px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .hero-stage {
    animation: rise 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 80ms;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 160ms;
  }

  .hero-copy > :nth-child(4) {
    animation-delay: 240ms;
  }

  .hero-stage {
    animation-duration: 1200ms;
    animation-delay: 120ms;
  }

  .scroll-cue {
    animation: rise 900ms 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .scroll-cue svg {
    animation: bob 2.4s 1.6s ease-in-out infinite;
  }

  .motion :is(.section-head, .features > h2, .preset-card, .shot, .card, .member, .play-layout, .contact > *) {
    --delay: 0ms;
    --out: cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    translate: 0 64px;
    scale: 0.96;
    transition-property: opacity, translate, scale, transform, border-color;
    transition-duration: 600ms, 1100ms, 1100ms, 200ms, 200ms;
    transition-timing-function: ease, var(--out), var(--out), ease, ease;
    transition-delay: var(--delay), var(--delay), var(--delay), 0s, 0s;
  }

  .motion .entered :is(.section-head, .preset-card, .shot, .card, .member, .play-layout),
  .motion .entered.features > h2,
  .motion .entered.contact > * {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }

  .motion :is(.preset-grid, .feature-grid, .team-grid, .shot-row) > :nth-child(1),
  .motion .shot-editor,
  .motion .play-layout,
  .motion .contact > :nth-child(2) {
    --delay: 120ms;
  }

  .motion :is(.preset-grid, .feature-grid, .team-grid, .shot-row) > :nth-child(2),
  .motion .contact > :nth-child(3) {
    --delay: 210ms;
  }

  .motion :is(.preset-grid, .feature-grid, .team-grid) > :nth-child(3) {
    --delay: 300ms;
  }

  .motion .preset-grid > :nth-child(4) {
    --delay: 390ms;
  }

  .motion .preset-grid > :nth-child(5) {
    --delay: 480ms;
  }
}

@media (min-width: 861px) and (min-height: 640px) {
  html {
    scroll-snap-type: y mandatory;
    scroll-padding-top: var(--bar);
  }

  html.paging {
    scroll-snap-type: none;
  }

  main > section {
    min-height: calc(100svh - var(--bar));
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  main > section:not(.hero) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(32px, 5vh, 64px);
  }

  .foot {
    scroll-snap-align: end;
  }

  .app .section-head,
  .perform .section-head {
    margin-inline: auto;
    text-align: center;
  }

  .shot-editor {
    width: min(100%, calc((100svh - var(--bar) - 330px) * 1.6));
    margin-inline: auto;
  }

  .perform .shot-row {
    width: min(100%, calc((100svh - var(--bar) - 300px) * 1.5));
    margin: 0 auto;
  }

  .play-layout {
    align-items: center;
  }

  .play-stage {
    width: min(100%, calc(100svh - var(--bar) - 250px));
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .preset-card,
  .button,
  .button-primary::after,
  .button-arrow,
  .bar-link,
  .bar-link::after {
    transition: none;
  }
}

@media (max-width: 860px) {
  .scroll-cue {
    display: none;
  }

  .play-layout {
    gap: 14px;
  }

  .play-panel {
    display: contents;
  }

  .play-presets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    order: -1;
  }

  .play-presets button {
    padding: 9px 4px;
  }

  .play-formula {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .brand {
    white-space: nowrap;
  }

  .actions {
    display: grid;
  }

  .actions .button {
    width: 100%;
  }

  @supports selector(:popover-open) {
    .bar-toggle {
      display: grid;
    }

    .bar-nav:not(:popover-open) {
      display: none;
    }

    .bar-nav:popover-open {
      position: fixed;
      inset: calc(var(--bar) + 8px) var(--gutter) auto auto;
      flex-direction: column;
      gap: 2px;
      min-width: 200px;
      padding: 8px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: color-mix(in srgb, var(--bg) 94%, #ffffff);
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.45);
    }

    .bar-nav:popover-open .bar-link {
      padding: 10px 12px;
      border-radius: 10px;
      font-size: 16px;
    }

    .bar-nav:popover-open .bar-link::after {
      display: none;
    }

    .bar-nav:popover-open .bar-link[aria-current] {
      background: var(--accent-soft);
    }
  }
}
