/* =============================================================
   Select Investment Services — Michael Vidal, CFP®
   Editorial, refined aesthetic for Santa Barbara HNW audience
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,300..700,0..100,0..1&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  /* Palette — deep Pacific navy + warm Santa Barbara cream + sunset terracotta accent */
  --ink:        #0f1d2e;   /* primary text / deep navy */
  --ink-soft:   #2a3a4f;   /* secondary text */
  --muted:      #6b7685;   /* tertiary text */
  --rule:       #d9d2c4;   /* hairline dividers */
  --cream:      #f5efe4;   /* primary background */
  --cream-2:    #ebe3d3;   /* alt background */
  --paper:      #fbf7ef;   /* lighter surface */
  --terracotta: #b85a3c;   /* sunset accent */
  --terracotta-deep: #8f3f28;
  --sage:       #5a6b5d;   /* secondary accent, coastal sage */

  /* Typography */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spatial */
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle paper texture overlay — gives the whole site a printed quality */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(15,29,46,0.018) 1px, transparent 1px);
  background-size: 3px 3px;
  z-index: 1;
  opacity: 0.7;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.6em;
  font-variation-settings: "opsz" 96, "SOFT" 20, "WONK" 0;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.75rem); font-weight: 340; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 360; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 400; }
h4 { font-size: 1.1rem; font-weight: 500; letter-spacing: -0.01em; }

p { margin: 0 0 1em; max-width: 68ch; color: var(--ink-soft); }

a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--terracotta); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--terracotta);
  display: inline-block;
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-soft);
  font-style: italic;
  font-variation-settings: "opsz" 48, "SOFT" 40;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }

/* ===== NAVIGATION ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 228, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.brand-mark {
  font-size: 0.68rem;
  font-family: var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
}
.nav-links {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.2rem);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
}
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--terracotta);
}
.nav-cta {
  background: var(--ink);
  color: var(--cream) !important;
  padding: 10px 20px;
  border-radius: 2px;
  font-size: 0.82rem !important;
  letter-spacing: 0.02em;
  transition: background .25s ease;
}
.nav-cta:hover { background: var(--terracotta); color: var(--cream) !important; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: .25s; }

@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 1.5rem var(--gutter) 2rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--rule);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: .25s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-toggle { display: block; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 15px 28px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .28s ease;
  text-decoration: none;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--terracotta); color: var(--cream); transform: translateY(-1px); }
.btn-primary .arrow { transition: transform .28s ease; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

/* ===== HERO ===== */
.hero {
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(4rem, 9vw, 8rem);
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* Subtle horizon line referencing Santa Barbara coastline */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule) 20%, var(--rule) 80%, transparent);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 {
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
}
.hero h1 em {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 300;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.hero-meta-item {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.hero-meta-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-transform: none;
  margin-bottom: 0.2rem;
  font-variation-settings: "opsz" 48;
}

.cta-row {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* Portrait frame */
.portrait-wrap {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 440px;
  margin-left: auto;
}
.portrait-wrap::before {
  /* Decorative offset frame */
  content: "";
  position: absolute;
  inset: -18px -18px 18px 18px;
  border: 1px solid var(--terracotta);
  z-index: 0;
}
.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  position: relative;
  z-index: 1;
  filter: saturate(0.95) contrast(1.02);
}
.portrait-caption {
  position: absolute;
  bottom: -3.2rem;
  left: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  font-variation-settings: "opsz" 24;
}

/* ===== SECTIONS ===== */
section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.section-alt { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-dark { background: var(--ink); color: var(--cream); border: none; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark p { color: rgba(245, 239, 228, 0.78); }
.section-dark .eyebrow { color: #e8a075; }
.section-dark .eyebrow::before { background: #e8a075; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 5rem);
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
  align-items: end;
}
.section-head .lead { margin: 0; }
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ===== PILLARS / WHO WE SERVE ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.pillar {
  padding: 2.5rem 2rem 2.5rem 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.pillar:not(:last-child) { border-right: 1px solid var(--rule); padding-right: 2rem; }
.pillar:not(:first-child) { padding-left: 2rem; }
.pillar-num {
  font-family: var(--serif);
  font-size: 0.8rem;
  color: var(--terracotta);
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
  font-variation-settings: "opsz" 12;
}
.pillar h3 { margin-bottom: 0.8rem; }
.pillar p { font-size: 0.95rem; margin: 0; }

@media (max-width: 720px) {
  .pillar { padding: 2rem 0 !important; border-right: none !important; }
}

/* ===== SERVICES GRID ===== */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.service {
  background: var(--cream);
  padding: 2.4rem 2rem;
  transition: background .3s ease;
}
.service:hover { background: var(--paper); }
.service.featured {
  background: var(--ink);
  color: var(--cream);
}
.service.featured h3, .service.featured .service-num { color: var(--cream); }
.service.featured p { color: rgba(245,239,228,0.75); }
.service-num {
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: block;
  margin-bottom: 1rem;
  font-variation-settings: "opsz" 12;
}
.service.featured .service-num { color: #e8a075; }
.service h3 { font-size: 1.35rem; margin-bottom: 0.7rem; }
.service p { font-size: 0.92rem; margin: 0; }
.service-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-top: 1.2rem;
  font-weight: 600;
}
.service.featured .service-tag { color: #e8a075; }

/* ===== PROCESS ===== */
.process-list {
  display: grid;
  gap: 0;
  counter-reset: step;
  position: relative;
}
.process-list::before {
  content: "";
  position: absolute;
  left: 50px;
  top: 30px;
  bottom: 30px;
  width: 1px;
  background: linear-gradient(180deg, var(--terracotta), var(--rule));
  opacity: 0.4;
  z-index: 0;
}
@media (max-width: 760px) {
  .process-list::before { display: none; }
}
.process-step {
  display: grid;
  grid-template-columns: 120px 1fr 2fr;
  gap: clamp(1rem, 3vw, 3rem);
  padding: 2.2rem 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
  position: relative;
  z-index: 1;
}
.process-step:last-child { border-bottom: 1px solid var(--rule); }
.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--terracotta);
  font-weight: 300;
  font-variation-settings: "opsz" 72;
  line-height: 1;
  background: var(--cream);
  padding: 0.4rem 0.6rem 0.4rem 0;
  position: relative;
  z-index: 2;
}
.section-alt .process-step::before { background: var(--paper); }
.process-step h3 { margin: 0; font-size: 1.5rem; }
.process-step p { margin: 0; font-size: 0.96rem; }

@media (max-width: 760px) {
  .process-step { grid-template-columns: 1fr; gap: 0.6rem; }
  .process-step::before { font-size: 1.8rem; }
}

/* ===== TESTIMONIAL ===== */
.testimonial {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.testimonial::before {
  content: "“";
  position: absolute;
  font-family: var(--serif);
  font-size: 28rem;
  color: var(--terracotta);
  opacity: 0.12;
  top: -5rem;
  left: 2rem;
  line-height: 1;
  font-variation-settings: "opsz" 144;
}
.testimonial-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}
.testimonial blockquote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 300;
  line-height: 1.35;
  color: var(--cream);
  margin: 0 0 2rem;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 72, "SOFT" 30;
}
.testimonial cite {
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e8a075;
  font-weight: 500;
}

/* ===== INSIGHTS ===== */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem 2rem;
}
.insight {
  border-top: 1px solid var(--ink);
  padding-top: 1.2rem;
  transition: border-color .25s ease;
}
.insight:hover { border-top-color: var(--terracotta); }
.insight-date {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.insight h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.insight p { font-size: 0.92rem; margin: 0 0 1rem; }
.insight .read {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
}

/* ===== CTA BLOCK ===== */
.cta-block {
  padding: clamp(4rem, 8vw, 6rem) 0;
  text-align: center;
  background: var(--cream-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cta-block h2 { max-width: 20ch; margin: 0 auto 1.5rem; }
.cta-block p { max-width: 56ch; margin: 0 auto 2.5rem; }

/* ===== FOOTER ===== */
.footer {
  background: var(--ink);
  color: rgba(245,239,228,0.75);
  padding: 4rem 0 2rem;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.footer h4 {
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  font-weight: 600;
}
.footer a { color: rgba(245,239,228,0.75); display: block; padding: 3px 0; }
.footer a:hover { color: #e8a075; }
.footer-brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--cream);
  margin-bottom: 0.8rem;
}
.footer-bottom {
  border-top: 1px solid rgba(245,239,228,0.15);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(245,239,228,0.55);
}
.disclosure {
  font-size: 0.74rem;
  line-height: 1.6;
  color: rgba(245,239,228,0.55);
  max-width: 85ch;
  margin-top: 1.5rem;
}

/* ===== PAGE HEADER (non-home pages) ===== */
.page-header {
  padding: clamp(4rem, 7vw, 6rem) 0 clamp(2.5rem, 4vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
.page-header h1 { margin-bottom: 1rem; max-width: 22ch; }
.page-header .lead { max-width: 55ch; }

/* ===== TWO-COL CONTENT ===== */
.content-cols {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2rem, 5vw, 5rem);
}
@media (max-width: 800px) { .content-cols { grid-template-columns: 1fr; } }

.content-cols h2 { margin-top: 0; }
.content-cols .label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

/* ===== CREDENTIALS LIST ===== */
.cred-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 0;
}
.cred-list li {
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  font-size: 0.92rem;
  align-items: baseline;
}
.cred-list li:last-child { border-bottom: 1px solid var(--rule); }
.cred-list .year {
  font-family: var(--serif);
  font-variation-settings: "opsz" 12;
  color: var(--terracotta);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.cred-list .item { color: var(--ink); }
.cred-list .detail { color: var(--muted); font-size: 0.82rem; }

/* ===== NICHE GRID ===== */
.niches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.niche {
  border: 1px solid var(--rule);
  padding: 2.5rem 2rem 2.2rem;
  background: var(--paper);
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.niche::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--terracotta);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.niche:hover::after { opacity: 1; }
.niche:hover { transform: translateY(-3px); }
.niche-icon {
  width: 42px;
  height: 42px;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 1.2rem;
}
.niche-icon svg { width: 100%; height: 100%; display: block; }
.niche h3 { font-size: 1.4rem; margin-bottom: 0.7rem; }
.niche p { font-size: 0.92rem; margin: 0; }
.niche-meta {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { padding: 2rem 0; }
.contact-info h3 { margin-bottom: 0.5rem; }
.contact-line {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  font-size: 0.95rem;
  align-items: baseline;
}
.contact-line .k {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form {
  background: var(--paper);
  padding: 2.5rem;
  border: 1px solid var(--rule);
}
.contact-form label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.2rem 0 0.5rem;
  font-weight: 600;
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  border-bottom-color: var(--terracotta);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form .btn { margin-top: 2rem; width: 100%; justify-content: center; }

/* ===== ANIMATIONS ===== */
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.reveal { opacity: 0; animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal.d1 { animation-delay: .1s; }
.reveal.d2 { animation-delay: .22s; }
.reveal.d3 { animation-delay: .34s; }
.reveal.d4 { animation-delay: .46s; }
.reveal.d5 { animation-delay: .58s; }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.hide-mobile { }
@media (max-width: 700px) { .hide-mobile { display: none; } }

/* =============================================================
   ENHANCED VISUAL COMPONENTS
   ============================================================= */

/* ===== HERO BACKDROP (Santa Barbara silhouette) ===== */
.hero {
  background: linear-gradient(180deg, #f0e8d7 0%, var(--cream) 60%, var(--cream) 100%);
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-backdrop svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0.55;
}
.hero .container { position: relative; z-index: 2; }

/* Sun element behind portrait */
.sun-mark {
  position: absolute;
  top: -3%;
  right: 6%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #e8a075, var(--terracotta) 70%, transparent 75%);
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
  filter: blur(2px);
}

/* ===== STAT BAND ===== */
.stat-band {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  position: relative;
  overflow: hidden;
}
.stat-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(184,90,60,0.15), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(184,90,60,0.08), transparent 50%);
  pointer-events: none;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  z-index: 2;
}
@media (max-width: 760px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .stat-grid { grid-template-columns: 1fr; } }

.stat {
  padding: 0 2rem;
  border-left: 1px solid rgba(245,239,228,0.15);
}
.stat:first-child { border-left: none; padding-left: 0; }
@media (max-width: 760px) {
  .stat:nth-child(3) { border-left: none; padding-left: 0; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid rgba(245,239,228,0.15); }
  .stat:nth-child(4) { padding-top: 2rem; margin-top: 2rem; border-top: 1px solid rgba(245,239,228,0.15); }
}
@media (max-width: 440px) {
  .stat { border-left: none; padding: 1.5rem 0 !important; border-bottom: 1px solid rgba(245,239,228,0.15); margin: 0 !important; border-top: none !important; }
  .stat:last-child { border-bottom: none; }
  .stat:first-child { padding-top: 0 !important; }
}

.stat-figure {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.8vw, 3.8rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144, "SOFT" 20;
  display: block;
  margin-bottom: 0.6rem;
}
.stat-figure em {
  font-style: italic;
  color: #e8a075;
  font-weight: 300;
}
.stat-label {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,239,228,0.7);
  font-weight: 500;
  line-height: 1.4;
}
.stat-detail {
  font-size: 0.82rem;
  color: rgba(245,239,228,0.55);
  margin-top: 0.6rem;
  line-height: 1.5;
  display: block;
}

/* ===== SANTA BARBARA PLACE SECTION ===== */
.place-section {
  position: relative;
  padding: clamp(5rem, 9vw, 8rem) 0;
  background: linear-gradient(180deg, var(--cream) 0%, #f0e8d7 100%);
  overflow: hidden;
}
.place-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 860px) {
  .place-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.place-copy h2 em {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 300;
}
.place-copy .place-tag {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  color: var(--terracotta);
  margin-top: 1rem;
  font-size: 1.05rem;
  font-variation-settings: "opsz" 24;
}

.place-illustration {
  position: relative;
  aspect-ratio: 4/3;
  width: 100%;
}
.place-illustration svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== PULL QUOTE / EDITORIAL MOMENT ===== */
.editorial {
  padding: clamp(4rem, 7vw, 6rem) 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.editorial::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--terracotta);
}
.editorial-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.editorial-text {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.4;
  font-weight: 320;
  color: var(--ink);
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 96, "SOFT" 30;
}
.editorial-text em {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 300;
}
.editorial-attrib {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2rem;
  font-weight: 600;
}

/* ===== ENHANCED PILLAR ICONS ===== */
.pillar-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.4rem;
  color: var(--terracotta);
}
.pillar-icon svg { width: 100%; height: 100%; display: block; }

/* ===== ENHANCED CTA BLOCK ===== */
.cta-block {
  background: var(--cream-2);
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,90,60,0.07), transparent 60%);
  pointer-events: none;
}
.cta-block .container { position: relative; z-index: 2; }

/* ===== INDEX HERO TWEAKS ===== */
.hero h1 {
  position: relative;
}
.hero h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 1px;
  background: var(--terracotta);
  margin-top: 2rem;
}

/* Print */
@media print { .nav, .footer, .cta-block { display: none; } body { background: white; } }

/* =============================================================
   REVIEW WALKTHROUGH UI
   ============================================================= */

/* Welcome popup */
.rv-popup-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(15,29,46,0.6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; transition: opacity .3s ease;
}
.rv-popup-overlay.open { opacity: 1; }
.rv-popup {
  background: var(--cream);
  max-width: 520px; width: 100%;
  padding: 2.5rem 2.2rem;
  border-radius: 2px;
  border-top: 4px solid var(--terracotta);
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  transform: translateY(20px); transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.rv-popup-overlay.open .rv-popup { transform: none; }
.rv-popup-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--terracotta); font-weight: 600; margin-bottom: 1rem;
}
.rv-popup h2 {
  font-family: var(--serif); font-size: 1.9rem; font-weight: 340;
  letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 1rem;
  color: var(--ink);
}
.rv-popup p { color: var(--ink-soft); font-size: 0.97rem; line-height: 1.55; margin: 0 0 0.8em; }
.rv-popup-meta {
  font-size: 0.85rem !important; color: var(--muted) !important;
  border-top: 1px solid var(--rule); padding-top: 0.9rem; margin-top: 1.2rem !important;
}
.rv-popup-actions { display: flex; gap: 0.6rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* Buttons (review-namespaced so they don't clash) */
.rv-btn {
  font-family: var(--sans); font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.01em; padding: 12px 22px;
  border: 1px solid transparent; border-radius: 2px;
  cursor: pointer; transition: all .2s ease;
  display: inline-flex; align-items: center; gap: 0.5em;
  text-decoration: none;
}
.rv-btn-primary { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.rv-btn-primary:hover { background: var(--terracotta); border-color: var(--terracotta); }
.rv-btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.rv-btn-ghost:hover { border-color: var(--ink); background: var(--paper); }
.rv-btn-sm { padding: 9px 16px; font-size: 0.82rem; }
.rv-btn-lg { padding: 16px 30px; font-size: 0.95rem; }

/* Floating "start review" button (when popup dismissed) */
.rv-floating-start {
  position: fixed; bottom: 20px; right: 20px; z-index: 8000;
  background: var(--ink); color: var(--cream);
  border: none; padding: 12px 18px; border-radius: 24px;
  font-family: var(--sans); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: all .2s ease;
}
.rv-floating-start:hover { background: var(--terracotta); transform: translateY(-2px); }

/* Top bar */
.rv-topbar {
  background: var(--ink); color: var(--cream);
  padding: 10px 0; position: sticky; top: 0; z-index: 200;
  border-bottom: 1px solid rgba(245,239,228,0.1);
  font-family: var(--sans);
}
.rv-topbar + .nav { top: 38px; }  /* push sticky nav below review bar */
.rv-topbar-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
.rv-topbar-left { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.rv-mode-tag {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600; color: #e8a075;
  border: 1px solid #e8a075; padding: 3px 8px; border-radius: 2px;
}
.rv-page-name { font-size: 0.85rem; color: rgba(245,239,228,0.85); }
.rv-progress { display: flex; gap: 6px; }
.rv-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(245,239,228,0.2); transition: all .2s ease;
}
.rv-dot.done { background: #e8a075; }
.rv-dot.current { background: var(--cream); transform: scale(1.4); }
@media (max-width: 600px) {
  .rv-progress { display: none; }
  .rv-page-name { font-size: 0.78rem; }
}

/* Bottom drawer */
.rv-drawer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  font-family: var(--sans);
  pointer-events: none;
}
.rv-drawer-tab {
  pointer-events: auto;
  background: var(--ink); color: var(--cream);
  border: none; padding: 14px 24px; width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-family: var(--sans);
  border-top: 2px solid var(--terracotta);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.15);
  transition: background .2s ease;
}
.rv-drawer-tab:hover { background: #1c2d44; }
.rv-drawer-tab-left, .rv-drawer-tab-right { display: flex; align-items: center; gap: 0.7rem; }
.rv-drawer-icon { font-size: 1rem; }
.rv-drawer-tab-label { font-size: 0.92rem; font-weight: 500; letter-spacing: 0.01em; }
.rv-next-hint { font-size: 0.78rem; color: rgba(245,239,228,0.65); letter-spacing: 0.05em; }
.rv-chevron { font-size: 0.7rem; transition: transform .25s ease; }
.rv-drawer.open .rv-chevron { transform: rotate(180deg); }
@media (max-width: 600px) {
  .rv-next-hint { display: none; }
  .rv-drawer-tab { padding: 12px 16px; }
  .rv-drawer-tab-label { font-size: 0.85rem; }
}

.rv-drawer.pulse .rv-drawer-tab {
  animation: rvPulse 1.6s ease-in-out 2;
}
@keyframes rvPulse {
  0%, 100% { box-shadow: 0 -8px 24px rgba(0,0,0,0.15); }
  50% { box-shadow: 0 -8px 32px rgba(184,90,60,0.4); }
}

.rv-drawer-body {
  pointer-events: auto;
  background: var(--cream); color: var(--ink);
  max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.2,.7,.2,1);
  border-top: 1px solid var(--rule);
}
.rv-drawer.open .rv-drawer-body { max-height: 80vh; overflow-y: auto; }

.rv-drawer-inner {
  max-width: 880px; margin: 0 auto; padding: 2rem 1.5rem 2.5rem;
}
.rv-drawer-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1.8rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--rule);
}
.rv-drawer-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--terracotta); font-weight: 600; margin-bottom: 0.3rem;
}
.rv-drawer-header h3 {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 380;
  margin: 0; letter-spacing: -0.02em;
}
.rv-drawer-close {
  background: transparent; border: none; font-size: 1.6rem;
  color: var(--muted); cursor: pointer; padding: 0 0.4rem;
  line-height: 1;
}
.rv-drawer-close:hover { color: var(--ink); }

.rv-questions { display: flex; flex-direction: column; gap: 1.8rem; }
.rv-q-label {
  display: block; font-size: 0.95rem; font-weight: 500;
  color: var(--ink); margin-bottom: 0.8rem; line-height: 1.45;
}

/* Options (radio / checkbox) */
.rv-options { display: flex; flex-direction: column; gap: 0.5rem; }
.rv-options-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.5rem;
}
.rv-option {
  display: flex; align-items: flex-start; gap: 0.7rem;
  padding: 0.75rem 1rem; background: var(--paper);
  border: 1px solid var(--rule); border-radius: 2px;
  cursor: pointer; transition: all .15s ease;
}
.rv-option:hover { border-color: var(--terracotta); background: var(--cream); }
.rv-option.selected { background: var(--cream); border-color: var(--terracotta); }
.rv-option input { accent-color: var(--terracotta); margin-top: 3px; flex-shrink: 0; }
.rv-option-label { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.4; }
.rv-option.selected .rv-option-label { color: var(--ink); font-weight: 500; }

/* Rating stars */
.rv-rating { display: flex; gap: 4px; align-items: center; }
.rv-star {
  background: transparent; border: none; cursor: pointer;
  font-size: 1.8rem; color: var(--rule); padding: 4px;
  transition: color .15s ease, transform .15s ease;
}
.rv-star:hover { transform: scale(1.15); color: #e8a075; }
.rv-star.active { color: var(--terracotta); }

/* Text inputs */
.rv-q textarea, .rv-q input[type="text"] {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--rule); background: var(--paper);
  font-family: var(--sans); font-size: 0.95rem; color: var(--ink);
  border-radius: 2px; outline: none; transition: border-color .15s ease;
  resize: vertical;
}
.rv-q textarea:focus, .rv-q input[type="text"]:focus {
  border-color: var(--terracotta); background: var(--cream);
}

.rv-drawer-footer {
  display: flex; justify-content: space-between; gap: 0.8rem;
  margin-top: 2.2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .rv-drawer-footer { flex-direction: column-reverse; }
  .rv-drawer-footer .rv-btn { width: 100%; justify-content: center; }
}

/* Toast */
.rv-toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--cream);
  padding: 12px 22px; border-radius: 2px;
  font-size: 0.88rem; font-family: var(--sans);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
  z-index: 10000; box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.rv-toast.show { opacity: 1; }

/* =====================================================
   FINAL PAGE (review.html)
   ===================================================== */
.rv-final-progress {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 0.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 720px) { .rv-final-progress { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 420px) { .rv-final-progress { grid-template-columns: repeat(2, 1fr); } }
.rv-final-step {
  padding: 1rem 0.5rem; text-align: center;
  border-top: 2px solid var(--rule); opacity: 0.5;
  transition: all .25s ease;
}
.rv-final-step.done {
  border-top-color: var(--terracotta); opacity: 1;
}
.rv-final-step-num {
  font-family: var(--serif); font-size: 0.85rem;
  color: var(--terracotta); margin-bottom: 0.3rem;
  font-variation-settings: "opsz" 12;
}
.rv-final-step-name {
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 500;
}

.rv-final-section { padding: 0 0 3rem; }
.rv-final-section h2 { margin-bottom: 1rem; }

.rv-testimonial {
  background: var(--paper); border: 1px solid var(--rule);
  padding: 1.5rem; margin-bottom: 1rem; border-radius: 2px;
}
.rv-testimonial-header {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 1rem;
}
.rv-field { margin-bottom: 1rem; }
.rv-field:last-child { margin-bottom: 0; }
.rv-field label {
  display: block; font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 0.4rem; font-weight: 600;
}
.rv-field input, .rv-field textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--rule); background: var(--cream);
  font-family: var(--sans); font-size: 0.95rem; color: var(--ink);
  border-radius: 2px; outline: none;
}
.rv-field input:focus, .rv-field textarea:focus { border-color: var(--terracotta); }
.rv-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 540px) { .rv-field-row { grid-template-columns: 1fr; } }

.rv-final-submit {
  background: var(--ink); color: var(--cream);
  padding: 3rem 2rem; text-align: center; margin: 2rem 0 4rem;
  border-radius: 2px;
}
.rv-final-submit h2 { color: var(--cream); }
.rv-final-submit p { color: rgba(245,239,228,0.78); max-width: 50ch; margin: 0 auto 2rem; }
.rv-btn-group { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }

/* Summary modal */
.rv-modal-overlay {
  position: fixed; inset: 0; background: rgba(15,29,46,0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: none; align-items: flex-start; justify-content: center;
  padding: 4vh 20px; z-index: 1000; overflow-y: auto;
}
.rv-modal-overlay.open { display: flex; }
.rv-modal {
  background: var(--cream); max-width: 720px; width: 100%;
  padding: 2rem; border-radius: 2px; max-height: 92vh;
  display: flex; flex-direction: column;
}
.rv-modal h2 { margin-top: 0; }
.rv-modal pre {
  background: var(--paper); border: 1px solid var(--rule);
  padding: 1.5rem; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.8rem; line-height: 1.6; color: var(--ink);
  white-space: pre-wrap; word-wrap: break-word;
  max-height: 55vh; overflow-y: auto; flex: 1; margin: 1rem 0 0;
}
.rv-modal-actions {
  display: flex; gap: 0.6rem; margin-top: 1.5rem; flex-wrap: wrap;
}
.rv-modal-actions .rv-btn {
  background: transparent; color: var(--ink); border-color: var(--rule);
}
.rv-modal-actions .rv-btn:hover { background: var(--paper); border-color: var(--ink); }
.rv-modal-actions .rv-btn-primary {
  background: var(--ink); color: var(--cream); border-color: var(--ink);
}
.rv-modal-actions .rv-btn-primary:hover { background: var(--terracotta); border-color: var(--terracotta); }

/* Push body content above drawer when on a review page */
body.rv-active { padding-bottom: 80px; }


/* =============================================================
   QUANTAMENTAL FUNNEL DIAGRAM
   ============================================================= */
.quant-funnel {
  margin: 3rem 0 2rem;
  width: 100%;
  max-width: 920px;
}
.quant-funnel-svg {
  width: 100%;
  height: auto;
  display: block;
}
.quant-funnel-caption {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,239,228,0.45);
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-weight: 500;
}

/* =============================================================
   SAME RIGOR PARALLEL VISUAL (About page)
   ============================================================= */
.rigor-band {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.rigor-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 50%, rgba(232,160,117,0.08), transparent 50%),
    radial-gradient(ellipse at 100% 50%, rgba(232,160,117,0.08), transparent 50%);
  pointer-events: none;
}
.rigor-band .container { position: relative; z-index: 2; }

.rigor-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}
.rigor-head .eyebrow { color: #e8a075; justify-content: center; }
.rigor-head .eyebrow::before { background: #e8a075; }
.rigor-head h2 { color: var(--cream); }

.rigor-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 760px) {
  .rigor-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.rigor-col {
  text-align: center;
  padding: 2rem 1rem;
}
.rigor-tag {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e8a075;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.rigor-figure {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144, "SOFT" 20;
  margin-bottom: 0.6rem;
}
.rigor-figure em { font-style: italic; color: #e8a075; font-weight: 300; }
.rigor-meta {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(245,239,228,0.75);
  margin-bottom: 2rem;
  font-variation-settings: "opsz" 24;
}
.rigor-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}
.rigor-col ul li {
  padding: 0.6rem 0;
  font-size: 0.92rem;
  color: rgba(245,239,228,0.78);
  border-top: 1px solid rgba(245,239,228,0.12);
}
.rigor-col ul li:last-child { border-bottom: 1px solid rgba(245,239,228,0.12); }

.rigor-divider {
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(245,239,228,0.2), transparent);
  align-self: stretch;
  min-height: 100%;
}
@media (max-width: 760px) {
  .rigor-divider { display: none; }
}

.rigor-conclusion {
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-style: italic;
  font-weight: 300;
  color: var(--cream);
  max-width: 60ch;
  margin: 3.5rem auto 0;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(245,239,228,0.15);
  font-variation-settings: "opsz" 48, "SOFT" 30;
  line-height: 1.5;
}
.rigor-conclusion em {
  font-style: italic;
  color: #e8a075;
}

/* =============================================================
   401(K) 4-QUADRANT GRID
   ============================================================= */
.quadrant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--rule);
  background: var(--rule);
  margin: 2rem 0;
}
@media (max-width: 700px) { .quadrant-grid { grid-template-columns: 1fr; } }

.quadrant {
  background: var(--cream);
  padding: 2.4rem 2rem;
  position: relative;
  border-top: 4px solid;
}
.quadrant.q1 { border-top-color: #1f3df0; }
.quadrant.q2 { border-top-color: #1f7a3d; }
.quadrant.q3 { border-top-color: var(--terracotta); }
.quadrant.q4 { border-top-color: var(--ink); }

.quadrant-num {
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: block;
  margin-bottom: 0.8rem;
  font-variation-settings: "opsz" 12;
}
.quadrant h3 {
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.quadrant p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

/* =============================================================
   COASTAL PHOTOGRAPHY BLOCKS
   ============================================================= */
.coastal-band {
  padding: 0;
  position: relative;
  overflow: hidden;
}
.coastal-hero {
  position: relative;
  aspect-ratio: 21/9;
  overflow: hidden;
  background: linear-gradient(135deg, #7a9bb5 0%, #c9a878 60%, #b85a3c 100%);
}
.coastal-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
  filter: saturate(0.9) contrast(1.02);
}
.coastal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15,29,46,0.55) 100%);
  pointer-events: none;
}
.coastal-caption {
  position: absolute;
  bottom: 2rem; left: 2rem; right: 2rem;
  color: var(--cream);
  z-index: 2;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 300;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
  max-width: 46ch;
}
.coastal-caption em { color: #e8a075; font-style: italic; }
.coastal-caption .attr {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,239,228,0.65);
  margin-top: 0.6rem;
  font-weight: 500;
}

/* Split coastal treatment - image + text side by side */
.coastal-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}
@media (max-width: 800px) { .coastal-split { grid-template-columns: 1fr; } }
.coastal-split-img {
  position: relative;
  min-height: 320px;
  background: linear-gradient(135deg, #7a9bb5 0%, #c9a878 60%, #b85a3c 100%);
  overflow: hidden;
}
.coastal-split-img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  filter: saturate(0.9);
}
.coastal-split-copy {
  padding: clamp(2.5rem, 5vw, 4.5rem);
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
}
.coastal-split-copy .eyebrow { margin-bottom: 1.2rem; }

/* =============================================================
   LOGO IN NAV
   ============================================================= */
.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}
.brand-with-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand-with-logo:hover { opacity: 0.85; }

/* =============================================================
   401(K) ECOSYSTEM DIAGRAM
   ============================================================= */
.ecosystem {
  margin: 3rem 0;
  padding: 3rem 0;
  position: relative;
}
.ecosystem-sponsor-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 3.5rem;
  position: relative;
}
.ecosystem-sponsor-wrap::after {
  content: "";
  position: absolute;
  bottom: -3.5rem;
  left: 50%;
  width: 1px;
  height: 3.5rem;
  background: var(--rule);
  transform: translateX(-0.5px);
}
.ecosystem-sponsor {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  padding: 2rem 2.5rem;
  text-align: center;
  max-width: 420px;
  position: relative;
  border-radius: 2px;
}
.ecosystem-sponsor .tag {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  display: block;
  margin-bottom: 0.6rem;
}
.ecosystem-sponsor h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 380;
  margin: 0 0 0.3rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.ecosystem-sponsor em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 1rem;
  display: block;
  margin-bottom: 0.9rem;
  font-variation-settings: "opsz" 24;
}
.ecosystem-sponsor p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

.ecosystem-providers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  position: relative;
}
.ecosystem-providers::before {
  content: "";
  position: absolute;
  top: -1.75rem;
  left: 16.66%;
  right: 16.66%;
  height: 1px;
  background: var(--rule);
}
@media (max-width: 800px) {
  .ecosystem-providers { grid-template-columns: 1fr; gap: 1rem; }
  .ecosystem-providers::before { display: none; }
  .ecosystem-sponsor-wrap { margin-bottom: 1.5rem; }
  .ecosystem-sponsor-wrap::after { display: none; }
}

.ecosystem-provider {
  padding: 2rem 1.5rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  text-align: center;
  border-radius: 2px;
  position: relative;
}
.ecosystem-provider::before {
  content: "";
  position: absolute;
  top: -1.75rem;
  left: 50%;
  width: 1px;
  height: 1.75rem;
  background: var(--rule);
  transform: translateX(-0.5px);
}
@media (max-width: 800px) {
  .ecosystem-provider::before { display: none; }
}

.ecosystem-provider .tag {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  display: block;
  margin-bottom: 0.6rem;
}
.ecosystem-provider h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 0.3rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.ecosystem-provider em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 0.92rem;
  display: block;
  margin-bottom: 0.9rem;
  font-variation-settings: "opsz" 24;
}
.ecosystem-provider p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}

/* THE US card — highlighted */
.ecosystem-provider.us {
  background: var(--ink);
  border-color: var(--terracotta);
  border-width: 2px;
  padding: calc(2rem - 1px) calc(1.5rem - 1px);
  transform: translateY(-8px);
}
.ecosystem-provider.us::before {
  background: var(--terracotta);
  height: 1.75rem;
  top: -1.75rem;
}
.ecosystem-provider.us .tag { color: #e8a075; }
.ecosystem-provider.us h3 { color: var(--cream); }
.ecosystem-provider.us em { color: rgba(245,239,228,0.65); }
.ecosystem-provider.us p { color: rgba(245,239,228,0.78); }
@media (max-width: 800px) {
  .ecosystem-provider.us { transform: none; }
}

.ecosystem-footnote {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
  margin-top: 3rem;
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-variation-settings: "opsz" 24;
}
.ecosystem-footnote em {
  color: var(--terracotta);
  font-style: italic;
}

/* Photos inside place-illustration slots */
.place-illustration img.place-photo {
  width: 100%;
  height: 100%;
  min-height: 320px;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  filter: saturate(0.94);
}
