/* =========================================================
   Loge Nova Lux — Design System
   Palette: deep navy + antique gold, warm ivory text
   Type: Cormorant Garamond (display) + Inter (body)
   ========================================================= */

:root {
  --navy-900: #0a1120;
  --navy-800: #0e1729;
  --navy-700: #142136;
  --navy-600: #1c2c46;
  --gold-500: #c9a24b;
  --gold-400: #d8b869;
  --gold-300: #e6d0a0;
  --ivory:    #f4efe4;
  --muted:    #a9b2c3;
  --line:     rgba(201, 162, 75, 0.22);
  --shadow:   0 18px 50px rgba(0, 0, 0, 0.45);
  --radius:   14px;
  --maxw:     1180px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy-900);
  color: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle starry / masonic texture backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(230,208,160,.5), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(230,208,160,.35), transparent),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(230,208,160,.3), transparent),
    radial-gradient(1px 1px at 85% 20%, rgba(230,208,160,.4), transparent);
  background-repeat: no-repeat;
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}

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

/* The hidden attribute must win over component display rules (e.g. .btn) */
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: .72rem;
  color: var(--gold-400);
  font-weight: 600;
}

.section { padding: 96px 0; position: relative; z-index: 1; }
.section-sm { padding: 64px 0; }
.text-center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.gold { color: var(--gold-400); }

/* Divider ornament */
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 22px 0; color: var(--gold-500); }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 60px; background: linear-gradient(90deg, transparent, var(--gold-500)); }
.ornament::after { background: linear-gradient(90deg, var(--gold-500), transparent); }

/* ===================== HEADER / NAV ===================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(10, 17, 32, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text .name { font-family: var(--font-display); font-size: 1.4rem; color: var(--ivory); letter-spacing: .04em; }
.brand-text .sub { font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-400); }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding: 6px 0; position: relative; transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--gold-500); transition: width .3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ivory); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.brand { min-width: 0; }
.lang-in-menu { display: flex; justify-content: center; padding: 16px 24px 4px; }

/* Language switcher */
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  background: transparent; border: none; color: var(--muted); cursor: pointer;
  font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: .1em;
  padding: 6px 12px; transition: all .2s;
}
.lang-switch button.active { background: var(--gold-500); color: var(--navy-900); }
.lang-switch button:not(.active):hover { color: var(--ivory); }

.nav-toggle {
  display: none; position: relative; width: 30px; height: 22px;
  background: none; border: none; cursor: pointer; padding: 0; flex-shrink: 0;
}
.nav-toggle span {
  position: absolute; left: 0; height: 2px; width: 100%;
  background: var(--ivory); border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 18px; }
.site-header.nav-open .nav-toggle span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 14px 30px; border-radius: 999px; cursor: pointer; transition: all .25s;
  border: 1px solid var(--gold-500);
}
.btn-primary { background: var(--gold-500); color: var(--navy-900); }
.btn-primary:hover { background: var(--gold-400); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(201,162,75,.25); }
.btn-ghost { background: transparent; color: var(--gold-300); }
.btn-ghost:hover { background: rgba(201,162,75,.1); transform: translateY(-2px); }

/* ===================== HERO ===================== */
.hero {
  position: relative; min-height: calc(100vh - 76px); min-height: calc(100dvh - 76px);
  display: flex; align-items: center; padding: 28px 0 46px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(28,44,70,.9), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  overflow: hidden;
}
.hero-emblem {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(640px, 85vw); opacity: .07; z-index: 0; color: var(--gold-500);
}
.hero-inner { position: relative; z-index: 2; text-align: center; margin: 0 auto; max-width: 820px; }
.hero-motto { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 18px; }
.hero-motto .motto-latin {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .4em;
  font-size: .7rem;
  color: var(--gold-500);
  padding-left: .4em;
}
.hero-motto .motto-line {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  color: var(--gold-400);
  letter-spacing: .02em;
  position: relative;
  padding-bottom: 16px;
}
.hero-motto .motto-line::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0; transform: translateX(-50%);
  width: 64px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}
.hero-lodgename { font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.6rem); color: var(--gold-300); letter-spacing: .05em; margin: 2px 0 14px; }
.hero-jurisdiction { font-size: .7rem; color: var(--muted); font-style: italic; letter-spacing: .02em; margin-bottom: 4px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: .02em; margin: 12px 0 8px; }
.hero h1 .accent { color: var(--gold-400); font-style: italic; }
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 56ch; margin: 0 auto 26px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Shorter screens (e.g. 1366×768 laptops): shrink hero so the buttons stay in view */
@media (min-width: 721px) and (max-height: 860px) {
  .hero { padding: 10px 0 26px; }
  .hero-crest { width: min(104px, 30vw); margin-bottom: 8px; }
  .hero-motto { margin-bottom: 8px; gap: 5px; }
  .hero-motto .motto-line { font-size: 1.4rem; padding-bottom: 10px; }
  .hero-lodgename { font-size: 1.15rem; margin: 0 0 6px; }
  .hero-jurisdiction { margin-bottom: 2px; }
  .hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); margin: 6px 0 6px; }
  .hero p { font-size: 1.02rem; margin-bottom: 14px; }
}

/* ===================== VALUES / CARDS ===================== */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(201,162,75,.5); }
.card .icon { width: 46px; height: 46px; color: var(--gold-500); margin-bottom: 18px; }
.card h3 { font-size: 1.55rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-top: 12px; }
.section-head p { color: var(--muted); margin-top: 14px; }

/* ===================== MEMBERS ===================== */
.members-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; transition: transform .3s, border-color .3s;
}
.member:hover { transform: translateY(-6px); border-color: rgba(201,162,75,.5); }
.member .avatar {
  width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 30% 25%, var(--navy-600), var(--navy-800));
  border: 2px solid var(--gold-500);
  font-family: var(--font-display); font-size: 2rem; color: var(--gold-300);
  overflow: hidden;
}
.member .avatar img { width: 100%; height: 100%; object-fit: cover; }
.member .name { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 4px; }
.member .office { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-400); }
.member.officer { border-color: rgba(201,162,75,.55); box-shadow: 0 0 0 1px rgba(201,162,75,.15) inset; }
.member.officer .avatar { border-width: 3px; }
.member .badge {
  display: inline-block; margin-top: 10px; font-size: .62rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--navy-900); background: var(--gold-500);
  padding: 3px 10px; border-radius: 999px; font-weight: 700;
}

/* ===================== ABOUT / SPLIT ===================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 12px 0 18px; }
.split p { color: var(--muted); margin-bottom: 16px; }
.stat-row { display: flex; gap: 40px; margin-top: 28px; }
.stat .num { font-family: var(--font-display); font-size: 2.6rem; color: var(--gold-400); line-height: 1; }
.stat .label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.frame {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 40px;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  position: relative;
}
.frame .emblem { width: 100%; color: var(--gold-500); opacity: .9; }

/* Timeline */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 34px 30px; }
.tl-item::before {
  content: ""; position: absolute; left: -4px; top: 6px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--navy-900); border: 2px solid var(--gold-500);
}
.tl-item .year { color: var(--gold-400); font-family: var(--font-display); font-size: 1.5rem; }
.tl-item p { color: var(--muted); }

/* ===================== EVENTS ===================== */
.event {
  display: grid; grid-template-columns: 110px 1fr; gap: 24px; align-items: center;
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 18px;
  transition: border-color .3s, transform .3s;
}
.event:hover { border-color: rgba(201,162,75,.5); transform: translateX(4px); }
.event .date { text-align: center; border-right: 1px solid var(--line); padding-right: 20px; }
.event .date .d { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold-400); line-height: 1; }
.event .date .m { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.event h3 { font-size: 1.5rem; }
.event p { color: var(--muted); font-size: .95rem; }

/* ===================== CONTACT ===================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: var(--navy-900); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ivory); font-family: var(--font-body); font-size: .95rem; padding: 13px 15px; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); }
.field textarea { min-height: 140px; resize: vertical; }
.contact-info li { list-style: none; display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-info .ci-icon { width: 22px; height: 22px; color: var(--gold-500); flex-shrink: 0; margin-top: 3px; }
.contact-info .ci-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-info .ci-value { color: var(--ivory); }
.note { font-size: .82rem; color: var(--muted); border-left: 2px solid var(--gold-500); padding-left: 14px; }

/* Contact — single centered column */
.contact-single { max-width: 620px; margin-inline: auto; text-align: center; }
.contact-single .ornament { margin: 14px auto 26px; }
.contact-single .contact-info { display: inline-block; text-align: left; margin: 0 auto; }
.contact-single .contact-info li { margin-bottom: 0; }
.contact-single .note { display: inline-block; text-align: left; margin-top: 22px; }

/* ===================== FOOTER ===================== */
.site-footer { border-top: 1px solid var(--line); background: var(--navy-800); padding: 56px 0 30px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: var(--gold-400); font-size: 1rem; letter-spacing: .08em; margin-bottom: 16px; text-transform: uppercase; font-family: var(--font-body); font-weight: 600; }
.footer-grid a { color: var(--muted); display: block; margin-bottom: 10px; font-size: .92rem; transition: color .2s; }
.footer-grid a:hover { color: var(--gold-300); }
.footer-grid p { color: var(--muted); font-size: .92rem; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .82rem; }

/* ===================== PAGE HEADER (inner pages) ===================== */
.page-hero {
  padding: 90px 0 70px; text-align: center;
  background: radial-gradient(ellipse at 50% -20%, rgba(28,44,70,.9), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin: 14px 0 0; }
.page-hero p { color: var(--muted); margin-top: 14px; max-width: 60ch; margin-inline: auto; }

/* ===================== i18n visibility ===================== */
[data-lang-block] { display: none; }
[data-lang-block].lang-active { display: block; }

/* ===================== REVEAL ANIMATION ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===================== BRAND MARK & ASSET SECTIONS ===================== */
.brand-mark { width: 46px; height: 46px; object-fit: contain; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); }
.site-footer .brand-mark { width: 40px; height: 40px; }

.hero-crest { width: min(158px, 40vw); height: auto; margin: 0 auto 16px; filter: drop-shadow(0 12px 28px rgba(0,0,0,.55)); }

.pillars-figure { margin: 0 auto 46px; max-width: 760px; }
.pillars-figure img {
  width: 100%; border-radius: var(--radius);
  background: var(--ivory); padding: 24px 28px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}

.frame-crest { display: flex; flex-direction: column; align-items: center; justify-content: center; background: none; border: none; box-shadow: none; padding: 0; }
.frame-crest img { width: min(300px, 72%); height: auto; filter: drop-shadow(0 14px 32px rgba(0,0,0,.55)); }

.temple-band { position: relative; height: clamp(240px, 44vw, 560px); overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.temple-band img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.temple-band::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,17,32,.34), rgba(10,17,32,0) 28%, rgba(10,17,32,0) 72%, rgba(10,17,32,.4)); }

.regalia-band { position: relative; height: clamp(180px, 26vw, 300px); overflow: hidden; }
.regalia-band img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.regalia-band::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,17,32,.6), rgba(10,17,32,.12) 42%, rgba(10,17,32,.72)); }

.attire-figure { margin: 0 auto 30px; max-width: 940px; }
.attire-figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.attire-figure figcaption { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 14px; font-style: italic; }

.wm-feature { display: grid; grid-template-columns: 220px 1fr; gap: 34px; align-items: center; max-width: 820px; margin: 0 auto 42px; }
.wm-photo { margin: 0; }
.wm-photo img { width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: 50% 12%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.wm-name { font-size: 1.9rem; margin: 6px 0 12px; }
.wm-body p:last-child { color: var(--muted); }
.offices-lead { text-align: center; color: var(--muted); margin-bottom: 18px; }
.office-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 820px; margin: 0 auto; }
.office-list span { border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: .9rem; color: var(--ivory); background: rgba(201,162,75,.06); }

/* Office "forms" — one card per office (function-focused) */
.repr-note { max-width: 760px; margin: 0 auto 32px; text-align: left; }
.offices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 6px; }
.office-card { background: linear-gradient(180deg, var(--navy-700), var(--navy-800)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 24px; text-align: center; transition: transform .3s, border-color .3s; }
.office-card:hover { transform: translateY(-5px); border-color: rgba(201,162,75,.5); }
.oc-avatar { width: 70px; height: 86px; margin: 0 auto 12px; }
.oc-avatar img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.oc-office { font-family: var(--font-display); font-size: 1.3rem; color: var(--ivory); line-height: 1.2; }
.oc-holder { font-size: .63rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-400); margin: 7px 0 12px; }
.oc-desc { color: var(--muted); font-size: .9rem; }

.date-mark { color: var(--gold-400); font-size: 1.5rem; line-height: 1; }

.footer-constitution { color: var(--gold-400); font-size: .78rem; margin-top: 10px; opacity: .9; max-width: 34ch; line-height: 1.5; }
.crest-caption { text-align: center; color: var(--gold-400); font-size: .72rem; letter-spacing: .03em; margin: 14px auto 0; max-width: 30ch; line-height: 1.5; }
.trad-more { display: inline-block; margin-top: 12px; color: var(--gold-400); font-size: .92rem; font-weight: 600; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.trad-more:hover { color: var(--gold-300); border-color: var(--gold-500); }

/* Tartan & Crest (heritage) */
.tartan-strip { position:absolute; top:0; left:0; right:0; height:12px; z-index:2;
  background:url(../img/tartan.jpg) repeat-x; background-size:230px auto; opacity:.95; }
.heritage-split { align-items:center; }
.tartan-frame { margin:0; }
.tartan-frame img { width:100%; border-radius:var(--radius); border:1px solid var(--line); box-shadow:var(--shadow); }
.crest-symbols { list-style:none; margin:16px 0 18px; display:flex; flex-direction:column; gap:12px; }
.crest-symbols li { color:var(--muted); font-size:.95rem; padding-left:22px; position:relative; line-height:1.6; }
.crest-symbols li::before { content:"◆"; position:absolute; left:0; top:2px; color:var(--gold-500); font-size:.7rem; }
.crest-symbols b { color:var(--ivory); font-weight:600; }

/* Full-width image band (VSL / decorative) */
.image-band { position:relative; height:clamp(200px,30vw,360px); overflow:hidden; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.image-band img { width:100%; height:100%; object-fit:cover; }
.image-band::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(10,17,32,.5),rgba(10,17,32,.15) 45%,rgba(10,17,32,.55)); }

/* Invite (2B1) split on homepage */
.invite-figure { margin:0; }
.invite-figure img { width:100%; max-width:360px; border-radius:var(--radius); border:1px solid var(--line); box-shadow:var(--shadow); display:block; margin:0 auto; }

/* Traditions / Freemasonry page */
.trad-block { max-width: 820px; margin: 0 auto; }
.trad-block + .trad-block { margin-top: 56px; }
.trad-block h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 8px; }
.trad-block h3 { font-size: 1.3rem; margin: 28px 0 8px; color: var(--ivory); }
.attribution { color: var(--gold-400); font-style: italic; font-size: .86rem; margin: 22px 0 12px; }
.heritage-inline-link { color: var(--gold-300); border-bottom: 1px solid var(--line); }
.trad-block .gl-tag { color: var(--gold-400); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.trad-block p { color: var(--muted); margin: 14px 0; }
.ext-link { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-300); font-weight: 600; border: 1px solid var(--gold-500); border-radius: 999px; padding: 10px 22px; font-size: .85rem; transition: all .25s; }
.ext-link:hover { background: rgba(201,162,75,.1); transform: translateY(-2px); }
.faq-item { border-top: 1px solid var(--line); padding: 20px 0; }
.faq-item h3 { font-size: 1.25rem; margin-bottom: 8px; color: var(--ivory); }
.faq-item p { color: var(--muted); }
.placeholder-note { border-left: 2px solid var(--gold-500); padding: 10px 16px; color: var(--muted); font-size: .9rem; background: rgba(201,162,75,.05); border-radius: 0 8px 8px 0; }

/* How to find us */
.find-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.find-card { background: linear-gradient(180deg, var(--navy-700), var(--navy-800)); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.find-card .icon { width: 40px; height: 40px; color: var(--gold-500); margin-bottom: 14px; }
.find-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.find-card p { color: var(--muted); font-size: .93rem; margin-bottom: 14px; }
@media (max-width: 820px) { .find-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 1.5rem; margin: 34px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--muted); font-size: .95rem; margin-bottom: 12px; line-height: 1.75; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--gold-300); border-bottom: 1px solid var(--line); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-legal a { color: var(--muted); font-size: .82rem; }
.footer-legal a:hover { color: var(--gold-300); }

/* Events — image + list layout */
.events-layout { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 48px; align-items: start; max-width: 1000px; margin-inline: auto; }
.events-figure { position: sticky; top: 100px; margin: 0; }
.events-figure img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.events-figure figcaption { text-align: center; color: var(--muted); font-size: .84rem; font-style: italic; margin-top: 14px; }

/* Per-meeting event cards */
.event-card { background: linear-gradient(180deg, var(--navy-700), var(--navy-800)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 20px; transition: border-color .3s, transform .3s; }
.event-card:hover { border-color: rgba(201,162,75,.5); transform: translateY(-3px); }
.event-card h3 { font-size: 1.5rem; }
.event-card > p { color: var(--muted); font-size: .95rem; margin: 6px 0 16px; }
.ev-meta { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.ev-meta li { display: grid; grid-template-columns: 108px 1fr; gap: 12px; align-items: baseline; }
.ev-lbl { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-400); }
.ev-val { color: var(--ivory); font-size: .95rem; }
.btn-sm { padding: 10px 24px; font-size: .74rem; }
@media (max-width: 460px) { .ev-meta li { grid-template-columns: 1fr; gap: 2px; } }

/* ===================== RWM WELCOME ===================== */
.rwm-grid { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 56px; align-items: start; }
.rwm-portrait { position: sticky; top: 104px; margin: 0; }
.rwm-portrait img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 10%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.rwm-portrait figcaption { text-align: center; margin-top: 18px; }
.rwm-portrait .rwm-name { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--ivory); }
.rwm-portrait .rwm-role { display: block; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .18em; font-size: .66rem; color: var(--gold-400); margin-top: 7px; }
.rwm-letter p { color: var(--muted); margin-bottom: 18px; }
.rwm-letter .rwm-greeting { font-family: var(--font-display); font-style: italic; font-size: clamp(1.35rem, 2.6vw, 1.7rem); color: var(--gold-400); margin-bottom: 22px; }
.rwm-letter .rwm-sign { color: var(--ivory); margin: 28px 0 4px; }
.rwm-letter .rwm-signature { font-family: var(--font-display); font-size: 1.3rem; color: var(--ivory); margin-bottom: 0; line-height: 1.3; }
.rwm-letter .rwm-signature span { display: block; font-family: var(--font-body); font-size: .66rem; text-transform: uppercase; letter-spacing: .18em; color: var(--gold-400); margin-top: 6px; }

/* ===================== RESPONSIVE ===================== */

/* Laptop */
@media (max-width: 1024px) {
  .nav-links { gap: 20px; }
  .nav-links a { font-size: .78rem; letter-spacing: .1em; }
  .container { padding: 0 22px; }
}

/* Small laptop / tablet landscape */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .members-grid { grid-template-columns: repeat(3, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rwm-grid { grid-template-columns: 1fr; gap: 36px; }
  .rwm-portrait { position: static; max-width: 340px; margin: 0 auto; }
  .wm-feature { grid-template-columns: 1fr; gap: 20px; max-width: 420px; text-align: center; }
  .wm-photo { max-width: 240px; margin: 0 auto; }
  .offices-grid { grid-template-columns: repeat(2, 1fr); }
  .events-layout { grid-template-columns: 1fr; gap: 28px; max-width: 620px; }
  .events-figure { position: static; max-width: 320px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .offices-grid { grid-template-columns: 1fr; }
}

/* ---- Phones only: hamburger menu ---- */
@media (max-width: 720px) {
  .nav { height: 66px; }
  .brand { gap: 10px; }
  .brand-mark { width: 40px; height: 40px; }
  .nav-right { gap: 12px; }
  .lang-switch button { padding: 6px 9px; font-size: .68rem; letter-spacing: .06em; }

  .nav-toggle { display: block; }

  .nav-links {
    position: fixed; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(12, 20, 37, 0.98);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 44px rgba(0, 0, 0, .55);
    padding: 6px 0 14px;
    max-height: calc(100dvh - 66px); overflow-y: auto;
    transform: translateY(-14px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .26s ease, transform .26s ease, visibility .26s ease;
  }
  .site-header.nav-open .nav-links {
    transform: none; opacity: 1; visibility: visible; pointer-events: auto;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block; width: 100%;
    padding: 15px 24px; font-size: .98rem; letter-spacing: .12em;
    color: var(--ivory); border-bottom: 1px solid rgba(201, 162, 75, .12);
  }
  .nav-links a::after { display: none; }
  .nav-links a.active { color: var(--gold-400); background: rgba(201, 162, 75, .06); }
  .nav-links a:active { background: rgba(201, 162, 75, .12); }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .members-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .event { grid-template-columns: 76px 1fr; gap: 16px; padding: 18px 18px; }
  .stat-row { gap: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .hero { min-height: calc(100vh - 66px); min-height: calc(100dvh - 66px); }
  .hero p { font-size: clamp(1rem, 3.6vw, 1.12rem); }
}

/* Small phones */
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .nav { height: 62px; }
  .nav-links { top: 62px; max-height: calc(100dvh - 62px); }
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 30px; }
  .brand-text .name { font-size: 1.15rem; }
  .brand-text .sub { font-size: .56rem; letter-spacing: .2em; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 300px; justify-content: center; }
  .btn { padding: 13px 24px; }
  .card { padding: 28px 22px; }
  .pillars-figure img { padding: 14px 16px; }
  .office-list { gap: 9px; }
  .office-list span { padding: 8px 14px; font-size: .84rem; }
  .frame { padding: 24px; }
  .nav-links a { padding: 14px 18px; }
}

/* Very small phones (~320px) */
@media (max-width: 360px) {
  .brand-text .sub { display: none; }
  .brand-text .name { font-size: 1.05rem; }
  .lang-switch button { padding: 5px 7px; font-size: .64rem; }
  .hero-motto .motto-latin { letter-spacing: .28em; font-size: .62rem; }
}

/* ===================== CONSECRATION ===================== */
.consec-wrap { max-width: 1040px; margin-inline: auto; }
.consec-facts {
  max-width: 560px; margin: 0 auto 52px; gap: 12px;
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px;
}
.consec-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.consec-card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  transition: border-color .3s, transform .3s;
}
.consec-card:hover { border-color: rgba(201,162,75,.5); transform: translateY(-3px); }
.consec-num { font-family: var(--font-display); font-size: 1rem; letter-spacing: .24em; color: var(--gold-400); }
.consec-card h3 { font-size: 1.4rem; margin: 8px 0 10px; }
.consec-card > p { color: var(--muted); font-size: .93rem; margin-bottom: 22px; }
.consec-card .btn { margin-top: auto; align-self: flex-start; }
.consec-card .placeholder-note { margin-top: auto; font-size: .82rem; }
.consec-note { margin-top: 44px; }

/* Upload progress (video message modal) */
.up-progress { height: 6px; background: var(--navy-600); border-radius: 999px; overflow: hidden; margin-top: 16px; }
.up-bar { height: 100%; width: 0; background: var(--gold-500); transition: width .25s ease; }
.up-status { font-size: .8rem; color: var(--muted); margin-top: 9px; }
.up-file { font-size: .8rem; color: var(--gold-300); margin-top: 6px; word-break: break-all; }

@media (max-width: 900px) { .consec-actions { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* Standalone video-message page */
.video-card {
  max-width: 520px; margin-inline: auto;
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 32px;
}
@media (max-width: 480px) { .video-card { padding: 26px 20px; } }

/* ===================== CONSECRATION REGISTRATION FORM ===================== */
.reg-form { max-width: 720px; margin-inline: auto; }
.reg-block {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  padding: 26px 28px 10px; margin-bottom: 26px;
}
.reg-block legend {
  font-family: var(--font-display); font-size: 1.3rem; color: var(--gold-300);
  padding: 0 10px; margin-left: -4px;
}
.reg-lead { color: var(--ivory); font-size: .95rem; margin-bottom: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.f-hint { display: block; font-size: .78rem; color: var(--muted); margin-top: 6px; line-height: 1.5; text-transform: none; letter-spacing: 0; }

.field select {
  width: 100%; background: var(--navy-900); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ivory); font-family: var(--font-body); font-size: .95rem; padding: 13px 15px;
}
.field select:focus { outline: none; border-color: var(--gold-500); }
.field input[type="file"] { padding: 11px 13px; font-size: .88rem; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #d98b8b; }

.check-row { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 18px; cursor: pointer; }
.check-row input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--gold-500); cursor: pointer; }
.check-row b { display: block; font-weight: 600; color: var(--ivory); font-size: .95rem; }

.reg-total {
  border-top: 1px solid var(--line); margin-top: 6px; padding-top: 16px;
  font-family: var(--font-display); font-size: 1.25rem; color: var(--gold-300);
}
.reg-actions { display: flex; justify-content: center; margin-top: 4px; }
.reg-actions .btn { min-width: 260px; justify-content: center; }

/* Review dialog */
.reg-review-list { list-style: none; margin: 0 0 22px; }
.reg-review-list li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.reg-review-list .rv-lbl { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400); align-self: center; }

@media (max-width: 640px) {
  .row2 { grid-template-columns: 1fr; }
  .reg-block { padding: 22px 18px 6px; }
  .reg-review-list li { grid-template-columns: 1fr; gap: 2px; }
}
