:root {
  --black: #0a0a0a;
  --cream: #f5efe6;
  --brown: #6f4f2c;
  --brown-light: #8a6438;
  --ink: #1c1712;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Helvetica, Arial, sans-serif;
  color: white;
  background: var(--black);
}

body.light-bg {
  background: var(--cream);
  color: var(--ink);
}

a {
  color: inherit;
}

h1, h2 {
  margin: 0;
  font-family: "Roboto Slab", Georgia, "Times New Roman", serif;
  font-weight: 700;
}

/* Nav */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 36px;
}

.site-nav .logo img {
  display: block;
  height: 30px;
  width: auto;
}

body.light-bg .site-nav .logo img {
  filter: invert(1);
}

.site-nav .nav-links {
  display: flex;
  gap: 30px;
}

.site-nav .nav-links a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .72;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.site-nav .nav-links a:hover,
.site-nav .nav-links a.active {
  opacity: 1;
}

.site-nav .nav-links a.active {
  border-bottom-color: currentColor;
}

@media (max-width: 700px) {
  .site-nav {
    padding: 18px 20px;
  }

  .site-nav .logo img {
    height: 24px;
  }

  .site-nav .nav-links {
    gap: 16px;
  }

  .site-nav .nav-links a {
    font-size: 10.5px;
    letter-spacing: .08em;
  }
}

/* Home hero */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
}

.hero video,
.hero .hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .38);
}

.hero .hero-headline {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  color: #fffdfa;
  font-size: clamp(30px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .55);
  animation: fade-in 1.2s ease both;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-band {
  background: linear-gradient(160deg, var(--brown-light), var(--brown));
  padding: 64px 36px 40px;
}

.intro-band .intro-text {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(20px, 3.4vw, 32px);
  font-weight: 700;
  line-height: 1.35;
  color: #fffdfa;
}

.site-footer {
  max-width: 900px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .8;
  text-align: right;
}

@media (max-width: 700px) {
  .intro-band {
    padding: 40px 22px 28px;
  }

  .site-footer {
    text-align: left;
    margin-top: 22px;
  }
}

/* Standard content pages (Work, Contact) */

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 130px 36px 90px;
  min-height: 100vh;
}

.page-header {
  max-width: 720px;
  margin: 0 0 44px;
}

.page-header h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1;
}

.page-header .tagline {
  margin-top: 14px;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: rgba(28, 23, 18, .78);
}

@media (max-width: 700px) {
  .page {
    padding: 104px 20px 70px;
  }

  .page-header {
    margin-bottom: 32px;
  }
}

/* Work grid */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}

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

@media (max-width: 620px) {
  .work-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.work-item {
  position: relative;
}

.work-item .media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
}

.work-item img,
.work-item video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-item video {
  opacity: 0;
  transition: opacity .35s ease;
}

.work-item:hover video,
.work-item:focus-within video {
  opacity: 1;
}

.work-item .meta {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.work-item .meta-text {
  font-size: 15px;
}

.work-item .meta-text .client {
  font-weight: 700;
}

.work-item .meta-text .project {
  display: block;
  margin-top: 2px;
  color: rgba(28, 23, 18, .65);
  font-style: italic;
}

.work-item .watch-link {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--brown);
  white-space: nowrap;
}

/* Contact page */

.contact-band {
  background: linear-gradient(160deg, var(--brown-light), var(--brown));
  color: #fffdfa;
}

.contact-band .page-header .tagline {
  color: rgba(255, 253, 250, .82);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 8px;
}

.contact-person {
  padding-top: 4px;
}

.contact-person .name {
  font-size: 20px;
  font-weight: 700;
}

.contact-person .role {
  margin-top: 4px;
  font-size: 14px;
  opacity: .85;
}

.contact-note {
  margin-top: 34px;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.6;
  opacity: .85;
}

.office-block {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.office-block .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .7;
}

.office-block .city {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 700;
}

.office-block address {
  margin-top: 4px;
  font-style: normal;
  font-size: 15px;
  opacity: .85;
  line-height: 1.5;
}

@media (max-width: 620px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
