﻿:root {
  --navy: #071426;
  --navy-2: #0d2438;
  --ink: #102033;
  --muted: #5f6f7f;
  --line: #dce5ec;
  --soft: #f4f8fb;
  --white: #ffffff;
  --emerald: #0d9f7a;
  --emerald-dark: #06745b;
  --gold: #c99a38;
  --sky: #5eb8e8;
  --coral: #d86b5f;
  --shadow: 0 24px 70px rgba(7, 20, 38, 0.14);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--white);
  color: var(--navy);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

.section-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px min(34px, 5vw);
  color: var(--white);
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  box-shadow: 0 12px 40px rgba(7, 20, 38, 0.08);
  backdrop-filter: blur(16px);
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--gold));
  color: var(--white);
  box-shadow: 0 14px 30px rgba(13, 159, 122, 0.26);
}
.nav { display: flex; align-items: center; gap: 1.35rem; font-size: 0.94rem; font-weight: 650; }
.nav a { opacity: 0.9; }
.nav a:hover { color: var(--emerald); opacity: 1; }
.menu-button { display: none; }

.hero {
  position: relative;
  min-height: 96vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-media {
  background-image: url("assets/rfala-hero.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 20, 38, 0.94) 0%, rgba(7, 20, 38, 0.78) 36%, rgba(7, 20, 38, 0.33) 72%, rgba(7, 20, 38, 0.12) 100%),
    linear-gradient(180deg, rgba(7, 20, 38, 0.22), rgba(7, 20, 38, 0.7));
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 128px 0 94px;
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--emerald);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}
.hero-lede {
  max-width: 680px;
  margin: 1.4rem 0 0;
  font-size: clamp(1.22rem, 2.4vw, 1.8rem);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 650;
}
.hero-copy {
  max-width: 640px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.03rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--emerald); color: var(--white); box-shadow: 0 18px 34px rgba(13, 159, 122, 0.28); }
.button-primary:hover { background: var(--emerald-dark); }
.button-secondary { background: var(--white); color: var(--navy); }
.button-ghost { border-color: rgba(255, 255, 255, 0.36); color: var(--white); }
.button-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.intro-band, .projects-band { background: var(--white); }
.intro-band, .focus-band, .contact-band { padding: 96px 0; }
.intro-grid, .contact-grid, .future, .mission { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: min(7vw, 78px); align-items: start; }
h2 { margin: 0; font-size: clamp(2rem, 4.2vw, 4rem); line-height: 1.04; letter-spacing: 0; color: var(--navy); }
h3 { margin: 0; font-size: 1.18rem; line-height: 1.2; color: var(--navy); }
p { margin-top: 0; }
.intro-copy p { font-size: 1.05rem; color: var(--muted); }
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}
.related-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.62rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--white);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(7, 20, 38, 0.05);
}
.related-links a:hover {
  color: var(--emerald-dark);
  border-color: rgba(13, 159, 122, 0.34);
}

.mission { padding: 88px 0; }
.statement {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  color: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.statement::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.9;
}
.statement > * { position: relative; z-index: 1; }
.statement-mission::before { background: linear-gradient(135deg, var(--navy), #0c675c 60%, #214453); }
.statement-vision::before { background: linear-gradient(135deg, #142b44, #8e6c1d 62%, #c96f56); }
.statement h2 { color: var(--white); font-size: clamp(1.8rem, 3vw, 3.1rem); }
.statement p { color: rgba(255, 255, 255, 0.82); margin: 1rem 0 0; }
.statement-label { color: rgba(255, 255, 255, 0.74); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.12em; font-weight: 800; margin-bottom: 1rem; }

.focus-band { background: var(--soft); }
.section-heading { max-width: 760px; margin-bottom: 2.3rem; }
.split-heading { max-width: none; display: grid; grid-template-columns: 1fr 0.75fr; gap: 3rem; align-items: end; }
.split-heading p:last-child { margin: 0; color: var(--muted); }
.focus-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.focus-card, .project-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 14px 40px rgba(7, 20, 38, 0.05);
}
.focus-card span { display: inline-block; color: var(--gold); font-weight: 850; margin-bottom: 1.2rem; }
.focus-card p, .project-card p { color: var(--muted); margin: 0.75rem 0 0; font-size: 0.95rem; }

.institute { padding: 96px 0; }
.institute-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: min(7vw, 80px);
  align-items: center;
  padding: clamp(1.4rem, 5vw, 4rem);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 15%, rgba(94, 184, 232, 0.18), transparent 28%),
    linear-gradient(135deg, var(--navy), #0b2d36 62%, #123528);
  color: var(--white);
}
.institute-panel h2 { color: var(--white); font-size: clamp(2rem, 4vw, 3.8rem); }
.institute-panel p { color: rgba(255, 255, 255, 0.78); font-size: 1.04rem; }
.institute-copy p { max-width: 650px; }
.institute-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.programs-wrap {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.programs-label {
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pathway-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}
.pathway-list li {
  position: relative;
  padding: 0.86rem 1rem 0.86rem 2.55rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 750;
}
.pathway-list li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
  box-shadow: 0 0 0 6px rgba(201, 154, 56, 0.14);
}
.institute-note {
  margin: 1rem 0 0;
  padding: 1rem;
  border-left: 3px solid var(--emerald);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.84) !important;
  font-weight: 800;
}

.projects-band { padding: 96px 0; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.project-card { min-height: 270px; display: flex; flex-direction: column; }
.project-accent { width: 56px; height: 8px; border-radius: 999px; margin-bottom: 1.3rem; }
.xenova { background: var(--sky); }
.maroclist { background: var(--coral); }
.school { background: var(--emerald); }
.project-card a { margin-top: auto; color: var(--emerald-dark); font-weight: 800; padding-top: 1.5rem; }
.project-card a:hover { color: var(--gold); }

.future { padding: 96px 0; align-items: center; }
.future-copy p { color: var(--muted); font-size: 1.05rem; margin-top: 1rem; }
.timeline { border-left: 1px solid var(--line); padding-left: 1.4rem; }
.timeline div { position: relative; padding: 1rem 0 1rem 1.2rem; }
.timeline span { position: absolute; left: -1.66rem; top: 1.45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 7px rgba(13, 159, 122, 0.12); }
.timeline p { margin: 0; font-weight: 800; color: var(--navy); }

.contact-band { background: var(--navy); color: var(--white); }
.contact-band h2 { color: var(--white); }
.contact-band p { color: rgba(255, 255, 255, 0.76); font-size: 1.05rem; }
.email-link { display: inline-block; margin-top: 1rem; color: var(--gold); font-weight: 850; }
.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
label { display: grid; gap: 0.4rem; color: rgba(255, 255, 255, 0.84); font-size: 0.9rem; font-weight: 700; }
input, textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  padding: 0.85rem 0.95rem;
  font: inherit;
}
textarea { resize: vertical; }

.site-footer { padding: 42px 0; background: #04101e; color: rgba(255, 255, 255, 0.76); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr auto; gap: 2rem; align-items: start; }
.footer-brand { color: var(--white); margin-bottom: 1rem; }
.site-footer p { max-width: 470px; margin: 0.6rem 0 0; }
.site-footer nav { display: grid; gap: 0.45rem; }
.site-footer a:hover { color: var(--emerald); }
.socials { display: flex; gap: 0.55rem; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 50%; font-size: 0.78rem; font-weight: 850; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid, .mission, .intro-grid, .contact-grid, .future, .institute-panel, .split-heading { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-overlay { background: linear-gradient(90deg, rgba(7, 20, 38, 0.92), rgba(7, 20, 38, 0.55)), linear-gradient(180deg, rgba(7, 20, 38, 0.2), rgba(7, 20, 38, 0.76)); }
}

@media (max-width: 740px) {
  .section-shell { width: min(100% - 28px, 1160px); }
  .site-header { padding: 14px; }
  .menu-button {
    display: inline-grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 1px solid currentColor;
    border-radius: var(--radius);
    background: transparent;
    color: inherit;
  }
  .menu-button span { width: 20px; height: 2px; background: currentColor; }
  .nav {
    position: fixed;
    inset: 72px 14px auto 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
    background: var(--white);
    color: var(--navy);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.95rem; border-radius: var(--radius); }
  .nav a:hover { background: var(--soft); }
  .hero { min-height: 94vh; }
  .hero-content { padding-top: 104px; padding-bottom: 76px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .intro-band, .focus-band, .projects-band, .institute, .future, .contact-band, .mission { padding: 68px 0; }
  .focus-grid, .feature-list { grid-template-columns: 1fr; }
  .statement { min-height: 300px; }
}


.privacy-page .site-header {
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy);
}

@media (max-width: 740px) {
  .privacy-page .nav {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 0.4rem;
    inset: auto;
    padding: 0;
    box-shadow: none;
    background: transparent;
    font-size: 0.82rem;
  }
  .privacy-page .nav a {
    padding: 0.35rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}




