/* ========================================
   ASLI SUMEN - Common Layout & Structure
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* ========================================
   Typography
   ======================================== */
@font-face {
  font-family: 'Capricho';
  src: url('font/Hoftype - Capricho Semibold.otf') format('opentype');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Capricho';
  src: url('font/Hoftype - Capricho Extrabold.otf') format('opentype');
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: 'Capricho';
  src: url('font/Hoftype - Capricho Light.otf') format('opentype');
  font-weight: 300;
  font-display: swap;
}

/* ========================================
   Layout Container
   ======================================== */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 1920px;
  padding: 0 16px;
}

.container--narrow {
  max-width: 900px;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease, border 0.4s ease;
}

.nav--scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav__brand {
  font-family: 'Capricho', serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-right: auto;
}

/* Desktop: menu sits in nav flow */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__center {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  cursor: pointer;
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  transition: width 0.3s ease;
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.nav__socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav__socials a:hover {
  opacity: 1;
  transform: scale(1.1);
}

.nav__socials svg {
  width: 18px;
  height: 18px;
}

.nav__socials a[aria-label="IMDB"] svg {
  width: 29px;
  height: 14px;
}

.nav__langs {
  display: flex;
  gap: 4px;
}

.nav__lang {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

/* Hamburger toggle — hidden on desktop */
.nav__toggle {
  display: none;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1002;
  position: relative;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  transition: transform 0.35s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* Hamburger → X animation */
.nav__toggle--active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle--active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__toggle--active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Tight desktop (969–1200px): compress nav to fit langs ---- */
@media (min-width: 969px) and (max-width: 1200px) {
  .nav { padding: 0 20px; }
  .nav__menu { gap: 22px; }
  .nav__center { gap: 20px; }
  .nav__link { font-size: 0.7rem; letter-spacing: 1.5px; }
  .nav__right { gap: 14px; }
  .nav__socials { gap: 10px; }
  .nav__socials svg { width: 16px; height: 16px; }
  .nav__socials a[aria-label="IMDB"] svg { width: 26px; height: 13px; }
  .nav__brand { font-size: 1.1rem; letter-spacing: 3px; }
  .nav__lang { font-size: 0.65rem; padding: 4px 8px; }
}

@media (min-width: 969px) and (max-width: 1060px) {
  .nav { padding: 0 16px; }
  .nav__menu { gap: 16px; }
  .nav__center { gap: 14px; }
  .nav__link { font-size: 0.65rem; letter-spacing: 1px; }
  .nav__right { gap: 12px; }
  .nav__socials { gap: 8px; }
  .nav__brand { font-size: 1rem; letter-spacing: 2.5px; }
}

/* ---- Mobile (≤968px) ---- */
@media (max-width: 968px) {
  .nav {
    padding: 0 20px;
    height: 60px;
  }

  .nav__brand {
    font-size: 1.05rem;
    letter-spacing: 3px;
    z-index: 1002;
    position: relative;
  }

  .nav__toggle {
    display: block;
  }

  /* Fullscreen overlay — hidden by default */
  .nav__menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: center;
    background: #0a0a0a;
    background: var(--bg, #0a0a0a);
    z-index: 1001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 100px 20px 40px;
  }

  .nav__menu--open {
    display: flex;
  }

  /* Vertical link list */
  .nav__center {
    flex-direction: column;
    gap: 0;
    text-align: center;
    width: 100%;
  }

  .nav__link {
    font-size: 1.1rem;
    letter-spacing: 4px;
    display: block;
    padding: 14px 0;
  }

  .nav__right {
    flex-direction: column;
    gap: 20px;
    margin-top: 28px;
  }

  .nav__socials { gap: 20px; }
  .nav__socials a { opacity: 0.8; }
  .nav__socials svg { width: 22px; height: 22px; }
  .nav__socials a[aria-label="IMDB"] svg { width: 35px; height: 18px; }
  .nav__langs { gap: 6px; }
  .nav__lang { font-size: 0.75rem; padding: 6px 14px; }
}

/* Lock body scroll when menu open */
body.menu-open {
  overflow: hidden;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__content {
  text-align: center;
  z-index: 2;
  position: relative;
}

.hero__title {
  font-family: 'Capricho', serif;
  font-weight: 600;
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  letter-spacing: clamp(6px, 1.5vw, 14px);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  letter-spacing: clamp(3px, 0.8vw, 6px);
  text-transform: uppercase;
  font-weight: 400;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  animation: bounceDown 2s infinite;
}

.hero__scroll span {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ========================================
   Section Titles
   ======================================== */
.section {
  padding: 60px 0;
}

.section__title {
  font-family: 'Capricho', serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  text-align: center;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 56px;
  position: relative;
}

/* ========================================
   Headshots Gallery
   ======================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.gallery__item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.gallery__item:hover::after {
  opacity: 1;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0, 0.25, 1);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

@media (max-width: 1200px) {
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 5px; }
}
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 4px; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 3px; }
}

/* ========================================
   Video / Showreel
   ======================================== */
.showreel__wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
}

.showreel__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.showreel__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
  border: 2px solid rgba(255,255,255,0.3);
}

.showreel__wrapper:hover .showreel__play {
  transform: translate(-50%, -50%) scale(1.1);
}

.showreel__iframe,
.showreel__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 12px;
  display: block;
  background: #000;
}

.showreel__video {
  object-fit: cover;
}

/* YouTube Clips Grid */
.clips-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.clips-grid__item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.clips-grid__item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.clips-grid__item:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.clips-grid__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.7));
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.clips-grid__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(255,255,255,0.3);
}

.clips-grid__item:hover .clips-grid__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.clips-grid__title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 10px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  z-index: 2;
  line-height: 1.3;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

@media (max-width: 1200px) {
  .clips-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; }
}
@media (max-width: 1024px) {
  .clips-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}
@media (max-width: 768px) {
  .clips-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 32px; }
  .clips-grid__title { font-size: 0.6rem; }
}
@media (max-width: 480px) {
  .clips-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ========================================
   Collaborations
   ======================================== */
.collabs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.collab-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3 / 4;
}

.collab-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collab-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 14px 14px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: none;
  pointer-events: none;
}

.collab-card__logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(255,255,255,0.9);
  padding: 2px;
  flex-shrink: 0;
}

.collab-card__name {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 5px 10px;
  border-radius: 4px;
  line-height: 1.4;
  white-space: nowrap;
}

.collab-card__sound {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  color: #fff;
  transition: background 0.3s ease;
}

.collab-card__sound:hover {
  background: rgba(0, 0, 0, 0.7);
}

@media (max-width: 1024px) {
  .collabs-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
@media (max-width: 720px) {
  .collabs-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .collab-card__sound { width: 32px; height: 32px; top: 8px; right: 8px; }
  .collab-card__overlay { padding: 12px 10px 10px; flex-wrap: wrap; gap: 6px; }
  .collab-card__logo { width: 20px; height: 20px; }
  .collab-card__name { white-space: normal; line-height: 1.3; font-size: 0.6rem; flex-basis: 100%; }
}
@media (max-width: 380px) {
  .collab-card__name { font-size: 0.55rem; padding: 4px 8px; letter-spacing: 0.8px; }
}

/* ========================================
   CV Section (HTML)
   ======================================== */
.cv {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}

.cv__header {
  text-align: center;
  padding: 40px 40px 24px;
}

.cv__name {
  font-family: 'Capricho', serif;
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cv__tagline {
  font-size: 0.85rem;
  letter-spacing: 2px;
  opacity: 0.6;
}

.cv__body {
  padding: 0 40px 40px;
}

.cv__section {
  margin-bottom: 32px;
}

.cv__section:last-child {
  margin-bottom: 0;
}

.cv__section-title {
  font-family: 'Capricho', serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
}

.cv__table {
  width: 100%;
  border-collapse: collapse;
}

.cv__table tr {
  transition: background 0.2s ease;
}

.cv__table td {
  padding: 8px 0;
  font-size: 0.9rem;
  vertical-align: top;
}

.cv__table td:first-child {
  font-weight: 600;
  width: 70px;
  opacity: 0.7;
}

.cv__table td:nth-child(2) {
  width: 35%;
}

.cv__table td:nth-child(3) {
  opacity: 0.6;
  font-size: 0.85rem;
}

.cv__table td:last-child {
  text-align: right;
  opacity: 0.7;
  font-style: italic;
}

/* Education list */
.cv__edu-list {
  list-style: none;
}

.cv__edu-list li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
}

.cv__edu-list li span:first-child {
  font-weight: 600;
}

.cv__edu-list li span:last-child {
  opacity: 0.6;
  font-size: 0.85rem;
}

/* Awards */
.cv__award-list {
  list-style: none;
}

.cv__award-list li {
  padding: 6px 0;
  font-size: 0.9rem;
}

.cv__award-list li strong {
  display: block;
  margin-bottom: 2px;
}

.cv__award-list li span {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Personal info grid */
.cv__info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.cv__info-col h4 {
  font-family: 'Capricho', serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
}

.cv__info-list {
  list-style: none;
}

.cv__info-list li {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.85rem;
}

.cv__info-list li span:first-child {
  opacity: 0.6;
}

.cv__info-list li span:last-child {
  font-weight: 500;
}

@media (max-width: 600px) {
  .cv__body, .cv__header { padding-left: 20px; padding-right: 20px; }
  .cv__info-grid { grid-template-columns: 1fr; gap: 20px; }
  .cv__table td { font-size: 0.8rem; }
  .cv__table td:nth-child(3) { display: none; }
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
  text-align: center;
  padding: 60px 0;
}

.contact__email {
  font-family: 'Capricho', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  letter-spacing: 3px;
  margin-bottom: 32px;
  display: inline-block;
  padding-bottom: 4px;
}

.contact__email:hover {
  opacity: 0.7;
}

.contact__socials {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 28px;
}

.contact__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.contact__socials a:hover {
  transform: translateY(-3px);
}

.contact__socials svg {
  width: 22px;
  height: 22px;
}

.contact__socials a[aria-label="IMDB"] svg {
  width: 35px;
  height: 18px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  text-align: center;
  padding: 24px 0;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  opacity: 0.4;
}

/* ========================================
   Lightbox
   ======================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox-overlay--active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  cursor: default;
  animation: scaleIn 0.3s ease;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.lightbox__close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.lightbox__nav:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; }
}

/* ========================================
   Video Lightbox
   ======================================== */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.video-lightbox--active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.video-lightbox__wrap {
  width: 90vw;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  animation: scaleIn 0.3s ease;
}

.video-lightbox__wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

.video-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 1;
}

.video-lightbox__close:hover {
  background: rgba(255,255,255,0.25);
}

.video-lightbox__yt {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.video-lightbox__yt:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
}

/* ========================================
   Scroll Animations
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.gallery .fade-in:nth-child(1) { transition-delay: 0s; }
.gallery .fade-in:nth-child(2) { transition-delay: 0.05s; }
.gallery .fade-in:nth-child(3) { transition-delay: 0.1s; }
.gallery .fade-in:nth-child(4) { transition-delay: 0.15s; }
.gallery .fade-in:nth-child(5) { transition-delay: 0.2s; }
.gallery .fade-in:nth-child(6) { transition-delay: 0.25s; }
.gallery .fade-in:nth-child(7) { transition-delay: 0.05s; }
.gallery .fade-in:nth-child(8) { transition-delay: 0.1s; }
.gallery .fade-in:nth-child(9) { transition-delay: 0.15s; }
.gallery .fade-in:nth-child(10) { transition-delay: 0.2s; }
.gallery .fade-in:nth-child(11) { transition-delay: 0.25s; }
.gallery .fade-in:nth-child(12) { transition-delay: 0.3s; }

/* ========================================
   Utilities
   ======================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   Focus (a11y)
   ======================================== */
:focus-visible {
  outline: 2px solid var(--accent, #c9a96e);
  outline-offset: 3px;
  border-radius: 2px;
}
.gallery__item:focus-visible,
.clips-grid__item:focus-visible,
.collab-card:focus-visible {
  outline-offset: 4px;
}

/* ========================================
   Tablet / breakpoint polish
   ======================================== */
@media (max-width: 1024px) {
  .section { padding: 52px 0; }
  .section__title { margin-bottom: 44px; }
}

@media (max-width: 768px) {
  .section { padding: 44px 0; }
  .section__title { margin-bottom: 36px; letter-spacing: 4px; }
  .hero { min-height: 560px; }
  .cv__header { padding: 32px 28px 20px; }
  .cv__body { padding: 0 28px 32px; }
  .cv__name { font-size: 1.5rem; letter-spacing: 4px; }
  .contact__socials { gap: 22px; }
  .contact__socials a { width: 44px; height: 44px; }
  .contact__socials svg { width: 20px; height: 20px; }
  .showreel__play { width: 64px; height: 64px; }
  .showreel__play svg { width: 22px; height: 22px; }
  .lightbox__nav { width: 44px; height: 44px; font-size: 24px; }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
  .lightbox-overlay img { max-width: 94vw; max-height: 84vh; }
}

@media (max-width: 480px) {
  .hero__subtitle { letter-spacing: 4px !important; }
  .cv__header { padding: 24px 18px 16px; }
  .cv__body { padding: 0 18px 24px; }
  .cv__edu-list li,
  .cv__info-list li { flex-wrap: wrap; gap: 2px; }
  .footer { padding: 20px 16px; line-height: 1.5; }
  .video-lightbox__wrap { width: 94vw; }
  .video-lightbox__yt { font-size: 0.75rem; padding: 6px 14px; }

  /* CV table: stack role on its own line to avoid truncation */
  .cv__table tr {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid rgba(201,169,110,0.08);
  }
  .cv__table tr:hover td { background: none; }
  .cv__table td { border: none !important; padding: 0; }
  .cv__table td:first-child { width: 48px; font-size: 0.72rem; font-weight: 700; opacity: 0.55; }
  .cv__table td:nth-child(2) { width: calc(100% - 48px); font-size: 0.82rem; font-weight: 500; }
  .cv__table td:last-child {
    width: 100%;
    padding-left: 48px;
    text-align: left;
    font-size: 0.75rem;
    font-style: italic;
    opacity: 0.65;
    margin-top: 2px;
  }
}

/* Shorter viewports: cap hero height */
@media (max-height: 640px) and (min-width: 769px) {
  .hero { min-height: 520px; }
}

/* ========================================
   Reduced motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in { opacity: 1; transform: none; }
}
