:root {
  --bg: #0e0e10;
  --bg-raised: #141417;
  --line: #1d1d20;
  --text: #f1f1f2;
  --muted: #b4b4ba;
  --accent: #d9822b;
  --accent-text: #e8a24f;
  --radius: 8px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.01em; }

/* Release links wait for the first public release. */
body[data-download="soon"] [data-release-link] { display: none; }

/* The reel's word box */
.word {
  display: inline-block;
  background: var(--accent);
  color: #111;
  font-weight: 800;
  padding: 0.12em 0.4em 0.16em;
  border-radius: 6px;
  letter-spacing: -0.015em;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.7em 1.3em;
  border-radius: 999px;
  font-weight: 650;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.button:hover { transform: translateY(-1px); }
.button.accent { background: var(--accent); color: #111; }
.button.accent:hover { background: #e8913f; }
.button.light { background: #fff; color: #111; }
.button.ghost { color: var(--text); border: 1px solid rgba(255, 255, 255, 0.35); }
.button.ghost:hover { border-color: #fff; }
.button.big { font-size: 17px; padding: 0.8em 1.6em; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px var(--gutter);
  background: rgba(14, 14, 16, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav .download { padding: 0.45em 1em; font-size: 14px; }

/* Hero */
.hero {
  position: relative;
  min-height: min(85vh, 860px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #000;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0.55;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.25) 40%, rgba(14, 14, 16, 0.95) 92%, var(--bg));
}
.hero-content {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px var(--gutter) 56px;
}
.hero-words { display: flex; flex-wrap: wrap; gap: 10px; font-size: clamp(30px, 6vw, 64px); }
.hero-words .word { border-radius: 8px; }
.hero-sentence { max-width: 36em; margin: 22px 0 26px; font-size: clamp(17px, 2vw, 20px); color: #e6e6e8; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.meta { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

/* Tagline animation, only when site.js says motion is fine */
.hero-words.animate .word { animation: word-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-words.animate .word:nth-child(2) { animation-delay: 0.25s; }
.hero-words.animate .word:nth-child(3) { animation-delay: 0.5s; }
.hero-words.animate .word:nth-child(4) { animation-delay: 0.75s; }
@keyframes word-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Feature sections */
.feature {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--gutter);
  border-top: 1px solid var(--line);
}
.feature.flip { grid-template-columns: 1.15fr 1fr; }
.feature.flip .section-text { order: 2; }
.section-text h2.word { font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 18px; }
.section-text h3 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.section-text p { color: var(--muted); margin: 0 0 18px; }
.points { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.points li { padding: 9px 0; border-top: 1px solid #232327; }
.points b { color: var(--accent-text); font-weight: 600; }

.clips { display: grid; gap: 10px; }
.clip-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.clip-frame {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.clip { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.clip-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: var(--accent);
  color: #111;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

/* And plenty more */
.more, .videos {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) var(--gutter);
  border-top: 1px solid var(--line);
}
.more h2, .videos h2 { font-size: clamp(24px, 3vw, 32px); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; }
.chips li {
  font-size: 14px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--bg-raised);
  border: 1px solid #2a2a2f;
}

/* Videos */
.videos-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.video-card { display: block; text-decoration: none; border-radius: var(--radius); overflow: hidden; background: var(--bg-raised); }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; }
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.2s; }
.video-card:hover .thumb img { opacity: 1; }
.play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid #fff;
  font-size: 18px;
  padding-left: 3px;
}
.video-title { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; font-weight: 600; }
.length { color: var(--muted); font-weight: 400; }
.playlist { margin: 22px 0 0; }
.playlist a { color: var(--accent-text); }

/* Download */
.download-section {
  text-align: center;
  padding: clamp(64px, 9vw, 110px) var(--gutter);
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 100%, rgba(217, 130, 43, 0.22), transparent 65%);
}
.download-section img { margin: 0 auto 18px; border-radius: 26px; }
.download-section h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 10px; }
.download-section > p:first-of-type { color: var(--muted); margin: 0 0 26px; }
.download-section .meta a { color: var(--accent-text); }

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 22px var(--gutter);
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }
.privacy { margin-left: auto; }

/* YouTube pop-up */
.yt-dialog {
  width: min(1100px, 94vw);
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #000;
  overflow: visible;
}
.yt-dialog::backdrop { background: rgba(0, 0, 0, 0.85); }
.yt-dialog iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
.yt-close {
  position: absolute;
  top: -44px;
  right: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

/* Phones and narrow windows */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .download { margin-left: auto; }
  .hero { min-height: 78vh; }
  .hero-content { padding-top: 90px; padding-bottom: 40px; }
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .section-text { order: 0; }
  .privacy { margin-left: 0; }
}
@media (max-width: 520px) {
  .video-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover { transform: none; }
}
