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

:root {
  --black:   #050505;
  --dark:    #0d0d0d;
  --surface: #141414;
  --border:  #222;
  --mid:     #333;
  --muted:   #777;
  --text:    #bbb;
  --white:   #f5f2ec;
  --gold:    #b8955a;
  --gold-lt: #d4ae78;
  --serif:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:    'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Google Fonts loaded in HTML ── */

/* ════════════════════════════════════
   HEADER
════════════════════════════════════ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 52px 16px;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

header::before { display: none; }

.header-identity {
  line-height: 1;
  text-align: center;
}

.header-name,
.header-identity .header-name {
  display: block;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  width: 100%;
  line-height: 1;
}

.header-name::after,
.header-identity .header-name::after { display: none; }

.header-title {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.nav-link {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
  border: none;
  background: none;
  font-family: var(--sans);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 100%;
  height: 1px;
  background: var(--gold);
  transition: right 0.3s cubic-bezier(.25,.46,.45,.94);
}

.nav-link:hover,
.nav-link.active { color: var(--white); }

.nav-link:hover::after,
.nav-link.active::after { right: 0; }

/* ════════════════════════════════════
   PAGE SHELL
════════════════════════════════════ */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* ════════════════════════════════════
   GENRE BAR
════════════════════════════════════ */
.genre-bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 52px;
  height: 52px;
  border-bottom: 1px solid var(--border);
  background: var(--dark);
  overflow-x: auto;
  flex-shrink: 0;
}

.genre-btn {
  height: 100%;
  padding: 0 24px;
  background: none;
  border: none;
  border-right: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.genre-btn:first-child { padding-left: 0; border-left: none; }
.genre-btn:last-child  { border-right: none; }

.genre-btn:hover { color: var(--white); background: rgba(255,255,255,0.02); }
.genre-btn.active { color: var(--gold-lt); }

/* ════════════════════════════════════
   THUMBNAIL GRID
════════════════════════════════════ */
.grid-wrap {
  padding: 3px 48px;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.thumb-item {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
}

/* Placeholder look — visible and intentional */
.thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.thumb-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.015) 50%, transparent 70%);
}

.thumb-placeholder-num {
  font-family: var(--serif);
  font-size: clamp(18px, 2.5vw, 32px);
  font-weight: 300;
  color: rgba(255,255,255,0.08);
  user-select: none;
  letter-spacing: 0.1em;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(.25,.46,.45,.94),
              filter 0.5s;
  filter: brightness(0.8) saturate(0.85);
}

.thumb-item:hover img {
  transform: scale(1.06);
  filter: brightness(1) saturate(1);
}

/* Hover overlay */
.thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.3)  40%,
    transparent      70%
  );
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  transition: opacity 0.3s;
}

.thumb-item:hover .thumb-overlay,
.thumb-item:focus .thumb-overlay { opacity: 1; }

.thumb-title {
  font-family: var(--serif);
  font-size: clamp(12px, 1.2vw, 17px);
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.thumb-genre {
  margin-top: 4px;
  font-size: 8px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

@keyframes award-breathe {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(0.94); }
}

.thumb-award {
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  pointer-events: none;
  width: clamp(110px, 14%, 150px);
  animation: award-breathe 3s ease-in-out infinite;
}

.thumb-award.award-left {
  left: 10px;
  right: auto;
}

.thumb-award.award-bottom-right {
  top: auto;
  bottom: 10px;
  right: 10px;
}

.thumb-award img {
  width: 100%;
  height: auto;
  display: block;
}

/* hide old text spans — not used anymore */
.thumb-award-star,
.thumb-award-text { display: none; }

.modal-award {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
}

.modal-award img {
  height: 72px;
  width: auto;
  display: block;
  opacity: 0.9;
}

.modal-award-star,
.modal-award-text { display: none; }

/* Play icon */
.thumb-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 44px; height: 44px;
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}

.thumb-play::after {
  content: '';
  display: block;
  width: 0; height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent rgba(255,255,255,0.9);
  margin-left: 3px;
}

.thumb-item:hover .thumb-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ════════════════════════════════════
   VIDEO MODAL
════════════════════════════════════ */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.97);
  align-items: flex-start;        /* start at top so tall content isn't clipped */
  justify-content: center;
  overflow-y: auto;               /* allow scrolling when content is taller than screen */
  -webkit-overflow-scrolling: touch;
  padding: 5vh 0;
}

.modal-backdrop.open { display: flex; }

.modal-inner {
  width: min(92vw, 1200px);
  position: relative;
  margin: auto;                   /* centres vertically when it fits, scrolls when it doesn't */
}

.modal-close-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 16px;
}

.modal-label {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.modal-close {
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover { color: var(--white); }

.modal-video-wrap {
  aspect-ratio: 16 / 9;
  background: #000;
  width: 100%;
  display: block;
  line-height: 0;
  font-size: 0;
}

.modal-video-wrap iframe {
  width: 100%; height: 100%; border: none; display: block; vertical-align: top;
}

#modalEndCover {
  display: none;
  position: absolute;
  inset: 0;
  background: #000;
  pointer-events: none;
}

.modal-title-bar {
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.modal-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--white);
}

.modal-credit {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  flex-shrink: 0;
}

/* Campaign / related trailers */
.modal-related {
  margin-top: 12px;
  padding-top: 0;
}

.modal-related-label {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.modal-related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.modal-related-thumb {
  position: relative;
  width: 200px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.modal-related-thumb:hover { border-color: var(--gold); }

.modal-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.75);
  transition: filter 0.25s;
}

.modal-related-thumb:hover img { filter: brightness(1); }

.modal-related-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
}

.related-award {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 54px;
  pointer-events: none;
  animation: award-breathe 3s ease-in-out infinite;
}

.related-award img { width: 100%; height: auto; display: block; }

.modal-related-thumb-title {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--white);
}

/* ════════════════════════════════════
   ABOUT
════════════════════════════════════ */
.about-wrap {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 96px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 52px;
  align-items: start;
}

.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mid);
  overflow: hidden;
  perspective: 800px;
  transform-style: preserve-3d;
}

#aboutPhoto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  transition: transform 0.08s linear;
  will-change: transform;
}

.about-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-text-col { padding-top: 8px; }

.about-eyebrow {
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.about-name {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 40px;
}

.about-rule {
  width: var(--about-rule-width, 56px);
  height: 1px;
  background: var(--gold);
  margin-bottom: 40px;
}

.about-bio {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
  font-weight: 300;
  max-width: 520px;
}

/* ════════════════════════════════════
   AWARDS
════════════════════════════════════ */
.awards-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 96px 52px;
}

.section-eyebrow {
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-heading {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 72px;
  line-height: 1;
}

.award-year-block { margin-bottom: 56px; }

.award-year-label {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mid);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.award-row {
  display: grid;
  grid-template-columns: 100px 1fr 24px;
  align-items: center;
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.award-row-linked { cursor: pointer; }
.award-row-linked:hover { background: rgba(255,255,255,0.02); }
.award-row-linked:hover .award-arrow { color: var(--gold); opacity: 1; }
.award-row-linked:hover .award-category { color: var(--gold-lt); }

.award-status-col { display: flex; align-items: flex-start; padding-top: 3px; }

.award-status {
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid;
  white-space: nowrap;
}

.award-status-winner  { color: var(--gold-lt); border-color: rgba(200,169,110,0.5); background: rgba(200,169,110,0.08); }
.award-status-nominee { color: var(--muted);   border-color: var(--border); }
.award-status-silver  { color: #c0c0c0;        border-color: rgba(192,192,192,0.4); background: rgba(192,192,192,0.06); }
.award-status-bronze  { color: #cd7f32;        border-color: rgba(205,127,50,0.4);  background: rgba(205,127,50,0.06); }

.award-info { flex: 1; }

.award-body {
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.award-category {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 6px;
  transition: color 0.2s;
}

.award-project {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.award-arrow {
  font-size: 14px;
  color: var(--border);
  opacity: 0.5;
  transition: color 0.2s, opacity 0.2s;
  text-align: right;
}

/* ════════════════════════════════════
   CONTACT
════════════════════════════════════ */
.contact-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 52px 96px;
}

.contact-heading {
  font-size: clamp(28px, 3.2vw, 40px);
  color: var(--gold-lt);
}

.contact-blurb {
  font-size: 15px;
  line-height: 1.8;
  font-weight: 300;
  color: var(--text);
  max-width: 540px;
  margin-bottom: 28px;
}

.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.04em;
  color: var(--gold-lt);
  margin-bottom: 48px;
  position: relative;
  transition: color 0.2s;
}

.contact-email::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 1px;
  background: var(--gold);
  transition: right 0.3s cubic-bezier(.25,.46,.45,.94);
}

.contact-email:hover { color: var(--white); }
.contact-email:hover::after { right: 0; }

.contact-form {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-status {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-lt);
  min-height: 14px;
  margin: 0;
}

.field-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.field-input,
.field-textarea {
  display: block;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  padding: 16px 18px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.field-input:focus,
.field-textarea:focus { border-color: var(--gold); }

.field-textarea { resize: vertical; min-height: 148px; }

.submit-btn {
  align-self: flex-start;
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold-lt);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  padding: 16px 44px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.submit-btn:hover {
  background: var(--gold);
  color: var(--black);
}

/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-name {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.footer-copy {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--border);
}

/* ════════════════════════════════════
   SCROLLBAR
════════════════════════════════════ */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--mid); }

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
/* ── Tablet ── */
@media (max-width: 900px) {
  .about-wrap { grid-template-columns: 1fr; gap: 36px; padding: 56px 32px; justify-items: center; }
  /* Keep the portrait shape (don't force a landscape crop), just shrink it */
  .about-photo-placeholder { max-width: 280px; aspect-ratio: 3/4; margin: 0 auto; }
  .about-text-col { width: 100%; }
}

/* ── Header restacks early so the nav never crowds the name ── */
@media (max-width: 1024px) {
  /* Stack name + title, with nav centred below — no crowding */
  header {
    position: sticky;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 24px 13px;
  }
  header::before { display: none; }

  .header-identity { text-align: center; width: 100%; }

  .header-name,
  .header-identity .header-name {
    font-size: 28px;
    letter-spacing: 0.18em;
  }
  .header-title { font-size: 9px; letter-spacing: 0.32em; margin-top: 4px; }

  nav {
    width: 100%;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
  }
  .nav-link { font-size: 10px; letter-spacing: 0.24em; padding-bottom: 3px; }

  /* Sticky header sits in flow now — drop the fixed-header offset */
  .page { padding-top: 0; }
}

/* ── Mobile & small tablet ── */
@media (max-width: 800px) {
  /* Tighten the stacked header further on small screens */
  header { gap: 9px; padding: 14px 16px 11px; }
  .header-name,
  .header-identity .header-name { font-size: 24px; letter-spacing: 0.16em; }
  .header-title { font-size: 8px; }
  nav { gap: 22px; }

  /* Genre bar */
  .genre-bar { padding: 0 16px; height: 46px; }
  .genre-btn { padding: 0 15px; font-size: 8px; letter-spacing: 0.2em; }
  .genre-bar::-webkit-scrollbar { display: none; }

  /* Grid: two up, tighter */
  .grid-wrap { padding: 2px; }
  .thumbnail-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }

  /* Touch has no hover — keep the label + gradient visible */
  .thumb-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 48%);
  }
  .thumb-play { display: none; }
  .thumb-title { font-size: 12px; }
  .thumb-genre { font-size: 8px; }

  /* Awards */
  .awards-wrap { padding: 48px 24px; }
  .award-row { grid-template-columns: 64px 1fr; gap: 16px; }
  .award-arrow { display: none; }
  .award-category { font-size: 17px; }
  .award-status { font-size: 7px; padding: 3px 6px; letter-spacing: 0.16em; }

  /* About */
  .about-wrap { padding: 40px 24px 64px; }
  .about-bio { font-size: 14px; }

  /* Contact */
  .contact-wrap { padding: 28px 24px 64px; }
  .contact-email { font-size: 20px; }

  footer { padding: 24px; }

  /* Video modal */
  .modal-inner { width: 92vw; }
  .modal-title { font-size: 18px; }
  .modal-award img { height: 48px; }
  .modal-related-thumb { width: calc(50% - 6px); }
  .modal-close-bar { padding-bottom: 12px; }
}

/* ── Phones ── */
@media (max-width: 480px) {
  .thumbnail-grid { grid-template-columns: 1fr; }
  .header-name,
  .header-identity .header-name { font-size: 22px; }
  nav { gap: 18px; }
  .section-heading { font-size: 34px; }
  .award-row { grid-template-columns: 1fr; gap: 8px; }
  .award-status-col { padding-top: 0; }
  .award-status { display: inline-block; }
}
