/* ==========================================================================
   Kenzie Hart — theme styles (v1.2)
   Slate ink + cool paper, rhodamine accent (chromatogram dye), sky and
   teal pulled from the portrait backdrop. Newsreader + Public Sans.
   ========================================================================== */

:root {
  --ink: #16243a;
  --ink-deep: #0e1828;
  --paper: #f5f7f9;
  --white: #ffffff;
  --line: #dbe2ea;
  --muted: #566679;
  --accent: #b3285c;
  --accent-hover: #951f4b;
  --accent-bright: #ec5b91;
  --accent-soft: #fbe8ef;
  --sky: #dcebf7;
  --teal: #2f6177;
  --on-dark: #c3cedb;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 124px);

  --khb-ink: var(--ink);
  --khb-muted: var(--muted);
  --khb-line: var(--line);
  --khb-wash: var(--paper);
  --khb-accent: var(--accent);
  --khb-accent-soft: var(--accent-soft);
  --khb-font: var(--sans);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 3px; border-radius: 4px; }

.kh-wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.kh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kh-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.kh-skip:focus { top: 12px; }
.kh-icon { flex: none; }

/* Buttons ---------------------------------------------------------------- */
.kh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  background: var(--ink); color: var(--white); text-decoration: none;
  font: 600 1rem/1.2 var(--sans); cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.kh-btn:hover { background: var(--accent); }
.kh-btn:active { transform: translateY(1px); }
.kh-btn-small { padding: 10px 18px; font-size: .9375rem; }
.kh-btn-accent { background: var(--accent); }
.kh-btn-accent:hover { background: var(--accent-hover); }
.kh-btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .32); }
.kh-btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }
.kh-btn-light { background: var(--white); color: var(--ink); }
.kh-btn-light:hover { background: var(--ink); color: var(--white); }

/* Header ----------------------------------------------------------------- */
.kh-header {
  position: sticky; top: 0; z-index: 50; color: var(--white);
  background: rgba(22, 36, 58, .94); backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.kh-header.is-scrolled { border-bottom-color: rgba(255, 255, 255, .08); }
.kh-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.kh-brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.kh-brand-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; letter-spacing: -.01em; }
.kh-brand-cred { font-size: .8125rem; font-weight: 600; color: var(--on-dark); }
.kh-logo { max-height: 44px; width: auto; }
.kh-nav { display: flex; align-items: center; gap: 28px; }
.kh-nav a:not(.kh-btn) { text-decoration: none; font-size: .9375rem; font-weight: 500; color: var(--on-dark); transition: color .15s; }
.kh-nav a:not(.kh-btn):hover { color: var(--white); }
.kh-nav .kh-btn { background: var(--accent); }
.kh-nav .kh-btn:hover { background: var(--accent-hover); }
.kh-menu { display: none; }

@media (max-width: 899px) {
  .kh-menu {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px;
    background: none; border: 0; cursor: pointer; color: var(--white);
  }
  .kh-menu-bars, .kh-menu-bars::before, .kh-menu-bars::after {
    display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform .2s ease, background-color .2s ease;
  }
  .kh-menu-bars { position: relative; }
  .kh-menu-bars::before, .kh-menu-bars::after { content: ""; position: absolute; left: 0; }
  .kh-menu-bars::before { top: -7px; }
  .kh-menu-bars::after { top: 7px; }
  .kh-nav-open .kh-menu-bars { background: transparent; }
  .kh-nav-open .kh-menu-bars::before { transform: translateY(7px) rotate(45deg); }
  .kh-nav-open .kh-menu-bars::after { transform: translateY(-7px) rotate(-45deg); }

  .kh-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, .1);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .kh-nav-open .kh-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .kh-nav a:not(.kh-btn) { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 1.0625rem; color: var(--white); }
  .kh-nav .kh-btn { margin-top: 18px; padding: 15px 24px; }
}

/* Hero ------------------------------------------------------------------- */
.kh-hero {
  position: relative; overflow: hidden; color: var(--white);
  background-color: var(--ink);
  background-image:
    radial-gradient(60% 70% at 85% 25%, rgba(236, 91, 145, .22), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
  padding-top: clamp(36px, 6vw, 80px);
}
.kh-hero-grid { display: grid; gap: 32px; align-items: center; }
.kh-status {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px;
  padding: 7px 14px 7px 12px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px;
  font-size: .875rem; font-weight: 500; color: var(--on-dark); background: rgba(255, 255, 255, .04);
}
.kh-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #46d19a; box-shadow: 0 0 0 4px rgba(70, 209, 154, .18); }
.kh-hero-title {
  font-family: var(--serif); font-weight: 300; font-optical-sizing: auto;
  font-size: clamp(2.6rem, 5.6vw, 4.75rem); line-height: 1.03; letter-spacing: -.022em;
  max-width: 16ch; text-wrap: balance;
}
.kh-hero-intro { margin-top: 24px; max-width: 50ch; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); color: var(--on-dark); }
.kh-hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.kh-hero-facts { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 26px; font-size: .9375rem; color: var(--on-dark); }
.kh-hero-facts li { display: flex; align-items: center; gap: 8px; }
.kh-hero-facts .kh-icon { color: var(--accent-bright); }

/* Portrait */
.kh-hero-portrait { position: relative; order: -1; display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; }
.kh-portrait-frame { position: relative; width: 84px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--teal); box-shadow: 0 0 0 3px var(--accent-bright); }
.kh-portrait-img, .kh-portrait-placeholder { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.kh-portrait-frame .kh-portrait-img { transform: scale(1.55); transform-origin: 50% 32%; }
.kh-portrait-placeholder { display: grid; place-items: center; background: var(--teal); color: var(--white); }
.kh-portrait-placeholder span { font-family: var(--serif); font-weight: 300; font-size: 2rem; }
.kh-float {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  font-size: .8125rem; line-height: 1.35; color: var(--on-dark);
}
.kh-float strong { display: block; color: var(--white); font-weight: 600; font-size: .875rem; }
.kh-float-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex: none; }
.kh-float-b { display: none; }
@media (max-width: 899px) {
  .kh-float-a { grid-column: 2; }
}

@media (min-width: 900px) {
  .kh-hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr); gap: 64px; }
  .kh-hero-portrait { order: 0; display: block; padding: 0 28px 28px 0; }
  .kh-portrait-frame {
    width: 100%; aspect-ratio: 4 / 5; border-radius: 32px; overflow: visible; box-shadow: none; background: transparent;
  }
  .kh-portrait-frame::before {
    content: ""; position: absolute; inset: 28px -28px -28px 28px; border-radius: 32px;
    border: 1.5px solid var(--accent-bright); opacity: .7;
  }
  .kh-portrait-frame .kh-portrait-img, .kh-portrait-frame .kh-portrait-placeholder {
    position: relative; border-radius: 32px; transform: none; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
  }
  .kh-portrait-placeholder span { font-size: clamp(5rem, 9vw, 8rem); }
  .kh-float {
    position: absolute; z-index: 2; max-width: 270px;
    background: var(--white); border: 0; color: var(--muted);
    box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .45);
  }
  .kh-float strong { color: var(--ink); }
  .kh-float-a { top: 10%; left: -48px; }
  .kh-float-b { display: flex; bottom: 14%; right: -8px; }
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .kh-float { animation: kh-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .kh-float-a { animation-delay: .35s; }
  .kh-float-b { animation-delay: .55s; }
}
@keyframes kh-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Chromatogram trace */
.kh-trace { margin-top: clamp(16px, 3vw, 40px); color: var(--accent-bright); }
.kh-plot { position: relative; height: clamp(140px, 17vw, 210px); margin-top: 56px; }
.kh-trace-svg { width: 100%; height: 100%; overflow: visible; }
.kh-trace-line { fill: none; stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(236, 91, 145, .55)); }
.kh-trace-axis, .kh-trace-ticks line { stroke: var(--white); stroke-opacity: .25; stroke-width: 1; vector-effect: non-scaling-stroke; }
.kh-peak {
  position: absolute; transform: translateX(-50%);
  font-size: clamp(.75rem, 1.1vw, .875rem); line-height: 1.25; font-weight: 600; color: var(--white);
  text-align: center; white-space: nowrap; padding-bottom: 14px;
}
.kh-peak::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 10px; background: var(--white); opacity: .45; }
.kh-peak-a { left: 25%; bottom: 67.5%; }
.kh-peak-b { left: 53.33%; bottom: 85.5%; }
.kh-peak-c { left: 78.33%; bottom: 57.5%; }
@media (min-width: 640px) { .kh-peak br { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .kh-trace-svg { clip-path: inset(-20px 100% -20px 0); }
  .kh-trace.is-drawn .kh-trace-svg { clip-path: inset(-20px 0 -20px 0); transition: clip-path 2.4s cubic-bezier(.45, .05, .35, 1); }
  .kh-peak { opacity: 0; translate: 0 6px; }
  .kh-trace.is-drawn .kh-peak { opacity: 1; translate: 0 0; transition: opacity .5s ease, translate .5s ease; }
  .kh-trace.is-drawn .kh-peak-a { transition-delay: .75s; }
  .kh-trace.is-drawn .kh-peak-b { transition-delay: 1.4s; }
  .kh-trace.is-drawn .kh-peak-c { transition-delay: 1.95s; }
}

/* Topic marquee ---------------------------------------------------------- */
.kh-marquee { background: var(--white); border-bottom: 1px solid var(--line); overflow: hidden; }
.kh-marquee-track { display: flex; width: max-content; }
.kh-marquee ul { display: flex; flex: none; }
.kh-marquee li {
  display: flex; align-items: center; gap: 28px; padding: 20px 0 20px 28px; white-space: nowrap;
  font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.625rem); color: var(--ink);
}
.kh-marquee li::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .kh-marquee-track { animation: kh-marquee 48s linear infinite; }
  .kh-marquee:hover .kh-marquee-track { animation-play-state: paused; }
}
@keyframes kh-marquee { to { transform: translateX(-50%); } }

/* Sections --------------------------------------------------------------- */
.kh-section { padding-block: var(--section); }
.kh-section h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08; letter-spacing: -.015em; text-wrap: balance;
}
.kh-section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 56px); }
.kh-section-head p { color: var(--muted); max-width: 56ch; }
@media (min-width: 900px) { .kh-section-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 56px; } }

/* Chips */
.kh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kh-chips li { padding: 6px 12px; border-radius: 999px; font-size: .8125rem; font-weight: 600; background: rgba(255, 255, 255, .75); color: var(--ink); }
.kh-chips-outline li { background: transparent; border: 1px solid var(--line); font-weight: 500; }

/* Bento */
.kh-bento { display: grid; gap: 16px; }
@media (min-width: 700px) {
  .kh-bento { grid-template-columns: 1fr 1fr; }
  .kh-tile-clinical, .kh-tile-photo { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .kh-bento { grid-template-columns: 1.15fr 1fr 1fr; grid-auto-rows: minmax(0, auto); }
  .kh-tile-clinical { grid-column: 1; grid-row: 1 / span 2; }
  .kh-tile-photo { grid-column: 2 / span 2; }
}
.kh-tile { position: relative; border-radius: 26px; padding: clamp(26px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px; }
.kh-tile h3 { font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 1.875rem); line-height: 1.12; letter-spacing: -.01em; }
.kh-tile p { font-size: 1rem; max-width: 40ch; }
.kh-tile .kh-chips { margin-top: auto; padding-top: 14px; }
.kh-tile-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; margin-bottom: 8px; }

.kh-tile-clinical { background: var(--sky); }
.kh-tile-clinical .kh-tile-icon { background: var(--white); color: var(--accent); }
.kh-tile-clinical p { color: #3c4e63; }
.kh-tile-clinical { overflow: hidden; }
.kh-tile-clinical > * { position: relative; }
.kh-tile-clinical::before {
  content: ""; position: absolute; left: 0; right: 0; top: 16%; height: 32%; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200' preserveAspectRatio='none'%3E%3Cpath d='M0 190 H80 C120 190 130 30 160 30 S200 190 240 190 C262 190 268 120 282 120 S300 190 318 190 H400' fill='none' stroke='%23ffffff' stroke-width='3'/%3E%3Cpath d='M0 196 H400' stroke='%23b3285c' stroke-opacity='.25' stroke-width='1'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: .9;
}
@media (max-width: 999px) { .kh-tile-clinical::before { display: none; } }
@media (min-width: 1000px) {
  .kh-tile-clinical { justify-content: flex-end; min-height: 520px; }
  .kh-tile-clinical h3 { font-size: 2.5rem; }
  .kh-tile-clinical .kh-tile-icon { width: 64px; height: 64px; margin-bottom: auto; }
  .kh-tile-clinical .kh-chips { margin-top: 18px; }
}
.kh-tile-metabolic { background: var(--white); border: 1px solid var(--line); }
.kh-tile-metabolic .kh-tile-icon { background: var(--accent-soft); color: var(--accent); }
.kh-tile-metabolic p { color: var(--muted); }
.kh-tile-metabolic .kh-chips li { background: var(--paper); }
.kh-tile-neuro { background: var(--teal); color: var(--white); }
.kh-tile-neuro .kh-tile-icon { background: rgba(255, 255, 255, .12); color: var(--white); }
.kh-tile-neuro p { color: #d5e4ec; }
.kh-tile-neuro .kh-chips li { background: rgba(255, 255, 255, .14); color: var(--white); }

.kh-tile-photo { padding: 0; overflow: hidden; min-height: 300px; background: var(--ink); justify-content: flex-end; }
.kh-tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 30%; }
.kh-tile-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(14, 24, 40, .85)); }
.kh-tile-photo figcaption {
  position: relative; z-index: 1; padding: 26px 30px; max-width: 46ch;
  color: var(--white); font-family: var(--serif); font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.3;
}

/* Booking */
.kh-book { background: var(--ink); color: var(--white); }
.kh-book-head { margin-bottom: clamp(28px, 4vw, 44px); }
.kh-book-title { display: flex; gap: 20px; align-items: center; }
.kh-book-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; flex: none; box-shadow: 0 0 0 3px var(--accent-bright); }
.kh-book h2 { color: var(--white); }
.kh-book-title p { color: var(--on-dark); margin-top: 8px; max-width: 60ch; }
@media (max-width: 599px) { .kh-book-title { flex-direction: column; align-items: flex-start; } }
.kh-book .khb { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); border-color: transparent; }
.kh-booking-fallback { background: var(--white); color: var(--ink); border-radius: 20px; padding: 32px; }
.kh-booking-fallback a { color: var(--accent); font-weight: 600; }

/* How it works */
.kh-how h2 { margin-bottom: clamp(36px, 5vw, 56px); }
.kh-steps { display: grid; gap: 36px; }
@media (min-width: 700px) { .kh-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .kh-steps { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.kh-steps li { position: relative; }
.kh-step-icon {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 20px;
  border-radius: 18px; background: var(--accent-soft); color: var(--accent);
}
.kh-step-num {
  position: absolute; top: -8px; right: -8px; display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--white);
  font-size: .75rem; font-weight: 700; box-shadow: 0 0 0 3px var(--paper);
}
@media (min-width: 1000px) {
  .kh-steps li:not(:last-child)::after {
    content: ""; position: absolute; top: 30px; left: 80px; right: -8px;
    border-top: 2px dashed var(--line);
  }
}
.kh-steps h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; }
.kh-steps p { color: var(--muted); font-size: 1rem; max-width: 30ch; }

/* About */
.kh-about { background: var(--white); }
.kh-about-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .kh-about-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); gap: 72px; align-items: start; } }
.kh-about-text h2 { margin-bottom: 28px; }
.kh-about-text p { max-width: 62ch; font-size: 1.125rem; line-height: 1.7; }
.kh-about-text p + p { margin-top: 1.1em; }
.kh-skills-title { font-size: .9375rem; font-weight: 600; margin: 36px 0 14px; }

.kh-career { background: var(--ink); color: var(--white); border-radius: 28px; padding: clamp(28px, 3.5vw, 40px); }
.kh-career h3 { font-family: var(--serif); font-size: 1.75rem; margin-bottom: 28px; }
.kh-timeline { position: relative; padding-left: 30px; }
.kh-timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: rgba(255, 255, 255, .16); }
.kh-timeline li { position: relative; display: grid; gap: 2px; }
.kh-timeline li + li { margin-top: 26px; }
.kh-timeline li::before {
  content: ""; position: absolute; left: -30px; top: 5px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--on-dark);
}
.kh-timeline li.is-current::before { background: var(--accent-bright); border-color: var(--accent-bright); box-shadow: 0 0 0 5px rgba(236, 91, 145, .22); }
.kh-tl-years { font-size: .8125rem; font-weight: 600; color: var(--accent-bright); }
.kh-timeline strong { font-weight: 600; font-size: 1.0625rem; }
.kh-tl-place { color: var(--on-dark); font-size: .9375rem; }

/* FAQ */
.kh-faq-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .kh-faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; } }
.kh-faq-contact { margin-top: 20px; color: var(--muted); }
.kh-faq-contact a { color: var(--accent); font-weight: 600; }
.kh-faq-list details { border-bottom: 1px solid var(--line); }
.kh-faq-list details:first-child { border-top: 1px solid var(--line); }
.kh-faq-list summary { list-style: none; cursor: pointer; position: relative; padding: 22px 44px 22px 0; font-weight: 600; font-size: 1.0625rem; }
.kh-faq-list summary::-webkit-details-marker { display: none; }
.kh-faq-list summary::before, .kh-faq-list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 2px; margin-top: -1px;
  background: var(--accent); transition: transform .2s ease;
}
.kh-faq-list summary::after { transform: rotate(90deg); }
.kh-faq-list details[open] summary::after { transform: rotate(0deg); }
.kh-faq-list details p { padding: 0 44px 24px 0; color: var(--muted); max-width: 62ch; }

/* Closing band */
.kh-closing { background: var(--accent); color: var(--white); padding-block: clamp(56px, 8vw, 96px); overflow: hidden; }
.kh-closing-inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .kh-closing-inner { grid-template-columns: 1fr auto; gap: 64px; } }
.kh-closing-line { font-family: var(--serif); font-weight: 300; font-size: clamp(1.875rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -.015em; max-width: 20ch; margin-bottom: 28px; }
.kh-peptide { width: min(420px, 100%); }
.kh-peptide svg { width: 100%; overflow: visible; }
.kh-bond { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 3; }
.kh-bead circle { fill: var(--white); }
.kh-bead text { fill: var(--accent); font-family: var(--serif); font-size: 30px; font-weight: 500; text-anchor: middle; }
.kh-peptide figcaption { margin-top: 10px; text-align: center; font-size: .8125rem; color: rgba(255, 255, 255, .8); }

/* Footer */
.kh-footer { background: var(--ink-deep); color: var(--on-dark); padding-block: 56px 40px; font-size: .9375rem; }
.kh-footer a { color: var(--white); }
.kh-footer-inner { display: grid; gap: 24px; }
.kh-footer-name { font-family: var(--serif); font-size: 1.375rem; color: var(--white); margin-bottom: 4px; }
.kh-footer-id p + p { margin-top: 2px; }
.kh-footer-menu { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.kh-disclaimer, .kh-copy { font-size: .8125rem; }
.kh-disclaimer { max-width: 70ch; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); }
@media (min-width: 800px) {
  .kh-footer-inner { grid-template-columns: 1fr auto; }
  .kh-footer-links { justify-self: end; }
  .kh-disclaimer { grid-column: 1 / -1; max-width: none; }
}

/* Inner pages ------------------------------------------------------------ */
.kh-page { padding-block: clamp(40px, 7vw, 88px) var(--section); }
.kh-page-wrap { max-width: calc(760px + var(--gutter) * 2); }
.kh-page-title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.06; letter-spacing: -.02em; margin-bottom: 32px; }
.kh-prose > * + * { margin-top: 1.1em; }
.kh-prose h2 { font-family: var(--serif); font-size: 1.875rem; margin-top: 1.8em; }
.kh-prose h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.6em; }
.kh-prose a { color: var(--accent); }
.kh-prose ul { list-style: disc; padding-left: 1.3em; }
.kh-prose ol { list-style: decimal; padding-left: 1.3em; }
.kh-prose li + li { margin-top: .4em; }
.kh-prose img { border-radius: 16px; }
.kh-page-wrap .khb { margin-top: 32px; }
.kh-post-date { color: var(--muted); font-size: .875rem; }
.kh-post-list li { border-top: 1px solid var(--line); }
.kh-post-list a { display: grid; gap: 4px; padding: 24px 0; text-decoration: none; }
.kh-post-list strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; }
.kh-post-list a:hover strong { color: var(--accent); }
.kh-post-list span:last-child { color: var(--muted); }


/* Blog ------------------------------------------------------------------- */
.kh-nav a[aria-current="page"]:not(.kh-btn) { color: var(--white); }
.kh-faq { background: var(--white); }

.kh-blog-head, .kh-article-head {
  color: var(--white); background-color: var(--ink);
  background-image:
    radial-gradient(50% 80% at 90% 0%, rgba(236, 91, 145, .18), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
}
.kh-blog-head { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.kh-blog-head h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 5.4vw, 4.5rem); line-height: 1.04; letter-spacing: -.02em; }
.kh-blog-head p { margin-top: 18px; max-width: 56ch; color: var(--on-dark); font-size: 1.125rem; }
.kh-cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.kh-cat-nav a {
  padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22);
  font-size: .875rem; font-weight: 600; text-decoration: none; color: var(--on-dark); transition: background-color .15s, color .15s;
}
.kh-cat-nav a:hover { color: var(--white); border-color: rgba(255, 255, 255, .5); }
.kh-cat-nav a[aria-current="page"] { background: var(--white); color: var(--ink); border-color: var(--white); }
.kh-blog-body { padding-block: clamp(40px, 6vw, 72px) var(--section); }

/* Cards */
.kh-card-grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .kh-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .kh-card-grid { grid-template-columns: repeat(3, 1fr); } }
.kh-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.kh-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sky); }
.kh-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.kh-card:hover .kh-card-media img { transform: scale(1.03); }
.kh-card-fallback { display: block; width: 100%; height: 100%; padding: 12% 0 10%; background: var(--sky); }
.kh-card-fallback svg { width: 100%; height: 100%; }
.kh-card-fallback path { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.kh-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 24px; }
.kh-card-cat { align-self: flex-start; font-size: .8125rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.kh-card-title { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; letter-spacing: -.01em; }
.kh-card-title a { text-decoration: none; }
.kh-card-title a:hover { color: var(--accent); }
.kh-card-excerpt { color: var(--muted); font-size: .9688rem; }
.kh-card-meta { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .8125rem; color: var(--muted); }
.kh-card-featured { margin-bottom: 28px; }
@media (min-width: 900px) {
  .kh-card-featured { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .kh-card-featured .kh-card-media { aspect-ratio: auto; min-height: 400px; }
  .kh-card-featured .kh-card-body { justify-content: center; padding: clamp(32px, 4vw, 52px); gap: 14px; }
  .kh-card-featured .kh-card-title { font-size: clamp(2rem, 3vw, 2.625rem); }
  .kh-card-featured .kh-card-excerpt { font-size: 1.0625rem; }
  .kh-card-featured .kh-card-meta { margin-top: 10px; }
}

/* Pagination & empty */
.kh-pagination { margin-top: 48px; }
.kh-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.kh-pagination .page-numbers {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--white); text-decoration: none; font-weight: 600; font-size: .9375rem;
}
.kh-pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--white); }
.kh-pagination a.page-numbers:hover { border-color: var(--ink); }
.kh-empty { text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: 26px; padding: clamp(40px, 6vw, 72px) 24px; }
.kh-empty h2 { font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.25rem); }
.kh-empty p { color: var(--muted); margin: 12px auto 24px; max-width: 46ch; }

/* Homepage section */
.kh-home-blog-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 44px); }

/* Article ----------------------------------------------------------------- */
.kh-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.kh-progress span { display: block; height: 100%; width: 100%; background: var(--accent-bright); transform-origin: 0 50%; transform: scaleX(0); }
.admin-bar .kh-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .kh-progress { top: 46px; } }

.kh-article { background: var(--paper); }
.kh-article-head { padding-block: clamp(28px, 4vw, 44px) clamp(44px, 6vw, 76px); }
.kh-article-head.has-image { padding-bottom: clamp(120px, 13vw, 170px); }
.kh-article-head .kh-wrap > * { max-width: 760px; }
.kh-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .8125rem; color: var(--on-dark); margin-bottom: clamp(28px, 4vw, 44px); }
.kh-crumbs a { text-decoration: none; color: var(--on-dark); }
.kh-crumbs a:hover { color: var(--white); }
.kh-crumbs span[aria-hidden] { opacity: .5; }
.kh-crumb-current { color: var(--white); font-weight: 500; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kh-article-cat {
  display: inline-block; margin-bottom: 16px; padding: 5px 12px; border-radius: 999px;
  background: rgba(236, 91, 145, .16); color: #ffb3cf; font-size: .8125rem; font-weight: 600; text-decoration: none;
}
.kh-article-cat:hover { background: rgba(236, 91, 145, .28); }
.kh-article-head h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.kh-article-dek { margin-top: 18px; color: var(--on-dark); font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); line-height: 1.6; }
.kh-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 28px; font-size: .875rem; color: var(--on-dark); }
.kh-article-meta li { display: flex; align-items: center; gap: 8px; }
.kh-article-meta li:first-child { color: var(--white); font-weight: 600; }
.kh-article-meta .kh-icon { color: var(--accent-bright); }
.kh-meta-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; box-shadow: 0 0 0 2px var(--accent-bright); }

.kh-article-image { margin: calc(-1 * clamp(88px, 10vw, 128px)) 0 0; border-radius: 26px; overflow: hidden; background: var(--ink-deep); box-shadow: 0 40px 80px -40px rgba(14, 24, 40, .55); }
.kh-article-image img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 699px) { .kh-article-image img { aspect-ratio: 16 / 10; } .kh-article-image { border-radius: 18px; } }

/* Three-column layout */
.kh-post-layout { display: grid; gap: 24px; padding-block: clamp(28px, 4vw, 44px) clamp(48px, 7vw, 80px); align-items: start; }
@media (min-width: 1100px) {
  .kh-post-layout { grid-template-columns: 236px minmax(0, 1fr) 272px; gap: 28px; }
  .kh-post-layout.no-toc { grid-template-columns: minmax(0, 1fr) 272px; }
  .kh-toc, .kh-post-side { position: sticky; top: 96px; }
  .admin-bar .kh-toc, .admin-bar .kh-post-side { top: 128px; }
}

/* Contents */
.kh-toc-box { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 18px 16px 14px; }
.kh-toc-box summary {
  display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none;
  font-size: .8125rem; font-weight: 700; color: var(--accent); padding: 2px 4px 12px;
}
.kh-toc-box summary::-webkit-details-marker { display: none; }
.kh-toc-box summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.kh-toc-box[open] summary::after { transform: rotate(-135deg); }
@media (min-width: 1100px) { .kh-toc-box summary { cursor: default; pointer-events: none; } .kh-toc-box summary::after { display: none; } }
.kh-toc-box ol { display: grid; gap: 2px; max-height: calc(100vh - 220px); overflow: auto; }
.kh-toc-box a {
  display: grid; grid-template-columns: 24px 1fr; gap: 6px; padding: 8px 8px; border-radius: 10px;
  font-size: .875rem; line-height: 1.35; text-decoration: none; color: var(--muted); transition: background-color .15s, color .15s;
}
.kh-toc-box a:hover { background: var(--paper); color: var(--ink); }
.kh-toc-num { font-size: .75rem; font-weight: 600; color: #9aa7b6; padding-top: 1px; }
.kh-toc-box a.is-active { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.kh-toc-box a.is-active .kh-toc-num { color: var(--accent); }

/* Article card */
.kh-post-card { background: var(--white); border: 1px solid var(--line); border-radius: 26px; padding: clamp(24px, 4.5vw, 56px); min-width: 0; }
.kh-article-body { font-size: 1.125rem; line-height: 1.78; max-width: 68ch; }
.kh-article-body > p:first-child { font-size: 1.1875rem; color: #24344a; }
.kh-article-body h2 {
  font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.125rem); line-height: 1.15; letter-spacing: -.01em;
  margin-top: 1.9em; padding-top: 1.4em; border-top: 1px solid var(--line); scroll-margin-top: 100px;
}
.kh-article-body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.kh-article-body h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.6em; scroll-margin-top: 100px; }
.kh-article-body ul li::marker { color: var(--accent); }
.kh-article-body ol li::marker { color: var(--accent); font-weight: 600; }
.kh-article-body img { border-radius: 16px; height: auto; }
.kh-article-body figure { margin: 1.6em 0; }
.kh-article-body figcaption { font-size: .875rem; color: var(--muted); margin-top: 8px; text-align: left; }
.kh-article-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: 1.4rem; line-height: 1.4; }
.kh-article-body code { background: var(--paper); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.kh-article-body table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9688rem; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.kh-article-body thead th { background: var(--paper); font-weight: 600; }
.kh-article-body th, .kh-article-body td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.kh-article-body tr:last-child td { border-bottom: 0; }
.kh-article-body .wp-block-table { overflow-x: auto; margin: 1.6em 0; }
.kh-article-note { margin-top: 44px; padding: 16px 20px; border-radius: 14px; background: var(--sky); color: #3c4e63; font-size: .9375rem; max-width: 68ch; }
.kh-article-tags { margin-top: 24px; }
.kh-article-tags a { text-decoration: none; }
.kh-author-box { margin-top: 32px; display: flex; gap: 20px; align-items: flex-start; padding: clamp(20px, 3vw, 28px); background: var(--paper); border-radius: 20px; max-width: 68ch; }
.kh-author-avatar { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; flex: none; }
.kh-author-name { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 4px; }
.kh-author-box p:not(.kh-author-name) { color: var(--muted); font-size: .9688rem; margin-bottom: 10px; }
@media (max-width: 559px) { .kh-author-box { flex-direction: column; } }

/* Booking card */
.kh-side-cta { background: var(--ink); color: var(--white); border-radius: 22px; padding: 26px 24px; position: relative; overflow: hidden; }
.kh-side-cta::before { content: ""; position: absolute; inset: auto -40px -60px auto; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(closest-side, rgba(236, 91, 145, .35), transparent); }
.kh-side-cta > * { position: relative; }
.kh-side-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; box-shadow: 0 0 0 2px var(--accent-bright); margin-bottom: 16px; }
.kh-side-title { font-family: var(--serif); font-size: 1.375rem; line-height: 1.2; margin-bottom: 8px; }
.kh-side-cta p:not(.kh-side-title) { color: var(--on-dark); font-size: .9375rem; margin-bottom: 20px; }
.kh-side-cta .kh-btn { width: 100%; }
.kh-side-link { display: block; margin-top: 14px; text-align: center; font-size: .875rem; color: var(--on-dark); text-decoration: none; }
.kh-side-link:hover { color: var(--white); }

/* Newer / older */
.kh-post-nav { display: grid; gap: 16px; padding-bottom: clamp(48px, 7vw, 80px); }
@media (min-width: 700px) { .kh-post-nav { grid-template-columns: 1fr 1fr; } .kh-post-nav .is-older:only-child { grid-column: 2; } }
.kh-post-nav-card { display: grid; gap: 4px; padding: 20px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; transition: border-color .15s; }
.kh-post-nav-card:hover { border-color: var(--accent); }
.kh-post-nav-card span { font-size: .75rem; font-weight: 700; color: var(--accent); }
.kh-post-nav-card strong { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; line-height: 1.25; }
.kh-post-nav-card.is-older { text-align: right; }
.kh-post-nav-card.is-newer span::before { content: "← "; }
.kh-post-nav-card.is-older span::after { content: " →"; }
.kh-related { background: var(--white); border-top: 1px solid var(--line); padding-block: clamp(56px, 8vw, 96px); }
.kh-related h2 { font-family: var(--serif); font-size: clamp(1.875rem, 3.2vw, 2.5rem); margin-bottom: clamp(24px, 3vw, 36px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kh-marquee { overflow-x: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Homepage blog intro: paragraph + link stacked in the right column */
.kh-home-blog-lede {
	display: grid;
	gap: 14px;
	justify-items: start;
}

.kh-home-blog-lede p {
	margin: 0;
}

/* Footer address */
.kh-footer-address {
	font-style: normal;
	margin-top: 10px;
	line-height: 1.55;
}

.kh-footer-address + p {
	margin-top: 10px;
}
