@font-face {
  font-family: "Asset";
  src: url("Asset-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Ballet";
  src: url("Ballet-Regular-VariableFont_opsz.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --pink: #fab2ca;
  --light-yellow: #ffe44c;
  --black: #111;
  --turquoise-main: #00bec8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans Black", "Noto Sans", sans-serif;
  background: var(--pink);
  color: var(--light-yellow);
  overflow-x: hidden;
}

/* NAV */
.site-header {
  width: 100%;
  padding: 1.2rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1300;
}

.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.nav-menu {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.nav-menu li,
.nav-menu a,
.menu-toggle {
  position: relative;
  z-index: 1301;
}

.nav-menu a {
  text-decoration: none;
  color: var(--turquoise-main);
  font-weight: 900;
  font-size: clamp(0.75rem, 1.1vw, 1rem);
  letter-spacing: -0.025em;
}

.nav-menu a:hover {
  color: rgb(84, 232, 224);
}

.has-dropdown {
  position: relative;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  position: absolute;
  right: 0;
  top: 0;
  cursor: pointer;
  background: transparent;
  border: none;
  z-index: 1301;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--light-yellow);
  display: block;
}

/* GALLERY PANEL */
.gallery-panel {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--turquoise-main);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 1200;
}

body.gallery-open .gallery-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gallery-panel-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.gallery-panel-inner a {
  text-decoration: none;
  color: var(--light-yellow);
  font-family: "Noto Sans Black", "Noto Sans", sans-serif;
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-panel-inner a:hover {
  opacity: 0.75;
  transform: translateY(-2px);
}

body.gallery-open .site-header {
  background: var(--turquoise-main);
}

body.gallery-open .nav-menu a {
  color: var(--light-yellow);
}

body.gallery-open .nav-menu a:hover {
  color: var(--pink);
}

body.gallery-open .menu-toggle span {
  background: var(--light-yellow);
}

/* HERO */
.hero {
  position: relative;
  z-index: 2;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

body.gallery-open .hero {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hero-inner {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lamp-title {
  font-family: "Asset", serif;
  font-size: clamp(4rem, 18.5vw, 32rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  display: inline-block;
  cursor: pointer;
  color: var(--light-yellow);
  text-shadow: none;
  animation: lampSequence 6s ease forwards;
  text-align: center;
  line-height: 0.82;
}

.lamp-title .line {
  display: block;
}

.lamp-title .letter {
  display: inline-block;
  transition: transform 0.4s ease-out;
}

.lamp-title:hover .letter {
  animation: balloonFloat 3.5s infinite;
  animation-delay: calc(var(--i) * 0.08s);
  animation-timing-function: cubic-bezier(0.45, 0.05, 0.25, 1);
}

.subtitle {
  margin-top: 1rem;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.05em;
}

@keyframes lampSequence {
  0% {
    color: rgba(255, 246, 191, 0.15);
    text-shadow: none;
  }
  8% {
    color: rgba(255, 246, 191, 0.8);
    text-shadow: 0 0 4px rgba(255, 246, 191, 0.4),
      0 0 10px rgba(255, 246, 191, 0.25);
  }
  12% {
    color: rgba(255, 246, 191, 0.2);
    text-shadow: none;
  }
  20% {
    color: rgba(255, 246, 191, 0.9);
    text-shadow: 0 0 6px rgba(255, 246, 191, 0.5),
      0 0 14px rgba(255, 246, 191, 0.3);
  }
  25% {
    color: rgba(255, 246, 191, 0.25);
    text-shadow: none;
  }
  32% {
    color: var(--light-yellow);
    text-shadow: 0 0 8px rgba(255, 246, 191, 0.6),
      0 0 18px rgba(255, 246, 191, 0.5), 0 0 32px rgba(255, 246, 191, 0.3),
      0 0 48px rgba(255, 246, 191, 0.2);
  }
  82% {
    color: var(--light-yellow);
    text-shadow: 0 0 8px rgba(255, 246, 191, 0.6),
      0 0 18px rgba(255, 246, 191, 0.5), 0 0 32px rgba(255, 246, 191, 0.3),
      0 0 48px rgba(255, 246, 191, 0.2);
  }
  100% {
    color: var(--light-yellow);
    text-shadow: none;
  }
}

@keyframes balloonFloat {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
  }
  30% {
    transform: translateY(-10px) translateX(3px) rotate(-2deg) scale(1.03);
  }
  60% {
    transform: translateY(-20px) translateX(-4px) rotate(2deg) scale(1.05);
  }
  85% {
    transform: translateY(-12px) translateX(2px) rotate(-1deg) scale(1.02);
  }
  100% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
  }
}

.hero {
  position: relative;
  overflow: hidden;
}

.floating-character {
  position: absolute;
  width: clamp(850px, 65vw, 1450px);
  height: auto;

  left: 42%;
  top: 38%;

  transform: translate(-50%, -50%);
  transform-origin: center center;

  opacity: 0.9;
  z-index: 1;
  pointer-events: none;

  animation: floatCharacter 20s ease-in-out infinite alternate;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

@keyframes floatCharacter {
  0% {
    left: -50vw;
    bottom: -10%;
    transform: translateY(-30px) rotate(30deg) scale(0.99);
  }

  10% {
    left: -38vw;
    bottom: -50%;
    transform: translateY(-58px) rotate(45deg) scale(1.01);
  }

  20% {
    left: -25vw;
    bottom: -28%;
    transform: translateY(-42px) rotate(3deg) scale(1.02);
  }

  30% {
    left: -11vw;
    bottom: -35%;
    transform: translateY(-95px) rotate(-120deg) scale(1.03);
  }

  40% {
    left: 6vw;
    bottom: -31%;
    transform: translateY(-55px) rotate(20deg) scale(1.01);
  }

  50% {
    left: 23vw;
    bottom: -21%;
    transform: translateY(-120px) rotate(-33deg) scale(1.04);
  }

  60% {
    left: 41vw;
    bottom: -48%;
    transform: translateY(-48px) rotate(-50deg) scale(1);
  }

  70% {
    left: 60vw;
    bottom: -38%;
    transform: translateY(-108px) rotate(-120deg) scale(1.03);
  }

  80% {
    left: 78vw;
    bottom: -26%;
    transform: translateY(-62px) rotate(70deg) scale(1.01);
  }

  90% {
    left: 97vw;
    bottom: -37%;
    transform: translateY(-132px) rotate(130deg) scale(1.05);
  }

  100% {
    left: 115vw;
    bottom: -49%;
    transform: translateY(-44px) rotate(-100deg) scale(1);
  }
}

/* ============================================================
   ABOUT PAGE — layout
   ============================================================ */
.about-page {
  background: var(--pink);
  color: var(--light-yellow);
}

.about-page .site-header {
  background: transparent;
}

.about-page .nav-menu a {
  color: var(--turquoise-main);
}

.about-page .nav-menu a:hover {
  color: rgb(84, 232, 224);
}

.about-page .menu-toggle span {
  background: var(--light-yellow);
}

.about-page .about-main {
  padding: 0;
}

/* ============================================================
   MARQUEE HERO
   ============================================================ */
.marquee-hero {
  width: 100%;
  min-height: auto; /* remove forced full-screen height */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: clamp(8rem, 20vw, 17rem);
  padding-bottom: clamp(1em, 4vw, 3rem);
}

.word-collage {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(0.1rem, 0.6vw, 0.5rem);
  align-items: center;
}

.marquee-row {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee-left {
  animation: scrollLeft 24s linear infinite;
}

.marquee-right {
  animation: scrollRight 24s linear infinite;
}
@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scrollRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.marquee-content {
  display: flex;
  align-items: baseline;
  flex-shrink: 0;
  white-space: nowrap;
}

.marquee-image {
  width: clamp(90px, 10vw, 180px);
  margin: 0 1rem;
  flex-shrink: 0;
  display: inline-block;
}

.marquee-image--wide {
  width: clamp(130px, 14vw, 240px);
}

.marquee-image img {
  width: 100%;
  height: auto; /* preserves each photo's real aspect ratio, no cropping */
  display: block;
}

.collage-word {
  font-family: "Noto Sans Black", "Noto Sans", sans-serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 7.3vw, 7.8rem);
  line-height: 0.65;
  letter-spacing: -0.06em;
  color: white;
  padding: 0.12em;
  white-space: nowrap;
}

.collage-word--serif {
  font-family: "Ballet", Ballet, serif;
  font-weight: 450;
  font-style: italic;
  font-size: clamp(5rem, 12vw, 14rem);
  line-height: 0.45;
  letter-spacing: 0.02em;
}

/* ============================================================
   BIO SECTION
   ============================================================ */
.about-text {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 4vw, 4rem);
  margin-bottom: clamp(5rem, 7vw, 7rem);
  padding-left: 2rem;
  padding-right: 2rem;
}

.about-text p {
  max-width: 800px;
  text-align: left;
  font-family: "Noto Sans regular", "Noto Sans", sans-serif;
  line-height: 1.6;
  color: white;
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  padding-top: 6.5rem;
  padding-bottom: 4.5rem;
}

/* ============================================================
   ABOUT PAGE — entrance animations
   ============================================================ */
@keyframes aboutFadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-animate-text {
  opacity: 0;
}

.about-animate-text.about-animate-in {
  animation: aboutFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.about-animate-text.about-animate-in .about-bio {
  opacity: 1;
  transform: translateY(0);
}

.about-intro h1::after {
  content: "";
  display: block;
  position: absolute;
  bottom: -6px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--light-yellow);
  opacity: 0.45;
  transition: width 0s;
}

.about-animate-text.about-animate-in .about-intro h1::after {
  width: 100%;
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .collage-word {
    font-size: clamp(2rem, 6vw, 8rem);
  }

  .collage-word--serif {
    font-size: clamp(2rem, 10vw, 5.5rem);
  }

  .collage-img-slot {
    width: clamp(36px, 6vw, 70px);
    height: clamp(28px, 4.5vw, 52px);
  }

  .about-bio-section {
    padding: 4rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    flex-direction: column;
    gap: 1rem;
    background: var(--pink);
    padding: 1rem;
    width: auto;
    max-width: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .about-page .site-header {
    padding: 1.2rem 1rem;
  }

  .about-page .nav-menu {
    background: var(--pink);
  }

  .collage-word {
    font-size: clamp(1.4rem, 10vw, 3rem);
  }

  .collage-word--serif {
    font-size: clamp(1.5rem, 11vw, 3.4rem);
  }

  .collage-img-slot {
    width: 32px;
    height: 24px;
    margin: 0 0.25rem;
  }

  .about-bio-section {
    padding: 4rem 1rem;
    min-height: auto;
  }
}

/* ============================================================
   GALLERY SUBPAGES
   turquoise background + pink text/nav
   ============================================================ */

.gallery-page {
  background: var(--turquoise-main);
  color: var(--pink);

  min-height: 100vh;
}

.gallery-page .site-header {
  background: var(--turquoise-main);
}

.gallery-page .nav-menu a {
  color: var(--pink);
}

.gallery-page .nav-menu a:hover {
  color: var(--light-yellow);
}

.gallery-page .menu-toggle span {
  background: var(--pink);
}

.gallery-page .nav-menu.active {
  background: var(--turquoise-main);
}

.gallery-subpage-main {
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  background: var(--turquoise-main);
}

.gallery-subpage-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 45vh;
  text-align: center;
}

.gallery-subpage-title {
  font-family: "Asset", serif;
  line-height: 0.95;
  color: var(--pink);
  margin: 0.5rem;
  padding: clamp(1rem, 4vw, 2rem);
  /* safe fallback size if no page-specific modifier is present */
  font-size: clamp(1rem, 4.8vw, 9rem);
}

/* Tuned to the exact text on each page so titles grow as large as
   possible while guaranteed to never overflow the viewport width. */
.gallery-subpage-title--editorial {
  font-size: clamp(1.1rem, 5.2vw, 10rem);
}

.gallery-subpage-title--graphic {
  font-size: clamp(1rem, 4.8vw, 9rem);
}

.gallery-subpage-title--photography {
  font-size: clamp(1rem, 4.7vw, 9rem);
}

.gallery-subpage-title--motion {
  font-size: clamp(1.3rem, 6.8vw, 12rem);
}

.gallery-subpage-title--contact {
  font-size: clamp(1.5rem, 8vw, 13rem);
}

.gallery-subpage-title--placeholder {
  font-family: "Noto Sans Black", "Noto Sans", sans-serif;
  font-size: clamp(1rem, 3vw, 3rem);
  letter-spacing: 0.05em;
}

.gallery-subpage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start; /* stops grid from stretching images out of ratio */
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.gallery-subpage-card {
  border: none;
  padding: 0;
  background: transparent;
}

.gallery-subpage-card img {
  display: block;
  width: 100%;
  height: auto; /* keeps each photo's original ratio, nothing cropped */
}

.gallery-subpage-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.gallery-subpage-card-link .gallery-subpage-card {
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.gallery-subpage-card-link:hover .gallery-subpage-card {
  opacity: 0.85;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .gallery-subpage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .gallery-subpage-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-subpage-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.gallery-subpage-card-link .gallery-subpage-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-subpage-card-link:hover .gallery-subpage-card {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.artwork-detail-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(6rem, 12vw, 9rem) clamp(1.5rem, 4vw, 2.5rem)
    clamp(2rem, 5vw, 4rem);
  /* lets child headings size themselves relative to this container's
     actual width (which itself never exceeds 1200px), so titles can
     grow as large as possible without overflowing the container */
  container-type: inline-size;
}

.artwork-detail-main h1 {
  font-family: "Asset", serif;
  text-align: center;
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  /* safe fallback if a page doesn't have a specific modifier below */
  font-size: clamp(0.8rem, 3.4cqw, 2.6rem);
}

/* Each heading below is tuned to its own exact text so it can be as
   big as possible on every screen size while guaranteed to never
   overflow the .artwork-detail-main container. */
.detail-title--jaime-book {
  font-size: clamp(1rem, 4.9cqw, 3.7rem);
}

.detail-title--jaime-poster {
  font-size: clamp(1rem, 4.2cqw, 3.2rem);
}

.detail-title--playfair {
  font-size: clamp(0.8rem, 3.4cqw, 2.6rem);
}

.detail-title--gamerfont {
  font-size: clamp(1.1rem, 5.7cqw, 4.3rem);
}

.detail-title--eyeshands {
  font-size: clamp(1rem, 4.7cqw, 3.6rem);
}

.detail-title--aboutyou {
  font-size: clamp(1.3rem, 6.4cqw, 4.9rem);
}

.artwork-detail-main > p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  line-height: 1.6;
}

.artwork-detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start; /* stops grid from stretching images out of ratio */
  gap: clamp(1.25rem, 4vw, 2.5rem);
  max-width: 1200px;
  margin: clamp(2rem, 6vw, 3.75rem) auto 0;
}

.artwork-detail-gallery img {
  width: 100%;
  height: auto; /* preserves each image's real ratio, nothing cropped */
  display: block;
  border-radius: 4px;
}

/* when a project page only has one photo, let it read as a single
   centered image instead of sitting in half an empty grid row */
.artwork-detail-gallery img:only-child {
  grid-column: 1 / -1;
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .artwork-detail-gallery {
    grid-template-columns: 1fr;
  }
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  text-decoration: none;
  color: var(--pink);
  font-weight: bold;
}

.back-button {
  display: inline-block;
  margin-bottom: clamp(1.25rem, 3vw, 1.9rem);
  color: var(--pink);
  text-decoration: none;
  font-weight: bold;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
}

.back-button:hover {
  text-decoration: underline;
}

.artwork-description {
  max-width: 700px;
  margin: 1.5rem auto 0;
  text-align: left;
  font-family: "Noto Sans regular", "Noto Sans", sans-serif;
  line-height: 1.6;
  color: var(--pink);
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  padding-bottom: clamp(6rem, 15vw, 12.5rem);
}

#jaime-hayon-page .artwork-detail-gallery img:first-child {
  grid-column: 1 / -1;
  width: 100%;
  height: auto;
}
