/* ============================================================
   TRG website — component and layout styles.
   Builds on tokens.css (colour, type, spacing, motion tokens).
   ============================================================ */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: #fff; }
img { max-width: 100%; }
main h1, main h2 { text-wrap: balance; }
main h3, main p, main li { text-wrap: pretty; }
@media (prefers-reduced-motion: no-preference) {
  main { animation: fade .35s var(--ease-out); }
}
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.icon { display: block; flex: none; }
.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; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--container-xl); margin: 0 auto; padding-inline: var(--space-7); position: relative; }
@media (max-width: 600px) { .wrap { padding-inline: 20px; } }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 255px), 100%), 1fr));
  gap: var(--gap, 20px);
}
.grid--center { align-items: center; }
.grid--start { align-items: start; }
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap, var(--space-6)); }

.split-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

.section--grey { background: var(--grey-50); border-top: 1px solid var(--border-subtle); }
.section--grey100 { background: var(--grey-100); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.section--navy { background: var(--trg-navy); color: #fff; }
.section--white-rule { background: #fff; border-top: 1px solid var(--border-subtle); }

/* ---------- Type helpers ---------- */
.eyebrow { font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--trg-navy); margin-bottom: 14px; }
.eyebrow--sky { color: var(--sky-600); }
.eyebrow--grey { color: var(--grey-400); }
.eyebrow--white { color: rgba(255, 255, 255, .7); }
.eyebrow--rule { margin-bottom: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--border-subtle); }

.title-xl { font-size: var(--text-5xl); font-weight: 300; line-height: 1.02; letter-spacing: -.015em; }
.title-lg { font-size: var(--text-4xl); font-weight: 300; line-height: 1.04; letter-spacing: -.015em; }
.title-md { font-size: var(--text-3xl); font-weight: 300; }
.section-title { font-size: var(--text-2xl); font-weight: 300; margin: 0 0 40px; }
.on-dark { color: #fff; }
@media (max-width: 1000px) {
  .title-xl, .title-lg { font-size: clamp(38px, 7.5vw, 64px); }
}

.lead { font-size: var(--text-md); line-height: 1.7; color: var(--grey-500); margin: 0; }
.lead--dark { color: rgba(255, 255, 255, .82); }
.body-text { font-size: var(--text-base); line-height: 1.75; color: var(--grey-500); margin: 0; }
.small-text { font-size: var(--text-sm); line-height: 1.65; color: var(--grey-500); margin: 0; }
.fine-print { font-size: 12px; line-height: 1.6; color: var(--grey-400); margin: 0; }
.accent { color: var(--trg-sky); }

.m-0 { margin: 0; }
.mb-0 { margin-bottom: 0; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-22 { margin-bottom: 22px; }
.mb-24 { margin-bottom: 24px; }
.mb-36 { margin-bottom: 36px; }
.mb-44 { margin-bottom: 44px; }
.maxw-340 { max-width: 340px; }
.maxw-360 { max-width: 360px; }
.maxw-380 { max-width: 380px; }
.maxw-440 { max-width: 440px; }
.maxw-480 { max-width: 480px; }
.maxw-520 { max-width: 520px; }
.maxw-540 { max-width: 540px; }
.maxw-560 { max-width: 560px; }
.maxw-600 { max-width: 600px; }
.maxw-620 { max-width: 620px; }
.maxw-640 { max-width: 640px; }
.maxw-680 { max-width: 680px; }
.maxw-700 { max-width: 700px; }
.maxw-720 { max-width: 720px; }

.text-link { color: var(--seafoam-700); font-weight: 500; }
.link-more { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-sm); font-weight: 500; color: var(--seafoam-700); white-space: nowrap; }
a.link-more:hover { color: var(--seafoam-700); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 26px; font-family: var(--font-brand); font-size: var(--text-base); font-weight: 500;
  letter-spacing: .01em; line-height: 1; white-space: nowrap; cursor: pointer;
  border-radius: var(--radius-pill); border: 1px solid transparent; text-decoration: none;
  transition: background var(--duration-fast) var(--ease-standard);
}
.btn--sm { padding: 8px 16px; }
.btn--lg { padding: 15px 34px; font-size: var(--text-md); }
.btn--full { width: 100%; }
.btn--primary, .btn--primary:hover { background: var(--trg-seafoam); color: #fff; }
.btn--primary:hover { background: var(--seafoam-600); }
.btn--secondary, .btn--secondary:hover { background: var(--trg-navy); color: #fff; }
.btn--secondary:hover { background: var(--navy-600); }
.btn--outline, .btn--outline:hover { background: transparent; color: currentColor; border-color: currentColor; }
.btn--outline:hover { background: rgba(255, 255, 255, .08); }
.btn--ghost, .btn--ghost:hover { background: transparent; color: var(--seafoam-700); }
.btn--ghost:hover { background: var(--seafoam-100); }
.on-dark-block .btn--outline { color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-subtle); }
.site-header__bar { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.site-header__logo { display: block; flex: none; }
.site-header__logo img { display: block; }
.site-nav { display: flex; align-items: center; gap: var(--space-5); }
.site-nav a:not(.btn) { font-size: var(--text-sm); font-weight: 500; letter-spacing: .01em; white-space: nowrap; color: var(--grey-500); border-bottom: 2px solid transparent; padding-bottom: 4px; }
.site-nav a:not(.btn):hover { color: var(--trg-navy); }
.site-nav a:not(.btn)[aria-current="page"] { color: var(--trg-navy); border-bottom-color: var(--trg-seafoam); }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: none; cursor: pointer; color: var(--trg-navy); flex: none; padding: 0; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-nav { border-top: 1px solid var(--border-subtle); background: #fff; padding: 8px var(--space-7) 20px; flex-direction: column; display: flex; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) { padding: 13px 2px; font-size: var(--text-base); font-weight: 500; color: var(--grey-600); border-bottom: 1px solid var(--grey-100); }
.mobile-nav a:not(.btn)[aria-current="page"] { color: var(--trg-navy); }
.mobile-nav .btn { margin-top: 18px; align-self: flex-start; }
@media (max-width: 1199px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
}
@media (min-width: 1200px) { .mobile-nav { display: none !important; } }
@media (max-width: 600px) { .mobile-nav { padding-inline: 20px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--trg-navy); color: rgba(255, 255, 255, .72); border-top: 1px solid rgba(255, 255, 255, .1); padding: var(--space-9) 0 var(--space-6); }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: var(--space-8); }
.site-footer__logo { width: 100%; max-width: 260px; height: auto; margin-bottom: 12px; display: block; }
.site-footer__tagline { font-size: 18px; letter-spacing: .28em; text-transform: uppercase; color: var(--trg-sky); }
.socials { display: flex; gap: 11px; margin-top: 24px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .72); }
.socials a:hover { color: #fff; border-color: rgba(255, 255, 255, .45); }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 14px; color: rgba(255, 255, 255, .7); }
.footer-links a:hover { color: #fff; }
.footer-office { display: flex; gap: 8px; margin-bottom: 12px; font-size: 14px; line-height: 1.5; }
.footer-office .icon { margin-top: 3px; color: var(--trg-sky); }
.footer-office strong { display: block; color: #fff; font-weight: 500; }
.footer-office span { display: block; }
.footer-office .muted { color: rgba(255, 255, 255, .55); }
.footer-email { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-top: 4px; color: rgba(255, 255, 255, .72); }
.footer-email .icon { color: var(--trg-sky); }
.footer-legal { font-size: 13px; line-height: 1.7; margin: 0; color: rgba(255, 255, 255, .6); }
.footer-privacy { display: inline-block; margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .72); text-decoration: underline; text-underline-offset: 3px; }
.footer-privacy:hover { color: #fff; }
.site-footer__copy { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 12px; color: rgba(255, 255, 255, .45); }

/* ---------- Photo heroes and bands ---------- */
.media { position: relative; overflow: hidden; color: #fff; }
.media__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media__scrim { position: absolute; inset: 0; }
.scrim-hero { background: linear-gradient(95deg, rgba(13,6,34,.92) 0%, rgba(13,6,34,.72) 44%, rgba(13,6,34,.42) 100%); }
.scrim-band { background: linear-gradient(90deg, rgba(13,6,34,.9) 0%, rgba(13,6,34,.6) 50%, rgba(13,6,34,.25) 100%); }
.media .eyebrow { color: var(--sky-600); }

.home-hero { background: var(--trg-navy); }
.home-hero .media__scrim { background: linear-gradient(100deg, rgba(13,6,34,.94) 0%, rgba(13,6,34,.80) 34%, rgba(13,6,34,.42) 64%, rgba(13,6,34,.20) 100%); }
.home-hero .media__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(to top, rgba(13,6,34,.85), transparent); }
.home-hero .wrap { padding-block: 110px 120px; }
.home-hero .eyebrow { margin-bottom: 22px; }
.home-hero h1 { color: #fff; margin: 0 0 24px; }
.home-hero .lead { color: rgba(255, 255, 255, .78); max-width: 560px; margin-bottom: 36px; }

.hero-stats { display: flex; gap: var(--space-9); margin-top: 80px; flex-wrap: wrap; }
.hero-stats__value { font-size: var(--text-3xl); font-weight: 300; letter-spacing: -.02em; line-height: 1; text-shadow: 0 1px 16px rgba(13,6,34,.5); }
.hero-stats__caption { font-size: var(--text-sm); color: rgba(255, 255, 255, .78); margin-top: 8px; text-shadow: 0 1px 12px rgba(13,6,34,.55); }
[data-count] { font-variant-numeric: tabular-nums; }

.page-hero .wrap { padding-block: 92px 96px; }
.page-hero__content { max-width: 660px; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { color: #fff; margin: 0 0 18px; }
.page-hero .lead { max-width: 560px; }

.band { min-height: 420px; display: flex; align-items: center; }
.band > .wrap { width: 100%; padding-block: 76px; }
.band__content { max-width: 600px; }
.band .eyebrow { margin-bottom: 16px; }
.band h2 { color: #fff; font-size: var(--text-2xl); font-weight: 300; line-height: 1.12; margin: 0 0 14px; }
.band p { font-size: var(--text-md); line-height: 1.7; color: rgba(255, 255, 255, .82); margin: 0; }

.navy-hero .wrap { padding-block: 76px 64px; }
.navy-hero h1 { color: #fff; margin: 0 0 18px; }
.navy-hero .lead { color: rgba(255, 255, 255, .78); max-width: 600px; }
.kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--trg-sky); font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; }

/* ---------- Stats ---------- */
.stat-strip { padding-block: 60px; --min: 255px; --gap: var(--space-8); }
.stat__value { font-size: var(--text-4xl); font-weight: 300; letter-spacing: -.02em; line-height: 1; }
.stat__caption { font-size: var(--text-sm); color: rgba(255, 255, 255, .6); margin-top: 10px; }

/* ---------- Cards ---------- */
.card { display: block; position: relative; background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-sm); color: inherit; transition: box-shadow var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard); }
a.card:hover, .card--hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }
.card h3 { font-size: var(--text-lg); margin: 0 0 8px; }
.card .link-more { margin-top: 14px; }

.icon-tile { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--sky-100); color: var(--sky-600); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.icon-tile--50 { width: 50px; height: 50px; }
.icon-tile--52 { width: 52px; height: 52px; margin-bottom: 20px; }
.icon-tile--44 { width: 44px; height: 44px; margin: 0; flex: none; }
.icon-tile--seafoam { background: var(--seafoam-100); color: var(--seafoam-700); }
.icon-tile--grey { background: var(--grey-100); color: var(--grey-500); }

.value h3 { font-size: var(--text-lg); margin: 0 0 10px; }
.value p { font-size: var(--text-sm); line-height: 1.7; color: var(--grey-500); margin: 0; }
.value--tight h3 { margin-bottom: 8px; }
.value--tight p { line-height: 1.65; }

.step__num { font-size: var(--text-3xl); font-weight: 300; color: var(--trg-sky); letter-spacing: -.02em; margin-bottom: 12px; line-height: 1.1; }
.step h3 { font-size: var(--text-lg); margin: 0 0 8px; }

.pillar { padding: var(--space-7); }
.pillar h3 { font-size: var(--text-xl); margin: 0 0 8px; }
.pillar__lead { margin-bottom: 22px; }
.pillar__item { border-top: 1px solid var(--border-subtle); padding-top: 16px; }
.pillar__item + .pillar__item { margin-top: 16px; }
.pillar__label { font-size: var(--text-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--trg-navy); margin-bottom: 6px; }
.pillar__item p { font-size: var(--text-sm); line-height: 1.65; color: var(--grey-600); margin: 0; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--text-sm); line-height: 1.55; color: var(--grey-500); }
.checklist .icon { margin-top: 1px; color: var(--seafoam-600); }
.checklist strong { font-weight: 600; color: var(--trg-navy); }

.callout { background: var(--trg-navy); color: #fff; border-radius: var(--radius-lg); padding: var(--space-8); display: flex; justify-content: space-between; align-items: center; gap: 36px; flex-wrap: wrap; }
.callout h3 { color: #fff; font-size: var(--text-xl); font-weight: 300; margin: 0 0 8px; }
.callout p { color: rgba(255, 255, 255, .75); margin: 0; font-size: var(--text-base); line-height: 1.6; }

/* ---------- People ---------- */
.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--trg-navy); }
.portrait--square { aspect-ratio: 1 / 1; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
.portrait__initials { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, var(--navy-700), var(--trg-navy)); font-size: var(--text-3xl); font-weight: 300; color: rgba(255, 255, 255, .85); letter-spacing: .04em; }
.person__body { margin-top: 16px; }
.person h3 { font-size: var(--text-lg); margin: 0 0 3px; font-weight: 500; }
.person__role { font-size: var(--text-sm); font-weight: 500; color: var(--trg-navy); }
.person__cred { font-size: var(--text-xs); color: var(--grey-400); margin-top: 3px; }
.person__blurb { font-size: var(--text-sm); line-height: 1.6; color: var(--grey-500); margin: 12px 0 0; }
.person--compact .person__body { margin-top: 12px; }
.person--compact h3 { font-size: var(--text-base); margin-bottom: 2px; }
.person--compact .person__role { font-size: var(--text-xs); color: var(--grey-400); letter-spacing: .02em; }
.person--lead .person__role { font-size: var(--text-xs); color: var(--trg-navy); line-height: 1.35; }
.person--lead .person__cred { margin-top: 2px; }
.pill-note { display: inline-block; margin-top: 7px; font-size: var(--text-xs); font-weight: 600; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--sky-100); color: var(--sky-600); }
.team-group + .team-group { margin-top: var(--space-9); }

/* ---------- Figures and galleries ---------- */
figure { margin: 0; }
.photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.photo img { width: 100%; display: block; }
.photo--4x3 img { aspect-ratio: 4 / 3; object-fit: cover; }
.photo--3x2 img { aspect-ratio: 3 / 2; object-fit: cover; }
.photo--soft { box-shadow: var(--shadow-sm); }
figcaption { font-size: var(--text-sm); color: var(--grey-500); margin-top: 12px; }
.figcaption--xs { font-size: var(--text-xs); color: var(--grey-400); margin-top: 10px; }
.awards { display: flex; gap: 14px; flex-wrap: wrap; align-content: center; }
.awards__item { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 8px; box-shadow: var(--shadow-xs); }
.awards__item img { height: 96px; width: auto; display: block; border-radius: 4px; }

/* ---------- Blog ---------- */
.post { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post__media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(150deg, var(--navy-600), var(--trg-navy)); overflow: hidden; }
.post__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.post__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,6,34,.36) 0%, rgba(13,6,34,0) 42%); }
.tag-pill { position: absolute; top: 14px; left: 14px; z-index: 1; font-size: var(--text-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(13,6,34,.42); backdrop-filter: blur(3px); padding: 4px 10px; border-radius: var(--radius-pill); }
.post__body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; justify-content: center; }
.post__meta { font-size: var(--text-xs); color: var(--grey-400); margin-bottom: 8px; }
.post h3 { font-size: var(--text-base); font-weight: 500; margin: 0 0 10px; line-height: 1.25; }
.post__excerpt { font-size: var(--text-sm); line-height: 1.6; color: var(--grey-500); margin: 0 0 16px; }
.post .link-more { margin-top: auto; }
.post--featured { flex-direction: row; }
.post--featured .post__media { flex: 0 0 46%; aspect-ratio: auto; min-height: 260px; }
.post--featured .post__body { padding: var(--space-7); }
.post--featured h3 { font-size: var(--text-2xl); font-weight: 300; }
@media (max-width: 760px) {
  .post--featured { flex-direction: column; }
  .post--featured .post__media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .post--featured .post__body { padding: var(--space-5); }
}

/* ---------- Money Minute ---------- */
.episode { padding: 0; overflow: hidden; }
.episode__media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(150deg, var(--navy-700), var(--trg-navy)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.episode--featured .episode__media { aspect-ratio: 16 / 9; }
.episode__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.episode__media.has-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,6,34,0) 35%, rgba(13,6,34,.6)); }
.episode__play { position: relative; z-index: 1; width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .14); backdrop-filter: blur(2px); color: #fff; display: flex; align-items: center; justify-content: center; transition: background var(--duration-fast) var(--ease-standard); }
.episode--featured .episode__play { width: 76px; height: 76px; }
.episode:hover .episode__play { background: var(--trg-seafoam); }
.episode .tag-pill { background: rgba(255, 255, 255, .16); backdrop-filter: none; }
.episode__length { position: absolute; z-index: 1; bottom: 14px; right: 14px; font-size: var(--text-xs); font-weight: 600; color: #fff; background: rgba(13,6,34,.5); padding: 4px 10px; border-radius: var(--radius-pill); }
.episode__body { padding: var(--space-5); }
.episode--featured .episode__body { padding: var(--space-6); }
.episode__date { font-size: var(--text-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--grey-400); margin-bottom: 8px; }
.episode h3 { font-size: var(--text-base); margin: 0 0 8px; line-height: 1.25; }
.episode--featured h3 { font-size: var(--text-xl); }
.episode p { font-size: var(--text-sm); line-height: 1.6; color: var(--grey-500); margin: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }

.subscribe { background: var(--grey-50); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-8); display: flex; justify-content: space-between; align-items: center; gap: 36px; flex-wrap: wrap; }
.subscribe h2 { font-size: var(--text-xl); font-weight: 300; margin: 0 0 8px; }
.subscribe form { display: flex; gap: 12px; flex: 1 1 320px; max-width: 460px; flex-wrap: wrap; }
.subscribe input { flex: 1 1 200px; font-family: var(--font-brand); font-size: var(--text-base); color: var(--grey-700); padding: 12px 16px; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-pill); outline: none; }
.subscribe input:focus { border-color: var(--trg-sky); box-shadow: var(--ring-focus); }
.form-done { display: flex; align-items: center; gap: 10px; color: var(--seafoam-700); font-weight: 500; }
.form-done[hidden] { display: none; }
@media (max-width: 600px) { .subscribe, .callout { padding: var(--space-6); } }

/* ---------- Careers ---------- */
.role { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
a.role:hover { transform: none; }
.role__main { max-width: 720px; }
.role__head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; flex-wrap: wrap; }
.role h3 { margin: 0; }
.role__loc { display: inline-flex; align-items: center; gap: 5px; font-size: var(--text-xs); font-weight: 600; color: var(--grey-400); letter-spacing: .03em; }

/* ---------- Contact ---------- */
.contact-list { margin-top: 36px; display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item--center { align-items: center; }
.contact-item strong { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--trg-navy); }
.contact-item span { display: block; font-size: var(--text-sm); color: var(--grey-500); }
.form-card { padding: var(--space-7); box-shadow: var(--shadow-md); }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: var(--text-sm); font-weight: 500; color: var(--trg-navy); }
.field input, .field select, .field textarea { font-family: var(--font-brand); font-size: var(--text-base); color: var(--grey-700); padding: 11px 14px; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-md); outline: none; width: 100%; transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--trg-sky); box-shadow: var(--ring-focus); }
.field textarea { min-height: 110px; resize: vertical; }
.thanks { text-align: center; padding: 40px 0; }
.thanks[hidden] { display: none; }
.thanks__icon { width: 60px; height: 60px; border-radius: 50%; background: var(--seafoam-100); color: var(--seafoam-700); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.thanks h3 { margin: 0 0 8px; }
.thanks p { color: var(--grey-500); margin: 0; }
@media (max-width: 600px) { .form-card { padding: var(--space-5); } }

/* ---------- Wealth Builder ---------- */
.wb { position: relative; overflow: hidden; background: var(--grey-50); color: var(--trg-navy); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.wb::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 84% -10%, rgba(95,191,249,.10), transparent 58%); pointer-events: none; }
.wb > .wrap { padding-block: clamp(60px, 8vw, 92px); }
.wb h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 300; letter-spacing: -.01em; margin: 0 0 10px; }
.wb__intro { font-size: clamp(14px, 1.4vw, 16px); line-height: 1.6; color: var(--grey-500); margin: 0 0 36px; max-width: 540px; }
.wb__grid { --min: 300px; --gap: clamp(32px, 5vw, 72px); align-items: center; }
.wb__donut { position: relative; width: 100%; max-width: 320px; margin: 0 auto; }
.wb__donut svg { width: 100%; display: block; overflow: visible; }
.wb__donut circle[data-seg] { transition: stroke-dasharray .7s var(--ease-standard), stroke-dashoffset .7s var(--ease-standard); }
.wb__donut-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.wb__donut-value { font-size: clamp(40px, 7vw, 60px); font-weight: 300; color: var(--trg-navy); letter-spacing: -.02em; line-height: 1; }
.wb__donut-caption { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-400); margin-top: 6px; }
.wb__legend { display: flex; flex-direction: column; gap: 12px; margin: 28px auto 0; max-width: 320px; padding: 0; list-style: none; }
.wb__legend li { display: flex; align-items: center; gap: 12px; }
.wb__swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.wb__legend-label { font-size: 14px; color: var(--grey-600); flex: 1; }
.wb__legend-value { font-size: 14px; font-weight: 600; color: var(--trg-navy); font-variant-numeric: tabular-nums; }
.wb__fund { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sky-600); margin-bottom: 8px; }
.wb__ret { display: flex; align-items: baseline; gap: 8px; }
.wb__ret-value { font-size: clamp(48px, 7vw, 76px); font-weight: 300; letter-spacing: -.03em; line-height: .9; color: var(--trg-navy); font-variant-numeric: tabular-nums; }
.wb__ret-unit { font-size: 18px; color: var(--grey-500); }
.wb__sub { font-size: 13px; color: var(--grey-500); margin-top: 10px; }
.wb__mdd { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; font-weight: 500; color: var(--seafoam-700); }
.wb__chart-label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-400); margin: 30px 0 6px; }
.wb__chart { width: 100%; height: 168px; display: block; overflow: visible; }
.wb__chart text { font-family: var(--font-brand); }
.wb__axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--grey-400); margin-top: 4px; padding: 0 2px; }
.wb__picker { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.wb__picker button { flex: 1 1 auto; min-width: 110px; text-align: left; cursor: pointer; font-family: var(--font-brand); padding: 12px 16px; border-radius: var(--radius-md); transition: all .2s var(--ease-standard); background: #fff; border: 1px solid var(--border-subtle); color: var(--trg-navy); }
.wb__picker button[aria-pressed="true"] { background: var(--trg-navy); border-color: transparent; color: #fff; }
.wb__picker-name { display: block; font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.wb__picker-growth { display: block; font-size: 11.5px; color: var(--grey-400); margin-top: 2px; }
.wb__picker button[aria-pressed="true"] .wb__picker-growth { color: rgba(255, 255, 255, .85); }
.wb .fine-print { margin-top: 22px; max-width: 760px; }
.wb-fade { animation: wbFade .5s var(--ease-standard); }
.wb-draw { animation: wbDraw 1s var(--ease-standard) forwards; }
.wb-late { animation: wbFade .5s var(--ease-standard) .85s both; }
@keyframes wbDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes wbFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wb-fade, .wb-draw, .wb-late { animation: none; } }
form[hidden] { display: none !important; }
.footer-office a { display: block; color: rgba(255, 255, 255, .7); }
.footer-office a:hover, .contact-item a:hover { color: var(--seafoam-700); }
.contact-item a { color: inherit; }

/* Wealth Builder: all-funds comparison table */
.wb__table { margin-top: 22px; }
.wb__table summary { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--seafoam-700); width: fit-content; }
.wb__table-scroll { overflow-x: auto; margin-top: 14px; background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.wb__table table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.wb__table th, .wb__table td { padding: 10px 14px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--border-subtle); }
.wb__table thead th { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-400); }
.wb__table tbody th { font-weight: 600; color: var(--trg-navy); }
.wb__table tbody tr:last-child > * { border-bottom: none; }
.wb__table td { color: var(--grey-600); }
.form-error { font-size: var(--text-sm); line-height: 1.6; color: var(--status-negative); margin: 14px 0 0; flex-basis: 100%; }
.form-error[hidden] { display: none; }
.form-error a { color: inherit; text-decoration: underline; }

/* Risk notice (crypto page) */
.risk-notice { display: flex; gap: 18px; align-items: flex-start; background: var(--grey-100); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: var(--space-6); }
.risk-notice__title { font-size: var(--text-lg); margin: 0 0 6px; }
.risk-notice p { font-size: var(--text-base); line-height: 1.7; color: var(--grey-700); margin: 0; max-width: 760px; }
@media (max-width: 600px) { .risk-notice { flex-direction: column; padding: var(--space-5); } }

/* Footer: regulatory disclosures */
.site-footer__disclosures { margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 0 var(--space-8); }
.site-footer__disclosures p { font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, .6); margin: 0 0 12px; }
.site-footer__disclosures strong { color: rgba(255, 255, 255, .8); font-weight: 600; }
.site-footer__disclosures a { color: rgba(255, 255, 255, .78); text-decoration: underline; text-underline-offset: 2px; }
.site-footer__disclosures a:hover { color: #fff; }
.site-footer__disclosures + .site-footer__copy { margin-top: 16px; }

/* Long-form text pages (privacy notice) */
.prose { max-width: 720px; }
.prose h2 { font-size: var(--text-xl); font-weight: 400; margin: 36px 0 10px; }
.prose p, .prose li { font-size: var(--text-base); line-height: 1.75; color: var(--grey-600); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 4px; }
.prose a { color: var(--seafoam-700); text-decoration: underline; text-underline-offset: 2px; }

/* Form privacy and consent notes */
.form-note { font-size: var(--text-xs); line-height: 1.6; color: var(--grey-500); margin: 12px 0 0; flex-basis: 100%; }
.form-note a { color: var(--seafoam-700); text-decoration: underline; text-underline-offset: 2px; }

/* Keyboard focus: a solid 2px outline. Navy on light surfaces, sky on dark ones. */
:focus-visible { outline: 2px solid var(--trg-navy); outline-offset: 3px; box-shadow: none; border-radius: var(--radius-xs); }
.card:focus-visible { outline-offset: 4px; box-shadow: var(--shadow-md); }
.site-footer :focus-visible, .media :focus-visible, .section--navy :focus-visible, .callout :focus-visible, .wb__picker button[aria-pressed="true"]:focus-visible { outline-color: var(--trg-sky); }
.btn:focus-visible { border-radius: var(--radius-pill); }
main:focus { outline: none; }
[tabindex="-1"]:focus { outline: none; }

/* Skip link: hidden until focused */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 50; background: var(--trg-navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: 500; }
.skip-link:focus { top: 12px; color: #fff; }

h2.eyebrow { font-family: var(--font-brand); line-height: 1.7; }

/* Mobile fixes: the logo shrinks on narrow screens; the open menu scrolls on short screens. */
.site-header__logo { flex: 0 1 auto; min-width: 0; }
.site-header__logo img { width: 238px; max-width: 100%; height: auto; }
.site-header__logo picture { display: block; }
.mobile-nav { max-height: calc(100vh - 88px); max-height: calc(100dvh - 88px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 600px) { .site-header__bar { gap: var(--space-4); } }
picture { display: contents; }
.site-header__logo picture, .awards__item picture { display: block; }
