/* Landing variants (track 94): the deck (deck.js, founder 2026-11-11), for every style
   but E. The opening (the wordmark and its meaning, then the page's words and buttons),
   the sections as slides on one pinned stage, and the side index. Each style gives the
   index and the change of slide its own look at the end of this file. */
:root { --navh: 74px; }
@media (max-width: 640px) { :root { --navh: 64px; } }

/* ---- the opening, in both modes ---- */
.lead { position: relative; text-align: center; }
.lead .mark-stage { position: relative; width: min(84vw, 760px); aspect-ratio: 670 / 215; margin: 0 auto; }
.lead .mark-stage canvas, .lead .mark-stage img { position: absolute; inset: 0; width: 100%; height: 100%; }
.lead .mark-stage canvas.is-live + img { opacity: 0; }
/* the meaning, small and conversational; "Ojibwe" links to its source (Ojibwe People's Dictionary) */
.lead .meaning { margin: 16px auto 0; max-width: 31rem; padding-inline: 16px; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.5; }
.lead .meaning b { color: var(--coral-ink); }
.lead .meaning a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lead .cue { margin: clamp(28px, 6vh, 64px) 0 0; color: var(--ink-faint); font-size: 0.92rem; display: grid; justify-items: center; gap: 8px; }
.lead .cue::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--ink-faint), transparent); }
.lead-open { padding-inline: var(--gutter); }
.lead-open > * { margin-inline: auto; }
.lead-open h1 { margin-top: 0; max-width: 20ch; }
.lead-open h1 .t { color: var(--btn-teal); } .lead-open h1 .c { color: var(--btn-coral); }
:root[data-theme="dark"] .lead-open h1 .t { color: var(--green); } :root[data-theme="dark"] .lead-open h1 .c { color: var(--coral-ink); }
.lead-open .lede { margin-top: 18px; max-width: 38rem; }
.lead-open .replies { max-width: 30rem; text-align: left; }
.lead-open .signin { margin: 18px 0 0; color: var(--ink-soft); font-size: 0.95rem; }

/* motion off: a full screen for the wordmark, then the words, then the sections */
.deck:not(.deck-live) .lead-mark { min-height: calc(100svh - var(--navh)); display: grid; place-content: center; padding: 24px 0; }
.deck:not(.deck-live) .lead-open { padding-block: clamp(48px, 10vh, 120px); }

/* ---- the pinned deck (motion on) ---- */
html.deck-live { background: var(--page); }
html.deck-live body { background: transparent; padding-bottom: 0; }
/* the background scene (motion.js), fixed behind the stage */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.backdrop canvas { position: absolute; inset: -6%; width: 112%; height: 112%; mix-blend-mode: multiply; opacity: 0.55; will-change: transform;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,.22) 0%, #000 72%); mask-image: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,.22) 0%, #000 72%); }
body[data-theme="dark"] .backdrop canvas { mix-blend-mode: screen; opacity: 0.46; }
/* the preview bar sits along the bottom of the window; slides keep clear of it */
:root { --deck-foot: 32px; }
:root:has(#previewBanner) { --deck-foot: 84px; }
.deck-live #top > .nav { position: fixed; inset: 0 0 auto; z-index: 30; transition: background 300ms ease, box-shadow 300ms ease; }
.deck-live.deck-in #top > .nav, .deck-live.deck-solid #top > .nav { background: color-mix(in srgb, var(--page) 86%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
/* the small mark waits until the big one has gone (both modes) */
.deck:not(.deck-in) #top > .nav .mark { opacity: 0; pointer-events: none; }
.deck #top > .nav .mark { transition: opacity 300ms ease; }
.deck-track { position: relative; }
.deck-live .deck-stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
.deck-live .slide { position: absolute; inset: 0; overflow: clip; transition: transform 760ms cubic-bezier(0.76, 0, 0.24, 1); will-change: transform; }
.deck-live .slide[data-pos="next"] { transform: translate3d(0, 100%, 0); }
.deck-live .slide[data-pos="past"] { transform: translate3d(0, -100%, 0); }
.deck-live .slide[data-pos="on"] { transform: none; }
.deck-live .slide.jump { transition: none !important; }
.deck-live .slide-in { min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--navh) + 14px) 0 var(--deck-foot); will-change: transform; }
.deck-live .slide-in > .sec { width: 100%; padding-block: 8px; }
.deck-live .slide-in > .sec > .sec-head { margin-bottom: clamp(20px, 3.2vh, 40px); }
.deck-live [data-focus] { will-change: transform, opacity; }

/* the opening on the stage: the wordmark and the words share the middle of the screen */
.deck-live .slide-lead .slide-in { padding: 0; }
.deck-live .lead { position: absolute; inset: 0; }
.deck-live .lead-mark, .deck-live .lead-open { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: safe center; }
.deck-live .lead-mark { padding: var(--navh) 16px var(--deck-foot); }
.deck-live .lead-open { padding-top: calc(var(--navh) + 12px); padding-bottom: var(--deck-foot); overflow: visible; }
.deck-live .lead .industry-canvas { display: none; }

/* a slide's parts build in, one after another, as it arrives (translate and a filter,
   so they compose with the drift and focus deck.js sets) */
/* a fade only: parts that moved on their own could slide over their neighbours' words */
@keyframes deck-build { from { filter: opacity(0); } to { filter: none; } }
.deck-live .slide.enter:not(.slide-lead) [data-focus] { animation: deck-build 520ms ease both; animation-delay: calc(280ms + min(var(--k, 0), 6) * 90ms); }

/* sections as slides */
.deck-live .promises { border: 0; padding: 0 var(--gutter); background: none; }
.deck .slide-promises, .deck-live .slide-promises .slide-in { background: transparent; }
.deck .promises ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 4vh, 44px) clamp(20px, 4vw, 64px); max-width: 980px; font-size: clamp(1.25rem, 1rem + 1.4vw, 2.1rem); font-weight: 700; line-height: 1.2; }
.deck .promises li { justify-content: flex-start; text-align: left; gap: 0.7em; }
.deck .promises li::before { width: 0.7em; height: 0.7em; }
@media (max-width: 640px) { .deck .promises ul { grid-template-columns: 1fr; } }
.deck:not(.deck-live) .promises { padding-block: clamp(48px, 8vw, 96px); }
.deck .sig h2 { max-width: 22ch; margin-inline: auto; }
.deck .sig-a h2 { font-size: clamp(2rem, 1.2rem + 3.4vw, 4rem); }
.deck .sig-a .q, .deck .sig-a .q2 { color: var(--coral); }
.deck .sig-b .sig-letter { max-width: 46rem; margin: 0 auto; }
.deck .sig-b .dateline { text-align: center; }
.deck .sig-c .trail-wrap { max-width: 1240px; margin: 0 auto; }
.deck .sig-d table { margin: 0 auto; }
.deck .sig-d .readers { margin-top: 22px; }
.deck .sig-d .sample-note { text-align: center; }
.deck .foot { position: relative; z-index: 1; background: var(--page); }

/* ---- the side index ---- */
.deck-index { position: fixed; right: clamp(4px, 1.4vw, 22px); top: 50%; transform: translateY(-50%); z-index: 25; transition: opacity 300ms ease, visibility 0s; }
/* hidden during the opening: out of the tab order and the accessibility tree too, so
   nothing offers buttons that cannot be pressed (agent QA 2026-11-19) */
.deck:not(.deck-in) .deck-index { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity 300ms ease, visibility 0s 300ms; }
.deck-index ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; position: relative; }
.deck-index button { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 10px; width: 100%; background: none; border: 0; padding: 5px 4px; cursor: pointer; color: var(--ink); font: 600 0.88rem/1.2 "Fira Sans", sans-serif; }
.deck-index .di-mark { width: 10px; height: 10px; flex: none; background: var(--ink-faint); transition: background 200ms ease, transform 200ms ease, width 200ms ease; }
.deck-index button[aria-current] .di-mark { background: var(--btn-coral); transform: scale(1.35); }
.deck-index .di-label { position: absolute; right: calc(100% + 4px); white-space: nowrap; padding: 6px 11px; background: var(--ink); color: var(--page); opacity: 0; transform: translateX(6px); transition: opacity 180ms ease, transform 180ms ease; pointer-events: none; }
.deck-index button:hover .di-label, .deck-index button:focus-visible .di-label { opacity: 1; transform: none; }
/* after a click the pointer still rests on the mark; its label hid the slide it opened (agent QA 2026-11-19) */
.deck-index.picked .di-label { opacity: 0 !important; }
/* on touch screens (no hover) a tap on the index opens it, every title beside its mark,
   on a soft panel; a tap on a title goes there and closes it */
@media (hover: none) {
  .deck-index.open { right: 0; padding: 12px 10px 12px 18px; background: color-mix(in srgb, var(--page) 94%, transparent); box-shadow: -12px 0 40px -18px rgba(0, 0, 0, 0.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .deck-index.open .di-label { position: static; opacity: 1; transform: none; pointer-events: auto; }
  .deck-index.open button { padding-block: 6px; }
}
.deck-index button:focus-visible { outline: 3px solid var(--sun); outline-offset: 1px; }
@media (max-width: 640px) {
  .deck-live .slide-in { padding-right: 12px; }
  .deck-index button { padding: 3px 2px; }
  .v-f .deck-index .di-mark { width: 10px; }
  .v-f .deck-index button[aria-current] .di-mark { width: 16px; }
  .v-a .deck-index .di-mark { width: 11px; }
  .v-a .deck-index button[aria-current] .di-mark { width: 16px; }
  .deck-index .di-mark { width: 7px; height: 7px; }
}
@media (max-height: 600px) { .deck-index button { padding-block: 2px; } }

/* ================= each style ================= */

/* A, Receipts: each mark a small ticket stub, notched; the current one coral */
.v-a .deck-index .di-mark { width: 16px; height: 9px; -webkit-mask: radial-gradient(circle at 50% 0, transparent 3px, #000 3.5px); mask: radial-gradient(circle at 50% 0, transparent 3px, #000 3.5px); }
.v-a .deck-index button[aria-current] .di-mark { transform: none; width: 24px; }
.v-a .deck-index .di-label { background: var(--ink); -webkit-mask: radial-gradient(circle at 0 50%, transparent 5px, #000 5.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 5px, #000 5.5px) right / 51% 100% no-repeat; mask: radial-gradient(circle at 0 50%, transparent 5px, #000 5.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 5px, #000 5.5px) right / 51% 100% no-repeat; padding-inline: 16px; }

/* B, A note: small inked dots, the current one ringed in coral; the title in italics */
.v-b .deck-index .di-mark { width: 7px; height: 7px; border-radius: 50%; }
.v-b .deck-index button[aria-current] .di-mark { background: transparent; box-shadow: inset 0 0 0 2px var(--coral); transform: scale(1.7); }
.v-b .deck-index .di-label { background: var(--card); color: var(--ink); font-style: italic; font-weight: 500; box-shadow: 0 1px 0 var(--line), 0 10px 24px -14px rgba(14, 40, 33, 0.5); }

/* C, The trail: the stops on a dashed route, walked ones green, a coral pin where you are */
.v-c .deck-index ol::before { content: ""; position: absolute; right: 8.5px; top: 12px; bottom: 12px; border-right: 2px dashed var(--line); }
.v-c .deck-index .di-mark { position: relative; width: 11px; height: 11px; border-radius: 50%; background: var(--page); box-shadow: inset 0 0 0 2px var(--ink-faint); }
.v-c .deck-index .walked .di-mark { background: var(--green); box-shadow: none; }
.v-c .deck-index button[aria-current] .di-mark { background: var(--coral); box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 28%, transparent); transform: none; }

/* D, Plainly stated: short bars, the current one long and dark */
.v-d .deck-index .di-mark { width: 14px; height: 3px; }
.v-d .deck-index button[aria-current] .di-mark { width: 30px; background: var(--ink); transform: none; }
.v-d .deck-index button { padding-block: 7px; }

/* F, Interlock: small slanted pieces paired teal and coral; the current one solid, the
   title on a slanted plate in its colour. The change of slide comes in on the A's slant. */
.v-f .deck-index .di-mark { width: 14px; height: 10px; clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); background: color-mix(in srgb, var(--teal) 40%, transparent); }
.v-f .deck-index li:nth-child(odd) .di-mark { background: color-mix(in srgb, var(--coral-b) 45%, transparent); }
.v-f .deck-index button[aria-current] .di-mark { background: var(--btn-teal); width: 26px; transform: none; }
.v-f .deck-index li:nth-child(odd) button[aria-current] .di-mark { background: var(--btn-coral); }
.v-f .deck-index .di-label { background: var(--btn-teal); color: #fff; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); padding-inline: 18px; }
.v-f .deck-index li:nth-child(odd) .di-label { background: var(--btn-coral); }
.v-f.deck-live .slide { transition: transform 760ms cubic-bezier(0.76, 0, 0.24, 1), clip-path 760ms cubic-bezier(0.76, 0, 0.24, 1); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.v-f.deck-live .slide[data-pos="next"] { clip-path: polygon(0 9%, 100% 0, 100% 100%, 0 100%); }
.v-f.deck-live .slide[data-pos="past"] { clip-path: polygon(0 0, 100% 0, 100% 91%, 0 100%); }
.v-f .slide-promises { background: var(--ink); color: var(--page); }
:root[data-theme="dark"].v-f .slide-promises { background: var(--paper-2); color: var(--ink); }
.v-f.deck-live .slide-mission { background: var(--btn-teal); }
.v-f.deck-live .slide-mission .mission { background: transparent; }

/* ================= What is Maajii (round 10, founder 2026-11-11) =================
   Between the wordmark and the page's words: a person at Maajii in the middle, the three
   kinds of people around it, each with what is useful to them. Lines run from the middle
   to each, with a dot travelling along them. */
.lead-what { text-align: center; }
.what-in { max-width: 1040px; margin: 0 auto; padding-inline: var(--gutter); }
.what-title { margin: 0.4rem 0 0; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.015em; }
.what-line { margin: 0.7rem auto 0; max-width: 40rem; color: var(--ink-soft); font-size: clamp(1.02rem, 0.96rem + 0.35vw, 1.2rem); }
.what-map { margin-top: clamp(16px, 3vh, 32px); }
.what-hub { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 10px 18px; background: var(--ink); color: var(--page); font-weight: 700; font-size: 0.98rem; }
.hub-leaf { width: 18px; height: 18px; flex: none; background: url("/assets/brand/maajii-maple-leaf.svg") center / contain no-repeat; }
.what-links { display: block; width: 100%; height: auto; margin: 0 0 -2px; overflow: visible; }
.what-links .wl { fill: none; stroke: var(--ink-faint); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 5 6; }
.what-links .wd { fill: var(--coral); }
.what-roles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); text-align: left; align-items: start; }
.role { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--btn-teal); padding: 16px 18px 18px; box-shadow: 0 18px 36px -30px rgba(14, 40, 33, 0.5); }
.role:nth-child(2) { border-top-color: var(--btn-coral); }
.role p, .role h3 { margin: 0; }
.role-who { font-size: 0.86rem; font-weight: 700; color: var(--ink-soft); }
.role h3 { margin-top: 2px; font-size: 1.3rem; }
.role-gets { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; }
.role-gets li { position: relative; padding-left: 20px; color: var(--ink-soft); font-size: 0.97rem; line-height: 1.38; }
.role-gets li::before { content: ""; position: absolute; left: 0; top: 0.36em; width: 11px; height: 11px; background: url("/assets/brand/maajii-maple-leaf.svg") center / contain no-repeat; }
.role-brings { margin-top: 8px !important; color: var(--ink-soft); }
.what-roles.has-focus .role:not(.focus) { margin-top: 28px; }
.role.focus { padding: 20px 22px 22px; box-shadow: 0 24px 48px -26px rgba(14, 40, 33, 0.55); }
.role.focus h3 { font-size: 1.5rem; }
@media (max-width: 760px) {
  .what-links { display: none; }
  .what-map { display: grid; gap: 12px; }
  .what-hub { justify-self: center; font-size: 0.92rem; }
  .what-roles { grid-template-columns: 1fr; gap: 10px; }
  .what-roles.has-focus .role:not(.focus) { margin-top: 0; }
  .what-roles.has-focus .role.focus { order: -1; }
  .role { padding: 12px 14px 14px; }
  .role-gets { margin-top: 6px; gap: 4px; }
  .role-gets li { font-size: 0.93rem; }
}
/* motion off: its own block between the wordmark and the words */
.deck:not(.deck-live) .lead-what { padding-block: clamp(40px, 8vh, 96px); }
/* on the stage: the third layer of the opening */
.deck-live .lead-what { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: safe center; padding: calc(var(--navh) + 12px) 0 var(--deck-foot); }
.deck-live .lead-what .wl { stroke-dashoffset: 60; transition: stroke-dashoffset 1.2s ease; }
.deck-live .lead-what.drawn .wl { stroke-dashoffset: 0; }

/* ---- each style: What is Maajii, the five questions, what comes with it ---- */
/* A, Receipts: cards are slips with a tear-off edge; the questions on a ledger line */
.v-a .role, .v-a .feat { border: 0; box-shadow: 0 1px 0 var(--line), 0 16px 34px -26px rgba(14,40,33,.5); }
.v-a .role { background-image: linear-gradient(90deg, var(--btn-teal) 0 100%); background-size: 100% 3px; background-repeat: no-repeat; background-color: var(--card); }
.v-a .role:nth-child(2) { background-image: linear-gradient(90deg, var(--btn-coral) 0 100%); }
.v-a .feat { border-top: 2px dashed var(--line); }
.v-a .what-hub { transform: rotate(-1.5deg); }
/* B, A note: cards as notes, the hub a postmark-like stamp, questions in italics */
.v-b .role, .v-b .feat { border: 0; border-left: 0; box-shadow: 0 1px 0 var(--line), 0 22px 50px -32px rgba(14,40,33,.5); }
.v-b .role { border-top: 0; background-image: linear-gradient(to right, transparent 10px, rgba(217,121,98,.45) 10px, rgba(217,121,98,.45) 11px, transparent 11px); }
.v-b .what-hub { background: var(--card); color: var(--ink); font-style: italic; font-weight: 600; box-shadow: inset 0 0 0 2px var(--coral); }
/* C, The trail: the lines are the route, the people are stops, questions are stops on a dashed line */
.v-c .what-links .wl { stroke: var(--green); stroke-dasharray: 2 7; stroke-width: 2.2; stroke-linecap: round; }
.v-c .role { border-top: 0; border-radius: 0; position: relative; }
.v-c .role::before { content: ""; position: absolute; left: 50%; top: -7px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--page); }
.v-c .role:nth-child(2)::before { background: var(--coral); }
.v-c .what-hub { border-radius: 999px; background: var(--green); color: #fff; }
.v-c .feat-icon { border-radius: 50%; }
/* D, Plainly stated: flat, ruled, no shadows */
.v-d .role, .v-d .feat { box-shadow: none; border: 1px solid var(--line); border-top: 3px solid var(--ink); }
.v-d .role:nth-child(2) { border-top-color: var(--green); }
.v-d .what-hub { background: transparent; color: var(--ink); box-shadow: inset 0 -3px 0 var(--green); padding-inline: 4px; }
/* F, Interlock: the people pair teal and coral by turn, cut by a seam; the hub a slanted plate */
.v-f .role { border: 0; border-top: 4px solid var(--teal); box-shadow: 0 0 0 var(--seam) var(--page), 0 20px 40px -26px rgba(14,40,33,.45); }
.v-f .role:nth-child(2) { border-top-color: var(--coral-b); }
.v-f .what-hub { background: var(--btn-teal); color: #fff; clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); padding-inline: 28px; }
.v-f .what-hub .hub-leaf { filter: brightness(0) invert(1); }
.v-f .what-links .wd { fill: var(--coral-b); }

/* slides that run their own sequence (seq.js): the stage is the whole slide */
.deck-live .slide.seq .slide-in { padding: 0; display: block; height: 100%; min-height: 0; }
.deck-live .slide.seq .slide-in > .sec { position: absolute; inset: 0; max-width: none; padding: 0; margin: 0; }
/* the mission keeps its colour and gets its own scene (scenes.js) */
.slide-mission > .slide-in, #mission > :not(.mission-scene) { position: relative; z-index: 1; }
#mission { position: relative; overflow: hidden; }

/* phones: the side index sits in the right margin, so the margins are wide enough that
   no words run under it (founder 2026-11-11: text never overlaps) */
@media (max-width: 640px) { html.deck-live { --gutter: 30px; } }
/* rows that slide sideways (the answer cards, the founders) and the big centred words
   stop short of the index on both sides, so nothing passes under its marks */
html.deck-live { --deck-clear: calc(clamp(4px, 1.4vw, 22px) + 30px); }
.deck-live .fq-rail { overflow-x: clip; overflow-y: visible; margin-inline: var(--deck-clear); }
.deck-live .fq-track { padding-inline: calc(50vw - var(--deck-clear) - min(170px, 39vw)); }
.deck-live .dcar-view { margin-inline: var(--deck-clear); }
.deck-live .fq-beat { width: min(100vw - 2 * var(--deck-clear), 56rem); }
.deck-live .truth { width: min(100vw - 2 * var(--deck-clear), 46rem); }
@media (max-width: 640px) {
  .v-d .deck-index .di-mark { width: 10px; }
  .v-d .deck-index button[aria-current] .di-mark { width: 16px; }
  .deck-live .ta { font-size: 0.95rem; }
  .deck-live .ta-link { width: 24px; }
  .deck-live .ta-dst { white-space: normal; max-width: 8.5em; text-align: center; padding-inline: 12px; }
  .deck-live.v-f .ta-dst { padding-inline: 16px; }
  .deck-live .ta-modes span { padding-inline: 12px; }
  .deck-live.v-f .ta-modes span { padding-inline: 18px; }
}
