:root {
  --bg: #FFFFFF;
  --ink: #1A1A18;
  --muted: #8A887F;
  --soft: #55534C;
  --ph-bg: #EDEBE4;
  --hover: #FF4D00;
  --line: #E0DED5;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main { flex-grow: 1; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--hover); }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 22px 24px;
  flex-wrap: wrap;
}

.wordmark {
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 56px;
  align-items: center;
  font-size: 22px;
  font-weight: 700;
}

.site-nav a[aria-current="page"],
.nav-item.current > .nav-toggle {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-item { position: relative; }

.nav-toggle {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.nav-toggle:hover { color: var(--hover); }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(26, 26, 24, 0.08);
  padding: 10px 0;
  display: none;
  flex-direction: column;
  min-width: 260px;
  z-index: 10;
}

/* Invisible bridge over the gap between the trigger and the menu, so the
   hover isn't lost while the cursor crosses it. */
.dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-item.open .dropdown { display: flex; }

@media (hover: hover) and (pointer: fine) and (min-width: 921px) {
  .nav-item:hover .dropdown { display: flex; }
}

/* Mobile-menu bits, hidden on desktop */
.menu-toggle { display: none; }
.drop-back { display: none; }

.dropdown a {
  padding: 8px 20px;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

/* Image placeholders (replaced by real photos later) */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ph-bg);
  background-image: repeating-linear-gradient(45deg, rgba(26, 26, 24, 0.05) 0px, rgba(26, 26, 24, 0.05) 1px, transparent 1px, transparent 14px);
  border: 1px solid var(--line);
}

.ph span {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Home */
.stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 48px 24px 0;
}

.still-link { display: block; }

.stack img,
.stills img,
.stills video {
  display: block;
  width: 100%;
  height: auto;
}

/* Production page */
.production {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding: 48px 24px 0;
}

.production .stills {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.prod-still { height: min(620px, 75vh); }

.production .info {
  width: 400px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 8px 8px 0;
}

.title-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.byline { font-size: 13px; }

.production h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.4;
}

.credits {
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
}

.credits a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.credits .self-credit { color: #E01400; }

.credits .cred-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.description {
  font-size: 12px;
  line-height: 1.6;
  color: var(--soft);
}

/* Upcoming */
.upcoming {
  padding: 152px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
  text-align: center;
}

.page-title {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.upcoming .page-title { margin-bottom: 40px; }

.upcoming .entry {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.entry .dates { font-size: 14px; color: var(--muted); }
.entry .title { font-size: 14px; font-weight: 600; }
.entry .title a { text-decoration: underline; text-underline-offset: 3px; }
.entry .venue { font-size: 14px; color: var(--soft); }

/* Contact */
.contact {
  padding: 152px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  text-align: center;
}

.contact .page-title { margin-bottom: 40px; }

.contact .bio {
  font-size: 17px;
  line-height: 1.6;
  color: var(--soft);
  max-width: 620px;
}

.contact .links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  align-items: center;
}

.contact .city { color: var(--muted); }

.assistant-work a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.assistant-work {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}

.sound-toggle {
  margin-top: 0;
  align-self: flex-start;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: none;
  border: 1px solid var(--ink);
  padding: 8px 16px;
  cursor: pointer;
}
.sound-toggle:hover { color: var(--hover); border-color: var(--hover); }

/* Costume slider: one slide at a time, swipe or arrows */
.carousel { position: relative; }

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-track img {
  width: 100%;
  flex-shrink: 0;
  height: auto;
  scroll-snap-align: start;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  background: var(--bg);
  border: none;
  width: 48px;
  height: 64px;
  cursor: pointer;
  padding: 0;
}
.carousel-btn:hover { color: var(--hover); }
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 48px 24px 56px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.site-footer a { display: block; width: fit-content; }

/* Responsive */
@media (max-width: 900px) {
  /* Images first, credits below — like the reference site */
  .production { flex-direction: column; }
  .production .info { width: auto; padding: 0 8px; }
}

/* Mobile: hamburger + full-screen menu */
@media (max-width: 920px) {
  .site-header {
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 16px;
    padding: 16px 20px;
  }

  .wordmark { font-size: 22px; position: relative; z-index: 40; }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 44px;
    height: 44px;
    padding: 6px;
    background: none;
    border: 0;
    cursor: pointer;
    position: relative;
    z-index: 40;
  }
  .menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--ink);
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

  .site-nav { display: none; }

  body.menu-open { overflow: hidden; }
  body.menu-open .site-nav {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    font-size: 28px;
    padding: 90px 24px;
    overflow-y: auto;
    text-align: center;
  }

  /* Category entries get a small chevron, like the reference */
  .site-nav .nav-toggle::after {
    content: " \203A";
    color: var(--muted);
    font-weight: 400;
  }

  /* Second level: hide top-level items, show Back + works */
  .site-nav.sub-open > a,
  .site-nav.sub-open .nav-item:not(.open) { display: none; }
  .nav-item.open > .nav-toggle { display: none; }

  .nav-item.open .dropdown {
    display: flex;
    position: static;
    border: 0;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    align-items: center;
    gap: 36px;
  }
  .dropdown::before { display: none; }
  .nav-item.open .dropdown a {
    font-size: 24px;
    font-weight: 700;
    white-space: normal;
    text-align: center;
    padding: 0;
  }

  .drop-back {
    display: block;
    font: inherit;
    font-size: 20px;
    font-weight: 700;
    color: var(--muted);
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
    margin-bottom: 4px;
  }
  .drop-back:hover { color: var(--hover); }
}

@media (max-width: 700px) {
  .home-still { height: min(480px, 70vh); }
  .prod-still { height: min(420px, 60vh); }
  .page-title { font-size: 32px; }
  .stack { gap: 24px; padding: 32px 20px 0; }
  .production { gap: 40px; padding: 32px 20px 0; }
  .production .stills { gap: 24px; }
  .upcoming, .contact { padding-top: 96px; }
  .carousel-btn { font-size: 36px; width: 40px; height: 56px; }
  .site-footer { font-size: 16px; }
}
