/* ============================================================
   MIND YOUR MIND · Dr. Kemberly E. McKenzie — design system
   Theme-driven: [data-theme] on <html> recolors the wordmark,
   accents, and surfaces as the visitor moves through the page.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* brand constants */
  --purple: #8e24a0;
  --teal: #1faec0;
  --spring: #54b686;
  --spring-bright: #6fe2a8;
  --forest: #1d6b56;
  --gold: #c79a4b;
  --gold-soft: #e0b46a;
  --pink: #e98fb1;
  --ice: #bee9e8;
  --summit: #03ad24;
  --ink: #0b0e16;
  --paper: #f4f1ea;

  /* theme variables (hero defaults) — light editorial system.
     Every section tints the same warm paper rather than swapping to a
     different brightness, so the page reads as one continuous surface. */
  --bg: #f4f1ea;
  --text: #16121c;
  --muted: #6b6275;
  --accent: #7d1f8e;
  --accent-2: #10808f;
  --hot: #a8792c;
  --card: #ffffff;
  --card-line: rgba(22,18,28,.10);
  --shadow: 0 18px 44px -22px rgba(22,18,28,.30);
  --shadow-lift: 0 30px 64px -26px rgba(22,18,28,.38);
  --lg-mind: linear-gradient(115deg, #1a9d86, #0f6f7c);
  --lg-your: linear-gradient(180deg, #b8862f, #96661f);
  --lg-mind2: linear-gradient(115deg, #5b3a78, #7d5a9c);
  --lg-kem: linear-gradient(115deg, #b8862f, #d8a54a);

  --font-serif: "Bodoni Moda", "Didot", serif;
  --font-soft: "Fraunces", Georgia, serif;
  --font-sans: "Outfit", system-ui, sans-serif;
  --head-h: 72px;
}

html[data-theme="coaching"] {
  --bg: #f6f2f5; --accent: #9c2aab; --accent-2: #10808f; --hot: #a8792c;
  --lg-mind: linear-gradient(115deg, #a8329e, #6d1d7e);
  --lg-your: linear-gradient(180deg, #b8862f, #96661f);
  --lg-mind2: linear-gradient(115deg, #64407f, #8a63a6);
  --lg-kem: linear-gradient(115deg, #b8862f, #d8a54a);
}
html[data-theme="mym"] {
  --bg: #eef4ec; --text: #10231a; --muted: #55705f;
  --accent: #12894a; --accent-2: #0d6b52; --hot: #a8792c;
  --card-line: rgba(16,35,26,.12);
  --lg-mind: linear-gradient(115deg, #1a9d5c, #0e7048);
  --lg-your: linear-gradient(180deg, #b8862f, #96661f);
  --lg-mind2: linear-gradient(115deg, #5e9a7c, #8fc2a6);
  --lg-kem: linear-gradient(115deg, #b8862f, #d8a54a);
}
/* Night Vision keeps a deep band on purpose — the section is about seeing in
   the dark, so it reads as a deliberate editorial inversion, not a leftover. */
html[data-theme="night"] {
  --bg: #101a26; --text: #e8f1f8; --muted: #93a9bd;
  --accent: #7cc0e8; --accent-2: #2c5f80; --hot: #cfe6f2;
  --card: rgba(255,255,255,.05); --card-line: rgba(255,255,255,.14);
  --shadow: 0 18px 44px -22px rgba(0,0,0,.6);
  --shadow-lift: 0 30px 64px -26px rgba(0,0,0,.7);
  --lg-mind: linear-gradient(115deg, #cfe6f2, #7cc0e8);
  --lg-your: linear-gradient(180deg, #d8a54a, #b8862f);
  --lg-mind2: linear-gradient(115deg, #ffffff, #b8d6ea);
  --lg-kem: linear-gradient(115deg, #d8a54a, #f0c674);
}
html[data-theme="shop"] {
  --bg: #f1f3ee; --accent: #2c7a56; --accent-2: #14543f; --hot: #a8792c;
  --lg-mind: linear-gradient(115deg, #2c8a5e, #16603f);
  --lg-your: linear-gradient(180deg, #b8862f, #96661f);
  --lg-mind2: linear-gradient(115deg, #6f9a82, #9fc2ad);
  --lg-kem: linear-gradient(115deg, #b8862f, #d8a54a);
}
html[data-theme="missions"] {
  --bg: #f8f1e8; --text: #241710; --muted: #7a6152;
  --accent: #b4622a; --accent-2: #b2426b; --hot: #a8792c;
  --card-line: rgba(36,23,16,.12);
  --lg-mind: linear-gradient(115deg, #c46b2c, #96481c);
  --lg-your: linear-gradient(180deg, #b8862f, #96661f);
  --lg-mind2: linear-gradient(115deg, #b08a72, #d3b29a);
  --lg-kem: linear-gradient(115deg, #b8862f, #d8a54a);
}
html[data-theme="connect"] {
  --bg: #f3f0f6; --accent: #7d1f8e; --accent-2: #10808f; --hot: #a8792c;
  --lg-mind: linear-gradient(115deg, #10808f, #0d5f74);
  --lg-your: linear-gradient(180deg, #b8862f, #96661f);
  --lg-mind2: linear-gradient(115deg, #5b3a78, #7d5a9c);
  --lg-kem: linear-gradient(115deg, #b8862f, #d8a54a);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 1.1s ease, color 1.1s ease;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--ink); }

#gl {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -2; display: block;
}
.grain {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: .035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0) } 10% { transform: translate(-5%,-8%) }
  30% { transform: translate(4%,-3%) } 50% { transform: translate(-6%,6%) }
  70% { transform: translate(6%,3%) } 90% { transform: translate(-3%,8%) }
}

/* ---------------------------------------------------------- lockup */
.lockup { position: relative; display: block; }
.lockup .lk {
  position: absolute; display: block;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  transition: background 1.1s ease, filter 1.1s ease;
}
.lk-mind  { -webkit-mask-image: url(../assets/logo/mind.png);  mask-image: url(../assets/logo/mind.png);
  left: .575%; top: 0; width: 99.4%; height: 52.5%; background: var(--lg-mind); }
.lk-your  { -webkit-mask-image: url(../assets/logo/your.png);  mask-image: url(../assets/logo/your.png);
  left: 0; top: 55.5%; width: 11.9%; height: 44.5%; background: var(--lg-your); }
.lk-mind2 { -webkit-mask-image: url(../assets/logo/mind2.png); mask-image: url(../assets/logo/mind2.png);
  left: 12.5%; top: 53.6%; width: 86.6%; height: 44.7%; background: var(--lg-mind2); }
.lk-kem   { -webkit-mask-image: url(../assets/logo/kem-script.png); mask-image: url(../assets/logo/kem-script.png);
  background: var(--lg-kem); }

.lockup--head { width: 58px; aspect-ratio: 1043/731; }
.lockup--head .lk-kem { display: none; }

/* --sign variants reserve ~30% extra height below the wordmark so the
   brush "Kem" signs underneath instead of colliding with MIND */
.lockup--sign { aspect-ratio: 1043/950; }
.lockup--sign .lk-mind  { top: 0;     height: 40.4%; }
.lockup--sign .lk-your  { top: 42.7%; height: 34.2%; }
.lockup--sign .lk-mind2 { top: 41.2%; height: 34.4%; }
.lockup--sign .lk-kem {
  left: 41%; top: 74%; width: 44%; aspect-ratio: 1200/1088;
  height: auto; transform: rotate(-4deg);
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.55));
}
.lockup--hero { width: min(540px, 84vw); aspect-ratio: 1043/1060; }
.lockup--hero .lk-mind { height: 36.2%; }
.lockup--hero .lk-your { top: 38.3%; height: 30.7%; }
.lockup--hero .lk-mind2 { top: 36.9%; height: 30.8%; }
.lockup--hero .lk-kem {
  left: 33%; top: 69%; width: 34%; transform: none;
  animation: sign-glow 5s ease-in-out infinite;
}
@keyframes sign-glow {
  0%,100% { filter: drop-shadow(0 6px 24px rgba(0,0,0,.45)); }
  50% { filter: drop-shadow(0 6px 34px rgba(224,180,106,.35)); }
}

.lockup--foot { width: min(260px, 60vw); flex-shrink: 0; }

/* ---------------------------------------------------------- header */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--head-h);
  display: flex; align-items: center; gap: clamp(14px, 1.6vw, 28px);
  padding: 0 clamp(16px, 4vw, 44px);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-line);
  transition: background 1.1s ease, border-color 1.1s ease;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; text-decoration: none; color: var(--text); }
.brand-name { font-size: 11px; letter-spacing: .22em; font-weight: 500; white-space: nowrap; }
.nav { display: flex; gap: clamp(8px, 1vw, 18px); margin-left: auto; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 13px; letter-spacing: .08em;
  font-weight: 400; position: relative; padding: 6px 2px; transition: color .3s;
  white-space: nowrap;
}
.head-cta { flex-shrink: 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--accent); transition: right .35s ease;
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a:hover::after, .nav a.active::after { right: 0; }
.head-cta { white-space: nowrap; }

.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 10px; margin-left: auto; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }
.mobile-nav {
  position: fixed; inset: var(--head-h) 0 0 0; z-index: 49;
  background: color-mix(in srgb, var(--bg) 92%, black);
  display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 8px;
  overflow-y: auto; overscroll-behavior: contain; padding: 20px 16px;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a { flex-shrink: 0; color: var(--text); text-decoration: none; font-size: 22px; padding: 10px; font-family: var(--font-soft); }

/* ---------------------------------------------------------- shared */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.wrap.narrow { max-width: 860px; }
.sec { position: relative; padding: clamp(84px, 12vh, 150px) 0; scroll-margin-top: var(--head-h); }
.center { text-align: center; }
.cols { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.cols--rev { grid-template-columns: 1.15fr 1fr; }

.kicker {
  font-size: 12px; letter-spacing: .34em; font-weight: 600; color: var(--accent);
  margin-bottom: 18px; transition: color 1.1s ease;
}
.h-serif {
  font-family: var(--font-serif); font-weight: 500; font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.04; letter-spacing: -.015em; margin-bottom: 26px;
  text-wrap: balance;
}
/* headings inside a two-column band sit on a ~600px measure — the full
   display size shreds into ragged orphan lines there */
.cols .h-serif { font-size: clamp(30px, 3.7vw, 46px); line-height: 1.08; }
.h-serif em { font-family: var(--font-soft); font-style: italic; font-weight: 340; color: var(--hot); transition: color 1.1s ease; }
.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 720px; margin: 0 auto 26px; }
.sec p + p { margin-top: 14px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; letter-spacing: .28em; font-weight: 600; color: var(--text);
  border: 1px solid var(--card-line); border-radius: 99px; padding: 9px 18px;
  background: var(--card); margin-bottom: 30px; box-shadow: var(--shadow);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: 99px; text-decoration: none;
  font-size: 13.5px; font-weight: 600; letter-spacing: .1em;
  transition: transform .25s ease, box-shadow .25s ease, background .3s, color .3s, border-color .3s;
  border: 1px solid transparent;
}
.btn--small { padding: 10px 20px; font-size: 12px; }
.btn--solid { background: linear-gradient(115deg, var(--accent), var(--accent-2)); color: #fff; }
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn--ghost { border-color: var(--card-line); color: var(--text); background: var(--card); box-shadow: var(--shadow); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--line { border-color: color-mix(in srgb, var(--text) 26%, transparent); color: var(--text); }
.btn--line:hover { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.cta-row.center { justify-content: center; }

.link-arrow { color: var(--accent); text-decoration: none; font-weight: 500; letter-spacing: .06em; }
.link-arrow::after { content: " →"; transition: margin-left .25s; }
.link-arrow:hover::after { margin-left: 6px; }

.chip {
  display: inline-block; padding: 6px 14px; border-radius: 99px; font-size: 12px;
  letter-spacing: .14em; font-weight: 600; border: 1px solid var(--card-line); background: var(--card);
}
.chip--gold { color: var(--hot); font-family: var(--font-soft); font-size: 15px; letter-spacing: .03em; }
.chip--live { color: #c8324a; border-color: rgba(200,50,74,.35); animation: pulse 2s infinite; }

/* reveals — only hidden once JS is present to reveal them again */
html:not(.no-js) [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
html:not(.no-js) [data-reveal].in { opacity: 1; transform: none; }

/* ---------------------------------------------------------- hero */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: var(--head-h); }
.hero-inner {
  flex: 1; display: grid; grid-template-columns: 1.25fr 1fr; align-items: center;
  max-width: 1180px; margin: 0 auto; padding: clamp(22px, 4vh, 40px) clamp(18px, 4vw, 40px) 0; width: 100%;
}
.hero-copy { padding-bottom: 4vh; }
.hero .lockup--hero { width: min(540px, 84vw, 64svh); }
.hero-sub { margin-top: clamp(18px, 3vh, 30px); font-size: clamp(15px, 1.7vw, 19px); color: var(--muted); }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-roles { font-size: .82em; letter-spacing: .08em; }
.hero-photo { position: relative; isolation: isolate; align-self: end; margin: 0; }
.hero-cutout { display: block; filter: drop-shadow(0 18px 24px rgba(22,18,28,.14)); }
.hero-photo img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: 76svh; margin-inline: auto;
  /* Follow the skirt hem across the small white patch below it. */
  clip-path: polygon(
    0 0, 100% 0, 100% 100%, 54.5% 100%, 54.5% 94.2%,
    52% 94.25%, 49% 94.47%, 42% 94.47%, 39.7% 94.3%, 39.4% 100%, 0 100%
  );
}
/* The arch frame that sat behind the full-length portrait was removed at
   Dr. Kem's request (Nov 22): it cropped across her instead of framing her. */

/* ---------------------------------------------------------- about */
.about-photo { position: relative; margin: 0; }
.about .about-photo { width: min(100%, 420px); justify-self: center; }
.photo-frame {
  border-radius: 22px; overflow: hidden; border: 1px solid var(--card-line);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, transparent), var(--card) 62%);
  padding: 18px 18px 0; box-shadow: var(--shadow);
}
.photo-frame img { width: 100%; display: block; }
.about .photo-frame img { height: auto; max-height: none; }
.about-photo .chip { position: absolute; bottom: 18px; right: -12px; box-shadow: var(--shadow-lift); background: var(--card); }
.motto {
  font-family: var(--font-soft); font-style: italic; font-weight: 340;
  font-size: clamp(17px, 1.9vw, 21px); color: var(--hot);
  border-left: 2px solid var(--gold); padding: 6px 0 6px 22px; margin: 26px 0;
}
.thankful-note { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }
.nowrap { white-space: nowrap; }
.thankful-note a { color: var(--accent); }

/* ---------------------------------------------------------- coaching */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 48px 0 34px; }
.card {
  position: relative; border-radius: 20px; padding: 34px 28px 30px;
  background: var(--card); border: 1px solid var(--card-line);
  display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow);
  transition: transform .35s ease, border-color .35s, box-shadow .35s;
  will-change: transform;
}
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: var(--shadow-lift); }
.card--feature { border-color: color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: var(--shadow-lift); }
.card--feature::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.card-num { font-family: var(--font-serif); font-size: 40px; color: color-mix(in srgb, var(--accent) 75%, transparent); line-height: 1; }
.card h3 { font-family: var(--font-serif); font-weight: 600; font-size: 23px; letter-spacing: .02em; }
.card-tag { font-size: 11px; letter-spacing: .26em; color: var(--hot); font-weight: 700; }
.card p { color: var(--muted); font-size: 14.5px; }
.price { margin-top: auto; padding-top: 10px; }
.price strong { font-family: var(--font-serif); font-size: 38px; font-weight: 600; color: var(--text); }
.price span { color: var(--muted); font-size: 13px; letter-spacing: .06em; margin-left: 8px; }
.card .btn { align-self: flex-start; }

/* ---------------------------------------------------------- mym */
.mym-photo { margin: 0; position: relative; }
/* The summit crop keeps its brand-green field — treated as an intentional
   colour block, with the outer edge feathered so it sits in the section
   instead of reading as a hard photo crop. */
.mym-photo img {
  width: 100%; border-radius: 22px; display: block;
  max-height: 76svh; object-fit: cover; object-position: 50% 20%;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7);
  -webkit-mask-image: radial-gradient(115% 108% at 50% 42%, #000 62%, transparent 99%);
  mask-image: radial-gradient(115% 108% at 50% 42%, #000 62%, transparent 99%);
}
.ticks { list-style: none; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.ticks li { position: relative; padding-left: 26px; color: var(--muted); font-size: 14.5px; }
.ticks li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); }
.mym-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 60px; }
.event-card {
  border-radius: 20px; padding: 30px 26px; background: var(--card);
  border: 1px solid var(--card-line); display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow); transition: transform .35s ease, border-color .35s, box-shadow .35s;
}
.event-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: var(--shadow-lift); }
.event-when { font-size: 11px; letter-spacing: .26em; color: var(--accent); font-weight: 700; }
.event-card h3 { font-family: var(--font-serif); font-size: 22px; font-weight: 600; line-height: 1.25; }
.event-card .year { font-family: var(--font-soft); font-style: italic; font-weight: 340; color: var(--hot); }
.event-card p { color: var(--muted); font-size: 14px; }
.event-card .btn { align-self: flex-start; margin-top: auto; }
.event-card--gold .event-when { color: var(--gold-soft); }
.event-meta { font-size: 12.5px; letter-spacing: .08em; color: var(--hot); }
.countdown { font-weight: 700; }

/* ---------------------------------------------------------- night */
.night-cols { grid-template-columns: .85fr 1.35fr; align-items: center; }
.h-night { max-width: 940px; margin-inline: auto; }
.h-night .nv {
  font-style: normal; font-family: var(--font-serif); letter-spacing: .12em; color: var(--ice);
  text-shadow: 0 0 30px rgba(190,233,232,.45), 0 0 80px rgba(95,168,211,.3);
}
.night-photo { position: relative; margin: 0; }
.night-photo img {
  width: 100%; max-width: 360px; max-height: 60svh; object-fit: contain;
  margin: 0 auto; display: block; filter: drop-shadow(0 20px 50px rgba(0,0,0,.55));
}
.night-glow {
  position: absolute; left: 50%; top: 58%; width: 220px; height: 220px; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(190,233,232,.5), rgba(95,168,211,.15) 45%, transparent 70%);
  filter: blur(6px); pointer-events: none; mix-blend-mode: screen;
  animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: .75; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.12); } }
.book-title { font-family: var(--font-serif); font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: .04em; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.book-title--kem { margin-top: 34px; }
.manuscript {
  display: flex; align-items: center; gap: clamp(18px, 3vw, 26px);
  margin-top: 34px; padding: 20px;
  border: 1px solid rgba(190,233,232,.22); border-radius: 14px;
  background: rgba(255,255,255,.05);
}
.manuscript img {
  width: clamp(76px, 8vw, 100px); height: auto; flex: none;
  border-radius: 3px; box-shadow: 0 10px 24px rgba(0,0,0,.3);
}
.manuscript .book-title { line-height: 1.2; }
.manuscript .book-title a {
  color: #e8f1f8; text-decoration-color: #7cc0e8;
  text-decoration-thickness: 1px; text-underline-offset: .18em;
}
.manuscript .book-title a:hover { color: #bee9e8; }
.manuscript .book-sub { margin-bottom: 0; }
.amazon-badge { font-family: var(--font-sans); font-size: 10px; letter-spacing: .22em; color: var(--ink); background: var(--gold-soft); border-radius: 99px; padding: 5px 12px; font-weight: 800; }
.book-sub { color: var(--hot); font-family: var(--font-soft); font-size: 17px; margin: 6px 0 12px; }
.night-mocks { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 4vw, 50px); margin-top: 70px; }
.night-mocks img { max-height: 300px; width: auto; filter: drop-shadow(0 24px 44px rgba(0,0,0,.7)); }
.float-a { animation: floaty 7s ease-in-out infinite; }
.float-b { animation: floaty 8s ease-in-out 1s infinite; }
.float-c { animation: floaty 6.5s ease-in-out .5s infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-16px) } }

/* ---------------------------------------------------------- shop */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 48px 0 30px; }
.product {
  border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid var(--card-line);
  text-decoration: none; color: var(--text); display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: transform .35s ease, border-color .35s, box-shadow .35s;
}
.product:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: var(--shadow-lift); }
/* apparel ships as transparent cutouts, book covers as full-bleed art */
.product img {
  width: 100%; aspect-ratio: 4/4.6; object-fit: contain; padding: 26px;
  transition: transform .6s ease;
  /* tight and low: a wide soft shadow reads as a halo on a white card */
  filter: drop-shadow(0 10px 12px rgba(22,18,28,.20));
}
.product--cover img { object-fit: cover; padding: 0; filter: none; }
.shop-grid .product--kem-book img {
  object-fit: contain; object-position: center bottom; padding: 28px 24px 6px;
}
.product:hover img { transform: scale(1.04); }
.product-name { padding: 16px 20px; font-size: 14px; letter-spacing: .12em; font-weight: 600; }

/* ---------------------------------------------------------- missions / connect */
.missions .lede { max-width: 780px; }
.connect-card {
  display: flex; gap: clamp(28px, 5vw, 70px); align-items: center;
  border-radius: 28px; padding: clamp(30px, 5vw, 60px);
  background: var(--card); border: 1px solid var(--card-line); box-shadow: var(--shadow-lift);
}
.contact-lines { list-style: none; margin: 26px 0 0; color: var(--muted); font-size: 15px; display: grid; gap: 6px; }
.contact-lines a { color: var(--muted); text-decoration: none; transition: color .3s; }
.contact-lines a:hover { color: var(--accent); }
.socials { display: flex; gap: 14px; margin-top: 22px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--card-line); background: var(--card);
  transition: border-color .3s, transform .3s, background .3s;
}
.socials a:hover { border-color: var(--accent); transform: translateY(-3px); background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.socials svg { width: 18px; height: 18px; fill: var(--text); }

.site-foot { border-top: 1px solid var(--card-line); padding: 30px 0 40px; }
.foot-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: space-between; color: var(--muted); font-size: 13px; }
.foot-motto { font-family: var(--font-soft); font-style: italic; color: var(--hot); }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.foot-links a { color: var(--muted); text-decoration: none; letter-spacing: .06em; }
.foot-links a:hover { color: var(--accent); }
.foot-credit { letter-spacing: .12em; font-size: 11px; opacity: .7; }
.foot-credit a { color: inherit; text-underline-offset: .2em; }
.foot-credit a:hover { color: var(--accent); }

/* ============================================================ SUB-PAGES */

/* compact page hero — sub-pages lead with type, not a full-viewport stage */
.page-hero { padding: calc(var(--head-h) + clamp(56px, 9vh, 96px)) 0 clamp(30px, 5vh, 54px); }
.page-hero .h-serif { max-width: 15ch; }
.page-hero.center .h-serif { margin-inline: auto; }
.page-hero .lede { margin-left: 0; }
.page-hero.center .lede { margin-inline: auto; }
.crumb { font-size: 12px; letter-spacing: .18em; color: var(--muted); margin-bottom: 16px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.rule { height: 1px; background: var(--card-line); margin: clamp(40px, 7vh, 76px) 0; }

/* pricing plans */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.plan {
  border-radius: 20px; padding: 30px 26px; background: var(--card);
  border: 1px solid var(--card-line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .35s ease, box-shadow .35s, border-color .35s;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.plan--best { border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: var(--shadow-lift); }
.plan h3 { font-family: var(--font-serif); font-size: 22px; font-weight: 600; text-wrap: balance; }
.plan-rate { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 2px; }
.plan-rate strong { font-family: var(--font-serif); font-size: 38px; font-weight: 600; line-height: 1; }
.plan-rate span { color: var(--muted); font-size: 13px; }
.plan-term { font-size: 12px; letter-spacing: .16em; color: var(--hot); font-weight: 700; }
.plan ul { list-style: none; display: grid; gap: 7px; margin: 8px 0 4px; }
.plan li { position: relative; padding-left: 20px; font-size: 14px; color: var(--muted); }
.plan li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); font-size: 11px; top: 3px; }
.plan-total { font-size: 13px; letter-spacing: .04em; color: var(--text); font-weight: 600; }
.plan .btn { align-self: flex-start; margin-top: auto; }

/* catalog */
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.catalog .product img { aspect-ratio: 4/4.4; }
.product-foot { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 4px; }
.product-price { font-family: var(--font-serif); font-size: 20px; font-weight: 600; }
.product-cta { font-size: 12px; letter-spacing: .12em; color: var(--accent); font-weight: 600; }

/* service / training lists */
.two-list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); }
.svc-list { list-style: none; display: grid; gap: 0; }
.svc-list li {
  padding: 14px 0 14px 4px; border-bottom: 1px solid var(--card-line);
  font-size: 15.5px; display: flex; align-items: baseline; gap: 14px;
}
.svc-list li::before {
  content: counter(svc, decimal-leading-zero); counter-increment: svc;
  font-family: var(--font-serif); font-size: 13px; color: var(--accent); min-width: 24px;
}
.svc-list { counter-reset: svc; }

/* long-form prose */
.prose { max-width: 62ch; }
.prose p { margin-bottom: 16px; }
.prose a:not(.btn) {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  transition: border-color .25s, color .25s;
}
.prose a:not(.btn):hover { border-bottom-color: var(--accent); }
/* a bio column next to a portrait should start at the top, not float centred */
.cols:has(.prose) { align-items: start; }
.prose h3 {
  font-family: var(--font-serif); font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 600; margin: 34px 0 12px;
}
.prose ul { list-style: none; display: grid; gap: 9px; margin: 6px 0 18px; }
.prose ul li { position: relative; padding-left: 24px; color: var(--muted); }
.prose ul li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); font-size: 12px; }

/* event rows */
.event-row {
  display: grid; grid-template-columns: 190px 1fr auto; gap: 26px; align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--card-line);
}
.event-row .when { font-size: 12.5px; letter-spacing: .14em; color: var(--accent); font-weight: 700; }
.event-row h3 { font-family: var(--font-serif); font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.event-row p { color: var(--muted); font-size: 14.5px; }

.application-form:not([hidden]) { display: grid; gap: 12px; margin-top: 16px; }
.application-form label { display: grid; gap: 4px; }
.application-form input, .application-form textarea {
  width: 100%; padding: 9px; font: inherit; color: var(--text);
  background: var(--card); border: 1px solid var(--card-line); border-radius: 6px;
}
.application-form button { justify-self: start; }

/* offsite hand-off note */
.handoff {
  display: flex; gap: 12px; align-items: flex-start; border-radius: 14px;
  padding: 14px 18px; background: var(--card); border: 1px solid var(--card-line);
  font-size: 13.5px; color: var(--muted); max-width: 62ch;
}
.handoff strong { color: var(--text); }

/* ---------------------------------------------------------- responsive */
/* Keep the page links in the header on laptop widths; the name drops out
   first to make room. The "Book Dr. Kem" button stays visible at every size. */
@media (max-width: 1360px) {
  .brand-name { display: none; }
  .nav { gap: clamp(8px, .9vw, 14px); }
  .nav a { font-size: 12.5px; letter-spacing: .05em; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: block; margin-left: 0; }
  .head-cta { margin-left: auto; }
  .brand-name { display: inline; }
}
@media (max-width: 560px) {
  .brand-name { display: none; }
  .head-cta { padding: 9px 14px; font-size: 11px; letter-spacing: .06em; }
}
@media (max-width: 960px) {
  .hero-inner, .cols, .cols--rev, .night-cols { grid-template-columns: 1fr; }
  .hero .lockup--hero { width: min(400px, 84vw); }
  .hero-photo { width: min(100%, 380px); justify-self: center; }
  .hero-photo img { max-height: 52svh; }
  .about-photo { max-width: 360px; margin: 0 auto 24px; width: 100%; }
  .about-photo .chip { right: 6px; bottom: 12px; }
  .photo-frame img { max-height: 400px; object-fit: cover; object-position: top center; }
  .cards, .mym-grid, .shop-grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: 1fr 1fr; }
  .connect-card { flex-direction: column; text-align: center; }
  .connect-card .cta-row, .connect-card .socials { justify-content: center; }
  .ticks { grid-template-columns: 1fr; }
  .night-mocks img { max-height: 170px; }
  .two-list { grid-template-columns: 1fr; }
  .event-row { grid-template-columns: 1fr; gap: 10px; }
  .catalog { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .catalog { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .shop-grid { grid-template-columns: 1fr; } }
@media (max-width: 380px) {
  .site-head { padding-inline: 12px; gap: 8px; }
  .brand { gap: 8px; }
  .lockup--head { width: 48px; flex-shrink: 0; }
  .brand-name { font-size: 9px; letter-spacing: .12em; }
}

@media (prefers-reduced-motion: reduce) {
  .float-a, .float-b, .float-c, .night-glow, .grain, .pulse-dot, .lk-kem { animation: none !important; }
  html:not(.no-js) [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Published site appearance */
/* The published palette recolors buttons and accents only. The wordmark keeps
   its per-section colors so it still shifts as you scroll, with "Your" and
   "Kem" staying gold (Dr. Kem's request, Nov 22). */
html[data-site-palette] {
  --accent: color-mix(in srgb, var(--site-primary) 45%, black);
  --accent-2: color-mix(in srgb, var(--site-secondary) 45%, black);
}
html[data-site-palette][data-theme="night"] {
  --accent: color-mix(in srgb, var(--site-primary) 30%, white);
  --accent-2: color-mix(in srgb, var(--site-secondary) 30%, white);
}
html[data-site-palette] .btn--solid {
  background: linear-gradient(115deg, color-mix(in srgb, var(--site-primary) 45%, black), color-mix(in srgb, var(--site-secondary) 45%, black));
}
.site-announcement {
  margin-bottom: 16px; padding: 10px 14px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--card-line);
}
.event-group { margin-bottom: 32px; }
.consulting-logo { margin: 30px 0 0; max-width: 420px; }
.consulting-logo img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow); }
.event-description { white-space: pre-line; }

/* "Book Dr. Kem" keeps its signature purple-to-green blend on every page,
   whatever palette the admin dashboard publishes (Dr. Kem's request, Nov 25). */
.btn.btn--book,
html[data-site-palette] .btn.btn--book {
  background: linear-gradient(115deg, #7d1f8e, #12894a);
  color: #fff;
}
.btn.btn--book:hover { box-shadow: 0 14px 34px -10px rgba(125, 31, 142, .55); }
.lede a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
