/* ==========================================================================
   Muzium Pahang: base styles
   Light theme only. 8px spacing scale. Glass on a warm off-white base.
   ========================================================================== */

:root {
  /* Colour */
  --bg: #F7F6F3;
  --surface: #FFFFFF;
  --text: #141414;
  --muted: #6B6B6B;
  --line: #E4E2DD;
  --grey: #CFCDC8;
  --gold: #B08D4A;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, .55);
  --glass-bg-strong: rgba(255, 255, 255, .72);
  --glass-border: 1px solid rgba(255, 255, 255, .7);
  --glass-blur: blur(18px) saturate(140%);

  /* Spacing (8px scale) */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 40px;
  --s-6: 48px;
  --s-8: 64px;
  --s-10: 80px;
  --s-12: 96px;
  --s-16: 128px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-soft: 0 1px 2px rgba(20, 20, 20, .04), 0 8px 24px rgba(20, 20, 20, .06);
  --shadow-long: 0 2px 4px rgba(20, 20, 20, .04), 0 24px 64px rgba(20, 20, 20, .12);

  /* Type */
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: var(--s-3);
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: var(--s-5); }
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--s-2)); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0;
}

p { margin: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--s-2); top: -100px; z-index: 100;
  display: inline-flex; align-items: center; min-height: 44px;
  background: var(--text); color: var(--surface); padding: 0 var(--s-2); border-radius: var(--r-sm);
}
.skip-link:focus { top: var(--s-2); }

/* Small-caps label with fine gold rule */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--gold); }

.placeholder {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em;
  padding: 0 var(--s-1); border: 1px dashed var(--grey); border-radius: 4px; color: var(--muted);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1);
  min-height: 48px; padding: 0 var(--s-3);
  border-radius: var(--r-pill); border: 1px solid transparent;
  font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--dark { background: var(--text); color: var(--surface); box-shadow: var(--shadow-soft); }
.btn--dark:hover { transform: translateY(-1px); box-shadow: var(--shadow-long); }
.btn--glass { background: var(--glass-bg); border: var(--glass-border); color: var(--text); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.btn--glass:hover { background: var(--glass-bg-strong); }

/* --------------------------------------------------------------------------
   Notice banner
   -------------------------------------------------------------------------- */
.notice {
  position: relative; z-index: 60;
  background: var(--text); color: var(--surface);
  font-size: 14px;
}
.notice[hidden] { display: none; }
.notice__inner { display: flex; align-items: center; gap: var(--s-2); min-height: 48px; padding-block: var(--s-1); }
.notice__dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.notice__text { flex: 1; }
.notice__close {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-right: calc(var(--s-1) * -1);
  background: none; border: 0; color: inherit; cursor: pointer; border-radius: 50%;
}
.notice__close:hover { background: rgba(255, 255, 255, .1); }
.notice__close svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   Navigation (floating glass bar)
   -------------------------------------------------------------------------- */
.nav {
  position: sticky; top: var(--s-2); z-index: 50;
  margin-top: var(--s-2);
}
.nav__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  height: var(--nav-h); padding: 0 var(--s-1) 0 var(--s-1);
  background: var(--glass-bg); border: var(--glass-border); border-radius: var(--r-pill);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-soft);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.is-scrolled .nav__bar { background: var(--glass-bg-strong); box-shadow: var(--shadow-long); }

.nav__brand { display: flex; align-items: center; gap: var(--s-2); text-decoration: none; min-height: 48px; }
.nav__logo { flex: none; width: 56px; height: 56px; border-radius: 50%; }
.nav__brand { flex: none; }
.nav__brand-text { display: none; font: 600 14px/1.2 var(--font-head); letter-spacing: -.01em; }
.nav__brand-text small { display: block; font: 500 12px/1.4 var(--font-body); color: var(--muted); letter-spacing: 0; }

.nav__links { display: none; list-style: none; margin: 0; padding: 0; }
.nav__links a:not(.btn) {
  position: relative; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px;
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--text); white-space: nowrap;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 8px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav__links a:not(.btn):hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__count { color: var(--muted); font-weight: 400; }

.nav__end { display: flex; align-items: center; gap: var(--s-1); }
.nav__contact { display: none; }

/* Mobile / tablet menu */
.nav__toggle {
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; color: var(--text);
}
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -6px; }
.nav__toggle-bars::after { top: 6px; }
.nav.is-open .nav__toggle-bars { background: transparent; }
.nav.is-open .nav__toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav.is-open .nav__links {
  display: grid; gap: 4px;
  position: absolute; top: calc(var(--nav-h) + var(--s-1)); left: var(--gutter); right: var(--gutter);
  padding: var(--s-2);
  background: rgba(255, 255, 255, .92); border: var(--glass-border); border-radius: var(--r-lg);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-long);
}
.nav.is-open .nav__links a:not(.btn) { font-size: 16px; min-height: 48px; width: 100%; }
.nav__links-cta { margin-top: var(--s-1); }
.nav__links-cta .btn { width: 100%; }

@media (min-width: 768px) {
  .nav__brand-text { display: block; }
}
@media (min-width: 1360px) {
  .nav .container { max-width: 1360px; }
  .nav__brand-text { display: none; }
  .nav__links, .nav.is-open .nav__links { display: flex; position: static; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__links-cta, .nav__toggle { display: none; }
  .nav__contact { display: inline-flex; min-height: 44px; padding: 0 var(--s-2); font-size: 14px; }
}

/* Language switch: BM | EN, the current language is filled */
.lang {
  display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 4px;
  border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line);
  font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-decoration: none; color: var(--muted);
}
.lang__opt { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: var(--r-pill); transition: background-color .3s var(--ease), color .3s var(--ease); }
.lang__opt.is-current { background: var(--text); color: var(--surface); }
.lang:hover .lang__opt:not(.is-current) { color: var(--text); }
@media (max-width: 479px) {
  .nav__end { gap: 4px; }
  .nav__bar { gap: var(--s-1); }
  .lang { padding: 3px; }
  .lang__opt { min-width: 30px; padding: 0 6px; }
  .status { padding: 0 12px; }
}

/* Live status pill */
.status {
  display: inline-flex; align-items: center; gap: var(--s-1);
  min-height: 44px; padding: 0 var(--s-2);
  border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; text-decoration: none;
}
/* Status dot: red ripple when closed, green ripple when open, gold during Friday prayer break */
.status__dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #C0392B; --ring: rgba(192, 57, 43, .45); }
.status__dot::before, .status__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--ring); animation: status-ripple 2s var(--ease) infinite;
}
.status__dot::after { animation-delay: 1s; }
@keyframes status-ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.status.is-open .status__dot { background: #2E7D4F; --ring: rgba(46, 125, 79, .45); }
.status__short { display: inline; }
.status__long { display: none; }
@media (min-width: 480px) and (max-width: 1359px) {
  .status__short { display: none; }
  .status__long { display: inline; }
}
.status.is-break .status__dot { background: var(--gold); --ring: rgba(176, 141, 74, .45); }

/* --------------------------------------------------------------------------
   Hero: framed photo with moving sky, glass panel overlapping the bottom edge
   -------------------------------------------------------------------------- */
.hero {
  --hero-gap: clamp(var(--s-2), 3vw, var(--s-6));
  --hero-overlap: var(--s-8);
  position: relative; isolation: isolate;
  margin-top: calc((var(--nav-h) + var(--s-2) * 2) * -1);
  padding-inline: var(--hero-gap);
}

/* Photo frame: inset from the sides, flush with the top, rounded bottom corners */
.hero__scene {
  position: relative; overflow: hidden;
  height: clamp(480px, 82svh, 840px);
  border-radius: 0 0 var(--s-6) var(--s-6);
  background: linear-gradient(180deg, #4A82C2 0%, #86B3DF 42%, #C9DDEF 72%, #E2ECF4 100%);
}

/* Moving sky: two tiling cloud layers drifting at different speeds (transform only) */
.hero__sky { position: absolute; inset: 0; overflow: hidden; }
.hero__clouds {
  position: absolute; top: 0; left: 0; width: 200%; height: 100%;
  background-repeat: repeat-x; background-size: 50% auto;
  animation: hero-drift linear infinite;
  will-change: transform;
}
.hero__clouds--far { background-image: url("../assets/img/home/clouds-far.webp"); background-position: 0 0; opacity: .85; animation-duration: 260s; }
.hero__clouds--near { background-image: url("../assets/img/home/clouds-near.webp"); background-position: 0 24px; animation-duration: 150s; }
@keyframes hero-drift { to { transform: translate3d(-50%, 0, 0); } }

/* Hidden pattern in the sky: a soft light follows the cursor and reveals it.
   --mx / --my are set by JS (initHeroGlow). Pointer devices only. */
.hero__pattern {
  position: absolute; inset: 0;
  background: url("../assets/img/home/pattern.webp") repeat 0 0 / 620px auto;
  opacity: 0; transition: opacity .6s var(--ease);
  -webkit-mask-image: radial-gradient(circle 480px at var(--mx, 50%) var(--my, 30%), #000 0%, rgba(0, 0, 0, .7) 20%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, .1) 72%, transparent 100%);
  mask-image: radial-gradient(circle 480px at var(--mx, 50%) var(--my, 30%), #000 0%, rgba(0, 0, 0, .7) 20%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, .1) 72%, transparent 100%);
}
.hero__sky::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle 600px at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .3), rgba(255, 255, 255, .1) 45%, transparent 80%);
  opacity: 0; transition: opacity .6s var(--ease);
}
.hero__scene.is-glowing .hero__pattern { opacity: .85; }
.hero__scene.is-glowing .hero__sky::after { opacity: 1; }
/* Photo starts below the floating nav. .hero__sketch (intro line drawing) shares the same box */
.hero__img, .hero__sketch {
  position: absolute; left: 0; right: 0; bottom: 0;
  --img-top: calc(var(--nav-h) + var(--s-3));
  top: var(--img-top);
  width: 100%; height: calc(100% - var(--img-top));
  object-fit: cover; object-position: 50% 30%;
}
/* Desktop: crop the photo just below the pool so photo + card fit on one screen.
   In the photo (ratio 1.4906) the roof starts at 17.7% and the pool ends at 69.2% of its height.
   Photo height = 100cqw / 1.4906 = 67.09cqw (cqw = width of the hero frame). */
@media (min-width: 1024px) {
  .hero { container-type: inline-size; }
  /* --sky-extra adds open sky above the roof, using the spare screen height (card still fits on screen) */
  .hero__scene {
    --sky-extra: clamp(var(--s-6), calc(100svh - 34.55cqw - 172px - 80px), 200px);
    height: min(calc(34.55cqw + 172px + var(--sky-extra)), calc(100svh - 80px));
  }
  .hero__img, .hero__sketch {
    top: calc(140px + var(--sky-extra) - 11.87cqw); bottom: auto;
    height: auto; object-fit: fill;
  }
  .hero__sketch { aspect-ratio: 2528 / 1696; }
}

/* Intro: white sketch lines draw one by one, then the building appears and the lines fade.
   JS adds .is-drawing on load (skipped for reduced motion), so without JS the page is static. */
.hero__sketch { pointer-events: none; opacity: 0; overflow: visible; }
.hero__sketch line {
  fill: none; stroke: #FFFFFF; stroke-width: 2; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  filter: drop-shadow(0 0 1.5px rgba(30, 60, 100, .6));
}
.hero__scene.is-drawing .hero__sketch { animation: sketch-fade 3.9s linear both; }
.hero__scene.is-drawing .hero__sketch line { animation: sketch-draw .8s var(--ease) both; animation-delay: calc(.3s + var(--i) * .1s); }
.hero__scene.is-drawing .hero__img { animation: building-in 1.1s var(--ease) 2.3s both; }
.hero__scene.is-drawing + .hero__inner .hero__panel { animation: panel-in .9s var(--ease) 3s both; }
@keyframes sketch-draw { to { stroke-dashoffset: 0; } }
@keyframes sketch-fade { 0%, 72% { opacity: 1; } 100% { opacity: 0; } }
@keyframes building-in { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: none; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Logo intro (once per session): the logo text slides up on black (same black as the logo,
   so the circle is invisible), then the logo flies into the nav while the black fades.
   The inline script in <head> adds .has-intro; JS runs the flight. Hero animations wait (.intro-hold). */
.intro { display: none; }
.has-intro .intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; cursor: pointer; }
.has-intro .nav__logo { opacity: 0; }
.intro-hold .hero__scene, .intro-hold .hero__scene *, .intro-hold .hero__panel { animation-play-state: paused !important; }
.intro__bg { position: absolute; inset: 0; background: #000; transition: opacity .8s cubic-bezier(.4, 0, .2, 1) .1s; }
.intro__mark { position: relative; width: 120px; height: 120px; transform-origin: 0 0; clip-path: inset(26% 0 26% 0); will-change: transform; }
.intro__logo { display: block; width: 100%; height: 100%; border-radius: 50%; animation: intro-slide 1s cubic-bezier(.16, 1, .3, 1) .15s both; }
.intro.is-flying .intro__bg { opacity: 0; }
.intro.is-flying .intro__mark { clip-path: none; transition: transform .9s cubic-bezier(.7, 0, .2, 1); }
.intro.is-skipped { opacity: 0; transition: opacity .3s linear; }
@media (min-width: 768px) { .intro__mark { width: 160px; height: 160px; } }
@keyframes intro-slide { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }

/* Glass card: overlaps the bottom edge of the photo */
.hero__inner {
  position: relative; z-index: 1;
  margin-top: calc(var(--s-12) * -1);
  padding-inline: var(--s-1);
}
.hero__panel {
  position: relative;
  max-width: 440px;
  padding: var(--s-4) var(--s-3);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .42) 50%, rgba(255, 255, 255, .3) 100%);
  border: 1px solid rgba(255, 255, 255, .6); border-radius: var(--r-lg);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 2px 4px rgba(20, 20, 20, .04), 0 24px 64px rgba(20, 20, 20, .16);
}
.hero__panel h1 { font-size: clamp(28px, 3.4vw, 36px); margin-top: var(--s-2); }
.hero__panel .eyebrow { color: #3D3D3D; }
.hero__lead { margin-top: var(--s-2); color: #262626; font-size: 15px; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: var(--s-3); }

/* Phone: shorter photo so the card sits above the pool; card text centred */
@media (max-width: 767px) {
  .hero__scene { height: clamp(420px, 62svh, 600px); }
  .hero__panel { margin-inline: auto; text-align: center; }
  .hero__panel .eyebrow { display: flex; justify-content: center; }
  .hero__panel .eyebrow::after { content: ""; width: 32px; height: 1px; background: var(--gold); }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
}

@media (min-width: 1024px) {
  .hero { padding-bottom: calc(var(--hero-overlap) + var(--s-4)); }
  .hero__inner {
    position: absolute; left: calc(var(--hero-gap) + var(--s-12)); bottom: var(--s-4);
    margin: 0; padding: 0;
  }
  .hero__panel { width: 440px; padding: var(--s-4) var(--s-5); }
}

/* Phone: every section heading (eyebrow + h2 + intro) centred */
@media (max-width: 767px) {
  .section h2, .section-head__intro, .heritage-head__intro { text-align: center; margin-inline: auto; }
  .section .eyebrow:has(+ h2) { display: flex; justify-content: center; }
  .section .eyebrow:has(+ h2)::after { content: ""; width: 32px; height: 1px; background: var(--gold); }
}

/* --------------------------------------------------------------------------
   Museums section: editorial mosaic, not a uniform grid
   -------------------------------------------------------------------------- */
.section { padding-block: var(--s-12); }
@media (min-width: 768px) { .section { padding-block: var(--s-16); } }

.section-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }
.section-head h2 { font-size: clamp(28px, 4.4vw, 44px); max-width: 18ch; }
.section-head p { color: var(--muted); max-width: 52ch; }
@media (min-width: 1024px) {
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; }
  .section-head__intro { grid-column: 2; }
}

.filters { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-bottom: var(--s-4); }
.filter {
  min-height: 44px; padding: 0 var(--s-3);
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface);
  font: 500 14px/1 var(--font-body); color: var(--text); cursor: pointer;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.filter:hover { border-color: var(--grey); }
.filter[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--surface); }
.filter__count { margin-left: var(--s-1); opacity: .6; }

/* One museum per row: photo on the left, glass info card overlapping its right edge */
.mosaic { display: grid; gap: var(--s-5); list-style: none; margin: 0; padding: 0; }

.card { position: relative; display: grid; cursor: pointer; }
.card__media {
  position: relative; overflow: hidden; isolation: isolate;
  height: 260px; border-radius: var(--r-lg);
  background: var(--line); box-shadow: var(--shadow-soft);
  transition: box-shadow .5s var(--ease);
}
.card:hover .card__media { box-shadow: var(--shadow-long); }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); z-index: -1; }
.card:hover .card__img { transform: scale(1.03); }

.card__tag {
  position: absolute; top: var(--s-2); left: var(--s-2);
  padding: 4px var(--s-2); border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  background: var(--glass-bg-strong); border: var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.card__tag--pekan { color: #7A5C22; }
.card__tag--kuantan { color: #2F4A63; }

.card__body {
  position: relative; z-index: 1;
  margin: calc(var(--s-6) * -1) var(--s-2) 0;
  padding: var(--s-3);
  background: rgba(255, 255, 255, .78); border: var(--glass-border); border-radius: var(--r-lg);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-long);
  transition: transform .5s var(--ease);
}
.card:hover .card__body { transform: translateY(-2px); }

@media (min-width: 768px) {
  .card { grid-template-columns: repeat(12, 1fr); align-items: center; }
  .card__media { grid-column: 1 / 10; grid-row: 1; height: 420px; }
  .card__body { grid-column: 8 / 13; grid-row: 1; margin: 0; padding: var(--s-4); }
}
@media (min-width: 1024px) {
  .card__media { grid-column: 1 / 9; height: 440px; }
  .card__body { grid-column: 8 / 13; }
}

.card__focus { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card__title { font-size: clamp(22px, 2.4vw, 28px); margin-top: var(--s-1); }
.card__summary { margin-top: var(--s-1); font-size: 15px; color: #3A3A3A; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__status { display: flex; align-items: center; gap: var(--s-1); margin-top: var(--s-2); font-size: 13px; color: var(--muted); }
.card__status .status__dot { flex: none; }
.card__status.is-open .status__dot { background: #2E7D4F; }

/* Photo slideshow: crossfade (opacity only), arrows + dots on a glass pill */
.gal { position: absolute; inset: 0; z-index: -1; }
.modal__media .gal { z-index: 0; }
.gal__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.gal__img.is-active { opacity: 1; }
.gal__ctrl {
  position: absolute; z-index: 2; top: var(--s-2); right: var(--s-2);
  display: flex; align-items: center; gap: 2px; padding: 2px;
  background: var(--glass-bg-strong); border: var(--glass-border); border-radius: var(--r-pill);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-soft);
}
.gal__btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--text); cursor: pointer; transition: background-color .3s var(--ease); }
.gal__btn:hover { background: rgba(255, 255, 255, .8); }
.gal__btn svg { width: 16px; height: 16px; }
.gal__dots { display: flex; align-items: center; gap: 2px; }
.gal__dot { position: relative; width: 20px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; }
.gal__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--grey); transform: translate(-50%, -50%); transition: width .4s var(--ease), background-color .4s var(--ease); }
.gal__dot.is-active::before { width: 16px; background: var(--text); }
@media (min-width: 768px) {
  .card .gal__ctrl { top: auto; right: auto; bottom: var(--s-2); left: var(--s-2); }
}
.modal__media .gal__ctrl { top: auto; right: auto; bottom: var(--s-2); left: 50%; transform: translateX(-50%); }

/* --------------------------------------------------------------------------
   Shared bits: draft tag, fine print, links, sub-heads
   -------------------------------------------------------------------------- */
.draft {
  display: inline-block; vertical-align: middle;
  padding: 2px 6px; border-radius: 4px;
  font: 600 10px/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: #7A5C22; background: rgba(176, 141, 74, .14); border: 1px solid rgba(176, 141, 74, .35);
}
.fineprint { margin-top: var(--s-2); font-size: 13px; color: var(--muted); }
.updated { display: block; margin-top: var(--s-1); font-size: 13px; color: var(--muted); }
.subhead { font-size: 20px; margin: var(--s-8) 0 var(--s-3); }
.link { color: var(--text); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; font-weight: 500; }
.link:hover { text-decoration-thickness: 2px; }
.btn--light { background: var(--surface); color: var(--text); }
.btn--light:hover { transform: translateY(-1px); }
.eyebrow--light { color: rgba(255, 255, 255, .7); }

.section--tint { background: #EFEDE8; }
.section--dark { background: #161616; color: var(--surface); }

/* --------------------------------------------------------------------------
   Stats strip (fine rules, numbers lead)
   -------------------------------------------------------------------------- */
.stats { padding-block: var(--s-6) 0; }
.stats__list { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; border-top: 1px solid var(--line); }
.stats__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: var(--s-3) var(--s-2) var(--s-3) 0; border-bottom: 1px solid var(--line); }
.stats__item:nth-child(odd) { padding-right: var(--s-2); border-right: 1px solid var(--line); }
.stats__item:nth-child(even) { padding-left: var(--s-2); }
.stats__item dd { margin: 0; font: 700 clamp(32px, 5vw, 48px)/1 var(--font-head); letter-spacing: -.03em; }
.stats__item dt { font-size: 13px; color: var(--muted); }
@media (min-width: 1024px) {
  .stats__list { grid-template-columns: repeat(4, 1fr); }
  .stats__item, .stats__item:nth-child(odd), .stats__item:nth-child(even) { padding: var(--s-3) var(--s-3); border-right: 1px solid var(--line); }
  .stats__item:first-child { padding-left: 0; }
  .stats__item:last-child { border-right: 0; }
}

/* --------------------------------------------------------------------------
   Museum toolbar + extra card parts
   -------------------------------------------------------------------------- */
.toolbar { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.toolbar .filters { margin: 0; }
@media (min-width: 1024px) { .toolbar { grid-template-columns: 1fr 360px; align-items: center; } }

.search {
  display: flex; align-items: center; gap: var(--s-1);
  min-height: 48px; padding: 0 var(--s-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  transition: border-color .3s var(--ease);
}
.search:focus-within { border-color: var(--gold); }
.search svg { flex: none; width: 18px; height: 18px; color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 46px; border: 0; background: none; font: 400 15px var(--font-body); color: var(--text); outline: none; }

.empty { padding: var(--s-6) 0; color: var(--muted); text-align: center; }

.card__open { all: unset; cursor: pointer; }
.card__open::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-lg); }
.card__open:focus-visible::after { outline: 2px solid var(--gold); outline-offset: -4px; }
.card__meta { display: grid; gap: 4px; margin-top: var(--s-2); }
.card__meta .card__status { margin-top: 0; }
.card__price { font-size: 13px; color: var(--muted); }
.card__more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s-2);
  font-size: 13px; font-weight: 600; color: var(--text);
}
.card__more svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.card:hover .card__more svg { transform: translateX(3px); }
.card__status.is-break .status__dot { background: var(--gold); }
.card__draft { position: absolute; top: var(--s-2); right: var(--s-2); }

.card--nophoto .card__media { background: linear-gradient(135deg, #E9E6DF, #D9D5CC); }
.card__nophoto {
  position: absolute; inset: 0; z-index: -1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-1);
  font: 600 13px var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  background-image: repeating-linear-gradient(135deg, transparent 0 22px, rgba(20, 20, 20, .035) 22px 23px);
}

/* --------------------------------------------------------------------------
   Heritage buildings: horizontal timeline with a gold rail that draws in
   -------------------------------------------------------------------------- */
.heritage-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); }
.heritage-head h2 { font-size: clamp(28px, 4.4vw, 44px); margin-top: var(--s-2); }
.heritage-head__intro { margin-top: var(--s-2); color: var(--muted); max-width: 52ch; }
.heritage-nav { display: none; gap: var(--s-1); flex: none; }
.heritage-nav[hidden] { display: none; }
@media (min-width: 768px) { .heritage-nav:not([hidden]) { display: flex; } }
.heritage-nav__btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--grey); background: var(--surface); color: var(--text); cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), opacity .3s var(--ease);
}
.heritage-nav__btn:hover:not(:disabled) { background: var(--text); color: var(--surface); }
.heritage-nav__btn:disabled { opacity: .35; cursor: default; }
.heritage-nav__btn svg { width: 16px; height: 16px; }

.heritage-section { --edge: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
.heritage {
  display: flex; list-style: none; margin: 0; padding: 0 var(--edge) var(--s-2);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  scrollbar-width: none; -ms-overflow-style: none;
}
.heritage::-webkit-scrollbar { display: none; }
.heritage-progress { display: none; }

/* Pinned horizontal scroll (JS adds .is-pinned on >=768px): title column on the left,
   timeline on the right, driven by vertical page scroll */
.heritage-section.is-pinned { padding-block: 0; }
.is-pinned .heritage-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  padding-top: calc(var(--nav-h) + var(--s-3));
}
.is-pinned .heritage-head-wrap {
  flex: none; width: calc(var(--edge) + clamp(340px, 24vw, 520px)); max-width: none; margin: 0;
  padding: 0 var(--s-2) 0 var(--edge);
}
.is-pinned .heritage-head { display: block; margin: 0; }
.is-pinned .heritage-head h2 { font-size: clamp(30px, 3vw, 60px); }
.is-pinned .heritage-nav, .is-pinned .heritage-nav:not([hidden]) { display: none; }
.is-pinned .heritage-progress { display: block; margin-top: var(--s-5); max-width: clamp(280px, 18vw, 400px); }
.heritage-progress__years { display: flex; justify-content: space-between; font: 600 12px/1 var(--font-body); letter-spacing: .12em; color: var(--muted); }
.heritage-progress__bar { display: block; height: 2px; margin-top: var(--s-1); background: var(--grey); border-radius: 2px; overflow: hidden; }
.heritage-progress__bar span { display: block; height: 100%; background: var(--text); transform: scaleX(0); transform-origin: left; }
.is-pinned .heritage {
  flex: 1; min-width: 0; overflow: hidden; scroll-snap-type: none;
  padding: var(--s-4) var(--edge) var(--s-10) var(--s-4);
}
/* Focus mode: cards become photos only, the card in focus grows forward,
   and its story shows in the left column */
.heritage-detail { display: none; }
.is-pinned .heritage-head__intro { display: none; }
.is-pinned .heritage-detail {
  display: block; margin-top: var(--s-4); min-height: 300px;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.heritage-detail.is-swapping { opacity: 0; transform: translateY(8px); }
.heritage-detail__year { font: 700 clamp(56px, 6vw, 128px)/1 var(--font-head); letter-spacing: -.04em; margin-bottom: var(--s-2); }
.heritage-detail .heritage__town { margin-bottom: var(--s-3); }
.heritage-detail .heritage__now { font-size: clamp(22px, 1.6vw, 32px); }
.heritage-detail .heritage__then { font-size: clamp(17px, 1.2vw, 24px); }
.heritage-detail .heritage__note { font-size: clamp(15px, 1vw, 19px); max-width: 34ch; }

/* --c = card width. Small cards are .55c and the focused card 1.1c (2x). Cards after the
   focused one slide left (JS sets --k = steps after focus) so the gaps stay even. */
.is-pinned .heritage__item {
  /* card size follows the screen height so it fills the pinned view on big screens */
  --c: clamp(200px, min((100svh - 360px) / 1.375, 26vw), 680px);
  --yh: clamp(84px, 6.4vw, 124px); /* height of the vertical year label */
  width: calc(var(--c) + var(--s-4)); transition: transform .6s var(--ease);
}
.is-pinned .heritage__item.is-active ~ .heritage__item { transform: translateX(calc(.55 * var(--c) - var(--k, 1) * (.45 * var(--c) + 8px))); }
/* Year written vertically, sitting on the rail */
.is-pinned .heritage__year {
  writing-mode: vertical-rl; transform: rotate(180deg);
  display: block; height: var(--yh); line-height: 1;
  font-size: clamp(28px, 2vw, 40px); color: var(--muted); transition: color .4s var(--ease); }
.is-pinned .heritage__item.is-active .heritage__year { color: var(--text); }
.is-pinned .heritage__item::before { top: calc(var(--yh) + 8px); }
.is-pinned .heritage__item.is-active::before { right: calc((.1 * var(--c) - 8px) * -1); }
.is-pinned .heritage__dot { margin: 2px 0 0; }
.is-pinned .heritage__item .heritage__card { margin-top: calc(var(--c) * .07 + var(--s-3)); }
.is-pinned .heritage__body { display: none; }
.is-pinned .heritage__media { aspect-ratio: 4 / 5; }
.is-pinned .heritage__item .heritage__card {
  transform: scale(.55); transform-origin: left center; opacity: .55;
  transition: transform .6s var(--ease), opacity .6s var(--ease), box-shadow .6s var(--ease);
}
.is-pinned .heritage__item.is-active .heritage__card { transform: scale(1.1); opacity: 1; box-shadow: 0 2px 4px rgba(20, 20, 20, .05), 0 16px 32px rgba(20, 20, 20, .12); }

.heritage.reveal { transform: none; }

.heritage__item {
  position: relative; flex: none; width: clamp(280px, 78vw, 380px);
  padding-right: var(--s-4); scroll-snap-align: start;
}
/* rail segment: one per item, drawn left to right in sequence */
.heritage__item::before {
  content: ""; position: absolute; left: 0; right: 0; top: 72px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .9s var(--ease) calc(.2s + var(--i) * .35s);
}
.heritage__item:last-child::before { right: auto; width: 24px; }
.heritage.is-in .heritage__item::before { transform: scaleX(1); }
.heritage__year {
  font: 700 clamp(44px, 5vw, 64px)/1 var(--font-head); letter-spacing: -.04em; color: var(--text);
  height: 64px; display: flex; align-items: flex-end;
}
.heritage__dot {
  position: relative; z-index: 1; display: block; width: 11px; height: 11px; margin: 2px 0 var(--s-3);
  border-radius: 50%; background: var(--bg); border: 1px solid var(--gold);
  transform: scale(0); transition: transform .5s var(--ease) calc(.2s + var(--i) * .35s);
}
.section--tint .heritage__dot { background: #EFEDE8; }
.heritage.is-in .heritage__dot { transform: scale(1); }

.heritage__card {
  overflow: hidden; border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-soft); cursor: pointer;
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.heritage__card:hover { box-shadow: var(--shadow-long); transform: translateY(-4px); }
.heritage__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.heritage__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.heritage__card:hover .heritage__media img { transform: scale(1.04); }
.heritage__body { padding: var(--s-3); }
.heritage__town { position: static; display: inline-block; margin-bottom: var(--s-2); background: #F3F1EC; border-color: var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
.heritage__label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.heritage__label + .heritage__then, .heritage__label + .heritage__now { margin-top: 4px; }
.heritage__then { font: 600 17px/1.35 var(--font-head); color: #3A3A3A; margin-bottom: var(--s-2); padding-bottom: var(--s-2); border-bottom: 1px solid var(--line); }
.heritage__now { font-size: 20px; line-height: 1.3; }
.heritage__open { all: unset; cursor: pointer; }
.heritage__open:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.heritage__note { margin-top: var(--s-1); font-size: 14px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Khazanah collage: overlapping photos around the title. On entering the
   section they fly out from the centre; hover enlarges one, the rest go grey.
   -------------------------------------------------------------------------- */
.kz { position: relative; padding-block: var(--s-12); }
.kz__pin { display: flex; flex-direction: column-reverse; gap: var(--s-5); padding-inline: var(--gutter); }
.kz__stage { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); max-width: var(--container); margin-inline: auto; width: 100%; }
.kz__item { margin: 0; position: relative; }
.kz__item--main { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .kz__stage { grid-template-columns: repeat(3, 1fr); }
  .kz__stage .kz__item--main { grid-column: span 2; grid-row: span 2; }
  .kz__item--main .kz__frame, .kz__item--main img { height: 100%; }
}
.kz__frame {
  overflow: hidden; border-radius: var(--r-md); background: var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.kz__frame img {
  width: 100%; height: 100%; aspect-ratio: 1600 / 1074; object-fit: cover; display: block;
  transition: filter .5s var(--ease), opacity .5s var(--ease);
}
.kz__text { text-align: center; max-width: 520px; margin-inline: auto; }
.kz__text .eyebrow { justify-content: center; }
.kz__text .eyebrow::after { content: ""; width: 32px; height: 1px; background: var(--gold); }
.kz__text h2 { font-size: clamp(36px, 5vw, 64px); margin-top: var(--s-2); text-transform: uppercase; letter-spacing: -.01em; }
.kz__text p:not(.eyebrow) { margin: var(--s-2) auto 0; color: var(--muted); max-width: 42ch; }

/* Hover: that photo grows, every other photo turns grey */
@media (hover: hover) and (pointer: fine) {
  .kz__item:hover { z-index: 10; }
  .kz__item:hover .kz__frame { transform: scale(1.4); box-shadow: var(--shadow-long); }
  .kz__item--main:hover .kz__frame { transform: scale(1.15); }
  .kz__stage:has(.kz__item:hover) .kz__item:not(:hover) img { filter: grayscale(1); opacity: .45; }
}

/* Desktop collage */
.kz.is-collage { padding-block: var(--s-8) var(--s-12); }
.kz.is-collage .kz__pin { display: block; position: relative; }
.kz.is-collage .kz__stage {
  position: relative; display: block; max-width: none;
  height: clamp(640px, calc(100svh - 120px), 1000px);
}
.kz.is-collage .kz__item {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); z-index: 1;
  translate: -50% -50%;
  transform: translate3d(var(--dx, 0), var(--dy, 0), 0) scale(.3); opacity: 0;
  transition: transform 1.1s var(--ease), opacity .7s var(--ease);
  transition-delay: calc(var(--i) * 45ms);
}
.kz.is-collage .kz__item--main { z-index: 2; }
.kz.is-collage.is-in .kz__item { transform: none; opacity: 1; }
.kz.is-collage .kz__item:hover { z-index: 10; transition-delay: 0s; }
.kz.is-collage .kz__text {
  position: absolute; left: 50%; top: 58%; width: min(580px, 40vw); z-index: 5;
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  transition: transform .9s var(--ease) .55s, opacity .9s var(--ease) .55s;
}
.kz.is-collage.is-in .kz__text { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.kz.is-collage .kz__text h2 { font-size: clamp(34px, 3.4vw, 60px); white-space: nowrap; display: flex; justify-content: center; }

/* Glass quote cards */
.kz__quotes { grid-column: 1 / -1; display: grid; gap: var(--s-2); margin-top: var(--s-2); }
@media (min-width: 768px) { .kz__quotes { grid-template-columns: repeat(2, 1fr); } }
/* Phone: quotes alternate with the photos (order set per item in JS as --o) */
@media (max-width: 767px) {
  .kz__quotes { display: contents; }
  .kz__item, .kz__quote { order: var(--o, 0); }
  .kz__quote { grid-column: 1 / -1; margin-block: var(--s-1); }
  .kz__item:nth-of-type(even):last-of-type { grid-column: 1 / -1; }
}
.kz__quote {
  margin: 0; padding: var(--s-2) var(--s-3);
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .7); border-radius: var(--r-lg);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 2px 4px rgba(20, 20, 20, .04), 0 16px 40px rgba(20, 20, 20, .12);
}
.kz__quote p { font: 600 15px/1.45 var(--font-head); color: var(--text); letter-spacing: -.005em; }
.kz__quote p::before { content: "\201C"; display: block; height: 18px; margin-bottom: 2px; font: 700 32px/1 var(--font-head); color: var(--gold); }
.kz__quote footer { margin-top: var(--s-1); font-size: 12px; line-height: 1.4; color: #4A4A4A; }
.kz__quote cite { font-style: normal; font-weight: 600; }
.kz__quote-en { margin-top: 6px; font: italic 400 13px/1.45 var(--font-body) !important; color: #4A4A4A !important; }
.kz__quote-en::before { content: none !important; }
html[lang="en"] .kz.is-collage .kz__quote { width: clamp(230px, 17vw, 320px); }
html[lang="en"] .kz.is-collage { padding-bottom: calc(var(--s-12) + var(--s-10)); }

.kz.is-collage .kz__quotes { position: absolute; inset: 0; display: block; margin: 0; pointer-events: none; z-index: 6; }
.kz.is-collage .kz__quote {
  position: absolute; left: var(--x); top: var(--y); width: clamp(210px, 15vw, 290px);
  translate: -50% -50%; pointer-events: auto;
  transform: translateY(16px) scale(.96); opacity: 0;
  transition: transform .9s var(--ease), opacity .9s var(--ease);
  transition-delay: calc(.4s + (var(--i) - 12) * 90ms);
}
.kz.is-collage.is-in .kz__quote { transform: none; opacity: 1; }
@media (max-width: 1439px) { .kz.is-collage .kz__quote { padding: 12px var(--s-2); } .kz.is-collage .kz__quote p { font-size: 14px; } .kz.is-collage .kz__quote footer { font-size: 11px; } }

/* --------------------------------------------------------------------------
   Hours, rates, calculator
   -------------------------------------------------------------------------- */
.schedule { display: grid; gap: var(--s-2); }
@media (min-width: 768px) { .schedule { grid-template-columns: repeat(3, 1fr); gap: var(--s-3); } }
.schedule__card {
  padding: var(--s-4) var(--s-3);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
}
.schedule__day { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.schedule__time { margin-top: var(--s-1); font: 700 22px/1.3 var(--font-head); letter-spacing: -.01em; }
.schedule__note { margin-top: var(--s-1); font-size: 14px; color: var(--muted); }
.schedule__break {
  display: flex; align-items: center; gap: var(--s-1); margin: var(--s-1) 0 0;
  font-size: 13px; font-weight: 600; color: #7A5C22;
}
.schedule__break::before, .schedule__break::after { content: ""; flex: 1; height: 1px; background: var(--gold); opacity: .6; }
.schedule__card--closed { background: #EFEDE8; box-shadow: none; }

.rate-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rate-table th, .rate-table td { padding: var(--s-2); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.rate-table thead th { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rate-table tbody th { font: 600 15px/1.4 var(--font-head); }
.rate-table tr.is-free { background: rgba(176, 141, 74, .07); }

@media (max-width: 899px) {
  .rate-table thead { display: none; }
  .rate-table, .rate-table tbody, .rate-table tr, .rate-table th, .rate-table td { display: block; width: 100%; }
  .rate-table tr {
    margin-bottom: var(--s-2); padding: var(--s-2) var(--s-3);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  }
  .rate-table tr.is-free { background: #FBF8F1; }
  .rate-table th, .rate-table td { padding: var(--s-1) 0; border: 0; }
  .rate-table tbody th { padding-bottom: var(--s-1); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  .rate-table td { display: flex; justify-content: space-between; gap: var(--s-2); }
  .rate-table td::before { content: attr(data-label); color: var(--muted); }
}
@media (min-width: 900px) {
  .rates { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-1) var(--s-2); box-shadow: var(--shadow-soft); }
  .rates .fineprint { padding: 0 var(--s-2) var(--s-1); }
  .rate-table tbody tr:last-child th, .rate-table tbody tr:last-child td { border-bottom: 0; }
}

.ticket-tools { display: grid; gap: var(--s-3); margin-top: var(--s-8); }
@media (min-width: 1024px) { .ticket-tools { grid-template-columns: 4fr 8fr; align-items: start; } }

.combo {
  position: relative; padding: var(--s-4) var(--s-3);
  border-radius: var(--r-lg); border: 1px dashed var(--grey);
}
.combo > .draft { position: absolute; top: var(--s-2); right: var(--s-2); }
.combo h3 { font-size: 22px; margin-top: var(--s-2); }
.combo p:not(.eyebrow) { margin-top: var(--s-1); color: #3A3A3A; }
.combo__price { font-size: 14px; }

.calc {
  position: relative; overflow: hidden; isolation: isolate;
  padding: var(--s-4) var(--s-3);
  border-radius: var(--r-lg);
  background: var(--glass-bg-strong); border: var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-long);
  display: grid; gap: var(--s-3);
}
.calc::before {
  content: ""; position: absolute; z-index: -1; width: 320px; height: 320px; right: -80px; top: -120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 141, 74, .22), transparent 70%);
}
.calc__head h3 { font-size: 22px; }
.calc__head p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.calc fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.calc legend { padding: 0; margin-bottom: var(--s-1); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.calc__museums > div { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.check { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 44px; padding: 0 var(--s-2); border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--text); margin: 0; }
.check:has(input:checked) { border-color: var(--text); }
.calc__people > div { display: grid; gap: 4px; }
@media (min-width: 768px) {
  .calc { padding: var(--s-5); grid-template-columns: 1fr 1fr; column-gap: var(--s-5); }
  .calc__head, .calc__museums { grid-column: 1 / -1; }
}
.stepper { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: 4px 0; border-bottom: 1px solid var(--line); }
.stepper__label { font-size: 14px; font-weight: 500; }
.stepper__label small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.stepper__ctrl { display: inline-flex; align-items: center; gap: 4px; }
.stepper__ctrl button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  font: 500 18px/1 var(--font-body); color: var(--text); cursor: pointer;
}
.stepper__ctrl button:hover { border-color: var(--text); }
.stepper__ctrl output { min-width: 28px; text-align: center; font: 600 16px var(--font-head); }
.calc__total { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: var(--s-3); border-radius: var(--r-md); background: var(--text); color: var(--surface); }
.calc__total span { font-size: 13px; opacity: .7; }
.calc__total output { font: 700 40px/1 var(--font-head); letter-spacing: -.02em; }
.calc__print { justify-self: start; }
@media (min-width: 768px) { .calc__print { grid-column: 2; justify-self: stretch; } .calc__total { grid-row: span 1; } }

/* --------------------------------------------------------------------------
   Research & facilities (dark band)
   -------------------------------------------------------------------------- */
.services { display: grid; gap: var(--s-6); }
.services h2 { font-size: clamp(28px, 4.4vw, 44px); margin-top: var(--s-2); max-width: 16ch; }
@media (min-width: 1024px) { .services { grid-template-columns: 1fr 1fr; gap: var(--s-10); align-items: start; } }
.services__list { list-style: none; margin: var(--s-5) 0 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.service {
  display: flex; gap: var(--s-3); width: 100%; min-height: 64px; padding: var(--s-3) 0;
  background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: var(--surface); text-align: left; cursor: pointer;
  transition: padding .4s var(--ease);
}
.service:hover, .service.is-active { padding-left: var(--s-1); }
.service__num { font: 600 13px/1.6 var(--font-body); color: var(--gold); }
.service strong { display: block; font: 600 18px/1.3 var(--font-head); }
.service small { display: block; margin-top: 4px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.section--dark .draft { color: #E2C68E; background: rgba(176, 141, 74, .2); border-color: rgba(176, 141, 74, .5); }

.request {
  padding: var(--s-4) var(--s-3); border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
@media (min-width: 768px) { .request { padding: var(--s-5); } }
.request h3 { font-size: 22px; }
.request__demo { margin: var(--s-1) 0 var(--s-3); font-size: 13px; color: rgba(255, 255, 255, .7); }
.field { display: grid; gap: 6px; margin-bottom: var(--s-2); font-size: 13px; color: rgba(255, 255, 255, .8); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px var(--s-2);
  border-radius: var(--r-sm); border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08);
  font: 400 15px/1.4 var(--font-body); color: var(--surface);
}
.field select option { color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field input[type="date"] { color-scheme: dark; }
.field-row { display: grid; gap: 0 var(--s-2); }
@media (min-width: 768px) { .field-row { grid-template-columns: 1fr 1fr; } }
.request__error { margin-bottom: var(--s-2); font-size: 14px; color: #F3C9A8; }
.request__success { text-align: center; padding: var(--s-4) 0; outline: none; }
.request__success svg { width: 48px; height: 48px; margin: 0 auto var(--s-2); color: var(--gold); }
.request__success p { margin: var(--s-1) auto var(--s-3); max-width: 40ch; color: rgba(255, 255, 255, .75); }

/* --------------------------------------------------------------------------
   Exhibitions + notices
   -------------------------------------------------------------------------- */
.news { display: grid; gap: var(--s-8); }
.news h2 { font-size: clamp(28px, 4.4vw, 44px); margin-top: var(--s-2); }
@media (min-width: 1024px) { .news { grid-template-columns: 8fr 4fr; gap: var(--s-10); } }
.exhibits { list-style: none; margin: var(--s-5) 0 0; padding: 0; }
.exhibit { display: flex; gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.exhibit:last-child { border-bottom: 1px solid var(--line); }
.exhibit__num { font: 700 clamp(28px, 4vw, 40px)/1 var(--font-head); color: var(--grey); letter-spacing: -.03em; min-width: 56px; }
.exhibit__type { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.exhibit h3 { font-size: clamp(20px, 2.6vw, 26px); margin-top: 4px; }
.exhibit__meta { margin-top: var(--s-1); font-size: 14px; color: var(--muted); }
.news__notices .subhead { margin-top: 0; }
@media (min-width: 1024px) { .news__notices { padding-top: var(--s-12); } }
.notices { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.notice-item {
  padding: var(--s-3); border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--gold);
}
.notice-item time { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.notice-item strong { display: block; margin-top: 4px; font: 600 16px/1.35 var(--font-head); }
.notice-item p { margin-top: 4px; font-size: 14px; color: #3A3A3A; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: var(--s-5); }
.faq h2 { font-size: clamp(28px, 4.4vw, 44px); margin-top: var(--s-2); }
@media (min-width: 1024px) { .faq { grid-template-columns: 4fr 8fr; gap: var(--s-10); } }
.faq__item { border-bottom: 1px solid var(--grey); }
.faq__item:first-child { border-top: 1px solid var(--grey); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  min-height: 64px; padding: var(--s-2) 0; cursor: pointer; list-style: none;
  font: 600 17px/1.4 var(--font-head);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { flex: none; width: 18px; height: 18px; transition: transform .4s var(--ease); }
.faq__item[open] summary svg { transform: rotate(180deg); }
.faq__item p { padding: 0 0 var(--s-3); color: #3A3A3A; max-width: 62ch; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact { padding-bottom: var(--s-12); }
.contact__panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: var(--s-4); padding: var(--s-5) var(--s-3);
  border-radius: var(--r-lg);
  background: var(--glass-bg-strong); border: var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-long);
}
.contact__panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 80% at 100% 0%, rgba(92, 148, 210, .18), transparent 70%), radial-gradient(40% 60% at 0% 100%, rgba(176, 141, 74, .14), transparent 70%);
}
.contact__panel h2 { font-size: clamp(26px, 4vw, 40px); margin-top: var(--s-2); max-width: 14ch; }
.contact__list { display: grid; gap: var(--s-2); margin: 0; }
.contact__list dt { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact__list dd { margin: 4px 0 0; }
@media (min-width: 768px) { .contact__panel { padding: var(--s-8); grid-template-columns: 1fr 1fr; align-items: center; } .contact__list { grid-template-columns: 1fr 1fr; gap: var(--s-3); } }

/* --------------------------------------------------------------------------
   Museum details modal
   -------------------------------------------------------------------------- */
.modal {
  width: min(880px, calc(100% - var(--s-4))); max-height: calc(100dvh - var(--s-4));
  padding: 0; border: 0; border-radius: var(--r-lg); background: var(--bg); color: var(--text);
  box-shadow: var(--shadow-long); overflow: hidden;
}
.modal[open] { display: flex; }
.modal::backdrop { background: rgba(20, 20, 20, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal__inner { overflow-y: auto; width: 100%; }
.modal__media { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--line); }
.modal__content { padding: var(--s-4) var(--s-3) var(--s-5); }
@media (min-width: 768px) { .modal__content { padding: var(--s-5) var(--s-6) var(--s-6); } }
.modal__content h2 { font-size: clamp(26px, 4vw, 36px); margin-top: var(--s-1); }
.modal__summary { margin-top: var(--s-2); color: #3A3A3A; max-width: 62ch; }
.modal__content > .card__status { margin-top: var(--s-2); }
.modal__grid { display: grid; gap: var(--s-4); margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); }
@media (min-width: 768px) { .modal__grid { grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-5); } }
.modal__section h3 { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-family: var(--font-body); margin-bottom: var(--s-1); }
.modal__section p { font-size: 15px; }
.modal__section p + p { margin-top: 4px; }
.modal__close {
  position: absolute; top: var(--s-2); right: var(--s-2); z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--glass-bg-strong); border: var(--glass-border); color: var(--text); cursor: pointer;
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.modal__close svg { width: 16px; height: 16px; }
.kv { margin: 0; display: grid; gap: 4px; font-size: 15px; }
.kv > div { display: flex; justify-content: space-between; gap: var(--s-2); padding: 6px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 500; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.ticks li { position: relative; padding-left: var(--s-3); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .75em; width: 12px; height: 1px; background: var(--gold); }
body:has(.modal[open]) { overflow: hidden; }
/* Scrolling stays, scrollbar hidden */
.modal__inner, .modal__content { scrollbar-width: none; -ms-overflow-style: none; }
.modal__inner::-webkit-scrollbar, .modal__content::-webkit-scrollbar { display: none; }

/* Desktop: photo on the left (full height), all details on the right (scrolls on its own) */
@media (min-width: 960px) {
  .modal { width: min(1760px, 78vw, calc(100% - var(--s-8))); max-width: none; height: min(1040px, 84dvh, calc(100dvh - var(--s-4))); max-height: none; }
  .modal__inner:has(.modal__media) { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; height: 100%; }
  .modal__inner:has(.modal__media) .modal__media { height: 100%; aspect-ratio: auto; }
  .modal__inner:has(.modal__media) .modal__content { overflow-y: auto; padding: var(--s-6) var(--s-8) var(--s-6) var(--s-5); }
  .modal__inner:has(.modal__media) .modal__grid { grid-template-columns: 1fr; gap: var(--s-4); }
}
/* Wide screens: photo takes the larger share */
@media (min-width: 1400px) {
  .modal__inner:has(.modal__media) { grid-template-columns: 3fr 2fr; }
}

.print-summary { display: none; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding-block: var(--s-8) var(--s-5); font-size: 14px; color: var(--muted); }
.footer__grid { display: grid; gap: var(--s-4); }
.footer__brand { display: flex; align-items: center; gap: var(--s-2); color: var(--text); }
.footer__brand img { width: 48px; height: 48px; border-radius: 50%; }
.footer__brand strong { font: 600 15px/1.3 var(--font-head); }
.footer__note { max-width: 52ch; }
.footer__base a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); }
.footer__base { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); margin-top: var(--s-6); padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: 13px; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1fr 1fr; align-items: start; } }

/* --------------------------------------------------------------------------
   Motion: scroll entrance (transform/opacity only)
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__clouds { animation: none; }
  .status__dot::before, .status__dot::after { animation: none; opacity: 0; }
  .kz.is-collage .kz__item, .kz.is-collage .kz__text, .kz.is-collage .kz__quote { transition: none; }
  .heritage__item::before, .heritage__dot { transform: none; }
  .hero__scene.is-drawing .hero__sketch,
  .hero__scene.is-drawing .hero__img,
  .hero__scene.is-drawing + .hero__inner .hero__panel { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Print: only the visit summary
   -------------------------------------------------------------------------- */
@media print {
  body { background: #fff; }
  body > *:not(.print-summary) { display: none !important; }
  .print-summary { display: block; font: 12pt/1.5 var(--font-body); color: #000; }
  .print-summary h1 { font-size: 20pt; }
  .print-summary h2 { font-size: 13pt; margin-top: 16pt; }
}

/* Small phones: status shows the dot only (full text stays in its title) */
@media (max-width: 399px) {
  .status { width: 44px; padding: 0; justify-content: center; }
  .status__short, .status__long { display: none; }
  .nav__logo { width: 48px; height: 48px; }
}
