:root {
  --bg: #0f0f0f;
  --text: #ece8e1;
  --muted: #c7c2b9;
  --line: #2f2f2f;
  --focus: #b6b0a4;
  --surface: #0a0a0a;
  --space-1: 0.6rem;
  --space-2: 1rem;
  --space-3: 1.4rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Instrument Sans", system-ui, sans-serif;
  padding: 2rem 1.2rem;
  overflow-x: hidden;
  overflow-y: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

main {
  width: min(1240px, 94vw);
  margin: 2rem auto;
  display: grid;
  grid-template-columns: minmax(280px, 460px) minmax(0, 1fr);
  gap: clamp(1.2rem, 2.6vw, 2.8rem);
  position: relative;
  z-index: 2;
  align-items: start;
}

.left-content {
  text-align: left;
}

.letter-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.letter-bg span {
  position: absolute;
  top: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.8rem, 8vw, 7.2rem);
  font-weight: 700;
  color: rgba(236, 232, 225, 0.1);
  line-height: 1;
  user-select: none;
}

.letter-bg span:nth-child(odd) {
  animation: crawl-up linear infinite;
}

.letter-bg span:nth-child(even) {
  animation: crawl-down linear infinite;
}

.letter-bg span:nth-child(1) {
  left: 2%;
  animation-duration: 20s;
  animation-delay: -4s;
}

.letter-bg span:nth-child(2) {
  left: 11%;
  animation-duration: 24s;
  animation-delay: -7s;
}

.letter-bg span:nth-child(3) {
  left: 20%;
  animation-duration: 22s;
  animation-delay: -2s;
}

.letter-bg span:nth-child(4) {
  left: 30%;
  animation-duration: 26s;
  animation-delay: -8s;
}

.letter-bg span:nth-child(5) {
  left: 39%;
  animation-duration: 23s;
  animation-delay: -5s;
}

.letter-bg span:nth-child(6) {
  left: 48%;
  animation-duration: 27s;
  animation-delay: -10s;
}

.letter-bg span:nth-child(7) {
  left: 58%;
  animation-duration: 21s;
  animation-delay: -3s;
}

.letter-bg span:nth-child(8) {
  left: 67%;
  animation-duration: 25s;
  animation-delay: -9s;
}

.letter-bg span:nth-child(9) {
  left: 76%;
  animation-duration: 22s;
  animation-delay: -6s;
}

.letter-bg span:nth-child(10) {
  left: 85%;
  animation-duration: 28s;
  animation-delay: -11s;
}

.letter-bg span:nth-child(11) {
  left: 93%;
  animation-duration: 24s;
  animation-delay: -1s;
}

@keyframes crawl-up {
  from {
    transform: translateY(105vh);
  }
  to {
    transform: translateY(-120vh);
  }
}

@keyframes crawl-down {
  from {
    transform: translateY(-120vh);
  }
  to {
    transform: translateY(105vh);
  }
}

.logo-rect {
  width: min(360px, 90vw);
  margin: 0 0 var(--space-3);
}

.logo-rect img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
}

.statement {
  margin: var(--space-2) 0 0;
  max-width: 45ch;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.14rem);
  line-height: 1.6;
}

.film-link {
  display: block;
  margin: 0;
  width: min(350px, 92vw);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 180ms ease;
  position: relative;
}

.film-link:hover {
  border-color: var(--text);
}

.film-link img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.film-link-badge {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 3;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: #fff;
  background: rgba(204, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.2rem 0.45rem;
}

.film-link-cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  color: #fff;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  padding: 0.52rem 0.6rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.06));
}

.contact {
  margin: 0;
  align-self: center;
  white-space: nowrap;
}

.contact a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.1rem;
  transition: border-color 180ms ease;
}

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

.media-row {
  margin-top: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.headshot {
  display: block;
  margin-top: var(--space-2);
  width: min(350px, 92vw);
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.carousel-section {
  width: 100%;
}

.carousel {
  position: relative;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  max-width: 860px;
  height: min(36vh, 380px);
  overflow: hidden;
}

.carousel-slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.45s ease;
}

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

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 1px solid rgba(236, 232, 225, 0.45);
  background: rgba(10, 10, 10, 0.55);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 4;
}

.carousel-arrow:hover {
  background: rgba(16, 16, 16, 0.92);
}

.carousel-prev {
  left: 0.6rem;
}

.carousel-next {
  right: var(--space-1);
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: var(--space-1);
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 4;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(236, 232, 225, 0.55);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.carousel-dot.is-active {
  background: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .letter-bg span {
    animation: none;
  }

  .slide {
    transition: none;
  }

  .film-link,
  .contact a {
    transition: none;
  }
}

@media (max-width: 980px) {
  main {
    grid-template-columns: 1fr;
  }

  .left-content {
    order: 1;
  }

  .carousel-section {
    order: 2;
  }

  .carousel {
    max-width: none;
    height: min(34vh, 300px);
  }

  .media-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
