:root {
  --blue: #1d4ed8;
  --blue-dark: #1e3a8a;
  --blue-light: #dbeafe;
  --brand-red: #dc2626;
  --brand-pink: #db2777;
  --brand-purple: #7c3aed;
  --brand-blue: #2563eb;
  --brand-gradient: linear-gradient(135deg, #b91c1c 0%, #db2777 38%, #7c3aed 68%, #2563eb 100%);
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
h1, h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.wrap.narrow { max-width: 720px; }
.section { padding: 5rem 0; }
.section.alt { background: var(--bg-alt); }
.kicker {
  text-transform: uppercase; letter-spacing: .22em; font-size: .74rem;
  color: var(--brand-pink); font-weight: 700; margin-bottom: .8rem;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); line-height: 1.08; font-weight: 600; }
h1 em { font-style: italic; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 1rem; font-weight: 600; }
h3.sub-h { margin: 2.2rem 0 .9rem; font-size: 1.15rem; font-family: "Inter", sans-serif; font-weight: 700; }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 640px; margin-bottom: 2.2rem; }

/* ---------- Entrance overlay : mosaic tile reveal ---------- */
#entrance {
  position: fixed; inset: 0; z-index: 200;
  background: #0d0d12;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: 1.3rem;
  animation: entranceOut .9s ease 2.6s forwards;
}
.e-logo-wrap { position: relative; width: 148px; height: 148px; }
.e-logo { width: 148px; height: 148px; object-fit: contain; display: block; }
.e-tiles {
  position: absolute; inset: 0; border-radius: 30px; overflow: hidden;
  display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr);
}
.e-tiles span {
  background: #0d0d12;
  transform: scale(1); opacity: 1;
  animation: tileOut .45s cubic-bezier(.3,.7,.3,1) forwards;
}
@keyframes tileOut { to { transform: scale(0); opacity: 0; } }
#entrance .e-text {
  color: #fff; letter-spacing: .5em; font-size: .8rem; font-weight: 600;
  padding-left: .5em; opacity: 0; animation: fadeUp .8s ease 1.5s forwards;
}
#entrance .e-bar { width: 180px; height: 2px; background: rgba(255,255,255,.15);
  border-radius: 2px; overflow: hidden; }
#entrance .e-bar span { display: block; height: 100%; width: 0;
  background: var(--brand-gradient); animation: barFill 2.2s ease .3s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes barFill { to { width: 100%; } }
@keyframes entranceOut { to { opacity: 0; visibility: hidden; } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.nav.scrolled { box-shadow: 0 4px 18px rgba(15,23,42,.08); }
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: .85rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand-wordmark { height: 30px; width: auto; }
.brand-wordmark-full { height: 34px; width: auto; }
.brand-text { font-weight: 700; letter-spacing: .34em; font-size: .8rem; color: var(--ink); }
.links { display: flex; align-items: center; gap: 1.5rem; }
.links a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.links a:hover { color: var(--brand-pink); }
.lang-toggle { display: inline-flex; border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-toggle button {
  border: none; background: transparent; padding: .32rem .7rem; font-size: .78rem;
  font-weight: 700; cursor: pointer; color: var(--muted);
}
.lang-toggle button.active { background: #111827; color: #fff; }
.login-link { font-size: .88rem !important; color: var(--muted) !important; }
.login-link:hover { color: var(--brand-purple) !important; }
.btn-nav {
  background: var(--brand-gradient); color: #fff !important;
  padding: .5rem 1.2rem; border-radius: 999px; font-weight: 600;
}
.burger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background: var(--brand-gradient);
  color: #fff; padding: 6.5rem 0 5.5rem; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 85% 15%, rgba(255,255,255,.12), transparent),
    radial-gradient(ellipse 40% 35% at 10% 90%, rgba(0,0,0,.18), transparent);
}
.hero-particles { position: absolute; inset: 0; overflow: hidden; }
.hero-particles span {
  position: absolute; border-radius: 4px; opacity: .5;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  from { transform: translateY(20vh) rotate(0deg); opacity: 0; }
  15% { opacity: .55; }
  to { transform: translateY(-110vh) rotate(340deg); opacity: 0; }
}
.hero-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; position: relative; z-index: 1; }
.hero .kicker { color: #fecdd3; }
.hero-logo {
  width: 110px; height: 110px; object-fit: contain;
  margin-bottom: 1.4rem; filter: drop-shadow(0 12px 28px rgba(0,0,0,.35));
  animation: heroLogo 1s cubic-bezier(.2,.8,.2,1) 2.9s both;
}
@keyframes heroLogo { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.hero h1 { margin-bottom: 1.2rem; animation: fadeUp .9s ease 3.1s both; }
.hero .sub { color: #f3e8ff; font-size: 1.12rem; max-width: 620px; margin-bottom: 2rem;
  animation: fadeUp .9s ease 3.25s both; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; animation: fadeUp .9s ease 3.4s both; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: .85rem 1.8rem; border-radius: 999px; font-size: .98rem;
  transition: transform .15s, box-shadow .15s;
  border: none; cursor: pointer;
}
.btn.primary { background: #fff; color: #7c2d52; }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.btn.ghost { border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.btn.ghost:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.contact-form .btn.primary { background: var(--brand-gradient); color: #fff; }

/* ---------- Stats ---------- */
.stats { background: #111827; color: #fff; }
.stats-inner {
  max-width: 1100px; margin: 0 auto; padding: 1.7rem 1.25rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center;
}
.stat .num {
  display: block; font-size: 2.1rem; font-weight: 800; font-family: "Inter", sans-serif;
  background: linear-gradient(90deg, #fda4af, #f0abfc, #c4b5fd, #93c5fd);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .lbl { color: #9ca3af; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- About ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; margin-bottom: 2.8rem; }
.two-col p { color: #334155; font-size: 1.02rem; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; position: relative; }
.tl-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; position: relative; overflow: hidden;
}
.tl-item::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--brand-gradient);
}
.tl-year {
  display: inline-block; background: #fdf2f8; color: var(--brand-pink);
  font-weight: 700; font-size: .82rem; padding: .28rem .85rem; border-radius: 999px;
  margin-bottom: .8rem; letter-spacing: .05em;
}
.tl-item h3 { margin-bottom: .4rem; font-size: 1.05rem; font-family: "Inter", sans-serif; font-weight: 700; }
.tl-item p { color: var(--muted); font-size: .93rem; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2rem; }
.pillar {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; transition: transform .18s, box-shadow .18s;
}
.pillar:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(219,39,119,.10); }
.pillar-ico { font-size: 2.2rem; margin-bottom: .9rem; }
.pillar h3 { margin-bottom: .8rem; font-size: 1.08rem; font-family: "Inter", sans-serif; font-weight: 700; }
.pillar p { color: var(--muted); font-size: .94rem; }
.pillar ul { list-style: none; }
.pillar li {
  color: var(--muted); font-size: .93rem; padding: .3rem 0 .3rem 1.4rem; position: relative;
}
.pillar li::before {
  content: "✓"; position: absolute; left: 0;
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text;
  color: transparent; font-weight: 800;
}

/* ---------- Values ---------- */
.values-grid { grid-template-columns: repeat(5, 1fr); }
.values-grid .pillar { padding: 1.5rem 1.2rem; text-align: center; }
.values-grid .pillar-ico { font-size: 1.8rem; }
@media (max-width: 860px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem; transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(124,58,237,.12); }
.card-ico { font-size: 2rem; margin-bottom: .7rem; }
.card-logo {
  width: 100%; height: 92px; object-fit: contain; object-position: left center;
  background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 1rem; padding: 8px;
}
.card h3 { margin-bottom: .4rem; font-family: "Inter", sans-serif; font-weight: 700; }
.card-ent { color: var(--brand-purple); font-size: .8rem; font-weight: 600; margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .93rem; margin-bottom: .9rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  background: #faf5ff; color: #7c3aed; border: 1px solid #ede9fe;
  font-size: .76rem; font-weight: 600; padding: .22rem .7rem; border-radius: 999px;
}

.card-link { text-decoration: none; color: inherit; display: block; }
.card h3 .ext { white-space: nowrap; }
.card-link .ext { color: var(--brand-purple); font-size: .85em; }

/* ---------- Certs ---------- */
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.cert {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem 1.8rem; text-align: center; transition: transform .18s, box-shadow .18s;
}
.cert:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(37,99,235,.12); }
.cert-badge {
  display: inline-block; background: #111827; color: #fff;
  font-weight: 800; font-size: .88rem; letter-spacing: .05em;
  padding: .5rem 1.15rem; border-radius: 8px; margin-bottom: 1rem;
}
.cert h3 { font-size: 1.02rem; margin-bottom: .5rem; font-family: "Inter", sans-serif; font-weight: 700; }
.cert p { color: var(--muted); font-size: .9rem; margin-bottom: 1.1rem; }
.cert-link {
  color: var(--brand-purple); font-weight: 600; font-size: .9rem; text-decoration: none;
  border: 1.5px solid var(--brand-purple); padding: .5rem 1.2rem; border-radius: 999px;
  display: inline-block; transition: all .15s;
}
.cert-link:hover { background: var(--brand-gradient); border-color: transparent; color: #fff; }

/* ---------- Portfolio ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .5rem; }
.chip {
  background: #111827; color: #fff; font-weight: 600;
  padding: .6rem 1.35rem; border-radius: 999px; font-size: .95rem;
}
.events { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.event {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 1rem 1.2rem; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem;
}
.event strong { font-size: .98rem; font-family: "Inter", sans-serif; }
.event span { color: var(--muted); font-size: .85rem; text-align: right; }

/* ---------- Presence ---------- */
.countries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.country {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.9rem; transition: transform .18s, box-shadow .18s;
}
.country:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(219,39,119,.10); }
.country .flag { font-size: 2.4rem; margin-bottom: .7rem; }
.country h3 { margin-bottom: .5rem; font-family: "Inter", sans-serif; font-weight: 700; }
.country p { font-size: .93rem; color: #334155; }
.country .addr { color: var(--muted); font-size: .87rem; margin-top: .6rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.4rem; }
.contact-item {
  display: flex; gap: .8rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; font-size: .92rem;
}
.contact-item a { color: var(--brand-purple); font-weight: 600; }
.ci-ico { font-size: 1.4rem; }
.contact-form label { display: block; margin-bottom: 1rem; font-weight: 600; font-size: .92rem; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: .35rem;
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: .78rem .95rem; font-size: .95rem; font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--brand-purple); box-shadow: 0 0 0 3px #f3e8ff;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { color: var(--muted); font-size: .88rem; margin-top: .7rem; }

/* ---------- Footer ---------- */
footer { background: #111827; color: #cbd5e1; padding: 3rem 0 1.5rem; position: relative; }
footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--brand-gradient);
}
.foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; margin-bottom: 2rem; }
.foot-wordmark { height: 38px; width: auto; display: block; margin-bottom: .9rem; }
.foot-logo {
  width: 54px; height: 54px; object-fit: contain;
  display: block; margin-bottom: .9rem;
}
footer .brand-text { color: #fff; }
footer .muted { color: #94a3b8; font-size: .9rem; margin-top: .4rem; }
.foot-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot-links a { color: #cbd5e1; text-decoration: none; font-size: .92rem; }
.foot-links a:hover { color: #fff; }
.copy { text-align: center; color: #64748b; font-size: .82rem; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.4rem; }

.foot-social { text-align: right; }
.social-row { display: flex; gap: .6rem; justify-content: flex-end; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none; font-weight: 700; font-size: .8rem;
  transition: all .15s;
}
.social-row a:hover { background: var(--brand-gradient); border-color: transparent; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); gap: 0;
  }
  .links.open { display: flex; }
  .links a { padding: .7rem 0; border-top: 1px solid var(--bg-alt); }
  .burger { display: block; }
  .two-col, .timeline, .pillars, .cards, .certs, .countries { grid-template-columns: 1fr; }
  .events { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .grid2 { grid-template-columns: 1fr; }
  .hero { padding: 4.5rem 0 4rem; }
  .foot { flex-direction: column; }
}
