/* =============================================
   JEFF LEICHLEITER CAMPAIGN SITE
   electjeff.org
   ============================================= */

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

:root {
  --red:        #bf2033;
  --red-dark:   #9a1828;
  --gold:       #d4a030;
  --gold-light: #e8b84a;
  --navy:       #0e1c3a;
  --navy-mid:   #162850;
  --charcoal:   #2c2c2c;
  --white:      #ffffff;
  --off-white:  #f5f4f0;
  --text:       #222222;
  --text-muted: #666666;
  --font-display: 'Alfa Slab One', serif;
  --font-body:    'Open Sans', sans-serif;
  --transition:   0.3s ease;
  --shadow:       0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  padding: 0.85em 2.2em;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(191,32,51,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.btn-donate {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 1.5rem auto;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-align: center;
  padding: 1em 2em;
  border-radius: 4px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-donate:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212,160,48,0.45);
}

/* ---- NAVBAR ---- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: var(--charcoal);
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.02em;
}
.logo-sub {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }

.nav-donate {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0.5em 1.2em !important;
  border-radius: 4px;
  font-family: var(--font-display) !important;
  font-size: 0.875rem !important;
  transition: background var(--transition) !important;
}
.nav-donate:hover { background: var(--red-dark) !important; }

.nav-login {
  font-size: 0.75rem !important;
  color: rgba(255,255,255,0.4) !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.18) !important;
  padding: 0.4em 0.9em !important;
  border-radius: 4px;
  transition: color var(--transition), border-color var(--transition) !important;
}
.nav-login:hover { color: rgba(255,255,255,0.85) !important; border-color: rgba(255,255,255,0.45) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 2rem;
}

.hero-bg-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  animation: kenBurns 30s infinite alternate ease-in-out;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(10, 20, 50, 0.88) 0%,
    rgba(10, 20, 50, 0.75) 50%,
    rgba(10, 20, 50, 0.35) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4rem;
  padding-top: 80px;
  padding-bottom: 60px;
}

.hero-content {
  text-align: left;
  /* The 'fadeInUp' animation is now applied to child elements for a staggered effect */
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  animation: fadeInUp 0.9s 0.2s both;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  animation: fadeInUp 0.9s 0.4s both;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.78);
  margin-bottom: 2.5rem;
  letter-spacing: 0.03em;
  animation: fadeInUp 0.9s 0.6s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.9s 0.8s both;
}

/* Jeff's portrait */
.hero-photo-wrap {
  position: relative;
  flex-shrink: 0;
  animation: slideInFromRight 1s cubic-bezier(0.25, 1, 0.5, 1) 0.5s both;
}

.hero-photo-frame {
  width: clamp(240px, 22vw, 340px);
  border-radius: 8px;
  overflow: hidden;
  border: 4px solid var(--red);
  box-shadow: 0 12px 48px rgba(0,0,0,0.55), 0 0 0 8px rgba(255,255,255,0.06);
}

.hero-photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-photo-badge {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35em 1.2em;
  border-radius: 3px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(191,32,51,0.5);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeInUp 1.5s 1s both;
}

.scroll-arrow {
  width: 18px;
  height: 18px;
  border-right: 2px solid rgba(255,255,255,0.45);
  border-bottom: 2px solid rgba(255,255,255,0.45);
  transform: rotate(45deg);
  animation: bounce 1.8s infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(5px); }
}

/* ---- PILLARS BAR ---- */
.pillars-bar {
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1.2rem 2rem;
  flex-wrap: wrap;
}

.pillar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 2.5rem;
}
.pillar-icon {
  font-size: 1.6rem;
  color: #d4a030;
  width: 36px;
  text-align: center;
}
.pillar span {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pillar-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
}

/* ---- BIO SCROLLYTELLING — continuous cascade ---- */

/* Section height is determined by the content stream (right column).
   The left visual panel is sticky and stretches alongside it. */
.bio-scroll-section {
  display: grid;
  grid-template-columns: 44% 56%;
  align-items: start;
  position: relative;
}

/* ── LEFT: sticky visual panel ── */
.bio-visual-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  align-self: start;
  overflow: hidden;
  background: #050810;
}

/* Photos stack; only .active is visible */
.bio-vp-imgs {
  position: absolute;
  inset: 0;
}
.bio-vp-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
              transform 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.bio-vp-img.active {
  opacity: 1;
  transform: scale(1);
}

/* Gradient overlay — dark on right so it bleeds into the white content column */
.bio-vp-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(5, 8, 16, 0.18) 0%,
    rgba(5, 8, 16, 0.55) 60%,
    rgba(5, 8, 16, 0.94) 100%
  );
  pointer-events: none;
}

/* Chapter identity block — always visible, updates as chapters scroll into view */
.bio-vp-identity {
  position: absolute;
  bottom: 3rem;
  left: 2.5rem;
  z-index: 10;
}
/* Stack all labels; only .active is shown */
.bio-vp-ch {
  position: absolute;
  bottom: 0;
  left: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}
.bio-vp-ch.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}
.bio-vp-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4rem, 6vw, 7rem);
  line-height: 1;
  color: rgba(255,255,255,0.09);
  letter-spacing: -0.02em;
  margin-bottom: 0.1rem;
}
.bio-vp-name {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

/* Vertical progress bar on the right edge of the visual panel */
.bio-vp-track {
  position: absolute;
  right: 0;
  top: 12%;
  height: 76%;
  width: 2px;
  background: rgba(255,255,255,0.08);
  z-index: 10;
  border-radius: 2px;
}
.bio-vp-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--gold), var(--red));
  border-radius: 2px;
  transition: height 0.1s linear;
  will-change: height;
}

/* ── RIGHT: scrolling content stream ── */
.bio-content-stream {
  background: var(--white);
  border-left: 1px solid rgba(0,0,0,0.05);
}

/* Each chapter block — tall enough to breathe, short enough to cascade naturally */
.bio-stream-ch {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 4.5rem 7rem 4rem;
  position: relative;
}

/* Thin separator between chapters */
.bio-stream-ch + .bio-stream-ch {
  border-top: 1px solid rgba(0,0,0,0.07);
}

/* Chapter number watermark — always visible, orients the reader */
.bio-stream-ch::before {
  content: attr(data-stream-ch);
  position: absolute;
  top: 2.5rem;
  left: 4rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ── Cascade items ── */
/* Start hidden + shifted down; JS adds .visible with velocity-tuned duration */
.cascade-item {
  opacity: 0;
  transform: translateY(32px);
  /* duration/delay overridden per-element by JS */
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.cascade-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Eyebrow tag */
.bio-sc-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 1.3rem;
}

/* Big headline — the story beat */
.bio-sc-headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: 1.8rem;
}

/* Body copy */
.bio-sc-body {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 480px;
  margin-bottom: 2rem;
}
.bio-sc-body strong { color: var(--text); font-weight: 600; }

/* Badge / tag line */
.bio-sc-tag {
  display: inline-flex;
}
.bio-sc-tag span {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid rgba(14,28,58,0.22);
  padding: 0.48em 1.1em;
  border-radius: 2px;
}

/* CTA variant in chapter 4 */
.bio-sc-cta-wrap { display: block; }
.bio-sc-cta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: var(--white);
  background: var(--red);
  padding: 0.85em 2em;
  border-radius: 4px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.bio-sc-cta:hover {
  background: var(--red-dark);
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(191,32,51,0.4);
}

/* Reduced motion — skip all transitions, show items immediately */
@media (prefers-reduced-motion: reduce) {
  .bio-vp-img,
  .bio-vp-ch,
  .cascade-item,
  .bio-vp-fill {
    transition: none !important;
    animation:  none !important;
  }
  .cascade-item { opacity: 1; transform: none; }
  .bio-vp-img.active { opacity: 1; transform: scale(1); }
}

/* ---- SECTIONS ---- */
.section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
  font-weight: 700;
}
.section-eyebrow.light { color: var(--gold); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
  color: var(--navy);
}
.section-title.light { color: var(--white); }

.section-intro {
  max-width: 680px;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

/* ---- ABOUT CARDS ---- */
.about-section {
  background: var(--off-white);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: 8px;
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--red);
  transition: transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(30px);
}
.card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.2rem;
}
.card-icon svg { width: 100%; height: 100%; }

.card-photo {
  width: calc(100% + 4rem);
  margin: -2.2rem -2rem 1.5rem;
  overflow: hidden;
  border-radius: 5px 5px 0 0;
  max-height: 200px;
}
.card-photo img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.card p strong { color: var(--text); }

/* ---- PRIORITIES ---- */
.priorities-section {
  background: var(--navy);
}
.priorities-section .section-eyebrow { color: var(--gold); }
.priorities-section .section-title { color: var(--white); }

.priorities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.priority-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 2.2rem 2rem;
  position: relative;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  opacity: 0;
  transform: translateY(30px);
}
.priority-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, background var(--transition), border-color var(--transition);
}
.priority-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: var(--gold);
  transform: translateY(-4px);
}

.priority-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: rgba(255,255,255,0.06);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
}

.priority-icon {
  display: block;
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
  color: #bf2033;
}

.priority-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.priority-card p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
}

/* ---- DONATE ---- */
.donate-section {
  background: linear-gradient(160deg, var(--navy-mid) 0%, var(--navy) 100%);
  text-align: center;
  padding: 5rem 2rem;
}

.donate-inner {
  max-width: 640px;
  margin: 0 auto;
}

.donate-sub {
  color: rgba(255,255,255,0.7);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.donate-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.amount-btn {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.25);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 0.6em 1.4em;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}
.amount-btn:hover,
.amount-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.amount-btn.other { border-style: dashed; }

.custom-amount-wrap {
  margin-bottom: 1rem;
}
.custom-amount-wrap input {
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 1.1rem;
  padding: 0.7em 1.2em;
  border-radius: 4px;
  width: 200px;
  text-align: center;
  outline: none;
}
.custom-amount-wrap input::placeholder { color: rgba(255,255,255,0.45); }
.custom-amount-wrap input:focus { border-color: var(--gold); }

.hidden { display: none; }

.donate-legal {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  margin-top: 0.5rem;
}

.donate-mail {
  margin-top: 2rem;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 1.2rem 1.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}
.donate-mail strong { color: var(--gold); }
.donate-mail em { font-style: normal; color: var(--white); }

/* ---- CONNECT ---- */
.connect-section {
  background: var(--off-white);
}

.connect-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.connect-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.connect-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.connect-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.connect-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

.connect-form {
  background: var(--white);
  border-radius: 8px;
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.1rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"] {
  padding: 0.75em 1em;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus { border-color: var(--red); }

.checkbox-group label {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.6rem;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  cursor: pointer;
  font-weight: 400 !important;
}
.checkbox-group input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--red);
}

.full-width { width: 100%; text-align: center; }

.form-legal {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
  line-height: 1.5;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--charcoal);
  padding: 3rem 2rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem 3rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
}
.footer-tagline {
  font-size: 0.8rem;
  color: var(--gold);
  font-style: italic;
}
.footer-office {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: center;
}
.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }

.footer-social {
  display: flex;
  gap: 0.75rem;
}
.social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: background var(--transition), color var(--transition);
}
.social-btn svg { width: 16px; height: 16px; }
.social-btn:hover {
  background: var(--red);
  color: var(--white);
}

.footer-legal {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-legal p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
}
.footer-legal a { color: rgba(255,255,255,0.5); text-decoration: underline; }
.footer-legal a:hover { color: var(--white); }

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInFromRight {
  from { opacity: 0; transform: translateX(80px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes kenBurns {
  from { transform: scale(1.05); }
  to   { transform: scale(1); }
}

/* Replaced the single hero animation with staggered animations on child elements */
/* .hero-content { animation: fadeInUp 0.9s 0.2s both; } */

/* ---- AUTH VISIBILITY ---- */
/* Hide portal links by default */
.nav-portal {
  display: none !important;
}

/* When user is logged in, show portal links and hide login link */
body.logged-in .nav-portal {
  display: flex !important; /* or block, inline-flex, etc. */
}
body.logged-in .nav-login {
  display: none !important;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .connect-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-links { justify-content: flex-start; }

  /* Bio — stack visual above content on tablet */
  .bio-scroll-section {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .bio-visual-panel {
    position: relative;
    height: 50vw;
    max-height: 60vh;
    min-height: 260px;
  }
  .bio-vp-track { display: none; }
  .bio-vp-identity { bottom: 1.5rem; left: 1.5rem; }
  .bio-vp-num { font-size: 3.5rem; }

  .bio-stream-ch {
    min-height: auto;
    padding: 4rem 2.5rem 4rem 2rem;
  }
  .bio-stream-ch::before { left: 2rem; }
  .bio-sc-headline { font-size: clamp(2.2rem, 6vw, 3rem); }
  .bio-sc-body { max-width: 100%; }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--charcoal);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; }
  .nav-toggle { display: flex; z-index: 1001; position: relative; }

  .pillars-bar {
    gap: 1rem;
  }
  .pillar { padding: 0.4rem 1rem; }
  .pillar-divider { display: none; }

  .form-row { grid-template-columns: 1fr; }

  .hero-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 2.5rem;
    padding-bottom: 80px;
  }
  .hero-content { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-photo-frame { width: clamp(180px, 55vw, 260px); }
  .hero-photo-wrap { margin-bottom: 1rem; }
}

@media (max-width: 480px) {
  .section { padding: 3.5rem 1.2rem; }
  .connect-form { padding: 1.5rem 1.2rem; }
  .hero { padding: 0 1.2rem; }

  /* Bio — small phones */
  .bio-visual-panel { max-height: 50vh; }
  .bio-stream-ch { padding: 3rem 1.4rem 3rem; }
  .bio-stream-ch::before { left: 1.4rem; }
  .bio-sc-headline { font-size: clamp(2rem, 8vw, 2.6rem); }
  .bio-sc-body { font-size: 0.9rem; }
}
