/* work-remote.ai — stylesheet
   Desktop layout is authored on a 80rem design grid; 1rem = 16 design px.
   Above 56.25rem the root font-size is 1.25vw, so the whole page scales 1:1 with
   the viewport width (1280x720, 1440x810, ... all look identical). */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #08090a;
  --text: #f5f5f4;
  --muted: #c9c6c3;
  --orange: #ff6a00;
  --orange-2: #ff8a1f;
  --card-bg: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035)), rgba(16, 17, 19, 0.62);
  --card-border: rgba(255, 255, 255, 0.24);
  --radius: 0.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
@media (min-width: 901px) {
  html { font-size: clamp(11.5px, 1.25vw, 22px); }
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: url("../img/bg-hero.jpg");
  background-image: image-set(url("../img/bg-hero.webp") type("image/webp"), url("../img/bg-hero.jpg") type("image/jpeg"));
  background-repeat: no-repeat;
  background-position: center top;
  background-size: max(100%, 80rem) auto;
  color: var(--text);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.125rem; }
a:focus-visible, button:focus-visible { outline: 0.125rem solid var(--orange-2); outline-offset: 0.125rem; border-radius: 0.25rem; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }

.page {
  position: relative;
  width: 80rem;
  max-width: 100%;
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 3rem;
  padding: 1.0625rem 1.9375rem 0 1.8125rem;
}
.brand { display: flex; align-items: center; gap: 1.0625rem; margin-top: 1px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 2.3125rem; height: auto; }
.brand-name { font-size: 0.75rem; font-weight: 600; letter-spacing: 0; position: relative; top: -0.125rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.9375rem;
  padding: 0 1.375rem;
  border-radius: 62.4375rem;
  font-family: inherit;
  font-size: 0.6625rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #ff8414, #ff6a00);
  box-shadow: 0 0.375rem 1.375rem rgba(255, 106, 0, 0.35);
  padding: 0 1.5rem;
}
.btn-primary:hover { box-shadow: 0 0.5rem 1.875rem rgba(255, 106, 0, 0.55); }
.btn-outline {
  color: #fff;
  background: rgba(10, 10, 12, 0.35);
  border-color: rgba(255, 255, 255, 0.42);
}
.btn-outline:hover { border-color: rgba(255, 255, 255, 0.75); background: rgba(255, 255, 255, 0.06); }
.btn-touch {
  width: 6.25rem;
  padding: 0;
  font-size: 0.675rem;
  background: rgba(255, 140, 50, 0.08);
  border-color: rgba(255, 225, 195, 0.55);
}
.btn-sm { height: 1.875rem; padding: 0 1rem; font-size: 0.75rem; }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 2; padding-left: 5.1875rem; }
.hero h1 {
  margin-top: 1.3125rem;
  font-size: 3.45rem;
  line-height: 3.4375rem;
  font-weight: 720;
  letter-spacing: -0.9px;
}
.hero .accent { color: var(--orange); }
.hero-sub {
  margin-top: 0.5rem;
  font-size: 0.8313rem;
  line-height: 1.125rem;
  font-weight: 560;
  color: #f4f2f0;
  word-spacing: 0.4px;
}
.hero-actions { display: flex; gap: 0.875rem; margin-top: 0.8125rem; }
.hero-actions .btn-outline { width: 9.375rem; padding: 0; }
.hero-actions .btn-primary { width: 7.125rem; padding: 0; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(0.875rem) saturate(1.2);
  backdrop-filter: blur(0.875rem) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0.625rem 1.875rem rgba(0,0,0,0.35);
}
.card h2 { font-weight: 500; }

/* ---------- Bento grid (desktop) ---------- */
.bento {
  position: relative;
  z-index: 1;
  display: grid;
  width: 70.625rem;
  margin: -0.5625rem 0 0 5.125rem;
  grid-template-columns: 34.4375rem 0.75rem 17.4375rem 0.875rem 17.125rem;
  grid-template-rows: 1.375rem 4.25rem 0.6875rem 5.375rem 0.6875rem 6.6875rem;
}
.card-data      { grid-column: 1; grid-row: 2 / 5; }
.card-rwanda    { grid-column: 1; grid-row: 6; margin-top: 0.3125rem; }
.card-edu       { grid-column: 3; grid-row: 1 / 3; }
.card-discord   { grid-column: 5; grid-row: 1 / 3; }
.card-inst      { grid-column: 3; grid-row: 4; }
.card-community { grid-column: 5; grid-row: 4; }
.card-felix     { grid-column: 3; grid-row: 6; }
.card-dario     { grid-column: 5; grid-row: 6; }

/* Data card */
.card-data { padding: 1.1875rem 0 0 1.375rem; }
.card-visual { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; pointer-events: none; }
.card-visual img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.card-visual-data {
  width: 19.3125rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2.875rem);
  mask-image: linear-gradient(90deg, transparent 0, #000 2.875rem);
}
.card-data-body { position: relative; z-index: 1; }
.card-data { box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0.625rem 1.875rem rgba(0,0,0,0.35), 1.125rem -0.375rem 2.5rem -1.125rem rgba(255, 106, 0, 0.45); }
.card-data::after {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(100deg, transparent 48%, rgba(255, 140, 40, 0.85) 78%, rgba(255, 175, 100, 0.9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.card-data h2 { font-size: 1.6062rem; line-height: 1.875rem; font-weight: 680; letter-spacing: -0.5px; }
.data-sub { margin-top: 0.375rem; font-size: 0.7375rem; line-height: 1rem; font-weight: 560; color: #f2f0ee; word-spacing: 0.5px; }
.chips { display: flex; gap: 0.5625rem; margin-top: 0.875rem; }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  height: 1.25rem;
  padding: 0 0.6875rem;
  border-radius: 62.4375rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(10, 10, 12, 0.5);
  font-size: 0.6375rem;
  font-weight: 600;
  color: #fff;
}
.chips svg { width: 0.75rem; height: 0.75rem; fill: none; stroke: #fff; stroke-width: 1.3; stroke-linejoin: round; }

/* Rwanda card */
.card-rwanda { display: flex; align-items: center; }
.card-visual-rwanda {
  width: 19.5625rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.75) 2.25rem, #000 4.375rem);
  mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.75) 2.25rem, #000 4.375rem);
}
.rwanda-body { position: relative; z-index: 1; padding-left: 1.5625rem; padding-top: 0.1875rem; }
.rw-eyebrow { font-size: 0.85rem; line-height: 1.0625rem; font-weight: 600; }
.rw-link { margin-top: 0.1875rem; font-size: 1.075rem; line-height: 1.3125rem; font-weight: 700; letter-spacing: -0.3px; }
.rw-link a:hover { color: var(--orange-2); }
.rw-tag { margin-top: 0.4375rem; font-size: 0.7rem; line-height: 0.875rem; font-weight: 560; color: #f2f0ee; word-spacing: 0.5px; }

/* Icon cards */
.card-icon-card { padding: 1.0625rem 0 0 1.375rem; }
.card-icon-card .t-line { font-size: 0.7688rem; line-height: 1.1562rem; font-weight: 600; color: #fff; word-spacing: 0.4px; }
.card-icon-card .t-lg { font-size: 0.8313rem; line-height: 1.0625rem; padding-top: 1px; }
.card-icon-card .t-small { margin-top: 0.25rem; font-size: 0.6062rem; line-height: 0.8125rem; font-weight: 560; color: #efedeb; }
.card-inst .t-small { margin-top: 0.1875rem; font-size: 0.6375rem; line-height: 0.875rem; }
.card-community .t-line + .t-line { font-size: 0.825rem; line-height: 1.125rem; }
.card-icon {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 0 0.25rem rgba(255, 130, 20, 0.75)) drop-shadow(0 0 0.875rem rgba(255, 106, 0, 0.45));
}
.card-icon svg { width: 100%; height: 100%; overflow: visible; display: block; }
.icon-book    { right: 1.25rem; top: 1.1875rem; width: 3.375rem; height: 3.125rem; }
.icon-chat    { right: 1.875rem; top: 0.8125rem; width: 3.1875rem; height: 3.625rem; }
.icon-globe   { right: 1.625rem; top: 1rem; width: 2.875rem; height: 3.125rem; }
.icon-network { right: 1.875rem; top: 0.8125rem; width: 3.125rem; height: 3.875rem; }

/* Person cards */
.card-person { padding: 1.4375rem 0 0 3.5625rem; }
.card-dario { padding-left: 3.0625rem; }
.person-icon {
  position: absolute; left: 1.25rem; top: 1.4375rem; width: 1.25rem; height: 1.25rem;
  filter: drop-shadow(0 0 0.25rem rgba(255, 120, 10, 0.6));
}
.card-dario .person-icon { left: 0.9375rem; width: 1.4375rem; height: 1.4375rem; top: 1.375rem; }
.card-person h2 { font-size: 0.9125rem; line-height: 1.125rem; font-weight: 700; letter-spacing: -0.3px; }
.person-role { margin-top: 0.3125rem; font-size: 0.6062rem; line-height: 0.875rem; font-weight: 560; color: #f0eeec; }
.person-mail { margin-top: 0.4375rem; font-size: 0.6rem; line-height: 0.875rem; font-weight: 560; color: #f4f2f0; }
.card-dario .person-mail { margin-top: 0.375rem; }
.person-mail a:hover { color: var(--orange-2); }

/* Legal card */
.card-legal {
  width: 70.625rem;
  height: 6.5rem;
  margin: 0.6875rem 0 0 5.125rem;
  padding: 1.1875rem 0 0 1.4375rem;
}
.legal-wave { position: absolute; right: 0; bottom: 0; width: 20.625rem; height: 100%; z-index: 0; pointer-events: none; }
.card-legal h2 { position: relative; z-index: 1; font-size: 0.8938rem; line-height: 1.125rem; font-weight: 700; letter-spacing: -0.2px; }
.legal-cols {
  position: absolute; z-index: 1; inset: 0;
  font-size: 0.6188rem; line-height: 1.025rem; font-weight: 560; color: #efedeb;
}
.legal-cols ul { position: absolute; }
.legal-c1 { left: 1.4375rem; top: 2.6875rem; }
.legal-c2 { left: 18.0625rem; top: 1.25rem; padding-left: 0.625rem; border-left: 1px solid rgba(255,255,255,0.22); }
.legal-c3 { left: 35.1875rem; top: 1.25rem; }
.bullets li { position: relative; padding-left: 0.625rem; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 0.4375rem; width: 0.1875rem; height: 0.1875rem; border-radius: 50%; background: #e6e3e0; }
.legal-cols a:hover { color: var(--orange-2); }

/* ---------- Footer ---------- */
.site-footer { padding: 0.875rem 0 0.875rem; text-align: center; font-size: 0.6625rem; line-height: 0.875rem; font-weight: 560; color: #f0eeec; }
.site-footer span[aria-hidden] { margin: 0 0.625rem; }
.link-btn {
  padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
}
.link-btn:hover { color: var(--orange-2); text-decoration: underline; text-underline-offset: 0.125rem; }

/* ---------- Dialogs & consent ---------- */
.modal {
  width: min(620px, calc(100vw - 32px));
  max-height: min(80vh, 760px);
  padding: 0;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  background: #111214;
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  font-size: 14px;
  line-height: 1.55;
}
.modal::backdrop { background: rgba(0,0,0,0.65); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,0.1); position: sticky; top: 0; background: #111214; }
.modal-head h2 { font-size: 18px; font-weight: 600; }
.modal-close { border: 0; background: none; color: #bbb; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.modal-close:hover { color: #fff; }
.modal-body { padding: 16px 22px 22px; color: #dcd9d6; }
.modal-body h3 { margin: 16px 0 4px; font-size: 14px; font-weight: 600; color: #fff; }
.modal-body h3:first-child { margin-top: 0; }
.modal-body p + p { margin-top: 10px; }
.modal-body a { color: var(--orange-2); }
.modal-body code { font-size: 12.5px; background: rgba(255,255,255,0.08); padding: 1px 5px; border-radius: 4px; }
.modal-meta { margin-top: 16px; font-size: 12px; color: #9a9794; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.consent-actions .btn { height: 36px; font-size: 13px; padding: 0 20px; }
.consent-current { margin-top: 8px; font-size: 13px; color: #a9a6a3; }

.consent-banner {
  position: fixed; z-index: 50; left: 16px; bottom: 16px;
  max-width: 360px; padding: 14px 16px;
  border-radius: 14px; border: 1px solid rgba(255,255,255,0.18);
  background: rgba(17, 18, 20, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  font-size: 13px; line-height: 1.45; color: #e2dfdc;
}
.consent-banner .consent-actions { margin-top: 10px; gap: 8px; }
.consent-banner .btn { height: 32px; font-size: 12.5px; padding: 0 16px; }
.consent-banner .link-btn { color: var(--orange-2); }

/* ---------- Mobile / tablet (< 901px) ---------- */
@media (max-width: 900px) {
  body {
    background-size: 1000px auto;
    background-position: right -330px top -40px;
  }
  .page { width: auto; padding: 0 18px; }
  .site-header { height: auto; padding: 16px 0 0; align-items: center; }
  .brand { gap: 12px; margin-top: 0; }
  .brand-mark { width: 32px; }
  .brand-name { font-size: 14px; top: 0; }
  .btn-touch { width: auto; padding: 0 16px; height: 34px; font-size: 13px; }
  .hero { padding: 0; }
  .hero h1 { margin-top: 34px; font-size: clamp(28px, 8.9vw, 44px); line-height: 1.12; letter-spacing: -0.6px; }
  .hero-sub { margin-top: 14px; font-size: 16px; line-height: 24px; max-width: 34em; }
  .br-desktop { display: none; }
  .hero-actions { margin-top: 20px; gap: 10px; flex-wrap: wrap; }
  .hero-actions .btn { height: 42px; font-size: 14px; }
  .hero-actions .btn-primary { width: auto; padding: 0 24px; }
  .hero-actions .btn-outline { width: auto; padding: 0 22px; }

  .bento { display: flex; flex-direction: column; gap: 12px; width: auto; margin: 28px 0 0; }
  .card-rwanda { margin-top: 0; }
  .card { border-radius: 16px; }
  .card-data { min-height: 300px; padding: 22px 20px 0; }
  .card-visual-data {
    top: auto; width: 100%; height: 170px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 60px);
    mask-image: linear-gradient(180deg, transparent 0, #000 60px);
  }
  .card-data h2 { font-size: 28px; line-height: 33px; }
  .data-sub { font-size: 15px; line-height: 21px; margin-top: 8px; }
  .chips { flex-wrap: wrap; gap: 8px; margin-top: 14px; }
  .chips li { height: 28px; padding: 0 13px; font-size: 13px; }
  .chips svg { width: 14px; height: 14px; }

  .card-icon-card { min-height: 104px; padding: 20px 96px 20px 20px; }
  .card-icon-card .t-line { font-size: 16px; line-height: 23px; }
  .card-icon-card .t-lg { font-size: 16px; line-height: 22px; }
  .card-icon-card .t-small, .card-inst .t-small { margin-top: 4px; font-size: 13.5px; line-height: 19px; }
  .card-community .t-line + .t-line { font-size: 16px; line-height: 23px; }
  .icon-book, .icon-chat, .icon-globe, .icon-network { top: 50%; transform: translateY(-50%); right: 22px; }
  .icon-book { width: 56px; height: 52px; }
  .icon-chat { width: 52px; height: 59px; }
  .icon-globe { width: 50px; height: 54px; }
  .icon-network { width: 50px; height: 62px; }

  .card-rwanda { min-height: 150px; align-items: flex-start; }
  .card-visual-rwanda {
    width: 100%; top: auto; height: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.35) 35%, #000 75%);
    mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.35) 35%, #000 75%);
    opacity: .9;
  }
  .rwanda-body { padding: 22px 20px; }
  .rw-eyebrow { font-size: 15px; line-height: 20px; }
  .rw-link { font-size: 21px; line-height: 27px; }
  .rw-tag { font-size: 14px; line-height: 19px; max-width: 13em; }

  .card-person { padding: 20px 20px 20px 58px; }
  .card-dario { padding-left: 58px; }
  .person-icon, .card-dario .person-icon { left: 20px; top: 22px; width: 24px; height: 24px; }
  .card-person h2 { font-size: 18px; line-height: 24px; }
  .person-role { font-size: 14px; line-height: 20px; }
  .person-mail { font-size: 14px; line-height: 20px; margin-top: 8px; }

  .card-legal { width: auto; height: auto; margin: 12px 0 0; padding: 22px 20px 26px; }
  .card-legal h2 { font-size: 18px; line-height: 24px; }
  .legal-cols { position: relative; inset: auto; margin-top: 10px; font-size: 13.5px; line-height: 21px; }
  .legal-cols ul { position: static; }
  .legal-cols ul + ul { margin-top: 12px; }
  .legal-c2 { border-left: 0; padding-left: 0; }
  .bullets li::before { top: 9px; }
  .legal-wave { width: 70%; height: 60%; opacity: .8; }

  .site-footer { padding: 22px 0 28px; font-size: 13px; line-height: 20px; }
  .site-footer span[aria-hidden] { margin: 0 6px; }
}
