:root {
  --bg: #0a0a0a;
  --fg: #f5f1ea;
  --muted: #888076;
  --accent: #d4a857;
  --line: #1f1d1a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid var(--line);
}
nav .logo {
  font-family: 'Georgia', serif;
  font-size: 1.05rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
nav ul { list-style: none; display: flex; gap: 2.5rem; }
nav ul a {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: sans-serif;
  color: var(--muted);
  transition: color 0.2s;
}
nav ul a:hover { color: var(--accent); }

/* HERO */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 35%, rgba(212,168,87,0.07), transparent 70%),
    linear-gradient(180deg, #0a0a0a 0%, #0d0c0a 55%, #0a0a0a 100%);
}
.hero::after {
  /* faint film-frame rule above the fold */
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 5rem;
  background: linear-gradient(180deg, transparent, var(--accent));
  opacity: 0.5;
}
.hero .kicker {
  font-family: sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.5em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 1.75rem; /* sits beneath the name */
}
.hero h1 {
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.hero .tagline {
  margin-top: 2rem;
  font-family: sans-serif;
  font-size: 1rem;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.7;
}
.scroll-cue {
  position: absolute;
  bottom: 6.5rem;
  font-family: sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* SECTIONS */
section {
  padding: 8rem 3rem;
  border-top: 1px solid var(--line);
  max-width: 1400px;
  margin: 0 auto;
}
.section-label {
  font-family: sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 4rem;
  max-width: 26ch;
}

/* WORK GRID */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 3rem;
}
.work-item {
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  padding: 0;
}
.work-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.work-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1a1a1a;
  margin-bottom: 1rem;
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) contrast(1.05);
  transition: transform 0.6s, filter 0.6s;
}
.work-item:hover .work-thumb img,
.work-item:focus-visible .work-thumb img {
  transform: scale(1.04);
  filter: grayscale(0) contrast(1);
}
.play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  border: 1px solid rgba(245,241,234,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: background 0.3s, border-color 0.3s;
}
.work-item:hover .play-icon,
.work-item:focus-visible .play-icon {
  background: var(--accent);
  border-color: var(--accent);
}
.play-icon::after {
  content: '';
  width: 0; height: 0;
  border-style: solid;
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent var(--fg);
  margin-left: 3px;
}
.work-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.5rem 0;
}
.work-title {
  font-size: 1.25rem;
  font-style: italic;
}
.work-credit {
  font-family: sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.work-credit .ext { color: var(--accent); }

/* CLIENTS */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
/* 14 highlights land as two clean rows of 7 on wide screens */
@media (min-width: 1200px) {
  .clients-grid { grid-template-columns: repeat(7, 1fr); }
}
.client-cell {
  background: var(--bg);
  padding: 2rem 1rem;
  text-align: center;
  font-family: sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.client-cell:hover { color: var(--accent); background: #111; }

.full-list-toggle {
  display: block;
  margin: 3rem auto 0;
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.full-list-toggle:hover { color: var(--accent); border-color: var(--accent); }
.full-client-list {
  display: none;
  columns: 4;
  column-gap: 3rem;
  list-style: none;
  margin-top: 3rem;
  font-family: sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.full-client-list.open { display: block; }
.full-client-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
}

/* ABOUT */
.about {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.about-portrait {
  aspect-ratio: 3/4;
  border: 1px solid var(--line);
  overflow: hidden;
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% center; /* Bo sits left-of-center in the frame */
  filter: contrast(1.05);
}
.about p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #d8d3c9;
}
.about p.lead {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--fg);
}

/* CONTACT */
.contact-block {
  text-align: center;
  padding: 10rem 2rem;
  border-top: 1px solid var(--line);
}
.contact-block h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 2rem;
  line-height: 1.1;
}
.contact-block .email {
  font-family: sans-serif;
  font-size: 1.35rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.5rem;
  display: inline-block;
}
.contact-meta {
  margin-top: 3rem;
  font-family: sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

footer {
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-family: sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5,5,5,0.92);
  padding: 4rem 2rem;
}
.lightbox.open { display: flex; }
.lightbox-frame {
  position: relative;
  width: min(1100px, 100%);
  aspect-ratio: 16/9;
  background: #000;
}
.lightbox-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: 1px solid rgba(245,241,234,0.4);
  border-radius: 50%;
  width: 44px; height: 44px;
  color: var(--fg);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.lightbox-close:hover { border-color: var(--accent); color: var(--accent); }
.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 0; right: 0;
  text-align: center;
  font-family: sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

/* SCROLL REVEAL */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  nav ul { gap: 1.25rem; }
  nav ul li.hide-mobile { display: none; }
  section { padding: 5rem 1.5rem; }
  .work-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about { grid-template-columns: 1fr; gap: 3rem; }
  .about-portrait { max-width: 320px; }
  .full-client-list { columns: 2; }
  .lightbox { padding: 0 0.75rem; }
  .lightbox-close { top: 0.75rem; right: 0.75rem; }
  footer { flex-direction: column; gap: 1rem; }
}
