/* CI3 fonts, self-hosted (same files as ci3pro.ca). */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/dm-mono-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* DM Mono normal 400 latin */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/dm-mono-400-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;
}
/* DM Mono normal 500 latin-ext */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/dm-mono-500-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* DM Mono normal 500 latin */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/dm-mono-500-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;
}
/* DM Sans normal 400-700 latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/dm-sans-400-700-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* DM Sans normal 400-700 latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/dm-sans-400-700-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;
}
/* Playfair Display italic 500-600 latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500 600;
  font-display: swap;
  src: url(/assets/fonts/playfair-display-italic-500-600-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Playfair Display italic 500-600 latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500 600;
  font-display: swap;
  src: url(/assets/fonts/playfair-display-italic-500-600-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;
}
/* Playfair Display normal 500-700 latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/assets/fonts/playfair-display-500-700-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Playfair Display normal 500-700 latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/assets/fonts/playfair-display-500-700-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;
}


/* The Competence Trap site. Same colours, type and buttons as ci3pro.ca. */
:root {
  --ink: #141310;
  --ink-soft: #2d2924;
  --paper: #f5f0e8;
  --ivory: #fffdf9;
  --sand: #eae1d5;
  --orange: #ef6c08;
  --orange-deep: #c94d0b;
  --orange-text: #b34708;
  --orange-deep-text: #a23e09;
  --muted: #615c53;
  --line: #d8cec0;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; }
a { color: var(--orange-text); text-underline-offset: 3px; }
a:hover { color: var(--orange-deep-text); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -.03em; line-height: 1.08; margin: 0 0 .6em; }
h1 { letter-spacing: -.046em; }
h2 { font-size: clamp(32px, 4vw, 52px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); }
h4 { font-size: 21px; letter-spacing: -.02em; }
h1 em, h2 em { color: var(--orange-deep-text); font-style: italic; }
p { margin: 0 0 1em; }
figure { margin: 0; }
section[id], li[id], [id^="chapter-"] { scroll-margin-top: calc(var(--header-h) + 16px); }

.skip { position: absolute; left: -9999px; z-index: 100; }
.skip:focus { left: 16px; top: 12px; background: var(--ivory); color: var(--ink); padding: 10px 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }

/* Header. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--header-h);
  padding: 0 max(32px, calc((100% - 1180px) / 2));
  color: var(--ivory);
  background: rgba(20, 19, 16, .96);
  border-bottom: 1px solid rgba(255, 253, 249, .08);
  backdrop-filter: blur(10px);
  transition: box-shadow .3s, background .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .25); background: rgba(20, 19, 16, .99); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ivory); text-decoration: none; font: 500 21px/1 var(--serif); letter-spacing: -.02em; white-space: nowrap; }
.brand::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(239, 108, 8, .18); }
.brand:hover { color: var(--ivory); }
.site-header nav ul { display: flex; flex-wrap: wrap; gap: 4px 26px; list-style: none; margin: 0; padding: 0; }
.site-header nav a { position: relative; display: inline-block; padding: 6px 0; color: rgba(255, 253, 249, .78); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--ivory); }
.site-header nav a:hover::after, .site-header nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .site-header { padding: 0 20px; flex-wrap: wrap; gap: 0 12px; }
  .site-header > .brand { font-size: 18px; }
  .nav-toggle { margin-left: auto; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
    color: var(--ivory); background: transparent; border: 1px solid rgba(255, 253, 249, .3);
    font: 600 13px/1 var(--sans); letter-spacing: .04em; cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 16px; height: 2px; background: currentColor; position: relative; transition: transform .25s; }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -5px; }
  .nav-toggle span::after { top: 5px; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }
  html.js .site-header nav { display: none; width: 100%; padding: 4px 0 18px; }
  html.js .site-header.nav-open nav { display: block; animation: drop .3s var(--ease); }
  .site-header nav ul { flex-direction: column; gap: 0; }
  .site-header nav a { display: block; padding: 12px 0; font-size: 16px; border-bottom: 1px solid rgba(255, 253, 249, .08); }
  .site-header nav a::after { display: none; }
  .site-header nav a[aria-current="page"] { color: #ffad7a; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Layout. */
main { max-width: 760px; margin: 0 auto; padding: 96px 32px 120px; }
main.wide { max-width: none; padding: 0; }
.november-section { position: relative; padding: 104px 0; }
.band-ivory { background: var(--ivory); }
.band-sand { background: var(--sand); }
.section-heading, .book-heading { display: grid; gap: 18px 48px; align-items: end; margin-bottom: 48px; }
@media (min-width: 900px) { .section-heading:not(.book-heading-solo) { grid-template-columns: 1.4fr 1fr; } }
.book-heading h2 { margin: 0; }
.book-heading-side p:last-child { margin-bottom: 0; }

.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--muted); font: 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.eyebrow span, .eyebrow::before { width: 24px; height: 1px; background: var(--orange); }
.eyebrow::before { content: ""; }
.eyebrow:has(span)::before { display: none; }
.source-note { color: var(--muted); font: 12px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; }

/* Buttons, as on ci3pro.ca. */
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button, .button-orange, .button-dark, .button-light, .button-outline {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  min-height: 48px; padding: 0 18px; border: 1px solid transparent; border-radius: 0;
  font: 600 14px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.button:not(:has(> span))::after, .button-orange:not(:has(> span))::after, .button-dark:not(:has(> span))::after, .button-light:not(:has(> span))::after, .button-outline:not(:has(> span))::after { content: "\2192"; transition: transform .2s var(--ease); }
.button, .button-orange { color: var(--ivory); background: var(--orange-deep); }
.button::after, .button-orange::after { color: #ffc3a1; }
.button-dark { color: var(--ivory); background: var(--ink); }
.button-light { color: var(--ink); background: var(--ivory); border-color: var(--line); }
.button-outline { color: var(--ink); background: transparent; border-color: var(--ink); }
.button:hover, .button-orange:hover, .button-dark:hover, .button-light:hover, .button-outline:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 19, 16, .16); }
.button:hover, .button-orange:hover { color: var(--ivory); background: #b54409; }
.button-dark:hover { color: var(--ivory); }
.button-outline:hover { color: var(--ivory); background: var(--ink); }
.button:hover::after, .button-orange:hover::after, .button-dark:hover::after, .button-light:hover::after, .button-outline:hover::after { transform: translateX(4px); }

.breadcrumb { width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 18px 0 0; font-size: 13px; }
.framework-step h2 { font-size: 24px; }

/* Dark heroes: the book hero, and the first section of every other page. */
.november-hero, main.wide > .november-section:first-child {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--ivory);
  background: linear-gradient(115deg, #141310 8%, #2c251f 78%);
}
.november-hero { padding: 112px 0 104px; }
main.wide > .november-section:first-child { padding: 120px 0 96px; }
.november-hero::before, main.wide > .november-section:first-child::before {
  content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; right: -180px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 108, 8, .28), rgba(239, 108, 8, 0) 65%);
  animation: glow 12s ease-in-out infinite alternate;
}
.november-hero::after, main.wide > .november-section:first-child::after {
  content: ""; position: absolute; z-index: -1; width: 460px; height: 460px; left: -160px; bottom: -260px; border-radius: 50%;
  border: 1px solid rgba(255, 253, 249, .1);
}
@keyframes glow { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 40px) scale(1.15); } }
.november-hero h1, main.wide > .november-section:first-child h1 { font-size: clamp(52px, 7vw, 96px); line-height: .94; margin: 0 0 24px; }
.november-hero h1 em, main.wide > .november-section:first-child h1 em { color: #ffad7a; }
.november-hero p, main.wide > .november-section:first-child p { color: rgba(255, 253, 249, .82); max-width: 640px; }
.november-hero a:not([class]), main.wide > .november-section:first-child a:not([class]) { color: #ffad7a; }
.november-hero .eyebrow, main.wide > .november-section:first-child .eyebrow { color: rgba(255, 253, 249, .65); }
.november-hero .source-note, main.wide > .november-section:first-child .source-note { color: rgba(255, 253, 249, .5); }
.november-hero .button-outline, main.wide > .november-section:first-child .button-outline { color: var(--ivory); border-color: rgba(255, 253, 249, .65); }
.november-hero .button-outline:hover, main.wide > .november-section:first-child .button-outline:hover { color: var(--ink); background: var(--ivory); }
.november-hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .november-hero-grid { grid-template-columns: 1.35fr 1fr; } }
.book-subtitle { font: italic 500 clamp(20px, 2vw, 26px)/1.3 var(--serif); color: var(--ivory) !important; }
.book-byline { font: 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #ffad7a !important; }
.book-release-date { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 14px; border: 1px solid rgba(255, 253, 249, .2); font-size: 13px; }
.book-date-label { color: #ffad7a; font: 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.november-hero-card { position: relative; padding: 31px; text-align: center; color: rgba(255, 253, 249, .7); font-size: 13px; background: rgba(255, 253, 249, .06); border: 1px solid rgba(255, 253, 249, .14); }
.november-hero-card > p { font: 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 253, 249, .6) !important; margin: 0 auto 20px; }
.november-hero-card > span { display: block; margin-top: 20px; font: 11px/1.7 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.book-cover-frame { perspective: 1200px; }
.book-cover-frame img {
  display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 253, 249, .06);
  transform: rotateY(-8deg) rotateX(2deg); transition: transform .6s var(--ease);
  animation: float 7s ease-in-out infinite;
}
.book-cover-frame:hover img { transform: rotateY(0) rotateX(0) scale(1.02); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* Cards: one shared look and one shared motion. */
.home-cards, .book-audience-grid, .book-endorsements, .book-videos, .framework-steps, .assessment-grid, .pattern-grid, .trap-index-list {
  list-style: none; padding: 0; margin-block: 0; display: grid; gap: 20px;
}
.home-cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.book-audience-grid, .book-endorsements, .book-videos, .framework-steps, .assessment-grid, .pattern-grid { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.home-cards a, .book-audience, .book-endorsement, .book-buy-panel, .book-part, .framework-step, .assessment-card, .pattern-card, .trap-index-item {
  position: relative; display: block; height: 100%; padding: 30px;
  color: var(--ink); background: var(--ivory); border: 1px solid var(--line);
  text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.band-ivory .home-cards a, .band-ivory .book-audience, .band-ivory .book-endorsement, .band-ivory .framework-step, .band-ivory .assessment-card, .band-ivory .pattern-card, .band-ivory .trap-index-item, .band-ivory .book-buy-panel, .band-ivory .book-part { background: var(--paper); }
.home-cards a::before, .book-audience::before, .book-endorsement::before, .book-buy-panel::before, .book-part::before, .framework-step::before, .assessment-card::before, .pattern-card::before, .trap-index-item::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.home-cards a:hover, .book-audience:hover, .book-endorsement:hover, .framework-step:hover, .assessment-card:hover, .pattern-card:hover, .trap-index-item:hover, .book-part:hover {
  transform: translateY(-6px); border-color: #c9b9a4; box-shadow: 0 22px 44px rgba(20, 19, 16, .12);
}
.home-cards a:hover::before, .book-audience:hover::before, .book-endorsement:hover::before, .framework-step:hover::before, .assessment-card:hover::before, .pattern-card:hover::before, .trap-index-item:hover::before, .book-part:hover::before, .book-buy-panel::before, .framework-step::before { transform: scaleX(1); }
.home-cards a:focus-visible { transform: translateY(-6px); }
.home-cards strong { display: block; margin-bottom: 10px; font: 500 26px/1.1 var(--serif); letter-spacing: -.03em; }
.home-cards span { display: block; color: var(--muted); font-size: 15px; }
.home-cards a::after { content: "\2192"; position: absolute; right: 26px; bottom: 22px; color: var(--orange-text); font-size: 20px; transition: transform .3s var(--ease); }
.home-cards a:hover::after { transform: translateX(6px); }
.home-cards a { padding-bottom: 60px; }

/* Quotes. */
.book-excerpt blockquote, .book-audience-quote blockquote { margin: 0; }
.book-excerpt { max-width: 900px; margin: 0 auto; text-align: center; }
.book-excerpt blockquote p { font: italic 500 clamp(26px, 3.2vw, 42px)/1.25 var(--serif); letter-spacing: -.02em; }
.book-excerpt figcaption { color: var(--muted); font: 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.book-excerpt figcaption::before { content: ""; display: inline-block; width: 24px; height: 1px; margin-right: 10px; vertical-align: middle; background: var(--orange); }
.book-audience-quote blockquote p { font: italic 500 20px/1.4 var(--serif); }
.book-audience-quote { padding-left: 20px; border-left: 2px solid var(--orange); margin: 24px 0; }
.book-endorsement blockquote { margin: 0 0 22px; }
.book-endorsement blockquote p { font-size: 16px; line-height: 1.7; }
.book-endorsement blockquote::before { content: "\201C"; display: block; height: 44px; color: var(--orange); font: 500 72px/1 var(--serif); }
.book-endorsement figcaption { font-size: 14px; }
.book-endorsement figcaption strong { display: block; font: 500 19px/1.2 var(--serif); }
.book-endorsement figcaption span { display: block; color: var(--muted); margin-top: 4px; }

/* Book page details. */
.book-argument-grid, .book-buy-grid, .split-feature { display: grid; gap: 48px; }
.book-argument-grid > *, .book-buy-grid > *, .split-feature > *, .november-hero-grid > *, .section-heading > * { min-width: 0; }
@media (min-width: 900px) {
  .book-argument-grid, .book-buy-grid { grid-template-columns: 1fr 1fr; }
  .split-feature { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
.book-video video { width: 100%; height: auto; background: #000; box-shadow: 0 20px 40px rgba(20, 19, 16, .18); }
.book-video figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }
.book-parts { display: grid; gap: 24px; }
.book-part { padding: 36px; }
.book-part-numeral { display: block; font: italic 500 56px/1 var(--serif); color: var(--orange); }
.book-part-label { margin: 8px 0 0; font: 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.book-chapter-list { list-style: none; padding: 0; margin: 20px 0 0; }
.book-chapter-item { padding: 20px 0; border-top: 1px solid var(--line); }
.book-chapter-item h4 { margin: 0 0 8px; }
.book-chapter-number { display: block; margin-bottom: 6px; color: var(--orange-text); font: 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.book-chapter-question { font: italic 500 18px/1.4 var(--serif); }
details { margin-top: 10px; }
details summary { cursor: pointer; color: var(--orange-text); font-weight: 600; font-size: 14px; }
details[open] > *:not(summary) { animation: drop .35s var(--ease); }
.book-3d { width: 100%; height: min(80vh, 760px); border: 1px solid var(--line); background: var(--ink); }
.book-format-list, .book-retailer-list, .book-press-list { list-style: none; padding: 0; }
.book-format-list li, .book-retailer-list li, .book-press-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.book-retailer-list a { font-weight: 600; }
.book-retailer-format, .book-price-note { color: var(--muted); font-size: 14px; }
.book-isbn-list div, .book-credentials div { margin-bottom: 14px; }
.book-isbn-list dt, .book-credentials dt { color: var(--muted); font: 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.book-isbn-list dd, .book-credentials dd { margin: 4px 0 0; font-weight: 500; }
.book-credentials ul { margin: 4px 0; padding-left: 18px; }
.book-author-note { margin: 32px 0; padding: 28px 32px; background: var(--ivory); border-left: 3px solid var(--orange); }
.book-author-note-label { color: var(--muted); font: 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.book-author-note-heading { font: 500 24px/1.2 var(--serif); }
.premium-route-image img { width: 100%; height: auto; box-shadow: 0 24px 48px rgba(20, 19, 16, .18); }
.premium-route-image figcaption { margin-top: 12px; color: var(--muted); font-size: 13px; }
.book-store-table-wrap { position: relative; overflow-x: auto; }
.book-store-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--ivory); }
.book-store-table th, .book-store-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.book-store-table thead th { color: var(--ivory); background: var(--ink); font: 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.book-store-table tbody tr { transition: background .2s; }
.book-store-table tbody tr:hover { background: #fbf3ea; }

/* Framework, diagnostics, pattern, trap index. */
.framework-step { padding: 34px; }
.framework-step h2 { font-size: 28px; margin: 10px 0 12px; }
.framework-numeral { display: block; font: italic 500 56px/1 var(--serif); color: var(--orange); }
.framework-questions { list-style: none; padding: 0; margin: 18px 0 0; }
.framework-questions li { padding: 12px 0; border-top: 1px solid var(--line); font: italic 500 17px/1.4 var(--serif); }
.framework-questions .book-chapter-number { font-style: normal; }
.assessment-card { padding: 32px; }
.assessment-card img { width: 100%; height: auto; max-height: 260px; object-fit: contain; margin-bottom: 18px; transition: transform .6s var(--ease); }
.assessment-card:hover img { transform: scale(1.04) rotate(-2deg); }
.assessment-meta { padding-left: 18px; color: var(--muted); font-size: 14px; }
.pattern-card span { color: var(--orange-text); font: 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.pattern-card h2 { font-size: 24px; margin: 12px 0 10px; }
.trap-index-list { gap: 16px; }
.trap-index-item { padding: 26px 30px; }
.trap-index-item p { margin: 6px 0; }
.trap-index-situation { font: italic 500 22px/1.3 var(--serif); }
.trap-index-start { font-size: 14px; font-weight: 600; }

/* Author record (from the former ci3pro.ca founder page). */
.record-panel { padding: 31px; background: rgba(255, 253, 249, .06); border: 1px solid rgba(255, 253, 249, .14); }
.record-panel h2 { font-size: 30px; color: var(--ivory); }
.record-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.record-stats li { color: rgba(255, 253, 249, .75); font-size: 13px; line-height: 1.4; }
.record-stats strong { display: block; margin-bottom: 4px; color: #ffad7a; font: 500 30px/1 var(--serif); letter-spacing: -.02em; }
.record-grid { list-style: none; padding: 0; margin-block: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.record-card { position: relative; padding: 28px; background: var(--paper); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.record-card::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.record-card:hover { transform: translateY(-6px); border-color: #c9b9a4; box-shadow: 0 22px 44px rgba(20, 19, 16, .12); }
.record-card:hover::before { transform: scaleX(1); }
.record-card > span { display: block; color: var(--orange-text); font: italic 500 34px/1 var(--serif); }
.record-card h3 { margin: 14px 0 8px; font-size: 21px; }
.record-card p { margin: 0; color: var(--muted); font-size: 15px; }
.record-lead { font: 500 20px/1.5 var(--serif); }
.record-orgs { padding: 30px; background: var(--ivory); border: 1px solid var(--line); }
.record-orgs h3 { font-size: 22px; }
.record-orgs .eyebrow { margin: 22px 0 10px; }
.record-orgs ul { margin: 0; padding-left: 18px; }
.record-orgs li { padding: 3px 0; }
/* Phones: record cards swipe sideways instead of stacking fourteen deep. */
@media (max-width: 700px) {
  .record-stats { gap: 16px 14px; }
  .record-stats strong { font-size: 26px; }
  .record-grid {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    width: 100%; padding: 0 20px 12px; scroll-padding-inline: 20px; -webkit-overflow-scrolling: touch;
  }
  .record-grid > li { flex: 0 0 82%; scroll-snap-align: start; }
  .record-card:hover { transform: none; }
  .author-credentials > div, .author-quotes .book-dedication { padding: 22px; }
}

/* Author section: bio beside the photo, credentials in a row, quotes side by side. */
.author-intro { display: grid; gap: 56px; align-items: center; }
.author-intro p { max-width: 640px; }
.book-author-framing { font: italic 500 20px/1.4 var(--serif); color: var(--orange-deep-text); }
.author-photo { margin: 0; }
.author-photo img { display: block; width: 100%; max-height: 620px; object-fit: cover; object-position: top; }
.author-credentials { display: grid; gap: 20px; margin-top: 64px; margin-bottom: 0; }
.author-credentials > div { margin: 0; padding: 28px; background: var(--ivory); border: 1px solid var(--line); border-top: 3px solid var(--orange); }
.author-credentials dt { margin-bottom: 12px; }
.author-credentials ul { margin: 0; padding-left: 18px; }
.author-credentials li { padding: 4px 0; }
.author-quotes { display: grid; gap: 20px; margin-top: 20px; align-items: stretch; }
.author-quotes .book-author-note { margin: 0; }
.author-quotes .book-dedication { display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 36px; background: var(--ink); text-align: left; }
.author-quotes .book-dedication blockquote p { color: var(--ivory); font-size: clamp(24px, 2.4vw, 32px); }
.author-quotes .book-dedication figcaption { color: rgba(255, 253, 249, .6); }
.record-orgs { position: sticky; top: calc(var(--header-h) + 24px); }
@media (min-width: 900px) {
  .author-intro { grid-template-columns: 1.25fr 1fr; }
  .author-credentials { grid-template-columns: repeat(3, 1fr); }
  .author-quotes { grid-template-columns: 1.2fr 1fr; }
}
@media (max-width: 899px) {
  .author-photo img { max-height: 460px; }
  .record-orgs { position: static; }
}

/* Chapter questions that flow across the home page. */
.marquee { overflow: hidden; padding: 26px 0; color: var(--ivory); background: var(--orange-deep); border-block: 1px solid rgba(20, 19, 16, .2); }
.marquee-track { display: flex; width: max-content; animation: marquee 80s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; }
.marquee li { display: flex; align-items: center; white-space: nowrap; font: italic 500 22px/1.2 var(--serif); }
.marquee li::after { content: ""; width: 8px; height: 8px; margin: 0 34px; border-radius: 50%; background: #ffc3a1; }
.marquee a { color: var(--ivory); text-decoration: none; }
.marquee a:hover { color: #ffe2cf; text-decoration: underline; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Book page forms (assets/book-forms.js). */
.book-form { display: grid; gap: 16px; font-size: 15px; }
.book-form label { display: grid; gap: 6px; font-weight: 500; }
.book-form input, .book-form select, .book-form textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 0; background: var(--ivory); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.book-form input:focus, .book-form select:focus, .book-form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(239, 108, 8, .18); }
.book-form .consent-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.book-form .consent-check input { margin-top: 5px; accent-color: var(--orange-deep); }
.book-form button { justify-self: start; }
.book-form button:disabled { opacity: .6; cursor: wait; transform: none; }
.hidden-field { position: absolute; left: -9999px; }
.form-status { margin: 0; padding: 12px 16px; background: var(--ivory); border-left: 3px solid var(--muted); }
.form-status[data-kind="ok"] { border-left-color: #2e6b3a; }
.form-status[data-kind="error"] { border-left-color: var(--orange-deep); }

/* Placeholder slots. Must all be gone before launch (npm run check:launch). */
.slot { margin: 24px 0; padding: 16px; border: 2px dashed #c9a227; background: #fff6d6; font-size: 15px; }
.slot p { margin: 4px 0; }
.slot-label { font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .05em; }
.slot-source { color: var(--muted); }
.cards { list-style: none; padding: 0; display: grid; gap: 16px; }

/* Footer. */
.site-footer { color: #e4ded4; background: #17150f; font-size: 14px; }
.footer-cta { border-bottom: 1px solid rgba(255, 253, 249, .1); }
.footer-cta .shell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 56px 0; }
.footer-cta p { margin: 0; color: var(--ivory); font: 500 clamp(26px, 3vw, 38px)/1.15 var(--serif); letter-spacing: -.03em; }
.footer-cta p em { color: #ffad7a; }
.footer-cta .button-row { margin: 0; }
.site-footer .button-outline { color: var(--ivory); border-color: rgba(255, 253, 249, .65); }
.site-footer .button-outline:hover { color: var(--ink); background: var(--ivory); }
.footer-cta p { max-width: 640px; }
.footer-grid { display: grid; gap: 48px; padding: 64px 0 56px; grid-template-columns: 1.6fr repeat(3, 1fr); }
.footer-grid strong { display: block; margin-bottom: 16px; color: var(--ivory); font: 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: #e4ded4; text-decoration: none; transition: color .2s, padding .2s; }
.footer-grid a:hover { color: #ffad7a; }
.footer-about p { max-width: 360px; color: rgba(228, 222, 212, .8); }
.footer-about .brand { margin-bottom: 18px; }
.footer-mother { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 10px 14px; border: 1px solid rgba(255, 253, 249, .2); color: var(--ivory) !important; font-weight: 600; }
.footer-mother:hover { border-color: #ffad7a; }
.footer-base { border-top: 1px solid rgba(255, 253, 249, .1); }
.footer-base .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0; color: rgba(228, 222, 212, .6); font-size: 13px; }
.footer-base a { color: rgba(228, 222, 212, .8); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Scroll reveals. Hidden only when JavaScript runs, so nothing is lost without it. */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
html.js .reveal.in-view { opacity: 1; transform: none; }

@media (max-width: 700px) {
  .shell { width: calc(100% - 40px); }
  .november-section { padding: 72px 0; }
  .november-hero { padding: 72px 0; }
  main.wide > .november-section:first-child { padding: 80px 0 64px; }
  .home-cards a, .book-audience, .book-endorsement, .framework-step, .assessment-card, .pattern-card, .book-part { padding: 24px; }
  .marquee li { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
