/* Taylor Blaylock — site stylesheet
   Color: Inked — black, warm white, charcoal, vibrant teal accent
   Type: Bricolage Grotesque (display) + Archivo (UI/body)
*/

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Archivo:wght@400;500;600&display=swap');

:root {
  --bg: #000000;
  --bg-raised: #464545;
  --paper: #DFDEDC;
  --paper-dim: #A6A7A2;
  --gold: #00ACAC;
  --teal: #A6A7A2;
  --hairline: #3A3939;
  --max-width: 1100px;
  --edge: clamp(24px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: 'Archivo', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

.display {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

/* ---------- Header ---------- */

.site-header {
  padding: 28px var(--edge) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-header .name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
}

.site-header nav { display: flex; gap: 28px; }

.site-header nav a {
  font-size: 15px;
  color: var(--paper);
  opacity: 0.55;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  opacity: 1;
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  color: var(--paper);
  padding: 8px 12px;
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
}

@media (max-width: 640px) {
  .site-header nav { display: none; }
  .site-header nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 78px;
    left: var(--edge);
    right: var(--edge);
    background: var(--bg-raised);
    border: 1px solid var(--hairline);
    padding: 20px;
    gap: 16px;
    z-index: 20;
  }
  .nav-toggle { display: inline-block; }
}

/* ---------- Hero ---------- */

.hero {
  width: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}
.hero .inner { max-width: var(--max-width); margin: 0 auto; padding: 110px var(--edge) 72px; }
.hero .role-line { color: var(--gold); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { font-size: clamp(46px, 8vw, 92px); line-height: 1.02; margin: 0 0 26px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: block; }
.hero p.lede { max-width: 56ch; font-size: 19px; color: var(--paper); opacity: 0.72; margin: 0 0 32px; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border: 1px solid var(--gold);
  color: var(--paper);
  font-size: 15px;
  background: none;
  cursor: pointer;
  font-family: 'Archivo', sans-serif;
  transition: background 0.2s ease, color 0.2s ease;
}

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

/* ---------- Featured strip (home) ---------- */

.featured { width: 100%; background: var(--bg-raised); }
.featured .inner { max-width: var(--max-width); margin: 0 auto; padding: 72px var(--edge) 100px; }
.featured h2 { font-size: 28px; margin: 0 0 32px; }

.featured-grid { display: grid; grid-template-columns: 1fr; gap: 72px; }
.featured-grid .proj-title { font-size: clamp(24px, 3vw, 32px); }
.featured-grid .credits { font-size: 16px; }

.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 32px; }

.work-group-heading {
  grid-column: 1 / -1;
  font-size: 26px;
  color: var(--gold);
  margin: 56px 0 8px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}
.work-group-heading.first { margin-top: 0; padding-top: 0; border-top: none; }

@media (max-width: 700px) {
  .work-grid { grid-template-columns: 1fr; }
}

.reel-card { display: block; }

.reel-card .frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--bg);
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.reel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.reel-card .frame:hover img { transform: scale(1.03); }

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: 2px solid var(--paper);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  padding-left: 4px;
  pointer-events: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.reel-card .frame:hover .play-btn,
.reel-card .frame:focus-visible .play-btn { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.reel-card .frame:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Credit block: reads like an end credit */
.reel-card .meta { padding-top: 18px; }

.reel-card .proj-title {
  font-size: 22px;
  line-height: 1.25;
  color: var(--paper);
  margin: 0 0 12px;
  max-width: 40ch;
}

.credits {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 20px;
  row-gap: 4px;
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}
.credits div { display: contents; }
.credits dt { color: #BEBDBA; font-size: 13px; padding-top: 1px; }
.credits dd { margin: 0; color: var(--paper); }
.credits .proj-role { color: var(--gold); font-weight: 600; }

/* ---------- Work page ---------- */

.work-header { width: 100%; background: var(--bg); }
.work-header .inner { max-width: var(--max-width); margin: 0 auto; padding: 88px var(--edge) 24px; }
.work-header h1 { font-size: clamp(40px, 6vw, 64px); margin: 0 0 16px; }


.filters { width: 100%; background: var(--bg); border-bottom: 1px solid var(--hairline); }
.filters .inner { max-width: var(--max-width); margin: 0 auto; padding: 16px var(--edge) 40px; display: flex; flex-wrap: wrap; gap: 24px; }

.filters button {
  background: none;
  border: none;
  color: var(--paper);
  opacity: 0.55;
  font-family: 'Archivo', sans-serif;
  font-size: 15px;
  padding: 0 0 6px;
  border-bottom: 1px solid transparent;
  cursor: pointer;
}

.filters button:hover { opacity: 0.85; }

.filters button.active { opacity: 1; border-color: var(--gold); }

.work-grid-wrap { width: 100%; background: var(--bg-raised); }
.work-grid-wrap .inner { max-width: var(--max-width); margin: 0 auto; padding: 56px var(--edge) 104px; }


/* ---------- About ---------- */

.about-wrap { width: 100%; background: var(--bg); }
.about-wrap .inner { max-width: 760px; margin: 0 auto; padding: 104px var(--edge) 104px; }
.about-wrap h1 { font-size: clamp(40px, 6vw, 64px); margin: 0 0 32px; }

.about-wrap .bio { max-width: 62ch; }
.about-wrap .bio p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--paper);
  margin: 0 0 1.1em;
}
.about-wrap .bio .bio-lead {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  margin: 0 0 28px;
}
.about-wrap .bio-cta { margin-top: 20px; }

/* ---------- Contact ---------- */

.contact-wrap { width: 100%; background: var(--bg-raised); }
.contact-wrap .inner { max-width: 640px; margin: 0 auto; padding: 104px var(--edge) 128px; }
.contact-wrap h1 { font-size: clamp(40px, 6vw, 64px); margin: 0 0 24px; }

.contact-wrap p.lede { color: var(--paper); opacity: 0.6; margin-bottom: 40px; font-size: 18px; }

.contact-line {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--hairline);
  font-size: 20px;
}

.contact-line:last-child { border-bottom: 1px solid var(--hairline); }

.contact-line .label { font-size: 13px; color: var(--paper); opacity: 0.55; min-width: 80px; }

.contact-line a:hover { color: var(--gold); }

/* ---------- Footer ---------- */

.site-footer {
  padding: 32px var(--edge) 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  color: var(--paper);
  opacity: 0.55;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--hairline);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Video player (full screen) ---------- */

.player {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px var(--edge) 32px;
}
.player[hidden] { display: none; }

.player-frame {
  width: min(100%, calc((100vh - 180px) * 16 / 9));
  aspect-ratio: 16 / 9;
  background: var(--bg);
}
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.player-caption {
  width: min(100%, calc((100vh - 180px) * 16 / 9));
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: baseline;
}
.player-caption .t { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 20px; color: var(--paper); }
.player-caption .c { font-size: 15px; color: #BEBDBA; }

.player-close {
  position: absolute;
  top: 16px;
  right: var(--edge);
  background: none;
  border: 1px solid var(--hairline);
  color: var(--paper);
  font: 500 15px 'Archivo', sans-serif;
  padding: 8px 16px;
  cursor: pointer;
}
.player-close:hover { border-color: var(--gold); color: var(--gold); }

body.player-open { overflow: hidden; }

@media (max-width: 700px) {
  .player { padding: 56px 0 24px; }
  .player-frame, .player-caption { width: 100%; }
  .player-caption { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .reel-card img, .play-btn { transition: none; }
  .reel-card .frame:hover img { transform: none; }
}

/* ---------- Motion ---------- */
/* Only runs when JavaScript is on (html.js) and the visitor hasn't asked for reduced motion */

@media (prefers-reduced-motion: no-preference) {

  /* Home: headline lines rise into place like a title card, then the rest follows */
  .js .hero-title .line > span {
    transform: translateY(105%);
    animation: title-rise 0.9s cubic-bezier(0.2, 0.7, 0.1, 1) forwards;
  }
  .js .hero-title .line:nth-child(1) > span { animation-delay: 0.15s; }
  .js .hero-title .line:nth-child(2) > span { animation-delay: 0.3s; }
  .js .hero-title .line:nth-child(3) > span { animation-delay: 0.45s; }

  .js .hero .role-line,
  .js .hero .lede,
  .js .hero .btn {
    opacity: 0;
    animation: settle 0.7s ease-out forwards;
  }
  .js .hero .role-line { animation-delay: 0.05s; }
  .js .hero .lede { animation-delay: 0.85s; }
  .js .hero .btn { animation-delay: 1s; }

  @keyframes title-rise { to { transform: translateY(0); } }
  @keyframes settle { from { opacity: 0; } to { opacity: 1; } }
  .js .hero .lede { animation-name: settle-lede; }
  @keyframes settle-lede { from { opacity: 0; } to { opacity: 0.72; } }

  /* Work cards: the frame opens like widescreen bars parting, once, as it scrolls into view */
  .js .reel-card.reveal .frame {
    clip-path: inset(50% 0 50% 0);
    transition: clip-path 0.75s cubic-bezier(0.65, 0, 0.35, 1);
  }
  .js .reel-card.reveal .meta {
    opacity: 0;
    transition: opacity 0.5s ease-out 0.35s;
  }
  .js .reel-card.reveal.in .frame { clip-path: inset(0 0 0 0); }
  .js .reel-card.reveal.in .meta { opacity: 1; }
}

/* ---------- About photo ---------- */
.about-photo { margin: 0 0 48px; }
.about-photo img { width: 100%; height: auto; display: block; }
