@import url("https://fonts.googleapis.com/css2?family=Inria+Serif:wght@300;400;700&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

@font-face {
  font-family: "Messina Sans";
  src: url("./fonts/MessinaSans-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Messina Sans";
  src: url("./fonts/MessinaSans-LightItalic.woff") format("woff");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Messina Sans";
  src: url("./fonts/MessinaSans-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: "Messina Sans";
  src: url("./fonts/MessinaSans-RegularItalic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Messina Sans";
  src: url("./fonts/MessinaSans-Book.woff") format("woff");
  font-weight: 450;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: "Messina Sans";
  src: url("./fonts/MessinaSans-BookItalic.woff") format("woff");
  font-weight: 450;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Messina Sans";
  src: url("./fonts/MessinaSans-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: "Messina Sans";
  src: url("./fonts/MessinaSans-SemiBoldItalic.woff") format("woff");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Messina Sans";
  src: url("./fonts/MessinaSans-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Messina Sans";
  src: url("./fonts/MessinaSans-BoldItalic.woff") format("woff");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Messina Sans";
  src: url("./fonts/MessinaSans-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Messina Sans";
  src: url("./fonts/MessinaSans-BlackItalic.woff") format("woff");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Messina Sans", sans-serif;
  color: #000000;
  background-color: #fefefe;
  line-height: 1.5;
}

/* Barba.js transitions */
#barba-wrapper {
  position: relative;
  min-height: 100vh;
}

[data-barba="container"] {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Initial page load - content hidden until resources are ready */
body:not(.resources-ready) [data-barba="container"] {
  opacity: 0;
  visibility: hidden;
}

body.resources-ready [data-barba="container"]:not(.barba-enter):not(.barba-leave) {
  animation: fadeInInitial 0.4s ease forwards;
}

[data-barba="container"].barba-leave {
  opacity: 0;
  transform: translateY(-8px);
  animation: none;
}

[data-barba="container"].barba-enter {
  opacity: 0;
  transform: translateY(8px);
  animation: none;
}

[data-barba="container"].barba-enter-active {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}

@keyframes fadeInInitial {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.page {
  min-height: 100vh;
  padding: 40px 24px 72px;
}

@media (min-width: 768px) {
  .page {
    padding: 64px 64px 96px;
  }
}

.page-inner {
  max-width: 1040px;
  margin: 0 auto;
}

/* Navbar */

.navbar-shell {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 40;
}

.navbar {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 8px 12px;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background-color: #ffffff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  font-size: 16px;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: -0.04em;
  pointer-events: auto;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-hidden {
  transform: translateY(-150%);
  opacity: 0;
}

.navbar-link {
  position: relative;
  padding: 4px 12px;
  border-radius: 46px;
  transition: background-color 0.2s ease;
}

.navbar-link:hover {
  background-color: #ededed;
}

.navbar-link.is-active {
  background-color: #ededed;
}

/* Layout */

.hero {
  margin-top: 120px;
  display: flex;
  flex-direction: column;
  gap: 104px;
  scroll-margin-top: 48px;
}

@media (max-width: 767px) {
  .hero {
    margin-top: 84px;
    gap: 40px;
  }
}

.hero-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 767px) {
  .hero-top {
    gap: 40px;
  }
}

@media (min-width: 768px) {
  .hero-top {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }
}

.hero-bio-wrapper {
  display: flex;
  flex-direction: column;
}

.hero-photo {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f3f3f3;
}

@media (max-width: 767px) {
  .hero-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
  }
}

@media (min-width: 768px) {
  .hero-photo {
    width: 208px;
    height: 208px;
    border-radius: 8px;
  }
}

.hero-photo .profile-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Image 0 always visible as base layer */
.hero-photo .profile-image[data-index="0"] {
  opacity: 1;
  z-index: 1;
}

/* Images 1 and 2 stack on top */
.hero-photo .profile-image[data-index="1"],
.hero-photo .profile-image[data-index="2"] {
  opacity: 0;
  z-index: 2;
}

.hero-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-name {
  width: 100%;
  height: fit-content;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(0, 0, 0, 1);
  margin: 0;
}

.hero-role {
  width: 100%;
  height: fit-content;
  margin: 0 0 16px 0;
  font-weight: 600;
  font-size: 24px;
  line-height: 29px;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-role-text {
  display: inline-block;
}

.hero-role-separator {
  display: inline-block;
}

.hero-role-trilingue {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.hero-role-trilingue-text {
  display: inline-block;
}

.hero-role-word {
  position: absolute;
  left: 0;
  bottom: 100%;
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.04em;
  opacity: 0;
  transform: translateY(0);
  pointer-events: none;
}

/* Hover: infinite loop */
.hero-role-trilingue:hover .hero-role-word-1,
.hero-role-trilingue.is-hovering .hero-role-word-1 {
  animation: wordFloat 2.2s ease-out 0s infinite;
}

.hero-role-trilingue:hover .hero-role-word-2,
.hero-role-trilingue.is-hovering .hero-role-word-2 {
  animation: wordFloat 2.2s ease-out 0.4s infinite;
}

.hero-role-trilingue:hover .hero-role-word-3,
.hero-role-trilingue.is-hovering .hero-role-word-3 {
  animation: wordFloat 2.2s ease-out 0.8s infinite;
}

/* Click: play once */
.hero-role-trilingue.is-clicked .hero-role-word-1 {
  animation: wordFloat 2.2s ease-out 0s;
}

.hero-role-trilingue.is-clicked .hero-role-word-2 {
  animation: wordFloat 2.2s ease-out 0.4s;
}

.hero-role-trilingue.is-clicked .hero-role-word-3 {
  animation: wordFloat 2.2s ease-out 0.8s;
}

@keyframes wordFloat {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  45% {
    opacity: 0;
    transform: translateY(-40px);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px);
  }
}

.hero-contact {
  font-size: 18px;
  letter-spacing: -0.72px;
  font-weight: 400;
  color: #393939;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-contact > a {
  position: relative;
  font-weight: 400;
  background: #f3f3f3;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.2s ease;
}

.hero-contact > a:hover {
  background: #e8e8e8;
}

.hero-email-copy-icon {
  position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    padding-right: 8px;
    width: 44px;
    display: flex;
    justify-content: end;
    align-items: center;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
  background: linear-gradient(to right, transparent 0%, #f3f3f3 30%);
  pointer-events: none;
}

.hero-contact > a:hover .hero-email-copy-icon,
.hero-contact > a:active .hero-email-copy-icon {
  opacity: 1;
  background: linear-gradient(to right, transparent 0%, #e8e8e8 30%);
}

@media (max-width: 767px) {
  .hero-contact > a:active .hero-email-copy-icon {
    opacity: 1;
    background: linear-gradient(to right, transparent 0%, #e8e8e8 30%);
  }
}

.hero-email-copy-icon svg {
  width: 16px;
  height: 16px;
  color: #393939;
}

.hero-email-copy-icon.copied {
  opacity: 1 !important;
  background: linear-gradient(to right, transparent 0%, #e8e8e8 30%) !important;
}

.hero-email-copy-icon.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-socials {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin-top: 0;
}

.hero-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero-socials a:hover {
  transform: scale(1.1);
  opacity: 0.7;
}

.hero-socials img {
  width: 24px;
  height: 24px;
}

.hero-bio {
  max-width: 824px;
  font-size: 16px;
}

.hero-bio p {
  font-weight: 400;
  font-size: 32px;
  line-height: 44px;
  letter-spacing: -0.04em;
  text-align: left;
  margin: 0;
}

.hero-bio p:first-child {
  margin-bottom: 44px;
}

/* Sections */

.section {
  margin-top: 96px;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .section-header {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 0;
  }
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0;
}

.section-view-all {
  font-size: 16px;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: -0.64px;
  color: #000000;
  margin: 0;
  transition: opacity 0.2s ease;
}

.section-view-all:hover {
  opacity: 0.7;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  justify-items: center;
}

@media (min-width: 768px) {
  .card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
  }
}

/* Showcase card */

.showcase-card {
  position: relative;
  display: block;
  width: 324px;
  aspect-ratio: 324 / 444;
  border-radius: 4px;
  border: 1px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(180deg, #E4E4E4 0%, #ffffff 100%) border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  transform-origin: bottom left;
}

/* News cards - with fake card and rotation */
.showcase-card[data-variant="news"]::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  border: 1px solid #e4e4e4;
  background: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: -1;
  transform: translate(2px, 2px);
}

.showcase-card[data-variant="news"]:hover::after {
  opacity: 0.7;
  transform: translate(8px, 8px);
}

.showcase-card[data-variant="news"]:hover {
  transform: translateY(-12px) rotate(-1deg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid #E4E4E4;
  background: #ffffff;
}

/* TV cards - simple translation, no rotation, no fake card */
.showcase-card[data-variant="tv"]:hover {
  transform: translateY(-12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid #E4E4E4;
  background: #ffffff;
}

.showcase-card:has(.showcase-play) {
  aspect-ratio: 324 / 370;
}

@media (min-width: 768px) {
  .showcase-card {
    width: auto;
    flex: 0 0 324px;
    max-width: 324px;
    aspect-ratio: auto;
  }

  .showcase-card:has(.showcase-play) {
    aspect-ratio: 324 / 370;
  }
}

.showcase-card-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px 28px;
  border-radius: 3px;
  background-color: #fff;
  position: relative;
  overflow: hidden;
  border: solid 1px #f2f2f2;
}

.showcase-card[data-variant="tv"] .showcase-card-inner {
  border: none;
}

.showcase-logo {
  height: 32px;
  display: flex;
  align-items: start;
  width: 151px;
}

.showcase-logo img {
  display: block;
  height: 32px;
  object-fit: contain;
}

.showcase-title {
  font-size: 21px;
  line-height: 22px;
  font-weight: 700;
  font-family: "Inria Serif", Georgia, serif;
  letter-spacing: -0.63px;
}

.showcase-cover {
  position: relative;
  border-radius: 0px;
  overflow: hidden;
  height: 152px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* neutral fallback while cover image loads */
  background-color: #f3f3f3;
}

.showcase-cover img {
  display: none;
}

.showcase-skeleton {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
}

.showcase-skeleton-line {
  height: 7px;
  border-radius: 0;
  background: #ececec;
}

.showcase-skeleton-line:nth-child(2) {
  width: 100%;
}

.showcase-skeleton-line:nth-child(3) {
  width: 100%;
}

.showcase-white-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 210px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 30.252%, #ffffff 100%);
  pointer-events: none;
}

/* TV play icon */

.showcase-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-play-circle {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.showcase-card[data-variant="tv"]:hover .showcase-play-circle {
  transform: scale(0.9);
}

.showcase-play-triangle {
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 18px solid #000000;
  transform: translateX(2px);
}

/* View all link */

.view-all-link {
  margin-top: 48px;
  text-align: center;
  margin: 48px 0px 96px;
}

.view-all-link a {
  font-size: 16px;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: -0.64px;
  color: #000000;
  transition: opacity 0.2s ease;
  display: inline-block;
}

.view-all-link a:hover {
  opacity: 0.7;
}

/* Footer */

.footer {
  margin-top: 64px;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.64px;
  color: #000000;
}

.footer-email {
  margin-top: 4px;
}

/* Productions page */

.productions-title {
  margin-top: 120px;
  margin-bottom: 60px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

@media (max-width: 767px) {
  .productions-title {
    margin-top: 84px;
    margin-bottom: 40px;
  }
}

.productions-table {
  display: flex;
  flex-direction: column;
}

.productions-header {
  display: grid;
  grid-template-columns: 6fr 2fr 1fr;
  gap: 72px;
  padding: 0 16px 16px;
  margin-bottom: 40px;
}

@media (max-width: 767px) {
  .productions-header {
    display: none;
  }
}

.productions-header .productions-cell {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.productions-header .productions-cell.sortable {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease;
}

.productions-header .productions-cell.sortable:hover {
  opacity: 0.7;
}

.productions-header .productions-cell.sortable .sort-icon {
  width: 16px;
  height: 16px;
  opacity: 0.4;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.productions-header .productions-cell.sortable:hover .sort-icon {
  opacity: 0.7;
}

.productions-header .productions-cell.sortable.sorted-desc .sort-icon {
  opacity: 1;
}

.productions-row {
  display: grid;
  align-items: center;
  grid-template-columns: 6fr 2fr 1fr;
  gap: 72px;
  padding: 24px 16px;
  border-top: 1px solid #eaeaea;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.productions-row:hover {
  background-color: #f8f8f8;
}

@media (max-width: 767px) {
  .productions-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 20px 16px;
  }
}

.productions-cell {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.3;
}

.productions-cell-title {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 767px) {
  .productions-cell {
    font-size: 18px;
  }

  .productions-cell-title {
    font-weight: 600;
    -webkit-line-clamp: 3;
    margin-bottom: 8px;
  }

  .productions-cell-media,
  .productions-cell-date {
    font-size: 16px;
  }

  .productions-cell-media::before,
  .productions-cell-date::before {
    font-weight: 600;
    margin-right: 8px;
  }

  .productions-cell-media::before {
    content: "Media : ";
  }

  .productions-cell-date::before {
    content: "Date : ";
  }
}


