/* Lawrence Cotter · Brand Board V3 · design tokens
   Source: https://claude.ai/artifact/7MoNarJuLKPzG6jAi6ZtzP (21 Nov 2026)
   Two themes, one per site:
     lawrencecotter.com  → <html data-site="lawrence">  (black, cinematic)
     quantumcreation.co  → <html data-site="quantum">   (white, the classroom)
   Amiara is NOT covered here; it keeps its own Celestial Glow system. *//* Self-hosted copies of the Google Fonts files (27 Nov 2026). Same files, served from this site.
   Made by kit/tools selfhost step; source: https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&display=swap */
/* latin-ext */
@font-face {
  font-family: 'Urbanist';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/urbanist-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Urbanist';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/urbanist-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Urbanist';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/urbanist-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Urbanist';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/urbanist-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Urbanist';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/urbanist-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Urbanist';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/urbanist-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/urbanist-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/urbanist-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/urbanist-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/urbanist-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/urbanist-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/urbanist-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/urbanist-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/urbanist-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/urbanist-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/urbanist-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  /* Palette (fixed) */
  --carbon: #0a0a0a;
  --onyx: #1a1a1a;
  --charcoal: #3d3d35;
  --stone: #888878;   /* 3.6:1 on white: borders and labels 24px+ only */
  --ash: #c8c4bc;
  --linen: #f0ede8;
  --ivory: #f7f5f0;
  --white: #ffffff;
  --hope: #9b2335;    /* one red element per view. Never text on the black site */

  /* Type */
  --font-display: "Urbanist", "Segoe UI", system-ui, sans-serif;

  /* Scale (web) */
  --text-hero: clamp(48px, 7.4vw, 100px);
  --text-headline: clamp(34px, 4.4vw, 52px);
  --text-subheading: 24px;
  --text-body: 18px;
  --text-essay: 20px;
  --text-label: 12px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-4: 16px;
  --space-6: 24px;
  --space-10: 40px;
  --space-16: 64px;
  --space-24: 96px;

  /* Radius: square by default */
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-round: 9999px;

  /* Texture */
  --grain-opacity: 0.15; /* grain on Carbon/Onyx only, never on white */

  --content-max: 1240px;
  --reading-max: 720px;
}

/* lawrencecotter.com: black */
[data-site="lawrence"] {
  --surface: var(--carbon);
  --surface-raised: var(--onyx);
  --surface-warm: var(--linen);   /* "the human": stories, long reading */
  --surface-inverse: var(--white);
  --ink-strong: var(--white);
  --ink: var(--linen);
  --ink-muted: var(--ash);
  --ink-on-warm: var(--carbon);
  --ink-on-inverse: var(--carbon);
  --line: var(--charcoal);        /* decorative only, 1.9:1 */
  --line-control: var(--stone);   /* input borders, 5.5:1 on black */
  --ripple: var(--charcoal);
  color-scheme: dark;
}

/* quantumcreation.co: white */
[data-site="quantum"] {
  --surface: var(--white);
  --surface-raised: var(--ivory);
  --surface-warm: var(--linen);
  --surface-inverse: var(--carbon); /* image windows and the one "stakes" band */
  --ink-strong: var(--carbon);
  --ink: var(--carbon);
  --ink-muted: var(--charcoal);
  --ink-on-warm: var(--carbon);
  --ink-on-inverse: var(--white);
  --line: var(--ash);
  --line-control: var(--stone);
  --ripple: var(--ash);
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-body);
  line-height: 1.6;
}

.label {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.essay {
  font-family: var(--font-display);
  font-size: var(--text-essay);
  line-height: 1.7;
  max-width: var(--reading-max);
}
* { box-sizing: border-box; }
a { color: inherit; }
.wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-4); }
.bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding-top: var(--space-6); padding-bottom: var(--space-6); flex-wrap: wrap; }
.bar .name { font-weight: 700; text-decoration: none; color: var(--ink-strong); display: inline-flex; align-items: center; gap: 10px; }
.bar .name .logo { width: 28px; height: 28px; flex: none; }
.bar nav { display: flex; gap: var(--space-6); align-items: center; flex-wrap: wrap; font-size: 15px; }
.bar nav a { text-decoration: none; color: var(--ink-muted); }
.btn, .btn-outline { display: inline-block; padding: 12px 22px; text-decoration: none; font-weight: 600; border-radius: var(--radius-sm); }
.btn { background: var(--ink-strong); color: var(--surface) !important; }
.btn-outline { border: 1px solid var(--line-control); color: var(--ink-strong) !important; }
.hero { position: relative; min-height: 72vh; padding-block: clamp(56px, 9vh, 104px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
/* Signal ripple, like the LinkedIn banner: many fine rings centred behind the headline,
   clear right behind the words, fading out toward the edges. */
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0 13px, var(--ripple) 13px 14px);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 0 210px, #000 360px, #000 520px, transparent 820px);
          mask-image: radial-gradient(circle at 50% 50%, transparent 0 210px, #000 360px, #000 520px, transparent 820px); }
/* Signal pulse: a darker copy of the same rings that brightens and fades in place, slowly,
   like a signal being sent. It never moves outward, so it never reads as a wave. */
.hero::after { background-image: repeating-radial-gradient(circle at 50% 50%, transparent 0 13px, var(--carbon) 13px 14px);
  opacity: 0; animation: qc-signal 5s ease-in-out infinite; }
@keyframes qc-signal { 0%, 100% { opacity: 0; } 30% { opacity: 0.2; } }
.hero .inner { position: relative; max-width: 900px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { text-wrap: balance; font-size: var(--text-hero); line-height: 1.02; margin: var(--space-4) 0; color: var(--ink-strong); font-weight: 700; }
.hero p { font-family: var(--font-display); font-size: var(--t-lead); color: var(--ink); max-width: 640px; margin-left: auto; margin-right: auto; }
.actions { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-10); }
section.block { padding-block: clamp(64px, 9vw, 112px); border-top: 1px solid var(--line); }
section.block h2 { font-size: var(--text-headline); line-height: 1.1; margin: 0 0 var(--space-10); color: var(--ink-strong); }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-6); }
.card { background: var(--surface-raised); padding: var(--space-10) var(--space-6); }
.card h3 { margin: var(--space-2) 0; color: var(--ink-strong); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-6); }
.stat b { display: block; font-size: var(--text-headline); color: var(--ink-strong); }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); padding-top: var(--space-10); padding-bottom: var(--space-10); border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 15px; }

.stage { padding: var(--space-16) 0 var(--space-6); }
.law-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
/* Six laws per stage: three across on desktop (two rows), two on tablets, one on phones */
@media (max-width: 900px) { .law-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .law-list { grid-template-columns: 1fr; } }
.law-list a { display: block; text-decoration: none; background: var(--surface-raised); height: 100%; }
.law-list img { width: 100%; height: auto; aspect-ratio: 1200 / 632; object-fit: cover; display: block; background: var(--surface-inverse); }
.law-list .t { padding: var(--space-4) var(--space-6) var(--space-6); }
.law-list .t b { display: block; color: var(--ink-strong); margin-top: var(--space-1); line-height: 1.3; }
.law-hero { background: var(--surface-inverse); }
.law-hero img { width: 100%; max-height: 70vh; object-fit: cover; display: block; }
.law-head { padding: var(--space-16) var(--space-4) var(--space-6); max-width: calc(var(--reading-max) + 32px); margin: 0 auto; }
.law-head h1 { font-size: var(--text-headline); line-height: 1.1; margin: var(--space-4) 0; color: var(--ink-strong); }
.law-head .sub { font-size: 22px; color: var(--ink-muted); }
.essay { margin: 0 auto; padding: 0 var(--space-4) var(--space-16); }
.pager { display: flex; justify-content: space-between; gap: var(--space-4); max-width: var(--reading-max); margin: 0 auto; padding: var(--space-10) var(--space-4); border-top: 1px solid var(--line); flex-wrap: wrap; }

.page { padding-top: var(--space-16); padding-bottom: var(--space-24); }
.page-head { padding-bottom: 0; }
@media (max-width: 600px) { .bar nav { gap: var(--space-4); font-size: 14px; } .bar nav .btn-outline { padding: 8px 14px; } .page { padding-top: var(--space-10); } }
.prose { max-width: var(--reading-max); }
.prose h1 { font-size: var(--text-hero); line-height: 1.02; color: var(--ink-strong); margin: 0 0 var(--space-6); }
.prose h2, .prose h3 { font-size: var(--text-subheading); color: var(--ink-strong); margin: var(--space-16) 0 var(--space-4); line-height: 1.25; }
.prose h4 { font-size: 20px; color: var(--ink-strong); margin: var(--space-10) 0 var(--space-2); }
.prose p, .prose li { font-size: var(--t-reading); line-height: 1.7; }
.prose table { width: 100%; border-collapse: collapse; margin: var(--space-6) 0; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink-strong); font-weight: 600; }
.prose .actions { margin: var(--space-10) 0; }
.sub { font-size: var(--t-lead); color: var(--ink-muted); margin-top: calc(var(--space-6) * -1); }
.warm { background: var(--surface-warm); color: var(--ink-on-warm); padding: var(--space-16) var(--space-6); }
.warm .prose h1, .warm .prose h2, .warm .prose h3, .warm .prose h4 { color: var(--ink-on-warm); }
.warm .btn { background: var(--ink-on-warm); color: var(--linen) !important; }
.signup { display: flex; gap: var(--space-2); flex-wrap: wrap; margin: var(--space-10) 0 var(--space-2); }
.signup input { flex: 1 1 260px; padding: 14px 16px; font: inherit; font-size: 17px; background: transparent; color: var(--ink-strong); border: 1px solid var(--line-control); border-radius: var(--radius-sm); }
.signup button { font: inherit; font-weight: 600; padding: 14px 22px; border: 0; border-radius: var(--radius-sm); background: var(--ink-strong); color: var(--surface); cursor: not-allowed; opacity: 0.7; }
.small { font-size: 14px; color: var(--ink-muted); }
.linen-band { background: var(--surface-warm); color: var(--ink-on-warm); }
.linen-band h2 { color: var(--ink-on-warm) !important; }
.linen-band .btn { background: var(--ink-on-warm); color: var(--linen) !important; }
blockquote { margin: var(--space-6) 0; padding-left: var(--space-6); border-left: 2px solid var(--line); font-weight: 400; font-style: italic; font-size: var(--t-sub); }

.prose p, .prose li { font-family: var(--font-display); font-size: var(--text-essay); }
.stage-intro { max-width: var(--reading-max); }
.stage-intro p { font-family: var(--font-display); font-size: var(--text-essay); line-height: 1.7; }
.signup input { color: var(--ink); }
.band-dark { background: var(--surface-inverse); color: var(--ink-on-inverse); }
.band-dark h2 { color: var(--ink-on-inverse) !important; }
.band-dark a { color: var(--ink-on-inverse); }
.practices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-6); }
.law-head .sub { margin-top: 0; }
@media (max-width: 600px) { .hero::before, .hero::after { -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 0 140px, #000 240px, #000 380px, transparent 560px); mask-image: radial-gradient(circle at 50% 50%, transparent 0 140px, #000 240px, #000 380px, transparent 560px); } .hero { min-height: auto; padding: var(--space-16) 0; } }

.hero .actions { justify-content: center; }
.beehiiv-form { margin: var(--space-10) 0 var(--space-2); min-height: 56px; }

/* Hero sub line set as two centred lines */
.hero .two-line span { display: block; }

/* Law pages: the cover shows the title, so the heading is kept for search and screen readers only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.law-head .sr-only + .sub { margin-top: var(--space-4); }

/* Spacing pass (21 Nov): the same side margins as lawrencecotter.com, one rhythm for every section */
.wrap { padding-left: max(clamp(20px, 5vw, 72px), env(safe-area-inset-left, 0px)); padding-right: max(clamp(20px, 5vw, 72px), env(safe-area-inset-right, 0px)); }
section.block > .label, section.block .label + h2 { margin-top: 0; }
section.block > .label, .home-letters .label { margin-bottom: var(--space-4); }
section.block h2 { text-wrap: balance; max-width: 22ch; margin-bottom: var(--space-6); }
.lead { font-size: 20px; line-height: 1.6; color: var(--ink-muted); max-width: var(--reading-max); margin: 0 0 var(--space-10); }
section.block .stage-intro { margin-bottom: var(--space-10); }
section.block .stage-intro p { margin: 0 0 var(--space-4); }
.three, .practices { gap: var(--space-6); }
.card { padding: var(--space-6); }
.card h3 { margin: var(--space-2) 0 var(--space-2); line-height: 1.3; }
.card p { margin: 0; }
.build-outward { margin: var(--space-10) 0 0; font-size: var(--t-lead); color: var(--ink-strong); }
.band-dark .wrap { padding-block: 0; }
.home-letters { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-16); align-items: center; }
.home-letters h2 { max-width: 20ch; }
.home-letters .lead { margin-bottom: 0; }
.home-letters .beehiiv-form { margin: 0; }
.closing { border-top: 1px solid var(--line); padding-block: clamp(56px, 8vw, 96px); text-align: center; }
.closing-lines { font-size: var(--t-sub); line-height: 1.4; color: var(--ink-strong); margin: 0 0 var(--space-6); }
.closing-amiara { margin: 0; color: var(--ink-muted); }
@media (max-width: 800px) {
  .home-letters { grid-template-columns: 1fr; gap: var(--space-6); }
  .lead { font-size: 18px; margin-bottom: var(--space-6); }
  section.block h2 { margin-bottom: var(--space-4); }
}

/* Motion across the site (21 Nov): visible at rest, eased in on scroll where supported */
.law-list a, .card { transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s; }
.law-list a:hover, a.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px -18px rgba(10,10,10,0.35); }
.law-list img { transition: transform 1.2s cubic-bezier(.2,.7,.1,1); }
.law-list a:hover img { transform: scale(1.04); }
@supports (animation-timeline: view()) {
  .law-list li, .stage, .li-stage, .qe-part h2, section.block h2, .flow > *, .leave > *, .four > * { animation: qc-in linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  @keyframes qc-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .law-list a, .card, .law-list img, .law-list li, .stage, .li-stage, .qe-part h2, section.block h2, .flow > *, .leave > *, .four > * { animation: none !important; transition: none !important; }
}
/* quantumcreation.co home and workshop pages (21 Nov rebuild).
   The story: the shift → the laws that govern it → live it → letters → where to apply it.
   Hope red appears once per view: the Creator's nucleus. */

.h-sec { padding-block: clamp(72px, 10vw, 128px); border-top: 1px solid var(--line); }
.h-sec h2 { font-size: var(--t-section); line-height: 1.05; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-strong); margin: 0; text-wrap: balance; }
.h-sec h3 { font-size: 20px; line-height: 1.3; margin: 0; color: var(--ink-strong); }
.h-kicker { display: block; margin-bottom: var(--space-4); }
.h-reading { font-family: var(--font-display); font-size: 20px; line-height: 1.7; color: var(--ink); margin: 0; }
.h-split { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.h-split > * { min-width: 0; }
.h-stack { display: grid; gap: 22px; }
.h-link { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--ash); padding-bottom: 2px; }
.h-link:hover { border-color: var(--carbon); }

/* 1 · The shift */
.big3 { display: flex; gap: clamp(16px, 3vw, 36px); flex-wrap: wrap; }
.big3 b { display: block; font-size: clamp(28px, 3.4vw, 42px); line-height: 1; font-variant-numeric: tabular-nums; color: var(--stone); text-decoration: line-through; text-decoration-color: var(--hope); text-decoration-thickness: 2px; }
.big3 span { font-size: 14px; color: var(--charcoal); }
.now { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35; font-weight: 500; color: var(--ink-strong); margin: 0; }
.shiftfig { margin: 0; background: var(--ivory); border-radius: 4px; padding: 18px 18px 14px; }
.shiftfig svg { width: 100%; height: auto; display: block; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pills button { font: 600 14px var(--font-display); border: 1px solid var(--ash); background: var(--white); color: var(--charcoal); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.pills button[aria-pressed="true"] { background: var(--carbon); color: var(--white); border-color: var(--carbon); }
.shiftfig figcaption { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--charcoal); margin-top: 6px; flex-wrap: wrap; }

/* 2 · The laws: seven rings */
.laws-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: 44px; }
.laws-grid > * { min-width: 0; }
.ringsfig { margin: 0 auto; max-width: 560px; width: 100%; }
.ringsfig svg { width: 100%; height: auto; display: block; overflow: visible; }
.ringsfig .ring { fill: none; stroke: var(--ash); stroke-width: 1.2; transition: stroke 0.25s, stroke-width 0.25s; }
.ringsfig .ring.on { stroke: var(--carbon); stroke-width: 2.4; }
.ringsfig .ringhit { fill: transparent; stroke: transparent; stroke-width: 26; cursor: pointer; }
.ringsfig .ringlbl { font: 600 11px var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; fill: var(--stone); pointer-events: none; transition: fill 0.25s; }
.ringsfig .ringlbl.on { fill: var(--carbon); }
.ringsfig.draw .ring { stroke-dasharray: 2000; animation: qc-drawring 1.8s cubic-bezier(.2,.7,.2,1) both; }
@keyframes qc-drawring { from { stroke-dashoffset: 2000; } to { stroke-dashoffset: 0; } }
.stagepanel h3 { font-size: var(--t-sub); margin-top: 8px; }
.stagepanel .desc { font-family: var(--font-display); font-size: var(--t-body); color: var(--charcoal); margin: 8px 0 18px; }
.lawlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linen); }
.lawlist li { border-bottom: 1px solid var(--linen); }
.lawlist a { display: grid; grid-template-columns: 56px minmax(0, 1fr) 20px; gap: 10px; padding: 12px 0; text-decoration: none; align-items: baseline; transition: padding 0.2s; }
.lawlist a:hover { padding-left: 6px; }
.lawlist .n { font-size: var(--t-small); font-weight: 600; color: var(--stone); font-variant-numeric: tabular-nums; }
.lawlist .t { font-weight: 500; color: var(--ink-strong); }
.lawlist .arr { color: var(--stone); }
.four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.four a { text-decoration: none; display: grid; gap: 10px; align-content: start; }
.four .img { overflow: hidden; border-radius: 3px; }
.four img { width: 100%; height: auto; aspect-ratio: 1200 / 632; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2,.7,.1,1); }
.four a:hover img { transform: scale(1.05); }
.four b { font-size: var(--t-body); line-height: 1.3; color: var(--ink-strong); }

/* 4 · Letters */
.h-letters { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.h-letters > * { min-width: 0; }
.h-letters .beehiiv-form { margin: 0; }

/* 5 · Where to apply it */
.apply { border-top: 1px solid var(--line); padding-block: clamp(48px, 7vw, 80px); text-align: center; }
.apply p { margin: 0; color: var(--charcoal); }
.apply .closing { font-family: var(--font-display); font-style: italic; font-size: var(--t-sub); color: var(--ink-strong); margin-bottom: 14px; }
.apply .also { margin-top: 10px; font-size: 15px; }

/* Workshop page */
.wk-hero { padding-block: clamp(64px, 9vw, 112px) clamp(48px, 7vw, 80px); }
.wk-hero h1 { font-size: var(--t-hero); line-height: 1; font-weight: 700; max-width: 13ch; margin: 16px 0 22px; color: var(--ink-strong); text-wrap: balance; }
.wk-hero .wk-lead { font-family: var(--font-display); font-size: var(--t-lead); line-height: 1.55; color: var(--charcoal); max-width: 34ch; margin: 0; }
.wk-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.wk-facts span { border: 1px solid var(--ash); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--charcoal); }
.flow { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--ash); counter-reset: step; }
.flow li { display: grid; grid-template-columns: 70px minmax(0, 1fr) 150px; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--ash); align-items: baseline; counter-increment: step; }
.flow li::before { content: counter(step, decimal-leading-zero); font-size: 14px; font-weight: 700; color: var(--stone); font-variant-numeric: tabular-nums; }
.flow h3 { margin-bottom: 6px; }
.flow p { font-family: var(--font-display); font-size: 18px; color: var(--charcoal); line-height: 1.55; margin: 0; }
.flow .lawtag { font-size: var(--t-label); letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--stone); text-align: right; }
.leave { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.leave div { background: var(--ivory); padding: 22px; border-radius: 3px; display: grid; gap: 8px; align-content: start; }
.leave p { font-family: var(--font-display); font-size: var(--t-body); color: var(--charcoal); line-height: 1.5; margin: 0; }
.formats { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 16px; }
.formats th, .formats td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--linen); vertical-align: top; }
.formats th { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); font-weight: 600; }
.formats td:first-child { font-weight: 700; white-space: nowrap; }
.who { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.who span { background: var(--ivory); padding: 10px 16px; border-radius: 3px; font-weight: 600; }
.wk-book { background: var(--carbon); color: var(--white); padding-block: clamp(56px, 8vw, 96px); }
.wk-book h2 { font-size: var(--t-section); line-height: 1.05; color: var(--white) !important; max-width: 18ch; margin-top: 14px; }
.wk-book p { color: var(--ash); margin: 14px 0 0; max-width: 52ch; }
.wk-book .btn { background: var(--white); color: var(--carbon) !important; margin-top: 28px; }
.wk-book .label { color: var(--ash); }

/* Motion: visible at rest; supporting browsers ease each block in as it scrolls into view */
@supports (animation-timeline: view()) {
  .rise { animation: qc-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  @keyframes qc-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .rise, .ringsfig.draw .ring { animation: none !important; }
  .four img, .lawlist a, .ringsfig .ring { transition: none !important; }
}

@media (max-width: 860px) {
  .h-split, .laws-grid, .h-letters { grid-template-columns: 1fr; }
  .four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li { grid-template-columns: 44px minmax(0, 1fr); }
  .flow .lawtag { grid-column: 2; text-align: left; }
  .leave { grid-template-columns: 1fr; }
  .formats td:first-child { white-space: normal; }
}
@media (max-width: 480px) { .four { grid-template-columns: 1fr; } }


/* ---------- Homepage polish, 27 Nov 2026 ----------
   White sections with a thin line between them, then Quantum Letters on a BLACK band and a white close
   (Lawrence kept The Sequence white). The hero rings are fainter; the headline keeps its four lines (Lawrence's call). */
.hero::before { opacity: .55; }

.four img { aspect-ratio: 16 / 10; }

.h-dark { background: var(--carbon); border-top: 0; }
.h-dark h2 { color: var(--white); }
.h-dark .label { color: var(--ash); }
.h-letters-lead { margin: 0; color: var(--ash); }
.h-dark .beehiiv-form { background: var(--white); border-radius: 4px; padding: 20px; max-width: 440px; }

.apply { border-top: 0; padding-block: clamp(72px, 9vw, 112px); }
.apply .closing { border-top: 0; padding-block: 0; margin-bottom: 20px; }
.apply-amiara { max-width: 46ch; margin-inline: auto !important; line-height: 1.6; text-wrap: balance; }
/* ==========================================================================
   quantumcreation.co · design system (21 Nov 2026)
   Loaded last, after tokens.css, site.css and page styles. This file is the
   source of truth described in quantumcreation/STYLE.md: change a token here
   and every page follows. Brand Board V3: white ground, Carbon ink, Urbanist
   for everything, headings and reading alike (Urbanist only since 27 Nov 2026), Hope red once per view.
   ========================================================================== */

:root {
  /* Type scale: one size per role */
  --t-hero: clamp(48px, 7.4vw, 96px);     /* home and workshop hero only */
  --t-page: clamp(40px, 5.2vw, 64px);     /* every other page title */
  --t-section: clamp(32px, 4.2vw, 52px);  /* section headings */
  --t-sub: clamp(22px, 2.2vw, 28px);      /* stage names, pull lines */
  --t-quote: clamp(28px, 3.4vw, 38px);    /* pull quotes inside a law essay */
  --t-card: 20px;                          /* card and list titles */
  --t-lead: 21px;                          /* intro line under a title */
  --t-reading: 20px;                       /* reading text (Urbanist) */
  --t-body: 18px;                          /* UI body text */
  --t-small: 14px;                         /* captions, notes */
  --t-label: 12px;                         /* uppercase labels */

  /* Measure and layout */
  --measure: 84ch;                         /* longest comfortable reading line */
  --read-w: 880px;                         /* the centred reading column */
  --section-y: clamp(64px, 9vw, 112px);    /* space above and below every section */
  --head-y: clamp(56px, 8vw, 104px);       /* page header top padding */

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur-fast: 160ms;                       /* hover and press */
  --dur: 320ms;                            /* reveals and fills */
}

/* ---------- Rhythm ---------- */
section.block, .h-sec { padding-block: var(--section-y); }
section.block h2, .h-sec h2 { font-size: var(--t-section); }
.stage h2 { font-size: var(--t-sub) !important; }
.stagepanel h3 { font-size: var(--t-sub); }
.card h3, .practice h3, .flow h3, .leave h3, .lawlist .t, .law-list .t b { font-size: var(--t-card); }
.lead { font-size: var(--t-lead); }
.label { font-size: var(--t-label); }

/* ---------- Reading: centred column, up to 84 characters a line ---------- */
.essay, .law-head, .pager, .next-law { max-width: var(--read-w); margin-inline: auto; }
.essay { padding-inline: var(--space-4); }
.essay p, .essay li, .prose p, .prose li, .stage-intro p, .h-reading, .flow p, .practice p { max-width: var(--measure); }
.essay p, .essay li { font-size: var(--t-reading); line-height: 1.7; }
.page .prose, .page-body .prose { max-width: var(--read-w); margin-inline: auto; }
.page-body .stage-intro { max-width: var(--read-w); margin-inline: auto; }

/* ---------- Page header (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding-block: var(--head-y) clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-radial-gradient(circle at 50% 60%, transparent 0 13px, var(--ripple) 13px 14px);
  -webkit-mask-image: radial-gradient(ellipse at 50% 60%, transparent 0 180px, #000 300px, transparent 640px);
          mask-image: radial-gradient(ellipse at 50% 60%, transparent 0 180px, #000 300px, transparent 640px);
  opacity: 0.7; }
.page-hero .ph-inner { max-width: 820px; margin: 0 auto; display: grid; gap: var(--space-4); justify-items: center; }
.page-hero h1 { font-size: var(--t-page); line-height: 1.04; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-strong); margin: 0; text-wrap: balance; }
.page-hero .ph-lead { font-family: var(--font-display); font-size: var(--t-lead); line-height: 1.55; color: var(--charcoal); max-width: 52ch; margin: 0; }
.page-body { padding-block: clamp(48px, 7vw, 88px) var(--section-y); }
/* The laws list opens straight on Stage I, right under the page header. */
.laws-list { padding-top: var(--space-6); }
.laws-list > .stage:first-child { padding-top: 0; }

/* ---------- Buttons ---------- */
.btn, .btn-outline { display: inline-flex; align-items: center; gap: 8px; line-height: 1.2; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(10, 10, 10, 0.55); }
.btn-outline:hover { background: var(--carbon); color: var(--white) !important; border-color: var(--carbon); transform: translateY(-2px); }
.btn:active, .btn-outline:active { transform: translateY(0) scale(0.98); box-shadow: none; transition-duration: 80ms; }
.btn .arr, .btn-outline .arr, .h-link .arr, .next-law .arr { display: inline-block; transition: transform var(--dur) var(--ease); }
.btn:hover .arr, .btn-outline:hover .arr, .h-link:hover .arr, .next-law:hover .arr { transform: translateX(4px); }
.pills button { transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.pills button:hover { border-color: var(--carbon); color: var(--carbon); }
.pills button[aria-pressed="true"]:hover { color: var(--white); }

/* ---------- Links ---------- */
.bar nav a:not(.btn-outline) { position: relative; padding-block: 4px; transition: color var(--dur) var(--ease); }
.bar nav a:not(.btn-outline)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.bar nav a:not(.btn-outline):hover, .bar nav a[aria-current="page"] { color: var(--ink-strong); }
.bar nav a:not(.btn-outline):hover::after, .bar nav a[aria-current="page"]::after { transform: scaleX(1); }
.h-link { transition: border-color var(--dur) var(--ease); }
.essay a, .prose a:not(.btn):not(.btn-outline) { text-decoration-color: var(--ash); text-underline-offset: 3px; transition: text-decoration-color var(--dur) var(--ease); }
.essay a:hover, .prose a:not(.btn):not(.btn-outline):hover { text-decoration-color: var(--carbon); }

/* ---------- Focus (keyboard) ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--carbon); outline-offset: 3px; border-radius: 2px; }
.wk-book a:focus-visible { outline-color: var(--white); }

/* ---------- Images: soft placeholder, fade in once loaded ---------- */
.law-list img, .four .img, .law-hero, .next-law .nl-img {
  background: var(--linen) url("/ripple.svg") center / 140% no-repeat; }
.law-hero { background-color: var(--carbon); }
html.js img.fade { opacity: 0; transition: opacity 0.6s var(--ease); }
html.js img.fade.ld { opacity: 1; }

/* ---------- Thumbnails: "printed on paper" (25 Nov) ----------
   Toned down and set in a thin linen mat so the dark artwork meets the white page gently.
   On hover the image comes back to full strength. The hero at the top of a law page stays full strength. */
.four .img, .li-img { padding: 8px; background: var(--linen); border-radius: 2px; }
.four .img img, .li-img img { border-radius: 1px; }
.law-list a { background: var(--linen); padding: 8px 8px 0; border-radius: 2px; }
.law-list .t { padding-inline: var(--space-4); }
.four .img img, .li-img img, .law-list img { filter: contrast(.85) saturate(.8) brightness(1.06); transition: filter .5s var(--ease); }
.four a:hover .img img, .li-img:hover img, .law-list a:hover img { filter: none; transform: none; }

/* ---------- Law pages ---------- */
.read-progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 2px; background: var(--carbon);
  transform-origin: 0 50%; transform: scaleX(0); z-index: 30; pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .read-progress { animation: qc-progress linear both; animation-timeline: scroll(root); }
  @keyframes qc-progress { to { transform: scaleX(1); } }
}
@supports not (animation-timeline: scroll()) { .read-progress { display: none; } }
/* Law cover: shown whole (never cropped) inside a black band with room above and
   below, so the law number never touches the page edge. The covers' own edges are
   pure black (#000), so the band uses the same black and the seam disappears. */
.law-hero { background: #000; overflow: hidden; padding-block: clamp(14px, 2.5vw, 32px) clamp(8px, 1.5vw, 18px); }
.law-hero img { width: auto; max-width: min(100%, 1400px); max-height: min(72vh, 760px); height: auto; margin-inline: auto; object-fit: contain; }
@media (max-width: 600px) { .law-hero { padding-block: 14px 8px; } .law-hero img { max-height: none; width: 100%; } }
.law-hero img { animation: qc-settle 1.8s var(--ease) both; }
@keyframes qc-settle { from { transform: scale(1.02); opacity: 0.85; } to { transform: none; opacity: 1; } }
.next-law { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-6); align-items: center; text-decoration: none;
  padding: var(--space-6) var(--space-4); border-top: 1px solid var(--line); }
.next-law .nl-img { aspect-ratio: 8 / 5; overflow: hidden; border-radius: 3px; }
.next-law img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.next-law:hover img { transform: scale(1.05); }
.next-law b { display: block; font-size: var(--t-sub); line-height: 1.2; color: var(--ink-strong); margin-top: var(--space-2); }
.next-law .label { color: var(--stone); }
.pager { font-size: 15px; }
.pager a { text-decoration: none; color: var(--charcoal); transition: color var(--dur) var(--ease); }
.pager a:hover { color: var(--ink-strong); }

/* ---------- Laws list: cards ease in a column at a time ---------- */
@supports (animation-timeline: view()) {
  .law-list li:nth-child(3n+2) { animation-range: entry 6% cover 28%; }
  .law-list li:nth-child(3n) { animation-range: entry 12% cover 34%; }
}

/* ---------- Footer: grouped ---------- */
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--space-10) var(--space-6); align-items: start; padding-block: var(--space-16) var(--space-10); }
.foot .f-brand { display: grid; gap: var(--space-2); color: var(--ink-strong); font-weight: 700; }
.foot .f-brand span { font-weight: 400; color: var(--charcoal); font-family: var(--font-display); font-style: italic; }
.foot .f-col { display: grid; gap: 10px; }
.foot .f-col .label { color: var(--stone); margin-bottom: 4px; }
.foot a { text-decoration: none; color: var(--charcoal); transition: color var(--dur) var(--ease); }
.foot a:hover { color: var(--ink-strong); }
.foot .f-legal { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; padding-top: var(--space-6); border-top: 1px solid var(--linen); font-size: var(--t-small); color: var(--stone); }

/* ---------- Page-to-page fade (browsers that support it) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.28s; animation-timing-function: var(--ease); }

/* ---------- Phones and tablets ---------- */
@media (max-width: 860px) {
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot .f-brand { grid-column: 1 / -1; }
  .next-law { grid-template-columns: 1fr; }
}

/* ---------- Law essays: emphasis, pull quotes, diagrams (STYLE.md section 3a) ---------- */
.essay strong { font-weight: 600; color: var(--carbon); }
.essay em { font-style: italic; }
.essay .pq { margin: var(--space-10) 0; padding: 0; border: 0; max-width: var(--measure); font-size: var(--t-reading); }
.essay .pq p { margin: 0; max-width: none; font-family: var(--font-display); font-size: var(--t-quote); line-height: 1.22; font-style: italic; color: var(--carbon); text-wrap: balance; letter-spacing: -.01em; }
.essay .end { margin-top: var(--space-10); font-family: var(--font-display); font-size: var(--t-sub); font-weight: 700; line-height: 1.3; color: var(--carbon); text-wrap: balance; }
.lawfig { margin: 64px auto 72px; max-width: var(--read-w); }
.lawfig .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-block: 1px solid var(--ash); padding-block: 28px; }
.lawfig svg { display: block; width: 100%; height: auto; }
.lawfig text { font-family: var(--font-display); }
.lawfig text.lab { font-size: 15px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; fill: var(--stone); }
.lawfig text.cap { font-size: 19px; font-weight: 600; fill: var(--carbon); }
.lawfig text.sat { font-size: 17px; font-weight: 500; fill: var(--charcoal); }
.lawfig figcaption { font-family: var(--font-display); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: var(--t-small); line-height: 1.55; }
.lawfig figcaption .what { color: var(--charcoal); max-width: 62ch; }
.lawfig figcaption .lab { font-size: var(--t-label); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); white-space: nowrap; }
.lawfig.can-replay .pair { cursor: pointer; }
.lawfig .replay { font-family: var(--font-display); font-size: var(--t-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); background: none; border: 0; padding: 4px 0; cursor: pointer; white-space: nowrap; }
.lawfig .replay:hover, .lawfig .replay:focus-visible { color: var(--carbon); }
/* Diagram movement: each diagram plays once when it is almost fully on screen, left
   panel then right, 30% slower than these timings, and again on a click or tap (FigPlay.astro adds .play). Every animation ends on the still drawing, so the diagram is complete
   before, after, and without motion. */
.lawfig .sweep, .lawfig .timer { transform: rotate(var(--a1)); }
.lawfig .sweep, .lawfig .timer, .lawfig .orbit, .lawfig .breathe, .lawfig .tighten,
.lawfig .spring, .lawfig .ripple, .lawfig .fill { transform-box: view-box; }
@media (prefers-reduced-motion: no-preference) {
  .lawfig.play .flow { animation: qc-draw 1.8s var(--ease) both; }
  .lawfig.play .flow.back { animation-name: qc-draw-back; }
  .lawfig.play .sweep { animation: qc-sweep 2.4s ease-in-out both; }
  .lawfig.play .timer { animation: qc-sweep 4s linear both; }
  .lawfig.play .orbit { animation: qc-orbit 3s var(--ease) both; }
  .lawfig.play .breathe { animation: qc-breathe 2s var(--ease) both; }
  .lawfig.play .tighten { animation: qc-tighten 2s var(--ease) both; }
  .lawfig.play .glow { animation: qc-glow 1s var(--ease) both; animation-delay: calc(var(--i) * .5s); }
  .lawfig.play .spring { animation: qc-spring 1.6s ease-out both; }
  .lawfig.play .ripple { animation: qc-ripple 1.4s var(--ease) both; animation-delay: calc(var(--i) * .35s); }
  .lawfig.play .shift { animation: qc-shift 2.2s var(--ease) both; }
  .lawfig.play .fill { animation: qc-fill 2s var(--ease) both; }
  .lawfig.play .slide { animation: qc-slide 1.4s var(--ease) both; animation-delay: calc(var(--i) * .4s); }
}
@keyframes qc-draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes qc-draw-back { from { stroke-dasharray: 1; stroke-dashoffset: -1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes qc-sweep { from { transform: rotate(var(--a0)); } to { transform: rotate(var(--a1)); } }
@keyframes qc-orbit { from { transform: rotate(-180deg); } to { transform: none; } }
@keyframes qc-breathe { from { transform: scale(.8); } to { transform: none; } }
@keyframes qc-tighten { from { transform: scale(1.15); } to { transform: none; } }
@keyframes qc-glow { from { opacity: .15; } to { opacity: 1; } }
@keyframes qc-spring { 0% { transform: scaleY(.7); } 55% { transform: scaleY(1.08); } 80% { transform: scaleY(.97); } 100% { transform: none; } }
@keyframes qc-ripple { from { transform: scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes qc-shift { from { transform: translate(var(--dx, 0), var(--dy, 0)); } to { transform: none; } }
@keyframes qc-fill { from { transform: scaleY(.15); } to { transform: none; } }
@keyframes qc-slide { from { transform: translateX(var(--sx, -60px)); opacity: .2; } to { transform: none; opacity: 1; } }
@media (max-width: 600px) {
  .lawfig .pair { grid-template-columns: 1fr; gap: 8px; }
  .lawfig { margin-block: 48px 56px; }
}

/* ---------- Less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn, .btn-outline, .arr, .bar nav a::after, .law-hero img, .next-law img, html.js img.fade { transition: none !important; animation: none !important; transform: none !important; }
  html.js img.fade { opacity: 1; }
  .read-progress { display: none; }
  .hero::after { animation: none; opacity: 0; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Letters page: the form centred under the header */
.letters-form { max-width: 560px; margin: 0 auto; text-align: center; }
.letters-form .beehiiv-form { margin: 0 auto var(--space-4); }

/* ---------- iPhone and phones (21 Nov) ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button { -webkit-tap-highlight-color: transparent; }
@media (max-width: 600px) {
  /* Header in two rows: the name, then the menu on one line. Quantum Letters stays in the page and footer. */
  .bar { row-gap: 0; padding-block: var(--space-2); }
  .bar .name { padding-block: 10px; }
  .bar nav { width: 100%; justify-content: space-between; flex-wrap: nowrap; gap: var(--space-2); font-size: 14px; }
  .bar nav .btn-outline { display: none; }
  .bar nav a:not(.btn-outline) { padding-block: 12px; }
  .bar nav a:not(.btn-outline)::after { bottom: 8px; }
  /* Footer and small text links: comfortable thumb targets */
  .foot .f-col { gap: 0; }
  .foot .f-col a, .foot .f-legal a { display: inline-block; padding-block: 10px; }
  .actions { gap: var(--space-2); }
  .btn, .btn-outline { min-height: 48px; }
}
@media (max-width: 360px) { .bar nav { font-size: 12.5px; } }
/* Touch screens: hover lifts never stick after a tap */
@media (hover: none) {
  .btn:hover, .btn-outline:hover { transform: none; box-shadow: none; }
}

/* ---------- Law page: description, Try it, When it breaks, evidence (QC 2.0) ---------- */
.law-head .law-desc { font-family: var(--font-display); font-size: 19px; line-height: 1.55; color: var(--ink-muted); margin-top: var(--space-4); max-width: var(--reading-max); }
.law-head .law-title { font-family: var(--font-display); font-size: var(--text-headline); line-height: 1.1; margin: var(--space-4) 0 var(--space-2); color: var(--ink-strong); text-wrap: balance; }

/* Law page footer: titled pager, then the sources set small like footnotes (QC 2.0) */
.pager-titled { align-items: flex-start; }
.pager-titled a { display: grid; gap: 6px; max-width: 42%; }
.pager-titled .pg-n { font-size: 15px; color: var(--charcoal); }
.pager-titled .pg-t { font-family: var(--font-display); font-weight: 400; font-size: 17px; line-height: 1.3; color: var(--ink-strong); text-wrap: balance; }
.pager-titled .pg-next { text-align: right; justify-items: end; }
.pager-titled .pg-all { align-self: flex-start; font-size: 15px; }
.law-notes { max-width: var(--read-w); margin: var(--space-6) auto var(--space-16); padding: 0 var(--space-4); }
.law-notes .label { display: block; margin-bottom: var(--space-2); font-size: 10px; }
.law-notes ol { margin: 0; padding-left: 1.2em; font-size: 12px; line-height: 1.55; color: var(--ink-muted); }
@media (max-width: 640px) { .pager-titled { flex-wrap: nowrap; } .pager-titled .pg-all { display: none; } .pager-titled a { max-width: 48%; } }

/* ---------- Law page type system (25 Nov 2026) ----------
   Two fonts with fixed jobs. Urbanist: labels, the deck line, captions, notes, navigation.
   Urbanist: everything you read. Five sizes only: 12 label · 14 small · 16 UI · 20 reading · 28 display.
   One vertical rhythm: 24px between paragraphs, 48px around set pieces (quote, diagram, ending, notes). */
:root { --measure: 68ch; --law-gap: 48px; }

.law-head { padding-bottom: var(--law-gap); }
.law-head .label { font-size: 12px; }
.law-head .sub, .law-head .sr-only + .sub { margin: 16px 0 0; font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: var(--ink-strong); max-width: 30ch; text-wrap: balance; }
.law-head .law-desc { margin: 16px 0 0; font-family: var(--font-display); font-size: 20px; line-height: 1.6; color: var(--ink-muted); max-width: var(--measure); }

.essay p, .essay li { font-size: 20px; line-height: 1.7; margin: 0 0 24px; max-width: var(--measure); }
.essay strong { font-weight: 600; }
.essay .pq { margin: var(--law-gap) 0; max-width: var(--measure); }
.essay .pq p { font-size: 28px; font-weight: 400; line-height: 1.3; font-style: italic; letter-spacing: 0; padding-left: 24px; border-left: 2px solid var(--ink-strong); }
.essay .end { margin: var(--law-gap) 0 0; font-family: var(--font-display); font-size: 20px; font-weight: 400; font-style: normal; line-height: 1.7; color: var(--ink-strong); text-wrap: pretty; }
.essay .end::before { content: ""; display: block; width: 48px; height: 1px; background: var(--ash); margin-bottom: 24px; }
.lawfig { margin: var(--law-gap) auto; }
.lawfig figcaption { font-size: 14px; }
.lawfig figcaption .lab, .lawfig .replay { font-size: 12px; }

.law-notes { max-width: var(--read-w); margin: 0 auto; padding: var(--law-gap) var(--space-4) 0; }
.law-notes > * { max-width: var(--measure); }
.law-notes::before { content: ""; display: block; height: 1px; background: var(--line); margin-bottom: 24px; }
.law-notes .label { display: block; font-size: 12px; margin-bottom: 12px; }
.law-notes ol { padding-left: 1.4em; font-size: 14px; line-height: 1.6; color: var(--ink-muted); }
.law-notes li + li { margin-top: 6px; }

.pager.pager-titled { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 24px; max-width: var(--read-w); margin: var(--law-gap) auto 0; padding: var(--law-gap) var(--space-4) 64px; font-size: 16px; }
.pager-titled a { max-width: none; gap: 6px; }
.pager-titled .pg-n, .pager-titled .pg-all { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.pager-titled .pg-all { justify-self: center; }
.pager-titled .pg-next { justify-self: end; }
.pager-titled .pg-t { font-size: 16px; font-weight: 400; line-height: 1.4; }
@media (max-width: 640px) {
  .law-head .sub { font-size: 24px; }
  .essay .pq p { font-size: 24px; padding-left: 16px; }
  .pager.pager-titled { grid-template-columns: 1fr 1fr; }
}
/* Law text reads at full strength: no scroll fade on paragraphs (diagrams still play). */
.law-notes + .pager.pager-titled { border-top: 0; margin-top: 0; padding-top: var(--law-gap); }
article.essay:has(+ .law-notes), article.essay:has(+ script + .law-notes) { padding-bottom: 0; }
.pager-titled .pg-t { max-width: 32ch; }

/* ---------- Site-wide consistency (25 Nov 2026) ---------- */
.label { font-family: var(--font-display); }

/* Law pages, 27 Nov 2026: the text runs the full width of the diagrams (the 880px reading column),
   from the description through the essay, quotes and closing line to the notes. */
.law-head .law-desc,
.law-head ~ .essay p, .law-head ~ .essay li, .law-head ~ .essay .pq,
.law-notes > * { max-width: none; }

/* Law pages, 27 Nov 2026: previous/next sit right after the ending (no rule above them);
   one line, then the notes, then room before the footer. */
.law-head ~ .pager-titled { border-top: 0; padding-top: 0; padding-bottom: var(--law-gap); }
.law-notes { padding-bottom: 96px; }
