:root{
  --bg:#071a33;
  --bg2:#061428;
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.08);
  --border:rgba(255,255,255,.12);
  --text:#ffffff;
  --muted:rgba(255,255,255,.80);
  --muted2:rgba(255,255,255,.62);
  --accent:#ea6848;
  --accent2:#6bc4ea;
  --radius:18px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  color:var(--text);
}

/* Layout */
.container{
  width:min(1120px, calc(100% - 44px));
  margin:0 auto;
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(5,14,28,.72);
  backdrop-filter: blur(12px);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.header-inner{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:#ffffff;
  min-width:280px;
}

.brand-logo{
  height:44px;
  width:auto;
  display:block;
  object-fit:contain;
}

.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.15;
}

.brand-name{
  font-weight:700;
  letter-spacing:.2px;
  font-size:16px;
}

.brand-tag{
  font-size:12px;
  color:var(--muted2);
  margin-top:2px;
}

/* Nav */
.site-nav{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.site-nav a{
  color:#ffffff;
  text-decoration:none;
  font-size:15px;
  padding:9px 12px;
  border-radius:999px;
}

.site-nav a:hover{
  background:rgba(255,255,255,.08);
}

.site-nav a.active{
  background:rgba(255,255,255,.10);
}

.nav-apply{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  font-weight:600;
}

.nav-apply:hover{
  background:rgba(255,255,255,.14);
}


/* Content links */
main a{
  color: var(--accent2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
main a:hover{
  opacity:.92;
}
.site-header .site-nav a,
.site-header .brand,
.site-header .brand *{
  color:#ffffff;
  text-decoration:none;
}
.site-header .site-nav a:hover{
  text-decoration:none;
}

.card{
  background: var(--panel);
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding:16px 18px;
}
.card h3{ margin:0 0 6px; font-size:18px; }
.card p{ margin:0; }


.panel{
  background: var(--panel2);
  border:1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding:20px 22px;
}


.muted{ color: var(--muted); }


.small{ font-size:12px; color: var(--muted2); line-height:1.4; }
/* Hero */
.hero{
  padding:70px 0 40px;
}

.hero-grid{
  display:grid;
  /* KEEP: the good proportion you liked */
  grid-template-columns: 1.15fr .85fr;
  align-items:center;
  gap:34px;
}

.eyebrow{
  margin:0 0 14px;
  font-size:12px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:rgba(255,255,255,.75);
}

h1{
  margin:0 0 14px;
  font-size:54px;
  line-height:1.05;
  letter-spacing:-.02em;
  color:#ffffff;
}

.lead{
  margin:0 0 22px;
  font-size:18px;
  line-height:1.55;
  color:rgba(255,255,255,.88);
  max-width:52ch;
}

.cta-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:12px;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  border:1px solid transparent;
}

.btn.primary{
  background:linear-gradient(135deg, #ea6848 0%, #f07b5c 45%, #6bc4ea 100%);
  color:#061428;
  box-shadow:0 10px 24px rgba(234,104,72,.35);
  border:0;
  transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn.primary:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 36px rgba(234,104,72,.45);
  filter:brightness(1.05);
}

.btn.ghost{
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.16);
  color:#fff;
}

.btn.ghost:hover{
  background:rgba(255,255,255,.10);
}

/* ============================
   HERO HEADSHOT — STOP CHASING
   Goal:
   - Keep the “much better” proportions (no tall card)
   - Keep photo contained + bottom aligned
   - Add a subtle rectangle stage WITHOUT changing hero height
============================ */

.hero-image{
  /* subtle stage only (no border, no padding, no big shadow) */
  background:transparent;
  border:0;
  overflow:hidden;

  /* IMPORTANT: do NOT force a tall hero */
  height:auto;

  /* create a consistent rectangle feel without blowing the layout */
  aspect-ratio: 4 / 3;

  display:flex;
  align-items:flex-end;
  justify-content:center;
}

.hero-image img{
  width:100%;
  height:100%;
  display:block;

  /* This keeps the ENTIRE cutout visible inside the rectangle */
  object-fit:contain;
  object-position:center bottom;

  border-radius:0;
  opacity:1;

  /* restore brightness without overdoing it */
  filter: brightness(1.04) contrast(1.03) saturate(1.02);
}

/* Sections */
.section{
  padding:64px 0;
}

.section.alt{
  background:rgba(255,255,255,.03);
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
}

h2{
  margin:0 0 12px;
  font-size:34px;
  letter-spacing:-.01em;
  color:#fff;
}

p{
  margin:0 0 12px;
  color:rgba(255,255,255,.86);
  line-height:1.7;
  max-width:78ch;
}

.grid-3{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}

.feature{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding:18px;
}

.feature h3{
  margin:0 0 8px;
  font-size:16px;
  color:#fff;
}

.feature p{
  margin:0;
  color:rgba(255,255,255,.82);
}

/* Footer */
.site-footer{
  padding:26px 0 110px;
  border-top:1px solid rgba(255,255,255,.08);
  background:rgba(5,14,28,.55);
}

.disclosure{
  color:rgba(255,255,255,.75);
  font-size:12.5px;
  line-height:1.5;
}

/* Legacy chat styles (harmless) */
.chatbot-launch{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:80;
  border-radius:999px;
  padding:12px 16px;
  font-weight:800;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.10);
  color:#fff;
  cursor:pointer;
}

.chatbot-launch:hover{
  background:rgba(255,255,255,.14);
}

.chatbot-modal{
  position:fixed;
  right:18px;
  bottom:90px;
  width:380px;
  height:560px;
  z-index:999999;
}

.chatbot-shell{
  width:100%;
  height:100%;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,.45);
  background:#0b1e36;
  border:1px solid rgba(255,255,255,.14);
}

.chatbot-bar{
  height:52px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 12px;
  color:#fff;
}

.chatbot-close{
  background:transparent;
  border:0;
  color:#fff;
  font-size:18px;
  cursor:pointer;
}

.chatbot-modal iframe{
  width:100%;
  height:calc(100% - 52px);
  border:0;
  background:#fff;
}

#chatbox[hidden]{ display:none !important; }

/* Responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns:1fr; }
  /* Mobile: lead with the message, then show the headshot (cleaner reading flow) */
  .hero-grid .hero-copy{ grid-row: auto; }
  .hero-grid .hero-media{ grid-row: auto; }

  /* Give the header/nav room to wrap cleanly */
  .header-inner{ flex-wrap:wrap; }
  .site-nav{ justify-content:flex-start; }
  h1{ font-size:44px; }
  .grid-3{ grid-template-columns:1fr; }
  .brand{ min-width:unset; }
  .hero-image{
    max-width: 360px;
    margin: 10px auto 0;
    /* Slightly taller crop on mobile so we don't cut off the top of the head */
    aspect-ratio: 16 / 12;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .hero-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Bias upward on mobile to preserve hair/headroom */
    object-position: center 10%;
    filter: brightness(1.03) contrast(1.02) saturate(1.02);
  }
}

@media (max-width: 520px){
  h1{ font-size:38px; }
  .cta-row{ flex-direction:column; align-items:flex-start; }
  .btn{ width:100%; justify-content:center; }
  .hero-image{ max-width: 340px; }
}

@media (max-width: 720px){
  .site-nav{ gap:8px; }
  .site-nav a{ font-size:13px; padding:7px 9px; }
  .nav-apply{ font-weight:700; }
}

@media (max-width: 430px){
  .chatbot-modal{
    right:10px;
    left:10px;
    width:auto;
    height:70vh;
    bottom:82px;
  }
}
/* Subpage hero layout (no image yet) */
.container.hero-grid.single{
  grid-template-columns: 1fr;
  max-width: 820px;
}

/* Mobile navigation */
.nav-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color:#fff;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.nav-toggle:hover{ background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.18); }
.nav-toggle:active{ transform: translateY(1px); }
.nav-toggle:focus-visible{
  outline: 2px solid rgba(107,196,234,0.85);
  outline-offset: 3px;
}
.nav-toggle-icon{
  width:18px;
  height:2px;
  background: currentColor;
  border-radius:2px;
  position:relative;
  display:block;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after{
  content:"";
  position:absolute;
  left:0;
  width:18px;
  height:2px;
  background: currentColor;
  border-radius:2px;
}
.nav-toggle-icon::before{ top:-6px; }
.nav-toggle-icon::after{ top:6px; }

@media (max-width: 880px){
  .header-inner{
    gap: 10px;
  }
  .site-nav{
    display:none;
    position:absolute;
    top: calc(100% + 10px);
    right: 12px;
    left: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(8, 18, 34, 0.92);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 18px 50px rgba(0,0,0,0.45);
    z-index: 9999;
    backdrop-filter: blur(10px);
  }
  .site-nav.open{ display:flex; }
  .site-nav a{
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
  }
  .site-nav a.nav-apply{
    margin-left: 0;
    text-align: center;
  }
  .nav-toggle{ display:inline-flex; margin-left:auto; }
  /* tighten the logo + name row */
  .brand{
    min-width: 0;
  }
  .brand-text{
    max-width: 180px;
  }
}

/* SEO Phase 4.2: link + desktop alignment fixes */
/* Links: readable on dark background — scope to content areas so header/nav remain white */
main a, main a:visited,
footer a, footer a:visited,
.internal-link-block a, .internal-link-block a:visited {
  color: #6BC4EA;
  text-decoration: underline;
}
main a:hover, main a:focus, main a:active,
footer a:hover, footer a:focus, footer a:active,
.internal-link-block a:hover, .internal-link-block a:focus, .internal-link-block a:active {
  color: #EA6848;
}

/* Phase 4.7: Lock header/nav typography + color (premium + prevents accidental blue states) */
.site-header .brand,
.site-header .brand *,
.site-header .site-nav a,
.site-header .site-nav a:visited,
.site-header .site-nav a:hover,
.site-header .site-nav a:focus,
.site-header .site-nav a:active{
  color:#ffffff !important;
  text-decoration:none !important;
}

/* Slightly stronger nav presence on desktop */
@media (min-width: 881px){
  .brand-tag{ font-size:12.5px; }
  .site-nav a{ font-size:15px; letter-spacing:.1px; }
}

/* Header + nav links stay white */
header a, header a:visited,
nav a, nav a:visited {
  color: #FFFFFF;
  text-decoration: none;
}
header a:hover, header a:focus,
nav a:hover, nav a:focus {
  color: #6BC4EA;
  text-decoration: none;
}

/* Constrain wide content blocks on desktop (used for resource pages + injected internal link blocks) */
.internal-link-block {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}


/* ===========================
   Phase 4.8 UI Tightening
   =========================== */

/* Premium header typography + guaranteed white */
.site-header .brand-name,
.site-header .brand-tag,
.site-header .site-nav a{
  color:#fff !important;
}
.site-header .site-nav a:hover,
.site-header .site-nav a:focus,
.site-header .site-nav a:active,
.site-header .site-nav a:visited{
  color:#fff !important;
}

.site-header .header-inner{
  gap:14px;
}
.site-header .brand-logo{
  height:40px;
  width:auto;
}
.site-header .brand-name{
  font-size:16px;
  line-height:1.1;
  font-weight:700;
  letter-spacing:.2px;
}
.site-header .brand-tag{
  font-size:12px;
  line-height:1.1;
  opacity:.85;
}
.site-header .site-nav a{
  font-size:15px;
  padding:8px 10px;
}

/* Mobile nav toggle (hamburger) */
.nav-toggle{
  display:none;
  margin-left:auto;
  background:transparent;
  border:1px solid rgba(255,255,255,.18);
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
}
.nav-toggle:focus{
  outline:2px solid rgba(107,196,234,.45);
  outline-offset:2px;
}
.nav-toggle-bars{
  display:block;
  width:18px;
  height:2px;
  background:#fff;
  position:relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after{
  content:"";
  position:absolute;
  left:0;
  width:18px;
  height:2px;
  background:#fff;
}
.nav-toggle-bars::before{ top:-6px; }
.nav-toggle-bars::after{ top:6px; }

@media (max-width: 880px){
  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; }
  .site-header .site-nav{
    display:none;
    position:absolute;
    top:64px;
    left:12px;
    right:12px;
    padding:12px;
    background:rgba(6,20,40,.96);
    border:1px solid rgba(255,255,255,.14);
    border-radius:16px;
    box-shadow:0 18px 50px rgba(0,0,0,.35);
    flex-direction:column;
    gap:6px;
    z-index:50;
  }
  .site-header.nav-open .site-nav{ display:flex; }
  .site-header .header-inner{ position:relative; }
  .site-header .brand-logo{ height:40px; }
  .site-header .site-nav a{ width:100%; text-align:left; }
}

/* Section spacing tighter */
.section{
  padding:56px 0;
}
.hero{
  padding:72px 0 56px;
}
.section h2{
  margin:0 0 14px;
}
.section p{
  margin:0 0 14px;
}
.section ul{
  margin:10px 0 0 1.1rem;
}

/* Footer alignment */
.site-footer .footer-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.site-footer .press-badge{
  margin:0;
  opacity:.9;
}
.site-footer .press-badge a{
  color:var(--accent2);
}
@media (max-width: 640px){
  .site-footer .footer-inner{ flex-direction:column; align-items:flex-start; }
}

/* Quick guide section match container rhythm */
.quick-guide a{
  display:inline-block;
  margin-top:6px;
}


/* Quotes */
.quote{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:18px 18px 16px;
}
.quote p{ margin:0 0 10px; }
.quote-by{
  margin:0;
  opacity:.85;
  font-size:13px;
}


/* Resources QA + Pro Tip styling */
.qa-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
  margin-top:18px;
}
@media (max-width: 980px){
  .qa-grid{ grid-template-columns:1fr; }
}
.qa-block h3{
  margin:18px 0 10px;
}
.qa-item{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  padding:10px 12px;
  margin:10px 0;
}
.qa-item summary{
  cursor:pointer;
  font-weight:700;
  list-style:none;
}
.qa-item summary::-webkit-details-marker{ display:none; }
.qa-answer{
  margin-top:10px;
}
.qa-answer p{
  margin:0 0 8px;
}
.qa-notes{
  margin-top:30px;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,.10);
}
.qa-notes p{
  margin:0 0 10px;
}
.pro-tip{
  display:inline-block;
  font-weight:800;
  letter-spacing:.2px;
  background:linear-gradient(90deg, var(--accent2), #ffffff);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.callout h3{
  margin:0 0 8px;
}


/* Slim hero variant for hub/location pages */
.hero.slim{ padding:56px 0 36px; }
.hero.slim .lead{ max-width: 68ch; }
@media (max-width: 640px){ .hero.slim{ padding:44px 0 28px; } }

/* Footer links */
.footer-links a{ color:var(--accent2); font-weight:600; text-decoration:none; }
.footer-links a:hover{ text-decoration:underline; }


/* Phase 5 add-ons: simple 2-column grid + bullet list */
.grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
}
@media (max-width: 880px){
  .grid-2{grid-template-columns:1fr;}
}
.bullets{
  margin:0;
  padding-left:18px;
}
.bullets li{margin:8px 0;}


/* Listing Lender + video lightbox additions */
.featured-grid{align-items:start;}
.feature-stack{display:grid;gap:14px;}
.video-grid{margin-top:18px;}
.video-card{display:block;text-decoration:none !important;position:relative;min-height:180px;}
.video-card h3{margin-top:10px;}
.video-badge{display:inline-flex;align-items:center;gap:8px;padding:7px 10px;border-radius:999px;background:rgba(107,196,234,.14);border:1px solid rgba(107,196,234,.35);font-size:12px;font-weight:700;color:#fff;}
.video-badge::before{content:"▶";font-size:10px;}
.video-lightbox{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:100000;padding:20px;}
.video-lightbox.open{display:flex;}
.video-lightbox-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.75);backdrop-filter:blur(4px);}
.video-lightbox-dialog{position:relative;width:min(1000px,100%);z-index:1;}
.video-lightbox-frame{position:relative;padding-top:56.25%;background:#000;border-radius:18px;overflow:hidden;box-shadow:0 24px 80px rgba(0,0,0,.45);}
.video-lightbox-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0;}
.video-lightbox-close{position:absolute;right:0;top:-48px;width:40px;height:40px;border-radius:999px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.12);color:#fff;font-size:24px;cursor:pointer;}
@media (max-width: 640px){.video-lightbox{padding:14px;}.video-lightbox-close{top:-44px;right:4px;}}


/* Phase 6: ecosystem and contact enhancements */
.ecosystem-intro{margin-bottom:22px;}
.ecosystem-grid{align-items:stretch;}
.ecosystem-card{display:flex;flex-direction:column;height:100%;}
.ecosystem-stage{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;margin-bottom:12px;padding:7px 10px;border-radius:999px;background:rgba(107,196,234,.14);border:1px solid rgba(107,196,234,.28);font-size:12px;font-weight:700;color:#fff;}
.ecosystem-actions{margin-top:auto;padding-top:14px;}
.contact-grid{align-items:start;}
.contact-panel,.map-panel{height:100%;}
.contact-list{display:grid;gap:12px;margin:18px 0;}
.contact-item{display:flex;justify-content:space-between;gap:18px;padding:14px 16px;border-radius:14px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);text-decoration:none !important;color:#fff !important;}
.contact-item:hover{background:rgba(255,255,255,.07);}
.contact-item-static{align-items:flex-start;}
.contact-label{font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.64);}
.contact-value{text-align:right;font-weight:600;line-height:1.5;color:#fff;}
.contact-item-static .contact-value{font-weight:500;}
.social-icons{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px;}
.social-icon{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:999px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);color:#fff !important;text-decoration:none !important;transition:transform .15s ease, background .15s ease;}
.social-icon:hover{transform:translateY(-2px);background:rgba(255,255,255,.11);}
.social-icon svg{width:20px;height:20px;display:block;}
.map-thumb{display:block;position:relative;border-radius:18px;overflow:hidden;border:1px solid rgba(255,255,255,.12);margin:18px 0 14px;text-decoration:none !important;}
.map-thumb img{display:block;width:100%;height:auto;}
.map-thumb-overlay{position:absolute;left:16px;right:16px;bottom:16px;display:inline-flex;justify-content:center;align-items:center;padding:10px 14px;border-radius:999px;background:rgba(5,14,28,.82);border:1px solid rgba(255,255,255,.18);color:#fff;font-weight:700;backdrop-filter:blur(6px);}
@media (max-width: 720px){.contact-item{flex-direction:column;align-items:flex-start;}.contact-value{text-align:left;}}
