/* ==========================================================================
   THE BUILDERS: GHANA AT 70
   thebuilders.org.gh
   Design system — archival editorial
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */

:root {
  /* Colour */
  --ink:         #12100E;
  --ink-soft:    #1D1A16;
  --ink-lift:    #262218;
  --bone:        #F5F1E8;
  --bone-deep:   #EBE5D8;
  --bone-edge:   #DDD5C4;
  --gold:        #B4884A;
  --gold-lift:   #D2A462;
  --gold-deep:   #8A6832;
  --grey:        #6E6759;
  --grey-light:  #9B9384;

  --rule-dark:   rgba(18, 16, 14, 0.14);
  --rule-light:  rgba(245, 241, 232, 0.16);

  /* Type */
  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --t-hero:   clamp(2.6rem, 6.4vw, 5.1rem);
  --t-h1:     clamp(2.2rem, 5vw, 3.9rem);
  --t-h2:     clamp(1.7rem, 3.3vw, 2.6rem);
  --t-h3:     clamp(1.25rem, 2vw, 1.6rem);
  --t-lead:   clamp(1.08rem, 1.65vw, 1.35rem);
  --t-body:   clamp(1rem, 1.15vw, 1.075rem);
  --t-small:  0.875rem;
  --t-label:  0.72rem;

  /* Space */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --sect:   clamp(4rem, 9vw, 8.5rem);
  --maxw:   1240px;
  --readw:  38rem;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- 2. Reset ------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.62;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }

::selection { background: var(--gold); color: var(--bone); }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--bone);
  padding: 0.9rem 1.4rem; font-size: var(--t-small);
}
.skip:focus { left: 0; }

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

/* --- 3. Typography primitives -------------------------------------------- */

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 40;
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.t-hero { font-size: var(--t-hero); }
.t-h1   { font-size: var(--t-h1); }
.t-h2   { font-size: var(--t-h2); }
.t-h3   { font-size: var(--t-h3); line-height: 1.22; letter-spacing: -0.01em; }

.label {
  font-family: var(--sans);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.on-dark .label, .dark .label { color: var(--gold-lift); }

.lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--grey);
  max-width: 44rem;
  text-wrap: pretty;
}
.dark .lead { color: var(--grey-light); }

.prose p { margin-bottom: 1.15em; max-width: var(--readw); text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 600; }

.rule {
  height: 1px;
  background: var(--rule-dark);
  border: 0;
  margin: 0;
}
.dark .rule { background: var(--rule-light); }

/* --- 4. Layout ------------------------------------------------------------ */

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

.section { padding-block: var(--sect); }
.section--tight { padding-block: clamp(2.75rem, 5.5vw, 5rem); }

.dark {
  background: var(--ink);
  color: var(--bone);
}
.dark .lead, .dark .muted { color: var(--grey-light); }

.deep { background: var(--bone-deep); }

.muted { color: var(--grey); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.75rem); }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; }
  .split--even { grid-template-columns: 1fr 1fr; }
}

.stack > * + * { margin-top: 1.25rem; }
.stack-sm > * + * { margin-top: 0.6rem; }
.stack-lg > * + * { margin-top: 2.25rem; }

/* Section heading block */
.sect-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.sect-head .label { display: block; margin-bottom: 1rem; }
.sect-head .t-h2 { margin-bottom: 0.9rem; }

/* --- 5. Buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.92em 1.7em;
  font-family: var(--sans);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--gold { background: var(--gold); color: #1A1409; border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-lift); border-color: var(--gold-lift); }

.btn--ink { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn--ink:hover { background: var(--ink-lift); border-color: var(--ink-lift); }

.btn--ghost { border-color: currentColor; color: inherit; opacity: 0.95; }
.btn--ghost:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.dark .btn--ghost:hover, .hero .btn--ghost:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

.btn--sm { padding: 0.68em 1.15em; font-size: 0.71rem; letter-spacing: 0.1em; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Text link with underline reveal */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  transition: color .3s var(--ease), gap .3s var(--ease);
}
.tlink:hover { gap: 0.75rem; color: var(--ink); }
.dark .tlink { color: var(--gold-lift); }
.dark .tlink:hover { color: var(--bone); }
.tlink .arw { transition: transform .3s var(--ease); }
.tlink:hover .arw { transform: translateX(2px); }

/* --- 6. Header ------------------------------------------------------------ */

.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 232, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--rule-dark);
  transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
.hdr--dark {
  background: var(--ink);
  border-bottom-color: transparent;
  color: var(--bone);
}
.hdr--dark.is-stuck {
  background: rgba(18, 16, 14, 0.95);
  border-bottom-color: var(--rule-light);
}
.hdr:not(.hdr--dark).is-stuck { background: rgba(245, 241, 232, 0.96); }

.hdr__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

/* Wordmark */
.mark { display: inline-flex; align-items: baseline; gap: 0.55rem; flex: 0 0 auto; }
.mark.has-logo { align-items: center; }
.mark__logo { height: 2.25rem; width: auto; max-width: 12rem; object-fit: contain; display: block; }
.mark__name {
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  font-variation-settings: 'opsz' 20;
  line-height: 1;
}
.mark__sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  white-space: nowrap;
}
.hdr--dark .mark__sub { color: var(--gold-lift); }
@media (max-width: 400px) { .mark__sub { display: none; } }

/* Desktop nav */
.nav { display: none; }
@media (min-width: 1060px) {
  .nav { display: flex; align-items: center; gap: 0.1rem; flex: 1 1 auto; justify-content: center; }
}
@media (min-width: 1180px) { .nav { gap: 0.35rem; } }

.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .25s var(--ease), opacity .25s var(--ease);
  opacity: 0.78;
}
.nav__link:hover, .nav__item:focus-within .nav__link { opacity: 1; }
.nav__link[aria-current="page"], .nav__link.is-on { opacity: 1; color: var(--gold-deep); }
.hdr--dark .nav__link[aria-current="page"], .hdr--dark .nav__link.is-on { color: var(--gold-lift); }

.nav__caret { width: 8px; height: 8px; opacity: 0.55; transition: transform .3s var(--ease); }
.nav__item:hover .nav__caret, .nav__item:focus-within .nav__caret { transform: rotate(180deg); }

.drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 15rem;
  background: var(--bone);
  color: var(--ink);
  border: 1px solid var(--bone-edge);
  border-radius: 2px;
  box-shadow: 0 22px 48px -24px rgba(18,16,14,0.45);
  padding: 0.45rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.nav__item:hover .drop, .nav__item:focus-within .drop {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.drop a {
  display: block;
  padding: 0.6rem 0.85rem;
  font-size: 0.83rem;
  border-radius: 2px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.drop a:hover { background: var(--bone-deep); color: var(--gold-deep); }
.drop a[aria-current="page"] { color: var(--gold-deep); font-weight: 600; }

.hdr__cta { display: none; }
@media (min-width: 1060px) { .hdr__cta { display: inline-flex; } }

/* Burger */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
  margin-right: -10px;
}
@media (min-width: 1060px) { .burger { display: none; } }
.burger span {
  display: block; height: 1.5px; width: 100%;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .25s var(--ease);
}
body.menu-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  color: var(--bone);
  padding: 96px var(--gutter) 3rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
body.menu-open .drawer { opacity: 1; visibility: visible; }
@media (min-width: 1060px) { .drawer { display: none; } }

.drawer__grp + .drawer__grp { border-top: 1px solid var(--rule-light); }
.drawer__top {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 1.05rem 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  text-align: left;
}
.drawer__top .nav__caret { width: 11px; height: 11px; }
.drawer__grp.is-open .drawer__top .nav__caret { transform: rotate(180deg); }
.drawer__sub {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s var(--ease);
}
.drawer__grp.is-open .drawer__sub { max-height: 30rem; }
.drawer__sub a {
  display: block;
  padding: 0.5rem 0 0.5rem 1rem;
  font-size: 0.95rem;
  color: var(--grey-light);
  border-left: 1px solid var(--rule-light);
}
.drawer__sub a:hover { color: var(--gold-lift); }
.drawer__sub li:last-child a { padding-bottom: 1.1rem; }
.drawer__cta { margin-top: 2rem; }
.drawer__cta .btn { width: 100%; justify-content: center; }

/* --- 7. Hero -------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(180,136,74,0.22), transparent 62%),
    linear-gradient(180deg, rgba(18,16,14,0.34) 0%, rgba(18,16,14,0.86) 74%, var(--ink) 100%);
}
.hero__in {
  min-height: min(88vh, 780px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: clamp(6rem, 16vh, 10rem) clamp(3.5rem, 8vh, 6rem);
}
.hero .t-hero { max-width: 20ch; margin-bottom: 1.5rem; }
.hero .lead { color: rgba(245,241,232,0.8); max-width: 40rem; margin-bottom: 2.25rem; }
.hero .label { margin-bottom: 1.6rem; display: block; }

.hero__meta {
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule-light);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  font-size: var(--t-small);
  color: rgba(245,241,232,0.62);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 0.65rem; }
.hero__meta span::before {
  content: ""; width: 4px; height: 4px; background: var(--gold); border-radius: 50%;
}

/* Page hero (interior) */
.phero {
  background: var(--ink);
  color: var(--bone);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.phero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(90% 120% at 88% 0%, rgba(180,136,74,0.16), transparent 60%);
}
.phero__in {
  padding-block: clamp(3.5rem, 12vh, 7.5rem) clamp(3rem, 9vh, 5.5rem);
}
.phero .label { display: block; margin-bottom: 1.25rem; }
.phero .t-h1 { max-width: 18ch; margin-bottom: 1.25rem; }
.phero .lead { color: rgba(245,241,232,0.78); }

/* --- 8. Cards ------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  background: var(--bone);
  border: 1px solid var(--bone-edge);
  border-radius: 2px;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  height: 100%;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
a.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 26px 46px -30px rgba(18,16,14,0.5);
}
.dark .card { background: var(--ink-soft); border-color: rgba(245,241,232,0.12); }
.dark a.card:hover { border-color: var(--gold); }

.card__num {
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  margin-bottom: 1.1rem;
}
.dark .card__num { color: var(--gold-lift); }
.card__t { margin-bottom: 0.7rem; }
.card__b { color: var(--grey); font-size: 0.96rem; flex-grow: 1; }
.dark .card__b { color: var(--grey-light); }
.card__f {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule-dark);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.dark .card__f { border-top-color: var(--rule-light); color: var(--gold-lift); }
.card__f .arw { transition: transform .3s var(--ease); }
a.card:hover .card__f .arw { transform: translateX(4px); }

/* Numbered / ruled list items */
.items { border-top: 1px solid var(--rule-dark); }
.dark .items { border-top-color: var(--rule-light); }
.item {
  display: grid;
  gap: 0.35rem 2rem;
  padding-block: clamp(1.35rem, 2.6vw, 2rem);
  border-bottom: 1px solid var(--rule-dark);
  transition: background .3s var(--ease), padding-inline .3s var(--ease);
}
.dark .item { border-bottom-color: var(--rule-light); }
@media (min-width: 800px) {
  .item { grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); align-items: baseline; }
}
a.item:hover { background: rgba(180,136,74,0.07); padding-inline: 1rem; }
.item__k { display: flex; align-items: baseline; gap: 0.9rem; }
.item__n {
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
}
.dark .item__n { color: var(--gold-lift); }
.item__v { color: var(--grey); max-width: 40rem; text-wrap: pretty; }
.dark .item__v { color: var(--grey-light); }

/* Fact strip */
.strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.4rem;
  align-items: center;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.9vw, 1.35rem);
}
.strip li { display: inline-flex; align-items: center; gap: 1rem; }
.strip li + li::before {
  content: "·";
  color: var(--gold);
  margin-right: 1rem;
}
@media (max-width: 640px) {
  .strip { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .strip li + li::before { display: none; }
}

/* Pull quote */
.pull {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3.1vw, 2.35rem);
  line-height: 1.24;
  letter-spacing: -0.015em;
  max-width: 24ch;
  text-wrap: balance;
}
.pull__attr {
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: var(--t-small);
  letter-spacing: 0.02em;
  color: var(--grey);
}
.dark .pull__attr { color: var(--grey-light); }

/* Placeholder media block (swap for real photography) */
.media {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(180,136,74,0.16), rgba(18,16,14,0.06)),
    var(--bone-deep);
  border: 1px solid var(--bone-edge);
  border-radius: 2px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.dark .media {
  background: linear-gradient(135deg, rgba(180,136,74,0.2), rgba(245,241,232,0.03)), var(--ink-soft);
  border-color: rgba(245,241,232,0.12);
}
.media--tall { aspect-ratio: 3 / 4; }
.media--wide { aspect-ratio: 16 / 9; }
.media::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  opacity: 0.5;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.media__cap {
  position: relative;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-align: center;
  padding: 1rem;
  max-width: 22ch;
  line-height: 1.7;
}
.dark .media__cap { color: var(--gold-lift); }

/* --- 9. Forms ------------------------------------------------------------- */

.form { max-width: 40rem; }
.form__grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) {
  .form__grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}

.field label {
  display: block;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.5rem;
}
.dark .field label { color: var(--grey-light); }
.field .req { color: var(--gold-deep); }
.dark .field .req { color: var(--gold-lift); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink);
  background: #FFFDF8;
  border: 1px solid var(--bone-edge);
  border-radius: 2px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.dark .field input, .dark .field select, .dark .field textarea {
  background: var(--ink-soft);
  color: var(--bone);
  border-color: rgba(245,241,232,0.18);
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(180,136,74,0.18);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #B4453A; }
.field__err {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #B4453A;
}
.field.has-err .field__err { display: block; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236E6759' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form__note {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--grey);
  max-width: 34rem;
}
.dark .form__note { color: var(--grey-light); }
.form__actions { margin-top: 1.75rem; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form__status {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-left: 2px solid var(--gold);
  background: rgba(180,136,74,0.09);
  font-size: 0.92rem;
}
.form__status[data-state="error"] { border-left-color: #B4453A; background: rgba(180,69,58,0.08); }

/* Newsletter inline form */
.nl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 30rem;
}
.nl input {
  flex: 1 1 14rem;
  padding: 0.85rem 1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  background: transparent;
  color: inherit;
  border: 1px solid var(--rule-light);
  border-radius: 2px;
}
.nl input::placeholder { color: rgba(245,241,232,0.45); }
.nl input:focus { outline: none; border-color: var(--gold); }

/* --- 10. Footer ----------------------------------------------------------- */

.ftr {
  background: var(--ink);
  color: var(--bone);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
}
.ftr__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--rule-light);
}
.ftr__h {
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-lift);
  margin-bottom: 1.15rem;
}
.ftr__list li + li { margin-top: 0.55rem; }
.ftr__list a {
  font-size: 0.9rem;
  color: rgba(245,241,232,0.72);
  transition: color .25s var(--ease);
}
.ftr__list a:hover { color: var(--gold-lift); }
.ftr__nl { grid-column: 1 / -1; }
@media (min-width: 1000px) { .ftr__nl { grid-column: auto; min-width: 20rem; } }
.ftr__nl p { font-size: 0.9rem; color: rgba(245,241,232,0.6); margin-bottom: 1.1rem; max-width: 26rem; }

.ftr__base {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(245,241,232,0.5);
}
.ftr__legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.ftr__legal a:hover { color: var(--gold-lift); }

/* --- 11. CTA band --------------------------------------------------------- */

.band {
  background: var(--ink);
  color: var(--bone);
  padding-block: clamp(3.25rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.band::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 130% at 12% 100%, rgba(180,136,74,0.2), transparent 62%);
}
.band__in {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 3rem;
  align-items: center;
  justify-content: space-between;
}
.band .t-h2 { max-width: 20ch; }
.band p { color: rgba(245,241,232,0.72); max-width: 34rem; margin-top: 0.9rem; }

/* --- 12. Pillar-specific -------------------------------------------------- */

.pillar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.chip {
  padding: 0.5rem 0.95rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--rule-dark);
  border-radius: 999px;
  color: var(--grey);
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--gold); color: var(--ink); }
.dark .chip { border-color: var(--rule-light); color: var(--grey-light); }
.dark .chip:hover { border-color: var(--gold); color: var(--bone); }
.chip[aria-current="page"] { background: var(--gold); border-color: var(--gold); color: #1A1409; }

.nextpill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-top: 1px solid var(--rule-dark);
  transition: padding-inline .3s var(--ease);
}
.nextpill:hover { padding-inline: 0.75rem; }
.nextpill .arw { color: var(--gold-deep); }

/* --- 13. Timeline (three acts) -------------------------------------------- */

.acts { counter-reset: act; }
.act {
  display: grid;
  gap: 0.75rem 2.5rem;
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid var(--rule-light);
  position: relative;
}
@media (min-width: 820px) {
  .act { grid-template-columns: 12rem minmax(0, 1fr); }
}
.act__k .label { display: block; margin-bottom: 0.4rem; }
.act__k h3 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; }
.act__v { color: var(--grey-light); max-width: 40rem; }

/* --- 14. Reveal ----------------------------------------------------------- */

.rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.rv.in { opacity: 1; transform: none; }
.rv:nth-child(2) { transition-delay: .06s; }
.rv:nth-child(3) { transition-delay: .12s; }
.rv:nth-child(4) { transition-delay: .18s; }
.rv:nth-child(5) { transition-delay: .24s; }
.rv:nth-child(6) { transition-delay: .3s; }
.rv:nth-child(7) { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
}

/* --- 15. Misc ------------------------------------------------------------- */

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,241,232,0.5);
  margin-bottom: 1.5rem;
}
.crumb a:hover { color: var(--gold-lift); }
.crumb span { opacity: 0.5; }

.contact-block {
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--rule-dark);
}
.contact-block a[href^="mailto"] {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--gold-deep);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.contact-block a[href^="mailto"]:hover { border-color: currentColor; }

.note {
  padding: 1.15rem 1.35rem;
  border-left: 2px solid var(--gold);
  background: rgba(180,136,74,0.08);
  font-size: 0.92rem;
  color: var(--grey);
  max-width: 44rem;
}
.dark .note { color: var(--grey-light); background: rgba(180,136,74,0.1); }

.team {
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
  border-top: 1px solid var(--rule-dark);
}
.team__n { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 0.25rem; }
.team__r {
  font-size: var(--t-label); font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.9rem;
}

.tbd {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  border: 1px dashed var(--bone-edge);
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
}

.empty {
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px dashed var(--bone-edge);
  border-radius: 2px;
  text-align: center;
  color: var(--grey);
}
.dark .empty { border-color: rgba(245,241,232,0.18); color: var(--grey-light); }

/* --- CMS editable images (myadmin/content.php) ---------------------------- */
.phero .hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.phero .hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media.has-img { padding: 0; }
.media.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media.has-img::before { z-index: 1; }
.media.has-img .media__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; max-width: none; background: linear-gradient(transparent, rgba(18,16,14,0.78)); color: #fff; }
.team__ph { width: 88px; height: 88px; object-fit: cover; border-radius: 50%; border: 1px solid var(--bone-edge); display: block; margin-bottom: 0.9rem; }

/* Homepage proposition image (myadmin/homepage.php?tab=proposition) */
.prop__img { width: 100%; display: block; margin-top: 1.5rem; border-radius: 2px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--bone-deep); }
/* Landscape variant (e.g. series release-architecture side image) */
.prop__img--landscape { aspect-ratio: 16 / 9; }
