/* Leonardo Ramos Agudelo — personal brand site */
/* Layout: dark navy hero with glass pill nav, split hero with portrait, light sections with cards, dark CTA banner, dark footer. */

:root {
  --navy: #0a1f3c;
  --navy-2: #0f2d57;
  --navy-3: #16396b;
  --accent: #2f7cf6;
  --accent-2: #63a4ff;
  --bg: #ffffff;
  --bg-soft: #f3f6fb;
  --text: #0e1726;
  --muted: #5b6678;
  --on-dark: #e8eefb;
  --on-dark-muted: #a9b8d3;
  --border: #e3e8f0;
  --radius: 20px;
  --max: 1160px;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Dark band (hero) ---------- */
.band {
  position: relative;
  color: var(--on-dark);
  background:
    radial-gradient(900px 500px at 78% 30%, rgba(47,124,246,0.28), transparent 60%),
    linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 65%);
  overflow: hidden;
}
.band::before { /* faint grid */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}

/* ---------- Glass pill nav ---------- */
header { position: relative; z-index: 5; padding: 1.25rem 1.5rem 0; }
nav {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 0.7rem 0.6rem 1.4rem;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.logo { color: #fff; font-weight: 700; letter-spacing: -0.02em; font-size: 1.05rem; white-space: nowrap; }
.logo:hover { text-decoration: none; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; align-items: center; }
nav ul a { color: var(--on-dark-muted); font-size: 0.93rem; }
nav ul a:hover, nav ul a[aria-current="page"] { color: #fff; text-decoration: none; }
nav ul a[aria-current="page"]::before { content: "• "; color: var(--accent-2); }
.nav-actions { display: flex; gap: 0.5rem; align-items: center; }
.pill-outline {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1.05rem;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  color: #fff; font-size: 0.9rem; font-weight: 500;
}
.pill-outline:hover { background: rgba(255,255,255,0.1); text-decoration: none; }
.lang { padding: 0.5rem 0.8rem; color: var(--on-dark-muted); }

/* ---------- Home hero ---------- */
.hero {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem;
  padding: 4.5rem 1.5rem 0;
  min-height: 560px;
}
.hero-copy { align-self: center; padding-bottom: 3rem; }
.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  line-height: 1.08; letter-spacing: -0.035em; font-weight: 700;
  color: #fff; margin: 0 0 1.25rem;
}
.hero .lede { color: var(--on-dark-muted); font-size: 1.12rem; max-width: 34rem; margin: 0 0 2rem; }
.hero-sign { margin-top: 3rem; }
.hero-sign strong { display: block; color: #fff; font-size: 1.35rem; font-style: italic; font-weight: 600; letter-spacing: -0.01em; }
.hero-sign span { color: var(--on-dark-muted); font-style: italic; font-size: 0.95rem; }
.hero-media {
  position: relative; align-self: end;
  width: 100%; max-width: 470px; margin-left: auto;
  aspect-ratio: 900 / 987;
}
.hero-media::before {
  content: ""; position: absolute; inset: 8% -12% -4% -12%; z-index: 0;
  background: radial-gradient(closest-side, rgba(63,140,255,0.55), rgba(47,124,246,0.18) 60%, transparent 100%);
  pointer-events: none;
}
.hero-media img {
  position: relative; z-index: 1;
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  filter: drop-shadow(0 20px 40px rgba(4,14,32,0.45));
}
.chip {
  position: absolute; z-index: 2; right: -1.5rem; top: -0.75rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(10,31,60,0.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; font-size: 0.92rem; font-weight: 500; line-height: 1.3;
}
.chip small { display: block; color: var(--on-dark-muted); font-weight: 400; font-size: 0.8rem; }
.chip .dot { width: 34px; height: 34px; border-radius: 50%; background: rgba(99,164,255,0.2); display: grid; place-items: center; color: var(--accent-2); font-weight: 700; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 4rem 1.5rem 4.5rem; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 1rem; max-width: 46rem; }
.page-hero .lede { color: var(--on-dark-muted); font-size: 1.15rem; max-width: 42rem; margin: 0; }
.page-hero .eyebrow { color: var(--accent-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.45rem 0.5rem 0.45rem 1.3rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff; font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(47,124,246,0.35);
}
.btn::after {
  content: "→"; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; color: var(--accent); display: grid; place-items: center; font-size: 0.95rem;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn-ghost { display: inline-flex; padding: 0.7rem 1.2rem; border-radius: 999px; color: #fff; border: 1px solid rgba(255,255,255,0.25); font-weight: 500; margin-left: 0.5rem; }
.btn-ghost:hover { text-decoration: none; background: rgba(255,255,255,0.08); }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

/* ---------- Sections ---------- */
.sec { padding: 5.5rem 0; }
.sec-soft { background: var(--bg-soft); }
.eyebrow { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 0.6rem; }
.eyebrow::before { content: "✦"; color: var(--accent); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 1rem; }
h2 em { font-style: normal; color: var(--accent); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; margin: 0 0 0.4rem; }
p { margin: 0 0 1rem; }
.sec-head { max-width: 40rem; margin-bottom: 2.5rem; }
.sec-head p { color: var(--muted); }

/* About split */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: center; }
.photo-card { border-radius: var(--radius); overflow: hidden; background: #0c2448; aspect-ratio: 900 / 987; box-shadow: 0 20px 50px rgba(10,31,60,0.15); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.split p { color: var(--muted); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.fact { border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.1rem; background: #fff; }
.fact b { display: block; font-size: 0.98rem; color: var(--text); }
.fact span { font-size: 0.85rem; color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(10,31,60,0.08); }
.card p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.card .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #e8f0fe; color: var(--accent); font-weight: 700; margin-bottom: 1rem; }
.card.featured { background: linear-gradient(160deg, var(--navy-3), var(--navy)); color: #fff; border-color: transparent; }
.card.featured p { color: var(--on-dark-muted); }
.card.featured .ico { background: rgba(255,255,255,0.12); color: #fff; }
a.card { color: inherit; display: block; }
a.card:hover { text-decoration: none; }
.card .more { display: inline-block; margin-top: 1rem; color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.card.featured .more { color: var(--accent-2); }

/* Prose blocks on inner pages */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.prose p { color: #2b3445; font-size: 1.06rem; }
.prose ul { padding-left: 1.2rem; color: #2b3445; }

/* Article */
.article-body { max-width: 44rem; margin: 0 auto; }
.article-body p { font-size: 1.1rem; color: #243044; line-height: 1.75; }
.article-body strong { color: var(--text); }
.meta { font-size: 0.9rem; color: var(--on-dark-muted); margin-bottom: 1rem; }
.meta a { color: var(--accent-2); }
.back { display: inline-block; margin-top: 2rem; font-weight: 600; }

/* CTA banner */
.cta {
  position: relative; overflow: hidden;
  border-radius: 28px;
  display: grid; grid-template-columns: 1.3fr 0.7fr; align-items: end;
  background:
    radial-gradient(600px 300px at 85% 20%, rgba(47,124,246,0.35), transparent 60%),
    linear-gradient(150deg, var(--navy-2), var(--navy));
  color: #fff;
}
.cta-copy { padding: 3.5rem 3rem; align-self: center; }
.cta h2 { color: #fff; }
.cta p { color: var(--on-dark-muted); max-width: 30rem; }
.cta img { width: 100%; max-width: 320px; aspect-ratio: 900 / 987; object-fit: cover; object-position: center top; margin: 1.5rem 2rem 0 auto; border-radius: 20px 20px 0 0; display: block; }

/* Footer */
footer { background: var(--navy); color: var(--on-dark-muted); padding: 4rem 0 2rem; font-size: 0.95rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot .logo { display: inline-block; margin-bottom: 0.6rem; }
.foot h4 { color: #fff; font-size: 0.95rem; margin: 0 0 0.8rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 0.4rem; }
.foot a { color: var(--on-dark-muted); }
.foot a:hover { color: #fff; }
.copy { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2.5rem; padding-top: 1.5rem; font-size: 0.85rem; }

@media (max-width: 900px) {
  nav ul { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 3rem; min-height: 0; }
  .hero-copy { padding-bottom: 0; }
  .hero-media { max-width: 360px; margin: 2.5rem auto 0; }
  .chip { right: auto; top: -1.75rem; left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split .photo-card { max-width: 360px; }
  .cta { grid-template-columns: 1fr; }
  .cta-copy { padding: 2.5rem 1.75rem 0; }
  .cta img { width: 100%; max-width: 320px; aspect-ratio: 900 / 987; object-fit: cover; object-position: center top; margin: 1.5rem 2rem 0 auto; border-radius: 20px 20px 0 0; display: block; }
  .foot { grid-template-columns: 1fr; }
  .sec { padding: 4rem 0; }
}
@media (max-width: 520px) {
  .logo { font-size: 0.95rem; }
  .facts { grid-template-columns: 1fr; }
  .lang { display: none; }
}

.photo-card.stage { position: relative; aspect-ratio: 4 / 5; background: radial-gradient(ellipse 70% 60% at 50% 42%, rgba(74,144,255,0.55) 0%, rgba(40,90,180,0.25) 45%, transparent 75%), linear-gradient(180deg,#0f2b55 0%,#0a1f3c 100%); }
.photo-card.stage img { object-fit: cover; object-position: center bottom; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35)); }
@media (max-width: 900px) { .split .photo-card.stage { max-width: 340px; margin-inline: auto; } }
.cta img[src*="stage-"] { height: auto; aspect-ratio: 4 / 5; object-fit: contain; object-position: center bottom; border-radius: 0; max-width: 300px; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35)); }
.page-hero.with-photo { display: grid; grid-template-columns: 1fr 260px; gap: 2rem; align-items: end; padding-bottom: 0; }
.page-hero.with-photo > div { padding-bottom: 4.5rem; }
.page-hero .hero-cut { width: 100%; height: auto; display: block; filter: drop-shadow(0 12px 30px rgba(0,0,0,0.4)); background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(74,144,255,0.45), transparent 70%); }
@media (max-width: 900px) {
  .page-hero.with-photo { grid-template-columns: 1fr 120px; gap: 1rem; }
  .page-hero.with-photo > div { padding-bottom: 2.5rem; }
}
/* About: stats, timeline, mission, media */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.stat { background: #fff; border: 1px solid var(--line, #e5e9f0); border-radius: 18px; padding: 1.5rem 1.4rem; }
.stat b { display: block; font-size: 2.1rem; letter-spacing: -0.03em; color: var(--navy, #0a1f3c); line-height: 1.1; margin-bottom: 0.4rem; }
.stat span { color: var(--muted); font-size: 0.95rem; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 2rem; position: relative; max-width: 52rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(#2f7cf6, #0a1f3c); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 2.2rem 1rem; }
.timeline li::before { content: ""; position: absolute; left: calc(-2rem + 1px); top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #2f7cf6; box-shadow: 0 0 0 4px rgba(47,124,246,0.15); }
.timeline li:last-child { padding-bottom: 0; }
.tl-date { display: inline-block; font-size: 0.8rem; font-weight: 700; color: #2f7cf6; background: #e8f0fe; border-radius: 999px; padding: 0.15rem 0.65rem; margin-bottom: 0.45rem; }
.timeline h3 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.timeline p { margin: 0; color: var(--muted); }
.ideas3 { grid-template-columns: repeat(3, 1fr); }
.mission { border-radius: 24px; padding: 2.5rem 2.5rem; color: #fff; background: radial-gradient(500px 220px at 85% 20%, rgba(47,124,246,0.4), transparent 60%), linear-gradient(150deg, var(--navy-2), var(--navy)); }
.mission .eyebrow { color: var(--accent-2); }
.mission-text { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: 1.2; }
.media-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.media-list li { display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem 1.2rem; border: 1px solid var(--line, #e5e9f0); border-radius: 14px; background: #fff; }
.media-list a { font-weight: 600; }
.media-list span { color: var(--muted); font-size: 0.88rem; }
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .stat { padding: 1.1rem; } .stat b { font-size: 1.6rem; }
  .ideas3 { grid-template-columns: 1fr; }
  .mission { padding: 1.8rem 1.5rem; }
}
/* Logo sections: companies, education, press */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.logos-sec .sec-head { margin-bottom: 2rem; }
.logos-sec + .logos-sec:not(.sec-soft), .logos-sec:not(.sec-soft) + .sec:not(.sec-soft) { border-top: 1px solid var(--border); }
.logos-note { color: var(--muted); font-size: .95rem; margin: .4rem 0 0; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; list-style: none; margin: 0; padding: .5rem 0; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.lg-item { flex: 0 0 auto; }
.marquee .lg-item { width: 220px; margin-right: 1rem; }
.lg-item > a, .lg-item { color: inherit; text-decoration: none; }
.lg-item > a, .logo-row .lg-item, .marquee .lg-item:not(:has(a)) { display: flex; flex-direction: column; align-items: center; gap: .8rem; height: 100%; padding: 1.4rem 1rem 1.1rem; border-radius: 16px; background: #fff; border: 1px solid var(--border); transition: border-color .25s, box-shadow .25s, transform .25s; }
.lg-item:hover > a, .logo-row .lg-item:hover, .marquee .lg-item:not(:has(a)):hover { border-color: rgba(47,124,246,.35); box-shadow: 0 10px 30px rgba(10,31,60,.08); transform: translateY(-2px); }
.logo-mark { height: 56px; display: flex; align-items: center; justify-content: center; gap: .45rem; filter: grayscale(1) contrast(1.1) opacity(.62); transition: filter .3s; }
.lg-item:hover .logo-mark, .lg-item a:focus-visible .logo-mark { filter: none; }
.logo-mark img { width: auto; max-width: 170px; object-fit: contain; display: block; }
.logo-cap { font-size: .8rem; line-height: 1.35; color: var(--muted); text-align: center; }
.logo-cap b { display: block; color: var(--text); font-weight: 600; font-size: .88rem; }
.wm { color: #1b2333; line-height: 1.1; text-align: center; }
.wm-mc { font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em; color: #141413; }
.wm-serif { font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; color: #0b2a5b; }
.wm-hbs { display: flex; flex-direction: column; align-items: center; }
.wm-hbs b { font-family: Georgia, serif; font-weight: 400; font-size: 1rem; color: #a51c30; }
.wm-hbs small { font-size: .62rem; letter-spacing: .32em; margin-top: .25rem; color: #1b2333; }
.wm-porta { font-family: Georgia, serif; font-size: 1.6rem; font-weight: 700; color: #00838f; letter-spacing: -.01em; }
.lg-item a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 900px) {
  .logo-row { grid-template-columns: repeat(2, 1fr); }
  .marquee .lg-item { width: 180px; }
  .marquee-track { animation-duration: 32s; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 1rem 0; }
  .marquee .lg-item[aria-hidden="true"] { display: none; }
}
.logo-row .lg-item { min-width: 0; }
.logo-mark img { max-width: min(170px, 100%); }
@media (max-width: 900px) {
  .logo-row { gap: .75rem; }
  .logo-row .lg-item { padding: 1.1rem .6rem .9rem; }
  .logo-row .logo-mark { height: 48px; }
  .logo-row .logo-mark img { max-height: 40px; }
  .wm-hbs b { font-size: .82rem; }
  .wm-serif { font-size: .9rem; }
  .logo-cap { font-size: .74rem; }
  .logo-cap b { font-size: .8rem; }
}
.logo-cap { max-width: 100%; min-width: 0; overflow-wrap: break-word; }
.lg-item > a { width: 100%; }
.logo-cap { white-space: normal; width: 100%; }
.lg-item { white-space: normal; }
.marquee .lg-item:not(:has(a)) { height: auto; }
.marquee-track { align-items: stretch; }
