:root {
  --bg: #0a0a0a;
  --text: #ededed;
  --muted: #888888;
  --accent: #f5a623;
  --card: #161616;
  --radius-card: 12px;
  --max: 1100px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
main { display: block; }

section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 24px;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.sub {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin: 20px 0 36px;
  max-width: 34ch;
}

.section-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(10px);
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

/* Pills */
.pill {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 100px;
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.pill:hover { transform: translateY(-2px); opacity: 0.92; }

.pill-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid #333;
  padding: 10px 22px;
}

.pill-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Hero */
.hero {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* About */
.about p {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  max-width: 52ch;
  color: #cfcfcf;
}

/* Work grids */
.grid { display: grid; gap: 20px; }

.grid-vertical {
  grid-template-columns: repeat(4, 1fr);
}

.grid-horizontal {
  grid-template-columns: repeat(3, 1fr);
}

/* Video cards */
.video-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: none;
  border-radius: var(--radius-card);
  background: var(--card);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  overflow: hidden;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.video-card:hover { transform: translateY(-4px); }

.video-card.vertical { aspect-ratio: 9 / 16; }
.video-card.horizontal { aspect-ratio: 16 / 9; }

.card-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 2;
}

.play {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 100px;
  background: rgba(245, 166, 35, 0.92);
  transition: transform 0.2s ease;
}

.play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #0a0a0a;
}

.video-card:hover .play { transform: scale(1.08); }

/* Iframe injected on play */
.video-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-card.playing { cursor: default; }
.video-card.playing:hover { transform: none; }

/* Contact */
.contact { text-align: center; }
.contact .sub { margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid #1c1c1c;
}

/* Scroll reveal (light motion) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

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

/* Responsive */
@media (max-width: 820px) {
  .grid-vertical { grid-template-columns: repeat(2, 1fr); }
  .grid-horizontal { grid-template-columns: 1fr; }
  section { padding: 80px 20px; }
}

@media (max-width: 480px) {
  .grid-vertical { grid-template-columns: repeat(2, 1fr); }
}
