/* ============================================
   VIC HERRERA — Sound Design & Music Composition
   Design System — Brand Identity v2
   ============================================ */

/* ── Custom Fonts (Brand Typography) ── */
@font-face {
  font-family: 'Orchis Prima';
  src: url('../assets/fonts/OrchisPrima-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Orchis Prima';
  src: url('../assets/fonts/OrchisPrima-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lemon Milk';
  src: url('../assets/fonts/LEMONMILK-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lemon Milk';
  src: url('../assets/fonts/LEMONMILK-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lemon Milk';
  src: url('../assets/fonts/LEMONMILK-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ── CSS Variables (Brand Colors) ── */
:root {
  /* Brand Colors from Manual */
  --brand-light-grey: #D3D4D1;
  --brand-medium-grey: #A8A6A1;
  --brand-maroon: #4B0F10;
  --brand-off-black: #140808;

  /* Applied Palette */
  --color-bg: #0c0606;
  --color-bg-secondary: #110909;
  --color-bg-card: #180e0e;
  --color-bg-elevated: #1c1010;
  --color-surface: #201414;
  --color-border: rgba(211, 212, 209, 0.06);
  --color-border-hover: rgba(211, 212, 209, 0.14);

  --color-text-primary: var(--brand-light-grey);
  --color-text-secondary: var(--brand-medium-grey);
  --color-text-muted: #5a5450;

  --color-accent: var(--brand-maroon);
  --color-accent-light: #6b1c1e;
  --color-accent-glow: rgba(75, 15, 16, 0.45);

  --color-white: #f0ece8;
  --color-black: var(--brand-off-black);

  /* Typography */
  --font-display: 'Orchis Prima', Georgia, serif;
  --font-label: 'Lemon Milk', 'Inter', sans-serif;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 70px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

/* ── Utility Classes ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scrollPulse {

  0%,
  100% {
    height: 40px;
    opacity: 0.5;
  }

  50% {
    height: 60px;
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition-normal), backdrop-filter var(--transition-normal);
}

.nav.scrolled {
  background: rgba(12, 6, 6, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.nav__logo {
  display: flex;
  align-items: center;
  z-index: 1001;
  transition: opacity var(--transition-normal);
}

.nav__logo:hover {
  opacity: 0.8;
}

.nav__logo img {
  height: 32px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav__link {
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--transition-normal);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--brand-maroon);
  transition: width var(--transition-normal);
}

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

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

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text-primary);
  transition: all var(--transition-normal);
  border-radius: 2px;
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: calc(var(--nav-height) + var(--space-3xl)) var(--space-xl) var(--space-3xl);
  overflow: hidden;
}

.hero__bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(75, 15, 16, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 80% 20%, rgba(75, 15, 16, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 20% 80%, rgba(75, 15, 16, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero__noise {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.025;
  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)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 900px;
  animation: fadeInUp 1s ease-out;
}

.hero__eyebrow {
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--brand-medium-grey);
  margin-bottom: var(--space-xl);
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-medium-grey));
}

.hero__eyebrow::after {
  background: linear-gradient(90deg, var(--brand-medium-grey), transparent);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-lg);
  color: var(--brand-light-grey);
}

.hero__subtitle {
  font-family: var(--font-label);
  font-size: clamp(0.65rem, 1.2vw, 0.8rem);
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--brand-medium-grey);
  margin-bottom: var(--space-2xl);
}

.hero__credits {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-3xl);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero__credits strong {
  color: var(--brand-medium-grey);
  font-weight: 400;
}

.hero__cta-group {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--brand-maroon);
  color: var(--brand-light-grey);
}

.btn--primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--color-accent-glow);
}

.btn--outline {
  background: transparent;
  color: var(--brand-light-grey);
  border: 1px solid rgba(211, 212, 209, 0.15);
}

.btn--outline:hover {
  border-color: var(--brand-maroon);
  color: var(--brand-light-grey);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--color-accent-glow);
}

.btn__icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ── Scroll Indicator ── */
.hero__scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-muted);
  font-family: var(--font-label);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: fadeIn 1s ease-out 1.5s both;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-text-muted), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

/* ── Section Titles ── */
.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section__label {
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--brand-medium-grey);
  margin-bottom: var(--space-md);
  display: block;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--brand-light-grey);
}

/* ── Reels Section ── */
.reels {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.reels__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.reel-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

.reel-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(20, 8, 8, 0.5);
}

.reel-card__video {
  position: relative;
  width: 100%;
  background: var(--brand-off-black);
}

.reel-card__video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.reel-card__info {
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reel-card__title {
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-medium-grey);
}

.reel-card__badge {
  font-family: var(--font-label);
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--brand-maroon);
  color: var(--brand-light-grey);
}

/* ── Experience Bar ── */
.experience {
  padding: var(--space-4xl) 0;
  text-align: center;
  position: relative;
}

.experience__text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 300;
  color: var(--brand-medium-grey);
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  line-height: 1.8;
}

.experience__text em {
  color: var(--brand-light-grey);
  font-style: normal;
  font-weight: 400;
}

.experience__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-medium-grey);
  transition: all var(--transition-normal);
}

.experience__link:hover {
  color: var(--brand-light-grey);
  gap: var(--space-md);
}

.experience__link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--transition-normal);
}

.experience__link:hover svg {
  transform: translateX(4px);
}

/* ── Recent Works Grid ── */
.works {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.work-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 2/3;
}

.work-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow), filter var(--transition-slow);
}

.work-card:hover .work-card__image {
  transform: scale(1.06);
  filter: brightness(0.4);
}

.work-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(20, 8, 8, 0.92) 0%,
      rgba(20, 8, 8, 0.3) 40%,
      transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xl);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

.work-card__category {
  font-family: var(--font-label);
  font-size: 0.5rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brand-medium-grey);
  margin-bottom: var(--space-xs);
}

.work-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--brand-light-grey);
  line-height: 1.3;
  margin-bottom: var(--space-xs);
}

.work-card__year {
  font-family: var(--font-label);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: var(--brand-medium-grey);
}

.work-card__arrow {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(211, 212, 209, 0.08);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(10px, -10px);
  transition: all var(--transition-normal);
}

.work-card:hover .work-card__arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.work-card__arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--brand-light-grey);
  stroke-width: 2;
}

/* ── CTA / Contact Section ── */
.cta {
  padding: var(--space-5xl) 0;
  text-align: center;
  position: relative;
}

.cta__inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta__question {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--brand-medium-grey);
  margin-bottom: var(--space-md);
  line-height: 1.4;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--brand-light-grey), var(--brand-maroon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta__email {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2xl);
}

.cta__email a {
  color: var(--brand-medium-grey);
  transition: color var(--transition-fast);
}

.cta__email a:hover {
  color: var(--brand-light-grey);
}

/* ── Footer ── */
.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-family: var(--font-primary);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.footer__socials {
  display: flex;
  gap: var(--space-lg);
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--brand-medium-grey);
  transition: all var(--transition-normal);
}

.footer__social:hover {
  border-color: var(--brand-maroon);
  color: var(--brand-light-grey);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--color-accent-glow);
}

.footer__social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ── Divider ── */
.divider {
  width: 50px;
  height: 1px;
  background: var(--brand-maroon);
  margin: 0 auto var(--space-xl);
}

/* ── YouTube Lazy Loading ── */
.youtube-lazy {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--brand-off-black);
  cursor: pointer;
  overflow: hidden;
}

.youtube-lazy__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter var(--transition-normal);
}

.youtube-lazy:hover .youtube-lazy__thumb {
  filter: brightness(0.6);
}

.youtube-lazy__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(75, 15, 16, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  border: 1px solid rgba(211, 212, 209, 0.1);
}

.youtube-lazy:hover .youtube-lazy__play {
  background: var(--brand-maroon);
  transform: translate(-50%, -50%) scale(1.1);
  border-color: rgba(211, 212, 209, 0.2);
}

.youtube-lazy__play svg {
  width: 22px;
  height: 22px;
  fill: var(--brand-light-grey);
  margin-left: 3px;
}

/* ── Portfolio Page ── */
.portfolio-header {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-md);
  text-align: center;
}

.portfolio-category {
  padding-top: var(--space-md);
  padding-bottom: var(--space-2xl);
}

.category-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-sm);
  display: inline-block;
}

.cronologico-link {
  margin-top: var(--space-lg);
}

/* ── Score Page ── */
.score-header {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-2xl);
  text-align: center;
  background-image: linear-gradient(to bottom, rgba(12, 6, 6, 0.7), var(--color-bg)), url('../assets/images/music-hero.jpg');
  background-size: cover;
  background-position: top center;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.audio-track {
  background: rgba(255, 255, 255, 0.03);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .audio-track {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.audio-track__title {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-text-primary);
}

audio {
  width: 100%;
  max-width: 400px;
  height: 36px;
  filter: invert(0.9) hue-rotate(180deg);
  border-radius: var(--radius-sm);
}

.score-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

@media (min-width: 768px) {
  .score-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.score-card {
  text-align: center;
}

.score-card__image {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-lg);
}

/* ── Project Detail Page ── */
.project-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
  /* Nav overlap handled by absolute? No, sticky nav expects padding. index.html nav is fixed/sticky? */
}

/* Fix for nav overlap on project page */
.project-page .nav {
  position: absolute;
  /* Transparent nav over hero */
  background: linear-gradient(to bottom, rgba(12, 6, 6, 0.9), transparent);
  border-bottom: none;
}

.project-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.project-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(12, 6, 6, 0.3) 0%, rgba(12, 6, 6, 0.6) 50%, var(--color-bg) 100%);
  z-index: 2;
}

.project-hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding-bottom: var(--space-3xl);
  max-width: 900px;
  width: 100%;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-sm);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.project-role {
  font-family: var(--font-label);
  color: var(--brand-maroon);
  letter-spacing: 0.15em;
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  background: rgba(12, 6, 6, 0.8);
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
}

.project-meta {
  color: var(--brand-medium-grey);
  font-family: var(--font-primary);
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
}

.project-content {
  padding: var(--space-2xl) 0 var(--space-4xl);
}

.project-synopsis {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--brand-light-grey);
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
  text-align: center;
  font-weight: 300;
}

.project-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}

.project-nav-back {
  text-align: center;
  margin-top: var(--space-4xl);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-2xl);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 6, 6, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: var(--space-5xl);
    padding-bottom: var(--space-3xl);
    gap: var(--space-xl);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

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

  .nav__link {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
  }

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

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

  .hero__title {
    font-size: clamp(2.8rem, 12vw, 4.5rem);
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 var(--space-lg);
  }

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

  .work-card {
    aspect-ratio: 16/10;
  }

  .work-card__overlay {
    opacity: 1;
  }

  .hero__cta-group {
    flex-direction: column;
    align-items: center;
  }

  .footer__inner {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  .section {
    padding: var(--space-3xl) 0;
  }
}

/* ── Project Detail Pages ── */

.project-page {
  background-color: var(--color-bg);
}

.project-hero {
  position: relative;
  height: 60vh;
  /* Reduced height to bring content up */
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  margin-bottom: var(--space-xl);
  /* Reduced margin */
}

.project-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.4;
  /* Slightly reduced opacity */
  mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.project-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, var(--color-bg) 20%, transparent 100%);
}

.project-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-bottom: var(--space-2xl);
  max-width: 900px;
}

.project-hero__title {
  font-family: var(--font-label);
  font-size: clamp(3rem, 6vw, 5rem);
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
  color: var(--color-white);
  line-height: 1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.project-hero__subtitle {
  font-family: var(--font-primary);
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  font-weight: 500;
}

.project-content {
  padding-bottom: var(--space-5xl);
  max-width: 1400px;
  /* Wider container for side-by-side */
  margin: 0 auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 900px) {
  .project-grid {
    grid-template-columns: 2fr 1fr;
    /* Video larger, Text smaller */
    gap: var(--space-2xl);
    align-items: flex-start;
  }
}

.project-media {
  width: 100%;
}

.project-media iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: block;
}

.project-info {
  width: 100%;
  text-align: left;
  /* Text alignment change */
}

.project-info__block {
  margin-bottom: var(--space-xl);
}

.project-info__heading {
  font-family: var(--font-label);
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
  color: var(--color-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-info__text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-primary);
}

.platform-links {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-start;
  /* Align start */
  flex-wrap: wrap;
}