/* Shared navigation — canonical dimensions and colors for every page. */
.nav-close { display: none; }
.site-header,
header.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  height: 72px;
  z-index: 100;
  background: #07192f;
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: none;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.site-header.scrolled,
header.site-header.scrolled {
  position: fixed;
  top: 0;
  background: var(--white, #fff);
  border-bottom-color: var(--border, #e7ebee);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

.site-header .header-inner,
.site-header .nav-wrap,
.site-header.scrolled .nav-wrap,
header.site-header.scrolled .nav-wrap {
  width: 100%;
  max-width: 1200px;
  height: 72px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header .logo img,
.site-header.scrolled .logo img,
header.site-header.scrolled .logo img {
  width: auto;
  height: 42px;
  display: block;
}

.site-header .logo .logo-light { display: block; }
.site-header .logo .logo-color { display: none; }
.site-header.scrolled .logo .logo-light { display: none; }
.site-header.scrolled .logo .logo-color { display: block; }

.site-header nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.site-header nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: var(--white, #fff);
}

.site-header nav > ul > li > a {
  display: block;
  padding: 6px 12px;
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--white, #fff);
  letter-spacing: .01em;
  position: relative;
  white-space: nowrap;
  transition: color .3s ease;
}

.site-header.scrolled nav > ul > li > a {
  color: var(--navy, #0a1f33);
}

.site-header nav > ul > li > a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  width: auto;
  height: 2px;
  background: var(--accent, #d6532f);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.site-header nav > ul > li > a:hover::after,
.site-header nav > ul > li > a.active::after {
  transform: scaleX(1);
}

.site-header nav > ul > li > a.active,
.site-header nav > ul > li > a:hover,
.site-header.scrolled nav > ul > li > a.active,
.site-header.scrolled nav > ul > li > a:hover {
  color: var(--accent, #d6532f);
}

.site-header .has-dropdown,
.site-header .nav-dropdown { position: relative; }

.site-header .dropdown,
.site-header .nav-dropdown-menu {
  position: absolute;
  /* Keep the menu touching its trigger so the pointer cannot fall through a hover gap. */
  top: 100%;
  left: 50%;
  min-width: 230px;
  padding: 8px;
  list-style: none;
  background: var(--white, #fff);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(10,31,51,.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.site-header .has-dropdown:hover .dropdown,
.site-header .has-dropdown:focus-within .dropdown,
.site-header .nav-dropdown:hover .nav-dropdown-menu,
.site-header .nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%);
}

.site-header .dropdown a,
.site-header .nav-dropdown-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: 6px;
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy, #0a1f33);
  white-space: nowrap;
}

.site-header .dropdown a::after,
.site-header .nav-dropdown-menu a::after { display: none; }
.site-header .dropdown a:hover,
.site-header .nav-dropdown-menu a:hover {
  color: var(--accent, #d6532f);
  background: var(--cream, #f6f1e8);
}

.site-header .header-nav-cta,
.site-header .nav-cta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header .btn-cta,
.site-header .header-nav-cta a,
.site-header .nav-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 22px;
  border: 0;
  border-radius: 50px;
  background: var(--accent, #d6532f);
  color: var(--white, #fff);
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header .nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: 16px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white, #fff);
  cursor: pointer;
  position: relative;
  z-index: 105;
}

.site-header.scrolled .nav-toggle { color: var(--navy, #0a1f33); }
.site-header .nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

@media (max-width: 960px) {
  html.nav-lock, html.nav-lock body { overflow: hidden; }
  .site-header .nav-close {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 88px;
    min-height: 44px;
    margin: 0 0 20px auto;
    padding: 8px 12px;
    border: 1px solid #dce2e8;
    border-radius: 8px;
    background: #fff;
    color: var(--navy, #0a1f33);
    font: 600 14px 'Manrope', Arial, sans-serif;
    cursor: pointer;
    touch-action: manipulation;
  }
  .site-header .nav-close span:first-child { font-size: 28px; line-height: 1; }
  .site-header .nav-close:focus-visible { outline: 2px solid var(--accent, #d6532f); outline-offset: 3px; }
  .site-header,header.site-header{z-index:300}
  body > footer .footer-logo,
  .advisor-page footer .footer-logo {
    display: flex;
    justify-content: center;
  }

  body > footer .footer-logo img,
  .advisor-page footer .footer-logo img {
    margin-inline: auto;
  }

  .site-header .header-inner,
  .site-header .nav-wrap,
  .site-header.scrolled .nav-wrap,
  header.site-header.scrolled .nav-wrap {
    padding: 0 24px;
  }

  .site-header .header-nav-cta,
  .site-header .nav-cta,
  .site-header > .header-inner > .btn-cta { display: none; }

  .site-header .nav-toggle { display: flex; }

  .site-header nav {
    display: block !important;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 84vw;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    padding: 24px 28px 32px;
    background: var(--white, #fff);
    box-shadow: -12px 0 40px rgba(0,0,0,.15);
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateX(105%) !important;
    transition: transform .3s ease;
    z-index: 302;
  }

  .site-header nav.mobile-open { transform: translateX(0) !important; }
  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 299;
    border: 0;
    padding: 0;
    background: rgba(5, 25, 45, .28);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  html.nav-lock .nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }
  .site-header nav > ul {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    color: var(--navy, #0a1f33);
  }
  .site-header nav > ul > li {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
  }
  .site-header nav > ul > li > a {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    padding: 13px 2px;
    font-size: 16px;
    color: var(--navy, #0a1f33) !important;
    touch-action:manipulation;
    -webkit-tap-highlight-color:transparent;
  }
  .site-header nav > ul > li > a.active {
    color: var(--accent, #d94b2b) !important;
  }
  .site-header nav > ul > li > a::after { display: none; }

  .site-header .dropdown,
  .site-header .nav-dropdown-menu {
    display: block !important;
    position: static;
    min-width: 0;
    padding: 2px 0 6px 14px;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .site-header .dropdown li,
  .site-header .nav-dropdown-menu li,
  .site-header .dropdown a,
  .site-header .nav-dropdown-menu a {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: var(--navy, #0a1f33) !important;
  }
}

/* Premium surface language: tonal shading, paper depth and quiet highlights. */
:where(.service-card,.svc-card,.services-card-shell,.tl-item,.contact-form,.contact-info,.game-card,.credentials-education-card,.editorial-card){
  border-color:rgba(12,45,85,.13);
  background-color:rgba(255,255,255,.92);
  background-image:radial-gradient(circle at 50% 0,rgba(201,101,67,.075),transparent 42%),linear-gradient(145deg,rgba(255,255,255,.94),rgba(247,243,236,.82)),url('brand/assets/textures/web/paper.webp');
  background-blend-mode:normal,normal,soft-light;
  box-shadow:0 16px 38px rgba(7,26,44,.09),inset 0 1px 0 rgba(255,255,255,.88);
}
:where(.service-card,.svc-card,.services-card-shell,.contact-form,.contact-info,.game-card,.credentials-education-card,.editorial-card){position:relative}
:where(.service-card,.svc-card,.contact-form,.contact-info,.game-card,.credentials-education-card,.editorial-card)::before{
  content:'';
  position:absolute;
  z-index:2;
  top:0;
  right:12%;
  left:12%;
  height:2px;
  background:linear-gradient(90deg,transparent,var(--accent,#c84c2d),transparent);
  opacity:.72;
  pointer-events:none;
}
.contact-form{padding:34px;border:1px solid rgba(12,45,85,.11);border-radius:12px}
.tl-item{box-shadow:0 18px 42px rgba(7,26,44,.1),inset 0 1px 0 rgba(255,255,255,.88)}
@media(max-width:700px){.contact-form{padding:26px 20px}}

@media (min-width: 961px) {
  .nav-scrim { display: none; }
}

@media (max-width: 600px) {
  .site-header .header-inner,
  .site-header .nav-wrap,
  .site-header.scrolled .nav-wrap,
  header.site-header.scrolled .nav-wrap {
    padding: 0 20px;
  }
}

/* Shared editorial ornaments: a restrained extension of the homepage linework. */
.brand-ornament{
  --ornament-color:var(--accent,#c84c2d);
  display:flex;
  align-items:center;
  justify-content:center;
  width:min(100%,260px);
  height:18px;
  margin:20px auto 28px;
  color:var(--ornament-color);
}
.brand-ornament::before,.brand-ornament::after{
  content:"";
  flex:1;
  height:1px;
  background:currentColor;
  opacity:.82;
}
.brand-ornament span{display:block;flex:none;margin:0 6px}
.brand-ornament .ornament-dot{width:5px;height:5px;margin-right:3px;margin-left:3px;background:currentColor;border-radius:50%}
.brand-ornament .ornament-diamond{width:13px;height:13px;transform:rotate(45deg);background:currentColor}
.brand-ornament--dots .ornament-dot{width:5px;height:5px;margin-right:4px;margin-left:4px}
.brand-ornament--left{width:min(100%,220px);margin-right:auto;margin-left:auto}
.brand-ornament--quiet{width:min(100%,190px);margin-top:16px;margin-bottom:22px;opacity:.9}
.brand-ornament--light{--ornament-color:var(--accent-lt,#d97050)}
@media(max-width:700px){
  .brand-ornament{width:min(72vw,220px);margin-top:16px;margin-bottom:22px}
  .brand-ornament--left{margin-right:auto;margin-left:auto}
}

/* Shared closing invitation: one polished rhythm across every primary page. */
.site-closing-cta,
.advisor-cta.site-closing-cta{
  position:relative;
  display:block;
  min-height:0;
  padding:76px 24px 80px;
  overflow:hidden;
  text-align:center;
  background-color:var(--cream,#f5f0e7);
  background-image:linear-gradient(rgba(248,245,238,.9),rgba(248,245,238,.9)),url('building-01.jpg');
  background-position:center 48%;
  background-size:cover;
}
.site-closing-cta__inner,
.advisor-cta.site-closing-cta .site-closing-cta__inner{
  position:relative;
  z-index:1;
  display:flex;
  width:min(100%,920px);
  max-width:920px;
  margin:0 auto;
  padding:0;
  flex-direction:column;
  align-items:center;
  gap:0;
}
.site-closing-cta h2,
.advisor-cta.site-closing-cta h2{
  max-width:880px;
  margin:0;
  color:var(--navy,#0a1f33);
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:clamp(34px,4vw,48px);
  font-weight:700;
  line-height:1.08;
  letter-spacing:-.01em;
  text-wrap:balance;
}
.site-closing-cta h2 em{color:var(--accent,#c84c2d);font-weight:700}
.site-closing-cta .brand-ornament{margin:20px auto 22px}
.site-closing-cta p,
.advisor-cta.site-closing-cta p{
  display:block;
  max-width:650px;
  margin:0 auto 30px;
  color:var(--text-light,#667483);
  font-family:'Manrope','Helvetica Neue',Arial,sans-serif;
  font-size:15px;
  line-height:1.7;
  text-wrap:balance;
}
.site-closing-cta a,
.advisor-cta.site-closing-cta a{
  display:inline-flex;
  min-width:250px;
  min-height:56px;
  padding:14px 28px;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:8px!important;
  background:var(--accent,#c84c2d)!important;
  color:#fff!important;
  font-family:'Manrope','Helvetica Neue',Arial,sans-serif;
  font-size:13px;
  font-weight:800;
  line-height:1.2;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.site-closing-cta a:hover{background:var(--accent-lt,#d97050)!important}
.site-closing-cta--blue,
.advisor-cta.site-closing-cta--blue{
  background-color:var(--navy-deep,#071a2c);
  background-image:linear-gradient(rgba(7,26,44,.89),rgba(7,26,44,.94)),url('building-01.jpg');
}
.site-closing-cta--blue h2,.advisor-cta.site-closing-cta--blue h2{color:#fff}
.site-closing-cta--blue p,.advisor-cta.site-closing-cta--blue p{color:#d5dfe7}
.site-closing-cta--blue .brand-ornament{--ornament-color:var(--accent-lt,#d97050)}
@media(max-width:700px){
  .site-closing-cta,.advisor-cta.site-closing-cta{padding:58px 22px 62px}
  .site-closing-cta h2,.advisor-cta.site-closing-cta h2{font-size:clamp(32px,9.6vw,42px)}
  .site-closing-cta p,.advisor-cta.site-closing-cta p{font-size:14px;line-height:1.65}
  .site-closing-cta a,.advisor-cta.site-closing-cta a{width:min(100%,320px)}
}

/* Site-wide centered content treatment for tablets and phones. */
@media (max-width: 960px) {
  body > section,
  body > main,
  body > .section,
  body > footer {
    text-align: center;
  }

  body > section :where(h1, h2, h3, h4, h5, h6, p, li, .eyebrow, .side-col-tag, .side-col-title, .side-col-sub),
  body > main :where(h1, h2, h3, h4, h5, h6, p, li, .eyebrow),
  body > footer :where(h1, h2, h3, h4, h5, h6, p, li) {
    text-align: center !important;
  }

  body > section p,
  body > main p,
  body > footer p {
    margin-left: auto;
    margin-right: auto;
  }

  body > section :where(.eyebrow-line, .section-rule, .accent-line) {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body > section :where(.hero-left, .hero-text, .about-text, .side-col, .one-team-left, .cta-right) {
    align-items: center;
  }

  body > section :where(.hero-btns, .button-row, .cta-actions, .actions) {
    justify-content: center;
  }

  body > section :where(.btn-primary, .btn-ghost, .btn-outline, .link-arrow, .speakeasy-link) {
    justify-content: center;
  }

  /* Controls stay familiar and easy to scan while the surrounding form is centered. */
  body > section :where(input, textarea, select),
  body > main :where(input, textarea, select),
  .site-header nav,
  .site-header nav * {
    text-align: left !important;
  }
}

/* Canonical hero action: one filled size and treatment on every page. */
.hero.subpage-hero .hero-btns { display: flex; justify-content: flex-start; width: 100%; }
.hero.subpage-hero .hero-btns .btn-primary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 268px;
  min-height: 56px;
  padding: 14px 24px;
  border: 0;
  border-radius: 0;
  background: var(--accent, #d94b2b) !important;
  color: #fff !important;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
  opacity: 1 !important;
}
.hero.subpage-hero .hero-btns .btn-primary:hover { background: var(--accent-lt, #ef6b4b) !important; }

/* Brand-wide action shape: tailored and approachable, without pill styling. */
:where(a, button).btn,
:where(a, button).btn-primary,
:where(a, button).btn-cta,
.header-nav-cta a,
.nav-cta a,
.hero-connect,
.advisor-cta > a,
.cta-band a,
.cta-section a,
.card-cta a,
.contact-form button[type="submit"] {
  border-radius: 8px !important;
}
@media (max-width: 960px) {
  .hero.subpage-hero .hero-btns { justify-content: center; }

  /* Match Client Links: clean navy copy panel with a photo-to-navy seam. */
  .hero.subpage-hero .hero-left {
    background-color: var(--navy-deep, #07192f);
    background-image: none !important;
  }
  .hero.subpage-hero .hero-left::before { display: none !important; }
}

/* Image-led tablet hero: photography carries the opening experience. */
@media (min-width: 601px) and (max-width: 960px) {
  .hero.subpage-hero {
    flex-direction: column;
    height: auto;
    min-height: 0;
    max-height: none;
    padding-top: 72px;
    overflow: visible;
  }
  .hero.subpage-hero .hero-right {
    flex: 0 0 clamp(440px, 58svh, 620px);
    order: 1;
    height: auto;
    min-height: 0;
    margin-left: 0;
  }
  .hero.subpage-hero .hero-right img { object-position: center 38%; }
  .hero.subpage-hero .hero-right-overlay {
    background: linear-gradient(to bottom, rgba(7,25,47,.04) 0%, rgba(7,25,47,.12) 62%, rgba(7,25,47,.72) 100%);
  }
  .hero.subpage-hero .hero-right::after {
    display: block;
    bottom: -1px;
    height: 90px;
    background: linear-gradient(to bottom, transparent 0%, var(--navy-deep, #07192f) 100%);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    filter: none;
    transform: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero.subpage-hero .hero-left {
    flex: 1;
    order: 2;
    min-height: 0;
    padding: clamp(38px, 5vh, 56px) 40px clamp(46px, 6vh, 64px);
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .hero.subpage-hero .hero-left .eyebrow-line,
  .hero.subpage-hero .hero-left p { margin-left: auto; margin-right: auto; }
  .hero.subpage-hero .hero-left h1 {
    max-width: 720px;
    margin-bottom: 14px;
    font-size: clamp(42px, 6.4vw, 56px);
    line-height: 1.04;
  }
  .hero.subpage-hero .hero-left p {
    max-width: 620px;
    margin-bottom: 24px;
    font-size: 14.5px;
    line-height: 1.6;
  }
}

/* Image-led mobile hero: the photograph intentionally dominates before the copy. */
@media (max-width: 600px) {
  .hero.subpage-hero {
    height: auto;
    min-height: 0;
    max-height: none;
    padding-top: 72px;
    overflow: hidden;
  }
  .hero.subpage-hero .hero-right {
    flex: 0 0 clamp(390px, 56svh, 560px);
    height: auto;
    min-height: 0;
    order: 1;
    margin-left: 0;
  }
  .hero.subpage-hero .hero-right img { object-position: center 38%; }
  .hero.subpage-hero .hero-right-overlay {
    background: linear-gradient(to bottom, rgba(7,25,47,.02) 0%, rgba(7,25,47,.12) 58%, rgba(7,25,47,.76) 100%);
  }
  .hero.subpage-hero .hero-right::after {
    bottom: -1px;
    height: 72px;
    background: linear-gradient(to bottom, transparent 0%, var(--navy-deep, #07192f) 100%);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    filter: none;
    transform: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero.subpage-hero .hero-left {
    flex: 1;
    order: 2;
    min-height: 0;
    padding: 30px 20px 44px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .hero.subpage-hero .hero-left .eyebrow { margin-bottom: 6px; }
  .hero.subpage-hero .hero-left .eyebrow-line { margin: 0 auto 12px; }
  .hero.subpage-hero .hero-left h1 {
    max-width: 390px;
    margin-bottom: 10px;
    font-size: clamp(34px, 9.8vw, 42px);
    line-height: 1.02;
  }
  .hero.subpage-hero .hero-left p {
    max-width: 410px;
    margin: 0 auto 18px;
    font-size: 13.5px;
    line-height: 1.5;
  }
  .hero.subpage-hero .hero-btns .btn-primary { width: min(100%, 300px); }
}
