/* ═══════════════════════════════════════════════════════════════
   HumanitasAI Compact — Vatican-inspired Design
   Cinzel + EB Garamond · Gold on Cream · Dark / Light Mode
   FTP-ready static files
   ═══════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ────────────────────────────────────────────── */
:root {
  /* Vatican colour palette — light (default) */
  --gold:        #B8952A;
  --gold-light:  #D4AF47;
  --gold-dark:   #8B7020;
  --gold-bg:     rgba(184,149,42,0.06);
  --gold-border: rgba(184,149,42,0.22);
  --gold-border-strong: rgba(184,149,42,0.55);

  --bg:          #FDFCF7;      /* warm papal cream */
  --bg-2:        #F5F1E6;
  --bg-card:     #FFFFFF;
  --bg-elevated: #FFFFFF;

  --text:        #1A1712;
  --text-2:      #2E2A22;
  --text-muted:  #4E4940;
  --text-dim:    #968E80;

  --border:      rgba(26,23,18,0.1);
  --border-md:   rgba(26,23,18,0.18);
  --border-strong: rgba(26,23,18,0.32);

  --shadow-sm:   0 1px 6px rgba(26,23,18,0.06);
  --shadow-md:   0 4px 20px rgba(26,23,18,0.09);
  --shadow-lg:   0 12px 48px rgba(26,23,18,0.13);

  --nav-bg:      rgba(253,252,247,0.94);
  --radius:      3px;
}

[data-theme="dark"] {
  --bg:          #161210;
  --bg-2:        #1E1912;
  --bg-card:     #22190F;
  --bg-elevated: #2A2018;

  --text:        #EDE8DE;
  --text-2:      #D4CEBD;
  --text-muted:  #9A9080;
  --text-dim:    #625848;

  --border:      rgba(237,232,222,0.08);
  --border-md:   rgba(237,232,222,0.13);
  --border-strong: rgba(237,232,222,0.24);

  --shadow-sm:   0 1px 6px rgba(0,0,0,0.4);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.6);

  --nav-bg:      rgba(22,18,16,0.95);
}

/* ─── RESET ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'EB Garamond', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  transition: background 0.35s ease, color 0.35s ease;
}

::selection { background: var(--gold); color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
abbr { text-decoration: none; border: none; }
ul, ol { list-style: none; }

.container { max-width: 1060px; margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 780px; margin: 0 auto; padding: 0 28px; }
.hidden { display: none !important; }

/* ─── SCROLLBAR ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 2px; }

/* ─── NAVBAR ────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--gold-border);
  transition: background 0.35s ease, box-shadow 0.3s ease;
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 28px;
  max-width: 1060px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
}
.nav-brand-name {
  font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.06em;
  line-height: 1;
  transition: color 0.2s ease;
}
.nav-brand-name span { color: var(--gold); }
.nav-brand:hover .nav-brand-name { color: var(--gold); }
.nav-brand-sub {
  font-family: 'EB Garamond', serif;
  font-size: 0.72rem;
  font-style: italic;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 2px;
  transition: color 0.2s ease, background 0.2s ease;
  text-transform: uppercase;
}
.nav-link:hover { color: var(--gold); background: var(--gold-bg); }

.theme-toggle {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  background: transparent;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
  margin-left: 8px;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-bg); }

.nav-cta {
  margin-left: 10px;
  padding: 8px 22px;
  background: var(--gold);
  color: #fff !important;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid var(--gold);
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 14px 28px 20px;
  border-top: 1px solid var(--gold-border);
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
}
.mobile-menu a {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 12px;
  color: var(--text-muted);
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-menu a:hover { background: var(--gold-bg); color: var(--gold); }
.mobile-cta {
  margin-top: 8px;
  background: var(--gold) !important;
  color: #fff !important;
  text-align: center;
}
.mobile-menu.open { display: flex; }

/* ─── GOLD RULE ─────────────────────────────────────────────────── */
.gold-rule {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-border-strong), transparent);
  margin: 0;
  border: none;
}
.gold-rule--short {
  width: 80px;
  background: var(--gold);
  height: 2px;
  border-radius: 1px;
}
.gold-rule--center { margin: 0 auto; }

/* ─── HERO ──────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 28px 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 45%, var(--gold-bg) 0%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  opacity: 0;
  animation: fade-up 0.8s 0.1s ease forwards;
}

.hero-title {
  font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 6px;
  opacity: 0;
  animation: fade-up 0.8s 0.2s ease forwards;
}

.hero-title-sub {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 32px;
  opacity: 0;
  animation: fade-up 0.8s 0.25s ease forwards;
}

.hero-rule-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin: 0 auto 30px;
  max-width: 480px;
  opacity: 0;
  animation: fade-up 0.8s 0.3s ease forwards;
}
.hero-rule-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-border-strong));
}
.hero-rule-line:last-child {
  background: linear-gradient(to left, transparent, var(--gold-border-strong));
}
.hero-rule-diamond {
  width: 7px; height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.hero-tagline {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 36px;
  opacity: 0;
  animation: fade-up 0.8s 0.35s ease forwards;
}

.hero-intro {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 44px;
  line-height: 1.75;
  opacity: 0;
  animation: fade-up 0.8s 0.4s ease forwards;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.8s 0.5s ease forwards;
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  animation: fade-up 1s 1s ease forwards;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-anim 2.5s ease infinite;
}
@keyframes scroll-anim { 0%,100%{opacity:1;} 50%{opacity:0.25;} }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── BUTTONS ───────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--gold);
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid var(--gold);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(184,149,42,0.35); }
.btn-primary:active { transform: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid var(--gold-border-strong);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-secondary:hover { background: var(--gold-bg); border-color: var(--gold); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: transparent;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid var(--gold-border-strong);
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-outline:hover { background: var(--gold); color: #fff; border-color: var(--gold); transform: translateY(-1px); }

/* ─── SECTION BASE ──────────────────────────────────────────────── */
.section { padding: 88px 0; }

.section-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.section-sub {
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
}

/* ─── PREAMBLE SECTION ──────────────────────────────────────────── */
.preamble-section { background: var(--bg); border-top: 1px solid var(--gold-border); border-bottom: 1px solid var(--gold-border); }

.preamble-text {
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.85;
  text-align: justify;
}
.preamble-text p + p { margin-top: 1.2em; }

/* ─── PILLARS ───────────────────────────────────────────────────── */
.pillars-section { background: var(--bg-2); }

.pillars-header { margin-bottom: 52px; }

.pillars-list { display: flex; flex-direction: column; gap: 0; }
.pillar-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--gold-border);
  align-items: start;
}
.pillar-item:first-child { border-top: 1px solid var(--gold-border); }

.pillar-numeral {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.05em;
  padding-top: 3px;
  text-align: right;
}
.pillar-body h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pillar-body p {
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ─── COMMITMENTS ───────────────────────────────────────────────── */
.commitments-section { background: var(--bg); }
.commitments-header { margin-bottom: 52px; }

.commitments-list { display: flex; flex-direction: column; gap: 0; }
.commitment-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.commitment-item:first-child { border-top: 1px solid var(--border); }
.commitment-num {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  color: var(--gold);
  text-align: right;
  padding-top: 2px;
}
.commitment-text {
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.75;
}

/* ─── SIGN SECTION ──────────────────────────────────────────────── */
.sign-section { background: var(--bg-2); border-top: 1px solid var(--gold-border); }

.sign-header { text-align: center; margin-bottom: 60px; }
.sign-header .section-eyebrow { display: block; text-align: center; }

.sign-doc-label {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  display: block;
  margin-bottom: 16px;
}

.sign-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}

/* Info panel */
.sign-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--gold-border);
  border-radius: 3px;
  overflow: hidden;
}
.info-card {
  padding: 22px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--gold-border);
}
.info-card:last-child { border-bottom: none; }
.info-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.info-card p {
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.info-card strong { color: var(--text); }

.process-steps { padding: 22px 24px; background: var(--bg-card); }
.process-steps h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.process-steps ol { display: flex; flex-direction: column; gap: 10px; }
.process-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.process-steps li span {
  width: 22px; height: 22px;
  border: 1px solid var(--gold-border-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  color: var(--gold);
  flex-shrink: 0;
}

/* Form card */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 3px;
  overflow: hidden;
}
.form-step { padding: 40px; }
.step-header {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--gold-border);
}
.step-header h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
  margin-top: 14px;
}

/* Step indicators */
.step-indicators { display: flex; align-items: center; gap: 0; }
.step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border-md);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  color: var(--text-dim);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.step-dot.active { background: var(--gold); border-color: var(--gold); color: #fff; }
.step-dot.done { background: #4a8c4a; border-color: #4a8c4a; color: #fff; font-size: 0.65rem; }
.step-line {
  flex: 1; height: 1px;
  background: var(--border-md);
  min-width: 24px;
  transition: background 0.3s ease;
}
.step-line.active { background: var(--gold); }

/* Form elements */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group--full { grid-column: 1 / -1; }

label {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

input[type="text"],
input[type="email"],
select,
.typed-sig-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border-md);
  border-radius: 2px;
  color: var(--text);
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.35s ease;
  outline: none;
  appearance: none;
}
input::placeholder, .typed-sig-input::placeholder {
  color: var(--text-dim);
  font-style: italic;
}
input:focus, select:focus, .typed-sig-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-bg);
}
input.invalid, select.invalid { border-color: #9b2727; box-shadow: 0 0 0 3px rgba(155,39,39,0.08); }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23968E80' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
select option { background: var(--bg-card); color: var(--text); }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.6;
}
.checkbox-row input[type="checkbox"] { display: none; }
.check-box {
  width: 18px; height: 18px; min-width: 18px;
  background: var(--bg);
  border: 1px solid var(--border-md);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 3px;
  transition: all 0.2s ease;
}
.checkbox-row input:checked ~ .check-box {
  background: var(--gold);
  border-color: var(--gold);
}
.checkbox-row input:checked ~ .check-box::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: sans-serif;
}

.err {
  font-family: 'EB Garamond', serif;
  font-size: 0.88rem;
  color: #9b2727;
  min-height: 16px;
  display: block;
  font-style: italic;
}

/* Buttons — form */
.btn-next, .btn-sign-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 13px 24px;
  background: var(--gold);
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid var(--gold);
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.btn-next:hover, .btn-sign-submit:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-1px); }
.btn-next:disabled, .btn-sign-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-back {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid var(--border-md);
  transition: all 0.2s ease;
}
.btn-back:hover { border-color: var(--gold-border-strong); color: var(--gold); }

/* Signature */
.sig-instruction {
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.sig-tabs {
  display: flex; gap: 0;
  border: 1px solid var(--gold-border);
  border-radius: 2px;
  overflow: hidden;
  width: fit-content;
  margin-bottom: 14px;
}
.sig-tab {
  padding: 7px 20px;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-right: 1px solid var(--gold-border);
  transition: all 0.2s ease;
}
.sig-tab:last-child { border-right: none; }
.sig-tab.active { background: var(--gold); color: #fff; }
.sig-tab:hover:not(.active) { background: var(--gold-bg); color: var(--gold); }

.canvas-wrap {
  position: relative;
  background: #fff;
  border: 1px solid var(--gold-border);
  border-radius: 2px;
  overflow: hidden;
}
.canvas-wrap:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-bg); }
#sig-canvas { display: block; width: 100%; height: 165px; touch-action: none; cursor: crosshair; }
.canvas-hint {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: #bbb;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.sig-actions {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px;
}
.btn-clear {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: transparent;
  color: var(--text-dim);
  border-radius: 2px;
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}
.btn-clear:hover { border-color: #9b2727; color: #9b2727; background: rgba(155,39,39,0.04); }
.sig-status { font-family: 'EB Garamond', serif; font-size: 0.9rem; font-style: italic; color: #4a8c4a; }

.typed-sig-wrap { display: flex; flex-direction: column; gap: 10px; }
.typed-preview {
  min-height: 90px;
  background: #fff;
  border: 1px solid var(--gold-border);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
  font-size: 2rem;
  color: #111;
  text-align: center;
}
.sig-nav { display: flex; gap: 12px; margin-top: 24px; }
.sig-nav .btn-next { flex: 1; }

/* Review */
.review-block {
  background: var(--bg-2);
  border: 1px solid var(--gold-border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 22px;
}
.review-row {
  display: flex; align-items: baseline;
  padding: 10px 16px;
  border-bottom: 1px solid var(--gold-border);
  font-size: 0.9rem;
}
.review-row:last-child { border-bottom: none; }
.review-row span {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  min-width: 100px;
}
.review-row strong {
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}
.review-sig { margin-bottom: 24px; }
.review-sig-label {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block; margin-bottom: 8px;
}
.review-sig-box {
  background: #fff;
  border: 1px solid var(--gold-border);
  border-radius: 2px;
  padding: 10px;
  min-height: 70px;
  display: flex; align-items: center; justify-content: center;
}
.review-sig-box img { max-height: 60px; object-fit: contain; }
.submit-area { display: flex; gap: 12px; }
.submit-area .btn-sign-submit { flex: 1; }

.spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── MODAL ─────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,8,5,0.78);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: modal-bg 0.3s ease;
}
@keyframes modal-bg { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--gold-border-strong);
  border-radius: 3px;
  padding: 52px 44px;
  max-width: 480px; width: 100%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(184,149,42,0.12);
  animation: modal-up 0.35s cubic-bezier(0.34,1.4,0.64,1) both;
}
@keyframes modal-up { from { transform: translateY(28px) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-gold-rule { width: 48px; height: 2px; background: var(--gold); margin: 0 auto 24px; border-radius: 1px; }
.modal-icon {
  width: 64px; height: 64px;
  border: 1px solid var(--gold-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: var(--gold);
}
.modal-box h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}
.modal-name {
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.modal-rule { width: 48px; height: 1px; background: var(--gold-border-strong); margin: 20px auto; }
.modal-msg {
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.modal-actions { display: flex; flex-direction: column; gap: 12px; }
.btn-download {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 28px;
  background: var(--gold); color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 2px; border: 1px solid var(--gold);
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-download:hover { background: var(--gold-dark); transform: translateY(-1px); }
.share-strip { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.share-btn {
  padding: 7px 16px;
  border: 1px solid var(--gold-border);
  border-radius: 2px;
  font-family: 'Cinzel', serif;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.share-btn:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-bg); }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.modal-close:hover { border-color: var(--gold-border); color: var(--gold); }

/* ─── FOOTER ────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--gold-border);
  padding: 56px 0 32px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.footer-brand .nav-brand-name { font-size: 1.05rem; }
.footer-brand p {
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.7;
  margin-top: 10px;
}
.footer-links { display: flex; gap: 60px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h5 {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.footer-col a, .footer-col button {
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
  background: none; border: none; padding: 0; cursor: pointer; text-align: left;
}
.footer-col a:hover, .footer-col button:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--gold-border);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom p {
  font-family: 'EB Garamond', serif;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-dim);
}
.footer-bottom a { color: var(--gold); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ─── DOCUMENTS SECTION ─────────────────────────────────────────── */
.documents-section {
  background: var(--bg);
  border-top: 1px solid var(--gold-border);
}

.documents-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: start;
}

.documents-list-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.document-tab {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
  text-align: left;
}

.document-tab:hover {
  border-color: var(--gold);
  background: var(--gold-bg);
  transform: translateX(4px);
}

.document-tab:focus-visible {
  box-shadow: 0 0 0 3px var(--gold-bg);
  border-color: var(--gold);
}

.document-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  transform: translateX(6px);
  box-shadow: var(--shadow-sm), 0 4px 12px rgba(184,149,42,0.15);
}

.document-tab .doc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  color: var(--gold);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.document-tab.active .doc-icon {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.document-tab .doc-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.document-tab h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.3;
}

.document-tab p {
  font-family: 'EB Garamond', serif;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
  opacity: 0.85;
}

.document-tab:not(.active) p {
  color: var(--text-muted);
}

/* Viewer Card */
.viewer-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gold-border);
  flex-wrap: wrap;
  gap: 16px;
}

.viewer-title-area {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.viewer-doc-label {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.viewer-header h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}

.btn-viewer-download {
  padding: 8px 16px;
  font-size: 0.62rem;
  border-radius: var(--radius);
}

.iframe-container {
  width: 100%;
  height: 650px;
  background: var(--bg-2);
  position: relative;
}

.iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
}

.viewer-footer {
  padding: 16px 24px;
  background: var(--bg-2);
  border-top: 1px solid var(--gold-border);
  text-align: center;
}

.viewer-footer p {
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  margin: 0;
}

.viewer-footer a {
  color: var(--gold);
  text-decoration: underline;
  font-weight: 500;
}

.viewer-footer a:hover {
  color: var(--gold-light);
}

/* ─── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .sign-layout { grid-template-columns: 1fr; }
  .sign-info { order: 2; }
  .documents-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .document-tab:hover {
    transform: none;
  }
  .document-tab.active {
    transform: none;
  }
}
@media (max-width: 680px) {
  .hero { padding: 100px 20px 60px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-step { padding: 28px 18px; }
  .sig-nav { flex-direction: column; }
  .submit-area { flex-direction: column; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-links { gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .modal-box { padding: 36px 20px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 280px; justify-content: center; }
  .pillar-item, .commitment-item { grid-template-columns: 36px 1fr; gap: 0 16px; }
  .iframe-container {
    height: 480px;
  }
  .viewer-header {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-viewer-download {
    width: 100%;
    justify-content: center;
  }
  .document-tab {
    padding: 14px 16px;
  }
}

/* ─── NEWS & PRESS SECTION ──────────────────────────────────────── */
.news-section {
  background: var(--bg);
  border-top: 1px solid var(--gold-border);
}

.news-section-header {
  text-align: center;
  margin-bottom: 12px;
}

/* Article wrapper */
.news-article {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

/* Hero figure */
.news-hero-figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border-bottom: 1px solid var(--gold-border);
  max-height: 520px;
}

.news-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

.news-hero-figure:hover .news-hero-img {
  transform: scale(1.02);
}

.news-hero-figure figcaption {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,8,5,0.75) 0%, transparent 100%);
  padding: 28px 24px 16px;
  font-family: 'EB Garamond', serif;
  font-size: 0.88rem;
  font-style: italic;
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
}

/* Article header (tag, date, title, deck) */
.news-article-header {
  padding: 36px 40px 24px;
  border-bottom: 1px solid var(--gold-border);
}

.news-tag {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gold);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 10px;
}

.news-date {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.news-article-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.news-article-deck {
  font-family: 'EB Garamond', serif;
  font-size: 1.12rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
  padding-top: 4px;
  border-left: 3px solid var(--gold);
  padding-left: 18px;
}

/* Article body */
.news-article-body {
  padding: 36px 40px 44px;
}

.news-article-body p {
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.82;
  margin-bottom: 1.4em;
}

.news-article-body strong { color: var(--text); font-weight: 600; }

.news-article-body a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.news-article-body a:hover { color: var(--gold-dark); }

/* Section subheadings within article */
.news-subheading {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 2.2em 0 1em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold-border);
}

/* Blockquote */
.news-blockquote {
  margin: 2em 0;
  padding: 22px 28px;
  background: var(--gold-bg);
  border-left: 3px solid var(--gold);
  border-radius: 0 2px 2px 0;
}

.news-blockquote p {
  font-family: 'EB Garamond', serif;
  font-size: 1.18rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 10px !important;
}

.news-blockquote cite {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Inline figures */
.news-inline-figure {
  margin: 0 0 1.6em 0;
  border: 1px solid var(--gold-border);
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-2);
}

.news-inline-figure--full {
  width: 100%;
  margin: 2em 0;
}

.news-inline-figure--left {
  float: left;
  width: 44%;
  margin: 0.4em 2em 1.2em 0;
}

.news-inline-figure--right {
  float: right;
  width: 44%;
  margin: 0.4em 0 1.2em 2em;
}

.news-inline-img {
  display: block;
  width: 100%;
  object-fit: cover;
  max-height: 340px;
  transition: transform 0.4s ease;
}

.news-inline-figure--full .news-inline-img {
  max-height: 480px;
  object-position: center;
}

.news-inline-figure:hover .news-inline-img {
  transform: scale(1.015);
}

.news-inline-figure figcaption {
  padding: 10px 14px;
  font-family: 'EB Garamond', serif;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.5;
  border-top: 1px solid var(--gold-border);
  background: var(--bg-2);
}

/* Clearfix for floated images */
.news-article-body::after {
  content: '';
  display: table;
  clear: both;
}

/* Next steps call-to-action box */
.news-next-steps {
  clear: both;
  margin-top: 2.6em;
  padding: 28px 32px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: 3px;
  text-align: center;
}

.news-next-heading {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.news-next-steps p {
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px !important;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Photo credit inside figcaption */
.news-photo-credit {
  display: block;
  margin-top: 5px;
  font-family: 'Cinzel', serif;
  font-size: 0.5rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.6;
}

.news-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* ─── RESPONSIVE: News ──────────────────────────────────────────── */
@media (max-width: 700px) {
  .news-article-header,
  .news-article-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .news-article-title { font-size: 1.18rem; }
  .news-article-deck { font-size: 1rem; }

  .news-inline-figure--left,
  .news-inline-figure--right {
    float: none;
    width: 100%;
    margin: 1.2em 0;
  }

  .news-blockquote { padding: 16px 18px; }
  .news-next-steps { padding: 20px 18px; }
  .news-hero-figure figcaption { font-size: 0.82rem; }
}
