/* First Signal — brownstonefirstsignal.com */
@font-face{font-family:"Dunbar Text";src:url("../fonts/dunbar-text-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Dunbar Text";src:url("../fonts/dunbar-text-400-italic.woff2") format("woff2");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"Dunbar Text";src:url("../fonts/dunbar-text-500.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Dunbar Text";src:url("../fonts/dunbar-text-500-italic.woff2") format("woff2");font-weight:500;font-style:italic;font-display:swap}
@font-face{font-family:"Dunbar Text";src:url("../fonts/dunbar-text-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}

:root{
  --royal-50:#F5FAFF;--royal-100:#E0EFFF;--royal-200:#C1DDFF;--royal-300:#93BFFF;--royal-400:#6695FF;--royal-500:#4771FF;--royal-600:#284CFF;--royal-700:#1134F7;--royal-800:#0D30CD;
  --haze-50:#F5F6FA;--haze-100:#E9EEF5;--haze-200:#CCD7E9;--haze-300:#B7C6E0;--haze-400:#9CAFD2;--haze-500:#8398C4;--haze-600:#6E84B4;--haze-700:#5C6E98;--haze-800:#4A5777;--haze-900:#3D455B;--haze-950:#202430;

  --bg:#FFFFFF;--surface:#FFFFFF;--surface-2:var(--haze-50);
  --fg:var(--haze-950);--fg-body:var(--haze-900);--fg-muted:var(--haze-800);--fg-subtle:var(--haze-600);
  --border:var(--haze-200);--border-strong:var(--haze-300);
  --brand:var(--royal-700);--action:var(--royal-600);--action-hover:var(--royal-700);--link:var(--royal-600);
  --foot-ink:#5C6E99;--foot-link:#3D455B;--foot-social:#4A5777;

  --shadow-xs:0 1px 2px 0 rgba(10,13,18,.05);
  --shadow-md:0 4px 8px -2px rgba(10,13,18,.10),0 2px 4px -2px rgba(10,13,18,.06);
  --ring:0 0 0 4px var(--haze-100);

  --font-dunbar:"Dunbar Text","Helvetica Neue",system-ui,sans-serif;
  --font-geist:"Geist","Inter",system-ui,-apple-system,sans-serif;
  --font-geist-mono:"Geist Mono",ui-monospace,"SF Mono",monospace;

  --s1:4px;--s2:8px;--s3:12px;--s4:16px;--s5:20px;--s6:24px;--s8:32px;--s10:40px;--s12:48px;--s16:64px;--s20:80px;
  --r-sm:8px;--r-md:12px;--r-pill:100px;
  --container:1216px;
  color-scheme:light;
}

*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--font-geist);font-size:16px;line-height:24px;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:var(--link);text-underline-offset:3px}
a:hover{color:var(--action-hover)}
:focus-visible{outline:2px solid var(--action);outline-offset:2px;border-radius:4px}
button{font:inherit;color:inherit}
h1,h2,h3,p,ul{margin:0}
.wrap{max-width:calc(var(--container) + 2*var(--s8));margin-inline:auto;padding-inline:var(--s8)}
@media (max-width:640px){.wrap{padding-inline:var(--s4)}}
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- Site header (sits on the hero) ---------- */
.site-header{position:absolute;top:0;left:0;right:0;z-index:40;--hdr-ink:#FFFFFF}
.site-header .bar{height:80px;display:flex;align-items:center;gap:var(--s20);padding-inline:var(--s8)}
.logo{display:block;line-height:0;color:var(--hdr-ink);flex:none}
.logo .logo-full svg{width:180px;height:auto;display:block}
.logo .logo-symbol{display:none}
.logo .logo-symbol svg{width:37px;height:48px;display:block}
.menu{flex:1;display:flex;align-items:center;justify-content:space-between;gap:var(--s8);min-width:0}
.nav{display:flex;align-items:center;gap:var(--s8)}
.nav>a,.nav .dd>button{display:inline-flex;align-items:center;gap:6px;padding:0;font-size:16px;line-height:24px;font-weight:600;color:var(--hdr-ink);text-decoration:none;background:none;border:0;cursor:pointer}
.nav>a:hover,.nav .dd>button:hover,.dd.open>button{color:var(--hdr-ink);opacity:.8}
.dd{position:relative}
.dd>button svg{transition:transform .2s ease}
.dd.open>button svg{transform:rotate(180deg)}
.dd-menu{position:absolute;top:calc(100% + 16px);left:-16px;width:384px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);box-shadow:0 12px 32px -8px rgba(2,21,79,.14),0 2px 6px -2px rgba(2,21,79,.06);padding:var(--s8);display:grid;gap:var(--s6);
  opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .18s ease,transform .18s ease,visibility 0s linear .18s;z-index:50}
.dd-menu::before{content:"";position:absolute;left:0;right:0;top:-18px;height:18px}
.dd.open .dd-menu{opacity:1;visibility:visible;transform:none;transition:opacity .18s ease,transform .18s ease,visibility 0s}
.dd-menu a{display:block;text-decoration:none}
.dd-menu a strong{display:block;font-weight:600;font-size:16px;line-height:24px;color:var(--fg);transition:color .15s ease}
.dd-menu a span{display:block;margin-top:2px;font-size:15px;line-height:20px;color:var(--haze-500);font-weight:400}
.dd-menu a:hover strong,.dd-menu a:focus-visible strong,.dd-menu a[aria-current] strong{color:var(--brand)}
.hdr-right{display:flex;align-items:center;gap:var(--s20)}
.search{position:relative;width:280px;transition:width .25s ease}
.search:focus-within{width:340px}
.search input{width:100%;height:40px;border:1px solid rgba(255,255,255,.75);border-radius:var(--r-pill);background:rgba(255,255,255,.06);padding:0 44px 0 20px;font:inherit;font-size:16px;color:var(--hdr-ink);transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease;-webkit-appearance:none;appearance:none}
.search input::placeholder{color:rgba(255,255,255,.85);opacity:1}
.search input:focus{outline:none;border-color:#fff;background:rgba(255,255,255,.12);box-shadow:0 0 0 4px rgba(255,255,255,.2)}
.search input::-webkit-search-cancel-button{-webkit-appearance:none}
.search button{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:none;border:0;padding:0;line-height:0;color:var(--hdr-ink);cursor:pointer}
.search svg{width:20px;height:20px}
.login{display:inline-flex;align-items:center;height:40px;padding:0 18px;border:1px solid #fff;border-radius:var(--r-pill);font-size:16px;font-weight:600;color:var(--haze-950);text-decoration:none;box-shadow:var(--shadow-xs);background:#fff}
.login:hover{background:var(--haze-50);color:var(--haze-950)}
.menu-toggle{display:none;margin-left:auto;background:none;border:0;padding:8px;cursor:pointer;color:var(--hdr-ink);line-height:0}
.menu-toggle svg{display:block;width:24px;height:24px}
@media (max-width:1240px){.site-header .bar{gap:var(--s10)}.hdr-right{gap:var(--s6)}.search{width:220px}.search:focus-within{width:260px}}
@media (max-width:1080px){
  .site-header .bar{height:72px;padding-inline:var(--s4)}
  .logo .logo-full{display:none}.logo .logo-symbol{display:block}
  .menu-toggle{display:block}
  .menu{--hdr-ink:var(--haze-950);display:none;position:absolute;left:0;right:0;top:72px;background:var(--bg);border-block:1px solid var(--border);flex-direction:column;align-items:stretch;padding:var(--s4);gap:var(--s4);box-shadow:var(--shadow-md)}
  .menu.open{display:flex}
  .nav{flex-direction:column;align-items:stretch;gap:0}
  .nav>a,.nav .dd>button{padding:var(--s3) 0;width:100%;justify-content:space-between}
  .nav>a:hover,.nav .dd>button:hover,.dd.open>button{opacity:1;color:var(--brand)}
  .dd-menu{position:static;width:auto;box-shadow:none;margin-bottom:var(--s2);padding:var(--s5);gap:var(--s5);display:none;opacity:1;visibility:visible;transform:none;transition:none}
  .dd.open .dd-menu{display:grid}
  .dd-menu::before{display:none}
  .hdr-right{flex-direction:column;align-items:stretch;gap:var(--s3)}
  .search,.search:focus-within{width:100%}
  .search input{border-color:var(--haze-700);background:transparent}
  .search input::placeholder{color:var(--haze-700)}
  .search input:focus{border-color:var(--action);background:transparent;box-shadow:var(--ring)}
  .search button{color:var(--haze-700)}
  .login{justify-content:center;border-color:var(--border-strong)}
}

/* ---------- Hero ---------- */
.hero{position:relative;color:#fff;background:#0E3B47 url("../img/hero-desktop.webp") center/cover no-repeat;padding-top:80px}
.hero-inner{display:flex;align-items:center;justify-content:space-between;gap:var(--s8);min-height:240px;padding-block:var(--s8) var(--s10)}
.hero-brand{min-width:0}
.hero h1{margin:0;line-height:0}
.hero-mark{display:flex;align-items:center;gap:var(--s3)}
.hero-mark .icon{width:72px;height:72px;flex:none}
.hero-mark .wordmark{width:379px;height:auto;max-width:100%}
.hero-sub{margin-top:var(--s4);font-size:16px;line-height:24px;color:rgba(255,255,255,.88)}
.btn-hero{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 18px;border-radius:var(--r-pill);background:#fff;color:var(--haze-950);font-size:16px;font-weight:600;text-decoration:none;box-shadow:var(--shadow-xs);white-space:nowrap;flex:none;transition:background-color .15s ease}
.btn-hero:hover{background:var(--haze-50);color:var(--haze-950)}
@media (max-width:1080px){.hero{padding-top:72px}}
@media (max-width:760px){
  .hero{background-image:url("../img/hero-mobile.webp");background-position:center top}
  .hero-inner{flex-direction:column;justify-content:center;text-align:center;gap:var(--s8);min-height:0;padding-block:var(--s12) var(--s16)}
  .hero-mark{flex-direction:column;gap:var(--s4)}
  .hero-mark .icon{width:64px;height:64px}
  .hero-mark .wordmark{width:260px}
  .hero-sub{max-width:300px;margin-inline:auto}
}

/* ---------- About + experts ---------- */
.about{padding-block:var(--s20) 120px;border-bottom:1px solid var(--border)}
.about-grid{display:grid;grid-template-columns:minmax(0,676px) minmax(0,400px);justify-content:space-between;gap:var(--s16);align-items:start}
.copy-col{display:grid;gap:var(--s6);font-size:16px;line-height:28px;color:var(--fg-body)}
.copy-col p{text-wrap:pretty}
.ticks{list-style:none;padding:0;display:grid;gap:var(--s3)}
.ticks li{position:relative;padding-left:var(--s6)}
.ticks li::before{content:"";position:absolute;left:4px;top:11px;width:6px;height:6px;background:var(--fg)}

.experts h2{font-size:16px;line-height:24px;font-weight:600;color:var(--fg);margin-bottom:var(--s5)}
.expert-list{list-style:none;padding:0;display:grid;gap:var(--s10)}
.expert-head{display:flex;align-items:center;gap:var(--s4)}
.expert-head img{width:80px;height:80px;border-radius:var(--r-sm);object-fit:cover;flex:none;background:var(--haze-100)}
.expert-head h3{font-family:var(--font-dunbar);font-weight:500;font-size:24px;line-height:32px;letter-spacing:-.24px;color:var(--fg)}
.expert-head p{font-size:14px;line-height:20px;color:var(--fg-subtle)}
.expert-more{display:inline-flex;align-items:center;gap:var(--s2);margin-top:var(--s2);font-size:14px;line-height:20px;font-weight:600;text-decoration:none}
.expert-more:hover{text-decoration:underline}
.expert-more svg{width:16px;height:16px;flex:none}
@media (max-width:960px){
  .about{padding-block:var(--s12) var(--s20)}
  .about-grid{grid-template-columns:minmax(0,1fr);gap:var(--s12)}
  .copy-col{font-size:17px;line-height:28px}
}

/* ---------- Site footer ---------- */
.site-footer{background:var(--bg);padding-block:var(--s16)}
.foot{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--s12);align-items:start}
.foot-brand .flogo{display:block;line-height:0;width:180px}
.foot-brand .flogo svg{width:180px;height:auto;display:block}
.foot-brand .flogo svg [fill="#5C6E99"]{fill:var(--foot-ink)}
.foot-brand .tag{margin-top:var(--s6);font-size:14px;line-height:20px;font-weight:500;color:var(--foot-ink)}
.badges{display:flex;gap:var(--s3);flex-wrap:wrap;margin-top:var(--s12)}
.badge{display:block;line-height:0;color:var(--foot-ink);border-radius:8px;transition:color .3s ease}
.badge:hover{color:var(--royal-600)}
.badge svg *{transition:fill .3s ease,stroke .3s ease}
.badge svg{display:block;height:44px;width:auto}
.badge .stroke-haze-300{stroke:var(--border-strong)}
.badge .fill-current{fill:currentColor}.badge .stroke-current{stroke:currentColor}
.badge .fill-haze-300{fill:var(--haze-300)}.badge .fill-haze-400{fill:var(--haze-400)}.badge .fill-haze-500{fill:var(--haze-500)}
.badge:hover .stroke-haze-300{stroke:var(--royal-300)}
.badge:hover .fill-haze-300{fill:var(--royal-300)}.badge:hover .fill-haze-400{fill:var(--royal-400)}.badge:hover .fill-haze-500{fill:var(--royal-500)}
.copy{margin-top:var(--s12);display:grid;gap:var(--s3);font-size:14px;line-height:20px;font-weight:500;color:var(--foot-ink)}
.foot-cols{display:grid;grid-template-columns:repeat(3,auto);column-gap:56px}
.foot-cols h3{font-family:var(--font-geist-mono);font-size:12px;line-height:18px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--foot-ink);margin:0 0 var(--s5)}
.foot-cols ul{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.foot-cols a{font-size:15px;line-height:22px;font-weight:600;color:var(--foot-link);text-decoration:none}
.foot-cols a:hover{color:var(--brand);text-decoration:underline}
.social{display:flex;gap:16px}
.social a{line-height:0;color:var(--foot-social)}
.social a:hover{color:var(--brand)}
.social svg{width:24px;height:24px;display:block}
@media (max-width:1080px){.foot-cols{column-gap:40px}}
@media (max-width:900px){
  .site-footer{padding-block:var(--s16) var(--s10)}
  .foot{grid-template-columns:minmax(0,1fr);gap:0}
  .foot-cols{order:1;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--s6);row-gap:var(--s12);grid-template-areas:"follow follow" "company policies"}
  .fc-follow{grid-area:follow}.fc-company{grid-area:company}.fc-policies{grid-area:policies}
  .foot-cols a{font-size:16px;line-height:20px}
  .social svg{width:22px;height:22px}
  .foot-brand{order:2;margin-top:var(--s12);padding-top:var(--s12);border-top:1px solid var(--border)}
  .badges{margin-top:var(--s10)}
  .copy{margin-top:var(--s10);gap:var(--s4)}
}

@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
