@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Inter:wght@400;500;600;700&family=DM+Sans:wght@400;500;600&family=DM+Mono:wght@400;500&display=swap');

:root{
  --navy:#11182A;
  --navy-soft:#1A2238;
  --cream:#F7F3EC;
  --cream-dim:#EFE9DD;
  --ink:#181818;
  --ink-soft:#52524d;
  --gold:#B8893B;
  --gold-bright:#C9A05C;
  --line:rgba(0,0,0,0.1);
  --line-dark:rgba(255,255,255,0.12);
  --maxw:1280px;
  --radius:2px;
}

a:focus-visible,
button:focus-visible{
    outline:2px solid var(--gold);
    outline-offset:4px;
}

::selection{
    background:var(--gold);
    color:white;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'Inter',sans-serif;
  background:var(--cream);
  color:var(--ink);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 64px;}
@media (max-width:768px){ .wrap{padding:0 24px;} }

h1,h2,h3,h4{font-family:'Playfair Display',serif;font-weight:600;margin:0;line-height:1.08;letter-spacing:-.01em;}
.italic{font-style:italic;font-weight:500;}
.eyebrow{
  font-family:'Inter',sans-serif;
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--gold);
  font-weight:600;
}

/* ---------- HEADER ---------- */
/* .site-header{
  background:var(--navy);
  position:sticky;top:0;z-index:100;
} */
.site-header{
  background:var(--navy);
  position:sticky;top:0;z-index:100;
  /* border-bottom:1px solid #fff; */
}
.site-header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:76px;
  gap:24px;
}
@media (min-width:901px){
  .site-header .wrap{
    max-width:none;
    margin:0;
    padding-left:114px;
    padding-right:114px;
  }
}
.brand{
  font-family:'Playfair Display', serif;
  font-weight:700;
  font-size:22px;
  color:#fff;
  white-space:nowrap;
}

.nav-links{
  display:flex;
  gap:40px;
  list-style:none;
  margin:0;
  padding:0;
}

.nav-links a{
  color:rgba(255,255,255,.78);
  font-size:18px;
  letter-spacing:.02em;
  transition:color .2s;
}
.nav-links a:hover{
    color:#fff;
}

.nav-links a.active{
    color:var(--gold-bright);
}
.menu-btn{
  display:none;background:none;border:none;cursor:pointer;
  width:32px;height:32px;position:relative;
}
.menu-btn span{
  position:absolute;left:4px;right:4px;height:2px;background:#fff;
  transition:.25s;
}
.menu-btn span:nth-child(1){top:11px;}
.menu-btn span:nth-child(2){top:19px;}
.menu-btn span:nth-child(3){top:27px;}
.menu-btn.open span:nth-child(1){transform:translateY(8px) rotate(45deg);}
.menu-btn.open span:nth-child(2){opacity:0;}
.menu-btn.open span:nth-child(3){transform:translateY(-8px) rotate(-45deg);}

@media (max-width:860px){
  .nav-links{
    position:absolute;top:76px;left:0;right:0;
    background:var(--navy);
    flex-direction:column;gap:0;
    max-height:0;overflow:hidden;
    transition:max-height .3s ease;
  }
  .nav-links.open{max-height:280px;}
  .nav-links li{border-top:1px solid var(--line-dark);}
  .nav-links a{display:block;padding:18px 24px;}
  .menu-btn{display:block;}
}

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:14px 26px;
  font-size:14px;font-weight:600;
  border:1px solid transparent;
  cursor:pointer;
  transition:background .25s ease, border-color .25s ease, transform .2s ease;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-1px);}
.btn:active{transform:translateY(0);}
.btn-gold{background:var(--gold);color:var(--navy);}
.btn-gold:hover{background:var(--gold-bright);}
.btn-outline-dark{border-color:rgba(255,255,255,.45);color:#fff;}
.btn-outline-dark:hover{border-color:#fff;background:rgba(255,255,255,.08);}
.btn-navy{background:var(--navy);color:#fff;}
.btn-navy:hover{background:var(--navy-soft);}
.btn-row{display:flex;gap:14px;flex-wrap:wrap;}

/* ---------- HERO (home) ---------- */
/* .hero{
  background:var(--navy);
  color:#fff;
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:560px;
} */
/* .hero-content{
  padding:80px 56px 80px 64px;
  display:flex;flex-direction:column;justify-content:center;
  max-width:540px;
} */

.hero-content{
  padding:80px 56px 80px 64px;
  margin-left:50px;
  margin-top:170px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  max-width:540px;
}
.hero{
  background:var(--navy);
  color:#fff;
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:stretch;
  margin:0;
  padding:0;
}
.hero-photo{
  position:relative;
  background:var(--navy);
  overflow:hidden;
  margin:0;
  padding:0;
  max-height:780px;
}
.hero-photo img{width:100%;height:100%;object-fit:cover;display:block;}
.hero h1{font-size:clamp(42px,5.5vw,66px);}
.hero p.lede{
  margin-top:22px;color:rgba(255,255,255,.7);font-size:16px;max-width:420px;
}
.hero .btn-row{margin-top:34px;}
/* .hero-photo{
  position:relative;
  background:var(--navy);
  overflow:hidden;
  min-height:380px;
}
.hero-photo img{width:100%;height:100%;object-fit:cover;display:block;} */
/* .hero-tag{
  position:absolute;bottom:28px;left:28px;right:28px;
  background:var(--cream);
  color:var(--ink);
  padding:14px 18px;
  display:flex;align-items:center;gap:10px;
  font-size:14px;font-weight:600;
  text-decoration:none;
  transition:background .2s, color .2s;
} */

.hero-tag{
    position:absolute;
    left:28px;
    bottom:28px;

    display:flex;
    align-items:center;

    background:var(--cream);
    color:var(--ink);

    padding:12px 18px;
    border-radius:8px;

    width:auto;
    max-width:max-content;

    text-decoration:none;
    font-size:14px;
    font-weight:600;

    gap:12px;
}


.hero-tag:hover{background:var(--gold);color:#fff;}
.hero-tag-icon{
    width:28px !important;
    height:28px !important;
    min-width:28px;
    min-height:28px;
    max-width:28px;
    max-height:28px;
    object-fit:contain;
    flex:0 0 28px;
}

/* video embed */
.video-wrapper{
  background:#fff;
  padding:20px;
  border:1px solid var(--line);
  max-width:100%;
  margin:32px 0;
}
.video-wrapper iframe{
  width:100%;
  min-height:320px;
  aspect-ratio:16/9;
  display:block;
}
@media (max-width:900px){
  .hero{grid-template-columns:1fr;}
  .hero-content{order:2;max-width:100%;padding:56px 24px;margin:0;}
  .hero-photo{order:1;min-height:320px;}
}

/* ---------- Video ---------- */
.video-card{
    background:#F7F3EC;
    padding:18px;
    margin:40px 0 0;

    border-radius:16px;
    overflow:hidden;

    box-shadow:0 12px 30px rgba(0,0,0,.08);
}

.video-card iframe{
    display:block;
    width:100%;
    aspect-ratio:16/9;
    height:auto;
    border:0;
    border-radius:12px;
}

/* ---------- SECTION GENERIC ---------- */
section{padding:96px 0;}
.section-cream{background:var(--cream);}
.section-navy{background:var(--navy);color:#fff;}
.section-dim{background:var(--cream-dim);}
@media (max-width:768px){ section{padding:64px 0;} }

.section-head{margin-bottom:40px;}
.section-head h2{font-size:clamp(36px,5vw,56px);margin-top:10px;}
.two-col{
    display:grid;
    grid-template-columns:1.1fr .8fr;
    gap:64px;

    padding-left:30px;
    padding-right:30px;
}
@media (max-width:900px){ .two-col{grid-template-columns:1fr;gap:40px;} }

.content-offset{
    padding-left:50px;
    padding-right:50px;
}

.body-text p{color:var(--ink-soft);margin:0 0 18px;font-size:16px;max-width:680px;}
.section-navy .body-text p{color:rgba(255,255,255,.72);}

/* stats */
.stats-row{display:flex;gap:48px;margin-top:48px;flex-wrap:nowrap;}
.stat-num{font-family:'Playfair Display',serif;font-size:clamp(28px,3.2vw,42px);white-space:nowrap;}
.stat-label{font-size:13px;color:var(--ink-soft);margin-top:4px;white-space:nowrap;}
.section-navy .stat-label{color:rgba(255,255,255,.6);}
@media (max-width:560px){
  .stats-row{gap:24px;}
  .stat-label{font-size:11px;}
}

/* affiliations list */
.aff-list{list-style:none;margin:18px 0 0;padding:0;}
.aff-list li{
  padding:12px 0;border-top:1px solid var(--line);
  font-size:14px;color:var(--ink-soft);
  position:relative;padding-left:16px;
}
.aff-list li::before{content:'•';color:var(--gold);position:absolute;left:0;}

/* tabs (about) */
.tabs{display:flex;gap:36px;border-bottom:1px solid var(--line);margin-bottom:40px;}
.tab{
  background:none;border:none;cursor:pointer;
  font-family:'Inter';font-size:13px;letter-spacing:.08em;text-transform:uppercase;
  color:var(--ink-soft);
  padding-bottom:14px;
  border-bottom:2px solid transparent;
  font-weight:600;
}
.tab.active{color:var(--ink);border-color:var(--gold);}
.tab-panel{display:none;}
.tab-panel.active{display:block;}

.cred-block{margin-bottom:32px;}
.cred-block .label{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--gold);font-weight:600;}
.cred-block h3{font-size:24px;margin-top:8px;}
.cred-block .school{color:var(--ink-soft);font-size:14px;margin-top:4px;}

.cert-list{list-style:none;margin:0;padding:0;}
.cert-list li{
  display:flex;gap:18px;padding:14px 0;border-top:1px solid var(--line);
  font-size:15px;
}
.cert-list li:first-child{border-top:none;}
.cert-list .num{color:var(--gold);font-family:'Inter';font-size:13px;min-width:24px;}

/* portfolio grid */
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);column-gap:48px;row-gap:56px;}
@media (max-width:900px){ .grid-3{grid-template-columns:repeat(2,1fr);} }
@media (max-width:600px){ .grid-3{grid-template-columns:1fr;row-gap:44px;} }
.grid-3 .card{background:transparent;padding:0;}
.card .tag{font-family:'DM Mono',monospace;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--gold);}
.card h3{font-size:22px;margin-top:14px;color:#fff;letter-spacing:-.01em;}
.card p{font-family:'DM Sans',sans-serif;font-weight:400;color:rgba(255,255,255,.65);font-size:16px;margin-top:12px;line-height:1.65;max-width:320px;}
.card .ext{float:right;width:16px;height:16px;opacity:.5;transition:opacity .2s;}
.card{display:block;text-decoration:none;}
.grid-3 a.card:hover .ext{opacity:1;}
.grid-3 .card:hover h3{color:var(--gold-bright);transition:color .2s;}

.banner-feature{
  background:transparent;
  padding:88px 0 0;
  display:grid;grid-template-columns:repeat(3,1fr);
  column-gap:48px;
  align-items:start;
}
@media (max-width:800px){ .banner-feature{grid-template-columns:1fr;row-gap:24px;} }
.banner-feature .label{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--gold);}
.banner-feature h3{font-size:30px;color:#fff;margin-top:10px;}
.banner-feature .sub{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.5);margin-top:10px;}
.banner-feature p{color:rgba(255,255,255,.72);margin:0;font-size:15.5px;line-height:1.7;grid-column:span 2;}
.banner-feature .ext-top{display:flex;justify-content:flex-end;grid-column:1/-1;margin-bottom:-44px;}
.banner-feature .ext-top img{width:16px;height:16px;opacity:.5;transition:opacity .2s;}
.banner-feature a.ext-top:hover img{opacity:1;}
@media (max-width:800px){ .banner-feature .ext-top{margin-bottom:0;} }
.banner-feature{position:relative;}

/* Beulahmedia banner as clickable card */
a.banner-feature-link{
  display:grid;
  text-decoration:none;
  cursor:pointer;
  transition:opacity .2s;
}
a.banner-feature-link:hover{opacity:.85;}
a.banner-feature-link:hover h3{color:var(--gold-bright);}
a.banner-feature-link:hover .ext{opacity:1 !important;}
.banner-feature-ext-row{display:flex;justify-content:flex-end;grid-column:1/-1;margin-bottom:-44px;}

/* contact */
.contact-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:64px;}
@media (max-width:900px){ .contact-grid{grid-template-columns:1fr;} }
.contact-info-list{list-style:none;margin:34px 0 0;padding:0;}
.contact-info-list li{display:flex;gap:14px;align-items:flex-start;margin-bottom:18px;font-size:15px;}
.contact-info-list .icon{color:var(--gold);width:20px;flex-shrink:0;margin-top:2px;}
.social-row{display:flex;gap:12px;margin-top:30px;flex-wrap:wrap;}
.social-row a{
  width:40px;height:40px;border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;
  font-size:15px;color:var(--ink);
}
.social-row a:hover{border-color:var(--gold);color:var(--gold);}

.field-row{display:grid;grid-template-columns:1fr 1fr;gap:24px;}
@media (max-width:560px){ .field-row{grid-template-columns:1fr;} }
.field{margin-bottom:24px;}
.field label{
  display:block;font-size:12px;letter-spacing:.08em;text-transform:uppercase;
  color:var(--gold);font-weight:600;margin-bottom:8px;
}
.field input, .field textarea{
  width:100%;
  border:1px solid var(--line);
  background:#fff;
  padding:14px 16px;
  font-family:'Inter';font-size:15px;
  color:var(--ink);
}
.field input:focus, .field textarea:focus{outline:2px solid var(--gold);outline-offset:1px;}
.field textarea{resize:vertical;min-height:120px;}

/* footer */
.site-footer{background:var(--navy);color:rgba(255,255,255,.55);padding:24px 0;font-size:13px;}
.footer-row{display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px;}
.footer-location{
    color:inherit;
    text-decoration:none;
    transition:color .2s ease;
}

.footer-location:hover{
    color:var(--gold);
    text-decoration:underline;
}

@media (min-width:901px){

    .site-footer .wrap{
        max-width:none;
        margin:0;
        padding-left:114px;
        padding-right:114px;
    }

}

.footer-top,
.footer-bottom{
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
}
.reveal{opacity:0;transform:translateY(16px);transition:opacity .6s ease, transform .6s ease;}
.reveal.in{opacity:1;transform:none;}

/* ==========================================================================
   MOBILE & RESPONSIVE TWEAKS (Add to bottom of style.css)
   ========================================================================== */

@media (max-width: 860px) {
  /* 1. Fix Navigation Overlaps */
  .nav-links {
    max-height: 0;
    overflow: hidden;
    display: flex; /* Keep layout active */
  }
  .nav-links.open {
    max-height: 350px; /* Expands nicely for menu items */
  }


  /* 3. Fix the 'Founder & CEO' Button (Scaling constraint) */
  .hero-photo {
    min-height: 400px;
  }

  .hero-tag {
    left: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
    width: auto !important;
    max-width: calc(100% - 32px) !important;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    white-space: normal; /* Permits text-wrapping instead of pushing boundary boxes */
  }

  .hero-tag span {
    font-size: 13px;
    line-height: 1.3;
  }

  /* 4. Fix Portfolio Companies Section Headers */
  section .wrap h2[style*="clamp"] {
    font-size: 36px !important; /* Cap giant heading scales on compact devices */
  }
}


@media (max-width: 900px) {
  /* Reset the asymmetric margins/paddings causing the right-side cutoff */
  .two-col {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  
  .content-offset {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Ensure the video card stays perfectly inside the boundary bounds */
  .video-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Keep the body text paragraphs within the same grid alignment */
  .body-text p {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 900px) {
  /* Force the grid wrapper to stay strictly within 100% viewport width */
  .wrap.two-col {
    display: grid !important;
    grid-template-columns: 100% !important; /* Forces absolute boundary bounds */
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
    overflow: hidden; /* Clips any rogue bleeding margins */
  }

  /* The Golden Fix: Prevent grid items from blowing out on the right */
  .two-col > div {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important; /* Overrides browser min-content defaults */
    box-sizing: border-box !important;
  }

  /* Keep the video card completely flush with the column boundaries */
  .video-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  .video-card iframe {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 560px) {
  /* Change from a single squished row to a responsive grid */
  .stats-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* 2 items on top, 1 below */
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Make the 3rd stat ("Global Operational Reach") span full width across the bottom */
  .stats-row > div:nth-child(3) {
    grid-column: span 2;
  }

  /* The Critical Fix: Allow the long labels to wrap nicely onto 2 lines */
  .stat-num, 
  .stat-label {
    white-space: normal !important; /* Overrides the nowrap breakout */
    word-break: break-word;
  }
}