/* =========================================================
   Hult Prize EMSI Casablanca
   Brand: EF Hult Prize — indigo → violet → magenta → pink → red
   ========================================================= */
:root {
  --ink: #14000a;
  --ink-2: #1d0e1c;
  --night: #0f0812;
  --indigo: #29256a;
  --violet: #67277f;
  --plum: #ba2c95;
  --pink: #fd329b;
  --red: #fb030b;
  --paper: #ffffff;
  --mist: #f6f2f7;
  --line: #e9e1ec;
  --muted: #6f6375;
  --text: #2a2030;
  --ok: #19a463;
  --err: #e0245e;

  --grad: linear-gradient(180deg, var(--indigo) 0%, var(--violet) 34%, var(--plum) 64%, var(--pink) 86%, var(--red) 100%);
  --grad-x: linear-gradient(90deg, var(--indigo), var(--violet) 30%, var(--plum) 60%, var(--pink) 85%, var(--red));

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1200px;
  --radius: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
p { margin: 0; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
::selection { background: var(--pink); color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--plum);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad-x); }
.eyebrow--light { color: #f7a6d2; }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px;
  border: 0; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .35s var(--ease-out), background-color .25s, color .25s, box-shadow .35s var(--ease-out), border-color .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn svg .fill { fill: currentColor; stroke: none; }
.btn .arrow { transition: transform .35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.btn--sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn--sm svg { width: 17px; height: 17px; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 16px; }
.btn--xl { --h: 62px; padding: 0 32px; font-size: 17px; }

.btn--light { background: #fff; color: var(--ink); box-shadow: 0 10px 30px -12px rgba(20, 0, 10, .45); }
.btn--light:hover { box-shadow: 0 16px 40px -14px rgba(20, 0, 10, .6); transform: translateY(-2px); }
.btn--glass { background: rgba(255, 255, 255, .1); color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255, 255, 255, .2); border-color: #fff; transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2b1428; transform: translateY(-2px); }
.btn--brand { background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.btn--brand::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(100deg, var(--indigo), var(--plum) 45%, var(--pink) 80%, var(--red));
  background-size: 200% 100%; background-position: 0 0;
  transition: background-position .8s var(--ease-out);
}
.btn--brand:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px rgba(186, 44, 149, .7); }
.btn--brand:hover::before { background-position: 100% 0; }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--wa { background: #1fae5b; color: #fff; box-shadow: 0 14px 30px -14px rgba(31, 174, 91, .8); }
.btn--wa:hover { background: #179a4f; transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) var(--gutter) 14px;
  transition: background-color .4s, backdrop-filter .4s, padding .4s var(--ease), box-shadow .4s;
  animation: navIn 1s var(--ease-out) .1s both;
}
.nav.is-scrolled {
  background: rgba(41, 37, 106, .8);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
  padding-top: calc(10px + env(safe-area-inset-top)); padding-bottom: 10px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.nav__mark { height: 46px; width: auto; transition: height .4s var(--ease); }
.nav.is-scrolled .nav__mark { height: 40px; }
.nav__divider { width: 1px; height: 36px; background: rgba(255, 255, 255, .35); }
.nav__emsi { height: 46px; width: auto; transition: height .4s var(--ease); }
.nav.is-scrolled .nav__emsi { height: 40px; }
@keyframes navIn { from { opacity: 0; transform: translateY(-12px); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: calc(110px + env(safe-area-inset-top)) var(--gutter) 28px;
  color: #fff;
  background: linear-gradient(205deg, var(--indigo) 0%, var(--violet) 30%, var(--plum) 62%, var(--pink) 92%);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* The arc from the Campus Director card: a huge circle sweeping across the frame */
.hero__arc {
  position: absolute;
  width: 175vmax; height: 175vmax;
  left: -96vmax; bottom: -112vmax;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 20%, rgba(255, 196, 228, .5) 0%, rgba(255, 150, 210, .22) 34%, rgba(253, 50, 155, .05) 62%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  transform-origin: 50% 50%;
  animation: arcIn 2.2s var(--ease-out) both, arcDrift 18s ease-in-out 2.2s infinite alternate;
  will-change: transform;
}
.hero__ring {
  position: absolute;
  width: 128vmax; height: 128vmax;
  right: -92vmax; top: -70vmax;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  animation: ringIn 2.6s var(--ease-out) .3s both;
}
.hero__grain {
  position: absolute; inset: 0; opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes arcIn { from { transform: translate(-6%, 10%) scale(.82); opacity: 0; } }
@keyframes arcDrift { to { transform: translate(2%, -2%) rotate(4deg); } }
@keyframes ringIn { from { transform: scale(.7); opacity: 0; } }

.hero__inner { width: 100%; max-width: var(--max); margin: auto auto 0; padding-bottom: 40px; will-change: transform, opacity; }

.hero__title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 8vw, 5.6rem);
  font-weight: 800; letter-spacing: -0.045em; line-height: .95;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .word { display: inline-block; animation: wordUp 1.1s var(--ease-out) var(--d, 0s) both; }
.hero__title .word--em {
  background: linear-gradient(90deg, #fff 0%, #ffd1ea 50%, #fff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: wordUp 1.1s var(--ease-out) var(--d, 0s) both, shimmer 6s linear 2s infinite;
}
@keyframes wordUp { from { transform: translateY(105%) rotate(3deg); opacity: 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }

.hero__lead { max-width: 560px; margin-top: 26px; font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.55; color: rgba(255, 255, 255, .9); font-weight: 450; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.reveal-up { animation: revealUp 1s var(--ease-out) var(--d, 0s) both; }
@keyframes revealUp { from { opacity: 0; transform: translateY(18px); } }


/* ---------- Ticker ---------- */
.ticker { background: var(--ink); color: #fff; overflow: hidden; padding: 18px 0; }
.ticker__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: ticker 38s linear infinite; }
.ticker span { font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.ticker i { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--grad-x); }
.ticker i:nth-of-type(3n+1) { background: var(--pink); }
.ticker i:nth-of-type(3n+2) { background: var(--violet); }
.ticker i:nth-of-type(3n) { background: var(--red); }
@keyframes ticker { to { transform: translateX(-33.333%); } }

/* ---------- About ---------- */
.about { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 150px) var(--gutter); }
.about__statement {
  margin-top: 26px;
  font-size: clamp(1.65rem, 4.1vw, 3.35rem);
  line-height: 1.16; letter-spacing: -0.03em; font-weight: 700;
  color: var(--ink);
  max-width: 1080px;
}
.about__statement .w { transition: color .5s var(--ease), opacity .5s var(--ease); }
.js-highlight .about__statement .w { color: #d9cfdc; }
.js-highlight .about__statement .w.is-lit { color: var(--ink); }
.js-highlight .about__statement .w.is-lit.is-key { color: var(--plum); }

/* ---------- World: stats ---------- */
.eyebrow--white { color: #fff; }
.eyebrow--white::before { background: #fff; }
.world {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(135deg, var(--violet) 0%, var(--plum) 48%, #e0268c 100%);
  color: #fff;
  padding: clamp(72px, 10vw, 130px) var(--gutter);
}
.world::before {
  content: ""; position: absolute; z-index: -1; width: 120vmax; height: 120vmax; left: -80vmax; bottom: -92vmax; border-radius: 50%;
  background: radial-gradient(circle at 70% 20%, rgba(255, 196, 228, .22), rgba(255, 150, 210, .06) 45%, transparent 66%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.world__inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.world h2 { margin-top: 22px; color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.7rem); line-height: 1.04; }
.world__lead { margin: 22px 0 34px; max-width: 520px; font-size: clamp(1.02rem, 1.5vw, 1.15rem); line-height: 1.6; color: rgba(255, 255, 255, .94); font-weight: 450; }
.metrics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.6vw, 18px); }
.metric {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: clamp(150px, 17vw, 210px); padding: 22px 14px;
  background: #fff; border-radius: clamp(20px, 2.4vw, 30px);
  box-shadow: 0 24px 50px -28px rgba(41, 37, 106, .6);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.metric:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -26px rgba(41, 37, 106, .7); }
.metric__num { font-size: clamp(2.1rem, 5vw, 4.2rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.metric__label { font-size: clamp(.9rem, 1.3vw, 1.05rem); font-weight: 600; color: var(--text); letter-spacing: -0.005em; }

/* ---------- Join ---------- */
.join {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--mist);
  padding: clamp(80px, 11vw, 140px) var(--gutter) clamp(80px, 11vw, 140px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 620px); gap: clamp(32px, 6vw, 96px);
  align-items: start;
  justify-content: center;
}
.join > * { max-width: 100%; }
/* Brand pillar: gradient band with a concave edge, like the EF Hult Prize key visual. Sits behind the card. */
.join__art {
  position: absolute; z-index: -1; right: 0; top: 0; bottom: 0; width: min(54vw, 780px);
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M100 0H0C40 8 60 38 62 100H100Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M100 0H0C40 8 60 38 62 100H100Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  transform-origin: 100% 100%;
  transform: scaleY(var(--grow, 1));
}
.join__intro { position: sticky; top: 120px; max-width: 460px; }
.join__intro h2 { margin-top: 22px; font-size: clamp(2.4rem, 5vw, 4.2rem); }
.join__intro h2 span { display: block; color: transparent; background: linear-gradient(90deg, var(--violet), var(--plum) 50%, var(--pink)); -webkit-background-clip: text; background-clip: text; padding-bottom: .06em; }

.card {
  position: relative;
  background: #fff; border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 1px 0 rgba(20, 0, 10, .04), 0 30px 80px -30px rgba(41, 37, 106, .35);
  min-width: 0;
}

.progress { margin-bottom: 28px; }
.progress__track { height: 6px; border-radius: 6px; background: var(--mist); overflow: hidden; }
.progress__fill { height: 100%; width: 50%; border-radius: inherit; background: var(--grad-x); background-size: 200% 100%; transition: width .7s var(--ease-out); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.step__head h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.step__sub { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.step.from-right { animation: stepRight .55s var(--ease-out) both; }
.step.from-left { animation: stepLeft .55s var(--ease-out) both; }
@keyframes stepRight { from { opacity: 0; transform: translateX(28px); } }
@keyframes stepLeft { from { opacity: 0; transform: translateX(-28px); } }

.group { border: 0; padding: 0; margin: 26px 0 0; min-width: 0; }
.group legend { padding: 0; margin-bottom: 12px; }
.q { font-weight: 700; color: var(--ink); font-size: 15px; }
em { font-style: normal; color: var(--pink); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Floating-label fields */
.field { position: relative; }
.field input {
  width: 100%; height: 60px; padding: 24px 16px 8px;
  border: 1.5px solid var(--line); border-radius: 16px; background: #fff;
  font: inherit; font-size: 16px; font-weight: 500; color: var(--ink);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
  -webkit-appearance: none; appearance: none;
}
.field label {
  position: absolute; left: 17px; top: 19px;
  color: var(--muted); font-size: 16px; pointer-events: none;
  transform-origin: 0 0; transition: transform .25s var(--ease), color .25s;
}
.field input:hover { border-color: #d4c7d8; }
.field input:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 4px rgba(186, 44, 149, .14); }
.field input:focus + label,
.field input:not(:placeholder-shown) + label { transform: translateY(-11px) scale(.76); color: var(--plum); font-weight: 600; }
.field input:not(:placeholder-shown):not(:focus) + label { color: var(--muted); }

.err { display: block; min-height: 0; color: var(--err); font-size: 13px; font-weight: 600; margin-top: 6px; }
.err:empty { display: none; }
.has-error { animation: shake .4s var(--ease); }
.field.has-error input { border-color: var(--err); box-shadow: 0 0 0 4px rgba(224, 36, 94, .1); }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pill input, .year input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pill span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font-weight: 600; font-size: 15px; color: var(--ink);
  transition: background-color .25s, border-color .25s, color .25s, transform .3s var(--ease-out), box-shadow .3s;
}
.pill--sq span { min-width: 64px; justify-content: center; }
.pill:hover span { border-color: #cbb9d0; }
.pill input:checked + span {
  background: var(--ink); border-color: var(--ink); color: #fff;
  box-shadow: 0 8px 20px -10px rgba(20, 0, 10, .6);
  animation: pop .35s var(--ease-out);
}
.pill input:focus-visible + span, .year input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: 2px; }
@keyframes pop { 50% { transform: scale(1.06); } }
.has-error .pill span, .has-error .year span { border-color: rgba(224, 36, 94, .5); }

/* Year segmented control */
.years { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.year { cursor: pointer; -webkit-tap-highlight-color: transparent; position: relative; }
.year span {
  display: flex; align-items: baseline; justify-content: center; gap: 1px;
  height: 58px; padding-top: 14px;
  border: 1.5px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink);
  transition: background .3s, border-color .25s, color .25s, transform .3s var(--ease-out), box-shadow .3s;
}
.year b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.year i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); transition: color .25s; }
.year--other { grid-column: 1 / -1; }
.year--other span { height: 46px; }
.year--other b { font-size: 15px; }
.year:hover span { border-color: #cbb9d0; }
.year input:checked + span {
  background: linear-gradient(140deg, var(--indigo), var(--plum) 60%, var(--pink));
  border-color: transparent; color: #fff;
  box-shadow: 0 12px 24px -12px rgba(186, 44, 149, .8);
  animation: pop .35s var(--ease-out);
}
.year input:checked + span i { color: rgba(255, 255, 255, .8); }

.form-error { margin-top: 20px; color: var(--err); font-weight: 600; font-size: 14.5px; }
.form-error:empty { display: none; }
.field--linkedin { margin-top: 14px; }
.field--linkedin[hidden] { display: none; }
.field--linkedin .hint { margin-top: 6px; }
.other-field { margin-top: 12px; }
.other-field[hidden] { display: none; }
.choices { display: grid; gap: 10px; }
.choice { position: relative; cursor: pointer; display: block; -webkit-tap-highlight-color: transparent; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choice span { display: block; padding: 16px 18px 16px 52px; border: 1.5px solid #e4dbe8; border-radius: 16px; background: #fff; position: relative; transition: border-color .25s, background .25s, opacity .25s; }
.choice span::before { content: ""; position: absolute; left: 18px; top: 19px; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #cbb9d0; background: #fff; transition: all .2s; }
.choice b { display: block; font-size: 15.5px; font-weight: 700; }
.choice i { display: block; font-style: normal; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.choice:hover span { border-color: #cbb9d0; }
.choice input:checked + span { border-color: var(--plum); background: rgba(186, 44, 149, .06); }
.choice input:checked + span::before { background: var(--plum); border-color: var(--plum); box-shadow: inset 0 0 0 3px #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: 2px; }
.choice input:disabled + span { opacity: .45; cursor: not-allowed; }
.choice:has(input:disabled) { cursor: not-allowed; }
.choice-note { margin-top: 12px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.has-error .choice span { border-color: rgba(224, 36, 94, .5); }

.step-nav { display: flex; gap: 12px; margin-top: 30px; }
.step-nav__next { flex: 1; }
.step-nav__next[hidden], .step-nav .btn[hidden] { display: none; }

.btn--submit .spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn--submit.is-loading { pointer-events: none; }
.btn--submit.is-loading .spinner { display: block; }
.btn--submit.is-loading .label, .btn--submit.is-loading .arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Success */
.success { text-align: center; padding: 12px 0 4px; outline: none; }
.success:not([hidden]) > * { animation: revealUp .8s var(--ease-out) both; }
.success > *:nth-child(2) { animation-delay: .35s; }
.success > *:nth-child(3) { animation-delay: .45s; }
.success > *:nth-child(4) { animation-delay: .55s; }
.success > *:nth-child(5) { animation-delay: .65s; }
.success > *:nth-child(6) { animation-delay: .75s; }
.success > *:nth-child(7) { animation-delay: .85s; }
.success__badge { width: 104px; height: 104px; margin: 0 auto 22px; }
.success__badge circle { fill: none; stroke: url(#badgeGrad); stroke-width: 6; stroke-dasharray: 340; stroke-dashoffset: 340; transform: rotate(-90deg); transform-origin: center; }
.success__badge path { fill: none; stroke: var(--ink); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; }
.success:not([hidden]) .success__badge circle { animation: draw 1s var(--ease-out) .1s forwards; }
.success:not([hidden]) .success__badge path { animation: draw .6s var(--ease-out) .75s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h3 { margin-top: 14px; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.success h3 span { color: transparent; background: linear-gradient(90deg, var(--violet), var(--pink)); -webkit-background-clip: text; background-clip: text; }
.success__text { max-width: 420px; margin: 14px auto 28px; color: var(--muted); }
.success .btn--wa { width: 100%; max-width: 400px; }
.success__social { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.success__again {
  margin-top: 28px; padding: 8px 4px; border: 0; background: none; cursor: pointer;
  color: var(--muted); font-weight: 600; font-size: 14.5px;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line);
  transition: color .2s, text-decoration-color .2s;
}
.success__again:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: #1d1a52; color: rgba(255, 255, 255, .7); padding: 64px var(--gutter) calc(28px + env(safe-area-inset-bottom)); }
.footer__top, .footer__bottom { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 22px; }
.footer__mark { height: 46px; width: auto; }
.footer__divider { width: 1px; height: 36px; background: rgba(255, 255, 255, .2); }
.footer__emsi { height: 46px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px; }
.footer__links a {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16);
  color: #fff; text-decoration: none; font-weight: 600; font-size: 14.5px;
  transition: background .25s, border-color .25s, transform .3s var(--ease-out);
}
.footer__links a:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); transform: translateY(-2px); }
.footer__links svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer__links svg .fill { fill: currentColor; stroke: none; }
.footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; }

/* ---------- Scroll reveal ---------- */
.js .in-view { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js .in-view.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .world__inner { grid-template-columns: 1fr; }
  .join { grid-template-columns: 1fr; padding-bottom: 84px; }
  /* Stacked: the gradient is a full-width panel behind the card so it frames it on every side. */
  .join__art { left: 0; right: 0; width: auto; border-radius: 40px 40px 0 0; -webkit-mask: none; mask: none; transform: none; }
  .join__intro { position: static; max-width: 620px; margin: 0 auto; width: 100%; }
  .join .card { max-width: 620px; margin: 0 auto; width: 100%; }
}

@media (max-width: 720px) {
  .world__lead { margin-bottom: 26px; }
  .world .btn { width: 100%; }
  .metric { min-height: 132px; padding: 18px 10px; }
  body { font-size: 16px; }
  .nav__mark { height: 30px; }
  .nav.is-scrolled .nav__mark { height: 28px; }
  .nav__emsi { height: 30px; }
  .nav.is-scrolled .nav__emsi { height: 28px; }
  .nav__brand { gap: 10px; }
  .nav__divider { height: 26px; }
  .hero { padding-top: calc(96px + env(safe-area-inset-top)); padding-bottom: 20px; }
  .hero__inner { padding-bottom: 28px; }
  .hero__lead { margin-top: 18px; }
  .hero__cta { margin-top: 26px; flex-direction: column; }
  .hero__cta .btn { width: 100%; }
    .hero__arc { width: 210vmax; height: 210vmax; left: -150vmax; bottom: -150vmax; }

  .join { padding-top: 72px; }
  .grid-2 { grid-template-columns: 1fr; gap: 12px; }
  .card { border-radius: 24px; }
  .pills { gap: 8px; }
  .pill span { min-height: 46px; padding: 0 15px; font-size: 14.5px; }
  .pill--sq span { min-width: 0; padding: 0 16px; }
  .years { gap: 6px; }
  .year span { height: 56px; border-radius: 14px; }
  .year b { font-size: 20px; }
  .step-nav .btn--lg { --h: 56px; padding: 0 20px; }
  .success__social .btn { flex: 1; }

  .footer { padding-top: 48px; }
  .footer__brand { gap: 16px; }
  .footer__mark { height: 30px; }
  .footer__emsi { height: 30px; }
  .footer__divider { height: 26px; }
  /* the three links stay on one row: tighter pills, the icons keep their size */
  .footer__links { width: 100%; flex-wrap: nowrap; gap: 6px; }
  .footer__links a { flex: 1 1 0; min-width: 0; justify-content: center; gap: 6px; padding: 0 8px; font-size: 13px; }
  .footer__links svg { width: 16px; height: 16px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 340px) {
  .footer__links a { font-size: 13.5px; }
  .footer__links svg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker__track { animation: none; }
  .js .in-view { opacity: 1; transform: none; }
}

/* ---------- Sign-up forms: tabs, team members, selects ---------- */
.join__lead { margin-top: 18px; max-width: 420px; color: var(--muted); font-size: 17px; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 28px; background: var(--mist); border-radius: 18px; }
.tab {
  min-height: 48px; padding: 6px 10px; border: 0; border-radius: 14px; background: transparent; cursor: pointer;
  font-weight: 700; font-size: 14.5px; line-height: 1.2; color: var(--muted);
  transition: background-color .25s, color .25s, box-shadow .3s; -webkit-tap-highlight-color: transparent;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 6px 18px -8px rgba(41, 37, 106, .4); }
.tab:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.panel[hidden] { display: none; }

.choice--radio span::before { border-radius: 50%; }
.note { margin-top: 24px; padding: 14px 16px; border-radius: 14px; background: var(--mist); color: var(--muted); font-size: 14px; line-height: 1.5; }
.note b { color: var(--ink); }
.hint { margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.hint[hidden] { display: none; }
.hint--legend { margin: -4px 0 12px; }

/* University locked to EMSI Casablanca */
.locked { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 22px 0 0; padding: 16px 18px; border: 1.5px dashed #d9cddd; border-radius: 16px; background: var(--mist); }
.locked div { min-width: 0; }
.locked__wide { grid-column: 1 / -1; }
.locked dt { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.locked dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); font-size: 15px; }

/* SDG pills */
.pills--sdg { gap: 8px; }
.pills--sdg .pill span { min-height: 44px; padding: 0 16px 0 8px; gap: 10px; font-size: 14px; }
.sdg-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--mist); color: var(--ink); font-size: 12.5px; font-weight: 800; transition: background-color .25s, color .25s; }
.pill input:checked + span .sdg-n { background: rgba(255, 255, 255, .22); color: #fff; }
.has-error .pills--sdg .pill span { border-color: rgba(224, 36, 94, .5); }

/* Team member cards */
.member { margin: 18px 0 0; padding: 20px; min-width: 0; border: 1.5px solid var(--line); border-radius: 22px; background: #fff; }
.member__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.member__title { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.member__remove { padding: 6px 4px; border: 0; background: none; cursor: pointer; color: var(--err); font-weight: 700; font-size: 13.5px; }
.member__remove:hover { text-decoration: underline; }
.member__remove[hidden] { display: none; }
.member .hint { margin: -6px 0 14px; }
.member .group { margin-top: 18px; }
.other-uni { margin-top: 14px; }
.other-uni[hidden] { display: none; }
.other-uni__wide { grid-column: 1 / -1; }
.add-member { width: 100%; margin-top: 16px; }
.add-member[hidden] { display: none; }
.group[data-field="members"] { margin-top: 8px; }
.group[data-field="members"] > .err { margin-top: 14px; }


/* Native select, styled like the text fields */
.select-field label { display: block; margin-bottom: 10px; }
.select-field select {
  width: 100%; height: 60px; padding: 0 44px 0 16px; border: 1.5px solid var(--line); border-radius: 16px; background-color: #fff;
  font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2314000a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px;
  transition: border-color .25s, box-shadow .25s;
}
.select-field select:hover { border-color: #d4c7d8; }
.select-field select:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 4px rgba(186, 44, 149, .14); }
.select-field.has-error select { border-color: var(--err); box-shadow: 0 0 0 4px rgba(224, 36, 94, .1); }
.field.other-field { margin-top: 12px; }
.has-error .choice span { border-color: rgba(224, 36, 94, .5); }

@media (max-width: 720px) {
  .tab { font-size: 13.5px; min-height: 52px; }
  .member { padding: 16px; }
  .locked { grid-template-columns: 1fr; }
  .join__lead { font-size: 16px; }
}

/* Team member cards: studies */
.emsi-fields[hidden] { display: none; }
.member .select-field { margin-top: 16px; }
.member .grid-2 .select-field { margin-top: 0; }
.member .emsi-fields .grid-2 { margin-top: 16px; }
.member .select-field label { font-size: 14px; margin-bottom: 8px; }
.member .select-field select { height: 54px; font-size: 15.5px; }

/* ---------- Three-tab sign-up card: compete / ambassador / volunteer ---------- */
.tabs { grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; }
.tab { min-height: 46px; padding: 6px 4px; font-size: 13.5px; }

.panel__intro { margin: 0 0 26px; padding: 22px 22px 20px; border-radius: 20px; background: var(--mist); }
.panel__intro h3 { font-size: clamp(1.35rem, 2.4vw, 1.65rem); }
.panel__intro p { margin-top: 10px; color: var(--text); font-size: 15.5px; line-height: 1.55; }
.panel__intro .perk {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 14px 8px 10px;
  border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700;
  box-shadow: 0 1px 0 rgba(20, 0, 10, .04), 0 8px 20px -12px rgba(41, 37, 106, .45);
}
.perk svg { width: 20px; height: 20px; fill: none; stroke: var(--plum); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.offer { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.offer li { position: relative; padding-left: 28px; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.offer li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--grad-x) center / 200% 100%;
}
.offer li::after {
  content: ""; position: absolute; left: 6px; top: 6px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(.9); transform-origin: 50% 60%;
}

/* ---------- Startup Hub: a platform open to everyone, described on the page (no sign-up) ---------- */
.hub { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 10vw, 130px); }
.hub__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hub h2 { margin-top: 22px; font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.04; }
.hub h2 span { display: block; color: transparent; background: linear-gradient(90deg, var(--violet), var(--plum) 50%, var(--pink)); -webkit-background-clip: text; background-clip: text; padding-bottom: .06em; }
.hub__lead { margin-top: 22px; max-width: 560px; font-size: clamp(1.02rem, 1.5vw, 1.15rem); line-height: 1.6; color: var(--text); }
.hub__card { padding: clamp(22px, 3vw, 34px); border-radius: var(--radius); background: var(--mist); border: 1px solid var(--line); }
.hub__card-title { margin-bottom: 4px; color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hub__card .offer { margin-top: 14px; gap: 12px; }
.hub__card .offer li { font-size: clamp(1rem, 1.4vw, 1.1rem); }
@media (max-width: 900px) {
  .hub__inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .tab { min-height: 48px; font-size: 14px; }
  .panel__intro { padding: 18px 18px 16px; }
}

/* ---------- Referral mode: an ambassador's link (/?ref=<token>) shows only the quick team / solo registration ---------- */
.ref-hero { display: none; }
.ref-mode .ref-hero { display: block; }
.ref-mode .hero { min-height: 0; padding-bottom: clamp(56px, 8vw, 96px); }
.ref-mode .hero__inner { margin: 0 auto; padding-bottom: 0; }
.ref-mode .hero__title, .ref-mode .hero__lead, .ref-mode .hero__cta,
.ref-mode .ticker, .ref-mode #about, .ref-mode #startup-hub, .ref-mode #world,
.ref-mode .join__intro, .ref-mode .tabs, .ref-mode #panel-ambassador, .ref-mode #panel-volunteer { display: none; }
.ref-hero .eyebrow { color: #fff; }
.ref-hero__title { margin: 14px 0 0; color: #fff; font-size: clamp(2.4rem, 9vw, 5.6rem); font-weight: 800; letter-spacing: -.04em; line-height: .98; }
.ref-hero__title span { color: #ffd3ea; }
.ref-hero__via { margin: 22px 0 0; max-width: 560px; font-size: clamp(1.05rem, 2.6vw, 1.3rem); line-height: 1.45; color: rgba(255, 255, 255, .92); }
.ref-hero__via b { color: #fff; font-weight: 800; }
.ref-hero__facts { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.ref-hero__facts li { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .26); font-size: 14px; font-weight: 600; color: #fff; }
.ref-mode .join { grid-template-columns: minmax(0, 720px); position: relative; z-index: 2; margin-top: -44px; padding-top: clamp(48px, 7vw, 76px); border-radius: 44px 44px 0 0; background: linear-gradient(180deg, #efe4f1 0%, var(--mist) 240px); box-shadow: 0 -24px 60px -28px rgba(41, 37, 106, .55); }
.ref-mode .join .card { width: 100%; }
.ref-mode .join__art { display: none; }
@media (max-width: 720px) { .ref-mode .join { margin-top: -32px; border-radius: 32px 32px 0 0; } }
