:root {
  --black: #000;
  --bg: #0a0a0a;
  --panel: #141414;
  --panel-2: #1c1c1c;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --dim: #6b6b6b;
  --blue: #1f6bff;
  --blue-hi: #4f8cff;
  --blue-glow: rgba(31, 107, 255, 0.45);
  --pad: clamp(20px, 4vw, 60px);
  --display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--black); }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200; background: var(--black);
  display: grid; place-items: center;
  animation: introOut 0.5s ease 1.5s forwards;
}
.intro span {
  font-family: var(--display); color: var(--blue);
  font-size: clamp(48px, 9vw, 120px); letter-spacing: 0.04em;
  text-shadow: 0 0 40px var(--blue-glow);
  animation: introZoom 1.9s var(--ease) forwards;
}
@keyframes introZoom {
  0% { transform: scale(0.85); opacity: 0; letter-spacing: 0.3em; }
  35% { opacity: 1; letter-spacing: 0.04em; }
  100% { transform: scale(1.12); opacity: 1; }
}
@keyframes introOut { to { opacity: 0; visibility: hidden; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: clamp(20px, 3vw, 44px);
  padding: 18px var(--pad);
  background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  transition: background 0.35s ease;
}
.nav.solid { background: rgba(10, 10, 10, 0.96); backdrop-filter: blur(8px); }
.logo {
  font-family: var(--display); color: var(--blue);
  font-size: 30px; letter-spacing: 0.06em; line-height: 1;
  text-shadow: 0 0 18px rgba(31, 107, 255, 0.35);
  white-space: nowrap;
}
.tabs { display: flex; gap: clamp(14px, 2vw, 26px); list-style: none; }
.tabs a {
  font-size: 14px; color: #d4d4d4; position: relative; padding: 6px 0;
  transition: color 0.2s ease;
}
.tabs a:hover { color: #fff; }
.tabs a.active { color: #fff; font-weight: 600; }
.tabs a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--blue); border-radius: 2px;
}
.menu-btn { display: none; margin-left: auto; width: 36px; height: 36px; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 22px; height: 2px; background: #fff; position: relative; margin: auto;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 26px 11px 22px; border-radius: 6px;
  font-weight: 700; font-size: 16px; line-height: 1;
  transition: transform 0.2s var(--ease), background 0.2s ease, box-shadow 0.2s ease;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-play { background: var(--blue); color: #fff; box-shadow: 0 6px 24px rgba(31, 107, 255, 0.35); }
.btn-play:hover { background: var(--blue-hi); transform: translateY(-1px); box-shadow: 0 10px 32px var(--blue-glow); }
.btn-ghost { background: rgba(109, 109, 110, 0.55); color: #fff; backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(109, 109, 110, 0.4); }
.btn-sm { padding: 9px 18px 9px 14px; font-size: 14px; }
.btn-sm svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: min(92vh, 900px); min-height: 560px;
  overflow: hidden; background: var(--black);
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center 30%;
  opacity: 0; transform: scale(1.06);
  transition: opacity 0.9s ease;
}
.hero-bg.on { opacity: 1; animation: drift 14s linear forwards; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1.16) translateX(-1.5%); } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 38%, rgba(0,0,0,0) 70%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10,10,10,0.6) 16%, rgba(10,10,10,0) 40%);
}
.hero-content {
  position: absolute; z-index: 2; left: var(--pad); bottom: clamp(140px, 22vh, 230px);
  max-width: min(620px, 88vw);
}
.hero-kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: #e5e5e5;
}
.hero-kicker .mark {
  font-family: var(--display); color: var(--blue); font-size: 26px; letter-spacing: 0;
  line-height: 1; transform: translateY(1px);
}
.hero-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(56px, 9vw, 128px); line-height: 0.9; letter-spacing: 0.01em;
  margin: 14px 0 10px; text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.hero-season {
  font-family: var(--display); font-size: clamp(26px, 3vw, 38px); color: var(--blue-hi);
  letter-spacing: 0.04em; line-height: 1;
}
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 14px; font-size: 15px; color: #d4d4d4; }
.meta .chip {
  border: 1px solid rgba(255,255,255,0.4); padding: 1px 8px; border-radius: 3px;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
}
.meta .role { color: #fff; font-weight: 600; }
.meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--dim); }
.hero-credit { font-size: clamp(15px, 1.3vw, 18px); color: #e5e5e5; max-width: 520px; text-shadow: 0 2px 10px rgba(0,0,0,0.6); }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero-swap { animation: swapIn 0.6s var(--ease); }
@keyframes swapIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.hero-dots {
  position: absolute; z-index: 3; right: var(--pad); bottom: clamp(150px, 23vh, 240px);
  display: flex; gap: 6px;
}
.hero-dots button { width: 22px; height: 3px; background: rgba(255,255,255,0.3); border-radius: 2px; overflow: hidden; position: relative; }
.hero-dots button.on { background: rgba(255,255,255,0.3); }
.hero-dots button.on::after {
  content: ""; position: absolute; inset: 0; background: var(--blue);
  transform-origin: left; animation: fill var(--dur, 8s) linear forwards;
}
.hero-dots.paused button.on::after { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Rows ---------- */
.rows { position: relative; z-index: 4; margin-top: clamp(-150px, -15vh, -90px); padding-bottom: 40px; }
.row { margin-bottom: clamp(34px, 4vw, 52px); }
.row-head { display: flex; align-items: baseline; gap: 14px; padding: 0 var(--pad); margin-bottom: 12px; }
.row-title { font-size: clamp(18px, 1.6vw, 24px); font-weight: 700; letter-spacing: 0.01em; }
.row-link { font-size: 13px; color: var(--blue-hi); font-weight: 600; opacity: 0; transform: translateX(-6px); transition: 0.25s var(--ease); }
.row:hover .row-link { opacity: 1; transform: none; }
.row-wrap { position: relative; }
.track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--pad) - 5 * 10px) / 6);
  gap: 10px; padding: 26px var(--pad); margin: -26px 0;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad);
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.track.four { grid-auto-columns: calc((100% - 2 * var(--pad) - 3 * 10px) / 4); }
.arrow {
  position: absolute; top: 0; bottom: 0; width: calc(var(--pad) - 6px); z-index: 5;
  background: rgba(0,0,0,0.55); display: grid; place-items: center;
  opacity: 0; transition: opacity 0.2s ease;
}
.arrow svg { width: 26px; height: 26px; transition: transform 0.2s ease; }
.arrow:hover svg { transform: scale(1.3); }
.arrow.left { left: 0; }
.arrow.right { right: 0; }
.row-wrap:hover .arrow.show { opacity: 1; }

.card {
  position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden;
  background: var(--panel); scroll-snap-align: start; text-align: left;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  box-shadow: 0 0 0 0 transparent;
}
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), filter 0.35s ease; }
.card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 55%, rgba(0,0,0,0) 100%);
}
.card-label { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 10px; }
.card-label strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(18px, 1.7vw, 26px); line-height: 1; letter-spacing: 0.02em; }
.card-label small { display: block; font-size: 12px; color: #cfcfcf; margin-top: 4px; }
.card-play {
  position: absolute; z-index: 2; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue); display: grid; place-items: center;
  opacity: 0; transform: scale(0.7); transition: 0.25s var(--ease);
}
.card-play svg { width: 16px; height: 16px; margin-left: 2px; }
.card:hover, .card.current { z-index: 3; }
.card:hover { transform: scale(1.08); box-shadow: 0 0 0 2px var(--blue), 0 14px 40px rgba(0,0,0,0.7), 0 0 30px var(--blue-glow); }
.card:hover img { transform: scale(1.04); }
.card:hover .card-play { opacity: 1; transform: none; }
.card.current { box-shadow: inset 0 -3px 0 var(--blue); }
.card.current::before {
  content: ""; position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; background: var(--blue);
}
.card .badge {
  position: absolute; z-index: 2; top: 0; left: 10px;
  background: var(--blue); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  padding: 4px 6px 3px; border-radius: 0 0 3px 3px; text-transform: uppercase;
}

/* ---------- Home about ---------- */
.home-about {
  margin: 10px var(--pad) 70px; padding: clamp(24px, 3vw, 40px);
  border-radius: 10px; background: linear-gradient(120deg, #101318 0%, var(--panel) 60%);
  border: 1px solid var(--line);
  display: grid; grid-template-columns: 180px 1fr; gap: clamp(20px, 3vw, 40px); align-items: center;
}
.home-about img { width: 180px; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--panel-2); }
.home-about h2 { font-size: clamp(18px, 1.6vw, 24px); margin-bottom: 10px; }
.home-about p { color: #cfcfcf; max-width: 760px; font-size: 16px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; color: var(--blue-hi); }
.text-link:hover { color: #fff; }
.text-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px var(--pad) 50px; color: var(--muted); }
.footer-links { display: flex; gap: 12px; margin-bottom: 18px; }
.social {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 6px;
  border: 1px solid var(--line); color: #e5e5e5; font-size: 14px; font-weight: 600;
  transition: 0.2s ease;
}
.social svg { width: 18px; height: 18px; }
.social:hover { border-color: var(--blue); color: #fff; background: rgba(31, 107, 255, 0.12); }
.footer small { font-size: 12px; color: var(--dim); }

/* ---------- Inner pages ---------- */
.page { padding: 120px var(--pad) 70px; min-height: 80vh; }
.page-head { margin-bottom: 34px; }
.page-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(54px, 7vw, 96px); line-height: 0.9; letter-spacing: 0.02em; }
.page-head .count { color: var(--muted); font-size: 15px; margin-top: 8px; }
.page-head .count b { color: var(--blue-hi); }

/* Work */
.work-list { display: grid; gap: 18px; }
.work-card {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 40px);
  padding: clamp(16px, 2vw, 24px); border-radius: 10px; overflow: hidden; isolation: isolate;
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color 0.3s ease, transform 0.35s var(--ease);
}
.work-card:hover { border-color: rgba(31, 107, 255, 0.7); transform: translateY(-2px); }
.work-card .wash {
  position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center;
  opacity: 0.22; filter: blur(2px) saturate(1.1); transform: scale(1.05);
  transition: opacity 0.4s ease;
}
.work-card .wash::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,20,0.75) 0%, rgba(20,20,20,0.96) 55%); }
.work-card:hover .wash { opacity: 0.38; }
.work-card .poster { width: clamp(110px, 13vw, 170px); aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,0.6); background: var(--panel-2); }
.work-body { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.work-num { font-family: var(--display); color: var(--blue); font-size: 22px; letter-spacing: 0.06em; }
.work-body h2 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4vw, 56px); line-height: 0.95; letter-spacing: 0.02em; }
.work-body h2 span { color: var(--blue-hi); }
.work-body .meta { margin: 12px 0 8px; }
.work-body p { color: #d0d0d0; max-width: 640px; }
.work-body .btn { margin-top: 18px; align-self: flex-start; }

/* Projects */
.group { margin-bottom: 50px; }
.group h2 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.group h2::before { content: ""; width: 4px; height: 22px; background: var(--blue); border-radius: 2px; }
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.proj { text-align: left; }
.proj .card { aspect-ratio: 16 / 9; width: 100%; }
.proj .card:hover { transform: scale(1.025); }
.proj .card-play { opacity: 1; transform: none; width: 64px; height: 64px; top: 50%; left: 50%; right: auto; margin: -32px 0 0 -32px; box-shadow: 0 0 30px var(--blue-glow); }
.proj .card-play svg { width: 26px; height: 26px; }
.proj h3 { margin-top: 12px; font-size: 17px; font-weight: 600; }
.proj h3 small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; margin-bottom: 2px; }

/* About */
.about-wrap { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.about-wrap img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.about-text p { font-size: clamp(16px, 1.3vw, 19px); color: #dcdcdc; margin-bottom: 18px; max-width: 720px; }
.about-text p:first-child { font-size: clamp(20px, 1.8vw, 26px); color: #fff; font-weight: 600; line-height: 1.35; }
.networks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.networks span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; color: #d4d4d4; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 20px; }
.contact-tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 30px; border-radius: 12px; min-height: 220px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.3s ease, box-shadow 0.35s ease;
}
.contact-tile svg.ico { width: 44px; height: 44px; color: var(--blue-hi); }
.contact-tile h2 { font-family: var(--display); font-weight: 400; font-size: 52px; line-height: 0.9; letter-spacing: 0.02em; }
.contact-tile p { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.contact-tile p svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.contact-tile:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 18px 50px rgba(0,0,0,0.6), 0 0 40px rgba(31, 107, 255, 0.25); }
.contact-tile:hover p { color: #fff; }
.contact-tile:hover p svg { transform: translate(3px, -3px); }

/* ---------- Player modal ---------- */
.player {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(0,0,0,0.88); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s;
  padding: 20px;
}
.player.open { opacity: 1; visibility: visible; }
.player-box { width: min(1180px, 100%); transform: scale(0.96); transition: transform 0.35s var(--ease); }
.player.open .player-box { transform: none; }
.player-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.player-title { font-family: var(--display); font-size: clamp(24px, 2.6vw, 34px); letter-spacing: 0.03em; line-height: 1; }
.player-title span { color: var(--blue-hi); }
.player-close { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: grid; place-items: center; transition: background 0.2s; flex: none; }
.player-close:hover { background: var(--blue); }
.player-close svg { width: 20px; height: 20px; }
.player-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.8), 0 0 0 1px var(--line); }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-alt { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: right; }
.player-alt a { color: var(--blue-hi); font-weight: 600; }
.player-alt a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .track { grid-auto-columns: calc((100% - 2 * var(--pad) - 3 * 10px) / 4); }
  .track.four { grid-auto-columns: calc((100% - 2 * var(--pad) - 2 * 10px) / 3); }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .tabs {
    position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(10,10,10,0.98); border-bottom: 1px solid var(--line);
    display: none; padding: 8px 0;
  }
  .tabs.open { display: flex; }
  .tabs a { display: block; padding: 14px var(--pad); font-size: 16px; }
  .tabs a.active::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
  .logo { font-size: 26px; }
  .track, .track.four { grid-auto-columns: 72%; }
  .hero-content { bottom: 120px; }
  .hero-dots { bottom: 96px; left: var(--pad); right: auto; }
  .rows { margin-top: -60px; }
  .home-about { grid-template-columns: 1fr; }
  .home-about img { width: 120px; }
  .work-card { grid-template-columns: 1fr; }
  .work-card .poster { width: 120px; }
  .proj-grid, .contact-grid, .about-wrap { grid-template-columns: 1fr; }
  .about-wrap img { max-width: 300px; }
  .arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
