/* Freemasons of Whangārei - preview theme */
:root {
  --bg: #050a15;
  --bg-2: #08122a;
  --bg-3: #0c1a38;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(241, 178, 84, 0.2);
  --line-soft: rgba(255, 255, 255, 0.08);
  --gold: #e18f19;
  --gold-2: #f6c268;
  --gold-3: #ffe2a8;
  --blue: #164884;
  --blue-2: #2c6ac2;
  --text: #e9edf5;
  --muted: #9aa8c0;
  --radius: 18px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --serif: 'Cinzel', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gold-grad: linear-gradient(100deg, #ffe2a8 0%, #f6c268 30%, #e18f19 65%, #f6c268 100%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-3); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: 0.02em; line-height: 1.15; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.2rem, 4.3vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); margin-inline: auto; }

.gold-text {
  background: var(--gold-grad);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: sheen 9s ease-in-out infinite;
}
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 0.78rem/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font: 600 0.95rem/1 var(--sans); letter-spacing: 0.02em; text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  cursor: pointer; border: 0;
}
.btn-gold { background: var(--gold-grad); background-size: 160% 100%; color: #1a1103; box-shadow: 0 10px 30px -10px rgba(225, 143, 25, 0.7); }
.btn-gold:hover { color: #1a1103; transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 40px -12px rgba(225, 143, 25, 0.9); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); box-shadow: inset 0 0 0 1px rgba(246, 194, 104, 0.45); backdrop-filter: blur(8px); }
.btn-ghost:hover { color: var(--gold-3); background: rgba(246, 194, 104, 0.08); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.site-header.scrolled, .site-header.solid {
  background: rgba(5, 10, 21, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.brand img { height: 40px; width: auto; }
.brand span { font: 600 0.72rem/1.2 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--line); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 10px 14px; border-radius: 999px;
  color: var(--text); text-decoration: none; font-size: 0.93rem; font-weight: 500;
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold-2); background: rgba(255, 255, 255, 0.04); }
.nav-links .btn { padding: 11px 18px; margin-left: 8px; }
.nav-links a.btn-gold, .nav-links a.btn-gold:hover { color: #1a1103; background: var(--gold-grad); background-size: 160% 100%; }
.nav-links a.btn-gold:hover { background-position: 100% 0; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 10px; margin-right: -10px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 980px) {
  .brand span { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 78px 0 auto; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 22px; background: rgba(5, 10, 21, 0.96); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s ease;
  }
  .nav-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 14px 12px; font-size: 1.05rem; }
  .nav-links .btn { margin: 10px 0 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -2; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 10, 21, 0.85) 0%, rgba(5, 10, 21, 0.35) 45%, transparent 70%),
    linear-gradient(0deg, var(--bg) 0%, transparent 28%);
}
.hero-fallback {
  position: absolute; inset: 0; z-index: -2; display: none;
  background: radial-gradient(60% 60% at 70% 45%, rgba(225, 143, 25, 0.22), transparent 70%), radial-gradient(80% 80% at 20% 80%, rgba(22, 72, 132, 0.5), transparent 70%), var(--bg);
}
.hero-fallback img { position: absolute; right: 10%; top: 50%; transform: translateY(-50%); width: min(34vw, 420px); opacity: 0.9; }
.no-webgl .hero-fallback { display: block; }
.no-webgl .hero canvas { display: none; }

.hero-copy { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 70px; }
.hero-copy .inner { max-width: 640px; min-width: 0; }
.hero h1 { margin-bottom: 26px; text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6); }
.hero .lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: #cdd6e6; max-width: 540px; margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px 34px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-soft); max-width: 520px; }
.hero-meta div { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.04em; }
.hero-meta strong { display: block; font: 600 1.7rem/1.1 var(--serif); color: var(--gold-2); margin-bottom: 4px; }
.hero-meta a { color: var(--muted); text-decoration: none; font-size: 0.82rem; letter-spacing: 0.04em; }
.hero-meta a:hover strong { color: var(--gold-3); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgba(246, 194, 104, 0.6);
}
.scroll-cue::after { content: ''; position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold-2); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

.hero-copy .inner > * { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero-copy .inner > *:nth-child(2) { animation-delay: .9s; }
.hero-copy .inner > *:nth-child(3) { animation-delay: 1.1s; }
.hero-copy .inner > *:nth-child(4) { animation-delay: 1.3s; }
.hero-copy .inner > *:nth-child(5) { animation-delay: 1.5s; }
.hero-copy .inner > *:first-child { animation-delay: .7s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 860px) and (orientation: portrait), (max-width: 640px) {
  /* Tall screens: the emblem gets the top of the hero and the copy flows underneath it. */
  .hero { height: auto; min-height: 100svh; }
  .hero canvas { height: 62svh; min-height: 420px; bottom: auto; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 0%, var(--bg) calc(100% - 62svh), rgba(5, 10, 21, 0.6) calc(100% - 50svh), transparent calc(100% - 30svh)); }
  .hero-copy { height: auto; justify-content: flex-start; padding-top: max(50svh, 360px); padding-bottom: 90px; }
  .hero h1 { font-size: clamp(1.8rem, 8.4vw, 2.6rem); }
  .hero-meta { gap: 14px 26px; margin-top: 34px; }
  .hero-meta strong { font-size: 1.4rem; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .hero-fallback img { right: 50%; top: 14%; transform: translateX(50%); width: 52vw; }
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ''; width: 34px; height: 1px; background: linear-gradient(270deg, transparent, var(--gold)); }
.section-head p { color: var(--muted); font-size: 1.07rem; }

.divider { display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--gold); margin: 0 auto; }
.divider::before, .divider::after { content: ''; height: 1px; width: min(30vw, 260px); background: linear-gradient(90deg, transparent, var(--line), transparent); }
.divider svg { width: 30px; height: 30px; opacity: 0.85; }

/* About */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.about-copy p { color: #c9d2e2; font-size: 1.08rem; }
.about-copy .quote {
  font: 500 clamp(1.25rem, 2vw, 1.55rem)/1.5 var(--serif); color: var(--text); letter-spacing: 0.01em;
  padding-left: 22px; border-left: 2px solid var(--gold); margin: 30px 0;
}
.about-photo { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 2048 / 956; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.about-photo:hover img { transform: scale(1.03); }
.about-photo::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: inherit; background: linear-gradient(180deg, transparent 55%, rgba(5, 10, 21, 0.75)); }
.about-photo figcaption { position: absolute; left: 22px; bottom: 18px; z-index: 1; font-size: 0.85rem; color: #d8dfeb; letter-spacing: 0.04em; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(60px, 8vw, 100px); }
.pillar {
  position: relative; padding: 34px 30px 30px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: inset 0 0 0 1px var(--line-soft);
  overflow: hidden; transition: transform .35s ease, box-shadow .35s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -30px rgba(225, 143, 25, 0.35); }
.pillar .num { font: 600 3.4rem/1 var(--serif); color: transparent; -webkit-text-stroke: 1px rgba(246, 194, 104, 0.55); margin-bottom: 18px; display: block; }
.pillar h3 { color: var(--gold-2); }
.pillar p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* Lodges */
.lodges { background: radial-gradient(70% 60% at 50% 0%, rgba(22, 72, 132, 0.35), transparent 70%), linear-gradient(180deg, var(--bg), var(--bg-2) 50%, var(--bg)); }
.lodge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lodge {
  position: relative; padding: 30px 26px 28px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, rgba(22, 72, 132, 0.35), rgba(8, 18, 42, 0.6) 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  transition: transform .35s ease, box-shadow .35s ease;
  display: flex; flex-direction: column; min-height: 290px;
}
.lodge::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(246, 194, 104, 0.7), transparent 40%, transparent 70%, rgba(44, 106, 194, 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.55; transition: opacity .35s;
}
.lodge:hover { transform: translateY(-6px); }
.lodge:hover::before { opacity: 1; }
.lodge .no { font: 600 0.75rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.lodge .big { font: 600 4.2rem/1 var(--serif); margin: 10px 0 18px; }
.lodge h3 { font-size: 1.3rem; margin-bottom: auto; }
.lodge .when { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-soft); display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: #d2d9e6; }
.lodge .when svg { flex: none; width: 20px; height: 20px; color: var(--gold-2); margin-top: 3px; }
.pill { display: inline-block; font: 600 0.68rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; color: var(--gold-3); background: rgba(225, 143, 25, 0.14); box-shadow: inset 0 0 0 1px rgba(225, 143, 25, 0.35); margin-bottom: 8px; }
.pill.morning { color: #cfe2ff; background: rgba(44, 106, 194, 0.18); box-shadow: inset 0 0 0 1px rgba(44, 106, 194, 0.5); }
.lodge-foot { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: center; color: var(--muted); font-size: 0.95rem; }

/* Community feature */
.feature {
  display: grid; grid-template-columns: 0.9fr 1.1fr; border-radius: 26px; overflow: hidden;
  background: linear-gradient(135deg, rgba(22, 72, 132, 0.45), rgba(8, 18, 42, 0.9));
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.feature-media { position: relative; min-height: 420px; margin: 0; }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-media figcaption { position: absolute; right: 14px; bottom: 12px; font-size: 0.72rem; color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); }
.feature-flip { grid-template-columns: 1.1fr 0.9fr; }
.cause { padding-bottom: 0; }
.partner-logo { display: block; width: fit-content; padding: 12px 18px; margin-bottom: 26px; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6); transition: transform .25s; }
.partner-logo:hover { transform: translateY(-2px); }
.partner-logo img { width: 220px; height: auto; }
.cause-news {
  display: grid; grid-template-columns: 220px 1fr auto; gap: 28px; align-items: center; margin-top: 20px; padding: 14px 30px 14px 14px;
  border-radius: 20px; text-decoration: none; color: var(--text); background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 0 0 1px var(--line-soft); transition: transform .35s ease, box-shadow .35s ease, background .35s;
}
.cause-news:hover { color: var(--text); transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -30px rgba(225, 143, 25, 0.35); }
.cause-news img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
.cause-news time { display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 8px; }
.cause-news h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.3; margin-bottom: 8px; }
.cause-news p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.cause-news .more { font-size: 0.92rem; font-weight: 600; color: var(--gold-2); display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.cause-news .more svg { width: 16px; height: 16px; transition: transform .25s; }
.cause-news:hover .more svg { transform: translateX(4px); }
.feature-body { padding: clamp(32px, 5vw, 64px); }
.feature-body h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.feature-body p { color: #c9d2e2; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0 32px; }
.fact { padding: 16px; border-radius: 14px; background: rgba(5, 10, 21, 0.45); box-shadow: inset 0 0 0 1px var(--line-soft); }
.fact strong { display: block; font: 600 1.35rem/1.2 var(--serif); color: var(--gold-2); }
.fact span { font-size: 0.82rem; color: var(--muted); }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.news-grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: transform .35s ease, box-shadow .35s ease, background .35s ease;
}
.card:hover { color: var(--text); transform: translateY(-6px); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.card-img { aspect-ratio: 16 / 11; overflow: hidden; background: var(--bg-3); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.card time { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 10px; }
.card h3 { font-size: 1.12rem; line-height: 1.35; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.93rem; margin: 0 0 18px; }
.card .more { margin-top: auto; font-size: 0.88rem; font-weight: 600; color: var(--gold-2); display: inline-flex; gap: 8px; align-items: center; }
.card .more svg { width: 16px; height: 16px; transition: transform .25s; }
.card:hover .more svg { transform: translateX(4px); }
.news-all { margin-top: 44px; text-align: center; }

/* Photo band */
.band { position: relative; min-height: 70vh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.band img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(5, 10, 21, 0.35) 30%, rgba(5, 10, 21, 0.45) 70%, var(--bg) 100%), radial-gradient(60% 60% at 50% 50%, rgba(5, 10, 21, 0.2), rgba(5, 10, 21, 0.55)); }
.band .wrap { position: relative; z-index: 1; padding: 80px 0; }
.band h2 { font-size: clamp(2rem, 5vw, 3.8rem); text-shadow: 0 6px 40px rgba(0, 0, 0, 0.7); }
.band p { color: #d7deea; font-size: 1.1rem; max-width: 640px; margin: 0 auto; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8); }

/* Join */
.join-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.join-copy p { color: #c9d2e2; }
.contact-line { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 18px 20px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-soft); }
.contact-line svg { width: 22px; height: 22px; color: var(--gold-2); flex: none; }
.contact-line a { color: var(--text); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.contact-line a:hover { color: var(--gold-2); }
.form { padding: clamp(26px, 4vw, 44px); border-radius: 24px; background: linear-gradient(160deg, rgba(22, 72, 132, 0.32), rgba(8, 18, 42, 0.7)); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 0; color: var(--text); font: 400 1rem/1.5 var(--sans);
  background: rgba(5, 10, 21, 0.6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); transition: box-shadow .2s, background .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--gold-2), 0 0 0 4px rgba(225, 143, 25, 0.15); background: rgba(5, 10, 21, 0.8); }
.form .btn { width: 100%; margin-top: 6px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.form-status { margin: 14px 0 0; text-align: center; color: var(--gold-3); min-height: 1.2em; }
.form-status.is-error { color: #ff9a8a; }
.form .btn:disabled { opacity: 0.6; cursor: progress; }
/* Honeypot: off-canvas, not display:none, so bots that skip hidden fields still fill it. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Inner pages ---------- */
.page-hero {
  position: relative; padding: 170px 0 70px; overflow: hidden;
  background: radial-gradient(60% 80% at 80% 0%, rgba(22, 72, 132, 0.55), transparent 70%), radial-gradient(40% 60% at 10% 10%, rgba(225, 143, 25, 0.12), transparent 70%), var(--bg);
}
.page-hero::after {
  content: ''; position: absolute; right: -60px; top: 60px; width: 420px; height: 440px; opacity: 0.06;
  background: url(/img/logo-white.png) center / contain no-repeat; pointer-events: none;
}
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 900px; }
.page-hero p { color: var(--muted); max-width: 640px; font-size: 1.08rem; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-2); }

.article-cover { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); margin: -10px 0 54px; aspect-ratio: 16 / 8; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 1.1rem; color: #d3dae7; }
.prose p:first-of-type::first-letter { font: 600 3.4em/0.85 var(--serif); float: left; margin: 6px 12px 0 0; color: var(--gold-2); }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); color: var(--gold-2); margin: 1.9em 0 0.6em; }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); }
.prose figcaption { margin-top: 12px; font-size: 0.86rem; color: var(--muted); text-align: center; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.tags li { font-size: 0.8rem; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 50px 0 0; }
.gallery button { padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--bg-3); aspect-ratio: 4 / 3; box-shadow: inset 0 0 0 1px var(--line-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.gallery button:hover img { transform: scale(1.05); }
dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
dialog.lightbox::backdrop { background: rgba(3, 6, 14, 0.9); backdrop-filter: blur(6px); }
dialog.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 12px; }
dialog.lightbox button { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 1.6rem; cursor: pointer; }

.back { display: inline-flex; gap: 8px; align-items: center; margin-top: 50px; text-decoration: none; font-weight: 600; }

.resources { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.resource {
  display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 16px; text-decoration: none; color: var(--text);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-soft); transition: transform .3s, box-shadow .3s, background .3s;
}
.resource:hover { color: var(--text); transform: translateY(-3px); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.resource .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(225, 143, 25, 0.12); color: var(--gold-2); }
.resource .ico svg { width: 22px; height: 22px; }
.resource strong { display: block; font-weight: 600; }
.resource span { font-size: 0.85rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding: 90px 0 40px; background: linear-gradient(180deg, var(--bg), #03060d); border-top: 1px solid var(--line-soft); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 0.9fr 0.9fr 1.3fr; gap: 40px; }
.foot-brand img { width: 120px; margin-bottom: 20px; }
.foot-brand p { color: var(--muted); font-size: 0.95rem; max-width: 320px; }
.site-footer h4 { font: 600 0.78rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer li a { color: #c9d2e2; text-decoration: none; font-size: 0.95rem; overflow-wrap: anywhere; }
.site-footer li a:hover { color: var(--gold-2); }
.foot-base { margin-top: 70px; padding-top: 26px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 0.85rem; color: var(--muted); }

.preview-pill {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 12px; border-radius: 999px; font-size: 0.78rem; color: var(--text);
  background: rgba(5, 10, 21, 0.8); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line);
}
.preview-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(225, 143, 25, 0.2); animation: pulse 2s infinite; }
.preview-pill a { color: var(--gold-2); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(225, 143, 25, 0); } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .lodge-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .about-grid, .join-grid, .feature { grid-template-columns: 1fr; }
  .pillars, .news-grid.three { grid-template-columns: 1fr; }
  .feature-media { min-height: 280px; }
  .feature-flip .feature-media { order: -1; }
  .cause-news { grid-template-columns: 1fr; gap: 16px; padding: 12px 12px 22px; }
  .cause-news > div, .cause-news .more { padding: 0 10px; }
  .preview-pill { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .lodge-grid, .news-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .fact { padding: 12px 10px; }
  .fact strong { font-size: 1.1rem; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .preview-pill span { display: none; }
  .article-cover { aspect-ratio: 4 / 3; }
}

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