:root {
  --bg: #09090b;
  --card: #131316;
  --border: #232327;
  --fg: #fafafa;
  --muted: #a1a1aa;
  --brand: #f0aa12;
  --radius: 12px;
  --max: 1080px;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

* {
  --scrollbar-thumb: #3f3f46;
  --scrollbar-track: transparent;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
}

@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    background-clip: padding-box;
    border: 2px solid transparent;
    border-radius: 999px;
  }
}

img { max-width: 100%; height: auto; display: block; }
code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .9em; color: var(--fg); background: #1c1c20; padding: .1em .38em; border-radius: 5px; }
a { color: inherit; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(9,9,11,.72) 0%, rgba(9,9,11,.88) 55%, rgba(9,9,11,.96) 100%),
    url("/assets/bg.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.glow {
  position: fixed;
  inset: -30% -10% auto -10%;
  height: 70vh;
  pointer-events: none;
  background: radial-gradient(50% 60% at 50% 0%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 70%);
  z-index: 0;
}

.nav {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand img { width: 168px; height: auto; }
.nav nav { display: flex; align-items: center; gap: 18px; }
.nav nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .15s ease-out; }
.nav nav a:not(.btn):hover { color: var(--fg); }

.btn {
  --shine: color-mix(in srgb, var(--brand) 88%, #fff);
  --shade: color-mix(in srgb, var(--brand) 86%, #000);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(180deg, var(--shine) 0%, var(--brand) 45%, var(--shade) 100%);
  color: #1a1206;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 14px 26px;
  font-size: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -1px 0 rgba(0,0,0,.28),
    0 1px 2px rgba(0,0,0,.5),
    0 8px 24px -8px color-mix(in srgb, var(--brand) 55%, transparent);
  transition: filter .15s ease-out, transform .15s ease-out;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 1px 3px rgba(0,0,0,.35); }
.btn:focus-visible { outline: 2px solid color-mix(in srgb, var(--brand) 65%, transparent); outline-offset: 3px; }
.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 9px; }
.btn-lg { padding: 15px 30px; font-size: 17px; }

main { position: relative; z-index: 1; }

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 0;
  text-align: center;
}
.hero h1 {
  margin: 0 auto;
  max-width: 15ch;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.accent { color: var(--brand); }
.sub {
  margin: 20px auto 30px;
  max-width: 46ch;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 300;
  color: var(--muted);
  text-wrap: balance;
}
.meta { margin: 14px 0 0; font-size: 13px; color: #71717a; }

.shot {
  margin: 44px auto 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9);
}

.section { max-width: var(--max); margin: 0 auto; padding: 84px 24px 0; }
.section h2 {
  margin: 0 0 34px;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.loop {
  margin: 0;
  text-align: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(.7rem, 2vw, .85rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.loop span { color: var(--brand); margin: 0 .3em; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid article {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 22px;
}
.grid h3 { margin: 0 0 8px; font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; }
.grid p { margin: 0; color: var(--muted); font-size: 14.5px; }

.lede {
  margin: -18px 0 30px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 16px;
  text-wrap: balance;
}

.plugins { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.plugins article {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 24px 22px;
}
.plugins svg { color: var(--brand); margin-bottom: 14px; }
.plugins h3 { margin: 0 0 8px; font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; }
.plugins p { margin: 0; color: var(--muted); font-size: 14.5px; }

.keychain {
  margin: 22px auto 0;
  max-width: 66ch;
  text-align: center;
  color: #71717a;
  font-size: 13.5px;
  text-wrap: balance;
}

.privacy { max-width: 760px; text-align: center; }
.privacy p { color: var(--muted); margin: 0 auto 14px; max-width: 62ch; }
.privacy strong { color: var(--fg); font-weight: 600; }

.cta { text-align: center; padding-bottom: 96px; }
.cta img { margin: 0 auto 22px; width: 72px; height: 72px; }
.cta h2 { margin-bottom: 28px; }

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 30px 24px 44px;
  text-align: center;
  color: #71717a;
  font-size: 13.5px;
}
footer p { margin: 0 0 6px; }
footer a { color: var(--muted); text-decoration: none; transition: color .15s ease-out; }
footer a:hover { color: var(--fg); }
footer span { margin: 0 8px; opacity: .5; }
.made { color: #52525b; margin-bottom: 12px; }

.made-logo {
  display: inline-block;
  transition: transform .18s ease-out, filter .18s ease-out;
}
.made-logo img { width: clamp(160px, 22vw, 240px); height: auto; }
.made-logo:hover { transform: translateY(-2px); filter: brightness(1.08); }

@media (max-width: 640px) {
  .nav { padding: 16px; }
  .brand img { width: 138px; }
  .nav nav { gap: 12px; }
  .hero { padding-top: 34px; }
  .shot { margin-top: 32px; border-radius: 12px; }
  .section { padding-top: 62px; }
}

@keyframes wb-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: -200% 50%; }
}

.accent {
  background-image: linear-gradient(
    100deg,
    var(--brand) 0%,
    color-mix(in srgb, var(--brand) 60%, #fff) 18%,
    var(--brand) 36%,
    color-mix(in srgb, var(--brand) 78%, #ff7a18) 55%,
    var(--brand) 72%,
    color-mix(in srgb, var(--brand) 60%, #fff) 88%,
    var(--brand) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: wb-shimmer 5s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .accent {
    animation: none;
    background-image: none;
    color: var(--brand);
  }
}

.pitch { max-width: 820px; text-align: center; }
.pitch h2 { margin-bottom: 22px; font-size: clamp(1.9rem, 4.6vw, 3rem); }
.pitch p { margin: 0 auto 14px; max-width: 54ch; color: var(--muted); font-size: clamp(1rem, 2vw, 1.12rem); text-wrap: balance; }

.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding-top: 84px; }
.steps > .step:first-child { padding-top: 0; }
.step-n {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 500;
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--brand) 60%, transparent);
}
.step-n-inline { margin-bottom: 14px; -webkit-text-stroke-width: 1.5px; }
.step-body h2 { margin: 0 0 16px; }
.step-body p { margin: 0 0 14px; max-width: 60ch; color: var(--muted); font-size: clamp(1rem, 2vw, 1.08rem); }
.step-body p:last-child { margin-bottom: 0; }
.step-kicker { color: #71717a !important; font-size: 14.5px !important; }
.step-kicker strong, .step-body strong { color: var(--fg); font-weight: 600; }
.steps .shot { margin-top: 44px; }
.shot-art { border: 0; border-radius: 0; background: none; box-shadow: none; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  padding: 8px 16px;
  font-size: 14px;
  color: var(--muted);
}
.chips li:last-child { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }

.hall ul {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.hall li {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 14px 16px;
}
.hall code { background: none; padding: 0; color: var(--muted); font-size: 14px; }
.hall .step-kicker { margin: 22px 0 0; text-align: center; }

.lede-center { margin-left: auto; margin-right: auto; text-align: center; }

.finale {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 18px;
  text-align: center;
  overflow: clip;
}
.finale-line {
  margin: 0 0 6px;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--muted);
}
.finale-art { margin: 0; }
.finale-art img {
  margin: 0 auto;
  width: min(680px, 100%);
  transform: translateY(64px) scale(.94);
  opacity: 0;
  transition: transform .7s cubic-bezier(.2, 1.5, .4, 1), opacity .5s ease-out;
}
.finale-art.in img { transform: none; opacity: 1; }
.finale-art figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  color: #52525b;
}

@media (prefers-reduced-motion: reduce) {
  .finale-art img { transform: none; opacity: 1; transition: none; }
}

@media (max-width: 640px) {
  .step { grid-template-columns: 1fr; gap: 10px; padding-top: 62px; }
  .steps .shot { margin-top: 32px; }
}

.hero-video { margin: 44px auto 0; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9);
}
.video-frame iframe,
.video-frame > div {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, #000 0%, rgba(0,0,0,.82) 12%, transparent 26%),
    radial-gradient(60% 60% at 50% 50%, transparent 40%, rgba(0,0,0,.45));
  opacity: 1;
  transition: opacity .4s ease-out;
}
.video-frame.playing::after { opacity: 0; }

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: #1a1206;
  cursor: pointer;
  transition: opacity .3s ease-out;
}
.video-play svg {
  position: relative;
  grid-area: 1 / 1;
  margin-left: 6px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}
.video-play::before {
  content: "";
  position: absolute;
  width: clamp(76px, 9vw, 104px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 88%, #fff) 0%, var(--brand) 45%, color-mix(in srgb, var(--brand) 86%, #000) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    0 10px 40px -6px color-mix(in srgb, var(--brand) 60%, transparent);
  transition: transform .18s ease-out;
}
.video-play:hover::before { transform: scale(1.06); }
.video-play:active::before { transform: scale(.98); }
.video-play:focus-visible { outline: 2px solid color-mix(in srgb, var(--brand) 65%, transparent); outline-offset: -6px; }

.video-play-ring {
  position: absolute;
  width: clamp(76px, 9vw, 104px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--brand) 55%, transparent);
  animation: wb-pulse 2.6s ease-out infinite;
}
@keyframes wb-pulse {
  0% { transform: scale(1); opacity: .7; }
  70% { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

.video-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #16161a, #0b0b0e);
  opacity: 1;
  transition: opacity .5s ease-out;
}
.video-frame.ready .video-cover { opacity: 0; }

.video-frame.playing .video-play { opacity: 0; }
.video-frame.playing .video-play:hover,
.video-frame.playing .video-play:focus-visible { opacity: .92; }
.video-frame.watching .video-play-ring { display: none; }

.icon-pause { display: none; }
.video-frame.playing .icon-play { display: none; }
.video-frame.playing .icon-pause { display: block; margin-left: 0; }
.video-cap { margin: 14px 0 0; font-size: 13px; color: #71717a; }

@media (prefers-reduced-motion: reduce) {
  .video-play-ring { animation: none; }
}
