:root {
  --bg: #151515;
  --raised: #262626;
  --line: #2e2e2e;
  --text: #f1efe9;
  --muted: #a3a09a;
  --accent: #ffcf3f;
  --accent-ink: #1a1400;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* one spacing scale for the whole page */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 96px;
  --gutter: 48px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
}

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

a { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* top bar */

.topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  padding-top: var(--s3);
  padding-bottom: var(--s3);
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  font-variation-settings: "wdth" 75;
}

.topnav { display: flex; gap: var(--s3); }

.topnav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.topnav a:hover { color: var(--text); }

/* sections all sit the same distance apart */

main > section + section { padding-top: var(--s7); }

.section-title {
  margin: 0 0 var(--s4);
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 800;
  font-variation-settings: "wdth" 62;
  line-height: 1;
}

/* hero: headline and the video it refers to, top edges lined up */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: 88px;
  align-items: center;
  padding-top: var(--s6);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 5.2vw, 4.75rem);
  font-weight: 850;
  font-variation-settings: "wdth" 62;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.hero h1 .nowrap { white-space: nowrap; }

.hero .actions { margin-top: var(--s4); }

.hero-clip .clip-title { font-size: 1.15rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}

.btn:hover { background: #ffe07a; }

.btn-big { padding: 15px 26px; font-size: 1.1rem; }

.text-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.text-link:hover { text-decoration-color: var(--accent); }

/* work grid: three across, then four */

.clips {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s5) var(--s3);
}

.clips .clip { grid-column: span 4; }

.clips .clip:nth-child(n+4) { grid-column: span 3; }

.clips .clip:nth-child(n+4) .clip-title { font-size: 0.95rem; }

.facade {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

.facade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* thumbnails carry their own text, so the play button only shows on hover/focus */
.play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  opacity: 0;
}

.facade:hover .play,
.facade:focus-visible .play { opacity: 1; }

@media (hover: none) {
  .play {
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    opacity: 1;
  }
}

.embed {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.embed iframe { display: block; width: 100%; height: 100%; border: 0; }

.clip-meta {
  display: flex;
  gap: 12px;
  margin-top: var(--s2);
}

.avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.clip-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.3;
}

.clip-channel {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.subs { white-space: nowrap; }

.subs::before { content: "/ "; opacity: 0.5; }

.clip-note {
  margin: 6px 0 0;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
}

.niche-note {
  margin: var(--s5) 0 0;
  color: var(--muted);
}

/* clients */

.client-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s3) var(--s3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.client-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.client-list img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--raised);
}

/* the "and more" row: three blank avatars stacked like a group chat */
.client-list .more { grid-column: span 2; color: var(--muted); font-weight: 500; }

.more-dots { display: flex; flex: none; }

.more-dots i {
  width: 28px;
  height: 48px;
  overflow: visible;
}

.more-dots i::before {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--raised);
  border: 3px solid var(--bg);
}

.more-dots i:nth-child(2)::before { background: #303030; }
.more-dots i:nth-child(3)::before { background: #3a3a3a; }
.more-dots i:last-child { width: 48px; }

/* contact */

.contact { text-align: left; }

.contact .section-title { font-size: clamp(2.6rem, 7vw, 4.8rem); margin-bottom: var(--s2); }

.contact p {
  margin: 0 0 var(--s4);
  color: var(--muted);
}

.site-footer {
  padding-top: var(--s7);
  padding-bottom: var(--s4);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer p { margin: 0; }

/* smaller screens */

@media (max-width: 900px) {
  :root { --gutter: 24px; }
  main > section + section { padding-top: var(--s6); }
  .hero { grid-template-columns: 1fr; row-gap: var(--s5); padding-top: var(--s5); }
  .hero h1 { max-width: 12ch; }
  .clips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s3); }
  .clips .clip,
  .clips .clip:nth-child(n+4) { grid-column: span 1; }
  .site-footer { padding-top: var(--s6); }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .hero { padding-top: var(--s4); }
  .hero h1 { font-size: 11.5vw; }
  .clips { grid-template-columns: 1fr; }
  .client-list { grid-template-columns: 1fr 1fr; gap: var(--s2) 12px; font-size: 0.95rem; }
  .client-list img { width: 40px; height: 40px; }
  .client-list .more { grid-column: 1 / -1; }
  .topnav { gap: var(--s2); }
}
