/* ============================================================
   Go Tell: Big Day Out — Endorsement Page
   Palette + type system
   ============================================================ */
:root {
  --ink:        #1a1612;
  --ink-soft:   #2a2520;
  --midnight:   #0e1d2c;
  --midnight-2: #14283c;
  --paper:      #faf5ea;
  --paper-2:    #f5ecd9;
  --cream:      #efe4cb;
  --rule:       #d9cdb1;
  --gold:       #b8893a;
  --gold-soft:  #d4af6a;
  --burgundy:   #5c1e1e;
  --muted:      #6e6358;
  --shadow:     0 24px 60px -20px rgba(14, 29, 44, 0.32);

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans:  "Manrope", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, Menlo, monospace;

  --maxw: 1180px;
  --readw: 640px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

/* ---------- Typography ---------- */
.display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.02;
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
}
.eyebrow-line {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow-line::before,
.eyebrow-line::after {
  content: "";
  display: inline-block;
  width: 36px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.lead {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.prose {
  max-width: var(--readw);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.prose p { margin: 0 0 1.1em; text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }
.smallcaps {
  font-variant: small-caps;
  letter-spacing: 0.04em;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 245, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-pair {
  display: flex; align-items: center; gap: 18px;
}
.brand-pair .divider {
  width: 1px; height: 28px; background: var(--rule);
}
.wordmark {
  display: flex; flex-direction: column; line-height: 1.05;
}
.wordmark .top {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--midnight);
}
.wordmark .sub {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--midnight);
  color: var(--paper);
}
.btn-primary:hover { background: #06121d; }
.btn-ghost {
  background: transparent;
  color: var(--midnight);
  border-color: var(--midnight);
}
.btn-ghost:hover { background: var(--midnight); color: var(--paper); }
.btn-gold {
  background: var(--gold);
  color: var(--midnight);
}
.btn-gold:hover { background: #a17628; color: var(--paper); }
.btn-link {
  background: transparent;
  padding: 8px 0;
  color: var(--midnight);
  border-bottom: 1px solid var(--midnight);
  letter-spacing: 0.1em;
}
.btn-link:hover { color: var(--gold); border-color: var(--gold); }
.btn-arrow::after {
  content: "→";
  font-family: var(--serif);
  font-size: 16px;
  margin-left: 2px;
}

/* ---------- Sections / layout ---------- */
section { padding: 110px 32px; position: relative; }
.container { max-width: var(--maxw); margin: 0 auto; }
.narrow    { max-width: 820px;        margin: 0 auto; }

h1.hero-title {
  font-size: clamp(54px, 8vw, 104px);
  margin: 0;
}
h2.section-title {
  font-size: clamp(38px, 5vw, 58px);
  margin: 0;
}
h3.subsection {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  margin: 0 0 14px;
}

.divider-rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}
.gold-rule {
  width: 64px; height: 2px; background: var(--gold); border: 0;
  margin: 0 0 24px;
}

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  padding-top: 64px;
  padding-bottom: 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: end;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero-copy {
  padding: 40px 0 110px;
}
.hero-meta {
  display: flex; flex-wrap: wrap;
  gap: 28px 40px;
  margin: 38px 0 44px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta .label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 6px;
}
.hero-meta .val {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--midnight);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image-frame {
  align-self: stretch;
  margin-bottom: 0;
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: flex-end;
}

/* ---------- Image placeholders ---------- */
.imgph {
  background:
    repeating-linear-gradient(135deg, rgba(14,29,44,0.05) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, #1d3349 0%, #0e1d2c 60%, #08131d 100%);
  color: var(--paper);
  border: 1px solid var(--midnight-2);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(245, 236, 217, 0.55);
}
.imgph.tall { aspect-ratio: 3 / 4; min-height: 480px; }
.imgph.wide { aspect-ratio: 16 / 9; }
.imgph.square { aspect-ratio: 1 / 1; }
.imgph .tag {
  display: inline-block;
  padding: 6px 10px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(245,236,217,0.18);
  border-radius: 2px;
}
.imgph.warm {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.05) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, #c89b3c 0%, #8a5a1f 100%);
  color: var(--paper);
  border-color: #6e4818;
}
.imgph.warm .tag { color: var(--paper); }

/* ---------- Stats / progress band ---------- */
.progress-band {
  background: var(--midnight);
  color: var(--paper);
  padding: 80px 32px;
}
.progress-band .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.progress-eyebrow { color: var(--gold-soft); }
.progress-band h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 52px);
  margin: 16px 0 18px;
  line-height: 1.05;
}
.progress-band .lead { color: rgba(245,236,217,0.78); }

.progress-card {
  background: rgba(245,236,217,0.04);
  border: 1px solid rgba(245,236,217,0.16);
  padding: 38px;
  border-radius: 2px;
}
.progress-counter {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--serif);
}
.progress-counter .big {
  font-size: 88px;
  font-weight: 500;
  line-height: 1;
  color: var(--paper);
}
.progress-counter .of {
  font-size: 32px;
  color: var(--gold-soft);
}
.progress-label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245,236,217,0.6);
  margin-top: 6px;
}
.progress-bar {
  margin-top: 28px;
  height: 6px;
  background: rgba(245,236,217,0.12);
  border-radius: 1px;
  overflow: hidden;
}
.progress-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-soft) 100%);
  transition: width 0.6s cubic-bezier(.2,.7,.2,1);
}
.progress-pct {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(245,236,217,0.6);
  display: flex;
  justify-content: space-between;
}
.progress-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 28px;
}
.progress-actions .btn-ghost {
  color: var(--paper); border-color: rgba(245,236,217,0.4);
}
.progress-actions .btn-ghost:hover { background: var(--paper); color: var(--midnight); }

/* ---------- Letter / vision sections ---------- */
.vision { background: var(--paper); }
.vision .grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: start;
}
.vision .side h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 38px;
  line-height: 1.05;
  margin: 0 0 18px;
}
.vision .side p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.pullquote {
  background: var(--paper-2);
  border-left: 3px solid var(--gold);
  padding: 56px 56px 56px 64px;
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.45;
  color: var(--ink);
  text-wrap: pretty;
}
.pullquote cite {
  display: block;
  margin-top: 22px;
  font-style: normal;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Partnership ---------- */
.partnership { background: var(--paper-2); }
.partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.partner-marks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.partner-mark {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 40px 28px;
  text-align: center;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.partner-mark .pm-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  color: var(--midnight);
  letter-spacing: 0.01em;
}
.partner-mark .pm-sub {
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.partner-mark .pm-tag {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.1em;
}

/* ---------- Leadership ---------- */
.leaders { background: var(--paper); }
.leader-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 56px;
  margin-top: 56px;
}
.leader {
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.leader .name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  color: var(--midnight);
  margin: 0;
}
.leader .role {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    linear-gradient(180deg, rgba(14,29,44,0.78) 0%, rgba(14,29,44,0.92) 100%),
    repeating-linear-gradient(135deg, rgba(245,236,217,0.06) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, #1d3349 0%, #0e1d2c 100%);
  color: var(--paper);
  text-align: center;
}
.cta-band h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 64px);
  margin: 18px auto 22px;
  max-width: 18ch;
  line-height: 1.05;
}
.cta-band .lead {
  color: rgba(245,236,217,0.8);
  margin: 0 auto 36px;
  max-width: 56ch;
}
.cta-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.cta-band .btn-ghost {
  color: var(--paper); border-color: rgba(245,236,217,0.5);
}
.cta-band .btn-ghost:hover { background: var(--paper); color: var(--midnight); }

/* ---------- Footer ---------- */
footer {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  padding: 48px 32px 32px;
  font-size: 13px;
  color: var(--muted);
}
.foot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
.admin-pin {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 4px 8px;
  cursor: pointer;
  opacity: 0.7;
}
.admin-pin:hover { color: var(--midnight); opacity: 1; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(14, 29, 44, 0.55);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  animation: fadeIn 0.18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.modal {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: var(--shadow);
  animation: slideUp 0.22s cubic-bezier(.2,.7,.2,1);
}
.modal.small { max-width: 480px; }
.modal.large { max-width: 1080px; }
.modal-head {
  padding: 32px 40px 20px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.modal-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  margin: 6px 0 6px;
  color: var(--midnight);
  letter-spacing: -0.005em;
}
.modal-head p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 48ch;
}
.modal-close {
  background: transparent;
  border: 1px solid var(--rule);
  width: 36px; height: 36px;
  border-radius: 2px;
  font-size: 18px;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.modal-close:hover { background: var(--midnight); color: var(--paper); border-color: var(--midnight); }
.modal-body { padding: 28px 40px 32px; }
.modal-foot {
  padding: 20px 40px 28px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.modal-foot .meta { font-size: 12px; color: var(--muted); }
.modal-foot .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Form ---------- */
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--midnight);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--midnight);
  background: #fffaf0;
}
.field .err {
  font-size: 12px;
  color: var(--burgundy);
  margin-top: 6px;
  min-height: 14px;
}

.signature-wrap { grid-column: 1 / -1; margin-top: 6px; }
.signature-wrap .label-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.signature-wrap label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--midnight);
}
.signature-wrap .clear {
  background: transparent;
  border: none;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
}
.signature-wrap .clear:hover { color: var(--burgundy); }
.signature-canvas {
  width: 100%;
  height: 180px;
  background: #fffaf0;
  border: 1px solid var(--rule);
  border-radius: 2px;
  touch-action: none;
  cursor: crosshair;
  display: block;
}
.signature-canvas.empty {
  background-image: linear-gradient(90deg, var(--rule) 50%, transparent 50%);
  background-size: 12px 1px;
  background-position: 28px calc(100% - 32px);
  background-repeat: repeat-x;
}

.success {
  text-align: center;
  padding: 40px 20px;
}
.success .check {
  width: 64px; height: 64px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  font-size: 28px;
  color: var(--gold);
  font-family: var(--serif);
}
.success h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  margin: 0 0 10px;
  color: var(--midnight);
}
.success p {
  font-size: 15px;
  color: var(--muted);
  max-width: 42ch;
  margin: 0 auto 24px;
}

/* ---------- Admin ---------- */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.admin-stat {
  border: 1px solid var(--rule);
  padding: 18px;
  background: var(--paper-2);
}
.admin-stat .num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  color: var(--midnight);
  line-height: 1;
}
.admin-stat .lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 6px;
}

.endorsements-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.endorsements-table th {
  text-align: left;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  padding: 12px 12px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  position: sticky;
  top: 0;
}
.endorsements-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
.endorsements-table tr:hover td { background: var(--paper-2); }
.endorsements-table td .sigthumb {
  width: 64px; height: 28px;
  background: #fffaf0;
  border: 1px solid var(--rule);
  border-radius: 2px;
  object-fit: contain;
}
.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
}
.table-scroll { max-height: 50vh; overflow: auto; border: 1px solid var(--rule); }

.tag-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 3px 8px;
  border-radius: 1px;
  color: var(--muted);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--midnight);
  color: var(--paper);
  padding: 12px 22px;
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: 0.04em;
  z-index: 200;
  box-shadow: var(--shadow);
  animation: slideUp 0.2s ease;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  section { padding: 80px 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-image-frame { min-height: 360px; }
  .progress-band .container,
  .partner-grid,
  .vision .grid { grid-template-columns: 1fr; gap: 40px; }
  .leader-grid { grid-template-columns: 1fr 1fr; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .modal-head, .modal-body, .modal-foot { padding-left: 24px; padding-right: 24px; }
  .pullquote { padding: 32px 24px 32px 28px; font-size: 22px; }
}
@media (max-width: 560px) {
  .leader-grid { grid-template-columns: 1fr; }
  .topbar-inner { padding: 12px 20px; }
  .brand-pair { gap: 12px; }
  .wordmark .top { font-size: 15px; }
}
