/* twoeighti — film portfolio (Google-Docs style) */
:root {
  --bg: #ffffff;
  --ink: #1f1f1f;
  --muted: #5f6368;
  --line: #e0e0e0;
  --link: #1a45b5;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, system-ui, sans-serif;
  --page: min(780px, 94vw);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }

a { color: var(--link); }
a:hover { text-decoration: underline; }

.container { width: var(--page); margin: 0 auto; }

/* ---------- header / toolbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: #1a1a1a;
}

.nav-status { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }

/* ---------- hero / title ---------- */
.hero { padding: 4.5rem 0 1.5rem; }

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.hero-title {
  font-family: var(--serif);
  font-weight: normal;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.12;
}

.hero-lede {
  margin-top: 1.1rem;
  max-width: 60ch;
  color: var(--ink);
}

.hero-lede strong { font-weight: 600; }

/* ---------- sections ---------- */
.work { padding-top: 1.5rem; }

section {
  padding-top: 2.6rem;
}

.section-head { margin-bottom: 1.6rem; }

.section-head h2 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.45rem;
}

.filters { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }

.filter-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.8rem;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.filter-btn:hover { border-color: #999; }

.filter-btn.active {
  background: #f1f3f4;
  border-color: var(--ink);
}

/* ---------- projects list ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.card { cursor: pointer; }

.card-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f3f4;
  border: 1px solid var(--line);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-play { display: none; }

.card-meta { padding-top: 0.5rem; }

.card-meta h3 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: 1.15rem;
  color: var(--link);
}

.card-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.tag {
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
}

.card-desc {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty { margin-top: 1.5rem; color: var(--muted); }

/* ---------- about / contact ---------- */
.about-text p { margin-bottom: 1rem; }

.contact { text-align: center; }

.contact h2 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: 1.6rem;
}

.contact-lede { margin: 1rem auto 1.6rem; max-width: 46ch; color: var(--muted); }

.btn {
  display: inline-block;
  background: #1a45b5;
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn:hover { background: #1740a3; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer a { color: var(--muted); }

/* ---------- player modal ---------- */
.player {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
}

.player[hidden] { display: none; }

.player-window {
  position: relative;
  width: min(900px, 94vw);
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.player-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 0.9rem;
  cursor: pointer;
}

.player-close:hover { background: #f1f3f4; }

.player-video-wrap { aspect-ratio: 16 / 9; background: #000; }

.player-video-wrap video { width: 100%; height: 100%; object-fit: contain; }

.player-video-wrap iframe.player-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.player-meta { padding: 1rem 1.2rem 1.3rem; }

.player-meta h3 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: 1.25rem;
}

.player-meta p { margin-top: 0.35rem; color: var(--muted); font-size: 0.9rem; }

/* ---------- responsive ---------- */
@media (max-width: 780px) {
  .nav, .site-footer .container { padding-left: 1.25rem; padding-right: 1.25rem; }
  .nav-status { display: none; }
  .grid { grid-template-columns: 1fr; }
  .nav-links { gap: 1.1rem; }
}