/* Layout and theme */
/* Custom font */
@font-face {
  font-family: 'French';
  src: url('fonts/French/French.ttf') format('truetype');
}

@font-face {
  font-family: 'FrenchAlt';
  src: url('fonts/French/French Alternative.ttf') format('truetype');
}

@font-face {
  font-family: 'Indonesian';
  src: url('fonts/Indonesian.ttf') format('truetype');
}

:root {
  --bg: #05060a;
  --text: #f4f4f8;
  --muted: rgba(244, 244, 248, 0.75);
  --accent: #3b82f6;
  --overlay: rgba(0, 0, 0, 0.55);
  --overlay-strong: rgba(0, 0, 0, 0.72);
  --radius: 18px;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
  --nav-width: 240px;
  --banner-height: 100vh;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: 'French', cursive;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.18), transparent 55%),
    linear-gradient(170deg, #080a11 0%, #05060a 40%, #0b0b11 100%);
  overflow-x: hidden;
}

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

a:focus,
a:hover {
  text-decoration: underline;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 30;
  pointer-events: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.menu-btn {
  width: 2.4rem;
  height: 2.4rem;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 14px;
  display: grid;
  place-items: center;
  padding: 0.4rem;
  cursor: pointer;
  transition: background 180ms ease;
}

.menu-btn:hover {
  background: rgba(0, 0, 0, 0.65);
}

.menu-btn span {
  content: "";
  display: block;
  width: 1.4rem;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  position: relative;
}

.menu-btn span + span {
  margin-top: 5px;
}

.menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--nav-width);
  padding: 5.5rem 1.25rem 2.5rem;
  background: linear-gradient(135deg, rgba(4, 9, 21, 0.96), rgba(0, 0, 0, 0.8));
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 280ms ease, transform 280ms ease;
  pointer-events: none;
  z-index: 28;
}

.site-header:hover .menu,
.menu:hover {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.menu ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.menu a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, background 180ms ease;
}

.menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(3px);
}

.has-submenu .submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease, opacity 260ms ease;
  opacity: 0;
  margin-top: 0.5rem;
  padding-left: 0.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.has-submenu:hover .submenu {
  max-height: 240px;
  opacity: 1;
}

.submenu li a {
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
}

.site-main {
  scroll-snap-type: y mandatory;
  overflow-y: auto;
  height: 100vh;
}

.banner {
  position: relative;
  min-height: var(--banner-height);
  scroll-snap-align: start;
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 450ms ease;
}

.banner__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner__overlay {
  position: relative;
  z-index: 2;
  width: min(92vw, 1100px);
  text-align: center;
  padding: 0 1.5rem;
  display: grid;
  gap: 1rem;
}

.banner__overlay h1,
.banner__overlay h2 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: none;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.banner__overlay h1 {
  font-size: clamp(3.4rem, 7vw, 6.2rem);
  color: rgba(255, 255, 255, 0.95);
}

.banner__overlay h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: rgba(255, 255, 255, 0.92);
}

.content-panel h1 {
  font-family: var(--font-display);
  text-transform: none;
}

.site-title .alt-letter {
  font-family: 'FrenchAlt', cursive;
}

.banner__overlay h2.indonesian-title,
.artwork-card .indonesian-title {
  font-family: 'Indonesian', cursive;
  text-transform: none;
}

.banner__overlay p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 720px;
}

.banner__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.banner:hover .banner__bg {
  transform: scale(1.035);
}

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

.artwork-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
  height: 100vh;
  margin-top: 0;
}

.artwork-card {
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  min-height: 100%;
  position: relative;
  transition: transform 280ms ease, box-shadow 280ms ease;
  overflow: hidden;
}

.artwork-card span {
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.artwork-card:hover {
  transform: scale(1.04);
  box-shadow: 0 20px 65px rgba(0, 0, 0, 0.55);
}

/* ====== VIDEO CAROUSEL ====== */
.carousel-hero {
  position: relative;
  min-height: var(--banner-height);
  scroll-snap-align: start;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.carousel-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 800ms ease-out, transform 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.carousel-item--active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 1;
}

.carousel-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Video carousel indicators (dots) */
.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
  pointer-events: auto;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 300ms ease;
  padding: 0;
}

.carousel-indicator:hover {
  background: rgba(255, 255, 255, 0.7);
}

.carousel-indicator--active {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.95);
}

/* Carousel overlay content */
.carousel-overlay {
  position: relative;
  z-index: 5;
  width: min(92vw, 1100px);
  text-align: center;
  padding: 0 1.5rem;
  display: grid;
  gap: 1rem;
  pointer-events: none;
}

.carousel-overlay .site-title {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: clamp(3.4rem, 7vw, 6.2rem);
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.carousel-subtitle {
  margin: 0;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 720px;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.site-footer {
  padding: 2.25rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
    transition: none !important;
  }
}
