/* Nothing Is Real — visual comp. Not a build. Art direction pass. */

@font-face {
  font-family: "Urbanist";
  src: url("fonts/urbanist-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Urbanist";
  src: url("fonts/urbanist-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Urbanist";
  src: url("fonts/urbanist-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Urbanist";
  src: url("fonts/Urbanist-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0d0d0d;
  --ink: #e6e4df;
  --muted: #8b8882;
  --faint: #5e5c58;
  --canvas: #1c1b19;
  --rule: rgba(230, 228, 223, 0.12);
  --gutter: 24px;
  --margin: 72px;
  --radius: 32px;
  --font: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scrollbar-gutter: stable;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  min-height: 100%;
}

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

h1, h2, h3 {
  font-size: inherit;
  font-weight: inherit;
}

.d { display: inline; }
.m { display: none; }

/* ——— Grid ——— */

.band,
.nav,
.footer p,
.comp-label {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-left: var(--margin);
  padding-right: var(--margin);
}

.band {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

/* ——— Top bar ——— */

.site-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
}

.comp-label {
  padding-top: 10px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--faint);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 16px;
}

.wordmark {
  display: flex;
  align-items: center;
  line-height: 0;
}
.wordmark img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 240px;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 12px;
}


.pill-primary {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 13px 26px;
  line-height: 1;
  white-space: nowrap;
}

.mobile-menu { display: none; }

.resources-nav {
  display: inline-block;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--muted);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 12px 22px;
  line-height: 1;
  white-space: nowrap;
}
.resources-nav:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ——— Canvas ——— */

.canvas {
  position: relative;
  background: var(--canvas);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
}



/* ——— Hero ——— */

#hero {
  padding-top: 8px;
  padding-bottom: 8px;
}
#hero.reveal { opacity: 1; }
.canvas-hero.is-playing .mux-poster { opacity: 0; transition: opacity 400ms ease; }


.canvas-hero {
  grid-column: 1 / -1;
  height: 780px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ——— Positioning ——— */

.band-position {
  padding-top: 80px;
  padding-bottom: 56px;
}

.pos-a {
  grid-column: 1 / 11;
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--ink);
}

.pos-b {
  grid-column: 1 / 8;
  margin-top: 14px;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.5;
  color: var(--ink);
}

/* ——— Logos ——— */

#logos {
  padding-top: 48px;
  padding-bottom: 32px;
}

.kicker {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.logo-row {
  grid-column: 1 / -1;
  margin-top: 22px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.logo-row {
  overflow: visible;
}
.logo-row img.logo-qvb {
  height: 59px;
}

.logo-row img {
  display: block;
  height: 28px;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
  overflow: visible;
}

/* ——— Selected work ——— */

#selected {
  padding-top: 64px;
  padding-bottom: 24px;
}

.kicker-work {
  margin-bottom: 22px;
}

.work-stack {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px;
}


.canvas-work video.tile-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}
.canvas-work.is-previewing video.tile-preview.is-on {
  opacity: 1;
}
.canvas-work.is-previewing.is-on .mux-poster {
  opacity: 0;
  transition: none;
}


.canvas-work:not(.canvas-still)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36%;
  background: linear-gradient(to top, rgba(13,13,13,0.42), rgba(13,13,13,0));
  pointer-events: none;
  z-index: 1;
}

.canvas-work {
  grid-column: span 6;
  aspect-ratio: 16 / 9;
  height: auto;
  transition: filter 400ms ease;
}

.canvas-work:hover {
  filter: brightness(1.12);
}

.work-meta {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 20px;
  z-index: 2;
  max-width: calc(100% - 56px);
  pointer-events: none;
  overflow: hidden;
}

.canvas-work .work-title {
  margin-top: 5px;
  font-size: 18px;
  font-weight: 700;
  font-variation-settings: "wght" 700;
  letter-spacing: 0.005em;
  text-transform: none;
  color: var(--ink);
  line-height: 1.18;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.canvas-work .work-client {
  font-size: 11px;
  font-weight: 700;
  font-variation-settings: "wght" 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-transform: uppercase;
  line-height: 1.3;
  max-width: 100%;
}


/* ——— About ——— */

.band-about {
  padding-top: 96px;
  padding-bottom: 8px;
}

.band-about .kicker {
  grid-column: 2 / 9;
}

.about-col {
  grid-column: 2 / 9;
  margin-top: 22px;
}

.about-quote {
  margin: 0;
  padding: 0;
  border: 0;
}

.about-col p {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.58;
  letter-spacing: 0.005em;
}
.about-quote p {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.58;
  letter-spacing: 0.005em;
  color: var(--ink);
}

.about-quote p + p,
.about-col p + p {
  margin-top: 18px;
}

.about-col a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  color: var(--ink);
}

.about-name,
.about-role {
  font-weight: 600;
}


.about-byline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
.about-photo-link {
  display: block;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  line-height: 0;
}
.about-photo {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  object-position: center center;
  flex: 0 0 72px;
}
.about-li-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px !important;
}
.about-resources {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  line-height: 0;
}
.about-resources svg {
  display: block;
  width: 15px;
  height: 15px;
}
.about-li.about-li-row a { color: var(--muted); }
.about-resources { text-decoration: none !important; }
.about-li.about-li-row a:hover { color: var(--ink); }

.band-resources {
  padding-top: 72px;
  padding-bottom: 120px;
}
.band-resources .kicker { grid-column: 1 / -1; }
.res-list {
  grid-column: 1 / -1;
  margin-top: 0;
}
.res-item {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 36px 0;
}
.res-item a {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  color: var(--ink);
  text-decoration: none;
}
.res-item-copy {
  flex: 1 1 auto;
  min-width: 0;
}
.res-item-icon {
  display: block;
  flex: 0 0 140px;
  width: 140px;
  height: 140px;
  color: #e6e4df;
}
.res-item-title {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--ink);
}
.res-item-note {
  margin-top: 14px;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.5;
  color: var(--muted);
  max-width: 34em;
  text-wrap: pretty;
}
@media (max-width: 800px) {
  .res-list { grid-column: 1 / -1; }
  .res-item { padding: 28px 0; }
  .res-item a { gap: 16px; }
  .res-item-title { font-size: 32px; }
  .res-item-note { font-size: 16px; }
  .res-item-icon {
    flex-basis: 72px;
    width: 72px;
    height: 72px;
  }
}

.about-byline-text { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.about-byline .about-name,
.about-byline .about-role,
.about-byline .about-li { margin-top: 0 !important; }

.about-name {
  margin-top: 32px !important;
  font-size: 15px !important;
}

.about-role {
  margin-top: 4px !important;
  font-size: 15px !important;
}

.about-li {
  margin-top: 8px !important;
  font-size: 14px !important;
  font-weight: 500;
  color: var(--muted);
}

/* ——— Closing CTA ——— */

#cta {
  padding-top: 140px;
  padding-bottom: 120px;
  border-top: 1px solid var(--rule);
  margin-top: 64px;
}

.cta-line {
  grid-column: 1 / 11;
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ink);
}

.cta-action {
  grid-column: 1 / 6;
  margin-top: 40px;
}

.cta-convo {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 22px 40px;
  line-height: 1;
}

/* ——— Footer ——— */

.footer {
  padding-top: 8px;
  padding-bottom: 40px;
}

.footer p {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0 28px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1;
}

.footer-li {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  height: 11px;
  line-height: 1;
}

.footer-li svg {
  display: block;
  width: 10px;
  height: 10px;
}
.footer-res {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  height: 11px;
  line-height: 1;
}
.footer-res svg {
  display: block;
  width: 11px;
  height: 11px;
}

/* ——— Motion ——— */

.reveal {
  opacity: 0;
}

.reveal.in {
  opacity: 1;
  transition: opacity 800ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transition: none; }
  .canvas-work { transition: none; }
}

/* ——— Mobile 4-col ——— */

@media (max-width: 800px) {
  :root {
    --gutter: 12px;
    --margin: 20px;
    --radius: 20px;
  }

  .d { display: none; }
  .m { display: inline; }

  .band {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .comp-label { padding-top: 8px; }

  .nav { padding-top: 14px; padding-bottom: 10px; }

  .nav-end { gap: 8px; }
  .resources-nav {
    font-size: 13px;
    padding: 10px 16px;
  }
  .wordmark img { height: 32px; max-width: 176px; }


  .pill-primary {
    font-size: 13px;
    letter-spacing: 0.01em;
    padding: 11px 20px;
  }

  #hero { display: none; }

  .band-position { padding-top: 48px; padding-bottom: 28px; }

  .pos-a {
    grid-column: 1 / -1;
    font-size: 32px;
  }

  .pos-b {
    grid-column: 1 / -1;
    margin-top: 10px;
    font-size: 16px;
  }

  #logos { padding-top: 32px; padding-bottom: 20px; }

  .logo-row {
    justify-content: space-between;
    gap: 0;
  }
  .logo-row img {
    height: 18px;
  }
  .logo-row img.logo-qvb {
    height: 38px;
  }

  #selected { padding-top: 40px; }

  .work-stack {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .canvas-work { grid-column: 1 / -1; }
  .work-stack { row-gap: 48px; column-gap: 0; }

  .work-meta { left: 16px; bottom: 14px; }

  .work-client { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; }
  .work-title { font-size: 16px; font-weight: 600; letter-spacing: 0.005em; }

  .band-about { padding-top: 64px; }

  .band-about .kicker,
  .about-col { grid-column: 1 / -1; }

  .about-col p { font-size: 15px; }
  .about-quote p { font-size: 16px; font-weight: 500; }

  #cta {
    padding-top: 72px;
    padding-bottom: 72px;
    margin-top: 32px;
  }

  .cta-line {
    grid-column: 1 / -1;
    font-size: 32px;
  }

  .cta-action { grid-column: 1 / -1; }

  .cta-convo {
    font-size: 15px;
    letter-spacing: 0.01em;
    padding: 16px 28px;
  }

  .footer p {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
  }
  .footer-li {
    transform: none;
    height: auto;
    min-width: 32px;
    min-height: 32px;
    padding: 8px 0;
    box-sizing: content-box;
  }
  .footer-li svg {
    width: 13px;
    height: 13px;
  }
  .footer-res {
    transform: none;
    height: auto;
    min-width: 32px;
    min-height: 32px;
    padding: 8px 0;
    box-sizing: content-box;
  }
  .footer-res svg {
    width: 13px;
    height: 13px;
  }
}

/* Involvement pills — secondary, per-tile. Hide once a film is playing. */
.work-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  max-width: 100%;
}
.work-pill {
  font-family: var(--font);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(28, 27, 25, 0.92);
  border: 1px solid rgba(230, 228, 223, 0.16);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}
.canvas-work .work-pills { display: none; }
.project .work-pills { display: flex; }
.mux-poster { background: var(--canvas); }
img.mux-poster[data-broken] { display: none; }

.project[hidden] { display: none !important; }
body.project-open .work-stack,
body.project-open .kicker-work,
body.project-open #hero,
body.project-open #position,
body.project-open #logos,
body.project-open #experience,
body.project-open #studio,
body.project-open #cta {
  display: none;
}
.project {
  grid-column: 1 / -1;
  padding: 0 0 96px;
}
.project-canvas { margin-bottom: 40px; }
.project .work-client { margin-top: 8px; }
.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
}
.project-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(230, 228, 223, 0.28);
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 18px 36px;
  line-height: 1;
  cursor: pointer;
}
.project-nav-btn:hover { color: var(--ink); border-color: rgba(230, 228, 223, 0.5); }
.project-title {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 8px 0 12px;
}
.project .work-pills {
  margin: 0 0 24px;
}
.project-copy {
  text-wrap: pretty;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  max-width: 42em;
  margin-bottom: 40px;
}
.project-canvas {
  width: 100%;
  aspect-ratio: 16 / 9;
  pointer-events: auto;
}
@media (max-width: 800px) {
  .project-title { font-size: 28px; }
  .project-copy { font-size: 16px; }
  .work-pill { font-size: 8px; padding: 4px 7px; }
}


video.mux-film,
img.mux-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  pointer-events: none;
}
video.mux-film { pointer-events: auto; z-index: 1; }
.canvas-hero video.mux-film { pointer-events: none; }
#projectCanvas { pointer-events: auto; }
#projectCanvas video.mux-film { pointer-events: auto; z-index: 1; }
@media (max-width: 800px) {
  #hero { display: none; }
}
