/* ============================================================
   TylerScheid.com — Main Stylesheet
   Aesthetic: Cinematic Editorial | Dark + Orange
   Author: Generated for Tyler Scheid
   ============================================================ */

/* ─────────────────────────────────────────────
   1. GOOGLE FONTS IMPORT
   Using Bebas Neue (cinematic display) +
   Barlow (clean body) + Playfair Display (accent)
───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Barlow+Condensed:wght@300;400;600;700&family=Playfair+Display:ital@1&display=swap');

/* ─────────────────────────────────────────────
   2. CSS CUSTOM PROPERTIES (Design Tokens)
   Central control for all colours, spacing, etc.
───────────────────────────────────────────── */
:root {
  /* Colour palette */
  --orange:        rgba(255, 89, 0, 0.759);
  --orange-solid:  #FF5900;
  --orange-glow:   rgba(255, 89, 0, 0.25);
  --orange-dim:    rgba(255, 89, 0, 0.15);
  --charcoal:      #141414;
  --dark:          #1c1c1c;
  --mid-dark:      #272727;
  --grey:          #3d3d3d;
  --mid-grey:      #6b6b6b;
  --light-grey:    #a8a8a8;
  --off-white:     #e8e4de;
  --white:         #f5f2ee;

  /* Typography */
  --font-display:  'Bebas Neue', 'Impact', sans-serif;
  --font-condensed:'Barlow Condensed', sans-serif;
  --font-body:     'Barlow', sans-serif;
  --font-accent:   'Playfair Display', serif;

  /* Spacing scale */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  7rem;
  --space-xxl: 12rem;

  /* Effects */
  --transition-fast:   150ms ease;
  --transition-smooth: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   600ms cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius:     4px;
  --shadow-orange:     0 0 40px rgba(255, 89, 0, 0.3);
  --shadow-card:       0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ─────────────────────────────────────────────
   3. RESET & BASE STYLES
   Normalises browser defaults for consistency
───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Prevent font scaling in landscape on iOS */
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--charcoal);
  color: var(--off-white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  /* Subtle grain texture overlay */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ─────────────────────────────────────────────
   4. NAVIGATION BAR
   Fixed top nav with logo, links, and hamburger
───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 3rem;
  transition: background var(--transition-smooth), padding var(--transition-smooth);
  /* Starts transparent; JS adds .nav--scrolled */
}

/* Nav after scroll: frosted dark background */
.nav--scrolled {
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.9rem 3rem;
  border-bottom: 1px solid var(--grey);
}

/* Logo wordmark */
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: var(--white);
  transition: color var(--transition-fast);
}

.nav__logo span {
  color: var(--orange-solid);
}

.nav__logo:hover {
  color: var(--orange-solid);
}

/* Desktop link list */
.nav__links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav__link {
  font-family: var(--font-condensed);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--off-white);
  position: relative;
  transition: color var(--transition-fast);
}

/* Underline slide-in on hover */
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--orange-solid);
  transition: width var(--transition-smooth);
}

.nav__link:hover,
.nav__link--active {
  color: var(--white);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* CTA button in nav */
.nav__cta {
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid var(--orange-solid);
  padding: 0.5rem 1.2rem;
  border-radius: var(--border-radius);
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}

.nav__cta:hover {
  background: var(--orange);
  box-shadow: var(--shadow-orange);
}

/* Hamburger (mobile only) */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1100;
}

.nav__hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--off-white);
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
  transform-origin: center;
}

/* Hamburger → X animation */
.nav__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--charcoal);
  z-index: 1050;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.nav__mobile.is-open {
  opacity: 1;
  pointer-events: all;
}

.nav__mobile-link {
  font-family: var(--font-display);
  font-size: 3.5rem;
  letter-spacing: 0.05em;
  color: var(--off-white);
  transition: color var(--transition-fast);
}

.nav__mobile-link:hover {
  color: var(--orange-solid);
}

/* ─────────────────────────────────────────────
   5. HERO / PAGE HEADER
   Full-width header image with overlay title
   Used on every page
───────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* The actual background image layer */
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Subtle parallax effect handled by JS */
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Dark gradient overlay for readability */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 20, 20, 0.3) 0%,
    rgba(20, 20, 20, 0.55) 50%,
    rgba(20, 20, 20, 0.85) 100%
  );
}

/* Orange accent stripe at the very bottom of the hero */
.hero__stripe {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--orange-solid) 30%,
    var(--orange-solid) 70%,
    transparent 100%
  );
}

/* Hero text content */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--space-md);
  /* Staggered animation via JS .is-visible class */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.hero__content.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Eyebrow label above title */
.hero__eyebrow {
  font-family: var(--font-condensed);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--orange-solid);
  margin-bottom: 1rem;
  display: block;
}

/* Main hero title */
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--white);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}

/* Highlighted word in title */
.hero__title .highlight {
  color: var(--orange-solid);
  display: block;
}

/* Subtitle beneath the main title */
.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  font-style: italic;
  color: var(--off-white);
  margin-top: 1.5rem;
  letter-spacing: 0.05em;
}

/* Scroll indicator arrow at bottom */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--light-grey);
  font-family: var(--font-condensed);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: scrollBounce 2.5s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--orange-solid), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* Sub-page hero (shorter than home) */
.hero--sub {
  height: 60vh;
  min-height: 380px;
}

/* ─────────────────────────────────────────────
   6. SOCIAL PLATFORMS BAR
   Sits immediately beneath the hero on the
   home page. A horizontal row of platform logos.

   Technique: all SVGs use fill="currentColor"
   in the HTML, so controlling the parent
   anchor's CSS "color" property is all that's
   needed to drive both default and hover states.
   No extra fill overrides required anywhere.
───────────────────────────────────────────── */

/* Outer wrapper — full-width, dark background with
   a faint orange top border to anchor it to the hero */
.social-bar {
  background-color: var(--dark);
  border-top: 1px solid rgba(255, 89, 0, 0.18);
  border-bottom: 1px solid var(--grey);
  padding: 2rem var(--space-md);
}

/* Horizontal list — centred, no bullets, even spacing */
.social-bar__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 5rem); /* fluid gap: tighter on mobile, wider on desktop */
  flex-wrap: wrap;              /* wraps gracefully on very small screens */
}

/* Each list item holds one anchor + icon + label */
.social-bar__item {
  display: flex;
}

/* The clickable anchor — column-flex so icon sits above label */
.social-bar__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  /* Default state: off-white — applies to both the SVG fill and the text */
  color: var(--off-white);
  text-decoration: none;
  /* Smooth colour + lift transition */
  transition:
    color var(--transition-smooth),
    transform var(--transition-smooth);
}

/* Hover state: the single color change cascades to both icon and label */
.social-bar__link:hover {
  color: var(--orange-solid);
  transform: translateY(-4px);  /* subtle upward lift on hover */
}

/* Focus state for keyboard navigation — matches hover colour */
.social-bar__link:focus-visible {
  outline: 2px solid var(--orange-solid);
  outline-offset: 6px;
  border-radius: 4px;
  color: var(--orange-solid);
}

/* The SVG icon itself — sized consistently across all platforms */
.social-bar__icon {
  width: 28px;
  height: 28px;
  display: block;
  /* fill="currentColor" in HTML means no fill override needed here */
}

/* Platform name label beneath the icon */
.social-bar__label {
  font-family: var(--font-condensed);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  /* Inherits the parent anchor's colour — off-white to orange on hover */
}

/* Shrink icons slightly on very small screens */
@media (max-width: 480px) {
  .social-bar__icon {
    width: 24px;
    height: 24px;
  }
  .social-bar__list {
    gap: 1.8rem;
  }
}

/* ─────────────────────────────────────────────
   6. SECTION LAYOUT UTILITIES
   Shared section wrappers and containers
───────────────────────────────────────────── */
.section {
  padding: var(--space-xl) var(--space-md);
}

.section--dark {
  background-color: var(--dark);
}

.section--mid {
  background-color: var(--mid-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.container--narrow {
  max-width: 780px;
}

/* Section heading block */
.section-header {
  margin-bottom: var(--space-lg);
}

.section-header__label {
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange-solid);
  display: block;
  margin-bottom: 0.75rem;
}

.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.95;
  color: var(--white);
  letter-spacing: 0.02em;
}

.section-header__body {
  margin-top: 1.2rem;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--light-grey);
  max-width: 580px;
  line-height: 1.8;
}

/* Horizontal rule with orange accent */
.divider {
  width: 60px;
  height: 2px;
  background: var(--orange-solid);
  margin: 1.5rem 0;
}

/* ─────────────────────────────────────────────
   6.5 BUTTONS — Reusable CTAs
   .btn          base sizing + typography
   .btn--primary solid orange fill
   .btn--outline transparent with orange border
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-condensed);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border-radius: var(--border-radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background var(--transition-smooth),
    color var(--transition-smooth),
    border-color var(--transition-smooth),
    box-shadow var(--transition-smooth),
    transform var(--transition-fast);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Primary — solid orange fill */
.btn--primary {
  background: var(--orange-solid);
  color: var(--white);
  border-color: var(--orange-solid);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #ff6b1a;
  border-color: #ff6b1a;
  box-shadow: var(--shadow-orange);
}

/* Outline — transparent with orange border */
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--orange-solid);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--orange-dim);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}

/* ─────────────────────────────────────────────
   7. HOME PAGE — INTRO BAND
   Short intro with two columns
───────────────────────────────────────────── */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.intro__tagline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--white);
}

.intro__tagline em {
  font-style: normal;
  color: var(--orange-solid);
}

.intro__body {
  font-size: 1rem;
  font-weight: 300;
  color: var(--light-grey);
  line-height: 1.9;
}

/* ─────────────────────────────────────────────
   8. HOME PAGE — FEATURE CARDS (3-column grid)
   Quick-link preview cards to each section
───────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  aspect-ratio: 3/4;
  background: var(--grey);
  cursor: pointer;
  /* Lift on hover */
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card), var(--shadow-orange);
}

.card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
}

.card:hover .card__bg {
  transform: scale(1.07);
}

.card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 20, 20, 0.95) 0%,
    rgba(20, 20, 20, 0.4) 60%,
    transparent 100%
  );
}

.card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1.8rem;
}

.card__label {
  font-family: var(--font-condensed);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange-solid);
  display: block;
  margin-bottom: 0.5rem;
}

.card__title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.03em;
  color: var(--white);
  line-height: 1;
}

.card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange-solid);
  margin-top: 0.9rem;
  transition: gap var(--transition-smooth);
}

.card:hover .card__arrow {
  gap: 0.9rem;
}

/* ─────────────────────────────────────────────
   9. HOME PAGE — STATS / NUMBERS ROW
   Animated counter-style stat display
───────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--grey);
  border-bottom: 1px solid var(--grey);
  padding: var(--space-lg) 0;
}

.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--orange-solid);
  letter-spacing: 0.02em;
  line-height: 1;
}

.stat__label {
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid-grey);
  margin-top: 0.5rem;
  display: block;
}

/* ─────────────────────────────────────────────
   10. ABOUT PAGE — BIO SECTION
───────────────────────────────────────────── */
.bio {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-lg);
  align-items: start;
}

.bio__image-wrap {
  position: relative;
}

/* Orange border offset frame */
.bio__image-wrap::before {
  content: '';
  position: absolute;
  inset: -12px -12px 12px 12px;
  border: 2px solid var(--orange-solid);
  border-radius: var(--border-radius);
  z-index: 0;
}

.bio__image {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--grey);
  border-radius: var(--border-radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.bio__name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--white);
}

.bio__title-role {
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange-solid);
  margin-top: 1rem;
  display: block;
}

.bio__text {
  margin-top: 1.5rem;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.95;
  color: var(--light-grey);
}

.bio__text p + p {
  margin-top: 1.2rem;
}

/* Skill tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.tag {
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--off-white);
  border: 1px solid var(--grey);
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.tag:hover {
  border-color: var(--orange-solid);
  color: var(--orange-solid);
}

/* ─────────────────────────────────────────────
   11. ABOUT PAGE — TIMELINE
───────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2rem;
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, var(--orange-solid), transparent);
}

.timeline__item {
  position: relative;
  padding-bottom: 2.5rem;
}

/* Dot on the line */
.timeline__item::before {
  content: '';
  position: absolute;
  left: -2.4rem;
  top: 0.4rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-solid);
  box-shadow: 0 0 12px var(--orange-solid);
}

.timeline__year {
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--orange-solid);
  text-transform: uppercase;
}

.timeline__heading {
  font-family: var(--font-condensed);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-top: 0.3rem;
}

.timeline__body {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--light-grey);
  margin-top: 0.4rem;
  line-height: 1.7;
}

/* ─────────────────────────────────────────────
   12. ACTING PAGE — FILM GRID
   Responsive masonry-style project cards
───────────────────────────────────────────── */
.film-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.film-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  background: var(--grey);
  cursor: pointer;
}

/* Make some cards taller for visual rhythm */
.film-card:nth-child(4n+1) { aspect-ratio: 2/3; }
.film-card:nth-child(4n+2) { aspect-ratio: 16/10; grid-column: span 2; }
.film-card:nth-child(4n+3) { aspect-ratio: 2/3; }
.film-card:nth-child(4n+4) { aspect-ratio: 2/3; }
.film-card:nth-child(4n+5) { aspect-ratio: 2/3; }
.film-card:nth-child(4n+6) { aspect-ratio: 16/10; }


.film-card__bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
}

.film-card:hover .film-card__bg {
  transform: scale(1.08);
}

.film-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.film-card:hover .film-card__overlay {
  opacity: 1;
}

.film-card__type {
  font-family: var(--font-condensed);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange-solid);
  margin-bottom: 0.5rem;
}

.film-card__title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  letter-spacing: 0.04em;
  color: var(--white);
  text-align: center;
  line-height: 1.1;
}

.film-card__year {
  font-family: var(--font-condensed);
  font-size: 1.8rem;
  color: var(--light-grey);
  margin-top: 0.5rem;
}

/* Always-visible label at card bottom */
.film-card__label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.8rem 1rem;
  background: linear-gradient(to top, rgba(20,20,20,0.9), transparent);
}

.film-card__label-title {
  font-family: var(--font-condensed);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
}

/* Filter tabs above the grid */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-tab {
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid-grey);
  border: 1px solid var(--grey);
  padding: 0.45rem 1rem;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.filter-tab:hover,
.filter-tab.is-active {
  color: var(--white);
  border-color: var(--orange-solid);
  background: var(--orange-dim);
}

/* ─────────────────────────────────────────────
   13. CONTACT PAGE — INFO + FAQ GRID
   Two-column grid: contact details left,
   FAQ accordion right.
───────────────────────────────────────────── */

/* Two-column grid — info left, FAQ right */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-lg);
  align-items: start;
}

/* Each label + value pair */
.contact-info__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.8rem;
}

.contact-info__label {
  font-family: var(--font-condensed);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange-solid);
}

.contact-info__value {
  font-size: 1rem;
  font-weight: 300;
  color: var(--light-grey);
}

/* Hover effect on email links */
.contact-info__link {
  transition: color var(--transition-fast);
}

.contact-info__link:hover {
  color: var(--orange-solid);
}

/* Social links row */
.socials {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.social-link {
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid-grey);
  border: 1px solid var(--grey);
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.social-link:hover {
  color: var(--orange-solid);
  border-color: var(--orange-solid);
}

/* Stack to single column on tablet and below */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────────
   14. FOOTER
───────────────────────────────────────────── */
.footer {
  background: var(--charcoal);
  border-top: 1px solid var(--grey);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer__logo span {
  color: var(--orange-solid);
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer__link {
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid-grey);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--orange-solid);
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--grey);
  letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────────
   15. SCROLL REVEAL ANIMATIONS
   Elements animate in as they enter the viewport
   JS adds .is-visible class via IntersectionObserver
───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--left {
  transform: translateX(-30px);
}

.reveal--left.is-visible {
  transform: translateX(0);
}

.reveal--right {
  transform: translateX(30px);
}

.reveal--right.is-visible {
  transform: translateX(0);
}

/* Stagger children of a reveal container */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.45s; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.55s; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.65s; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.75s; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(9) { transition-delay: 0.85s; opacity: 1; transform: none; }

/* ─────────────────────────────────────────────
   16. QUOTE CAROUSEL
───────────────────────────────────────────── */
.quote-carousel-section {
  padding: 5rem 2rem;
  background: rgba(255, 89, 0, 0.06);
  border-top: 1px solid rgba(255, 89, 0, 0.15);
  border-bottom: 1px solid rgba(255, 89, 0, 0.15);
  text-align: center;
}
.quote-carousel__mark {
  font-family: var(--font-accent);
  font-size: 8rem;
  line-height: 0.5;
  color: var(--orange-solid);
  opacity: 0.35;
  margin-bottom: 1.5rem;
  display: block;
  user-select: none;
}
.quote-carousel__track {
  position: relative;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quote-carousel__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin: 0;
  padding: 0 1rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
  user-select: none;
}
.quote-carousel__slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  user-select: text;
  z-index: 1;
}
.quote-carousel__slide.is-leaving {
  opacity: 0;
  transform: translateY(-10px);
  z-index: 0;
}
.quote-carousel__text {
  font-family: var(--font-accent);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-style: italic;
  color: var(--off-white);
  line-height: 1.6;
  max-width: 700px;
  margin: 0;
}
.quote-carousel__attribution {
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange-solid);
}
.quote-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.quote-carousel__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--grey);
  background: transparent;
  color: var(--mid-grey);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}
.quote-carousel__btn svg { width: 16px; height: 16px; }
.quote-carousel__btn:hover,
.quote-carousel__btn:focus-visible {
  border-color: var(--orange-solid);
  color: var(--orange-solid);
  background: var(--orange-dim);
  outline: none;
}
.quote-carousel__dots {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.quote-carousel__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grey);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-smooth), transform var(--transition-smooth), width var(--transition-smooth);
}
.quote-carousel__dot.is-active {
  background: var(--orange-solid);
  width: 22px;
  border-radius: 4px;
}
.quote-carousel__dot:hover:not(.is-active) { background: var(--light-grey); transform: scale(1.2); }
.quote-carousel__dot:focus-visible { outline: 2px solid var(--orange-solid); outline-offset: 3px; }
.quote-carousel__progress {
  height: 2px;
  background: var(--grey);
  border-radius: 1px;
  margin-top: 2rem;
  overflow: hidden;
}
.quote-carousel__progress-fill {
  height: 100%;
  width: 0%;
  background: var(--orange-solid);
  animation: quoteProgress 30s linear forwards;
}
@keyframes quoteProgress {
  from { width: 0%; }
  to   { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .quote-carousel__slide { transition: none; transform: none !important; }
  .quote-carousel__progress-fill { animation: none; width: 100%; }
  .quote-carousel__dot { transition: none; }
}

/* ─────────────────────────────────────────────
   16. CUSTOM SCROLLBAR (WebKit browsers)
───────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--charcoal);
}

::-webkit-scrollbar-thumb {
  background: var(--grey);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--orange-solid);
}

/* ─────────────────────────────────────────────
   17. PAGE TRANSITION OVERLAY
   Thin orange bar that slides in/out on navigate
───────────────────────────────────────────── */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--orange-solid);
  z-index: 9999;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.page-transition.is-loading {
  transform: scaleX(0.7);
}

.page-transition.is-done {
  transform: scaleX(1);
  transition: transform 0.2s ease, opacity 0.3s ease 0.2s;
  opacity: 0;
}

/* ─────────────────────────────────────────────
   18. RESPONSIVE — TABLET (≤ 900px)
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__mobile {
    display: flex;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

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

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .bio__image-wrap {
    max-width: 360px;
    margin: 0 auto;
  }

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

  .film-card:nth-child(3n+1),
  .film-card:nth-child(3n+2),
  .film-card:nth-child(3n+3) {
    aspect-ratio: 3/4;
    grid-column: span 1;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────────
   19. RESPONSIVE — MOBILE (≤ 600px)
───────────────────────────────────────────── */
@media (max-width: 600px) {
  .section {
    padding: var(--space-lg) var(--space-sm);
  }

  .nav {
    padding: 1.2rem 1.5rem;
  }

  .nav--scrolled {
    padding: 0.8rem 1.5rem;
  }

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

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

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .footer__links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ─────────────────────────────────────────────
   20. UTILITY CLASSES
   Small helpers used across HTML files
───────────────────────────────────────────── */
.text-orange  { color: var(--orange-solid); }
.text-center  { text-align: center; }
.mt-sm        { margin-top: var(--space-sm); }
.mt-md        { margin-top: var(--space-md); }
.mt-lg        { margin-top: var(--space-lg); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}