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

:root {
  /* Kodak-inspired palette */
  --bg:        #0E0B08;   /* warm near-black, like exposed film base */
  --bg-mid:    #1A1510;   /* slightly lighter warm dark */
  --bg-card:   #211A12;   /* card/still background */
  --kodak:     #F7A800;   /* Kodak trademark yellow */
  --kodak-dim: #7A5200;   /* muted amber */
  --kodak-red: #C8392B;   /* filmic 70s/80s red */
  --cream:     #F0E6D0;   /* Portra highlight */
  --muted:     #6B5E4A;   /* warm gray */
  --rule:      #2A2318;   /* border color */
  --font-display: 'Raleway', system-ui, sans-serif;
  --font-ui:      'Montserrat', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
}

/* ── REEL HERO ─────────────────────────────────── */
.reel-hero {
  position: relative;
  width: 100%;
  height: 95vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.reel-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(100vw, 168.89vh); /* 95vh * 16/9 */
  height: min(95vh, 56.25vw); /* 100vw * 9/16 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: var(--bg);
  cursor: pointer;
}

.reel-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  accent-color: var(--kodak);
}

.reel-video-vimeo {
  cursor: pointer;
}

.reel-video:fullscreen {
  width: 100%;
  height: 100%;
  background: #000;
}

.reel-video:fullscreen video {
  object-fit: contain;
}

.reel-click-catcher {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
}

.reel-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reel-video-vimeo iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.reel-video.playing .play-btn,
.reel-video.playing .reel-label {
  opacity: 0;
  pointer-events: none;
}

.play-btn,
.reel-label {
  transition: opacity 0.25s ease, background 0.25s, color 0.25s;
}

.play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--kodak);
  background: transparent;
  color: var(--kodak);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, color 0.25s;
  position: relative;
  z-index: 1;
}

.play-btn:hover {
  background: var(--kodak);
  color: var(--bg);
}

.play-btn svg { width: 22px; height: 22px; margin-left: 4px; }

.reel-label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.reel-identity {
  position: absolute;
  bottom: 2.5rem;
  left: 3rem;
  z-index: 2;
  transition: opacity 0.4s ease;
}

.reel-video.playing ~ .reel-identity {
  opacity: 0;
  pointer-events: none;
}

.reel-identity h1,
.reel-identity .identity-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 200;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1;
}

.reel-identity .sub {
  margin-top: 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--kodak);
}

.reel-mute-btn {
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--kodak);
  background: rgba(14,11,8,0.5);
  color: var(--kodak);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: background 0.25s, color 0.25s, opacity 0.25s ease;
}

.reel-mute-btn:hover {
  background: var(--kodak);
  color: var(--bg);
}

.reel-mute-btn svg {
  width: 16px;
  height: 16px;
}

.reel-video.started.show-controls .reel-mute-btn {
  opacity: 1;
  pointer-events: auto;
}

.reel-fullscreen-btn {
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--kodak);
  background: rgba(14,11,8,0.5);
  color: var(--kodak);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: background 0.25s, color 0.25s, opacity 0.25s ease;
}

.reel-fullscreen-btn:hover {
  background: var(--kodak);
  color: var(--bg);
}

.reel-fullscreen-btn svg {
  width: 16px;
  height: 16px;
}

.reel-video.started.show-controls .reel-fullscreen-btn {
  opacity: 1;
  pointer-events: auto;
}

/* When both mute and fullscreen buttons are present (Vimeo hero), stack them side by side */
.reel-mute-btn ~ .reel-fullscreen-btn {
  right: 7.5rem;
}

.reel-timeline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.25rem 3rem 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.reel-video.started.show-controls .reel-timeline {
  opacity: 1;
  pointer-events: auto;
}

.reel-timeline-bar {
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(240, 230, 208, 0.25);
  cursor: pointer;
}

.reel-timeline-bar:hover {
  height: 5px;
}

.reel-timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--kodak);
}

/* ── STICKY HEADER ─────────────────────────────── */
header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 1.25rem 3rem;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14,11,8,0.97);
  backdrop-filter: blur(6px);
}

nav { display: flex; gap: 2rem; }
.nav-right { justify-content: flex-end; }

nav a {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover { color: var(--kodak); }

.identity { text-align: center; }

.header-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 200;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1;
}

.sub {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* ── PROJECTS ──────────────────────────────────── */
.project {
  border-bottom: 1px solid var(--rule);
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.stills {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 2px;
  background: var(--bg);
  padding: 0 3rem;
}

.still:nth-child(n+5) {
  display: none;
}

.still {
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  overflow: hidden;
}

.still {
  position: relative;
}

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

.still video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.still.preview-playing video {
  opacity: 1;
}

.project-info {
  padding: 0.7rem 3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--kodak);
}

.divider { color: var(--rule); }

.project-type {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--kodak-red);
}

/* ── ABOUT + CONTACT ───────────────────────────── */
.about-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--rule);
}

.about {
  padding: 4rem 3rem;
  border-right: 1px solid var(--rule);
  display: flex;
  align-items: flex-start;
  gap: 2.25rem;
}

.about-photo {
  width: 180px;
  flex-shrink: 0;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-eyebrow {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--kodak);
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.9;
  margin-bottom: 1rem;
}

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

.location {
  font-size: 0.6rem !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--kodak) !important;
}

.contact { padding: 4rem 3rem; }

.contact h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  color: var(--cream);
}

.contact-form { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-form .hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

input, select, textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 300;
  padding: 0.75rem 0;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { border-color: var(--kodak-dim); }
select option { background: var(--bg-mid); }
textarea { resize: none; margin-top: 0.5rem; }

.contact-form button[type="submit"] {
  margin-top: 1rem;
  background: none;
  border: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  cursor: pointer;
  align-self: flex-start;
  transition: border-color 0.2s, color 0.2s;
}

.contact-form button[type="submit"]:hover {
  border-color: var(--kodak);
  color: var(--kodak);
}

/* ── FOOTER ────────────────────────────────────── */
footer {
  padding: 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid var(--rule);
}

.footer-links { display: flex; gap: 1.5rem; justify-content: center; }

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-links a svg.icon-imdb {
  width: 22px;
  height: 22px;
}

.footer-links a:hover { color: var(--kodak); }

.footer-rep, .footer-copy {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--rule);
}

.footer-copy { text-align: right; }

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 768px) {
  .reel-hero { height: auto; aspect-ratio: 16 / 9; }
  .reel-video {
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
  }
  .reel-identity { left: 1.5rem; bottom: 0.85rem; }
  .play-btn { width: 56px; height: 56px; }
  header { grid-template-columns: 1fr; gap: 1rem; padding: 1rem 1.5rem; text-align: center; }
  .nav-left, .nav-right { justify-content: center; }
  .project-info { padding: 0.7rem 1.5rem; }
  .stills {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 0.6rem;
    scrollbar-width: none;
  }
  .stills::-webkit-scrollbar { display: none; }
  .still {
    flex: 0 0 calc(50% - 1px);
    scroll-snap-align: start;
  }
  .about-contact { grid-template-columns: 1fr; }
  .about { border-right: none; border-bottom: 1px solid var(--rule); padding: 3rem 1.5rem; flex-direction: column; }
  .about-photo { width: 140px; }
  .contact { padding: 3rem 1.5rem; }
  footer { grid-template-columns: 1fr; gap: 0.75rem; text-align: center; padding: 1.5rem; }
  .footer-copy { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .still img { transition: none; }
}
