:root {
  /* #dcdcdc matches the exact background color sampled from media/munzslide.webm,
     so the hero video/page seam disappears. */
  --bg: #dcdcdc;
  --bg-elevated: #d2d2d0;
  --bg-card: #f4f4f2;
  --fg: #141414;
  --muted: #55555a;
  --muted-dim: #7c7c80;
  --accent: rgb(255, 145, 0);
  --accent-dim: rgba(255, 145, 0, 0.14);
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.22);
  --header-bg: rgba(220, 220, 220, 0.78);
  --chip-bg: rgba(20, 20, 20, 0.78);
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.16);
  --header-h: 64px;
  --max-w: 1120px;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- LAYOUT HELPERS ---------- */

.site-header__inner,
.hero__inner,
.credibility__inner,
.work__inner,
.more-work__inner,
.about__inner,
.contact__inner,
.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: 20px;
}

.section-head {
  margin-bottom: 24px;
}

.section-head__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.section-head__title--sm {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.section-head__sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 52ch;
}

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--accent);
  color: #14100a;
}

.btn--primary:hover {
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--border-strong);
  color: var(--fg);
  background: transparent;
}

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

/* ---------- HEADER ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 40;
  display: flex;
  align-items: center;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
}

.brand__name {
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.brand__role {
  font-size: 0.68rem;
  color: var(--accent);
}

.site-nav {
  display: none;
  gap: 22px;
}

.site-nav__link {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}

.site-nav__link:hover {
  color: var(--fg);
}

.site-contact {
  display: flex;
  gap: 10px;
}

.site-contact__link {
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--fg);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 7px 12px;
  white-space: nowrap;
  transition: border-color var(--transition), color var(--transition);
}

.site-contact__link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (min-width: 720px) {
  .site-nav {
    display: flex;
  }
}

/* ---------- HERO ---------- */

.hero {
  padding: calc(var(--header-h) + 32px) 0 48px;
  background: radial-gradient(ellipse 120% 60% at 50% 0%, rgba(255, 145, 0, 0.08), transparent 60%);
}

.hero__inner {
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero__eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
}

.hero__title {
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.hero__tagline {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 46ch;
  margin: 0 0 26px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__visual {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg);
  position: relative;
  aspect-ratio: 900 / 1200;
}

.hero__visual-video,
.hero__visual-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s ease;
}

.hero__visual-video {
  z-index: 2;
  opacity: 1;
}

.hero__visual-image {
  z-index: 1;
  opacity: 0;
}

/* Opener finished (or failed) — settle on the Clio photo. */
.hero__visual--settled .hero__visual-video {
  opacity: 0;
}

.hero__visual--settled .hero__visual-image {
  opacity: 1;
}

.hero__visual-caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 3;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--chip-bg);
  backdrop-filter: blur(6px);
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero__visual--settled .hero__visual-caption {
  opacity: 1;
}

@media (min-width: 860px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- CREDIBILITY ---------- */

.credibility {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 28px 0;
}

.credibility__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.credibility__award {
  display: flex;
  align-items: center;
  gap: 14px;
}

.credibility__award-image {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
}

.credibility__award-name {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
}

.credibility__award-secondary {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: var(--muted-dim);
}

.credibility__clients-label {
  margin: 0 0 10px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.credibility__client-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

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

@media (min-width: 720px) {
  .credibility__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- FILTERS ---------- */

.work {
  padding: 56px 0;
}

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 32px;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.filter-tab:hover {
  border-color: var(--accent);
  color: var(--fg);
}

.filter-tab--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #14100a;
}

/* ---------- CASE STUDIES ---------- */

.case-studies {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.case-study {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
  display: grid;
  transition: opacity var(--transition), border-color var(--transition);
}

.case-study--flagship {
  border-color: rgba(255, 145, 0, 0.35);
}

.case-study--hidden {
  display: none;
}

.case-study__media {
  background: #000;
}

.case-study__media-el {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
}

.case-study__media-pending {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  min-height: 200px;
  padding: 28px 24px;
  color: var(--muted-dim);
  font-size: 0.9rem;
  border-bottom: 1px dashed var(--border-strong);
}

.case-study__media-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}

.case-study__body {
  padding: 24px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-study__eyebrow {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.case-study__title {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.case-study__meta {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.case-study__award-ref {
  display: inline-block;
  width: fit-content;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid rgba(255, 145, 0, 0.35);
  border-radius: 999px;
  margin-bottom: 6px;
}

.case-study__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.case-study__row-label {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.case-study__row-value {
  margin: 0;
  font-size: 0.92rem;
  color: var(--fg);
}

.case-study__reach {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.case-study__reach-item {
  display: flex;
  flex-direction: column;
}

.case-study__reach-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

.case-study__reach-label {
  font-size: 0.72rem;
  color: var(--muted);
}

.case-study__credits {
  font-size: 0.85rem;
  color: var(--muted);
}

.case-study__press {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.case-study__press a {
  color: var(--accent);
  text-decoration: none;
}

.case-study__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.case-study__gallery img,
.case-study__gallery video {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.case-study__external {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 4px;
}

@media (min-width: 780px) {
  .case-study {
    grid-template-columns: 1.1fr 1fr;
  }

  .case-study__media-el {
    height: 100%;
    max-height: none;
  }

  .case-study__body {
    padding: 32px;
    justify-content: center;
  }

  .case-study--flagship {
    grid-template-columns: 1.4fr 1fr;
  }
}

/* ---------- MORE WORK CAROUSEL (scroll-snap, no JS) ---------- */

.more-work {
  padding: 8px 0 56px;
}

.carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.carousel__track {
  display: flex;
  gap: 14px;
  padding: 4px 20px 4px;
  width: max-content;
}

.carousel__item {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 78vw;
  max-width: 340px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
}

.carousel__item img,
.carousel__item video {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.carousel__item figcaption {
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- ABOUT ---------- */

.about {
  padding: 56px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about__inner {
  display: grid;
  gap: 28px;
  align-items: start;
}

.about__years {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 12px;
}

.about__years span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}

.about__statement {
  font-size: 1rem;
  color: var(--fg);
  max-width: 62ch;
  margin: 0 0 18px;
}

.about__skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 16px;
}

.about__skills li {
  font-size: 0.85rem;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
}

.about__skills li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.about__photo {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  justify-self: start;
}

@media (min-width: 780px) {
  .about__inner {
    grid-template-columns: 1fr auto;
  }
}

/* ---------- CONTACT ---------- */

.contact {
  padding: 64px 0 80px;
  text-align: center;
}

.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.contact__text {
  color: var(--muted);
  margin: 0;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- FOOTER ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0 40px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted-dim);
}

.site-footer__inner a {
  color: var(--muted-dim);
  text-decoration: none;
}

.site-footer__inner a:hover {
  color: var(--accent);
}
