:root {
  --navy-950: #061326;
  --navy-900: #0b1f3a;
  --navy-800: #14355c;
  --teal-600: #0f8b8d;
  --teal-500: #19a5a7;
  --gold-500: #c69c3c;
  --ink: #172033;
  --muted: #667085;
  --line: #dfe5ec;
  --surface: #ffffff;
  --surface-soft: #f4f7fa;
  --shadow: 0 20px 55px rgba(9, 30, 55, .12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--navy-900);
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 16px; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { position: relative; padding: 104px 0; }
.section-heading { max-width: 780px; margin-bottom: 44px; }
.section-heading h2, .contact-panel h2, .spotlight-copy h2 {
  margin: 0 0 16px;
  color: var(--navy-900);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.section-heading p, .spotlight-copy p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-600) !important;
  font-size: .78rem !important;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(6,19,38,.88);
  backdrop-filter: blur(16px);
}
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
}
.brand-lockup { display: grid; gap: 1px; }
.brand-lockup strong { font-size: 1rem; letter-spacing: -.02em; }
.brand-lockup small { color: rgba(255,255,255,.65); font-size: .71rem; letter-spacing: .08em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 10px 13px;
  border-radius: 10px;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 700;
  transition: .2s ease;
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.09); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 12px; background: rgba(255,255,255,.09); }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: #fff; border-radius: 2px; }

.hero {
  overflow: hidden;
  padding-top: 146px;
  padding-bottom: 60px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 15%, rgba(25,165,167,.22), transparent 28%),
    radial-gradient(circle at 10% 90%, rgba(198,156,60,.14), transparent 24%),
    linear-gradient(145deg, var(--navy-950), var(--navy-900) 55%, #0b2e49);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  background: linear-gradient(to top, rgba(255,255,255,.03), transparent);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero-copy h1 {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(3rem, 7vw, 5.9rem);
  line-height: .95;
  letter-spacing: -.065em;
}
.hero-text { max-width: 720px; margin: 0; color: rgba(255,255,255,.78); font-size: 1.1rem; }
.hero-badge {
  display: inline-block;
  margin: 0 0 18px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.08);
  font-size: .84rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 42px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 20px; border-radius: 14px; text-decoration: none; font-weight: 800; transition: .2s ease; }
.button-primary { color: var(--navy-950); background: #fff; }
.button-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(0,0,0,.2); }
.button-secondary { border: 1px solid rgba(255,255,255,.22); color: #fff; background: rgba(255,255,255,.06); }
.button-secondary:hover { background: rgba(255,255,255,.12); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 34px; }
.hero-stats div { min-width: 128px; }
.hero-stats strong { display: block; color: #fff; font-size: 1.55rem; }
.hero-stats span { display: block; color: rgba(255,255,255,.55); font-size: .78rem; }

.hero-side-stack { display: grid; gap: 20px; }
.hero-logo-card, .hero-image-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  background: rgba(255,255,255,.06);
  box-shadow: 0 26px 64px rgba(0,0,0,.24);
}
.hero-logo-card { min-height: 220px; padding: 30px; display: grid; place-items: center; }
.hero-full-logo { width: min(100%, 360px); object-fit: contain; filter: drop-shadow(0 16px 36px rgba(0,0,0,.18)); }
.hero-logo-copy {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  color: var(--navy-900);
}
.hero-logo-copy span { color: var(--teal-600); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.hero-logo-copy strong { font-size: .95rem; }
.hero-image-card img { aspect-ratio: 1.2 / 1; object-fit: cover; object-position: center 18%; }
.image-card-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  color: var(--navy-900);
  box-shadow: var(--shadow);
}
.image-card-caption span { display: block; color: var(--teal-600); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.image-card-caption strong { display: block; margin-top: 3px; font-size: .92rem; }
.glow-one, .glow-two { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.glow-one { width: 260px; height: 260px; top: 13%; left: -120px; background: rgba(15,139,141,.22); }
.glow-two { width: 250px; height: 250px; right: -100px; bottom: 8%; background: rgba(198,156,60,.12); }

.quick-links {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 38px;
}
.quick-card {
  display: block;
  padding: 22px 20px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  background: rgba(255,255,255,.06);
  color: #fff;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease;
}
.quick-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.11); }
.quick-card span { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 50%; color: var(--navy-950); background: #fff; font-size: .8rem; font-weight: 900; }
.quick-card strong { display: block; margin-bottom: 8px; font-size: 1.08rem; }
.quick-card p { margin: 0; color: rgba(255,255,255,.72); font-size: .9rem; }

.about { background: var(--surface-soft); }
.about-showcase {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 26px;
  margin-bottom: 28px;
  align-items: stretch;
}
.about-media, .about-story {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 14px 35px rgba(17,42,75,.06);
}
.about-media img { height: 100%; min-height: 420px; object-fit: cover; }
.about-story { padding: 34px; border: 1px solid var(--line); }
.about-story h3 { margin: 0 0 14px; color: var(--navy-900); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; }
.about-story p { margin: 0 0 16px; color: var(--muted); }
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.mini-stats div { padding: 16px; border-radius: 16px; background: var(--surface-soft); }
.mini-stats strong { display: block; color: var(--navy-900); font-size: .92rem; }
.mini-stats span { display: block; margin-top: 3px; color: var(--muted); font-size: .82rem; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { min-height: 265px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 14px 35px rgba(17,42,75,.06); }
.feature-number { color: var(--gold-500); font-size: .82rem; font-weight: 900; letter-spacing: .1em; }
.feature-card h3 { margin: 52px 0 10px; color: var(--navy-900); font-size: 1.3rem; }
.feature-card p { margin: 0; color: var(--muted); }
.quote-panel { margin-top: 28px; padding: 34px 38px; border-radius: var(--radius-lg); color: #fff; background: linear-gradient(135deg, var(--navy-900), var(--navy-800)); }
.quote-panel p { max-width: 880px; margin: 0 0 12px; font-family: Georgia, serif; font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.4; }
.quote-panel span { color: rgba(255,255,255,.6); font-size: .9rem; }

.spotlight-section { background: #fff; padding-top: 92px; padding-bottom: 40px; }
.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, #ffffff, #f7fafc);
  box-shadow: 0 14px 35px rgba(17,42,75,.06);
}
.spotlight-media { overflow: hidden; border-radius: 24px; }
.spotlight-media img { aspect-ratio: 1.15 / 1; object-fit: cover; }
.spotlight-list { padding-left: 18px; margin: 20px 0 0; color: var(--navy-800); font-weight: 700; }
.spotlight-list li + li { margin-top: 10px; }

.projects-section { background: #fff; }
.project-controls { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.filter-button { padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy-800); background: #fff; cursor: pointer; font-size: .87rem; font-weight: 800; transition: .2s ease; }
.filter-button:hover, .filter-button.active { border-color: var(--navy-900); color: #fff; background: var(--navy-900); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 12px 36px rgba(11,31,58,.07); transition: transform .25s ease, box-shadow .25s ease; }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(11,31,58,.13); }
.project-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-soft); }
.project-thumb img { height: 100%; object-fit: cover; transition: transform .35s ease; }
.project-card:hover .project-thumb img { transform: scale(1.025); }
.project-card-body { padding: 23px; }
.project-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; color: var(--teal-600); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.status-badge { max-width: 145px; padding: 6px 9px; border-radius: 999px; text-align: center; font-size: .65rem; line-height: 1.2; letter-spacing: .04em; }
.status-stable { color: #166534; background: #dcfce7; }
.status-development { color: #92400e; background: #ffedd5; }
.status-transition { color: #075985; background: #e0f2fe; }
.status-rc { color: #6b21a8; background: #f3e8ff; }
.status-planning { color: #854d0e; background: #fef9c3; }
.status-learning { color: #1e40af; background: #dbeafe; }
.project-card h3 { margin: 18px 0 10px; color: var(--navy-900); font-size: 1.22rem; line-height: 1.25; }
.project-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.tech-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tech-list span { padding: 6px 9px; border-radius: 8px; color: #475467; background: var(--surface-soft); font-size: .72rem; font-weight: 700; }

.journey { background: var(--surface-soft); }
.gallery-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; grid-auto-rows: 270px; gap: 18px; }
.gallery-card { position: relative; overflow: hidden; margin: 0; border-radius: var(--radius-md); background: var(--navy-900); box-shadow: 0 14px 36px rgba(11,31,58,.12); }
.gallery-wide { grid-column: span 2; }
.gallery-tall { grid-row: span 2; }
.gallery-card img { height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-card:hover img { transform: scale(1.035); }
.gallery-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(to top, rgba(4,13,27,.92), transparent); }
.gallery-card figcaption { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; color: #fff; }
.gallery-card strong { display: block; font-size: 1.05rem; }
.gallery-card span { display: block; color: rgba(255,255,255,.68); font-size: .82rem; }

.contact { padding-top: 88px; background: #fff; }
.contact-panel { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center; padding: 56px; border-radius: 32px; color: #fff; background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); box-shadow: var(--shadow); }
.contact-panel h2 { color: #fff; }
.contact-panel > div > p:last-child { max-width: 650px; margin: 0; color: rgba(255,255,255,.65); }
.contact-details { display: grid; gap: 14px; }
.contact-details div { padding: 16px 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: rgba(255,255,255,.06); }
.contact-details span { display: block; color: rgba(255,255,255,.52); font-size: .73rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-details strong { display: block; margin-top: 3px; font-size: 1rem; overflow-wrap: anywhere; }

.site-footer { padding: 30px 0; color: #8c98aa; background: var(--navy-950); font-size: .85rem; }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand img { width: 148px; object-fit: contain; }
.footer-wrap p { margin: 0; }
.footer-wrap a { color: #fff; text-decoration: none; font-weight: 800; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .hero-grid, .about-showcase, .spotlight-grid { grid-template-columns: 1fr; }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .mini-stats { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .feature-card h3 { margin-top: 28px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-wide { grid-column: span 2; }
  .gallery-tall { grid-row: span 1; }
  .contact-panel { gap: 36px; padding: 42px; }
}

@media (max-width: 760px) {
  .section { padding: 82px 0; }
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 68px;
    left: 20px;
    right: 20px;
    display: none;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    background: rgba(6,19,38,.98);
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
  }
  .site-nav.open { display: grid; }
  .nav-link { padding: 12px 14px; }
  .hero { padding-top: 128px; }
  .hero-copy h1 { font-size: clamp(3.2rem, 15vw, 5.1rem); }
  .quick-links { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .gallery-wide { grid-column: span 1; }
  .contact-panel { grid-template-columns: 1fr; padding: 34px 26px; }
  .footer-wrap, .footer-brand { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .brand-lockup { display: none; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .project-meta { align-items: flex-start; flex-direction: column; }
  .quote-panel { padding: 28px 24px; }
  .gallery-grid { grid-auto-rows: 250px; }
  .hero-logo-copy, .image-card-caption { position: static; margin: 12px; }
}

/* V1.1 Affiliations */
.quick-links-five { grid-template-columns: repeat(5, 1fr); }
.affiliations-section {
  background:
    radial-gradient(circle at 85% 10%, rgba(25,165,167,.09), transparent 28%),
    linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}
.affiliations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.affiliation-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 270px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(11,31,58,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.affiliation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px rgba(11,31,58,.13);
}
.affiliation-logo-wrap {
  display: grid;
  place-items: center;
  min-height: 270px;
  padding: 22px;
  background: linear-gradient(145deg, #edf6f7, #f8fbfc);
}
.affiliation-logo-wrap img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(7,30,52,.12));
}
.dark-logo-card { background: linear-gradient(145deg, #08172a, #14355c); }
.jefarca-logo-card { background: linear-gradient(145deg, #edf7d0, #f8fce9); }
.affiliation-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}
.affiliation-copy > span {
  color: var(--teal-600);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.affiliation-copy h3 {
  margin: 9px 0 12px;
  color: var(--navy-900);
  font-size: 1.35rem;
  line-height: 1.2;
}
.affiliation-copy p { margin: 0; color: var(--muted); font-size: .94rem; }

@media (max-width: 1100px) {
  .quick-links-five { grid-template-columns: repeat(3, 1fr); }
  .affiliations-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .quick-links-five { grid-template-columns: 1fr; }
  .affiliation-card { grid-template-columns: 1fr; }
  .affiliation-logo-wrap { min-height: 225px; }
  .affiliation-logo-wrap img { height: 185px; }
}
