/* ==========================================================================
   Lodge site — design system
   Blue and gold, restrained. Gold is an accent only: rules, small caps,
   one button. Never a gold background panel, never a gradient on text.
   ========================================================================== */

:root {
  /* Blues — the structural colour */
  --navy-950: #070F1C;
  --navy-900: #0B1728;
  --navy-800: #10233D;
  --navy-700: #16325C;
  --navy-600: #1E4380;
  --navy-500: #2E5FA3;
  --navy-300: #7FA0CC;
  --navy-100: #DDE6F2;
  --navy-50:  #EFF4FA;

  /* Gold — the accent, used sparingly */
  --gold-700: #7A6114;
  --gold-600: #9A7B18;
  --gold-500: #BF9B30;
  --gold-400: #D4B454;
  --gold-200: #EBDCA8;
  --gold-50:  #F7F1DE;

  /* Neutrals — warm, so the blue reads as considered rather than corporate */
  --paper:    #FBFAF7;
  --paper-2:  #F4F1EA;
  --paper-3:  #EAE5DA;
  --ink:      #171C23;
  --ink-2:    #414B58;
  --ink-3:    #6B7684;
  --white:    #FFFFFF;

  --line:       rgba(22, 50, 92, 0.13);
  --line-soft:  rgba(22, 50, 92, 0.07);
  --line-dark:  rgba(255, 255, 255, 0.14);

  /* Type */
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing scale */
  --s-1: .25rem;  --s-2: .5rem;   --s-3: .75rem;  --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 3rem;    --s-8: 4rem;
  --s-9: 6rem;    --s-10: 8rem;

  --shell: 1180px;
  --shell-narrow: 780px;

  --radius:    4px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(11, 23, 40, .06), 0 2px 8px rgba(11, 23, 40, .04);
  --shadow-md: 0 2px 4px rgba(11, 23, 40, .05), 0 12px 32px rgba(11, 23, 40, .08);
  --shadow-lg: 0 4px 8px rgba(11, 23, 40, .06), 0 24px 64px rgba(11, 23, 40, .12);

  --ease: cubic-bezier(.4, 0, .2, 1);
  --header-h: 76px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 { margin: 0 0 var(--s-4); line-height: 1.15; font-weight: 600; }
p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }

ul, ol { margin: 0 0 var(--s-4); padding-left: 1.25rem; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }

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

.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;
}

.skip-link {
  position: absolute; top: -60px; left: var(--s-4);
  z-index: 200; padding: var(--s-3) var(--s-5);
  background: var(--navy-800); color: var(--white);
  border-radius: var(--radius); text-decoration: none;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: var(--s-4); color: var(--white); }

/* ==========================================================================
   Typography scale
   ========================================================================== */

.display-1, .display-2, .display-3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.07;
}
.display-1 { font-size: clamp(2.75rem, 6.2vw, 4.75rem); }
.display-2 { font-size: clamp(2.1rem, 4.4vw, 3.35rem); line-height: 1.1; }
.display-3 { font-size: clamp(1.6rem, 2.9vw, 2.25rem); line-height: 1.18; }

/* Small-caps label above a heading — the workhorse of this design */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  margin: 0 0 var(--s-4);
  font-size: .75rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-700);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px;
  background: var(--gold-500); flex: none;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: ""; width: 28px; height: 1px; background: var(--gold-500); flex: none;
}
.on-dark .eyebrow, .section--dark .eyebrow { color: var(--gold-400); }
.on-dark .eyebrow::before, .on-dark .eyebrow::after,
.section--dark .eyebrow::before, .section--dark .eyebrow::after { background: var(--gold-500); }

.lede {
  font-size: clamp(1.125rem, 1.7vw, 1.3125rem);
  line-height: 1.6;
  color: var(--ink-2);
}
.section--dark .lede, .on-dark .lede { color: rgba(255,255,255,.78); }

.prose { max-width: 68ch; }
.prose h2 { font-family: var(--font-display); font-size: 1.9rem; margin-top: var(--s-7); }
.prose h3 { font-size: 1.2rem; margin-top: var(--s-6); letter-spacing: -.005em; }
.prose > :first-child { margin-top: 0; }
.prose ul li, .prose ol li { margin-bottom: var(--s-2); }

.text-center { text-align: center; }
.measure { max-width: 64ch; }
.measure-center { max-width: 64ch; margin-inline: auto; }

/* Pull quote */
.quote {
  margin: var(--s-7) 0;
  padding-left: var(--s-5);
  border-left: 2px solid var(--gold-500);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.35;
  color: var(--navy-800);
}
.quote cite {
  display: block; margin-top: var(--s-3);
  font-family: var(--font-body); font-size: .8125rem; font-style: normal;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.shell {
  width: 100%; max-width: var(--shell);
  margin-inline: auto; padding-inline: var(--s-5);
}
.shell--narrow { max-width: var(--shell-narrow); }

.section { padding-block: clamp(var(--s-7), 8vw, var(--s-9)); }
.section--tight { padding-block: clamp(var(--s-6), 5vw, var(--s-7)); }

.section--paper { background: var(--paper-2); }
.section--dark {
  background: var(--navy-900);
  color: rgba(255,255,255,.82);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark a:not(.btn) { color: var(--gold-400); }
.section--dark a:not(.btn):hover { color: var(--gold-200); }

.section__head { max-width: 60ch; margin-bottom: var(--s-7); }
.section__head--center { margin-inline: auto; text-align: center; }

/* The min() in each minmax() floor is what keeps these from overflowing on a
   320px phone: without it the track refuses to shrink below its stated
   minimum and pushes the page sideways. */
.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }

.split {
  display: grid; gap: clamp(var(--s-6), 5vw, var(--s-8));
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.15fr .85fr; }
  .split--wide-right { grid-template-columns: .85fr 1.15fr; }
}

.stack > * + * { margin-top: var(--s-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  padding: .8125rem 1.5rem;
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: .9375rem; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--navy-700); color: var(--white); }
.btn--primary:hover { background: var(--navy-600); color: var(--white); box-shadow: var(--shadow-md); }

.btn--gold {
  background: var(--gold-500); color: var(--navy-950);
  border-color: var(--gold-500);
}
.btn--gold:hover { background: var(--gold-400); border-color: var(--gold-400); color: var(--navy-950); box-shadow: 0 8px 24px rgba(191,155,48,.28); }

.btn--outline {
  background: transparent; color: var(--navy-700);
  border-color: var(--line);
}
.btn--outline:hover { border-color: var(--navy-600); background: var(--navy-50); color: var(--navy-700); }

.btn--ghost-light {
  background: rgba(255,255,255,.06); color: var(--white);
  border-color: rgba(255,255,255,.28);
  backdrop-filter: blur(8px);
}
.btn--ghost-light:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); color: var(--white); }

.btn--sm { padding: .5rem 1rem; font-size: .8125rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn[aria-disabled="true"], .btn:disabled {
  opacity: .5; pointer-events: none;
}

/* On narrow phones a long label (e.g. "Petition Online at BeAFreemason.org")
   would otherwise push the page sideways. Let it wrap instead. */
@media (max-width: 479px) {
  .btn { white-space: normal; text-align: center; }
}

/* Text link with a moving arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .9375rem; text-decoration: none;
  color: var(--navy-600);
}
.link-arrow::after {
  content: "→"; transition: transform .2s var(--ease);
}
.link-arrow:hover::after { transform: translateX(4px); }

/* ==========================================================================
   Masthead
   ========================================================================== */

.masthead {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,250,247,.92);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color .25s var(--ease), border-color .25s var(--ease),
              box-shadow .25s var(--ease);
}
.masthead__inner {
  display: flex; align-items: center; gap: var(--s-5);
  min-height: var(--header-h);
}

/* Transparent while sitting over a dark hero */
@media (min-width: 1180px) {
  .masthead--over-hero {
    background: transparent; border-bottom-color: transparent;
    backdrop-filter: none;
  }
  .masthead--over-hero .brand,
  .masthead--over-hero .nav__link,
  .masthead--over-hero .nav__expand { color: var(--white); }
  .masthead--over-hero .brand__meta { color: rgba(255,255,255,.62); }
  .masthead--over-hero .nav__link::after { background: var(--gold-400); }
  .masthead--over-hero .btn--outline { color: var(--white); border-color: rgba(255,255,255,.35); }
  .masthead--over-hero .btn--outline:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); color: var(--white); }
  .masthead.is-stuck {
    background: rgba(251,250,247,.94);
    backdrop-filter: saturate(150%) blur(12px);
    border-bottom-color: var(--line-soft);
    box-shadow: 0 1px 24px rgba(11,23,40,.07);
  }
  .masthead.is-stuck .brand,
  .masthead.is-stuck .nav__link,
  .masthead.is-stuck .nav__expand { color: var(--ink); }
  .masthead.is-stuck .brand__meta { color: var(--ink-3); }
  .masthead.is-stuck .btn--outline { color: var(--navy-700); border-color: var(--line); }
}

.brand {
  display: flex; align-items: center; gap: var(--s-3);
  text-decoration: none; color: var(--ink);
  margin-right: auto; flex: none;
  transition: color .25s var(--ease);
}
.emblem { width: 38px; height: 38px; color: var(--gold-600); flex: none; }
.masthead--over-hero .emblem { color: var(--gold-400); }
.masthead.is-stuck .emblem { color: var(--gold-600); }
.emblem--lg { width: 56px; height: 56px; }

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display); font-size: 1.375rem;
  font-weight: 600; letter-spacing: -.01em;
}
.brand__meta {
  font-size: .6875rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3);
  transition: color .25s var(--ease);
}

/* -- Navigation -- */

.nav { display: flex; align-items: center; gap: var(--s-5); }
.nav__list {
  display: flex; align-items: center; gap: var(--s-1);
  list-style: none; margin: 0; padding: 0;
}
.nav__item { position: relative; }

.nav__link {
  display: inline-block; position: relative;
  padding: .5rem .7rem;
  font-size: .875rem; font-weight: 500;
  color: var(--ink-2); text-decoration: none;
  border-radius: var(--radius);
  transition: color .18s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute;
  left: .7rem; right: .7rem; bottom: .15rem; height: 1.5px;
  background: var(--gold-600);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav__link:hover { color: var(--navy-700); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.masthead--over-hero .nav__link:hover { color: var(--white); }

.nav__expand { display: none; }

.nav__menu {
  position: absolute; top: calc(100% + .5rem); left: 0;
  min-width: 200px; margin: 0; padding: var(--s-2);
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav__item--has-menu:hover .nav__menu,
.nav__item--has-menu:focus-within .nav__menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__menu a {
  display: block; padding: .5rem .75rem;
  font-size: .875rem; color: var(--ink-2); text-decoration: none;
  border-radius: var(--radius);
}
.nav__menu a:hover, .nav__menu a.is-active {
  background: var(--navy-50); color: var(--navy-700);
}

.nav__actions { display: flex; gap: var(--s-2); flex: none; }

/* -- Mobile menu -- */

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--radius); color: inherit;
}
.nav-toggle__bars { display: block; width: 18px; }
.nav-toggle__bars i {
  display: block; height: 1.5px; background: currentColor;
  border-radius: 2px; transition: transform .22s var(--ease), opacity .18s var(--ease);
}
.nav-toggle__bars i + i { margin-top: 4px; }
.nav-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 1179px) {
  .nav-toggle { display: inline-flex; }
  .masthead { background: rgba(251,250,247,.96); }

  /* The closed panel stays inside the viewport and hides with opacity.
     Parking it off-screen with translateX(100%) would add 100vw of
     horizontal scroll on every page: a position:fixed element is laid out
     against the viewport, so `overflow-x: hidden` on body does not clip it. */
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    display: block;
    padding: var(--s-5);
    background: var(--paper);
    border-top: 1px solid var(--line-soft);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav__list { display: block; }
  .nav__item {
    border-bottom: 1px solid var(--line-soft);
    display: flex; flex-wrap: wrap; align-items: center;
  }
  .nav__link {
    flex: 1; padding: var(--s-4) 0;
    font-family: var(--font-display); font-size: 1.375rem; font-weight: 600;
    color: var(--ink);
  }
  .nav__link::after { display: none; }

  .nav__expand {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: transparent; border: 0; color: var(--ink-3);
  }
  .nav__expand svg { width: 12px; transition: transform .22s var(--ease); }
  .nav__expand[aria-expanded="true"] svg { transform: rotate(180deg); }

  .nav__menu {
    position: static; flex-basis: 100%;
    opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; background: transparent;
    padding: 0 0 var(--s-4) var(--s-4);
    display: none;
  }
  .nav__expand[aria-expanded="true"] + .nav__menu { display: block; }
  .nav__menu a { font-size: 1rem; padding: .5rem 0; }

  .nav__actions {
    margin-top: var(--s-6);
    flex-direction: column; align-items: stretch;
  }
  .nav__actions .btn { padding: .875rem 1.25rem; font-size: .9375rem; }

  body.nav-open { overflow: hidden; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(var(--s-8), 11vw, 9rem));
  padding-bottom: clamp(var(--s-9), 12vw, 10rem);
  background: var(--navy-950);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

/* Layered background: photo (optional) → gradient → line pattern */
.hero__media {
  position: absolute; inset: 0; z-index: -3;
  background-size: cover; background-position: center;
  opacity: .32;
  filter: grayscale(.35) contrast(1.05);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(46,95,163,.42) 0%, transparent 58%),
    radial-gradient(90% 80% at 95% 100%, rgba(191,155,48,.14) 0%, transparent 55%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
}
/* Faint architectural grid — reads as drafting paper, not as decoration */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 78%);
}

.hero__inner { max-width: 720px; }
.hero h1 { color: var(--white); margin-bottom: var(--s-5); }
.hero__sub {
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
  line-height: 1.62; color: rgba(255,255,255,.76);
  max-width: 56ch; margin-bottom: var(--s-6);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Big watermark emblem, low contrast */
.hero__mark {
  position: absolute; right: -4%; top: 50%;
  transform: translateY(-50%);
  width: min(46vw, 560px); height: auto;
  color: rgba(255,255,255,.045);
  z-index: -1; pointer-events: none;
}
@media (max-width: 899px) { .hero__mark { display: none; } }

/* -- Facts bar overlapping the hero -- */

.factbar {
  position: relative; z-index: 5;
  margin-top: -3.5rem; margin-bottom: var(--s-7);
}
.factbar__inner {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.fact {
  background: var(--white);
  padding: var(--s-5) var(--s-5);
  display: flex; flex-direction: column; gap: .35rem;
}
.fact__label {
  font-size: .6875rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-700);
}
.fact__value {
  font-family: var(--font-display);
  font-size: 1.3125rem; font-weight: 600; line-height: 1.25;
  color: var(--navy-800);
}
.fact__note { font-size: .875rem; color: var(--ink-3); }
.fact a { color: inherit; }

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  transition: border-color .2s var(--ease), box-shadow .25s var(--ease),
              transform .25s var(--ease);
}
.card--link:hover {
  border-color: var(--navy-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card__title {
  font-family: var(--font-display);
  font-size: 1.4375rem; font-weight: 600; margin-bottom: var(--s-3);
  color: var(--navy-800);
}
.card__body { color: var(--ink-2); font-size: .9688rem; }
.card__foot { margin-top: var(--s-5); }

/* Numbered value card — Brotherly Love / Relief / Truth */
.value-card { position: relative; padding-top: var(--s-7); }
.value-card::before {
  content: ""; position: absolute; top: 0; left: var(--s-6); right: var(--s-6);
  height: 2px; background: var(--gold-500);
}
.value-card__num {
  font-family: var(--font-display); font-size: .9375rem; font-weight: 600;
  letter-spacing: .1em; color: var(--gold-700); margin-bottom: var(--s-3);
}

/* Step card — the path to membership */
.steps { counter-reset: step; }
.step {
  position: relative;
  padding-left: 4.25rem;
  padding-bottom: var(--s-7);
}
.step:last-child { padding-bottom: 0; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.75rem; height: 2.75rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold-500); border-radius: 50%;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  color: var(--gold-400);
}
/* Connector line between steps */
.step:not(:last-child)::after {
  content: ""; position: absolute;
  left: 1.375rem; top: 3.25rem; bottom: .75rem;
  width: 1px; background: rgba(191,155,48,.28);
}
.step h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: var(--s-2); }
.step p { color: rgba(255,255,255,.72); margin-bottom: 0; }
.section:not(.section--dark) .step p { color: var(--ink-2); }
.section:not(.section--dark) .step::before { color: var(--gold-700); }

/* ==========================================================================
   Events
   ========================================================================== */

.event-list { list-style: none; margin: 0; padding: 0; }
.event {
  display: grid;
  grid-template-columns: 4.75rem 1fr;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.event:first-child { padding-top: 0; }
.event:last-child { border-bottom: 0; padding-bottom: 0; }

.event__date {
  display: flex; flex-direction: column; align-items: center;
  padding: var(--s-3) var(--s-2);
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  line-height: 1;
}
.event__month {
  font-size: .6875rem; font-weight: 700; letter-spacing: .1em;
  color: var(--gold-700); margin-bottom: .3rem;
}
.event__day {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 600;
  color: var(--navy-800);
}
.section--dark .event__date { background: rgba(255,255,255,.05); border-color: var(--line-dark); }
.section--dark .event__day { color: var(--white); }
.section--dark .event__month { color: var(--gold-400); }
.section--dark .event { border-bottom-color: var(--line-dark); }

.event__title {
  font-family: var(--font-display); font-size: 1.3125rem; font-weight: 600;
  margin-bottom: .25rem; color: var(--navy-800);
}
.section--dark .event__title { color: var(--white); }
.event__meta {
  display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4);
  font-size: .875rem; color: var(--ink-3);
}
.section--dark .event__meta { color: rgba(255,255,255,.55); }
.event__desc { margin-top: var(--s-2); font-size: .9375rem; color: var(--ink-2); }
.section--dark .event__desc { color: rgba(255,255,255,.7); }

.tag {
  display: inline-block;
  padding: .15rem .55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .6875rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-3);
}
.tag--stated { border-color: var(--gold-500); color: var(--gold-700); }
.tag--degree { border-color: var(--navy-500); color: var(--navy-600); }
.tag--social { border-color: #6E8A5E; color: #4F6743; }

/* ==========================================================================
   Roster (past masters, officers, memoriam)
   ========================================================================== */

.roster { list-style: none; margin: 0; padding: 0; }
.roster__row {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: var(--s-4);
  align-items: baseline;
  padding: .875rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.roster__row:hover { background: var(--navy-50); }
.roster__year {
  font-family: var(--font-display); font-size: 1.125rem; font-weight: 600;
  color: var(--gold-700); font-variant-numeric: tabular-nums;
}
.roster__name { font-weight: 500; }
.roster__note { font-size: .8125rem; color: var(--ink-3); text-align: right; }

@media (max-width: 599px) {
  .roster__row { grid-template-columns: 4.5rem 1fr; }
  .roster__note { grid-column: 2; text-align: left; }
}

/* Officer cards */
.officer {
  display: flex; gap: var(--s-4); align-items: center;
  padding: var(--s-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.officer__photo {
  width: 68px; height: 68px; flex: none;
  border-radius: 50%; object-fit: cover;
  background: var(--paper-3);
}
.officer__initials {
  width: 68px; height: 68px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--navy-50); color: var(--navy-600);
  font-family: var(--font-display); font-size: 1.375rem; font-weight: 600;
}
.officer__title {
  font-size: .6875rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-700); margin-bottom: .15rem;
}
.officer__name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }

/* In Memoriam */
.memoriam {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  list-style: none; margin: 0; padding: 0;
}
.memoriam li {
  padding: var(--s-4) var(--s-5);
  border-left: 2px solid var(--gold-500);
  background: var(--white);
}
.memoriam__name { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 600; color: var(--navy-800); }
.memoriam__dates { font-size: .8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.memoriam__note { font-size: .875rem; color: var(--ink-2); margin-top: .35rem; }

/* ==========================================================================
   Documents (trestleboard)
   ========================================================================== */

.doc {
  display: flex; gap: var(--s-5); align-items: center;
  padding: var(--s-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .2s var(--ease), box-shadow .25s var(--ease);
}
.doc:hover { border-color: var(--navy-300); box-shadow: var(--shadow-sm); }
.doc--feature {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px var(--gold-50);
}
.doc__icon {
  width: 52px; height: 64px; flex: none;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: .55rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: linear-gradient(160deg, var(--white) 0%, var(--paper-2) 100%);
  font-size: .625rem; font-weight: 700; letter-spacing: .06em;
  color: #B3372E;
  position: relative;
}
/* Folded corner */
.doc__icon::after {
  content: ""; position: absolute; top: -1px; right: -1px;
  border-width: 0 13px 13px 0; border-style: solid;
  border-color: var(--paper-3) var(--paper) var(--paper) var(--paper-3);
}
.doc__title { font-family: var(--font-display); font-size: 1.3125rem; font-weight: 600; color: var(--navy-800); }
.doc__meta { font-size: .8125rem; color: var(--ink-3); margin-top: .15rem; }
.doc__actions { margin-left: auto; display: flex; gap: var(--s-2); flex: none; }

@media (max-width: 639px) {
  .doc { flex-wrap: wrap; }
  .doc__actions { margin-left: 0; width: 100%; }
  .doc__actions .btn { flex: 1; }
}

.pdf-frame {
  width: 100%; height: min(78vh, 900px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.field { margin-bottom: var(--s-5); }
.field__label {
  display: block; margin-bottom: .4rem;
  font-size: .8125rem; font-weight: 600;
  letter-spacing: .04em; color: var(--ink);
}
.field__hint { font-size: .8125rem; color: var(--ink-3); margin-top: .35rem; }
.field__req { color: #B3372E; }

.input, .textarea, .select {
  width: 100%;
  padding: .75rem .875rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .9375rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(46,95,163,.13);
}
.textarea { min-height: 150px; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236B7684' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .875rem center;
  background-size: 12px;
  padding-right: 2.25rem;
}
.field--error .input, .field--error .textarea, .field--error .select { border-color: #B3372E; }
.field__error { font-size: .8125rem; color: #B3372E; margin-top: .35rem; }

.checkbox { display: flex; gap: .625rem; align-items: flex-start; font-size: .9375rem; }
.checkbox input { margin-top: .3rem; accent-color: var(--navy-600); }

/* Honeypot — hidden from people, visible to bots */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(var(--s-5), 4vw, var(--s-7));
}

/* ==========================================================================
   Notices
   ========================================================================== */

.flash, .notice {
  padding: var(--s-4) var(--s-5);
  border-radius: var(--radius);
  border-left: 3px solid var(--navy-500);
  background: var(--navy-50);
  font-size: .9375rem;
  margin-block: var(--s-5);
}
.flash--success, .notice--success { border-left-color: #3F7D4F; background: #EFF6F0; }
.flash--error, .notice--error { border-left-color: #B3372E; background: #FBEFEE; }
.flash--warning, .notice--warning { border-left-color: var(--gold-600); background: var(--gold-50); }

.empty {
  padding: var(--s-7) var(--s-5);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink-3);
  background: var(--paper-2);
}
.empty__title {
  font-family: var(--font-display); font-size: 1.25rem;
  color: var(--ink-2); margin-bottom: var(--s-2);
}

/* ==========================================================================
   Page banner (interior pages)
   ========================================================================== */

.banner {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + var(--s-8));
  padding-bottom: var(--s-8);
  background: var(--navy-900);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(100% 120% at 12% 0%, rgba(46,95,163,.34) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-800) 100%);
}
.banner h1 { color: var(--white); margin-bottom: var(--s-3); }
.banner__sub { color: rgba(255,255,255,.72); max-width: 58ch; font-size: 1.0625rem; margin: 0; }

.crumbs {
  display: flex; flex-wrap: wrap; gap: .5rem;
  list-style: none; margin: 0 0 var(--s-4); padding: 0;
  font-size: .8125rem; color: rgba(255,255,255,.5);
}
.crumbs a { color: rgba(255,255,255,.7); text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }

/* ==========================================================================
   Payments
   ========================================================================== */

.pay-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.pay {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
}
.pay--recommended { border-color: var(--gold-500); box-shadow: 0 0 0 3px var(--gold-50); }
.pay__badge {
  align-self: flex-start; margin-bottom: var(--s-3);
  padding: .2rem .6rem;
  background: var(--gold-50); border: 1px solid var(--gold-200);
  border-radius: 999px;
  font-size: .6875rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold-700);
}
.pay__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--navy-800); margin-bottom: var(--s-2); }
.pay__desc { font-size: .9375rem; color: var(--ink-2); flex: 1; margin-bottom: var(--s-5); }
.pay__detail {
  margin: var(--s-3) 0;
  padding: var(--s-3) var(--s-4);
  background: var(--paper-2);
  border-radius: var(--radius);
  font-size: .9375rem;
}
.pay__detail dt { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pay__detail dd { margin: 0 0 var(--s-3); font-weight: 600; word-break: break-word; }
.pay__detail dd:last-child { margin-bottom: 0; }

.copy-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .5rem; margin-left: .4rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 3px; font-size: .6875rem; font-weight: 600;
  color: var(--ink-3);
}
.copy-btn:hover { border-color: var(--navy-500); color: var(--navy-600); }

/* ==========================================================================
   Social / connect
   ========================================================================== */

.social { display: flex; gap: var(--s-3); list-style: none; margin: 0; padding: 0; }
.social a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: rgba(255,255,255,.66);
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}
.social a:hover { color: var(--navy-950); background: var(--gold-500); border-color: var(--gold-500); }
.social svg { width: 17px; height: 17px; }

.embed-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
.embed-frame iframe { display: block; width: 100%; border: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--navy-950);
  color: rgba(255,255,255,.62);
  padding-top: clamp(var(--s-7), 7vw, var(--s-9));
  font-size: .9375rem;
}
.footer__grid {
  display: grid; gap: var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  padding-bottom: var(--s-7);
}
.footer__col--brand { grid-column: span 1; }
@media (min-width: 900px) { .footer__col--brand { grid-column: span 1; max-width: 280px; } }

.footer .emblem { color: var(--gold-500); margin-bottom: var(--s-4); }
.footer__lodge {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  color: var(--white); margin-bottom: var(--s-2);
}
.footer__gl, .footer__charter { font-size: .8125rem; color: rgba(255,255,255,.45); margin-bottom: var(--s-2); }

.footer__heading {
  font-size: .6875rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-400); margin-bottom: var(--s-4);
}
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: .5rem; }
.footer a, .footer__link { color: rgba(255,255,255,.68); text-decoration: none; }
.footer a:hover, .footer__link:hover { color: var(--gold-400); }
.footer__address { font-style: normal; margin-bottom: var(--s-3); line-height: 1.6; }
.footer__meetings { margin-top: var(--s-4); font-size: .875rem; color: rgba(255,255,255,.5); }

.footer__bar {
  display: flex; flex-wrap: wrap; gap: var(--s-4);
  align-items: center; justify-content: space-between;
  padding-block: var(--s-5);
  border-top: 1px solid var(--line-dark);
}
.footer__copy { margin: 0; font-size: .8125rem; color: rgba(255,255,255,.5); }
.footer__legal {
  flex-basis: 100%; margin: 0;
  font-size: .75rem; line-height: 1.5; color: rgba(255,255,255,.32);
}

/* ==========================================================================
   Reveal on scroll — subtle, and fully skippable

   The hidden starting state is scoped to .js-reveal, a class added by a tiny
   inline script in <head>. If scripting is off, blocked, or fails for any
   reason, that class never appears and every .reveal simply renders normally.
   Content failing *visible* is non-negotiable on a public site — an animation
   that doesn't run is a non-event; a page that stays blank is a disaster.
   ========================================================================== */

.js-reveal .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

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

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .masthead, .footer, .nav, .hero__mark, .btn, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero, .banner { background: #fff !important; color: #000 !important; padding: 1rem 0 !important; margin: 0 !important; }
  .hero h1, .banner h1 { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .section { padding-block: 1rem; }
}
