:root {
  --brand: #2b3990;
  --brand-dark: #1a2566;
  --navy: #0f1a45;
  --ink: #161a2b;
  --muted: #5a6075;
  --line: #e2e1dc;
  --paper: #f7f6f2;
  --white: #ffffff;
  --accent: #d99a1e;
  --wa: #1f9d55;
  --wa-dark: #178045;
  --radius: 10px;
  --wrap: 1140px;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .9em;
  display: flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.35em;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  text-decoration: none;
  transition: background .15s, transform .15s, border-color .15s;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-dark); }
.btn--ghost { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--sm { padding: .55em 1em; font-size: .92rem; }
.btn--lg { padding: 1em 1.6em; font-size: 1.15rem; }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 246, 242, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 4px; }
.brand__text { font-size: 1.05rem; }
.brand__text strong { color: var(--brand); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; }
.nav a:hover { color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 40px;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(43, 57, 144, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 57, 144, .06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__photo { margin: 0; position: relative; justify-self: end; max-width: 420px; width: 100%; }
.hero__photo picture img {
  width: 100%; height: auto; aspect-ratio: 540 / 660; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 18px 18px 0 var(--brand);
}
.hero__photo figcaption {
  position: absolute; left: -24px; bottom: 28px;
  background: var(--white);
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(15, 26, 69, .15);
  display: flex; flex-direction: column; line-height: 1.3;
}
.hero__photo figcaption strong { font-size: .98rem; }
.hero__photo figcaption span { font-size: .85rem; color: var(--muted); }

.facts {
  position: relative;
  list-style: none; padding: 0; margin: 64px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.facts li { padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.facts li + li { border-left: 1px solid var(--line); }
.facts__num { font-family: var(--mono); font-size: 1.6rem; font-weight: 500; color: var(--brand); line-height: 1.1; }
.facts li span:last-child { color: var(--muted); font-size: .93rem; line-height: 1.4; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section__head { max-width: 680px; margin-bottom: 48px; }
.section__head p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  position: relative;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 26, 69, .08); }
.card__tag {
  font-family: var(--mono); font-size: .8rem; color: var(--accent); font-weight: 500;
  display: inline-block; margin-bottom: 14px;
}
.card p { color: var(--muted); font-size: .97rem; margin: 0; }

/* Blueprint section */
.section--blueprint {
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  color: #fff;
}
.section__head--light .eyebrow { color: #c9cff5; }
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  counter-reset: s;
}
.steps li {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  padding: 26px 22px;
  background: rgba(15, 26, 69, .55);
}
.steps__n {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--accent); color: var(--accent);
  font-family: var(--mono); font-weight: 500;
  margin-bottom: 16px;
}
.steps p { color: #c4c9de; font-size: .96rem; margin: 0; }

/* About */
.about { display: grid; grid-template-columns: 1.3fr .9fr; gap: 64px; align-items: start; }
.about__text > p { color: #2f3447; }
.about__sub { margin-top: 2em; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: var(--mono); font-weight: 500; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 12px 0 12px 20px; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 19px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 2px solid var(--paper);
}
.timeline__when { font-family: var(--mono); font-size: .85rem; color: var(--brand); padding-top: 2px; }
.timeline strong { display: block; }
.timeline span { color: var(--muted); font-size: .95rem; }

.edu {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; position: sticky; top: 96px;
}
.edu h3 { font-size: 1.25rem; margin-bottom: 1em; }
.edu ul { list-style: none; padding: 0; margin: 0; }
.edu li { padding: 14px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; line-height: 1.35; }
.edu li:first-child { border-top: 0; padding-top: 0; }
.edu__year { font-family: var(--mono); font-size: .8rem; color: var(--accent); margin-bottom: 4px; }
.edu li span:last-child { color: var(--muted); font-size: .93rem; }

/* Contact */
.contact { background: var(--brand); color: #fff; padding: 88px 0; }
.contact .eyebrow { color: #d6dbff; }
.contact p:not(.eyebrow) { color: #dfe3ff; font-size: 1.08rem; max-width: 34em; }
.contact__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.contact__actions { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.contact__list a, .contact__list span { color: #fff; text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }

.footer { background: var(--navy); color: #aab0cc; font-size: .88rem; padding: 26px 0; }
.footer__inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: none; place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .topbar__inner { justify-content: space-between; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__photo { justify-self: start; max-width: 360px; margin-left: 24px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .edu { position: static; }
  .contact__inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .topbar__inner { height: 60px; }
  .brand__text { font-size: .98rem; }
  .topbar .btn--sm span { display: none; }
  .topbar .btn--sm { padding: .6em; }
  .hero { padding-top: 36px; }
  .hero__cta .btn { width: 100%; }
  .hero__photo { margin-left: 0; max-width: none; padding-right: 14px; }
  .hero__photo picture img { box-shadow: 12px 12px 0 var(--brand); }
  .hero__photo figcaption { left: 12px; bottom: 20px; }
  .facts { margin-top: 48px; }
  .facts li { padding: 16px; }
  .facts__num { font-size: 1.3rem; }
  .section { padding: 64px 0; }
  .cards, .steps { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .contact { padding: 64px 0 96px; }
  .contact .btn--lg { width: 100%; }
  .wa-float { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}
