/* ==========================================================================
   Radius Wealth Management — site styles
   Rebuilt from the radiuswealth.com design (Twenty Over Ten "Fresnel" look):
   Barlow Condensed headlines, Josefin Sans UI, Raleway body, green CTAs,
   bright-blue accent, deep teal footer.
   ========================================================================== */

/* ---------- Self-hosted fonts ---------- */
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("/assets/fonts/josefin-sans-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("/assets/fonts/josefin-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("/assets/fonts/josefin-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("/assets/fonts/mulish-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("/assets/fonts/raleway-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("/assets/fonts/raleway-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("/assets/fonts/raleway-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --green: #005600;
  --green-hover: #0a720a;
  --accent: #14bdeb;
  --accent-dark: #0e84a5;
  --accent-light: #8adef5;
  --ink: #060606;
  --heading: #121212;
  --muted: #5c5c5c;
  --footer: #04262f;
  --hero-overlay: rgba(19, 32, 53, 0.45);
  --hero-box: rgba(19, 32, 53, 0.55);
  --f-body: "Raleway", Helvetica, Arial, sans-serif;
  --f-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-ui: "Josefin Sans", Helvetica, Arial, sans-serif;
  --f-hero-p: "Mulish", Helvetica, Arial, sans-serif;
  --header-h: 112px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html, body { overflow-x: clip; }
img, video { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent); color: #000; }
a { color: var(--accent); text-decoration: none; transition: color .15s linear; }
a:hover { color: #15a6ce; }
button { font: inherit; cursor: pointer; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0 0 10px; font-weight: 500; color: var(--heading); }
h1, .is-h1 {
  margin: 20px 0; font-family: var(--f-head); font-weight: 400;
  font-size: 2em; line-height: 1.1;
}
h2, .is-h2 { font-family: var(--f-head); font-weight: 500; font-size: 2em; line-height: 1.2; }
h2.is-h1 { font-weight: 400; }
h3, .is-h3 { font-family: var(--f-ui); font-weight: 400; font-size: 1.5em; line-height: 1.3; }
h4, .is-h4 {
  font-family: "Barlow", var(--f-head); font-weight: 500; font-size: .75em;
  text-transform: uppercase; letter-spacing: 3px; line-height: 1.5;
}
@media (min-width: 820px) { h1, .is-h1 { font-size: 2.5em; } }
@media (min-width: 980px) { h1, .is-h1 { font-size: 3em; } }
p { margin: 0 0 1.5rem; line-height: 1.75; }
p.hero, .hero-text p { font-size: 1.25rem; line-height: 1.5; }
p a:not(.btn), .rich-text li a:not(.btn) { text-decoration: underline; }
ul, ol { margin: 0 0 1.5rem 1.5rem; padding: 0; line-height: 1.75; }
li { margin-bottom: .25rem; }
strong { font-weight: 600; }
sup { font-size: .65em; line-height: 0; }
hr { border: 0; border-top: 1px solid rgba(6,6,6,.25); margin: 2rem 0; }
.accented { color: var(--accent) !important; }
.text-center { text-align: center; }
.is-mt0 { margin-top: 0 !important; }
.is-mb0, .is-mb0 p:last-child { margin-bottom: 0 !important; }
.is-m0 { margin: 0 !important; }
.mar-bot-xs { margin-bottom: 1rem !important; }
.mar-bot-sm { margin-bottom: 2rem !important; }
.mar-bot-md { margin-bottom: 4rem !important; }
.mar-bot-lg { margin-bottom: 8rem !important; }
@media (max-width: 820px) { .mar-bot-lg { margin-bottom: 5rem !important; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 1rem 1.5rem;
  background: var(--green);
  color: #fff !important;
  border: 0;
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: .7em;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  text-decoration: none !important;
  transition: background .15s linear, transform .15s ease;
}
.btn:hover { background: var(--green-hover); color: #fff; }
.btn.is-pill { border-radius: 3em; }
.btn-block { display: block !important; width: 100%; }
h2 + p > a.btn:only-child, h3 + p > a.btn:only-child { margin-top: 1rem; }

.sticky-cta {
  position: fixed; right: 25px; bottom: 25px; z-index: 20;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
@media (max-width: 600px) { .sticky-cta { right: 12px; bottom: 12px; font-size: .62em; padding: .85rem 1.2rem; } }

/* ---------- Grid (flexboxgrid-style) ---------- */
.container { width: 100%; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 820px) { .container { width: 80%; max-width: 1200px; } }
.row { display: flex; flex-wrap: wrap; margin-left: -1rem; margin-right: -1rem; }
.row > [class*="col-"] { padding-left: 1rem; padding-right: 1rem; flex: 0 0 100%; max-width: 100%; }
.middle-xs { align-items: center; }
.center-xs { justify-content: center; }
.col-xs-6 { flex-basis: 50% !important; max-width: 50% !important; }
@media (min-width: 600px) {
  .col-sm-3 { flex-basis: 25% !important; max-width: 25% !important; }
  .col-sm-4 { flex-basis: 33.333% !important; max-width: 33.333% !important; }
  .col-sm-5 { flex-basis: 41.666% !important; max-width: 41.666% !important; }
  .col-sm-6 { flex-basis: 50% !important; max-width: 50% !important; }
  .col-sm-7 { flex-basis: 58.333% !important; max-width: 58.333% !important; }
  .col-sm-8 { flex-basis: 66.666% !important; max-width: 66.666% !important; }
}
@media (min-width: 820px) {
  .col-md-2 { flex-basis: 16.666% !important; max-width: 16.666% !important; }
  .col-md-3 { flex-basis: 25% !important; max-width: 25% !important; }
  .col-md-4 { flex-basis: 33.333% !important; max-width: 33.333% !important; }
  .col-md-6 { flex-basis: 50% !important; max-width: 50% !important; }
  .col-md-8 { flex-basis: 66.666% !important; max-width: 66.666% !important; }
  .col-md-offset-1 { margin-left: 8.333%; }
  .reverse-md { flex-direction: row-reverse; }
}
@media (max-width: 820px) {
  .row > div:not(:last-child) { margin-bottom: 1rem; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  padding: 1rem 2rem;
  background: #fff;
  transition: background .2s linear, box-shadow .2s linear, padding .2s linear;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: block; position: relative; width: 250px; max-width: 55vw; flex-shrink: 0; }
.logo img { width: 100%; height: auto; transition: opacity .2s linear; }
.logo .logo-alternate { position: absolute; inset: 0; }
/* Solid header: dark logo */
.logo .logo-default { opacity: 0; }
.logo .logo-alternate { opacity: 1; }
/* Transparent header over a hero */
.has-hero .site-header:not(.is-scrolled) { background: transparent; }
.has-hero .site-header:not(.is-scrolled) .logo-default { opacity: 1; }
.has-hero .site-header:not(.is-scrolled) .logo-alternate { opacity: 0; }
.site-header.is-scrolled { box-shadow: 0 1px 12px rgba(0,0,0,.08); padding-top: .5rem; padding-bottom: .5rem; }
.site-header.is-scrolled .logo { width: 180px; }

#main-navigation { display: none; }
@media (min-width: 1000px) {
  #main-navigation { display: block; }
  .menu-toggle { display: none !important; }
}
#main-navigation > ul { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
#main-navigation > ul > li { position: relative; margin: 0; }
#main-navigation > ul > li > a {
  display: block; position: relative; margin: 0 .65rem; padding: .5em 0;
  font-family: var(--f-ui); font-weight: 600; font-size: .65rem;
  text-transform: uppercase; letter-spacing: 2px; color: #242424;
}
.has-hero .site-header:not(.is-scrolled) #main-navigation > ul > li > a:not(.btn) { color: #fff; }
#main-navigation > ul > li > a:not(.btn):hover { color: #12aad3 !important; }
#main-navigation > ul > li.active > a:not(.btn) { color: var(--accent) !important; }
#main-navigation > ul > li.active > a::after {
  content: ""; position: absolute; width: 20px; height: 1px; bottom: -.25rem; left: 50%;
  transform: translateX(-50%); background: var(--accent);
}
#main-navigation > ul > li > a.btn { padding: 1em 1.5em; border-radius: 5rem; margin-left: 1rem; margin-right: 0; font-size: .65rem; }
#main-navigation > ul > li > a.btn:hover { background: #12aad3; }
#main-navigation li ul {
  position: absolute; top: 100%; right: -.5rem; margin: 0; padding: .75rem 1rem;
  list-style: none; background: #fff; min-width: 100%;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  opacity: 0; visibility: hidden; transform: translateY(.25rem);
  transition: opacity .15s linear .1s, transform .2s ease .1s, visibility 0s linear .35s;
}
#main-navigation li.dropdown:hover > ul,
#main-navigation li.dropdown:focus-within > ul { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
#main-navigation li ul li a {
  display: block; padding: .3rem 0; text-align: right; white-space: nowrap;
  font-family: var(--f-ui); font-weight: 600; font-size: .65rem; text-transform: uppercase; letter-spacing: 2px; color: #242424 !important;
}
#main-navigation li ul li a:hover { color: #12aad3 !important; }

.menu-toggle {
  display: block; position: relative; width: 36px; height: 36px; padding: 0; background: none; border: 0;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  position: absolute; left: 6px; width: 24px; height: 2px; background: #242424; content: ""; transition: background .2s;
}
.menu-toggle span { top: 17px; }
.menu-toggle span::before { left: 0; top: -7px; }
.menu-toggle span::after { left: 0; top: 7px; }
.has-hero .site-header:not(.is-scrolled) .menu-toggle span,
.has-hero .site-header:not(.is-scrolled) .menu-toggle span::before,
.has-hero .site-header:not(.is-scrolled) .menu-toggle span::after { background: #fff; }

#pull-out-nav {
  position: fixed; top: 0; right: 0; bottom: 0; width: 290px; max-width: 85vw; z-index: 50;
  background: #fff; padding: 4.5rem 2rem 2rem; overflow-y: auto;
  transform: translateX(100%); visibility: hidden; transition: transform .3s cubic-bezier(.4,0,0,1), visibility 0s linear .3s;
}
.nav-open #pull-out-nav { transform: none; visibility: visible; transition-delay: 0s; }
.pull-out-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 45; opacity: 0; visibility: hidden; transition: opacity .3s; }
.nav-open .pull-out-overlay { opacity: 1; visibility: visible; }
.close-menu { position: absolute; top: 1.25rem; right: 1.25rem; width: 32px; height: 32px; border: 0; background: none; }
.close-menu span::before, .close-menu span::after {
  content: ""; position: absolute; left: 4px; top: 15px; width: 24px; height: 2px; background: #242424;
}
.close-menu span::before { transform: rotate(45deg); }
.close-menu span::after { transform: rotate(-45deg); }
#pull-out-nav ul { list-style: none; margin: 0; padding: 0; }
#pull-out-nav > ul > li { margin-bottom: 1rem; }
#pull-out-nav a {
  font-family: var(--f-ui); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: .75rem; color: #242424;
}
#pull-out-nav li.active > a { color: var(--accent); }
#pull-out-nav li ul { margin: .4rem 0 0 .75rem; }
#pull-out-nav li ul a { font-size: .68rem; color: #5c5c5c; line-height: 2.2; }
#pull-out-nav .btn { margin-top: 1rem; color: #fff; }

.header-push { height: var(--header-h); }
@media (max-width: 820px) { :root { --header-h: 96px; } .site-header { padding: .75rem 1.25rem; } .logo { width: 190px; } }

/* ---------- Heroes ---------- */
.page-bg { position: relative; min-height: 50vh; color: #fff; overflow: hidden; }
.page-bg .bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.page-bg .bg-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; max-width: none; transform: translate(-50%,-50%); object-fit: cover; }
.page-bg .overlay {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 50vh; padding: calc(var(--header-h) + 2rem) 0 4rem; background: var(--hero-overlay);
}
.page-bg .overlay .container { margin: 0; }
.page-bg .hero-content { text-align: center; }
.page-bg .hero-content h1 { color: #fff; font-weight: 500; margin: 0 0 .5rem; text-shadow: 0 1px 12px rgba(0,0,0,.15); }
.page-bg .hero-content h2 { color: #fff; font-family: var(--f-ui); font-weight: 300; font-size: 1.6em; margin: 0; }
.page-bg .hero-content h4 { color: #fff; font-family: var(--f-ui); font-weight: 400; margin-bottom: .5rem; }
.page-bg .hero-content p { font-family: var(--f-hero-p); }

/* Home: full-screen video hero with boxed headline at left */
.page-bg.full-screen, .page-bg.full-screen .overlay { min-height: 100vh; min-height: 100svh; }
.page-bg.is-home .overlay { background: none; justify-content: flex-start; }
.page-bg.is-home .container { width: 100%; max-width: none; }
@media (min-width: 821px) { .page-bg.is-home .container { padding: 0 8rem; } }
.page-bg.is-home .hero-content { text-align: left; padding: 2rem; background: var(--hero-box); max-width: max-content; }
.page-bg.is-home .hero-eyebrow { font-family: var(--f-ui); font-weight: 300; font-size: 2rem; color: #fff; margin: 0; padding-right: 4px; }
.page-bg.is-home h1 { font-size: 2.6rem; margin: 0 0 3rem; }
@media (min-width: 820px) { .page-bg.is-home h1 { font-size: 3.4rem; } }
@media (min-width: 980px) { .page-bg.is-home h1 { font-size: 4rem; } }
@media (max-width: 600px) {
  .page-bg.is-home .hero-eyebrow { font-size: 1.4rem; }
  .page-bg.is-home h1 { margin-bottom: 2rem; }
  .page-bg.is-home .hero-content { padding: 1.5rem; }
}
.page-bg.is-home .hero-content p { margin: 0; }
.video-control {
  position: absolute; right: 1.5rem; bottom: 1.5rem; z-index: 3; width: 34px; height: 34px; padding: 6px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.7); background: rgba(0,0,0,.15); color: #fff;
}
.video-control svg { width: 100%; height: 100%; fill: currentColor; }
.video-control .i-play { display: none; }
.video-control[aria-pressed="true"] .i-play { display: block; }
.video-control[aria-pressed="true"] .i-pause { display: none; }
@media (max-width: 600px) { .video-control { bottom: auto; top: calc(var(--header-h) + .5rem); right: 1rem; } }
.scroll-down { position: absolute; bottom: 22px; left: 50%; width: 40px; height: 30px; transform: translateX(-50%); z-index: 2; }
.scroll-down span {
  position: absolute; left: 50%; top: 0; width: 14px; height: 14px; margin-left: -7px;
  border-right: 1px solid #fff; border-bottom: 1px solid #fff; transform: rotate(45deg);
  animation: nudge 2s ease-in-out infinite;
}
@keyframes nudge { 0%,100% { top: 0; } 50% { top: 8px; } }

/* ---------- Content ---------- */
.content-wrapper { padding: 4rem 0 4rem; }
@media (max-width: 820px) { .content-wrapper { padding: 2rem 0; } }
.no-hero .content-wrapper { padding-top: 3rem; }
.main-content { position: relative; }

#sub-navigation { margin: -1rem 0 3rem; }
#sub-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
#sub-navigation li { margin: 0; }
#sub-navigation a {
  display: block; margin: 6px 10px; font-family: var(--f-ui); font-weight: 600; font-size: .65rem; line-height: 25px;
  text-transform: uppercase; letter-spacing: 2px; color: var(--ink);
}
#sub-navigation a::after {
  content: ""; display: block; margin: .1em auto 0; width: 20px; height: 1px; background: var(--accent);
  opacity: 0; transform: scaleX(0); transition: opacity .2s linear, transform .3s ease;
}
#sub-navigation li.active a { color: var(--accent); }
#sub-navigation li.active a::after, #sub-navigation a:hover::after { opacity: 1; transform: scaleX(1); }

/* Full-bleed callout band */
.callout { position: relative; z-index: 1; margin: 4rem 0; padding: 5rem 0; }
.callout::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; z-index: -1; background: var(--accent);
}
.callout.light::before {
  background-color: #fff;
  background-image: var(--callout-bg, url('/assets/img/photo-6553644-dji-44-pano-9932009-0-2021515193748-photo-original.jpg'));
  background-attachment: fixed; background-size: cover; background-repeat: no-repeat; background-position: center;
  filter: brightness(1.6) opacity(.25);
}
@supports (-webkit-touch-callout: none) { .callout.light::before { background-attachment: scroll; } }
.callout *:last-child { margin-bottom: 0; }
@media (max-width: 820px) { .callout { padding: 3rem 0; margin: 2.5rem 0; } }

/* Home */
.home-intro h2 { margin-top: 0; }
.home__book-image-wrapper { height: 100%; min-height: 220px; position: relative; }
.home__book-image { position: absolute; height: 100%; left: 0; top: 0; max-width: none; width: auto; opacity: .4; }
@media (max-width: 820px) { .home__book-image-wrapper { min-height: 160px; } .home__book-image { position: static; height: 160px; margin: 0 auto; } }
.home__following { padding-left: .8rem; border-left: 3px solid var(--accent-dark); }
.home__following h3 { margin-bottom: .25rem; }
.home__following p { margin-bottom: 0; }
.home__accordion-section-header { padding-left: 1rem; }
.home__accordion-section-header h3 { margin-top: .75rem; }
.home__accordion-header-underline { display: inline-block; padding-bottom: .75rem; margin-bottom: .75rem; border-bottom: 3px solid var(--accent-dark); }

/* Accordions */
.toggle-accordion {
  display: flex; align-items: flex-start; width: 100%; padding: 0 0 .5rem; border: 0; background: none; text-align: left; color: inherit;
}
.home__accordion-header { font-size: 1.15rem; margin: .15rem 0 0; line-height: 1.5; transition: color .2s; }
.toggle-accordion:hover .home__accordion-header { color: var(--accent-dark); }
.home__accordion-icon-wrapper { display: inline-block; position: relative; min-width: 1.8rem; width: 1.8rem; height: 1.8rem; margin: 0 .5rem 0 0; }
.home__accordion-icon, .home__accordion-plus { position: absolute !important; width: 100%; top: 0; left: 0; transition: all .3s; }
.home__accordion-plus { transition-delay: .2s; }
.home__accordion-icon { opacity: 0; transform: rotate(-180deg) scale(.5); transition-delay: 0s; }
.toggle-accordion:hover .home__accordion-plus { transform: rotate(180deg) scale(.5); opacity: 0; transition-delay: 0s; }
.toggle-accordion:hover .home__accordion-icon { transform: none; opacity: 1; transition-delay: .2s; }
.toggle-accordion.open .home__accordion-icon { transform: rotate(180deg) scale(.5); opacity: 0; }
.toggle-accordion.open .home__accordion-plus { transform: rotate(225deg); opacity: 1; transition-delay: .4s; }
.accordion-content { padding-left: 2.3rem; }
.accordion-content p:last-child { margin-bottom: 0; }
.accordion-content ul { margin: 0; padding-left: 1.2rem; }
@media (max-width: 820px) {
  .home__accordion .home__accordion-icon { opacity: 0 !important; }
  .home__accordion .home__accordion-plus { opacity: 1 !important; transform: none; }
  .home__accordion .toggle-accordion.open .home__accordion-plus { transform: rotate(45deg); }
}

/* Testimonials */
.testimonials { margin-top: 2rem; margin-bottom: 4rem; }
.testimonials h2, .testimonials .testimonial-title { font-family: var(--f-head); font-weight: 500; font-size: 2em; }
.section-center { text-align: center; margin-bottom: 4rem; }
.home-office img { margin: 0 auto 2rem; }
.home-office p a { text-decoration: underline; }
.section-cta { margin-top: 4rem; }

/* Who we serve */
.who__work-with-image { padding: .75rem 0; border-top: 3px solid var(--accent-light); border-bottom: 3px solid var(--accent-light); width: 100%; }

/* Team */
.team-image img { width: 100%; }
.team-member h3 { margin-bottom: .25rem; }
.team-member .accented { font-family: "Barlow", var(--f-head); }

/* Space gallery */
.space-grid > div { margin-bottom: 2rem; }
.space-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 1rem; }

/* Services */
.what__goals-text { position: relative; z-index: 0; white-space: nowrap; }
.what__goals-text::before {
  content: ""; position: absolute; height: 45%; width: calc(100% + .5rem); top: 60%; left: 50%;
  transform: translate(-50%,-50%); background: var(--accent); opacity: .15; z-index: -1;
}
.what__area-icon { width: 2rem; margin: 0 0 .5rem; }
.what__area-header { font-size: 1.2rem; }
.employer-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 0; margin: 2rem 0; }
.employer-item { display: flex; align-items: center; justify-content: center; padding: 1rem; background: var(--accent); text-align: center; border-right: 1px solid #1097bc; }
.employer-item:last-child { border-right: 0; }
.employer-item h4 { margin: 0; color: #000; }
@media (max-width: 820px) { .employer-grid { grid-template-columns: 1fr; } .employer-item { border-right: 0; border-bottom: 1px solid #1097bc; } }
.employer-text { max-width: 900px; margin-left: auto; margin-right: auto; }

.capabilities { display: flex; flex-wrap: wrap; justify-content: center; margin: 0 -1rem 2rem; }
.financial__capability { flex: 0 0 20%; padding: 0 1rem 2rem; text-align: center; }
@media (max-width: 980px) { .financial__capability { flex-basis: 33.333%; } }
@media (max-width: 600px) { .financial__capability { flex-basis: 50%; } }
.financial__capability-icon { width: 3rem; margin: 0 auto .75rem; }
.financial__capability-header { font-size: 1.15rem; }
.financial__process-header { color: var(--accent) !important; padding-bottom: .5rem; margin-bottom: .5rem; border-bottom: 2px solid var(--accent); }
.process-image { width: 254px; margin: 2rem auto; }
.financial__tech-logo { max-height: 80px; width: auto; margin: 0 auto 1rem; }
.tools-title { margin-top: 3rem; }

/* Events, rich text */
.event-image img { margin: 0 auto 3rem; width: 846px; max-width: 100%; }
.rich-text h2 { margin-top: 2rem; }
.rich-text img { margin: 1.5rem auto; }
.rich-text table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.rich-text th, .rich-text td { border: 1px solid #d9d9d9; padding: .6rem .8rem; text-align: left; }
.rich-text th { background: var(--ink); color: #fff; }
.trust-image { width: 423px; max-width: 100%; margin: 0 auto; }

/* Riskalyze */
.video-wrap video { margin: 0 auto; width: 640px; max-width: 100%; }
.button-row .btn { margin: .4rem; }

/* Sidebar & forms */
.sidebar { margin: 2rem 0; padding-top: 2rem; border-top: 2px solid var(--accent); }
@media (min-width: 600px) { .sidebar { margin-top: 0; padding: 0 0 0 2rem; border-top: 0; border-left: 2px solid var(--accent); } }
.contact-sidebar h3 { font-size: 1.2rem; }
.contact-sidebar h4 { margin-bottom: .25rem; }
.form-item { margin-bottom: 1rem; }
.form-item label { display: block; font-size: .85rem; margin-bottom: .35rem; }
.form-control {
  display: block; width: 100%; padding: .85rem 1rem; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  background: rgba(6,6,6,.08); color: var(--ink); font: inherit; transition: border-color .2s, background .2s;
}
.form-control:focus { outline: none; border-bottom-color: var(--accent); background: rgba(6,6,6,.05); }
textarea.form-control { min-height: 140px; resize: vertical; }
.hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.form-status { margin: .5rem 0 0; font-weight: 600; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #b3261e; }
.search-form { display: flex; gap: 1rem; max-width: 720px; margin: 0 auto 2rem; }
.search-form .form-fit { flex: 1; margin: 0; }
.search-form .form-item { margin: 0; }
.search-form .btn { height: 100%; }

/* Client login */
.login-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3rem; padding: 2rem 0; }
.login-card { display: block; max-width: 420px; flex: 1 1 260px; transition: transform .2s ease, opacity .2s; }
.login-card:hover { transform: translateY(-3px); opacity: .9; }
.login-card img { margin: 0 auto; }

/* CRS */
.crs-page img { margin: 0 auto 2rem; box-shadow: 0 4px 16px rgba(0,0,0,.08); }

/* ---------- Blog ---------- */
.posts-list { columns: 2 320px; column-gap: 3rem; }
.post-link { break-inside: avoid; margin: 0 0 4rem; display: inline-block; width: 100%; }
.post-link > a { display: block; color: inherit; }
.post-thumbnail { margin: 0 0 1rem; }
.post-link .post-thumbnail img { width: 100%; transition: opacity .2s linear; }
.post-link > a:hover img { opacity: .9; }
.post-link h3 { font-size: 1.35rem; color: var(--heading); transition: color .2s linear; margin: 0; }
.post-link > a:hover h3 { color: var(--accent); }
.post-meta { font-weight: 600; font-size: .65rem; text-transform: uppercase; letter-spacing: 2px; margin: .5rem 0; color: var(--muted); }
.post-excerpt p { font-size: .95rem; margin-bottom: .75rem; }
.read-more { display: inline-flex; align-items: center; font-weight: 600; font-size: .9rem; }
.read-more span { display: inline-block; width: 0; height: 1px; background: var(--accent); margin-right: 0; opacity: 0; transition: width .45s ease, opacity .2s linear, margin .3s; }
.read-more:hover span { width: 2rem; opacity: 1; margin-right: .5rem; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.page-count { font-size: .85rem; color: var(--muted); }
.search-summary { text-align: center; color: var(--muted); }

.post-main { max-width: 1100px; margin: 0 auto; }
.post .post-thumbnail { margin: 0 -1.5rem; }
@media (min-width: 820px) { .post .post-thumbnail { margin: 0; } }
.post .post-thumbnail img { width: 100%; max-height: 560px; object-fit: cover; }
.post .post-wrapper { position: relative; max-width: 900px; margin: -4rem auto 0; padding: 2rem 3rem; background: #fff; }
@media (max-width: 820px) { .post .post-wrapper { margin-top: 0; padding: 1.5rem 0; } }
.post-title { margin-top: 0; }
.post-content { font-size: 1.05rem; }
.post-content h2 { font-size: 1.75em; }
.share { margin-top: 3rem; text-align: center; }
.share-text { position: relative; margin-bottom: 1rem; }
.share-text::before { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: rgba(6,6,6,.25); }
.share-text span { position: relative; z-index: 1; padding: 0 1rem; background: #fff; font-size: .7rem; text-transform: uppercase; letter-spacing: 2px; }
.share-links { display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; }
.share-links a { font-family: var(--f-ui); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: 2px; text-decoration: none !important; }
.back-link { margin-top: 2rem; }

/* ---------- Footer ---------- */
.footer { background: var(--footer); color: rgba(255,255,255,.9); padding: 50px 0 90px; }
.footer a { color: #fff; }
.footer a:hover { color: rgba(255,255,255,.6); }
.footer h4 { color: rgba(255,255,255,.9); font-family: var(--f-head); font-weight: 400; font-size: .8rem; margin: 0 0 .15rem; }
.footer p { font-size: .95rem; margin-bottom: 1rem; line-height: 1.5; }
.footer .plain { text-decoration: none; }
.footer-logos { margin-bottom: 3rem; }
.affiliation-logo { max-height: 70px; width: auto; }
.footer-info h4:not(:first-child) { margin-top: .5rem; }
p.disclaimer { font-size: .75rem; line-height: 1.6; color: rgba(255,255,255,.85); }
.copyright { font-size: .75rem !important; opacity: .7; }
.social { display: flex; gap: .5rem; }
.social-link { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border: 1px solid currentColor; border-radius: 50%; color: inherit; }
.social-link svg { width: 16px; height: 16px; fill: currentColor; }
.contact-sidebar .social-link { color: var(--ink); }

/* ---------- Scroll animations ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(4rem); } to { opacity: 1; transform: none; } }
.js .animate { opacity: 0; }
.js .animate.in-view { opacity: 1; animation-duration: .75s; animation-timing-function: ease-out; animation-fill-mode: backwards; }
.js .animate.fadeIn.in-view { animation-name: fadeIn; }
.js .animate.fadeInUp.in-view { animation-name: fadeInUp; }
@media (prefers-reduced-motion: reduce) {
  .js .animate { opacity: 1 !important; animation: none !important; }
  .scroll-down span { animation: none; }
  html { scroll-behavior: auto; }
}

/* Mobile overflow guards */
@media (max-width: 820px) {
  .home__book-image { max-width: 100%; width: auto; height: auto; max-height: 160px; }
  .page-bg.is-home .hero-content { max-width: 100%; }
  .page-bg.is-home .container { padding: 0 1rem; }
  .what__goals-text { white-space: normal; }
}
@media (min-width: 821px) {
  .home__book-image-wrapper { overflow: visible; }
  .home__book-image { max-width: 115%; }
}
