/* MobiusEngine site foundation (2026-11-21).
   Shared by the three MobiusEngine pages: /home/ (the chooser that becomes mobiusengine.ai),
   /executive-transition/ and /data-services/. Each page keeps its own look in its own folder;
   this file only holds what must match across them: tokens, type, nav, buttons, reveal motion,
   the footer. Colours come from the brand kit (/brand/kit/tokens.css), tuned for a night page.
   Docs: docs/implementation/mobiusengine_landing.md */

:root {
  /* Night surfaces */
  --night-0: #04071a;
  --night: #080d1f;
  --night-2: #0d1430;
  --night-3: #131a3a;
  --ink: #f1f4fb;
  --ink-dim: #b4bdd6;
  --ink-faint: rgba(241, 244, 251, 0.56);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --glass: rgba(255, 255, 255, 0.045);

  /* Light surfaces (an editorial section on a night page) */
  --ivory: #f6f3ec;
  --ivory-2: #ece6d8;
  --ink-dark: #0b1324;
  --ink-dark-dim: rgba(11, 19, 36, 0.66);

  /* The three doors, one colour each */
  --gold: #c9a961;          /* Executive Transition (brand kit --me-c-executive) */
  --gold-hi: #ecd398;
  --gold-deep: #8a6d2f;
  --blue: #2f9bf0;          /* Job Applications / Mogi (--me-c-mogi) */
  --blue-hi: #8cc8ff;
  --aqua: #3db4e6;
  --violet: #8f78f5;        /* Data Services (the jobs data colour) */
  --violet-hi: #c2b5ff;

  --brand-gradient: linear-gradient(135deg, #3db4e6 0%, #1683dc 42%, #0a66c2 72%, #0a4f9c 100%);
  --gold-gradient: linear-gradient(135deg, #f3dfa8 0%, #d9b871 38%, #b8913f 72%, #8a6d2f 100%);
  --violet-gradient: linear-gradient(135deg, #c2b5ff 0%, #8f78f5 45%, #5b46d6 100%);

  --f-display: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Fraunces", Georgia, serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --radius: 24px;
  --radius-sm: 14px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
/* overflow-x: clip on html too: a wide decorative glow can widen a phone's page even when body hides it. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night-0);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;  /* older browsers */
  overflow-x: clip;    /* clip never makes body a scroll container, so position: sticky keeps working */
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(201, 169, 97, 0.35); color: #fff; }
/* Each page may set --focus to its own door colour (gold, violet); blue is the default. */
:focus-visible { outline: 2px solid var(--focus, var(--blue-hi)); outline-offset: 3px; border-radius: 6px; }

/* Film grain over the whole page: the cinematic finish. Pure CSS, no image request. */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Anchor targets land below the fixed nav. */
[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 200; padding: 10px 16px; border-radius: 10px;
  background: #fff; color: var(--ink-dark); font-family: var(--f-display); font-weight: 700;
  transform: translateY(-160%); transition: transform 0.25s var(--ease-out);
}
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
/* Type rules (founder review, 2026-11-21): one sans family for headlines, no italic serif "accent"
   words, no mono caps labels with a leading rule, mono only inside code. Those read as templated. */
.eyebrow {
  display: inline-block;
  font-family: var(--f-display); font-size: 15px; font-weight: 600;
  letter-spacing: -0.005em; color: var(--ink-dim);
}
.display {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(44px, 7.2vw, 104px); line-height: 0.96; letter-spacing: -0.04em;
  margin: 0; text-wrap: balance;
}
.h2 {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.035em;
  margin: 0; text-wrap: balance;
}
.h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.accent { font: inherit; letter-spacing: inherit; }  /* retired: no serif italic words in headlines */
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-dim); max-width: 40em; margin: 0; text-wrap: pretty; }
.muted { color: var(--ink-dim); }
.faint { color: var(--ink-faint); }
.mono { font-family: var(--f-mono); }
.text-gold { color: var(--gold-hi); }
.text-blue { color: var(--blue-hi); }
.text-violet { color: var(--violet-hi); }
.gradient-gold { background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gradient-blue { background: linear-gradient(120deg, #8cc8ff, #3db4e6 45%, #2f9bf0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gradient-violet { background: linear-gradient(120deg, #e2dbff, #b3a3ff 40%, #8f78f5); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn {
  --h: 52px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--f-display); font-weight: 700; font-size: 16px; letter-spacing: -0.005em;
  white-space: nowrap; isolation: isolate;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.25s, color 0.25s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { --h: 42px; padding: 0 18px; font-size: 14.5px; }
.btn-lg { --h: 60px; padding: 0 32px; font-size: 17px; }
.btn-gold { background: var(--gold-gradient); color: #1a1408; box-shadow: 0 14px 40px -14px rgba(217, 184, 113, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-gold:hover { box-shadow: 0 20px 50px -14px rgba(217, 184, 113, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
/* Blue and violet fills start deeper than the brand gradients so a white label stays AA (4.5:1). */
.btn-blue { background: linear-gradient(135deg, #2b8fe6 0%, #1474d4 50%, #0a5fb8 100%); color: #fff; box-shadow: 0 14px 40px -14px rgba(47, 155, 240, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-blue:hover { box-shadow: 0 20px 50px -14px rgba(47, 155, 240, 1), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-violet { background: linear-gradient(135deg, #8a72f0 0%, #6a52e0 50%, #5440c8 100%); color: #fff; box-shadow: 0 14px 40px -14px rgba(143, 120, 245, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-violet:hover { box-shadow: 0 20px 50px -14px rgba(143, 120, 245, 1), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.11); }
.btn-white { background: #fff; color: var(--ink-dark); box-shadow: 0 14px 40px -16px rgba(255, 255, 255, 0.6); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 700; font-size: 15.5px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(3px); }

/* Nav */
.me-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}
.me-nav.is-scrolled {
  background: rgba(6, 9, 24, 0.66);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.me-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.me-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: #fff; }
.me-logo img { width: 38px; height: auto; }
.me-nav-links { display: flex; align-items: center; gap: 4px; }
.me-nav-links a {
  position: relative; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  font-family: var(--f-display); font-weight: 600; font-size: 15px; color: var(--ink-dim);
  transition: color 0.25s, background-color 0.25s;
}
.me-nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.me-nav-links a[aria-current="page"] { color: #fff; }
.me-nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.5; }
.me-nav-cta { display: flex; align-items: center; gap: 10px; }
.me-burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, 0.07); cursor: pointer; align-items: center; justify-content: center; }
.me-burger span, .me-burger span::before, .me-burger span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; position: relative; transition: transform 0.3s var(--ease-out), opacity 0.2s; }
.me-burger span::before, .me-burger span::after { content: ""; position: absolute; left: 0; }
.me-burger span::before { top: -6px; }
.me-burger span::after { top: 6px; }
.me-nav.is-open .me-burger span { background: transparent; }
.me-nav.is-open .me-burger span::before { transform: translateY(6px) rotate(45deg); }
.me-nav.is-open .me-burger span::after { transform: translateY(-6px) rotate(-45deg); }
/* Five links need about 1,030px on one line (Talent Services added 2026-11-22), so the burger takes
   over below 1,080px. */
@media (max-width: 1080px) {
  .me-nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 24px; background: rgba(6, 9, 24, 0.96);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 1px 0 var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease-out);
  }
  .me-nav-links a { padding: 14px 4px; font-size: 18px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .me-nav-links a[aria-current="page"]::after { display: none; }
  .me-nav.is-open .me-nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .me-nav.is-open { background: rgba(6, 9, 24, 0.96); }
  .me-burger { display: inline-flex; }
  .me-nav-cta .btn { display: none; }
}

/* Light nav: while a section marked data-nav-theme="light" (an ivory section) sits under the nav,
   site.js adds .on-light. Desktop only; the open phone menu stays dark. */
@media (min-width: 1081px) {
  .me-nav { transition: background-color 0.4s, backdrop-filter 0.4s, box-shadow 0.4s, color 0.4s; }
  .me-nav.on-light.is-scrolled { background: rgba(246, 243, 236, 0.8); box-shadow: 0 1px 0 rgba(11, 19, 36, 0.08); }
  .me-nav.on-light .me-logo { color: var(--ink-dark); }
  .me-nav.on-light .me-logo img { filter: brightness(0); opacity: 0.9; }
  .me-nav.on-light .me-nav-links a { color: var(--ink-dark-dim); }
  .me-nav.on-light .me-nav-links a:hover { color: var(--ink-dark); background: rgba(11, 19, 36, 0.06); }
  .me-nav.on-light .me-nav-links a[aria-current="page"] { color: var(--ink-dark); }
  .me-nav.on-light .btn-ghost { color: var(--ink-dark); background: rgba(11, 19, 36, 0.05); box-shadow: inset 0 0 0 1px rgba(11, 19, 36, 0.18); }
}

/* Cards */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}

/* Reveal on scroll: add data-reveal; site.js adds .is-in. Stagger with style="--d:120ms".
   ⚠️ A page rule that sets `transition` on a [data-reveal] element replaces this one and the element
   never fades in. Put hover transitions on a child or a pseudo-element instead. */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0ms); }
[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(0.96); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Hero canvas helper: a full-bleed canvas behind hero content */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Footer */
.me-footer { position: relative; border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--night-0); color: var(--ink-dim); font-size: 14.5px; }
.me-footer .wrap { display: grid; gap: 36px; }
.me-footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.me-footer-cols { display: flex; flex-wrap: wrap; gap: 48px; }
/* Footer group labels are h2 (the page's last heading is an h2, so h4 skipped levels) styled small. */
.me-footer-h, .me-footer h4 { margin: 0 0 12px; font-family: var(--f-display); font-size: 14px; font-weight: 700; letter-spacing: 0; color: var(--ink); }
.me-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.me-footer a:hover { color: #fff; }
.me-footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-faint); }
