/* MAMS in full (/mams/info). Loaded only by that page, on top of styles.css.
   The page reads like an eleven-page PDF: every section is a msheet with a header, a footer and a page
   number, and print turns each msheet into one A4 page. Two sheets stand out on purpose:
   "How you use it" carries the moving ring frame (--iris), and the video editor carries ember,
   a warm colour no other part of the site uses, because it is the most advanced agent. */

.mi { --ember: #ff7a45; --ember-2: #ffb347; --ember-ink: #b8461b; --ember-line: rgba(255, 122, 69, .38);
  --emberg: linear-gradient(100deg, #ff5f3d, var(--ember) 40%, var(--ember-2));
  --sheet-w: 60rem;
  position: relative; display: flex; justify-content: center; align-items: flex-start; gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(6.5rem, 13vh, 8.5rem) var(--pad) 4rem; }
.mi__pages { min-width: 0; flex: 1 1 auto; max-width: var(--sheet-w); }
.mi__index { flex: 0 0 13rem; }

/* the page index: sticky on wide screens, hidden on narrow ones (the cover carries the contents) */
.mi__index { position: sticky; top: 6.5rem; align-self: start; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; }
.mi__index-label { text-transform: uppercase; letter-spacing: .2em; color: var(--muted); margin-bottom: 1rem; }
.mi__index ol { display: grid; gap: .1rem; border-left: 1px solid var(--line); }
.mi__index a { display: flex; gap: .7rem; align-items: center; min-height: 2.75rem; padding: 0 .8rem; text-decoration: none; color: var(--muted); border-left: 2px solid transparent; margin-left: -1px; transition: color .25s, border-color .25s, background .25s; }
.mi__index a span { opacity: .6; }
.mi__index a:hover { color: var(--ink); }
.mi__index a[aria-current="true"] { color: var(--ink); border-left-color: var(--blue); background: rgba(78, 159, 214, .08); }
.mi__index a.is-hot { color: var(--core); }
.mi__index a.is-ember { color: var(--ember-2); }
.mi__index a.is-ember[aria-current="true"] { border-left-color: var(--ember); background: rgba(255, 122, 69, .1); }
.mi__save { margin-top: 1.4rem; min-height: 2.75rem; padding: 0 1rem; width: 100%; border: 1px solid var(--line); font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); transition: border-color .25s, background .25s; }
.mi__save:hover { border-color: var(--blue); background: rgba(78, 159, 214, .1); }

/* the msheet: one page of the file. A4 proportion on wide screens; content can still grow it. */
.msheet { position: relative; margin: 0 0 clamp(1.8rem, 4vw, 3rem); padding: clamp(3.6rem, 6vw, 4.6rem) clamp(1.4rem, 5vw, 4.2rem) clamp(4.2rem, 7vw, 5.2rem);
  background: linear-gradient(180deg, #0b1017, #070a0f); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .9), 0 0 0 1px rgba(234, 244, 255, .03) inset; scroll-margin-top: 5.5rem; overflow: clip; }
/* clip, not hidden: a clipped box is not a scroll container, so the A4 ratio stays a minimum and a
   longer page grows instead of cutting its content off */
@media (min-width: 900px) { .msheet { aspect-ratio: 1 / 1.3; } }
.msheet::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(78,159,214,.55) 30%, rgba(122,108,240,.55) 70%, transparent); }
.msheet__head, .msheet__foot { position: absolute; left: clamp(1.4rem, 5vw, 4.2rem); right: clamp(1.4rem, 5vw, 4.2rem); display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.msheet__head { top: 1.4rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.msheet__foot { bottom: 1.4rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.msheet__lead { font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.55; color: var(--muted); max-width: 58ch; margin-top: 1.3rem; }
.msheet__small { margin-top: 1.8rem; font-family: var(--mono); font-size: .7rem; line-height: 1.6; letter-spacing: .03em; color: var(--muted); max-width: 70ch; }
.msheet h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: 1.22rem; line-height: 1.05; }
.mi .display--md { max-width: 22ch; }
.mi .accent { color: var(--blue); }
[data-theme="alive"] .mi .accent { background: linear-gradient(100deg, var(--teal), var(--blue) 35%, var(--violet) 65%, var(--blue) 85%, var(--teal)); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 9s linear infinite; }
.mini { margin-bottom: .7rem; color: var(--core); }
.mini--gap { margin-top: 2.6rem; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.6rem); margin-top: 1.8rem; color: #c9d3df; font-size: .98rem; }
.callout { margin-top: 2rem; padding: 1.1rem 1.3rem; border-left: 3px solid; border-image: linear-gradient(180deg, var(--teal), var(--violet)) 1; background: rgba(78, 159, 214, .06);
  font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.02rem, 1.5vw, 1.25rem); line-height: 1.15; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips span { padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 99px; font-size: .8rem; color: #c9d3df; background: rgba(255, 255, 255, .02); }
.ticks { display: grid; gap: .75rem; margin-top: 1rem; }
.ticks li { position: relative; padding-left: 1.5rem; color: #c9d3df; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7rem; height: 1px; background: var(--iris); }

/* 01 cover */
.msheet--cover { display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem;
  background: radial-gradient(60rem 40rem at 85% -10%, rgba(122, 108, 240, .22), transparent 60%), radial-gradient(40rem 30rem at -10% 110%, rgba(54, 224, 208, .14), transparent 60%), linear-gradient(180deg, #0b1017, #05070b); }
.msheet--cover::after { content: ""; position: absolute; width: 34rem; aspect-ratio: 1; right: -12rem; top: -10rem; border-radius: 50%; border: 1px solid transparent; pointer-events: none;
  background: linear-gradient(#0a0e14, #0a0e14) padding-box, conic-gradient(from 120deg, var(--teal), var(--blue), var(--violet), transparent 70%) border-box; opacity: .55; animation: spin 80s linear infinite; }
.cover { position: relative; z-index: 1; padding-top: 1.5rem; }
.cover__title { font-size: clamp(2.6rem, 6.6vw, 5.4rem); max-width: 14ch; }
.cover__lead { margin-top: 1.6rem; max-width: 52ch; font-size: clamp(1.02rem, 1.35vw, 1.2rem); line-height: 1.55; color: #c9d3df; }
.cover__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 2.4rem; background: var(--line); border: 1px solid var(--line); }
.cover__stats li { background: #090d13; padding: 1.1rem 1rem; }
.cover__stats b, .estats b, .mwall b, .facts b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1; font-variant-numeric: tabular-nums; }
.cover__stats small { font-size: .5em; letter-spacing: .08em; }
.cover__stats span, .estats span, .mwall span { display: block; margin-top: .45rem; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contents { position: relative; z-index: 1; }
.contents__label { font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.contents__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
.contents__list a { display: flex; gap: .9rem; align-items: center; min-height: 2.75rem; border-bottom: 1px solid var(--line); text-decoration: none; font-size: .95rem; transition: color .25s, padding .25s; }
.contents__list a:hover { color: var(--core); padding-left: .3rem; }
.contents__list span { font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.contents__list .is-hot a { color: var(--core); font-weight: 600; }
.contents__list .is-hot span { color: var(--teal); }
.contents__list .is-ember a { color: var(--ember-2); }
.contents__list .is-ember span { color: var(--ember); }

/* 02 the team */
.crew { margin-top: 2rem; display: grid; gap: 1.4rem; }
.crew__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.agent { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; text-align: left; padding: 1.1rem 1rem 1rem; min-height: 9.5rem;
  border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, .02); transition: border-color .3s, background .3s, transform .3s var(--ease); }
.agent:hover { transform: translateY(-3px); border-color: rgba(78, 159, 214, .5); }
.agent[aria-selected="true"] { border-color: var(--blue); background: rgba(78, 159, 214, .1); box-shadow: 0 18px 40px -26px rgba(78, 159, 214, .9); }
.agent__mono { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; padding: .2rem .45rem; border: 1px solid var(--line); border-radius: 4px; color: var(--blue); }
.agent__name { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .02em; line-height: 1.05; margin-top: .3rem; }
.agent__line { font-size: .84rem; line-height: 1.4; color: var(--muted); }
.agent__brain { margin-top: auto; padding-top: .5rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); opacity: .8; }
.agent--ember { border-color: var(--ember-line); background: linear-gradient(160deg, rgba(255, 122, 69, .12), rgba(255, 179, 71, .03)); }
.agent--ember .agent__mono { color: var(--ember-2); border-color: var(--ember-line); }
.agent--ember .agent__name { color: #ffd9bf; }
.agent--ember:hover { border-color: var(--ember); }
.agent--ember[aria-selected="true"] { border-color: var(--ember); background: linear-gradient(160deg, rgba(255, 122, 69, .22), rgba(255, 179, 71, .06)); box-shadow: 0 18px 44px -24px rgba(255, 122, 69, .9); }
.agent__flag { position: absolute; top: -.6rem; right: .8rem; padding: .2rem .55rem; border-radius: 99px; background: var(--emberg); color: #1a0800; font-family: var(--mono); font-size: .58rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }

.mpanel { padding: 1.3rem 1.4rem; border: 1px solid var(--line); border-radius: 6px; background: rgba(2, 3, 5, .45); }
.mpanel h3 { color: var(--core); }
.mpanel p { color: #c9d3df; margin-top: .6rem; max-width: 62ch; }
.mpanel .link { margin-top: 1rem; }
.mpanel--ember { border-color: var(--ember-line); background: linear-gradient(160deg, rgba(255, 122, 69, .1), rgba(2, 3, 5, .4)); }
.mpanel--ember h3 { color: #ffd9bf; }
.mpanel--ember .ticks li::before { background: var(--emberg); }
.mpanel--ember .link::before { background: var(--emberg); }
/* with the script on, only the chosen mpanel shows; with it off, every mpanel shows one under another */
.js [data-mi-switch] .mpanel:not(.is-on) { display: none; }
.js [data-mi-switch] .mpanel.is-on { animation: mi-in .45s var(--ease) both; }
@keyframes mi-in { from { opacity: 0; transform: translateY(8px); } }
.crew__panels, .skills__panels, .ladder__panels { display: grid; gap: .8rem; }

/* 03 how you use it: the highlighted msheet, with the ring turning around its frame */
.msheet--hot { border-color: transparent; isolation: isolate;
  background: radial-gradient(50rem 30rem at 50% -10%, rgba(78, 159, 214, .2), transparent 60%), linear-gradient(180deg, #0c121b, #070a10); }
.msheet--hot::after { content: ""; position: absolute; inset: 0; border-radius: 6px; padding: 1.5px; z-index: -1; pointer-events: none;
  background: conic-gradient(from var(--mi-a, 0deg), var(--teal), var(--blue), var(--violet), transparent 40%, var(--teal));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: mi-turn 6s linear infinite; }
@property --mi-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes mi-turn { to { --mi-a: 360deg; } }
.msheet--hot { box-shadow: 0 0 80px -30px rgba(78, 159, 214, .55), 0 40px 90px -50px rgba(0, 0, 0, .9); }
.uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2.2rem; }
.use { position: relative; display: flex; flex-direction: column; gap: .7rem; padding: 1.5rem 1.4rem 1.3rem; min-height: 15rem; border: 1px solid var(--line); border-radius: 8px; text-decoration: none;
  background: linear-gradient(160deg, rgba(78, 159, 214, .1), rgba(122, 108, 240, .04) 60%, transparent); transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; }
.use:hover { transform: translateY(-4px); border-color: rgba(78, 159, 214, .6); box-shadow: 0 24px 50px -30px rgba(78, 159, 214, .9); }
.use h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); max-width: 16ch; }
.use p { font-size: .92rem; line-height: 1.5; color: #c9d3df; }
.use__tag { align-self: flex-start; padding: .25rem .6rem; border-radius: 99px; background: var(--iris); color: #04121c; font-family: var(--mono); font-size: .62rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.use__n { position: absolute; top: 1.1rem; right: 1.3rem; font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: rgba(234, 244, 255, .08); }
.use__go { margin-top: auto; font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.use__go::after { content: " \2192"; }
.use--ember { border-color: var(--ember-line); background: linear-gradient(160deg, rgba(255, 122, 69, .16), rgba(255, 179, 71, .04) 60%, transparent); }
.use--ember:hover { border-color: var(--ember); box-shadow: 0 24px 50px -30px rgba(255, 122, 69, .9); }
.use--ember .use__tag { background: var(--emberg); color: #1a0800; }
.use--ember .use__go { color: var(--ember-2); }
.use--ember h3 { color: #ffd9bf; }
.uses__more { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; margin-top: 1rem; padding: 1rem 1.3rem; min-height: 3rem; border: 1px dashed var(--line); border-radius: 8px; text-decoration: none; font-size: .92rem; color: #c9d3df; transition: border-color .3s; }
.uses__more:hover { border-color: var(--blue); }
.uses__more span { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }

/* 04 and 07: a flow of steps that lights one at a time (info.js) */
.flow, .loop { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; margin-top: 2.2rem; counter-reset: none; }
.loop { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.flow li, .loop li { position: relative; padding: 1rem .9rem; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, .02); cursor: pointer; transition: border-color .4s, background .4s, transform .4s var(--ease); }
.flow li::after, .loop li::after { content: ""; position: absolute; top: 50%; right: -.62rem; width: .6rem; height: 1px; background: var(--line); }
.flow li:last-child::after { display: none; }
.flow li.is-on, .loop li.is-on { border-color: var(--blue); background: rgba(78, 159, 214, .12); transform: translateY(-3px); }
.flow h3, .loop h3 { font-size: 1rem; margin-top: .6rem; }
.flow p, .loop p { font-size: .8rem; line-height: 1.45; color: var(--muted); margin-top: .4rem; }
.flow__n { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1px solid var(--line); font-family: var(--mono); font-size: .72rem; color: var(--blue); transition: background .4s, color .4s; }
.is-on > .flow__n { background: var(--blue); color: #03101a; border-color: var(--blue); }

/* 05 the video editor, in ember */
.msheet--ember { border-color: var(--ember-line);
  background: radial-gradient(50rem 32rem at 100% -10%, rgba(255, 122, 69, .22), transparent 60%), radial-gradient(30rem 24rem at -10% 100%, rgba(255, 179, 71, .1), transparent 60%), linear-gradient(180deg, #120c0a, #08070a); }
.msheet--ember::before { background: linear-gradient(90deg, transparent, rgba(255, 122, 69, .8) 30%, rgba(255, 179, 71, .8) 70%, transparent); }
.msheet--ember .msheet__head, .msheet--ember .msheet__foot { border-color: var(--ember-line); }
.eyebrow--ember { color: var(--ember-2); }
.eyebrow--ember::before { background: var(--emberg); }
.ember { color: var(--ember); }
[data-theme="alive"] .ember { background: linear-gradient(100deg, #ff5f3d, var(--ember) 35%, var(--ember-2) 65%, var(--ember) 85%, #ff5f3d); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 9s linear infinite; }
/* 05 the AI voice teleprompter: what it does beside its three steps, in ember like the editor */
.voice { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.2rem); align-items: center; margin-top: 2rem; padding: clamp(1.1rem, 3vw, 1.7rem);
  border: 1px solid var(--ember); border-radius: 10px; background: linear-gradient(140deg, rgba(255, 122, 69, .16), rgba(255, 179, 71, .04) 55%, rgba(2, 3, 5, .3)); box-shadow: 0 24px 60px -36px rgba(255, 122, 69, .8); }
.voice__tag { display: inline-block; padding: .25rem .6rem; border-radius: 99px; background: var(--emberg); color: #1a0800; font-family: var(--mono); font-size: .62rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.voice__copy h3 { margin-top: .8rem; font-size: clamp(1.3rem, 2.2vw, 1.75rem); color: #ffd9bf; }
.voice__copy p:not(.voice__tag) { margin-top: .7rem; font-size: .92rem; line-height: 1.55; color: #c9d3df; }
.flow.voice__steps { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
.voice__steps li::after { display: none; }
.voice__steps li { border-color: var(--ember-line); }
.voice__steps li.is-on { border-color: var(--ember); background: rgba(255, 122, 69, .14); }
.voice__steps .flow__n { color: var(--ember-2); border-color: var(--ember-line); }
.voice__steps .is-on > .flow__n { background: var(--emberg); color: #1a0800; border-color: transparent; }
.skills { margin-top: 2rem; display: grid; gap: 1rem; }
.skills__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.skills__chips button, .ladder__steps button, .rules__tabs button { min-height: 2.75rem; padding: 0 1rem; border: 1px solid var(--line); border-radius: 99px; font-size: .86rem; color: #c9d3df; transition: border-color .25s, background .25s, color .25s; }
.skills__chips button { border-color: var(--ember-line); }
.skills__chips button:hover { border-color: var(--ember); color: #fff; }
.skills__chips button[aria-selected="true"] { background: var(--emberg); color: #1a0800; border-color: transparent; font-weight: 600; }
.estats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; margin-top: 2rem; background: var(--ember-line); border: 1px solid var(--ember-line); }
.estats li { background: #0e0a09; padding: 1rem .9rem; }
.estats b { color: #ffd9bf; font-size: clamp(1.6rem, 2.8vw, 2.3rem); }

/* 06 more sales, on paper */
.msheet--paper { background: var(--paper); color: var(--paper-ink); border-color: rgba(8, 11, 16, .1);
  background-image: radial-gradient(rgba(8, 11, 16, .07) 1px, transparent 1.2px); background-size: 22px 22px; }
.msheet--paper .msheet__head, .msheet--paper .msheet__foot { color: var(--paper-muted); border-color: var(--line-paper); }
.msheet--paper .eyebrow { color: var(--blue-ink); }
.msheet--paper .msheet__lead { color: var(--paper-muted); }
.mi .msheet--paper .accent { color: var(--blue-ink); background: none; -webkit-background-clip: border-box; background-clip: border-box; animation: none; }
.ladder { margin-top: 2rem; display: grid; gap: 1rem; }
.ladder__label { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-muted); }
.ladder__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.ladder__steps button { border-radius: 6px; border-color: var(--line-paper); color: var(--paper-ink); background: #fff; text-align: left; display: flex; gap: .6rem; align-items: center; padding: .6rem .8rem; font-weight: 500; }
.ladder__steps button span { font-family: var(--mono); font-size: .7rem; color: var(--blue-ink); }
.ladder__steps button:nth-child(2) { margin-top: .6rem; } .ladder__steps button:nth-child(3) { margin-top: 1.2rem; } .ladder__steps button:nth-child(4) { margin-top: 1.8rem; }
.ladder__steps button[aria-selected="true"] { background: var(--paper-ink); color: #fff; border-color: var(--paper-ink); }
.ladder__steps button[aria-selected="true"] span { color: var(--teal); }
.mpanel--paper { background: #fff; border-color: var(--line-paper); }
.mpanel--paper h3 { color: var(--paper-ink); }
.mpanel--paper p { color: #2b3440; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.facts li { padding-top: 1rem; border-top: 2px solid var(--paper-ink); }
.facts b { color: var(--blue-ink); }
.facts span { display: block; margin-top: .5rem; font-size: .88rem; line-height: 1.5; color: #2b3440; }

/* 08 ads */
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.steps4 li { padding-top: 1rem; border-top: 1px solid var(--line); }
.steps4 span { font-family: var(--mono); font-size: .7rem; color: var(--blue); }
.steps4 h3 { margin-top: .5rem; font-size: 1.05rem; }
.steps4 p { margin-top: .4rem; font-size: .86rem; color: var(--muted); }
.rules { margin-top: 2rem; display: grid; gap: .8rem; }
.rules__tabs { display: flex; gap: .5rem; }
.rules__tabs button:hover { border-color: var(--blue); }
.rules__tabs button[aria-selected="true"] { background: var(--blue); color: #03101a; border-color: var(--blue); font-weight: 600; }

/* 09 brains and the number mwall */
.msheet--black { background: radial-gradient(46rem 30rem at 50% 0%, rgba(122, 108, 240, .16), transparent 60%), #030507; }
.brains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin-top: 2rem; }
.brain { position: relative; padding: 1.3rem 1.2rem; border-radius: 8px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(78, 159, 214, .08), transparent); overflow: hidden; }
.brain::after { content: ""; position: absolute; width: 9rem; aspect-ratio: 1; right: -3rem; top: -3rem; border-radius: 50%; background: radial-gradient(circle, rgba(122, 108, 240, .35), transparent 70%); }
.brain__n { font-family: var(--mono); font-size: .7rem; color: var(--teal); }
.brain h3 { margin-top: .6rem; color: var(--core); }
.brain p { margin-top: .6rem; font-size: .88rem; line-height: 1.5; color: #c9d3df; }
.brain__meta { font-family: var(--mono); font-size: .66rem !important; letter-spacing: .1em; text-transform: uppercase; color: var(--blue) !important; }
.mwall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 2rem; background: var(--line); border: 1px solid var(--line); }
.mwall li { background: #05070a; padding: 1.1rem 1rem; }
.mwall__big { grid-column: span 2; background: linear-gradient(120deg, rgba(54, 224, 208, .1), rgba(122, 108, 240, .12)) #05070a !important; }
.mwall__big b { background: var(--iris); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 10 the library: six tiles that each move in their own way, and the list each one opens.
   The editor's four tiles carry ember like the editor everywhere else. */
.vault { margin-top: 2rem; display: grid; gap: 1rem; }
.vault__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.tile { --c1: var(--teal); --c2: var(--violet); --glow: rgba(78, 159, 214, .9);
  position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: .2rem; padding: 1rem 1.1rem 1.1rem; min-height: 15.5rem;
  border-radius: 10px; border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  background: radial-gradient(18rem 10rem at 100% 0%, color-mix(in srgb, var(--c2) 22%, transparent), transparent 70%), linear-gradient(170deg, rgba(255, 255, 255, .04), rgba(2, 3, 5, .3));
  transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; }
.tile--ember { --c1: #ff5f3d; --c2: var(--ember-2); --glow: rgba(255, 122, 69, .9); border-color: var(--ember-line); }
.tile:hover { transform: translateY(-4px); border-color: var(--c1); }
.tile[aria-selected="true"] { border-color: transparent; box-shadow: 0 0 0 1.5px var(--c1), 0 22px 50px -26px var(--glow); }
.tile[aria-selected="true"]::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.tile__fx { position: relative; display: block; width: 100%; height: 5.2rem; margin-bottom: .5rem; }
.tile__tag { font-family: var(--mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tile--ember .tile__tag { color: var(--ember-2); }
.tile__n { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 4.6vw, 3.6rem); line-height: .95; margin-top: .2rem;
  background: linear-gradient(100deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.tile__name { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.2rem; letter-spacing: .03em; line-height: 1; }
.tile__line { margin-top: .4rem; font-size: .8rem; line-height: 1.45; color: var(--muted); }

/* hooks: three hook cards fanning out */
.fx-hooks i { position: absolute; left: 0; top: 1.2rem; padding: .35rem .6rem; border-radius: 6px; font-style: normal; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: .78rem; white-space: nowrap;
  background: #0d141d; border: 1px solid rgba(54, 224, 208, .45); color: var(--core); transform-origin: 0 100%;
  transform: translateX(var(--x)) rotate(var(--r)); animation: fan 4.5s var(--ease) infinite; }
.fx-hooks i:nth-child(1) { --r: -9deg; --x: 0; }
.fx-hooks i:nth-child(2) { --r: -2deg; --x: 2.4rem; animation-delay: .15s; border-color: rgba(78, 159, 214, .5); }
.fx-hooks i:nth-child(3) { --r: 6deg; --x: 4.8rem; animation-delay: .3s; border-color: rgba(122, 108, 240, .55); }
@keyframes fan { 0%, 100% { transform: translateX(0) rotate(0); opacity: .5; } 35%, 70% { transform: translateX(var(--x)) rotate(var(--r)); opacity: 1; } }
/* resting pose when motion is off: the cards fanned, the wipe half way */

/* strategy: a radar sweep over rings */
.fx-radar { width: 5.2rem; border-radius: 50%; border: 1px solid rgba(78, 159, 214, .35);
  background: radial-gradient(circle, transparent 30%, rgba(78, 159, 214, .25) 31%, transparent 33%, transparent 62%, rgba(78, 159, 214, .25) 63%, transparent 65%); }
.fx-radar i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(54, 224, 208, .75), transparent 28%); animation: spin 3.2s linear infinite; }
.fx-radar::after { content: ""; position: absolute; width: .45rem; height: .45rem; border-radius: 50%; left: 64%; top: 26%; background: var(--teal); box-shadow: 0 0 10px var(--teal); animation: blip 3.2s linear infinite; }
@keyframes blip { 0%, 20% { opacity: 0; } 25% { opacity: 1; } 60%, 100% { opacity: .15; } }

/* motion: three bodies orbiting a core */
.fx-orbit { width: 5.2rem; }
.fx-orbit::before { content: ""; position: absolute; inset: 1.9rem; border-radius: 50%; background: var(--emberg); box-shadow: 0 0 18px rgba(255, 122, 69, .7); }
.fx-orbit i { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--ember-line); animation: spin 4s linear infinite; }
.fx-orbit i::after { content: ""; position: absolute; top: -.25rem; left: 50%; width: .5rem; height: .5rem; margin-left: -.25rem; border-radius: 50%; background: var(--ember-2); box-shadow: 0 0 8px var(--ember-2); }
.fx-orbit i:nth-child(2) { inset: .7rem; animation-duration: 2.6s; animation-direction: reverse; }
.fx-orbit i:nth-child(3) { inset: 1.35rem; animation-duration: 1.7s; border-style: solid; }

/* transitions: one frame wiping into the next */
.fx-wipe { border-radius: 6px; overflow: hidden; background: linear-gradient(135deg, #1b2533, #0b1017); border: 1px solid var(--ember-line); }
.fx-wipe::before { content: "A"; position: absolute; left: .8rem; top: .5rem; font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: rgba(234, 244, 255, .25); }
.fx-wipe i { position: absolute; inset: 0; background: linear-gradient(120deg, #ff5f3d, var(--ember-2)); clip-path: polygon(0 0, 75% 0, 45% 100%, -30% 100%); animation: wipe 3s var(--ease) infinite; }
.fx-wipe i::before { content: "B"; position: absolute; right: .8rem; bottom: .3rem; font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: rgba(26, 8, 0, .45); }
@keyframes wipe { 0%, 15% { clip-path: polygon(0 0, 0 0, -30% 100%, -30% 100%); } 50%, 65% { clip-path: polygon(0 0, 130% 0, 100% 100%, -30% 100%); } 100% { clip-path: polygon(130% 0, 130% 0, 100% 100%, 100% 100%); } }

/* sound: an equaliser */
.fx-eq { display: flex; align-items: flex-end; gap: .35rem; }
.fx-eq i { flex: 1; max-width: .9rem; height: 30%; border-radius: 3px 3px 0 0; background: linear-gradient(0deg, #ff5f3d, var(--ember-2)); animation: eq 1.1s ease-in-out infinite alternate; }
.fx-eq i:nth-child(2) { animation-delay: -.3s; animation-duration: .8s; } .fx-eq i:nth-child(3) { animation-delay: -.6s; animation-duration: 1.3s; }
.fx-eq i:nth-child(4) { animation-delay: -.2s; animation-duration: .9s; } .fx-eq i:nth-child(5) { animation-delay: -.8s; animation-duration: 1.2s; }
.fx-eq i:nth-child(6) { animation-delay: -.4s; animation-duration: .7s; } .fx-eq i:nth-child(7) { animation-delay: -.1s; animation-duration: 1s; }
@keyframes eq { to { height: 100%; } }

/* edit styles: three reel frames shuffling */
.fx-frames i { position: absolute; top: 0; width: 2.9rem; height: 5.2rem; border-radius: 6px; border: 1px solid var(--ember-line); animation: shuffle 4.5s var(--ease) infinite; }
.fx-frames i:nth-child(1) { left: 0; background: linear-gradient(160deg, #2a1610, #0b0b10); --r: -8deg; }
.fx-frames i:nth-child(2) { left: 2.2rem; background: linear-gradient(160deg, #ff7a45, #45160a); --r: 0deg; animation-delay: .2s; z-index: 1; }
.fx-frames i:nth-child(3) { left: 4.4rem; background: linear-gradient(160deg, #1a2333, #0b1017); --r: 8deg; animation-delay: .4s; }
.fx-frames i::after { content: ""; position: absolute; left: .4rem; right: .4rem; bottom: .6rem; height: .3rem; border-radius: 2px; background: rgba(255, 255, 255, .55); }
@keyframes shuffle { 0%, 100% { transform: rotate(0) translateY(0); } 40%, 70% { transform: rotate(var(--r)) translateY(-.3rem); } }

.vault__panels { display: grid; }
.vault__label { margin: 1.1rem 0 .55rem !important; font-family: var(--mono); font-size: .66rem !important; letter-spacing: .14em; text-transform: uppercase; color: var(--muted) !important; }
.vault__label b { color: var(--ink); }
.mpanel--ember .vault__label b { color: var(--ember-2); }
.chips--ember span { border-color: var(--ember-line); color: #ffd9bf; background: rgba(255, 122, 69, .06); }
.fam { display: grid; gap: .55rem; margin-top: 1.1rem; }
.fam li { display: grid; grid-template-columns: 6rem minmax(0, 1fr) 2rem; gap: .8rem; align-items: center; font-size: .88rem; color: #c9d3df; }
.fam i { display: block; height: .7rem; border-radius: 99px; width: calc(var(--w) / var(--max, 28) * 100%); background: var(--emberg); box-shadow: 0 0 12px rgba(255, 122, 69, .4); }
.fam b { font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: #ffd9bf; text-align: right; }
.fam--iris i { background: linear-gradient(90deg, var(--teal), var(--blue), var(--violet)); box-shadow: 0 0 12px rgba(78, 159, 214, .4); }
.fam--iris b { color: var(--core); }
.vstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 1.2rem; background: var(--line); border: 1px solid var(--line); }
.vstats li { background: #070a0f; padding: .9rem 1rem; }
.vstats b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--core); }
.vstats span { display: block; margin-top: .35rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.js .mpanel.is-on .fam i { animation: grow 1s var(--ease) both; transform-origin: 0 50%; }
@keyframes grow { from { transform: scaleX(0); } }
.extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.extras li { padding: 1rem; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, .02); }
.extras b { display: block; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.extras span { display: block; margin-top: .35rem; font-size: .84rem; color: var(--muted); }

/* 11 the deal */
.msheet--deal { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(40rem 28rem at 50% 30%, rgba(78, 159, 214, .2), transparent 65%), linear-gradient(180deg, #0b1017, #05070b); }
.deal__title { font-size: clamp(2rem, 4.6vw, 3.8rem); max-width: 18ch; margin: 0 auto; }
.days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 2.4rem 0 0; width: 100%; text-align: left; }
.days li { padding-top: 1rem; border-top: 1px solid var(--blue); }
.days span { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.days h3 { margin-top: .4rem; font-size: 1.05rem; }
.days p { margin-top: .35rem; font-size: .86rem; color: var(--muted); }
.once { margin-top: 2.6rem; padding: 1.6rem clamp(1.2rem, 4vw, 2.4rem); border-radius: 10px; border: 1px solid rgba(78, 159, 214, .45); background: rgba(78, 159, 214, .08); max-width: 44rem; }
.once__big { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1; color: var(--core); }
.once p:not(.once__big) { margin-top: .8rem; color: #c9d3df; }
.deal__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }
.deal__small { margin-left: auto; margin-right: auto; text-align: center; }
.mi__back { text-align: center; }

/* the ads expert is an add-on: its tag sits where the editor's "Most advanced" sits, in the ring colours */
.agent__flag--add { background: var(--iris); color: #04121c; }

/* 05 made by MAMS: three reels from Ahmad's own Instagram, in Instagram's own embed frame */
.made { margin-top: 2.2rem; padding-top: 1.8rem; border-top: 1px solid var(--ember-line); }
.made h3 { margin-top: .8rem; font-size: clamp(1.3rem, 2.2vw, 1.75rem); color: #ffd9bf; }
.made > p:not(.voice__tag) { margin-top: .6rem; color: #c9d3df; max-width: 60ch; }
.made__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin-top: 1.3rem; }
.made__reel { display: grid; gap: .5rem; }
.made__reel iframe { display: block; width: 100%; height: 34rem; border: 1px solid var(--ember-line); border-radius: 10px; background: #fff; }
.made__link { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ember-2); text-decoration: none; min-height: 2.75rem; display: inline-flex; align-items: center; }
.made__link::after { content: " \2192"; white-space: pre; }

/* 11 the founder: the home page's founder section, set as a sheet */
.fdr { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.2rem, 3vw, 2.4rem); align-items: start; margin-top: .5rem; }
.fdr__photo img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.fdr__copy > p:not(.eyebrow):not(.msheet__lead) { margin-top: 1rem; color: #c9d3df; font-size: .95rem; }
.fdr__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 1.3rem; background: var(--line); border: 1px solid var(--line); }
.fdr__stats li { background: #070a0f; padding: .8rem .9rem; }
.fdr__stats b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1; background: var(--iris); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fdr__stats span { display: block; margin-top: .3rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fdr__path { display: grid; gap: .45rem; margin-top: 1.2rem; }
.fdr__path li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .8rem; font-size: .86rem; color: var(--muted); padding-bottom: .45rem; border-bottom: 1px solid var(--line); }
.fdr__path b { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--core); }
.fdr__label { margin-top: 2rem; font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.fdr__strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin-top: .7rem; }
.fdr__strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); filter: saturate(.9); }
.msheet--founder > .link { margin-top: 1.4rem; }

/* 12 what you pay */
.pay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-top: 1.2rem; max-width: 44rem; width: 100%; text-align: left; }
.pay li { padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(2, 3, 5, .4); }
.pay b { display: block; font-family: var(--mono); font-size: .66rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.pay span { display: block; margin-top: .35rem; font-size: .88rem; color: #c9d3df; }
.vstats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.print-only { display: none; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .mi__index { display: none; }
}
@media (max-width: 899px) {
  .crew__cards, .uses, .brains, .extras, .vault__tiles, .made__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow, .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li::after, .loop li::after { display: none; }
  .estats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .voice { grid-template-columns: minmax(0, 1fr); }
  .fdr { grid-template-columns: minmax(0, 1fr); }
  .fdr__photo { max-width: 22rem; }
  .fdr__strip, .vstats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mwall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ladder__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ladder__steps button:nth-child(n) { margin-top: 0; }
  .steps4, .days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .mi { padding-top: 5.6rem; padding-left: .7rem; padding-right: .7rem; }
  .msheet { padding-left: 1.15rem; padding-right: 1.15rem; }
  .msheet__head, .msheet__foot { left: 1.15rem; right: 1.15rem; font-size: .56rem; }
  .msheet__head span:first-child { display: none; }
  .cover__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contents__list, .cols2, .uses, .brains, .extras, .facts { grid-template-columns: minmax(0, 1fr); }
  .crew__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent { min-height: 8.5rem; }
  .agent__line { display: none; }
  .flow, .loop { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 13.5rem; padding: .9rem; }
  .fx-hooks i { font-size: .6rem; padding: .3rem .45rem; }
  .fx-hooks i:nth-child(2) { --x: 1.3rem; } .fx-hooks i:nth-child(3) { --x: 2.6rem; }
  .fx-hooks i:nth-child(1) { display: none; }
  .tile__line { display: none; }
  .fam li { grid-template-columns: 4.6rem minmax(0, 1fr) 1.8rem; }
  .estats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mwall__big { grid-column: span 2; }
  .mwall__big b { font-size: 1.7rem; }
  .use { min-height: 0; }
  .made__grid, .pay { grid-template-columns: minmax(0, 1fr); }
  .made__reel iframe { height: 36rem; }
}

/* reduced motion: nothing turns or slides */
@media (prefers-reduced-motion: reduce) {
  .msheet--hot::after, .msheet--cover::after, .tile__fx, .tile__fx *, .tile__fx::before, .tile__fx::after, .fam i { animation: none !important; }
  .js [data-mi-switch] .mpanel.is-on { animation: none; }
}

/* PRINT: one msheet per A4 page, the site chrome hidden, every mpanel shown */
@media print {
  @page { size: A4; margin: 0; }
  html { font-size: 9.5px; }
  html, body { background: #06080c !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body::before, body::after, .nav, .foot, .dock, .progress, .skip, .mi__index, .mi__back, .rail, .lens, .deal__actions { display: none !important; }
  .mi { display: block; padding: 0; }
  .msheet { width: 210mm; min-height: 297mm; aspect-ratio: auto; margin: 0; border-radius: 0; border: 0; box-shadow: none; break-after: page; break-inside: avoid; font-size: 11px; }
  .msheet:last-of-type { break-after: auto; }
  .js [data-mi-switch] .mpanel:not(.is-on) { display: block; }
  [data-mi-switch] .mpanel { animation: none !important; }
  .crew__panels, .skills__panels, .ladder__panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .js .vault .mpanel:not(.is-on) { display: none; }
  .made__reel iframe { display: none; }
  /* A4 is 794px wide, which would trigger the tablet layout: keep the wide grids on paper */
  .crew__cards, .brains, .extras, .vault__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .crew__panels, .skills__panels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .agent { min-height: 0; } .agent__line { display: none; }
  .skills__chips { display: none; }
  .voice { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) !important; }
  #p5 .estats { display: none; }   /* the same counts are on page 09 */
  .made__grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .made__link::after { content: " " attr(href); text-transform: none; letter-spacing: 0; }
  .fdr { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr) !important; }
  .fdr__photo { max-width: none !important; }
  .fdr__strip { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .print-only { display: block; margin-top: 1rem; font-family: var(--mono); font-size: .8rem; color: var(--core); }
  .tile__fx { display: none; }
  .tile { min-height: 0; }
}
