/* Slopdrop — video-first landing page.
   Layout: full-bleed drifting video wall as hero, a "studio" demo (prompt → output) as the thesis,
   a horizontal reel, a typographic feature list, an editorial Kevin section. Dark by choice: video is the colour. */
:root {
  --bg: #0c0b10;
  --bg-2: #131218;
  --bg-3: #1c1b23;
  --fg: #f3f1f6;
  --fg-2: #aaa6b4;
  --fg-3: #726e7d;
  --line: rgba(243, 241, 246, .12);
  --line-2: rgba(243, 241, 246, .26);
  --signal: #8d6dff;       /* Kevin's windbreaker */
  --signal-soft: rgba(141, 109, 255, .18);
  --drop: #2bd6c4;         /* the beat drop */
  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --r: 18px;
  --r-s: 10px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-optical-sizing: auto; text-wrap: balance; }
h1 { font-weight: 800; font-stretch: 82%; letter-spacing: -.025em; line-height: .92; font-size: clamp(3.2rem, 8.8vw, 8.2rem); }
h2 { font-weight: 800; font-stretch: 85%; letter-spacing: -.02em; line-height: .95; font-size: clamp(2.3rem, 5.4vw, 4.6rem); }
h3 { font-weight: 700; font-stretch: 100%; letter-spacing: -.01em; line-height: 1.1; font-size: 1.35rem; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); }
.lead { color: var(--fg-2); font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 54ch; text-wrap: pretty; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
section { padding-block: clamp(80px, 11vw, 150px); }
.sec-head { display: grid; gap: 18px; max-width: 820px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .mono { color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15.5px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn:active { transform: scale(.98); }
.btn-white { background: var(--fg); color: #0c0b10; }
.btn-white:hover { background: #fff; }
.btn-line { background: transparent; border-color: var(--line-2); color: var(--fg); }
.btn-line:hover { border-color: var(--fg); }
.btn-signal { background: var(--signal); color: #fff; }
.btn-signal:hover { background: #9d82ff; }
.btn-signal:disabled { opacity: .55; cursor: progress; }
.btn svg { width: 16px; height: 16px; }
.btn kbd { font: 500 11px var(--mono); padding: 3px 6px; border-radius: 6px; background: rgba(255,255,255,.18); }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(12, 11, 16, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.wordmark { font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: 24px; letter-spacing: -.03em; text-decoration: none; display: inline-flex; align-items: baseline; user-select: none; }
.wordmark i { display: inline-block; width: .42em; height: .9em; margin-left: .08em; background: var(--signal); transform: translateY(.1em); animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav-links { display: flex; gap: 30px; font-size: 15px; color: var(--fg-2); }
.nav-links a { text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--fg); }
.nav .btn { height: 42px; padding: 0 18px; font-size: 14px; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* hero: video wall */
.hero { position: relative; min-height: min(900px, 96svh); display: grid; align-content: end; overflow: hidden; padding-top: 72px; }
.wall { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 0 12px; opacity: .62; }
.col { overflow: hidden; }
.col-track { display: grid; gap: 12px; animation: drift 48s linear infinite; will-change: transform; }
.col:nth-child(2n) .col-track { animation-direction: reverse; animation-duration: 56s; }
.col:nth-child(3) .col-track { animation-duration: 64s; }
.tile { aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--bg-3); }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; }
@keyframes drift { to { transform: translateY(-50%); } }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(90deg, rgba(12,11,16,.97) 0%, rgba(12,11,16,.86) 36%, rgba(12,11,16,.5) 70%, rgba(12,11,16,.3) 100%),
    linear-gradient(0deg, var(--bg) 2%, rgba(12,11,16,.75) 28%, rgba(12,11,16,.3) 60%, rgba(12,11,16,.65) 100%);
}
.hero > .wrap { position: relative; z-index: 2; }
.hero-content { position: relative; display: grid; gap: 28px; padding-block: 56px 36px; max-width: 900px; }
.hero-content .mono { color: var(--fg-2); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-content .mono b { color: var(--signal); font-weight: 500; }
.hero h1 .dim { color: var(--signal); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-bar { position: relative; border-top: 1px solid var(--line); padding: 16px 0 20px; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }
.hero-bar .rec { display: inline-flex; align-items: center; gap: 8px; }
.hero-bar .rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff3b3b; animation: blink 1.4s steps(2) infinite; }
@media (max-width: 760px) {
  .wall { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 8px; }
  .col:nth-child(n + 4) { display: none; }
  .tile { border-radius: 10px; }
  .hero { min-height: 88svh; }
  .hero-content { padding-top: 40px; }
}

/* studio demo */
.studio-ui { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: stretch; }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); display: grid; grid-template-rows: auto 1fr auto auto; overflow: hidden; min-width: 0; }
.out-panel { grid-template-rows: auto 1fr auto; }
.prompt-area { display: grid; grid-template-rows: 1fr auto; min-height: 0; }
.settings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 20px; margin: 0; padding: 8px 24px 20px; }
.settings div { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); }
.settings dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.settings dd { margin: 0; font-size: 14px; font-weight: 600; }
@media (max-width: 520px) { .settings { grid-template-columns: repeat(2, 1fr); } }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.panel-head .dot { display: inline-flex; align-items: center; gap: 8px; }
.panel-head .dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--drop); box-shadow: 0 0 10px var(--drop); }
.prompt { padding: 28px 24px 20px; font-family: var(--display); font-weight: 500; font-stretch: 95%; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.2; letter-spacing: -.01em; min-height: 150px; text-wrap: pretty; }
.prompt .caret { display: inline-block; width: 2px; height: 1em; background: var(--signal); vertical-align: -.15em; margin-left: 2px; animation: blink 1s steps(2) infinite; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 24px 20px; }
.chip { background: transparent; border: 1px solid var(--line-2); color: var(--fg-2); border-radius: 999px; padding: 8px 14px; font-size: 13.5px; cursor: pointer; transition: .15s; text-align: left; }
.chip:hover { color: var(--fg); border-color: var(--fg); }
.chip.on { background: var(--signal-soft); border-color: var(--signal); color: var(--fg); }
.panel-foot { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.status { font-family: var(--mono); font-size: 12.5px; color: var(--fg-2); letter-spacing: .02em; flex: 1; min-width: 0; }
.status.busy { color: var(--signal); }
.status.done { color: var(--drop); }

.out-panel .player-wrap { display: grid; place-items: center; background: var(--bg-3); padding: 20px; }
.player { position: relative; background: #000; aspect-ratio: 9 / 16; height: min(560px, 70vh); max-width: 100%; border-radius: 14px; overflow: hidden; }
.player video { width: 100%; height: 100%; object-fit: cover; }
.player .idle { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; gap: 10px; align-content: center; background: linear-gradient(180deg, rgba(12,11,16,.2), rgba(12,11,16,.8)); transition: opacity .4s; }
.player .idle .mono { color: var(--fg); }
.player .idle p { color: var(--fg-2); font-size: 14px; max-width: 24ch; }
.player.playing .idle, .player.busy .idle { opacity: 0; pointer-events: none; }
.player .scan { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: linear-gradient(180deg, transparent 0, rgba(141,109,255,0) 40%, rgba(141,109,255,.55) 50%, transparent 60%); background-size: 100% 240%; }
.player.busy .scan { opacity: 1; animation: scan 1.1s linear infinite; }
@keyframes scan { from { background-position: 0 240%; } to { background-position: 0 -140%; } }
.player .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.14); }
.player .bar i { display: block; height: 100%; width: 0; background: var(--signal); transition: width .2s linear; }
.player.playing .bar i { background: var(--drop); }
.player .mute { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; display: none; place-items: center; cursor: pointer; }
.player.playing .mute { display: grid; }
.player .mute svg { width: 18px; height: 18px; }
.player .badge { position: absolute; top: 12px; left: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; background: rgba(0,0,0,.55); padding: 6px 9px; border-radius: 6px; color: var(--fg); }
.fineprint { margin-top: 18px; color: var(--fg-3); font-size: 13px; max-width: 70ch; }
@media (max-width: 900px) { .studio-ui { grid-template-columns: 1fr; } .player { height: min(520px, 64vh); } }

/* reel */
.reel { padding-bottom: clamp(60px, 8vw, 110px); }
.reel .sec-head { margin-bottom: 28px; }
.reel-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.reel-nav { display: flex; gap: 8px; }
.reel-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center; cursor: pointer; transition: .15s; }
.reel-nav button:hover { border-color: var(--fg); }
.reel-nav svg { width: 18px; height: 18px; }
.reel-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(var(--gutter), (100% - var(--max)) / 2); padding-bottom: 8px;
  scroll-padding-inline: max(var(--gutter), (100% - var(--max)) / 2);
}
.reel-track::-webkit-scrollbar { display: none; }
.clip { position: relative; flex: 0 0 auto; width: clamp(240px, 26vw, 330px); aspect-ratio: 9 / 16; border-radius: var(--r); overflow: hidden; background: var(--bg-3); scroll-snap-align: start; cursor: pointer; }
.clip video { width: 100%; height: 100%; object-fit: cover; }
.clip .clip-meta { position: absolute; inset: auto 0 0; padding: 18px; display: grid; gap: 8px; background: linear-gradient(transparent, rgba(0,0,0,.82)); pointer-events: none; transition: opacity .3s; }
.clip .clip-meta h3 { font-size: 1.15rem; }
.clip .clip-meta .mono { color: var(--fg); font-size: 11px; }
.clip .glitch { color: var(--drop); }
.clip .pl { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.92); color: #000; display: grid; place-items: center; pointer-events: none; transition: .2s; }
.clip .pl svg { width: 16px; height: 16px; margin-left: 2px; }
.clip.playing .pl { background: rgba(0,0,0,.6); color: #fff; }
.clip.playing .clip-meta { opacity: 0; }
.clip::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }

/* features */
.features .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.features .sec-head { position: sticky; top: 100px; margin: 0; }
.feat-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.feat-list li { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.feat-list p { color: var(--fg-2); font-size: 15.5px; }
@media (max-width: 860px) { .features .wrap { grid-template-columns: 1fr; } .features .sec-head { position: static; margin-bottom: 8px; } .feat-list li { grid-template-columns: 1fr; gap: 8px; } }

/* kevin */
.kevin { background: var(--bg-2); border-block: 1px solid var(--line); }
.kevin .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.kevin-fig { position: relative; margin: 0; }
.kevin-fig .main { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); }
.kevin-fig .inset { position: absolute; width: 36%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; right: -6%; bottom: -8%; box-shadow: 0 30px 60px rgba(0,0,0,.6); border: 3px solid var(--bg-2); }
.stamp {
  position: absolute; left: 6%; top: 7%; padding: 8px 12px; border: 3px solid #ff3b3b; color: #ff3b3b; border-radius: 6px;
  font: 800 18px var(--display); font-stretch: 85%; letter-spacing: .06em; text-transform: uppercase; transform: rotate(-9deg);
  opacity: .92; text-shadow: 0 0 1px rgba(255,59,59,.5);
}
.kevin-copy { display: grid; gap: 24px; }
.spec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; margin: 0; border-top: 1px solid var(--line); }
.spec div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.spec dt { color: var(--fg-3); }
.spec dd { margin: 0; color: var(--fg); text-align: right; }
@media (max-width: 860px) { .kevin .wrap { grid-template-columns: 1fr; } .kevin-fig { margin-bottom: 40px; max-width: 520px; } .kevin-fig .inset { right: 0; } .spec { grid-template-columns: 1fr; } }

/* closing cta */
.cta .wrap { display: grid; gap: 26px; justify-items: start; }
.cta h2 { font-size: clamp(2.8rem, 8vw, 7rem); max-width: 12ch; }
.cta .lead { max-width: 48ch; }
.cta .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta .schedule { display: flex; gap: 10px; flex-wrap: wrap; }
.cta .schedule span { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; border: 1px solid var(--line-2); padding: 7px 11px; border-radius: 999px; color: var(--fg-2); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--fg-2); font-size: 14px; }
footer .wrap { display: grid; gap: 22px; }
footer .row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
footer .links { display: flex; flex-wrap: wrap; gap: 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--fg); }
.ai-note { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; }
.ai-note::before { content: "AI"; font: 500 11px var(--mono); letter-spacing: .08em; border: 1px solid var(--line-2); padding: 3px 6px; border-radius: 5px; color: var(--fg); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 16px; opacity: 0; background: var(--fg); color: #0c0b10; font-weight: 600; font-size: 14px; padding: 12px 18px; border-radius: 999px; z-index: 100; transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; translate: -50% 0; }

/* scroll reveal (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* legal + 404 */
.legal { padding: 140px 0 100px; }
.legal .wrap { max-width: 760px; display: grid; gap: 20px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.legal h2 { font-size: 1.3rem; margin-top: 16px; font-stretch: 100%; }
.legal p, .legal li { color: var(--fg-2); }
.legal .todo { background: var(--signal-soft); border: 1px dashed var(--signal); border-radius: var(--r-s); padding: 14px 16px; color: var(--fg); }
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 0 60px; }
.notfound .wrap { display: grid; gap: 22px; justify-items: center; }
.notfound img { width: min(260px, 60vw); border-radius: var(--r); transform: rotate(-3deg); }
.notfound h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); }

@media (prefers-reduced-motion: reduce) {
  .col-track, .wordmark i, .prompt .caret, .hero-bar .rec::before, .player.busy .scan { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
