/* ===================================================================
   Keuken van Elsje — Design System
   Heritage Belanda-Indonesia · Bandung · Sejak 1920
   =================================================================== */

:root {
  /* Brand Palette */
  --arang-oma: #1A1208;       /* Background gelap utama */
  --kayu-dapur: #3D2E14;      /* Background sekunder / overlay */
  --emas-elsje: #C4A870;      /* Aksen, garis, highlight */
  --krim-belanda: #E8D9BE;    /* Teks di atas gelap */
  --tembaga-tua: #8A6840;     /* Sub-teks, muted */
  --linen-rumah: #F2EBE0;     /* Background terang utama */

  /* Functional */
  --text-dark: #1A1208;
  --text-light: #E8D9BE;
  --text-muted-light: #8A6840;
  --text-muted-dark: rgba(232, 217, 190, 0.65);
  --border-subtle: rgba(196, 168, 112, 0.25);

  /* Typography */
  --font-display: 'Bodoni Moda', 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing & Layout */
  --container: 1240px;
  --container-narrow: 880px;
  --radius: 2px;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================================================
   Reset & Base
   =================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--linen-rumah);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

/* ===================================================================
   Typography
   =================================================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
}

h3 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
}

h4 {
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

p {
  margin-bottom: 1.2em;
}

.italic-gold {
  font-style: italic;
  color: var(--emas-elsje);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--emas-elsje);
  margin-bottom: 1.2rem;
  position: relative;
  padding-left: 2.5rem;
}

.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.8rem;
  height: 1px;
  background: var(--emas-elsje);
}

.eyebrow-center {
  padding-left: 0;
  text-align: center;
}

.eyebrow-center::before { display: none; }

.divider-gold {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--emas-elsje);
  margin: 1.5rem 0;
}

.divider-gold.center {
  margin-left: auto;
  margin-right: auto;
}

/* ===================================================================
   Layout Containers
   =================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .container, .container-narrow { padding: 0 1.5rem; }
}

/* Section variants */
.section-dark {
  background: var(--arang-oma);
  color: var(--text-light);
}

.section-dark .eyebrow { color: var(--emas-elsje); }
.section-dark p { color: var(--text-muted-dark); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--krim-belanda); }

/* ===================================================================
   Navigation
   =================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 2rem;
  background: rgba(26, 18, 8, 0.0);
  transition: background var(--transition), padding var(--transition);
}

.nav.scrolled {
  background: rgba(26, 18, 8, 0.96);
  padding: 0.8rem 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* When on a light-background page, nav starts dark immediately */
.nav-solid {
  background: rgba(26, 18, 8, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--krim-belanda);
  letter-spacing: 0.02em;
}

.nav-brand span {
  color: var(--emas-elsje);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  color: var(--krim-belanda);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--emas-elsje);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--emas-elsje);
}

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin-left: 0.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(196, 168, 112, 0.3);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted-dark);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  transition: color var(--transition);
}

.lang-btn:hover { color: var(--krim-belanda); }
.lang-btn.active { color: var(--emas-elsje); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--krim-belanda);
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--arang-oma);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem 2.5rem;
    transition: right var(--transition);
    gap: 1.5rem;
  }

  .nav-links.open { right: 0; }

  .nav-links a {
    font-size: 1rem;
    letter-spacing: 0.15em;
  }

  .lang-switcher {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(196, 168, 112, 0.3);
    padding-top: 1.5rem;
    margin-top: 1rem;
    width: 100%;
  }
}

/* ===================================================================
   Hero (homepage)
   =================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--krim-belanda);
  overflow: hidden;
  background: var(--arang-oma);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at center, rgba(26, 18, 8, 0.30) 0%, rgba(26, 18, 8, 0.80) 100%),
    linear-gradient(180deg, rgba(26, 18, 8, 0.48) 0%, rgba(26, 18, 8, 0.72) 100%),
    url("../images/building-buton.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  filter: contrast(1.05);
}

/* Hero alternatif per halaman — kelas tambahan */
.hero-bg--elita {
  background-image:
    radial-gradient(ellipse at center, rgba(26, 18, 8, 0.35) 0%, rgba(26, 18, 8, 0.85) 100%),
    linear-gradient(180deg, rgba(26, 18, 8, 0.55) 0%, rgba(26, 18, 8, 0.75) 100%),
    url("../images/hero-elita.jpg");
}
.hero-bg--building {
  background-image:
    radial-gradient(ellipse at center, rgba(26, 18, 8, 0.30) 0%, rgba(26, 18, 8, 0.80) 100%),
    linear-gradient(180deg, rgba(26, 18, 8, 0.48) 0%, rgba(26, 18, 8, 0.72) 100%),
    url("../images/building-buton.jpg");
}
.hero-bg--interior {
  background-image:
    radial-gradient(ellipse at center, rgba(26, 18, 8, 0.35) 0%, rgba(26, 18, 8, 0.85) 100%),
    linear-gradient(180deg, rgba(26, 18, 8, 0.55) 0%, rgba(26, 18, 8, 0.8) 100%),
    url("../images/elita-interior.jpg");
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.45'/%3E%3C/svg%3E");
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--emas-elsje);
  border-radius: 100px;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--emas-elsje);
  margin-bottom: 2rem;
  background: rgba(26, 18, 8, 0.4);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1;
  margin-bottom: 1.5rem;
  color: var(--krim-belanda);
}

.hero-title em {
  font-style: italic;
  color: var(--emas-elsje);
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 300;
  color: var(--text-muted-dark);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  letter-spacing: 0.02em;
}

.hero-meta {
  display: inline-flex;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tembaga-tua);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--tembaga-tua);
  text-transform: uppercase;
  animation: hero-scroll-bob 2.5s ease-in-out infinite;
}

@keyframes hero-scroll-bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* ===================================================================
   Buttons
   =================================================================== */
.btn {
  display: inline-block;
  padding: 1rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--emas-elsje);
  border-radius: 0;
  background: transparent;
  color: var(--emas-elsje);
  transition: all var(--transition);
}

.btn:hover {
  background: var(--emas-elsje);
  color: var(--arang-oma);
}

.btn-solid {
  background: var(--emas-elsje);
  color: var(--arang-oma);
}

.btn-solid:hover {
  background: var(--krim-belanda);
  border-color: var(--krim-belanda);
  color: var(--arang-oma);
}

.btn-dark {
  border-color: var(--arang-oma);
  color: var(--arang-oma);
}

.btn-dark:hover {
  background: var(--arang-oma);
  color: var(--krim-belanda);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===================================================================
   Page Header (Story, Menu, Reservation, Contact)
   =================================================================== */
.page-header {
  background: var(--arang-oma);
  color: var(--krim-belanda);
  padding: 10rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 20%, rgba(26, 18, 8, 0.6) 100%);
}

.page-header-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.page-header h1 em {
  color: var(--emas-elsje);
  font-style: italic;
}

.page-header .lead {
  color: var(--text-muted-dark);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===================================================================
   Story Timeline (5 generasi)
   =================================================================== */
.timeline {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 2.5rem;
  border-left: 1px solid var(--border-subtle);
  position: relative;
}

.timeline-item {
  position: relative;
  padding-bottom: 4rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.9rem;
  top: 0.4rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emas-elsje);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--emas-elsje);
  font-style: italic;
  display: block;
  margin-bottom: 0.4rem;
}

.timeline-item h3 {
  color: var(--krim-belanda);
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.timeline-item p {
  color: var(--text-muted-dark);
  max-width: 580px;
}

/* ===================================================================
   Menu Sections
   =================================================================== */
.menu-section {
  margin-bottom: 4rem;
}

.menu-section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.menu-section-head h2 {
  font-size: 2rem;
  color: var(--arang-oma);
}

.section-dark .menu-section-head h2 {
  color: var(--krim-belanda);
}

.menu-section-head p {
  color: var(--tembaga-tua);
  font-style: italic;
  font-size: 0.95rem;
  margin-top: 0.6rem;
}

.section-dark .menu-section-head p {
  color: var(--text-muted-dark);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem 3rem;
  max-width: 960px;
  margin: 0 auto;
}

.menu-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dotted var(--border-subtle);
}

.menu-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.menu-item-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--arang-oma);
}

.section-dark .menu-item-name { color: var(--krim-belanda); }

.menu-item-price {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--emas-elsje);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.menu-item-price--variants {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  white-space: nowrap;
}

.menu-item-price-variant {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}

.menu-item-price-label {
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tembaga-tua);
  opacity: 0.85;
}

.section-dark .menu-item-price-label { color: var(--krim-belanda); opacity: 0.7; }

.menu-item-price-value {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--emas-elsje);
  letter-spacing: 0.05em;
}

.menu-item-desc {
  font-size: 0.9rem;
  color: var(--tembaga-tua);
  line-height: 1.55;
  margin: 0;
}

.section-dark .menu-item-desc { color: var(--text-muted-dark); }

/* ===================================================================
   Featured menu cards (homepage) — dengan foto
   =================================================================== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.featured-card {
  display: flex;
  flex-direction: column;
  background: var(--linen-rumah);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: transform 0.5s var(--transition), box-shadow 0.5s var(--transition);
}
.section-dark .featured-card {
  background: #231810;
  border-color: rgba(196, 168, 112, 0.18);
}
.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(26, 18, 8, 0.4);
}

.featured-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--arang-oma);
}
.featured-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1s ease;
}
.featured-card:hover .featured-card-image img { transform: scale(1.06); }

.featured-card-body {
  padding: 1.5rem 1.4rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.featured-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0;
  color: var(--arang-oma);
}
.section-dark .featured-card-title { color: var(--krim-belanda); }

.featured-card-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--tembaga-tua);
  margin: 0;
}
.section-dark .featured-card-desc { color: var(--text-muted-dark); }

.featured-card-price {
  margin-top: 0.4rem;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  color: var(--emas-elsje);
}

.menu-note {
  text-align: center;
  margin-top: 3rem;
  font-style: italic;
  color: var(--tembaga-tua);
  font-size: 0.9rem;
}

/* ===================================================================
   Forms (Reservation)
   =================================================================== */
.form-wrap {
  max-width: 620px;
  margin: 0 auto;
  background: var(--arang-oma);
  color: var(--krim-belanda);
  padding: 3.5rem 3rem;
  border: 1px solid var(--border-subtle);
}

.form-wrap h2 {
  margin-bottom: 0.5rem;
}

.form-wrap .lead {
  color: var(--text-muted-dark);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-wrap { padding: 2.5rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
}

label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emas-elsje);
  margin-bottom: 0.55rem;
  font-weight: 400;
}

input, select, textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--krim-belanda);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.6rem 0;
  transition: border-color var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--emas-elsje);
}

input::placeholder, textarea::placeholder {
  color: rgba(232, 217, 190, 0.35);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C4A870' stroke-width='1.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 16px;
  padding-right: 2rem;
  cursor: pointer;
}

select option {
  background: var(--arang-oma);
  color: var(--krim-belanda);
}

textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}

.form-submit {
  width: 100%;
  padding: 1.1rem;
  margin-top: 0.8rem;
  background: var(--emas-elsje);
  border: none;
  color: var(--arang-oma);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
}

.form-submit:hover { background: var(--krim-belanda); }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.form-note {
  font-size: 0.8rem;
  color: var(--tembaga-tua);
  text-align: center;
  margin-top: 1.2rem;
  line-height: 1.5;
}

.form-alert {
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  border: 1px solid;
  display: none;
}

.form-alert.show { display: block; }

.form-alert.success {
  border-color: var(--emas-elsje);
  background: rgba(196, 168, 112, 0.1);
  color: var(--krim-belanda);
}

.form-alert.error {
  border-color: #c95a3e;
  background: rgba(201, 90, 62, 0.1);
  color: #e8b4a5;
}

/* ===================================================================
   Slot Picker (reservation form)
   =================================================================== */
.slot-picker {
  border: 1px solid rgba(196, 168, 112, 0.28);
  padding: 1.2rem 1.3rem 1.4rem;
  border-radius: 2px;
  background: rgba(196, 168, 112, 0.04);
}
.slot-hint {
  margin: 0.2rem 0 1rem;
  font-size: 0.85rem;
  color: var(--tembaga-tua);
  font-style: italic;
  min-height: 1.2em;
}
.slot-hint.error { color: #e8b4a5; font-style: normal; }
.slot-session + .slot-session { margin-top: 1.1rem; }
.slot-session-title {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--emas-elsje);
  margin-bottom: 0.55rem;
}
.slot-session-meta {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--tembaga-tua);
  text-transform: none;
}
.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}
.slot-btn {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(196, 168, 112, 0.35);
  color: var(--krim-belanda);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  padding: 0.85rem 0.3rem;
  cursor: pointer;
  border-radius: 2px;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.slot-btn:hover:not(:disabled) {
  border-color: var(--emas-elsje);
  background: rgba(196, 168, 112, 0.1);
}
.slot-btn.active {
  background: var(--emas-elsje);
  border-color: var(--emas-elsje);
  color: var(--arang-oma);
  font-weight: 500;
}
.slot-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}
@media (max-width: 520px) {
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot-btn { font-size: 0.98rem; padding: 0.75rem 0.2rem; }
}

/* ===================================================================
   Feature Grid / Cards
   =================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
  max-width: 1040px;
  margin: 0 auto;
}

.feature {
  text-align: center;
}

.feature-icon {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-style: italic;
  color: var(--emas-elsje);
  margin-bottom: 1rem;
  display: block;
}

.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.02em;
}

.feature p {
  font-size: 0.92rem;
  color: var(--tembaga-tua);
  line-height: 1.65;
}

.section-dark .feature p { color: var(--text-muted-dark); }

/* ===================================================================
   Info Split (two-column)
   =================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
}

.split-text h2 { margin-bottom: 1.5rem; }
.split-text p { margin-bottom: 1rem; }

.split-image {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #2a1d0c, #1a1208);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  margin: 0;
}

.split-image::after {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tembaga-tua);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  text-align: center;
  padding: 1rem;
}

/* Versi dengan foto asli — override placeholder */
.split-image--photo { background: var(--arang-oma); }
.split-image--photo::after { content: none; }
.split-image--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s ease;
}
.split-image--photo:hover img { transform: scale(1.04); }

/* ===================================================================
   Timeline photo per generasi
   =================================================================== */
.timeline-figure {
  margin: 0 0 1.5rem 0;
  width: 140px;
  height: 140px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--arang-oma);
  position: relative;
}
.timeline-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.2) contrast(1.03);
  transition: transform 0.9s ease, filter 0.6s ease;
}
.timeline-item:hover .timeline-figure img {
  transform: scale(1.05);
  filter: grayscale(0) contrast(1.05);
}
@media (max-width: 640px) {
  .timeline-figure { width: 110px; height: 110px; }
}

/* ===================================================================
   Ambience (homepage wide photo strip)
   =================================================================== */
.ambience {
  padding: 0;
  background: var(--linen-rumah);
}
.ambience-figure {
  margin: 0;
  position: relative;
  max-height: 640px;
  overflow: hidden;
}
.ambience-figure img {
  width: 100%;
  height: 100%;
  max-height: 640px;
  object-fit: cover;
  display: block;
  filter: contrast(1.03);
}
/* ambience caption */
.ambience-figure figcaption {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  color: var(--krim-belanda);
  background: rgba(26, 18, 8, 0.7);
  padding: 0.5rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(196, 168, 112, 0.3);
  backdrop-filter: blur(4px);
  max-width: 90%;
  text-align: center;
}

/* ===================================================================
   Footer
   =================================================================== */
.footer {
  background: var(--arang-oma);
  color: var(--krim-belanda);
  padding: 5rem 2rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(196, 168, 112, 0.2);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem 2rem;
  text-align: center;
  justify-items: center;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(196, 168, 112, 0.18);
}

.footer-inner > div {
  text-align: center;
  width: 100%;
  max-width: 260px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: var(--krim-belanda);
  margin-bottom: 0.8rem;
}

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--emas-elsje);
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer p {
  font-size: 0.92rem;
  color: var(--text-muted-dark);
  line-height: 1.7;
  margin: 0;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}

.footer a {
  color: var(--text-muted-dark);
  text-decoration: none;
  transition: color var(--transition);
}

.footer a:hover {
  color: var(--emas-elsje);
}

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted-dark);
  text-align: center;
}

.footer-bottom span,
.footer-bottom em {
  display: inline-block;
}

.footer-bottom em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--emas-elsje);
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .footer {
    padding: 4rem 1.5rem 1.5rem;
  }
  .footer-inner {
    gap: 2.5rem 1rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ===================================================================
   Story Chapter + Photo Gallery Component
   Untuk halaman Cerita Kami — narasi panjang + galeri arsip
   =================================================================== */

.story-chapter {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.story-chapter:last-child {
  border-bottom: none;
}

.story-chapter-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.story-chapter-head {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.story-chapter-head .eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
}

.story-chapter-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.story-chapter-head h2 em {
  color: var(--emas-elsje);
}

.story-chapter-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--tembaga-tua);
  line-height: 1.5;
}

.section-dark .story-chapter-sub {
  color: var(--emas-elsje);
}

.story-chapter-body {
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.story-chapter-body p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 1.4rem;
  color: var(--kayu-dapur);
}

.section-dark .story-chapter-body p {
  color: var(--text-muted-dark);
}

.story-chapter-body p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  float: left;
  margin: 0.2rem 0.8rem 0 0;
  color: var(--emas-elsje);
}

.story-chapter-body p.no-dropcap::first-letter {
  font-size: inherit;
  float: none;
  margin: 0;
  color: inherit;
  font-family: inherit;
}

/* ====== Photo Gallery ====== */

.story-gallery {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.story-gallery.gallery-hero-3 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
}

.story-gallery.gallery-hero-3 .gallery-item:first-child {
  grid-row: span 2;
}

.story-gallery.gallery-grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

.story-gallery.gallery-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.story-gallery.gallery-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.story-gallery.gallery-mosaic-5 {
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 240px 240px;
}

.story-gallery.gallery-mosaic-5 .gallery-item:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.story-gallery.gallery-mosaic-5 .gallery-item:nth-child(2) { grid-column: span 3; }
.story-gallery.gallery-mosaic-5 .gallery-item:nth-child(3) { grid-column: span 2; }
.story-gallery.gallery-mosaic-5 .gallery-item:nth-child(4) { grid-column: span 2; }
.story-gallery.gallery-mosaic-5 .gallery-item:nth-child(5) { grid-column: span 2; }

.story-gallery.gallery-mosaic-7 {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 260px 180px 180px;
}

.story-gallery.gallery-mosaic-7 .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.story-gallery.gallery-mosaic-7 .gallery-item:nth-child(2) { grid-column: span 2; }
.story-gallery.gallery-mosaic-7 .gallery-item:nth-child(3) { grid-column: span 1; }
.story-gallery.gallery-mosaic-7 .gallery-item:nth-child(4) { grid-column: span 1; }
.story-gallery.gallery-mosaic-7 .gallery-item:nth-child(5) { grid-column: span 1; }
.story-gallery.gallery-mosaic-7 .gallery-item:nth-child(6) { grid-column: span 2; }
.story-gallery.gallery-mosaic-7 .gallery-item:nth-child(7) { grid-column: span 2; }

.story-gallery.gallery-mosaic-10 {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
}

.story-gallery.gallery-mosaic-10 .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.story-gallery.gallery-mosaic-10 .gallery-item:nth-child(2) { grid-column: span 2; }
.story-gallery.gallery-mosaic-10 .gallery-item:nth-child(3) { grid-column: span 1; }
.story-gallery.gallery-mosaic-10 .gallery-item:nth-child(4) { grid-column: span 1; }
.story-gallery.gallery-mosaic-10 .gallery-item:nth-child(5) { grid-column: span 2; }
.story-gallery.gallery-mosaic-10 .gallery-item:nth-child(6) { grid-column: span 2; }
.story-gallery.gallery-mosaic-10 .gallery-item:nth-child(7) { grid-column: span 1; }
.story-gallery.gallery-mosaic-10 .gallery-item:nth-child(8) { grid-column: span 1; }
.story-gallery.gallery-mosaic-10 .gallery-item:nth-child(9) { grid-column: span 2; }
.story-gallery.gallery-mosaic-10 .gallery-item:nth-child(10) { grid-column: span 4; }

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--arang-oma);
  border-radius: 2px;
  min-height: 220px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 18, 8, 0) 55%, rgba(26, 18, 8, 0.6) 100%);
  opacity: 0.7;
  pointer-events: none;
}

.gallery-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.9rem;
  color: var(--krim-belanda);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-family: var(--font-display);
  font-style: italic;
  z-index: 1;
  line-height: 1.3;
}

/* Chapter divider — small gold flourish */
.chapter-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 3.5rem auto 0;
  max-width: 200px;
}

.chapter-divider::before,
.chapter-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--emas-elsje);
  opacity: 0.4;
}

.chapter-divider span {
  padding: 0 1rem;
  color: var(--emas-elsje);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
}

/* Pull-quote untuk di dalam chapter */
.story-pullquote {
  max-width: 680px;
  margin: 3rem auto;
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid var(--emas-elsje);
  border-bottom: 1px solid var(--emas-elsje);
}

.story-pullquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  line-height: 1.5;
  color: var(--kayu-dapur);
  margin-bottom: 0.6rem;
}

.section-dark .story-pullquote p {
  color: var(--krim-belanda);
}

.story-pullquote cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--emas-elsje);
}

/* ====== Responsive ====== */

@media (max-width: 900px) {
  .story-chapter {
    padding: 4rem 0;
  }

  .story-gallery.gallery-hero-3,
  .story-gallery.gallery-grid-4,
  .story-gallery.gallery-grid-3,
  .story-gallery.gallery-mosaic-5,
  .story-gallery.gallery-mosaic-7,
  .story-gallery.gallery-mosaic-10 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    grid-auto-rows: 200px;
  }

  .story-gallery.gallery-hero-3 .gallery-item:first-child,
  .story-gallery.gallery-mosaic-5 .gallery-item,
  .story-gallery.gallery-mosaic-7 .gallery-item,
  .story-gallery.gallery-mosaic-10 .gallery-item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  .story-gallery.gallery-mosaic-10 .gallery-item:nth-child(1),
  .story-gallery.gallery-mosaic-7 .gallery-item:nth-child(1),
  .story-gallery.gallery-mosaic-5 .gallery-item:nth-child(1) {
    grid-column: span 2 !important;
    grid-row: span 1 !important;
  }
}

@media (max-width: 560px) {
  .story-gallery.gallery-hero-3,
  .story-gallery.gallery-grid-4,
  .story-gallery.gallery-grid-3,
  .story-gallery.gallery-grid-2,
  .story-gallery.gallery-mosaic-5,
  .story-gallery.gallery-mosaic-7,
  .story-gallery.gallery-mosaic-10 {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .story-gallery .gallery-item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  .story-chapter-body p:first-of-type::first-letter {
    font-size: 2.8rem;
  }
}

/* ==========================================================================
   CHEF PROFILE — Kevin (Generasi Kelima)
   Split-panel, large portrait + philosophy text + Kolose 3:23
   ========================================================================== */
.chef-profile {
  padding: 8rem 0;
  position: relative;
}

.chef-profile-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 5rem;
  align-items: center;
}

.chef-profile-image {
  margin: 0;
  position: relative;
  padding: 0;
}

.chef-profile-image::before {
  content: '';
  position: absolute;
  inset: -18px;
  border: 1px solid rgba(196, 168, 112, 0.28);
  pointer-events: none;
  z-index: 0;
}

.chef-profile-image img {
  width: 100%;
  height: auto;
  max-height: 760px;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  filter: brightness(0.98) contrast(1.02);
}

.chef-profile-text {
  position: relative;
}

.chef-profile-text .eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.chef-profile-text h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.chef-profile-sub {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--emas-elsje);
  font-size: 1.15rem;
  line-height: 1.5;
  margin-bottom: 2rem;
  letter-spacing: 0.01em;
}

.chef-profile-text p {
  color: var(--krim-belanda);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.chef-profile-verse {
  border-left: 2px solid var(--emas-elsje);
  padding: 0.25rem 0 0.25rem 1.75rem;
  margin: 2rem 0;
}

.chef-profile-verse p {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--krim-belanda);
  font-size: 1.15rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.chef-profile-verse cite {
  color: var(--emas-elsje);
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  text-transform: uppercase;
  font-style: normal;
  display: block;
}

.chef-signature {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(196, 168, 112, 0.28);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--emas-elsje);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .chef-profile {
    padding: 5rem 0;
  }
  .chef-profile-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 0 1.5rem;
  }
  .chef-profile-image::before {
    inset: -12px;
  }
  .chef-profile-image img {
    max-height: none;
    object-position: center 30%;
  }
  .chef-profile-text h2 {
    font-size: 2rem;
  }
}

@media (max-width: 560px) {
  .chef-profile {
    padding: 4rem 0;
  }
  .chef-profile-inner {
    gap: 2.25rem;
    padding: 0 1rem;
  }
  .chef-profile-verse {
    padding-left: 1.25rem;
  }
  .chef-profile-verse p {
    font-size: 1.05rem;
  }
}

/* ==========================================================================
   GALLERY — Portrait Row (5 cells, for tall portraits)
   Used by Ch07 Oma Elsje where all 5 photos are portrait-oriented
   ========================================================================== */
.story-gallery.gallery-portraits-5 {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 380px 380px;
  gap: 1rem;
}

.story-gallery.gallery-portraits-5 .gallery-item {
  grid-column: span 1;
  grid-row: span 1;
  min-height: 380px;
}

.story-gallery.gallery-portraits-5 .gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 776px;
}

.story-gallery.gallery-portraits-5 .gallery-item img {
  object-position: center 22%;
}

.story-gallery.gallery-portraits-5 .gallery-item:nth-child(1) img {
  object-position: center 18%;
}

@media (max-width: 900px) {
  .story-gallery.gallery-portraits-5 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    grid-auto-rows: 360px;
    gap: 0.75rem;
  }
  .story-gallery.gallery-portraits-5 .gallery-item:nth-child(1) {
    grid-column: span 2 !important;
    grid-row: span 1 !important;
    min-height: 480px;
  }
  .story-gallery.gallery-portraits-5 .gallery-item:nth-child(1) img {
    object-position: center 22%;
  }
}

@media (max-width: 560px) {
  .story-gallery.gallery-portraits-5 {
    grid-template-columns: 1fr;
    grid-auto-rows: 340px;
  }
  .story-gallery.gallery-portraits-5 .gallery-item,
  .story-gallery.gallery-portraits-5 .gallery-item:nth-child(1) {
    grid-column: span 1 !important;
    min-height: 340px;
  }
}

/* ==========================================================================
   CHAPTER HERO BANNER — prominent photo above chapter head
   Used by Ch01 Elita "Semua bermula dari sini" with IMG_7368
   ========================================================================== */
.chapter-hero-image {
  margin: 0 auto 3.5rem;
  max-width: 1200px;
  padding: 0 2rem;
  position: relative;
}

.chapter-hero-image .chapter-hero-frame {
  position: relative;
  overflow: hidden;
  background: var(--arang-oma);
}

.chapter-hero-image .chapter-hero-frame::before {
  content: '';
  position: absolute;
  inset: -18px;
  border: 1px solid rgba(196, 168, 112, 0.28);
  pointer-events: none;
  z-index: 0;
}

.chapter-hero-image img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  max-height: 680px;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  filter: brightness(0.92) contrast(1.05);
}

.chapter-hero-image .chapter-hero-caption {
  margin-top: 1.25rem;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--emas-elsje);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .chapter-hero-image {
    padding: 0 1.5rem;
    margin-bottom: 2.5rem;
  }
  .chapter-hero-image img {
    min-height: 360px;
    max-height: 480px;
  }
}

/* ============================================================
   GALLERY HOUSE MIX — 1 portrait + 2 landscape mixed aspect
   Used by Ch06: rumah-04 portrait spans 2 rows, rumah-01/02 stacked
   HTML order: landscape, landscape, portrait (portrait = nth-child 3)
   ============================================================ */
.story-gallery.gallery-house-mix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.story-gallery.gallery-house-mix .gallery-item {
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: var(--arang-oma);
  border-radius: 2px;
}

.story-gallery.gallery-house-mix .gallery-item:nth-child(1) {
  grid-column: 2;
  grid-row: 1;
  aspect-ratio: 3 / 2;
}

.story-gallery.gallery-house-mix .gallery-item:nth-child(2) {
  grid-column: 2;
  grid-row: 2;
  aspect-ratio: 3 / 2;
}

.story-gallery.gallery-house-mix .gallery-item:nth-child(3) {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.story-gallery.gallery-house-mix .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .story-gallery.gallery-house-mix {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .story-gallery.gallery-house-mix .gallery-item:nth-child(1),
  .story-gallery.gallery-house-mix .gallery-item:nth-child(2),
  .story-gallery.gallery-house-mix .gallery-item:nth-child(3) {
    grid-column: 1;
    grid-row: auto;
    aspect-ratio: auto;
  }
  .story-gallery.gallery-house-mix .gallery-item:nth-child(1),
  .story-gallery.gallery-house-mix .gallery-item:nth-child(2) {
    aspect-ratio: 3 / 2;
  }
  .story-gallery.gallery-house-mix .gallery-item:nth-child(3) {
    aspect-ratio: 3 / 4;
  }
}

/* ============================================================
   CHAPTER FEATURE WIDE — landscape figure, natural aspect
   Used mid-chapter for spotlight images (e.g. Ch06 rumah-03)
   ============================================================ */
.chapter-feature-wide {
  margin: 3rem auto;
  max-width: 1080px;
  padding: 0 2rem;
  position: relative;
}

.chapter-feature-wide .chapter-hero-frame {
  position: relative;
  overflow: hidden;
  background: var(--arang-oma);
}

.chapter-feature-wide .chapter-hero-frame::before {
  content: '';
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(196, 168, 112, 0.28);
  pointer-events: none;
  z-index: 0;
}

.chapter-feature-wide img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  filter: brightness(0.98) contrast(1.02);
}

@media (max-width: 900px) {
  .chapter-feature-wide {
    padding: 0 1.5rem;
    margin: 2rem auto;
  }
  .chapter-feature-wide .chapter-hero-frame::before {
    inset: -10px;
  }
}

/* ============================================================
   GALLERY PORTRAITS 6 — hero + mosaic layout (Ch07 Oma Elsje)
   Layout: big hero left (2x2), 5 smaller cells around
   object-position tuned per cell to preserve faces from cropping
   ============================================================ */
.story-gallery.gallery-portraits-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 290px 290px 290px;
  gap: 0.85rem;
}

.story-gallery.gallery-portraits-6 .gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--arang-oma);
  min-height: 0;
}

.story-gallery.gallery-portraits-6 .gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 595px;
}

.story-gallery.gallery-portraits-6 .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Default object-position = top, so faces at top of portrait stay visible */
.story-gallery.gallery-portraits-6 .gallery-item:nth-child(2) img,
.story-gallery.gallery-portraits-6 .gallery-item:nth-child(3) img,
.story-gallery.gallery-portraits-6 .gallery-item:nth-child(4) img,
.story-gallery.gallery-portraits-6 .gallery-item:nth-child(5) img,
.story-gallery.gallery-portraits-6 .gallery-item:nth-child(6) img {
  object-position: center 20%;
}

/* Hero cell (nth-child 1) — keep natural center since cell is taller */
.story-gallery.gallery-portraits-6 .gallery-item:nth-child(1) img {
  object-position: center;
}

@media (max-width: 900px) {
  .story-gallery.gallery-portraits-6 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .story-gallery.gallery-portraits-6 .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: auto;
    min-height: 0;
    aspect-ratio: 3/4;
  }
  .story-gallery.gallery-portraits-6 .gallery-item {
    aspect-ratio: 3/4;
  }
}

/* ============================================================
   CHAPTER SPLIT — image left, text right side-by-side
   Used by Ch08 Esther: esther-05 portrait + body text
   ============================================================ */
.chapter-split-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 4.5rem;
  align-items: center;
}

.chapter-split-image {
  margin: 0;
  position: relative;
  padding: 0;
}

.chapter-split-image::before {
  content: '';
  position: absolute;
  inset: -16px;
  border: 1px solid rgba(196, 168, 112, 0.28);
  pointer-events: none;
  z-index: 0;
}

.chapter-split-image img {
  width: 100%;
  height: auto;
  max-height: 680px;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  filter: brightness(0.98) contrast(1.02);
}

.chapter-split-text {
  position: relative;
}

.chapter-split-text .eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.chapter-split-text h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
}

.chapter-split-text .story-chapter-sub {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--tembaga-tua);
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 1.75rem;
  letter-spacing: 0.01em;
}

.chapter-split-text p {
  margin-bottom: 1.2rem;
  line-height: 1.75;
}

@media (max-width: 900px) {
  .chapter-split-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 1.5rem;
  }
  .chapter-split-image::before {
    inset: -10px;
  }
}

/* ============================================================
   SECTION SOCIAL — Instagram CTA band (homepage)
   ============================================================ */
.section-social {
  padding: 6rem 0;
  background: var(--arang-oma);
  color: var(--text-light);
  text-align: center;
}

.section-social .eyebrow {
  color: var(--emas-elsje);
}

.section-social h2 {
  color: var(--krim-belanda);
  margin: 0.5rem 0 1.5rem;
}

.section-social .social-handle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--emas-elsje);
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
}

.section-social .social-body {
  max-width: 520px;
  margin: 0 auto 2rem;
  color: var(--text-muted-dark);
  line-height: 1.7;
}

.section-social .social-btn {
  display: inline-block;
}

@media (max-width: 768px) {
  .section-social {
    padding: 4rem 0;
  }
}

/* ============================================================
   SECTION IG FEED — Instagram grid on homepage
   ============================================================ */
.section-ig-feed {
  padding: 6rem 0;
  background: var(--linen-rumah);
}

.section-ig-feed .eyebrow {
  color: var(--tembaga-tua);
  font-weight: 500;
}

.section-ig-feed h2 {
  color: var(--arang-oma);
  margin: 0.5rem 0 0.75rem;
}

.section-ig-feed .ig-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--tembaga-tua);
  letter-spacing: 0.02em;
  margin: 0;
}

.ig-feed-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.ig-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--arang-oma);
  display: block;
  border-radius: 2px;
}

.ig-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ig-tile:hover img {
  transform: scale(1.06);
}

.ig-tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 18, 8, 0.6);
  color: var(--krim-belanda);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ig-tile:hover .ig-tile-overlay {
  opacity: 1;
}

@media (max-width: 900px) {
  .ig-feed-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
}

@media (max-width: 560px) {
  .ig-feed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   COMMITMENT PAGE — /komitmen.html styling
   Matches Kevin's reference screenshot: dark bg, gold accents,
   numbered 01-09, serif titles, italic muted body
   ============================================================ */
.commitment-page {
  padding: 8rem 2rem;
  min-height: 100vh;
  background: var(--arang-oma);
  color: var(--text-light);
}

.commitment-frame {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 2.5rem 4rem;
  position: relative;
  border: 1px solid rgba(196, 168, 112, 0.28);
}

.commitment-header {
  text-align: center;
  padding: 1.5rem 0 2.5rem;
  position: relative;
}

.commitment-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--emas-elsje);
  margin-bottom: 1rem;
}

.commitment-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--krim-belanda);
  margin: 0;
  position: relative;
  display: inline-block;
  padding: 0 1.5rem;
}

.commitment-title::before,
.commitment-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: var(--emas-elsje);
}
.commitment-title::before { right: 100%; }
.commitment-title::after { left: 100%; }

.commitment-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.commitment-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(196, 168, 112, 0.18);
}

.commitment-item:last-child {
  border-bottom: 1px solid rgba(196, 168, 112, 0.18);
}

.commitment-number {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--emas-elsje);
  text-align: left;
  padding-top: 0.15rem;
}

.commitment-text h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--krim-belanda);
  margin: 0 0 0.35rem;
  line-height: 1.4;
}

.commitment-text p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted-dark);
  margin: 0;
  line-height: 1.5;
}

.commitment-footer {
  text-align: center;
  padding: 3rem 0 0.5rem;
}

.commitment-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  color: var(--krim-belanda);
  margin: 0 0 0.4rem;
}

.commitment-address {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--tembaga-tua);
  text-transform: uppercase;
  margin: 0;
}

@media (max-width: 640px) {
  .commitment-page {
    padding: 5rem 1rem;
  }
  .commitment-frame {
    padding: 2rem 1.25rem 2.5rem;
  }
  .commitment-item {
    grid-template-columns: 36px 1fr;
    gap: 1rem;
    padding: 1.2rem 0;
  }
  .commitment-title::before,
  .commitment-title::after {
    width: 20px;
  }
}
