:root {
  --bg: #ffffff;
  --surface: #faf9f7;
  --surface-alt: #f3f1ed;
  --ink: #141416;
  --muted: #52525b;
  --border: #e4e2dd;
  --red: #dc1e26;
  --red-dark: #b3141b;
  --red-soft: rgba(220, 30, 38, 0.08);
  --max-w: 1120px;
  --radius: 14px;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 40px;
  width: auto;
}

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

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--red);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  background: var(--surface);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-btn.active {
  background: var(--ink);
  color: #ffffff;
}

/* Film perforation accent bar */
.sprocket-rule {
  height: 10px;
  background-image: radial-gradient(circle, var(--border) 2.2px, transparent 2.4px);
  background-size: 18px 10px;
  background-position: center;
  opacity: 0.9;
}

/* Hero */
.hero {
  padding: 72px 0 64px;
  background: linear-gradient(180deg, #ffffff 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 62ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--red);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-secondary {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

.hero-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 12px 32px rgba(20, 20, 22, 0.05);
}

.hero-card-title {
  margin: 0 0 16px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
}

.fact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.fact-list li {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--surface-alt);
}

.fact-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.fact-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.fact-value {
  display: block;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2px;
}

/* Sections */
.section {
  padding: 68px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 84px;
}

.section-alt {
  background: var(--surface);
}

.section-header {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-kicker {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 8px;
}

.section-header h2 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.2;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.mission-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.mission-list li strong {
  color: var(--ink);
}

.badge-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  background: var(--red-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.roster-subtitle {
  margin: 28px 0 14px;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
}

.roster-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px 18px;
}

.roster-grid li {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}

/* Governance & Legal */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--surface-alt);
  vertical-align: top;
}

.legal-table th {
  width: 38%;
  color: var(--muted);
  font-weight: 600;
  padding-right: 16px;
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: 0;
}

.board-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.board-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--surface-alt);
  font-size: 0.94rem;
}

.board-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.board-role {
  color: var(--muted);
  font-weight: 600;
  flex-shrink: 0;
}

.board-name {
  text-align: right;
  font-weight: 600;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

/* Member Directory */
.directory-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.dir-input,
.dir-select {
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.dir-input {
  flex: 1 1 260px;
}

.dir-select {
  flex: 0 1 200px;
}

.dir-input:focus,
.dir-select:focus {
  border-color: var(--red);
}

.directory-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 0.9rem;
  color: var(--muted);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}

.member-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.member-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.member-name {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.3;
}

.member-role {
  margin: 3px 0 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--red);
}

.status-pill {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
}

.status-available {
  background: #ecfdf3;
  color: #027a48;
  border: 1px solid #abefc6;
}

.status-open {
  background: #eff8ff;
  color: #175cd3;
  border: 1px solid #b2ddff;
}

.status-booked {
  background: var(--surface-alt);
  color: var(--muted);
  border: 1px solid var(--border);
}

.member-facts {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.soft-tag {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 6px;
}

.member-note {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}

.member-links {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--surface-alt);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
}

.member-links a {
  color: var(--ink);
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.member-links a:hover {
  border-color: var(--red);
  color: var(--red);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 36px 20px;
  background: #ffffff;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}

.contact-item {
  margin-bottom: 16px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-link {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #e4e4e7;
  padding: 44px 0 36px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.footer-logo-wrap {
  display: inline-block;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.footer-logo-wrap img {
  height: 30px;
  width: auto;
}

.footer-meta {
  font-size: 0.88rem;
  color: #a1a1aa;
  max-width: 54ch;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
}

.footer-links a {
  color: #e4e4e7;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
  color: #a1a1aa;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .two-col,
  .three-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0;
  }

  .section {
    padding: 52px 0;
  }

  .board-item {
    flex-direction: column;
    gap: 2px;
  }

  .board-name {
    text-align: left;
  }
}
