/* ============================================================================
   ahilyabaiholkar.com — Heritage Design System
   1.  Tokens            6.  Header & navigation    11. Timeline
   2.  Reset & base      7.  Footer                 12. Gallery & lightbox
   3.  Typography        8.  Hero compositions      13. Accordion & FAQ
   4.  Ornament          9.  Editorial layouts      14. Forms
   5.  Buttons & links   10. Panels, cards, figures 15. Motion & responsive
   ========================================================================= */

/* ---------- 1. TOKENS ---------------------------------------------------- */
:root {
  /* surface */
  --ivory:      #FBF7F0;
  --ivory-2:    #F5EEE2;
  --sand:       #EAE0CC;
  --sand-2:     #DACAAC;
  --sand-3:     #C6B18C;

  /* accents */
  --terra:      #B25B34;
  --terra-dk:   #8C4426;
  --maroon:     #6B1F2B;
  --maroon-dk:  #4C1420;
  --indigo:     #26305C;
  --indigo-lt:  #3C4A82;
  --gold:       #A07A33;   /* decorative only: rules, borders, icons        */
  --gold-text:  #7A5622;   /* small text on ivory/sand — passes AA at 12px  */
  --gold-lt:    #C9A961;   /* light-on-dark                                  */

  /* ink */
  --ink:        #241E1A;
  --ink-2:      #453B33;
  --ink-3:      #6B5C50;
  --ink-4:      #6B5F55;

  /* roles */
  --bg:            var(--ivory);
  --bg-alt:        var(--ivory-2);
  --text:          var(--ink-2);
  --heading:       var(--ink);
  --line:          rgba(160, 122, 51, .28);
  --line-soft:     rgba(107, 92, 80, .18);

  /* type */
  --f-display: "Marcellus", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body:    "Spectral", Georgia, "Times New Roman", serif;
  --f-label:   ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* scale — fluid */
  --t-xs:   0.78rem;
  --t-sm:   0.88rem;
  --t-base: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --t-lg:   clamp(1.1rem, 1.04rem + 0.3vw, 1.28rem);
  --t-xl:   clamp(1.3rem, 1.18rem + 0.55vw, 1.65rem);
  --t-2xl:  clamp(1.6rem, 1.36rem + 1.1vw, 2.3rem);
  --t-3xl:  clamp(2rem, 1.6rem + 1.9vw, 3.1rem);
  --t-4xl:  clamp(2.4rem, 1.75rem + 3.1vw, 4.3rem);
  --t-5xl:  clamp(2.9rem, 1.9rem + 4.6vw, 5.6rem);

  /* space */
  --sp-1: .35rem;  --sp-2: .7rem;   --sp-3: 1.1rem;  --sp-4: 1.6rem;
  --sp-5: 2.2rem;  --sp-6: 3rem;    --sp-7: 4.2rem;  --sp-8: 5.6rem;
  --sec-y: clamp(3.6rem, 2.4rem + 4.4vw, 7.4rem);

  /* structure */
  --wrap:  1240px;
  --read:  760px;
  --gut:   clamp(1.15rem, 0.7rem + 2.1vw, 3rem);
  --hdr-h: 76px;

  --r-sm: 3px;
  --r-md: 6px;

  --shadow-sm: 0 2px 10px rgba(36, 30, 26, .06);
  --shadow-md: 0 10px 34px -12px rgba(36, 30, 26, .22);
  --shadow-lg: 0 26px 70px -26px rgba(36, 30, 26, .34);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* Paper grain — one shared, cheap, decorative texture */
:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  --jali: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23A07A33' stroke-width='1' stroke-opacity='.5'%3E%3Cpath d='M32 0 L64 32 L32 64 L0 32 Z'/%3E%3Cpath d='M32 16 L48 32 L32 48 L16 32 Z'/%3E%3Ccircle cx='32' cy='32' r='4'/%3E%3Cpath d='M0 0 L16 16 M64 0 L48 16 M0 64 L16 48 M64 64 L48 48'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- 2. RESET & BASE --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-h) + 18px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Page-wide paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  opacity: .035;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}

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

a { color: var(--maroon); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terra-dk); }

ul, ol { padding-left: 1.15em; }
li + li { margin-top: .4em; }

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

::selection { background: var(--sand-2); color: var(--ink); }

.skip-link {
  position: absolute; top: -100px; left: var(--gut); z-index: 999;
  background: var(--maroon); color: #fff; padding: .8rem 1.3rem;
  font-family: var(--f-label); font-size: var(--t-sm); letter-spacing: .06em;
  text-decoration: none; border-radius: 0 0 var(--r-md) var(--r-md);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap--read { max-width: var(--read); }
.wrap--wide { max-width: 1460px; }

section { position: relative; }
main { position: relative; z-index: 2; }

/* ---------- 3. TYPOGRAPHY ------------------------------------------------ */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  color: var(--heading);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 { font-size: var(--t-4xl); }
h2 { font-size: var(--t-3xl); }
h3 { font-size: var(--t-2xl); }
h4 { font-size: var(--t-xl); line-height: 1.3; }
h5 { font-size: var(--t-lg); line-height: 1.35; }

p { text-wrap: pretty; }
p + p { margin-top: 1.05em; }

.lede {
  font-size: var(--t-lg);
  line-height: 1.68;
  color: var(--ink-2);
}
.lede--display { font-family: var(--f-display); line-height: 1.5; color: var(--ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--f-label);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: ""; width: 34px; height: 1px; background: currentColor; opacity: .75; flex: none;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: ""; width: 34px; height: 1px; background: currentColor; opacity: .75; flex: none;
}
.eyebrow--light { color: var(--gold-lt); }

.sec-head { max-width: 760px; margin-bottom: var(--sp-6); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head p { margin-top: var(--sp-3); color: var(--ink-3); font-size: var(--t-lg); line-height: 1.65; }

.num-mark {
  font-family: var(--f-display);
  font-size: var(--t-sm);
  letter-spacing: .16em;
  color: var(--gold-text);
  display: block;
  margin-bottom: .6rem;
}

blockquote.pull {
  margin: var(--sp-6) 0;
  padding: var(--sp-4) 0 var(--sp-4) var(--sp-5);
  border-left: 2px solid var(--gold);
  font-family: var(--f-display);
  font-size: var(--t-xl);
  line-height: 1.5;
  color: var(--maroon);
}
blockquote.pull cite {
  display: block; margin-top: var(--sp-3);
  font-family: var(--f-label); font-style: normal;
  font-size: var(--t-xs); letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-4);
}

.caption {
  font-family: var(--f-label);
  font-size: var(--t-xs);
  line-height: 1.55;
  letter-spacing: .02em;
  color: var(--ink-4);
  margin-top: .8rem;
}

/* Historical-accuracy note — recurring, important editorial device */
.note-hist {
  display: flex; gap: var(--sp-3);
  background: linear-gradient(180deg, rgba(234,224,204,.55), rgba(234,224,204,.28));
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: var(--sp-4);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: var(--t-sm);
  line-height: 1.65;
  color: var(--ink-3);
}
.note-hist strong { color: var(--ink); font-family: var(--f-display); font-weight: 400; }
.note-hist svg { flex: none; width: 22px; height: 22px; color: var(--gold); margin-top: 3px; }

/* ---------- 4. ORNAMENT -------------------------------------------------- */
.orn-rule {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  color: var(--gold); margin: var(--sp-5) 0;
}
.orn-rule::before, .orn-rule::after {
  content: ""; height: 1px; flex: 1 1 0; max-width: 190px;
  background: linear-gradient(90deg, transparent, currentColor);
}
.orn-rule::after { background: linear-gradient(270deg, transparent, currentColor); }
.orn-rule span {
  width: 9px; height: 9px; background: currentColor; transform: rotate(45deg); flex: none;
}
.orn-rule--left { justify-content: flex-start; }
.orn-rule--left::before { display: none; }
.orn-rule--left::after { max-width: 110px; }

.bg-jali {
  background-image: var(--jali);
  background-size: 58px 58px;
}
.bg-sand   { background: var(--sand); }
.bg-alt    { background: var(--bg-alt); }
.bg-ink    { background: var(--ink); color: rgba(251,247,240,.84); }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: var(--ivory); }
.bg-indigo { background: var(--indigo); color: rgba(251,247,240,.82); }
.bg-indigo h1, .bg-indigo h2, .bg-indigo h3, .bg-indigo h4 { color: var(--ivory); }
.bg-maroon { background: var(--maroon-dk); color: rgba(251,247,240,.82); }
.bg-maroon h1, .bg-maroon h2, .bg-maroon h3, .bg-maroon h4 { color: var(--ivory); }

.sec { padding-block: var(--sec-y); }
.sec--tight { padding-block: clamp(2.6rem, 1.8rem + 3vw, 4.6rem); }

/* Decorative top/bottom sandstone edge */
.edge-top::before, .edge-bot::after {
  content: ""; position: absolute; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(90deg,
    var(--gold) 0 2px, transparent 2px 9px);
  opacity: .3;
}
.edge-top::before { top: 0; }
.edge-bot::after  { bottom: 0; }

/* ---------- 5. BUTTONS & LINKS ------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  font-family: var(--f-label);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.02rem 1.85rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  position: relative;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease),
              box-shadow .3s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary { background: var(--maroon); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--maroon-dk); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--ghost { border-color: var(--gold); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }

.btn--light { border-color: rgba(251,247,240,.42); color: var(--ivory); background: rgba(251,247,240,.06); }
.btn--light:hover { background: var(--ivory); color: var(--ink); transform: translateY(-2px); }

.btn--gold { background: var(--gold-text); color: #fff; }
.btn--gold:hover { background: var(--gold-lt); color: var(--ink); transform: translateY(-2px); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }

/* animated underline text link */
.tlink {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--f-label); font-size: var(--t-sm); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--maroon); text-decoration: none; padding-bottom: 3px;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .38s var(--ease), color .28s var(--ease);
}
.tlink:hover { background-size: 100% 1px; color: var(--terra-dk); }
.tlink svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.tlink:hover svg { transform: translateX(4px); }
.tlink--light { color: var(--gold-lt); }
.tlink--light:hover { color: var(--ivory); }

/* ---------- 6. HEADER & NAVIGATION -------------------------------------- */
.site-hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease),
              border-color .4s var(--ease);
  background: rgba(251,247,240,0);
  border-bottom: 1px solid transparent;
}
.site-hdr.is-solid {
  background: rgba(251,247,240,.96);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 24px -14px rgba(36,30,26,.5);
}
.site-hdr__inner {
  max-width: 1460px; margin-inline: auto; padding-inline: var(--gut);
  height: var(--hdr-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
}

/* brand */
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; flex: none; }
.brand__mark { width: 42px; height: 42px; flex: none; color: var(--maroon); transition: color .4s var(--ease); }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--f-display); font-size: 1.12rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink); transition: color .4s var(--ease);
}
.brand__sub {
  font-family: var(--f-label); font-size: .75rem; letter-spacing: .27em;
  text-transform: uppercase; color: var(--gold-text); margin-top: 5px;
}

/* desktop nav */
.nav { display: flex; align-items: center; gap: .3rem; list-style: none; padding: 0; margin: 0; }
.nav__item { position: relative; margin: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: .38rem;
  font-family: var(--f-label); font-size: .795rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
  padding: .7rem .78rem; border-radius: var(--r-sm);
  background: none; border: 0; cursor: pointer;
  transition: color .28s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: .78rem; right: .78rem; bottom: .34rem;
  height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .34s var(--ease);
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--maroon); }
.nav__link:hover::after, .nav__item.is-current > .nav__link::after { transform: scaleX(1); }
.nav__item.is-current > .nav__link { color: var(--maroon); }
.nav__caret {
  display: inline-flex; width: 10px; height: 10px; flex: none;
  transition: transform .3s var(--ease); opacity: .65;
}
.nav__caret svg { width: 100%; height: 100%; }
.nav__link[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

.nav__panel {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translate(-50%, 8px);
  min-width: 268px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 var(--r-md) var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: .55rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
  list-style: none; margin: 0;
}
.nav__item.is-open > .nav__panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.nav__panel li { margin: 0; }
.nav__panel a {
  display: block; padding: .68rem .9rem;
  font-family: var(--f-body); font-size: .935rem; line-height: 1.35;
  color: var(--ink-2); text-decoration: none; border-radius: var(--r-sm);
  transition: background-color .2s var(--ease), color .2s var(--ease), padding-left .24s var(--ease);
}
.nav__panel a:hover, .nav__panel a[aria-current="page"] {
  background: var(--sand); color: var(--maroon); padding-left: 1.25rem;
}
.nav__panel a small {
  display: block; font-family: var(--f-label); font-size: .74rem;
  color: var(--ink-4); letter-spacing: .03em; margin-top: 2px;
}

.hdr__cta { display: flex; align-items: center; gap: var(--sp-3); flex: none; }
.hdr__cta .btn { padding: .78rem 1.2rem; font-size: .78rem; }

/* Pages that open on a dark banner need a light header until it goes solid. */
.page-dark .site-hdr:not(.is-solid) .brand__name,
.page-dark .site-hdr:not(.is-solid) .nav__link { color: var(--ivory); }
.page-dark .site-hdr:not(.is-solid) .brand__mark,
.page-dark .site-hdr:not(.is-solid) .brand__sub { color: var(--gold-lt); }
.page-dark .site-hdr:not(.is-solid) .nav__link:hover,
.page-dark .site-hdr:not(.is-solid) .nav__link[aria-expanded="true"],
.page-dark .site-hdr:not(.is-solid) .nav__item.is-current > .nav__link { color: var(--gold-lt); }
.page-dark .site-hdr:not(.is-solid) .burger { border-color: rgba(251,247,240,.34); }
.page-dark .site-hdr:not(.is-solid) .burger span { background: var(--ivory); }

/* burger */
.burger {
  display: none; width: 46px; height: 46px; flex: none;
  background: none; border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer; padding: 0; position: relative;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.burger span {
  position: absolute; left: 12px; width: 22px; height: 1.5px; background: var(--ink);
  transition: transform .32s var(--ease), opacity .22s var(--ease), width .32s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; width: 15px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile drawer */
.mnav {
  position: fixed; inset: 0; z-index: 190;
  background: var(--ivory);
  padding: calc(var(--hdr-h) + 1.4rem) var(--gut) 3rem;
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-14px);
  transition: opacity .34s var(--ease), transform .34s var(--ease), visibility .34s;
}
.mnav.is-open { opacity: 1; visibility: visible; transform: none; }
.mnav__list { list-style: none; padding: 0; margin: 0; }
.mnav__list > li { border-bottom: 1px solid var(--line-soft); }
.mnav__list > li + li { margin-top: 0; }
.mnav__top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; background: none; border: 0; cursor: pointer;
  padding: 1.15rem .2rem; text-align: left;
  font-family: var(--f-display); font-size: 1.32rem; color: var(--ink);
  text-decoration: none;
}
.mnav__top svg { width: 15px; height: 15px; color: var(--gold); transition: transform .3s var(--ease); flex: none; }
.mnav__top[aria-expanded="true"] svg { transform: rotate(180deg); }
.mnav__sub {
  list-style: none; padding: 0 0 .9rem .2rem; margin: 0;
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .36s var(--ease);
}
.mnav__sub > div { overflow: hidden; min-height: 0; }
.mnav__top[aria-expanded="true"] + .mnav__sub { grid-template-rows: 1fr; }
.mnav__sub a {
  display: block; padding: .6rem 0 .6rem 1rem;
  border-left: 1px solid var(--line);
  font-size: .98rem; color: var(--ink-3); text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease), padding-left .2s var(--ease);
}
.mnav__sub a:hover, .mnav__sub a[aria-current="page"] {
  color: var(--maroon); border-color: var(--gold); padding-left: 1.3rem;
}
.mnav__foot { margin-top: var(--sp-5); display: grid; gap: .8rem; }
.mnav__foot a { font-family: var(--f-label); font-size: .92rem; color: var(--ink-2); text-decoration: none; display: flex; gap: .6rem; align-items: center; }
.mnav__foot svg { width: 17px; height: 17px; color: var(--gold); }

body.nav-open { overflow: hidden; }

/* ---------- 7. FOOTER ---------------------------------------------------- */
.site-ftr { background: var(--ink); color: rgba(251,247,240,.7); position: relative; z-index: 2; }
.site-ftr::before {
  content: ""; display: block; height: 5px;
  background: linear-gradient(90deg, var(--maroon), var(--gold) 45%, var(--terra) 70%, var(--indigo));
}
.ftr__main {
  max-width: 1460px; margin-inline: auto; padding: var(--sp-8) var(--gut) var(--sp-6);
  display: grid; gap: var(--sp-6);
  grid-template-columns: 1.5fr 1fr 1fr 1.15fr;
}
.ftr__brand .brand__name { color: var(--ivory); }
.ftr__brand .brand__mark, .ftr__brand .brand__sub { color: var(--gold-lt); }
.ftr__blurb { margin-top: var(--sp-4); font-size: .95rem; line-height: 1.7; max-width: 34ch; color: rgba(251,247,240,.76); }
.ftr h4, .ftr .ftr__h {
  font-family: var(--f-label); font-size: .78rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold-lt);
  margin-bottom: var(--sp-4);
}
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li + li { margin-top: .62rem; }
.ftr a { color: rgba(251,247,240,.82); text-decoration: none; font-size: .95rem; transition: color .24s var(--ease), padding-left .24s var(--ease); }
.ftr a:hover { color: var(--gold-lt); padding-left: 5px; }
.ftr__contact a { display: flex; align-items: center; gap: .7rem; }
.ftr__contact svg { width: 17px; height: 17px; color: var(--gold-lt); flex: none; }
.ftr__contact a:hover { padding-left: 0; }

.socials { display: flex; gap: .6rem; margin-top: var(--sp-5); flex-wrap: wrap; }
.soc {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid rgba(251,247,240,.2); border-radius: 50%;
  color: rgba(251,247,240,.6);
  transition: border-color .3s var(--ease), color .3s var(--ease),
              background-color .3s var(--ease), transform .3s var(--ease);
}
.soc svg { width: 17px; height: 17px; }
a.soc:hover { border-color: var(--gold-lt); color: var(--ink); background: var(--gold-lt); transform: translateY(-3px); }
.socials__note { font-size: .75rem; color: rgba(251,247,240,.6); margin-top: .9rem; font-family: var(--f-label); line-height: 1.5; }

.ftr__bar {
  border-top: 1px solid rgba(251,247,240,.13);
  max-width: 1460px; margin-inline: auto;
  padding: var(--sp-4) var(--gut);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  align-items: center; justify-content: space-between;
  font-size: .84rem; color: rgba(251,247,240,.66);
  font-family: var(--f-label);
}
.ftr__bar a { font-size: .84rem; color: var(--gold-lt); }
.ftr__bar a:hover { padding-left: 0; }
.ftr__credit strong { font-weight: 600; }

/* ---------- 8. HERO COMPOSITIONS ---------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--hdr-h) + clamp(2.6rem, 1.6rem + 4vw, 5.6rem));
  padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(234,224,204,.85), transparent 62%),
    linear-gradient(180deg, var(--ivory-2), var(--ivory));
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--line);
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 1rem + 4vw, 4.6rem); align-items: center;
}
.hero h1 { font-size: var(--t-5xl); letter-spacing: -0.015em; }
.hero h1 em {
  display: block; font-style: normal; color: var(--maroon);
  font-size: .44em; letter-spacing: .015em; line-height: 1.32; margin-top: .7rem;
  font-family: var(--f-body);
}
.hero__lede { margin-top: var(--sp-4); max-width: 52ch; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  margin-top: var(--sp-5); padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}
.hero__meta div { min-width: 120px; }
.hero__meta dt {
  font-family: var(--f-label); font-size: .75rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-text); margin-bottom: .3rem;
}
.hero__meta dd { margin: 0; font-family: var(--f-display); font-size: 1.06rem; color: var(--ink); }

/* Arched museum niche — image is always fully visible inside it */
/* An arched sandstone niche. The artwork inside is shown complete and
   uncropped; the dome above it carries an ornament, as a mounted painting
   would sit in a wall recess. */
.niche {
  position: relative;
  background:
    linear-gradient(170deg, var(--sand), var(--sand-2));
  border-radius: 50% 50% var(--r-md) var(--r-md) / 26% 26% var(--r-md) var(--r-md);
  padding: clamp(3.4rem, 2.1rem + 4.4vw, 5.6rem)
           clamp(1.1rem, .6rem + 1.8vw, 2rem)
           clamp(1.4rem, .9rem + 1.7vw, 2.3rem);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.niche::before {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid rgba(160,122,51,.42);
  border-radius: 50% 50% var(--r-sm) var(--r-sm) / 25% 25% var(--r-sm) var(--r-sm);
  pointer-events: none; z-index: 2;
}
.niche__orn {
  position: absolute; top: clamp(1.2rem, .6rem + 1.9vw, 2.3rem); left: 50%;
  transform: translateX(-50%); width: clamp(34px, 3.4vw, 46px); height: auto;
  color: var(--gold); opacity: .85; z-index: 2;
}
.niche__img {
  width: 100%; aspect-ratio: 5 / 4;
  object-fit: contain;               /* never crops the subject */
  object-position: center;
  background: linear-gradient(165deg, #F2E7D3, #DFCFB2);
  border: 1px solid rgba(160,122,51,.5);
  border-radius: var(--r-sm);
  box-shadow: 0 8px 26px -12px rgba(36,30,26,.4);
}
.niche--wide .niche__img { aspect-ratio: 1 / 1; }
.niche--tall .niche__img { aspect-ratio: 3 / 4.2; }
.niche__cap {
  position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%);
  background: var(--maroon); color: #fff;
  font-family: var(--f-label); font-size: .75rem; letter-spacing: .12em;
  text-transform: uppercase; padding: .55rem 1.15rem; white-space: nowrap;
  box-shadow: var(--shadow-md); z-index: 3; border-radius: 2px;
}

/* floating ornament behind hero art */
.hero__orn {
  position: absolute; pointer-events: none; z-index: 0; opacity: .5;
}
.hero__orn--r { right: -70px; top: 12%; width: 320px; }

/* Page banner (inner pages) */
.pbanner {
  position: relative;
  padding-top: calc(var(--hdr-h) + clamp(2.4rem, 1.6rem + 3.4vw, 4.6rem));
  padding-bottom: clamp(2.4rem, 1.6rem + 3.4vw, 4.4rem);
  background: linear-gradient(150deg, var(--indigo) 0%, #1B2242 58%, #12162C 100%);
  color: rgba(251,247,240,.78);
  overflow: hidden;
}
.pbanner::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--jali); background-size: 62px 62px;
  opacity: .13; pointer-events: none;
}
.pbanner::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--terra) 50%, var(--maroon));
}
.pbanner__inner { position: relative; z-index: 2; max-width: 880px; }
.pbanner h1 { color: var(--ivory); font-size: var(--t-4xl); }
.pbanner p { margin-top: var(--sp-4); font-size: var(--t-lg); line-height: 1.62; color: rgba(251,247,240,.74); max-width: 62ch; }

.crumbs { margin-bottom: var(--sp-4); font-family: var(--f-label); font-size: .76rem; letter-spacing: .06em; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.crumbs li { margin: 0; display: flex; align-items: center; gap: .5rem; color: rgba(251,247,240,.5); }
.crumbs li + li::before { content: "/"; color: var(--gold-lt); opacity: .7; }
.crumbs a { color: rgba(251,247,240,.72); text-decoration: none; }
.crumbs a:hover { color: var(--gold-lt); }
.crumbs [aria-current="page"] { color: var(--gold-lt); }

/* ---------- 9. EDITORIAL LAYOUTS ---------------------------------------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 4.8rem); align-items: center;
}
.split--40 { grid-template-columns: .82fr 1.18fr; }
.split--60 { grid-template-columns: 1.18fr .82fr; }
.split--top { align-items: start; }
/* A sticky child needs its grid item to span the full row height, which
   align-items:start would otherwise collapse. */
.split__sticky { align-self: stretch; }
.split__media { position: relative; }
.split--rev .split__media { order: 2; }

.prose { max-width: var(--read); }
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 { margin-top: var(--sp-7); }
.prose h3 { margin-top: var(--sp-6); font-size: var(--t-xl); }
.prose h2 + p, .prose h3 + p { margin-top: var(--sp-3); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li::marker { color: var(--gold); }
.prose img { border-radius: var(--r-md); }
.prose figure { margin: var(--sp-6) 0; }

/* drop cap for opening paragraph of feature sections */
.dropcap::first-letter {
  float: left; font-family: var(--f-display); font-size: 3.9em;
  line-height: .82; padding: .06em .12em 0 0; color: var(--maroon);
}

/* two-column reading measure for long editorial passages */
.cols2 { columns: 2; column-gap: clamp(2rem, 1rem + 3vw, 3.6rem); }
.cols2 p { break-inside: avoid-column; }
.cols2 p + p { margin-top: 1.05em; }

/* stat / fact strip */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.facts > div { background: var(--bg); padding: var(--sp-5) var(--sp-4); text-align: center; }
.facts dt {
  font-family: var(--f-display); font-size: var(--t-2xl); color: var(--maroon);
  line-height: 1; margin-bottom: .55rem;
}
.facts dd {
  margin: 0; font-family: var(--f-label); font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); line-height: 1.5;
}
.bg-ink .facts, .bg-indigo .facts { background: rgba(251,247,240,.16); border-color: rgba(251,247,240,.16); }
.bg-ink .facts > div, .bg-indigo .facts > div { background: transparent; }
.bg-ink .facts dt, .bg-indigo .facts dt { color: var(--gold-lt); }
.bg-ink .facts dd, .bg-indigo .facts dd { color: rgba(251,247,240,.78); }

/* ---------- 10. PANELS, CARDS, FIGURES ---------------------------------- */
.panel {
  background: var(--bg); border: 1px solid var(--line);
  padding: var(--sp-5); border-radius: var(--r-md);
}
.panel--sand { background: linear-gradient(170deg, rgba(234,224,204,.7), rgba(234,224,204,.34)); }

/* themed pillar cards with arch top */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(196px, 100%), 1fr)); gap: var(--sp-4); }
.pillar {
  position: relative; background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 130px 130px var(--r-md) var(--r-md);
  padding: var(--sp-6) var(--sp-4) var(--sp-5);
  text-align: center;
  transition: transform .38s var(--ease), box-shadow .38s var(--ease), border-color .38s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.pillar__ico {
  width: 54px; height: 54px; margin: 0 auto var(--sp-3);
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--maroon); background: var(--sand);
}
.pillar__ico svg { width: 25px; height: 25px; }
.pillar h3 { font-size: var(--t-lg); margin-bottom: .6rem; }
.pillar p { font-size: .95rem; line-height: 1.65; color: var(--ink-3); }

/* editorial link card */
.ecard {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; height: 100%;
  transition: transform .38s var(--ease), box-shadow .38s var(--ease), border-color .38s var(--ease);
}
.ecard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.ecard__fig { position: relative; overflow: hidden; background: var(--sand); }
.ecard__fig img, .ecard__fig svg {
  width: 100%; aspect-ratio: 16 / 10; object-fit: contain; object-position: center;
  background: linear-gradient(160deg, #F2E7D3, #E0D0B3);
  transition: transform .7s var(--ease);
}
.ecard:hover .ecard__fig img { transform: scale(1.045); }
.ecard__tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(36,30,26,.86); color: var(--gold-lt);
  font-family: var(--f-label); font-size: .75rem; letter-spacing: .1em;
  text-transform: uppercase; padding: .38rem .8rem; border-radius: 2px;
}
.ecard__body { padding: var(--sp-4); display: flex; flex-direction: column; flex: 1; }
.ecard__body h3 { font-size: var(--t-lg); margin-bottom: .6rem; }
.ecard__body h3 a { color: inherit; text-decoration: none; }
.ecard__body h3 a::after { content: ""; position: absolute; inset: 0; }
.ecard__body h3 a:hover { color: var(--maroon); }
.ecard__body p { font-size: .95rem; line-height: 1.65; color: var(--ink-3); flex: 1; }
.ecard__meta {
  margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--line-soft);
  font-family: var(--f-label); font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-4);
  display: flex; gap: .8rem; align-items: center; flex-wrap: wrap;
}

/* min() keeps the track from forcing a floor wider than the container, which
   would push content past the viewport on small phones. */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: var(--sp-4); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: var(--sp-5); }

/* Framed figure — full subject always visible */
.figframe { position: relative; }
.figframe img, .figframe svg {
  width: 100%;
  object-fit: contain; object-position: center;
  background: linear-gradient(160deg, #F3E8D5, #E2D3B7);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.figframe--4x5 img, .figframe--4x5 svg { aspect-ratio: 4 / 5; }
.figframe--1x1 img, .figframe--1x1 svg { aspect-ratio: 1 / 1; }
.figframe--16x9 img, .figframe--16x9 svg { aspect-ratio: 16 / 9; }
.figframe--3x2 img, .figframe--3x2 svg { aspect-ratio: 3 / 2; }
.figframe--tall img, .figframe--tall svg { aspect-ratio: 3 / 4.2; }
.figframe--free img, .figframe--free svg { aspect-ratio: auto; }
.figframe::after {
  content: ""; position: absolute; inset: 9px; border: 1px solid rgba(160,122,51,.3);
  border-radius: var(--r-sm); pointer-events: none;
}
.figframe--plain::after { display: none; }
/* offset gold rule behind a figure */
.figframe--offset::before {
  content: ""; position: absolute; inset: 20px -20px -20px 20px;
  border: 1px solid var(--gold); border-radius: var(--r-md);
  z-index: -1; opacity: .55;
}

/* Illustration band — SVG artwork used full-bleed */
.artband { position: relative; overflow: hidden; background: var(--sand); }
.artband > svg, .artband > img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* Width must come from the container. Combining min-height with aspect-ratio
   makes the box derive its width from its height, which overflows narrow
   viewports — so the ratio alone controls height here. */
.artband--hero { width: 100%; aspect-ratio: 2 / 1; }
/* The illustrations are 16:9. Below the wide breakpoint the band matches
   that ratio exactly, so object-fit:cover has nothing to crop. */
@media (max-width: 900px) { .artband--hero { aspect-ratio: 16 / 9; } }

/* ---------- 11. TIMELINE ------------------------------------------------- */
.tl { position: relative; margin-top: var(--sp-6); }
.tl::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, var(--line) 6%, var(--line) 94%, transparent);
  transform: translateX(-50%);
}
.tl__prog {
  position: absolute; left: 50%; top: 0; width: 2px; height: 0;
  background: linear-gradient(180deg, var(--gold), var(--terra));
  transform: translateX(-50%); z-index: 1;
  transition: height .12s linear;
}
.tl__item { position: relative; display: grid; grid-template-columns: 1fr 84px 1fr; align-items: start; }
.tl__item + .tl__item { margin-top: var(--sp-6); }
.tl__dot {
  grid-column: 2; justify-self: center; position: relative; z-index: 2;
  width: 17px; height: 17px; margin-top: 26px;
  background: var(--bg); border: 2px solid var(--gold); border-radius: 50%;
  transition: background-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tl__item.is-in .tl__dot { background: var(--maroon); border-color: var(--maroon); transform: scale(1.18); box-shadow: 0 0 0 6px rgba(107,31,43,.1); }
.tl__card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5); position: relative;
  transition: transform .38s var(--ease), box-shadow .38s var(--ease), border-color .38s var(--ease);
}
.tl__card:hover { box-shadow: var(--shadow-md); border-color: var(--gold); transform: translateY(-3px); }
.tl__item:nth-child(odd) .tl__card { grid-column: 1; }
.tl__item:nth-child(even) .tl__card { grid-column: 3; }
.tl__yr {
  font-family: var(--f-display); font-size: var(--t-xl); color: var(--maroon);
  display: block; margin-bottom: .35rem; line-height: 1;
}
.tl__card h3 { font-size: var(--t-lg); margin-bottom: .55rem; }
.tl__card p { font-size: .95rem; line-height: 1.65; color: var(--ink-3); }
.tl__card .figframe { margin-top: var(--sp-3); }
.tl__era {
  grid-column: 1 / -1; text-align: center; margin-bottom: var(--sp-5); position: relative; z-index: 2;
}
.tl__era span {
  display: inline-block; background: var(--maroon); color: #fff;
  font-family: var(--f-label); font-size: .78rem; letter-spacing: .16em;
  text-transform: uppercase; padding: .6rem 1.5rem; border-radius: 2px;
}

/* compact horizontal timeline used on the homepage */
.tlmini { display: flex; gap: 0; overflow-x: auto; padding-bottom: var(--sp-4); scroll-snap-type: x mandatory; }
.tlmini__i {
  flex: 0 0 clamp(220px, 26vw, 290px); scroll-snap-align: start;
  padding: var(--sp-5) var(--sp-4) 0; position: relative; border-top: 1px solid var(--line);
}
.tlmini__i::before {
  content: ""; position: absolute; top: -6px; left: var(--sp-4);
  width: 11px; height: 11px; background: var(--gold); transform: rotate(45deg);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.tlmini__i:hover::before { background: var(--maroon); transform: rotate(45deg) scale(1.25); }
.tlmini__yr { font-family: var(--f-display); font-size: var(--t-xl); color: var(--maroon); display: block; }
.tlmini__i h3 { font-size: 1.02rem; margin: .45rem 0 .5rem; }
.tlmini__i p { font-size: .9rem; line-height: 1.6; color: var(--ink-3); }

/* ---------- 12. GALLERY & LIGHTBOX -------------------------------------- */
.gfilters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: var(--sp-5); }
.gfilter {
  font-family: var(--f-label); font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .62rem 1.15rem; border: 1px solid var(--line); border-radius: 100px;
  background: transparent; color: var(--ink-3); cursor: pointer;
  transition: background-color .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease);
}
.gfilter:hover { border-color: var(--gold); color: var(--maroon); }
.gfilter[aria-pressed="true"] { background: var(--maroon); border-color: var(--maroon); color: #fff; }

.gal { columns: 3; column-gap: var(--sp-4); }
.gal__i { break-inside: avoid; margin-bottom: var(--sp-4); }
.gal__btn {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line);
  background: linear-gradient(160deg, #F3E8D5, #E2D3B7); cursor: zoom-in;
  border-radius: var(--r-md); overflow: hidden; position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.gal__btn:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.gal__btn img, .gal__btn svg { width: 100%; height: auto; object-fit: contain; display: block; }
.gal__cap {
  padding: .85rem 1rem; text-align: left; background: var(--bg);
  border-top: 1px solid var(--line-soft);
}
.gal__cap strong { display: block; font-family: var(--f-display); font-size: 1rem; color: var(--ink); font-weight: 400; }
.gal__cap span { font-family: var(--f-label); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); }

.lbox {
  position: fixed; inset: 0; z-index: 400; display: grid;
  grid-template-rows: auto 1fr auto; gap: 1rem;
  background: #120E0B; padding: 1rem;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.lbox.is-open { opacity: 1; visibility: visible; }
.lbox__bar { display: flex; justify-content: flex-end; gap: .6rem; }
.lbox__stage { display: grid; place-items: center; min-height: 0; position: relative; }
.lbox__stage img, .lbox__stage svg {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain;                /* full subject, never cropped */
  border-radius: var(--r-sm);
  box-shadow: 0 30px 90px -30px rgba(0,0,0,.8);
}
.lbox__foot { text-align: center; color: rgba(251,247,240,.82); padding-bottom: .5rem; }
.lbox__foot strong { display: block; font-family: var(--f-display); font-size: var(--t-lg); color: var(--ivory); font-weight: 400; }
.lbox__foot span { font-family: var(--f-label); font-size: .74rem; letter-spacing: .1em; color: rgba(251,247,240,.55); }
.lbox__btn {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: rgba(251,247,240,.1); border: 1px solid rgba(251,247,240,.26);
  color: var(--ivory); border-radius: 50%; cursor: pointer;
  transition: background-color .26s var(--ease), transform .26s var(--ease);
}
.lbox__btn:hover { background: rgba(251,247,240,.24); transform: scale(1.07); }
.lbox__btn svg { width: 19px; height: 19px; }
.lbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
}
.lbox__nav--prev { left: 0; }
.lbox__nav--next { right: 0; }

/* ---------- 13. ACCORDION & FAQ ----------------------------------------- */
.acc { border-top: 1px solid var(--line); }
.acc__i { border-bottom: 1px solid var(--line); }
.acc__btn {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4);
  width: 100%; background: none; border: 0; cursor: pointer;
  padding: 1.5rem .25rem; text-align: left;
  font-family: var(--f-display); font-size: var(--t-lg); line-height: 1.4; color: var(--ink);
  transition: color .26s var(--ease);
}
.acc__btn:hover { color: var(--maroon); }
.acc__sign {
  flex: none; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; position: relative; margin-top: 3px;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.acc__sign::before, .acc__sign::after {
  content: ""; position: absolute; background: var(--gold);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.acc__sign::before { width: 12px; height: 1.5px; }
.acc__sign::after  { width: 1.5px; height: 12px; }
.acc__btn[aria-expanded="true"] .acc__sign { background: var(--maroon); border-color: var(--maroon); transform: rotate(180deg); }
.acc__btn[aria-expanded="true"] .acc__sign::before,
.acc__btn[aria-expanded="true"] .acc__sign::after { background: #fff; }
.acc__btn[aria-expanded="true"] .acc__sign::after { transform: scaleY(0); }
.acc__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .38s var(--ease);
}
.acc__btn[aria-expanded="true"] + .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; min-height: 0; }
.acc__panel p { padding-right: 3rem; color: var(--ink-3); }
.acc__panel > div > *:last-child { padding-bottom: 1.6rem; }
.acc__panel > div > *:first-child { padding-top: .2rem; }

/* ---------- 14. FORMS ---------------------------------------------------- */
.form { display: grid; gap: var(--sp-4); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field { display: grid; gap: .5rem; }
.field label {
  font-family: var(--f-label); font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.field label .req { color: var(--terra-dk); }
.field input, .field textarea, .field select {
  font-family: var(--f-body); font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: .95rem 1.05rem; width: 100%;
  transition: border-color .26s var(--ease), box-shadow .26s var(--ease), background-color .26s var(--ease);
}
.field textarea { min-height: 155px; resize: vertical; line-height: 1.65; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--sand-3); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(160,122,51,.16); background: #fff;
}
.field .err {
  font-family: var(--f-label); font-size: .78rem; color: var(--terra-dk);
  display: none; align-items: center; gap: .4rem;
}
.field .err svg { width: 14px; height: 14px; flex: none; }
.field.is-bad input, .field.is-bad textarea, .field.is-bad select { border-color: var(--terra); background: rgba(178,91,52,.05); }
.field.is-bad .err { display: flex; }
.field.is-bad label { color: var(--terra-dk); }
.field .hint { font-family: var(--f-label); font-size: .76rem; color: var(--ink-4); }

.form__status {
  display: none; gap: .8rem; align-items: flex-start;
  padding: var(--sp-4); border-radius: var(--r-md);
  border: 1px solid rgba(46,110,70,.35); background: rgba(46,110,70,.07);
  color: #23593B; font-size: .96rem; line-height: 1.6;
}
.form__status.is-on { display: flex; }
.form__status svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.form__status strong { font-family: var(--f-display); font-weight: 400; display: block; margin-bottom: .2rem; font-size: 1.1rem; }

/* contact detail tiles */
.ctiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: var(--sp-4); }
.ctile {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-4); text-align: center;
  transition: transform .34s var(--ease), box-shadow .34s var(--ease), border-color .34s var(--ease);
}
.ctile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.ctile__ico {
  width: 54px; height: 54px; margin: 0 auto var(--sp-3); border-radius: 50%;
  background: var(--sand); border: 1px solid var(--line); color: var(--maroon);
  display: grid; place-items: center;
}
.ctile__ico svg { width: 23px; height: 23px; }
.ctile h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.ctile a {
  display: inline-block; padding: .45rem .2rem;
  font-family: var(--f-body); font-size: 1.06rem; color: var(--maroon);
  text-decoration: none; word-break: break-word;
}
.ctile a:hover { text-decoration: underline; }
.ctile p { font-size: .88rem; color: var(--ink-4); margin-top: .4rem; }

/* ---------- 15. MOTION & RESPONSIVE ------------------------------------- */
/* The hidden start state is applied ONLY when scripting is available (the .js
   class is set by an inline script in <head>). If the JS file is blocked or
   fails, every block stays fully visible instead of the page appearing blank. */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.js [data-reveal].is-vis { opacity: 1; transform: none; }
.js [data-reveal][data-delay="1"] { transition-delay: .09s; }
.js [data-reveal][data-delay="2"] { transition-delay: .18s; }
.js [data-reveal][data-delay="3"] { transition-delay: .27s; }
.js [data-reveal][data-delay="4"] { transition-delay: .36s; }
.js [data-reveal][data-delay="5"] { transition-delay: .45s; }

.parallax { will-change: transform; }

@media (max-width: 1080px) {
  .nav, .hdr__cta .btn { display: none; }
  .burger { display: block; }
  .ftr__main { grid-template-columns: 1fr 1fr; }
  .hero__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero__orn--r { display: none; }
  .niche { max-width: 480px; margin-inline: auto; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .gal { columns: 2; }
}

@media (max-width: 860px) {
  :root { --hdr-h: 68px; }
  .split, .split--40, .split--60 { grid-template-columns: 1fr; gap: var(--sp-5); }
  .split--rev .split__media { order: 0; }
  .cols2 { columns: 1; }
  .form__row { grid-template-columns: 1fr; }
  /* timeline collapses to a single left rail — no horizontal scrolling */
  .tl::before, .tl__prog { left: 9px; transform: none; }
  .tl__item { grid-template-columns: 1fr; padding-left: 42px; }
  .tl__item + .tl__item { margin-top: var(--sp-5); }
  .tl__dot { position: absolute; left: 1px; top: 0; margin-top: 22px; grid-column: 1; }
  .tl__item:nth-child(odd) .tl__card, .tl__item:nth-child(even) .tl__card { grid-column: 1; }
  .tl__era { padding-left: 0; position: relative; left: -21px; }
  .figframe--offset::before { display: none; }
}

/* Small phones: the brand must give way so the menu button always fits. */
@media (max-width: 430px) {
  .site-hdr__inner { gap: var(--sp-2); }
  .site-hdr .brand { min-width: 0; }
  .site-hdr .brand__mark { width: 34px; height: 34px; }
  .site-hdr .brand__name { font-size: .92rem; letter-spacing: .05em; }
  .site-hdr .brand__sub { font-size: .75rem; letter-spacing: .12em; }
  .site-hdr .brand__txt { min-width: 0; }
}
@media (max-width: 360px) {
  .site-hdr .brand__sub { display: none; }
  .site-hdr .brand__name { font-size: .86rem; }
}

@media (max-width: 640px) {
  .ftr__main { grid-template-columns: 1fr; gap: var(--sp-5); }
  /* Comfortable tap targets for standalone text links */
  .tlink { padding-block: .6rem; }
  .gfilter { padding-block: .75rem; }
  .gal { columns: 1; }
  .facts { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { gap: .8rem; }
  .hero__meta div { min-width: 0; flex: 1 1 42%; }
  .acc__panel p { padding-right: 0; }
  .niche__cap { white-space: normal; text-align: center; max-width: 90%; }
  blockquote.pull { padding-left: var(--sp-4); }
}

@media print {
  .site-hdr, .mnav, .burger, .site-ftr, .lbox, .btn-row, .gfilters { display: none !important; }
  body { background: #fff; color: #000; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .parallax { transform: none !important; }
}
