/* Proprietary and confidential. Copyright Clumsy Cloud Studio. All rights reserved.
   Made here. Same site identity as Connect (header, Inter Tight / Inter, portfolio tokens).
   The page opens on everything made, in six territories with one colour each, then the blind test.
   States on <html>: .m-js folded and drawn; .m-map wide screens (the map); .t-on blind test,
   .t-done answered. Without .m-js everything is an open list. */

.mapp {
  --land: cubic-bezier(.2, 1.35, .35, 1);
  --soft: cubic-bezier(.2, .8, .2, 1);
  --lit: linear-gradient(160deg, #ffffff 0%, #eef2f3 100%);
  --edge: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 .5px rgba(23, 33, 38, .14);
  --drop: 0 22px 44px -30px rgba(23, 33, 38, .34);
  --seg-ffmpeg: #7d8f97;
  --tie-edge: #75868d;
  --wire-label: #50616a;
  --region: rgba(23, 33, 38, .16);
  --card-shadow: 0 30px 60px -30px rgba(23, 33, 38, .38), 0 0 0 .5px rgba(23, 33, 38, .1);
  --scrim: rgba(23, 33, 38, .28);
  --field: .2;
  --wire-mix: 62%;
  --mark-ground: #0b0f10;
  /* One hue per family: --h- for lines, rings and fields, --t- where the hue carries text. */
  --h-make-gifs: #14a88e; --t-make-gifs: #0b6b5a;
  --h-make-edit: #7b66f0; --t-make-edit: #4d39c2;
  --h-mac: #8fab12;       --t-mac: #536800;
  --h-play: #ec6a4f;      --t-play: #a53a22;
  --h-studio: #3c8cf0;    --t-studio: #1b59b5;
  --h-everyday: #e0901f;  --t-everyday: #874f00;
}
@media (prefers-color-scheme: dark) {
  .portfolio-theme:not([data-theme="light"]) .mapp {
    --lit: linear-gradient(160deg, #222a2e 0%, #14191b 100%);
    --edge: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 .5px rgba(255, 255, 255, .09);
    --drop: 0 26px 60px -30px rgba(0, 0, 0, .8);
    --seg-ffmpeg: #6f8189;
    --tie-edge: #6c7d84;
    --wire-label: #aebcc2;
    --region: rgba(235, 234, 236, .14);
    --card-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 .5px rgba(255, 255, 255, .1);
    --scrim: rgba(3, 5, 6, .5);
    --field: .3;
    --wire-mix: 58%;
    --mark-ground: transparent;
    --h-make-gifs: #5fe3c8; --t-make-gifs: #5fe3c8;
    --h-make-edit: #a898ff; --t-make-edit: #b3a6ff;
    --h-mac: #c8df52;       --t-mac: #c8df52;
    --h-play: #ff8f78;      --t-play: #ff9a85;
    --h-studio: #6fb2ff;    --t-studio: #80bbff;
    --h-everyday: #f7b65f;  --t-everyday: #f7b65f;
  }
}
.portfolio-theme[data-theme="dark"] .mapp {
  --lit: linear-gradient(160deg, #222a2e 0%, #14191b 100%);
  --edge: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 .5px rgba(255, 255, 255, .09);
  --drop: 0 26px 60px -30px rgba(0, 0, 0, .8);
  --seg-ffmpeg: #6f8189;
  --tie-edge: #6c7d84;
  --wire-label: #aebcc2;
  --region: rgba(235, 234, 236, .14);
  --card-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 .5px rgba(255, 255, 255, .1);
  --scrim: rgba(3, 5, 6, .5);
  --field: .3;
  --wire-mix: 58%;
  --mark-ground: transparent;
  --h-make-gifs: #5fe3c8; --t-make-gifs: #5fe3c8;
  --h-make-edit: #a898ff; --t-make-edit: #b3a6ff;
  --h-mac: #c8df52;       --t-mac: #c8df52;
  --h-play: #ff8f78;      --t-play: #ff9a85;
  --h-studio: #6fb2ff;    --t-studio: #80bbff;
  --h-everyday: #f7b65f;  --t-everyday: #f7b65f;
}
.mapp [data-group="make-gifs"], .mapp [data-fam="make-gifs"] { --hue: var(--h-make-gifs); --hue-t: var(--t-make-gifs); }
.mapp [data-group="make-edit"], .mapp [data-fam="make-edit"] { --hue: var(--h-make-edit); --hue-t: var(--t-make-edit); }
.mapp [data-group="mac"], .mapp [data-fam="mac"] { --hue: var(--h-mac); --hue-t: var(--t-mac); }
.mapp [data-group="play"], .mapp [data-fam="play"] { --hue: var(--h-play); --hue-t: var(--t-play); }
.mapp [data-group="studio"], .mapp [data-fam="studio"] { --hue: var(--h-studio); --hue-t: var(--t-studio); }
.mapp [data-group="everyday"], .mapp [data-fam="everyday"] { --hue: var(--h-everyday); --hue-t: var(--t-everyday); }

.mapp main { padding-bottom: 24px; }
.mapp :is(h1, h2, h3, h4, p) { text-wrap: pretty; }
body.mapp :is(.map-head h1, .test h2, .fam-title, .n-name) { text-wrap: balance; }
.mapp .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.mapp .num { font-variant-numeric: tabular-nums; }
.mapp .on-mouse { display: none; }
@media (hover: hover) and (pointer: fine) {
  .mapp .on-touch { display: none; }
  .mapp .on-mouse { display: inline; }
}

/* ======================= The head ======================= */
.mapp .atlas-sec { position: relative; z-index: 3; padding-top: 30px; overflow-x: clip; }
.mapp .map-head { max-width: 62ch; margin-bottom: 22px; }
body.mapp .map-head h1 { margin: 0; font: 600 clamp(44px, 7.4vw, 80px)/1 "Inter Tight", "Inter", system-ui, sans-serif; letter-spacing: -.04em; color: var(--ink); }
.mapp .map-lede { margin: 12px 0 0; font: 500 clamp(21px, 2.5vw, 28px)/1.25 "Inter Tight", "Inter", system-ui, sans-serif; letter-spacing: -.015em; color: var(--reading, var(--ink)); }
.mapp .map-lede b { color: var(--ink); font-weight: 700; }
.mapp .map-hint { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.mapp .fam-index { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 6px; min-height: 0; margin-top: 16px; }
.mapp .fam-index a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 12px; border-radius: 999px; background: color-mix(in srgb, var(--hue) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue) 40%, transparent); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.mapp .fam-index i { width: 8px; height: 8px; border-radius: 3px; background: var(--hue); }
.mapp .fam-index b { color: var(--hue-t); font-weight: 600; }
.mapp .fam-index a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ======================= Families ======================= */
.mapp .atlas-wrap { position: relative; }
.mapp .wires { display: none; }
.mapp .fam { position: relative; padding: 22px 0 26px; border-top: 1px solid color-mix(in srgb, var(--hue) 35%, var(--line)); scroll-margin-top: 12px; }
/* A field of the family's colour behind it. It may reach past the screen; the section clips it. */
.mapp .fam::before { content: ""; position: absolute; z-index: -1; left: -60px; top: -40px; width: min(440px, 120%); height: 300px; background: radial-gradient(closest-side, color-mix(in srgb, var(--hue) calc(var(--field) * 100%), transparent), transparent); pointer-events: none; }
.mapp .fam-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font: 600 23px/1.15 "Inter Tight", "Inter", system-ui, sans-serif; letter-spacing: -.02em; color: var(--ink); }
.mapp .fam-title::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--hue); align-self: center; }
.mapp .fam-n { font: 600 17px/1 "Inter", system-ui, sans-serif; color: var(--hue-t); }
.mapp .fam-body > * + * { margin-top: 14px; }

/* Icons: each product's own icon, shown as it is: nothing drawn over it, no change to its shape. */
.mapp .ico { position: relative; display: inline-block; flex: none; width: var(--s, 40px); height: var(--s, 40px); }
.mapp .ico img { display: block; width: 100%; height: 100%; }
/* A light mark with no ground of its own sits on the site's dark ground in the light theme. */
.mapp .ico--light { background: var(--mark-ground); }
/* No icon of its own: the name keeps the icon's column, and a small stop in the family's colour marks
   where lines land (a ring for a hub). */
.mapp .pin { display: grid; place-items: center; flex: none; width: var(--s, 40px); height: var(--s, 40px); }
.mapp .pin > i { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--hue); }
.mapp .pin--hub > i { width: 15px; height: 15px; box-sizing: border-box; border: 3px solid var(--hue); background: transparent; }

/* ---------- Nodes (scripts off: a readable list with every card open) ---------- */
.portfolio-theme .mapp .n { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: 14px; width: 100%; min-height: 56px; margin: 0; padding: 8px 10px 8px 4px; border: 0; border-radius: 16px; background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.portfolio-theme .mapp .n:hover { background: transparent; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .portfolio-theme .mapp .n:hover { background: color-mix(in srgb, var(--hue, var(--surface)) 10%, var(--surface)); } }
.mapp .n:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mapp .n :is(.ico, .pin) { --s: 44px; margin-top: 2px; }
.mapp .n-text { display: grid; gap: 1px; min-width: 0; padding-top: 2px; }
.mapp .n-name { font: 600 17px/1.25 "Inter Tight", "Inter", system-ui, sans-serif; letter-spacing: -.01em; color: var(--ink); }
.mapp .n-state { font-size: 13px; line-height: 1.35; color: var(--muted); }
.mapp .n-line { margin-top: 3px; font-size: 15px; line-height: 1.45; color: var(--reading, var(--muted)); }
.mapp .hub .n :is(.ico, .pin) { --s: 60px; margin-top: 0; }
.mapp .hub .n-name { font-size: 24px; line-height: 1.15; letter-spacing: -.02em; }
.mapp .hub .n-state { font-size: 14px; margin-top: 2px; }
.mapp .n-h { margin: 0; font: inherit; letter-spacing: 0; }
.mapp .nodes { list-style: none; margin: 0; padding: 0; }
.mapp .region { margin-top: 10px; }
.mapp .region-label { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--muted); }

/* Puff: its name on a dashed ring in Play's colour (no art is made up for it). */
.mapp .badge { flex: none; display: block; width: 58px; height: 58px; border-radius: 50%; border: 1.5px dashed var(--hue); background: color-mix(in srgb, var(--hue) 16%, transparent); }
.portfolio-theme .mapp .n--char { display: inline-grid; width: auto; grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: center; row-gap: 0; min-height: 0; padding: 2px; border-radius: 50%; }
.mapp .n--char .badge { grid-area: 1 / 1; }
.mapp .n--char .n-text { grid-area: 1 / 1; place-self: center; padding: 0; }
.mapp .n--char .n-name { font-size: 15px; }

/* ---------- Cards ---------- */
.mapp .card { --hue-edge: color-mix(in srgb, var(--hue) 55%, transparent); }
.mapp .card > * { margin: 0; }
.mapp .card .c-head, .mapp .card .c-close, .mapp .card .c-line, .mapp .card .c-state { display: none; }
.mapp .c-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.mapp .c-shot { margin: 12px 0 0; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--region); overflow: hidden; display: grid; place-items: center; }
.mapp .c-shot img { display: block; width: auto; height: auto; max-width: 100%; max-height: 300px; }
.mapp .c-shot--wide img, .mapp .c-shot--mid img { width: 100%; max-height: none; }
html:not(.m-js) .mapp img[data-src] { display: none; }
.mapp .c-rels { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.mapp .c-rels li { font-size: 14px; line-height: 1.5; color: var(--reading, var(--muted)); padding-left: 16px; position: relative; }
.mapp .c-rels li::before { content: ""; position: absolute; left: 1px; top: .72em; width: 9px; height: 1.5px; border-radius: 1px; background: var(--hue, var(--accent)); }
.mapp .c-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
/* A long address wraps inside the pill instead of running past the screen. */
.mapp :is(.c-link, .c-more) { display: inline-flex; flex-wrap: wrap; align-items: center; column-gap: .3em; max-width: 100%; min-height: 44px; padding: 10px 18px; box-sizing: border-box; border-radius: 22px; font-size: 15px; line-height: 1.3; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.mapp .c-link { background: var(--button-bg); color: var(--button-ink); }
.mapp .c-link:hover { background: var(--button-hover); }
.mapp .c-host { font-weight: 500; min-width: 0; }
.mapp .c-more { box-shadow: inset 0 0 0 1px var(--input-edge); color: var(--ink); }
.mapp .c-more:hover { background: var(--surface); }
.mapp :is(.c-link, .c-more):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Scripts off: cards open in place under their row. */
.mapp .node > .card, .mapp .char > .card { padding: 2px 0 14px 62px; }
.mapp .hub > .card { padding-left: 78px; }

/* ======================= Phones and tablets: a wall of icons ======================= */
/* Every item is a tile; hubs are rows; the families are headed and coloured. Tapping opens a sheet. */
.m-js:not(.m-map) .mapp .nodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 2px 4px; }
.portfolio-theme.m-js:not(.m-map) .mapp .nodes > .node > .n { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; height: 100%; min-height: 44px; padding: 8px 2px 10px; text-align: center; border-radius: 18px; }
.m-js:not(.m-map) .mapp .nodes .n .ico { --s: 54px; margin: 0; }
.m-js:not(.m-map) .mapp .nodes .n-text { justify-items: center; padding: 0; gap: 2px; }
.m-js:not(.m-map) .mapp .nodes .n-name { font-size: 12.5px; line-height: 1.2; letter-spacing: -.005em; overflow-wrap: break-word; }
.m-js:not(.m-map) .mapp .nodes .n-state { font-size: 11px; line-height: 1.25; }
.m-js:not(.m-map) .mapp .nodes .n-line { display: none; }
/* A tile with no icon of its own is its name, set in type: no box, no stop. */
.portfolio-theme.m-js:not(.m-map) .mapp .nodes > .node > .n--text { justify-content: center; gap: 0; padding-inline: 4px; }
.m-js:not(.m-map) .mapp .nodes .n--text .pin { display: none; }
.m-js:not(.m-map) .mapp .nodes .n--text .n-text { gap: 3px; }
.m-js:not(.m-map) .mapp .nodes .n--text .n-name { font-size: 14px; line-height: 1.15; letter-spacing: -.015em; }
/* Name-only tiles follow the icon tiles in their group, so every row is all icons or all names and the names line up. */
.m-js:not(.m-map) .mapp .nodes > .node:has(> .n--text) { order: 1; }
.m-js:not(.m-map) .mapp .nodes > .node.name-first { grid-column-start: 1; }
/* A hub with no icon of its own is its name only, like the tiles. */
.m-js:not(.m-map) .mapp .hub .n--text .pin { display: none; }
.portfolio-theme.m-js:not(.m-map) .mapp .hub .n--text { grid-template-columns: minmax(0, 1fr); }
.m-js:not(.m-map) .mapp .hub .n { align-items: center; padding: 6px 10px 6px 0; }
.m-js:not(.m-map) .mapp .hub .n-line { font-size: 15px; }
.m-js:not(.m-map) .mapp .region { margin: 10px 0 0 2px; padding-left: 12px; border-left: 2px solid color-mix(in srgb, var(--hue) 45%, transparent); }
.m-js:not(.m-map) .mapp .region-label { margin-bottom: 2px; }
.m-js:not(.m-map) .mapp .node > .card, .m-js:not(.m-map) .mapp .char > .card { padding: 0; }
/* What a chosen item is related to keeps a ring in its family's colour, behind the sheet. */
.m-js:not(.m-map) .mapp :is(.node, .char).rel > :is(.n, .n-h > .n) { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--hue) 70%, transparent); background: color-mix(in srgb, var(--hue) 10%, transparent); }
.m-js:not(.m-map) .mapp :is(.node, .char).sel > :is(.n, .n-h > .n) { box-shadow: inset 0 0 0 2px var(--hue); }

/* The sheet: the same card as on the map, from the bottom of the screen. */
.m-js .mapp :is(.node, .char):not(.open) > .card { display: none; }
.m-js .mapp .card .c-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; padding-right: 40px; }
.m-js .mapp .card .c-head--text { grid-template-columns: minmax(0, 1fr); }
.m-js .mapp .c-head .ico { --s: 52px; }
.m-js .mapp .c-head p { display: grid; margin: 0; }
.m-js .mapp .c-head b { font: 600 20px/1.2 "Inter Tight", "Inter", system-ui, sans-serif; letter-spacing: -.015em; color: var(--ink); }
.m-js .mapp .c-head span { font-size: 13px; color: var(--muted); }
.m-js .mapp .card .c-line { display: block; margin-top: 12px; font-size: 16px; line-height: 1.45; color: var(--ink); }
.m-js .mapp .card .c-meta { margin-top: 6px; }
.portfolio-theme.m-js .mapp .c-close { display: grid; place-items: center; position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.portfolio-theme.m-js .mapp .c-close:hover { background: var(--surface); color: var(--ink); }
.m-js .mapp .c-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.m-js .mapp .c-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.m-js:not(.m-map) .mapp .open > .card { position: fixed; z-index: 60; left: 0; right: 0; bottom: 8px; width: min(540px, calc(100% - 16px)); margin-inline: auto; max-height: max(55vh, calc(100vh - 236px)); max-height: max(55dvh, calc(100dvh - 236px)); overflow: auto; overscroll-behavior: contain; padding: 18px 18px 20px; box-sizing: border-box; border-radius: 26px; background: var(--raised); box-shadow: var(--card-shadow), 0 0 0 1.5px var(--hue-edge); text-align: left; }
.mapp .scrim { position: fixed; inset: 0; z-index: 55; background: var(--scrim); }
.mapp .scrim[hidden] { display: none; }

.mapp .made-end { margin-top: 64px; padding-block: 28px 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; font-size: 15px; color: var(--reading, var(--muted)); }
.mapp .made-end p { margin: 0; }
.mapp .made-end b { color: var(--ink); font-weight: 600; }
.mapp .made-end a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; text-underline-offset: 4px; }
.mapp footer a { display: inline-flex; align-items: center; min-height: 44px; }
.mapp footer .shell { align-items: center; }
@media (max-width: 700px) {
  .mapp .made-end { flex-direction: column; align-items: flex-start; margin-top: 48px; }
  .mapp footer .shell { gap: 0; align-items: flex-start; }
}
@media (min-width: 700px) and (max-width: 999px) {
  .mapp .atlas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .m-js .mapp .nodes { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
}

/* ======================= The test ======================= */
.mapp .test { margin-top: 56px; padding-block: 48px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); }
.mapp .test .eyebrow { margin: 0 0 12px; color: var(--t-make-gifs); font-size: 13px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; }
body.mapp .test h2 { margin: 0; font: 600 clamp(32px, 6vw, 50px)/1.04 "Inter Tight", "Inter", system-ui, sans-serif; letter-spacing: -.035em; color: var(--ink); }
.mapp .test h2:focus { outline: none; }
.mapp .test h2 em { font-style: normal; color: var(--accent); }
.mapp .test h2 em.is-plain { color: var(--ink); }
.mapp .lede { margin-top: 12px; max-width: 46ch; }
.mapp .lede p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--reading, var(--muted)); }
.mapp .held { display: none; }
.still .mapp .held { display: inline; }

/* Each state's words share one grid cell, so nothing jumps when the question becomes the answer. */
.mapp .swap { display: grid; }
.mapp .swap > * { grid-area: 1 / 1; min-width: 0; }
.mapp .v-blind, .mapp .v-done { display: none; }
.t-on .mapp .v-rest { display: none; }
.t-on .mapp .v-blind, .t-on .mapp .v-done { display: block; }
.t-on:not(.t-done) .mapp :is(.v-done, .v-result, .again) { visibility: hidden; opacity: 0; }
.t-on.t-done .mapp :is(.v-blind, .cant) { visibility: hidden; opacity: 0; }

/* The pair: side by side at every width, each showing the same detail of the clip.
   Phones: a square around the figure. Wider: 4:3. A crop on screen; the GIFs are untouched. */
.mapp .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.mapp .shot { position: relative; margin: 0; padding: 5px; border-radius: 18px; background: var(--lit); box-shadow: var(--edge), var(--drop); }
.t-on[data-order="12"] .mapp .shot--2, .t-on[data-order="21"] .mapp .shot--1 { order: 2; }
.mapp .shot-crop { position: relative; overflow: hidden; border-radius: 13px; aspect-ratio: 1 / 1; background: #000; }
.mapp .shot-crop img { position: absolute; display: block; max-width: none; width: 235.294%; height: auto; left: -104.902%; top: -16.176%; }
.mapp .shot::after { content: ""; position: absolute; inset: -5px; border-radius: 23px; box-shadow: 0 0 0 1.5px var(--ink); opacity: 0; pointer-events: none; }
.mapp .shot.is-picked::after { opacity: .9; }
.mapp .shot-cap { position: absolute; inset: 5px; z-index: 1; pointer-events: none; }
.mapp .chip { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: baseline; gap: .28em; padding: 6px 10px; border-radius: 999px; background: rgba(9, 12, 13, .8); box-shadow: 0 0 0 .5px rgba(255, 255, 255, .16); color: #f4f5f6; font: 600 13px/1.1 "Inter", system-ui, sans-serif; white-space: nowrap; }
.mapp .chip--name { font-family: "Inter Tight", "Inter", system-ui, sans-serif; font-size: 14px; }
.mapp .chip--you { top: auto; bottom: 8px; }
.mapp .chip--pick, .mapp .chip--you { display: none; }
.t-on .mapp .chip--pick, .t-on .mapp .chip--you { display: inline-flex; }
.t-on[data-order="12"] .mapp .shot--1 .shot-letter::before, .t-on[data-order="21"] .mapp .shot--2 .shot-letter::before { content: "A"; }
.t-on[data-order="12"] .mapp .shot--2 .shot-letter::before, .t-on[data-order="21"] .mapp .shot--1 .shot-letter::before { content: "B"; }
.t-on:not(.t-done) .mapp :is(.chip--name, .chip--you), .t-on .mapp .shot:not(.is-picked) .chip--you, .t-on.t-done .mapp .chip--pick { visibility: hidden; opacity: 0; }

/* The whole tile is the button ("Pick A" / "Pick B"). */
.mapp .shot-hit { position: absolute; inset: -5px; z-index: 2; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 23px; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.portfolio-theme .mapp .shot-hit:hover { background: transparent; }
.mapp .shot-hit:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.mapp .shot:has(> .shot-hit:focus-visible) .chip--pick { background: #f4f5f6; color: #0b0f10; }
@media (hover: hover) and (pointer: fine) {
  .mapp .shot:has(> .shot-hit:hover) .chip--pick { background: #f4f5f6; color: #0b0f10; }
}

.mapp .pair-controls { display: grid; gap: 12px; margin-top: 14px; }
.mapp .btns { display: flex; align-items: center; gap: 10px; }
.mapp .alt { display: grid; justify-items: start; }
.mapp .alt > * { grid-area: 1 / 1; }
.mapp .note { align-items: center; min-height: 44px; }
.mapp .hint { margin: 0; font-size: 15px; line-height: 1.45; color: var(--reading, var(--muted)); }
.mapp .hint b { font-weight: 600; color: var(--ink); }
.portfolio-theme .mapp .pill { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px; border: 1px solid var(--input-edge); border-radius: 999px; background: transparent; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; }
.portfolio-theme .mapp .pill:hover { background: var(--surface); color: var(--ink); }
.portfolio-theme .mapp .play { padding-left: 16px; background: var(--button-bg); border-color: var(--button-bg); color: var(--button-ink); font-weight: 600; }
.portfolio-theme .mapp .play:hover { background: var(--button-hover); border-color: var(--button-hover); color: var(--button-ink); }
.mapp .pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.mapp .pill svg { width: 14px; height: 14px; flex: none; }
.mapp .play svg { fill: currentColor; }
.mapp .play .ic-stop, .mapp .play:not([data-state="off"]) .ic-play { display: none; }
.mapp .play:not([data-state="off"]) .ic-stop { display: block; }
.mapp .play-label { min-width: 4.6em; text-align: left; }
.mapp .again svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.mapp .tally { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.mapp .tally-label { margin: 0; font-size: 14px; font-weight: 600; color: var(--reading, var(--ink)); }
.mapp .tally-bar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; height: 10px; width: 140px; }
.mapp .tally-bar i { display: block; border-radius: 3px; }
.mapp .s-gifaf, .mapp .k-gifaf::before { background: var(--accent); }
.mapp .s-ffmpeg, .mapp .k-ffmpeg::before { background: var(--seg-ffmpeg); }
.mapp .s-tie, .mapp .k-tie::before { box-shadow: inset 0 0 0 1.5px var(--tie-edge); }
.mapp .tally-key { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--muted); }
.mapp .tally-key span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.mapp .tally-key span::before { content: ""; width: 9px; height: 9px; border-radius: 3px; }
.mapp .tally-key b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.mapp .credit { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--reading, var(--muted)); }
.mapp .credit a { padding-block: 14px; color: var(--ink); text-underline-offset: 3px; }
html:not(.t-ready) .mapp .pair-controls { display: block; }

@media (min-width: 700px) {
  .mapp .shot-crop { aspect-ratio: 4 / 3; }
  .mapp .shot-crop img { width: 176.471%; left: -66.176%; }
  .mapp .pair { gap: 16px; }
  .mapp .shot { padding: 6px; border-radius: 20px; }
  .mapp .shot-cap { inset: 6px; }
  .mapp .chip { top: 12px; left: 12px; padding: 7px 12px; font-size: 14px; }
  .mapp .chip--you { top: auto; bottom: 12px; }
  .mapp .lede p { font-size: 18px; }
  .mapp .pair-controls { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 22px; }
}

/* ======================= Wide screens: the map ======================= */
@media (min-width: 1000px) {
  .mapp .test { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "copy pair" "controls pair" "credit pair"; grid-template-rows: auto auto 1fr; column-gap: 56px; padding-top: 56px; }
  .mapp .t-copy { grid-area: copy; }
  .mapp .pair { grid-area: pair; margin-top: 4px; align-self: start; }
  .mapp .pair-controls { grid-area: controls; grid-template-columns: minmax(0, 1fr); margin-top: 22px; }
  .mapp .credit { grid-area: credit; margin-top: 10px; }

  .m-map .mapp .atlas-sec { padding-top: 40px; }
  .m-map .mapp .map-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: 40px; max-width: none; margin-bottom: 30px; }
  .m-map .mapp .map-head h1 { grid-row: 1 / span 2; }
  .m-map .mapp .map-lede { margin: 0; }
  .m-map .mapp .map-hint { margin: 4px 0 6px; }
  .m-map .mapp .fam-index { display: none; }
  .m-map .mapp .wires { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
  .m-map .mapp .atlas { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "make-gifs make-edit mac" "play studio everyday"; column-gap: 56px; row-gap: 52px; align-items: start; }
  .m-map .mapp .fam { padding: 0; border-top: 0; }
  .m-map .mapp .fam::before { left: -100px; top: -90px; width: 460px; height: 380px; }
  .m-map .mapp .fam[data-group="make-gifs"] { grid-area: make-gifs; }
  .m-map .mapp .fam[data-group="make-edit"] { grid-area: make-edit; }
  .m-map .mapp .fam[data-group="mac"] { grid-area: mac; }
  .m-map .mapp .fam[data-group="play"] { grid-area: play; }
  .m-map .mapp .fam[data-group="studio"] { grid-area: studio; }
  .m-map .mapp .fam[data-group="everyday"] { grid-area: everyday; }
  .m-map .mapp .fam-title { font-size: 19px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1.5px solid color-mix(in srgb, var(--hue) 50%, transparent); }
  .m-map .mapp .fam-n { font-size: 15px; }
  .m-map .mapp .fam-body > * + * { margin-top: 10px; }

  /* Nodes are chips: icon, name and state. The one line moves to the card. */
  .portfolio-theme.m-map .mapp .n { display: inline-grid; width: auto; max-width: 100%; min-height: 48px; padding: 4px 12px 4px 4px; column-gap: 10px; align-items: center; border-radius: 14px; }
  .m-map .mapp .n :is(.ico, .pin) { --s: 40px; margin: 0; }
  .m-map .mapp .n-name { font-size: 15px; line-height: 1.2; }
  .m-map .mapp .n-state { font-size: 12px; }
  .m-map .mapp .n-line { display: none; }
  .m-map .mapp .hub .n :is(.ico, .pin) { --s: 58px; }
  .m-map .mapp .hub .n-name { font-size: 21px; }
  .m-map .mapp .hub .n-state { font-size: 13px; }
  .m-map .mapp .nodes--field { display: flex; flex-wrap: wrap; gap: 0 4px; }
  .m-map .mapp .region { margin-top: 6px; }
  .m-map .mapp .region--inside { padding: 8px 8px 6px; border: 1px solid color-mix(in srgb, var(--hue) 38%, transparent); border-radius: 20px; background: color-mix(in srgb, var(--hue) 5%, transparent); }
  .m-map .mapp .region--inside > .region-label { margin: 0 0 2px 6px; font-size: 12px; font-weight: 600; color: var(--hue-t); }
  .m-map .mapp .region--link > .region-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .m-map .mapp .region--link > .nodes { display: flex; flex-wrap: wrap; }

  /* Make GIFs: the hub and the iPhone app side by side, the ten parts inside below, two across. */
  .m-map .mapp [data-block="gif-af"] { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "hub link" "inside inside"; align-items: center; column-gap: 24px; row-gap: 6px; }
  .m-map .mapp [data-block="gif-af"] > .hub { grid-area: hub; }
  .m-map .mapp [data-block="gif-af"] > .region--link { grid-area: link; margin: 0; justify-self: end; }
  .m-map .mapp [data-block="gif-af"] > .region--inside { grid-area: inside; }
  .m-map .mapp [data-block="gif-af"] .region--inside > .nodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4px; }

  /* Make and edit: LiquidMotion on top, Scribble and Swell, then the rest. */
  .m-map .mapp [data-block="scribble"] .region--link > .nodes { padding-left: 52px; }
  .m-map .mapp [data-block="quicklatch"] .region--inside, .m-map .mapp [data-block="keys"] .region--inside { margin-left: 52px; }

  /* Play: the Arcade on the left, Puff over its other games on the right. */
  .m-map .mapp .fam[data-group="play"] .fam-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "arcade puff" "arcade games"; column-gap: 22px; row-gap: 14px; align-items: start; }
  .m-map .mapp .fam[data-group="play"] .fam-body > * { margin: 0; }
  .m-map .mapp [data-block="arcade"] { grid-area: arcade; }
  .m-map .mapp [data-block="arcade"] .hub .n .ico { --s: 44px; }
  .m-map .mapp [data-block="arcade"] .hub .n-name { font-size: 16px; }
  .m-map .mapp [data-block="arcade"] .region--inside { margin: 6px 0 0; }
  .m-map .mapp [data-block="puff"] { grid-area: puff; justify-self: center; padding-top: 4px; }
  .m-map .mapp [data-block="pixel-nook"] { grid-area: games; flex-direction: column; }
  /* On my Mac: what LiquidMotion powers and Ribbon, one under another, so no line crosses a name. */
  .m-map .mapp [data-block="aura-flow"] { flex-direction: column; }
  .m-map .mapp .badge { width: 58px; height: 58px; }
  .portfolio-theme.m-map .mapp .n--char { grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: 0; min-height: 0; padding: 2px; border-radius: 50%; }
  .m-map .mapp .n--char .badge { grid-area: 1 / 1; }
  .m-map .mapp .n--char .n-text { grid-area: 1 / 1; place-self: center; padding: 0; }
  .m-map .mapp .n--char .n-name { font-size: 15px; }

  /* What is chosen, and what it touches, are ringed in their family's colour. Nothing else fades. */
  .portfolio-theme.m-map .mapp :is(.node, .char).sel > :is(.n, .n-h > .n) { background: var(--raised); box-shadow: 0 0 0 1.5px var(--hue); }
  .portfolio-theme.m-map .mapp :is(.node, .char).rel > :is(.n, .n-h > .n) { box-shadow: 0 0 0 1px color-mix(in srgb, var(--hue) 70%, transparent); background: color-mix(in srgb, var(--hue) 9%, transparent); }
  .portfolio-theme.m-map .mapp .char.sel > .n-h > .n, .portfolio-theme.m-map .mapp .char.rel > .n-h > .n { border-radius: 50%; }

  /* The card floats beside its node, inside the map; its edge carries the family's colour. */
  .m-map .mapp :is(.node, .char) > .card { position: absolute; z-index: 5; width: 340px; max-width: calc(100vw - 48px); padding: 18px 18px 20px; box-sizing: border-box; border-radius: 22px; background: var(--raised); box-shadow: var(--card-shadow), 0 0 0 1.5px var(--hue-edge); text-align: left; }
  .m-map .mapp .c-shot img { max-height: 240px; }
  .m-map .mapp .c-shot--wide img, .m-map .mapp .c-shot--mid img { width: 100%; max-height: none; }
  .m-map .mapp .card .c-state { display: none; }

  .m-map .mapp .wires .w { fill: none; stroke: color-mix(in srgb, var(--hue) var(--wire-mix), transparent); stroke-width: 1.4; stroke-linecap: round; }
  .m-map .mapp .wires .w--lit { stroke: var(--hue); stroke-width: 2.4; opacity: 0; }
  .m-map .mapp .wires .wl { font: 500 12px/1 "Inter", system-ui, sans-serif; fill: var(--wire-label); paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; letter-spacing: .01em; }
  .m-map .mapp .wires .w--lit.peek { opacity: .7; }
  .m-map .mapp .focus .wires .w--lit.on { opacity: 1; }
  .m-map .mapp .focus .wires .w:not(.w--lit):not(.on) { opacity: .3; }
  /* While one is chosen, only its own verbs stay on the map. */
  .m-map .mapp .focus .wires .wl:not(.on) { opacity: 0; }
  .m-map .mapp .focus .wires .wl.on { fill: var(--ink); }
}
@media (min-width: 1000px) and (max-width: 1199px) {
  .m-map .mapp .atlas { column-gap: 36px; }
  .m-map .mapp .n :is(.ico, .pin) { --s: 36px; }
  .m-map .mapp .n-name { font-size: 14px; }
  .m-map .mapp .hub .n :is(.ico, .pin) { --s: 50px; }
  .m-map .mapp .hub .n-name { font-size: 19px; }
  .m-map .mapp [data-block="arcade"] .hub .n .ico { --s: 38px; }
  .m-map .mapp [data-block="arcade"] .hub .n-name { font-size: 15px; }
}

/* ======================= Motion ======================= */
/* Studio curves only; transform and opacity, plus a short arrival blur. One thing moves at a time. */
@media (prefers-reduced-motion: no-preference) {
  .mapp .shot { transition: transform 500ms var(--land); }
  .mapp .shot.is-down { transform: scale(.96); transition: transform 120ms var(--soft); }
  .mapp .shot::after { transition: opacity 200ms var(--soft); }
  /* The reveal, top to bottom: each old word leaves in 180 ms, its answer arrives about 100 ms later. */
  .t-on.t-done .mapp :is(.v-blind, .chip--pick, .cant) { transform: translateY(-8px); filter: blur(6px); transition: opacity 180ms var(--soft) var(--x, 0ms), transform 180ms var(--soft) var(--x, 0ms), filter 180ms var(--soft) var(--x, 0ms), visibility 0s linear calc(var(--x, 0ms) + 180ms); }
  .mapp h2 .v-blind { --x: 0ms; }
  .mapp .lede .v-blind { --x: 90ms; }
  .mapp .chip--pick { --x: 180ms; }
  .mapp :is(.cant, .note .v-blind) { --x: 360ms; }
  .t-on:not(.t-done) .mapp :is(.v-done, .chip--name, .chip--you, .v-result, .again) { transform: translateY(10px); filter: blur(10px); }
  .t-on.t-done .mapp :is(.v-done, .chip--name, .chip--you, .v-result, .again) { transition: opacity 500ms var(--soft) var(--d, 0ms), transform 650ms var(--land) var(--d, 0ms), filter 500ms var(--soft) var(--d, 0ms), visibility 0s linear var(--d, 0ms); }
  .mapp h2 .v-done { --d: 100ms; }
  .mapp .lede .v-done { --d: 190ms; }
  .mapp .shot--1 .chip--name { --d: 280ms; }
  .mapp .shot--2 .chip--name { --d: 280ms; }
  .mapp .chip--you { --d: 370ms; }
  .mapp :is(.again, .v-result) { --d: 460ms; }
  .t-on.t-done .mapp .tally-bar i { animation: seg-in 450ms var(--land) both; }
  .mapp .tally-bar i:nth-child(1) { animation-delay: 540ms; }
  .mapp .tally-bar i:nth-child(2) { animation-delay: 600ms; }
  .mapp .tally-bar i:nth-child(3) { animation-delay: 660ms; }
  .mapp .tally-bar i:nth-child(4) { animation-delay: 720ms; }
  .mapp .tally-bar i:nth-child(5) { animation-delay: 780ms; }
  .mapp .tally-bar i:nth-child(6) { animation-delay: 840ms; }
  .mapp .tally-bar i:nth-child(7) { animation-delay: 900ms; }
  .mapp .pair.is-out .shot { opacity: 0; transition: opacity 160ms var(--soft); }
  .mapp .pair.is-in .shot { animation: in-fade 500ms var(--soft) both, in-rise 650ms var(--land) both; }
  .mapp .pair.is-in .shot:last-child { animation-delay: 90ms; }

  /* The test arrives once, whole, when it comes into view. */
  .m-on .mapp .arrive.wait { opacity: 0; transform: translateY(24px); filter: blur(10px); }
  .m-on .mapp .arrive.wait { transition: opacity 550ms var(--soft), transform 700ms var(--land), filter 550ms var(--soft); }
  .m-on .mapp .arrive.wait.in { opacity: 1; transform: none; filter: none; }

  /* A card grows out of its node: opaque within 120 ms, so nothing shows through it for long. */
  .m-map .mapp .opening > .card { transform-origin: var(--ox, 0) var(--oy, 40px); animation: pop-fade 120ms var(--soft) both, pop-grow 560ms var(--land) both; }
  /* The sheet rises from the bottom of the screen. */
  .m-js:not(.m-map) .mapp .opening > .card { animation: pop-fade 140ms var(--soft) both, sheet-rise 520ms var(--land) both; }
  .mapp .scrim { animation: scrim-in 200ms var(--soft) both; }
  .m-map .mapp .wires :is(.w, .wl) { transition: opacity 220ms var(--soft); }
  .m-map .mapp .wires .w--lit { transition: opacity 260ms var(--soft); }
}
@keyframes in-fade { from { opacity: 0; filter: blur(8px); } }
@keyframes in-rise { from { transform: translateY(10px); } }
@keyframes pop-fade { from { opacity: 0; filter: blur(4px); } }
@keyframes pop-grow { from { transform: scale(.9); } }
@keyframes sheet-rise { from { transform: translateY(28px); } }
@keyframes scrim-in { from { opacity: 0; } }
@keyframes seg-in { from { opacity: 0; transform: scale(.3); } }
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .t-ready:not(.t-done) .mapp .shot:hover:not(.is-down) { transform: translateY(-3px); }
}
@media print {
  .mapp .arrive { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ======================= Polish: one icon shape, family panels ======================= */
/* Every icon takes the home-screen shape, so square files and rounded ones read as one set. A light mark
   with no ground of its own sits on a dark tile in both themes. Nothing is drawn over the art. */
.mapp .ico { border-radius: 22.5%; overflow: hidden; }
.mapp .ico img { border-radius: inherit; }
.mapp .ico--light { background: var(--mark-ground); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); }
.mapp { --pan-a: 6%; --pan-b: 2%; --state-ink: #43535b; }
.mapp .n-state { color: var(--state-ink); }
.portfolio-theme[data-theme="dark"] .mapp { --mark-ground: #1a2327; --pan-a: 13%; --pan-b: 5%; --state-ink: #aebcc2; }
@media (prefers-color-scheme: dark) { .portfolio-theme:not([data-theme="light"]) .mapp { --mark-ground: #1a2327; --pan-a: 13%; --pan-b: 5%; --state-ink: #aebcc2; } }

/* Each family is a panel in its own colour instead of a blurred glow. */
.mapp .fam::before { display: none; }
.mapp .fam { margin-top: 14px; padding: 20px 16px 22px; border: 1px solid color-mix(in srgb, var(--hue) 30%, transparent); border-radius: 24px; background: linear-gradient(180deg, color-mix(in srgb, var(--hue) var(--pan-a), transparent), color-mix(in srgb, var(--hue) var(--pan-b), transparent) 70%); }
.mapp .fam-n { align-self: center; padding: 3px 9px 4px; border-radius: 999px; background: color-mix(in srgb, var(--hue) 20%, transparent); font-size: 13px; line-height: 1.1; }

/* No icon of its own: a short upright stroke in the family's colour marks where lines land, not a bullet. */
.mapp .pin:not(.pin--hub) > i { width: 3px; height: 16px; border-radius: 2px; }

@media (min-width: 1000px) {
  .m-map .mapp .atlas { align-items: stretch; column-gap: 24px; row-gap: 24px; }
  .m-map .mapp .fam { margin: 0; padding: 18px 18px 16px; border-top: 1px solid color-mix(in srgb, var(--hue) 30%, transparent); }
  .m-map .mapp .fam-title { border-bottom: 0; padding-bottom: 0; margin-bottom: 12px; }
  .m-map .mapp .fam-n { font-size: 12px; }
}

/* Line labels sit in a small pill on their line. */
@media (min-width: 1000px) {
  .m-map .mapp .wires .wl { font: 600 11.5px/1 "Inter", system-ui, sans-serif; letter-spacing: .02em; stroke: none; fill: var(--ink); }
  .m-map .mapp .wires .wlp { fill: var(--paper); stroke: color-mix(in srgb, var(--wire-label) 45%, transparent); stroke-width: 1; }
  .m-map .mapp .focus .wires .wlp:not(.on) { opacity: 0; }
}
