.entrance-hero {
  --cream: #f4f0e6;
  --paper: #f5f0e5;
  --forest: #173b2d;
  --forest-deep: #0e2b20;
  --sage: #95a48e;
  --gold: #b28b3f;
  --ink: #26372f;
  --line: rgba(23, 59, 45, .18);
}

body.virtual-exhibition-page {
  --ve-page-background: #f5f0e5;
  background: var(--ve-page-background);
}

body.virtual-exhibition-page .herbarium-footer--landscape-in-flow {
  background: linear-gradient(to bottom,
    var(--ve-page-background) 0 var(--footer-landscape-height),
    #f7f8f2 var(--footer-landscape-height) 100%);
}

body.virtual-exhibition-page .herbarium-footer--landscape-in-flow .footer-landscape {
  background-color: var(--ve-page-background);
}

.entrance-hero, .entrance-hero * { box-sizing: border-box; }
.entrance-hero img { display: block; max-width: 100%; }
.entrance-hero a { color: inherit; font: inherit; }
.entrance-hero {
  position: relative;
  min-height: calc(100svh - 86px);
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
}

.entrance-hero__paper { position: absolute; z-index: -5; inset: 0; background: linear-gradient(to bottom, transparent 0 72%, var(--ve-page-background) 100%), radial-gradient(circle at 18% 20%, rgba(255,255,255,.72), transparent 34%), radial-gradient(circle at 78% 62%, rgba(214,207,185,.18), transparent 34%), repeating-linear-gradient(97deg, rgba(80,72,54,.014) 0 1px, transparent 1px 7px), var(--ve-page-background); }
.entrance-hero::before { content: ""; position: absolute; z-index: 12; inset: auto -3% -18% auto; width: 28vw; height: 58vh; background: radial-gradient(ellipse, rgba(43,70,41,.42), rgba(40,65,38,.15) 38%, transparent 70%); filter: blur(22px); transform: rotate(-18deg); pointer-events: none; }
.botanical-watermark { position: absolute; z-index: -2; left: 30%; bottom: -18%; width: min(34vw, 520px); color: rgba(155,137,94,.17); transform: rotate(-19deg); }

.hero-copy { position: relative; z-index: 10; width: 52%; max-width: 880px; padding: clamp(74px, 10vh, 128px) 0 90px clamp(38px, 5.2vw, 100px); }
.hero-kicker { display: flex; align-items: center; gap: 19px; margin: 0 0 30px; color: var(--gold); font-size: clamp(.65rem, .8vw, .82rem); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.hero-kicker span + span::before { content: ""; display: inline-block; width: 50px; height: 1px; margin: 0 19px 4px 0; background: var(--gold); }
.entrance-hero h1 { margin: 0; color: var(--forest); font-family: Georgia, "Times New Roman", serif; font-size: clamp(4.2rem, 7.3vw, 8.2rem); font-weight: 400; letter-spacing: -.055em; line-height: .77; }
.entrance-hero h1 em { font-weight: 400; }
.hero-summary { max-width: 570px; margin: 38px 0 30px; color: #5c625d; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.08rem, 1.45vw, 1.45rem); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 15px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-width: 240px; padding: 17px 23px; border: 1px solid var(--forest); font-family: Georgia, serif; font-size: 1.03rem; text-decoration: none; transition: color .2s ease, background .2s ease; }
.button span { font-family: system-ui, sans-serif; font-size: 1.4rem; line-height: .6; }
.button--primary { color: #fff; background: var(--forest); }
.button--primary:hover { background: var(--gold); border-color: var(--gold); }
.button--secondary { color: var(--forest); background: rgba(255,255,255,.28); }
.button--secondary:hover { color: #fff; background: var(--forest); }

.hero-collage { position: absolute; z-index: 3; top: 0; right: 0; width: 58%; height: 100%; }
.collage-field { position: absolute; top: 3%; right: 2%; width: 80%; height: 88%; background: linear-gradient(145deg, #173e2d, #0d2b20 64%, #274d39); box-shadow: 0 30px 70px rgba(21,43,33,.24); }
.collage-image { position: absolute; margin: 0; pointer-events: none; }
.collage-image img { width: 100%; height: 100%; object-fit: contain; }
.collage-image--foliage { z-index: 1; top: -7%; left: 1%; width: 57%; height: 62%; opacity: .92; filter: saturate(.84) brightness(.78); }
.collage-image--foliage img { object-position: left top; filter: drop-shadow(0 24px 30px rgba(8,26,17,.28)); }
.collage-image--hall { z-index: 5; top: 7%; right: 2%; width: 67%; height: 89%; filter: drop-shadow(0 26px 34px rgba(18,35,27,.28)); }
.collage-image--hall img { object-position: right bottom; }
.collage-image--branch { z-index: 8; left: -9%; bottom: -17%; width: 76%; height: 70%; transform: rotate(-7deg); transform-origin: left bottom; }
.collage-image--branch img { object-position: left bottom; filter: drop-shadow(0 18px 20px rgba(10,31,19,.26)); }
.collage-image--frame { z-index: 12; inset: -8% -5% -9% -10%; opacity: .55; filter: saturate(.74); }
.collage-image--frame img { object-fit: fill; }
.gold-line { position: absolute; z-index: 8; display: block; background: var(--gold); }
.gold-line--one { top: 36%; left: 41%; width: 3px; height: 18%; }
.gold-line--two { right: 16%; bottom: 16%; width: 24%; height: 2px; }
.hero-index { position: absolute; z-index: 11; bottom: 25px; left: clamp(38px, 5.2vw, 100px); display: flex; align-items: center; gap: 12px; margin: 0; color: #73776f; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; }
.hero-index span { width: 42px; height: 1px; background: var(--gold); }

@media (max-width: 1100px) {
  .entrance-hero { min-height: calc(100svh - 76px); }
  .hero-copy { width: 58%; padding-top: 80px; }
  h1 { font-size: clamp(4rem, 8.5vw, 6.4rem); }
  .hero-collage { width: 54%; }
}

@media (max-width: 760px) {
  .entrance-hero { display: flex; flex-direction: column; min-height: auto; }
  .hero-copy { order: 2; width: 100%; max-width: none; padding: 42px 22px 75px; background: linear-gradient(180deg, rgba(248,245,237,.92), var(--paper)); }
  .hero-kicker { display: block; margin-bottom: 22px; line-height: 1.8; }
  .hero-kicker span { display: block; }
  .hero-kicker span + span::before { width: 30px; margin-right: 10px; }
  h1 { font-size: clamp(3.65rem, 18vw, 5.7rem); line-height: .82; }
  .hero-summary { margin-top: 28px; font-size: 1.05rem; }
  .hero-actions { display: grid; }
  .button { width: 100%; min-width: 0; }
  .hero-collage { position: relative; order: 1; top: auto; right: auto; width: 100%; height: 55svh; min-height: 410px; }
  .collage-field { top: 3%; right: 0; width: 86%; height: 90%; }
  .collage-image--foliage { top: -8%; left: -5%; width: 63%; height: 63%; }
  .collage-image--hall { top: 5%; right: -2%; width: 72%; height: 94%; }
  .collage-image--branch { left: -12%; bottom: -18%; width: 83%; height: 72%; }
  .collage-image--frame { inset: -9% -8% -10% -12%; opacity: .48; }
  .hero-index { display: none; }
  .botanical-watermark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Text-only exhibition entrance. Keep this final block after the earlier
   prototype rules so no removed collage treatment affects the simple hero. */
.entrance-hero {
  display: grid;
  place-items: center;
  min-height: calc(100svh - 82px);
  padding: clamp(72px, 12vh, 150px) clamp(24px, 7vw, 120px);
  color: #34442c;
  background-color: #f5f0e5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.028'/%3E%3C/svg%3E");
  text-align: center;
}

.entrance-hero::before { display: none; }

.entrance-hero .hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

.entrance-hero .hero-kicker {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 0 0 34px;
  color: #9a7634;
  font: 600 clamp(.68rem, .85vw, .82rem)/1.5 'Anuphan', Tahoma, sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.entrance-hero .hero-kicker span + span::before {
  width: 52px;
  margin-right: 20px;
}

.entrance-hero h1 {
  margin: 0;
  color: #173b2d;
  font: 500 clamp(4.2rem, 9vw, 9rem)/.8 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -.055em;
}

.entrance-hero h1 em { font-weight: 500; }

.entrance-hero .hero-summary {
  max-width: 660px;
  margin: 42px auto 0;
  color: #62695f;
  font: 400 clamp(1rem, 1.45vw, 1.35rem)/1.65 'Cormorant Garamond', Georgia, serif;
}

@media (max-width: 700px) {
  .entrance-hero {
    min-height: calc(100svh - 72px);
    padding: 72px 22px 90px;
  }

  .entrance-hero .hero-kicker {
    display: block;
    margin-bottom: 28px;
    line-height: 1.9;
  }

  .entrance-hero .hero-kicker span { display: block; }
  .entrance-hero .hero-kicker span + span::before { width: 30px; margin-right: 10px; }
  .entrance-hero h1 { font-size: clamp(3.8rem, 18vw, 6.2rem); line-height: .84; }
  .entrance-hero .hero-summary { margin-top: 32px; font-size: 1.08rem; }
}

.entrance-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.entrance-button { border-radius: 999px; min-width: 210px; padding: 13px 20px; border: 1px solid #173b2d; font: 500 .9rem/1.4 'Anuphan', Tahoma, sans-serif; text-align: center; }
.entrance-button--search { color: #173b2d; background: transparent; }
.entrance-button--explore { color: #fff; background: #173b2d; cursor: pointer; }
.entrance-button:hover { color: #fff; background: #9a7634; border-color: #9a7634; }

.family-hall { min-height: calc(100svh - 82px); padding: clamp(50px, 8vw, 100px) clamp(24px, 6vw, 100px); background: #f5f0e5; }
.family-hall[hidden] { display: none; }
.family-hall__header { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.family-hall__header > p:first-of-type { color: #9a7634; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.family-hall__header h1 { margin: 8px 0 12px; color: #173b2d; font: 500 clamp(2.8rem, 6vw, 5.5rem)/.95 'Cormorant Garamond', Georgia, serif; }
.family-hall__header > p:last-child { color: #62695f; }
.family-hall__back { border: 0; background: transparent; color: #173b2d; cursor: pointer; }
.family-hall__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; width: min(1200px, 100%); margin: auto; }
.family-chamber { display: flex; min-height: 320px; flex-direction: column; padding: 28px; color: #173b2d; background: #fcfbf7; border: 1px solid #c9b989; box-shadow: 0 12px 30px rgba(25,45,35,.08); }
.family-chamber:hover { border-color: #173b2d; transform: translateY(-2px); }
.family-chamber__index { color: #9a7634; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.family-chamber strong { margin-top: auto; font: 500 clamp(2rem, 3vw, 3rem)/1 'Cormorant Garamond', Georgia, serif; }
.family-chamber small { margin-top: 5px; color: #6d756b; }
.family-chamber p { min-height: 66px; margin: 20px 0; color: #62695f; font-size: .85rem; line-height: 1.6; }
.family-chamber__enter { padding-top: 14px; border-top: 1px solid #ddd5c2; font-size: .82rem; }

@media (max-width: 800px) {
  .family-hall__grid { grid-template-columns: 1fr; }
  .family-chamber { min-height: 250px; }
}
