:root {
  --paper: #f7f3ea;
  --paper-2: #efe8d8;
  --card: #fffdf8;
  --ink: #1b1c21;
  --ink-2: #2c2e36;
  --muted: #5f6169;
  --line: #e3dccb;
  --gold: #c79a3b;
  --peach: #f2b38b;
  --sky: #a9cce6;
  --sage: #b9c9ae;

  --accent: #b07d1e;
  --accent-soft: #f3e6c4;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(27, 28, 33, 0.04), 0 12px 32px -12px rgba(27, 28, 33, 0.18);
}

[data-site="me"] { --accent: #2f6f9f; --accent-soft: #dcebf6; }
[data-site="books"] { --accent: #c4672f; --accent-soft: #fbe3d2; }
[data-site="blogs"] { --accent: #567a48; --accent-soft: #e2ebdb; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.1rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
section { scroll-margin-top: 84px; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section.alt { background: var(--paper-2); }
.section.dark { background: var(--ink); color: #f1ece0; }
.section.dark .muted { color: #b9b4a6; }
.eyebrow { display: inline-block; font-family: var(--sans); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.section.dark .eyebrow { color: var(--peach); }
.lede { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--ink-2); max-width: 46rem; }
.section.dark .lede { color: #e5dfd0; }
.section-head { max-width: 46rem; margin-bottom: 2.6rem; }
.center { text-align: center; margin-inline: auto; }

/* ───────── header ───────── */
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { text-decoration: none; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.logo-word { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.logo-4 { color: var(--gold); }
.logo-tag { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a:not(.btn) { text-decoration: none; padding: 0.45rem 0.8rem; border-radius: 99px; font-size: 0.95rem; color: var(--ink-2); }
.nav a:not(.btn):hover { background: var(--paper-2); }
.nav a.active { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.nav-cta { margin-left: 0.5rem; }
.nav-toggle, .burger { display: none; }

/* ───────── buttons ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font: inherit; font-weight: 600; font-size: 0.98rem; padding: 0.85rem 1.4rem; border-radius: 99px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.88rem; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { box-shadow: 0 8px 20px -8px rgba(27, 28, 33, 0.6); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.dark .btn-line { border-color: #f1ece0; color: #f1ece0; }
.dark .btn-line:hover { background: #f1ece0; color: var(--ink); }
.dark .btn-ink { background: #f1ece0; color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 0.88rem; color: var(--accent); text-decoration: underline; cursor: pointer; }

/* ───────── hero ───────── */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: min(780px, 90vw); aspect-ratio: 1; z-index: 0; background:
  radial-gradient(closest-side at 62% 38%, rgba(169, 204, 230, 0.85), transparent 70%),
  radial-gradient(closest-side at 38% 66%, rgba(242, 179, 139, 0.75), transparent 72%),
  radial-gradient(closest-side at 55% 60%, rgba(231, 194, 122, 0.55), transparent 70%);
  filter: blur(18px); }
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 3rem; align-items: center; }
.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 40rem; margin-top: 2rem; }
.path-card { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow); transition: transform 0.15s; }
.path-card:hover { transform: translateY(-3px); }
.path-card small { display: block; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }
.path-card strong { font-family: var(--serif); font-size: 1.15rem; }

/* ───────── cards & grids ───────── */
.grid { display: grid; gap: 1.25rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card .num { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--accent); margin-bottom: 0.6rem; display: block; }
.dark .card { background: #24262d; border-color: #34363f; box-shadow: none; }
.tint { background: var(--accent-soft); border-color: transparent; }
.pillar { padding: 2.2rem; border-radius: 24px; position: relative; overflow: hidden; }
.pillar h3 { font-size: 1.8rem; }
.pillar.p1 { background: linear-gradient(160deg, #fffdf8 20%, #f4e4bd); border: 1px solid var(--line); }
.pillar.p2 { background: linear-gradient(160deg, #fffdf8 20%, #d9eaf5); border: 1px solid var(--line); }
.pillar .tag { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.pillar ul { margin: 1rem 0 0; }
.pillar li { margin: 0.35rem 0; }

.dir-card { display: flex; flex-direction: column; text-decoration: none; gap: 0.4rem; min-height: 240px; transition: transform 0.15s; }
.dir-card:hover { transform: translateY(-4px); }
.dir-card .host { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; color: var(--accent); }
.dir-card .go { margin-top: auto; font-weight: 600; }
.dir-card .dot { width: 44px; height: 44px; border-radius: 50%; margin-bottom: 0.8rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 0.9rem; }
.dark .stat span { color: #b9b4a6; }
.strip { padding: 2.2rem 0; border-block: 1px solid var(--line); background: var(--card); }

/* ───────── portrait placeholder ───────── */
.portrait { aspect-ratio: 4/5; border-radius: 28px; background:
  radial-gradient(closest-side at 70% 28%, rgba(169, 204, 230, 0.9), transparent 70%),
  radial-gradient(closest-side at 30% 75%, rgba(242, 179, 139, 0.85), transparent 72%),
  linear-gradient(160deg, #fffdf8, #f0e6d0);
  border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; text-align: center; padding: 1rem; position: relative; }
.portrait b { font-family: var(--serif); font-size: 5rem; letter-spacing: -0.04em; color: color-mix(in srgb, var(--ink) 80%, transparent); }
.portrait span { position: absolute; bottom: 1rem; left: 0; right: 0; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ───────── timeline ───────── */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--peach), var(--sky)); }
.timeline > li { position: relative; padding: 0 0 2.4rem 2.6rem; }
.timeline > li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 4px solid var(--accent); }
.tl-meta { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.tl-org { font-family: var(--serif); font-size: 1.5rem; margin: 0.15rem 0 0.1rem; }
.tl-role { font-weight: 600; margin-bottom: 0.7rem; }
.origin { border-left: 3px solid var(--accent); padding-left: 1rem; color: var(--ink-2); font-style: italic; margin: 0.8rem 0; }

.metric-card { display: flex; flex-direction: column; gap: 0.35rem; }
.metric-card .m { font-family: var(--serif); font-size: 2rem; color: var(--accent); line-height: 1; }
.metric-card .n { font-weight: 700; }
.metric-card .d { font-size: 0.93rem; color: var(--muted); }
details.more { margin-top: 1.4rem; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--accent); }
details.more ul { margin-top: 0.8rem; columns: 2; column-gap: 2rem; }
details.more li { margin-bottom: 0.45rem; break-inside: avoid; font-size: 0.95rem; }

.story { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; }
.story .yr { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--accent); }

/* ───────── agent ───────── */
.agent { background: var(--card); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow), 0 40px 80px -40px color-mix(in srgb, var(--accent) 45%, transparent); overflow: hidden; }
.agent-in { padding: clamp(1.4rem, 3vw, 2.4rem); }
.agent-head h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); max-width: 40rem; }
.agent textarea, .lead-form input, .lead-form select, .lead-form textarea, .inline-email { width: 100%; font: inherit; font-size: 1rem; padding: 0.9rem 1rem; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); }
.agent textarea { resize: vertical; min-height: 150px; }
.agent textarea:focus, .lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus, .inline-email:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.lens-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.pill { font: inherit; font-size: 0.9rem; padding: 0.45rem 0.95rem; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.pill:hover { border-color: var(--ink); }
.pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.agent-foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 0.8rem; }
.examples { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; align-items: center; }
.agent-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.inline-email { width: 220px; padding: 0.7rem 1rem; }
.agent-out { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--accent-soft), var(--card) 14rem); padding: clamp(1.4rem, 3vw, 2.4rem); scroll-margin-top: 80px; }
.out-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.out-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.2rem; }
.chip { display: inline-block; background: var(--ink); color: #fff; font-size: 0.78rem; font-weight: 600; padding: 0.3rem 0.8rem; border-radius: 99px; margin-right: 0.4rem; }
.chip.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.fit { font-size: 1.08rem; margin: 1.2rem 0; max-width: 54rem; }
.tabs { display: flex; gap: 0.3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.3rem; overflow-x: auto; }
.tab { font: inherit; font-weight: 600; background: none; border: 0; padding: 0.7rem 1rem; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tab.on { color: var(--ink); border-bottom-color: var(--accent); }
.brief { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.2rem, 3vw, 2.2rem); font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif; font-size: 0.97rem; line-height: 1.55; max-width: 860px; }
.brief h4.b-name { font-family: inherit; font-size: 1.6rem; margin: 0; }
.brief .b-head { font-weight: 700; margin: 0.1rem 0; }
.brief .b-contact { color: var(--muted); }
.brief h5 { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid var(--ink); margin: 1.4rem 0 0.5rem; padding-bottom: 0.2rem; }
.brief p { margin: 0 0 0.5rem; }
.brief ul { margin: 0.3rem 0 0.8rem; padding-left: 1.2rem; }
.brief li { margin-bottom: 0.25rem; }
.b-role-t { font-weight: 700; margin: 0.8rem 0 0 !important; }
.b-dates { font-style: italic; color: var(--muted); margin: 0 0 0.2rem !important; }
.referral pre { white-space: pre-wrap; font-family: inherit; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; font-size: 1rem; line-height: 1.6; max-width: 760px; margin: 0 0 1rem; }
.why { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; max-width: 900px; }
.why li { display: grid; grid-template-columns: 210px 24px 1fr; gap: 0.6rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; }
.why-req { font-weight: 700; color: var(--accent); }
.why-ev { font-size: 0.95rem; }
.toast { position: fixed; bottom: 1.4rem; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 0.7rem 1.2rem; border-radius: 99px; opacity: 0; pointer-events: none; transition: all 0.25s; font-size: 0.92rem; z-index: 99; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
#print-area { display: none; }

/* ───────── forms ───────── */
.lead-form { display: grid; gap: 0.9rem; }
.lead-form label { display: grid; gap: 0.3rem; }
.lead-form label > span { font-size: 0.85rem; font-weight: 600; }
.lead-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.lead-form.compact { grid-template-columns: 1fr auto; align-items: start; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-err { color: #b3261e; font-size: 0.92rem; margin: 0.3rem 0 0; grid-column: 1/-1; }
.form-done { background: var(--accent-soft); border-radius: 14px; padding: 1rem 1.2rem; font-weight: 600; }
.tick { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.8rem; margin-right: 0.4rem; }
.dark .lead-form input { background: #1b1c21; border-color: #3b3d46; color: #f1ece0; }

/* ───────── book ───────── */
.cover { border-radius: 6px 14px 14px 6px; box-shadow: -10px 10px 0 -2px rgba(27, 28, 33, 0.08), 0 30px 60px -20px rgba(27, 28, 33, 0.5); transform: perspective(1200px) rotateY(-9deg) rotate(1deg); transition: transform 0.4s; background: var(--paper-2); }
.cover:hover { transform: perspective(1200px) rotateY(-2deg); }
.cover-wrap { position: relative; max-width: 380px; margin-inline: auto; }
.cover-wrap::after { content: ""; position: absolute; left: 3px; top: 0; bottom: 0; width: 14px; background: linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent); border-radius: 6px 0 0 6px; pointer-events: none; transform: perspective(1200px) rotateY(-9deg) rotate(1deg); }
.book-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; }
.quote { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; border-left: 4px solid var(--accent); padding-left: 1.4rem; margin: 1.5rem 0; }
.phase { display: grid; gap: 0.3rem; }
.phase .ph { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.chapters { display: grid; gap: 0.7rem; margin-top: 2rem; }
.chapters details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0.2rem 1.2rem; }
.chapters summary { cursor: pointer; padding: 0.95rem 0; font-weight: 600; display: flex; gap: 1rem; align-items: baseline; list-style-position: outside; }
.chapters summary .cn { font-family: var(--serif); color: var(--accent); min-width: 2.2rem; }
.chapters details p { margin: 0 0 1rem 3.2rem; color: var(--muted); }
.buybox { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.25rem; }
.price { font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.badge { display: inline-block; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 99px; background: var(--accent-soft); color: var(--ink); }
.shelf { border: 2px dashed var(--line); border-radius: var(--radius); min-height: 220px; display: grid; place-items: center; text-align: center; padding: 1.4rem; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 1rem 0 0; }
.checks li { padding-left: 1.7rem; position: relative; margin: 0.5rem 0; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* ───────── blog ───────── */
.cats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; }
.cats a { text-decoration: none; padding: 0.45rem 1rem; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font-size: 0.92rem; }
.cats a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; text-decoration: none; padding: clamp(1.6rem, 3vw, 2.6rem); border-radius: 28px; background: linear-gradient(135deg, #fffdf8 30%, var(--accent-soft)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.featured h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.feed { display: grid; gap: 0; margin-top: 1rem; }
.feed a { display: grid; grid-template-columns: 140px 1fr; gap: 1.5rem; text-decoration: none; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.feed a:hover h3 { color: var(--accent); }
.feed h3 { margin-bottom: 0.3rem; transition: color 0.15s; }
.meta { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.04em; }
.meta .cat { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.article { font-size: 1.14rem; line-height: 1.75; }
.article h2 { font-size: 1.7rem; margin-top: 2.4rem; }
.article blockquote { font-family: var(--serif); font-size: 1.5rem; line-height: 1.35; margin: 2rem 0; padding-left: 1.4rem; border-left: 4px solid var(--accent); }
.callout { background: var(--accent-soft); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin: 2.4rem 0; font-size: 1rem; line-height: 1.55; }
.callout a { font-weight: 700; }
.author { display: grid; grid-template-columns: 72px 1fr; gap: 1.2rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin-top: 3rem; font-size: 1rem; line-height: 1.5; }
.related { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.15rem; margin-bottom: 0.8rem; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.related a { text-decoration: none; }
.related a:hover { color: var(--accent); }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--peach), var(--sky)); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.4rem; }

/* ───────── footer ───────── */
.footer { background: var(--ink); color: #d9d3c4; padding: 4rem 0 1.4rem; margin-top: 0; }
.footer .logo-word { color: #f7f3ea; }
.footer-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.footer h4 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #9d9889; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 0.4rem 0; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-tag { font-family: var(--serif); font-size: 1.3rem; margin: 1rem 0 0.2rem; color: #f7f3ea; }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid #34363f; margin-top: 3rem; padding-top: 1.2rem; font-size: 0.85rem; color: #9d9889; }

/* ───────── responsive ───────── */
@media (max-width: 980px) {
  .hero-grid, .book-hero, .featured, .buybox { grid-template-columns: 1fr; }
  .g4, .stats { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: 1fr; }
  .hero-grid .portrait, .book-hero .cover-wrap { max-width: 320px; }
  .why li { grid-template-columns: 1fr; }
  .why-arrow { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .burger { display: grid; gap: 5px; cursor: pointer; padding: 10px; }
  .burger span { width: 24px; height: 2px; background: var(--ink); display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 0.8rem 1.25rem 1.2rem; display: none; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav a:not(.btn) { padding: 0.8rem 0.4rem; }
  .nav-cta { margin: 0.5rem 0 0; }
  .g2, .dual, .lead-form .row2, .footer-in, .lead-form.compact { grid-template-columns: 1fr; }
  .feed a { grid-template-columns: 1fr; gap: 0.4rem; }
  details.more ul { columns: 1; }
  .inline-email { width: 100%; }
  .agent-actions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}


/* ───────── safety nets ───────── */
.shell { overflow-x: clip; }
.grid > *, .hero-grid > *, .book-hero > *, .featured > *, .buybox > * { min-width: 0; }
.footer .muted { color: #9d9889; }

/* ───────── static-site additions ───────── */
[hidden] { display: none !important; }

/* ───────── Fit & Refer Agent: verdict, CV, letter, referral ───────── */
#print-area { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 0.8rem; }
.field-row label { display: grid; gap: 0.3rem; }
.field-row label span { font-size: 0.85rem; font-weight: 600; }
.field-row input { width: 100%; font: inherit; padding: 0.8rem 1rem; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.verdict { border-radius: 16px; padding: 1.1rem 1.3rem; margin: 1.2rem 0 0.8rem; border: 1.5px solid; }
.verdict p { margin: 0.4rem 0 0; }
.verdict.ok { background: #eef7ec; border-color: #7aa872; }
.verdict.no { background: #fdf0ee; border-color: #c97b72; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
.gaps { font-size: 0.93rem; background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 0.7rem 1rem; margin-bottom: 0.8rem; }
.pane { margin-top: 0.8rem; }
.pane[hidden] { display: none !important; }
.cv { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.2rem, 3vw, 2.4rem); font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif; font-size: 0.98rem; line-height: 1.55; max-width: 860px; margin-top: 0.8rem; }
.cv h1 { font-family: inherit; font-size: 1.9rem; margin: 0; letter-spacing: 0; }
.cv .cv-head { font-weight: 700; margin: 0.2rem 0 0; }
.cv .cv-contact { color: var(--muted); margin: 0.2rem 0 0; }
.cv h2 { font-family: inherit; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid var(--ink); margin: 1.3rem 0 0.5rem; padding-bottom: 0.2rem; font-weight: 700; }
.cv p { margin: 0 0 0.5rem; }
.cv ul { margin: 0.3rem 0 0.6rem; padding-left: 1.2rem; }
.cv li { margin-bottom: 0.25rem; }
.cv-role { margin-top: 0.8rem; }
.cv-role-t { font-weight: 700; margin: 0 !important; }
.cv-dates { font-style: italic; color: var(--muted); margin: 0 0 0.2rem !important; }
textarea.letter { width: 100%; font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif; font-size: 0.98rem; line-height: 1.6; padding: 1.2rem; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); min-height: 360px; resize: vertical; }
.lead-form label.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
.lead-form label.check input { width: auto; margin-top: 0.3rem; }
#ref-status { margin: 0.6rem 0 0; }
@media (max-width: 760px) { .field-row { grid-template-columns: 1fr; } }

/* Print: only the CV is printed */
@media print {
  body.printing-cv * { visibility: hidden; }
  body.printing-cv #cv-print, body.printing-cv #cv-print * { visibility: visible; }
  body.printing-cv #cv-print { position: absolute; left: 0; top: 0; width: 100%; max-width: none; border: 0; border-radius: 0; padding: 0; font-size: 10.5pt; line-height: 1.4; color: #000; background: #fff; }
  body.printing-cv #cv-print h1 { font-size: 20pt; }
  body.printing-cv #cv-print h2 { font-size: 10pt; margin-top: 12pt; }
  body.printing-cv #cv-print ul { margin: 2pt 0 6pt; }
  body.printing-cv #cv-print li { margin-bottom: 1pt; }
  @page { margin: 16mm; }
}

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
