/* =========================================================
   Cadelon — Shared Brand Stylesheet
   "From Portfolio to Profession"
   ========================================================= */

:root {
  /* Brand palette — locked */
  --c-cream:     #F3ECE4;
  --c-greyband:  #E0DFDB;
  --c-peach:     #DDBAA7;
  --c-peach-btn: #D5A893;
  --c-charcoal:  #363435;
  --c-muted:     #A09F9B;
  --c-ink:       #1A1A1A;
  --c-white:     #FFFFFF;
  --c-line:      rgba(26, 26, 26, 0.08);

  /* Type */
  --f-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --f-body:    "Inter", "Calibri", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rhythm */
  --maxw: 1240px;
  --pad-x: clamp(24px, 5vw, 80px);
  --section-y: clamp(72px, 9vw, 128px);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

/* ---------- Typography ---------- */
.h-display, h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  margin: 0;
  line-height: 1.1;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 600; }
h2 { font-size: clamp(32px, 4.4vw, 54px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); }
.eyebrow {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-charcoal);
}
.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--c-charcoal);
  max-width: 60ch;
  text-wrap: pretty;
}
.muted { color: var(--c-muted); }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
.section { padding-block: var(--section-y); }
.section--cream    { background: var(--c-cream); }
.section--grey     { background: var(--c-greyband); }
.section--peach    { background: var(--c-peach); }
.section--charcoal { background: var(--c-charcoal); color: var(--c-cream); }
.section--charcoal h1, .section--charcoal h2, .section--charcoal h3 { color: var(--c-cream); }

.row { display: flex; gap: 24px; }
.grid { display: grid; gap: 24px; }

/* ---------- Pill (peach phase marker) ---------- */
.pill {
  display: inline-flex; align-items: center;
  background: var(--c-peach);
  color: var(--c-charcoal);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
}
.pill--ink { background: var(--c-charcoal); color: var(--c-cream); letter-spacing: 0.06em; text-transform: none; padding: 8px 18px; font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--c-peach-btn); color: var(--c-charcoal); }
.btn-primary:hover { background: #C89A85; }
.btn-dark { background: var(--c-charcoal); color: var(--c-cream); }
.btn-dark:hover { background: #1f1d1e; }
.btn-ghost { background: transparent; color: var(--c-ink); border-color: var(--c-charcoal); }
.btn-ghost:hover { background: var(--c-charcoal); color: var(--c-cream); }
.btn-peach-outline { background: transparent; color: var(--c-peach); border-color: var(--c-peach); }
.btn-peach-outline:hover { background: var(--c-peach); color: var(--c-charcoal); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--c-cream) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
  max-width: var(--maxw); margin: 0 auto;
  padding-inline: var(--pad-x);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand .mark { width: 34px; height: 34px; }
.brand .word {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--c-ink);
}
.nav { display: flex; align-items: center; gap: 18px; }
.nav a {
  font-size: 15px; color: var(--c-charcoal);
  position: relative; padding: 6px 0;
}
.nav a.active, .nav a:hover { color: var(--c-ink); }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--c-peach-btn); border-radius: 2px;
}

/* mobile nav toggle */
.nav-toggle { display: none; width: 38px; height: 38px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--c-ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--c-ink); }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; }
  .site-header.is-open .nav {
    display: flex; flex-direction: column; gap: 18px;
    align-items: flex-start;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--c-cream); padding: 24px var(--pad-x);
    border-bottom: 1px solid var(--c-line);
  }
  .nav .btn { align-self: flex-start; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-charcoal); color: var(--c-cream);
  padding-block: 64px 28px;
}
.site-footer .top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--maxw); margin: 0 auto;
  padding-inline: var(--pad-x);
}
.site-footer h4 { font-family: var(--f-body); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-peach); margin: 0 0 18px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.site-footer ul a { color: rgba(243,236,228,0.7); font-size: 14px; }
.site-footer ul a:hover { color: var(--c-cream); }
.site-footer .brand .word { color: var(--c-cream); }
.site-footer .tag { color: var(--c-peach); font-style: italic; font-family: var(--f-display); font-size: 16px; margin-top: 8px; }
.site-footer .bottom {
  max-width: var(--maxw); margin: 48px auto 0;
  padding: 24px var(--pad-x) 0;
  border-top: 1px solid rgba(243,236,228,0.12);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px 24px;
  font-size: 13px; color: rgba(243,236,228,0.55);
}
.footer-legal {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: flex-end; gap: 10px 12px;
}
.footer-legal a {
  color: rgba(243,236,228,0.75); text-decoration: none;
  white-space: nowrap;
}
.footer-legal a:hover { color: var(--c-cream); }
.footer-legal span[aria-hidden="true"] {
  color: rgba(243,236,228,0.35); user-select: none;
}
.socials { display: flex; gap: 14px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(243,236,228,0.18);
  color: rgba(243,236,228,0.8);
}
.socials a:hover { background: var(--c-peach); color: var(--c-charcoal); border-color: var(--c-peach); }
@media (max-width: 880px) {
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .site-footer .bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-legal { justify-content: flex-start; }
}

/* ---------- Blueprint grid backdrop ---------- */
.blueprint {
  position: relative;
  background-image:
    linear-gradient(to right, rgba(26,26,26,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26,26,26,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}
.blueprint--margin::before, .blueprint--margin::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(26,26,26,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26,26,26,0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}
.blueprint--margin::before { left: 0; mask-image: linear-gradient(to right, black, transparent); }
.blueprint--margin::after  { right: 0; mask-image: linear-gradient(to left,  black, transparent); }

/* ---------- Card ---------- */
.card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 1px 0 rgba(26,26,26,0.04), 0 12px 40px -28px rgba(26,26,26,0.18);
  border: 1px solid rgba(26,26,26,0.04);
}
.card--peach { background: var(--c-peach); }
.card--soft  { background: color-mix(in oklab, var(--c-peach) 25%, var(--c-cream)); }

/* ---------- Image placeholder (striped) ---------- */
.imgph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg,
      rgba(213,168,147,0.18) 0 14px,
      rgba(243,236,228,0.0) 14px 28px),
    var(--c-greyband);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-charcoal);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 16px;
}
.imgph::before {
  content: ""; position: absolute; inset: 14px;
  border: 1px dashed rgba(54,52,53,0.25);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}

/* ---------- Decorative line-art accent underline ---------- */
.swoosh {
  display: block; width: 140px; height: 8px; margin: 14px auto 0;
  background: var(--c-peach-btn);
  border-radius: 4px;
  transform: skewX(-12deg);
  opacity: 0.85;
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-32 { margin-top: 32px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.stack { display: grid; gap: 14px; }

/* ---------- Scroll-reveal (subtle) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-dir="left"]  { transform: translateX(-32px); }
.reveal[data-dir="right"] { transform: translateX(32px);  }
.reveal[data-dir="scale"] { transform: scale(.94); }
.reveal[data-dir="left"].in,
.reveal[data-dir="right"].in,
.reveal[data-dir="scale"].in { transform: translateX(0) translateY(0) scale(1); }

.reveal[data-delay="1"] { transition-delay: .06s; }
.reveal[data-delay="2"] { transition-delay: .12s; }
.reveal[data-delay="3"] { transition-delay: .18s; }
.reveal[data-delay="4"] { transition-delay: .24s; }
.reveal[data-delay="5"] { transition-delay: .30s; }
.reveal[data-delay="6"] { transition-delay: .36s; }

/* Header shrink on scroll */
.site-header.scrolled .inner { height: 64px; }
.site-header.scrolled { box-shadow: 0 1px 0 var(--c-line); }
.site-header .inner { transition: height .25s ease; }

/* Nav link underline grow on hover */
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: -2px;
  height: 2px; background: var(--c-peach-btn); border-radius: 2px;
  transition: left .25s ease, right .25s ease;
}
.nav a:not(.btn):hover::after { left: 0; right: 0; }
.nav a.active::after { left: 0 !important; right: 0 !important; }

/* Button arrow nudge on hover */
.btn .arrow,
.btn::after {
  transition: transform .25s ease;
  display: inline-block;
}
.btn:hover .arrow { transform: translateX(4px); }

/* Card lift */
.card { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 0 rgba(26,26,26,0.04), 0 24px 50px -28px rgba(26,26,26,0.22); }

/* Image placeholder shimmer */
.imgph::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(243,236,228,0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: imgph-shimmer 4.5s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}
@keyframes imgph-shimmer {
  0%, 100% { transform: translateX(-100%); }
  50%      { transform: translateX(100%); }
}

/* Pill markers — pop in */
.pill { transition: transform .25s ease; transform-origin: left center; }
.reveal .pill { animation: pill-pop .55s ease .35s both; }
@keyframes pill-pop {
  0%   { transform: scale(0.6); opacity: 0; }
  60%  { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); }
}

/* Marquee for trust logos */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: inline-flex; gap: 64px; align-items: center; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Phase art subtle float */
.phase-art .imgph { animation: phase-float 7s ease-in-out infinite; }
.phase-row--reverse .phase-art .imgph { animation-delay: -3.5s; }
@keyframes phase-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Count-up stat hook */
[data-count] { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .imgph::after, .marquee-track, .phase-art .imgph { animation: none !important; }
}

/* ---------- AI Chatbot ---------- */
#chat-launcher {
  position: fixed; right: 24px; bottom: 24px; z-index: 990;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--c-peach-btn); color: var(--c-charcoal);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 36px -10px rgba(54,52,53,0.45), 0 2px 6px rgba(0,0,0,0.12);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  border: none;
}
#chat-launcher:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 20px 44px -10px rgba(54,52,53,0.55); }
#chat-launcher.hidden { opacity: 0; transform: scale(0.6); pointer-events: none; }
#chat-launcher .dot {
  position: absolute; top: 8px; right: 8px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #2ecc71; border: 2px solid var(--c-cream);
  animation: chat-pulse 2s ease-in-out infinite;
}
@keyframes chat-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }

#chat-panel {
  position: fixed; right: 24px; bottom: 24px; z-index: 991;
  width: min(380px, calc(100vw - 32px));
  height: min(580px, calc(100vh - 60px));
  display: flex; flex-direction: column;
  background: var(--c-cream);
  border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(26,26,26,0.08);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.35), 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(20px) scale(0.96); transform-origin: bottom right;
  opacity: 0; pointer-events: none;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), opacity .25s ease;
}
#chat-panel.open { transform: none; opacity: 1; pointer-events: auto; }

.chat-head {
  background: var(--c-charcoal); color: var(--c-cream);
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-shrink: 0;
}
.chat-head-l { display: flex; align-items: center; gap: 12px; }
.chat-head-r { display: flex; align-items: center; gap: 6px; }
.chat-head-r button {
  width: 30px; height: 30px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(243,236,228,0.7); transition: background .15s ease, color .15s ease;
}
.chat-head-r button:hover { background: rgba(243,236,228,0.1); color: var(--c-cream); }

.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--c-peach-btn); color: var(--c-charcoal);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 600; font-size: 18px;
  flex-shrink: 0;
}
.chat-avatar.sm { width: 28px; height: 28px; font-size: 14px; }

.chat-title { font-family: var(--f-display); font-size: 16px; font-weight: 600; line-height: 1.1; }
.chat-sub   { font-size: 11px; color: rgba(243,236,228,0.6); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.chat-sub .online { width: 7px; height: 7px; border-radius: 50%; background: #2ecc71; }

.chat-body {
  flex: 1; overflow-y: auto;
  padding: 18px 14px;
  display: flex; flex-direction: column; gap: 12px;
  background:
    radial-gradient(circle at 1px 1px, rgba(26,26,26,0.04) 1px, transparent 1px) 0 0 / 18px 18px,
    var(--c-cream);
}
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(26,26,26,0.15); border-radius: 3px; }

.chat-msg { display: flex; gap: 8px; align-items: flex-end; animation: chat-in .25s ease both; }
.chat-msg--user { justify-content: flex-end; }
.chat-msg--assistant { justify-content: flex-start; }
.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px; line-height: 1.5;
  color: var(--c-ink);
  background: var(--c-white);
  border: 1px solid rgba(26,26,26,0.06);
  word-wrap: break-word;
}
.chat-msg--user .chat-bubble {
  background: var(--c-peach-btn); color: var(--c-charcoal); border-color: transparent;
  border-bottom-right-radius: 4px;
}
.chat-msg--assistant .chat-bubble { border-bottom-left-radius: 4px; }
.chat-bubble a { color: var(--c-peach-btn); text-decoration: underline; text-underline-offset: 2px; }
.chat-msg--user .chat-bubble a { color: var(--c-charcoal); }

.chat-typing .chat-bubble { padding: 14px 16px; display: inline-flex; gap: 4px; }
.chat-typing .chat-bubble span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--c-muted);
  animation: chat-blink 1.2s ease-in-out infinite;
}
.chat-typing .chat-bubble span:nth-child(2) { animation-delay: .15s; }
.chat-typing .chat-bubble span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-blink { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes chat-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.chat-suggestions {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 14px 0; flex-shrink: 0;
}
.chat-suggestions button {
  font-size: 12px; padding: 7px 12px;
  border: 1px solid rgba(26,26,26,0.12); border-radius: 999px;
  color: var(--c-charcoal); background: var(--c-white);
  transition: background .15s ease, border-color .15s ease;
}
.chat-suggestions button:hover { background: var(--c-peach); border-color: transparent; }

.chat-input {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px 14px; flex-shrink: 0;
  border-top: 1px solid rgba(26,26,26,0.06);
  background: var(--c-cream);
}
.chat-input input {
  flex: 1; font: inherit; font-size: 14px;
  background: var(--c-white);
  border: 1px solid rgba(26,26,26,0.1);
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--c-ink); outline: none;
  transition: border-color .15s ease;
}
.chat-input input:focus { border-color: var(--c-peach-btn); }
.chat-input button[type=submit] {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--c-charcoal); color: var(--c-cream);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, transform .15s ease;
}
.chat-input button[type=submit]:hover { background: var(--c-peach-btn); color: var(--c-charcoal); transform: translateY(-1px); }

/* Lift the Tweaks panel above the chat when both are visible */
#tweaks-panel { bottom: 100px !important; }

@media (max-width: 480px) {
  #chat-panel {
    right: 8px; left: 8px; bottom: 8px;
    width: auto; height: 75vh;
  }
  #chat-launcher { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

/* ---------- Article / Blog post pages ---------- */
.crumbs {
  padding: 20px 0;
  font-size: 13px; color: var(--c-muted);
  border-bottom: 1px solid var(--c-line);
}
.crumbs .container { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.crumbs a { color: var(--c-muted); transition: color .15s ease; }
.crumbs a:hover { color: var(--c-ink); }
.crumbs [aria-current] { color: var(--c-ink); }

.article-head { padding: clamp(48px, 6vw, 80px) 0 clamp(24px, 3vw, 40px); }
.article-head h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.1; }
.article-head h1 em { font-style: italic; color: var(--c-peach-btn); }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c-muted); flex-wrap: wrap; }
.article-byline { justify-content: center; margin: 36px auto 0; }

.article-cover { padding-bottom: clamp(40px, 5vw, 64px); }
.article-cover .imgph { border-radius: 18px; }

.article-body {
  display: grid; grid-template-columns: 220px 1fr;
  gap: clamp(40px, 6vw, 80px); align-items: start;
  padding-bottom: clamp(48px, 6vw, 80px);
}
.toc {
  position: sticky; top: 100px;
  font-size: 13px;
  padding: 22px 20px;
  background: var(--c-cream);
  border: 1px solid rgba(26,26,26,0.06);
  border-radius: 12px;
}
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: t; display: grid; gap: 8px; }
.toc li { counter-increment: t; position: relative; padding-left: 22px; }
.toc li::before {
  content: counter(t, decimal-leading-zero);
  position: absolute; left: 0; top: 0; color: var(--c-peach-btn); font-family: var(--f-display);
}
.toc a { color: var(--c-charcoal); line-height: 1.4; display: block; }
.toc a:hover { color: var(--c-ink); }

.prose { max-width: 68ch; }
.prose .lede {
  font-family: var(--f-display);
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.5; color: var(--c-charcoal);
  margin-bottom: 36px;
}
.prose .lede em { font-style: italic; color: var(--c-peach-btn); }
.prose h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  margin: 56px 0 16px;
  scroll-margin-top: 100px;
}
.prose p { font-size: 17px; line-height: 1.75; color: var(--c-charcoal); margin: 0 0 18px; }
.prose ul, .prose ol { font-size: 17px; line-height: 1.75; color: var(--c-charcoal); padding-left: 24px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--c-peach-btn); }
.prose strong { color: var(--c-ink); }
.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--c-greyband); padding: 2px 8px; border-radius: 4px;
  font-size: 0.92em;
}
.prose blockquote {
  border-left: 3px solid var(--c-peach-btn);
  padding: 8px 0 8px 24px; margin: 32px 0;
}
.prose blockquote p {
  font-family: var(--f-display); font-style: italic;
  font-size: clamp(20px, 1.9vw, 26px); line-height: 1.45;
  color: var(--c-ink);
}
.prose blockquote cite { display: block; margin-top: 8px; font-style: normal; font-size: 13px; color: var(--c-muted); }
.prose .callout {
  background: var(--c-peach);
  padding: 22px 26px;
  border-radius: 14px;
  margin: 28px 0;
}
.prose .callout p { margin: 6px 0 0; font-size: 16px; color: var(--c-charcoal); }
.prose .closing {
  font-family: var(--f-display); font-style: italic;
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1.45; color: var(--c-ink);
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
  margin-top: 32px;
}

.article-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
  flex-wrap: wrap; gap: 18px;
}
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.share { display: flex; align-items: center; gap: 12px; }
.share a {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-greyband); color: var(--c-charcoal);
  transition: background .15s ease;
}
.share a:hover { background: var(--c-peach); }

.author-bio {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 24px; align-items: start;
  padding: 36px 0;
}
.b-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 600; color: var(--c-charcoal);
  flex-shrink: 0;
}
.b-avatar.lg { width: 80px; height: 80px; font-size: 36px; }
.byline { display: flex; align-items: center; gap: 12px; }
.bcat {
  padding: 8px 18px; border-radius: 999px;
  background: transparent; border: 1px solid rgba(26,26,26,0.12);
  font-size: 13px; color: var(--c-charcoal);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  text-decoration: none;
}
.bcat:hover { background: var(--c-cream); border-color: var(--c-charcoal); }

.post-card {
  background: var(--c-white); border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(26,26,26,0.04);
  transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -22px rgba(0,0,0,0.2); }
.post-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.post-card__img { aspect-ratio: 16/10; border-radius: 0; border-bottom: 1px solid rgba(26,26,26,0.04); }
.post-card__img::before { display: none; }
.post-card__body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.post-card h3 { line-height: 1.2; }

@media (max-width: 900px) {
  .article-body { grid-template-columns: 1fr; }
  .toc { position: static; }
  .author-bio { grid-template-columns: 1fr; }
}

/* Tweak hooks (overridable via [data-theme] on <html>) */
[data-display="cormorant"] { --f-display: "Cormorant Garamond", Georgia, serif; }
[data-display="georgia"]   { --f-display: Georgia, "Times New Roman", serif; }
[data-display="playfair"]  { --f-display: "Playfair Display", Georgia, serif; }
[data-density="cozy"]      { --section-y: clamp(56px, 7vw, 96px); }
[data-density="airy"]      { --section-y: clamp(96px, 11vw, 160px); }

/* =========================================================
   GLASS / PREMIUM LAYER
   Frosted-glass surfaces layered over a soft warm ambient
   field. Built on existing brand tokens — no new hues.
   ========================================================= */
:root {
  --glass-blur: 18px;
  --glass-sat: 155%;
  --glass-fill: linear-gradient(150deg, rgba(255,255,255,0.62), rgba(255,255,255,0.30));
  --glass-fill-soft: linear-gradient(150deg, rgba(255,255,255,0.48), rgba(255,255,255,0.20));
  --glass-stroke: rgba(255,255,255,0.55);
  --glass-highlight: inset 0 1px 0 rgba(255,255,255,0.85);
  --glass-shadow: 0 22px 60px -32px rgba(54,52,53,0.42), 0 4px 14px -10px rgba(54,52,53,0.18);
  /* On dark sections */
  --glass-fill-dk: linear-gradient(150deg, rgba(243,236,228,0.14), rgba(243,236,228,0.05));
  --glass-stroke-dk: rgba(243,236,228,0.20);
  --glass-highlight-dk: inset 0 1px 0 rgba(243,236,228,0.28);
}

/* ---- Ambient warm field so the blur has something to refract ---- */
body {
  background:
    radial-gradient(1200px 760px at 8% -6%, rgba(221,186,167,0.30), transparent 58%),
    radial-gradient(1000px 720px at 98% 4%, rgba(213,168,147,0.22), transparent 55%),
    radial-gradient(900px 900px at 60% 116%, rgba(221,186,167,0.18), transparent 60%),
    var(--c-cream);
  background-attachment: fixed;
}
/* Let the ambient field read through the light bands */
.section--cream {
  background:
    radial-gradient(820px 460px at 86% 0%, rgba(221,186,167,0.20), transparent 60%),
    radial-gradient(680px 520px at 6% 100%, rgba(213,168,147,0.14), transparent 62%),
    color-mix(in oklab, var(--c-cream) 60%, transparent);
}
.section--grey {
  background:
    radial-gradient(760px 420px at 92% 8%, rgba(213,168,147,0.16), transparent 60%),
    color-mix(in oklab, var(--c-greyband) 70%, transparent);
}

/* ---- Header: stronger frosted bar ---- */
.site-header {
  background: linear-gradient(180deg, rgba(243,236,228,0.74), rgba(243,236,228,0.52));
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.45);
  box-shadow: 0 10px 34px -26px rgba(54,52,53,0.5);
}
.site-header.scrolled { box-shadow: 0 12px 38px -24px rgba(54,52,53,0.55); }
@media (max-width: 1120px) {
  .site-header.is-open .nav {
    background: linear-gradient(180deg, rgba(243,236,228,0.86), rgba(243,236,228,0.72));
    -webkit-backdrop-filter: saturate(160%) blur(20px);
    backdrop-filter: saturate(160%) blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.4);
  }
}

/* ---- Cards ---- */
.card {
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-stroke);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
}
.card:hover {
  box-shadow: var(--glass-highlight), 0 30px 70px -30px rgba(54,52,53,0.5), 0 6px 18px -10px rgba(54,52,53,0.2);
}
.card--peach {
  background: linear-gradient(150deg, rgba(221,186,167,0.62), rgba(221,186,167,0.34));
  border-color: rgba(255,255,255,0.5);
}
.card--soft {
  background: linear-gradient(150deg, rgba(221,186,167,0.34), rgba(255,255,255,0.28));
}
/* Service-card icon chips */
.card > div[style*="border-radius:10px"],
.card > div[style*="border-radius: 10px"] {
  background: linear-gradient(150deg, rgba(255,255,255,0.7), rgba(255,255,255,0.32)) !important;
  border: 1px solid rgba(255,255,255,0.6);
}

/* ---- Pills ---- */
.pill {
  background: linear-gradient(150deg, rgba(221,186,167,0.62), rgba(221,186,167,0.42));
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  backdrop-filter: blur(8px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.pill--ink {
  background: linear-gradient(150deg, rgba(54,52,53,0.82), rgba(54,52,53,0.66));
  border-color: rgba(243,236,228,0.18);
  box-shadow: inset 0 1px 0 rgba(243,236,228,0.18);
}

/* ---- Ghost button → glass; keep primary/dark solid ---- */
.btn-ghost {
  background: linear-gradient(150deg, rgba(255,255,255,0.5), rgba(255,255,255,0.22));
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  border-color: rgba(54,52,53,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

/* ---- Image placeholders / frames ---- */
.imgph {
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: var(--glass-highlight), 0 26px 64px -34px rgba(54,52,53,0.4);
}

/* ---- Blog: post cards, TOC, callout ---- */
.post-card {
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-stroke);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
}
.post-card:hover { box-shadow: var(--glass-highlight), 0 30px 70px -30px rgba(54,52,53,0.5); }
.toc {
  background: var(--glass-fill-soft);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-stroke);
  box-shadow: var(--glass-highlight), 0 18px 50px -34px rgba(54,52,53,0.35);
}
.prose .callout {
  background: linear-gradient(150deg, rgba(221,186,167,0.55), rgba(221,186,167,0.30));
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: var(--glass-highlight);
}

/* ---- Chat widget ---- */
#chat-panel {
  background: linear-gradient(160deg, rgba(243,236,228,0.82), rgba(243,236,228,0.66));
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: var(--glass-highlight), 0 40px 90px -30px rgba(0,0,0,0.4);
}
.chat-input, .chat-body {
  background: transparent;
}
.chat-bubble {
  background: linear-gradient(150deg, rgba(255,255,255,0.7), rgba(255,255,255,0.42));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.6);
}
.chat-launcher, #chat-launcher {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 16px 40px -10px rgba(54,52,53,0.5);
}

/* ---- Glass on dark sections (objection cards & similar) ---- */
.section--charcoal [style*="rgba(243,236,228,0.06)"] {
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: var(--glass-highlight-dk);
}

/* ---- Graceful fallback where backdrop-filter is unsupported ---- */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .card, .post-card { background: rgba(255,255,255,0.92); }
  .toc { background: rgba(255,255,255,0.88); }
  .site-header { background: rgba(243,236,228,0.96); }
  #chat-panel { background: var(--c-cream); }
  .btn-ghost { background: transparent; }
}
