@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Syne:wght@400;600;700;800;900&display=swap');

:root {
  --paper: #FAF7F2;
  --sand: #ECE5DA;
  --sand-dark: #DDD4C5;
  --ink: #141210;
  --ink-soft: #231F1C;
  --ink-muted: #5C544C;
  --terracotta: #A44426;
  --terracotta-deep: #85331A;
  --terracotta-soft: #C85E3E;
  --brass: #9E824A;
  --brass-light: #C2A56C;
  --line-light: rgba(20, 18, 16, 0.12);
  --line-dark: rgba(250, 247, 242, 0.14);
}

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

html {
  background-color: var(--paper);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Typography tokens */
.font-syne { font-family: 'Syne', sans-serif; }
.font-garamond { font-family: 'Cormorant Garamond', serif; }
.font-sans { font-family: 'Plus Jakarta Sans', sans-serif; }

/* Editorial Section Themes */
.theme-paper {
  background-color: var(--paper);
  color: var(--ink);
}

.theme-sand {
  background-color: var(--sand);
  color: var(--ink);
}

.theme-ink {
  background-color: var(--ink);
  color: var(--paper);
}

/* Site Navigation (Editorial Sticky Header) */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-light);
  transition: all 0.3s ease;
}

.site-nav.is-dark {
  background-color: rgba(20, 18, 16, 0.88);
  border-bottom: 1px solid var(--line-dark);
  color: var(--paper);
}

.site-nav.is-light {
  background-color: rgba(250, 247, 242, 0.92);
  border-bottom: 1px solid var(--line-light);
  color: var(--ink);
}

.nav-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.75;
  position: relative;
  padding: 8px 0;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--terracotta);
}

/* Minimalist Editorial Button */
.btn-editorial-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 24px;
  min-height: 44px;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-editorial-dark {
  background-color: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.btn-editorial-dark:hover {
  background-color: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
  transform: translateY(-1px);
}

.btn-editorial-light {
  background-color: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper);
}

.btn-editorial-light:hover {
  background-color: var(--terracotta);
  color: var(--paper);
  border-color: var(--terracotta);
  transform: translateY(-1px);
}

/* -------------------------------------------------------------
 * HOMEPAGE HERO (Responsive: Clean Full-Screen Portrait on Mobile,
 * Scroll-Driven Expander with ODUM Wordmark on Desktop)
 * ------------------------------------------------------------- */
.hero-expand-section {
  position: relative;
  background-color: var(--ink);
  color: var(--paper);
}

.hero-expand-sticky {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Giant Background Wordmark on Desktop (Behind image) */
.hero-bg-wordmark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  will-change: opacity, transform;
}

.hero-bg-wordmark span {
  font-family: 'Syne', sans-serif;
  font-weight: 900;
  font-size: clamp(6.5rem, 24vw, 28rem);
  line-height: 0.75;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.16);
  white-space: nowrap;
}

/* Foreground Media */
.hero-expand-media {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
  will-change: width, height, border-radius;
}

.hero-expand-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-expand-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.04) contrast(1.08) saturate(1.18);
  will-change: transform;
}

/* Mobile Hero (Screen < 768px): Natural, non-trapped hero showing Bokor Kugblenu's face clearly */
@media (max-width: 767px) {
  .hero-expand-section {
    height: 100vh;
    height: 100svh;
  }

  .hero-expand-sticky {
    position: relative;
    height: 100vh;
    height: 100svh;
  }

  .hero-expand-media {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .hero-expand-media img {
    object-position: 20% 25% !important; /* Centers the sacred statue face and staff prominently on mobile screens */
  }

  .hero-bg-wordmark {
    display: none;
  }

  .scroll-cue {
    display: none;
  }
}

/* Desktop Hero (Screen >= 768px): Scroll-Driven Expansion without excessive dead space */
@media (min-width: 768px) {
  .hero-expand-section {
    height: 140vh; /* Smooth, natural scroll distance connecting directly into content */
  }

  .hero-expand-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
  }

  .hero-expand-media {
    width: clamp(380px, 44vw, 680px);
    height: clamp(440px, 65vh, 740px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.85);
    border-radius: 16px;
  }

  .hero-expand-media img {
    object-position: center center;
  }
}

.hero-expand-shade {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, rgba(16, 14, 12, 0.45) 0%, transparent 22%, transparent 64%, rgba(16, 14, 12, 0.82) 100%),
    linear-gradient(90deg, rgba(16, 14, 12, 0.28) 0%, transparent 50%);
  pointer-events: none;
}

/* Overlays inside the hero sticky container */
.hero-meta-top {
  position: absolute;
  top: 86px;
  left: 0;
  right: 0;
  padding: 0 max(16px, 4vw);
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}

@media (min-width: 640px) {
  .hero-meta-top {
    top: 96px;
    padding: 0 max(24px, 4vw);
    font-size: 11px;
    letter-spacing: 0.22em;
  }
}

.hero-meta-bottom {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  padding: 0 max(16px, 4vw);
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

@media (min-width: 640px) {
  .hero-meta-bottom {
    bottom: 32px;
    padding: 0 max(24px, 4vw);
    flex-direction: row;
    align-items: flex-end;
    gap: 16px;
  }
}

.hero-headline-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 2.0rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.scroll-cue {
  font-size: 11px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  transition: opacity 0.3s ease;
}

/* -------------------------------------------------------------
 * SUBPAGE FULL-WIDTH CINEMATIC HERO
 * 100% Full-Width Edge-to-Edge with Layered Typography
 * ------------------------------------------------------------- */
.subpage-hero-layered {
  position: relative;
  width: 100%;
  min-height: 60vh;
  min-height: 60svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--line-light);
}

@media (min-width: 640px) {
  .subpage-hero-layered {
    min-height: 72vh;
    min-height: 72svh;
  }
}

.subpage-bg-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}

.subpage-bg-text span {
  font-family: 'Syne', sans-serif;
  font-weight: 900;
  font-size: clamp(3.2rem, 16vw, 22rem);
  line-height: 0.75;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.10);
  white-space: nowrap;
}

.subpage-fg-container {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.subpage-fg-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(1.04) contrast(1.08) saturate(1.18);
  transform: scale(1.02);
  transition: transform 9s ease-out, filter 0.6s ease;
}

.subpage-hero-layered:hover .subpage-fg-container img {
  transform: scale(1.04);
}

.subpage-fg-shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: 
    linear-gradient(180deg, rgba(16, 14, 12, 0.45) 0%, transparent 22%, transparent 64%, rgba(16, 14, 12, 0.82) 100%),
    linear-gradient(90deg, rgba(16, 14, 12, 0.30) 0%, transparent 55%);
  pointer-events: none;
}

.hero-statement-bottom {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 max(16px, 4vw) 2.25rem;
}

@media (min-width: 640px) {
  .hero-statement-bottom {
    padding: 0 max(24px, 4vw) 3.5rem;
  }
}

.hero-statement-bottom h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.subpage-hero-fullwidth {
  position: relative;
  width: 100%;
  min-height: 64vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--line-light);
}

.subpage-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.subpage-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.04) contrast(1.08) saturate(1.18);
  transform: scale(1.02);
  transition: transform 9s ease-out;
}

.subpage-hero-fullwidth:hover .subpage-hero-media img {
  transform: scale(1.05);
}

.subpage-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: 
    linear-gradient(180deg, rgba(16, 14, 12, 0.45) 0%, transparent 22%, transparent 64%, rgba(16, 14, 12, 0.82) 100%),
    linear-gradient(90deg, rgba(16, 14, 12, 0.30) 0%, transparent 55%);
}

.subpage-hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3.5rem;
}

@media (min-width: 1024px) {
  .subpage-hero-content {
    padding: 5rem 3rem 4rem;
  }
}

.subpage-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.subpage-dek {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.65;
  opacity: 0.9;
}

/* Editorial Picture Frames in Sections */
.editorial-photo {
  position: relative;
  overflow: hidden;
  background-color: var(--sand);
}

.editorial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.02) contrast(1.05) saturate(1.12);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.editorial-photo:hover img {
  transform: scale(1.035);
  filter: brightness(1.05) contrast(1.08) saturate(1.18);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #b8ada0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--terracotta); }

/* Mobile Touch Target Standards (44px min touch area) */
#mobile-drawer a {
  min-height: 44px;
  display: flex;
  align-items: center;
}

#mobile-menu-btn {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Editorial Captions with High Contrast & Legibility */
.caption-editorial {
  font-family: 'Plus Jakarta Sans', monospace, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 1rem;
}

@media (max-width: 639px) {
  .caption-editorial {
    font-size: 12px;
    letter-spacing: 0.08em;
    line-height: 1.6;
  }
}
