/* ==========================================================================
   TBP GLOBAL STRATEGIST FELLOWSHIP INSTITUTE — ÌMỌ̀DÒYE™
   Shared stylesheet: design tokens, header/nav, buttons, section headers, footer
   Used by index.html, about.html, and future Institute pages.
   ========================================================================== */

:root{
  --navy-950:#070d1a;
  --navy-900:#0b1526;
  --navy-800:#11203a;
  --navy-700:#182c4d;
  --navy-600:#233c66;
  --ink-100:#eef1f6;
  --ink-300:#c3cbdb;
  --ink-500:#8b96ad;
  --gold-400:#e7c98f;
  --gold-500:#d4af6a;
  --gold-600:#b8934c;
  --line-navy:rgba(212,175,106,0.18);
  --max-w:1240px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--navy-950);
  color:var(--ink-100);
  font-family:'Inter', sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}

h1,h2,h3,.font-display{
  font-family:'Fraunces', serif;
  font-weight:500;
  letter-spacing:-0.01em;
  color:#fbf9f4;
  margin:0;
}
.font-serif-body{font-family:'Source Serif 4', serif;}

.eyebrow{
  font-family:'Inter', sans-serif;
  font-size:11.5px;
  font-weight:600;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--gold-400);
}

.wrap{
  max-width:var(--max-w);
  margin:0 auto;
  padding:0 32px;
}

/* ---------- corridor line motif ---------- */
.corridor-lines{
  position:absolute;
  inset:0;
  overflow:hidden;
  pointer-events:none;
  z-index:0;
}
.corridor-lines svg{
  position:absolute;
  top:0; left:0;
  width:100%; height:100%;
}
.corridor-path{
  fill:none;
  stroke:var(--gold-500);
  stroke-width:1;
  opacity:0.28;
  stroke-dasharray:6 10;
  animation:corridor-flow 34s linear infinite;
}
.corridor-path.alt{ animation-duration:46s; animation-direction:reverse; opacity:0.16; }
@keyframes corridor-flow{ to{ stroke-dashoffset:-800; } }
@media (prefers-reduced-motion:reduce){
  .corridor-path{ animation:none; }
}

/* ============ HEADER ============ */
header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(7,13,26,0.86);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line-navy);
}

.utility-bar{
  border-bottom:1px solid rgba(212,175,106,0.08);
}
.utility-bar .wrap{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  height:34px;
  gap:24px;
}
.utility-link{
  font-size:12px;
  font-weight:500;
  color:var(--ink-300);
  display:inline-flex;
  align-items:center;
  gap:5px;
  transition:color .2s ease;
  letter-spacing:0.01em;
}
.utility-link:hover{ color:var(--gold-400); }
.utility-link svg{ width:10px; height:10px; transition:transform .2s ease; }
.utility-link:hover svg{ transform:translate(2px,-2px); }

.nav-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:78px;
  gap:28px;
}

.brand{
  display:flex;
  flex-direction:column;
  line-height:1.15;
  white-space:nowrap;
}
.brand-main{
  font-family:'Inter', sans-serif;
  font-size:13px;
  font-weight:700;
  letter-spacing:0.09em;
  text-transform:uppercase;
  color:#fbf9f4;
}
.brand-sub{
  font-family:'Fraunces', serif;
  font-style:italic;
  font-size:13px;
  color:var(--gold-400);
  margin-top:2px;
  letter-spacing:0.02em;
}

nav.primary-nav{
  display:flex;
  align-items:center;
  gap:34px;
}
.nav-link{
  font-size:14px;
  font-weight:500;
  color:var(--ink-300);
  position:relative;
  padding:6px 0;
  transition:color .2s ease;
  white-space:nowrap;
}
.nav-link::after{
  content:"";
  position:absolute;
  left:0; bottom:0;
  width:0; height:1px;
  background:var(--gold-500);
  transition:width .25s ease;
}
.nav-link:hover{ color:#fbf9f4; }
.nav-link:hover::after{ width:100%; }
.nav-link.is-active{ color:#fbf9f4; }
.nav-link.is-active::after{ width:100%; }

.btn-apply{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color:var(--navy-950);
  font-size:13.5px;
  font-weight:700;
  letter-spacing:0.03em;
  padding:11px 22px;
  border-radius:2px;
  white-space:nowrap;
  box-shadow:0 4px 18px rgba(212,175,106,0.18);
  transition:transform .2s ease, box-shadow .2s ease;
}
.btn-apply:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 24px rgba(212,175,106,0.28);
}
.btn-apply svg{ width:12px; height:12px; }

.nav-right{ display:flex; align-items:center; gap:30px; }

.burger{
  display:none;
  width:26px; height:20px;
  position:relative;
  cursor:pointer;
  background:none;
  border:none;
  padding:0;
}
.burger span{
  position:absolute;
  left:0; right:0;
  height:1px;
  background:var(--ink-100);
  transition:all .25s ease;
}
.burger span:nth-child(1){ top:0; }
.burger span:nth-child(2){ top:9px; }
.burger span:nth-child(3){ top:18px; }
.burger.open span:nth-child(1){ top:9px; transform:rotate(45deg); }
.burger.open span:nth-child(2){ opacity:0; }
.burger.open span:nth-child(3){ top:9px; transform:rotate(-45deg); }

.mobile-panel{
  display:none;
  flex-direction:column;
  background:var(--navy-900);
  border-top:1px solid var(--line-navy);
  border-bottom:1px solid var(--line-navy);
}
.mobile-panel.open{ display:flex; }
.mobile-panel .nav-link{
  padding:16px 32px;
  border-bottom:1px solid rgba(212,175,106,0.07);
  font-size:15px;
}
.mobile-panel .utility-link{
  padding:14px 32px;
  font-size:13px;
  border-bottom:1px solid rgba(212,175,106,0.07);
}
.mobile-panel .btn-apply{
  margin:18px 32px;
  justify-content:center;
}

@media (max-width:980px){
  nav.primary-nav{ display:none; }
  .nav-right .btn-apply{ display:none; }
  .burger{ display:block; }
  .utility-bar{ display:none; }
}

/* ============ SHARED BUTTONS & LINKS ============ */
.link-underline{
  font-size:14.5px;
  font-weight:600;
  color:var(--ink-100);
  border-bottom:1px solid var(--gold-500);
  padding-bottom:3px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  transition:color .2s ease;
}
.link-underline:hover{ color:var(--gold-400); }

.btn-ghost{
  border:1px solid var(--gold-500);
  color:var(--gold-400);
  font-size:13.5px;
  font-weight:600;
  padding:13px 24px;
  border-radius:2px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition:background .2s ease, color .2s ease;
}
.btn-ghost:hover{ background:var(--gold-500); color:var(--navy-950); }

/* ============ SHARED SECTION HEADER ============ */
.section{ padding:88px 0; }
.section-head{
  max-width:640px;
  margin-bottom:52px;
}
.section-head .eyebrow{ margin-bottom:14px; display:block; }
.section-head h2{
  font-size:clamp(26px, 3.4vw, 36px);
  line-height:1.2;
}
.section-head p{
  font-family:'Source Serif 4', serif;
  color:var(--ink-300);
  font-size:16.5px;
  line-height:1.65;
  margin-top:16px;
}

/* ============ FOOTER ============ */
footer{
  border-top:1px solid var(--line-navy);
  padding:64px 0 40px;
}
.footer-top{
  display:flex;
  justify-content:space-between;
  gap:60px;
  flex-wrap:wrap;
  padding-bottom:44px;
  border-bottom:1px solid var(--line-navy);
}
.footer-brand .brand-main{ font-size:14px; }
.footer-brand .brand-sub{ font-size:14px; margin-top:4px; }
.footer-brand p{
  font-family:'Source Serif 4', serif;
  color:var(--ink-500);
  font-size:13.5px;
  max-width:280px;
  margin-top:14px;
  line-height:1.6;
}
.footer-cols{
  display:flex;
  gap:56px;
  flex-wrap:wrap;
}
.footer-col h4{
  font-size:11.5px;
  font-weight:600;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--ink-500);
  margin-bottom:16px;
}
.footer-col a{
  display:block;
  font-size:13.5px;
  color:var(--ink-300);
  margin-bottom:11px;
  transition:color .2s ease;
}
.footer-col a:hover{ color:var(--gold-400); }
.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:28px;
  flex-wrap:wrap;
  gap:14px;
}
.footer-bottom span{
  font-size:12px;
  color:var(--ink-500);
}
.footer-portal-link{
  font-size:12.5px;
  font-weight:600;
  color:var(--gold-400);
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.footer-portal-link svg{ width:10px; height:10px; }
