/**
 * Steven Oritt -- Director Portfolio
 * Clean, minimal single-page layout.
 * Light theme, spacious two-column poster grid, subtle hover states.
 */


/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
  --bg:         #ffffff;
  --text:       #111111;
  --text-light: #767676;
  --font:       'Inter', -apple-system, sans-serif;
}


/* ==========================================================================
   Reset & base
   ========================================================================== */

*   { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a   { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul  { list-style: none; }


/* ==========================================================================
   Header (sticky, frosted-glass)
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 6vw;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header__logo {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header__nav {
  display: flex;
  gap: 3vw;
}

.header__nav a {
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  transition: color 0.3s ease;
}

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


/* ==========================================================================
   Hero intro
   ========================================================================== */

.hero-intro {
  padding: 1.5rem 6vw 4vw;
  max-width: 1000px;
}

.hero-intro p {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-light);
}


/* ==========================================================================
   Current release
   ========================================================================== */

.current-release {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 0 6vw 1.5rem 6vw;
  gap: 2rem;
}

.current-release__info .label {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.current-release__info .title {
  font-size: 1.25rem;
  font-weight: 400;
}

.current-release__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.platform-logo img {
  height: 24px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.platform-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}


/* ==========================================================================
   Work grid (two-column poster layout, zero-gap)
   ========================================================================== */

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0 6vw 4vw 6vw;
}

.work-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  background: #f9f9f9;
}

/* Featured item spans full width */
.work-item--featured {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-item:hover img {
  transform: scale(1.03);
}

/* White translucent overlay shown on hover */
.work-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.work-item:hover .work-item__overlay {
  opacity: 1;
}

.work-item__category {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.work-item__title {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  text-align: center;
  padding: 0 2rem;
}

.work-item--featured .work-item__title {
  font-size: 2rem;
}


/* ==========================================================================
   Shared section styling
   ========================================================================== */

.section {
  padding: 6vw;
  scroll-margin-top: 5rem;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text);
  margin-bottom: 3rem;
  display: block;
}


/* ==========================================================================
   About
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 6vw;
  max-width: 1200px;
}

.director-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 1.5rem;
  filter: grayscale(20%);
}

.about-links a {
  font-size: 0.8rem;
  color: var(--text-light);
  transition: color 0.3s;
}

.about-links a:hover {
  color: var(--text);
}

.about-content {
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 300;
}

.about-content p {
  margin-bottom: 1.5rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}


/* ==========================================================================
   Clients
   ========================================================================== */

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4vw;
}

.client-logo {
  height: 28px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.4;
  transition: all 0.3s;
}

.client-logo:hover {
  opacity: 0.8;
}


/* ==========================================================================
   Awards
   ========================================================================== */

.awards-list {
  max-width: 1100px;
}

.award-item {
  display: grid;
  grid-template-columns: 60px 160px 1fr 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  font-size: 0.9rem;
  font-weight: 300;
  align-items: baseline;
}

.award-item:first-child {
  padding-top: 0;
}

.award-year    { color: var(--text-light); }
.award-film    { font-weight: 500; }
.award-festival { color: var(--text); }
.award-detail  { color: var(--text-light); }


/* ==========================================================================
   Press
   ========================================================================== */

.press-list {
  max-width: 1000px;
  display: flex;
  flex-direction: column;
}

.press-link {
  display: flex;
  align-items: baseline;
  gap: 2vw;
  padding: 1rem 0;
  transition: opacity 0.3s ease;
}

.press-link:first-child {
  padding-top: 0;
}

.press-link:hover {
  opacity: 0.5;
}

.press-link__publication {
  font-weight: 500;
  font-size: 0.9rem;
  min-width: 120px;
}

.press-link__title {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-light);
}



/* ==========================================================================
   Contact form
   ========================================================================== */

.contact-form-col {
  max-width: 600px;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1rem 1rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid #eee;
  border-radius: 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 300;
  color: var(--text);
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #888;
}

.submit-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
  padding: 1rem 3rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-btn:hover {
  background: var(--text);
  color: var(--bg);
}

.submit-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}


/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 6vw;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 300;
  letter-spacing: 0.05em;
}


/* ==========================================================================
   Video modal (fullscreen overlay)
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal__close {
  position: absolute;
  top: 2rem;
  right: 3rem;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s;
}

.modal__close:hover {
  color: var(--text);
}

.modal__body {
  /* Fit 16:9 video to whichever viewport dimension is tighter */
  width: min(90vw, calc((100vh - 10rem) * 16 / 9));
  max-width: 1400px;
}

.modal__content {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.modal__content iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

/* Title and category displayed below the video player */
.modal__info {
  text-align: center;
  padding: 1.5rem 0 0;
}

.modal__info-category {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.modal__info-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
}


/* ==========================================================================
   Responsive: medium screens (awards reflow)
   ========================================================================== */

@media (max-width: 1200px) {
  .award-item {
    grid-template-columns: 60px 160px 1fr;
  }

  .award-detail {
    grid-column: 3;
  }
}


/* ==========================================================================
   Responsive: small screens / mobile
   ========================================================================== */

@media (max-width: 900px) {
  .header {
    padding: 6vw;
    flex-direction: column;
    gap: 1.5rem;
  }

  .work-grid {
    grid-template-columns: 1fr;
    padding: 0 8vw 8vw 8vw;
    gap: 0.25rem;
  }

  .work-item--featured {
    grid-column: auto;
    aspect-ratio: 16 / 9;
  }

  .section,
  .current-release,
  .footer {
    padding: 8vw;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .award-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 1.5rem 0;
  }

  .award-detail {
    grid-column: auto;
  }

  .press-link {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Show title below poster (overlay becomes static text) */
  .work-item {
    display: flex;
    flex-direction: column;
    overflow: visible;
    aspect-ratio: auto;
  }

  .work-item--featured {
    aspect-ratio: auto;
  }

  .work-item img {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .work-item__overlay {
    position: static;
    opacity: 1;
    background: none;
    padding: 0.4rem 0 1.2rem;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .work-item__category {
    display: none;
  }

  .work-item__title {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-light);
    text-align: left;
    padding: 0;
  }

  .work-item--featured .work-item__title {
    font-size: 0.85rem;
  }
}
