/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:      #0A0D12;
  --ink:     #EDF1F5;
  --muted:   #93A3B8;
  --accent:  #2F8FCE;
  --accent2: #4FA8DE;
  --dark:    #000509;
  --rule:    rgba(237,241,245,0.12);
  --hover:   #131A22;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'Inter', system-ui, sans-serif;
}
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Nav ────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 3rem;
  height: 60px;
  background: rgba(10,13,18,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--rule);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 1px 20px rgba(0,0,0,0.06); }
.nav-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active, .mobile-nav a.active { color: var(--ink); }
.nav-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-menu-btn span {
  display: block; width: 22px; height: 1px; background: var(--ink); transition: 0.3s;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  padding-top: 60px;
}
.hero-left {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 4rem 3rem;
  min-height: 100vh;
}
.hero-left::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,15,26,0.95) 0%, rgba(0,20,40,0.55) 50%, rgba(0,24,50,0.15) 100%);
  z-index: 1;
}
.hero-left::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url('B_Prof__Head_Shot-2.png');
  background-size: cover;
  background-position: center top;
  z-index: 0;
}
.hero-left-inner { position: relative; z-index: 2; }
.hero-eyebrow {
  font-size: 0.65rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(200,220,240,0.55);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: #EEF2F6;
  margin-bottom: 2rem;
}
.hero-title em { font-style: italic; color: rgba(100,180,230,0.85); }
.hero-tagline {
  font-size: 0.82rem;
  color: rgba(180,210,235,0.65);
  line-height: 1.75;
  border-left: 1.5px solid var(--accent2);
  padding-left: 1rem;
  max-width: 320px;
}
.hero-right {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 4rem 3rem;
  background: var(--bg);
  border-left: 0.5px solid var(--rule);
  min-height: 100vh;
}
.hero-stat-label {
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.4rem;
}
.hero-stat-list { list-style: none; margin-bottom: 3rem; }
.hero-stat-list li {
  font-family: var(--serif);
  font-size: 1.5rem; font-weight: 400;
  border-bottom: 0.5px solid var(--rule);
  padding: 0.6rem 0;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink);
}
.hero-stat-list li span { font-size: 0.65rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.hero-scroll {
  font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 0.75rem;
}
.hero-scroll::after {
  content: ''; display: block;
  width: 40px; height: 0.5px; background: var(--muted);
}

/* ── Section wrapper ────────────────────────────────────── */
section { padding: 6rem 3rem; }
.section-label {
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 3rem;
  display: flex; align-items: center; gap: 1rem;
}
.section-label::after {
  content: ''; flex: 1; height: 0.5px; background: var(--rule);
}

/* ── Reel ───────────────────────────────────────────────── */
#reel { border-top: 0.5px solid var(--rule); }
.reel-frame {
  width: 100%; aspect-ratio: 16/9;
  background: var(--dark);
  border-radius: 3px;
  position: relative; overflow: hidden;
  cursor: pointer;
}
.reel-frame::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 55%);
  opacity: 0.5;
  transition: opacity 0.4s;
}
.reel-frame:hover::before { opacity: 0.3; }
.reel-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.25rem;
}
.play-ring {
  width: 72px; height: 72px;
  border: 1px solid rgba(248,247,245,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s, transform 0.25s;
}
.reel-frame:hover .play-ring {
  border-color: rgba(248,247,245,0.8);
  transform: scale(1.08);
}
.play-ring svg { margin-left: 4px; }
.reel-caption {
  font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(248,247,245,0.35);
}
.reel-note {
  margin-top: 1rem; font-size: 0.78rem; color: var(--muted);
  text-align: right; font-style: italic;
}

/* ── Films ──────────────────────────────────────────────── */
#films { border-top: 0.5px solid var(--rule); }
.films-list { border-top: 0.5px solid var(--rule); }
.film-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  padding: 2.25rem 0;
  border-bottom: 0.5px solid var(--rule);
  transition: background 0.2s, padding 0.2s;
  cursor: default;
}
.film-item:hover {
  background: var(--hover);
  padding-left: 1.5rem; padding-right: 1.5rem;
  margin-left: -1.5rem; margin-right: -1.5rem;
}
.film-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400; letter-spacing: -0.01em;
  line-height: 1.05; margin-bottom: 0.6rem;
}
.film-title em { font-style: italic; color: var(--accent); }
.film-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.7; max-width: 560px; }
.film-role {
  font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.75rem;
}
.film-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; padding-top: 0.25rem; }
.film-year { font-family: var(--serif); font-style: italic; font-size: 0.85rem; color: var(--muted); }
.tag {
  font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 2px;
}
.tag-accent { background: rgba(26,111,168,0.1); color: var(--accent); }
.tag-muted { border: 0.5px solid var(--rule); color: var(--muted); }

/* ── Film extras: stills gallery & embed placeholder ───── */
.stills-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.1rem;
  background: none;
  border: 0.5px solid var(--rule);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 2px; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.stills-toggle:hover { border-color: rgba(47,143,206,0.5); color: var(--ink); }
.stills-toggle-arrow { display: inline-block; transition: transform 0.3s cubic-bezier(0.16,1,0.3,1); }
.stills-toggle[aria-expanded="true"] .stills-toggle-arrow { transform: rotate(180deg); }

.film-extra {
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.55s cubic-bezier(0.16,1,0.3,1),
              opacity 0.4s ease,
              margin-top 0.4s ease;
}
.film-extra.open {
  opacity: 1;
  margin-top: 1.75rem;
}
.film-extra-label {
  font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.85rem;
}
.stills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.stills-grid img {
  width: 100%; height: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 3px;
  filter: grayscale(0.1);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), filter 0.4s;
}
.stills-grid a { display: block; overflow: hidden; border-radius: 3px; }
.stills-grid a:hover img { transform: scale(1.04); filter: grayscale(0); }
.film-embed {
  width: 100%; aspect-ratio: 16/9;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  background: var(--dark);
}
.film-embed img { width: 100%; height: 100%; object-fit: cover; }
.film-embed .reel-center { gap: 1rem; }
.film-embed-note {
  margin-top: 0.75rem; font-size: 0.75rem; color: var(--muted); font-style: italic;
}

/* ── About ──────────────────────────────────────────────── */
#about { border-top: 0.5px solid var(--rule); }
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 5rem; }
.about-sticky { position: sticky; top: 80px; height: fit-content; }
.about-name {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300; line-height: 0.95;
  letter-spacing: -0.02em; margin-bottom: 0.75rem;
}
.about-role {
  font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 2rem;
}
.about-rule { width: 40px; height: 1.5px; background: var(--accent); }
.about-body p {
  font-size: 0.9rem; color: var(--muted);
  line-height: 1.85; margin-bottom: 1.25rem;
}
.about-body p:last-of-type { margin-bottom: 0; }
.about-body strong { color: var(--ink); font-weight: 500; }
.skills {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 2.5rem;
}
.skill {
  font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  border: 0.5px solid rgba(237,241,245,0.18);
  padding: 5px 12px; border-radius: 2px; color: var(--ink);
  transition: background 0.2s, border-color 0.2s;
}
.skill:hover { background: var(--hover); border-color: rgba(26,111,168,0.4); }

/* ── Contact ────────────────────────────────────────────── */
#contact {
  background: var(--dark); color: #EEF2F6;
  border-top: none; padding-bottom: 0;
}
#contact .section-label { color: rgba(248,247,245,0.3); }
#contact .section-label::after { background: rgba(248,247,245,0.08); }
.contact-headline {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 300; line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 4rem; max-width: 820px;
}
.contact-headline em {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 0.5px rgba(100,180,230,0.55);
}
.contact-rows { border-top: 0.5px solid rgba(248,247,245,0.08); }
.contact-row {
  display: flex; align-items: center; gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 0.5px solid rgba(248,247,245,0.08);
  transition: opacity 0.2s;
}
.contact-row:hover { opacity: 0.6; }
.contact-row-label {
  font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(248,247,245,0.3); min-width: 90px;
}
.contact-row-value {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 400; flex: 1;
}
.contact-row-arrow { font-size: 1rem; opacity: 0.3; transition: transform 0.2s, opacity 0.2s; }
.contact-row:hover .contact-row-arrow { transform: translateX(5px); opacity: 0.7; }
.footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem 3rem;
  border-top: 0.5px solid rgba(248,247,245,0.06);
  font-size: 0.65rem; letter-spacing: 0.08em;
  color: rgba(248,247,245,0.2);
  margin-top: 4rem;
}

/* ── Light footer (non-contact pages) ──────────────────── */
.footer-light {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem 3rem;
  border-top: 0.5px solid var(--rule);
  font-size: 0.65rem; letter-spacing: 0.08em;
  color: var(--muted);
}

/* ── Mobile nav drawer ─────────────────────────────────── */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: var(--bg); padding: 2rem 2rem;
  flex-direction: column; justify-content: center; gap: 2rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--serif); font-size: 2.5rem; font-weight: 300;
  color: var(--ink); display: block;
}
.mobile-nav-close {
  position: absolute; top: 1.5rem; right: 1.75rem;
  background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-left { min-height: 60vh; }
  .hero-right { min-height: auto; padding: 3rem 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-sticky { position: static; }
  .stills-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
  section { padding: 4rem 1.25rem; }
  .hero-left { padding: 3rem 1.25rem; }
  .hero-right { padding: 2.5rem 1.25rem; }
  .film-item { grid-template-columns: 1fr; gap: 1rem; }
  .film-item:hover { margin: 0; padding: 2.25rem 0; background: none; }
  .film-meta { flex-direction: row; align-items: center; }
  .contact-headline { font-size: clamp(2rem, 10vw, 3.5rem); }
  .footer, .footer-light { padding: 1.25rem; flex-direction: column; gap: 0.4rem; text-align: center; }
  .stills-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Motion system ──────────────────────────────────────── */

/* Page load — cinematic fade in */
body { animation: pageFadeIn 0.9s ease forwards; }
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Hero text entrance — staggered rise */
.hero-eyebrow  { animation: heroRise 0.9s cubic-bezier(0.16,1,0.3,1) 0.3s both; }
.hero-title    { animation: heroRise 1.0s cubic-bezier(0.16,1,0.3,1) 0.45s both; }
.hero-tagline  { animation: heroRise 0.9s cubic-bezier(0.16,1,0.3,1) 0.65s both; }
.hero-stat-label { animation: heroRise 0.8s cubic-bezier(0.16,1,0.3,1) 0.55s both; }
.hero-stat-list  { animation: heroRise 0.9s cubic-bezier(0.16,1,0.3,1) 0.70s both; }
.hero-scroll   { animation: heroRise 0.8s cubic-bezier(0.16,1,0.3,1) 0.85s both; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* Nav entrance */
.nav-logo { animation: navSlideIn 0.7s cubic-bezier(0.16,1,0.3,1) 0.2s both; }
@keyframes navSlideIn {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: none; }
}
.nav-links li:nth-child(1) { animation: navLinkIn 0.6s cubic-bezier(0.16,1,0.3,1) 0.35s both; }
.nav-links li:nth-child(2) { animation: navLinkIn 0.6s cubic-bezier(0.16,1,0.3,1) 0.45s both; }
.nav-links li:nth-child(3) { animation: navLinkIn 0.6s cubic-bezier(0.16,1,0.3,1) 0.55s both; }
.nav-links li:nth-child(4) { animation: navLinkIn 0.6s cubic-bezier(0.16,1,0.3,1) 0.65s both; }
@keyframes navLinkIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Scroll-triggered fade up */
  .fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
                transform 0.7s cubic-bezier(0.16,1,0.3,1);
  }
  .fade-up.visible { opacity: 1; transform: none; }

  /* Stagger film items */
  .film-item:nth-child(1).fade-up { transition-delay: 0s; }
  .film-item:nth-child(2).fade-up { transition-delay: 0.12s; }
  .film-item:nth-child(3).fade-up { transition-delay: 0.24s; }

  /* Nav underline sweep */
  .nav-links a { position: relative; }
  .nav-links a::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 0; height: 0.5px; background: var(--ink);
    transition: width 0.3s cubic-bezier(0.16,1,0.3,1);
  }
  .nav-links a:hover::after { width: 100%; }

  /* Film title colour shift on row hover */
  .film-title em { transition: color 0.3s ease; }
  .film-item:hover .film-title em { color: var(--accent2); }

  /* Film item — left accent bar reveal */
  .film-item { position: relative; }
  .film-item::before {
    content: ''; position: absolute; left: -1.5rem; top: 0; bottom: 0;
    width: 2px; background: var(--accent);
    transform: scaleY(0); transform-origin: bottom;
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
  }
  .film-item:hover::before { transform: scaleY(1); }

  /* Tag highlight on film hover */
  .film-item:hover .tag-accent { background: rgba(26,111,168,0.18); }

  /* Section label rule grow */
  .section-label::after {
    transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
    transform-origin: left; transform: scaleX(0);
  }
  .section-label.visible::after { transform: scaleX(1); }

  /* About underline bar grow */
  .about-rule {
    width: 0;
    transition: width 0.6s cubic-bezier(0.16,1,0.3,1) 0.3s;
  }
  .about-sticky.visible .about-rule { width: 40px; }

  /* Skill chip hover lift */
  .skill { transition: background 0.2s, border-color 0.2s, transform 0.2s; }
  .skill:hover { transform: translateY(-2px); }

  /* Contact row arrow nudge */
  .contact-row-arrow { transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), opacity 0.3s; }
}
