:root {
    /* chapters take the compass's own quadrant colours */
    --red: #e99a9a;
    --blue: #9ec4e8;
    --green: #b6d9a7;
    --yellow: #fce39b;
    --paper: #ffffff;
    --ink: #0d0d0d;
    --soft: #3f3f3f;
    --tone: #f2f1ee;
    --tone-2: #e4e3df;
    --accent: #b00b26;
    --accent-ink: #ffffff;
    --facts: #1f4e9c;
    --values: #c8102e;
    --mark: #8a0b1f;   /* outlines and your ring on the maps: shows on all 4 area colours (contrast 3.5:1 or more) */
    --bg: var(--paper);
    --muted: #4a4a4a;

    /* type sizes, about 80% of the first build's (Efe, 24 Nov 2026: "I feel urge to zoom out when using the website") */
    --step-small: 0.8125rem;
    --step-body: 1rem;
    --step-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
    --step-head: clamp(1.875rem, 1.2rem + 1.8vw, 3rem);
    --step-display: min(11vw, 150px);
    --step-page: clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem);

    --margin: clamp(20px, 2.2vw, 32px);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Cabinet Grotesk', 'Helvetica Neue', Arial, sans-serif;
    font-size: var(--step-body);
    line-height: 1.5;
  }
  img { display: block; max-width: 100%; }
  a { color: inherit; }
  h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.035em; line-height: 0.95; }
  h2 { font-size: var(--step-head); }
  :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
  .chapter { position: relative; padding: clamp(64px, 7vw, 112px) var(--margin); }
  .lead { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; margin: 24px 0 0; }

  /* buttons: one shape, square, flat */
  .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 0;
    background: var(--accent); color: var(--accent-ink); font: inherit; font-size: var(--step-body); font-weight: 800; text-decoration: none; cursor: pointer;
    transition: transform .2s var(--ease-out), background-color .2s; }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(1px); }
  .btn.ink { background: var(--ink); color: var(--paper); }

  /* ---------- 1. hero: yellow field ---------- */
  .hero { background: var(--yellow); min-height: 100svh; padding: 0 var(--margin); display: grid; grid-template-rows: auto 1fr auto; }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; font-size: var(--step-small); }
  .mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: var(--step-body); white-space: nowrap; }
  .btn .narrow { display: none; }
  .mark svg { width: 28px; height: 28px; }
  .toplinks { display: flex; align-items: center; gap: 24px; }
  .toplinks a:not(.btn) { text-decoration: none; font-size: var(--step-body); }
  .toplinks a:not(.btn):hover { text-decoration: underline; }
  .hero h1 { font-size: var(--step-display); line-height: 0.82; letter-spacing: -0.04em; align-self: start; margin-top: 7vh; }
  .hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
  .hero h1 [data-line] { display: block; }
  .hero h1 .line:first-child { color: var(--ink); }
  .hero-foot { display: grid; grid-template-columns: repeat(12, 1fr); padding-bottom: 40px; }
  .hero-foot p { grid-column: 8 / 13; font-size: var(--step-lead); line-height: 1.35; margin: 0; max-width: 30ch; justify-self: end; text-align: right; }

  /* ---------- 2. the map in tiles: ink field ---------- */
  .mosaic-ch { background: var(--ink); color: var(--ink); padding: 12px; }
  .mosaic { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
  .tile { aspect-ratio: 1; position: relative; overflow: hidden; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
  .tile-photo i { position: absolute; inset: 0; background-image: url('../school-of-athens.jpg'); background-size: 600% 400%; background-position: var(--x) var(--y);
    transition: transform .8s var(--ease-out); }
  .tile-photo:hover i { transform: scale(1.08); }
  .tile-red { background: var(--red); }
  .tile-blue { background: var(--blue); }
  .tile-green { background: var(--green); }
  .tile-yellow { background: var(--yellow); }
  .tile-accent { background: var(--accent); }
  .tile h2 { font-size: var(--step-head); }
  .tile p { margin: 0; margin-top: auto; font-size: var(--step-lead); line-height: 1.2; font-weight: 500; }
  .tile p strong { display: block; font-size: var(--step-head); font-weight: 800; letter-spacing: -0.035em; line-height: 1; margin-bottom: 8px; }
  .tile-accent a { color: var(--accent-ink); font-size: var(--step-lead); font-weight: 800; margin-top: auto; text-underline-offset: 4px; }
  .mosaic-cap { color: var(--paper); font-size: var(--step-small); margin: 12px 0 0; max-width: 60ch; padding: 0 calc(var(--margin) - 12px) 8px; }

  /* ---------- 3. the compass: paper field ---------- */
  .compass-ch { background: var(--paper); }
  .compass-intro { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; margin-bottom: 56px; }
  .compass-intro h2 { grid-column: 1 / 7; }
  .compass-intro .lead { grid-column: 8 / 13; margin: 0; max-width: none; }
  .layout { display: flex; gap: 40px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
  .chart-col { flex: 1 1 600px; max-width: 980px; min-width: 0; }
  .quiz-col { flex: 1 1 380px; min-width: 0; }
  @media (min-width: 1100px) {
    .chart-col { position: sticky; top: 12px; flex: 0 0 min(860px, calc(100vh - 320px)); max-height: calc(100vh - 24px); overflow-y: auto; scrollbar-width: thin; }
  }

  .view-tabs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 8px; font-size: var(--step-small); color: var(--muted); }
  .view-tabs button { border: 0; border-radius: 0; background: var(--tone-2); color: var(--ink); min-height: 40px; padding: 0 14px; font: inherit; font-size: var(--step-small); font-weight: 800; cursor: pointer; transition: transform .2s var(--ease-out); }
  .view-tabs button:hover { transform: translateY(-2px); }
  .view-tabs button[data-view="facts"].on { background: var(--facts); color: #fff; }
  .view-tabs button[data-view="values"].on { background: var(--values); color: #fff; }
  .toggle { display: inline-flex; gap: 6px; align-items: center; font-size: var(--step-small); color: var(--ink); cursor: pointer; }
  .swipe-hint { display: none; font-size: var(--step-small); color: var(--muted); margin: 0 0 4px; }

  /* the chart itself is the tool's own figure (data-ui): its boxes keep their outlines */
  .chart-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .wrap { position: relative; width: min(100%, 1000px); aspect-ratio: 1; margin: 0 auto; }
  .grid { position: absolute; inset: 5%; display: grid; grid-template-columns: repeat(18, 1fr); grid-template-rows: repeat(18, 1fr); }
  .box { border: 2px solid var(--ink); margin: -1px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: 2px; cursor: pointer; font-family: Arial, Helvetica, sans-serif; color: #111; text-decoration: none; }
  .box span { white-space: pre-line; line-height: 1.12; }
  .box.off { filter: grayscale(1); opacity: .3; }
    .box.near { outline: 4px solid var(--mark); outline-offset: -4px; position: relative; z-index: 3; }
  .box.here { outline: 5px solid var(--ink); outline-offset: -3px; position: relative; z-index: 4; animation: flash 1.2s ease 3; }
  .box.flash { animation: flash 1.2s ease 2; position: relative; z-index: 4; }
  @keyframes flash { 50% { outline-color: var(--paper); } }
  svg.overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  .dot { position: absolute; z-index: 5; display: none; width: 3.4%; height: auto; aspect-ratio: 1; min-width: 14px; border-radius: 50%; background: transparent; border: 4px solid;
    box-shadow: 0 0 0 2px #fff, inset 0 0 0 2px #fff; /* taste-skill-ignore: white halo so the ring reads over any box */
    transform: translate(-50%, -50%); transition: left .45s var(--ease-out), top .45s var(--ease-out); pointer-events: none; }
  .dot.you-ring { border-color: var(--mark); }
    #dotFriend { border-color: #555; border-style: dashed; }
  .thinker-layer { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
  .tdot { pointer-events: auto; position: absolute; z-index: 6; width: 1.6%; aspect-ratio: 1; min-width: 9px; border-radius: 50%; background: #111; border: 2px solid #fff; transform: translate(-50%, -50%); cursor: pointer; padding: 0; transition: transform .2s; }
  .tdot:hover { transform: translate(-50%, -50%) scale(1.4); }
  .tdot.close { background: var(--values); }
  .tdot span.l1 { left: auto; right: 120%; }
  .tdot span.l2 { left: 50%; top: 170%; transform: translateX(-50%); }
  .tdot span { position: absolute; left: 120%; top: 50%; transform: translateY(-50%); background: #111; color: #fff; font: 700 11px Arial, sans-serif; padding: 1px 4px; white-space: nowrap; pointer-events: none; }

  .result { background: var(--tone); padding: 18px 20px; margin: 12px 0 0; font-size: var(--step-small); line-height: 1.5; }
  .result .row-f b { color: var(--facts); }
  .result .row-v b { color: var(--values); }
  .result .thinkers-row { margin-top: 6px; }
  .result .foot { color: var(--muted); margin-top: 4px; }
  .bars { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .bar-row .labels { display: flex; justify-content: space-between; margin-bottom: 8px; }
  .bar-row.empty { color: var(--muted); }
  .track { position: relative; height: 8px; background: var(--tone-2); }
  .track::before { content: ''; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; background: #9a9a9a; }
  .mark-dot { }
  .track .mark { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); transform: translate(-50%, -50%); transition: left .45s var(--ease-out); }
  .bar-row .val { color: var(--muted); margin-top: 8px; text-align: center; }
  .note { color: var(--muted); font-size: var(--step-small); margin: 10px 0 0; max-width: 56ch; }
  .scenario, .why, .pp-q, .pp-note, .cmp p { max-width: 56ch; }

  /* the quiz: one numbered list of situations, separated by tone, no outlines */
  .quiz-col h3.q-head { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 8px; }
  .quiz-note { color: var(--soft); font-size: var(--step-body); margin: 0 0 20px; max-width: 46ch; }
  .chart-note { margin: 0 0 28px; }
  .quiz-list { margin: 0; padding: 0 0 0 1.6em; }
  .quiz-list > li::marker { font-weight: 800; font-size: var(--step-body); }
  .card { background: var(--tone); padding: 24px 26px; margin: 0 0 12px; }
  .scenario { margin: 0 0 10px; font-size: var(--step-body); line-height: 1.5; }
  .card h3.question { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 10px; }
  .understand { background: none; border: 0; padding: 0; margin: 0 0 12px; font: inherit; font-size: var(--step-small); font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
  .understand:hover { text-decoration-thickness: 2px; }
  .opt { display: block; width: 100%; text-align: left; cursor: pointer; border: 0; border-radius: 0; background: var(--paper); color: var(--ink);
    padding: 12px 16px; margin: 8px 0 0; font: inherit; font-size: var(--step-body); line-height: 1.35; transition: background-color .2s, transform .2s var(--ease-out); }
  .opt:hover { background: #fbfaf8; transform: translateX(4px); }
  .opt.chosen { background: var(--ink); color: var(--paper); }
  .why { font-size: var(--step-small); color: var(--soft); margin: 6px 2px 0; line-height: 1.45; }
  .why.mine { color: var(--ink); }
  .why b { font-weight: 800; }
  .skip { background: none; border: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font: inherit; font-size: var(--step-small); padding: 0; margin-top: 12px; }
  .reset { margin: 12px 0 0; }

  .pp { margin-top: 18px; font-size: var(--step-small); }
  .pp-title { font-weight: 800; margin: 0 0 2px; }
  .pp-q { color: var(--soft); margin: 0 0 8px; }
  .pp-row { display: grid; grid-template-columns: 150px 1fr 56px; gap: 8px; align-items: center; margin: 4px 0; }
  .pp-bar { height: 10px; background: var(--tone-2); overflow: hidden; }
  .pp-bar span { display: block; height: 100%; background: #9a9a9a; }
  .pp-row.match { font-weight: 800; }
  .pp-row.match .pp-bar span { background: var(--ink); }
  .pp-note { color: var(--soft); margin: 8px 0 0; }

  /* ---------- 4. thinkers: red field, a two-column list with portrait bullets ---------- */
  .thinkers-ch { background: var(--red); }
  .thinkers-intro { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
  .thinkers-intro .main { grid-column: 1 / 8; }
  .search-label { display: block; font-weight: 800; margin-bottom: 8px; }
  .thinkers-intro .side { grid-column: 8 / 13; }
  .thinkers-intro .lead { margin: 24px 0 0; max-width: 40ch; }
  .search { width: 100%; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 0; background: var(--paper); font: inherit; font-size: var(--step-body); }
  .tgroup { margin-top: 96px; }
  .tg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 40px; }
  .tg-head h3 { font-size: var(--step-head); }
  .tg-count { font-size: var(--step-body); }
  .tlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 64px; }
  .titem { text-decoration: none; display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; width: 100%; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; }
  .titem:hover .nm { text-decoration: underline; text-underline-offset: 4px; }
  .titem:hover .tpic { transform: scale(1.06); }
  .tpic { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center 20%; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; transition: transform .3s var(--ease-out); }
  .tpic.mono { display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--red); font-weight: 800; font-size: var(--step-body); mix-blend-mode: normal; }
  .tbody { display: block; }
  .ttop { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
  .nm { font-weight: 800; font-size: var(--step-body); }
  .pct { font-weight: 800; font-size: var(--step-body); font-variant-numeric: tabular-nums; }
  .yr { display: block; font-size: var(--step-small); color: #2b2b2b; margin-top: 2px; }
  .ln { display: block; font-size: var(--step-small); margin-top: 6px; max-width: 46ch; }

  /* ---------- 5. compare: green field, the action tile ---------- */
  .compare-ch { background: var(--green); padding-left: 0; padding-right: 0; min-height: 90svh; display: flex; align-items: center; }
  .tiles { width: 100%; display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
  .side-tile { min-height: 360px; overflow: hidden; position: relative; }
  .side-photo { grid-column: 1 / 3; }
  .side-photo i { position: absolute; inset: 0; background: url('../school-of-athens.jpg') 50% 55% / 640% auto; }
  .side-flat { grid-column: 11 / 13; background: var(--blue); }
  .action-tile { grid-column: 3 / 11; background: var(--accent); color: var(--accent-ink); padding: 40px; }
  .action-tile h2 { font-size: var(--step-head); }
  .action-tile > p { font-size: var(--step-body); max-width: 52ch; margin: 16px 0 0; }
  .share-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 0; }
  .share-row input { flex: 1 1 200px; min-width: 0; min-height: 48px; padding: 0 14px; border: 0; border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; font-size: var(--step-body); }
  .share-row label { flex-basis: 100%; font-weight: 800; font-size: var(--step-body); margin-bottom: -4px; }
  #myLink { width: 100%; margin-top: 10px; min-height: 44px; padding: 0 14px; border: 0; background: rgba(255,255,255,.92); font: inherit; font-size: var(--step-small); color: var(--ink); }
  .cmp { font-size: var(--step-small); line-height: 1.5; margin-top: 20px; }
  .cmp b { font-size: var(--step-body); }
  .cmp .diff { margin-top: 12px; }
  .cmp .sub2 { color: #ffe9ec; }
  .cmp .linkbtn { color: var(--accent-ink); }
  .cmp .mini .tr { background: rgba(255,255,255,.35); }
  .cmp .mini .tr i { background: var(--ink); }
  .cmp .mini .tr i.you { border-color: #fff; background: transparent; }
  .share-note { font-size: var(--step-small); margin: 14px 0 0; color: #ffe9ec; }

  /* ---------- 6. footer: ink field ---------- */
  /* footer laid out like 12axes' (24 Nov 2026): name and contact buttons on top, then the Project and Explore columns at the right */
  .footer { background: var(--ink); color: var(--paper); padding: 48px var(--margin) 56px; font-size: var(--step-small); }
  .f-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
  .f-brand { max-width: 42ch; }
  .f-name { display: inline-flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
  .f-name svg { width: 28px; height: 28px; }
  .f-brand p { margin: 12px 0 0; color: #c9c8c4; line-height: 1.5; }
  .f-asks { display: flex; gap: 12px; flex-wrap: wrap; }
  .f-ask { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 2px solid var(--paper); color: var(--paper); font-size: var(--step-body); font-weight: 800; text-decoration: none; transition: background-color .2s, color .2s; }
  .f-ask:hover { background: var(--paper); color: var(--ink); }
  .f-cols { display: flex; justify-content: flex-end; gap: clamp(48px, 10vw, 160px); margin-top: 48px; }
  .f-cols nav { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
  .f-cols h2 { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: #a3a29d; margin: 0 0 6px; }
  .f-cols a { font-size: var(--step-body); text-decoration: none; }
  .f-cols a:hover { text-decoration: underline; }
  /* about, privacy and terms: one column of short sections */
  .prose { max-width: calc(68ch + 2 * var(--margin)); }
  .prose-sec { padding: 28px 0; border-top: 2px solid var(--ink); }
  .prose-sec:first-child { border-top: 0; padding-top: 0; }
  .prose-sec h2 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 12px; }
  .prose-sec p { margin: 0 0 12px; max-width: 68ch; line-height: 1.6; }

  /* ---------- pop-ups (they float, so they may cast a shadow) ---------- */
  .modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
  .modal[hidden] { display: none; }
  .modal-card { background: var(--paper); max-width: 580px; width: 100%; max-height: 88vh; overflow: auto; padding: 28px; position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.3); } /* taste-skill-ignore: a dialog floats */
  .modal-x { position: absolute; top: 12px; right: 12px; border: 0; background: var(--tone); width: 40px; height: 40px; font-size: 22px; cursor: pointer; line-height: 1; }
  .modal-card h3 { margin: 0 44px 6px 0; font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; }
  .modal-card .sub2 { color: var(--muted); font-size: var(--step-small); margin: 0 0 14px; }
  .m-head { display: flex; gap: 18px; align-items: center; margin-bottom: 8px; }
  .mpic { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: center 20%; filter: grayscale(1) contrast(1.1); flex: none; }
  .mpic.mono { display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--paper); font-weight: 800; font-size: var(--step-lead); }
  .u-ask { font-size: var(--step-body); margin: 0 0 14px; line-height: 1.45; }
  .u-opt { background: var(--tone); padding: 10px 12px; margin: 8px 0; font-size: var(--step-small); line-height: 1.45; }
  .u-opt b { display: block; color: var(--muted); margin-bottom: 2px; }
  .u-note { background: var(--ink); color: var(--paper); padding: 12px 14px; margin-top: 14px; font-size: var(--step-small); line-height: 1.45; }
  .quote { font-size: var(--step-body); line-height: 1.45; padding-left: 14px; margin: 0 0 14px; box-shadow: inset 4px 0 0 var(--ink); } /* taste-skill-ignore: a quotation bar, not a shadow */
  .kv { font-size: var(--step-small); margin: 6px 0; }
  .mini { display: grid; grid-template-columns: 110px 1fr 110px; gap: 8px; align-items: center; font-size: var(--step-small); margin: 6px 0; }
  .mini .r { text-align: right; }
  .mini .tr { position: relative; height: 6px; background: var(--tone-2); }
  .mini .tr i { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--ink); }
  .mini .tr i.you { background: transparent; border: 3px solid var(--values); width: 14px; height: 14px; }
  .linkbtn { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font: inherit; }
  .modal .titem { margin-top: 14px; }
  .modal .tpic { mix-blend-mode: normal; }
  .modal .tpic.mono { color: var(--paper); }
  .sub2 { color: var(--muted); font-size: var(--step-small); }

  /* ---------- motion: transform and opacity only ---------- */
  @media (prefers-reduced-motion: no-preference) {
    .js .hero h1 [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
    .js .hero-foot p, .js .topbar { opacity: 0; animation: fade-up 700ms var(--ease-out) 900ms forwards; }
    .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--d, 0) * 70ms); }
    .js [data-reveal].is-in { opacity: 1; transform: none; }
    .side-photo i { animation: drift 18s ease-in-out infinite alternate; }
  }
  @keyframes line-up { to { transform: none; } }
  @keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes drift { from { transform: scale(1); } to { transform: scale(1.12) translateX(-3%); } }

  /* ---------- tablet and phone ---------- */
  @media (max-width: 1100px) {
    .tile h2, .tile p strong { font-size: 2rem; }
    .tile p { font-size: var(--step-small); }
    .tile-accent a { font-size: var(--step-body); }
    .tile { padding: 12px; }
  }
  @media (max-width: 1024px) {
    .hero { min-height: auto; }
    .hero-foot { padding-top: 72px; }
  }
  @media (max-width: 900px) {
    .compass-intro h2, .thinkers-intro .main { grid-column: 1 / 13; }
    .compass-intro .lead, .thinkers-intro .side { grid-column: 1 / 13; }
    .tlist { grid-template-columns: 1fr; }
    .action-tile { grid-column: 1 / 13; }
    .side-photo { grid-column: 1 / 7; grid-row: 2; min-height: 160px; }
    .side-flat { grid-column: 7 / 13; grid-row: 2; min-height: 160px; }
  }
  @media (max-width: 700px) {
    .hero h1 { font-size: 15.5vw; margin-top: 14vh; }
    .hero-foot p { grid-column: 1 / 13; justify-self: start; text-align: left; font-size: 1.25rem; }
    .toplinks a:not(.btn) { display: none; }
    .btn .wide { display: none; }
    .btn .narrow { display: inline; }
    .mosaic { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .tile { padding: 12px; }
    .tile-photo i { background-size: 300% 800%; background-position: var(--px) var(--py); }
    .tile h2, .tile p strong { font-size: 2rem; }
    .tile p { font-size: var(--step-small); }
    .chart-scroll .wrap { width: 660px; max-width: none; }
    .swipe-hint { display: block; }
    .bars { grid-template-columns: 1fr; gap: 12px; }
    .pp-row { grid-template-columns: 110px 1fr 50px; }
    .quiz-list { padding-left: 1.3em; }
    .card { padding: 18px 16px; }
    .tg-head h3 { font-size: 8.5vw; }
    .tpic { width: 52px; height: 52px; }
    .titem { grid-template-columns: 52px 1fr; gap: 16px; }
    .action-tile { padding: 28px 20px; }
    .f-cols { justify-content: flex-start; gap: 56px; }
    .f-cols nav { align-items: flex-start; }
    .mini { grid-template-columns: 80px 1fr 80px; }
  }

  /* ---------- multi-page additions ---------- */
  .credit-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 32px 40px; }
  .credit-list li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; }
  .credit-list img { width: 96px; height: 120px; object-fit: cover; display: block; background: var(--tone-2); }
  .credit-list p { margin: 0; font-size: var(--step-body); line-height: 1.45; overflow-wrap: anywhere; max-width: 60ch; }
  .pic-credit { font-size: var(--step-small); margin: 8px 0 0; max-width: 360px; overflow-wrap: anywhere; }
  .field-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
  #fieldTabs { margin: 0 0 32px; }
  .field-pick button { border: 2px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); min-height: 44px; padding: 0 14px; font: inherit; font-size: var(--step-small); font-weight: 800; cursor: pointer; }
  .field-pick button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
  .field-pick .n { font-weight: 500; margin-left: 8px; }
  .q-head { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 16px; }
  .toplinks a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
  .menu { display: none; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font-weight: 800; min-height: 44px; display: flex; align-items: center; padding: 0 14px; background: var(--ink); color: var(--paper); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu nav { position: absolute; right: 0; top: 52px; background: var(--ink); padding: 12px 0; z-index: 30; min-width: 220px; }
  .menu nav a { display: block; padding: 12px 20px; text-decoration: none; font-size: var(--step-body); color: var(--paper); }
  .menu nav a:hover { background: #2a2a2a; }
  .top-right { display: flex; align-items: center; gap: 12px; }
  .len-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 20px; }
  .len-pick .len { border: 2px solid var(--ink); background: transparent; color: var(--ink); text-align: left; padding: 12px 14px; cursor: pointer; font: inherit; min-height: 48px; }
  .len-pick .len.on { background: var(--ink); color: var(--paper); }
  .len-pick .len-name { display: block; font-weight: 800; font-size: var(--step-lead); line-height: 1.1; }
  .len-pick .len-n { display: block; font-weight: 800; margin-top: 4px; }
  .len-pick .len-note { display: block; font-size: var(--step-small); opacity: .8; }
  .progress { margin: 8px 0 16px; font-weight: 800; }
  .prog-bar { height: 8px; background: var(--tone-2); margin-top: 8px; }
  .prog-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s var(--ease-out); }
  .q-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
  .q-nav .btn { min-width: 110px; }
  .q-nav .btn:disabled { opacity: .35; cursor: not-allowed; }
  .q-nav #nextQ { margin-left: auto; }
  .quiz-solo { max-width: 860px; margin: 0 auto; }
  /* result page: the map sits in the middle, the school lists under it */
  .map-solo { max-width: 1140px; margin: 0 auto; } /* 880px board plus the side words */
  .map-solo .view-tabs { justify-content: center; }
  .map-solo .swipe-hint { text-align: center; }
  .map-lists { max-width: 880px; margin: 56px auto 0; display: grid; grid-template-columns: 2fr 1fr; gap: 40px 64px; align-items: start; }
  @media (max-width: 900px) { .map-lists { grid-template-columns: 1fr; } }
  .chapter[hidden] { display: none !important; }
  .card-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px; align-items: center; }
  .card-preview { grid-column: 1 / 6; width: 100%; height: auto; display: block; border: 2px solid var(--ink); background: var(--tone); }
  .card-txt { grid-column: 7 / 13; min-width: 0; }   /* min-width 0: the map list's longest option no longer widens the page on phones */
  .card-txt h2 { font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; margin: 0 0 24px; }
  .card-txt p { font-size: var(--step-lead); max-width: 34ch; margin: 0 0 8px; }
  .link-note { background: var(--ink); color: var(--paper); padding: 14px 18px; max-width: 60ch; margin: 28px 0 0; }
  .link-note a, .link-note .link-btn { color: var(--paper); font: inherit; font-weight: 800; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
  .end-note { background: var(--tone); padding: 18px 20px; margin-top: 16px; }
  .end-note p { margin: 0 0 12px; }
  .end-note .btn { margin: 0 8px 8px 0; }
  .finish { position: fixed; inset: 0; z-index: 60; background: var(--yellow); display: grid; place-items: center; padding: var(--margin); }
  .finish[hidden] { display: none; }
  .finish-k { font-size: var(--step-head); font-weight: 800; line-height: 1; letter-spacing: -0.03em; margin: 0 0 32px; }
  .finish-steps { list-style: none; padding: 0; margin: 0; font-size: var(--step-lead); }
  .finish-steps li { opacity: .3; margin: 0 0 12px; transition: opacity .35s; }
  .finish-steps li.on { opacity: 1; }
  .finish-steps li.on::before { content: ""; display: inline-block; width: .32em; height: .62em; margin: 0 .55em .12em .1em; border: solid currentColor; border-width: 0 .14em .14em 0; transform: rotate(45deg); vertical-align: middle; }
  /* the reveal on the result page (playReveal in pages.js): one piece of the result per tap, big enough to read on a stream */
  .reveal { position: fixed; inset: 0; z-index: 70; background: var(--yellow); color: var(--ink); display: flex; flex-direction: column; padding: 20px var(--margin) 24px; overflow-y: auto; }
  /* sizes follow the screen, so the reveal reads on a 1920 px stream as well as on a phone (grader round 35) */
  .reveal-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: clamp(0.95rem, 0.7rem + 0.6vw, 1.35rem); font-weight: 800; }
  .reveal-skip { background: none; border: 0; padding: 10px 0; min-height: 44px; font: inherit; font-weight: 800; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
  .reveal-stage { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 1400px; width: 100%; margin: 0 auto; cursor: pointer; }
  .reveal-stage.asking { align-items: center; text-align: center; }
  .reveal-k { font-size: clamp(1.25rem, 0.8rem + 1.6vw, 2.6rem); font-weight: 800; margin: 0 0 20px; }
  .reveal-big { font-size: clamp(2.6rem, 1rem + 5.4vw, 8.5rem); font-weight: 800; line-height: .95; letter-spacing: -0.035em; margin: 0; overflow-wrap: normal; hyphens: none; text-wrap: balance; }   /* names never break inside a word ("Reform/ation", grader round 39); fit() in playReveal shrinks a word that is too wide; balance: no lone "war" on a last line (grader round 45) */
  .reveal-wait { opacity: .45; font-size: clamp(6rem, 3rem + 12vw, 16rem); }
  .reveal-sub { font-size: clamp(1.1rem, 0.8rem + 1vw, 2rem); margin: 18px 0 0; }
  .reveal-quote { font-size: clamp(1.1rem, 0.8rem + 1vw, 2rem); font-weight: 700; margin: 22px 0 0; max-width: 34ch; }
  .reveal-body.with-pic { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 56px); align-items: center; }
  /* the screen-width caps sit on the frame, not the picture: a % cap on the picture is ignored when the grid sizes its column, so a wide place picture left up to 234 px empty beside it (grader round 41) */
  .reveal-fig { margin: 0; justify-self: start; max-width: 46vw; }
  @media (min-width: 761px) { .reveal-body.wide .reveal-fig { max-width: 38vw; } }   /* a wide place picture leaves the name room (grader round 39) */
  /* a picture shows at most at its own size, so it never turns soft (alvin-plantinga.jpg is 320 px wide) */
  .reveal-pic { display: block; width: auto; height: auto; max-width: 100%; max-height: 60vh; border: 2px solid var(--ink); background: var(--tone); }
  .reveal-fig figcaption { font-size: clamp(0.8rem, 0.7rem + 0.3vw, 1rem); margin-top: 8px; max-width: 34ch; }
  .reveal-pic.plate { display: grid; place-items: center; width: clamp(160px, 22vw, 320px); aspect-ratio: 4 / 5; font-size: 4rem; font-weight: 800; }
  .reveal-next { align-self: center; min-width: 220px; margin-top: 20px; font-size: clamp(1rem, 0.8rem + 0.5vw, 1.4rem); }
  .reveal-hint { text-align: center; font-size: clamp(0.85rem, 0.7rem + 0.3vw, 1.1rem); margin: 10px 0 0; }
  @media (max-width: 760px) {
    .reveal-body.with-pic { grid-template-columns: 1fr; gap: 14px; }
    .reveal-fig { max-width: none; }
    .reveal-pic { max-width: 100%; max-height: 36vh; }
    .reveal-big { font-size: clamp(2.2rem, 10vw, 3.6rem); }
    .reveal-big.reveal-wait { font-size: clamp(5rem, 32vw, 9rem); }   /* the "?" stays big on phones (grader round 36) */
    .reveal-next { align-self: stretch; }
  }
  /* short phones (360 x 640): the picture shrinks so "See your full result" stays on the screen (grader round 35) */
  /* a picture with a long caption must still fit a 800 px tall screen without scrolling (grader round 36, Sextus at 1280 x 800) */
  @media (min-width: 761px) and (max-height: 900px) { .reveal-pic { max-height: 52vh; } }   /* desktops only: phones keep their own cap (grader round 38) */
  @media (max-height: 700px) { .reveal-pic { max-height: 26vh; } .reveal-quote { font-size: 1rem; margin-top: 12px; } .reveal-sub { margin-top: 10px; } .reveal-k { margin-bottom: 12px; } }
  @media (prefers-reduced-motion: no-preference) { .reveal-body { animation: revealIn .45s ease both; } }
  @keyframes revealIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .res-voice { margin: 24px 0 0; max-width: 30ch; }
  .res-voice p::before { content: "“"; }
  .res-voice p::after { content: "”"; }
  .axes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 64px; margin-top: 48px; }
  .axes-grid .axis.none .word { color: var(--soft); }
  .axes-grid .word { white-space: nowrap; }
  .apart.apart3 { grid-template-columns: repeat(3, 1fr); margin-top: 48px; }
  #nearSchools, #farSchool { grid-template-columns: 1fr; }
  .apart .names { font-weight: 800; }
  .bigcard .ln { display: block; margin-top: 8px; max-width: 40ch; }
  .res-voice + .voice-cap { margin-top: 12px; }
  .swap-note { margin-top: 8px; }
  .q-jump { list-style: none; padding: 0; margin: 20px 0 32px; display: flex; flex-wrap: wrap; gap: 6px; }
  .q-jump button { width: 40px; height: 40px; border: 2px solid var(--ink); background: transparent; font: inherit; font-weight: 800; cursor: pointer; color: var(--ink); }
  .q-jump button.done { background: var(--tone-2); }
  .q-jump button.here { background: var(--ink); color: var(--paper); }
  /* result page: a row of section links that stays at the top while you scroll */
  .jump { position: sticky; top: 0; z-index: 20; display: flex; gap: 4px; overflow-x: auto; white-space: nowrap; background: var(--ink); padding: 6px var(--margin); scrollbar-width: none; }
  .jump::-webkit-scrollbar { display: none; }
  .jump a { color: var(--paper); text-decoration: none; font-weight: 800; font-size: 0.9375rem; padding: 12px 14px; min-height: 48px; display: inline-flex; align-items: center; }   /* a little bigger (Efe, 27 Nov 2026: "make this nav bigger", "a little bigger") */
  .jump a:hover, .jump a.on { background: var(--paper); color: var(--ink); }
  #resultsRoot > section, #resultsRoot > section[id] { scroll-margin-top: 56px; }
  .fill-row { margin: -16px 0 40px; }
  /* your time and place: a picture of the place, wider than a portrait, with a line saying what it shows */
  .bigcard.place-card .bigpic { aspect-ratio: 4 / 3; object-position: center; margin-bottom: 6px; }
  .place-card .pcap { display: block; font-size: var(--step-small); color: var(--soft); margin-bottom: 12px; }
  #farPlace .tpic { object-position: center; }
  /* circles and rivalries (25 Nov 2026): a circle's picture is its members' faces side by side */
  .faces { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); grid-auto-rows: 1fr; gap: 4px; aspect-ratio: 4 / 3; margin-bottom: 12px; overflow: hidden; }
  .faces img, .faces .mono { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center 20%; filter: grayscale(1) contrast(1.1); display: block; }
  .faces .mono { display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--paper); font-weight: 800; }
  .bigcard:hover .faces img { transform: scale(1.03); }
  .faces img { transition: transform .4s var(--ease-out); }
  .hero-pic .faces { aspect-ratio: 1 / 1; max-width: 520px; margin-left: auto; }
  .hero-pic .faces img { mix-blend-mode: multiply; }
  .circle-kind { display: inline-block; font-weight: 800; font-size: var(--step-small); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
  .circle-line { font-weight: 800; margin-top: 16px; }
  .vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: start; margin-top: 56px; }
  .vs > .vs-mid { font-weight: 800; font-size: var(--step-head); line-height: 1; padding-top: 4px; }
  .vs .side-name { font-weight: 800; font-size: var(--step-lead); margin: 0 0 6px; }
  .vs .side-name a { color: inherit; }
  .vs .side-sub { color: var(--soft); margin: 0 0 20px; }
  .vs .key-card { margin-bottom: 16px; }
  .axis.duel .bar i { width: 26px; height: 26px; top: -7px; transform: translateX(-13px); border-radius: 50%; color: var(--paper); font-style: normal; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
  .axis.duel .bar i.b { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); }
  .duel .gap { color: var(--soft); font-size: var(--step-small); }
  .duel .bar s { position: absolute; top: 1px; width: 10px; height: 10px; border-radius: 50%; transform: translateX(-5px); background: var(--ink); opacity: .45; }
  .duel .bar s.b { background: var(--paper); border: 2px solid var(--ink); width: 6px; height: 6px; opacity: .7; }
  .duel-key { display: flex; gap: 24px; flex-wrap: wrap; margin: 0 0 32px; font-weight: 800; }
  .duel-key span::before { content: attr(data-l); display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; margin-right: 8px; background: var(--ink); color: var(--paper); font-size: 13px; }
  .duel-key span.b::before { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); width: 18px; height: 18px; }
  .rivals { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 64px; }
  .rivals a { display: block; text-decoration: none; color: var(--ink); }
  .rivals .nm { display: block; font-weight: 800; font-size: var(--step-lead); line-height: 1.15; }
  .rivals a:hover .nm { text-decoration: underline; text-underline-offset: 4px; }
  .rivals .q { display: block; margin-top: 6px; }
  .rivals .you { display: block; margin-top: 8px; font-weight: 800; }
  .rivals.teach { gap: 20px 64px; }
  .rivals.teach .nm { font-weight: 500; }
  .rivals.teach a { display: inline; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
  .sources { padding-left: 20px; max-width: 80ch; }
  .sources li { margin-bottom: 12px; }
  .sources q { font-style: italic; }
  .person-links { margin-top: 20px; }
  .person-links p { margin: 0 0 8px; }
  @media (max-width: 700px) {
    .vs { grid-template-columns: 1fr; gap: 24px; }
    .rivals { grid-template-columns: 1fr; }
    .hero-pic .faces { max-width: none; aspect-ratio: 3 / 2; }
  }
  /* the quiz page: question 1 on the first screen, on a phone too */
  body[data-page="quiz"] .page-hero { padding-bottom: 28px; }
  .page-hero .quiz-top h1 { font-size: clamp(30px, 4vw, 52px); line-height: 1; letter-spacing: -0.03em; margin: 20px 0 0; max-width: none; }
  .page-hero .quiz-top .lead { font-size: var(--step-body); max-width: 60ch; margin: 10px 0 0; }
  .chapter.quiz-ch { padding-top: 24px; }
  .page-hero .quiz-top .friend-note { font-weight: 800; margin: 8px 0 0; }
  .quiz-ch .len-pick { margin: 0 0 12px; }
  .quiz-ch .len-pick .len { padding: 8px 12px; min-height: 44px; }
  .quiz-ch .len-pick .len-name { display: inline; font-size: var(--step-body); }
  .quiz-ch .len-pick .len-n { display: inline; margin: 0 0 0 6px; font-weight: 500; }
  .quiz-ch .quiz-note { margin: 20px 0 0; }
  /* long answer lists (6 or more): two columns on wide screens, tighter on phones */
  .opts.many { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
  .opts.many .opt { margin: 0; }
  @media (max-width: 700px) {
    .quiz-ch .len-pick .len-note { display: none; }
    .quiz-ch .len-pick .len-n { display: block; margin: 2px 0 0; }
    .opts .opt { padding: 10px 12px; font-size: 16px; line-height: 1.3; margin-top: 6px; }
    .opts.many { grid-template-columns: 1fr; gap: 6px; }
    .opts.many .opt { margin: 0; }
    .quiz-ch .quiz-list { padding-left: 0; list-style: none; }   /* the number repeats "Situation 3 of 10"; the width goes to the answers */
  }
  .hero h1 { font-size: clamp(44px, 9.5vw, 136px); }
  .hero-ask { grid-column: 7 / 13; justify-self: end; text-align: right; max-width: 34ch; }
  .hero-ask p { font-size: var(--step-lead); line-height: 1.35; margin: 0 0 24px; }
  .hero-note { display: block; margin-top: 12px; font-size: var(--step-small); }
  .hero-back { margin: 16px 0 0; font-size: var(--step-small); font-weight: 700; }
  .hero-back a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
  /* home: headline and its text in one block, no full-screen gap, so the maps start inside the first screen (Efe, 27 Nov 2026) */
  .home-hero { min-height: auto; }
  .home-hero h1 { margin-top: 56px; }
  .home-hero .hero-foot { padding: 40px 0 64px; }
  .home-hero .hero-ask { grid-column: 1 / 8; justify-self: start; text-align: left; max-width: 40ch; }
  .home-hero .hero-ask p { text-align: left; justify-self: start; max-width: none; }
  /* desktop: the headline on the left, its text, button and "Welcome back" on the right beside it (Efe, 27 Nov 2026: "on right") */
  @media (min-width: 901px) {
    .home-hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; column-gap: 64px; padding-bottom: 64px; }
    .home-hero > .topbar { grid-column: 1 / -1; }
    .home-hero h1 { grid-column: 1; grid-row: 2; }
    .home-hero .hero-foot { grid-column: 2; grid-row: 2; display: block; padding: 0; align-self: end; justify-self: end; }
    .home-hero .hero-ask { max-width: 40ch; }
  }
  @media (max-width: 900px) { .home-hero .hero-ask { grid-column: 1 / 13; } }
  /* phones: the painting once, whole, under "Six maps", then the four coloured tiles two by two, instead of a tall
     column of 18 painting slices (Efe, 27 Nov 2026: "this doesn't not look good on phone") */
  @media (max-width: 700px) {
    .mosaic { grid-template-columns: 1fr 1fr; }
    .mosaic .tile-photo { display: none; }
    .mosaic::before { content: ''; grid-column: 1 / -1; order: 1; aspect-ratio: 1200 / 931; background: url('../school-of-athens.jpg') center / cover; }
    .mosaic .tile { aspect-ratio: auto; min-height: 132px; order: 2; }
    .mosaic .tile-red { grid-column: 1 / -1; order: 0; min-height: 0; }
  }
  @media (max-width: 700px) { .home-hero h1 { margin-top: 32px; } .home-hero .hero-foot { padding: 32px 0 48px; } }
  /* nav bar a little bigger on every page (Efe, 27 Nov 2026: "make the nav bar little bigger") */
  .topbar { padding: 28px 0; position: relative; z-index: 40; }   /* above the page title: the bar's fade-in makes it a layer of its own, and the title's lines, drawn later, covered the open menu (Efe, 27 Nov 2026: "the title blocks the menu") */
  .mark { font-size: 1.25rem; }
  .mark svg { width: 34px; height: 34px; }
  .toplinks { gap: 30px; }
  .toplinks a:not(.btn) { font-size: 1.125rem; }
  /* result hero: its small print in ink, not grey on the coloured field */
  #resultsHero .voice-cap { color: var(--ink); }
  .get-ch { background: var(--blue); }
  /* Famous results: three cards side by side; on a phone a row that scrolls sideways, one card at a time */
  .ex-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .ex-row figure { margin: 0; }
  .ex-row img { display: block; width: 100%; height: auto; border: 3px solid var(--ink); }
  .ex-row figcaption { margin-top: 12px; font-size: var(--step-small); }
  @media (max-width: 760px) { .ex-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; } .ex-row figure { scroll-snap-align: start; } }
  .get-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px; align-items: start; }
  .get-grid h2 { grid-column: 1 / 6; font-size: var(--step-page); line-height: 0.95; letter-spacing: -0.04em; margin: 0; }
  .get-list { grid-column: 7 / 13; margin: 0; padding: 0; list-style: none; counter-reset: get; }
  .get-list li { counter-increment: get; display: grid; grid-template-columns: 3.2rem 1fr; gap: 0 16px; padding: 22px 0; border-top: 2px solid var(--ink); font-size: var(--step-body); }
  .get-list li::before { content: counter(get); font-size: var(--step-lead); font-weight: 800; line-height: 1.1; grid-row: span 2; }
  .get-list b { display: block; font-size: var(--step-lead); line-height: 1.2; margin-bottom: 4px; }
  .how-steps { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .how-steps .n { display: block; font-size: var(--step-page); font-weight: 800; line-height: 0.9; color: var(--accent); }
  .how-steps h3 { font-size: var(--step-lead); margin: 16px 0 8px; }
  .how-steps p { margin: 0; max-width: 40ch; }
  .faq-ch { background: var(--tone); }
  .faq { max-width: 880px; }
  .faq-item { border-top: 2px solid var(--ink); }
  .faq-item:last-child { border-bottom: 2px solid var(--ink); }
  .faq-item summary { cursor: pointer; list-style: none; font-size: var(--step-lead); font-weight: 800; padding: 22px 48px 22px 0; position: relative; }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 18px; font-size: 2rem; line-height: 1; }
  .faq-item[open] summary::after { content: '\2212'; }
  .faq-item p { margin: 0 0 24px; max-width: 64ch; }
  @media (max-width: 900px) {
    .hero-ask { grid-column: 1 / 13; justify-self: start; text-align: left; }
    .get-grid { grid-template-columns: 1fr; }
    .axes-grid, .apart.apart3 { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: minmax(0, 1fr); }
    .card-preview, .card-txt { grid-column: auto; }
    /* in one column the heading and its intro come first, then the card, then its choices and buttons (22 Nov 2026: on
       phones the card picture showed above its own "Your result card" heading) */
    .card-grid { gap: 0; }
    .card-txt { display: contents; }
    .card-txt > h2 { order: -2; }
    .card-txt > p { order: -1; margin-bottom: 24px; }
    .card-txt > * { min-width: 0; }
    .get-grid h2, .get-list { grid-column: auto; }
    .how-steps { grid-template-columns: 1fr; }
  }
  /* profile pages: the story parts (written into each page when it is built) */
  .voice { margin: 0; max-width: 34ch; }
  .voice p { font-size: clamp(1.2rem, 0.95rem + 0.7vw, 1.6rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; margin: 0; }
  .voice-cap { margin: 20px 0 0; color: var(--soft); max-width: 52ch; }
  .story-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px; margin-top: 88px; align-items: start; }
  .story-grid > .key { grid-column: 1 / 5; }
  .story-grid > .axes { grid-column: 6 / 13; }
  .key-card { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; text-decoration: none; color: var(--ink); }
  .key-card img { width: 120px; height: 150px; object-fit: cover; filter: grayscale(1) contrast(1.1); }
  .key-card .nm { display: block; font-weight: 800; font-size: var(--step-lead); line-height: 1.15; }
  .key-card:hover .nm { text-decoration: underline; text-underline-offset: 4px; }
  .key-card .yr { display: block; margin-top: 6px; }
  /* when a member was part of a circle, and how it ended (28 Nov 2026); "broke with it" stands out in the accent colour,
     "moved on" stays plain, so a real break is not lost among retirements (fresh review, 28 Nov 2026) */
  .key-card .mem { display: inline-block; margin-top: 10px; padding: 3px 9px; border: 1.5px solid var(--ink); font-size: var(--step-small); font-weight: 700; line-height: 1.3; }
  .key-card .mem-broke { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
  .key-card .mem-unknown { border-style: dashed; font-weight: 500; }
  .key-card .mem-note { display: block; margin-top: 6px; font-size: var(--step-small); color: var(--muted); }
  .key-card:has(.mem) { margin-bottom: 14px; }
  .sub-h { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 24px; }
  .axis { margin: 0 0 22px; }
  .axis .top { display: flex; justify-content: space-between; gap: 12px; font-weight: 800; }
  .axis .word { font-weight: 500; }
  .axis .bar { position: relative; height: 12px; background: var(--tone-2); margin: 8px 0 6px; }
  .axis .bar i { position: absolute; top: -5px; width: 4px; height: 22px; background: var(--ink); transform: translateX(-2px); }
  .axis .bar b { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--paper); }
  .axis .ends { display: flex; justify-content: space-between; color: var(--soft); font-size: var(--step-small); }
  /* "Which answers put you here" under each of your scales (26 Nov 2026, from the 12axes code): opens the answers behind it */
  .axis .why { display: inline-flex; align-items: center; min-height: 28px; margin-top: 2px; font: inherit; font-size: var(--step-small); font-weight: 700; color: var(--ink); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
  .u-pull { display: block; margin-top: 2px; font-weight: 700; }
  .u-story { display: block; color: var(--muted); margin-bottom: 4px; }
  /* Your academy: 6 cards as 3 + 3 (the 5-column grid left one alone on a second row: grader round 34); one column on phones,
     as the other card grids */
  #academyCards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  @media (max-width: 760px) { #academyCards { grid-template-columns: 1fr; } }
  /* each scale's bar sits between the symbols of its two ends; the end words line up under the symbols */
  .ibar { display: flex; align-items: center; gap: 10px; margin: 8px 0 6px; }
  .ibar .bar { flex: 1; margin: 0; }
  .sicon { flex: none; width: 26px; height: 26px; color: var(--ink); }
  .axis.none .sicon { color: var(--soft); }
  .mend { display: inline-flex; align-items: center; gap: 6px; }
  .mend.r { justify-content: flex-end; }
  .mend .sicon { width: 20px; height: 20px; }
  .apart { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 88px; }
  .apart .big { display: block; font-size: var(--step-head); font-weight: 800; line-height: 1; letter-spacing: -0.03em; margin: 8px 0 16px; }
  .apart p { margin: 0 0 12px; max-width: 46ch; }
  .apart .med { color: var(--soft); }
  .cta-band { background: var(--accent); color: var(--paper); }
  .cta-band h2 { font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; margin: 0; }
  .cta-band p { font-size: var(--step-lead); max-width: 40ch; margin: 32px 0; }
  .cta-band .btn { background: var(--paper); color: var(--ink); }
  .byline { font-size: var(--step-lead); font-weight: 800; margin: 16px 0 0; }
  .byline a { color: inherit; }
  .full-title { margin: 8px 0 0; color: var(--soft); max-width: 46ch; }
  .read-next { margin-top: 88px; }
  @media (max-width: 900px) {
    .story-grid { grid-template-columns: 1fr; margin-top: 56px; }
    .story-grid > .key, .story-grid > .axes { grid-column: auto; }
    .apart { grid-template-columns: 1fr; margin-top: 56px; }
  }

  .page-hero { padding: 0 var(--margin) clamp(64px, 8vw, 120px); background: var(--paper); }
  .hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px; align-items: end; }
  .hero-grid > .txt { grid-column: 1 / 8; min-width: 0; }
  .hero-grid > .hero-pic { grid-column: 8 / 13; min-width: 0; }
  figure.pic { margin: 0; overflow: hidden; }
  figure.pic img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
  figure.pic figcaption, .scene-pic figcaption { font-size: var(--step-small); margin-top: 8px; }
  figure.portrait img { filter: grayscale(1) contrast(1.1); object-position: center 20%; }
  /* the hero picture's slow zoom stays inside its own frame (object-view-box), so it never covers the caption under it; until
     27 Nov 2026 a scale() grew the image about 42 px over its caption ("John Locke, often credited with founding liberalism" hidden at
     the peak: grader rounds 27 and 51). Only for visitors who have not asked for less motion; without object-view-box it stays still */
  @media (prefers-reduced-motion: no-preference) { .hero-pic img { animation: frameDrift 22s ease-in-out infinite alternate; } }
  @keyframes frameDrift { from { object-view-box: inset(0 0 0 0); } to { object-view-box: inset(5% 1% 5% 9%); } }
  .hero-pic.wide img { aspect-ratio: 3 / 2; }
  .portrait-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .portrait-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; }
  .area-head { display: grid; grid-template-columns: 1fr 220px; gap: 40px; align-items: end; margin-bottom: 56px; }
  .area-head .tg-head { margin-bottom: 16px; }
  .area-head .area-note { margin: 0; }
  figure.area-pic img { aspect-ratio: 4 / 5; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; object-position: center 20%; }
  .bigcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; margin-bottom: 64px; }
  .bigcard { display: block; text-decoration: none; color: var(--ink); text-align: left; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
  .bigcard .bigpic { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; filter: grayscale(1) contrast(1.1); display: block; margin-bottom: 12px; transition: transform .4s var(--ease-out); }
  .bigcard .bigpic.mono { display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--paper); font-size: var(--step-head); font-weight: 800; }
  .bigcard:hover .bigpic { transform: scale(1.03); }
  .bigcard:hover .nm { text-decoration: underline; text-underline-offset: 4px; }
  .scene-pic { margin: -24px -26px 18px; }
  /* a trimmed strip, aimed at its subject by each picture's crop point in SCENE_PICS (Efe, 27 Nov 2026: "nah trim was
     better", after a try at whole paintings) */
  .scene-pic img { width: 100%; height: 240px; object-fit: cover; display: block; }
  .scene-pic figcaption { padding: 0 26px; }
  .example-note { background: var(--ink); color: var(--paper); padding: 14px 18px; font-size: var(--step-body); max-width: 60ch; margin: 28px 0 0; }
  .box { position: relative; }
  /* a school with no right portrait shows none: its text takes the whole hero */
  .hero-grid > .hero-pic:empty { display: none; }
  .hero-grid:has(> .hero-pic:empty) > .txt { grid-column: 1 / 13; }
  .box .half { position: absolute; }
  .box .half.h { top: 0; bottom: 0; right: 0; width: 50%; }
  .box .half.v { left: 0; right: 0; bottom: 0; height: 50%; }
  .box span { position: relative; z-index: 1; }
  .ln { font-size: var(--step-body) !important; }
  .two > * { min-width: 0; }
  .hero-foot p { max-width: min(30ch, 100%); }
  .bigcard .bigpic.mono { font-size: var(--step-lead) !important; }
  .hero-grid { align-items: center; }
  .rise .w { display: inline-block; }
  @media (prefers-reduced-motion: no-preference) {
    .js .rise .w { opacity: 0; transform: translateY(0.35em); animation: word-up 700ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 90ms + 100ms); }
  }
  @keyframes word-up { to { opacity: 1; transform: none; } }
  .sub2 { color: var(--soft) !important; }
  .action-tile p, .share-note { color: var(--accent-ink) !important; }
  .mark-name { white-space: nowrap; }
  main.chapter { display: flow-root; }
  @media (min-width: 701px) and (max-width: 900px) { .tlist { grid-template-columns: 1fr 1fr !important; gap: 32px !important; } }
  @media (max-width: 700px) { .tlist .ln { max-width: none; } }
  main.chapter > div > .tgroup:first-child { margin-top: 64px; }
  .bigcard .bigpic.mono { background: var(--tone) !important; color: var(--ink) !important; }
  @media (max-width: 480px) { .mark-name { display: none; } }
  .page-hero h1 { font-size: var(--step-page); line-height: 0.9; letter-spacing: -0.04em; margin-top: clamp(40px, 7vw, 96px); max-width: 16ch; }
  .page-hero .lead { font-size: var(--step-lead); max-width: 40ch; margin: 28px 0 0; }
  .page-hero .match { font-size: var(--step-body); font-weight: 800; margin: 20px 0 0; }
  .page-hero .more { font-size: var(--step-body); margin: 12px 0 0; max-width: 56ch; }
  .page-hero .search-wrap { margin-top: 32px; max-width: 520px; }
  .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
  .btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }

  .section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
  .section-head h2 { font-size: var(--step-head); }
  .section-head p { margin: 0; max-width: 46ch; }
  /* section titles in the middle on every page, and the rows of cards, small headings, lists and buttons under them centred too, instead
     of always filling from the far left (Efe, 27 Nov 2026: "the titles is always on the left", then "I want the titles on the
     middle. but the other stuff ... under title diverstify ... too much left", then "center everything bro") */
  @media (min-width: 901px) {
    main > section .section-head { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
    main > section .section-head p { max-width: 62ch; }
    main > section .bigcards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 1160px; margin-left: auto; margin-right: auto; gap: 32px; }   /* the cards grow to fill a wide centred column, so the sides are not empty (Efe: "the sides looks empty bro") */
    main > section .q-head { text-align: center; }
    main > section .hero-actions { justify-content: center; }
    main > section .fill-row, main > section .area-note-s { text-align: center; }
    main > section .area-note-s { margin-left: auto; margin-right: auto; }
    main > section .field-pick, main > section .view-tabs { justify-content: center; }
    #cardCh .card-txt { text-align: center; } #cardCh .card-txt p { margin-left: auto; margin-right: auto; } #cardCh .card-pick { justify-content: center; text-align: left; }
    main > section .byarea { grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); justify-content: center; }
    main > section .tlist, main > section .rivals { grid-template-columns: repeat(auto-fit, minmax(320px, 560px)); justify-content: center; }
  }
  .two { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px; align-items: start; }
  .two > .l { grid-column: 1 / 6; }
  .two > .r { grid-column: 6 / 13; }
  .two > .l7 { grid-column: 1 / 8; }
  .two > .r5 { grid-column: 8 / 13; }

  dl.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 14px 24px; font-size: var(--step-body); }
  dl.facts dt { font-weight: 800; }
  dl.facts dd { margin: 0; }
  #scales { margin-top: 32px; }

  .area { padding: clamp(80px, 9vw, 140px) var(--margin); }
  .area-note { font-size: var(--step-lead); max-width: 40ch; margin: -16px 0 48px; }
  .slist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; }
  .sitem { display: block; text-decoration: none; color: var(--ink); }
  .sitem:hover .nm { text-decoration: underline; text-underline-offset: 4px; }
  .sitem .ln { max-width: none; }
  .empty-note { font-size: var(--step-lead); }

  .big-pic { width: 100%; max-width: 360px; aspect-ratio: 9 / 11; height: auto; object-fit: cover; object-position: center 20%; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; }
  .big-pic.mono { display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--paper); font-size: var(--step-head); font-weight: 800; mix-blend-mode: normal; }
  .thinker-hero { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px; align-items: end; }
  .thinker-hero .txt { grid-column: 1 / 8; min-width: 0; max-width: 100%; }   /* lets fitHead() shrink a long one-word title (a book called Characteristicks) instead of widening the page */
  .thinker-hero .pic { grid-column: 9 / 13; justify-self: end; width: 100%; max-width: 360px; }


  .ways { list-style: none; margin: 0; padding: 0; }
  .ways li + li { margin-top: 18px; }
  .ways a { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: baseline; text-decoration: none; color: var(--ink); }
  .ways a span:first-child { font-size: clamp(2rem, 4.5vw, 4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; transition: transform .3s var(--ease-out); }
  .ways a:hover span:first-child { transform: translateX(12px); }
  .ways a span:last-child { font-size: var(--step-lead); line-height: 1.3; max-width: 32ch; }

  .compare-box h3 { font-size: var(--step-lead); letter-spacing: -0.02em; margin: 24px 0 8px; }
  .select { width: 100%; max-width: 420px; min-height: 48px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 0; background: var(--paper); font: inherit; font-size: var(--step-body); }
  #thinkerOut { margin-top: 24px; max-width: 720px; }
  #thinkerOut p { max-width: 60ch; }
  #thinkerOut .linkbtn { display: inline-block; margin-top: 16px; }
  .tile a.tile-link { position: absolute; inset: 0; }
  .tile.has-link:hover { filter: brightness(1.05); }
  /* the result page's map tabs: Reality & truth and the two-scale maps, all drawn the same way */
  .pmap-ch { background: var(--tone); }
  #pmapTabs { margin: 0 0 24px; justify-content: center; }
  .pmap-wrap { max-width: 1140px; margin: 0 auto; }
  .pmap-wrap .pmap-cap, .pmap-wrap .note, .pmap-wrap .pmap-pick { max-width: 880px; margin-left: auto; margin-right: auto; }
  .pmap-wrap .swipe-hint { text-align: center; }
  .pboard .box.near { outline-color: var(--mark); }
  .pmap-pick { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 0 0 20px; }
  .pmap-pick label { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: var(--step-small); max-width: 100%; }
  .pmap-pick select { border: 2px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); min-height: 44px; padding: 0 10px; font: inherit; font-weight: 400; max-width: 100%; }
  /* the side words read across, level with the arrows, outside the board */
  .pboard-row { display: flex; align-items: center; gap: 10px; }
  .pboard-row > .wrap { flex: 1 1 0; min-width: 0; margin: 0; }
  .pside { flex: 0 0 120px; margin: 0; font: 700 18px/1.15 Arial, Helvetica, sans-serif; color: #111; overflow-wrap: break-word; }
  .pside.l { text-align: right; }
  /* school and thinker pages: the map sits in a narrower column, so the side words take less room */
  .two .pboard-row { gap: 6px; }
  .two .pside { flex-basis: 72px; font-size: 14px; }
  /* you: a black box with YOU in white, unlike any school */
  .pboard .box.you-box { background: var(--ink) !important; color: var(--paper); font-weight: 800; letter-spacing: .04em; z-index: 4; outline: 4px solid var(--accent); outline-offset: 0; }
  .pboard .box.you-box .half { display: none; }
  /* your own school (your top match) on every map: a black frame, over the outline of the nearest ones */
  .grid .box.mine { outline: 5px solid var(--ink); outline-offset: -3px; position: relative; z-index: 4; font-weight: 800; }
  /* map boxes are all one size, so a name wraps and breaks with a hyphen where it needs to, instead of shrinking */
  .view-tabs.no-view [data-view] { display: none; }
  .pmap-pick[hidden] { display: none; }   /* the Pick any two lists show only on that tab */   /* Facts and Values views belong to Reality & truth only */
  .grid .box.even span { white-space: normal; hyphens: auto; -webkit-hyphens: auto; }
  /* school names over your ring (21 Nov 2026): the ring (z-index 5) used to cross the letters of the box it sat on. The boxes no longer
     stack on their own, so each name (z-index 6) draws above the ring and the ring's line passes behind the letters. */
  .grid .box.near, .grid .box.mine, .grid .box.here { z-index: auto; }
  .grid .box span { z-index: 6; }
  /* each red outline sits 2px further inside its own box, so two outlined boxes side by side keep a strip of their colour
     between them and read as two frames, not one double box */
  .grid .box.near { outline-offset: -6px; }
  .map-key { max-width: 880px; margin: 16px auto 0; font-size: var(--step-body); }
  /* the city map (21 Nov 2026): four coloured quarters, each school a small square at its exact spot, names where they fit */
  .wrap.city { background: conic-gradient(var(--blue) 0 25%, var(--yellow) 0 50%, var(--green) 0 75%, var(--red) 0); }
  .wrap.city .grid { display: block; }
  .mk { position: absolute; z-index: 3; width: 11px; height: 11px; transform: translate(-50%, -50%); box-sizing: border-box; background: #fff; border: 2px solid var(--ink); }
  .mk.near { background: var(--mark); border-color: var(--mark); }
  .mk.mine, .mk.here { width: 13px; height: 13px; background: var(--ink); border-color: var(--ink); }
  .mk.near.mine, .mk.near.here { border-color: var(--mark); }
  .mk.here { animation: flash 1.2s ease 3; }
  .mk:hover, .mk:focus-visible, .mk.tip { z-index: 8; outline: 2px solid var(--ink); outline-offset: 2px; }
  .mk:hover::after, .mk:focus-visible::after, .mk.tip::after { content: attr(data-name); position: absolute; left: 14px; top: -7px; background: var(--ink); color: #fff; font: 700 12px/1 Arial, Helvetica, sans-serif; padding: 4px 6px; white-space: nowrap; pointer-events: none; }
  .mk.lt::after { left: auto; right: 14px; }   /* right side of the board: the name opens to the left, inside the board */
  .mk.tip::after { font-size: 14px; padding: 6px 8px; top: -11px; }   /* a phone tap shows the name a little larger */
  .mlabel { position: absolute; z-index: 4; white-space: nowrap; font: 600 13px/1.1 Arial, Helvetica, sans-serif; color: var(--ink); text-decoration: none; padding: 2px 3px;
    text-shadow: 0 0 2px rgba(255,255,255,.9), 0 0 3px rgba(255,255,255,.9), 0 0 4px rgba(255,255,255,.8); }
  .mlabel:hover { text-decoration: underline; }
  .mlabel.near { z-index: 5; background: #fff; border: 2px solid var(--mark); text-shadow: none; padding: 1px 3px; }
  .mlabel.mine, .mlabel.here { z-index: 5; background: #fff; border: 3px solid var(--ink); font-weight: 800; text-shadow: none; padding: 0 3px; }
  .mlabel.near.mine, .mlabel.near.here { box-shadow: 0 0 0 3px var(--mark); }   /* your school and one of the 3 red: black frame with red around it */
  .mlines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
  .mlines line { stroke: var(--mark); stroke-width: 2; }
  .mlines line.mine, .mlines line.here { stroke: var(--ink); }
  .profile-facts { max-width: 880px; }
  .maps-head { margin-top: 64px; }
  .maps-intro { max-width: 60ch; margin: 0 0 24px; font-size: var(--step-body); }
  .card-pick { margin: 16px 0 24px; }
  .pmap-pick label[hidden] { display: none; }
  @media (max-width: 700px) {
    .pboard-row { width: max-content; }
    .pboard-row > .wrap { flex: none; }
    .pside { flex-basis: 90px; font-size: 15px; }
  }
  .pmap-cap { margin: 16px 0 0; font-size: var(--step-body); max-width: 60ch; }
  .pmap-cap a { color: var(--ink); font-weight: 800; }

  @media (max-width: 1100px) {
    .toplinks { display: none; }
    .menu { display: block; }
  }
  @media (max-width: 1024px) {
    .compare-ch { min-height: auto; }
  }
  @media (max-width: 900px) {
    .two > .l, .two > .r, .two > .l7, .two > .r5 { grid-column: 1 / 13; }
    .slist { grid-template-columns: 1fr; }
    .thinker-hero .txt, .thinker-hero .pic { grid-column: 1 / 13; justify-self: start; }
    .ways a { grid-template-columns: 1fr; gap: 6px; }
    .hero-grid, .two, .compass-intro, .thinkers-intro { grid-template-columns: 1fr; gap: 32px; }
    .hero-grid > .txt, .hero-grid > .hero-pic, .two > * { grid-column: auto !important; }
    .tg-head { flex-wrap: wrap; }
    .tg-head h2 { font-size: 8vw; flex: 1 1 100%; }
    .thinker-hero { grid-template-columns: 1fr; gap: 32px; }
    .thinker-hero .txt, .thinker-hero .pic { grid-column: auto; }
    .area-head { grid-template-columns: 1fr; }
    .area-head figure { max-width: 160px; }
    .hero-foot { display: block; }
    .hero-grid > .hero-pic { max-width: none; }
    .hero-grid > .hero-pic img { aspect-ratio: 3 / 2; }
    .hero-grid > .portrait-grid img { aspect-ratio: 4 / 5; }
    .area-head { grid-template-columns: 1fr 120px; gap: 20px; }
    .scene-pic { margin: -18px -16px 14px; }
    .scene-pic img { height: 180px; }
    .scene-pic figcaption { padding: 0 16px; }
  }
  /* result page: check your label */
  .label-box { max-width: 640px; }
  .label-sugg { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .label-sugg button { border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font: inherit; font-weight: 800; font-size: var(--step-small); padding: 8px 12px; min-height: 44px; cursor: pointer; text-align: left; }
  .label-sugg button:hover, .label-sugg button:focus-visible { background: var(--ink); color: var(--paper); }
  .label-sugg button span { font-weight: 500; margin-left: 8px; opacity: .75; }
  .label-out { margin-top: 32px; }
  .label-card { background: var(--paper); border: 2px solid var(--ink); padding: 28px; max-width: 1040px; }
  .label-card h3 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 8px; }
  .label-rank { margin: 0; color: var(--soft); }
  .label-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; margin: 28px 0; }
  .label-cols h4 { margin: 0 0 10px; font-size: var(--step-body); }
  .label-cols ul { margin: 0; padding-left: 20px; }
  .label-cols li { margin: 0 0 8px; }
  .label-empty { color: var(--soft); margin: 0; }
  .label-key { margin: 0 0 8px; font-size: var(--step-small); color: var(--soft); }
  .label-scales { margin: 0 0 24px; }
  /* result page: where your school comes from */
  .roots { display: grid; grid-template-columns: 1fr auto minmax(180px, .7fr) auto 1fr; gap: 20px; align-items: start; }
  .roots-arrow, .roots-here { align-self: center; }
  .roots-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
  .roots-list li { border: 2px solid var(--ink); background: var(--paper); padding: 10px 14px; }
  .roots-list a, .roots-here a { color: inherit; font-weight: 800; }
  .roots-here { background: var(--ink); color: var(--paper); padding: 20px; font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
  .roots-here .tag { display: block; font-size: var(--step-small); font-weight: 500; letter-spacing: 0; margin-bottom: 6px; opacity: .8; }
  .roots-arrow { line-height: 0; color: var(--ink); }
  /* result page: one practice, the case against you */
  .practice, .case { max-width: 860px; }
  .practice-name { font-size: clamp(24px, 2.4vw, 36px); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 20px; }
  .practice-how { font-size: var(--step-lead); line-height: 1.35; margin: 0 0 16px; max-width: 46ch; }
  .practice-from, .case-from, .case-where { margin: 0 0 12px; }
  .case-from a { color: var(--ink); font-weight: 800; }
  .case-text { font-size: var(--step-lead); font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 20px; max-width: 44ch; border-left: 6px solid var(--ink); padding-left: 20px; }
  @media (max-width: 900px) {
    .roots { grid-template-columns: 1fr; gap: 12px; }
    .roots-arrow { transform: rotate(90deg); justify-self: start; margin-left: 12px; }
  }
  @media (max-width: 700px) {
    .label-cols { grid-template-columns: 1fr; }
    .label-card { padding: 20px 16px; }
    .case-text { padding-left: 14px; }
    /* phones: the two end words on one line, the bar below them, so a long word (Determinism, Experience) never runs under the bar */
    .mini { grid-template-columns: 1fr 1fr; row-gap: 6px; margin: 0 0 14px; }
    .mini .tr { grid-column: 1 / -1; grid-row: 2; margin: 0 7px; }
  }
  /* result page polish (20 Nov 2026) */
  #resultsHero .match { margin: 20px 0 0; }
  .match-big { display: block; font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; }
  .match-sub { display: block; font-weight: 500; margin-top: 10px; }
  #resultsHero .res-voice { margin-top: 36px; }
  .roots-here .tag { margin: 8px 0 0; }
  .label-picks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0 0; }
  .label-picks > span { font-weight: 800; margin-right: 4px; }
  .label-picks button { border: 2px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-size: var(--step-small); font-weight: 800; padding: 8px 12px; min-height: 44px; cursor: pointer; }
  .label-picks button:hover, .label-picks button:focus-visible { background: var(--ink); color: var(--paper); }
  .label-row { display: grid; grid-template-columns: minmax(0, 640px) 1fr; gap: 24px 48px; align-items: end; }
  /* practice and case use the whole width: the name or the source on the left, the text on the right */
  .practice, .case { max-width: none; display: grid; grid-template-columns: 5fr 7fr; gap: 0 64px; align-items: start; }
  .practice-name { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
  .practice-how, .practice-from { grid-column: 2; }
  .case-text { grid-column: 2; grid-row: 1 / span 4; margin: 0; max-width: 40ch; }
  .case-from, .case-where, .case > .voice-cap { grid-column: 1; }
  .case > .voice-cap { margin-top: 0; }
  /* a thinker with no portrait: large initials on a soft field, not an empty box */
  .bigcards .bigcard .bigpic.mono { background: rgba(0, 0, 0, .08) !important; color: var(--ink) !important; font-size: var(--step-head) !important; letter-spacing: -0.03em; }
  @media (max-width: 900px) {
    .practice, .case, .label-row { grid-template-columns: 1fr; }
    .practice-name, .practice-how, .practice-from, .case-text, .case-from, .case-where, .case > .voice-cap { grid-column: 1; grid-row: auto; }
    .practice-name { margin-bottom: 16px; }
    .case-text { margin: 8px 0 16px; }
  }
  @media (max-width: 700px) { .bigcards .bigcard .bigpic.mono { font-size: var(--step-lead) !important; } }
  /* a thinker with no free picture: a name plate hatched like the old engravings, with the initials and, when large, the dates */
  .mono.plate { flex-direction: column; gap: 0.35em; box-sizing: border-box; border: 2px solid var(--ink); background-color: var(--paper) !important;
    background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, .13) 0 1px, transparent 1px 7px) !important; color: var(--ink) !important;
    mix-blend-mode: normal !important; filter: none !important; text-align: center; }
  .mono.plate .ini { line-height: 1; letter-spacing: -0.03em; background: var(--paper); padding: 0.06em 0.16em; }
  .mono.plate .yrs { font-size: var(--step-small); font-weight: 600; line-height: 1.3; letter-spacing: 0; background: var(--paper); padding: 2px 8px; max-width: 85%; }
  .big-pic.mono.plate .ini { font-size: clamp(4rem, 2rem + 6vw, 7.5rem); }
  .bigcard .bigpic.mono.plate { background-color: var(--paper) !important; }
  .bigcard .bigpic.mono.plate .ini { font-size: clamp(3rem, 2rem + 3vw, 5rem); }
  .tpic.mono.plate, .mpic.mono.plate { border-width: 1.5px; }
  .pic-note { font-size: var(--step-small); margin: 10px 0 0; max-width: 360px; }
  /* lessons from 12axes (21 Nov 2026): your lean words, the summary strip, the small bars, by area, the timeline, book links, the report */
  .lean-tag { display: inline-block; margin: 0 0 14px; padding: 5px 10px; background: var(--ink); color: var(--paper); font-weight: 800; font-size: var(--step-small); letter-spacing: .08em; text-transform: uppercase; }
  .lean-tag[hidden], .sumstrip[hidden], #byArea[hidden] { display: none; }
  .sumstrip { margin-top: 56px; }
  .sum-line { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; margin: 0 0 16px; max-width: 56ch; }
  .sum-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid var(--ink); }
  .sum-tiles a { display: block; padding: 16px 18px; text-decoration: none; color: var(--ink); border-left: 2px solid var(--ink); min-width: 0; }
  .sum-tiles a:first-child { border-left: 0; }
  .sum-tiles a:hover { background: rgba(0, 0, 0, .06); }
  .sum-k { display: block; font-size: var(--step-small); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .sum-v { display: block; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; margin: 10px 0 6px; }
  .sum-n { display: block; font-size: var(--step-small); overflow-wrap: anywhere; }
  @media (max-width: 900px) {
    .sum-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sum-tiles a:nth-child(3) { border-left: 0; }
    .sum-tiles a:nth-child(n+3) { border-top: 2px solid var(--ink); }
  }
  .apart-bar { margin: 0 0 14px; max-width: 360px; }
  .apart-bar .tr { position: relative; height: 8px; background: rgba(0, 0, 0, .14); margin: 16px 10px 10px; }
  .apart-bar .med { position: absolute; top: -6px; width: 3px; height: 20px; background: var(--ink); transform: translateX(-1.5px); }
  .apart-bar .you { position: absolute; top: -6px; width: 20px; height: 20px; box-sizing: border-box; border-radius: 50%; border: 4px solid var(--mark); background: var(--paper); transform: translateX(-10px); }
  .apart-bar .ends { display: flex; justify-content: space-between; gap: 12px; font-size: var(--step-small); font-weight: 800; }
  .apart-bar .key { font-size: var(--step-small); margin: 6px 0 0; }
  .area-note-s { margin: -8px 0 20px; max-width: 60ch; }
  .byarea { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; margin: 0 0 64px; }
  .academy-actions { margin: -40px 0 64px; }
  .byarea a { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 14px; border: 2px solid var(--ink); text-decoration: none; color: var(--ink); min-width: 0; }
  .byarea a:hover .nm { text-decoration: underline; text-underline-offset: 4px; }
  .byarea .k { display: block; font-size: var(--step-small); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  .byarea .nm { display: block; font-weight: 800; margin-top: 4px; }
  .byarea .pct { display: block; font-size: var(--step-lead); font-weight: 800; }
  .era-best { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; border: 2px solid var(--ink); padding: 20px; margin-top: 48px; }
  .era-best .faces { display: flex; }
  .era-best .faces .tpic { width: 72px; height: 72px; margin-left: -14px; border: 2px solid var(--tone); }
  .era-best .faces .tpic:first-child { margin-left: 0; }
  .era-best .k { display: block; font-size: var(--step-small); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .era-best .nm { display: block; font-size: var(--step-head); font-weight: 800; line-height: 1; letter-spacing: -0.03em; margin: 6px 0; }
  .eras { list-style: none; padding: 0; margin: 40px 0 0; }
  .eras > li { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 16px 32px; padding: 20px 0; border-top: 2px solid var(--ink); align-items: center; }
  .eras .era-n { font-weight: 800; font-size: var(--step-lead); line-height: 1.2; }
  .eras .era-y { display: block; font-size: var(--step-small); font-weight: 500; }
  .eras .titem { grid-template-columns: 52px 1fr; gap: 14px; align-items: center; }
  .eras .tpic { width: 52px; height: 52px; }
  .eras .none { color: var(--soft); }
  @media (max-width: 700px) { .eras > li { grid-template-columns: 1fr; } .era-best { grid-template-columns: 1fr; } }
  .readcard .buy-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; font-weight: 800; color: var(--ink); text-underline-offset: 4px; }
  .print-only { display: none; }
  .paper-only { display: none; }
  @media print {
    /* paper keeps the type sizes the printed report was laid out for (the screen went to smaller sizes on 24 Nov 2026;
       on paper they moved headings to page bottoms, which check_print.mjs fails) */
    :root { --step-small: 0.875rem; --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
      --step-head: clamp(2.5rem, 1.4rem + 3.2vw, 4.25rem); --step-display: min(15vw, 230px); --step-page: clamp(3.5rem, 2rem + 6vw, 8rem); }
    .practice-name { font-size: clamp(28px, 3.2vw, 48px); }
    .voice p { font-size: clamp(1.35rem, 1rem + 1vw, 2rem); }
    @page { margin: 12mm; }
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .print-only { display: block; }
    /* words for the screen (point, tap, click) and their paper version (22 Nov 2026) */
    .screen-only { display: none !important; }
    .paper-only { display: inline; }
    .print-meta { font-weight: 800; margin: 0; padding: 12px 0; }
    .print-about { padding: 24px 0; }
    .topbar, .jump, .hero-actions, .footer, .modal, #labelCh, #cardCh, #shareCh, .field-pick, .view-tabs, .swipe-hint, .fill-row, .map-fill, .buy-link, .snap-hide, .axis .why { display: none !important; }
    .js [data-reveal] { opacity: 1 !important; transform: none !important; }
    .page-hero, .chapter { padding: 12px 16px !important; }
    .chart-scroll { overflow: visible !important; }
    /* a map stays on one page (21 Nov 2026: the printed Reality & truth was cut in two across pages 4 and 5); the copies of the
       other maps that the report adds each start with their name */
    .map-solo, .print-map .map-solo { break-inside: avoid; }
    .print-map { break-inside: avoid; margin-top: 32px; }
    /* the four quarters as two plain gradients on paper: Windows' own PDF reader drew the screen's conic gradient as nothing,
       so the saved report's maps had no colours there (21 Nov 2026) */
    .wrap.city { background: linear-gradient(to right, var(--red) 50%, var(--blue) 50%) top / 100% 50% no-repeat,
      linear-gradient(to right, var(--green) 50%, var(--yellow) 50%) bottom / 100% 50% no-repeat !important; }
    .print-map .q-head { margin: 0 0 8px; padding-bottom: 0; margin-bottom: 8px !important; }
    .bigcard, .titem, .sum-tiles, .apart > div, .eras > li, .byarea a, .era-best { break-inside: avoid; }
    /* a title stays on the page of what follows it (break-after: avoid). Until 22 Nov 2026 each title also reserved 200px
       of room under it with padding, which left pages a third to half empty; build/check_print.mjs now checks from the
       real PDF that no title sits alone at a page bottom */
    .section-head { break-inside: avoid; break-after: avoid; margin-bottom: 10px; }
    .section-head p { max-width: none; }
    /* the report's maps: the line under each map says how to read it, so the intro above them stays on screen; then the
       title and first map take under half a page, and a page too full for them is always at least half full (22 Nov 2026) */
    #mapCh .section-head p { display: none; }
    .roots-col { break-inside: avoid; }
    .q-head { break-inside: avoid; break-after: avoid; }
    .apart.apart3 { display: block !important; margin-top: 24px !important; }
    .apart.apart3 > div { margin-bottom: 28px; }
    .link-note, .example-note { display: none !important; }
    /* smaller pictures on paper, so a section's title stays with its first row */
    .hero-grid { display: grid !important; grid-template-columns: minmax(0, 1fr) 190px !important; gap: 24px !important; align-items: start !important; }
    .hero-pic { max-width: 190px; }
    .bigcards { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 16px !important; }
    .bigcard .bigpic { max-height: 210px; }
    /* on paper Further reading and Your time and place show each card as a row, picture at the left, so a page can end
       between two cards: a row of three tall cards could not be split, so it moved to the next page whole and left the page
       before it up to half empty (22 Nov 2026) */
    #readCards, #placeCards { grid-template-columns: 1fr !important; gap: 14px !important; }
    #readCards .bigcard, #placeCards .bigcard { display: grid !important; grid-template-columns: 120px minmax(0, 1fr); column-gap: 18px; align-items: start; }
    #readCards .bigcard > *, #placeCards .bigcard > * { grid-column: 2; }
    #readCards .bigcard > .bigpic, #placeCards .bigcard > .bigpic { grid-column: 1; grid-row: 1 / span 6; max-height: 150px; margin: 0; }
    #readCards .readcard, #placeCards .bigcard { break-inside: avoid; }
    /* Your circle (25 Nov 2026): the cards as rows too, the faces at the left; the rivalries heading stays with its list
       (alone at a page bottom in 2 of 3 printed reports before this) */
    #circleCards { grid-template-columns: 1fr !important; gap: 14px !important; }
    #circleCards .bigcard { display: grid !important; grid-template-columns: 120px minmax(0, 1fr); column-gap: 18px; align-items: start; break-inside: avoid; }
    #circleCards .bigcard > * { grid-column: 2; }
    #circleCards .bigcard > .faces { grid-column: 1; grid-row: 1 / span 6; margin: 0; }
    /* the heading stays with the first rivalry and each rivalry stays whole, but the list may split between rivalries: kept
       whole, the page-tall list jumped to a new page and left 3 printed reports with a page 23 to 35% full (26 Nov 2026,
       after Your academy pushed it down) */
    .rival-block .q-head { break-after: avoid; }
    /* Your academy (26 Nov 2026) is a third of a page: kept whole, its heading can't sit alone at a page bottom */
    #academy { break-inside: avoid; }
    .rivals li { break-inside: avoid; }
    #circleCh .hero-actions { display: none !important; }
    /* the 4 summary tiles in one row, so they stay on the first page with the result (in two rows they missed it by a few
       pixels and left a quarter of page 1 empty, 22 Nov 2026) */
    .sum-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .sum-tiles a:nth-child(3) { border-left: 2px solid var(--ink) !important; }
  }
