/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --text: #f0f0f0;
  --text-muted: #999;
  --accent: #c8a45a;
  --accent-hover: #dbb96a;
  --serif: 'Playfair Display', Georgia, serif;
  --heading: 'Raleway', sans-serif;
  --deco: 'Didact Gothic', sans-serif;
  --sans: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1400px;
  --nav-height: 72px;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

/* === Typography === */
h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); text-transform: uppercase; letter-spacing: 6px; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

/* === Navigation === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.nav-brand {
  font-family: var(--heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 6px;
}

.nav-brand:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-family: var(--deco);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s;
}

/* === Mobile Nav === */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* === Main Content === */
main {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* === Page Header === */
.page-header {
  padding: 4rem 0 2rem;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header .subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* === Hero / Featured Section (Home) === */
.hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
  letter-spacing: 6px;
}

.hero .tagline {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* === Press Quotes (Home) === */
.press-quotes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 1rem 0 2.5rem;
  text-align: center;
}

.press-quote {
  max-width: 600px;
}

.press-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.press-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--deco);
  font-style: normal;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.short-bio {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 0 2rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0 5rem;
}

.featured-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.featured-card:hover {
  transform: scale(1.01);
}

.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.featured-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  transition: background 0.3s;
}

.featured-card:hover .overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.featured-card .category-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.featured-card h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.featured-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  max-width: 600px;
}

/* === Card Quote (on featured cards) === */
.card-quote {
  margin: 0.5rem 0 0;
  max-width: 600px;
}

.card-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

.card-quote cite {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--deco);
  font-style: normal;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.featured-card .card-links {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

.featured-card .card-links a {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  transition: all 0.2s;
}

.featured-card .card-links a:hover {
  background: var(--accent);
  color: var(--bg);
}

/* === Project Grid (Short Films, Other Work) === */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  padding: 2rem 0 5rem;
}

.project-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.project-card .card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.project-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.project-card:hover .card-image img {
  transform: scale(1.05);
}

.project-card .card-body {
  padding: 1.5rem;
}

.project-card .category-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.project-card .card-links {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
}

.project-card .card-links a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.project-card .card-links a:hover {
  color: var(--accent-hover);
}

/* === Category Filter (Other Work) === */
.category-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem 0 2rem;
}

.category-filters button {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-muted);
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: var(--sans);
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.category-filters button:hover,
.category-filters button.active {
  border-color: var(--accent);
  color: var(--accent);
}

/* === Bio Page === */
.bio-headshot {
  max-width: 800px;
  margin: 2rem auto 0;
  border-radius: 8px;
  overflow: hidden;
}

.bio-headshot img {
  width: 100%;
  display: block;
}

.bio-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.bio-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* === Blog === */
.blog-grid {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0 5rem;
}

.blog-card {
  padding: 3rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.blog-card:first-child {
  padding-top: 1rem;
}

.blog-card:last-child {
  border-bottom: none;
}

.blog-card-image {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.blog-card-image img {
  width: 100%;
  display: block;
}

.blog-card .date {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.blog-card h3 {
  font-family: var(--deco);
  margin-bottom: 0.5rem;
}

.blog-card p {
  color: var(--text-muted);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.7;
}

.blog-card .read-more {
  display: inline-block;
  font-family: var(--deco);
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-empty {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
}

/* === Blog Post Page === */
.blog-post {
  max-width: 750px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.blog-post .post-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.blog-post h1 {
  margin-bottom: 2rem;
}

.blog-post .post-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.blog-post .post-body p {
  margin-bottom: 1.5rem;
}

/* Blog fonts — Didact Gothic for headings/captions, serif for body */
.blog-card h3,
.blog-post h1 {
  font-family: var(--deco);
}

.blog-card p,
.blog-card .date,
.blog-post .post-body,
.blog-post .post-meta,
.blog-empty {
  font-family: var(--serif);
}

.blog-post .back-link {
  display: inline-block;
  font-family: var(--deco);
  margin-bottom: 2rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === Contact === */
.contact-section {
  max-width: 600px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.contact-section p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
  padding: 0.8rem 2.5rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 4px;
  font-family: var(--deco);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover {
  background: var(--accent-hover);
}

/* === Card Headline === */
.card-headline {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 0.25rem;
}

.featured-card .card-headline {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  max-width: 600px;
}

/* === Card Buttons (More Info + Action) === */
.card-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 0.75rem;
}

.more-info-btn {
  display: inline-block;
  font-family: var(--deco);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  transition: color 0.2s;
}

.more-info-btn:hover {
  color: var(--accent-hover);
}

.action-btn {
  display: inline-block;
  font-family: var(--deco);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  transition: all 0.2s;
}

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

/* Featured card action button — white border for visibility on dark overlay */
.featured-card .action-btn {
  position: relative;
  z-index: 2;
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.featured-card .action-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.featured-card .more-info-btn {
  color: rgba(255,255,255,0.8);
}

.featured-card .more-info-btn:hover {
  color: #fff;
}

/* Stretched link: More Info covers entire featured card */
.featured-card .more-info-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* === Individual Project Page === */
.project-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.project-page .back-link {
  display: inline-block;
  font-family: var(--deco);
  margin-bottom: 2rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-hero-image {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.project-hero-image img {
  width: 100%;
  display: block;
}

.project-page .category-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-page h1 {
  margin-bottom: 1.5rem;
}

.project-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.project-trailer {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.project-trailer iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.project-action-btn {
  display: inline-block;
  font-family: var(--deco);
  padding: 0.9rem 2.5rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.2s;
}

.project-action-btn:hover {
  background: var(--accent-hover);
  color: var(--bg);
}

/* === Footer === */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* === Responsive === */
@media (max-width: 600px) {
  .featured-card {
    aspect-ratio: 4 / 3;
  }

  .featured-card .overlay {
    padding: 1.5rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

}
