/* ---------- Reset & variables ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0b0b0c;
  --bg-alt: #141416;
  --fg: #f5f4f1;
  --fg-dim: #a7a6a3;
  --accent: #ff4d1f;
  --accent-dim: #c73c15;
  --border: #232326;
  --max-w: 1200px;
  --font-display: 'Anton', Impact, 'Arial Black', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

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

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.05;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #0b0b0c; }
.btn-primary:hover { background: #ff6a3d; }
.btn-outline { border-color: var(--fg); color: var(--fg); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11,11,12,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 1px;
}
.logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 36px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}
.nav-links a {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--fg);
  border-radius: 2px;
}

@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-alt);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a {
    padding: 18px 24px;
    border-top: 1px solid var(--border);
  }
}

/* ---------- Gallery hero (image-first) ---------- */
.gallery-hero { padding: 140px 24px 0; }
.gallery-intro {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-bottom: 32px;
}
.gallery-intro h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 6px;
}
.gallery-intro .gallery-role {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  color: var(--fg-dim);
}
.gallery-intro { padding-bottom: 24px; }
.gallery-intro-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.gallery-intro-top h1 { margin-bottom: 0; }
.gallery-intro .hero-ctas { flex-shrink: 0; }
@media (max-width: 700px) {
  .gallery-intro { display: flex; flex-direction: column; }
  .gallery-intro-top { display: contents; }
  .gallery-intro .hero-ctas { order: 3; margin-top: 20px; }
}
.gallery-intro .hero-role {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: var(--fg-dim);
  text-align: center;
  margin-top: 14px;
}
.gallery-cta {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 72px;
  box-sizing: content-box;
}
.gallery-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(11,11,12,0.72);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-project-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  color: var(--fg);
  text-align: center;
  padding: 0 20px;
}
.gallery-showmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
  border: 2px solid var(--accent);
  border-radius: 4px;
  color: var(--fg);
  transition: background 0.15s ease, color 0.15s ease;
}
.gallery-item:hover .gallery-showmore { background: var(--accent); color: #0b0b0c; }
/* Unlinked stills (dailies): no overlay, no pointer */
.gallery-item--still { cursor: default; }
/* Show 4 rows (12 tiles); js/main.js picks and shuffles which 12 */
.gallery-grid .gallery-item:nth-child(n+13) { display: none; }
@media (max-width: 1000px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .gallery-hero { padding-top: 110px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { aspect-ratio: 16 / 11; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 24px 80px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,77,31,0.16), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(255,77,31,0.10), transparent 50%),
    var(--bg);
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; width: 100%; }
.hero h1 {
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  margin-bottom: 8px;
}
.hero h1 .accent { color: var(--accent); }
.hero-role {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: var(--fg-dim);
  margin-bottom: 28px;
}
.hero p.lead {
  max-width: 640px;
  color: var(--fg-dim);
  font-size: 1.1rem;
  margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Section base ---------- */
.section {
  padding: 100px 24px;
  border-top: 1px solid var(--border);
}
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.section-head p { color: var(--fg-dim); margin-top: 16px; font-size: 1.05rem; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Reel embeds ---------- */
.reel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: var(--max-w);
  margin: 0 auto;
}
@media (max-width: 900px) { .reel-grid { grid-template-columns: 1fr; } }

.video-card {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
}
.video-card iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-thumb {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(160deg, #1a1a1d, #0b0b0c);
  transition: background 0.2s ease;
}
.video-card:hover .video-thumb { background: linear-gradient(160deg, #232326, #0b0b0c); }
/* Thumbnail image (set by js/main.js), darkened so the labels stay readable */
.video-thumb.has-img,
.video-card:hover .video-thumb.has-img {
  background: linear-gradient(rgba(11,11,12,0.35), rgba(11,11,12,0.7)), var(--thumb) center / cover no-repeat;
}
.video-thumb.has-img .video-thumb-label { text-shadow: 0 2px 12px rgba(0,0,0,0.6); }
.video-card:hover .video-thumb.has-img {
  background: linear-gradient(rgba(11,11,12,0.15), rgba(11,11,12,0.55)), var(--thumb) center / cover no-repeat;
}
.play-btn {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}
.video-card:hover .play-btn { transform: scale(1.1); }
.play-btn::after {
  content: '';
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #0b0b0c;
  margin-left: 4px;
}
.video-thumb-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.1rem;
  text-align: center;
  padding: 0 20px;
}
.video-thumb-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
}

/* ---------- Highlights strip (home) ---------- */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .highlights-grid { grid-template-columns: repeat(2, 1fr); } }
.highlight-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 22px;
  background: var(--bg-alt);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.highlight-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.highlight-card h3 {
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: none;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.highlight-card p { color: var(--fg-dim); font-size: 0.9rem; }

/* ---------- Work grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1000px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .work-grid { grid-template-columns: 1fr; } }

.work-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-alt);
  transition: border-color 0.15s ease, transform 0.15s ease;
  scroll-margin-top: 100px;
}
.work-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.work-card:target { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,77,31,0.25); }
.work-card-body { padding: 20px 22px 24px; }
.work-card-body h3 {
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: none;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.work-card-body p { color: var(--fg-dim); font-size: 0.9rem; margin-bottom: 14px; }
.work-card-body .work-card-meta {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fg);
  margin-bottom: 8px;
}
/* Video thumbnail sitting at the top of a project card */
.work-card .video-card { border: 0; border-radius: 0; }
.work-card-link {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Timeline (About) ---------- */
.timeline {
  border-left: 2px solid var(--border);
  padding-left: 36px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -43px;
  top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}
.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 6px;
}
.timeline-role {
  font-weight: 800;
  font-size: 1.05rem;
}
.timeline-date {
  color: var(--fg-dim);
  font-size: 0.85rem;
  font-weight: 600;
}
.timeline-sub {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.timeline-item ul { color: var(--fg-dim); font-size: 0.95rem; display: flex; flex-direction: column; gap: 6px; }
.timeline-item ul li { padding-left: 18px; position: relative; }
.timeline-item ul li::before {
  content: '\2013';
  position: absolute; left: 0; color: var(--accent);
}

/* ---------- Bio ---------- */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 800px) { .bio-grid { grid-template-columns: 1fr; gap: 32px; } }
.bio-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  background: var(--bg-alt);
}
.bio-card h3 { font-family: var(--font-body); text-transform: none; font-weight: 800; margin-bottom: 18px; }
.bio-facts { display: flex; flex-direction: column; gap: 14px; }
.bio-facts div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 10px; font-size: 0.9rem; }
.bio-facts span:first-child { color: var(--fg-dim); }
.bio-copy p { margin-bottom: 20px; color: var(--fg-dim); font-size: 1.05rem; }
.bio-copy p:first-child { color: var(--fg); font-size: 1.2rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.form-group { margin-bottom: 22px; }
label {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
  margin-bottom: 8px;
  color: var(--fg-dim);
}
input, select, textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 16px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}
textarea { resize: vertical; min-height: 140px; }

#form-status {
  margin-top: 18px;
  font-size: 0.9rem;
  font-weight: 600;
}
#form-status.success { color: #5fd07a; }
#form-status.error { color: #ff6a5f; }

.contact-info-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  background: var(--bg-alt);
}
.contact-info-card h3 { font-family: var(--font-body); text-transform: none; font-weight: 800; margin-bottom: 20px; }
.contact-info-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.contact-info-row span:first-child { color: var(--fg-dim); }
.contact-info-row a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-social a {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}
.footer-social a:hover { color: var(--accent); }
.footer-copy { color: var(--fg-dim); font-size: 0.85rem; }

/* ---------- Work card photo gallery ---------- */
.work-photo-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.work-photo-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-photo-gallery.single { grid-template-columns: 1fr; }

/* ---------- Client / platform logo marquee ---------- */
.logo-bar {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.logo-bar .eyebrow {
  display: block;
  text-align: center;
  margin-bottom: 28px;
}
.logo-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: logo-scroll 28s linear infinite;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-track span {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--fg-dim);
  white-space: nowrap;
  transition: color 0.15s ease;
}
.logo-track span:hover { color: var(--accent); }
.logo-track img {
  height: 46px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.logo-track img:hover { filter: none; opacity: 1; }
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 640px) {
  .logo-track { gap: 44px; }
  .logo-track span { font-size: 1.15rem; }
  .logo-track img { height: 34px; }
}
