/* MSV site v6: shared base only (tokens, header, footer, buttons); every page brings its own design: the locked /msvevents format (msv-web-main msv-events.component.scss, site-v5 header and footer),
   with the app's own v5 tokens (styles/_tokens.scss). Orange only in the logo; ink carries the actions. */

/* ── Tokens: Day (light) and Night (dark), the app's values ── */
:root {
  --canvas: #f6f6f5; --panel: #ffffff; --sunken: #f0f1f2; --hover: #f7f7f8; --line: #e6e8eb; --line2: #d6d9de;
  --ink: #17181a; --ink2: #5c5f66; --ink3: #686c74; --cta: #17181a; --cta-h: #2c2e32; --cta-ink: #ffffff; --focus: #17181a;
  --lilac: #efeafc; --lilac-ink: #5b45a0; --sky: #e7f0fb; --sky-ink: #2b5a8f; --mint: #e3f4ea; --mint-ink: #256246;
  --butter: #fcf3d7; --butter-ink: #7a5a10; --peach: #fcece3; --peach-ink: #8f4422; --rose: #fbe9e7; --rose-ink: #9b3b33;
  /* role pastels (section colours): founder lilac, investor sky, enabler sand (linen) */
  --sec-lilac: #f2effa; --sec-lilac-ink: #55418f; --sec-sky: #eaf3fb; --sec-sky-ink: #245a8a; --sec-sand: #f6f1e8; --sec-sand-ink: #6b5536;
  --sh-card: 0 0 0 1px rgba(23, 24, 26, 0.08), 0 1px 2px rgba(23, 24, 26, 0.04);
  --sh-pop: 0 16px 40px -12px rgba(23, 24, 26, 0.22), 0 0 0 1px rgba(23, 24, 26, 0.07);
  --d-press: 160ms; --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --page-max: 1220px;
  --sans: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
html[data-look='night'] {
  color-scheme: dark;
  --canvas: #141516; --panel: #1b1c1e; --sunken: #242528; --hover: #202124; --line: #2b2d31; --line2: #3a3c41;
  --ink: #e9eaec; --ink2: #a3a6ad; --ink3: #8e9199; --cta: #e9eaec; --cta-h: #ffffff; --cta-ink: #17181a; --focus: #e9eaec;
  --lilac: #28233a; --lilac-ink: #c9b9f5; --sky: #1b2433; --sky-ink: #a8c6ee; --mint: #18291f; --mint-ink: #9fd7b8;
  --butter: #2c2615; --butter-ink: #ecd08a; --peach: #33221a; --peach-ink: #f2b796; --rose: #321e1c; --rose-ink: #f1aea6;
  --sec-lilac: #221d33; --sec-lilac-ink: #c3b5f0; --sec-sky: #16222e; --sec-sky-ink: #9cc4ec; --sec-sand: #27221a; --sec-sand-ink: #dcc8a6;
  --sh-card: 0 0 0 1px rgba(255, 255, 255, 0.07);
  --sh-pop: 0 16px 40px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--canvas); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); font: 400 15px/1.5 var(--sans); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 8px; background: var(--cta); color: var(--cta-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
html[data-look='night'] .logo-day, html:not([data-look='night']) .logo-night { display: none; }
main, .sf { position: relative; z-index: 1; }
[id] { scroll-margin-top: 80px; }

/* ── Type roles ── */
.eyebrow { margin: 0 0 14px; color: var(--ink2); font: 600 12px/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.sec-h { max-width: 22ch; margin: 0 0 32px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 650; text-wrap: balance; }
.sec-h--wide { max-width: 30ch; }
.sec-h span { color: var(--ink2); font-weight: 600; }
.sec-sub { max-width: 64ch; margin: -18px 0 28px; color: var(--ink2); font-size: 16px; line-height: 1.55; }
.sec { padding: 0 0 96px; }
.sec--line { padding-top: 96px; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .sec { padding-bottom: 64px; } .sec--line { padding-top: 64px; } }

/* ── Actions: v5 ink buttons ── */
.bp, .bs { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 8px; font: 600 14px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--d-press) var(--ease-out), transform var(--d-press) var(--ease-out); }
.bp:active, .bs:active { transform: scale(0.98); }
.bp { border: 0; background: var(--cta); color: var(--cta-ink); }
.bp:hover { background: var(--cta-h); }
.bs { border: 1px solid var(--line2); background: transparent; color: var(--ink); }
.bs:hover { background: var(--hover); }
.lg { min-height: 48px; padding: 0 20px; font-size: 15px; }
.sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.bp .i { transition: transform var(--d-press) var(--ease-out); }
.bp:hover .i { transform: translateX(3px); }
.tlink { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; text-decoration: none; }
.tlink .i { transition: transform var(--d-press) var(--ease-out); }
.tlink:hover .i { transform: translateX(3px); }

/* ── Header (locked site-v5) ── */
.sh { position: sticky; top: 0; z-index: 30; transition: transform 300ms var(--ease-out); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.sh__in { display: flex; align-items: center; gap: 28px; max-width: var(--page-max); height: 64px; margin: 0 auto; padding: 0 24px; }
.sh__logo { display: inline-flex; flex: none; }
.sh__logo img { height: 32px; width: auto; }
.sh__nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.sh__nav > a, .sh__nav .sh__dd > button { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ink2); font: 500 14px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: color var(--d-press) var(--ease-out), background var(--d-press) var(--ease-out); }
.sh__nav > a:hover, .sh__nav .sh__dd > button:hover, .sh__nav .sh__dd > button[aria-expanded='true'] { color: var(--ink); background: var(--hover); }
.sh__nav .on { color: var(--ink); font-weight: 600; }
.sh__nav .i { width: 14px; height: 14px; }
.sh__dd { position: relative; }
.sh__menu { position: absolute; top: calc(100% + 8px); left: 0; display: grid; gap: 2px; min-width: 260px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--ink) 35%, transparent); animation: sh-in 180ms var(--ease-out) both; }
.sh__menu[hidden] { display: none; }
.sh__menu a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.sh__menu a:hover, .sh__menu a:focus-visible { background: var(--hover); outline: none; }
.sh__menu b { font-size: 14px; font-weight: 600; }
.sh__menu small { color: var(--ink2); font-size: 12.5px; }
.sh__menu--end { left: auto; right: 0; }
.sh__acts { display: flex; align-items: center; gap: 8px; }
.sh__login { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 8px; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.sh__login:hover { background: var(--hover); }
.sh__start { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--cta); color: var(--cta-ink); font: 600 14px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--d-press) var(--ease-out), transform var(--d-press) var(--ease-out); }
.sh__start:hover { background: var(--cta-h); }
/* Sign up, always visible: a light passes across it every few seconds */
.sh__start { position: relative; overflow: hidden; min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.sh__start::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.38) 50%, transparent 70%); transform: translateX(-130%); animation: su-shine 5.5s ease-in-out 1.5s infinite; pointer-events: none; }
@keyframes su-shine { 0%, 72% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
.sh__su-m { display: none; }
.sh__start:active { transform: scale(0.98); }
.sh__start .i { width: 14px; height: 14px; }
.sh__burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line2); border-radius: 10px; background: none; color: var(--ink); cursor: pointer; }
.sh__burger .i { width: 18px; height: 18px; }
.sh__mobile { display: grid; gap: 2px; padding: 8px 16px 16px; border-top: 1px solid var(--line); background: var(--panel); animation: sh-in 180ms var(--ease-out) both; }
.sh__mobile[hidden] { display: none; }
.sh__mobile a { padding: 12px 8px; border-radius: 8px; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.sh__mobile a:hover { background: var(--hover); }
.sh__mobile .sh__start { margin-top: 8px; min-height: 44px; color: var(--cta-ink); }
/* Day or Night switch (the Events look toggle) */
.sh--away { transform: translateY(-100%); }
.look { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--ink2); cursor: pointer; }
.look:hover { color: var(--ink); background: var(--hover); }
.look .i { width: 16px; height: 16px; }
html[data-look='night'] .look__moon, html:not([data-look='night']) .look__sun { display: none; }
@keyframes sh-in { from { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 1080px) {
  .sh__nav, .sh__acts > .sh__dd, .sh__login { display: none; }
  .sh__acts { margin-left: auto; }
  .sh__burger { display: inline-flex; }
  .sh__su-m { display: inline-flex; }
}
@media (max-width: 640px) {
  .sh__in { gap: 10px; height: 56px; padding: 0 16px; }
  .sh__logo img { height: 24px; }
  .sh__acts { gap: 6px; }
  .sh__acts > .sh__start { min-height: 36px; padding: 0 12px; font-size: 13px; }
}
@media (max-width: 380px) { .sh__logo img { height: 20px; } }

/* ── Footer (locked site-v5) ── */
.sf { border-top: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.sf__in, .sf__base { max-width: var(--page-max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.sf__in { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.sf__brand { display: grid; gap: 12px; align-content: start; justify-items: start; }
.sf__brand img { height: 30px; width: auto; margin-bottom: 4px; }
.sf__brand p { max-width: 36ch; margin: 0 0 6px; color: var(--ink2); font-size: 14px; line-height: 1.55; }
.sf__brand a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink2); font-size: 14px; text-decoration: none; }
.sf__brand a:hover { color: var(--ink); }
.sf__brand .i { width: 14px; height: 14px; }
.sf nav { display: grid; gap: 10px; align-content: start; }
.sf h2 { margin: 0 0 4px; color: var(--ink); font-size: 13px; font-weight: 650; }
.sf nav a { color: var(--ink2); font-size: 14px; text-decoration: none; }
.sf nav a:hover { color: var(--ink); }
.sf__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 18px; padding-bottom: 28px; color: var(--ink2); font-size: 13px;
  background: linear-gradient(var(--line), var(--line)) top / calc(100% - 48px) 1px no-repeat; }
@media (max-width: 1000px) { .sf__in { grid-template-columns: repeat(2, 1fr); } .sf__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .sf__in, .sf__base { padding-left: 16px; padding-right: 16px; } .sf__in { grid-template-columns: 1fr 1fr; gap: 28px 20px; } }

/* ── Toast for app routes ── */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 12px; background: var(--cta); color: var(--cta-ink); font-size: 14px; font-weight: 550; box-shadow: var(--sh-pop); transform: translateX(-50%); animation: jy-rise 260ms var(--ease-out) both; }
.toast[hidden] { display: none; }

/* ── Reveal on scroll (added by JS only, so content shows without it) ── */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); transition-delay: calc(var(--rd, 0) * 60ms); }
.js .rv.in { opacity: 1; transform: none; }


@media (prefers-reduced-motion: reduce) { .sh__menu, .sh__mobile, .toast, .sh__start::after { animation: none !important; } .js .rv { opacity: 1; transform: none; transition: none; } }

/* Logo strip (real partners only), shared by the pages that show partners */
.logos { display: grid; grid-template-columns: repeat(var(--cols, 8), minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.logos li { display: grid; place-items: center; height: 76px; padding: 10px 14px; border-radius: 14px; background: #fff; }
.logos img { max-height: 44px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: 0.85; transition: filter var(--d-press) var(--ease-out), opacity var(--d-press) var(--ease-out); }
.logos li:hover img { filter: none; opacity: 1; }
@media (max-width: 1000px) { .logos { --cols: 4 !important; } }
@media (max-width: 560px) { .logos { --cols: 3 !important; } }
/* page sections often set their own padding on .wrap elements; keep the side margins */
.wrap.wrap { padding-left: 24px; padding-right: 24px; }
@media (max-width: 640px) { .wrap.wrap { padding-left: 16px; padding-right: 16px; } }

/* Over a dark first screen the header is see-through and turns solid as you scroll (Akshay, 4 Nov: "make the header better").
   base.js adds .hero-dark when the first section has light text, and .sh--solid once the page scrolls. */
/* the fade runs only into the solid state, so the first paint over a dark hero never flashes */
.hero-dark .sh--solid { transition: transform 300ms var(--ease-out), background 300ms var(--ease-out), border-color 300ms var(--ease-out); }
.hero-dark .sh:not(.sh--solid) { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hero-dark .sh:not(.sh--solid) .sh__nav > a, .hero-dark .sh:not(.sh--solid) .sh__nav .sh__dd > button, .hero-dark .sh:not(.sh--solid) .sh__login, .hero-dark .sh:not(.sh--solid) .look { color: rgba(255, 255, 255, 0.82); }
.hero-dark .sh:not(.sh--solid) .sh__nav .on, .hero-dark .sh:not(.sh--solid) .sh__nav > a:hover, .hero-dark .sh:not(.sh--solid) .sh__nav .sh__dd > button:hover, .hero-dark .sh:not(.sh--solid) .sh__login:hover, .hero-dark .sh:not(.sh--solid) .look:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.hero-dark .sh:not(.sh--solid) .logo-day { display: none; } .hero-dark .sh:not(.sh--solid) .logo-night { display: block; }
.hero-dark .sh:not(.sh--solid) .sh__start { background: #fff; color: #0b0d12; }
.hero-dark .sh:not(.sh--solid) .sh__burger { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }

/* Touch screens (phones, tablets): links and controls at least 40px tall so a thumb hits them (Akshay, 5 Nov: phone and tablet pass).
   Desktop with a mouse is unchanged. */
@media (pointer: coarse) {
  .sf nav { gap: 0; }
  .sf nav a, .sf__brand a, .sf__base a, .sh__logo, .tlink, .auth__back, .auth .lbl a, .auth__top > a { display: inline-flex; align-items: center; min-height: 40px; }
  select { min-height: 40px; }
  input[type='range'] { min-height: 40px; }
}

/* Footer: the social marks, and data protection (Akshay, 5 Nov). The seals are MSV's own marks; neither law has an official logo. */
.sf nav[aria-label='Follow'] a { display: inline-flex; align-items: center; gap: 10px; }
.sf nav[aria-label='Follow'] .i { width: 17px; height: 17px; }
.sf__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; max-width: var(--page-max); margin: 0 auto; padding: 0 24px 28px; }
.sf__seal { display: inline-grid; grid-template-columns: auto auto; align-items: center; column-gap: 10px; padding: 8px 14px 8px 10px; border-radius: 14px; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line2); }
.sf__seal .i { grid-row: span 2; width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--sec-sky); color: var(--sec-sky-ink); }
.sf__seal b { font-size: 13.5px; line-height: 1.2; } .sf__seal small { color: var(--ink2); font-size: 12px; line-height: 1.2; }
.sf__trust p { flex: 1 1 320px; margin: 0; color: var(--ink2); font-size: 13.5px; line-height: 1.5; }
.auth__trust { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 6px; color: var(--ink2); font-size: 13px; }
.auth__trust .i { width: 16px; height: 16px; color: var(--sec-sky-ink); }

/* Headings below the first screen sharpen from a soft blur as they scroll in (base.js adds .bl only when motion is allowed). */
.bl { filter: blur(10px); opacity: 0.2; transform: translateY(8px); transition: filter 700ms var(--ease-out), opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.bl.in { filter: none; opacity: 1; transform: none; }
/* Rolling digits for figures marked data-count: each digit rolls up to its value, one after another. */
.odo { display: inline-block; height: 1.1em; line-height: 1.1em; overflow: hidden; vertical-align: bottom; }
.odo > span { display: flex; flex-direction: column; transition: transform 1200ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 70ms); }
.odo i { height: 1.1em; font-style: normal; }
.odo-go .odo > span { transform: translateY(calc(var(--d) * -1.1em)); }
.odo-s { display: inline-block; line-height: 1.1em; vertical-align: bottom; }
