/* Layout concept: a lit stage — deep navy rooms lit by a moving spotlight, the association's eight-point star as the recurring instrument, gold diagonals cut from the brochure */
:root {
  --night: #070d22;
  --navy: #0b1430;
  --royal-solid: #152560;
  --gold: #c6a764;
  --gold-soft: #e6cf98;
  --ivory: #f6f3ec;
  --paper: #fbfaf6;
  --ink: #161c33;
  --muted: #687089;
  --muted-dark: rgba(246, 243, 236, 0.66);
  --line: rgba(198, 167, 100, 0.35);
  --line-ink: #e3ddcf;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --mx: 70%;
  --my: 30%;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; font-optical-sizing: auto; line-height: 1.02; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
::selection { background: var(--gold); color: var(--night); }

.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 600px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- Header ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--night);
}
.site-header {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0; right: 0;
  z-index: 50;
  transition: background-color 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 13, 34, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(198, 167, 100, 0.18);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted-dark);
  transition: color 0.2s;
}
.nav a:hover { color: var(--ivory); }
.nav .pill {
  margin-left: 10px;
  padding: 11px 20px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-soft);
}
.nav .pill:hover { background: var(--gold); color: var(--night); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ivory); cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; margin: auto; }
@media (max-width: 920px) {
  .menu-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
    background: var(--night);
    border-bottom: 1px solid var(--line);
  }
  .nav:not(.open) { display: none; }
  .nav a { padding: 16px 4px; border-bottom: 1px solid rgba(198, 167, 100, 0.14); font-size: 1.05rem; }
  .nav .pill { margin: 18px 0 0; text-align: center; border-bottom: 1px solid var(--gold); }
  .brand img { height: 34px; }
}

/* ---------- Hero: the stage ---------- */
.hero {
  position: relative;
  min-height: clamp(640px, 96vh, 980px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url('../img/stage.jpg') center 60% / cover no-repeat;
  transform: scale(1.06);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-stage { animation: drift 24s ease-in-out infinite alternate; }
  @keyframes drift { to { transform: scale(1.12) translate(-1.5%, -1%); } }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(7, 13, 34, 0.55) 0%, rgba(7, 13, 34, 0.15) 35%, rgba(7, 13, 34, 0.82) 78%, var(--night) 100%),
    linear-gradient(90deg, rgba(7, 13, 34, 0.75) 0%, rgba(7, 13, 34, 0) 60%);
}
/* Spotlight follows the pointer */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(230, 207, 152, 0.22), rgba(230, 207, 152, 0.06) 40%, transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
  transition: background-position 0.2s;
}
.hero .wrap { position: relative; padding-top: 150px; padding-bottom: clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
.hero h1 {
  margin-top: 26px;
  font-size: clamp(3rem, 1.2rem + 7.4vw, 8.4rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line span { display: inline-block; }
.hero h1 .gold {
  font-weight: 300;
  font-style: italic;
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-soft) 45%, var(--gold) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .line span { animation: lift 1.1s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero h1 .line:nth-child(2) span { animation-delay: 0.14s; }
  @keyframes lift { from { transform: translateY(70%); } to { transform: none; } }
}
.hero-lead { margin-top: 30px; max-width: 46ch; font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); color: var(--muted-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.25s; }
.btn:hover svg { transform: translateX(4px); }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { border-color: rgba(246, 243, 236, 0.35); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-ink { background: var(--navy); color: var(--ivory); }
.btn-ink:hover { background: var(--royal-solid); }

/* The eight-point star (two interlaced squares) */
.star { width: 100%; height: 100%; overflow: visible; }
.star rect { fill: none; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.hero-star { width: clamp(180px, 20vw, 280px); aspect-ratio: 1; color: var(--gold); opacity: 0.9; }
.hero-star .s1 { color: var(--gold); }
.hero-star .s2 { color: var(--gold-soft); }
.hero-star .s3 { color: rgba(230, 207, 152, 0.35); }
@media (prefers-reduced-motion: no-preference) {
  .spin { animation: spin 60s linear infinite; transform-origin: 50% 50%; transform-box: fill-box; }
  .spin-rev { animation: spin 90s linear infinite reverse; transform-origin: 50% 50%; transform-box: fill-box; }
  @keyframes spin { to { transform: rotate(360deg); } }
}
.hero-meta { display: grid; gap: 8px; margin-top: 18px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-dark); text-align: center; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-aside { display: none; }
}

/* Scroll cue */
.cue { position: absolute; left: 50%; bottom: 22px; width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); transform: translateX(-50%); }
@media (max-width: 860px) { .cue { display: none; } }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--night); }
.marquee-track { display: flex; width: max-content; gap: 56px; padding-block: 26px; }
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1rem + 2.4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--ivory);
}
.marquee span i { font-style: normal; color: var(--gold); font-size: 0.6em; }
.marquee span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(230, 207, 152, 0.7); }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: slide 38s linear infinite; }
  @keyframes slide { to { transform: translateX(-50%); } }
}

/* ---------- About (ivory room) ---------- */
.room-light { background: var(--paper); color: var(--ink); }
.room-light .eyebrow { color: #9c7f3e; }
.room-light h2 { color: var(--navy); }
.section { padding-block: clamp(80px, 11vw, 160px); position: relative; }
.about { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.about > * { min-width: 0; }
.about h2 { margin-top: 22px; font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.6rem); }
.about h2 em { font-style: italic; font-weight: 300; color: #9c7f3e; }
.about .lead { margin-top: 30px; font-size: 1.22rem; line-height: 1.6; color: var(--ink); max-width: 46ch; }
.about .body { margin-top: 20px; display: grid; gap: 16px; color: var(--muted); max-width: 56ch; }
.values-inline { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.values-inline span { padding: 9px 16px; border: 1px solid var(--line-ink); border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: var(--navy); }

/* Diagonal-cut photo pair, echoing the brochure's gold slashes */
.cut { position: relative; aspect-ratio: 4 / 5; }
.cut figure { position: absolute; margin: 0; overflow: hidden; }
.cut .a { inset: 0 22% 18% 0; clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%); }
.cut .b { inset: 30% 0 0 38%; clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 90%); box-shadow: 0 30px 60px -30px rgba(11, 20, 48, 0.6); }
.cut img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.cut:hover img { transform: scale(1.05); }
.cut::before, .cut::after { content: ""; position: absolute; height: 2px; background: var(--gold); transform-origin: left; z-index: 2; }
.cut::before { left: -6%; top: 6%; width: 70%; transform: rotate(-4.6deg); }
.cut::after { right: -4%; bottom: 14%; width: 56%; transform: rotate(-5.6deg); transform-origin: right; }
.cut .badge {
  position: absolute; left: 0; bottom: 0; z-index: 3;
  display: grid; place-items: center;
  width: 128px; height: 128px;
  background: var(--navy); color: var(--gold-soft);
  border-radius: 50%;
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; text-align: center; line-height: 1.5;
}
.cut .badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 900px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .cut { max-width: 520px; width: 100%; margin: 0 auto; }
}

/* ---------- Principles: the compass ---------- */
.room-dark { background: var(--navy); position: relative; overflow: hidden; }
.room-dark::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(198, 167, 100, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(198, 167, 100, 0.07) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
  pointer-events: none;
}
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: clamp(48px, 6vw, 80px); position: relative; }
.head h2 { margin-top: 20px; font-size: clamp(2.2rem, 1.3rem + 3.2vw, 4.2rem); max-width: 16ch; }
.head h2 em { font-style: italic; font-weight: 300; color: var(--gold-soft); }
.head p { max-width: 40ch; color: var(--muted-dark); }

.compass {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 28px 40px;
  align-items: center;
}
.compass-core { grid-column: 2; grid-row: 1 / span 2; position: relative; aspect-ratio: 1; color: var(--gold); }
.compass-core .star use { color: var(--gold); }
.compass-core .star .inner { color: rgba(230, 207, 152, 0.4); }
.compass-core .needle { transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); transform-origin: 50% 50%; transform-box: view-box; }
.compass-core .label {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 0.8rem + 1vw, 1.6rem);
  color: var(--ivory);
  pointer-events: none;
}
.compass-core .label small { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.value {
  position: relative;
  padding: 30px 30px 32px;
  border: 1px solid rgba(198, 167, 100, 0.22);
  background: linear-gradient(160deg, rgba(21, 37, 96, 0.55), rgba(7, 13, 34, 0.4));
  transition: border-color 0.3s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s;
  cursor: default;
  min-width: 0;
}
.value:hover, .value.on { border-color: var(--gold); transform: translateY(-4px); }
.value .n { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--gold); }
.value h3 { margin-top: 16px; font-size: 1.7rem; font-weight: 500; }
.value p { margin-top: 10px; color: var(--muted-dark); }
.v1 { grid-column: 1; grid-row: 1; }
.v2 { grid-column: 3; grid-row: 1; }
.v3 { grid-column: 1; grid-row: 2; }
.v4 { grid-column: 3; grid-row: 2; }
@media (max-width: 960px) {
  .compass { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .compass-core { grid-column: 1 / -1; grid-row: 1; width: min(280px, 70%); margin: 0 auto 12px; }
  .v1, .v2, .v3, .v4 { grid-column: auto; grid-row: auto; }
}
@media (max-width: 560px) { .compass { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Directions: index with hover reveal ---------- */
.room-night { background: var(--night); }
.index { border-top: 1px solid var(--line); }
.index-row {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1.1fr) minmax(0, 1fr) 56px;
  align-items: center;
  gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.index-row::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(198, 167, 100, 0.14), transparent 70%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.index-row:hover::before { transform: scaleX(1); }
.index-row > * { position: relative; min-width: 0; }
.index-row .n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--gold); letter-spacing: 0.1em; }
.index-row h3 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.6rem); font-weight: 500; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.index-row:hover h3 { transform: translateX(10px); }
.index-row p { color: var(--muted-dark); }
.index-row .arr { width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--gold); transition: background-color 0.3s, color 0.3s, transform 0.5s; }
.index-row .arr svg { width: 20px; height: 20px; }
.index-row:hover .arr { background: var(--gold); color: var(--night); transform: rotate(-45deg); }
@media (max-width: 760px) {
  .index-row { grid-template-columns: 48px minmax(0, 1fr); gap: 10px 16px; padding: 26px 0; }
  .index-row p { grid-column: 2; }
  .index-row .arr { display: none; }
}

/* ---------- Partnership ---------- */
.partner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.partner > * { min-width: 0; }
.partner-photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%); }
.partner-photo img { width: 100%; height: 100%; object-fit: cover; }
.partner-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11, 20, 48, 0.65)); }
.partner-photo span { position: absolute; left: 24px; bottom: 34px; z-index: 2; font-family: var(--font-display); font-size: 1.5rem; color: var(--ivory); line-height: 1.2; }
.partner h2 { margin-top: 22px; font-size: clamp(2.2rem, 1.3rem + 3vw, 4rem); }
.partner h2 em { font-style: italic; font-weight: 300; color: #9c7f3e; }
.pillars { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--line-ink); }
.pillar { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line-ink); }
.pillar .ico { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--gold); }
.pillar .ico svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 1.35rem; font-weight: 600; color: var(--navy); letter-spacing: -0.01em; }
.pillar p { margin-top: 8px; color: var(--muted); }
@media (max-width: 900px) {
  .partner { grid-template-columns: minmax(0, 1fr); }
  .partner-photo { aspect-ratio: 4 / 3; }
}

/* ---------- Membership & contact ---------- */
.join { position: relative; overflow: hidden; background: var(--navy); }
.join-bg { position: absolute; right: -8%; top: 50%; width: min(760px, 80vw); aspect-ratio: 1; transform: translateY(-50%); color: var(--gold); opacity: 0.18; pointer-events: none; }
.join-bg .star use { color: var(--gold); }
.join-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.join-grid > * { min-width: 0; }
.join h2 { margin-top: 22px; font-size: clamp(2.6rem, 1.4rem + 4.4vw, 5.6rem); }
.join h2 em { font-style: italic; font-weight: 300; color: var(--gold-soft); }
.join .lead { margin-top: 24px; max-width: 44ch; color: var(--muted-dark); font-size: 1.1rem; }
.contacts { margin-top: 40px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact small { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.contact a, .contact span.v { display: block; margin-top: 6px; font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 400; color: var(--ivory); text-decoration: none; overflow-wrap: anywhere; }
.contact a:hover { color: var(--gold-soft); }
.copy { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted-dark); font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.copy:hover { border-color: var(--gold); color: var(--gold-soft); }

.form { position: relative; padding: clamp(28px, 4vw, 48px); background: var(--paper); color: var(--ink); }
.form::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-soft), var(--gold)); }
.form h3 { font-size: 1.9rem; color: var(--navy); }
.form > p { margin-top: 8px; color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 2px;
  border: 0;
  border-bottom: 1px solid #cfc7b4;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 1.02rem;
  color: var(--ink);
  transition: border-color 0.2s;
  color-scheme: light;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--navy); box-shadow: 0 1px 0 var(--navy); }
.field .err { display: none; font-size: 0.82rem; color: #a3322a; }
.field.invalid input, .field.invalid textarea { border-bottom-color: #a3322a; }
.field.invalid .err { display: block; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; }
.form-note { font-size: 0.86rem; color: var(--muted); max-width: 34ch; }
.form-status { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--gold); background: var(--ivory); font-size: 0.95rem; color: var(--ink); }
@media (max-width: 900px) { .join-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .fields { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 36px; font-size: 0.88rem; color: var(--muted-dark); }
.footer-row img { height: 34px; width: auto; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-row a { text-decoration: none; }
.footer-row a:hover { color: var(--gold-soft); }

/* Reveal: elements rest visible; they only rise as they enter */
@media (prefers-reduced-motion: no-preference) {
  .rv { transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
  .js .rv:not(.in) { transform: translateY(36px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.room-light-alt { background: var(--ivory); border-top: 1px solid var(--line-ink); }
.head-light p { color: var(--muted); }
.head-light h2 em { color: #9c7f3e; }

/* ---------- Audience ---------- */
.aud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.aud-card { position: relative; padding: 34px 28px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; overflow: hidden; transition: background-color 0.4s; }
.aud-card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.aud-card:hover { background: rgba(21, 37, 96, 0.45); }
.aud-card:hover::after { transform: scaleX(1); }
.aud-n { font-family: var(--font-display); font-size: 4.4rem; font-weight: 300; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); }
.aud-card h3 { margin-top: 26px; font-size: 1.5rem; font-weight: 500; }
.aud-card p { margin-top: 10px; color: var(--muted-dark); }
@media (max-width: 960px) { .aud { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .aud { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Tools ---------- */
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tool { display: flex; flex-direction: column; gap: 24px; padding: clamp(24px, 3vw, 36px); background: var(--white, #fff); border: 1px solid var(--line-ink); min-width: 0; }
.tool-wide { grid-column: 1 / -1; }
.tool-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.tool-head .eyebrow { flex-basis: 100%; color: #9c7f3e; }
.tool-head h3 { font-size: 1.8rem; color: var(--navy); }
.tool-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tf { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tf.full { grid-column: 1 / -1; }
.tf label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tf input[type=number] { width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid #cfc7b4; background: transparent; font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); font-variant-numeric: tabular-nums; border-radius: 0; color-scheme: light; }
.tf input[type=number]:focus { outline: none; border-bottom-color: var(--navy); }
.tf input[type=range] { width: 100%; accent-color: var(--navy); margin-top: 8px; }
.tf output { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); }
.tool-out { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1px; background: var(--line-ink); border: 1px solid var(--line-ink); margin-top: auto; }
.tool-out > div { padding: 16px 18px; background: var(--navy); color: var(--ivory); min-width: 0; }
.tool-out > div + div { background: #111d44; }
.tool-out small { display: block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.tool-out b, .tool-out span { display: block; margin-top: 6px; font-family: var(--font-display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tool-out b { font-size: clamp(1.4rem, 1rem + 1vw, 1.9rem); font-weight: 600; color: var(--gold-soft); }
.tool-out span { font-size: 1.1rem; }
.tool-note { font-size: 0.84rem; color: var(--muted); }
.progress { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; padding: 6px 12px; border-radius: 999px; background: var(--navy); color: var(--gold-soft); }
.ck { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.ck li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line-ink); }
.ck input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 2px 0 0; border: 1.5px solid var(--navy); border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background-color 0.2s; }
.ck input::after { content: ""; width: 10px; height: 5px; border-left: 2px solid var(--gold-soft); border-bottom: 2px solid var(--gold-soft); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.ck input:checked { background: var(--navy); }
.ck input:checked::after { opacity: 1; }
.ck input:checked + label b { text-decoration: line-through; text-decoration-color: var(--gold); }
.ck label { cursor: pointer; color: var(--muted); font-size: 0.94rem; line-height: 1.55; }
.ck label b { display: block; color: var(--navy); font-size: 1.02rem; margin-bottom: 2px; }
.ck-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.copy-ink { border-color: var(--line-ink); color: var(--navy); }
.copy-ink:hover { border-color: var(--navy); color: var(--navy); }
@media (max-width: 900px) { .tools { grid-template-columns: minmax(0, 1fr); } .ck { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .tool-fields { grid-template-columns: minmax(0, 1fr); } .tool-out { grid-template-columns: minmax(0, 1fr); } }
