/* =========================================================
   TOKENS
   ========================================================= */
:root {
  --color-bg:            #0B0B0C;
  --color-bg-alt:         #131214;
  --color-bg-raised:      #171617;
  --color-text:           #EDEAE4;
  --color-text-muted:     #8C8A85;
  --color-line:           #2A2826;
  --color-accent:         #A74132; /* brick red — directing */
  --color-accent-dim:     #752D23;
  --color-editing:        #7A776C; /* muted khaki — editing */
  --hero-top:             #1c1a17;
  --frame-1:              #201d18;
  --frame-2:              #0e0d0c;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }

.row {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

::selection { background: var(--color-accent); color: #0B0B0C; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* =========================================================
   SIGNATURE ELEMENT — runtime scrubber (click to seek)
   ========================================================= */
.scrubber {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--color-line);
  z-index: 200;
  cursor: pointer;
}
.scrubber__fill {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  transition: width 60ms linear;
  position: relative;
  z-index: 1;
}
.scrubber__ticks {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.scrubber__tick {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: rgba(237, 234, 228, 0.35);
}
.chapter-label,
.scrubber__time {
  position: fixed;
  top: 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  z-index: 200;
  background: rgba(11,11,12,0.6);
  padding: 2px 8px;
  border: 1px solid var(--color-line);
  border-radius: 2px;
  backdrop-filter: blur(4px);
}
.chapter-label { left: var(--gutter); }
.scrubber__time { right: var(--gutter); }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.header {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, var(--hero-top) 0%, var(--color-bg) 60%);
}

.header__grain {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 3px);
  opacity: 0.4;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.header__vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 18vw 2vw rgba(0,0,0,0.65);
  pointer-events: none;
}

.nav {
  padding-top: 2rem;
}
.nav__items {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav__link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  position: relative;
  padding-bottom: 2px;
  transition: color 200ms ease;
}
.nav__link .nav__tc {
  color: var(--color-accent);
  margin-right: 0.5em;
}
.nav__link:hover,
.nav__link:focus-visible { color: var(--color-text); }

.header__text-box {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.header__text { max-width: 900px; }

.full-bleed-image {
  display: block;
  width: 100vw;
  max-width: 100vw;
  height: auto;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.header__eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.55rem, 2.6vw, 0.8rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 1.25rem;
  white-space: nowrap;
}

@media (max-width: 400px) {
  .header__eyebrow { letter-spacing: 0.08em; }
}

.heading-primary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 7vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0;
  white-space: nowrap;
}

.header__text > p.role {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--color-text-muted);
  max-width: 36ch;
  margin: 1.5rem 0 2.25rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-bg);
  background: var(--color-accent);
  padding: 0.9em 1.6em;
  border-radius: 2px;
  transition: transform 200ms ease, background 200ms ease;
}
.btn:hover, .btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.12);
}
.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-accent);
}
.btn--outline:hover, .btn--outline:focus-visible {
  background: var(--color-accent);
  color: var(--color-bg);
  filter: none;
}
.btn--ghost {
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-line);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: var(--color-bg-alt);
  border-color: var(--color-text-muted);
  filter: none;
}

.scroll-cue {
  padding-bottom: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 28px;
  background: linear-gradient(var(--color-accent), transparent);
  animation: scrollpulse 2.2s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

/* =========================================================
   SECTION SHELL
   ========================================================= */
section { padding: clamp(4rem, 10vw, 8rem) 0; }
.section--alt { background: var(--color-bg-alt); }

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 1.5rem;
}
.section__head--plain {
  border-bottom: none;
  padding-bottom: 0;
}
.section__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0;
}
.section__label--editing { color: var(--color-editing); }
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin: 0.35em 0 0;
}
.section__count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  margin: 0;
}
.section__title--sub {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
}

/* =========================================================
   VIDEO EMBEDS
   ========================================================= */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 3px;
  background: #000;
  font-size: 0;
  line-height: 0;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  display: block;
}
.video-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-frame--spaced { margin-bottom: clamp(2.5rem, 6vw, 4rem); }

.brand-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  align-items: center;
  justify-content: space-between;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--color-line);
}
.brand-logo {
  height: 28px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 200ms ease;
}
.brand-logo:hover { opacity: 1; }
.brand-logo--large {
  height: 42px;
  max-width: 150px;
}

@media (max-width: 520px) {
  .brand-logos { gap: 1.5rem 2rem; justify-content: center; }
  .brand-logo { height: 20px; max-width: 96px; }
  .brand-logo--large { height: 30px; max-width: 110px; }
  .brand-logo:nth-child(n+5) { display: none; }
}

/* =========================================================
   WORK SAMPLES — alternating feature cards
   ========================================================= */
.reel {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vw, 6rem);
}
.reel__item {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.reel__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}
.reel__meta .tc { color: var(--color-accent); }

.reel__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0 0 0.6rem;
}
.reel__title--tight {
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  white-space: nowrap;
}
@media (max-width: 800px) {
  .reel__title--tight { white-space: normal; }
}
.reel__logline {
  color: var(--color-text-muted);
  max-width: 46ch;
  margin: 0 0 1.25rem;
}
.reel__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  padding: 0;
}
.reel__tags li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  border: 1px solid var(--color-line);
  padding: 0.3em 0.7em;
  border-radius: 2px;
}
.link__text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 2px;
  transition: color 200ms ease;
}
.link__text:hover { color: var(--color-accent); }
.link__text span { display: inline-block; transition: transform 200ms ease; }
.link__text:hover span { transform: translateX(4px); }

/* =========================================================
   EDITING — compact contact-sheet index
   ========================================================= */
/* =========================================================
   EDITING FILTER BUTTONS
   ========================================================= */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  padding: 0.5em 1em;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}
.filter-btn:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
}
.filter-btn.is-active {
  color: var(--color-bg);
  background: var(--color-editing);
  border-color: var(--color-editing);
}

/* =========================================================
   EDITING — compact contact-sheet index (scrollable, fading)
   ========================================================= */
.index-list__viewport {
  position: relative;
}
.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-line);
  max-height: 320px;
  overflow-y: auto;
}
.index-list__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--color-bg-alt) 85%);
  pointer-events: none;
}
.index-list__fade.is-hidden { display: none; }
.index-list__item {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--color-line);
  transition: padding-left 200ms ease, background 200ms ease;
}
.index-list__item:hover {
  padding-left: 0.5rem;
  background: rgba(255,255,255,0.015);
}
.index-list__item.is-hidden { display: none; }
.index-list__tc {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-editing);
}
.index-list__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
}
.index-list__title a {
  color: var(--color-text);
  border-bottom: 1px solid var(--color-line);
  transition: color 200ms ease, border-color 200ms ease;
}
.index-list__title a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.index-list__role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* =========================================================
   RECOGNITION — festival / press strip
   ========================================================= */
.laurels {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 3rem;
  align-items: flex-start;
  justify-content: space-between;
}
.laurel-figure {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0;
  max-width: 220px;
}
.laurel-figure__img-slot {
  height: 154px;
  display: flex;
  align-items: flex-end;
}
.laurel-figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.laurel-figure__project {
  display: block;
  color: var(--color-editing);
  margin-top: 0.2rem;
}
.laurel-img {
  height: 110px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 200ms ease;
}
.laurel-img:hover { opacity: 1; }
.laurel-img--large {
  height: 154px;
  max-width: 238px;
}

@media (max-width: 520px) {
  .laurel-img { height: 76px; max-width: 120px; }
  .laurel-img--large { height: 106px; max-width: 168px; }
  .laurel-figure { max-width: 160px; }
  .laurel-figure__img-slot { height: 106px; }
  .laurel-figure figcaption { font-size: 0.62rem; }
}

.laurels--small {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-line);
  justify-content: flex-start;
  gap: 1.5rem 2.25rem;
}
.laurel-img-sm {
  height: 78px;
  width: auto;
  max-width: 126px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 200ms ease;
}
.laurel-img-sm:hover { opacity: 1; }

@media (max-width: 520px) {
  .laurel-img-sm { height: 59px; max-width: 95px; }
  .laurels--small { gap: 1.25rem 1.5rem; justify-content: center; }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about__content {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about__text p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 52ch;
  margin: 0 0 2rem;
}
.about__photo-container {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--frame-1) 0%, var(--frame-2) 60%);
  border: 1px solid var(--color-line);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.about__photo-container img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
.about__photo-credit {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin: 0.75rem 0 0;
}
.about__photo-credit a {
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-line);
  transition: color 200ms ease, border-color 200ms ease;
}
.about__photo-credit a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* =========================================================
   CONTACT — closing-credits treatment
   ========================================================= */
.contact { text-align: center; }
.contact__info p {
  max-width: 52ch;
  margin: 0 auto 2.5rem;
  color: var(--color-text-muted);
}
.contact .btn { font-size: 1rem; padding: 1em 2em; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--color-line);
  padding: 2.5rem 0;
}
.footer .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__social-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}
.footer__social-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  transition: color 200ms ease;
}
.footer__social-links a:hover { color: var(--color-accent); }
.footer p {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin: 0;
}

.back-to-top {
  position: fixed;
  right: var(--gutter);
  bottom: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  background: rgba(11,11,12,0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease, color 200ms ease, border-color 200ms ease;
  z-index: 150;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { color: var(--color-accent); border-color: var(--color-accent); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 800px) {
  .reel__item { grid-template-columns: 1fr; }
  .about__content { grid-template-columns: 1fr; }
  .about__photo-container { order: -1; max-width: 320px; }
  .index-list__item {
    grid-template-columns: 3rem 1fr;
    row-gap: 0.35rem;
  }
  .index-list__role { grid-column: 2; }
  .index-list { max-height: 430px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

@media (max-width: 520px) {
  .nav__items { gap: 0.75rem 1rem; }
  .nav__link { font-size: 0.68rem; }
  .scrubber__time { display: none; }
}

@media (max-width: 360px) {
  .heading-primary { letter-spacing: -0.02em; }
}
