/* TIVC Strategic Planning Stylesheet v2.0 */
/* The Innovation Vanguard Collective */
/* Uses official TIVC Brand Kit: Platinum Vanguard */

@import url('TIVC_Brand/TIVC_brand.css');

:root {
  /* Self-hosted font overrides (no Google dependency) */
  --tivc-font-display: Georgia, 'Times New Roman', 'Palatino Linotype', serif;
  --tivc-font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  /* Map site tokens to official brand variables */
  --bg-primary: var(--tivc-bg-primary);
  --bg-card: var(--tivc-bg-card);
  --bg-elevated: var(--tivc-bg-elevated);
  --border: var(--tivc-border);
  --text-primary: var(--tivc-text-primary);
  --text-secondary: var(--tivc-text-secondary);
  --text-muted: var(--tivc-text-muted);
  --accent: var(--tivc-electric-teal);
  --accent-hover: var(--tivc-teal-accent);
  --accent-dark: var(--tivc-teal-dark);
  --platinum: var(--tivc-platinum);
  --silver: var(--tivc-bright-silver);
  --midnight: var(--tivc-midnight);
  --navy: var(--tivc-deep-navy);
  --white: var(--tivc-white);
  --shadow-card: var(--tivc-shadow-card);
  --shadow-heavy: var(--tivc-shadow-heavy);
  --glow-platinum: var(--tivc-glow-platinum);
  --glow-teal: var(--tivc-glow-teal);
  --radius: var(--tivc-radius-md);
  --transition: var(--tivc-transition);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--tivc-font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.7;
  font-weight: var(--tivc-weight-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--tivc-font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--silver);
  letter-spacing: 1px;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

p { margin-bottom: 1rem; font-size: 1.05rem; color: var(--text-secondary); }

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ========== NAVIGATION ========== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(6, 10, 18, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
nav.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  background: rgba(6, 10, 18, 0.97);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 2rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--silver); text-decoration: none;
}
.nav-logo-mark {
  height: 36px; width: auto;
}
.nav-logo-text {
  display: flex; flex-direction: column; line-height: 1.15;
}
.nav-logo-text span:first-child {
  font-family: var(--tivc-font-display);
  font-size: 1.5rem; color: var(--silver);
  letter-spacing: 3px;
}

.nav-logo .brand-full-sm {
  font-family: var(--tivc-font-body);
  font-size: 0.55rem; letter-spacing: 0.18em;
  line-height: 1; margin-top: 0.15rem;
  color: var(--text-muted); text-transform: uppercase;
  font-weight: var(--tivc-weight-medium);
}
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.88rem; font-weight: var(--tivc-weight-medium);
  letter-spacing: 0.08em; color: var(--text-secondary);
  text-transform: uppercase; position: relative; padding: 0.3rem 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  transition: var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--platinum) !important; color: var(--midnight) !important;
  padding: 0.5rem 1.4rem !important; border-radius: 6px;
  font-weight: var(--tivc-weight-semi) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--silver) !important;
  box-shadow: var(--glow-platinum);
}

.hamburger {
  display: none; cursor: pointer; flex-direction: column; gap: 5px;
}
.hamburger span {
  width: 28px; height: 2px; background: var(--platinum);
  transition: var(--transition);
}

/* ========== HERO SECTIONS ========== */
.hero {
  min-height: 92vh; display: flex; align-items: center;
  padding-top: 80px; position: relative; overflow: hidden;
}
.hero-home {
  background: linear-gradient(160deg, var(--bg-primary) 0%, var(--midnight) 40%, var(--navy) 100%);
}
.hero-home::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(0, 229, 204, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 4rem 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center; position: relative; z-index: 1;
}
.hero-text { animation: fadeInUp 0.8s ease-out; }
.hero-tagline {
  font-family: var(--tivc-font-body);
  font-size: 0.85rem; font-weight: var(--tivc-weight-semi);
  text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--accent); margin-bottom: 0.8rem;
}

.hero-title { margin-bottom: 1.5rem; color: var(--white); }
.hero-title em {
  font-style: italic; color: var(--accent);
  font-family: var(--tivc-font-display);
}
.hero-desc {
  font-size: 1.15rem; line-height: 1.8;
  color: var(--text-secondary); max-width: 520px; margin-bottom: 2rem;
}
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  animation: fadeInUp 1s ease-out 0.2s both;
}
.hero-graphic {
  width: 420px; height: 420px; position: relative;
}
.hero-circle {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(192, 192, 192, 0.15);
  animation: gentlePulse 6s ease-in-out infinite;
}
.hero-circle:nth-child(1) { width: 100%; height: 100%; border-color: rgba(192,192,192,0.1); }
.hero-circle:nth-child(2) { width: 75%; height: 75%; top: 12.5%; left: 12.5%; border-color: rgba(0,229,204,0.2); animation-delay: 1s; }
.hero-circle:nth-child(3) { width: 50%; height: 50%; top: 25%; left: 25%; border-color: rgba(192,192,192,0.25); animation-delay: 2s; }
.hero-circle-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 120px; height: 120px; border-radius: 50%;
  background: linear-gradient(135deg, var(--midnight), var(--navy));
  border: 1px solid rgba(192, 192, 192, 0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--platinum); font-family: var(--tivc-font-display);
  font-size: 1.8rem; letter-spacing: 4px;
  box-shadow: 0 0 40px rgba(0, 229, 204, 0.15), var(--shadow-card);
}

/* Subpage hero */
.hero-sub {
  min-height: auto;
  background: linear-gradient(160deg, var(--bg-primary) 0%, var(--midnight) 50%, var(--navy) 100%);
  color: var(--text-primary); text-align: center;
  position: relative;
}
.hero-sub::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(0, 229, 204, 0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero-sub h1 { color: var(--white); }
.hero-sub p { color: var(--text-secondary); }
.hero-sub-inner {
  max-width: 800px; margin: 0 auto; padding: 4rem 2rem 2.5rem;
  position: relative; z-index: 1;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block; padding: 0.85rem 2rem;
  border-radius: 6px; font-weight: var(--tivc-weight-semi);
  font-size: 0.9rem; letter-spacing: 0.08em;
  text-transform: uppercase; cursor: pointer;
  transition: var(--transition); border: 1px solid transparent;
  font-family: var(--tivc-font-body);
}
.btn-primary {
  background: var(--platinum); color: var(--midnight);
  border-color: var(--platinum);
}

.btn-primary:hover {
  background: var(--white); border-color: var(--white);
  box-shadow: var(--glow-platinum); transform: translateY(-2px);
}
.btn-outline {
  background: transparent; color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: rgba(0, 229, 204, 0.1);
  box-shadow: var(--glow-teal); transform: translateY(-2px);
}
.btn-light {
  background: var(--white); color: var(--midnight);
  border-color: var(--white);
}
.btn-light:hover {
  background: var(--silver); transform: translateY(-2px);
  box-shadow: var(--glow-platinum);
}
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ========== SECTIONS ========== */
section { padding: 5rem 0; }
.section-header {
  text-align: center; max-width: 700px; margin: 0 auto 3.5rem;
}
.section-label {
  font-family: var(--tivc-font-body);
  font-size: 0.8rem; font-weight: var(--tivc-weight-semi);
  text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--accent); margin-bottom: 0.8rem;
}

.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }
.section-divider {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  margin: 1.5rem auto; border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 229, 204, 0.3);
}
.bg-alt { background: var(--bg-card); }
.bg-forest {
  background: linear-gradient(160deg, var(--midnight) 0%, var(--navy) 100%);
  position: relative;
}
.bg-forest::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(0,229,204,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.bg-forest h2, .bg-forest h3 { color: var(--white); }
.bg-forest p { color: var(--text-secondary); }
.bg-forest .section-label { color: var(--accent); }

/* ========== CARD GRIDS ========== */
.card-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.card {
  background: var(--bg-card);
  border-radius: var(--tivc-radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(192, 192, 192, 0.15);
  box-shadow: var(--shadow-card);
}
.card-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--midnight));
  border: 1px solid rgba(0, 229, 204, 0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; font-size: 1.5rem; color: var(--accent);
  box-shadow: 0 0 15px rgba(0, 229, 204, 0.1);
}
.card h3 { margin-bottom: 0.8rem; color: var(--white); }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* ========== VALUES ROW ========== */
.values-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  position: relative; z-index: 1;
}
.value-item { text-align: center; padding: 2rem 1rem; }
.value-number {
  font-family: var(--tivc-font-display);
  font-size: 3rem; color: var(--accent);
  line-height: 1;
}
.value-item h4 {
  font-family: var(--tivc-font-display);
  font-size: 1.15rem; margin: 0.8rem 0 0.4rem;
  color: var(--white);
}
.value-item p { font-size: 0.9rem; color: var(--text-muted); }

/* ========== PILLARS SECTION ========== */
.pillars-row {
  display: flex; gap: 0; overflow: hidden;
  border-radius: var(--tivc-radius-lg);
  border: 1px solid var(--border);
}
.pillar {
  flex: 1; padding: 3rem 2rem; text-align: center;
  transition: var(--transition); cursor: default;
  position: relative;
}
.pillar:nth-child(1) { background: var(--bg-primary); }
.pillar:nth-child(2) { background: var(--midnight); }
.pillar:nth-child(3) { background: var(--navy); }
.pillar:nth-child(4) {
  background: linear-gradient(180deg, var(--navy), rgba(0,229,204,0.08));
}
.pillar:hover { z-index: 2; }
.pillar:hover h3 { color: var(--accent); }
.pillar h3 { color: var(--platinum); margin-bottom: 0.6rem; font-size: 1.4rem; transition: var(--transition); }
.pillar p { font-size: 0.9rem; color: var(--text-muted); }
.pillar + .pillar { border-left: 1px solid var(--border); }

/* ========== INDUSTRY CARDS ========== */
.industry-card {
  display: flex; align-items: center; gap: 2rem;
  padding: 2rem; background: var(--bg-card);
  border-radius: var(--tivc-radius-lg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-dark);
  transition: var(--transition);
}

.industry-card:hover {
  border-left-color: var(--accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}
.industry-icon {
  width: 72px; height: 72px; min-width: 72px;
  border-radius: var(--tivc-radius-md);
  background: linear-gradient(135deg, var(--midnight), var(--navy));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.industry-card h3 { margin-bottom: 0.4rem; color: var(--white); }
.industry-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.industry-stack { display: flex; flex-direction: column; gap: 1.5rem; }

/* ========== TIMELINE ========== */
.timeline { position: relative; padding-left: 3rem; }
.timeline::before {
  content: ''; position: absolute; left: 12px; top: 0; bottom: 0;
  width: 1px; background: linear-gradient(180deg, var(--accent), var(--border));
}
.timeline-item {
  position: relative; margin-bottom: 2.5rem;
  padding: 1.5rem 2rem; background: var(--bg-card);
  border-radius: var(--tivc-radius-lg);
  border: 1px solid var(--border);
}
.timeline-item::before {
  content: ''; position: absolute; left: -2.35rem; top: 1.8rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg-primary);
  box-shadow: 0 0 8px rgba(0, 229, 204, 0.4);
}

.timeline-item h4 {
  font-family: var(--tivc-font-display);
  font-size: 1.2rem; color: var(--accent); margin-bottom: 0.3rem;
}
.timeline-item p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* ========== GIVING PAGE ========== */
.giving-model {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: center;
}
.giving-chart {
  width: 280px; height: 280px; border-radius: 50%;
  background: conic-gradient(
    var(--midnight) 0deg 180deg,
    var(--accent) 180deg 270deg,
    var(--platinum) 270deg 360deg
  );
  margin: 0 auto; position: relative;
  box-shadow: 0 0 40px rgba(0, 229, 204, 0.12);
}
.giving-chart-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 160px; height: 160px; border-radius: 50%;
  background: var(--bg-primary); display: flex;
  align-items: center; justify-content: center;
  flex-direction: column;
}
.giving-chart-center strong {
  font-family: var(--tivc-font-display);
  font-size: 1.6rem; color: var(--platinum);
}
.giving-chart-center span { font-size: 0.8rem; color: var(--text-muted); }

.giving-legend { margin-top: 2rem; }
.legend-item {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 0.8rem; font-size: 0.95rem; color: var(--text-secondary);
}
.legend-dot {
  width: 14px; height: 14px; border-radius: 50%; min-width: 14px;
}

/* ========== CONTACT FORM ========== */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: start;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; margin-bottom: 0.4rem;
  font-weight: var(--tivc-weight-semi); font-size: 0.85rem;
  color: var(--text-secondary); text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--tivc-font-body);
  font-size: 0.95rem; background: var(--bg-elevated);
  color: var(--text-primary);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 229, 204, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group select option { background: var(--bg-elevated); color: var(--text-primary); }

.contact-info-card {
  background: var(--bg-card); color: var(--text-primary);
  padding: 2.5rem; border-radius: var(--tivc-radius-lg);
  border: 1px solid var(--border);
}
.contact-info-card h3 { color: var(--white); margin-bottom: 1.5rem; }
.contact-detail {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-detail-icon {
  width: 40px; height: 40px; min-width: 40px;
  border-radius: 50%; background: rgba(0, 229, 204, 0.08);
  border: 1px solid rgba(0, 229, 204, 0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.contact-detail h4 {
  font-family: var(--tivc-font-body);
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-muted);
  font-weight: var(--tivc-weight-semi); margin-bottom: 0.2rem;
}
.contact-detail p { color: var(--text-primary); margin: 0; font-size: 0.95rem; }

/* ========== FOOTER ========== */
footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand {
  font-family: var(--tivc-font-display);
  font-size: 1.5rem; color: var(--platinum);
  margin-bottom: 0.3rem; letter-spacing: 3px;
}
.footer-brand-full {
  font-family: var(--tivc-font-body);
  font-size: 0.7rem; font-weight: var(--tivc-weight-semi);
  color: var(--text-muted); margin-bottom: 1rem;
  letter-spacing: 0.15em; text-transform: uppercase;
}
.footer-brand-full .brand-highlight { color: var(--accent); }
footer p { font-size: 0.9rem; color: var(--text-muted); }

footer h4 {
  font-family: var(--tivc-font-body);
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--platinum);
  margin-bottom: 1rem; font-weight: var(--tivc-weight-semi);
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 0.6rem; }
footer ul a { color: var(--text-muted); font-size: 0.9rem; }
footer ul a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem; text-align: center; font-size: 0.85rem;
  color: var(--text-subtle);
}
.footer-glow {
  height: 1px; margin-bottom: 2rem;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}

/* ========== BRAND NAME CLASSES ========== */
.brand-full {
  font-family: var(--tivc-font-display);
  color: var(--platinum); letter-spacing: 1px;
}
.brand-full .brand-the {
  font-style: italic; color: var(--text-muted);
}
.brand-full .brand-highlight {
  color: var(--accent);
}

.brand-full-lg {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.3; display: block;
  margin-bottom: 0.3rem;
}
.brand-full-sm {
  font-size: 0.85rem; display: block;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); font-weight: var(--tivc-weight-medium);
  font-family: var(--tivc-font-body);
}
.hero-brand-block { margin-bottom: 1.2rem; }
.hero-brand-block .brand-full-lg {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 0.2rem;
}
.hero-sub .brand-full-lg { color: var(--platinum); }
.hero-sub .brand-full .brand-the { color: var(--text-muted); }
.hero-sub .brand-full .brand-highlight { color: var(--accent); }

/* ========== COMPACT MASTHEAD (shared across all pages) ========== */
.masthead {
  text-align: center; padding: 80px 2rem 2rem; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--bg-primary) 0%, var(--midnight) 40%, var(--navy) 100%);
}
.masthead::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--platinum), transparent);
  box-shadow: var(--glow-platinum); z-index: 2;
}
.masthead-inner { position: relative; z-index: 1; }
.masthead h1 {
  font-family: var(--tivc-font-display); font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white); margin: 0 0 0.3rem; font-weight: 400; letter-spacing: 1px;
}
.masthead .brand-the { font-style: italic; color: var(--text-muted); }
.masthead .brand-highlight { color: var(--accent); }
.masthead .tagline {
  font-size: 0.75rem; color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.35em; margin: 0; font-weight: 600;
  font-family: var(--tivc-font-body);
}
.masthead .subtitle {
  font-family: var(--tivc-font-display); font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--platinum); margin: 0.6rem 0 0; font-weight: 400;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes gentlePulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.03); }
}
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin: 0 auto 2rem; }
  .btn-group { justify-content: center; }
  .hero-graphic { width: 300px; height: 300px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-row { flex-direction: column; }
  .pillar + .pillar { border-left: none; border-top: 1px solid var(--border); }
  .giving-model { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-primary); flex-direction: column;
    justify-content: center; align-items: center;
    gap: 2rem; z-index: 999;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; z-index: 1001; }
  .values-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 3rem 0; }
  .hero { min-height: 80vh; }
  .hero-sub { min-height: auto; }
}


/* ========== BRAND KIT: HEX PATTERN, PARTICLES, GLOW ========== */
.hex-bg {
  position: absolute; inset: 0; opacity: 0.04; pointer-events: none;
}
.particle-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.particle {
  position: absolute; width: 2px; height: 2px;
  background: var(--platinum); border-radius: 50%;
  animation: tivcFloat 8s infinite linear;
}
.particle:nth-child(1){left:12%;top:30%;animation-delay:0s;animation-duration:6s}
.particle:nth-child(2){left:28%;top:65%;animation-delay:1s;animation-duration:8s}
.particle:nth-child(3){left:45%;top:20%;animation-delay:2s;animation-duration:7s}
.particle:nth-child(4){left:62%;top:72%;animation-delay:0.5s;animation-duration:9s}
.particle:nth-child(5){left:78%;top:38%;animation-delay:1.5s;animation-duration:6.5s}
.particle:nth-child(6){left:88%;top:55%;animation-delay:3s;animation-duration:7.5s}
.particle:nth-child(7){left:5%;top:80%;animation-delay:2.5s;animation-duration:8.5s}
.particle:nth-child(8){left:55%;top:10%;animation-delay:4s;animation-duration:7s}
@keyframes tivcFloat {
  0%{transform:translateY(0) translateX(0);opacity:0}
  10%{opacity:0.5}90%{opacity:0.5}
  100%{transform:translateY(-180px) translateX(25px);opacity:0}
}

.glow-line {
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--platinum), transparent);
  box-shadow: var(--glow-platinum);
  z-index: 2;
}
.glow-line-teal {
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: var(--glow-teal);
}

/* Hero with brand elements */
.hero-home, .hero-sub {
  position: relative; overflow: hidden;
}

/* Shield Logo in hero center */
.hero-shield {
  display: flex; flex-direction: column; align-items: center;
  animation: fadeInUp 1s ease-out 0.2s both;
}
.hero-shield svg { filter: drop-shadow(0 0 20px rgba(192,192,192,0.15)); }
.hero-shield-label {
  font-family: var(--tivc-font-display);
  font-size: 0.9rem; color: var(--platinum);
  letter-spacing: 3px; margin-top: 1rem;
  text-transform: uppercase;
}


/* ========== LIGHT / DARK THEME TOGGLE ========== */
body {
  transition: background-color 0.5s ease, color 0.5s ease;
}
body.light-mode {
  --bg-primary: #f4f5f7;
  --bg-card: #ffffff;
  --bg-elevated: #ebedf0;
  --border: #d0d4da;
  --text-primary: #1a1f2e;
  --text-secondary: #3a4050;
  --text-muted: #6b7280;
  --midnight: #e8ecf1;
  --navy: #dce1e8;
  --white: #0a1628;
  --platinum: #2a3040;
  --silver: #1a2030;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.08);
}
body.light-mode nav {
  background: rgba(244, 245, 247, 0.95);
  border-bottom-color: #d0d4da;
}
body.light-mode nav.scrolled {
  background: rgba(244, 245, 247, 0.98);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
body.light-mode .nav-logo-text span:first-child { color: #1a2030; }
body.light-mode .nav-links a { color: #3a4050; }
body.light-mode .nav-links a:hover { color: #0a1628; }
body.light-mode .nav-cta {
  background: #1a2030 !important; color: #f4f5f7 !important;
}
body.light-mode .nav-cta:hover {
  background: #0a1628 !important;
}
body.light-mode .masthead,
body.light-mode .hero-home {
  background: linear-gradient(160deg, #e8ecf1 0%, #dce1e8 40%, #d0d6e0 100%);
}
body.light-mode .hero-sub {
  background: linear-gradient(160deg, #e8ecf1 0%, #dce1e8 50%, #d0d6e0 100%);
}
body.light-mode .bg-alt { background: #ebedf0; }
body.light-mode .bg-forest {
  background: linear-gradient(160deg, #dce1e8 0%, #d0d6e0 100%);
}
body.light-mode .hex-bg { opacity: 0.06; }
body.light-mode .hex-bg polygon { stroke: #3a4050; }
body.light-mode .particle { background: #3a4050; }
body.light-mode .glow-line {
  background: linear-gradient(90deg, transparent, #3a4050, transparent);
  box-shadow: 0 0 8px rgba(58,64,80,0.2);
}
body.light-mode .card { background: #ffffff; border-color: #d0d4da; }
body.light-mode .card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
body.light-mode footer { background: #ebedf0; border-top-color: #d0d4da; }
body.light-mode .footer-bottom { border-top-color: #d0d4da; }
body.light-mode .pillar:nth-child(1) { background: #f4f5f7; }
body.light-mode .pillar:nth-child(2) { background: #ebedf0; }
body.light-mode .pillar:nth-child(3) { background: #e2e5ea; }
body.light-mode .pillar:nth-child(4) { background: linear-gradient(180deg, #e2e5ea, rgba(0,191,166,0.08)); }
body.light-mode .contact-info-card { background: #ebedf0; border-color: #d0d4da; }
body.light-mode .form-group input,
body.light-mode .form-group textarea,
body.light-mode .form-group select {
  background: #ffffff; border-color: #d0d4da; color: #1a1f2e;
}

/* Theme Slider Toggle in Nav */
.theme-switch-wrap {
  position: relative; display: flex; align-items: center; margin-left: 1.2rem;
}
.theme-switch {
  display: inline-block; position: relative; cursor: pointer;
}
.theme-switch-input {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.theme-switch-track {
  display: flex; align-items: center; justify-content: space-between;
  width: 52px; height: 28px; border-radius: 14px;
  background: linear-gradient(135deg, #1a2030, #0a1628);
  border: 1px solid var(--border);
  position: relative; padding: 0 5px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.3);
}
.theme-switch-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #00bfa6);
  box-shadow: 0 2px 8px rgba(0,229,204,0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}
.theme-switch-input:checked ~ .theme-switch-track .theme-switch-thumb {
  left: 26px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 2px 8px rgba(245,158,11,0.5);
}
.theme-switch-input:checked ~ .theme-switch-track {
  background: linear-gradient(135deg, #e2e5ea, #d0d6e0);
  border-color: #c0c6d0;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.08);
}
.theme-switch-icon {
  font-size: 0.8rem; line-height: 1; z-index: 1;
  transition: opacity 0.3s ease;
}
.theme-switch-moon { color: #a0aec0; }
.theme-switch-sun { color: #f59e0b; opacity: 0.4; }
.theme-switch-input:checked ~ .theme-switch-track .theme-switch-moon { opacity: 0.4; }
.theme-switch-input:checked ~ .theme-switch-track .theme-switch-sun { opacity: 1; }
.theme-switch:hover .theme-switch-track {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0,229,204,0.15), inset 0 1px 4px rgba(0,0,0,0.3);
}
.theme-switch-input:checked ~ .theme-switch-track:hover {
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245,158,11,0.15), inset 0 1px 4px rgba(0,0,0,0.08);
}

/* Theme Switch Tooltip */
.theme-switch-tip {
  position: absolute; top: 40px; right: 50%; transform: translateX(50%);
  white-space: nowrap;
  background: var(--bg-card); color: var(--text-secondary);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 0.45rem 0.8rem; font-size: 0.72rem;
  font-family: var(--tivc-font-body); letter-spacing: 0.02em;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  opacity: 0; transform: translateX(50%) translateY(-4px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.theme-switch-tip::before {
  content: ''; position: absolute; top: -5px; left: 50%; margin-left: -5px;
  width: 8px; height: 8px; background: var(--bg-card);
  border-left: 1px solid var(--border); border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
.theme-switch-wrap:hover .theme-switch-tip {
  opacity: 1; transform: translateX(50%) translateY(0);
}
body.light-mode .theme-switch-tip {
  background: #ffffff; border-color: #d0d4da; color: #3a4050;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
body.light-mode .theme-switch-tip::before {
  background: #ffffff; border-color: #d0d4da;
}
@media (max-width: 768px) {
  .theme-switch-wrap { margin-left: 0; position: fixed; top: 14px; right: 60px; z-index: 1002; }
}

/* ========== CYCLING WORDS ANIMATION ========== */
.cycle-wrap {
  display: inline-block; position: relative;
  text-align: center; vertical-align: bottom;
}
.cycle-words {
  display: inline-block; position: relative;
  height: 1.2em; overflow: hidden; vertical-align: bottom;
}
.cycle-word {
  display: block; position: absolute; top: 0; left: 0; right: 0;
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  color: var(--accent);
  white-space: nowrap;
  font-size: clamp(0.65em, 2.5vw, 1em);
}
.cycle-word.cycle-active {
  opacity: 1; transform: translateY(0);
  position: relative;
}
.cycle-word.cycle-exit {
  opacity: 0; transform: translateY(-40px);
}
h1:has(.cycle-wrap) {
  white-space: nowrap;
  font-size: clamp(1.4rem, 3.8vw, 3.2rem);
}
@media (max-width: 600px) {
  h1:has(.cycle-wrap) { white-space: normal; }
  h1:has(.cycle-wrap) br { display: none; }
}
