:root {
  --ink: #151515;
  --paper: #f4f1ea;
  --sun: #e8ff3c;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--paper); background: var(--ink); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }

.home-header { position: fixed; z-index: 20; top: 0; left: 0; width: 100%; height: 48px; padding: 0 clamp(22px, 4vw, 64px); display: flex; align-items: center; background: rgba(21,21,21,0); transition: background .28s ease, backdrop-filter .28s ease; }
.home-header.is-scrolled { background: rgba(21,21,21,.55); backdrop-filter: blur(12px); }
.home-brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; color: #fff; flex-shrink: 0; }
.home-brand img { display: block; width: 74px; height: auto; }
.brand-studio { display: block; padding-left: 11px; border-left: 1px solid rgba(255,255,255,.58); font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: .04em; white-space: nowrap; }

.home-hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; background: #242721; }
.home-video, .home-video-fallback, .home-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-video { z-index: 1; object-fit: cover; }
.home-video-fallback { z-index: 0; background: linear-gradient(130deg, rgba(31,39,36,.8), rgba(39,33,23,.45)), url("assets/home-hero-poster.jpg") center / cover no-repeat; }
.home-overlay { z-index: 2; background: rgba(0,0,0,.38); }
.home-hero-content { z-index: 3; width: min(740px, calc(100% - 44px)); text-align: center; transform: translateY(-2vh); }
.home-banner { width: min(324px, 63vw); height: auto; filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); }
.home-system-readout { position: absolute; z-index: 4; top: 74px; left: clamp(22px, 4vw, 64px); display: grid; gap: 6px; color: var(--sun); font: 500 10px/1.25 var(--mono); letter-spacing: .09em; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.home-system-readout::before { width: 31px; height: 2px; margin-bottom: 3px; content: ""; background: var(--sun); }
.home-system-readout span:last-child { color: rgba(255,255,255,.78); }

.home-featured { padding: clamp(62px, 8vw, 118px) clamp(22px, 8vw, 140px); background: var(--ink); }
.home-section-title { display: flex; align-items: baseline; gap: 18px; margin-bottom: 37px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,.25); }
.home-section-heading { display: grid; gap: 9px; }
.home-section-title p { margin: 0; font-size: clamp(31px, 4vw, 56px); font-weight: 800; letter-spacing: -.07em; }
.home-section-kicker { color: var(--sun); font: 500 10px var(--mono); letter-spacing: .08em; }
.home-section-kicker::before { display: inline-block; width: 25px; height: 1px; margin: 0 8px 3px 0; content: ""; background: currentColor; }
.home-video-list { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 2.8vw, 42px); isolation: isolate; perspective: 1100px; }
.home-video-card { --scroll-x: 0px; --scroll-y: 0px; --scroll-tilt-x: 0deg; --scroll-tilt-y: 0deg; --pointer-tilt-x: 0deg; --pointer-tilt-y: 0deg; --edge-glow-x: 50%; --edge-glow-y: 50%; --edge-glow-opacity: 0; position: relative; display: flex; flex-direction: column; overflow: hidden; min-width: 0; border: 1px solid rgba(255,255,255,.23); background: #20201d; transform: translate3d(var(--scroll-x), var(--scroll-y), 0) rotateX(calc(var(--scroll-tilt-x) + var(--pointer-tilt-x))) rotateY(calc(var(--scroll-tilt-y) + var(--pointer-tilt-y))); transform-style: preserve-3d; transition: transform .2s ease-out, border-color .22s ease, background .22s ease, box-shadow .22s ease; }
.home-video-card::after { position: absolute; z-index: 4; inset: 0; padding: 2px; content: ""; pointer-events: none; opacity: var(--edge-glow-opacity); background: radial-gradient(156px circle at var(--edge-glow-x) var(--edge-glow-y), rgba(255,255,222,.95) 0, rgba(232,255,60,.62) 14%, rgba(232,255,60,.13) 43%, transparent 74%); filter: drop-shadow(0 0 8px rgba(232,255,60,.35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; transition: opacity .14s ease; }
.home-video-card:hover { border-color: var(--sun); background: #282824; box-shadow: 0 22px 42px rgba(0,0,0,.32); }
.home-cover { position: relative; display: block; overflow: hidden; background: #33332f; }
.home-cover::after { position: absolute; z-index: 2; inset: 0; content: ""; pointer-events: none; opacity: 0; background: linear-gradient(135deg, rgba(232,255,60,.32), rgba(232,255,60,.08) 51%, transparent 76%); mix-blend-mode: screen; transition: opacity .28s ease; }
.home-video-card:hover .home-cover::after { opacity: 1; }
.home-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s ease; }
.home-video-card:hover .home-cover img { transform: scale(1.05); }
.home-play { position: absolute; z-index: 3; right: 18px; bottom: 17px; display: grid; place-items: center; width: 42px; height: 42px; color: var(--ink); background: var(--sun); }
.home-play::before { width: 0; height: 0; margin-left: 3px; content: ""; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 12px solid currentColor; }
.home-video-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 18px 18px 17px; }
.home-video-card .episode { margin: 0 0 12px; color: #b8b5ac; font: 500 10px var(--mono); letter-spacing: .06em; }
.home-video-card h2 { display: -webkit-box; margin: 0; overflow: hidden; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.25; letter-spacing: -.045em; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-text-link { display: inline-flex; align-items: center; gap: 9px; margin-top: auto; padding: 24px 0 6px; color: #f5f3ec; border-bottom: 1px solid rgba(232,255,60,.75); font: 600 11px var(--mono); letter-spacing: .04em; }
.home-text-link b { padding: 3px 5px; color: #545b18; background: var(--sun); font: 600 8px var(--mono); letter-spacing: .09em; }
.icon-play { display: inline-block; width: 0; height: 0; margin-left: 3px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid var(--sun); }
.home-video-error { margin: 0; padding: 46px 0; color: #b8b5ac; }

.home-footer { min-height: 76px; padding: 17px clamp(22px, 4vw, 64px) 20px; display: grid; grid-template-columns: 90px minmax(0, 1fr) 90px; align-items: center; gap: 20px; color: #eeeae2; background: var(--ink); font-size: 12px; }
.footer-logo { width: 92px; }
.footer-logo img { display: block; max-width: 100%; object-fit: contain; }
.home-footer p { justify-self: center; margin: 0; color: #9d9a93; text-align: center; transform: translateY(8px); }
.home-footer .footer-slogan { position: relative; display: inline-block; padding-bottom: 12px; color: inherit; }
.home-footer .footer-slogan::after { display: block; width: 33%; min-width: 46px; height: 2px; margin: 10px auto 0; content: ""; background: var(--sun); transition: width .2s ease; }
.home-footer .footer-slogan:hover::after { width: 45%; }
.home-footer > a:not(.footer-logo) { justify-self: end; padding-bottom: 4px; border-bottom: 1px solid #84817a; color: var(--sun); font-weight: 600; }
.home-registration { padding: 0 22px 18px; color: #9d9a93; text-align: center; font-size: 11px; }
.icon-arrow-up { position: relative; display: inline-block; width: 13px; height: 15px; margin-left: 6px; vertical-align: -2px; }
.icon-arrow-up::before { position: absolute; top: 2px; left: 6px; width: 1.5px; height: 12px; content: ""; background: currentColor; }
.icon-arrow-up::after { position: absolute; top: 1px; left: 3px; width: 6px; height: 6px; content: ""; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(225deg); }

@media (max-width: 900px) { .home-video-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .home-header { padding: 0 22px; }
  .home-brand { gap: 8px; }
  .home-brand img { width: 64px; }
  .brand-studio { padding-left: 8px; font-size: 11px; }
  .home-system-readout { top: 72px; left: 22px; }
  .home-banner { width: min(300px, 75vw); }
  .home-featured { padding: 68px 22px 78px; }
  .home-section-title { margin-bottom: 26px; }
  .home-video-list { grid-template-columns: 1fr; gap: 24px; }
  .home-footer { grid-template-columns: 70px minmax(0, 1fr); gap: 12px; padding: 22px; }
  .footer-logo { width: 70px; }
  .home-footer > a:not(.footer-logo) { display: none; }
  .home-footer p { justify-self: end; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
