/* KINETIC — cinematic vision studio */

:root {
  --void: #08090A;
  --surface: #0E1012;
  --ink: #F3F4F6;
  --ink-dim: #9CA3AF;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #CCFF00;
  --accent-ink: #08090A;
  --font-display: "Syne", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --nav-h: 4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.back-link {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 60;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  background: rgba(8, 9, 10, 0.75);
  backdrop-filter: blur(8px);
}

.back-link:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* —— Nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 10, 0.72);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-mark {
  width: 0.85rem;
  height: 0.85rem;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: inset 0 0 0 3px var(--void);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
}

.nav-links {
  display: none;
  gap: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 420px) {
  .nav-actions .btn-primary {
    display: none;
  }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
}

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 39;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1.5rem;
  background: rgba(8, 9, 10, 0.96);
  border-bottom: 1px solid var(--line);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.mobile-menu .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: #fff;
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-dark {
  background: var(--void);
  color: var(--accent);
}

.btn-dark:hover {
  background: #111;
}

/* —— Type helpers —— */
.meta-label {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.meta-label.accent {
  color: var(--accent);
}

.meta-label.dark {
  color: rgba(8, 9, 10, 0.55);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-lede {
  margin: 0.85rem 0 0;
  max-width: 32rem;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: flex-end;
  padding: clamp(2rem, 6vh, 4rem) 1.5rem clamp(3.5rem, 8vh, 5rem);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video,
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-media.is-video-ready .hero-fallback {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}

.kenburns {
  animation: kenburns 22s var(--ease) infinite alternate;
}

.hero-media.is-video-ready .kenburns {
  animation: none;
}

@keyframes kenburns {
  from {
    transform: scale(1.05) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.14) translate3d(-1.5%, 1%, 0);
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 9, 10, 0.35) 0%, rgba(8, 9, 10, 0.15) 35%, rgba(8, 9, 10, 0.88) 100%),
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 60%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.brand-lockup {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 12vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.8vw, 1.85rem);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero-lede {
  margin: 0.9rem 0 0;
  max-width: 28rem;
  color: var(--ink-dim);
  font-size: 0.95rem;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero-scroll {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  writing-mode: vertical-rl;
}

/* —— Reel —— */
.reel {
  position: relative;
  height: 300vh;
}

.reel-sticky {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
}

.reel-media {
  position: absolute;
  inset: 0;
}

.reel-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(6px);
  transform: scale(1.03);
  transition: opacity 0.45s var(--ease), filter 0.45s var(--ease), transform 0.55s var(--ease);
}

.reel-frame.is-active {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.reel-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 9, 10, 0.82) 0%, rgba(8, 9, 10, 0.35) 55%, rgba(8, 9, 10, 0.55) 100%);
}

.reel-copy {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  padding: clamp(2rem, 8vh, 5rem) 1.5rem;
}

.reel-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.reel-body {
  margin: 0.9rem 0 0;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

.reel-progress {
  position: absolute;
  left: 1.5rem;
  bottom: 1.75rem;
  z-index: 1;
  display: flex;
  gap: 0.45rem;
}

.reel-dot {
  width: 1.75rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.25s ease, width 0.25s ease;
}

.reel-dot.is-active {
  width: 2.5rem;
  background: var(--accent);
}

.reel-spacer {
  display: none;
}

/* —— Play / modes —— */
.play {
  padding: clamp(4rem, 10vh, 7rem) 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

.play-intro {
  margin-bottom: 2rem;
}

.mode-bar {
  position: relative;
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 1.5rem;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mode-btn {
  position: relative;
  z-index: 1;
  padding: 0.65rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border-radius: 999px;
  transition: color 0.2s ease;
}

.mode-btn.is-active {
  color: var(--ink);
}

.mode-btn:hover {
  color: var(--ink);
}

.mode-pill {
  position: absolute;
  top: 0.3rem;
  left: 0;
  height: calc(100% - 0.6rem);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-strong);
  transition: transform 0.35s var(--ease), width 0.35s var(--ease);
  pointer-events: none;
}

.preview-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(5px);
  transition: opacity 0.22s ease, filter 0.22s ease;
}

.preview-img.is-active {
  opacity: 1;
  filter: blur(0);
}

.preview-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 9, 10, 0.55) 100%);
  pointer-events: none;
}

.play-btn {
  pointer-events: auto;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  color: #fff;
  transition: border-color 0.2s ease, transform 0.15s var(--ease), background 0.2s ease;
}

.play-btn:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

.play-btn.is-playing {
  border-color: var(--accent);
  background: rgba(204, 255, 0, 0.12);
}

.play-btn:active {
  transform: scale(0.96);
}

.preview-status {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.timeline {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.tc {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.timeline-track {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.timeline-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.05s linear;
}

.timeline-fill.is-complete {
  background: #fff;
}

/* —— Specs —— */
.specs {
  padding: clamp(3rem, 8vh, 5.5rem) 1.5rem clamp(4rem, 10vh, 6rem);
  max-width: 72rem;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.specs-head {
  margin-bottom: 2.5rem;
}

.specs-row {
  display: grid;
  gap: 1.75rem 2rem;
}

@media (min-width: 768px) {
  .specs-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.spec {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.spec-id {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.spec h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.spec p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.88rem;
}

/* —— CTA —— */
.cta {
  padding: clamp(3.5rem, 9vh, 6rem) 1.5rem;
  background: var(--accent);
  color: var(--accent-ink);
}

.cta-inner {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.cta-lede {
  margin: 1rem auto 1.75rem;
  max-width: 28rem;
  color: rgba(8, 9, 10, 0.7);
  font-size: 0.95rem;
}

/* —— Footer —— */
.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem;
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a:hover {
  color: var(--ink);
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .kenburns {
    animation: none;
  }

  .hero-video {
    display: none;
  }

  .hero-media.is-video-ready .hero-fallback {
    opacity: 1;
  }

  .reel-frame,
  .preview-img,
  .mode-pill,
  .btn,
  .play-btn {
    transition: none;
  }
}
