/* ==========================================================
   Our Heritage Matters — shared styles
   ========================================================== */

:root {
  --ink: #14213D;
  --ink-deep: #0B1428;
  --ink-soft: #22315A;
  --oxblood: #7E1E24;
  --oxblood-dark: #63161B;
  --brass: #B4894C;
  --brass-light: #D6B57F;
  --parchment: #F5F0E6;
  --parchment-2: #ECE3D2;
  --paper: #FBF8F2;
  --stone: #D8CBB2;
  --text: #3A3227;
  --muted: #6B604F;

  --serif-display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --serif: "Libre Caslon Text", Georgia, serif;
  --roman: "Cinzel", "Libre Caslon Text", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 84px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--oxblood); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

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

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--serif-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
}

.h2 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 1.4rem;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--oxblood);
}
.eyebrow--center::before,
.eyebrow--center::after { content: ""; width: 32px; height: 1px; background: currentColor; }
.on-dark .eyebrow { color: var(--brass-light); }

.rule {
  display: block; width: 56px; height: 2px; margin: 1.6rem 0 0;
  background: var(--oxblood);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 32px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s;
}
.btn-primary { background: var(--oxblood); color: #fff; }
.btn-primary:hover { background: var(--oxblood-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--parchment); border-color: rgba(245, 240, 230, .45); }
.btn-ghost:hover { color: var(--brass-light); border-color: var(--brass-light); }
.btn-sm { padding: 12px 22px; font-size: 0.72rem; }
.btn[disabled] { opacity: .7; cursor: wait; transform: none; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color .35s, box-shadow .35s;
}
.site-header.is-solid,
.site-header--solid,
.site-header.menu-open {
  background: rgba(11, 20, 40, .97);
  box-shadow: 0 1px 0 rgba(214, 181, 127, .22);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--brass-light);
  flex: none;
}
.brand svg { width: 38px; height: 44px; flex: none; }
.brand-text {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.02;
  color: var(--brass-light);
}
.brand-text span { display: block; }

.primary-nav { display: flex; align-items: center; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }

.nav-link {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(245, 240, 230, .82);
  text-decoration: none;
  transition: color .2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: var(--brass-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav-link:hover, .nav-link.is-active { color: #fff; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.primary-nav .btn { margin-left: 18px; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(214, 181, 127, .4);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px;
  background: var(--parchment);
  transition: transform .3s, opacity .2s;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1040px) {
  :root { --header-h: 72px; }
  .menu-toggle { display: block; }
  .primary-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 8px var(--gutter) 32px;
    background: var(--ink-deep);
    border-top: 1px solid rgba(214, 181, 127, .2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .3s, transform .3s, visibility .3s;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .nav-link { padding: 17px 0; font-size: 1.05rem; border-bottom: 1px solid rgba(245, 240, 230, .08); }
  .nav-link::after { display: none; }
  .nav-link.is-active { color: var(--brass-light); }
  .primary-nav .btn { margin: 24px 0 0; width: 100%; padding: 18px; }
  .brand svg { width: 32px; height: 38px; }
  .brand-text { font-size: 1rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 48px) 0 140px;
  text-align: center;
  color: var(--parchment);
  overflow: hidden;
}

/* Drop your photo at images/hero.jpg — the gradient shows until then */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    url("images/hero.jpg"),
    radial-gradient(ellipse at 50% 25%, #2C3D68 0%, rgba(44, 61, 104, 0) 62%),
    linear-gradient(180deg, #1B2A4D 0%, #0B1428 100%);
  background-size: cover, auto, auto;
  background-position: center 40%, center, center;
  transform: scale(1.04);
  animation: heroSettle 2.4s ease-out forwards;
}
@keyframes heroSettle { to { transform: scale(1); } }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 20, 40, .74) 0%, rgba(11, 20, 40, .52) 42%, rgba(11, 20, 40, .9) 100%);
}

/* Engraved inset frame */
.hero::after {
  content: "";
  position: absolute;
  inset: calc(var(--header-h) + 16px) 24px 24px;
  border: 1px solid rgba(214, 181, 127, .22);
  pointer-events: none;
}

.hero-inner { max-width: 1000px; margin: 0 auto; padding: 0 var(--gutter); }

.hero .eyebrow { color: var(--brass-light); margin-bottom: 2rem; }

.hero h1 {
  color: var(--parchment);
  font-size: clamp(3.4rem, 10.5vw, 8.5rem);
  line-height: .94;
  margin: 0 0 2rem;
}
.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass-light);
}

.hero-lede {
  max-width: 740px;
  margin: 0 auto 2.75rem;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.7;
  color: rgba(245, 240, 230, .86);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.scroll-cue {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(245, 240, 230, .6);
}
.scroll-cue .line {
  width: 1px; height: 48px;
  background: linear-gradient(var(--brass-light), rgba(214, 181, 127, 0));
  animation: cue 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue { 0%, 100% { transform: scaleY(.4); opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }

@media (max-width: 640px) {
  .hero { padding-bottom: 120px; }
  .hero::after { inset: calc(var(--header-h) + 10px) 10px 10px; }
  .hero .eyebrow { letter-spacing: 0.2em; gap: 10px; font-size: 0.7rem; }
  .hero .eyebrow::before, .hero .eyebrow::after { width: 18px; }
  .hero-actions .btn { width: 100%; max-width: 340px; }
  .scroll-cue { bottom: 28px; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(84px, 12vw, 150px) 0; }

.section-head { margin-bottom: clamp(52px, 7vw, 88px); max-width: 760px; }

/* Mission pillars */
.mission { background: var(--parchment); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(40px, 5vw, 72px);
}
.pillar { position: relative; }

.pillar-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 30px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 5px rgba(214, 181, 127, .55);
  font-family: var(--roman);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--brass-light);
}
.pillar h3 { font-size: clamp(2.1rem, 3.2vw, 2.8rem); }
.pillar .rule { width: 40px; margin: 1.2rem 0 1.4rem; }
.pillar p { margin: 0; color: var(--muted); }

@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; gap: 56px; }
}

/* Motto band */
.motto {
  position: relative;
  background: var(--ink);
  color: var(--parchment);
  text-align: center;
  padding: clamp(40px, 5.5vw, 64px) 0;
  overflow: hidden;
}
.motto::before, .motto::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 181, 127, .45), transparent);
}
.motto::before { top: 10px; }
.motto::after { bottom: 10px; }
.motto-star { width: 20px; height: 20px; margin: 0 auto 16px; color: var(--brass-light); }
.motto-text {
  margin: 0;
  font-family: var(--roman);
  font-size: clamp(1.8rem, 5.2vw, 3.6rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.2;
  color: var(--parchment);
}
.motto-sub {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--brass-light);
}

/* About */
.about { background: var(--parchment-2); }
.about-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
}
.about-media { position: relative; aspect-ratio: 4 / 5; margin: 0 22px 22px 0; }
.about-media::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(22px, 22px);
  border: 1px solid var(--brass);
}
.about-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.img-placeholder {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background:
    repeating-linear-gradient(90deg, rgba(214, 181, 127, .05) 0 2px, transparent 2px 46px),
    linear-gradient(160deg, #22315A 0%, #0E1830 100%);
  color: rgba(214, 181, 127, .75);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.about-copy p { color: var(--muted); margin: 0 0 1.25rem; }
.about-copy .h2 { margin-bottom: 0; }
.about-copy .rule { margin-bottom: 2rem; }


@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 440px; aspect-ratio: 1 / 1; }
  .about-img { object-position: center 58%; }
}

/* Join / form */
.join {
  position: relative;
  background: var(--ink);
  color: var(--parchment);
  overflow: hidden;
}
.join::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(214, 181, 127, .12), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(126, 30, 36, .28), transparent 55%);
  pointer-events: none;
}
.join-grid {
  position: relative;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(44px, 6vw, 88px);
  align-items: start;
}
.join .h2 { color: var(--parchment); }
.join-copy > p { margin: 1.75rem 0 0; font-size: 1.15rem; color: rgba(245, 240, 230, .8); }

.join-list { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.join-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  font-size: 1.15rem;
  color: rgba(245, 240, 230, .8);
}
.join-list svg { width: 13px; height: 13px; flex: none; color: var(--brass-light); }

.form-card {
  position: relative;
  background: var(--parchment);
  color: var(--text);
  padding: clamp(28px, 4.2vw, 54px);
  border-top: 3px solid var(--oxblood);
  border-radius: 2px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}
.form-card h3 { font-size: 1.9rem; margin-bottom: 6px; }
.form-intro { margin: 0 0 28px; font-size: 0.92rem; color: var(--muted); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.03em; color: var(--ink); }
.req { color: var(--oxblood); }
.optional { font-weight: 400; color: var(--muted); }

.field input {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: 2px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input:hover { border-color: #C6B694; }
.field input:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(20, 33, 61, .12); }
.field input:user-invalid { border-color: var(--oxblood); }

.consent {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--stone);
}
.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
  cursor: pointer;
}
.check input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px; height: 22px;
  margin: 1px 0 0;
  background: #fff;
  border: 1px solid #BFAF8E;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.check input:checked {
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23F5F0E6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  border-color: var(--ink);
}
.check a { color: var(--oxblood); }

.btn-submit { grid-column: 1 / -1; width: 100%; padding: 20px; font-size: 0.84rem; }

.form-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--oxblood);
  background: rgba(126, 30, 36, .07);
  border-left: 3px solid var(--oxblood);
}

.hidden-field { position: absolute; left: -9999px; }

.form-success { display: none; text-align: center; padding: 40px 0; }
.form-card.is-sent form, .form-card.is-sent .form-head { display: none; }
.form-card.is-sent .form-success { display: block; }
.form-success svg { width: 56px; height: 56px; margin: 0 auto 22px; color: var(--brass); }
.form-success h3 { margin-bottom: 12px; }
.form-success p { margin: 0 auto; max-width: 380px; color: var(--muted); }

@media (max-width: 960px) {
  .join-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .consent { padding: 18px; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink-deep);
  color: rgba(245, 240, 230, .65);
  padding: 72px 0 32px;
  font-size: 0.9rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(214, 181, 127, .18);
}
.footer-tag { margin: 18px 0 0; max-width: 320px; font-family: var(--serif); font-style: italic; color: rgba(245, 240, 230, .6); }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 30px; }
.footer-links a { text-decoration: none; color: rgba(245, 240, 230, .78); transition: color .2s; }
.footer-links a:hover { color: var(--brass-light); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1.4em;
  padding-top: 28px;
  font-size: 0.8rem;
  color: rgba(245, 240, 230, .5);
}
.footer-bottom p { margin: 0; }
.footer-disclaimer {
  max-width: 900px;
  margin: 0 auto 56px;
  padding: 22px 32px;
  border: 1px solid rgba(245, 240, 230, .85);
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--parchment);
}
.footer-disclaimer a {
  color: var(--parchment);
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color .2s;
}
.footer-disclaimer a:hover { color: var(--brass-light); }
@media (max-width: 560px) {
  .footer-disclaimer { padding: 18px 18px; margin-bottom: 44px; }
}

/* ---------- Legal / sub pages ---------- */

.page-hero {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(214, 181, 127, .12), transparent 60%),
    var(--ink);
  color: var(--parchment);
  text-align: center;
  padding: calc(var(--header-h) + clamp(56px, 8vw, 96px)) 0 clamp(56px, 8vw, 96px);
}
.page-hero h1 { color: var(--parchment); font-size: clamp(2.6rem, 6.5vw, 4.8rem); }
.page-hero .meta { margin: 18px 0 0; font-size: 0.9rem; color: rgba(245, 240, 230, .65); }

.legal { max-width: 780px; margin: 0 auto; padding: clamp(56px, 8vw, 100px) var(--gutter); }
.legal > p:first-child { font-size: 1.08rem; color: var(--ink); }
.legal h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
  letter-spacing: 0;
  margin: 2.6em 0 0.7em;
  padding-top: 1.4em;
  border-top: 1px solid var(--stone);
}
.legal h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 1.8em 0 0.4em;
}
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; }
.legal a { color: var(--oxblood); }
.legal strong { color: var(--ink); }

.thanks {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 60px) var(--gutter) 80px;
}
.thanks svg { width: 60px; height: 60px; margin: 0 auto 24px; color: var(--brass); }
.thanks p { color: var(--muted); max-width: 440px; margin: 16px auto 32px; }

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .12s; }
.js .reveal-d2 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media, .scroll-cue .line { animation: none; transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
