/* ===== Fonts (self-hosted, put files in /assets/fonts) ===== */
@font-face {
  font-family: "Bebas Neue";
  src: url("../assets/fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ===== Tokens ===== */
:root {
  --bg: #000;
  --fg: #fff;
  --fg-soft: rgba(255, 255, 255, 0.68);
  --line: rgba(255, 255, 255, 0.14);
  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --page-w: 1100px;
  --nav-h: 60px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
  color-scheme: dark;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }

/* ===== Navbar ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--page-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  line-height: 1;
}
.nav__links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  position: relative;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg-soft);
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--fg); }
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }

/* ===== Layout ===== */
.page {
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 24px 20px 32px;
}

/* ===== Hero ===== */
.hero { padding: 12px 0 20px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 9rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
}
.hero__sub {
  max-width: 620px;
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 300;
  color: var(--fg-soft);
}
.hero__image { margin-top: 24px; border-radius: 6px; overflow: hidden; }
.hero__image img { width: 100%; }

/* ===== Projects ===== */
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.06em;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.card {
  display: block;
  text-decoration: none;
}
.card__media {
  overflow: hidden;
  border-radius: 6px;
  background: #0a0a0a;
}
.card__media img {
  width: 100%;
  transition: transform 0.5s var(--ease);
}
.card:hover .card__media img,
.card:focus-visible .card__media img { transform: scale(1.04); }
.card__title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  line-height: 1.1;
}
.card__sub {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--fg-soft);
}

.card--featured .card__title { font-size: 2rem; }
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

/* ===== Video pages ===== */
.video-page {
  flex: 1;
  width: 100%;
  max-width: 1800px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 20px;
  padding-bottom: 20px;
}
.player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  border-radius: 6px;
  overflow: hidden;
}
.player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.player--short {
  aspect-ratio: 9 / 16;
  width: min(480px, 100%, calc((100vh - var(--nav-h) - 60px) * 9 / 16));
  margin: 0 auto;
}
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  /* never taller than the screen: 2 players + gap */
  max-width: calc((100vh - var(--nav-h) - 110px) * 16 / 9 * 2 + 20px);
  margin: 0 auto;
}
.compare__label {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2vw, 2rem);
  letter-spacing: 0.05em;
  line-height: 1.1;
}

/* ===== Text pages ===== */
.text-page { max-width: 680px; padding-top: 48px; }
.text-page h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  letter-spacing: 0.04em;
  line-height: 1;
  margin: 0 0 16px;
}
.text-page p { margin: 0 0 14px; color: var(--fg-soft); font-weight: 300; font-size: 1.05rem; }
.text-page a { color: var(--fg); text-underline-offset: 4px; }
.text-page a:hover { text-decoration-thickness: 2px; }

/* ===== Footer ===== */
.footer {
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 14px 20px 22px;
  font-size: 0.8rem;
  color: var(--fg-soft);
  border-top: 1px solid var(--line);
}

/* ===== Motion: soft reveal ===== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card__media img { transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 800px) {
  .grid-3 { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .compare { grid-template-columns: 1fr; max-width: 100%; }
}
@media (max-width: 480px) {
  .nav__links { gap: 18px; }
  .nav__brand { font-size: 1.7rem; }
}
