:root {
  --bg: #0b0d10;
  --surface: #12161b;
  --surface-2: #171c23;
  --border: #232a33;
  --text: #eef1f5;
  --muted: #98a2b0;
  --accent: #4a9eff;
  --accent-ink: #06121f;
  --radius: 12px;
  --gutter: 24px;
  color-scheme: dark;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 20;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 14px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 13, 16, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-weight: 600; letter-spacing: 0.02em; text-decoration: none; }
.brand span { color: var(--accent); }
.site-header nav { display: flex; gap: 22px; }
.site-header nav a { font-size: 14px; color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--text); }

/* TYPE */
.eyebrow {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.06; font-weight: 600; letter-spacing: -0.02em; }
h1 span { color: var(--accent); }
h2 { font-size: clamp(26px, 3.5vw, 34px); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.lede { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 30em; }
.sub { margin-top: 8px; color: var(--muted); }

/* BUTTONS */
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 10px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.btn:hover { border-color: var(--accent); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #6cb2ff; border-color: #6cb2ff; }

/* HERO — faint horizontal "layer lines" fading out toward the bottom */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 9px, rgba(74, 158, 255, 0.09) 9px 10px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px; align-items: center;
}

/* SECTIONS */
.section { padding: 80px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); padding-bottom: 72px; }

/* VIDEO CARDS */
.video-grid {
  margin-top: 36px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px;
}
.video-card .title {
  margin-top: 12px; font-size: 15px; font-weight: 500; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Lite embed: a thumbnail button that swaps for the iframe on click */
.lite {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #000; overflow: hidden; cursor: pointer; padding: 0;
  transition: border-color 0.15s;
}
button.lite:hover { border-color: var(--accent); }
.lite.playing { cursor: default; }
.lite img { width: 100%; height: 100%; object-fit: cover; }
.lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lite .play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(11, 13, 16, 0.72); border: 2px solid rgba(255, 255, 255, 0.85);
  display: grid; place-items: center;
  transition: background 0.15s, scale 0.15s;
}
.lite:hover .play { background: var(--accent); scale: 1.08; }
.lite .play::before {
  content: ""; margin-left: 4px;
  border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}
.lite:hover .play::before { border-left-color: var(--accent-ink); }
.hero-video .lite { box-shadow: 0 24px 60px -20px rgba(74, 158, 255, 0.35); }
.hero-video .title { margin-top: 12px; font-size: 14px; color: var(--muted); }
.hero-video .title b { color: var(--accent); font-weight: 600; margin-right: 6px; }

/* SHORTS RAIL */
.rail {
  margin-top: 32px; padding: 4px var(--gutter) 12px;
  display: flex; gap: 16px; overflow-x: auto;
  scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
  scrollbar-color: var(--border) transparent;
}
@media (min-width: 1168px) {
  .rail { padding-inline: calc((100vw - 1120px) / 2 + var(--gutter)); scroll-padding-inline: calc((100vw - 1120px) / 2 + var(--gutter)); }
}
.short { flex: 0 0 190px; scroll-snap-align: start; }
.short .lite { aspect-ratio: 9 / 16; }
.short .title { margin-top: 10px; font-size: 13px; line-height: 1.4; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.short .play { width: 48px; height: 48px; }
.short.more { display: flex; }
.short.more a {
  flex: 1; display: grid; place-content: center; text-align: center; gap: 4px; padding: 16px;
  border: 1px dashed var(--border); border-radius: var(--radius); text-decoration: none;
  color: var(--muted); font-size: 14px; aspect-ratio: 9 / 16;
}
.short.more a:hover { border-color: var(--accent); color: var(--text); }

/* FOLLOW */
.follow-grid {
  margin-top: 36px; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px;
}
.follow-grid a {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); text-decoration: none; position: relative;
  transition: border-color 0.15s, background 0.15s;
}
.follow-grid a::after { content: "↗"; position: absolute; right: 20px; top: 18px; color: var(--muted); }
.follow-grid a:hover { border-color: var(--accent); background: var(--surface-2); }
.follow-grid a:hover::after { color: var(--accent); }
.p-name { font-weight: 600; font-size: 17px; }
.p-note { font-size: 14px; color: var(--muted); }

/* FOOTER */
.site-footer { padding: 36px 0 48px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

.error { color: var(--muted); padding: 24px 0; }

/* RESPONSIVE */
@media (max-width: 860px) {
  .hero { padding: 48px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 60px 0; }
}
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .site-header nav { gap: 16px; }
  .short { flex-basis: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
