/* ============================================================
   mrqtkl — design tokens
   ============================================================ */
:root {
  --ink: #16140f;
  --ink-70: rgba(22, 20, 15, 0.7);
  --ink-40: rgba(22, 20, 15, 0.4);
  --ink-12: rgba(22, 20, 15, 0.12);
  --paper: #f1eee7;
  --paper-dim: #e7e2d8;
  --mist: #b9b2a2;
  --oxide: #8c2f1b;
  --oxide-dim: rgba(140, 47, 27, 0.14);

  --display: "Fraunces", Georgia, serif;
  --sans: "Space Grotesk", Helvetica, Arial, sans-serif;

  --edge: clamp(20px, 4vw, 56px);
  --nav-h: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

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

::selection {
  background: var(--oxide);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--oxide);
  outline-offset: 3px;
}

/* ============================================================
   Identity bar — this IS the navigation
   ============================================================ */
.identity {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--edge);
  background: var(--paper);
  pointer-events: none;
}

.identity * {
  pointer-events: auto;
}

.wordmark {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--ink-40);
}

.wordmark .k {
  color: var(--oxide);
}

.roles {
  display: flex;
  gap: 2px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
}

.roles a {
  padding: 8px 10px;
  color: var(--ink-70);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.roles a:not(:last-child)::after {
  content: "/";
  margin-left: 12px;
  color: var(--mist);
}

.roles a:hover {
  color: var(--ink);
}

.roles a[aria-current="page"] {
  color: var(--oxide);
  border-bottom-color: var(--oxide);
}

.nav-toggle {
  display: none;
}

@media (max-width: 720px) {
  .roles {
    position: fixed;
    top: var(--nav-h);
    right: var(--edge);
    left: var(--edge);
    background: var(--paper);
    border: 1px solid var(--ink-12);
    flex-direction: column;
    gap: 0;
    padding: 6px 0;
    transform-origin: top right;
    transform: scaleY(0);
    opacity: 0;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
  .roles.open {
    transform: scaleY(1);
    opacity: 1;
  }
  .roles a::after {
    display: none !important;
  }
  .roles a {
    padding: 12px 16px;
    border-bottom: 1px solid var(--ink-12);
  }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.14em;
    color: var(--ink);
    cursor: pointer;
    padding: 8px;
  }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 40px var(--edge) 56px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--ink-12);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-40);
}

.site-footer a {
  color: var(--ink-70);
  border-bottom: 1px solid var(--mist);
}

.site-footer a:hover {
  color: var(--oxide);
  border-color: var(--oxide);
}

/* ============================================================
   HOME — carousel
   ============================================================ */
.carousel {
  position: relative;
  height: calc((100svh - var(--nav-h)) * 1.1);
  margin-top: var(--nav-h);
  width: 100%;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.carousel-stage {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
}

.carousel-track {
  height: 100%;
  width: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
}

.carousel-bottom {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--edge) 26px;
}

.carousel-caption {
  color: var(--ink-70);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.carousel-caption b {
  color: var(--ink);
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.02em;
  margin-right: 10px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 18px;
}

.carousel-counter {
  margin: 0;
  color: var(--ink-70);
  font-size: 11px;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  min-width: 52px;
  text-align: center;
}

.carousel-arrow {
  background: none;
  border: 1px solid var(--ink-70);
  color: var(--ink-70);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.carousel-arrow:hover {
  opacity: 1;
  background: var(--ink-12);
}

/* ============================================================
   MOVEMENT DIRECTOR — grid + lightbox
   ============================================================ */
.grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: calc(var(--nav-h) + 24px) var(--edge) 80px;
}

.grid-row {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.grid-row::-webkit-scrollbar {
  display: none;
}

.tile {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--paper-dim);
  flex: 0 0 auto;
  height: clamp(90px, 16vw, 140px);
}

.tile img {
  height: 100%;
  width: auto;
  display: block;
  transition: transform 0.6s ease;
}

.tile:hover img {
  transform: scale(1.035);
}

.tile-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--paper);
  background: var(--ink-70);
  padding: 5px 10px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tile:hover .tile-tag {
  opacity: 1;
  transform: translateY(0);
}

.tile.is-video .tile-tag {
  background: var(--oxide);
}

.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-badge span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(241, 238, 231, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.tile:hover .play-badge span {
  transform: scale(1.08);
}

.play-badge svg {
  width: 12px;
  height: 12px;
  fill: var(--ink);
  margin-left: 2px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(22, 20, 15, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: var(--edge);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 1100px;
  max-height: 86vh;
  width: 100%;
}

.lightbox-content img {
  max-height: 86vh;
  width: auto;
  margin: 0 auto;
}

.lightbox-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.lightbox-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: var(--edge);
  background: none;
  border: 1px solid var(--paper);
  color: var(--paper);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: calc(var(--nav-h) + 42px) var(--edge) 90px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}

.about-copy p {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.55;
  max-width: 30ch;
  margin: 0 0 28px;
}

.lead-name {
  font-weight: 700;
  color: var(--oxide);
}

.about-copy .bio-text {
  font-family: var(--sans);
  font-style: normal;
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  max-width: 56ch;
  color: var(--ink-70);
  margin: 0 0 30px;
}

.about-copy .note {
  font-family: var(--sans);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--ink-40);
  max-width: none;
}

.about-copy hr {
  border: none;
  border-top: 1px solid var(--ink-12);
  margin: 32px 0;
  max-width: 420px;
}

.about-contact {
  font-size: 13px;
  line-height: 2;
}

.about-contact a {
  border-bottom: 1px solid var(--mist);
}

.about-contact a:hover {
  color: var(--oxide);
  border-color: var(--oxide);
}

.about-images {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.about-images img {
  width: 50%;
}

@media (max-width: 800px) {
  .about {
    grid-template-columns: 1fr;
  }
}
