/* Palette is lifted from the channel logo: a neon-lit street at night.
   Plum-black ground, hot pink for signage, teal as the cool counterpoint. */
:root {
  --bg: #14091f;
  --surface: #1e1030;
  --line: #3a2757;
  --text: #f4edff;
  --muted: #bcaed3;
  --pink: #ff4f9a;
  --teal: #38e1d0;
  --ink: #14091f;
  --header-h: 68px;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 0.2em; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.1; }
p { margin: 0 0 1rem; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--pink);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  border-radius: 6px;
}
.skip:focus { top: 12px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(20, 9, 31, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.logo-sm {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--pink);
}

.site-nav ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  display: block;
  padding: 8px 12px;
  color: var(--muted);
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color .2s;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.site-nav a:hover { color: var(--text); }
.site-nav a.is-active { color: var(--text); }
.site-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px;
  background:
    radial-gradient(520px 420px at 82% 48%, rgba(255, 79, 154, 0.2), transparent 70%),
    radial-gradient(420px 360px at 8% 92%, rgba(56, 225, 208, 0.1), transparent 70%),
    var(--bg);
}

/* Two thin vertical neon tubes, a nod to the signs in the logo */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  pointer-events: none;
}

.hero::before {
  right: 9%;
  background: linear-gradient(transparent, var(--pink) 30%, var(--pink) 62%, transparent);
  box-shadow: 0 0 14px 2px rgba(255, 79, 154, 0.55);
  opacity: 0.55;
}

.hero::after {
  right: 5.5%;
  background: linear-gradient(transparent 12%, var(--teal) 42%, var(--teal) 70%, transparent);
  box-shadow: 0 0 14px 2px rgba(56, 225, 208, 0.5);
  opacity: 0.4;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 56px;
}

.hero-copy { grid-column: 1; grid-row: 1; }
.portrait { grid-column: 2; grid-row: 1; margin: 0; }

.hero h1 {
  font-size: clamp(3.6rem, 27vw, 10.5rem);
  font-weight: 800;
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hero h1 .line > span { display: block; }

.channel {
  margin-bottom: 20px;
  color: var(--teal);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.25rem, 3.4vw, 1.75rem);
  line-height: 1.2;
}

.lead {
  max-width: 30em;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
}

.portrait {
  width: 248px;
  aspect-ratio: 4 / 5;
  border: 2px solid var(--pink);
  border-radius: 120px 120px 14px 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 8px var(--bg),
    0 0 0 10px rgba(255, 79, 154, 0.35),
    0 0 48px rgba(255, 79, 154, 0.4);
}

.portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 12px 28px;
  background: var(--pink);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: 6px;
  transition: transform .2s, box-shadow .2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 79, 154, 0.45);
}

/* The one orchestrated moment: name rises, then the sign flickers on */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .line > span {
    animation: rise .9s cubic-bezier(.2, .8, .2, 1) both;
  }
  .hero h1 .line:nth-child(2) > span { animation-delay: .12s; }

  .hero-copy > :not(h1) { animation: fade .8s ease .55s both; }

  .portrait { animation: flicker 1.3s linear .35s both; }
}

@keyframes rise {
  from { transform: translateY(105%); }
  to   { transform: none; }
}

@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes flicker {
  0%   { opacity: 0; }
  12%  { opacity: 1; }
  18%  { opacity: .15; }
  28%  { opacity: .9; }
  34%  { opacity: .3; }
  46%  { opacity: 1; }
  100% { opacity: 1; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }

.section h2 {
  max-width: 14em;
  margin-bottom: 48px;
  font-size: clamp(2.2rem, 6.5vw, 4rem);
  font-weight: 700;
  font-stretch: 85%;
  font-variation-settings: "wdth" 85;
  letter-spacing: -0.015em;
}

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.about-text p { max-width: 34em; color: var(--muted); }

.about-text p:first-child {
  color: var(--text);
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
  line-height: 1.5;
}

.tools {
  padding-left: 28px;
  border-left: 2px solid var(--pink);
}

.tools-label {
  margin-bottom: 16px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.4;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 5px 14px;
  border: 1px solid var(--teal);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
}

/* Topics: a plain list, title on the left, explanation on the right */
.topics { border-bottom: 1px solid var(--line); }

.topic {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 12px 48px;
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.topic h3 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
}

.topic p { margin: 0; color: var(--muted); }

/* Videos: the newest one leads */
.videos {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px 36px;
}

.video {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text);
  text-decoration: none;
}

.video-main { grid-row: 1 / span 2; }

.thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color .2s, box-shadow .2s;
}

.thumb img {
  width: 100%; height: 100%;
  /* hqdefault is 4:3 with letterbox bars; cover into 16:9 crops them */
  object-fit: cover;
}

.video:hover .thumb {
  border-color: var(--pink);
  box-shadow: 0 0 32px rgba(255, 79, 154, 0.3);
}

.video h3 {
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.3;
  margin-bottom: 10px;
}

.video-main h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.2; }

.watch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
}

.watch::before {
  content: "";
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
}

.video:hover .watch { text-decoration: underline; text-underline-offset: 0.25em; }

/* ---------- AI news ---------- */
.news-updated {
  margin: -24px 0 32px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 1rem;
}

.news {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.news-item {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 12px 48px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.news-item h3 {
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
  font-weight: 700;
}

.news-item p { margin: 0; color: var(--muted); }

.news-src {
  display: inline-block;
  min-height: 44px;
  padding: 10px 0;
  color: var(--pink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* ---------- FAQ ---------- */
.faq { max-width: 46em; border-bottom: 1px solid var(--line); }

.faq details { border-top: 1px solid var(--line); }

.faq summary {
  position: relative;
  min-height: 64px;
  padding: 18px 48px 18px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  color: var(--pink);
  font-size: 1.8rem;
  line-height: 1;
  transition: transform .25s;
}

.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq details p {
  margin: 0;
  padding: 0 48px 24px 0;
  color: var(--muted);
}

/* ---------- Contact / footer ---------- */
.contact-text { color: var(--muted); margin-bottom: 8px; }

.mail {
  display: inline-block;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.3rem, 5.8vw, 3.6rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.18em;
  transition: color .2s;
}

.mail:hover { color: var(--pink); }

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.95rem;
}

.site-footer p { margin: 0; }

/* ---------- Responsive ---------- */
/* Seven menu links need a tighter fit before the hamburger menu takes over */
@media (min-width: 901px) and (max-width: 1040px) {
  .site-nav a {
    padding: 8px 7px;
    font-size: 0.86rem;
    white-space: nowrap;
  }

  .site-nav a::after { left: 7px; right: 7px; }
  .brand { font-size: 1rem; white-space: nowrap; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height .3s ease, visibility 0s linear .3s;
  }

  .site-nav.is-open {
    max-height: 80vh;
    visibility: visible;
    transition: max-height .3s ease, visibility 0s;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 20px;
  }

  .site-nav a {
    min-height: 48px;
    padding: 13px 0;
    font-size: 1.2rem;
  }

  .site-nav a::after { left: 0; right: auto; width: 32px; bottom: 8px; }

  .about { grid-template-columns: 1fr; gap: 40px; }
  .videos { grid-template-columns: 1fr; }
  .video-main { grid-row: auto; }

  .video:not(.video-main) {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 20px;
    align-items: start;
  }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section h2 { margin-bottom: 32px; }

  .hero {
    min-height: 0;
    padding-bottom: 64px;
  }

  .hero::before { right: 6%; opacity: 0.35; }
  .hero::after { right: 3%; opacity: 0.28; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .portrait {
    grid-column: 1;
    grid-row: 1;
    width: 132px;
    border-radius: 66px 66px 10px 10px;
    box-shadow:
      0 0 0 6px var(--bg),
      0 0 0 8px rgba(255, 79, 154, 0.35),
      0 0 36px rgba(255, 79, 154, 0.4);
  }

  .hero-copy { grid-row: 2; }

  .topic { grid-template-columns: 1fr; padding: 22px 0; }

  .news-item { grid-template-columns: 1fr; gap: 4px; padding: 22px 0; }
  .news-updated { margin-top: -12px; }

  .tools { padding-left: 20px; }
}

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }

  .video:not(.video-main) {
    display: flex;
    gap: 14px;
  }

  .faq summary { font-size: 1.12rem; }
}

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