:root {
  --font-body: "Roboto", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "EB Garamond", Georgia, "Times New Roman", serif;
  --feature-heading-size: clamp(2.4rem, 4.2vw, 4rem);
  --logo-width: 248px;
  --brand: #6C3D7C;
  --brand-deep: #4E285C;
  --brand-soft: #F0EAF3;
  --ink: #2D2830;
  --muted: #68616C;
  --cream: #FBF9FA;
  --line: #E7E0EA;
  --sticky-header-height: 85px;
  --header-wrap: nowrap;
  --menu-display: none;
  --nav-display: flex;
  --nav-gap: 1.7rem;
  --nav-padding: 0;
  --nav-link-padding: 0;
  --team-columns: minmax(280px, .9fr) 1.1fr;
  --team-details-height: auto;
  --team-containment: size;
  --team-padding: 0;
  --team-bio-flex: 1;
  --team-bio-max-height: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--sticky-header-height) + 1rem); }
body { margin: 0; color: var(--ink); background: white; font-family: var(--font-body); line-height: 1.65; }
button, input, textarea, select { font: inherit; }
a { color: inherit; }
p { margin: 0 0 1.1rem; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 1rem; background: white; padding: .75rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Header: one layout rule; responsive values are set below. */
.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.header-inner { min-height: var(--header-row-height, 84px); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: var(--header-wrap); }
.brand { display: inline-flex; flex-shrink: 0; text-decoration: none; }
.brand-logo { display: block; width: min(var(--logo-width), 58vw); height: auto; aspect-ratio: 124 / 41; object-fit: fill; }
.primary-nav { display: var(--nav-display); align-items: center; gap: var(--nav-gap); padding: var(--nav-padding); }
.primary-nav a { text-decoration: none; font-size: .92rem; padding: var(--nav-link-padding); white-space: nowrap; }
.primary-nav a:hover, .text-link:hover { color: var(--brand); }
.primary-nav .nav-cta { background: var(--brand); color: white; border: 1px solid var(--brand); padding: .65rem 1rem; }
.primary-nav .nav-cta:hover { background: var(--brand-deep); color: white; }
.menu-toggle { display: var(--menu-display); background: none; border: 1px solid var(--line); border-radius: 0; padding: .55rem .9rem; color: var(--brand); }
.menu-toggle:hover { background: var(--brand-soft); border-color: var(--brand); }
.brokercheck-banner { background: #f8f8f8; color: #242424; text-align: center; padding: 8px 16px; font-size: clamp(.69rem, 1.1vw, .88rem); letter-spacing: .14em; line-height: 1.5; }
.brokercheck-banner a { text-decoration: underline; text-underline-offset: 3px; }
.brokercheck-banner a:hover { color: var(--brand); }

/* Typography and shared actions. */
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.14; letter-spacing: -.035em; color: var(--ink); }
h1, h2 { font-weight: 500; }
h1 { max-width: none; font-size: var(--feature-heading-size); text-wrap: balance; letter-spacing: -.01em; margin: 0 0 1.4rem; }
h2 { font-size: clamp(2.2rem, 4vw, 3.45rem); margin: 0 0 1.25rem; }
.hero h1, #approach h2, #services .section-heading h2, #about h2, #contact h2 {
  font-family: var(--font-heading);
  font-size: var(--feature-heading-size);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.01em;
}
.approach-heading-line { display: block; white-space: nowrap; }
h3 { font-size: 1.45rem; margin: .5rem 0 .85rem; }
.eyebrow { color: var(--brand); font-size: .76rem; font-weight: 800; letter-spacing: .18em; margin: 0 0 1rem; }
.eyebrow-light { color: #E5D7EC; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .85rem 1.25rem; border-radius: 0; font: inherit; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.button-primary { background: var(--brand); color: white; }
.button-primary:hover { background: var(--brand-deep); }
.button-secondary { border-color: var(--brand); color: var(--brand); }
.button-secondary:hover { background: var(--brand); color: white; }
.button-outline-light { border-color: rgba(255,255,255,.7); color: white; margin-top: .6rem; }
.button-outline-light:hover { background: white; color: var(--brand-deep); }
.button:hover { box-shadow: inset 0 0 0 2px currentColor; }
.text-link { color: var(--brand); text-decoration: none; font-weight: 700; }
a[href]:not(.brand):not(.footer-brand):hover { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 2px; }
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; box-shadow: 0 0 0 7px white; }

/* Homepage. */
.hero { position: relative; min-height: 600px; display: flex; align-items: center; background: #FBFAF9; overflow: hidden; }
.hero-grid { position: relative; z-index: 2; padding-block: 4rem; }
.hero-copy { max-width: 560px; }
.hero-headline-line { display: block; }
.hero-lede { color: var(--ink); font-size: 1.13rem; max-width: 56ch; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.3rem; margin-top: 2rem; }
.hero-art.hero-art-photo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: hidden; }
.hero-art-photo picture { display: block; width: 100%; height: 100%; }
.hero-art-photo img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; object-position: 78% 45%; }
.hero-art-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #FBFAF9 0%, #FBFAF9 34%, rgba(251,250,249,.75) 52%, rgba(251,250,249,0) 78%); }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-light { background: #F1EDF3; }
.two-column, .about-grid, .contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.section-copy { color: var(--muted); font-size: 1.05rem; }
.small-note, .disclaimer-inline { color: var(--muted); font-size: .82rem; }
.section-heading { max-width: 680px; margin-bottom: 2.5rem; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.05rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.service-card { border: 1px solid var(--line); padding: 1.6rem; background: white; }
.card-number { color: var(--brand); font-size: .78rem; letter-spacing: .12em; font-weight: 800; }
.service-card p, .service-card li { color: var(--muted); font-size: .93rem; }
.service-card ul { padding-left: 1.1rem; margin-bottom: 0; }
.service-card li { margin: .35rem 0; }
.wealth-intro { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.75rem; }
.wealth-topics article { border-top: 1px solid #D5C8DC; padding: 1.25rem 0; }
.wealth-topics h3 { margin-top: 0; font-size: 1.7rem; }
.wealth-topics p { color: var(--muted); margin-bottom: 0; }
.disclaimer-inline { margin-top: 1.5rem; }
.section-green { background: var(--brand); color: #F4EFF9; }
.section-green h2 { color: white; }
#contact { background: var(--cream); }
.contact-panel { padding: clamp(1.25rem, 3vw, 2rem); background: white; border: 1px solid var(--line); }
.contact-panel > :last-child { margin-bottom: 0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.4rem 0; }
.contact-panel address { font-style: normal; margin-bottom: 1rem; }
.contact-panel a:not(.button) { color: var(--brand); overflow-wrap: anywhere; }
.contact-note { font-size: .95rem; }

/* Team: each base selector is defined once. */
.team-intro { padding-bottom: 3.6rem; }
.team-intro h1 { max-width: none; margin-bottom: 1rem; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.team-intro p:last-child { max-width: 65ch; color: var(--muted); font-size: 1.1rem; }
.team-grid { display: grid; gap: 2.6rem; }
.team-card { display: grid; grid-template-columns: var(--team-columns); gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; overflow: hidden; background: white; }
.team-photo { margin: 0; position: relative; width: 100%; aspect-ratio: 1; align-self: center; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.team-photo-fallback { font-family: var(--font-heading); font-size: 4rem; color: rgba(108,61,124,.7); letter-spacing: .07em; }
.team-photo img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
#angelique-ayala .team-photo { background: #C0CBCE; }
/* The wider Savvy portrait has a 600px photo plus a 44px decorative shadow.
   Fill the square frame with the photo itself, leaving the shadow outside. */
#angelique-ayala .team-photo img { width: 107.333333%; height: 107.333333%; object-position: left top; }
.team-details { height: var(--team-details-height); min-height: 0; min-width: 0; align-self: stretch; contain: var(--team-containment); display: flex; flex-direction: column; padding: var(--team-padding); }
.team-details > :not(.team-bio) { flex-shrink: 0; }
.team-details h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: .25rem; }
.team-role { color: var(--brand); font-weight: 700; margin-bottom: .15rem; font-size: 1rem; }
.team-role:last-of-type { margin-bottom: 1.3rem; }
.team-certification { color: var(--brand); font-size: .85rem; margin-bottom: 1.3rem; }
.team-credentials { display: inline-block; margin-left: .4em; color: #6E6D72; font-family: var(--font-body); font-size: .4em; font-weight: 750; letter-spacing: normal; white-space: nowrap; }
.team-bio { flex: var(--team-bio-flex); min-height: 0; max-height: var(--team-bio-max-height); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding-right: .5rem; }
.team-bio p { line-height: 1.7; color: var(--muted); }
.team-bio p:last-child { margin-bottom: 0; }
.team-contacts { display: flex; flex-wrap: wrap; flex-shrink: 0; gap: .6rem 1.3rem; margin-top: 1rem; }
.team-contacts a { color: var(--brand); font-weight: 700; font-size: .9rem; overflow-wrap: anywhere; }

/* Client resources and disclosures. */
.resource-container { max-width: 1000px; }
.resource-title { max-width: none; font-size: clamp(2.4rem, 5vw, 4rem); }
.portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin: 2rem 0 3rem; }
.portal-grid h2, .resource-subtitle, .legal-content h2 { font-size: 1.8rem; }
.legal-content h2 { margin-top: 2rem; }
.resource-container a:not(.button) { color: var(--brand); overflow-wrap: anywhere; }

/* Footer: actual reversed artwork, plus a readable text tagline. */
.site-footer { background: #34203E; color: #EEE7F1; padding: clamp(3rem, 5vw, 4.5rem) 0 1.8rem; }
.site-footer a { color: inherit; text-underline-offset: .2em; }
.site-footer a:hover { color: white; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr .85fr; align-items: start; gap: clamp(2rem, 4vw, 4rem); padding-bottom: 2.5rem; }
.footer-branding { max-width: 300px; }
.footer-brand { display: block; width: min(210px, 100%); }
.footer-brand img { display: block; width: 100%; height: auto; }
.footer-tagline { font-size: .95rem; line-height: 1.55; margin: 1.2rem 0 0; }
.footer-contact { min-width: 0; }
.footer-contact a { overflow-wrap: anywhere; }
.footer-contact address { font-style: normal; margin-bottom: 1rem; }
.footer-contact p { margin-bottom: .65rem; }
.footer-links { display: flex; flex-direction: column; align-items: start; gap: .4rem; }
.footer-links a { text-decoration: none; font-size: .92rem; }
.footer-heading { font-family: var(--font-body); color: #D8C9DF; font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 1rem; }
.footer-disclosures { border-top: 1px solid rgba(255,255,255,.18); padding-top: 1.5rem; font-size: 1rem; line-height: 1.75; color: #F3EDF9; }
.footer-disclosures p { max-width: none; }
.footer-disclosures a { text-decoration: underline; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: .6rem 1.3rem; margin: 1.5rem 0; }

@media (min-width: 821px) {
  #approach .two-column { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  :root { --header-wrap: wrap; --menu-display: inline-flex; --nav-display: none; --nav-gap: 0; --nav-padding: .5rem 0 1rem; --nav-link-padding: .7rem 0; }
  .primary-nav { flex-basis: 100%; align-items: stretch; flex-direction: column; }
  .primary-nav.is-open { display: flex; }
  .primary-nav .nav-cta { align-self: flex-start; }
}
@media (max-width: 900px) {
  :root { --header-row-height: 76px; --sticky-header-height: 77px; --logo-width: 220px; }
  .menu-toggle { margin-left: auto; }
  .hero { display: block; min-height: 0; }
  .hero-grid { padding-block: 2.5rem; }
  .hero-art.hero-art-photo { position: relative; inset: auto; height: 220px; }
  .hero-art-photo::after { display: none; }
}
@media (max-width: 820px) {
  .two-column, .about-grid, .contact-grid, .service-grid, .portal-grid { grid-template-columns: 1fr; }
  .service-card { padding: 1.35rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-branding { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  :root { --team-columns: 1fr; --team-containment: none; --team-padding: 1.4rem; --team-bio-flex: 0 1 auto; --team-bio-max-height: 20rem; }
}
@media (max-width: 600px) {
  .brokercheck-banner { letter-spacing: .07em; padding: 7px 12px; }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}
@media (forced-colors: active) {
  :where(a, button, input, textarea, select, summary, [tabindex]):focus-visible { outline-color: Highlight; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Email fallback box */
.email-fallback {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(45, 40, 48, .55);
}
.email-fallback[hidden] { display: none; }
.email-fallback-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(45, 40, 48, .25);
  text-align: center;
}
.email-fallback-card h2 {
  margin: 0 0 .5rem;
  font-family: var(--font-heading);
  color: var(--brand-deep);
}
.email-fallback-card p { margin: 0 0 .75rem; color: var(--muted); }
.email-fallback-card .email-fallback-address {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brand);
  word-break: break-all;
  user-select: all;
}
.email-fallback-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-top: 1rem;
}
.email-fallback-close {
  position: absolute;
  top: .5rem;
  right: .75rem;
  border: 0;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
