@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600&display=swap');

:root {
  color-scheme: light;
  --bg: #f5f2eb;
  --surface: #fffdf8;
  --surface-alt: #eee9df;
  --text: #242b30;
  --muted: #647078;
  --line: #d9d6ce;
  --accent: #285d76;
  --accent-soft: #deebed;
  --shadow: 0 16px 48px rgba(31, 43, 48, .09);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151b20;
  --surface: #1c252b;
  --surface-alt: #253139;
  --text: #e9ebe8;
  --muted: #a5b2b7;
  --line: #354249;
  --accent: #9bd3dd;
  --accent-soft: #243d46;
  --shadow: 0 16px 48px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'DM Sans', system-ui, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.topbar {
  position: sticky; top: 0; z-index: 30; height: 66px; padding: 0 clamp(16px, 3vw, 38px);
  display: flex; align-items: center; gap: 18px; background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(14px);
}
.icon-button { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); min-height: 38px; padding: 7px 12px; }
.menu-button { display: inline-flex; align-items: center; gap: 9px; font-size: .86rem; font-weight: 700; }
.menu-icon { font-size: 1.18rem; line-height: 1; }
.library-back { color: var(--accent); text-decoration: none; font-size: .84rem; font-weight: 700; white-space: nowrap; }
.library-back:hover { text-decoration: underline; }
.brand { color: var(--text); text-decoration: none; font-weight: 700; white-space: nowrap; letter-spacing: -.03em; }
.brand span { font-weight: 400; color: var(--muted); margin-left: 5px; }
.spacer { flex: 1; }
.page-status { font-size: .78rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.theme-button { min-width: 42px; font-size: 1.05rem; }
.read-progress { position: absolute; height: 2px; left: 0; bottom: -1px; width: 100%; background: transparent; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s ease; }

.intro { max-width: 900px; margin: 0 auto; padding: clamp(54px, 9vw, 110px) 24px 62px; }
.eyebrow { display: block; font-size: .72rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .17em; }
.intro h1 { font-family: 'Newsreader', Georgia, serif; font-size: clamp(3rem, 8vw, 6.4rem); font-weight: 500; line-height: .95; letter-spacing: -.055em; margin: 19px 0 24px; max-width: 780px; }
.intro p { max-width: 650px; font-size: clamp(1rem, 2.2vw, 1.2rem); line-height: 1.65; color: var(--muted); margin: 0 0 25px; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.primary-link, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 9px 16px; border-radius: 9px; font-size: .86rem; font-weight: 700; text-decoration: none; }
.primary-link { background: var(--accent); color: var(--surface); }
.secondary-button { background: transparent; border: 1px solid var(--line); color: var(--text); }

.page-section { padding: 58px 24px 68px; border-top: 1px solid var(--line); scroll-margin-top: 66px; }
.page-section:nth-of-type(even) { background: color-mix(in srgb, var(--surface) 33%, var(--bg)); }
.page-shell { max-width: 900px; margin: 0 auto; }
.name-page .page-shell { max-width: 1320px; }
.name-content h3 { font-family: 'Newsreader', Georgia, serif; font-size: 1.45rem; margin: 0 0 18px; }
.name-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 2vw, 32px); align-items: start; }
.name-column { list-style: none; padding: 0; margin: 0; font-size: .86rem; line-height: 1.55; overflow-wrap: anywhere; }
.name-column li { margin: 0 0 .13em; }
.sumario-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.sumario-column h3 { font-family: 'Newsreader', Georgia, serif; font-size: 1.45rem; margin: 0 0 17px; }
.sumario-column ul { list-style: none; padding: 0; margin: 0; }
.sumario-column li { margin: 0 0 14px; }
.sumario-column a { display: grid; grid-template-columns: 2.5em 1fr; gap: 7px; color: var(--text); text-decoration: none; font-size: .79rem; line-height: 1.35; }
.sumario-column a:hover { color: var(--accent); text-decoration: underline; }
.sumario-column a span { font-weight: 700; }
.diagram-title { font-family: 'Newsreader', Georgia, serif; font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 500; margin: 0 0 22px; }
.canvas-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(150px, auto)) minmax(100px, auto); border: 1px solid var(--line); background: var(--surface); }
.canvas-cell { border: 1px solid var(--line); padding: 15px; min-width: 0; }
.canvas-cell h4 { margin: 0 0 11px; font-size: .83rem; line-height: 1.25; }
.canvas-cell abbr { display: block; color: var(--accent); font-size: 1.25rem; font-weight: 700; text-decoration: none; margin-bottom: 5px; }
.canvas-cell ul { margin: 0; padding-left: 1.1em; font-size: .8rem; line-height: 1.45; }
.canvas-cell li { margin: 0 0 .6em; }
.canvas-pp { grid-area: 1 / 1 / 3 / 3; }
.canvas-ac { grid-area: 1 / 3 / 2 / 5; }
.canvas-rp { grid-area: 2 / 3 / 3 / 5; }
.canvas-pv { grid-area: 1 / 5 / 3 / 7; }
.canvas-rc { grid-area: 1 / 7 / 2 / 9; }
.canvas-cn { grid-area: 2 / 7 / 3 / 9; }
.canvas-sc { grid-area: 1 / 9 / 3 / 11; }
.canvas-cs { grid-area: 3 / 1 / 4 / 6; }
.canvas-rs { grid-area: 3 / 6 / 4 / 11; }
.canvas-axis { display: flex; justify-content: space-between; gap: 20px; font-size: .78rem; color: var(--muted); margin-top: 10px; }
.step-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step-grid li { padding: 24px; background: var(--surface); border: 1px solid var(--line); min-height: 180px; }
.step-grid span { display: block; color: var(--accent); font-size: .8rem; font-weight: 700; margin-bottom: 18px; }
.step-grid p { font-family: 'Newsreader', Georgia, serif; font-size: 1.55rem; line-height: 1.2; margin: 0; }
.empathy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.empathy-card { padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.empathy-card h4 { font-family: 'Newsreader', Georgia, serif; font-size: 1.3rem; margin: 0 0 12px; }
.empathy-card ul { margin: 0; padding-left: 1.2em; font-size: .88rem; line-height: 1.55; }
.diagram-credit { color: var(--muted); font-size: .76rem; margin-top: 13px; }
.book-cover { display: grid; grid-template-columns: 58% 42%; background: #fff; color: #1b1b1b; border: 1px solid var(--line); overflow: hidden; }
.book-cover-text { padding: clamp(24px, 4vw, 48px); }
.book-cover h3, .book-title-page h3 { font-family: 'Newsreader', Georgia, serif; font-size: clamp(3.8rem, 8vw, 6.7rem); font-weight: 600; letter-spacing: -.07em; line-height: .83; margin: 34px 0 22px; }
.book-cover h3 { font-size: clamp(3.3rem, 5.8vw, 5rem); }
.book-cover .book-lead { font-family: 'DM Sans', system-ui, sans-serif; font-size: .92rem; line-height: 1.5; margin: 0; }
.book-cover p { font-family: 'Newsreader', Georgia, serif; font-size: 1.13rem; line-height: 1.4; }
.book-cover .book-subtitle, .book-title-page .book-subtitle { font-family: 'DM Sans', system-ui, sans-serif; font-size: 1.25rem; font-style: italic; font-weight: 700; }
.book-cover .book-publisher { margin-top: 35px; font-family: 'DM Sans', system-ui, sans-serif; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }
.book-cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.book-title-page { min-height: 560px; padding: clamp(25px, 5vw, 70px); background: var(--surface); border: 1px solid var(--line); }
.book-title-page h3 { margin: 0 0 24px; }
.book-title-page > p { font-family: 'Newsreader', Georgia, serif; font-size: 1.2rem; }
.book-title-page dl { display: grid; grid-template-columns: 125px 1fr; gap: 7px 15px; max-width: 560px; font-size: .9rem; margin-top: 40px; }
.book-title-page dt { color: var(--muted); }
.book-title-page dd { margin: 0; }
.seven-faces h3 { font-family: 'Newsreader', Georgia, serif; font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 500; line-height: 1.05; max-width: 700px; margin: 0 0 28px; }
.faces-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.faces-grid article { min-width: 0; padding: 16px; background: var(--surface); border: 1px solid var(--line); }
.faces-grid img { display: block; width: 100%; height: 175px; object-fit: contain; background: #fff; margin-bottom: 16px; }
.faces-grid h4 { font-size: 1rem; margin: 0 0 8px; }
.faces-grid p { font-family: 'Newsreader', Georgia, serif; font-size: 1rem; line-height: 1.48; margin: 0 0 12px; }
.faces-grid .face-name { color: var(--accent); font-weight: 600; margin-bottom: 2px; }
.faces-grid .face-position { color: var(--muted); font-style: italic; }
.sumario-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 30px; background: var(--surface); border: 1px solid var(--line); }
.sumario-intro h3 { font-family: 'Newsreader', Georgia, serif; font-size: 3rem; font-weight: 500; margin: 0 0 24px; }
.sumario-intro p, .sumario-intro li { font-family: 'Newsreader', Georgia, serif; font-size: 1.14rem; line-height: 1.5; }
.sumario-intro ol { padding-left: 1.2em; }
.sumario-intro li { margin-bottom: 12px; }
.sumario-orbit { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 130px); place-items: center; gap: 7px; }
.sumario-orbit a { display: grid; place-items: center; text-align: center; width: 110px; height: 110px; border-radius: 50%; padding: 12px; color: #fff; background: #3d515a; text-decoration: none; font-family: 'Newsreader', Georgia, serif; font-size: 1.25rem; line-height: 1.1; }
.sumario-orbit a:nth-child(even) { background: #777e80; }
.sumario-orbit a:nth-child(6), .sumario-orbit a:nth-child(7) { width: 82px; height: 82px; font-size: 1rem; }
.sumario-orbit a:hover { outline: 3px solid var(--accent); outline-offset: 4px; }
.quadro-cover { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.quadro-art { display: block; width: 100%; height: auto; }
.quadro-title-band { display: grid; grid-template-columns: minmax(70px, 28%) 1fr; align-items: center; gap: 24px; padding: 28px 32px 32px 0; background: #fff; color: #171717; }
.quadro-square { display: block; height: 100%; min-height: 190px; background: #545454; }
.quadro-title-band h3 { font-family: 'Newsreader', Georgia, serif; font-size: clamp(2.3rem, 5.4vw, 4.5rem); font-style: italic; font-weight: 500; line-height: 1.03; margin: 0 0 15px; }
.quadro-title-band p { font-family: 'Newsreader', Georgia, serif; font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-style: italic; font-weight: 600; line-height: 1.2; margin: 0; }
.quadro-contents { display: grid; grid-template-columns: 34% 66%; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.quadro-contents nav { padding: 28px; color: #181818; }
.quadro-contents h3 { font-family: 'Newsreader', Georgia, serif; font-size: 2rem; font-weight: 500; margin: 0 0 28px; }
.quadro-contents ol { list-style: none; margin: 0; padding: 0; }
.quadro-contents li { margin-bottom: 20px; }
.quadro-contents a { display: grid; grid-template-columns: 2em 1fr; gap: 8px; text-decoration: none; color: #1d1d1d; line-height: 1.35; }
.quadro-contents a:hover { text-decoration: underline; }
.quadro-contents a span { font-weight: 700; }
.quadro-contents img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.definition-page { min-height: 400px; padding: clamp(35px, 7vw, 82px); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; justify-content: center; }
.definition-page p { font-family: 'Newsreader', Georgia, serif; font-size: clamp(1.2rem, 2.4vw, 1.8rem); margin: 0 0 22px; }
.definition-page blockquote { font-family: 'Newsreader', Georgia, serif; font-size: clamp(2.1rem, 5vw, 4.2rem); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 0 clamp(0px, 6vw, 80px); max-width: 750px; }
.component-overview h3, .component-map h3 { font-family: 'Newsreader', Georgia, serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; margin: 0 0 30px; }
.component-overview h3 small { display: block; font-family: 'DM Sans', system-ui, sans-serif; font-size: .8rem; font-weight: 500; color: var(--muted); }
.component-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.component-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.component-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.component-card { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 16px; min-width: 0; }
.component-card img { display: block; width: 100%; height: 160px; object-fit: contain; background: #fff; mix-blend-mode: multiply; margin-bottom: 16px; }
html[data-theme="dark"] .component-card img { mix-blend-mode: normal; border-radius: 3px; }
.component-caption { display: flex; gap: 8px; align-items: flex-start; }
.component-caption span { flex: none; display: inline-grid; place-items: center; width: 23px; height: 23px; background: var(--text); color: var(--surface); font-size: .73rem; font-weight: 700; }
.component-caption h4 { margin: 0; font-size: .95rem; line-height: 1.2; }
.component-card p { font-family: 'Newsreader', Georgia, serif; font-size: 1.08rem; line-height: 1.38; margin: 15px 0 0; }
.component-map { padding: clamp(20px, 4vw, 46px); border: 1px solid var(--line); background: var(--surface); }
.component-map h3 { margin-bottom: 6px; }
.component-map > p { color: var(--muted); font-size: .84rem; margin: 0 0 28px; }
.component-map ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; gap: 10px; padding: 0; margin: 0; }
.component-map li { padding: 12px; min-height: 195px; border: 1px solid var(--line); }
.component-map img { display: block; width: 100%; height: 105px; object-fit: contain; background: #fff; margin-bottom: 11px; }
.component-map li span { color: var(--accent); font-size: .7rem; font-weight: 700; }
.component-map h4 { font-size: .82rem; line-height: 1.25; margin: 4px 0; }
.canvas-transition { font-family: 'Newsreader', Georgia, serif; font-size: 1.3rem; line-height: 1.55; }
.canvas-transition p { max-width: 760px; margin: 0 0 1em; }
.transition-lead { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.25; font-weight: 600; }
.transition-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 28px 0; }
.transition-stages > div { min-width: 0; padding: 15px; background: var(--surface); border: 1px solid var(--line); }
.transition-stages > div > span { display: block; color: var(--accent); font-family: 'DM Sans', system-ui, sans-serif; font-size: .7rem; font-weight: 700; margin-bottom: 14px; }
.transition-icons { display: grid; grid-template-columns: repeat(3, 1fr); height: 180px; }
.transition-icons img { width: 100%; height: 60px; object-fit: contain; background: #fff; }
.transition-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 60px); border: 1px solid var(--line); }
.transition-mini-grid i, .transition-mini-grid span { border: 1px solid var(--line); }
.transition-mini-grid span { display: grid; place-items: center; color: var(--text); font-family: 'DM Sans', system-ui, sans-serif; font-size: .8rem; font-weight: 700; }
.testimonials-page h3 { font-family: 'DM Sans', system-ui, sans-serif; font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 500; line-height: 1; text-transform: uppercase; letter-spacing: -.055em; margin: 0 0 26px; max-width: 640px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; align-items: start; }
.testimonials-grid blockquote { margin: 0; padding: 18px; background: var(--surface); border-top: 5px solid var(--text); font-family: 'Newsreader', Georgia, serif; }
.testimonials-grid p { font-size: 1.12rem; line-height: 1.42; margin: 0 0 16px; }
.testimonials-grid cite { display: block; font-size: .85rem; color: var(--muted); }
.epilogue-page h3 { font-family: 'DM Sans', system-ui, sans-serif; font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 500; line-height: 1; text-transform: uppercase; letter-spacing: -.055em; margin: 0 0 30px; max-width: 650px; }
.epilogue-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.epilogue-columns > div { border-top: 5px solid var(--text); padding: 13px 0; }
.epilogue-columns h4 { font-size: 1.35rem; text-transform: uppercase; line-height: 1.1; margin: 0 0 20px; }
.epilogue-columns p { font-family: 'Newsreader', Georgia, serif; font-size: 1.1rem; line-height: 1.45; margin: 0 0 1em; }
.epilogue-page > img { display: block; width: 100%; height: auto; margin-top: 30px; border-radius: 4px; }
.assessment-axes { position: relative; min-height: 470px; background: var(--surface); border: 1px solid var(--line); }
.assessment-axes::before { content: ''; position: absolute; top: 8%; bottom: 8%; left: 50%; width: 2px; background: var(--text); }
.assessment-axes::after { content: ''; position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; background: var(--text); }
.assessment-vertical { position: absolute; left: 14px; top: 12%; bottom: 12%; display: flex; flex-direction: column; justify-content: space-between; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .15em; }
.assessment-vertical span { writing-mode: vertical-rl; transform: rotate(180deg); }
.assessment-horizontal { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; text-align: center; }
.assessment-horizontal strong { font-size: clamp(6rem, 15vw, 11rem); line-height: 1; color: var(--muted); z-index: 1; }
.assessment-horizontal span { align-self: end; margin-bottom: 28px; color: var(--muted); font-size: .73rem; text-transform: uppercase; letter-spacing: .13em; }
.strategy-arrow { display: flex; align-items: center; min-height: 300px; padding: 35px; background: var(--surface); border: 1px solid var(--line); gap: 60px; overflow: hidden; }
.strategy-arrow h3 { flex: 1; font-family: 'DM Sans', system-ui, sans-serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; text-transform: uppercase; margin: 0; }
.strategy-arrow span { flex: 1; position: relative; display: block; height: 30px; background: var(--text); }
.strategy-arrow-left span::before, .strategy-arrow-right span::after { content: ''; position: absolute; top: -24px; border-top: 39px solid transparent; border-bottom: 39px solid transparent; }
.strategy-arrow-right { flex-direction: row-reverse; }
.strategy-arrow-left span::before { left: -47px; border-right: 48px solid var(--text); }
.strategy-arrow-right span::after { right: -47px; border-left: 48px solid var(--text); }
.process-curve { padding: clamp(20px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); }
.process-zones { display: grid; grid-template-columns: 1fr 1fr; text-align: center; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; }
.process-curve img { display: block; width: 100%; height: auto; margin: 25px 0; }
.process-curve ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; list-style: none; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-curve li { font-family: 'Newsreader', Georgia, serif; font-size: 1.3rem; font-style: italic; line-height: 1.2; }
.process-curve p { color: var(--muted); font-size: .76rem; margin: 20px 0 0; text-align: right; }
.five-phases-intro { padding: clamp(20px, 4vw, 42px); background: var(--surface); border: 1px solid var(--line); }
.five-phases-intro h3, .five-phases h3 { font-family: 'Newsreader', Georgia, serif; font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 500; margin: 0 0 24px; }
.five-phases-intro p { max-width: 780px; font-family: 'Newsreader', Georgia, serif; font-size: 1.25rem; line-height: 1.58; }
.five-phases-intro > a { display: inline-block; margin-top: 10px; font-weight: 700; font-size: .85rem; }
.phase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; list-style: none; padding: 0; margin: 0; }
.phase-card { padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.phase-card > span { color: var(--accent); font-weight: 700; font-size: .75rem; }
.phase-card h4 { font-family: 'Newsreader', Georgia, serif; font-size: 2rem; font-weight: 500; margin: 6px 0 12px; }
.phase-card h5 { font-size: .85rem; margin: 25px 0 8px; }
.phase-card p { font-family: 'Newsreader', Georgia, serif; font-size: 1.12rem; line-height: 1.45; margin: 0 0 14px; }
.phase-card .phase-objective { font-weight: 600; }
.phase-card summary { color: var(--accent); font-size: .8rem; font-weight: 700; cursor: pointer; margin-top: 20px; }
.phase-card ul { padding-left: 1.2em; font-size: .8rem; line-height: 1.5; }
.phase-card li { margin-bottom: 5px; }
.phase-card a { text-decoration: none; }
.phase-card a:hover { text-decoration: underline; }
.phase-card small { color: var(--muted); }
.type-opener { min-height: 380px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 8%; border-radius: 7px; border: 1px solid var(--line); }
.type-opener-kicker { font-family: 'DM Sans', system-ui, sans-serif; font-size: .7rem; text-transform: uppercase; letter-spacing: .18em; opacity: .7; }
.type-opener h3 { font-family: 'Newsreader', Georgia, serif; font-size: clamp(4rem, 13vw, 10rem); font-weight: 500; font-style: italic; line-height: .95; letter-spacing: -.055em; overflow-wrap: anywhere; margin: 30px 0 0; }
.type-opener-dark { color: #fff; background: #111; }
.type-opener-gray { color: #fff; background: #96999a; }
.type-opener-light { color: #fff; background: linear-gradient(135deg, #343e43, #b8bdba); }
.type-opener-circle { color: var(--text); background: radial-gradient(circle at center, var(--surface) 0 48%, var(--surface-alt) 48% 100%); text-align: center; }
.type-opener-circle h3 { font-size: clamp(3rem, 9vw, 6rem); margin: 20px auto 0; }
.circle-opener { min-height: 450px; background: var(--surface); overflow: hidden; display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 7px; }
.circle-shape { width: min(75%, 620px); min-height: 450px; border-radius: 0 50% 50% 0; background: #111; color: #fff; display: flex; align-items: center; padding: 6%; }
.circle-shape h3 { font-family: 'Newsreader', Georgia, serif; font-size: clamp(2.2rem, 5vw, 4.6rem); font-weight: 500; line-height: 1.06; margin: 0; }
.photo-opener { border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: var(--surface); }
.photo-opener > div { padding: 30px 38px; }
.photo-opener span { display: block; color: var(--accent); font-size: .82rem; font-weight: 700; margin-bottom: 5px; }
.photo-opener h3 { font-family: 'Newsreader', Georgia, serif; font-size: clamp(2.7rem, 6vw, 5rem); font-weight: 500; margin: 0; line-height: 1; }
.photo-opener img { display: block; width: 100%; height: auto; }
.component-detail { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: clamp(20px, 4vw, 42px); }
.component-detail header { border-bottom: 1px solid var(--line); padding-bottom: 15px; margin-bottom: 25px; }
.component-detail header span { display: block; color: var(--accent); font-size: .75rem; font-weight: 700; }
.component-detail header img { float: right; width: 110px; height: 100px; object-fit: contain; background: #fff; }
.component-detail h3 { font-family: 'Newsreader', Georgia, serif; font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 500; font-style: italic; line-height: 1; margin: 18px 0 0; }
.component-detail .prose { max-width: none; column-count: 2; column-gap: 34px; font-size: 1.13rem; line-height: 1.55; }
.component-detail .prose h3 { font-size: 1.2rem; font-style: normal; break-after: avoid; }
.component-detail .prose p { break-inside: avoid; }
.component-continuation { display: grid; grid-template-columns: minmax(115px, .48fr) repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 38px); align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: clamp(24px, 4vw, 44px); }
.continuation-mark { display: flex; flex-direction: column; align-items: center; gap: 70px; }
.continuation-mark span { align-self: flex-start; display: grid; place-items: center; width: 39px; height: 39px; background: var(--text); color: var(--surface); font-size: 1.5rem; font-weight: 700; }
.continuation-mark img { width: min(100%, 160px); height: 150px; object-fit: contain; background: #fff; }
.continuation-column { font-size: 1.05rem; line-height: 1.55; max-width: none; }
.continuation-column h3 { font-family: 'DM Sans', system-ui, sans-serif; font-size: .92rem; margin-top: 0; }
.continuation-column h3:not(:first-child) { margin-top: 1.8rem; }
.continuation-column blockquote { font-style: italic; margin: 0; font-size: 1.18rem; line-height: 1.5; }
.brain-interlude { display: grid; grid-template-columns: 1fr 1.5fr 1fr; align-items: center; gap: 20px; min-height: 480px; background: var(--surface); border: 1px solid var(--line); padding: 32px; }
.brain-interlude img { display: block; width: 100%; max-height: 455px; object-fit: contain; }
.brain-interlude h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px; }
.brain-interlude p { font-family: 'Newsreader', Georgia, serif; font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.visual-interlude { min-height: 485px; overflow: hidden; background: linear-gradient(135deg, var(--surface-alt), var(--surface)); border: 1px solid var(--line); padding: clamp(30px, 5vw, 56px); display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 20px; }
.visual-interlude h3 { font-family: 'Newsreader', Georgia, serif; font-size: clamp(2.6rem, 6vw, 5.3rem); font-style: italic; font-weight: 500; line-height: 1; margin: 0; }
.visual-interlude img { display: block; width: 100%; max-height: 410px; object-fit: contain; background: #fff; }
.ideation-diagram, .prototype-cycle, .informed-design, .options-diagram, .model-levels { background: var(--surface); border: 1px solid var(--line); min-height: 360px; padding: clamp(30px, 5vw, 58px); display: flex; flex-direction: column; justify-content: center; }
.ideation-diagram h3, .prototype-cycle h3, .informed-design h3, .options-diagram h3, .model-levels h3 { font-family: 'Newsreader', Georgia, serif; font-weight: 500; font-size: clamp(2rem, 4vw, 3.5rem); margin: 0 0 34px; }
.ideation-diagram > div, .informed-design > div, .model-levels > div { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 3vw, 35px); font-weight: 700; text-align: center; }
.ideation-diagram > div span:nth-child(2), .informed-design > div span:nth-child(even), .model-levels > div span:nth-child(even) { color: var(--accent); font-size: clamp(2rem, 5vw, 4rem); }
.ideation-diagram p { text-align: center; color: var(--muted); margin: 35px 0 0; }
.prototype-ring { width: min(300px, 70vw); height: min(300px, 70vw); border: 8px solid var(--accent); border-radius: 50%; margin: 0 auto 28px; display: flex; flex-direction: column; align-items: center; justify-content: space-around; text-transform: uppercase; font-weight: 700; }
.prototype-cycle > p { display: flex; justify-content: space-between; align-items: center; max-width: 400px; width: 100%; margin: 0 auto; font-size: 1.3rem; font-weight: 700; text-transform: uppercase; }
.options-diagram > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.options-diagram > div span { border: 1px solid var(--line); padding: 24px 12px; font-weight: 700; }
.options-diagram > div span:nth-child(2) { background: var(--accent-soft); }
.model-levels > div { flex-direction: column; }
.unbundled-page, .business-types { border: 1px solid var(--line); background: var(--surface); padding: clamp(22px, 4vw, 44px); }
.unbundled-page h3, .business-types h3 { font-family: 'Newsreader', Georgia, serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; margin: 0 0 28px; }
.unbundled-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.unbundled-grid article { border-top: 2px solid var(--accent); padding-top: 12px; }
.unbundled-grid article > span { color: var(--accent); font-size: .8rem; font-weight: 700; }
.unbundled-grid h4 { font-size: 1.1rem; margin: 8px 0 14px; }
.unbundled-grid p { font-family: 'Newsreader', Georgia, serif; font-size: 1.04rem; line-height: 1.55; }
.bundle-diagram { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 30px; padding: 20px; background: var(--surface-alt); }
.bundle-diagram > div { flex: 1; text-align: center; }
.bundle-diagram b, .bundle-diagram span { display: block; }
.bundle-diagram > span { color: var(--accent); font-size: 2rem; }
.bundle-diagram div span { font-size: .8rem; margin-top: 8px; }
.table-scroll { overflow-x: auto; }
.business-types table { border-collapse: collapse; min-width: 650px; width: 100%; }
.business-types th, .business-types td { text-align: left; vertical-align: top; border: 1px solid var(--line); padding: 15px; }
.business-types thead th { background: var(--surface-alt); }
.business-types tbody th { color: var(--accent); width: 110px; }
.business-types td { font-family: 'Newsreader', Georgia, serif; font-size: 1.05rem; line-height: 1.5; }
.business-types > p { color: var(--muted); font-size: .76rem; margin: 18px 0 0; }
.value-questions, .pricing-table { background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); }
.component-questions { list-style: none; padding: 0 0 24px; margin: 0 0 34px; border-bottom: 1px solid var(--line); font-family: 'Newsreader', Georgia, serif; font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.16; }
.component-questions li { margin-bottom: 7px; }
.value-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.value-columns h3 { font-size: .98rem; margin: 0 0 9px; }
.value-columns p { font-family: 'Newsreader', Georgia, serif; font-size: 1.05rem; line-height: 1.55; margin: 0 0 16px; }
.value-columns .lead { font-style: italic; }
.pricing-table h3 { font-family: 'Newsreader', Georgia, serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; margin: 0 0 28px; }
.pricing-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pricing-columns > div { border-top: 3px solid var(--accent); padding-top: 15px; }
.pricing-columns h4 { font-size: 1.15rem; margin: 0 0 5px; }
.pricing-columns > div > p { color: var(--muted); font-size: .87rem; margin: 0 0 22px; }
.pricing-columns dl { margin: 0; }
.pricing-columns dl > div { display: grid; grid-template-columns: minmax(105px, .7fr) 1.3fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.pricing-columns dt { font-weight: 700; font-size: .87rem; }
.pricing-columns dd { margin: 0; font-family: 'Newsreader', Georgia, serif; font-size: 1.04rem; line-height: 1.45; }
.pattern-canvas { background: var(--surface); border: 1px solid var(--line); padding: clamp(22px, 4vw, 44px); }
.pattern-canvas > h3 { font-family: 'Newsreader', Georgia, serif; font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 500; margin: 0 0 25px; }
.pattern-canvas-list { display: grid; gap: 36px; }
.pattern-canvas-list article > h4 { font-size: 1.2rem; margin: 0 0 13px; }
.pattern-canvas-list .canvas-grid { grid-template-rows: repeat(2, minmax(115px, auto)) minmax(85px, auto); }
.pattern-canvas-list .canvas-cell { padding: 10px; }
.pattern-canvas-list .canvas-cell h4 { font-size: .73rem; }
.pattern-canvas-list .canvas-cell ul { font-size: .73rem; }
.pattern-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 30px; margin: 25px 0 0; padding-left: 20px; font-family: 'Newsreader', Georgia, serif; font-size: 1.05rem; line-height: 1.5; }
.page-heading { margin: 0 0 28px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.page-heading h2 { font-family: 'Newsreader', Georgia, serif; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 500; line-height: 1; letter-spacing: -.045em; margin: 8px 0 0; }
.page-heading .page-count { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.prose { font-family: 'Newsreader', Georgia, serif; font-size: clamp(1.18rem, 2vw, 1.36rem); line-height: 1.68; max-width: 740px; overflow-wrap: anywhere; }
.prose p { margin: 0 0 1.15em; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 { font-size: 1.15em; line-height: 1.2; font-weight: 600; margin: 1.4em 0 .45em; }
.prose h3:first-child { margin-top: 0; }
.assessment-prose { max-width: none; }
.assessment-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 10px; }
.assessment-row p { margin: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); font-size: .86em; line-height: 1.35; }
.assessment-pole { display: inline-block; width: 1.4em; font-family: 'DM Sans', system-ui, sans-serif; font-weight: 700; color: var(--accent); }
.pull-quote { margin: 0 0 1.65em; padding: 0 0 0 20px; border-left: 3px solid var(--accent); color: var(--accent); font-size: 1.16em; line-height: 1.43; }
.pull-quote p { margin: 0; }
.empty-page { color: var(--muted); font-family: 'DM Sans', system-ui, sans-serif; font-size: .95rem; }
.source-figure { margin: 32px 0 0; }
.source-figure img, .source-image img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: var(--shadow); }
.source-figure figcaption { font-size: .75rem; color: var(--muted); margin-top: 9px; }
.source-image { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 16px; }
.source-image summary { color: var(--accent); font-size: .82rem; font-weight: 700; width: fit-content; cursor: pointer; }
.source-image img { margin-top: 19px; }
.transcription { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.transcription summary { color: var(--accent); font-size: .82rem; font-weight: 700; width: fit-content; cursor: pointer; }
.transcription .prose { margin-top: 22px; }
.page-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 42px; padding-top: 19px; border-top: 1px solid var(--line); font-size: .82rem; font-weight: 700; }
.page-footer a { text-decoration: none; }
.page-footer a:hover { text-decoration: underline; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 39; background: rgba(8, 17, 22, .42); }
.drawer { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: min(390px, 100vw); background: var(--surface); box-shadow: var(--shadow); overflow-y: auto; padding: 22px; }
.drawer[hidden], .drawer-backdrop[hidden] { display: none; }
.drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.drawer-header h2 { margin: 0; font-family: 'Newsreader', Georgia, serif; font-size: 1.8rem; font-weight: 500; }
.drawer label { display: block; font-size: .73rem; color: var(--muted); text-transform: uppercase; letter-spacing: .11em; font-weight: 700; margin: 21px 0 8px; }
.drawer input { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--text); padding: 12px; outline: 0; }
.drawer input:focus { border-color: var(--accent); }
.jump-row { display: flex; gap: 8px; }
.jump-row button { border: 0; border-radius: 9px; background: var(--accent); color: var(--surface); padding: 0 14px; font-weight: 700; }
.chapter-nav { margin-top: 25px; border-top: 1px solid var(--line); }
.chapter-nav a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .87rem; line-height: 1.3; }
.chapter-nav a:hover, .chapter-nav a.is-active { color: var(--accent); }
.chapter-nav small { color: var(--muted); white-space: nowrap; }
.page-list { margin-top: 23px; }
.page-list summary { color: var(--accent); font-weight: 700; font-size: .86rem; cursor: pointer; }
.page-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding-top: 16px; }
.page-grid a { border-radius: 6px; padding: 6px 0; text-align: center; color: var(--text); text-decoration: none; font-size: .74rem; }
.page-grid a:hover, .page-grid a.is-active { background: var(--accent-soft); color: var(--accent); }
.search-results { margin-top: 12px; }
.search-results:empty { display: none; }
.search-results a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.search-results strong { display: block; font-size: .8rem; color: var(--accent); margin-bottom: 3px; }
.search-results span { color: var(--muted); font-family: 'Newsreader', Georgia, serif; font-size: 1rem; line-height: 1.3; }
.search-results p { font-size: .8rem; color: var(--muted); }
.drawer-note { font-size: .75rem; line-height: 1.5; color: var(--muted); margin-top: 28px; }

@media (max-width: 650px) {
  .topbar { height: 60px; gap: 10px; padding: 0 12px; }
  .library-back { font-size: .78rem; }
  .brand { display: none; }
  .menu-button span:last-child { display: none; }
  .page-status { font-size: .68rem; }
  .icon-button { padding: 6px 9px; }
  .intro { padding-top: 62px; }
  .page-section { padding: 42px 20px 53px; }
  .page-heading .page-count { display: none; }
  .name-grid { grid-template-columns: 1fr; gap: 18px; }
  .name-column { font-size: .96rem; }
  .sumario-grid { grid-template-columns: 1fr; gap: 25px; }
  .faces-grid, .sumario-intro { grid-template-columns: 1fr; }
  .book-cover { grid-template-columns: 1fr; }
  .book-cover img { max-height: 300px; object-fit: cover; }
  .sumario-orbit { grid-template-rows: repeat(3, 110px); }
  .sumario-orbit a { width: 88px; height: 88px; font-size: 1rem; }
  .sumario-column a { font-size: .95rem; }
  .canvas-grid { display: block; }
  .canvas-cell { min-height: 88px; }
  .step-grid { grid-template-columns: 1fr; }
  .step-grid li { min-height: 0; }
  .empathy-grid { grid-template-columns: 1fr; }
  .assessment-row { grid-template-columns: 1fr; gap: 6px; }
  .quadro-title-band { grid-template-columns: 42px 1fr; gap: 16px; padding: 16px; }
  .quadro-square { min-height: 145px; }
  .quadro-contents { grid-template-columns: 1fr; }
  .quadro-contents img { max-height: 290px; object-fit: cover; }
  .component-grid-4, .component-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .component-card img { height: 105px; }
  .component-map ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .transition-stages { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .epilogue-columns { grid-template-columns: 1fr; }
  .assessment-axes { min-height: 320px; }
  .strategy-arrow { min-height: 190px; padding: 22px; gap: 50px; }
  .process-curve ol, .phase-grid { grid-template-columns: 1fr; }
  .circle-shape { width: 88%; min-height: 340px; }
  .component-detail .prose { column-count: 1; }
  .component-continuation { grid-template-columns: 1fr; }
  .continuation-mark { flex-direction: row; justify-content: space-between; gap: 16px; }
  .continuation-mark span { align-self: center; }
  .continuation-mark img { width: 100px; height: 85px; }
  .brain-interlude { grid-template-columns: 1fr 1fr; }
  .brain-interlude img { grid-column: 1 / -1; grid-row: 1; max-height: 300px; }
  .visual-interlude { grid-template-columns: 1fr; }
  .visual-interlude img { max-height: 280px; }
  .ideation-diagram > div, .informed-design > div { flex-wrap: wrap; }
  .options-diagram > div { grid-template-columns: repeat(2, 1fr); }
  .unbundled-grid { grid-template-columns: 1fr; }
  .bundle-diagram { flex-direction: column; }
  .value-columns, .pricing-columns { grid-template-columns: 1fr; }
  .pattern-notes { grid-template-columns: 1fr; }
}

@media (min-width: 651px) and (max-width: 1100px) {
  .name-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .sumario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .component-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .read-progress span { transition: none; }
}

/* Keep every reading surface in the selected theme. Illustrations stay images. */
.book-cover, .quadro-cover, .quadro-title-band, .quadro-contents { background: var(--surface); color: var(--text); }
.quadro-contents nav, .quadro-contents a { color: var(--text); }
.quadro-square { background: var(--surface-alt); }
.faces-grid img, .component-card img, .component-map img, .transition-icons img,
.component-detail header img, .continuation-mark img, .visual-interlude img,
.source-figure img, .source-image img { background: var(--surface); }
.type-opener-dark, .type-opener-gray, .type-opener-light { background: var(--surface-alt); color: var(--text); }
.type-opener-light { background: linear-gradient(135deg, var(--surface-alt), var(--surface)); }
.circle-shape { background: var(--accent-soft); color: var(--text); }

html[data-theme="dark"] .book-cover img,
html[data-theme="dark"] .quadro-art,
html[data-theme="dark"] .quadro-contents img,
html[data-theme="dark"] .faces-grid img,
html[data-theme="dark"] .component-card img,
html[data-theme="dark"] .component-map img,
html[data-theme="dark"] .transition-icons img,
html[data-theme="dark"] .component-detail header img,
html[data-theme="dark"] .continuation-mark img,
html[data-theme="dark"] .visual-interlude img,
html[data-theme="dark"] .brain-interlude img {
  filter: invert(1) grayscale(1);
  mix-blend-mode: screen;
}
html[data-theme="dark"] .source-figure img,
html[data-theme="dark"] .source-image img,
html[data-theme="dark"] .photo-opener img { filter: grayscale(1) brightness(.58) contrast(1.18); }
html[data-theme="dark"] .source-figure img[src$="127.webp"],
html[data-theme="dark"] .source-figure img[src$="128.webp"] {
  filter: invert(1) grayscale(1);
  mix-blend-mode: screen;
}
