/* =====================================================================
   Shajid Ahmed — Founder Brand
   Refined minimalism · Apple/Stripe inspired
   Brand: #000861 (deep navy)  /  #ECEDFF (soft light)
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Inter+Tight:wght@300;400;500;600;700&display=swap');

:root {
  /* Palette */
  --navy:        #000861;
  --navy-deep:   #00043a;
  --navy-soft:   #0a1078;
  --light:       #ECEDFF;
  --light-warm:  #F6F6FB;
  --ink:         #0A0B14;
  --ink-soft:    #2A2D45;
  --muted:       #6B6E8A;
  --line:        #E4E5F0;
  --line-soft:   #EFF0F8;
  --white:       #FFFFFF;
  --gold:        #C8A951; /* sparingly, for award badges */

  /* Type */
  --display: 'Fraunces', Georgia, serif;
  --sans:    'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* Radii */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0,8,97,.04), 0 1px 1px rgba(0,8,97,.03);
  --shadow-md: 0 6px 24px rgba(0,8,97,.06), 0 2px 6px rgba(0,8,97,.04);
  --shadow-lg: 0 24px 60px rgba(0,8,97,.10), 0 8px 20px rgba(0,8,97,.06);

  /* Container */
  --max:  1240px;
  --max-narrow: 880px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* =====================================================================
   Reset
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; margin: 0; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* =====================================================================
   Type
   ===================================================================== */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 var(--s-4);
  color: var(--ink);
}
h1 { font-size: clamp(44px, 7vw, 88px); font-weight: 400; letter-spacing: -0.035em; }
h2 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -0.028em; }
h3 { font-size: clamp(22px, 2.4vw, 28px); }
h4 { font-size: 19px; font-family: var(--sans); font-weight: 600; letter-spacing: -0.01em; }
p  { margin: 0 0 var(--s-4); color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--navy);
}

.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-soft); line-height: 1.55; max-width: 60ch; }

/* =====================================================================
   Layout
   ===================================================================== */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--s-5); }
.container--narrow { max-width: var(--max-narrow); }
.section { padding: var(--s-9) 0; }
.section--tight { padding: var(--s-8) 0; }
.section--dark { background: var(--navy); color: var(--light); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--light); }
.section--dark p { color: rgba(236,237,255,.75); }
.section--dark .eyebrow { color: var(--light); }
.section--dark .eyebrow::before { background: var(--light); }
.section--soft { background: var(--light-warm); }

@media (max-width: 720px) {
  .section { padding: var(--s-8) 0; }
}

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--navy);
  color: var(--light);
}
.btn--primary:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--light {
  background: var(--light);
  color: var(--navy);
}
.btn--light:hover { background: var(--white); }
.btn--outline-light {
  background: transparent;
  color: var(--light);
  border: 1px solid rgba(236,237,255,.3);
}
.btn--outline-light:hover { border-color: var(--light); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* =====================================================================
   Navbar
   ===================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--s-4) var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}
.nav__logo {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav__logo span { color: var(--navy); }
.nav__links {
  display: flex;
  gap: var(--s-6);
  align-items: center;
}
.nav__links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
}
.nav__links a:hover { color: var(--navy); }
.nav__links a.is-active { color: var(--navy); }
.nav__cta { display: flex; align-items: center; gap: var(--s-3); }
.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.nav__toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  position: relative;
}
.nav__toggle span::before, .nav__toggle span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink);
}
.nav__toggle span::before { top: -5px; }
.nav__toggle span::after  { top:  5px; }

@media (max-width: 880px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__inner.is-open + .nav__mobile { display: block; }
}
.nav__mobile {
  display: none;
  padding: var(--s-5);
  background: var(--white);
  border-top: 1px solid var(--line);
}
.nav__mobile a {
  display: block;
  padding: var(--s-3) 0;
  font-size: 18px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.nav__mobile .btn { margin-top: var(--s-4); width: 100%; justify-content: center; }

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 9vw, 120px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 70%;
  background:
    radial-gradient(ellipse 60% 50% at 20% 10%, rgba(0,8,97,.06), transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 0%, rgba(200,169,81,.05), transparent 60%);
  z-index: -1;
}
.hero__grid {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: 1.2fr .8fr;
  align-items: end;
}
@media (max-width: 920px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__title {
  margin-bottom: var(--s-5);
}
.hero__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--navy);
}
.hero__sub {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: var(--s-7);
}
.hero__cta { display: flex; gap: var(--s-3); flex-wrap: wrap; }

.hero__meta {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  padding: var(--s-6);
  border-left: 1px solid var(--line);
}
@media (max-width: 920px) { .hero__meta { border-left: 0; padding-left: 0; } }

.hero__meta-row {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.hero__meta-row .k {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__meta-row .v {
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal--stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal--stagger.is-in > * { opacity: 1; transform: none; }
.reveal--stagger.is-in > *:nth-child(1) { transition-delay: 0s; }
.reveal--stagger.is-in > *:nth-child(2) { transition-delay: .08s; }
.reveal--stagger.is-in > *:nth-child(3) { transition-delay: .16s; }
.reveal--stagger.is-in > *:nth-child(4) { transition-delay: .24s; }
.reveal--stagger.is-in > *:nth-child(5) { transition-delay: .32s; }

/* =====================================================================
   Section header
   ===================================================================== */
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--s-6);
  margin-bottom: var(--s-7);
}
.sec-head__title { max-width: 28ch; margin: var(--s-3) 0 0; }
.sec-head__lede  { max-width: 48ch; }
@media (max-width: 720px) {
  .sec-head { flex-direction: column; align-items: start; }
}

/* =====================================================================
   Stats / authority strip
   ===================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: var(--s-7) var(--s-5);
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat__value {
  font-family: var(--display);
  font-size: clamp(40px, 4.5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1;
  margin-bottom: var(--s-3);
}
.stat__label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
@media (max-width: 880px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* =====================================================================
   Ventures
   ===================================================================== */
.ventures {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}
@media (max-width: 760px) { .ventures { grid-template-columns: 1fr; } }

.venture {
  position: relative;
  padding: var(--s-6);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  min-height: 280px;
}
.venture:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.venture__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-4);
}
.venture__cat {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.venture__year { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.venture__name {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}
.venture__desc { color: var(--ink-soft); margin: 0; }
.venture__footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-soft);
}
.venture__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--navy);
  font-weight: 500;
  font-size: 14.5px;
}
.venture__link:hover { gap: 12px; }

/* =====================================================================
   Services
   ===================================================================== */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

.service {
  padding: var(--s-7) var(--s-5);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.service:hover { background: var(--light-warm); }
.service:nth-child(2n) { border-right: 0; }
@media (max-width: 760px) {
  .service { border-right: 0; }
}
.service__num {
  font-family: var(--display);
  font-size: 14px;
  color: var(--muted);
  margin-bottom: var(--s-4);
  font-variant-numeric: tabular-nums;
}
.service__title {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-3);
}
.service__desc { color: var(--ink-soft); margin-bottom: var(--s-4); }
.service__audience {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: var(--s-5);
}
.service__audience b { font-weight: 600; color: var(--ink); margin-right: 6px; }
.service__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy);
}
.service__cta:hover { gap: 12px; }

/* =====================================================================
   Achievements (badges row)
   ===================================================================== */
.badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
@media (max-width: 760px) { .badges { grid-template-columns: repeat(2, 1fr); } }

.badge {
  padding: var(--s-5);
  border: 1px solid rgba(236,237,255,.18);
  border-radius: var(--r-md);
  background: rgba(236,237,255,.04);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.badge:hover {
  background: rgba(236,237,255,.07);
  border-color: rgba(236,237,255,.3);
}
.badge__year {
  font-family: var(--display);
  font-size: 14px;
  color: var(--gold);
  margin-bottom: var(--s-3);
  font-variant-numeric: tabular-nums;
}
.badge__title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 var(--s-2);
  color: var(--light);
  line-height: 1.2;
}
.badge__issuer { font-size: 13px; color: rgba(236,237,255,.7); margin: 0; }

/* =====================================================================
   Final CTA band
   ===================================================================== */
.cta-band {
  text-align: center;
  padding: clamp(80px, 12vw, 140px) 0;
  background: linear-gradient(180deg, var(--navy-deep), var(--navy));
  color: var(--light);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(200,169,81,.08), transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--light); max-width: 18ch; margin: 0 auto var(--s-5); }
.cta-band p  { color: rgba(236,237,255,.75); max-width: 50ch; margin: 0 auto var(--s-6); }

/* =====================================================================
   Footer
   ===================================================================== */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: var(--s-9) 0 var(--s-6);
  font-size: 14.5px;
}
.footer a { color: rgba(255,255,255,.7); }
.footer a:hover { color: var(--white); }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-7);
  margin-bottom: var(--s-8);
}
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
.footer__brand {
  font-family: var(--display);
  font-size: 28px;
  color: var(--white);
  margin-bottom: var(--s-4);
}
.footer__tag { max-width: 36ch; }
.footer__col h5 {
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 var(--s-4);
}
.footer__col ul li { margin-bottom: var(--s-3); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: var(--s-5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 13px;
}

/* =====================================================================
   Forms
   ===================================================================== */
.form { display: grid; gap: var(--s-4); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: var(--s-2);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(0,8,97,.08);
}
.field textarea { min-height: 140px; resize: vertical; }
.notice {
  padding: var(--s-4);
  border-radius: var(--r-md);
  font-size: 14.5px;
}
.notice--ok   { background: #EAF7EE; color: #1B6B2E; border: 1px solid #C8E5D2; }
.notice--err  { background: #FCEBEB; color: #8A1F1F; border: 1px solid #F1C9C9; }

/* =====================================================================
   Page header (inner pages)
   ===================================================================== */
.page-head {
  padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { max-width: 18ch; margin-bottom: var(--s-4); }
.page-head p  { max-width: 60ch; }

/* =====================================================================
   Blog
   ===================================================================== */
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
@media (max-width: 880px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }

.post-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.post-card:hover { border-color: var(--navy); transform: translateY(-2px); }
.post-card__cat { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.post-card__title { font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: -0.018em; margin: 0; }
.post-card__date { font-size: 13px; color: var(--muted); margin-top: auto; }

.article {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.75;
}
.article h2 { margin-top: var(--s-7); }
.article p { color: var(--ink); margin-bottom: var(--s-5); }
.article img { border-radius: var(--r-md); margin: var(--s-5) 0; }

/* =====================================================================
   Utility
   ===================================================================== */
.text-center { text-align: center; }
.muted { color: var(--muted); }
.divider { height: 1px; background: var(--line); border: 0; margin: var(--s-7) 0; }
