/* Soul Center — Site styles (on top of tokens.css) */

:root { 
  --brand-primary: var(--sc-indigo); 
  --brand-secondary: var(--sc-blue); 
}

/* Accent tweaks */
body[data-accent="softer"] { --sc-mist: #F8FAFD; }
body[data-accent="softer"] .cta-band, body[data-accent="softer"] .stats-band { background: var(--sc-blue); }
body[data-accent="softer"] footer { background: var(--sc-blue); }
body[data-accent="softer"] .hero-home.variant-overlay .overlay-scrim { background: linear-gradient(100deg, rgba(80,144,192,0.85) 0%, rgba(80,144,192,0.4) 45%, rgba(80,144,192,0.02) 80%); }

body[data-accent="bolder"] .hero-home, body[data-accent="bolder"] .page-hero { background: var(--sc-indigo); color: #fff; }
body[data-accent="bolder"] .hero-home h1, body[data-accent="bolder"] .page-hero h1 { color: #fff; }
body[data-accent="bolder"] .hero-home h1 em, body[data-accent="bolder"] .page-hero h1 em { color: var(--sc-blue-40); }
body[data-accent="bolder"] .hero-home .lead, body[data-accent="bolder"] .page-hero .lead { color: rgba(255,255,255,0.9); }
body[data-accent="bolder"] .hero-home .eyebrow, body[data-accent="bolder"] .page-hero .crumbs { color: var(--sc-blue-40); }
body[data-accent="bolder"] .hero-home .btn-ghost { color: #fff; border-color: #fff; }
body[data-accent="bolder"] .hero-home .btn-ghost:hover { background: #fff; color: var(--sc-indigo); }

* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; color: var(--ink-900); font-family: var(--font-body); }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 32px; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-100);
}
.nav-inner { display: flex; align-items: center; gap: 36px; padding: 12px 0; }
.nav .logo { height: 72px; width: auto; }
.nav-links { display: flex; gap: 28px; font-size: 15px; color: var(--ink-700); font-weight: 500; list-style: none; padding: 0; margin: 0; }
.nav-links a { padding: 6px 0; position: relative; cursor: pointer; }
.nav-links a.active { color: var(--sc-indigo); font-weight: 700; }
.nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--sc-blue); border-radius: 2px; }
.nav-links a:hover { color: var(--sc-blue); }
.nav-right { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0; background: transparent; color: var(--sc-indigo);
  padding: 8px; cursor: pointer; border-radius: 10px;
}
.nav-toggle:hover { background: var(--sc-indigo-15, rgba(48,64,112,0.08)); }
.nav-sheet {
  position: fixed; inset: 0;
  background: rgba(24,34,70,0.45);
  opacity: 0; pointer-events: none;
  transition: opacity 160ms ease;
  z-index: 100;
}
.nav-sheet.is-open { opacity: 1; pointer-events: auto; }
.nav-sheet-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  background: #fff;
  box-shadow: -16px 0 40px rgba(0,0,0,0.18);
  padding: 80px 24px 28px;
  transform: translateX(100%);
  transition: transform 220ms cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto;
}
.nav-sheet.is-open .nav-sheet-panel { transform: translateX(0); }
.nav-sheet ul { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; }
.nav-sheet li { border-bottom: 1px solid var(--sc-indigo-15, rgba(48,64,112,0.10)); }
.nav-sheet li a {
  display: block; padding: 18px 4px;
  font-size: 18px; font-weight: 600;
  color: var(--ink-700); cursor: pointer;
}
.nav-sheet li a.active { color: var(--sc-indigo); }
.nav-sheet li a:active { background: var(--sc-indigo-15, rgba(48,64,112,0.08)); }

/* ============ BUTTONS ============ */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  transition: all 140ms var(--ease-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  line-height: 1;
}
.btn-primary { background: var(--sc-indigo); color: #fff; }
.btn-primary:hover { background: #26325c; transform: translateY(-1px); }
.btn-secondary { background: var(--sc-blue); color: #fff; }
.btn-secondary:hover { background: #4581b5; }
.btn-ghost { background: transparent; color: var(--sc-indigo); border: 2px solid var(--sc-indigo); padding: 10px 20px; }
.btn-ghost:hover { background: var(--sc-indigo); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border: 2px solid #fff; padding: 10px 20px; }
.btn-ghost-light:hover { background: #fff; color: var(--sc-indigo); }
.btn-lg { font-size: 16px; padding: 15px 28px; }
.btn svg { width: 16px; height: 16px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ============ GENERIC SECTION ============ */
section.block { padding: 64px 0; }
section.block.tight { padding: 44px 0; }
section.block.bg-mist { background: var(--sc-mist); }
section.block.bg-blue-soft { background: var(--sc-blue-20); }
section.block + section.block { border-top: none; }
section.block.bg-indigo { background: var(--sc-indigo); color: #fff; }
section.block.bg-indigo h1,
section.block.bg-indigo h2,
section.block.bg-indigo h3 { color: #fff; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sc-blue);
  margin-bottom: 14px;
}

.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; margin-right: 0; }
.section-head h2 { font-size: 44px; margin: 0 0 14px; line-height: 1.15; }
.section-head p { font-size: 18px; color: var(--ink-700); margin: 0; }

/* ============ HERO (HOME) ============ */
.hero-home {
  background: var(--sc-mist);
  padding: 72px 0 60px;
  position: relative;
}
.hero-home-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.hero-home h1 {
  font-size: 72px;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  max-width: 900px;
}
.hero-home h1 em {
  font-style: normal;
  color: var(--sc-blue);
  font-weight: 300;
}
.hero-home .lead { font-size: 21px; max-width: 640px; margin: 0 0 32px; color: var(--ink-700); }
.hero-home .ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Rendering image under hero */
.rendering-wrap {
  margin-top: 48px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.rendering-wrap img { width: 100%; display: block; }
.rendering-caption {
  position: absolute; left: 24px; bottom: 24px;
  background: rgba(48, 64, 112, 0.85);
  color: #fff; padding: 10px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
}

/* ============ STATS STRIP ============ */
.stats-band {
  background: var(--sc-indigo);
  color: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  margin-top: 40px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-lg);
}
.stats-band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.stats-band .n { font-family: var(--font-display); font-weight: 600; font-size: 48px; color: var(--sc-blue-40); line-height: 1; }
.stats-band .l { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.85); margin-top: 10px; }

/* ============ WHY WHAT WHERE ============ */
.wyz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.wyz-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  border: 1px solid var(--ink-100);
  transition: all 200ms var(--ease-soft);
}
.wyz-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.wyz-card .big { font-family: var(--font-display); font-weight: 300; font-size: 56px; color: var(--sc-blue); line-height: 1; margin-bottom: 16px; }
.wyz-card h3 { margin: 0 0 10px; font-size: 22px; }
.wyz-card p { margin: 0; color: var(--ink-700); line-height: 1.6; font-size: 15px; }

/* ============ SPACES GRID ============ */
.spaces-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.space-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 200ms var(--ease-soft);
  cursor: pointer;
  display: flex; flex-direction: column;
}
.space-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.space-card .img {
  aspect-ratio: 16/10;
  background: var(--sc-blue-20);
  position: relative;
  overflow: hidden;
}
.space-card .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.space-card.variant-a .img { background: linear-gradient(135deg, var(--sc-indigo), var(--sc-blue)); }
.space-card.variant-b .img { background: linear-gradient(135deg, var(--sc-blue), var(--sc-blue-40)); }
.space-card.variant-c .img { background: linear-gradient(135deg, var(--sc-indigo-30), var(--sc-blue-20)); }
.space-card .img .icon-chip {
  position: absolute; top: 18px; left: 18px;
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  color: var(--sc-indigo);
}
.space-card .img .icon-chip svg { width: 22px; height: 22px; }
.space-card .img .ph-label {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(48,64,112,0.5);
}
.space-card.variant-a .ph-label,
.space-card.variant-b .ph-label { color: rgba(255,255,255,0.7); }
.space-card .content { padding: 24px; }
.space-card .tag { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sc-blue); margin-bottom: 8px; }
.space-card h3 { font-family: var(--font-display); font-weight: 600; color: var(--sc-indigo); font-size: 22px; margin: 0 0 10px; }
.space-card p { font-size: 14px; color: var(--ink-500); margin: 0 0 16px; line-height: 1.55; }
.space-card .more { font-size: 14px; font-weight: 700; color: var(--sc-indigo); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.space-card .more svg { width: 16px; height: 16px; transition: transform 140ms; }
.space-card:hover .more svg { transform: translateX(3px); }

/* ============ CTA BAND ============ */
.cta-band {
  background: var(--sc-indigo);
  color: #fff;
  padding: 72px 56px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(80,144,192,0.32) 0%, transparent 40%),
    radial-gradient(circle at 82% 80%, rgba(168,199,222,0.22) 0%, transparent 45%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin: 0 0 14px; font-size: 44px; }
.cta-band p { color: rgba(255,255,255,0.88); font-size: 18px; margin: 0 auto 28px; max-width: 580px; }

/* ============ FOOTER ============ */
footer {
  background: var(--sc-indigo);
  color: rgba(255,255,255,0.82);
  padding: 72px 0 32px;
  margin-top: 96px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
footer h5 { font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sc-blue-40); margin: 0 0 16px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 10px; font-size: 14px; }
footer a { color: rgba(255,255,255,0.82); cursor: pointer; }
footer a:hover { color: #fff; }
.footer-brand { font-family: var(--font-display); font-weight: 600; font-size: 26px; color: #fff; margin-bottom: 12px; }
.footer-brand em { font-style: normal; font-weight: 300; color: var(--sc-blue-40); }
.footer-about { font-size: 14px; line-height: 1.55; max-width: 340px; color: rgba(255,255,255,0.82); }
.legal { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 24px; display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,0.6); }

/* ============ PAGE HERO (sub-pages) ============ */
.page-hero {
  background: var(--sc-mist);
  padding: 80px 0 72px;
  position: relative;
}
.page-hero h1 { font-size: 60px; line-height: 1.05; margin: 0 0 18px; max-width: 900px; }
.page-hero h1 em { font-style: normal; color: var(--sc-blue); font-weight: 300; }
.page-hero .lead { font-size: 19px; max-width: 680px; color: var(--ink-700); margin: 0; }
.page-hero .crumbs { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-blue); font-weight: 700; margin-bottom: 18px; }

/* Page hero with background image */
.page-hero.has-bg { padding: 140px 0 120px; color: #fff; background: var(--sc-indigo); overflow: hidden; }
.page-hero.has-bg > .container { position: relative; z-index: 2; }
.page-hero.has-bg h1 { color: #fff; }
.page-hero.has-bg h1 em { color: var(--sc-blue-40); }
.page-hero.has-bg .lead { color: rgba(255,255,255,0.92); max-width: 720px; font-size: 20px; }
.page-hero.has-bg .crumbs { color: var(--sc-blue-40); }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.page-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(48,64,112,0.92) 0%, rgba(48,64,112,0.75) 45%, rgba(48,64,112,0.35) 100%);
}

/* ============ VISION PAGE ============ */
.vision-intro-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.vision-intro-grid h2 { font-size: 40px; margin: 0 0 18px; }
.vision-intro-grid .stat-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.vision-intro-grid .stat-pair > div { border-top: 2px solid var(--sc-indigo); padding-top: 14px; }
.vision-intro-grid .stat-pair .n { font-family: var(--font-display); font-weight: 600; font-size: 38px; color: var(--sc-indigo); line-height: 1; }
.vision-intro-grid .stat-pair .l { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-500); font-weight: 700; margin-top: 8px; }

.partner-banner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  background: #fff; border: 1px solid var(--ink-100); border-radius: 20px;
  padding: 40px; align-items: center;
}
.partner-banner .ph { aspect-ratio: 4/3; border-radius: 12px;
  background:
    repeating-linear-gradient(135deg, rgba(48,64,112,0.05) 0 1px, transparent 1px 10px),
    linear-gradient(135deg, var(--sc-blue-20), var(--sc-indigo-15));
  display:flex;align-items:center;justify-content:center;
  font-family:ui-monospace,Menlo,monospace;font-size:11px;color:var(--sc-indigo);
  letter-spacing:0.08em;text-transform:uppercase;
}

/* ============ SPACES PAGE ============ */
.spaces-filter {
  display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap;
}
.filter-chip {
  font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--ink-200); color: var(--ink-700);
  cursor: pointer;
  transition: all 140ms var(--ease-soft);
}
.filter-chip:hover { border-color: var(--sc-blue); color: var(--sc-indigo); }
.filter-chip.on { background: var(--sc-indigo); color: #fff; border-color: var(--sc-indigo); }

.space-feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--ink-100);
  align-items: center;
}
.space-feature:nth-child(even) .space-feature-img { order: 2; }
.space-feature-img {
  aspect-ratio: 4/3; border-radius: 16px;
  background: var(--sc-blue-20);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: rgba(48,64,112,0.4);
  font-family: ui-monospace, Menlo, monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
}
.space-feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.space-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 20px; }
.space-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }

/* ============ PHOTO WALL ============ */
.photo-wall {
  background: var(--sc-indigo);
  color: #fff;
  padding: 64px 0 0;
  overflow: hidden;
}
.photo-wall .pw-caption {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 40px 72px;
  text-align: center;
}
.photo-wall .pw-caption .eyebrow { color: var(--sc-blue-40); }
.photo-wall .pw-caption h2 {
  color: #fff; font-size: clamp(32px, 3.6vw, 48px);
  margin: 10px 0 16px; max-width: 20ch; margin-left: auto; margin-right: auto;
  line-height: 1.15;
}
.photo-wall .pw-caption p {
  color: rgba(255,255,255,0.85); font-size: 18px; line-height: 1.55;
  max-width: 640px; margin: 0 auto;
}
.pw-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-auto-rows: 160px;
  gap: 8px;
  padding: 0 8px;
}
.pw { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 4px; filter: saturate(1.05); }
.pw-1 { grid-column: span 2; grid-row: span 2; }
.pw-2 { grid-column: span 2; grid-row: span 1; }
.pw-3 { grid-column: span 2; grid-row: span 1; }
.pw-4 { grid-column: span 2; grid-row: span 2; }
.pw-5 { grid-column: span 2; grid-row: span 1; }
.pw-6 { grid-column: span 2; grid-row: span 1; }
.pw-7 { grid-column: span 3; grid-row: span 1; }
.pw-8 { grid-column: span 3; grid-row: span 1; }

@media (max-width: 900px) {
  .pw-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 120px; }
  .pw-1, .pw-4 { grid-column: span 2; grid-row: span 2; }
  .pw-7, .pw-8 { grid-column: span 2; grid-row: span 1; }
}
.space-feature h3 { font-size: 32px; margin: 10px 0 14px; }
.space-feature .meta { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sc-blue); }
.space-feature p { color: var(--ink-700); font-size: 16px; line-height: 1.65; margin: 0 0 16px; }

/* ============ DEDICATIONS PAGE ============ */
.ded-aside-top {
  background: var(--sc-indigo); color: #fff;
  border-radius: 20px; padding: 36px 40px;
  margin-bottom: 40px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.ded-aside-top h3 { color: #fff; margin: 0 0 10px; font-size: 22px; }
.ded-aside-top p { color: rgba(255,255,255,0.9); font-size: 15px; line-height: 1.6; margin: 0; }
.ded-aside-top a { color: #fff; text-decoration: underline; }
.ded-aside-contact { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.ded-aside-contact p { font-size: 14px; }
.ded-tiers-full { display: block; }
.ded-intro-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.ded-aside {
  background: var(--sc-indigo); color: #fff;
  border-radius: 20px; padding: 36px;
  position: sticky; top: 100px;
}
.ded-aside h3 { color: #fff; margin: 0 0 14px; font-size: 22px; }
.ded-aside p { color: rgba(255,255,255,0.85); font-size: 15px; line-height: 1.6; margin: 0 0 20px; }
.ded-aside .btn-ghost-light { width: 100%; justify-content: center; }

.ded-tier {
  padding: 40px 0;
  border-top: 1px solid var(--ink-100);
}
.ded-tier:first-child { border-top: none; padding-top: 16px; }
.ded-tier-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.ded-tier-head h3 { margin: 0; font-size: 28px; font-family: var(--font-display); color: var(--sc-indigo); font-weight: 600; }
.ded-tier-head .kicker { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sc-blue); font-weight: 700; display: block; margin-bottom: 4px; }
.ded-tier-head p { font-size: 14px; color: var(--ink-500); margin: 0; max-width: 380px; }

.ded-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ded-list.three { grid-template-columns: repeat(4, 1fr); }

.ded-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: 12px;
  cursor: pointer;
  transition: all 140ms var(--ease-soft);
  user-select: none;
}
.ded-item:hover { border-color: var(--sc-blue); background: var(--sc-mist); }
.ded-item.checked { background: var(--sc-indigo); border-color: var(--sc-indigo); color: #fff; }
.ded-item.checked .ded-name, .ded-item.checked .ded-amt { color: #fff; }

.ded-check {
  width: 20px; height: 20px; border-radius: 4px;
  border: 2px solid var(--ink-300);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: #fff;
  transition: all 140ms;
}
.ded-item.checked .ded-check { background: #fff; border-color: #fff; }
.ded-check svg { width: 14px; height: 14px; color: var(--sc-indigo); opacity: 0; }
.ded-item.checked .ded-check svg { opacity: 1; }

.ded-name { flex: 1; font-weight: 600; font-size: 15px; color: var(--ink-900); }
.ded-amt { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--sc-indigo); font-variant-numeric: tabular-nums; }

/* Donor form */
.ded-form {
  margin-top: 56px;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: 20px;
  padding: 40px;
}
.ded-form-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.ded-form-head h2 { margin: 0; font-size: 32px; }
.ded-form-head .selection-count { font-size: 14px; color: var(--ink-500); }
.ded-form-head .selection-count b { color: var(--sc-indigo); }

.selection-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; padding: 16px; background: var(--sc-mist); border-radius: 12px; min-height: 64px; align-items: center; }
.selection-chips:empty::before { content: "No dedications selected yet. Click any opportunity above to add it."; font-size: 13px; color: var(--ink-500); font-style: italic; }
.sel-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 12px;
  background: #fff; border: 1px solid var(--sc-indigo);
  border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--sc-indigo);
}
.sel-chip .x {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--sc-indigo); color: #fff;
  border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.sel-chip .x:hover { background: #26325c; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 700; color: var(--ink-700); letter-spacing: 0.02em; }
.form-field label .req { color: var(--color-error); }
.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-900);
  transition: all 140ms;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--sc-indigo);
  box-shadow: 0 0 0 3px rgba(48, 64, 112, 0.15);
}
.form-field .hint { font-size: 12px; color: var(--ink-500); }

.gf-note {
  margin-top: 20px; padding: 14px 16px;
  background: var(--sc-blue-20); border-radius: 10px;
  font-size: 13px; color: var(--sc-indigo);
  display: flex; gap: 10px; align-items: flex-start;
}
.gf-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

.form-submit {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--ink-100);
  gap: 16px; flex-wrap: wrap;
}
.form-submit p { margin: 0; font-size: 13px; color: var(--ink-500); max-width: 480px; }

/* ============ CONTACT PAGE ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-card {
  background: #fff; border: 1px solid var(--ink-100); border-radius: 16px;
  padding: 28px;
}
.contact-card h3 { font-size: 20px; margin: 0 0 14px; }
.contact-card .row { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-top: 1px solid var(--ink-100); }
.contact-card .row:first-of-type { border-top: none; padding-top: 0; }
.contact-card .row svg { width: 20px; height: 20px; color: var(--sc-blue); margin-top: 2px; flex-shrink: 0; }
.contact-card .row .t { font-size: 15px; color: var(--ink-900); line-height: 1.5; }
.contact-card .row .t b { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sc-blue); margin-bottom: 4px; font-weight: 700; }

.map-ph {
  aspect-ratio: 4/3; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--ink-100);
  background:
    repeating-linear-gradient(0deg, rgba(48,64,112,0.04) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(48,64,112,0.04) 0 1px, transparent 1px 40px),
    linear-gradient(135deg, #eef4f8, #f6f1e5);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.map-ph .pin {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--sc-indigo); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(48,64,112,0.4);
}
.map-ph .pin::after {
  content: ''; position: absolute;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(80, 144, 192, 0.25);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%{transform:scale(0.8);opacity:0.8;} 100%{transform:scale(1.6);opacity:0;} }

/* ============ QUOTE ============ */
.quote-pull {
  background: var(--sc-indigo-15);
  border-radius: 24px;
  padding: 56px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
}
.quote-pull blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--sc-indigo);
  font-size: 30px;
  line-height: 1.3;
}
.quote-pull .who { margin-top: 20px; font-size: 14px; color: var(--ink-700); }
.quote-pull .who strong { color: var(--sc-indigo); }
.quote-pull .portrait {
  aspect-ratio: 1/1; border-radius: 20px;
  background: 
    repeating-linear-gradient(135deg, rgba(48,64,112,0.06) 0 1px, transparent 1px 10px),
    linear-gradient(135deg, var(--sc-blue-40), var(--sc-blue));
  display: flex; align-items: flex-end; padding: 20px;
  color: rgba(255,255,255,0.8);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}

/* ============ TWEAKS PANEL ============ */
.tweaks-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 300px;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  font-family: var(--font-body);
  overflow: hidden;
}
.tweaks-panel.collapsed .tweaks-body { display: none; }
.tweaks-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  background: var(--sc-indigo); color: #fff;
  cursor: pointer;
  user-select: none;
}
.tweaks-head strong { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.tweaks-head svg { width: 16px; height: 16px; transition: transform 140ms; }
.tweaks-panel.collapsed .tweaks-head svg { transform: rotate(180deg); }
.tweaks-body { padding: 16px 18px; max-height: 70vh; overflow-y: auto; }
.tweak-group { margin-bottom: 16px; }
.tweak-group:last-child { margin-bottom: 0; }
.tweak-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 8px; }
.tweak-options { display: flex; gap: 6px; flex-wrap: wrap; }
.tweak-btn {
  font-size: 12px; font-weight: 600;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--ink-200);
  background: #fff; color: var(--ink-700);
  cursor: pointer; transition: all 120ms;
}
.tweak-btn.on { background: var(--sc-indigo); color: #fff; border-color: var(--sc-indigo); }
.tweak-btn:hover:not(.on) { border-color: var(--sc-blue); }

/* HERO VARIANTS */
.hero-home.variant-overlay { padding: 0; background: var(--sc-mist); }
.hero-home.variant-overlay .rendering-full {
  position: relative;
  width: 100%;
  height: min(78vh, 720px);
  min-height: 580px;
  overflow: hidden;
  background: #d8e2ea;
}
.hero-home.variant-overlay .rendering-full img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; display: block;
  object-fit: cover;
  /* Pull image down slightly so sky crops but grass stays */
  object-position: center 20%;
}
/* Scrim is attached to the content block so it always sits directly behind the text
   — grows with the text as it wraps at narrower widths, never rides up onto the building. */
.hero-home.variant-overlay .overlay-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 64px 0 48px;
  color: #fff;
  background: linear-gradient(to top,
    rgba(24,34,70,0.94) 0%,
    rgba(24,34,70,0.90) 70%,
    rgba(24,34,70,0.55) 90%,
    rgba(24,34,70,0) 100%);
}
.hero-home.variant-overlay h1 {
  color: #fff;
  font-size: clamp(32px, 4vw, 52px);
  margin: 0 0 12px;
  max-width: 900px;
  line-height: 1.1;
}
.hero-home.variant-overlay h1 em { color: var(--sc-blue-40); font-style: normal; }
.hero-home.variant-overlay .lead {
  color: rgba(255,255,255,0.94);
  font-size: 17px;
  max-width: 620px;
  margin: 0 0 20px;
  line-height: 1.5;
}
.hero-home.variant-overlay .ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
}

.hero-home.variant-split { padding: 0; background: var(--sc-mist); }
.hero-home.variant-split .split-grid { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 620px; align-items: stretch; }
.hero-home.variant-split .split-content { padding: 80px 48px 80px 64px; display: flex; flex-direction: column; justify-content: center; }
.hero-home.variant-split .split-img {
  position: relative; background: var(--sc-indigo);
  overflow: hidden;
}
.hero-home.variant-split .split-img img { width: 100%; height: 100%; object-fit: cover; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .nav .logo { height: 52px; }
  .nav-links, .nav-right { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .hero-home h1, .page-hero h1 { font-size: 38px !important; line-height: 1.12 !important; }
  .hero-home.variant-overlay h1 { font-size: 36px !important; }
  .hero-home.variant-overlay .rendering-full { height: 72vh; min-height: 520px; }
  .hero-home.variant-overlay .overlay-content { padding: 72px 0 32px; }
  .hero-home.variant-overlay .lead { font-size: 16px; }
  .hero-home .ctas { flex-direction: column; align-items: stretch; }
  .hero-home .ctas .btn { width: 100%; justify-content: center; }

  .wyz-grid, .spaces-grid, .footer-grid,
  .vision-intro-grid, .partner-banner, .ded-intro-grid,
  .space-feature, .contact-grid, .quote-pull, .ded-list, .ded-list.three,
  .form-grid, .hero-home.variant-split .split-grid,
  .ded-aside-top, .ded-tier-head {
    grid-template-columns: 1fr !important;
  }
  /* Stats band: 2×2 per spec, not 1-column */
  .stats-band-grid { grid-template-columns: 1fr 1fr !important; gap: 20px !important; }
  .stats-band { padding: 24px !important; }
  .stats-band .n { font-size: 36px !important; }
  .stats-band .l { font-size: 12px !important; }

  .space-feature:nth-child(even) .space-feature-img { order: 0; }
  section.block { padding: 56px 0; }
  .ded-aside { position: static; }
  .tweaks-panel { right: 10px; bottom: 10px; width: calc(100vw - 20px); max-width: 300px; }
  .cta-band, .quote-pull { padding: 40px 24px; }
  .cta-band h2 { font-size: 28px !important; }
  .cta-band .btn { width: 100%; justify-content: center; }
  .section-head h2 { font-size: 28px; }

  /* Forms and dedications touch targets */
  .ded-form, .contact-card, .map-ph { padding: 20px !important; }
  .form-field input, .form-field textarea { font-size: 16px !important; }
  .ded-item { padding: 14px !important; }
  .form-submit { flex-direction: column; align-items: stretch; gap: 16px; }
  .form-submit .btn { width: 100%; justify-content: center; }
  .ded-form-head { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* PageHero with bg image: less tall */
  .page-hero { padding: 80px 0 56px !important; }
  .page-hero .lead { font-size: 17px !important; }
}

@media (max-width: 520px) {
  .hero-home.variant-overlay h1 { font-size: 30px !important; }
  .stats-band-grid { gap: 16px !important; }
  .stats-band .n { font-size: 30px !important; }
  .footer-grid { gap: 28px; }
}
