/* ==========================================================================
   Template 06: Khalid Mohtaseb Cinema Strip (Triptychs & Shot Breakdown)
   Karol Mikina DOP / Color
   ========================================================================== */

:root {
  --bg-color: #0e0e10;
  --bg-surface: #151518;
  --text-main: #f5f5f7;
  --text-muted: #73737a;
  --text-dim: #3a3a42;
  --border-subtle: #1e1e24;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ratio-cinemascope: 2.39 / 1;
  --ratio-widescreen: 16 / 9;

  --transition-fast: 0.18s ease;
  --transition-smooth: 0.28s ease-out;
}

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

html {
  font-size: 16px;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Accessibility focus indicator */
a:focus-visible, button:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
}

/* ==========================================================================
   Corner Badge Chrome (Mohtaseb Viewfinder Style)
   ========================================================================== */
.corner-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(14, 14, 16, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 3vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-badge .slash {
  color: var(--text-dim);
}

.brand-badge .role-tag {
  color: var(--text-muted);
}

.corner-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.corner-nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.corner-nav-link:hover, .corner-nav-link.active {
  color: var(--text-main);
}

/* ==========================================================================
   Cinema Strip & Triptych Breakdown Layout
   ========================================================================== */
.strip-gallery-container {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 32px 3vw 160px;
  display: flex;
  flex-direction: column;
  gap: 14vh;
}

/* Section: Master Wide Establishing Frame */
.master-strip-card {
  position: relative;
  width: 100%;
  display: block;
  text-decoration: none;
  color: inherit;
}

.master-strip-frame {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ratio-cinemascope);
  background-color: var(--bg-surface);
  overflow: hidden;
}

.master-strip-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity var(--transition-smooth);
}

/* Section: 3-Shot Triptych (Wide / Medium / Close) */
.triptych-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.triptych-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
}

.triptych-frame {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ratio-widescreen);
  background-color: var(--bg-surface);
  overflow: hidden;
}

.triptych-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity var(--transition-smooth);
}

/* Technical Viewfinder Hover Caption */
.technical-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: rgba(14, 14, 16, 0.45);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
}

.master-strip-card:hover .master-strip-frame img,
.master-strip-card:focus-visible .master-strip-frame img,
.triptych-card:hover .triptych-frame img,
.triptych-card:focus-visible .triptych-frame img {
  opacity: 0.85;
}

.master-strip-card:hover .technical-caption,
.master-strip-card:focus-visible .technical-caption,
.triptych-card:hover .technical-caption,
.triptych-card:focus-visible .technical-caption {
  opacity: 1;
}

.tech-title {
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 2px;
}

.tech-spec {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* ==========================================================================
   Project View (project.html)
   ========================================================================== */
.strip-project-container {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 24px 3vw 160px;
}

.strip-back-nav {
  margin-bottom: 24px;
}

.strip-back-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.strip-back-link:hover {
  color: var(--text-main);
}

/* Video Player */
.strip-player-box {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ratio-cinemascope);
  background-color: #070708;
  overflow: hidden;
  margin-bottom: 36px;
}

.strip-video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.strip-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.strip-player-box:hover .strip-controls,
.strip-player-box:focus-within .strip-controls {
  opacity: 1;
}

.s-btn {
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Metadata Strip */
.strip-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 16px;
}

.s-title {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.s-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
}

/* Contact Sheet of 11 Stills */
.breakdown-stills-strip {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-bottom: 96px;
}

.strip-still-card {
  position: relative;
  background-color: var(--bg-surface);
  overflow: hidden;
}

.strip-still-card.span-12 {
  grid-column: span 12;
  aspect-ratio: var(--ratio-cinemascope);
}

.strip-still-card.span-6 {
  grid-column: span 6;
  aspect-ratio: var(--ratio-widescreen);
}

.strip-still-card.span-4 {
  grid-column: span 4;
  aspect-ratio: var(--ratio-widescreen);
}

.strip-still-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Technical Call Sheet Credits */
.strip-credits-block {
  max-width: 1100px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

.callsheet-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
}

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

.callsheet-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cs-name {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-main);
}

/* Next project link */
.strip-footer-pager {
  margin-top: 100px;
  padding-top: 36px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
}

.strip-pager-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.strip-pager-link:hover {
  color: var(--text-main);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
  .strip-gallery-container {
    gap: 8vh;
  }
  
  .triptych-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .callsheet-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .corner-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }

  .strip-gallery-container {
    padding: 24px 16px 80px;
    gap: 6vh;
  }

  .triptych-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .technical-caption {
    opacity: 1;
    padding: 14px 16px;
  }

  .breakdown-stills-strip {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .strip-still-card.span-12,
  .strip-still-card.span-6,
  .strip-still-card.span-4 {
    grid-column: span 1;
    aspect-ratio: var(--ratio-widescreen);
  }

  .callsheet-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
