@import url("https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;1,8..60,400&display=swap");


/* 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. */
: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;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif; /* quantumcreation.co essays only */

  /* 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-serif);
  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); }
.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; 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 { 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); }
.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-size: var(--text-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: var(--space-24); 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; }
.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: 19px; 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: 22px; line-height: 1.4; color: var(--ink-muted); margin-top: 0; }
.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: 300; font-style: italic; font-size: 24px; }
.law-head .sub { margin-top: 0; }
@media (max-width: 600px) { .hero::before { -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; }
/* Match the embedded form's own (light) scheme so the browser keeps its background transparent on black. */
.beehiiv-form iframe { color-scheme: light; }

/* Full-width documentary photo between sections */
.photo-band { margin: 0; border-top: 1px solid var(--line); }
.photo-band img { display: block; width: 100%; height: auto; max-width: 100%; }
.photo-band figcaption { padding-block: var(--space-4) var(--space-10); }
@media (max-width: 600px) { .photo-band img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 60%; } }

/* Portrait beside the story (home) and under the story page title */
.story-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-16); align-items: center; }
.portrait { display: block; width: 100%; max-width: 440px; height: auto; justify-self: end; }
.page-portrait { display: block; width: 100%; max-width: 360px; height: auto; margin-top: var(--space-10); }
@media (max-width: 800px) { .story-grid { grid-template-columns: 1fr; gap: var(--space-10); } .portrait { justify-self: start; max-width: 360px; } }

/* ---- Look-and-feel polish (21 Nov) ---- */
/* Roomier side gutters on laptops; never less than 16px on phones. */
.wrap { padding-left: max(clamp(16px, 5vw, 72px), env(safe-area-inset-left, 0px)); padding-right: max(clamp(16px, 5vw, 72px), env(safe-area-inset-right, 0px)); }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
::selection { background: var(--linen); color: var(--carbon); }

/* Header: a hairline under it, hover and current-page states */
header.bar { border-bottom: 1px solid var(--line); }
.bar nav a { transition: color 0.15s ease; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--ink-strong); }
.bar nav a[aria-current="page"]:not(.btn-outline) { text-decoration: underline; text-decoration-color: var(--stone); text-underline-offset: 8px; text-decoration-thickness: 1px; }

/* Buttons: quiet hover, clear keyboard focus */
.btn, .btn-outline { transition: opacity 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
.btn:hover { opacity: 0.86; }
.btn-outline:hover { border-color: var(--ink-strong); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--ink-strong); outline-offset: 3px; }

/* Calmer hero ripple: finer, wider-spaced, fainter, closer to the LinkedIn banner */
.hero::before { background: repeating-radial-gradient(circle at 50% 50%, transparent 0 17px, color-mix(in srgb, var(--ripple) 70%, transparent) 17px 18px); }

/* Cards: thin edge, muted body text, a lift on the ones that link */
.card { border: 1px solid var(--onyx); }
.card p { color: var(--ink-muted); }
.card a { text-decoration: none; color: var(--ink-strong); font-weight: 600; }
.card:has(a) { transition: border-color 0.15s ease; }
.card:has(a):hover { border-color: var(--charcoal); }

/* Section rhythm: eyebrow sits closer to its heading */
section.block > .label, section.block .wrap > .label, .story-grid .label { margin-bottom: var(--space-4); }
section.block h2 { text-wrap: balance; }

/* Reading pages: links readable in long text */
.prose a:not(.btn):not(.btn-outline) { color: var(--ink-strong); text-underline-offset: 3px; text-decoration-color: var(--stone); }
.prose a:not(.btn):not(.btn-outline):hover { text-decoration-color: var(--ink-strong); }
/* Phones: a shorter two-row header */
@media (max-width: 600px) { header.bar { padding-top: var(--space-4); padding-bottom: var(--space-4); row-gap: var(--space-2); } .bar nav { gap: var(--space-4); } }

/* Contents bar for long essays (/signal) */
.toc { margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--line); max-width: 900px; scroll-margin-top: var(--space-6); }
.toc ol { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-1) var(--space-6); }
.toc a { display: flex; gap: var(--space-4); align-items: baseline; padding: 8px 0; text-decoration: none; color: var(--ink); font-size: 16px; line-height: 1.35; border-bottom: 1px solid var(--onyx); transition: color 0.15s ease; }
.toc a:hover { color: var(--ink-strong); }
.part-num { flex: none; min-width: 2.4em; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--stone); font-variant-numeric: tabular-nums; }
.prose h3.part { display: flex; gap: var(--space-4); align-items: baseline; scroll-margin-top: var(--space-10); }
.prose h3.part .part-num { font-size: 14px; color: var(--charcoal); }
.to-contents { margin: var(--space-10) 0 0 !important; }
.prose .to-contents a { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--charcoal); }
.prose .to-contents a:hover { color: var(--ink-on-warm); }
/* Links on the light (linen) sections stay dark */
.warm .prose a:not(.btn):not(.btn-outline), .linen-band .prose a:not(.btn):not(.btn-outline) { color: var(--ink-on-warm); }
.warm .prose .to-contents a:not(.btn) { color: var(--charcoal); text-decoration: none; }
.warm .prose .to-contents a:not(.btn):hover { color: var(--ink-on-warm); }

/* /signal title band: the signal ripple on the right, with its one red dot,
   the mirror of the home page's centred ripple. */
.page-head-band.has-ripple { position: relative; overflow: hidden; isolation: isolate; padding-bottom: var(--space-16); }
.page-head-band.has-ripple::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-radial-gradient(circle at 80% 34%, transparent 0 15px, color-mix(in srgb, var(--ripple) 85%, transparent) 15px 16px);
  -webkit-mask-image: radial-gradient(circle at 80% 34%, #000 0 300px, transparent 560px);
          mask-image: radial-gradient(circle at 80% 34%, #000 0 300px, transparent 560px); }
.page-head-band.has-ripple::after { content: ""; position: absolute; left: 80%; top: 34%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--hope); z-index: -1; }
@media (max-width: 800px) {
  .page-head-band.has-ripple::before { background: repeating-radial-gradient(circle at 88% 12%, transparent 0 13px, color-mix(in srgb, var(--ripple) 80%, transparent) 13px 14px);
    -webkit-mask-image: radial-gradient(circle at 88% 12%, #000 0 120px, transparent 260px); mask-image: radial-gradient(circle at 88% 12%, #000 0 120px, transparent 260px); }
  .page-head-band.has-ripple::after { left: 88%; top: 12%; width: 12px; height: 12px; margin: -6px 0 0 -6px; }
}

/* Contents: full width, three columns */
.toc { max-width: none; }
.toc ol { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-10); }
@media (max-width: 1000px) { .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .toc ol { grid-template-columns: 1fr; } }

/* Part numerals: as strong and as large as the titles they sit beside */
.part-num { font-size: inherit; font-weight: 700; letter-spacing: 0.02em; min-width: 2.2em; }
.toc .part-num { color: var(--ink-strong); }
.toc a { font-size: 17px; }
.prose h3.part .part-num { font-size: inherit; color: var(--ink-on-warm); }
.prose h3.part { gap: var(--space-2); }

/* ================================================================
   Motion and texture (21 Nov). One idea: a signal radiating out.
   Everything is slow, quiet and turned off for reduced motion.
   ================================================================ */

/* 1. The rings drift outward from their center, like a signal going out. */
@property --ring { syntax: "<length>"; inherits: false; initial-value: 0px; }
@keyframes signal-out { to { --ring: 16px; } }
.hero::before { --at: 50% 50%; }
.page-head-band.has-ripple::before { --at: 80% 34%; }
@media (max-width: 800px) { .page-head-band.has-ripple::before { --at: 88% 12%; } }
.hero::before, .page-head-band.has-ripple::before {
  background: repeating-radial-gradient(circle at var(--at),
    color-mix(in srgb, var(--ripple) 80%, transparent) var(--ring),
    color-mix(in srgb, var(--ripple) 80%, transparent) calc(var(--ring) + 1px),
    transparent calc(var(--ring) + 1px), transparent calc(var(--ring) + 16px));
  animation: signal-out 2.8s linear infinite;
}

/* 2. The red dot breathes in time with the rings. */
@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--hope) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 22px color-mix(in srgb, var(--hope) 0%, transparent); }
}
.page-head-band.has-ripple::after { animation: dot-pulse 2.8s ease-out infinite; }

/* 3. Film grain on the whole page, the brand board's "the world is not pristine". */
body::after { content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* 4. Photos: a slow push-in and a touch more light on hover. */
.img-frame { overflow: hidden; display: block; }
.img-frame img, .photo-band img { transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.1, 1), filter 1.4s ease; will-change: transform; }
.img-frame:hover img, .photo-band:hover img { transform: scale(1.04); filter: contrast(1.06) brightness(1.04); }
.photo-band { overflow: hidden; }

/* 5. Nav links: the underline draws in from the left. */
.bar nav a:not(.btn-outline) { text-decoration: none !important; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 4px; transition: background-size 0.35s ease, color 0.15s ease; }
.bar nav a:not(.btn-outline):hover, .bar nav a[aria-current="page"]:not(.btn-outline) { background-size: 100% 1px; }
.btn-outline { transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.btn-outline:hover { background: var(--ink-strong); color: var(--surface) !important; }

/* 6. Sections rise into place as they scroll into view (browsers that support it; others just show them). */
@supports (animation-timeline: view()) {
  @keyframes rise { from { opacity: 0; transform: translateY(28px); } }
  section.block h2, .three > *, .stats > *, .story-grid > *, .toc li, .prose h3.part, .photo-band img {
    animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
}

/* 7. Reading progress on long essays. */
.read-progress { display: none; }
@supports (animation-timeline: scroll()) {
  @keyframes read { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .read-progress { display: block; position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 50; background: var(--ink-strong); transform-origin: 0 50%; animation: read linear both; animation-timeline: scroll(root); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before, .page-head-band.has-ripple::before, .page-head-band.has-ripple::after { animation: none !important; }
  section.block h2, .three > *, .stats > *, .story-grid > *, .toc li, .prose h3.part, .photo-band img { animation: none !important; }
  .img-frame img, .photo-band img { transition: none; }
}
/* frames keep the photos' existing sizes */
.portrait-frame { width: 100%; max-width: 440px; justify-self: end; }
.portrait-frame .portrait { max-width: none; }
.page-portrait-frame { width: 100%; max-width: 360px; margin-top: var(--space-10); }
.page-portrait-frame .page-portrait { margin-top: 0; max-width: none; }
@media (max-width: 800px) { .portrait-frame { justify-self: start; max-width: 360px; } }

/* Rings, take two: a soft wave travels out from the center every 5.6s, so the
   signal clearly reads as going out. The rings keep their slow outward drift. */
@property --wave { syntax: "<length>"; inherits: false; initial-value: 0px; }
@keyframes signal-wave { from { --wave: 0px; } to { --wave: 820px; } }
.hero::before, .page-head-band.has-ripple::before {
  background:
    radial-gradient(circle at var(--at), transparent calc(var(--wave) - 90px), color-mix(in srgb, var(--ink-strong) 9%, transparent) calc(var(--wave) - 6px), transparent var(--wave)),
    repeating-radial-gradient(circle at var(--at),
      color-mix(in srgb, var(--ripple) 80%, transparent) var(--ring),
      color-mix(in srgb, var(--ripple) 80%, transparent) calc(var(--ring) + 1px),
      transparent calc(var(--ring) + 1px), transparent calc(var(--ring) + 16px));
  animation: signal-out 4s linear infinite, signal-wave 5.6s cubic-bezier(0.25, 0.6, 0.35, 1) infinite;
}
.page-head-band.has-ripple::after { animation-duration: 5.6s; }

/* The 2,000-year shift: a dated column for each number, on a shared rule */
.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-10); }
.stats .stat { border-top: 1px solid var(--line); padding-top: var(--space-6); color: var(--ink-muted); }
.stats .stat .when { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); margin-bottom: var(--space-4); }
.stats .stat b { margin-bottom: var(--space-2); }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr; gap: var(--space-6); } }

/* Inline sign-up on the home page */
.home-letters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-16); align-items: center; }
.home-letters .beehiiv-form { margin: 0; }
@media (max-width: 800px) { .home-letters { grid-template-columns: 1fr; gap: var(--space-6); } }

/* Subtler signal (21 Nov): fainter, slower wave; slower ring drift. */
.hero::before, .page-head-band.has-ripple::before {
  background:
    radial-gradient(circle at var(--at), transparent calc(var(--wave) - 60px), color-mix(in srgb, var(--ink-strong) 3.5%, transparent) calc(var(--wave) - 4px), transparent var(--wave)),
    repeating-radial-gradient(circle at var(--at),
      color-mix(in srgb, var(--ripple) 80%, transparent) var(--ring),
      color-mix(in srgb, var(--ripple) 80%, transparent) calc(var(--ring) + 1px),
      transparent calc(var(--ring) + 1px), transparent calc(var(--ring) + 16px));
  animation: signal-out 7s linear infinite, signal-wave 9s cubic-bezier(0.3, 0.5, 0.4, 1) infinite;
}
.page-head-band.has-ripple::after { animation-duration: 9s; }
@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--hope) 30%, transparent); }
  70%, 100% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--hope) 0%, transparent); }
}
/* Phones: menu on one even row under the name; the sign-up lives on the page itself */
@media (max-width: 600px) {
  .bar nav { width: 100%; justify-content: space-between; gap: var(--space-2); font-size: 13.5px; flex-wrap: nowrap; }
  .bar nav .btn-outline { display: none; }
}
/* Tablets: the menu on one row under the name */
@media (min-width: 601px) and (max-width: 980px) {
  .bar nav { width: 100%; justify-content: space-between; flex-wrap: nowrap; gap: var(--space-4); }
}

/* ================================================================
   ONE TYPE SCALE (21 Nov). See STYLE.md. Use these tokens; don't add sizes.
   display 100 (home hero only) · title 84 (page titles) · headline 52 (section h2)
   lead-lg 26 · lead 22 · body 18 · reading 19 (long text) · small 15 · label 12
   ================================================================ */
:root {
  --text-title: clamp(44px, 5.8vw, 84px);
  --text-lead-lg: clamp(21px, 2vw, 26px);
  --text-lead: clamp(19px, 1.6vw, 22px);
  --text-small: 15px;
}
main h3 { line-height: 1.25; }
.prose h1 { font-size: var(--text-title); }
.btn, .btn-outline { font-size: 16px; padding: 14px 24px; letter-spacing: 0.01em; }

/* ================================================================
   Effects, round 2 (21 Nov): see STYLE.md § Motion.
   ================================================================ */

/* 1. Cards glow faintly toward the cursor (mouse and trackpad only). */
.card, .spk-talk { position: relative; isolation: isolate; }
@media (hover: hover) and (pointer: fine) {
  .card::after, .spk-talk::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--ink-strong) 7%, transparent), transparent 65%);
    transition: opacity 0.35s ease;
  }
  .card:hover::after, .spk-talk:hover::after { opacity: 1; }
}

/* 2. Arrows nudge in the direction they point. */
.arr { display: inline-block; transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); }
a:hover .arr-right, a:focus-visible .arr-right { transform: translateX(4px); }
a:hover .arr-down, a:focus-visible .arr-down { transform: translateY(3px); }
a:hover .arr-up, a:focus-visible .arr-up { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  .card::after, .spk-talk::after { display: none; }
  .arr { transition: none; }
}

/* 3. The mantra lights up line by line as each line scrolls into view. */
@supports (animation-timeline: view()) {
  @keyframes lit-mid { from { color: color-mix(in srgb, var(--ink-strong) 16%, transparent); } to { color: color-mix(in srgb, var(--ink-strong) 55%, transparent); } }
  @keyframes lit-full { from { color: color-mix(in srgb, var(--ink-strong) 16%, transparent); } to { color: var(--ink-strong); } }
  .h-mantra span { animation: lit-mid linear both; animation-timeline: view(); animation-range: entry 60% cover 42%; }
  .h-mantra span:last-child { animation-name: lit-full; animation-range: entry 80% cover 50%; }
}

/* 4. Chapter rail: a quiet marker in the left margin while you read chapters 01-04 (wide screens only). */
.chapter-rail { display: none; }
@media (min-width: 1320px) {
  .chapter-rail { display: grid; gap: 10px; position: fixed; left: 28px; top: 50%; transform: translateY(-50%); z-index: 20;
    opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
  .chapter-rail.is-on { opacity: 1; pointer-events: auto; }
  .chapter-rail a { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--stone); text-decoration: none; transition: color 0.25s ease; }
  .chapter-rail a span { display: inline-block; width: 18px; border-top: 1px solid currentColor; padding-top: 0; font-size: 0; transition: width 0.3s ease; }
  .chapter-rail a.is-active { color: var(--ink-strong); }
  .chapter-rail a.is-active span { width: 36px; }
  .chapter-rail a:hover { color: var(--ink-strong); }
}

/* 5. Smooth fades between pages (browsers with cross-document view transitions). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; animation-timing-function: ease; }

/* 7. Portraits drift a few pixels against the scroll, a touch of depth. */
@supports (animation-timeline: view()) {
  @keyframes depth { from { transform: translateY(22px); } to { transform: translateY(-22px); } }
  .portrait-frame, .spk-portrait, .st-portrait { animation: depth linear both; animation-timeline: view(); }
}

@media (prefers-reduced-motion: reduce) {
  .h-mantra span, .portrait-frame, .spk-portrait, .st-portrait { animation: none !important; }
  .chapter-rail { transition: none; }
  @view-transition { navigation: none; }
}

/* ================================================================
   iPhone and phones (21 Nov). See STYLE.md § Phones.
   ================================================================ */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button { -webkit-tap-highlight-color: transparent; }
/* Hover-only effects never stick after a tap on touch screens. */
@media (hover: none) {
  .img-frame:hover img, .photo-band:hover img { transform: none; filter: none; }
  .card:has(a):hover { border-color: var(--onyx); }
}
@media (max-width: 640px) {
  section.block { padding-block: var(--space-16); }
  section.block h2 { margin-bottom: var(--space-6); }
  /* Tap targets: at least ~44px tall for every link a thumb will hit. */
  .bar .name { padding-block: 10px; }
  .bar nav a:not(.btn-outline) { padding-block: 12px; }
  .card a, .prose .actions a { display: inline-block; padding-block: 10px; }
  .foot { flex-direction: column; gap: var(--space-2); padding-block: var(--space-10); }
  .foot span:last-child { display: flex; flex-wrap: wrap; column-gap: var(--space-4); }
  .foot a { display: inline-block; padding-block: 10px; }
  .actions { gap: var(--space-2); }
  .actions .btn, .actions .btn-outline { min-height: 48px; display: inline-flex; align-items: center; }
}
@media (max-width: 360px) { .bar nav { font-size: 12.5px; } }
/* Phones: the taller tap areas carry the spacing, so the header bar itself stays slim */
@media (max-width: 600px) { header.bar { padding-block: var(--space-2); row-gap: 0; } }
@media (max-width: 360px) { .bar nav { gap: 6px; font-size: 12px; } }
