:root {
  --vault-linen: #F3F0E4;
  --dome-brown: #4A3F33;
  --record-indigo: #3B5BA5;
  --patina-gold: #8B7935;
  --stone-deep: #2A2F38;
  --filing-taupe: #A8A296;
  --amphora-buff: #E7DFC9;
  --linen-deeper: #EAE5D3;
  --linen-soft: #F7F4EA;
  --indigo-deep: #2F4A88;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  font-family: Georgia, "Times New Roman", serif;
  background: #F3F0E4;
  color: #4A3F33;
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
}

a {
  color: #3B5BA5;
  text-decoration: none;
}

h1, h2, h3 {
  line-height: 1.2;
  font-weight: normal;
}

/* ---------- Scroll reveal ---------- */
html.js .reveal-pre {
  opacity: 0;
  transform: translateY(14px);
}

html.js .reveal-pre.is-shown {
  opacity: 1;
  transform: none;
}

.reveal-pre {
  transition: opacity 600ms ease, transform 600ms ease;
}

/* ---------- LINTEL COURSE NAV ---------- */
.lintelnav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #2A2F38;
  border-bottom: 4px solid #A8A296;
}

.lintelnav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
}

.lintelnav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lintelnav-seal {
  width: 16px;
  height: 16px;
  background: #3B5BA5;
  display: inline-block;
  border: 2px solid #E7DFC9;
}

.lintelnav-cartouche {
  display: inline-block;
  color: #E7DFC9;
  font-size: 1.15rem;
  letter-spacing: 0.22em;
  padding: 8px 14px;
  border: 2px solid #A8A296;
  background: #2A2F38;
}

.lintelnav-plaques {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.lintelnav-niche {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: #F3F0E4;
  color: #4A3F33;
  border: 1px solid #A8A296;
  border-bottom: 5px solid #A8A296;
  padding: 10px 14px 7px;
  min-width: 76px;
}

.lintelnav-niche:hover {
  background: #E7DFC9;
}

.niche-depth-a {
  margin-bottom: 0;
}

.niche-depth-b {
  margin-bottom: 6px;
  border-bottom-color: #8B7935;
}

.niche-depth-c {
  margin-bottom: 3px;
  border-bottom-color: #3B5BA5;
}

.lintelnav-num {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: #8B7935;
}

.lintelnav-word {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: #4A3F33;
}

.lintelnav-toggle {
  display: none;
  background: #3B5BA5;
  color: #F3F0E4;
  border: 2px solid #E7DFC9;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  padding: 10px 16px;
  cursor: pointer;
}

/* ---------- NICHE WALL HERO ---------- */
.nichewall {
  background: #F3F0E4;
  border-bottom: 1px solid #A8A296;
}

.nichewall-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 24px 80px;
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 48px;
  align-items: center;
}

.nichewall-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: #8B7935;
  margin-bottom: 18px;
}

.nichewall-headline {
  font-size: 2.9rem;
  color: #4A3F33;
  margin-bottom: 22px;
}

.nichewall-accent {
  color: #3B5BA5;
}

.nichewall-lede {
  font-size: 1.05rem;
  color: #4A3F33;
  margin-bottom: 30px;
  max-width: 620px;
}

.nichewall-passes {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.sealpass {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  background: #3B5BA5;
  color: #F3F0E4;
  border: 2px solid #2F4A88;
  padding: 14px 24px;
  box-shadow: 5px 5px 0 #A8A296;
}

.sealpass:hover {
  background: #2F4A88;
  color: #FFFFFF;
}

.sealpass-code {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: #E7DFC9;
}

.sealpass-word {
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.sealpass-two {
  background: #2A2F38;
  border-color: #4A3F33;
}

.sealpass-two:hover {
  background: #3B5BA5;
}

/* ---------- CSS ARCHIVE WALL ---------- */
.nichewall-scene {
  position: relative;
}

.archwall {
  position: relative;
  background: #EAE5D3;
  border: 3px solid #A8A296;
  padding: 0 18px 0;
}

.archwall-lintel {
  position: relative;
  height: 42px;
  background: #2A2F38;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}

.archwall-lintel-line {
  display: block;
  height: 3px;
  flex: 1;
  background: #8B7935;
}

.archwall-lintel-line.short {
  flex: 0 0 60px;
  background: #A8A296;
}

.archwall-lintel-ring {
  width: 14px;
  height: 14px;
  border: 3px solid #E7DFC9;
  border-radius: 50%;
  display: block;
}

.archwall-niches {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.35fr;
  gap: 14px;
  align-items: end;
  padding: 26px 12px 0;
}

.archwall-arch {
  position: relative;
  background: #F7F4EA;
  border: 2px solid #A8A296;
  border-bottom: none;
  border-radius: 90px 90px 0 0;
  padding: 26px 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.arch-narrow {
  height: 200px;
}

.arch-tall {
  height: 262px;
}

.arch-wide {
  height: 228px;
}

.archwall-inner {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.archwall-vase {
  display: block;
  width: 24px;
  height: 44px;
  background: #4A3F33;
  border-radius: 46% 46% 12% 12% / 62% 62% 10% 10%;
}

.archwall-vase.tall {
  height: 60px;
  width: 28px;
  background: #8B7935;
}

.archwall-case {
  display: block;
  width: 44px;
  height: 24px;
  background: #2A2F38;
  border: 2px solid #8B7935;
}

.archwall-case.tall {
  width: 52px;
  height: 32px;
  background: #3B5BA5;
  border-color: #E7DFC9;
}

.archwall-ring {
  display: block;
  width: 16px;
  height: 16px;
  border: 3px solid #8B7935;
  border-radius: 50%;
  align-self: center;
}

.archwall-tag {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: #8B7935;
  padding: 5px 0 8px;
}

.archwall-threshold {
  height: 26px;
  margin: 0 -18px;
  background: #A8A296;
  border-top: 4px solid #4A3F33;
  border-bottom: 4px solid #4A3F33;
}

/* ---------- CATALOGUE LEDGER ROWS ---------- */
.treasuryrows {
  background: #F3F0E4;
  padding: 20px 0 60px;
}

.treasuryrows-head {
  max-width: 1180px;
  margin: 0 auto 30px;
  padding: 30px 24px 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.treasuryrows-title {
  font-size: 2rem;
  color: #4A3F33;
  white-space: nowrap;
}

.treasuryrows-rule {
  display: block;
  height: 2px;
  background: #A8A296;
  flex: 1;
}

.treasuryrows-rule.short {
  flex: 0 0 80px;
  background: #8B7935;
}

.ledgerfolio {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: stretch;
}

.ledgerfolio-column {
  background: #2A2F38;
  color: #F3F0E4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 30px 16px;
}

.ledgerfolio-numeral {
  font-size: 1.25rem;
  letter-spacing: 0.16em;
  color: #F3F0E4;
}

.ledgerfolio-ring {
  width: 18px;
  height: 18px;
  border: 3px solid #8B7935;
  border-radius: 50%;
  display: block;
}

.ledgerfolio-panel {
  background: #F3F0E4;
  padding: 30px 40px 30px 34px;
  border-left: 1px solid #A8A296;
}

.ledgerfolio-name {
  font-size: 1.5rem;
  color: #4A3F33;
  margin-bottom: 12px;
}

.ledgerfolio-text {
  color: #4A3F33;
  max-width: 860px;
  margin-bottom: 18px;
}

.ledgerfolio-link {
  color: #3B5BA5;
  border-bottom: 1px solid #3B5BA5;
}

.ledgerline {
  position: relative;
  height: 10px;
  background: #F3F0E4;
  border-top: 1px solid #A8A296;
  border-bottom: 1px solid #A8A296;
  display: flex;
  align-items: center;
}

.ledgerline-fill {
  display: block;
  height: 6px;
  background: #3B5BA5;
}

.fill-opening { width: 12%; }
.fill-brief { width: 26%; }
.fill-half { width: 48%; }
.fill-full { width: 66%; }
.fill-near { width: 84%; }
.fill-complete { width: 100%; }

.ledgerline-label {
  margin-left: 12px;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: #8B7935;
  white-space: nowrap;
}

.folio-one .ledgerfolio-panel { background: #F3F0E4; height: 214px; }
.folio-two .ledgerfolio-panel { background: #EAE5D3; height: 226px; }
.folio-three .ledgerfolio-panel { background: #F3F0E4; height: 210px; }
.folio-four .ledgerfolio-panel { background: #EAE5D3; height: 234px; }
.folio-five .ledgerfolio-panel { background: #F3F0E4; height: 222px; }
.folio-six .ledgerfolio-panel { background: #EAE5D3; height: 218px; }

.skew-left {
  transform: skewY(-1deg);
}

.skew-right {
  transform: skewY(1deg);
}

.inverted .ledgerfolio-column {
  background: #4A3F33;
}

.inverted .ledgerfolio-panel {
  background: #2A2F38;
  border-left-color: #4A3F33;
}

.inverted .ledgerfolio-name,
.inverted .ledgerfolio-text {
  color: #F3F0E4;
}

.inverted .ledgerfolio-link {
  color: #E7DFC9;
  border-bottom-color: #E7DFC9;
}

.inverted .ledgerline {
  background: #2A2F38;
  border-color: #4A3F33;
}

.treasuryrows > .ledgerfolio {
  border-bottom: 1px solid #A8A296;
}

/* ---------- NEW ACQUISITION STRIP ---------- */
.acquisitionstrip {
  background: #3B5BA5;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 40px;
}

.acquisitionstrip-rule {
  display: block;
  height: 2px;
  flex: 1;
  background: #E7DFC9;
}

.acquisitionstrip-ring {
  width: 16px;
  height: 16px;
  border: 3px solid #E7DFC9;
  border-radius: 50%;
  display: block;
  flex: 0 0 auto;
}

.acquisitionstrip-text {
  color: #F3F0E4;
  font-size: 1.1rem;
  text-align: center;
  flex: 0 1 auto;
}

/* ---------- PRACTICE WALL ---------- */
.practicewall {
  background: #EAE5D3;
  padding: 70px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  max-width: 1180px;
  margin: 0 auto;
}

.practicewall-title {
  font-size: 2rem;
  color: #4A3F33;
  margin-bottom: 18px;
}

.practicewall-text {
  color: #4A3F33;
  margin-bottom: 16px;
}

.practicewall-figures {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}

.figureblock {
  background: #E7DFC9;
  border: 2px solid #A8A296;
  border-left: 8px solid #8B7935;
  padding: 18px 22px;
}

.figureblock-num {
  display: block;
  font-size: 2rem;
  color: #3B5BA5;
}

.figureblock-label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: #4A3F33;
}

/* ---------- Contact form ---------- */
.contactform {
  margin-top: 26px;
  background: #E7DFC9;
  border: 2px solid #A8A296;
  border-left: 8px solid #3B5BA5;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contactform-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: #8B7935;
  margin-top: 6px;
}

.contactform-field {
  font-family: inherit;
  font-size: 1rem;
  color: #4A3F33;
  background: #F3F0E4;
  border: 2px solid #A8A296;
  padding: 11px 13px;
}

.contactform-field:focus {
  outline: 3px solid #3B5BA5;
  outline-offset: 1px;
}

.contactform-area {
  resize: vertical;
  min-height: 140px;
}

.contactform-submit {
  align-self: flex-start;
  margin-top: 14px;
  cursor: pointer;
  font-family: inherit;
}

.contactform-status {
  color: #4A3F33;
  font-size: 0.92rem;
  margin-top: 8px;
  min-height: 1px;
}

.contactwall .practicewall-figures {
  align-self: start;
}

/* ---------- PROVENANCE WALL ---------- */
.provenancewall {
  background: #F3F0E4;
  padding: 60px 24px 70px;
  max-width: 1180px;
  margin: 0 auto;
}

.provenancewall-title {
  font-size: 2rem;
  color: #4A3F33;
  text-align: center;
  margin-bottom: 36px;
}

.provenancewall-steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.provenance-step {
  background: #E7DFC9;
  border: 2px solid #A8A296;
  padding: 24px 20px;
}

.provenance-step.step-a { margin-top: 0; }
.provenance-step.step-b { margin-top: 30px; }
.provenance-step.step-c { margin-top: 12px; }
.provenance-step.step-d { margin-top: 42px; }

.provenance-step-num {
  display: block;
  font-size: 1.6rem;
  color: #8B7935;
  margin-bottom: 8px;
}

.provenance-step-name {
  font-size: 1.15rem;
  color: #4A3F33;
  margin-bottom: 8px;
}

.provenance-step-text {
  font-size: 0.92rem;
  color: #4A3F33;
}

/* ---------- CLOSING VAULT ---------- */
.closingvault {
  background: #2A2F38;
  padding: 70px 24px;
}

.closingvault-panel {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.closingvault-title {
  font-size: 2rem;
  color: #F3F0E4;
  margin-bottom: 16px;
}

.closingvault-text {
  color: #E7DFC9;
  margin-bottom: 28px;
}

.closingvault-pass {
  display: inline-flex;
}

/* ---------- MARBLE THRESHOLD FOOTER ---------- */
.foundationwall {
  background: #2A2F38;
  color: #F3F0E4;
}

.foundationwall-step {
  height: 22px;
  background: #A8A296;
  border-top: 4px solid #4A3F33;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.foundationwall-ring {
  width: 12px;
  height: 12px;
  border: 3px solid #4A3F33;
  border-radius: 50%;
  display: block;
}

.foundationwall-body {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 24px 36px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 44px;
}

.foundationwall-groups {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}

.foundationwall-plaque {
  background: #F3F0E4;
  border: 2px solid #A8A296;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.foundationwall-head {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: #8B7935;
  margin-bottom: 4px;
}

.foundationwall-plaque a {
  color: #4A3F33;
  font-size: 0.92rem;
}

.foundationwall-plaque a:hover {
  color: #3B5BA5;
}

.foundationwall-brand {
  display: block;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: #E7DFC9;
  border: 2px solid #A8A296;
  padding: 14px 18px;
  margin-bottom: 14px;
}

.foundationwall-blurb {
  color: #E7DFC9;
  font-size: 0.95rem;
}

.foundationwall-base {
  border-top: 1px solid #4A3F33;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.foundationwall-amphora {
  background: #8B7935;
  color: #2A2F38;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: 60% 60% 20% 20% / 40% 40% 30% 30%;
}

.foundationwall-line {
  color: #A8A296;
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nichewall-grid {
    grid-template-columns: 1fr;
  }
  .practicewall {
    grid-template-columns: 1fr;
  }
  .foundationwall-body {
    grid-template-columns: 1fr;
  }
  .provenancewall-steps {
    grid-template-columns: 1fr 1fr;
  }
  .foundationwall-groups {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .lintelnav-inner {
    flex-wrap: wrap;
    padding: 12px 18px;
  }
  .lintelnav-toggle {
    display: inline-block;
    order: 2;
  }
  .lintelnav-plaques {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    display: none;
  }
  .lintelnav-plaques.is-open {
    display: flex;
  }
  .nichewall-headline {
    font-size: 2.1rem;
  }
  .ledgerfolio {
    grid-template-columns: 1fr;
  }
  .ledgerfolio-column {
    flex-direction: row;
    justify-content: flex-start;
    padding: 16px 22px;
  }
  .folio-one .ledgerfolio-panel,
  .folio-two .ledgerfolio-panel,
  .folio-three .ledgerfolio-panel,
  .folio-four .ledgerfolio-panel,
  .folio-five .ledgerfolio-panel,
  .folio-six .ledgerfolio-panel {
    height: auto;
  }
  .skew-left, .skew-right {
    transform: none;
  }
  .provenancewall-steps {
    grid-template-columns: 1fr;
  }
  .provenance-step.step-b,
  .provenance-step.step-c,
  .provenance-step.step-d {
    margin-top: 0;
  }
  .acquisitionstrip {
    flex-direction: column;
    padding: 24px 20px;
  }
  .acquisitionstrip-rule {
    width: 100%;
    flex: 0 0 2px;
  }
}
